/*! For license information please see index.js.LICENSE.txt */
(function(){var __webpack_modules__={vDqi:function(t,e,n){t.exports=n("zuR4")},tQ2B:function(t,e,n){"use strict";var r=n("xTJ+"),o=n("Rn+g"),i=n("eqyj"),a=n("MLWZ"),u=n("g7np"),c=n("w0Vi"),s=n("OTTw"),l=n("LYNF"),f=n("JEQr"),h=n("endd");t.exports=function(t){return new Promise((function(e,n){var p,_=t.data,d=t.headers,v=t.responseType;function y(){t.cancelToken&&t.cancelToken.unsubscribe(p),t.signal&&t.signal.removeEventListener("abort",p)}r.isFormData(_)&&delete d["Content-Type"];var m=new XMLHttpRequest;if(t.auth){var g=t.auth.username||"",E=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";d.Authorization="Basic "+btoa(g+":"+E)}var b=u(t.baseURL,t.url);function w(){if(m){var r="getAllResponseHeaders"in m?c(m.getAllResponseHeaders()):null,i={data:v&&"text"!==v&&"json"!==v?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:t,request:m};o((function(t){e(t),y()}),(function(t){n(t),y()}),i),m=null}}if(m.open(t.method.toUpperCase(),a(b,t.params,t.paramsSerializer),!0),m.timeout=t.timeout,"onloadend"in m?m.onloadend=w:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(w)},m.onabort=function(){m&&(n(l("Request aborted",t,"ECONNABORTED",m)),m=null)},m.onerror=function(){n(l("Network Error",t,null,m)),m=null},m.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",r=t.transitional||f.transitional;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(l(e,t,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",m)),m=null},r.isStandardBrowserEnv()){var I=(t.withCredentials||s(b))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;I&&(d[t.xsrfHeaderName]=I)}"setRequestHeader"in m&&r.forEach(d,(function(t,e){void 0===_&&"content-type"===e.toLowerCase()?delete d[e]:m.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(m.withCredentials=!!t.withCredentials),v&&"json"!==v&&(m.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&m.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&m.upload&&m.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(p=function(t){m&&(n(!t||t&&t.type?new h("canceled"):t),m.abort(),m=null)},t.cancelToken&&t.cancelToken.subscribe(p),t.signal&&(t.signal.aborted?p():t.signal.addEventListener("abort",p))),_||(_=null),m.send(_)}))}},zuR4:function(t,e,n){"use strict";var r=n("xTJ+"),o=n("HSsa"),i=n("CgaS"),a=n("SntB"),u=function t(e){var n=new i(e),u=o(i.prototype.request,n);return r.extend(u,i.prototype,n),r.extend(u,n),u.create=function(n){return t(a(e,n))},u}(n("JEQr"));u.Axios=i,u.Cancel=n("endd"),u.CancelToken=n("jfS+"),u.isCancel=n("Lmem"),u.VERSION=n("XM5P").version,u.all=function(t){return Promise.all(t)},u.spread=n("DfZB"),u.isAxiosError=n("XwJu"),t.exports=u,t.exports.default=u},endd:function(t){"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},"jfS+":function(t,e,n){"use strict";var r=n("endd");function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;this.promise.then((function(t){if(n._listeners){var e,r=n._listeners.length;for(e=0;e<r;e++)n._listeners[e](t);n._listeners=null}})),this.promise.then=function(t){var e,r=new Promise((function(t){n.subscribe(t),e=t})).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]},o.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},Lmem:function(t){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},CgaS:function(t,e,n){"use strict";var r=n("xTJ+"),o=n("MLWZ"),i=n("9rSQ"),a=n("UnBK"),u=n("SntB"),c=n("hIuj"),s=c.validators;function l(t){this.defaults=t,this.interceptors={request:new i,response:new i}}l.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=u(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=t.transitional;void 0!==e&&c.assertOptions(e,{silentJSONParsing:s.transitional(s.boolean),forcedJSONParsing:s.transitional(s.boolean),clarifyTimeoutError:s.transitional(s.boolean)},!1);var n=[],r=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var o,i=[];if(this.interceptors.response.forEach((function(t){i.push(t.fulfilled,t.rejected)})),!r){var l=[a,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(i),o=Promise.resolve(t);l.length;)o=o.then(l.shift(),l.shift());return o}for(var f=t;n.length;){var h=n.shift(),p=n.shift();try{f=h(f)}catch(t){p(t);break}}try{o=a(f)}catch(t){return Promise.reject(t)}for(;i.length;)o=o.then(i.shift(),i.shift());return o},l.prototype.getUri=function(t){return t=u(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,n){return this.request(u(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,n,r){return this.request(u(r||{},{method:t,url:e,data:n}))}})),t.exports=l},"9rSQ":function(t,e,n){"use strict";var r=n("xTJ+");function o(){this.handlers=[]}o.prototype.use=function(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},g7np:function(t,e,n){"use strict";var r=n("2SVd"),o=n("5oMp");t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},LYNF:function(t,e,n){"use strict";var r=n("OH9c");t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},UnBK:function(t,e,n){"use strict";var r=n("xTJ+"),o=n("xAGQ"),i=n("Lmem"),a=n("JEQr"),u=n("endd");function c(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new u("canceled")}t.exports=function(t){return c(t),t.headers=t.headers||{},t.data=o.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return c(t),e.data=o.call(t,e.data,e.headers,t.transformResponse),e}),(function(e){return i(e)||(c(t),e&&e.response&&(e.response.data=o.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},OH9c:function(t){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t}},SntB:function(t,e,n){"use strict";var r=n("xTJ+");t.exports=function(t,e){e=e||{};var n={};function o(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function i(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:o(void 0,t[n]):o(t[n],e[n])}function a(t){if(!r.isUndefined(e[t]))return o(void 0,e[t])}function u(n){return r.isUndefined(e[n])?r.isUndefined(t[n])?void 0:o(void 0,t[n]):o(void 0,e[n])}function c(n){return n in e?o(t[n],e[n]):n in t?o(void 0,t[n]):void 0}var s={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:c};return r.forEach(Object.keys(t).concat(Object.keys(e)),(function(t){var e=s[t]||i,o=e(t);r.isUndefined(o)&&e!==c||(n[t]=o)})),n}},"Rn+g":function(t,e,n){"use strict";var r=n("LYNF");t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},xAGQ:function(t,e,n){"use strict";var r=n("xTJ+"),o=n("JEQr");t.exports=function(t,e,n){var i=this||o;return r.forEach(n,(function(n){t=n.call(i,t,e)})),t}},JEQr:function(t,e,n){"use strict";var r=n("xTJ+"),o=n("yK9s"),i=n("OH9c"),a={"Content-Type":"application/x-www-form-urlencoded"};function u(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var c,s={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(c=n("tQ2B")),c),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(u(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)||e&&"application/json"===e["Content-Type"]?(u(e,"application/json"),function(t,e,n){if(r.isString(t))try{return(0,JSON.parse)(t),r.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||s.transitional,n=e&&e.silentJSONParsing,o=e&&e.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||o&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(a){if("SyntaxError"===t.name)throw i(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){s.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){s.headers[t]=r.merge(a)})),t.exports=s},XM5P:function(t){t.exports={version:"0.23.0"}},HSsa:function(t){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},MLWZ:function(t,e,n){"use strict";var r=n("xTJ+");function o(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(r.isURLSearchParams(e))i=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))})))})),i=a.join("&")}if(i){var u=t.indexOf("#");-1!==u&&(t=t.slice(0,u)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},"5oMp":function(t){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},eqyj:function(t,e,n){"use strict";var r=n("xTJ+");t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,a){var u=[];u.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),r.isString(o)&&u.push("path="+o),r.isString(i)&&u.push("domain="+i),!0===a&&u.push("secure"),document.cookie=u.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},"2SVd":function(t){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},XwJu:function(t){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},OTTw:function(t,e,n){"use strict";var r=n("xTJ+");t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=r.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},yK9s:function(t,e,n){"use strict";var r=n("xTJ+");t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},w0Vi:function(t,e,n){"use strict";var r=n("xTJ+"),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},DfZB:function(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},hIuj:function(t,e,n){"use strict";var r=n("XM5P").version,o={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){o[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var i={};o.transitional=function(t,e,n){function o(t,e){return"[Axios v"+r+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,r,a){if(!1===t)throw new Error(o(r," has been removed"+(e?" in "+e:"")));return e&&!i[r]&&(i[r]=!0,console.warn(o(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,r,a)}},t.exports={assertOptions:function(t,e,n){if("object"!=typeof t)throw new TypeError("options must be an object");for(var r=Object.keys(t),o=r.length;o-- >0;){var i=r[o],a=e[i];if(a){var u=t[i],c=void 0===u||a(u,i,t);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},"xTJ+":function(t,e,n){"use strict";var r=n("HSsa"),o=Object.prototype.toString;function i(t){return"[object Array]"===o.call(t)}function a(t){return void 0===t}function u(t){return null!==t&&"object"==typeof t}function c(t){if("[object Object]"!==o.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function s(t){return"[object Function]"===o.call(t)}function l(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),i(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:i,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:u,isPlainObject:c,isUndefined:a,isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:s,isStream:function(t){return u(t)&&s(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:l,merge:function t(){var e={};function n(n,r){c(e[r])&&c(n)?e[r]=t(e[r],n):c(n)?e[r]=t({},n):i(n)?e[r]=n.slice():e[r]=n}for(var r=0,o=arguments.length;r<o;r++)l(arguments[r],n);return e},extend:function(t,e,n){return l(e,(function(e,o){t[o]=n&&"function"==typeof e?r(e,n):e})),t},trim:function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},SXfD:function(t,e,n){"use strict";var r=n("vDqi"),o=n.n(r),i=n("e/DM"),a=o().create({baseURL:i.T5,headers:{"Content-Type":"application/json",Accept:"application/json"}});e.Z=a},"e/DM":function(t,e,n){"use strict";n.d(e,{$6:function(){return u},MO:function(){return i},T5:function(){return a},wQ:function(){return c}});var r=n("Z+uI"),o=n("FaS+"),i=o.Z?"https://sp.saml.v2.ebbot.app":"http://sp.saml.ebbot.local",a=(0,r.Z)()?"http"+(o.Z?"s":"")+"://"+(0,r.Z)():o.Z?"https://v2.ebbot.app/api":"http://ebbot.local/api",u=o.Z?"ebbot-v2":"ebbot-staging",c="new-chat.ebbot.local,ANALYTICS_DOMAIN_IGNORE_TO_REPLACE"},BsQU:function(t,e,n){"use strict";n.d(e,{Z:function(){return p}});var r=n("+9dH"),o=n("/0+J"),i=n("Es6C"),a=n("3bAv");function u(){var t=!document.documentMode&&!!window.StyleMedia;return-1==navigator.userAgent.indexOf("Chrome")||t?-1==navigator.userAgent.indexOf("Safari")||t?-1!=navigator.userAgent.indexOf("Firefox")?"firefox":-1!=navigator.userAgent.indexOf("MSIE")||1==!!document.documentMode?"ie":t?"edge":"other-browser":"safari":"chrome"}var c=n("XsSB"),s=n("uiih"),l=n("e5fA"),f=n("8R7p");function h(){h=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function s(t,e,n,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),u=new O(o||[]);return r(a,"_invoke",{value:w(t,n,u)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function p(){}function _(){}function d(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(L([])));m&&m!==e&&n.call(m,i)&&(v=m);var g=d.prototype=p.prototype=Object.create(v);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function o(r,i,a,u){var c=l(t[r],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,u)}),(function(t){o("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,u)}))}u(c.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=I(a,n);if(u){if(u===f)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function I(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,I(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=l(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function L(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return _.prototype=d,r(g,"constructor",{value:d,configurable:!0}),r(d,"constructor",{value:_,configurable:!0}),_.displayName=c(d,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,c(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},E(b.prototype),c(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new b(s(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(g),c(g,u,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=L,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:L(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function p(t,e){return _.apply(this,arguments)}function _(){return(_=(0,o.Z)(h().mark((function t(e,n){var o,p,_,d,v;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===e&&(e={}),void 0===n&&(n={}),o=(0,i.Z)(),p=(0,a.Z)(),_=p.getItem(f.I.EBBOT_USER_INFO),d=JSON.parse(_||"{}"),window.history.pushState=new Proxy(window.history.pushState,{apply:function(t,i,a){var f=a[a.length-1];return(0,s.Z)({type:l.tq.UPDATE_CONVERSATION_INFO,value:(0,r.Z)({platform:(0,c.Z)().isMobile?"mobile":"web",browser:u(),os:(0,c.Z)().os,current_page:f,current_host:window.location.host,time_before_start:0,chat_theme_details:JSON.parse(o.theme_details)},d,e),dataAddon:n}),t.apply(i,a)}}),v=(window.navigator.language||"").split("-")[0],t.next=10,(0,s.Z)({type:l.tq.WEB_INIT,finished:!0,chatId:o.chatId,dataAddon:(0,r.Z)({},n,{conversation:{browser_language:v,current_page:window.location.pathname,os:(0,c.Z)().os}})});case 10:return t.next=12,(0,s.Z)({type:l.tq.UPDATE_CONVERSATION_INFO,value:(0,r.Z)({platform:(0,c.Z)().isMobile?"mobile":"web",browser:u(),os:(0,c.Z)().os,current_page:window.location.pathname,current_host:window.location.host,time_before_start:0,chat_theme_details:JSON.parse(o.theme_details)},d,e),dataAddon:n});case 12:return t.next=14,(0,s.Z)({type:l.tq.REFRESH_MESSAGES,finished:!0,chatId:o.chatId});case 14:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},e5fA:function(t,e,n){"use strict";n.d(e,{Me:function(){return r},iI:function(){return o},tq:function(){return i}});var r={USER:"user",BOT:"bot",AGENT:"agent",SYSTEM:"system"},o={CHAT:"chat",USER:"user",AGENT:"agent"},i=(Object.values(r).filter((function(t){return t!==r.USER})),{TEXT:"text",READ_STATUS:"messages_read",TEXT_INFO:"text_info",SPAM_WARNING:"spam_warning",TYPING:"typing",SCENARIO:"scenario",IMAGE:"image",IMAGE_OPTIONS:"imageOptions",CO_BROWSING_REQUEST:"co_browsing_request",CO_BROWSING:"co_browsing",URL:"url",TEXT_CARD:"text-card",DATE_CARD:"date-card",DATE_RANGE_CARD:"date-range-card",CAROUSEL:"carousel",PRODUCT_CAROUSEL:"product_carousel",SLIDER_CARD:"slider-card",ARTICLE_CARD:"article-card",LIST:"list",INPUT_CARD:"input-card",LOCATION:"location",MULTI_SELECT:"multi_select",RATING_REQUEST:"rating_request",SAML_SSO:"saml_sso",RATING:"rating",FILE_LIST:"file_list",FILE:"file",EDITOR_CARD:"editor-card",CARD_BASE:"card-base",INTERMEDIATE:"intermediate",BUTTON_CLICK:"button_click",URL_CLICK:"url_click",EMPTY:"empty",TEXT_SUCCESS:"text_success",UPDATE_CONVERSATION_INFO:"update_conversation_info",VARIABLE:"variable",REFRESH_MESSAGES:"refresh_messages",WEB_INIT:"web_init",TRANSLATE_LANGUAGES:"translate_languages",UNKNOWN:"unknown",GPT:"gpt",BANKID:"bankid"})},"+Nrv":function(t,e,n){"use strict";n.d(e,{g:function(){return f},v:function(){return h}});var r=n("Nlia"),o=n("+9dH"),i=n("Cmfx"),a=function(t){return"gpt"===t?"text":t},u=function(t){var e=t.type,n=t.sender,r=t.previousMessage,o=t.nextMessage,i=a(e),u=a(null==r?void 0:r.type),c=a(null==o?void 0:o.type);return{isSingleInGroup:!((null==r?void 0:r.sender)===n&&i===u||(null==o?void 0:o.sender)===n&&i===c),isFirstInGroup:(null==r?void 0:r.sender)!==n||(null==r?void 0:r.sender)===n&&u!==i,isLastInGroup:(null==r?void 0:r.sender)===n&&u===i&&(i!==c||n!==(null==o?void 0:o.sender))}},c=n("e5fA"),s=["value"],l=["value"],f=function(t){var e;return(e={})[c.tq.TEXT]={Component:(0,i.lazy)((function(){return Promise.all([n.e(4806),n.e(1072),n.e(3604),n.e(2642),n.e(4311),n.e(9110),n.e(5661)]).then(n.bind(n,"AAh4"))})),propsMapper:function(t){return(0,o.Z)({},t,{text:t.value,translated:t.translated,read:t.read,isSomeoneResponse:t.sender!==c.Me.USER,sender:t.sender,senderId:t.userId},u(t))}},e[c.tq.GPT]={Component:(0,i.lazy)((function(){return Promise.all([n.e(4806),n.e(1072),n.e(3604),n.e(2642),n.e(4311),n.e(4067)]).then(n.bind(n,"8xUS"))})),propsMapper:function(t){var e,n,r;return(0,o.Z)({},t,{text:t.value.text,hasContexts:Boolean(null==(e=t.value.contexts)?void 0:e.length),modelInfo:null==(n=t.value.metadata)?void 0:n.modelInfo,dataSet:null==(r=t.value.metadata)?void 0:r.dataSet,read:t.read,isSomeoneResponse:t.sender!==c.Me.USER,sender:t.sender,senderId:t.userId},u(t))}},e[c.tq.BANKID]={Component:(0,i.lazy)((function(){return Promise.all([n.e(4806),n.e(1072),n.e(9361),n.e(2642),n.e(4311),n.e(7099)]).then(n.bind(n,"+6Hf"))})),propsMapper:function(t){return t}},e[c.tq.TYPING]={Component:function(){return null},isMessageHidden:!0,propsMapper:function(t){return t}},e[c.tq.CO_BROWSING]={Component:function(){return null},isMessageHidden:!0,propsMapper:function(t){return t}},e[c.tq.CO_BROWSING_REQUEST]={Component:(0,i.lazy)((function(){return Promise.all([n.e(4806),n.e(2642),n.e(4311),n.e(5249),n.e(5208)]).then(n.bind(n,"eGIi"))})),propsMapper:function(t){return{messageId:t.id,title:t.value.description,urls:t.value.urls,sentAtTimestamp:null==t?void 0:t.timestamp,sentInChatId:null==t?void 0:t.chatId}}},e[c.tq.URL]={Component:(0,i.lazy)((function(){return Promise.all([n.e(4806),n.e(2642),n.e(4311),n.e(5249),n.e(5208)]).then(n.bind(n,"eGIi"))})),propsMapper:function(t){return{messageId:t.id,title:t.value.description,urls:t.value.urls,sentAtTimestamp:null==t?void 0:t.timestamp,sentInChatId:null==t?void 0:t.chatId}}},e[c.tq.URL_CLICK]={Component:function(){return null},isMessageHidden:!0,propsMapper:function(t){return t}},e[c.tq.TEXT_INFO]={Component:(0,i.lazy)((function(){return n.e(3026).then(n.bind(n,"4xiw"))})),propsMapper:function(t){return{text:t.value}}},e[c.tq.TRANSLATE_LANGUAGES]={Component:(0,i.lazy)((function(){return Promise.all([n.e(4806),n.e(1072),n.e(2642),n.e(4311),n.e(1782)]).then(n.bind(n,"FDCe"))})),propsMapper:function(t){return(0,o.Z)({},t,{value:t.value})}},e[c.tq.SPAM_WARNING]={Component:(0,i.lazy)((function(){return Promise.all([n.e(1072),n.e(5551)]).then(n.bind(n,"yzIT"))})),propsMapper:function(t){return{text:t.value}}},e[c.tq.SCENARIO]={Component:function(){return null},isMessageHidden:!0,propsMapper:function(t){return t}},e[c.tq.TEXT_CARD]={Component:(0,i.lazy)((function(){return Promise.all([n.e(4806),n.e(2642),n.e(4311),n.e(3141)]).then(n.bind(n,"7D4R"))})),propsMapper:function(t){return t}},e[c.tq.SAML_SSO]={Component:(0,i.lazy)((function(){return Promise.all([n.e(4806),n.e(2642),n.e(4311),n.e(5249),n.e(1422)]).then(n.bind(n,"j0W/"))})),propsMapper:function(t){return{messageId:t.id,title:t.value.description,urls:t.value.urls,idp_initiated_sso_url:t.value.idp_initiated_sso_url,sentAtTimestamp:null==t?void 0:t.timestamp,sentInChatId:null==t?void 0:t.chatId}}},e[c.tq.CAROUSEL]={Component:(0,i.lazy)((function(){return Promise.all([n.e(4806),n.e(2642),n.e(4311),n.e(5249),n.e(8283)]).then(n.bind(n,"qT+Z"))})),propsMapper:function(t){return{messageId:t.id,slides:t.value.slides,sentAtTimestamp:null==t?void 0:t.timestamp,sentInChatId:null==t?void 0:t.chatId,carouselProps:{aspect:t.value.aspect,imageFit:t.value.imageFit}}}},e[c.tq.PRODUCT_CAROUSEL]={Component:(0,i.lazy)((function(){return Promise.all([n.e(4806),n.e(2642),n.e(4311),n.e(5249),n.e(6814)]).then(n.bind(n,"4B8j"))})),propsMapper:function(t){return{messageId:t.id,products:t.value.products,buttonLabel:t.value.buttonLabel,sentAtTimestamp:null==t?void 0:t.timestamp,sentInChatId:null==t?void 0:t.chatId,agentId:null==t?void 0:t.userId}}},e[c.tq.VARIABLE]={Component:function(){return null},isMessageHidden:!0,propsMapper:function(t){return t}},e[c.tq.LIST]={Component:(0,i.lazy)((function(){return Promise.all([n.e(4806),n.e(2642),n.e(4311),n.e(1223)]).then(n.bind(n,"lXux"))})),propsMapper:function(t){return{title:t.value.text,decoration:t.value.decoration,formattings:t.value.formattings,items:t.value.items}}},e[c.tq.LOCATION]={Component:(0,i.lazy)((function(){return Promise.all([n.e(4806),n.e(8986),n.e(2642),n.e(4311),n.e(8782)]).then(n.bind(n,"Xyvf"))})),propsMapper:function(t){return{subtitle:t.value.query,mapProps:{center:{lat:t.value.lat,lng:t.value.lng},markers:[{lat:t.value.lat,lng:t.value.lng}]}}}},e[c.tq.MULTI_SELECT]={Component:(0,i.lazy)((function(){return Promise.all([n.e(4806),n.e(1072),n.e(2642),n.e(4311),n.e(7222)]).then(n.bind(n,"TQK5"))})),isMessageHidden:function(t,e){return!(e.isViewMode||null!=e&&e.options)},propsMapper:function(t){var e,n;return(0,o.Z)({},(""+t.value).startsWith("{")||"string"!=typeof t.value&&null!=t&&null!=(e=t.value)&&e.selection?{viewModeSelectedOptions:"string"==typeof t.value?null==(n=JSON.parse(t.value))?void 0:n.selection:t.value.selection,isViewMode:!0}:{title:t.value,options:t.options,submitButtonText:t.confirmation},{sentAtTimestamp:null==t?void 0:t.timestamp,sentInChatId:null==t?void 0:t.chatId,isAutocomplete:"1"===(null==t?void 0:t.isDropdown),isSingleChoice:"1"===(null==t?void 0:t.isSingle)})}},e[c.tq.RATING_REQUEST]={Component:(0,i.lazy)((function(){return Promise.all([n.e(4806),n.e(1072),n.e(2642),n.e(4311),n.e(6166)]).then(n.bind(n,"+k/K"))})),isMessageHidden:function(t){var e;return null==t||null==(e=t.allNextMessages)?void 0:e.some((function(t){return(null==t?void 0:t.type)===c.tq.RATING}))},propsMapper:function(t){return t}},e[c.tq.RATING]={Component:(0,i.lazy)((function(){return Promise.all([n.e(4806),n.e(1072),n.e(2642),n.e(4311),n.e(6166)]).then(n.bind(n,"+k/K"))})),propsMapper:function(t){var e="string"==typeof(null==t?void 0:t.value)?JSON.parse(t.value):t.value;return(0,o.Z)({},t,{value:e.feedback,defaultSelectedRate:null==e?void 0:e.rating,defaultIsEditable:!1})}},e[c.tq.FILE_LIST]={Component:(0,i.lazy)((function(){return Promise.all([n.e(4806),n.e(1072),n.e(2642),n.e(4311),n.e(9110),n.e(8566),n.e(803)]).then(n.bind(n,"eUkY"))})),propsMapper:function(t){return(0,o.Z)({},t,{title:t.value.text,subtitle:t.value.disclaimer,submitText:t.value.submitText,dropText:t.value.dropText,minFiles:t.value.minFiles,maxFiles:t.value.maxFiles,maxSize:t.value.maxSize,accept:t.value.mimeType,output:t.value.output,sentAtTimestamp:null==t?void 0:t.timestamp,sentInChatId:null==t?void 0:t.chatId})}},e[c.tq.FILE]={Component:(0,i.lazy)((function(){return Promise.all([n.e(4806),n.e(1072),n.e(3604),n.e(2642),n.e(4311),n.e(9110),n.e(5661)]).then(n.bind(n,"AAh4"))})),propsMapper:function(t){t.value;var e=(0,r.Z)(t,s);return(0,o.Z)({},e,{sender:t.sender,isSomeoneResponse:t.sender!==c.Me.USER},u(t),{filesList:[{id:t.id,name:t.value.filename||t.value.label,type:String(t.value.mimetype),src:t.value.url,description:t.value.image_description}]})}},e[c.tq.CARD_BASE]={Component:(0,i.lazy)((function(){return Promise.all([n.e(4806),n.e(2642),n.e(4311),n.e(5358)]).then(n.bind(n,"qT6h"))})),propsMapper:function(t){return t}},e[c.tq.IMAGE]={Component:(0,i.lazy)((function(){return Promise.all([n.e(4806),n.e(1072),n.e(3604),n.e(2642),n.e(4311),n.e(9110),n.e(5661)]).then(n.bind(n,"AAh4"))})),propsMapper:function(t){t.value;var e=(0,r.Z)(t,l);return(0,o.Z)({},e,{sender:t.sender,isSomeoneResponse:t.sender!==c.Me.USER},u(t),{image:{label:t.value.filename||t.value.label,url:t.value.url}})}},e[c.tq.EMPTY]={Component:function(){return null},isMessageHidden:!0,propsMapper:function(t){return t}},e[c.tq.REFRESH_MESSAGES]={Component:function(){return null},isMessageHidden:!0,propsMapper:function(t){return t}},e[c.tq.TEXT_SUCCESS]={Component:function(){return null},isMessageHidden:!0,propsMapper:function(t){return t}},e[c.tq.BUTTON_CLICK]={Component:!0===t.btn_clicked_as_message?(0,i.lazy)((function(){return Promise.all([n.e(4806),n.e(1072),n.e(3604),n.e(2642),n.e(4311),n.e(9110),n.e(5661)]).then(n.bind(n,"AAh4"))})):function(){return null},propsMapper:function(t){return(0,o.Z)({},t,{text:t.value,read:t.read,isSomeoneResponse:t.sender!==c.Me.USER,sender:t.sender,senderId:t.userId},u(t))}},e[c.tq.INTERMEDIATE]={Component:function(){return null},isMessageHidden:!0,propsMapper:function(t){return t}},e[c.tq.UPDATE_CONVERSATION_INFO]={Component:function(){return null},isMessageHidden:!0,propsMapper:function(t){return t}},e[c.tq.WEB_INIT]={Component:function(){return null},isMessageHidden:!0,propsMapper:function(t){return t}},e[c.tq.UNKNOWN]={Component:function(t){var e=t.type;return console.error('Unhandled "'+e+'" message!'),null},propsMapper:function(t){return t},isMessageHidden:!0},e[c.tq.READ_STATUS]={Component:function(){return null},propsMapper:function(t){return{text:t.value}},isMessageHidden:!0},e},h=Object.entries(f({})).reduce((function(t,e){var n=e[0],r=e[1];return[].concat(t,"boolean"==typeof r.isMessageHidden&&!r.isMessageHidden||void 0===r.isMessageHidden?[n]:[])}),[])},"8R7p":function(t,e,n){"use strict";n.d(e,{Aw:function(){return d},BD:function(){return s},Bz:function(){return p},F6:function(){return h},I:function(){return f},Ki:function(){return u},QG:function(){return v},V3:function(){return o},hd:function(){return a},lF:function(){return _},pw:function(){return i},sR:function(){return y},tw:function(){return m},vB:function(){return c},zA:function(){return l}});var r=n("FaS+"),o={START:"start",CONVERSATION:"conversation/{chatId}",IN_QUEUE:"in-queue"},i="ebbot-chat-root",a={CLOSE_CHAT:"action_close_chat"},u={CLOSE_CHAT:"close_chat",ONLINE:"online,"},c={CLOSED:"closed",ONGOING:"ongoing,",PAUSED:"paused"},s={INPUT_ANSWER:"input_answer",INPUT_REQUEST:"input_request"},l={ACTION:"action",URL_CLICK:"url_click"},f={EBBOT_CHAT_SESSION_NAME:"ebbot_chat_session_name",EBBOT_CHAT_SESSION_CLIENT_ID:"ebbot_chat_session_client_id",EBBOT_CHAT_SESSION_ID:"ebbot_chat_session_id",EBBOT_INITIALIZED:"ebbot_initialized",EBBOT_CO_BROWSING:"ebbot_co_browsing",EBBOT_WIDGET_FONT_SIZE_ENLARGE_RATIO:"ebbot_widget_font_size_enlarge_ratio",EBBOT_TRIGGERS:"ebbot_triggers",EBBOT_SESSION_TRIGGERS:"ebbot_session_triggers",EBBOT_TRIGGERS_DISABLED:"ebbot_triggers_disabled",EBBOT_ATTENTION_SEEKER_DISABLED:"ebbot_attention_seeker_disabled",EBBOT_HAS_UNREAD_NOTIFICATIONS:"ebbot_has_unread_notifications",EBBOT_SNOOZED_UNTIL:"ebbot_snoozed_until",EBBOT_ALERT_BOX_VISIBLE:"ebbot_alert_box_visible",EBBOT_CLICKED_BUTTONS:"ebbot_clicked_buttons",EBBOT_AGENTS_INFO:"ebbot_agents_info",EBBOT_INPUT_FIELD_VISIBILITY:"ebbot_input_field_visibility",EBBOT_ALLOW_UPLOAD:"ebbot_allow_upload",EBBOT_IS_AGENT_HANDOVER_LOGIC_EXECUTED:"ebbot_is_agent_handover_logic_executed",EBBOT_IS_WIDGET_BOX_VISIBLE:"ebbot_is_widget_box_visible",EBBOT_LAST_ACTION:"ebbot_last_action",EBBOT_THEME_DETAILS:"ebbot_theme_details",EBBOT_SESSION_TOKEN:"ebbot_session_token",EBBOT_AGENT_MESSAGE_READ_AT:"ebbot_agent_message_read_at",EBBOT_RATING_TYPE:"ebbot_rating_type",EBBOT_USER_INFO:"ebbot_user_info",EBBOT_DISABLED_CHAT_TRANSLATION:"ebbot_disabled_chat_translation"},h=["image/jpeg","image/png","image/gif","image/bmp","image/webp","image/svg+xml"],p=["application/pdf","application/vnd.ms-outlook"],_=1e4,d=1e3,v=605,y=r.Z?"https://ebbot-v2.storage.googleapis.com/ebbot-web/v2/2/dist/":"http://new-chat.ebbot.local/",m=32},K1NN:function(t,e,n){"use strict";n.d(e,{BH:function(){return r},gr:function(){return i},sF:function(){return o}});var r={SET_DATA:"ATTENTION_SEEKER/SET_DATA",RESET:"ATTENTION_SEEKER/RESET"},o=function(t){var e=t.payload;return{type:r.SET_DATA,payload:e}},i=function(){return{type:r.RESET}}},aVKi:function(t,e,n){"use strict";n.d(e,{P:function(){return r}});var r=function(t){return t.attentionSeeker}},iQvE:function(t,e,n){"use strict";n.d(e,{Go:function(){return i},eh:function(){return r},jR:function(){return o},xP:function(){return a}});var r=function(t){return null==t?void 0:t.chatConfig},o=function(t){return null==t?void 0:t.chatTheme},i=function(t){var e=r(t),n=(null==e?void 0:e.matched_style)||(null==e?void 0:e.chat_style)||{};return null!=n&&n.version?n[n.version]:n},a=function(t){return r(t).features||{}}},A14V:function(t,e,n){"use strict";n.d(e,{Hd:function(){return _},IY:function(){return f},LU:function(){return c},Mm:function(){return l},V$:function(){return o},dy:function(){return p},eD:function(){return d},gD:function(){return s},jx:function(){return i},kC:function(){return a},m6:function(){return u},mO:function(){return h},pb:function(){return r}});var r={ADD_CONVERSATION:"CONVERSATIONS/ADD_CONVERSATION",UPDATE_CONVERSATION_CHAT_PROPERTY_VALUE:"CONVERSATIONS/UPDATE_CONVERSATION_CHAT_PROPERTY_VALUE",UPDATE_CONVERSATION_PROPERTY_VALUE:"CONVERSATIONS/UPDATE_CONVERSATION_PROPERTY_VALUE",ADD_MESSAGES:"CONVERSATIONS/ADD_MESSAGES",READ_MESSAGES:"CONVERSATIONS/READ_MESSAGES",REPLACE_MESSAGE:"CONVERSATIONS/REPLACE_MESSAGE",MARK_CHAT_AS_CLOSED:"CONVERSATIONS/MARK_CHAT_AS_CLOSED",MARK_CHAT_AS_PAUSED:"CONVERSATIONS/MARK_CHAT_AS_PAUSED",MARK_CHAT_AS_ONGOING:"CONVERSATIONS/MARK_CHAT_AS_ONGOING",REMOVE_ALL_CONVERSATION_MESSAGES:"CONVERSATIONS/REMOVE_ALL_CONVERSATION_MESSAGES",ADD_CONVERSATION_TYPING_MESSAGE:"CONVERSATIONS/ADD_CONVERSATION_TYPING_MESSAGE",SET_CONVERSATION_GPT_MESSAGE_ID:"CONVERSATIONS/SET_CONVERSATION_GPT_MESSAGE_ID"},o=function(t){var e=t.chatId,n=t.payload;return{type:r.ADD_CONVERSATION,chatId:e,payload:n}},i=function(t){var e=t.chatId,n=t.payload;return{type:r.UPDATE_CONVERSATION_CHAT_PROPERTY_VALUE,chatId:e,payload:n}},a=function(t){var e=t.chatId,n=t.payload;return{type:r.UPDATE_CONVERSATION_PROPERTY_VALUE,chatId:e,payload:n}},u=function(t){var e=t.chatId,n=t.messages;return{type:r.ADD_MESSAGES,chatId:e,messages:n}},c=function(t){var e=t.chatId,n=t.messageId,o=t.message;return{type:r.REPLACE_MESSAGE,chatId:e,messageId:n,message:o}},s=function(t){var e=t.chatId;return{type:r.REMOVE_ALL_CONVERSATION_MESSAGES,chatId:e}},l=function(t){var e=t.chatId;return{type:r.MARK_CHAT_AS_CLOSED,chatId:e}},f=function(t){var e=t.chatId;return{type:r.MARK_CHAT_AS_PAUSED,chatId:e}},h=function(t){var e=t.chatId;return{type:r.MARK_CHAT_AS_ONGOING,chatId:e}},p=function(t){var e=t.chatId,n=t.messages,o=void 0===n?void 0:n;return{type:r.READ_MESSAGES,chatId:e,messages:o}},_=function(t){var e=t.chatId,n=t.message;return{type:r.ADD_CONVERSATION_TYPING_MESSAGE,chatId:e,message:n}},d=function(t){var e=t.chatId,n=t.messageId;return{type:r.SET_CONVERSATION_GPT_MESSAGE_ID,chatId:e,messageId:n}}},db6H:function(t,e,n){"use strict";n.d(e,{KG:function(){return h},Oi:function(){return g},Rj:function(){return u},X1:function(){return d},Z0:function(){return m},Zq:function(){return a},b4:function(){return y},cO:function(){return E},dm:function(){return l},hS:function(){return s},iW:function(){return p},ou:function(){return b},rO:function(){return _},rY:function(){return c},sB:function(){return v},zo:function(){return f}});var r=n("e5fA"),o=n("8R7p"),i=function(t){return t.conversations},a=function(t){return Object.values(i(t)).filter((function(t){var e,n;return(null==t||null==(e=t.chat)?void 0:e.type)!==o.Ki.CLOSE_CHAT&&(null==t||null==(n=t.chat)?void 0:n.status)!==o.vB.CLOSED}))},u=function(t){return Object.values(i(t)).filter((function(t){var e,n;return(null==t||null==(e=t.chat)?void 0:e.type)===o.Ki.CLOSE_CHAT||(null==t||null==(n=t.chat)?void 0:n.status)===o.vB.CLOSED}))},c=function(t){return function(e){return i(e)[t]}},s=function(t){return function(e){return Boolean(c(t)(e))}},l=function(t){return function(e){var n,r;return(null==(n=c(t)(e))||null==(r=n.chat)?void 0:r.chat_messages)||[]}},f=function(t){return function(e){return l(t)(e).filter((function(t){return t.sender===r.Me.USER&&t.pending}))}},h=function(t){return function(e){return l(t)(e).filter((function(t){return t.sender===r.Me.BOT}))}},p=function(t){return function(e){return l(t)(e).filter((function(t){return t.sender===r.Me.AGENT&&t.type!==r.tq.READ_STATUS}))}},_=function(t){return function(e){return l(t)(e).filter((function(t){return t.type!==r.tq.READ_STATUS}))}},d=function(t){return function(e){var n;return null==(n=c(t)(e))?void 0:n.token}},v=function(t){return function(e){var n,r=c(t)(e);return(null==r||null==(n=r.chat)?void 0:n.status)===o.vB.CLOSED}},y=function(t){return function(e){var n=c(t)(e);return null==n?void 0:n.name}},m=function(t){return function(e){var n,r=c(t)(e);return null==r||null==(n=r.chat)?void 0:n.handled_by}},g=function(t){return function(e){var n;return null==(n=i(e)[t])?void 0:n.typing}},E=function(t){return function(e){var n,i=c(t)(e);return(null==i||null==(n=i.chat)?void 0:n.status)===o.vB.PAUSED&&l(t)(e).some((function(t){return t.type===r.tq.TRANSLATE_LANGUAGES}))}},b=function(t){return function(e){var n;return null==(n=i(e)[t])?void 0:n.gptMessageId}}},bK3N:function(t,e){"use strict";e.Z=function(){return window.Ebbot_Store?window.Ebbot_Store:(console.warn('Ups! Seems that you called "getStore()" util before initialize the store!'),{})}},gcTl:function(t,e,n){"use strict";n.d(e,{H:function(){return r},p:function(){return o}});var r={SET_ROUTE:"ROUTER/SET_ROUTE"},o=function(t){var e=t.path,n=t.params,o=void 0===n?{}:n;return{type:r.SET_ROUTE,path:e,params:o}}},"7ju4":function(t,e,n){"use strict";n.d(e,{b5:function(){return o}});var r=function(t){return t.router},o=function(t){return{path:r(t).path,params:r(t).params}}},mdyu:function(t,e,n){"use strict";n.d(e,{K:function(){return r},TY:function(){return i},Y7:function(){return u},jV:function(){return a},ks:function(){return o},mn:function(){return c},rs:function(){return s}});var r=function(t){return t.triggers},o=function(t){return t.triggers.all},i=function(t){return t.triggers.onLoad},a=function(t){return t.triggers.onClose},u=function(t){return t.triggers.onScroll},c=function(t){return t.triggers.userIsInactive},s=function(t){return t.triggers.defaultTrigger}},"+vdt":function(t,e,n){"use strict";n.d(e,{D1:function(){return y},Hg:function(){return p},Jr:function(){return s},Jx:function(){return v},L_:function(){return f},Qp:function(){return c},UK:function(){return d},V3:function(){return u},Vi:function(){return o},cM:function(){return g},ho:function(){return _},jx:function(){return h},kJ:function(){return i},lL:function(){return l},vt:function(){return a},w:function(){return m},zJ:function(){return r}});var r={SET_IS_WIDGET_BOX_VISIBLE:"WIDGET_STATE/SET_IS_WIDGET_BOX_VISIBLE",TOGGLE_IS_WIDGET_BOX_VISIBLE:"WIDGET_STATE/TOGGLE_IS_WIDGET_BOX_VISIBLE",SET_IS_ATTENTION_SEEKER_VISIBLE:"WIDGET_STATE/SET_IS_ATTENTION_SEEKER_VISIBLE",TOGGLE_IS_ATTENTION_SEEKER_VISIBLE:"WIDGET_STATE/TOGGLE_IS_ATTENTION_SEEKER_VISIBLE",SET_WIDGET_FONT_SIZE_ENLARGE_RATIO_TO_NEXT_STEP:"WIDGET_STATE/SET_WIDGET_FONT_SIZE_ENLARGE_RATIO_TO_NEXT_STEP",SET_IS_CO_BROWSING_ACTIVE:"WIDGET_STATE/SET_IS_CO_BROWSING_ACTIVE",SET_IS_CO_BROWSING_STREAM_INITIALIZED:"WIDGET_STATE/SET_IS_CO_BROWSING_STREAM_INITIALIZED",SET_WIDGET_STATE_AFTER_LOADING_CHAT_CONFIG:"WIDGET_STATE/SET_WIDGET_STATE_AFTER_LOADING_CHAT_CONFIG",SET_IS_NOTIFICATION_INDICATOR_VISIBLE:"WIDGET_STATE/SET_IS_NOTIFICATION_INDICATOR_VISIBLE",SET_IS_NOTIFICATIONS_SNOOZED_UNTIL:"WIDGET_STATE/SET_IS_NOTIFICATIONS_SNOOZED_UNTIL",TOGGLE_IS_NOTIFICATIONS_SNOOZED_UNTIL:"WIDGET_STATE/TOGGLE_IS_NOTIFICATIONS_SNOOZED_UNTIL",SET_LAST_ACTION:"WIDGET_STATE/SET_LAST_ACTION",SET_IS_SPAM_DETECTED:"WIDGET_STATE/SET_IS_SPAM_DETECTED",SET_IS_INITIALIZED:"WIDGET_STATE/SET_IS_INITIALIZED",SET_IS_TRANSLATION_DISABLED:"WIDGET_STATE/SET_IS_TRANSLATION_DISABLED",SET_BANKID_QRCODE:"WIDGET_STATE/SET_BANKID_QRCODE",SET_BANKID_TRANSACTION_ID:"WIDGET_STATE/SET_BANKID_TRANSACTION_ID",SET_BANKID_AUTO_START_TOKEN:"WIDGET_STATE/SET_BANKID_AUTO_START_TOKEN",SET_BANKID_QR_CODE_RESPONSE:"WIDGET_STATE/SET_BANKID_QR_CODE_RESPONSE"},o=function(t){var e=t.payload;return{type:r.SET_IS_WIDGET_BOX_VISIBLE,payload:e}},i=function(){return{type:r.TOGGLE_IS_WIDGET_BOX_VISIBLE}},a=function(t){var e=t.payload;return{type:r.SET_IS_ATTENTION_SEEKER_VISIBLE,payload:e}},u=function(){return{type:r.SET_WIDGET_FONT_SIZE_ENLARGE_RATIO_TO_NEXT_STEP}},c=function(t){var e=t.payload;return{type:r.SET_IS_CO_BROWSING_ACTIVE,payload:e}},s=function(t){var e=t.payload;return{type:r.SET_IS_CO_BROWSING_STREAM_INITIALIZED,payload:e}},l=function(t){var e=t.payload;return{type:r.SET_WIDGET_STATE_AFTER_LOADING_CHAT_CONFIG,payload:e}},f=function(t){var e=t.payload;return{type:r.SET_IS_NOTIFICATION_INDICATOR_VISIBLE,payload:e}},h=function(t){var e=t.payload;return{type:r.SET_IS_NOTIFICATIONS_SNOOZED_UNTIL,payload:e}},p=function(t){var e=t.payload;return{type:r.SET_IS_SPAM_DETECTED,payload:e}},_=function(t){var e=t.payload;return{type:r.SET_LAST_ACTION,payload:e}},d=function(t){var e=t.payload;return{type:r.SET_IS_INITIALIZED,payload:e}},v=function(t){var e=t.payload;return{type:r.SET_IS_TRANSLATION_DISABLED,payload:e}},y=function(t){var e=t.payload;return{type:r.SET_BANKID_TRANSACTION_ID,payload:e}},m=function(t){var e=t.payload;return{type:r.SET_BANKID_AUTO_START_TOKEN,payload:e}},g=function(t){var e=t.payload;return{type:r.SET_BANKID_QR_CODE_RESPONSE,payload:e}}},itU4:function(t,e,n){"use strict";n.d(e,{A0:function(){return _},Ac:function(){return p},Ay:function(){return l},BG:function(){return u},Bk:function(){return s},JH:function(){return m},RO:function(){return y},Se:function(){return f},Tw:function(){return d},W5:function(){return o},bz:function(){return c},cb:function(){return i},dE:function(){return v},fr:function(){return g},iY:function(){return a},ln:function(){return h}});var r=function(t){return t.widgetState},o=function(t){return r(t).isWidgetBoxVisible},i=function(t){return r(t).isAttentionSeekerVisible},a=function(t){return r(t).widgetFontSizeEnlargeRatio},u=function(t){return r(t).isCoBrowsingActive},c=function(t){return r(t).isCoBrowsingStreamInitialized},s=function(t){return r(t).isNotificationIndicatorVisible},l=function(t){return r(t).isNotificationsSnoozedUntil},f=function(t){return r(t).lastAction},h=function(t){return r(t).clickSpamDetected},p=function(t){return r(t).isInitialized},_=function(t){return r(t).isWidgetLoaded},d=function(t){return r(t).isTranslationDisabled},v=function(t){return r(t).isSupportBot},y=function(t){return r(t).bankIdTransactionId},m=function(t){return r(t).bankIdAutoStartToken},g=function(t){return r(t).bankIdQrCodeResponse}},t2ng:function(t,e,n){"use strict";n.d(e,{I4:function(){return o},KQ:function(){return d},Ou:function(){return h},_j:function(){return l},ce:function(){return u},gq:function(){return g},hR:function(){return f},lZ:function(){return m},oc:function(){return a},ql:function(){return i},tS:function(){return c},vz:function(){return r},w$:function(){return s},w7:function(){return y},y5:function(){return v},z1:function(){return _},zy:function(){return p}});var r="user_opens_chat",o="user_visits",i="user_closes_chat",a="user_clicks",u="user_scrolls",c="user_leaves_form",s="user_is_inactive",l="user_interacted_with_bot",f="agent_available",h="agent_unavailable",p="do_nothing",_="open",d="attention_message",v="attention_question",y="attention_quick_replies",m="attention_rating",g="attention_input"},kut6:function(t,e,n){"use strict";n.d(e,{rq:function(){return O},KH:function(){return L},tm:function(){return x}});var r,o=n("bK3N"),i=n("XsSB"),a=n("Es6C"),u=n("t2ng"),c=n("K1NN"),s=n("+vdt"),l=n("itU4"),f=n("8bwe"),h=n("/tKw"),p=n("HBUd"),_=n("badv"),d=n("O31P"),v=function(t){var e,n,i,a,c=(0,o.Z)().dispatch;r&&clearTimeout(r),t.should.hide&&parseInt(t.should.hide)&&((null==(e=t.should)?void 0:e.type)===u.KQ||(null==(n=t.should)?void 0:n.type)===u.y5||(null==(i=t.should)?void 0:i.type)===u.lZ||(null==(a=t.should)?void 0:a.type)===u.w7)&&(r=setTimeout((function(t){c((0,s.vt)({payload:!1})),(0,d.ai)(t.id),clearTimeout(r)}),1e3*parseInt(t.should.hide),t))},y=function(){var t=(0,o.Z)(),e=t.dispatch,n=t.store;(0,l.W5)(n)||(e((0,s.Vi)({payload:!0})),(0,p.Z)())},m=function(t){var e,n,r,i=(0,o.Z)(),a=i.dispatch,u=i.store,h=(null==(e=t.should)?void 0:e.message)||"",p=(null==(n=t.should)?void 0:n.hideCloseButton)||!1,_=(null==(r=t.should)?void 0:r.hideAttentionSeekerAvatar)||!1;(0,l.W5)(u)||(0,l.cb)(u)||!h||(v(t),a((0,c.gr)()),a((0,c.sF)({payload:{text:h,hideCloseButton:p,hideAttentionSeekerAvatar:_,trigger:t}})),a((0,s.vt)({payload:!0})),(0,f.D1)(t.id))},g=function(t){var e,n,r=(0,o.Z)(),i=r.dispatch,a=r.store,u=t.should.message||"",h=(null==(e=t.should)?void 0:e.hideCloseButton)||!1,d=(null==(n=t.should)?void 0:n.hideAttentionSeekerAvatar)||!1;if(!(0,l.W5)(a)&&!(0,l.cb)(a)&&u){v(t);var y=t.should.confirm_text||"",m=t.should.ignore_text||"";i((0,c.gr)()),i((0,c.sF)({payload:{text:u,onNo:function(){i((0,s.vt)({payload:!1}))},onYes:function(){i((0,s.Vi)({payload:!0})),i((0,s.vt)({payload:!1})),(0,p.Z)(),t.scenario&&t.scenario.answers&&(0,_.g)(t)},yesText:y,noText:m,hasActionButtons:!0,hideCloseButton:h,hideAttentionSeekerAvatar:d,trigger:t}})),i((0,s.vt)({payload:!0})),(0,f.D1)(t.id)}},E=function(t){var e,n,r=(0,o.Z)(),i=r.dispatch,a=r.store,u=t.should.message||"",h=t.should.buttons||[],p=t.should.buttons_position||"vertical",_=(null==(e=t.should)?void 0:e.hideCloseButton)||!1,d=(null==(n=t.should)?void 0:n.hideAttentionSeekerAvatar)||!1;(0,l.W5)(a)||(0,l.cb)(a)||!h||(v(t),i((0,c.gr)()),i((0,c.sF)({payload:{text:u,suggestions:h,onNo:function(){i((0,s.vt)({payload:!1}))},buttonsPosition:p,hideCloseButton:_,hideAttentionSeekerAvatar:d,trigger:t}})),i((0,s.vt)({payload:!0})),(0,f.D1)(t.id))},b=function(t){var e,n=(0,o.Z)(),r=n.dispatch,i=n.store,a=(null==(e=t.should)?void 0:e.hideCloseButton)||!1;if((0,l.W5)(i)&&r((0,s.Vi)({payload:!1})),!(0,l.cb)(i)){var u;v(t),r((0,c.gr)());var f=(null==(u=t.should)?void 0:u.ratingType)||"stars";r((0,c.sF)({payload:{hideCloseButton:a,rating:!0,ratingType:f,trigger:t}})),(0,h.Z)({publishCloseEvent:!0})}},w=function(t){var e,n,r=(0,o.Z)(),i=r.dispatch,a=r.store,u=(null==(e=t.should)?void 0:e.hideCloseButton)||!1;(0,l.W5)(a)||!(0,l.cb)(a)&&null!=(n=t.should)&&n.input_scenario&&(v(t),i((0,c.gr)()),i((0,c.sF)({payload:{hideCloseButton:u,input:!0,trigger:t}})),(0,_.g)({scenario:{id:t.should.input_scenario}}))},I=n("xND6"),T=n("db6H"),S=n("mdyu"),O=function(t,e){var n,r;void 0===e&&(e="");var c=(0,o.Z)().store,s=(0,l.Ac)(c);if((0,d.KD)())return!1;var f=(null==(n=t.should)?void 0:n.display)||"both";return!("mobile"===f&&!(0,i.Z)().isMobile||"desktop"===f&&(0,i.Z)().isMobile)&&(!t.default||!(0,d.iv)(t.id))&&!("once_per_session"===t.how_often&&(0,d.iv)(t.id)&&!function(t){var e=(0,o.Z)().store;if((0,l.Ac)(e))return!1;var n=(0,a.Z)().chatId,r=(0,T.dm)(n)(e);return t.default&&(0,d.iv)(t.id)&&!r.length}(t))&&!((null==(r=t.should)?void 0:r.type)===u.lZ&&!s)&&(t.when||[]).reduce((function(t,n){var r,o,i=!1;return n.type===e&&(i=!0),n.type===u.I4&&n.values.filter((function(t){var e="string"==typeof t?t:t.value||"",n="string"!=typeof t&&t.condition?t.condition:"contains";return"contains"===n?window.location.href.includes(e):"equals"===n?window.location.href===e:"starts"===n?window.location.href.startsWith(e):"excludes"===n&&!window.location.href.includes(e)})).length&&(i=!0),n.type===u.ce&&(n.values||[])[0]<(0,I.Q)()&&(i=!0),n.type===u._j&&s&&(i=!0),n.type===u.hR&&(i=null==(r=c.agents.available)?void 0:r.any,(n.values||[]).length&&(i=!n.values.find((function(t){var e,n;return!(null!=(e=c.agents.available)&&null!=(n=e.skills)&&n.includes(t))})))),n.type===u.Ou&&(i=!(null!=(o=c.agents.available)&&o.any),(n.values||[]).length&&(i=n.values.find((function(t){var e,n;return!(null!=(e=c.agents.available)&&null!=(n=e.skills)&&n.includes(t))})))),t&&i}),!0)},L=function(t){var e;t.should&&t.should.type&&t.should.type!==u.zy&&function(t){var e,n=1e3*parseInt(null==(e=t.should)?void 0:e.delay)||0;setTimeout((function(){return function(t){var e;if(!(0,d.Ag)(t.id))switch(null==(e=t.should)?void 0:e.type){case u.z1:y();break;case u.KQ:m(t);break;case u.y5:g(t);break;case u.w7:E(t);break;case u.lZ:b(t);break;case u.gq:w(t)}}(t)}),n)}(t),t.scenario&&t.scenario.answers&&(null==(e=t.should)?void 0:e.type)!==u.y5&&(0,_.g)(t),t.disable_triggers_after&&(0,d.ko)(),(0,d.ey)(t)},x=function(t){if(console.log({id:t}),!t)return!1;var e=(0,o.Z)().store,n=(0,S.ks)(e),r=n.find((function(e){return e.id===t}));return console.log({triggers:n,trigger:r}),!!r&&(L(r),!0)}},badv:function(t,e,n){"use strict";n.d(e,{g:function(){return g}});var r=n("+9dH"),o=n("7Cbv"),i=n("e5fA"),a=n("8R7p"),u=n("bK3N"),c=n("3bAv"),s=n("Es6C"),l=n("i+Et"),f=n("ceTw"),h=n("uiih"),p=n("O31P"),_=n("iQvE"),d=n("jz8p"),v=n("A14V"),y=n("mdyu"),m=n("itU4"),g=function t(e){var n=(0,u.Z)(),g=n.dispatch,E=n.store,b=(0,s.Z)().chatId,w=(0,c.Z)(),I=(0,y.rs)(E),T=(0,m.Ac)(E);if(!(e.default&&(0,d.Z)()&&function(){var t=(0,u.Z)().store,e=(0,_.Go)(t);return"input"===(null==e?void 0:e.start_page_footer)}())){e.default||!I||(0,p.iv)(I.id)||(t(I),(0,p.ey)(I)),T||(e.scenario.answers||[]).forEach((function(t){null!=t&&t.input_field&&w.setItem(a.I.EBBOT_INPUT_FIELD_VISIBILITY,t.input_field),null!=t&&t.allow_upload&&w.setItem(a.I.EBBOT_ALLOW_UPLOAD,t.allow_upload)}));var S={id:(0,o.Z)(),sender:i.Me.USER,timestamp:(0,f.u)(),type:i.tq.SCENARIO,value:{scenario:e.scenario.id}};if(T)(0,h.Z)(S);else if(e.default){var O=e.scenario.answers.map((function(t,e){return(0,r.Z)({},t,{id:(0,o.Z)(),sender:i.Me.BOT,timestamp:(0,f.u)()+e,shouldMatch:!0})}));g((0,v.m6)({chatId:b,messages:[S].concat(O)}))}else(0,l.Z)().then((function(){return(0,h.Z)(S)}))}}},O31P:function(t,e,n){"use strict";n.d(e,{Ag:function(){return a},KD:function(){return f},ai:function(){return i},ey:function(){return s},iv:function(){return l},ko:function(){return h},vr:function(){return p}});var r=n("8R7p"),o=n("3bAv"),i=function(t){var e=(0,o.Z)(),n=u();n.push(t);var i=n.filter((function(t,e,n){return n.indexOf(t)===e}));e.setItem(r.I.EBBOT_ATTENTION_SEEKER_DISABLED,JSON.stringify(i))},a=function(t){var e;return(e=(0,o.Z)(),JSON.parse(e.getItem(r.I.EBBOT_ATTENTION_SEEKER_DISABLED)||"[]")).includes(t)},u=function(){var t=(0,o.Z)();return JSON.parse(t.getItem(r.I.EBBOT_TRIGGERS)||"[]")},c=function(){var t=(0,o.Z)();return JSON.parse(t.getItem(r.I.EBBOT_SESSION_TRIGGERS)||"[]")},s=function(t){var e=(0,o.Z)(),n=u();n.push(t.id);var i=n.filter((function(t,e,n){return n.indexOf(t)===e}));if(e.setItem(r.I.EBBOT_TRIGGERS,JSON.stringify(i)),"once_per_session"===t.how_often&&!t.default){var a=c();a.push(t.id);var s=a.filter((function(t,e,n){return n.indexOf(t)===e}));e.setItem(r.I.EBBOT_SESSION_TRIGGERS,JSON.stringify(s))}},l=function(t){var e=u(),n=c();return e.includes(t)||n.includes(t)},f=function(){return(0,o.Z)().getItem(r.I.EBBOT_TRIGGERS_DISABLED)||!1},h=function(){return(0,o.Z)().setItem(r.I.EBBOT_TRIGGERS_DISABLED,!0)},p=function(){var t=(0,o.Z)();t.removeItem(r.I.EBBOT_ATTENTION_SEEKER_DISABLED),t.removeItem(r.I.EBBOT_TRIGGERS_DISABLED),t.setItem(r.I.EBBOT_TRIGGERS,"[]")}},xND6:function(t,e,n){"use strict";n.d(e,{Q:function(){return r}});var r=function(){var t=document.documentElement,e=document.body,n="scrollTop",r="scrollHeight";return(t[n]||e[n])/((t[r]||e[r])-t.clientHeight)*100}},"1Bh/":function(t,e,n){"use strict";n.d(e,{bn:function(){return p},dn:function(){return h},nm:function(){return f},u5:function(){return l}});var r=n("8R7p"),o=n("bK3N"),i=n("gcTl"),a=n("mdyu"),u=n("Es6C"),c=n("t2ng"),s=n("kut6"),l=function(){var t=(0,o.Z)(),e=t.dispatch,n=t.store,l=(0,u.Z)().chatId;(0,a.TY)(n).forEach((function(t){(0,s.rq)(t,c.vz)&&((0,s.KH)(t),t.scenario&&t.scenario.answers&&t.trigger_scenario&&!t.default&&e((0,i.p)({path:r.V3.CONVERSATION,params:{chatId:l}})))}))},f=function(){var t=(0,o.Z)().store;(0,a.jV)(t).forEach((function(t){(0,s.rq)(t,c.ql)&&(0,s.KH)(t)}))},h=function(){var t=(0,o.Z)().store;(0,a.Y7)(t).forEach((function(t){(0,s.rq)(t)&&(0,s.KH)(t)}))},p=function(){var t=(0,o.Z)().store;(0,a.mn)(t).forEach((function(t){return(0,s.rq)(t,c.w$)&&(0,s.KH)(t)}))}},zORs:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=n("tzDv"),o=n.n(r),i=n("bK3N"),a=n("YCz7"),u=n("+vdt");function c(){var t=(0,i.Z)().dispatch;(0,a.Z)()?o().Permission.request((function(){t((0,u.jx)({payload:!1}))}),(function(){console.warn("Push notifications denied"),t((0,u.jx)({payload:!0}))})):t((0,u.jx)({payload:!0}))}},"8bwe":function(t,e,n){"use strict";n.d(e,{$K:function(){return _},$x:function(){return w},Bq:function(){return v},D1:function(){return E},E:function(){return m},it:function(){return T}});var r=n("/0+J"),o=n("e/DM"),i=n("G+e7"),a=n("SXfD"),u=n("cr2b"),c=n("8R7p"),s=n("3bAv");function l(){l=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function s(t,e,n,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),u=new O(o||[]);return r(a,"_invoke",{value:w(t,n,u)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var h={};function p(){}function _(){}function d(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(L([])));m&&m!==e&&n.call(m,i)&&(v=m);var g=d.prototype=p.prototype=Object.create(v);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function o(r,i,a,u){var c=f(t[r],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){o("next",t,a,u)}),(function(t){o("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,u)}))}u(c.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=I(a,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=f(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function I(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,I(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function L(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return _.prototype=d,r(g,"constructor",{value:d,configurable:!0}),r(d,"constructor",{value:_,configurable:!0}),_.displayName=c(d,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,c(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},E(b.prototype),c(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new b(s(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(g),c(g,u,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=L,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:L(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}var f=[];setInterval((function(){if(f.length){var t;try{t=(0,s.Z)().getItem(c.I.EBBOT_SESSION_TOKEN)}catch(t){console.log(t)}if(t){var e=f.splice(0,10);e.length&&h(e)}else(0,u.AL)()||(0,u.bz)()||(0,u.DB)()}}),5e3);var h=function(){var t=(0,r.Z)(l().mark((function t(e,n){var r,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===n&&(n=0),!(n>=5)){t.next=3;break}return t.abrupt("return");case 3:return r=(0,s.Z)(),o=r.getItem(c.I.EBBOT_SESSION_TOKEN),t.abrupt("return",a.Z.post("/widget/analytics",{messages:e},{headers:{Authorization:o}}).catch((function(t){401===t.response.status&&(0,u.DB)().then((function(){return h(e,n+1)}))})));case 6:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),p=function(){var t=(0,r.Z)(l().mark((function t(e){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!o.wQ.split(",").includes(window.location.hostname)){t.next=2;break}return t.abrupt("return",Promise.resolve());case 2:f=[].concat(f,e);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();function _(){return d.apply(this,arguments)}function d(){return(d=(0,r.Z)(l().mark((function t(){var e;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,i.Z)(),t.abrupt("return",p({type:"blob-display",data:{bot_id:e}}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function v(){return y.apply(this,arguments)}function y(){return(y=(0,r.Z)(l().mark((function t(){var e;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,i.Z)(),t.abrupt("return",p({type:"blob-click",data:{bot_id:e,event_type:0}}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function m(){return g.apply(this,arguments)}function g(){return(g=(0,r.Z)(l().mark((function t(){var e;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,i.Z)(),t.abrupt("return",p({type:"blob-click",data:{bot_id:e,event_type:1}}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function E(t){return b.apply(this,arguments)}function b(){return(b=(0,r.Z)(l().mark((function t(e){var n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(0,i.Z)(),t.abrupt("return",p({type:"attention-seeker-event",data:{bot_id:n,attention_seeker_id:e,event_type:0}}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function w(t){return I.apply(this,arguments)}function I(){return(I=(0,r.Z)(l().mark((function t(e){var n;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(0,i.Z)(),t.abrupt("return",p({type:"attention-seeker-event",data:{bot_id:n,attention_seeker_id:e,event_type:1}}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function T(t,e){return S.apply(this,arguments)}function S(){return(S=(0,r.Z)(l().mark((function t(e,n){var r;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=(0,i.Z)(),t.abrupt("return",p({type:"attention-seeker-button-event",data:{bot_id:r,attention_seeker_id:e,button_name:n}}));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},JIiT:function(t,e,n){"use strict";n.d(e,{K:function(){return s},d:function(){return u}});var r=n("/0+J"),o=n("bK3N"),i=n("+vdt");function a(){a=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),u=new O(o||[]);return r(a,"_invoke",{value:w(t,n,u)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function p(){}function _(){}function d(){}var v={};s(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(L([])));m&&m!==e&&n.call(m,i)&&(v=m);var g=d.prototype=p.prototype=Object.create(v);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function o(r,i,a,u){var c=f(t[r],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){o("next",t,a,u)}),(function(t){o("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,u)}))}u(c.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=I(a,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=f(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function I(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,I(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function L(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return _.prototype=d,r(g,"constructor",{value:d,configurable:!0}),r(d,"constructor",{value:_,configurable:!0}),_.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},E(b.prototype),s(b.prototype,u,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new b(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=L,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:L(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function u(){return c.apply(this,arguments)}function c(){return(c=(0,r.Z)(a().mark((function t(){var e,n,r;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,o.Z)(),n=e.dispatch,t.prev=1,t.next=4,navigator.mediaDevices.getDisplayMedia({video:{cursor:"always"},audio:!1,preferCurrentTab:!0});case 4:r=t.sent,window.Ebbot_Stream=r,n((0,i.Qp)({payload:!0})),n((0,i.Jr)({payload:!0})),t.next=15;break;case 10:t.prev=10,t.t0=t.catch(1),console.error("Error: "+t.t0),n((0,i.Qp)({payload:!1})),n((0,i.Jr)({payload:!1}));case 15:case"end":return t.stop()}}),t,null,[[1,10]])})))).apply(this,arguments)}function s(){return l.apply(this,arguments)}function l(){return(l=(0,r.Z)(a().mark((function t(){var e,n,r;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=(0,o.Z)(),n=e.dispatch,(r=window.Ebbot_Stream)&&r.getTracks().forEach((function(t){return t.stop()})),n((0,i.Qp)({payload:!1})),n((0,i.Jr)({payload:!1}));case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},XsSB:function(t,e,n){"use strict";function r(){var t,e,n=window.navigator.userAgent,r=(null==(t=window.navigator)||null==(e=t.userAgentData)?void 0:e.platform)||window.navigator.platform;return-1!==["iPhone","iPad","iPod"].indexOf(r)||r.match(/MacIntel/)&&window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>2?{os:"iOS",isMobile:!0}:-1!==["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(r)?{os:"Mac OS",isMobile:!1}:-1!==["Win32","Win64","Windows","WinCE"].indexOf(r)?{os:"Windows",isMobile:!1}:/Android/.test(n)?{os:"Android",isMobile:!0}:/Linux/.test(r)?{os:"Linux",isMobile:!1}:{os:"other-os",isMobile:!1}}function o(){return r()}n.d(e,{Z:function(){return r},k:function(){return o}})},"/tKw":function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var r=n("/0+J"),o=n("uiih"),i=n("lqEK"),a=n("8R7p"),u=n("JIiT"),c=n("3bAv");function s(){s=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function l(t,e,n,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),u=new O(o||[]);return r(a,"_invoke",{value:w(t,n,u)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function p(){}function _(){}function d(){}var v={};c(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(L([])));m&&m!==e&&n.call(m,i)&&(v=m);var g=d.prototype=p.prototype=Object.create(v);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function o(r,i,a,u){var c=f(t[r],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){o("next",t,a,u)}),(function(t){o("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,u)}))}u(c.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=I(a,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=f(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function I(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,I(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function L(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return _.prototype=d,r(g,"constructor",{value:d,configurable:!0}),r(d,"constructor",{value:_,configurable:!0}),_.displayName=c(d,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,c(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},E(b.prototype),c(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new b(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(g),c(g,u,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=L,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:L(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function l(t){return f.apply(this,arguments)}function f(){return(f=(0,r.Z)(s().mark((function t(e){var n,r,l;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.publishCloseEvent,r=void 0===n||n,l=(0,c.Z)(),(0,i.Z)()){t.next=4;break}return t.abrupt("return",!1);case 4:if("true"===l.getItem(a.I.EBBOT_CO_BROWSING)&&(0,u.K)(),!r){t.next=7;break}return t.abrupt("return",(0,o.Z)({type:a.zA.ACTION,value:a.hd.CLOSE_CHAT,stop:!0}));case 7:return t.abrupt("return",!0);case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},"Z+uI":function(t,e,n){"use strict";var r=n("LTwd");e.Z=function(){var t=(0,r.Z)(),e=new URLSearchParams(window.location.search),n=t.apiUrl||e.get("apiUrl");return n?n+"/api":void 0}},"k+I6":function(t,e,n){"use strict";var r=n("3bAv"),o=n("8R7p");e.Z=function(){var t=(0,r.Z)().getItem(o.I.EBBOT_AGENTS_INFO);return t?JSON.parse(t):{}}},"G+e7":function(t,e,n){"use strict";var r=n("LTwd");e.Z=function(){var t=(0,r.Z)(),e=new URLSearchParams(window.location.search);return t.botId||e.get("botId")}},yCGr:function(t,e,n){"use strict";var r=n("3bAv"),o=n("8R7p");e.Z=function(){var t=(0,r.Z)().getItem(o.I.EBBOT_CLICKED_BUTTONS);return t?JSON.parse(t):{}}},Es6C:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=n("7Cbv"),o=n("G+e7"),i=n("3bAv"),a=n("ceTw"),u=n("8R7p"),c=function(t){var e,n=t||{},c=n.useSessionStorage,s=n.createNewSession,l=void 0!==s&&s,f=(0,o.Z)(),h=(0,i.Z)({useSessionStorage:c}),p=h.getItem(u.I.EBBOT_CHAT_SESSION_NAME),_=h.getItem(u.I.EBBOT_CHAT_SESSION_CLIENT_ID),d=h.getItem(u.I.EBBOT_CHAT_SESSION_ID),v=h.getItem(u.I.EBBOT_INITIALIZED)||"false",y=h.getItem(u.I.EBBOT_CO_BROWSING)||"false",m=h.getItem(u.I.EBBOT_ALERT_BOX_VISIBLE)||"true",g=h.getItem(u.I.EBBOT_TRIGGERS)||"[]",E=h.getItem(u.I.EBBOT_SESSION_TRIGGERS)||"[]",b=h.getItem(u.I.EBBOT_INPUT_FIELD_VISIBILITY)||"visible",w=h.getItem(u.I.EBBOT_ALLOW_UPLOAD)||"enabled",I=h.getItem(u.I.EBBOT_CLICKED_BUTTONS)||"{}",T=h.getItem(u.I.EBBOT_IS_AGENT_HANDOVER_LOGIC_EXECUTED)||"false",S=h.getItem(u.I.EBBOT_THEME_DETAILS)||"{}",O=p&&_===f&&!l?p:(e=["Aaron","Abigail","Abbey","Brant","Braulio","Braxton","Coty","Courtney","Coy","Dovie","Doyle","Drake","Era","Eriberto","Eric","Fabiola","Fae","Fannie","Gregorio","Gregory","Greta","Ivy","Izabella","Izaiah","Johnnie","Johnny","Johnpaul","Kendra","Kendrick","Kenna","Luisa","Lukas","Lula","Misael","Missouri","Misty","Mitchel","Nils","Nina","Noah","Otis","Ottilie","Ottis","Priscilla","Providenci","Prudence","Queen","Queenie","Quentin","Rudolph","Rudy","Rupert","Russ","Stan","Stanford","Stanley","Stanton","Tobin","Toby","Tod","Tom","Ulises","Una","Unique","Urban","Uriah","Uriel","Vincenzo","Vinnie","Viola","Violet","Virgie","Willa","Willard","William","Willis","Xander","Xavier","Yadira","Zena","Zetta","Zion","Zita"])[Math.floor(Math.random()*e.length)]+" "+e[Math.floor(Math.random()*e.length)],L=d&&_===f&&!l?d:(0,a.u)()+"."+(0,r.Z)(),x=g&&_===f&&!l?g:"[]",A=E&&_===f&&!l?E:"[]",N="true"!==v||l?"false":v,k="true"!==y||l?"false":y,C=l?"true":m,P=l?"visible":b,R=l?"enabled":w,B=l?"{}":I,D="true"!==T||l?"false":T;return h.setItem(u.I.EBBOT_CHAT_SESSION_CLIENT_ID,f),h.setItem(u.I.EBBOT_CHAT_SESSION_NAME,O),h.setItem(u.I.EBBOT_CHAT_SESSION_ID,L),h.setItem(u.I.EBBOT_INITIALIZED,N),h.setItem(u.I.EBBOT_CO_BROWSING,k),h.setItem(u.I.EBBOT_TRIGGERS,x),h.setItem(u.I.EBBOT_SESSION_TRIGGERS,A),h.setItem(u.I.EBBOT_ALERT_BOX_VISIBLE,C),h.setItem(u.I.EBBOT_INPUT_FIELD_VISIBILITY,P),h.setItem(u.I.EBBOT_ALLOW_UPLOAD,R),h.setItem(u.I.EBBOT_CLICKED_BUTTONS,B),h.setItem(u.I.EBBOT_IS_AGENT_HANDOVER_LOGIC_EXECUTED,D),l&&(h.removeItem(u.I.EBBOT_TRIGGERS_DISABLED),h.removeItem(u.I.EBBOT_INPUT_FIELD_VISIBILITY),h.removeItem(u.I.EBBOT_ATTENTION_SEEKER_DISABLED),h.removeItem(u.I.EBBOT_IS_WIDGET_BOX_VISIBLE),h.removeItem(u.I.EBBOT_USER_INFO)),{botId:f,chatId:L,userId:L,type:"user",full_name:O,pathname:window.location.pathname,theme_details:S}}},"3bAv":function(t,e,n){"use strict";var r=n("iQvE"),o=n("bK3N"),i=n("G+e7");e.Z=function(t){void 0===t&&(t={});var e=(0,i.Z)(),n=!1;if(t.useSessionStorage)n=t.useSessionStorage;else{var a=(window.Ebbot_Store?(0,o.Z)():{}).store,u=(0,r.Go)(a)||{};n=null==u?void 0:u.clear_chat_on_tab}var c=n?window.sessionStorage:window.localStorage,s=e+"_";return{getPrefix:function(){return s},setItem:function(t,e){c.setItem(""+s+t,e)},getItem:function(t){return c.getItem(""+s+t)},removeItem:function(t){c.removeItem(""+s+t)},clear:function(){Object.keys(c).forEach((function(t){t.startsWith(s)&&c.removeItem(t)}))}}}},LTwd:function(t,e,n){"use strict";function r(){return window.Ebbot=window.Ebbot||{}}n.d(e,{Z:function(){return r}})},VLED:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,{Z:function(){return handleScenario}});var _babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("/0+J"),_websocket_connectedPublishWSEvent__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("uiih"),_components_chat_message_constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("e5fA"),_constants__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("8R7p"),_store_getStore__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("bK3N"),_getSession__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("Es6C"),_resetChat__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("m8BB"),_coBrowsing__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("JIiT"),_samlSso__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("VihR"),_openInNewTabUrl__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("bdCd"),uuid__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("7Cbv"),_timeUtils__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("ceTw"),_store_chatConfig_selectors__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("iQvE"),_store_conversations_actions__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("A14V"),_store_conversations_selectors__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("db6H"),_store_widgetState_actions__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("+vdt"),_store_widgetState_selectors__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("itU4"),spamTimeoutId,lastActionTimeoutId;function _regeneratorRuntime(){_regeneratorRuntime=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function s(t,e,n,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),u=new S(o||[]);return r(a,"_invoke",{value:b(t,n,u)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function _(){}var d={};c(d,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==e&&n.call(y,i)&&(d=y);var m=_.prototype=h.prototype=Object.create(d);function g(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function o(r,i,a,u){var c=l(t[r],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,u)}),(function(t){o("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,u)}))}u(c.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function b(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===f)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function w(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=l(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function O(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return p.prototype=_,r(m,"constructor",{value:_,configurable:!0}),r(_,"constructor",{value:p,configurable:!0}),p.displayName=c(_,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c(t,u,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},g(E.prototype),c(E.prototype,a,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(s(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},g(m),c(m,u,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=O,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function handleScenario(t,e){return _handleScenario.apply(this,arguments)}function _handleScenario(){return _handleScenario=(0,_babel_runtime_helpers_asyncToGenerator__WEBPACK_IMPORTED_MODULE_15__.Z)(_regeneratorRuntime().mark((function _callee(scenario,options){var _scenario,_scenario2,_scenario3,_scenario4,_scenario5,_scenario6,_scenario7,_scenario10,_scenario11,_options,isCalledByUserClickingOnButton,_getStore,dispatch,store,_getSession,chatId,lastAction,isConversationClosed,chatStyle,isStartPageEnabled,_scenario8,_scenario9,message,_scenario13,_scenario13$value,_scenario12,_scenario14,_scenario14$value;return _regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(void 0===scenario&&(scenario={}),void 0===options&&(options={}),_options=options,isCalledByUserClickingOnButton=_options.isCalledByUserClickingOnButton,_getStore=(0,_store_getStore__WEBPACK_IMPORTED_MODULE_3__.Z)(),dispatch=_getStore.dispatch,store=_getStore.store,_getSession=(0,_getSession__WEBPACK_IMPORTED_MODULE_4__.Z)(),chatId=_getSession.chatId,lastAction=(0,_store_widgetState_selectors__WEBPACK_IMPORTED_MODULE_14__.Se)(store),isConversationClosed=(0,_store_conversations_selectors__WEBPACK_IMPORTED_MODULE_12__.sB)(chatId)(store),chatStyle=(0,_store_chatConfig_selectors__WEBPACK_IMPORTED_MODULE_10__.Go)(store),isStartPageEnabled=null==chatStyle?void 0:chatStyle.start_page_enabled,!isConversationClosed||null==(_scenario=scenario)||!_scenario.value||(null==(_scenario2=scenario)?void 0:_scenario2.type)!==_components_chat_message_constants__WEBPACK_IMPORTED_MODULE_1__.tq.URL||scenario.value.startsWith("ebbot://")||null!=scenario.value.startsWith&&scenario.value.startsWith("js://")){_context.next=12;break}return(0,_openInNewTabUrl__WEBPACK_IMPORTED_MODULE_8__.Z)(scenario.value),_context.abrupt("return");case 12:if(!isConversationClosed||scenario.type===_components_chat_message_constants__WEBPACK_IMPORTED_MODULE_1__.tq.RATING||"ebbot://reset"===scenario.value){_context.next=14;break}return _context.abrupt("return");case 14:if(!lastAction||lastAction!==(null==(_scenario3=scenario)?void 0:_scenario3.type)+"-"+(null==(_scenario4=scenario)?void 0:_scenario4.value)){_context.next=19;break}return dispatch((0,_store_widgetState_actions__WEBPACK_IMPORTED_MODULE_13__.Hg)({payload:!0})),clearTimeout(spamTimeoutId),spamTimeoutId=setTimeout((function(){dispatch((0,_store_widgetState_actions__WEBPACK_IMPORTED_MODULE_13__.Hg)({payload:!1}))}),_constants__WEBPACK_IMPORTED_MODULE_2__.lF),_context.abrupt("return");case 19:if(!isCalledByUserClickingOnButton||(null==(_scenario5=scenario)?void 0:_scenario5.type)!==_components_chat_message_constants__WEBPACK_IMPORTED_MODULE_1__.tq.SCENARIO&&(null==(_scenario6=scenario)?void 0:_scenario6.type)!==_components_chat_message_constants__WEBPACK_IMPORTED_MODULE_1__.tq.URL&&(null==(_scenario7=scenario)?void 0:_scenario7.type)!==_components_chat_message_constants__WEBPACK_IMPORTED_MODULE_1__.tq.VARIABLE||(message={id:(0,uuid__WEBPACK_IMPORTED_MODULE_16__.Z)(),type:_components_chat_message_constants__WEBPACK_IMPORTED_MODULE_1__.tq.BUTTON_CLICK,sender:_components_chat_message_constants__WEBPACK_IMPORTED_MODULE_1__.Me.USER,value:(null==(_scenario8=scenario)?void 0:_scenario8.label)||"",label:(null==(_scenario9=scenario)?void 0:_scenario9.label)||"",pending:!0,timestamp:(0,_timeUtils__WEBPACK_IMPORTED_MODULE_9__.u)()},dispatch((0,_store_conversations_actions__WEBPACK_IMPORTED_MODULE_11__.m6)({chatId:chatId,messages:[message]})),(0,_websocket_connectedPublishWSEvent__WEBPACK_IMPORTED_MODULE_0__.Z)(message)),dispatch((0,_store_widgetState_actions__WEBPACK_IMPORTED_MODULE_13__.ho)({payload:(null==(_scenario10=scenario)?void 0:_scenario10.type)+"-"+(null==(_scenario11=scenario)?void 0:_scenario11.value)})),clearTimeout(lastActionTimeoutId),lastActionTimeoutId=setTimeout((function(){dispatch((0,_store_widgetState_actions__WEBPACK_IMPORTED_MODULE_13__.ho)({payload:null}))}),_constants__WEBPACK_IMPORTED_MODULE_2__.Aw),!scenario.next||scenario.type!==_components_chat_message_constants__WEBPACK_IMPORTED_MODULE_1__.tq.SCENARIO){_context.next=26;break}return _context.next=26,(0,_websocket_connectedPublishWSEvent__WEBPACK_IMPORTED_MODULE_0__.Z)({type:_components_chat_message_constants__WEBPACK_IMPORTED_MODULE_1__.tq.SCENARIO,value:scenario.next});case 26:if(!scenario.value||scenario.type!==_components_chat_message_constants__WEBPACK_IMPORTED_MODULE_1__.tq.URL){_context.next=75;break}if(!scenario.value.startsWith("ebbot://")){_context.next=66;break}if("ebbot://reset"!==scenario.value){_context.next=38;break}return _context.next=31,(0,_websocket_connectedPublishWSEvent__WEBPACK_IMPORTED_MODULE_0__.Z)({type:_constants__WEBPACK_IMPORTED_MODULE_2__.zA.URL_CLICK,value:scenario.value});case 31:return _context.next=33,(0,_websocket_connectedPublishWSEvent__WEBPACK_IMPORTED_MODULE_0__.Z)({type:_components_chat_message_constants__WEBPACK_IMPORTED_MODULE_1__.tq.BUTTON_CLICK,label:null==(_scenario12=scenario)?void 0:_scenario12.label});case 33:return dispatch((0,_store_widgetState_actions__WEBPACK_IMPORTED_MODULE_13__.Hg)({payload:!1})),dispatch((0,_store_widgetState_actions__WEBPACK_IMPORTED_MODULE_13__.ho)({payload:null})),_context.abrupt("return",(0,_resetChat__WEBPACK_IMPORTED_MODULE_5__.Z)({redirectToNewConversationSession:!isStartPageEnabled,publishCloseEvent:!1}));case 38:if("ebbot://co-browsing-accept"!==scenario.value){_context.next=43;break}return _context.next=41,(0,_websocket_connectedPublishWSEvent__WEBPACK_IMPORTED_MODULE_0__.Z)({type:_constants__WEBPACK_IMPORTED_MODULE_2__.zA.URL_CLICK,value:scenario.value,stop:!0});case 41:case 60:_context.next=64;break;case 43:if("ebbot://startShareScreen"!==scenario.value){_context.next=49;break}return _context.next=46,(0,_websocket_connectedPublishWSEvent__WEBPACK_IMPORTED_MODULE_0__.Z)({type:_constants__WEBPACK_IMPORTED_MODULE_2__.zA.URL_CLICK,value:scenario.value});case 46:(0,_coBrowsing__WEBPACK_IMPORTED_MODULE_6__.d)(),_context.next=64;break;case 49:if("ebbot://stopShareScreen"!==scenario.value){_context.next=55;break}return _context.next=52,(0,_websocket_connectedPublishWSEvent__WEBPACK_IMPORTED_MODULE_0__.Z)({type:_constants__WEBPACK_IMPORTED_MODULE_2__.zA.URL_CLICK,value:scenario.value,stop:!0});case 52:(0,_coBrowsing__WEBPACK_IMPORTED_MODULE_6__.K)(),_context.next=64;break;case 55:if("ebbot://ssoSamlAccept"!==scenario.value){_context.next=62;break}return _context.next=58,(0,_samlSso__WEBPACK_IMPORTED_MODULE_7__.f)(scenario.idp_initiated_sso_url);case 58:return _context.next=60,(0,_websocket_connectedPublishWSEvent__WEBPACK_IMPORTED_MODULE_0__.Z)({type:_constants__WEBPACK_IMPORTED_MODULE_2__.zA.URL_CLICK,value:scenario.value});case 62:return _context.next=64,(0,_websocket_connectedPublishWSEvent__WEBPACK_IMPORTED_MODULE_0__.Z)({type:_constants__WEBPACK_IMPORTED_MODULE_2__.zA.URL_CLICK,value:scenario.value});case 64:_context.next=72;break;case 66:if(null==(_scenario13=scenario)||null==(_scenario13$value=_scenario13.value)||null==_scenario13$value.startsWith||!_scenario13$value.startsWith("js://")){_context.next=70;break}eval(null==(_scenario14=scenario)||null==(_scenario14$value=_scenario14.value)||null==_scenario14$value.replace?void 0:_scenario14$value.replace("js://","")),_context.next=72;break;case 70:return _context.next=72,(0,_websocket_connectedPublishWSEvent__WEBPACK_IMPORTED_MODULE_0__.Z)({type:_constants__WEBPACK_IMPORTED_MODULE_2__.zA.URL_CLICK,value:scenario.value},(function(){return(0,_openInNewTabUrl__WEBPACK_IMPORTED_MODULE_8__.Z)(scenario.value,{openIn:scenario.open_in})}));case 72:if(!scenario.next){_context.next=75;break}return _context.next=75,(0,_websocket_connectedPublishWSEvent__WEBPACK_IMPORTED_MODULE_0__.Z)({type:_components_chat_message_constants__WEBPACK_IMPORTED_MODULE_1__.tq.SCENARIO,value:scenario.next});case 75:if(scenario.type!==_components_chat_message_constants__WEBPACK_IMPORTED_MODULE_1__.tq.VARIABLE){_context.next=78;break}return _context.next=78,(0,_websocket_connectedPublishWSEvent__WEBPACK_IMPORTED_MODULE_0__.Z)({type:_components_chat_message_constants__WEBPACK_IMPORTED_MODULE_1__.tq.VARIABLE,value:{name:scenario.name,value:scenario.value}});case 78:case"end":return _context.stop()}}),_callee)}))),_handleScenario.apply(this,arguments)}},"i+Et":function(t,e,n){"use strict";n.d(e,{Z:function(){return y}});var r=n("+9dH"),o=n("BsQU"),i=n("e5fA"),a=n("8R7p"),u=n("iQvE"),c=n("A14V"),s=n("db6H"),l=n("bK3N"),f=n("+vdt"),h=n("itU4"),p=n("uiih"),_=n("Es6C"),d=n("3bAv"),v=n("Qcun");function y(){return new Promise((function(t){var e,n=(0,d.Z)(),y=(0,l.Z)(),m=y.store,g=y.dispatch,E=(0,h.Ac)(m),b=(0,u.Go)(m);E?t(void 0):(0,o.Z)({},{language:null==b||null==(e=b.chat_language)?void 0:e.short_name}).then((function(){var e=(0,_.Z)().chatId,o=(0,s.dm)(e)(m);n.setItem(a.I.EBBOT_INITIALIZED,"true"),g((0,f.UK)({payload:!0})),g((0,c.V$)({chatId:e,payload:{chat:{chat_messages:[].concat(o||[])}}})),(o||[]).filter((function(t){return t.type==i.tq.SCENARIO})).map((function(t){return(0,r.Z)({},t,{value:(0,r.Z)({},t.value,{skipTyping:!0})})})).forEach((function(t){return(0,p.Z)(t)})),(0,v.Z)("onStartConversation"),t(void 0)}))}))}},MKhc:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n("8R7p"),o=n("3bAv");function i(){return"true"===(0,o.Z)().getItem(r.I.EBBOT_IS_AGENT_HANDOVER_LOGIC_EXECUTED)}},lqEK:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n("bK3N"),o=n("itU4");function i(){var t=(0,r.Z)().store;return(0,o.Ac)(t)}},OPph:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n("bK3N"),o=n("itU4");function i(){var t=(0,r.Z)().store;return(0,o.W5)(t)}},"FaS+":function(t,e){"use strict";e.Z=!0},YCz7:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n("bK3N"),o=n("itU4");function i(){var t=(0,r.Z)().store;return(0,o.Ay)(t)}},jz8p:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n("iQvE"),o=n("bK3N");function i(){var t=(0,o.Z)().store,e=(0,r.Go)(t);return!(null==e||!e.start_page_enabled)}},bdCd:function(t,e,n){"use strict";n.d(e,{Z:function(){return c}});var r=n("iQvE"),o=n("bK3N"),i=n("+vdt"),a=n("XsSB");function u(t){var e=window.location,n=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(t)||[],r={protocol:n[1]||"",host:n[2]||"",port:n[3]||""},o=function(t){return t.port||{"http:":80,"https:":443}[t.protocol||e.protocol]};return!!(r.protocol&&r.protocol===e.protocol&&r.host&&r.host===e.hostname&&r.host&&o(r)===o(e))}var c=function(t,e){void 0===e&&(e={});var n,c,s,l=(0,o.Z)(),f=l.dispatch,h=l.store,p=e.openIn,_=(0,r.Go)(h);if(t){var d=t.startsWith("www")?"https://"+t:t,v="new_tab"===p?"_blank":"same_tab"===p||u(d)?"_top":"_blank";window.open(d,v),u(d)&&(n=_,c=(0,a.Z)().isMobile,s=!(window.innerHeight<window.innerWidth&&0!=window.orientation),n.disable_pop_desktop&&!c||n.disable_pop_mobile_portrait&&c&&s||n.disable_pop_mobile_landscape&&c&&!s)&&f((0,i.Vi)({payload:!1}))}else console.warn("No url provided to open in new tab!")}},m8BB:function(t,e,n){"use strict";n.d(e,{Z:function(){return y}});var r=n("/0+J"),o=n("8R7p"),i=n("bK3N"),a=n("Es6C"),u=n("1Bh/"),c=n("/tKw"),s=n("Qcun"),l=n("cr2b"),f=n("lqEK"),h=n("XsSB"),p=n("iQvE"),_=n("gcTl"),d=n("+vdt");function v(){v=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function s(t,e,n,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),u=new O(o||[]);return r(a,"_invoke",{value:w(t,n,u)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function _(){}var d={};c(d,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(L([])));m&&m!==e&&n.call(m,i)&&(d=m);var g=_.prototype=h.prototype=Object.create(d);function E(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function o(r,i,a,u){var c=l(t[r],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,u)}),(function(t){o("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,u)}))}u(c.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=I(a,n);if(u){if(u===f)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function I(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,I(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=l(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function L(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return p.prototype=_,r(g,"constructor",{value:_,configurable:!0}),r(_,"constructor",{value:p,configurable:!0}),p.displayName=c(_,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},E(b.prototype),c(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new b(s(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(g),c(g,u,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=L,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:L(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function y(t){return m.apply(this,arguments)}function m(){return m=(0,r.Z)(v().mark((function t(e){var n,y,m,g,E,b,w,I,T,S,O,L,x,A;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.redirectToNewConversationSession,y=void 0!==n&&n,m=e.publishCloseEvent,g=void 0===m||m,E=e.createNewSession,b=void 0===E||E,w=e.resetWidgetVisible,I=void 0===w||w,T=e.startPageCheck,S=void 0!==T&&T,O=(0,i.Z)(),L=O.dispatch,x=O.store,(0,f.Z)()){t.next=6;break}return(0,s.Z)("onReset"),y&&(0,u.u5)(),t.abrupt("return");case 6:return A=function(){var t=(0,r.Z)(v().mark((function t(e){var n,r,i,f,y,m,g,E,b;return v().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.publishCloseEvent,r=e.createNewSession,i=e.redirectToNewConversationSession,f=e.resetWidgetVisible,y=e.startPageCheck,t.next=3,(0,c.Z)({publishCloseEvent:n});case 3:(m=(0,p.Go)(x))&&f&&(E=null!=(g=(0,h.Z)())&&g.isMobile?null==m?void 0:m.auto_open_mobile:null==m?void 0:m.auto_open,L((0,d.Vi)({payload:E}))),m&&y&&(i=!m.start_page_enabled),b=(0,a.Z)({createNewSession:r}),L((0,d.UK)({payload:!1})),L((0,_.p)({path:i?o.V3.CONVERSATION:o.V3.START,params:i?{chatId:b.chatId}:{}})),(0,l.yC)(),setTimeout((function(){return(0,s.Z)("onReset")}),10),window.Ebbot.userAttributes&&window.Ebbot.setUserAttribute(window.Ebbot.userAttributes),i&&setTimeout((function(){return(0,u.u5)()}),10);case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),t.abrupt("return",A({publishCloseEvent:!!(0,l.AL)()&&g,createNewSession:b,redirectToNewConversationSession:y,resetWidgetVisible:I,startPageCheck:S}));case 8:case"end":return t.stop()}}),t)}))),m.apply(this,arguments)}},VihR:function(t,e,n){"use strict";n.d(e,{f:function(){return l}});var r=n("/0+J"),o=n("vDqi"),i=n.n(o),a=n("Es6C"),u=n("e/DM");function c(){c=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),u=new O(o||[]);return r(a,"_invoke",{value:w(t,n,u)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function p(){}function _(){}function d(){}var v={};s(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(L([])));m&&m!==e&&n.call(m,i)&&(v=m);var g=d.prototype=p.prototype=Object.create(v);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function o(r,i,a,u){var c=f(t[r],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){o("next",t,a,u)}),(function(t){o("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,u)}))}u(c.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=I(a,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=f(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function I(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,I(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function L(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return _.prototype=d,r(g,"constructor",{value:d,configurable:!0}),r(d,"constructor",{value:_,configurable:!0}),_.displayName=s(d,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},E(b.prototype),s(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new b(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(g),s(g,u,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=L,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:L(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}var s=void 0;function l(t){return f.apply(this,arguments)}function f(){return(f=(0,r.Z)(c().mark((function t(e){var n,r;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,n=(0,a.Z)(),r=n.botId,e=e||u.MO+"/"+r+"/check",window.open(e,"ebbotChatSSO","height=630,width=460,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes",!0)||console.error("WARN: ","Unable to open ebbot chat SSO login page"),t.next=7,h(2e3);case 7:return t.abrupt("return",t.sent);case 10:t.prev=10,t.t0=t.catch(0),console.error("Error: "+t.t0);case 13:case"end":return t.stop()}}),t,null,[[0,10]])})))).apply(this,arguments)}function h(t){return p.apply(this,arguments)}function p(){return(p=(0,r.Z)(c().mark((function t(e){return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t){var n=(0,a.Z)(),o=n.chatId,l=n.botId;s&&clearTimeout(s),s=setTimeout((0,r.Z)(c().mark((function n(){var r;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,i()({method:"put",withCredentials:!0,url:u.MO+"/"+l+"/verify/"+o});case 3:r=n.sent,t(r),n.next=14;break;case 7:return n.prev=7,n.t0=n.catch(0),n.t1=t,n.next=12,h(e);case 12:n.t2=n.sent,(0,n.t1)(n.t2);case 14:case"end":return n.stop()}}),n,null,[[0,7]])}))),e)})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},HBUd:function(t,e,n){"use strict";var r=n("8R7p"),o=n("bK3N"),i=n("gcTl"),a=n("1Bh/"),u=n("Es6C");e.Z=function(){var t=(0,u.Z)().chatId,e=(0,o.Z)().dispatch;(0,a.u5)(),e((0,i.p)({path:r.V3.CONVERSATION,params:{chatId:t}}))}},ceTw:function(t,e,n){"use strict";function r(){var t=""+Date.now();return[t.slice(0,10),".",t.slice(10)].join("")}function o(t){var e=(""+t).split(".").join("");return Number(e)}n.d(e,{Z:function(){return o},u:function(){return r}})},F0kC:function(t,e,n){"use strict";n.d(e,{Z:function(){return l}});var r=n("+9dH"),o=n("bK3N"),i=n("OPph"),a=n("Es6C"),u=n("1Bh/"),c=n("db6H"),s=n("+vdt");function l(t){void 0===t&&(t={});var e=(0,r.Z)({forceOpen:!1,forceClose:!1,applyForceOptionsToAttentionSeeker:!0},t),n=e.forceOpen,l=e.forceClose,f=e.applyForceOptionsToAttentionSeeker,h=(0,o.Z)(),p=h.dispatch,_=h.store,d=(0,a.Z)().chatId;n?(p((0,s.Vi)({payload:!0})),f&&p((0,s.vt)({payload:!1}))):l?((0,i.Z)()&&(0,c.hS)(d)(_)&&(0,u.nm)(),p((0,s.Vi)({payload:!1})),f&&p((0,s.vt)({payload:!1}))):((0,i.Z)()&&(0,c.hS)(d)(_)&&(0,u.nm)(),p((0,s.kJ)()),p((0,s.vt)({payload:!1})))}},cdxp:function(t,e,n){"use strict";n.d(e,{V:function(){return y}});var r,o=n("+9dH"),i=n("e5fA"),a=n("iQvE"),u=n("db6H"),c=n("bK3N"),s=n("k+I6"),l=n("Es6C"),f=[i.tq.TYPING,i.tq.EMPTY,i.tq.URL_CLICK,i.tq.SCENARIO,i.tq.VARIABLE],h=function(t){return t.filter((function(t){return Boolean(t)})).join("\n")},p={},_=((r={})[i.tq.TEXT]=function(t){return String(t||"")},r[i.tq.LOCATION]=function(t){return"(Map of "+String(t.query||"a location")+")"},r[i.tq.IMAGE]=function(t){return t.url?"("+String(t.url)+")":""},r[i.tq.URL]=function(t){return(t.urls||[]).forEach((function(t){p[JSON.stringify(t.value||t.next)]=String(t.label||"button")})),h([String(t.description||""),"[ "+(t.urls||[]).map((function(t){return String(t.label||"button")})).join(" | ")+" ]"])},r[i.tq.LIST]=function(t){return h([String(t.text||"")].concat((t.items||[]).map((function(t){return"- "+String(t.text||"item")}))))},r[i.tq.IMAGE_OPTIONS]=function(t){return h([_[i.tq.IMAGE]({url:t.url}),_[i.tq.TEXT](t.title),_[i.tq.TEXT](t.description),_[i.tq.URL]({urls:t.urls})])},r[i.tq.CAROUSEL]=function(t){return h((t.slides||[]).map((function(t,e){return void 0===t&&(t={}),h(["Slide "+e,_[i.tq.IMAGE_OPTIONS](t)])})))},r[i.tq.RATING_REQUEST]=function(t){return t.question},r[i.tq.RATING]=function(t){return(("string"==typeof t?JSON.parse(t):t)||{}).rating+"/5"},r[i.tq.VARIABLE]=function(t){if(t.value.type===i.tq.FILE_LIST)return"("+(t.value.files||[]).map((function(t){return t.key})).join(", ")+")";var e=JSON.stringify(t.value);return"[ "+(p[e]||"button")+" ]"},r[i.tq.SCENARIO]=function(t){var e=JSON.stringify({scenario:t.scenario});return"[ "+(p[e]||"button")+" ]"},r[i.tq.FILE_LIST]=function(t){return t.text},r[i.tq.GPT]=function(t){return t.text},r),d=function(t){var e=t.type,n=t.value;return e in _?_[e](n):String(n)||i.tq.TEXT},v=function(t,e,n,r){var o=new Date(1e3*e),i=o.toLocaleDateString(),a=o.toLocaleTimeString()+" "+n+":\n"+r;t[i]=[].concat(t[i]||[],[a])};function y(){var t,e=(0,c.Z)().store,n=(0,l.Z)().chatId,r=(0,a.Go)(e),h=(0,u.b4)(n)(e),_=(0,s.Z)(),y=(0,u.dm)(n)(e).filter((function(t){var e=t.type;return!f.includes(e)}));(null==(t=y[0])?void 0:t.type)===i.tq.SCENARIO&&(y=y.slice(1));var m=function(t,e,n){void 0===t&&(t=[]),void 0===e&&(e=""),void 0===n&&(n={});var r={};return p={},Object.keys(t).forEach((function(o){var a=t[o],u=a.sender,c=a.type,s=a.value,l=a.timestamp,f=a.visibility,h=a.selection,p=a.userId;if(f!==i.Me.AGENT&&c!==i.tq.INTERMEDIATE&&c!==i.tq.EMPTY){var _=u===i.Me.BOT&&e?e:u;_=u===i.Me.AGENT&&p&&n[p]?n[p]:_,_=c===i.tq.GPT?"bot - GPT":_;var y=d({type:c,value:s});v(r,l,_,y),c===i.tq.MULTI_SELECT&&h&&(y=d({type:i.tq.URL,value:{urls:h}}),v(r,l,i.Me.USER,y))}})),Object.keys(r).reduce((function(t,e){return[].concat(t||[],["---- "+e+" ----"],r[e])}),[]).join("\n\n")}(y,null!=r&&r.bot_in_transcript?h:"",null!=r&&r.agent_in_transcript?Object.entries(_).reduce((function(t,e){var n,r=e[0],i=e[1];return(0,o.Z)({},t,((n={})[r]=null==i?void 0:i.full_name,n))}),{}):{}),g=new Blob([m],{type:"text/plain;charset=utf-8"}),E=document.createElement("a");E.style.display="none",E.href=URL.createObjectURL(g),E.download="transcript.txt",E.click(),E.remove()}},Qcun:function(t,e,n){"use strict";n.d(e,{Z:function(){return i}});var r=n("/0+J");function o(){o=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),u=new O(o||[]);return r(a,"_invoke",{value:w(t,n,u)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function p(){}function _(){}function d(){}var v={};s(v,a,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(L([])));m&&m!==e&&n.call(m,a)&&(v=m);var g=d.prototype=p.prototype=Object.create(v);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function o(r,i,a,u){var c=f(t[r],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){o("next",t,a,u)}),(function(t){o("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,u)}))}u(c.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=I(a,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=f(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function I(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,I(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function L(t){if(t||""===t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return _.prototype=d,r(g,"constructor",{value:d,configurable:!0}),r(d,"constructor",{value:_,configurable:!0}),_.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},E(b.prototype),s(b.prototype,u,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new b(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(g),s(g,c,"Generator"),s(g,a,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=L,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:L(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function i(t){return a.apply(this,arguments)}function a(){return a=(0,r.Z)(o().mark((function t(e){var n,r,i,a,u=arguments;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"==typeof window.Ebbot[e]){for(r=u.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=u[a];(n=window.Ebbot)[e].apply(n,i)}case 1:case"end":return t.stop()}}),t)}))),a.apply(this,arguments)}},uiih:function(t,e,n){"use strict";var r=n("/0+J"),o=n("cr2b"),i=n("wWaE");function a(){a=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),u=new O(o||[]);return r(a,"_invoke",{value:w(t,n,u)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function p(){}function _(){}function d(){}var v={};s(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(L([])));m&&m!==e&&n.call(m,i)&&(v=m);var g=d.prototype=p.prototype=Object.create(v);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function o(r,i,a,u){var c=f(t[r],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){o("next",t,a,u)}),(function(t){o("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,u)}))}u(c.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=I(a,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=f(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function I(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,I(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function L(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return _.prototype=d,r(g,"constructor",{value:d,configurable:!0}),r(d,"constructor",{value:_,configurable:!0}),_.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},E(b.prototype),s(b.prototype,u,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new b(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=L,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:L(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.Z=function(){var t=(0,r.Z)(a().mark((function t(e,n){var r;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,o.ZP)();case 2:return r=t.sent,t.abrupt("return",(0,i.Z)(r,e,n));case 4:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()},"+2eu":function(t,e,n){"use strict";n.d(e,{s:function(){return i}});var r=n("Z+uI"),o=n("FaS+"),i=(0,r.Z)()||(o.Z?"v2.ebbot.app/api":"ebbot.local/api")},cr2b:function(t,e,n){"use strict";n.d(e,{ZP:function(){return C},yC:function(){return N},DB:function(){return x},AL:function(){return O},bz:function(){return L}});var r=n("/0+J"),o=n("vDqi"),i=n.n(o),a=n("e/DM"),u=n("FaS+"),c=n("e5fA"),s=n("A14V"),l=n("db6H"),f=n("bK3N"),h=n("wWaE"),p=n("Es6C");function _(t){var e=(0,f.Z)(),n=e.store,r=e.dispatch,o=(0,p.Z)().chatId,i=(0,l.zo)(o)(n);i.length&&i.forEach((function(e){(0,h.Z)(t,e),delete e.pending,r((0,s.LU)({chatId:e.chatId,messageId:e.id,message:e}))})),(0,h.Z)(t,{type:c.tq.REFRESH_MESSAGES,finished:!0,chatId:o})}var d=n("+2eu"),v=n("8R7p"),y=n("yahU"),m=n("3bAv"),g=n("m8BB");function E(){E=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function s(t,e,n,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),u=new O(o||[]);return r(a,"_invoke",{value:w(t,n,u)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function _(){}var d={};c(d,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(L([])));y&&y!==e&&n.call(y,i)&&(d=y);var m=_.prototype=h.prototype=Object.create(d);function g(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function o(r,i,a,u){var c=l(t[r],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,u)}),(function(t){o("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,u)}))}u(c.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=I(a,n);if(u){if(u===f)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function I(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,I(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=l(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function L(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return p.prototype=_,r(m,"constructor",{value:_,configurable:!0}),r(_,"constructor",{value:p,configurable:!0}),p.displayName=c(_,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c(t,u,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},g(b.prototype),c(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new b(s(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},g(m),c(m,u,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=L,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:L(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function b(t){var e,n,r,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);o--;){if(n&&null!=(e=t[n]))return e.call(t);if(r&&null!=(e=t[r]))return new w(e.call(t));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function w(t){function e(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var e=t.done;return Promise.resolve(t.value).then((function(t){return{value:t,done:e}}))}return w=function(t){this.s=t,this.n=t.next},w.prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(t){var n=this.s.return;return void 0===n?Promise.resolve({value:t,done:!0}):e(n.apply(this.s,arguments))},throw:function(t){var n=this.s.return;return void 0===n?Promise.reject(t):e(n.apply(this.s,arguments))}},new w(t)}window.eb_socket=window.eb_socket||{socket:null,isConnected:!1,isConnecting:!1};var I=window.eb_socket,T=function(){var t=(0,r.Z)(E().mark((function t(e){var n,r,o,i,a,u,c;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.listener("connect"),r=!1,o=!1,t.prev=3,a=b(n);case 5:return t.next=7,a.next();case 7:if(!(r=!(u=t.sent).done)){t.next=13;break}c=u.value,I.isConnected||(console.log(c),I.isConnected=!0,_(e));case 10:r=!1,t.next=5;break;case 13:t.next=19;break;case 15:t.prev=15,t.t0=t.catch(3),o=!0,i=t.t0;case 19:if(t.prev=19,t.prev=20,!r||null==a.return){t.next=24;break}return t.next=24,a.return();case 24:if(t.prev=24,!o){t.next=27;break}throw i;case 27:return t.finish(24);case 28:return t.finish(19);case 29:case"end":return t.stop()}}),t,null,[[3,15,19,29],[20,,24,28]])})));return function(e){return t.apply(this,arguments)}}(),S=function(){var t=(0,r.Z)(E().mark((function t(){var e,n,r,o,i,a,u;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=I.socket.listener("error"),n=!1,r=!1,t.prev=3,i=b(e);case 5:return t.next=7,i.next();case 7:if(!(n=!(a=t.sent).done)){t.next=14;break}u=a.value,console.log(u),I.isConnected=!1;case 11:n=!1,t.next=5;break;case 14:t.next=20;break;case 16:t.prev=16,t.t0=t.catch(3),r=!0,o=t.t0;case 20:if(t.prev=20,t.prev=21,!n||null==i.return){t.next=25;break}return t.next=25,i.return();case 25:if(t.prev=25,!r){t.next=28;break}throw o;case 28:return t.finish(25);case 29:return t.finish(20);case 30:case"end":return t.stop()}}),t,null,[[3,16,20,30],[21,,25,29]])})));return function(){return t.apply(this,arguments)}}();function O(){return I.isConnected}function L(){return I.isConnecting}function x(){return A.apply(this,arguments)}function A(){return(A=(0,r.Z)(E().mark((function t(){var e,n,r,o,u,c,s,l,f,h,_;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(0,p.Z)(),n=(0,m.Z)(),r=n.getItem(v.I.EBBOT_SESSION_TOKEN),t.prev=3,o={method:"post",withCredentials:!0,url:a.T5+"/asyngular/init",data:{botId:e.botId,chatId:e.chatId}},r&&(o.headers={Authorization:"Bearer "+r}),t.next=8,i()(o);case 8:if(u=t.sent,c=u.data,s=c.success,l=c.existing,f=c.data,h=f.token,_=f.session.chatId,s){t.next=13;break}throw new Error("Could not authenticate into the socket server");case 13:return!0===l&&n.setItem(v.I.EBBOT_INITIALIZED,"true"),n.setItem(v.I.EBBOT_CHAT_SESSION_ID,_),h&&n.setItem(v.I.EBBOT_SESSION_TOKEN,h),t.abrupt("return",c);case 19:return t.prev=19,t.t0=t.catch(3),I.isConnecting=!1,I.isConnected=!1,n.removeItem(v.I.EBBOT_SESSION_TOKEN),n.removeItem(v.I.EBBOT_IS_WIDGET_BOX_VISIBLE),t.next=27,(0,g.Z)({redirectToNewConversationSession:!1,publishCloseEvent:!1,startPageCheck:!0});case 27:return t.abrupt("return",null);case 28:case"end":return t.stop()}}),t,null,[[3,19]])})))).apply(this,arguments)}function N(){return k.apply(this,arguments)}function k(){return(k=(0,r.Z)(E().mark((function t(){var e,n,r,o;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=(0,p.Z)(),n=(0,m.Z)(),r=n.getItem(v.I.EBBOT_SESSION_TOKEN),o={method:"get",withCredentials:!0,url:a.T5+"/asyngular/end",data:{botId:e.botId}},r&&(o.headers={Authorization:"Bearer "+r}),I.socket&&i()(o),n.removeItem(v.I.EBBOT_SESSION_TOKEN),I.socket&&(I.socket.disconnect(),I.socket=null,I.isConnected=!1,I.isConnecting=!1);case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function C(){return P.apply(this,arguments)}function P(){return(P=(0,r.Z)(E().mark((function t(){var e,r,o,i,a,c,s;return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(I.socket||I.isConnecting){t.next=15;break}return I.isConnecting=!0,t.next=4,x();case 4:if(r=t.sent,o=null==r||null==(e=r.data)?void 0:e.token){t.next=9;break}return I.isConnecting=!1,t.abrupt("return",null);case 9:return i=(0,p.Z)(),a=i.botId,c=i.chatId,s={hostname:d.s,secure:u.Z||Boolean(void 0),port:u.Z||Boolean(void 0)?443:80,path:"/asyngular/?&botId="+a+"&chatId="+c},o&&(s.path=s.path+"&token="+o),t.next=14,n.e(2984).then(n.t.bind(n,"eBJD",19)).then((function(t){return t.default.create(s)}));case 14:I.socket=t.sent;case 15:return t.abrupt("return",new Promise((function(t){if(I.socket&&"closed"===I.socket.state&&I.socket.connect(),I.socket&&"open"===I.socket.state)t(I.socket);else var e=setInterval((function(){I.socket&&"open"===I.socket.state&&(clearInterval(e),I.isConnecting=!1,I.isConnected=!0,T(I.socket),S(),(0,y.Z)(I.socket),_(I.socket),t(I.socket))}),100)})));case 16:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},wWaE:function(t,e,n){"use strict";var r=n("+9dH"),o=n("/0+J"),i=n("7Cbv"),a=n("Es6C"),u=n("ceTw");function c(){c=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function l(t,e,n,o){var i=e&&e.prototype instanceof p?e:p,a=Object.create(i.prototype),u=new O(o||[]);return r(a,"_invoke",{value:w(t,n,u)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h={};function p(){}function _(){}function d(){}var v={};s(v,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(L([])));m&&m!==e&&n.call(m,i)&&(v=m);var g=d.prototype=p.prototype=Object.create(v);function E(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){function o(r,i,a,u){var c=f(t[r],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){o("next",t,a,u)}),(function(t){o("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,u)}))}u(c.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function w(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=I(a,n);if(u){if(u===h)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=f(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function I(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,I(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=f(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,h;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function L(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return _.prototype=d,r(g,"constructor",{value:d,configurable:!0}),r(d,"constructor",{value:_,configurable:!0}),_.displayName=s(d,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===_||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},E(b.prototype),s(b.prototype,a,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new b(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E(g),s(g,u,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=L,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:L(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}function s(){return(s=(0,o.Z)(c().mark((function t(e,n,o){var s,l,f,h,p,_,d,v,y,m,g,E,b,w,I,T,S,O,L,x;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=n.type,l=n.value,f=n.label,h=n.name,p=n.semanticRole,_=n.finished,d=void 0===_||_,v=n.pending,y=n.stop,m=n.conversationAddon,g=void 0===m?{}:m,E=n.stringifyValue,b=void 0!==E&&E,w=n.sender,I=n.id,T=n.timestamp,S=n.dataAddon,O=void 0===S?{}:S,e){t.next=3;break}return t.abrupt("return",null);case 3:return L=(0,a.Z)(),x=(0,r.Z)({},O,{id:I||(0,i.Z)(),value:b?JSON.stringify(l):l,label:f,name:h,type:s,finished:d,pending:v,stop:y,semanticRole:p,username:L.userId,full_name:L.full_name,sender:w||L.type,chatId:L.chatId,timestamp:T||(0,u.u)()}),t.next=7,e.transmit("request.chat",{clientId:L.botId,data:x,id:x.id,conversation:(0,r.Z)({user_last_input:x.value},g)});case 7:return null==o||o(),t.abrupt("return",!0);case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}e.Z=function(t,e,n){return s.apply(this,arguments)}},yahU:function(t,e,n){"use strict";n.d(e,{Z:function(){return tt}});var r=n("+9dH"),o=n("/0+J"),i=n("e5fA"),a=n("8R7p"),u=n("bK3N"),c=n("Es6C"),s=n("3bAv"),l=n("Qcun"),f=n("tzDv"),h=n.n(f),p=n.p+"ding-d696a4b2e5584fb36f83b5a88f97cc72.mp3",_=n("qqNC"),d=n("iQvE");function v(t){void 0===t&&(t={});var e=t,n=e.type,r=e.value,o=e.sender;if(h().Permission.has()){var a="";switch(n){case"snooze_end":a="You have "+r+" unread messages";break;case i.tq.TEXT:a=r;break;case i.tq.URL:a="You received a buttons card";break;case i.tq.LOCATION:a="You received a location card";break;case i.tq.IMAGE_OPTIONS:a="You received a complex image card";break;case i.tq.CAROUSEL:a="You received a carousel card";break;case i.tq.FILE:a="You received one new file message";break;case i.tq.IMAGE:a="You received one new photo message";break;case i.tq.LIST:a="You received a list card";break;case i.tq.MULTI_SELECT:a="You received a multi select card";break;case i.tq.RATING_REQUEST:a="You received a rating request";break;case i.tq.CO_BROWSING_REQUEST:a="You received a Co Browsing request"}if(a){var c=(0,u.Z)().store,s=(0,d.Go)(c),l=new Audio(p);o===i.Me.AGENT&&null!=s&&s.sound_agent?l.play():o!==i.Me.BOT&&o!==i.Me.SYSTEM||null==s||!s.sound_bot||l.play(),h().create("New messages!",{body:a,icon:_.Z,timeout:1e4,requireInteraction:!0,onClick:function(){window.focus(),this.close()}})}}else console.warn('Ups! Seems that you called "sendPushNotification()" util before requesting push notifications rights!')}var y=n("lqEK"),m=n("OPph"),g=n("YCz7"),E=n("A14V"),b=n("db6H"),w=n("yCGr");function I(t){var e=(0,u.Z)(),n=e.store,o=e.dispatch,i=(0,c.Z)().chatId;return(0,b.dm)(i)(n).filter((function(t){return t.shouldMatch})).some((function(e){return!!e.type&&JSON.stringify({type:e.type,value:e.value,sender:e.sender}).replace(/("id":"[0-9a-z-]{36}",)/g,"")===JSON.stringify({type:t.type,value:t.value,sender:t.sender}).replace(/("id":"[0-9a-z-]{36}",)/g,"")&&(function(t){void 0===t&&(t=[]);var e=(0,s.Z)(),n=(0,w.Z)()||{};if(Object.keys(n).length>0){var o=(0,r.Z)({},n,t.reduce((function(t,e){var o,i=e[0],a=e[1];return(0,r.Z)({},t,((o={})[a]=n[i],o))}),{}));e.setItem(a.I.EBBOT_CLICKED_BUTTONS,JSON.stringify(o))}}([[e.id,t.id]]),o((0,E.LU)({chatId:i,messageId:e.id,message:t})),!0)}))}function T(t){var e=t.type;return e!==i.tq.READ_STATUS&&e!==i.tq.TYPING&&e!==i.tq.EMPTY}var S=n("K1NN"),O=n("aVKi"),L=n("+vdt"),x=n("8bwe"),A=function(t){var e=t.value,n=(0,u.Z)(),o=n.dispatch,i=n.store,a=(0,O.P)(i);!0===(null==a?void 0:a.rating)&&(o((0,S.sF)({payload:(0,r.Z)({},a,{ratingMessageValue:e})})),o((0,L.vt)({payload:!0})),(0,x.D1)(a.trigger.id))},N=n("itU4"),k=function(t){var e=(0,u.Z)(),n=e.dispatch,o=e.store,i=(0,O.P)(o);(0,N.W5)(o)||!0===i.input&&((i.trigger||{}).should||{}).input_scenario==t.scenarioId&&(n((0,S.sF)({payload:(0,r.Z)({},i,{text:t.value})})),n((0,L.vt)({payload:!0})),(0,x.D1)(i.trigger.id))},C=n("7ju4"),P=n("+Nrv"),R=n("MKhc"),B=function(t){return new Promise((function(e){return setTimeout(e,t)}))};function D(){D=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function s(t,e,n,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),u=new S(o||[]);return r(a,"_invoke",{value:b(t,n,u)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function _(){}var d={};c(d,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==e&&n.call(y,i)&&(d=y);var m=_.prototype=h.prototype=Object.create(d);function g(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function o(r,i,a,u){var c=l(t[r],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,u)}),(function(t){o("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,u)}))}u(c.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function b(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===f)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function w(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=l(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function O(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return p.prototype=_,r(m,"constructor",{value:_,configurable:!0}),r(_,"constructor",{value:p,configurable:!0}),p.displayName=c(_,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c(t,u,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},g(E.prototype),c(E.prototype,a,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(s(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},g(m),c(m,u,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=O,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}var M=function(){var t=(0,o.Z)(D().mark((function t(e){var n,r,o,l,f,h,p,_,b,w,S,O,x,N,M,Z;return D().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=(0,c.Z)(),r=(0,s.Z)(),o=(0,u.Z)(),l=o.dispatch,f=o.store,h=(0,C.b5)(f),p=(0,m.Z)(),_=(0,g.Z)(),b=(0,R.Z)(),w=(0,d.Go)(f),S=(null==w?void 0:w.message_delay)||{},O=Number(S.min)||500,x=Number(S.max)||1e4,I(e)){t.next=37;break}if((null==e?void 0:e.sender)===i.Me.USER||(null==e?void 0:e.sender)===i.Me.AGENT||!P.v.some((function(t){return t===(null==e?void 0:e.type)}))){t.next=21;break}if(N=0,(null==e?void 0:e.type)===i.tq.TYPING?N=500:(null==e?void 0:e.type)===i.tq.TEXT?(N=Number(50*(null==e||null==(M=e.value)?void 0:M.length)),N=Number((null==e?void 0:e.delay)||0)||Math.min(Math.max(N,O),x)):N=Number((null==e?void 0:e.delay)||0)||Math.min(Math.max(N,O),x),!N){t.next=21;break}return l((0,E.Hd)({chatId:n.chatId,message:{id:"mocktyping",sender:i.Me.BOT,type:i.tq.TYPING,value:void 0}})),t.next=21,B(N);case 21:if(null!=e&&e.input_field&&!b&&r.setItem(a.I.EBBOT_INPUT_FIELD_VISIBILITY,e.input_field),null!=e&&e.allow_upload&&r.setItem(a.I.EBBOT_ALLOW_UPLOAD,e.allow_upload),null!=e&&e.conversation_starter&&("disabled"===e.conversation_starter?r.setItem(a.I.EBBOT_TRIGGERS_DISABLED,!0):"enabled"===e.conversation_starter&&r.removeItem(a.I.EBBOT_TRIGGERS_DISABLED)),(null==e?void 0:e.semanticRole)===a.BD.INPUT_REQUEST&&k(e),(null==e?void 0:e.type)===i.tq.RATING_REQUEST&&(r.setItem(a.I.EBBOT_INPUT_FIELD_VISIBILITY,"hidden"),A(e)),(null==e?void 0:e.type)===i.tq.TYPING&&l((0,E.Hd)({chatId:n.chatId,message:e})),!T(e)){t.next=32;break}return t.next=30,null==(Z=(0,P.g)((0,d.Go)(f))[e.type])?void 0:Z.Component;case 30:l((0,E.Hd)({chatId:n.chatId,message:null})),l((0,E.m6)({chatId:n.chatId,messages:[e]}));case 32:p&&h.path===a.V3.CONVERSATION||!(0,y.Z)()||l((0,L.L_)({payload:!0})),p&&h.path===a.V3.CONVERSATION&&window.document.hasFocus()||!(0,y.Z)()||_||v(e),G(e),t.next=38;break;case 37:G(e);case 38:return t.abrupt("return",Promise.resolve((function(t){return t()})));case 39:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),G=function(t){"typing"!==t.type&&((0,l.Z)("onMessage",t),"user"===t.sender?(0,l.Z)("onUserMessage",t):"bot"===t.sender&&(0,l.Z)("onBotMessage",t))},Z=M,U=function(){var t=(0,s.Z)(),e=t.getItem(a.I.EBBOT_IS_AGENT_HANDOVER_LOGIC_EXECUTED);e&&"false"!==e||(t.setItem(a.I.EBBOT_INPUT_FIELD_VISIBILITY,"visible"),t.setItem(a.I.EBBOT_IS_AGENT_HANDOVER_LOGIC_EXECUTED,"true"))},j=function(){var t=(0,s.Z)();(0,R.Z)()&&t.setItem(a.I.EBBOT_IS_AGENT_HANDOVER_LOGIC_EXECUTED,"false")},q=n("m8BB"),W=n("k+I6"),F=function(t,e){var n;void 0===e&&(e={});var o=(0,s.Z)(),i=(0,W.Z)()||{},u=i[t]||{},c=(0,r.Z)({},u,e),l=(0,r.Z)({},i,((n={})[t]=c,n));o.setItem(a.I.EBBOT_AGENTS_INFO,JSON.stringify(l))},K=n("XsSB");function V(){var t,e=(0,u.Z)(),n=e.store,r=e.dispatch,o=(0,s.Z)(),i=(0,d.Go)(n)||{};(null!==o.getItem(a.I.EBBOT_IS_WIDGET_BOX_VISIBLE)?"true"===o.getItem(a.I.EBBOT_IS_WIDGET_BOX_VISIBLE):null!=(t=(0,K.Z)())&&t.isMobile?null==i?void 0:i.auto_open_mobile:null==i?void 0:i.auto_open)&&r((0,L.Vi)({payload:!0}))}var H=function(t){var e=(0,u.Z)().dispatch;if(0!==t.length){var n=t[0];e((0,L.cM)({payload:n}))}},Y=function(t){var e=(0,u.Z)().dispatch;if(0!==t.length){var n=t[0];e((0,L.D1)({payload:n.transactionId})),e((0,L.w)({payload:n.autoStartToken})),e((0,L.cM)({payload:void 0}))}};function z(){z=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function s(t,e,n,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),u=new S(o||[]);return r(a,"_invoke",{value:b(t,n,u)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function _(){}var d={};c(d,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==e&&n.call(y,i)&&(d=y);var m=_.prototype=h.prototype=Object.create(d);function g(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function o(r,i,a,u){var c=l(t[r],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,u)}),(function(t){o("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,u)}))}u(c.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function b(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===f)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function w(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=l(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function O(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return p.prototype=_,r(m,"constructor",{value:_,configurable:!0}),r(_,"constructor",{value:p,configurable:!0}),p.displayName=c(_,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c(t,u,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},g(E.prototype),c(E.prototype,a,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(s(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},g(m),c(m,u,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=O,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function J(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return X(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function X(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Q(t){var e,n,r,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);o--;){if(n&&null!=(e=t[n]))return e.call(t);if(r&&null!=(e=t[r]))return new $(e.call(t));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function $(t){function e(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var e=t.done;return Promise.resolve(t.value).then((function(t){return{value:t,done:e}}))}return $=function(t){this.s=t,this.n=t.next},$.prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(t){var n=this.s.return;return void 0===n?Promise.resolve({value:t,done:!0}):e(n.apply(this.s,arguments))},throw:function(t){var n=this.s.return;return void 0===n?Promise.reject(t):e(n.apply(this.s,arguments))}},new $(t)}function tt(t){return et.apply(this,arguments)}function et(){return et=(0,o.Z)(z().mark((function t(e){var n,l,f,h,p,_,d,v,y,m;return z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}return t.abrupt("return",null);case 2:return n=(0,c.Z)(),l=(0,s.Z)(),t.next=6,e.channel("response.chat."+n.userId);case 6:if(!(f=t.sent).isSubscribed()){t.next=9;break}return t.abrupt("return",null);case 9:return t.next=11,f.subscribe();case 11:h="true"!==l.getItem(a.I.EBBOT_INITIALIZED),p=!1,_=!1,t.prev=14,v=z().mark((function t(){var e,c,s,l,f,p,_,d;return z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=m.value,c=e.filter((function(t){return"chat"===t.type})).map((function(t){var e;return null==t||null==(e=t.data)?void 0:e.chat})),s=e.filter((function(t){return"message"===t.type})).map((function(t){return t.data.message})),l=e.filter((function(t){var e,n;return"chat"===t.type&&(null==t||null==(e=t.data)?void 0:e.token)&&(null==t||null==(n=t.data)?void 0:n.chat)})).map((function(t){return null==t?void 0:t.data})),f=e.filter((function(t){return"qrcode"===t.type})).map((function(t){return null==t?void 0:t.data})),p=e.filter((function(t){return"authenticatebankid"===t.type})).map((function(t){return null==t?void 0:t.data})),(_=(0,u.Z)()).store,d=_.dispatch,Promise.all([rt(s),H(f),Y(p),c.forEach(function(){var t=(0,o.Z)(z().mark((function t(e){return z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(null==e?void 0:e.handled_by)===i.Me.AGENT&&U(),(null==e?void 0:e.handled_by)===i.Me.BOT&&j(),((null==e?void 0:e.chat_messages)||[]).length&&(d((0,E.m6)({chatId:n.chatId,messages:[].concat(e.chat_messages)})),d((0,E.dy)({chatId:n.chatId,messages:[].concat(e.chat_messages)}))),(null==e?void 0:e.handled_by)===i.Me.AGENT&&(null!=e&&e.user_profile_picture||null!=e&&e.full_name)&&F(null==e?void 0:e.userId,(0,r.Z)({},null!=e&&e.user_profile_picture?{user_profile_picture:null==e?void 0:e.user_profile_picture}:{},null!=e&&e.full_name?{full_name:null==e?void 0:e.full_name}:{},{updated_at:Date.now()})),null!=e&&e.handledByAgentTimestamp&&d((0,E.jx)({chatId:n.chatId,payload:(0,r.Z)({},null!=e&&e.handledByAgentTimestamp?{handledByAgentTimestamp:e.handledByAgentTimestamp}:{},null!=e&&e.handled_by?{handled_by:e.handled_by}:{})})),null!=e&&e.status&&e.status===a.vB.CLOSED?d((0,E.Mm)({chatId:n.chatId})):null!=e&&e.status&&e.status===a.vB.PAUSED?d((0,E.IY)({chatId:n.chatId})):null!=e&&e.status&&e.status===a.vB.ONGOING?d((0,E.mO)({chatId:n.chatId})):null!=e&&e.status&&!h&&(h=!0,V());case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),l.forEach(function(){var t=(0,o.Z)(z().mark((function t(e){return z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.resetByApi){t.next=3;break}return(0,q.Z)({redirectToNewConversationSession:!1,publishCloseEvent:!1}),t.abrupt("return");case 3:d((0,E.jx)({chatId:n.chatId,payload:(0,r.Z)({},(null==e?void 0:e.chat)||{})})),d((0,E.kC)({chatId:n.chatId,payload:{token:e.token||"",name:e.name||""}}));case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())]);case 8:case"end":return t.stop()}}),t)})),y=Q(f);case 17:return t.next=19,y.next();case 19:if(!(p=!(m=t.sent).done)){t.next=24;break}return t.delegateYield(v(),"t0",21);case 21:p=!1,t.next=17;break;case 24:t.next=30;break;case 26:t.prev=26,t.t1=t.catch(14),_=!0,d=t.t1;case 30:if(t.prev=30,t.prev=31,!p||null==y.return){t.next=35;break}return t.next=35,y.return();case 35:if(t.prev=35,!_){t.next=38;break}throw d;case 38:return t.finish(35);case 39:return t.finish(30);case 40:case"end":return t.stop()}}),t,null,[[14,26,30,40],[31,,35,39]])}))),et.apply(this,arguments)}var nt=Promise.resolve(),rt=function(){var t=(0,o.Z)(z().mark((function t(e){var n,r,o;return z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=z().mark((function t(){var e;return z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=o.value,n=function(){return ot(e)},nt=nt.then(n).catch((function(t){console.error(t)}));case 2:case"end":return t.stop()}var n}),t)})),r=J(e);case 2:if((o=r()).done){t.next=6;break}return t.delegateYield(n(),"t0",4);case 4:t.next=2;break;case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),ot=function(){var t=(0,o.Z)(z().mark((function t(e){var n,r,o;return z().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(0,c.Z)(),r=(0,u.Z)(),o=r.dispatch,null!=e&&e.type&&(null==e?void 0:e.type)===i.tq.READ_STATUS&&(null==e?void 0:e.sender)===i.Me.AGENT&&(window.localStorage.setItem("last-message-readat-"+e.chatId,null==e?void 0:e.timestamp),o((0,E.dy)({chatId:n.chatId}))),t.next=5,Z(e);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},qqNC:function(t,e,n){"use strict";e.Z=n.p+"ebbot-375026a9b6a8e0a42a8361364ffa0f68.png"},Cmfx:function(t,e,n){"use strict";n.r(e),n.d(e,{Children:function(){return U},Component:function(){return a.wA},Fragment:function(){return a.HY},PureComponent:function(){return R},StrictMode:function(){return Et},Suspense:function(){return W},SuspenseList:function(){return V},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:function(){return ft},cloneElement:function(){return dt},createContext:function(){return a.kr},createElement:function(){return a.az},createFactory:function(){return pt},createPortal:function(){return J},createRef:function(){return a.Vf},default:function(){return bt},findDOMNode:function(){return yt},flushSync:function(){return gt},forwardRef:function(){return G},hydrate:function(){return nt},isValidElement:function(){return _t},lazy:function(){return K},memo:function(){return B},render:function(){return et},unmountComponentAtNode:function(){return vt},unstable_batchedUpdates:function(){return mt},useCallback:function(){return w},useContext:function(){return I},useDebugValue:function(){return T},useEffect:function(){return y},useErrorBoundary:function(){return S},useImperativeHandle:function(){return E},useLayoutEffect:function(){return m},useMemo:function(){return b},useReducer:function(){return v},useRef:function(){return g},useState:function(){return d},version:function(){return ht}});var r,o,i,a=n("2mXy"),u=0,c=[],s=a.YM.__b,l=a.YM.__r,f=a.YM.diffed,h=a.YM.__c,p=a.YM.unmount;function _(t,e){a.YM.__h&&a.YM.__h(o,t,u||e),u=0;var n=o.__H||(o.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function d(t){return u=1,v(k,t)}function v(t,e,n){var i=_(r++,2);return i.t=t,i.__c||(i.__=[n?n(e):k(void 0,e),function(t){var e=i.t(i.__[0],t);i.__[0]!==e&&(i.__=[e,i.__[1]],i.__c.setState({}))}],i.__c=o),i.__}function y(t,e){var n=_(r++,3);!a.YM.__s&&N(n.__H,e)&&(n.__=t,n.__H=e,o.__H.__h.push(n))}function m(t,e){var n=_(r++,4);!a.YM.__s&&N(n.__H,e)&&(n.__=t,n.__H=e,o.__h.push(n))}function g(t){return u=5,b((function(){return{current:t}}),[])}function E(t,e,n){u=6,m((function(){"function"==typeof t?t(e()):t&&(t.current=e())}),null==n?n:n.concat(t))}function b(t,e){var n=_(r++,7);return N(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function w(t,e){return u=8,b((function(){return t}),e)}function I(t){var e=o.context[t.__c],n=_(r++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(o)),e.props.value):t.__}function T(t,e){a.YM.useDebugValue&&a.YM.useDebugValue(e?e(t):t)}function S(t){var e=_(r++,10),n=d();return e.__=t,o.componentDidCatch||(o.componentDidCatch=function(t){e.__&&e.__(t),n[1](t)}),[n[0],function(){n[1](void 0)}]}function O(){c.forEach((function(t){if(t.__P)try{t.__H.__h.forEach(x),t.__H.__h.forEach(A),t.__H.__h=[]}catch(e){t.__H.__h=[],a.YM.__e(e,t.__v)}})),c=[]}a.YM.__b=function(t){o=null,s&&s(t)},a.YM.__r=function(t){l&&l(t),r=0;var e=(o=t.__c).__H;e&&(e.__h.forEach(x),e.__h.forEach(A),e.__h=[])},a.YM.diffed=function(t){f&&f(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(1!==c.push(e)&&i===a.YM.requestAnimationFrame||((i=a.YM.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(r),L&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);L&&(e=requestAnimationFrame(n))})(O)),o=null},a.YM.__c=function(t,e){e.some((function(t){try{t.__h.forEach(x),t.__h=t.__h.filter((function(t){return!t.__||A(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],a.YM.__e(n,t.__v)}})),h&&h(t,e)},a.YM.unmount=function(t){p&&p(t);var e=t.__c;if(e&&e.__H)try{e.__H.__.forEach(x)}catch(t){a.YM.__e(t,e.__v)}};var L="function"==typeof requestAnimationFrame;function x(t){var e=o;"function"==typeof t.__c&&t.__c(),o=e}function A(t){var e=o;t.__c=t.__(),o=e}function N(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function k(t,e){return"function"==typeof e?e(t):e}function C(t,e){for(var n in e)t[n]=e[n];return t}function P(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var r in e)if("__source"!==r&&t[r]!==e[r])return!0;return!1}function R(t){this.props=t}function B(t,e){function n(t){var n=this.props.ref,r=n==t.ref;return!r&&n&&(n.call?n(null):n.current=null),e?!e(this.props,t)||!r:P(this.props,t)}function r(e){return this.shouldComponentUpdate=n,(0,a.az)(t,e)}return r.displayName="Memo("+(t.displayName||t.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(R.prototype=new a.wA).isPureReactComponent=!0,R.prototype.shouldComponentUpdate=function(t,e){return P(this.props,t)||P(this.state,e)};var D=a.YM.__b;a.YM.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),D&&D(t)};var M="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function G(t){function e(e,n){var r=C({},e);return delete r.ref,t(r,(n=e.ref||n)&&("object"!=typeof n||"current"in n)?n:null)}return e.$$typeof=M,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var Z=function(t,e){return null==t?null:(0,a.bR)((0,a.bR)(t).map(e))},U={map:Z,forEach:Z,count:function(t){return t?(0,a.bR)(t).length:0},only:function(t){var e=(0,a.bR)(t);if(1!==e.length)throw"Children.only";return e[0]},toArray:a.bR},j=a.YM.__e;a.YM.__e=function(t,e,n){if(t.then)for(var r,o=e;o=o.__;)if((r=o.__c)&&r.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e);j(t,e,n)};var q=a.YM.unmount;function W(){this.__u=0,this.t=null,this.__b=null}function F(t){var e=t.__.__c;return e&&e.__e&&e.__e(t)}function K(t){var e,n,r;function o(o){if(e||(e=t()).then((function(t){n=t.default||t}),(function(t){r=t})),r)throw r;if(!n)throw e;return(0,a.az)(n,o)}return o.displayName="Lazy",o.__f=!0,o}function V(){this.u=null,this.o=null}a.YM.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&!0===t.__h&&(t.type=null),q&&q(t)},(W.prototype=new a.wA).__c=function(t,e){var n=e.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=F(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(u):u())};n.__R=a;var u=function(){if(! --r.__u){if(r.state.__e){var t=r.state.__e;r.__v.__k[0]=function t(e,n,r){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return t(e,n,r)})),e.__c&&e.__c.__P===n&&(e.__e&&r.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=r)),e}(t,t.__c.__P,t.__c.__O)}var e;for(r.setState({__e:r.__b=null});e=r.t.pop();)e.forceUpdate()}},c=!0===e.__h;r.__u++||c||r.setState({__e:r.__b=r.__v.__k[0]}),t.then(a,a)},W.prototype.componentWillUnmount=function(){this.t=[]},W.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function t(e,n,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),e.__c.__H=null),null!=(e=C({},e)).__c&&(e.__c.__P===r&&(e.__c.__P=n),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return t(e,n,r)}))),e}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=e.__e&&(0,a.az)(a.HY,null,t.fallback);return o&&(o.__h=null),[(0,a.az)(a.HY,null,e.__e?null:t.children),o]};var H=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function Y(t){return this.getChildContext=function(){return t.context},t.children}function z(t){var e=this,n=t.i;e.componentWillUnmount=function(){(0,a.sY)(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),t.__v?(e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(t){this.childNodes.push(t),e.i.appendChild(t)},insertBefore:function(t,n){this.childNodes.push(t),e.i.appendChild(t)},removeChild:function(t){this.childNodes.splice(this.childNodes.indexOf(t)>>>1,1),e.i.removeChild(t)}}),(0,a.sY)((0,a.az)(Y,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function J(t,e){return(0,a.az)(z,{__v:t,i:e})}(V.prototype=new a.wA).__e=function(t){var e=this,n=F(e.__v),r=e.o.get(t);return r[0]++,function(o){var i=function(){e.props.revealOrder?(r.push(o),H(e,t,r)):o()};n?n(i):i()}},V.prototype.render=function(t){this.u=null,this.o=new Map;var e=(0,a.bR)(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},V.prototype.componentDidUpdate=V.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){H(t,n,e)}))};var X="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Q=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|marker(?!H|W|U)|overline|paint|stop|strikethrough|stroke|text(?!L)|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,$="undefined"!=typeof document,tt=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(t)};function et(t,e,n){return null==e.__k&&(e.textContent=""),(0,a.sY)(t,e),"function"==typeof n&&n(),t?t.__c:null}function nt(t,e,n){return(0,a.ZB)(t,e),"function"==typeof n&&n(),t?t.__c:null}a.wA.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(a.wA.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var rt=a.YM.event;function ot(){}function it(){return this.cancelBubble}function at(){return this.defaultPrevented}a.YM.event=function(t){return rt&&(t=rt(t)),t.persist=ot,t.isPropagationStopped=it,t.isDefaultPrevented=at,t.nativeEvent=t};var ut,ct={configurable:!0,get:function(){return this.class}},st=a.YM.vnode;a.YM.vnode=function(t){var e=t.type,n=t.props,r=n;if("string"==typeof e){var o=-1===e.indexOf("-");for(var i in r={},n){var u=n[i];$&&"children"===i&&"noscript"===e||"value"===i&&"defaultValue"in n&&null==u||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===u?u="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+e)&&!tt(n.type)?i="oninput":/^on(Ani|Tra|Tou|BeforeInp)/.test(i)?i=i.toLowerCase():o&&Q.test(i)?i=i.replace(/[A-Z0-9]/,"-$&").toLowerCase():null===u&&(u=void 0),r[i]=u)}"select"==e&&r.multiple&&Array.isArray(r.value)&&(r.value=(0,a.bR)(n.children).forEach((function(t){t.props.selected=-1!=r.value.indexOf(t.props.value)}))),"select"==e&&null!=r.defaultValue&&(r.value=(0,a.bR)(n.children).forEach((function(t){t.props.selected=r.multiple?-1!=r.defaultValue.indexOf(t.props.value):r.defaultValue==t.props.value}))),t.props=r}e&&n.class!=n.className&&(ct.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",ct)),t.$$typeof=X,st&&st(t)};var lt=a.YM.__r;a.YM.__r=function(t){lt&&lt(t),ut=t.__c};var ft={ReactCurrentDispatcher:{current:{readContext:function(t){return ut.__n[t.__c].props.value}}}},ht="17.0.2";function pt(t){return a.az.bind(null,t)}function _t(t){return!!t&&t.$$typeof===X}function dt(t){return _t(t)?a.Tm.apply(null,arguments):t}function vt(t){return!!t.__k&&((0,a.sY)(null,t),!0)}function yt(t){return t&&(t.base||1===t.nodeType&&t)||null}var mt=function(t,e){return t(e)},gt=function(t,e){return t(e)},Et=a.HY,bt={useState:d,useReducer:v,useEffect:y,useLayoutEffect:m,useRef:g,useImperativeHandle:E,useMemo:b,useCallback:w,useContext:I,useDebugValue:T,version:"17.0.2",Children:U,render:et,hydrate:nt,unmountComponentAtNode:vt,createPortal:J,createElement:a.az,createContext:a.kr,createFactory:pt,cloneElement:dt,createRef:a.Vf,Fragment:a.HY,isValidElement:_t,findDOMNode:yt,Component:a.wA,PureComponent:R,memo:B,forwardRef:G,flushSync:gt,unstable_batchedUpdates:mt,StrictMode:a.HY,Suspense:W,SuspenseList:V,lazy:K,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ft}},"2mXy":function(t,e,n){"use strict";n.d(e,{HY:function(){return m},Tm:function(){return U},Vf:function(){return y},YM:function(){return o},ZB:function(){return Z},az:function(){return d},bR:function(){return O},kr:function(){return j},sY:function(){return G},wA:function(){return g}});var r,o,i,a,u,c,s,l={},f=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function p(t,e){for(var n in e)t[n]=e[n];return t}function _(t){var e=t.parentNode;e&&e.removeChild(t)}function d(t,e,n){var o,i,a,u={};for(a in e)"key"==a?o=e[a]:"ref"==a?i=e[a]:u[a]=e[a];if(arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===u[a]&&(u[a]=t.defaultProps[a]);return v(t,u,o,i,null)}function v(t,e,n,r,a){var u={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++i:a};return null==a&&null!=o.vnode&&o.vnode(u),u}function y(){return{current:null}}function m(t){return t.children}function g(t,e){this.props=t,this.context=e}function E(t,e){if(null==e)return t.__?E(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?E(t):null}function b(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return b(t)}}function w(t){(!t.__d&&(t.__d=!0)&&a.push(t)&&!I.__r++||c!==o.debounceRendering)&&((c=o.debounceRendering)||u)(I)}function I(){for(var t;I.__r=a.length;)t=a.sort((function(t,e){return t.__v.__b-e.__v.__b})),a=[],t.some((function(t){var e,n,r,o,i,a;t.__d&&(i=(o=(e=t).__v).__e,(a=e.__P)&&(n=[],(r=p({},o)).__v=o.__v+1,C(a,o,r,e.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?E(o):i,o.__h),P(n,o),o.__e!=i&&b(o)))}))}function T(t,e,n,r,o,i,a,u,c,s){var h,p,_,d,y,g,b,w=r&&r.__k||f,I=w.length;for(n.__k=[],h=0;h<e.length;h++)if(null!=(d=n.__k[h]=null==(d=e[h])||"boolean"==typeof d?null:"string"==typeof d||"number"==typeof d||"bigint"==typeof d?v(null,d,null,null,d):Array.isArray(d)?v(m,{children:d},null,null,null):d.__b>0?v(d.type,d.props,d.key,null,d.__v):d)){if(d.__=n,d.__b=n.__b+1,null===(_=w[h])||_&&d.key==_.key&&d.type===_.type)w[h]=void 0;else for(p=0;p<I;p++){if((_=w[p])&&d.key==_.key&&d.type===_.type){w[p]=void 0;break}_=null}C(t,d,_=_||l,o,i,a,u,c,s),y=d.__e,(p=d.ref)&&_.ref!=p&&(b||(b=[]),_.ref&&b.push(_.ref,null,d),b.push(p,d.__c||y,d)),null!=y?(null==g&&(g=y),"function"==typeof d.type&&d.__k===_.__k?d.__d=c=S(d,c,t):c=L(t,d,_,w,y,c),"function"==typeof n.type&&(n.__d=c)):c&&_.__e==c&&c.parentNode!=t&&(c=E(_))}for(n.__e=g,h=I;h--;)null!=w[h]&&("function"==typeof n.type&&null!=w[h].__e&&w[h].__e==n.__d&&(n.__d=E(r,h+1)),D(w[h],w[h]));if(b)for(h=0;h<b.length;h++)B(b[h],b[++h],b[++h])}function S(t,e,n){for(var r,o=t.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=t,e="function"==typeof r.type?S(r,e,n):L(n,r,r,o,r.__e,e));return e}function O(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){O(t,e)})):e.push(t)),e}function L(t,e,n,r,o,i){var a,u,c;if(void 0!==e.__d)a=e.__d,e.__d=void 0;else if(null==n||o!=i||null==o.parentNode)t:if(null==i||i.parentNode!==t)t.appendChild(o),a=null;else{for(u=i,c=0;(u=u.nextSibling)&&c<r.length;c+=2)if(u==o)break t;t.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function x(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||h.test(e)?n:n+"px"}function A(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||x(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||x(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r||t.addEventListener(e,i?k:N,i):t.removeEventListener(e,i?k:N,i);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function N(t){this.l[t.type+!1](o.event?o.event(t):t)}function k(t){this.l[t.type+!0](o.event?o.event(t):t)}function C(t,e,n,r,i,a,u,c,s){var l,f,h,_,d,v,y,E,b,w,I,S=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(s=n.__h,c=e.__e=n.__e,e.__h=null,a=[c]),(l=o.__b)&&l(e);try{t:if("function"==typeof S){if(E=e.props,b=(l=S.contextType)&&r[l.__c],w=l?b?b.props.value:l.__:r,n.__c?y=(f=e.__c=n.__c).__=f.__E:("prototype"in S&&S.prototype.render?e.__c=f=new S(E,w):(e.__c=f=new g(E,w),f.constructor=S,f.render=M),b&&b.sub(f),f.props=E,f.state||(f.state={}),f.context=w,f.__n=r,h=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=S.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=p({},f.__s)),p(f.__s,S.getDerivedStateFromProps(E,f.__s))),_=f.props,d=f.state,h)null==S.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==S.getDerivedStateFromProps&&E!==_&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(E,w),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(E,f.__s,w)||e.__v===n.__v){f.props=E,f.state=f.__s,e.__v!==n.__v&&(f.__d=!1),f.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),f.__h.length&&u.push(f);break t}null!=f.componentWillUpdate&&f.componentWillUpdate(E,f.__s,w),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(_,d,v)}))}f.context=w,f.props=E,f.state=f.__s,(l=o.__r)&&l(e),f.__d=!1,f.__v=e,f.__P=t,l=f.render(f.props,f.state,f.context),f.state=f.__s,null!=f.getChildContext&&(r=p(p({},r),f.getChildContext())),h||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(_,d)),I=null!=l&&l.type===m&&null==l.key?l.props.children:l,T(t,Array.isArray(I)?I:[I],e,n,r,i,a,u,c,s),f.base=e.__e,e.__h=null,f.__h.length&&u.push(f),y&&(f.__E=f.__=null),f.__e=!1}else null==a&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=R(n.__e,e,n,r,i,a,u,s);(l=o.diffed)&&l(e)}catch(t){e.__v=null,(s||null!=a)&&(e.__e=c,e.__h=!!s,a[a.indexOf(c)]=null),o.__e(t,e,n)}}function P(t,e){o.__c&&o.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){o.__e(t,e.__v)}}))}function R(t,e,n,o,i,a,u,c){var s,f,h,p=n.props,d=e.props,v=e.type,y=0;if("svg"===v&&(i=!0),null!=a)for(;y<a.length;y++)if((s=a[y])&&(s===t||(v?s.localName==v:3==s.nodeType))){t=s,a[y]=null;break}if(null==t){if(null===v)return document.createTextNode(d);t=i?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,d.is&&d),a=null,c=!1}if(null===v)p===d||c&&t.data===d||(t.data=d);else{if(a=a&&r.call(t.childNodes),f=(p=n.props||l).dangerouslySetInnerHTML,h=d.dangerouslySetInnerHTML,!c){if(null!=a)for(p={},y=0;y<t.attributes.length;y++)p[t.attributes[y].name]=t.attributes[y].value;(h||f)&&(h&&(f&&h.__html==f.__html||h.__html===t.innerHTML)||(t.innerHTML=h&&h.__html||""))}if(function(t,e,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in e||A(t,i,null,n[i],r);for(i in e)o&&"function"!=typeof e[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===e[i]||A(t,i,e[i],n[i],r)}(t,d,p,i,c),h)e.__k=[];else if(y=e.props.children,T(t,Array.isArray(y)?y:[y],e,n,o,i&&"foreignObject"!==v,a,u,a?a[0]:n.__k&&E(n,0),c),null!=a)for(y=a.length;y--;)null!=a[y]&&_(a[y]);c||("value"in d&&void 0!==(y=d.value)&&(y!==t.value||"progress"===v&&!y)&&A(t,"value",y,p.value,!1),"checked"in d&&void 0!==(y=d.checked)&&y!==t.checked&&A(t,"checked",y,p.checked,!1))}return t}function B(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){o.__e(t,n)}}function D(t,e,n){var r,i;if(o.unmount&&o.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||B(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){o.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(i=0;i<r.length;i++)r[i]&&D(r[i],e,"function"!=typeof t.type);n||null==t.__e||_(t.__e),t.__e=t.__d=void 0}function M(t,e,n){return this.constructor(t,n)}function G(t,e,n){var i,a,u;o.__&&o.__(t,e),a=(i="function"==typeof n)?null:n&&n.__k||e.__k,u=[],C(e,t=(!i&&n||e).__k=d(m,null,[t]),a||l,l,void 0!==e.ownerSVGElement,!i&&n?[n]:a?null:e.firstChild?r.call(e.childNodes):null,u,!i&&n?n:a?a.__e:e.firstChild,i),P(u,t)}function Z(t,e){G(t,e,Z)}function U(t,e,n){var o,i,a,u=p({},t.props);for(a in e)"key"==a?o=e[a]:"ref"==a?i=e[a]:u[a]=e[a];return arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):n),v(t.type,u,o||t.key,i||t.ref,null)}function j(t,e){var n={__c:e="__cC"+s++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some(w)},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}r=f.slice,o={__e:function(t,e){for(var n,r,o;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(t)),o=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),o=n.__d),o)return n.__E=n}catch(e){t=e}throw t}},i=0,g.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=p({},this.state),"function"==typeof t&&(t=t(p({},n),this.props)),t&&p(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),w(this))},g.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),w(this))},g.prototype.render=m,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,I.__r=0,s=0},tzDv:function(t,e,n){t.exports=function(){"use strict";var t={errors:{incompatible:"".concat("PushError:"," Push.js is incompatible with browser."),invalid_plugin:"".concat("PushError:"," plugin class missing from plugin manifest (invalid plugin). Please check the documentation."),invalid_title:"".concat("PushError:"," title of notification must be a string"),permission_denied:"".concat("PushError:"," permission request declined"),sw_notification_error:"".concat("PushError:"," could not show a ServiceWorker notification due to the following reason: "),sw_registration_error:"".concat("PushError:"," could not register the ServiceWorker due to the following reason: "),unknown_interface:"".concat("PushError:"," unable to create notification: unknown interface")}};function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}var l=function(){function t(e){r(this,t),this._win=e,this.GRANTED="granted",this.DEFAULT="default",this.DENIED="denied",this._permissions=[this.GRANTED,this.DEFAULT,this.DENIED]}return i(t,[{key:"request",value:function(t,e){return arguments.length>0?this._requestWithCallback.apply(this,arguments):this._requestAsPromise()}},{key:"_requestWithCallback",value:function(t,e){var n,r=this,o=this.get(),i=!1,a=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r._win.Notification.permission;i||(i=!0,void 0===n&&r._win.webkitNotifications&&(n=r._win.webkitNotifications.checkPermission()),n===r.GRANTED||0===n?t&&t():e&&e())};o!==this.DEFAULT?a(o):this._win.webkitNotifications&&this._win.webkitNotifications.checkPermission?this._win.webkitNotifications.requestPermission(a):this._win.Notification&&this._win.Notification.requestPermission?(n=this._win.Notification.requestPermission(a))&&n.then&&n.then(a).catch((function(){e&&e()})):t&&t()}},{key:"_requestAsPromise",value:function(){var t=this,e=this.get(),n=e!==this.DEFAULT,r=this._win.Notification&&this._win.Notification.requestPermission,o=this._win.webkitNotifications&&this._win.webkitNotifications.checkPermission;return new Promise((function(i,a){var u,c=!1,s=function(e){c||(c=!0,function(e){return e===t.GRANTED||0===e}(e)?i():a())};n?s(e):o?t._win.webkitNotifications.requestPermission((function(t){s(t)})):r?(u=t._win.Notification.requestPermission(s))&&u.then&&u.then(s).catch(a):i()}))}},{key:"has",value:function(){return this.get()===this.GRANTED}},{key:"get",value:function(){return this._win.Notification&&this._win.Notification.permission?this._win.Notification.permission:this._win.webkitNotifications&&this._win.webkitNotifications.checkPermission?this._permissions[this._win.webkitNotifications.checkPermission()]:navigator.mozNotification?this.GRANTED:this._win.external&&this._win.external.msIsSiteMode?this._win.external.msIsSiteMode()?this.GRANTED:this.DEFAULT:this.GRANTED}}]),t}(),f=function(){function t(){r(this,t)}return i(t,null,[{key:"isUndefined",value:function(t){return void 0===t}},{key:"isNull",value:function(t){return null===obj}},{key:"isString",value:function(t){return"string"==typeof t}},{key:"isFunction",value:function(t){return t&&"[object Function]"==={}.toString.call(t)}},{key:"isObject",value:function(t){return"object"===e(t)}},{key:"objectMerge",value:function(t,e){for(var n in e)t.hasOwnProperty(n)&&this.isObject(t[n])&&this.isObject(e[n])?this.objectMerge(t[n],e[n]):t[n]=e[n]}}]),t}(),h=function t(e){r(this,t),this._win=e},p=function(t){function e(){return r(this,e),s(this,u(e).apply(this,arguments))}return a(e,h),i(e,[{key:"isSupported",value:function(){return void 0!==this._win.Notification}},{key:"create",value:function(t,e){return new this._win.Notification(t,{icon:f.isString(e.icon)||f.isUndefined(e.icon)||f.isNull(e.icon)?e.icon:e.icon.x32,body:e.body,tag:e.tag,requireInteraction:e.requireInteraction})}},{key:"close",value:function(t){t.close()}}]),e}(),_=function(e){function n(){return r(this,n),s(this,u(n).apply(this,arguments))}return a(n,h),i(n,[{key:"isSupported",value:function(){return void 0!==this._win.navigator&&void 0!==this._win.navigator.serviceWorker}},{key:"getFunctionBody",value:function(t){var e=t.toString().match(/function[^{]+{([\s\S]*)}$/);return null!=e&&e.length>1?e[1]:null}},{key:"create",value:function(e,n,r,o,i){var a=this;this._win.navigator.serviceWorker.register(o),this._win.navigator.serviceWorker.ready.then((function(o){var u={id:e,link:r.link,origin:document.location.href,onClick:f.isFunction(r.onClick)?a.getFunctionBody(r.onClick):"",onClose:f.isFunction(r.onClose)?a.getFunctionBody(r.onClose):""};void 0!==r.data&&null!==r.data&&(u=Object.assign(u,r.data)),o.showNotification(n,{icon:r.icon,body:r.body,vibrate:r.vibrate,tag:r.tag,data:u,requireInteraction:r.requireInteraction,silent:r.silent}).then((function(){o.getNotifications().then((function(t){o.active.postMessage(""),i(t)}))})).catch((function(e){throw new Error(t.errors.sw_notification_error+e.message)}))})).catch((function(e){throw new Error(t.errors.sw_registration_error+e.message)}))}},{key:"close",value:function(){}}]),n}(),d=function(t){function e(){return r(this,e),s(this,u(e).apply(this,arguments))}return a(e,h),i(e,[{key:"isSupported",value:function(){return void 0!==this._win.navigator.mozNotification}},{key:"create",value:function(t,e){var n=this._win.navigator.mozNotification.createNotification(t,e.body,e.icon);return n.show(),n}}]),e}(),v=function(t){function e(){return r(this,e),s(this,u(e).apply(this,arguments))}return a(e,h),i(e,[{key:"isSupported",value:function(){return void 0!==this._win.external&&void 0!==this._win.external.msIsSiteMode}},{key:"create",value:function(t,e){return this._win.external.msSiteModeClearIconOverlay(),this._win.external.msSiteModeSetIconOverlay(f.isString(e.icon)||f.isUndefined(e.icon)?e.icon:e.icon.x16,t),this._win.external.msSiteModeActivate(),null}},{key:"close",value:function(){this._win.external.msSiteModeClearIconOverlay()}}]),e}(),y=function(t){function e(){return r(this,e),s(this,u(e).apply(this,arguments))}return a(e,h),i(e,[{key:"isSupported",value:function(){return void 0!==this._win.webkitNotifications}},{key:"create",value:function(t,e){var n=this._win.webkitNotifications.createNotification(e.icon,t,e.body);return n.show(),n}},{key:"close",value:function(t){t.cancel()}}]),e}();return new(function(){function e(t){r(this,e),this._currentId=0,this._notifications={},this._win=t,this.Permission=new l(t),this._agents={desktop:new p(t),chrome:new _(t),firefox:new d(t),ms:new v(t),webkit:new y(t)},this._configuration={serviceWorker:"/serviceWorker.min.js",fallback:function(t){}}}return i(e,[{key:"_closeNotification",value:function(e){var n=!0,r=this._notifications[e];if(void 0!==r){if(n=this._removeNotification(e),this._agents.desktop.isSupported())this._agents.desktop.close(r);else if(this._agents.webkit.isSupported())this._agents.webkit.close(r);else{if(!this._agents.ms.isSupported())throw n=!1,new Error(t.errors.unknown_interface);this._agents.ms.close()}return n}return!1}},{key:"_addNotification",value:function(t){var e=this._currentId;return this._notifications[e]=t,this._currentId++,e}},{key:"_removeNotification",value:function(t){var e=!1;return this._notifications.hasOwnProperty(t)&&(delete this._notifications[t],e=!0),e}},{key:"_prepareNotification",value:function(t,e){var n,r=this;return n={get:function(){return r._notifications[t]},close:function(){r._closeNotification(t)}},e.timeout&&setTimeout((function(){n.close()}),e.timeout),n}},{key:"_serviceWorkerCallback",value:function(t,e,n){var r=this,o=this._addNotification(t[t.length-1]);navigator&&navigator.serviceWorker&&(navigator.serviceWorker.addEventListener("message",(function(t){var e=JSON.parse(t.data);"close"===e.action&&Number.isInteger(e.id)&&r._removeNotification(e.id)})),n(this._prepareNotification(o,e))),n(null)}},{key:"_createCallback",value:function(t,e,n){var r,o=this,i=null;if(e=e||{},r=function(t){o._removeNotification(t),f.isFunction(e.onClose)&&e.onClose.call(o,i)},this._agents.desktop.isSupported())try{i=this._agents.desktop.create(t,e)}catch(r){var a=this._currentId,u=this.config().serviceWorker;this._agents.chrome.isSupported()&&this._agents.chrome.create(a,t,e,u,(function(t){return o._serviceWorkerCallback(t,e,n)}))}else this._agents.webkit.isSupported()?i=this._agents.webkit.create(t,e):this._agents.firefox.isSupported()?this._agents.firefox.create(t,e):this._agents.ms.isSupported()?i=this._agents.ms.create(t,e):(e.title=t,this.config().fallback(e));if(null!==i){var c=this._addNotification(i),s=this._prepareNotification(c,e);f.isFunction(e.onShow)&&i.addEventListener("show",e.onShow),f.isFunction(e.onError)&&i.addEventListener("error",e.onError),f.isFunction(e.onClick)&&i.addEventListener("click",e.onClick),i.addEventListener("close",(function(){r(c)})),i.addEventListener("cancel",(function(){r(c)})),n(s)}n(null)}},{key:"create",value:function(e,n){var r,o=this;if(!f.isString(e))throw new Error(t.errors.invalid_title);return r=this.Permission.has()?function(t,r){try{o._createCallback(e,n,t)}catch(t){r(t)}}:function(r,i){o.Permission.request().then((function(){o._createCallback(e,n,r)})).catch((function(){i(t.errors.permission_denied)}))},new Promise(r)}},{key:"count",value:function(){var t,e=0;for(t in this._notifications)this._notifications.hasOwnProperty(t)&&e++;return e}},{key:"close",value:function(t){var e;for(e in this._notifications)if(this._notifications.hasOwnProperty(e)&&this._notifications[e].tag===t)return this._closeNotification(e)}},{key:"clear",value:function(){var t,e=!0;for(t in this._notifications)this._notifications.hasOwnProperty(t)&&(e=e&&this._closeNotification(t));return e}},{key:"supported",value:function(){var t=!1;for(var e in this._agents)this._agents.hasOwnProperty(e)&&(t=t||this._agents[e].isSupported());return t}},{key:"config",value:function(t){return(void 0!==t||null!==t&&f.isObject(t))&&f.objectMerge(this._configuration,t),this._configuration}},{key:"extend",value:function(e){var n,r={}.hasOwnProperty;if(!r.call(e,"plugin"))throw new Error(t.errors.invalid_plugin);for(var o in r.call(e,"config")&&f.isObject(e.config)&&null!==e.config&&this.config(e.config),n=new(0,e.plugin)(this.config()))r.call(n,o)&&f.isFunction(n[o])&&(this[o]=n[o])}}]),e}())("undefined"!=typeof window?window:n.g)}()},"2Pgj":function(t,e,n){"use strict";var r;n.d(e,{Z:function(){return i}});var o=new Uint8Array(16);function i(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}},WM9j:function(t,e,n){"use strict";for(var r=n("eYoT"),o=[],i=0;i<256;++i)o.push((i+256).toString(16).substr(1));e.Z=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(o[t[e+0]]+o[t[e+1]]+o[t[e+2]]+o[t[e+3]]+"-"+o[t[e+4]]+o[t[e+5]]+"-"+o[t[e+6]]+o[t[e+7]]+"-"+o[t[e+8]]+o[t[e+9]]+"-"+o[t[e+10]]+o[t[e+11]]+o[t[e+12]]+o[t[e+13]]+o[t[e+14]]+o[t[e+15]]).toLowerCase();if(!(0,r.Z)(n))throw TypeError("Stringified UUID is invalid");return n}},"7Cbv":function(t,e,n){"use strict";var r=n("2Pgj"),o=n("WM9j");e.Z=function(t,e,n){var i=(t=t||{}).random||(t.rng||r.Z)();if(i[6]=15&i[6]|64,i[8]=63&i[8]|128,e){n=n||0;for(var a=0;a<16;++a)e[n+a]=i[a];return e}return(0,o.Z)(i)}},eYoT:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,o=function(t){return"string"==typeof t&&r.test(t)}},"/0+J":function(t,e,n){"use strict";function r(t,e,n,r,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,c,"next",t)}function c(t){r(a,o,i,u,c,"throw",t)}u(void 0)}))}}n.d(e,{Z:function(){return o}})},"+9dH":function(t,e,n){"use strict";function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},r.apply(this,arguments)}n.d(e,{Z:function(){return r}})},Nlia:function(t,e,n){"use strict";function r(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],e.indexOf(n)>=0||(o[n]=t[n]);return o}n.d(e,{Z:function(){return r}})}},__webpack_module_cache__={},leafPrototypes,getProto,inProgress,dataWebpackPrefix;function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.m=__webpack_modules__,__webpack_require__.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return __webpack_require__.d(e,{a:e}),e},getProto=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},__webpack_require__.t=function(t,e){if(1&e&&(t=this(t)),8&e)return t;if("object"==typeof t&&t){if(4&e&&t.__esModule)return t;if(16&e&&"function"==typeof t.then)return t}var n=Object.create(null);__webpack_require__.r(n);var r={};leafPrototypes=leafPrototypes||[null,getProto({}),getProto([]),getProto(getProto)];for(var o=2&e&&t;"object"==typeof o&&!~leafPrototypes.indexOf(o);o=getProto(o))Object.getOwnPropertyNames(o).forEach((function(e){r[e]=function(){return t[e]}}));return r.default=function(){return t},__webpack_require__.d(n,r),n},__webpack_require__.d=function(t,e){for(var n in e)__webpack_require__.o(e,n)&&!__webpack_require__.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},__webpack_require__.f={},__webpack_require__.e=function(t){return Promise.all(Object.keys(__webpack_require__.f).reduce((function(e,n){return __webpack_require__.f[n](t,e),e}),[]))},__webpack_require__.u=function(t){return t+"."+t+"."+__webpack_require__.h()+".js"},__webpack_require__.h=function(){return"989bf9ee79ce72d41167"},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},inProgress={},dataWebpackPrefix="ebbot_chat_widget:",__webpack_require__.l=function(t,e,n,r){if(inProgress[t])inProgress[t].push(e);else{var o,i;if(void 0!==n)for(var a=document.getElementsByTagName("script"),u=0;u<a.length;u++){var c=a[u];if(c.getAttribute("src")==t||c.getAttribute("data-webpack")==dataWebpackPrefix+n){o=c;break}}o||(i=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,__webpack_require__.nc&&o.setAttribute("nonce",__webpack_require__.nc),o.setAttribute("data-webpack",dataWebpackPrefix+n),o.src=t),inProgress[t]=[e];var s=function(e,n){o.onerror=o.onload=null,clearTimeout(l);var r=inProgress[t];if(delete inProgress[t],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach((function(t){return t(n)})),e)return e(n)},l=setTimeout(s.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=s.bind(null,o.onerror),o.onload=s.bind(null,o.onload),i&&document.head.appendChild(o)}},__webpack_require__.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},__webpack_require__.j=4826,__webpack_require__.p="https://ebbot-v2.storage.googleapis.com/ebbot-web/v2/2/dist/",function(){var t={4826:0};__webpack_require__.f.j=function(e,n){var r=__webpack_require__.o(t,e)?t[e]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((function(n,o){r=t[e]=[n,o]}));n.push(r[2]=o);var i=__webpack_require__.p+__webpack_require__.u(e),a=new Error;__webpack_require__.l(i,(function(n){if(__webpack_require__.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+e+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+e,e)}};var e=function(e,n){var r,o,i=n[0],a=n[1],u=n[2],c=0;if(i.some((function(e){return 0!==t[e]}))){for(r in a)__webpack_require__.o(a,r)&&(__webpack_require__.m[r]=a[r]);u&&u(__webpack_require__)}for(e&&e(n);c<i.length;c++)o=i[c],__webpack_require__.o(t,o)&&t[o]&&t[o][0](),t[o]=0},n=self.webpackChunkebbot_chat_widget=self.webpackChunkebbot_chat_widget||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))}();var __webpack_exports__={};!function(){"use strict";var t=__webpack_require__("2mXy"),e=__webpack_require__("+9dH"),n=__webpack_require__("/0+J"),r=__webpack_require__("Cmfx"),o=__webpack_require__("LTwd"),i=__webpack_require__("Qcun"),a=__webpack_require__("lqEK"),u=__webpack_require__("m8BB"),c=__webpack_require__("F0kC"),s=__webpack_require__("OPph"),l=__webpack_require__("e5fA"),f=__webpack_require__("8R7p"),h=__webpack_require__("uiih"),p=__webpack_require__("3bAv"),_=__webpack_require__("/tKw"),d=__webpack_require__("VLED"),v=__webpack_require__("A14V"),y=__webpack_require__("bK3N"),m=__webpack_require__("Es6C");function g(){var t=(0,o.Z)(),e=f.pw;document.getElementById(t.containerId||e).style.display="inline"}function E(){var t=(0,o.Z)(),e=f.pw;document.getElementById(t.containerId||e).style.display="none"}function b(){var t=(0,o.Z)(),e=f.pw;return"none"===document.getElementById(t.containerId||e).style.display}var w=__webpack_require__("cdxp"),I=__webpack_require__("zORs"),T=__webpack_require__("YCz7"),S=__webpack_require__("itU4"),O=__webpack_require__("i+Et"),L=__webpack_require__("HBUd");function x(){x=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function s(t,e,n,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),u=new S(o||[]);return r(a,"_invoke",{value:b(t,n,u)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function _(){}var d={};c(d,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==e&&n.call(y,i)&&(d=y);var m=_.prototype=h.prototype=Object.create(d);function g(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function o(r,i,a,u){var c=l(t[r],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,u)}),(function(t){o("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,u)}))}u(c.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function b(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===f)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function w(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=l(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function O(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return p.prototype=_,r(m,"constructor",{value:_,configurable:!0}),r(_,"constructor",{value:p,configurable:!0}),p.displayName=c(_,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c(t,u,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},g(E.prototype),c(E.prototype,a,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(s(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},g(m),c(m,u,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=O,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function A(){return N.apply(this,arguments)}function N(){return(N=(0,n.Z)(x().mark((function t(){return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(0,L.Z)(),t.abrupt("return",(0,O.Z)().then((function(){return(0,c.Z)({forceOpen:!0}),!0})));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var k=__webpack_require__("XsSB");function C(){var t=0,e=0,n=(0,k.k)().isMobile,r=document.getElementById("ebbot-chat-root").shadowRoot;if(r){var o=0,i=0,a=0,u=0,c=r.querySelector("#ebbot-new-chat .ebbot-chat-box");c&&(o=c.offsetWidth,i=c.offsetHeight);var s=r.querySelector("#ebbot-new-chat .ebbot-blob");s&&(a=s.offsetWidth,u=s.offsetHeight),t=o>a?o:a,e=n?i:u+(i?i+20:0)}return{width:t,height:e}}var P=__webpack_require__("kut6"),R=__webpack_require__("Z+uI"),B=__webpack_require__("cr2b"),D=__webpack_require__("jz8p"),M=__webpack_require__("db6H");function G(){G=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function s(t,e,n,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),u=new S(o||[]);return r(a,"_invoke",{value:b(t,n,u)}),a}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var f={};function h(){}function p(){}function _(){}var d={};c(d,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==e&&n.call(y,i)&&(d=y);var m=_.prototype=h.prototype=Object.create(d);function g(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function o(r,i,a,u){var c=l(t[r],t,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,u)}),(function(t){o("throw",t,a,u)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return o("throw",t,a,u)}))}u(c.arg)}var i;r(this,"_invoke",{value:function(t,n){function r(){return new e((function(e,r){o(t,n,e,r)}))}return i=i?i.then(r,r):r()}})}function b(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return{value:void 0,done:!0}}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===f)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=l(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===f)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function w(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,w(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=l(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function T(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function O(t){if(t||""===t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return p.prototype=_,r(m,"constructor",{value:_,configurable:!0}),r(_,"constructor",{value:p,configurable:!0}),p.displayName=c(_,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,c(t,u,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},g(E.prototype),c(E.prototype,a,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(s(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},g(m),c(m,u,"Generator"),c(m,i,(function(){return this})),c(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},t.values=O,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),T(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:O(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}function Z(t){return U.apply(this,arguments)}function U(){return(U=(0,n.Z)(G().mark((function t(e){var n,a;return G().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=(0,r.lazy)((function(){return Promise.all([__webpack_require__.e(4806),__webpack_require__.e(1072),__webpack_require__.e(2245),__webpack_require__.e(2642),__webpack_require__.e(9110),__webpack_require__.e(8566),__webpack_require__.e(8595)]).then(__webpack_require__.bind(__webpack_require__,"TO3d"))})),(0,i.Z)("onBeforeLoad"),a=function(){var t=(0,o.Z)(),i=f.pw,a=document.getElementById(t.containerId||i);if(!a){var u=document.querySelector("body");(a=document.createElement("span")).id=i,u.insertBefore(a,u.firstChild)}e(r.default.createElement(r.Suspense,{fallback:""},r.default.createElement(n,null)),a)},["complete","loaded","interactive"].includes(document.readyState)?a():window.addEventListener("DOMContentLoaded",a),(0,i.Z)("onCreate");case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function j(t){return q.apply(this,arguments)}function q(){return(q=(0,n.Z)(G().mark((function t(e){var n,r,a;return G().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=(0,o.Z)(),r=f.pw,a=document.getElementById(n.containerId||r),e(null,a),(0,i.Z)("onDestroy");case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function W(t){return F.apply(this,arguments)}function F(){return F=(0,n.Z)(G().mark((function t(r){var i;return G().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(i=(0,o.Z)()).create=(0,n.Z)(G().mark((function t(){return G().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,Z(r);case 3:t.next=9;break;case 5:return t.prev=5,t.t0=t.catch(0),console.log(t.t0),t.abrupt("return",!1);case 9:return t.abrupt("return",!0);case 10:case"end":return t.stop()}}),t,null,[[0,5]])}))),i.destroy=(0,n.Z)(G().mark((function t(){return G().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,j(r);case 3:t.next=9;break;case 5:return t.prev=5,t.t0=t.catch(0),console.log(t.t0),t.abrupt("return",!1);case 9:return t.abrupt("return",!0);case 10:case"end":return t.stop()}}),t,null,[[0,5]])}))),i.isInitialized=function(){return t=(0,y.Z)().store,(0,S.A0)(t);var t},i.resetSession=function(){return(0,u.Z)({redirectToNewConversationSession:!(0,D.Z)(),publishCloseEvent:!0})},i.initChatWindow=(0,n.Z)(G().mark((function t(){return G().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,A();case 3:t.next=9;break;case 5:return t.prev=5,t.t0=t.catch(0),console.log(t.t0),t.abrupt("return",!1);case 9:return t.abrupt("return",!0);case 10:case"end":return t.stop()}}),t,null,[[0,5]])}))),i.openChatWindow=function(){try{(0,c.Z)({forceOpen:!0})}catch(t){return console.log(t),!1}return!0},i.closeChatWindow=function(){try{(0,c.Z)({forceClose:!0})}catch(t){return console.log(t),!1}return!0},i.isChatWindowOpened=function(){return(0,s.Z)()},i.isChatWindowClosed=function(){return!(0,s.Z)()},i.sendMessage=function(){var t=(0,n.Z)(G().mark((function t(e){return G().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return void 0===e&&(e=""),t.prev=1,t.next=4,(0,h.Z)({type:l.tq.TEXT,value:e,pending:!0});case 4:t.next=10;break;case 6:return t.prev=6,t.t0=t.catch(1),console.log(t.t0),t.abrupt("return",!1);case 10:return t.abrupt("return",!0);case 11:case"end":return t.stop()}}),t,null,[[1,6]])})));return function(e){return t.apply(this,arguments)}}(),i.setUserAttribute=function(){var t=(0,n.Z)(G().mark((function t(n){var r,o;return G().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===n&&(n={}),r=(0,p.Z)(),o=JSON.parse(r.getItem(f.I.EBBOT_USER_INFO)||"{}"),r.setItem(f.I.EBBOT_USER_INFO,JSON.stringify((0,e.Z)({},o,n))),!(0,a.Z)()){t.next=14;break}return t.prev=5,t.next=8,(0,h.Z)({type:l.tq.UPDATE_CONVERSATION_INFO,value:n,stop:!0});case 8:t.next=14;break;case 10:return t.prev=10,t.t0=t.catch(5),console.log(t.t0),t.abrupt("return",!1);case 14:return t.abrupt("return",!0);case 15:case"end":return t.stop()}}),t,null,[[5,10]])})));return function(e){return t.apply(this,arguments)}}(),i.triggerScenario=function(t){return(0,d.Z)({type:l.tq.SCENARIO,next:t})},i.triggerConversationStarter=function(t){return void 0===t&&(t={}),(0,P.tm)(t.id)},i.endChat=(0,n.Z)(G().mark((function t(){return G().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,(0,_.Z)({publishCloseEvent:!0});case 3:t.next=9;break;case 5:return t.prev=5,t.t0=t.catch(0),console.log(t.t0),t.abrupt("return",!1);case 9:return t.abrupt("return",!0);case 10:case"end":return t.stop()}}),t,null,[[0,5]])}))),i.transcriptChat=function(){return(0,w.V)()},i.snoozeChat=function(){try{(0,I.Z)()}catch(t){return console.log(t),!1}return!0},i.isSnoozed=function(){return(0,T.Z)()},i.isGPTSourceOpened=function(){var t=(0,y.Z)().store,e=(0,m.Z)().chatId;return!!(0,M.ou)(e)(t)},i.isGPTSourceClosed=function(){var t=(0,y.Z)().store,e=(0,m.Z)().chatId;return!(0,M.ou)(e)(t)},i.hide=function(){try{E()}catch(t){return console.log(t),!1}return!0},i.show=function(){try{g()}catch(t){return console.log(t),!1}return!0},i.isHidden=function(){return b()},i.clearChat=function(){try{t=(0,y.Z)().dispatch,e=(0,m.Z)().chatId,t((0,v.gD)({chatId:e}))}catch(t){return console.log(t),!1}var t,e;return!0},i.isUserActive=function(){return(0,a.Z)()},i.isConversationActive=function(){return(0,a.Z)()},i.getWidgetSize=function(){return C()};case 27:case"end":return t.stop()}}),t)}))),F.apply(this,arguments)}function K(){return(K=(0,n.Z)(G().mark((function t(e){return G().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,W(e);case 2:if(!(0,R.Z)()){t.next=5;break}return t.next=5,(0,B.DB)();case 5:return t.next=7,Z(e);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}!function(t){K.apply(this,arguments)}(t.sY)}()})();