@botfabrik/engine-webclient 4.25.1 → 4.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -278,3 +278,67 @@ Um den Server- und Client-Teil des Webclients lokal zu entwickeln (leider ohne H
278
278
  Das Google-Speech-to-Text API muss für das entsprechende Projekt aktiviert werden. Zudem muss der Service Account über die entsprechenden Rollen verfügen. Siehe:
279
279
  https://cloud.google.com/speech-to-text/docs/quickstart-client-libraries?hl=de
280
280
  https://ctrlq.org/code/20550-cloud-speech-api-with-service-account
281
+
282
+ ## Javascript API
283
+
284
+ Der Webclient bietet ein API an, über welches der Chat gesteuert werden kann. Die API Funktionen stehen via Namespace `chatbot` zur Verfügung.
285
+
286
+ ### openChatWindow
287
+
288
+ Öffnet das Chat Fenster.
289
+
290
+ Beispiel:
291
+
292
+ `chatbot.openChatWindow();`
293
+
294
+ ### closeChatWindow
295
+
296
+ Schliesst das Chat Fenster.
297
+
298
+ Beispiel:
299
+
300
+ `chatbot.closeChatWindow();`
301
+
302
+ ### toggleChatWindow
303
+
304
+ Öffne das Chatfenster wenn es geschlossen ist und schliesst es, wenn es offen ist.
305
+
306
+ Beispiel:
307
+
308
+ `chatbot.toggleChatWindow();`
309
+
310
+ ### enterGuestMessage
311
+
312
+ Sendet eine Nachricht im Namen des Gastes an den Chatbot.
313
+
314
+ Beispiel:
315
+
316
+ `chatbot.enterGuestMessage("Hallo Welt");`
317
+
318
+ ### triggerStory
319
+
320
+ Gibt den Befehl, eine Story (Intent) auszuführen.
321
+
322
+ Beispiel:
323
+
324
+ `chatbot.triggerStory("GET_STARTED");`
325
+
326
+ ### isChatbotLoaded
327
+
328
+ Gibt `true` zurück, wenn der Chatbot geladen und der FAB sichtbar ist.
329
+
330
+ Beispiel:
331
+
332
+ `const isLoaded = chatbot.isChatbotLoaded();`
333
+
334
+ ### subscribe
335
+
336
+ Erlaub das Registrieren von Event-Handlers.
337
+
338
+ #### ON_CHAT_WINDOW_STATE_CHANGE
339
+
340
+ ```
341
+ chatbot.subscribe('ON_CHAT_WINDOW_STATE_CHANGE', function onChange(open) {
342
+ console.log('chat window is ' + open ? 'open' : 'close')
343
+ })
344
+ ```
@@ -1,2 +1,2 @@
1
- !function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function n(t,e){return(n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function r(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&&n(t,e)}function o(t){return(o="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 i(t,n){return!n||"object"!==o(n)&&"function"!=typeof n?e(t):n}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(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 u(t,e){if(t){if("string"==typeof t)return a(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)?a(t,e):void 0}}function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var r,o,i=[],c=!0,a=!1;try{for(n=n.call(t);!(c=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);c=!0);}catch(t){a=!0,o=t}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||u(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function f(t,e){return t(e={exports:{}},e.exports),e.exports}var p=function(t){return t&&t.Math==Math&&t},v=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof s&&s)||function(){return this}()||Function("return this")(),d=function(t){try{return!!t()}catch(t){return!0}},h=!d((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),g={}.propertyIsEnumerable,y=Object.getOwnPropertyDescriptor,m={f:y&&!g.call({1:2},1)?function(t){var e=y(this,t);return!!e&&e.enumerable}:g},b=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},w={}.toString,x=function(t){return w.call(t).slice(8,-1)},S="".split,E=d((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==x(t)?S.call(t,""):Object(t)}:Object,O=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},j=function(t){return E(O(t))},T=function(t){return"object"==typeof t?null!==t:"function"==typeof t},A=function(t,e){if(!T(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!T(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!T(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!T(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},k=function(t){return Object(O(t))},R={}.hasOwnProperty,P=function(t,e){return R.call(k(t),e)},I=v.document,_=T(I)&&T(I.createElement),$=function(t){return _?I.createElement(t):{}},C=!h&&!d((function(){return 7!=Object.defineProperty($("div"),"a",{get:function(){return 7}}).a})),L=Object.getOwnPropertyDescriptor,U={f:h?L:function(t,e){if(t=j(t),e=A(e,!0),C)try{return L(t,e)}catch(t){}if(P(t,e))return b(!m.f.call(t,e),t[e])}},M=function(t){if(!T(t))throw TypeError(String(t)+" is not an object");return t},D=Object.defineProperty,N={f:h?D:function(t,e,n){if(M(t),e=A(e,!0),M(n),C)try{return D(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},z=h?function(t,e,n){return N.f(t,e,b(1,n))}:function(t,e,n){return t[e]=n,t},F=function(t,e){try{z(v,t,e)}catch(n){v[t]=e}return e},B=v["__core-js_shared__"]||F("__core-js_shared__",{}),q=Function.toString;"function"!=typeof B.inspectSource&&(B.inspectSource=function(t){return q.call(t)});var G,W,K,Y=B.inspectSource,V=v.WeakMap,H="function"==typeof V&&/native code/.test(Y(V)),J=f((function(t){(t.exports=function(t,e){return B[t]||(B[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.12.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),Q=0,X=Math.random(),Z=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++Q+X).toString(36)},tt=J("keys"),et=function(t){return tt[t]||(tt[t]=Z(t))},nt={},rt=v.WeakMap;if(H||B.state){var ot=B.state||(B.state=new rt),it=ot.get,ct=ot.has,at=ot.set;G=function(t,e){if(ct.call(ot,t))throw new TypeError("Object already initialized");return e.facade=t,at.call(ot,t,e),e},W=function(t){return it.call(ot,t)||{}},K=function(t){return ct.call(ot,t)}}else{var ut=et("state");nt[ut]=!0,G=function(t,e){if(P(t,ut))throw new TypeError("Object already initialized");return e.facade=t,z(t,ut,e),e},W=function(t){return P(t,ut)?t[ut]:{}},K=function(t){return P(t,ut)}}var lt={set:G,get:W,has:K,enforce:function(t){return K(t)?W(t):G(t,{})},getterFor:function(t){return function(e){var n;if(!T(e)||(n=W(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},st=f((function(t){var e=lt.get,n=lt.enforce,r=String(String).split("String");(t.exports=function(t,e,o,i){var c,a=!!i&&!!i.unsafe,u=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof e||P(o,"name")||z(o,"name",e),(c=n(o)).source||(c.source=r.join("string"==typeof e?e:""))),t!==v?(a?!l&&t[e]&&(u=!0):delete t[e],u?t[e]=o:z(t,e,o)):u?t[e]=o:F(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||Y(this)}))})),ft=v,pt=function(t){return"function"==typeof t?t:void 0},vt=function(t,e){return arguments.length<2?pt(ft[t])||pt(v[t]):ft[t]&&ft[t][e]||v[t]&&v[t][e]},dt=Math.ceil,ht=Math.floor,gt=function(t){return isNaN(t=+t)?0:(t>0?ht:dt)(t)},yt=Math.min,mt=function(t){return t>0?yt(gt(t),9007199254740991):0},bt=Math.max,wt=Math.min,xt=function(t,e){var n=gt(t);return n<0?bt(n+e,0):wt(n,e)},St=function(t){return function(e,n,r){var o,i=j(e),c=mt(i.length),a=xt(r,c);if(t&&n!=n){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},Et={includes:St(!0),indexOf:St(!1)}.indexOf,Ot=function(t,e){var n,r=j(t),o=0,i=[];for(n in r)!P(nt,n)&&P(r,n)&&i.push(n);for(;e.length>o;)P(r,n=e[o++])&&(~Et(i,n)||i.push(n));return i},jt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tt=jt.concat("length","prototype"),At={f:Object.getOwnPropertyNames||function(t){return Ot(t,Tt)}},kt={f:Object.getOwnPropertySymbols},Rt=vt("Reflect","ownKeys")||function(t){var e=At.f(M(t)),n=kt.f;return n?e.concat(n(t)):e},Pt=function(t,e){for(var n=Rt(e),r=N.f,o=U.f,i=0;i<n.length;i++){var c=n[i];P(t,c)||r(t,c,o(e,c))}},It=/#|\.prototype\./,_t=function(t,e){var n=Ct[$t(t)];return n==Ut||n!=Lt&&("function"==typeof e?d(e):!!e)},$t=_t.normalize=function(t){return String(t).replace(It,".").toLowerCase()},Ct=_t.data={},Lt=_t.NATIVE="N",Ut=_t.POLYFILL="P",Mt=_t,Dt=U.f,Nt=function(t,e){var n,r,o,i,c,a=t.target,u=t.global,l=t.stat;if(n=u?v:l?v[a]||F(a,{}):(v[a]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(c=Dt(n,r))&&c.value:n[r],!Mt(u?r:a+(l?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Pt(i,o)}(t.sham||o&&o.sham)&&z(i,"sham",!0),st(n,r,i,t)}},zt=function(){var t=M(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function Ft(t,e){return RegExp(t,e)}var Bt,qt,Gt={UNSUPPORTED_Y:d((function(){var t=Ft("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:d((function(){var t=Ft("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Wt=RegExp.prototype.exec,Kt=J("native-string-replace",String.prototype.replace),Yt=Wt,Vt=(Bt=/a/,qt=/b*/g,Wt.call(Bt,"a"),Wt.call(qt,"a"),0!==Bt.lastIndex||0!==qt.lastIndex),Ht=Gt.UNSUPPORTED_Y||Gt.BROKEN_CARET,Jt=void 0!==/()??/.exec("")[1];(Vt||Jt||Ht)&&(Yt=function(t){var e,n,r,o,i=this,c=Ht&&i.sticky,a=zt.call(i),u=i.source,l=0,s=t;return c&&(-1===(a=a.replace("y","")).indexOf("g")&&(a+="g"),s=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(u="(?: "+u+")",s=" "+s,l++),n=new RegExp("^(?:"+u+")",a)),Jt&&(n=new RegExp("^"+u+"$(?!\\s)",a)),Vt&&(e=i.lastIndex),r=Wt.call(c?n:i,s),c?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Vt&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),Jt&&r&&r.length>1&&Kt.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var Qt=Yt;Nt({target:"RegExp",proto:!0,forced:/./.exec!==Qt},{exec:Qt});var Xt,Zt,te=vt("navigator","userAgent")||"",ee=v.process,ne=ee&&ee.versions,re=ne&&ne.v8;re?Zt=(Xt=re.split("."))[0]<4?1:Xt[0]+Xt[1]:te&&(!(Xt=te.match(/Edge\/(\d+)/))||Xt[1]>=74)&&(Xt=te.match(/Chrome\/(\d+)/))&&(Zt=Xt[1]);var oe=Zt&&+Zt,ie=!!Object.getOwnPropertySymbols&&!d((function(){return!String(Symbol())||!Symbol.sham&&oe&&oe<41})),ce=ie&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ae=J("wks"),ue=v.Symbol,le=ce?ue:ue&&ue.withoutSetter||Z,se=function(t){return P(ae,t)&&(ie||"string"==typeof ae[t])||(ie&&P(ue,t)?ae[t]=ue[t]:ae[t]=le("Symbol."+t)),ae[t]},fe=se("species"),pe=RegExp.prototype,ve=!d((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),de="$0"==="a".replace(/./,"$0"),he=se("replace"),ge=!!/./[he]&&""===/./[he]("a","$0"),ye=!d((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),me=function(t,e,n,r){var o=se(t),i=!d((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),c=i&&!d((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[fe]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!c||"replace"===t&&(!ve||!de||ge)||"split"===t&&!ye){var a=/./[o],u=n(o,""[t],(function(t,e,n,r,o){var c=e.exec;return c===Qt||c===pe.exec?i&&!o?{done:!0,value:a.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:de,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:ge}),l=u[0],s=u[1];st(String.prototype,t,l),st(pe,o,2==e?function(t,e){return s.call(t,this,e)}:function(t){return s.call(t,this)})}r&&z(pe[o],"sham",!0)},be=se("match"),we=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},xe=se("species"),Se=function(t,e){var n,r=M(t).constructor;return void 0===r||null==(n=M(r)[xe])?e:we(n)},Ee=function(t){return function(e,n){var r,o,i=String(O(e)),c=gt(n),a=i.length;return c<0||c>=a?t?"":void 0:(r=i.charCodeAt(c))<55296||r>56319||c+1===a||(o=i.charCodeAt(c+1))<56320||o>57343?t?i.charAt(c):r:t?i.slice(c,c+2):o-56320+(r-55296<<10)+65536}},Oe={codeAt:Ee(!1),charAt:Ee(!0)},je=Oe.charAt,Te=function(t,e,n){return e+(n?je(t,e).length:1)},Ae=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==x(t))throw TypeError("RegExp#exec called on incompatible receiver");return Qt.call(t,e)},ke=Gt.UNSUPPORTED_Y,Re=[].push,Pe=Math.min;me("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r,o,i=String(O(this)),c=void 0===n?4294967295:n>>>0;if(0===c)return[];if(void 0===t)return[i];if(!T(r=t)||!(void 0!==(o=r[be])?o:"RegExp"==x(r)))return e.call(i,t,c);for(var a,u,l,s=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,v=new RegExp(t.source,f+"g");(a=Qt.call(v,i))&&!((u=v.lastIndex)>p&&(s.push(i.slice(p,a.index)),a.length>1&&a.index<i.length&&Re.apply(s,a.slice(1)),l=a[0].length,p=u,s.length>=c));)v.lastIndex===a.index&&v.lastIndex++;return p===i.length?!l&&v.test("")||s.push(""):s.push(i.slice(p)),s.length>c?s.slice(0,c):s}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=O(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,o){var i=n(r,t,this,o,r!==e);if(i.done)return i.value;var c=M(t),a=String(this),u=Se(c,RegExp),l=c.unicode,s=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(ke?"g":"y"),f=new u(ke?"^(?:"+c.source+")":c,s),p=void 0===o?4294967295:o>>>0;if(0===p)return[];if(0===a.length)return null===Ae(f,a)?[a]:[];for(var v=0,d=0,h=[];d<a.length;){f.lastIndex=ke?0:d;var g,y=Ae(f,ke?a.slice(d):a);if(null===y||(g=Pe(mt(f.lastIndex+(ke?d:0)),a.length))===v)d=Te(a,d,l);else{if(h.push(a.slice(v,d)),h.length===p)return h;for(var m=1;m<=y.length-1;m++)if(h.push(y[m]),h.length===p)return h;d=v=g}}return h.push(a.slice(v)),h}]}),ke);var Ie,_e=Object.keys||function(t){return Ot(t,jt)},$e=h?Object.defineProperties:function(t,e){M(t);for(var n,r=_e(e),o=r.length,i=0;o>i;)N.f(t,n=r[i++],e[n]);return t},Ce=vt("document","documentElement"),Le=et("IE_PROTO"),Ue=function(){},Me=function(t){return"<script>"+t+"<\/script>"},De=function(){try{Ie=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;De=Ie?function(t){t.write(Me("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Ie):((e=$("iframe")).style.display="none",Ce.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Me("document.F=Object")),t.close(),t.F);for(var n=jt.length;n--;)delete De.prototype[jt[n]];return De()};nt[Le]=!0;var Ne=Object.create||function(t,e){var n;return null!==t?(Ue.prototype=M(t),n=new Ue,Ue.prototype=null,n[Le]=t):n=De(),void 0===e?n:$e(n,e)},ze=[].slice,Fe={},Be=function(t,e,n){if(!(e in Fe)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";Fe[e]=Function("C,a","return new C("+r.join(",")+")")}return Fe[e](t,n)},qe=Function.bind||function(t){var e=we(this),n=ze.call(arguments,1),r=function(){var o=n.concat(ze.call(arguments));return this instanceof r?Be(e,o.length,o):e.apply(t,o)};return T(e.prototype)&&(r.prototype=e.prototype),r},Ge=vt("Reflect","construct"),We=d((function(){function t(){}return!(Ge((function(){}),[],t)instanceof t)})),Ke=!d((function(){Ge((function(){}))})),Ye=We||Ke;function Ve(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||u(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function He(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)}}Nt({target:"Reflect",stat:!0,forced:Ye,sham:Ye},{construct:function(t,e){we(t),M(e);var n=arguments.length<3?t:we(arguments[2]);if(Ke&&!We)return Ge(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(qe.apply(t,r))}var o=n.prototype,i=Ne(T(o)?o:Object.prototype),c=Function.apply.call(t,i,e);return T(c)?c:i}});var Je={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Qe=function(t,e,n){if(we(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},Xe=Array.isArray||function(t){return"Array"==x(t)},Ze=se("species"),tn=function(t,e){var n;return Xe(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Xe(n.prototype)?T(n)&&null===(n=n[Ze])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},en=[].push,nn=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,c=7==t,a=5==t||i;return function(u,l,s,f){for(var p,v,d=k(u),h=E(d),g=Qe(l,s,3),y=mt(h.length),m=0,b=f||tn,w=e?b(u,y):n||c?b(u,0):void 0;y>m;m++)if((a||m in h)&&(v=g(p=h[m],m,d),t))if(e)w[m]=v;else if(v)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:en.call(w,p)}else switch(t){case 4:return!1;case 7:en.call(w,p)}return i?-1:r||o?o:w}},rn={forEach:nn(0),map:nn(1),filter:nn(2),some:nn(3),every:nn(4),find:nn(5),findIndex:nn(6),filterOut:nn(7)},on=function(t,e){var n=[][t];return!!n&&d((function(){n.call(null,e||function(){throw 1},1)}))},cn=rn.forEach,an=on("forEach")?[].forEach:function(t){return cn(this,t,arguments.length>1?arguments[1]:void 0)};for(var un in Je){var ln=v[un],sn=ln&&ln.prototype;if(sn&&sn.forEach!==an)try{z(sn,"forEach",an)}catch(t){sn.forEach=an}}var fn=d((function(){_e(1)}));Nt({target:"Object",stat:!0,forced:fn},{keys:function(t){return _e(k(t))}});var pn=function(t,e,n){var r=A(e);r in t?N.f(t,r,b(0,n)):t[r]=n},vn=se("species"),dn=function(t){return oe>=51||!d((function(){var e=[];return(e.constructor={})[vn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},hn=dn("slice"),gn=se("species"),yn=[].slice,mn=Math.max;Nt({target:"Array",proto:!0,forced:!hn},{slice:function(t,e){var n,r,o,i=j(this),c=mt(i.length),a=xt(t,c),u=xt(void 0===e?c:e,c);if(Xe(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!Xe(n.prototype)?T(n)&&null===(n=n[gn])&&(n=void 0):n=void 0,n===Array||void 0===n))return yn.call(i,a,u);for(r=new(void 0===n?Array:n)(mn(u-a,0)),o=0;a<u;a++,o++)a in i&&pn(r,o,i[a]);return r.length=o,r}});var bn=se("unscopables"),wn=Array.prototype;null==wn[bn]&&N.f(wn,bn,{configurable:!0,value:Ne(null)});var xn,Sn,En,On=function(t){wn[bn][t]=!0},jn={},Tn=!d((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),An=et("IE_PROTO"),kn=Object.prototype,Rn=Tn?Object.getPrototypeOf:function(t){return t=k(t),P(t,An)?t[An]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?kn:null},Pn=se("iterator"),In=!1;[].keys&&("next"in(En=[].keys())?(Sn=Rn(Rn(En)))!==Object.prototype&&(xn=Sn):In=!0),(null==xn||d((function(){var t={};return xn[Pn].call(t)!==t})))&&(xn={}),P(xn,Pn)||z(xn,Pn,(function(){return this}));var _n={IteratorPrototype:xn,BUGGY_SAFARI_ITERATORS:In},$n=N.f,Cn=se("toStringTag"),Ln=function(t,e,n){t&&!P(t=n?t:t.prototype,Cn)&&$n(t,Cn,{configurable:!0,value:e})},Un=_n.IteratorPrototype,Mn=function(){return this},Dn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return M(n),function(t){if(!T(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),Nn=_n.IteratorPrototype,zn=_n.BUGGY_SAFARI_ITERATORS,Fn=se("iterator"),Bn=function(){return this},qn=function(t,e,n,r,o,i,c){!function(t,e,n){var r=e+" Iterator";t.prototype=Ne(Un,{next:b(1,n)}),Ln(t,r,!1),jn[r]=Mn}(n,e,r);var a,u,l,s=function(t){if(t===o&&h)return h;if(!zn&&t in v)return v[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,v=t.prototype,d=v[Fn]||v["@@iterator"]||o&&v[o],h=!zn&&d||s(o),g="Array"==e&&v.entries||d;if(g&&(a=Rn(g.call(new t)),Nn!==Object.prototype&&a.next&&(Rn(a)!==Nn&&(Dn?Dn(a,Nn):"function"!=typeof a[Fn]&&z(a,Fn,Bn)),Ln(a,f,!0))),"values"==o&&d&&"values"!==d.name&&(p=!0,h=function(){return d.call(this)}),v[Fn]!==h&&z(v,Fn,h),jn[e]=h,o)if(u={values:s("values"),keys:i?h:s("keys"),entries:s("entries")},c)for(l in u)(zn||p||!(l in v))&&st(v,l,u[l]);else Nt({target:e,proto:!0,forced:zn||p},u);return u},Gn=lt.set,Wn=lt.getterFor("Array Iterator"),Kn=qn(Array,"Array",(function(t,e){Gn(this,{type:"Array Iterator",target:j(t),index:0,kind:e})}),(function(){var t=Wn(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");jn.Arguments=jn.Array,On("keys"),On("values"),On("entries");var Yn={};Yn[se("toStringTag")]="z";var Vn="[object z]"===String(Yn),Hn=se("toStringTag"),Jn="Arguments"==x(function(){return arguments}()),Qn=Vn?x:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Hn))?n:Jn?x(e):"Object"==(r=x(e))&&"function"==typeof e.callee?"Arguments":r},Xn=Vn?{}.toString:function(){return"[object "+Qn(this)+"]"};Vn||st(Object.prototype,"toString",Xn,{unsafe:!0});var Zn=!d((function(){return Object.isExtensible(Object.preventExtensions({}))})),tr=f((function(t){var e=N.f,n=Z("meta"),r=0,o=Object.isExtensible||function(){return!0},i=function(t){e(t,n,{value:{objectID:"O"+ ++r,weakData:{}}})},c=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!T(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!P(t,n)){if(!o(t))return"F";if(!e)return"E";i(t)}return t[n].objectID},getWeakData:function(t,e){if(!P(t,n)){if(!o(t))return!0;if(!e)return!1;i(t)}return t[n].weakData},onFreeze:function(t){return Zn&&c.REQUIRED&&o(t)&&!P(t,n)&&i(t),t}};nt[n]=!0}));tr.REQUIRED,tr.fastKey,tr.getWeakData,tr.onFreeze;var er=se("iterator"),nr=Array.prototype,rr=function(t){return void 0!==t&&(jn.Array===t||nr[er]===t)},or=se("iterator"),ir=function(t){if(null!=t)return t[or]||t["@@iterator"]||jn[Qn(t)]},cr=function(t){var e=t.return;if(void 0!==e)return M(e.call(t)).value},ar=function(t,e){this.stopped=t,this.result=e},ur=function(t,e,n){var r,o,i,c,a,u,l,s=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),v=!(!n||!n.INTERRUPTED),d=Qe(e,s,1+f+v),h=function(t){return r&&cr(r),new ar(!0,t)},g=function(t){return f?(M(t),v?d(t[0],t[1],h):d(t[0],t[1])):v?d(t,h):d(t)};if(p)r=t;else{if("function"!=typeof(o=ir(t)))throw TypeError("Target is not iterable");if(rr(o)){for(i=0,c=mt(t.length);c>i;i++)if((a=g(t[i]))&&a instanceof ar)return a;return new ar(!1)}r=o.call(t)}for(u=r.next;!(l=u.call(r)).done;){try{a=g(l.value)}catch(t){throw cr(r),t}if("object"==typeof a&&a&&a instanceof ar)return a}return new ar(!1)},lr=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t},sr=se("iterator"),fr=!1;try{var pr=0,vr={next:function(){return{done:!!pr++}},return:function(){fr=!0}};vr[sr]=function(){return this},Array.from(vr,(function(){throw 2}))}catch(t){}var dr=function(t,e){if(!e&&!fr)return!1;var n=!1;try{var r={};r[sr]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},hr=function(t,e,n){var r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=r?"set":"add",c=v[t],a=c&&c.prototype,u=c,l={},s=function(t){var e=a[t];st(a,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!T(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return o&&!T(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!T(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(Mt(t,"function"!=typeof c||!(o||a.forEach&&!d((function(){(new c).entries().next()})))))u=n.getConstructor(e,t,r,i),tr.REQUIRED=!0;else if(Mt(t,!0)){var f=new u,p=f[i](o?{}:-0,1)!=f,h=d((function(){f.has(1)})),g=dr((function(t){new c(t)})),y=!o&&d((function(){for(var t=new c,e=5;e--;)t[i](e,e);return!t.has(-0)}));g||((u=e((function(e,n){lr(e,u,t);var o=function(t,e,n){var r,o;return Dn&&"function"==typeof(r=e.constructor)&&r!==n&&T(o=r.prototype)&&o!==n.prototype&&Dn(t,o),t}(new c,e,u);return null!=n&&ur(n,o[i],{that:o,AS_ENTRIES:r}),o}))).prototype=a,a.constructor=u),(h||y)&&(s("delete"),s("has"),r&&s("get")),(y||p)&&s(i),o&&a.clear&&delete a.clear}return l[t]=u,Nt({global:!0,forced:u!=c},l),Ln(u,t),o||n.setStrong(u,t,r),u},gr=function(t,e,n){for(var r in e)st(t,r,e[r],n);return t},yr=se("species"),mr=function(t){var e=vt(t),n=N.f;h&&e&&!e[yr]&&n(e,yr,{configurable:!0,get:function(){return this}})},br=N.f,wr=tr.fastKey,xr=lt.set,Sr=lt.getterFor,Er={getConstructor:function(t,e,n,r){var o=t((function(t,i){lr(t,o,e),xr(t,{type:e,index:Ne(null),first:void 0,last:void 0,size:0}),h||(t.size=0),null!=i&&ur(i,t[r],{that:t,AS_ENTRIES:n})})),i=Sr(e),c=function(t,e,n){var r,o,c=i(t),u=a(t,e);return u?u.value=n:(c.last=u={index:o=wr(e,!0),key:e,value:n,previous:r=c.last,next:void 0,removed:!1},c.first||(c.first=u),r&&(r.next=u),h?c.size++:t.size++,"F"!==o&&(c.index[o]=u)),t},a=function(t,e){var n,r=i(t),o=wr(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return gr(o.prototype,{clear:function(){for(var t=i(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,h?t.size=0:this.size=0},delete:function(t){var e=i(this),n=a(this,t);if(n){var r=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first==n&&(e.first=r),e.last==n&&(e.last=o),h?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=i(this),r=Qe(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!a(this,t)}}),gr(o.prototype,n?{get:function(t){var e=a(this,t);return e&&e.value},set:function(t,e){return c(this,0===t?0:t,e)}}:{add:function(t){return c(this,t=0===t?0:t,t)}}),h&&br(o.prototype,"size",{get:function(){return i(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=Sr(e),i=Sr(r);qn(t,e,(function(t,e){xr(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),mr(e)}};hr("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Er);var Or=Oe.charAt,jr=lt.set,Tr=lt.getterFor("String Iterator");qn(String,"String",(function(t){jr(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=Tr(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Or(n,r),e.index+=t.length,{value:t,done:!1})}));var Ar=se("iterator"),kr=se("toStringTag"),Rr=Kn.values;for(var Pr in Je){var Ir=v[Pr],_r=Ir&&Ir.prototype;if(_r){if(_r[Ar]!==Rr)try{z(_r,Ar,Rr)}catch(t){_r[Ar]=Rr}if(_r[kr]||z(_r,kr,Pr),Je[Pr])for(var $r in Kn)if(_r[$r]!==Kn[$r])try{z(_r,$r,Kn[$r])}catch(t){_r[$r]=Kn[$r]}}}var Cr=se("isConcatSpreadable"),Lr=oe>=51||!d((function(){var t=[];return t[Cr]=!1,t.concat()[0]!==t})),Ur=dn("concat"),Mr=function(t){if(!T(t))return!1;var e=t[Cr];return void 0!==e?!!e:Xe(t)};Nt({target:"Array",proto:!0,forced:!Lr||!Ur},{concat:function(t){var e,n,r,o,i,c=k(this),a=tn(c,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Mr(i=-1===e?c:arguments[e])){if(u+(o=mt(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in i&&pn(a,u,i[n])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");pn(a,u++,i)}return a.length=u,a}});var Dr,Nr,zr,Fr=v.Promise,Br=/(?:iphone|ipod|ipad).*applewebkit/i.test(te),qr="process"==x(v.process),Gr=v.location,Wr=v.setImmediate,Kr=v.clearImmediate,Yr=v.process,Vr=v.MessageChannel,Hr=v.Dispatch,Jr=0,Qr={},Xr=function(t){if(Qr.hasOwnProperty(t)){var e=Qr[t];delete Qr[t],e()}},Zr=function(t){return function(){Xr(t)}},to=function(t){Xr(t.data)},eo=function(t){v.postMessage(t+"",Gr.protocol+"//"+Gr.host)};Wr&&Kr||(Wr=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Qr[++Jr]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},Dr(Jr),Jr},Kr=function(t){delete Qr[t]},qr?Dr=function(t){Yr.nextTick(Zr(t))}:Hr&&Hr.now?Dr=function(t){Hr.now(Zr(t))}:Vr&&!Br?(zr=(Nr=new Vr).port2,Nr.port1.onmessage=to,Dr=Qe(zr.postMessage,zr,1)):v.addEventListener&&"function"==typeof postMessage&&!v.importScripts&&Gr&&"file:"!==Gr.protocol&&!d(eo)?(Dr=eo,v.addEventListener("message",to,!1)):Dr="onreadystatechange"in $("script")?function(t){Ce.appendChild($("script")).onreadystatechange=function(){Ce.removeChild(this),Xr(t)}}:function(t){setTimeout(Zr(t),0)});var no,ro,oo,io,co,ao,uo,lo,so={set:Wr,clear:Kr},fo=/web0s(?!.*chrome)/i.test(te),po=U.f,vo=so.set,ho=v.MutationObserver||v.WebKitMutationObserver,go=v.document,yo=v.process,mo=v.Promise,bo=po(v,"queueMicrotask"),wo=bo&&bo.value;wo||(no=function(){var t,e;for(qr&&(t=yo.domain)&&t.exit();ro;){e=ro.fn,ro=ro.next;try{e()}catch(t){throw ro?io():oo=void 0,t}}oo=void 0,t&&t.enter()},Br||qr||fo||!ho||!go?mo&&mo.resolve?((uo=mo.resolve(void 0)).constructor=mo,lo=uo.then,io=function(){lo.call(uo,no)}):io=qr?function(){yo.nextTick(no)}:function(){vo.call(v,no)}:(co=!0,ao=go.createTextNode(""),new ho(no).observe(ao,{characterData:!0}),io=function(){ao.data=co=!co}));var xo,So,Eo,Oo,jo=wo||function(t){var e={fn:t,next:void 0};oo&&(oo.next=e),ro||(ro=e,io()),oo=e},To=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=we(e),this.reject=we(n)},Ao={f:function(t){return new To(t)}},ko=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Ro="object"==typeof window,Po=so.set,Io=se("species"),_o="Promise",$o=lt.get,Co=lt.set,Lo=lt.getterFor(_o),Uo=Fr&&Fr.prototype,Mo=Fr,Do=Uo,No=v.TypeError,zo=v.document,Fo=v.process,Bo=Ao.f,qo=Bo,Go=!!(zo&&zo.createEvent&&v.dispatchEvent),Wo="function"==typeof PromiseRejectionEvent,Ko=!1,Yo=Mt(_o,(function(){var t=Y(Mo)!==String(Mo);if(!t&&66===oe)return!0;if(oe>=51&&/native code/.test(Mo))return!1;var e=new Mo((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(e.constructor={})[Io]=n,!(Ko=e.then((function(){}))instanceof n)||!t&&Ro&&!Wo})),Vo=Yo||!dr((function(t){Mo.all(t).catch((function(){}))})),Ho=function(t){var e;return!(!T(t)||"function"!=typeof(e=t.then))&&e},Jo=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;jo((function(){for(var r=t.value,o=1==t.state,i=0;n.length>i;){var c,a,u,l=n[i++],s=o?l.ok:l.fail,f=l.resolve,p=l.reject,v=l.domain;try{s?(o||(2===t.rejection&&ti(t),t.rejection=1),!0===s?c=r:(v&&v.enter(),c=s(r),v&&(v.exit(),u=!0)),c===l.promise?p(No("Promise-chain cycle")):(a=Ho(c))?a.call(c,f,p):f(c)):p(r)}catch(t){v&&!u&&v.exit(),p(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Xo(t)}))}},Qo=function(t,e,n){var r,o;Go?((r=zo.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),v.dispatchEvent(r)):r={promise:e,reason:n},!Wo&&(o=v["on"+t])?o(r):"unhandledrejection"===t&&function(t,e){var n=v.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},Xo=function(t){Po.call(v,(function(){var e,n=t.facade,r=t.value;if(Zo(t)&&(e=ko((function(){qr?Fo.emit("unhandledRejection",r,n):Qo("unhandledrejection",n,r)})),t.rejection=qr||Zo(t)?2:1,e.error))throw e.value}))},Zo=function(t){return 1!==t.rejection&&!t.parent},ti=function(t){Po.call(v,(function(){var e=t.facade;qr?Fo.emit("rejectionHandled",e):Qo("rejectionhandled",e,t.value)}))},ei=function(t,e,n){return function(r){t(e,r,n)}},ni=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Jo(t,!0))},ri=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw No("Promise can't be resolved itself");var r=Ho(e);r?jo((function(){var n={done:!1};try{r.call(e,ei(ri,n,t),ei(ni,n,t))}catch(e){ni(n,e,t)}})):(t.value=e,t.state=1,Jo(t,!1))}catch(e){ni({done:!1},e,t)}}};if(Yo&&(Do=(Mo=function(t){lr(this,Mo,_o),we(t),xo.call(this);var e=$o(this);try{t(ei(ri,e),ei(ni,e))}catch(t){ni(e,t)}}).prototype,(xo=function(t){Co(this,{type:_o,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=gr(Do,{then:function(t,e){var n=Lo(this),r=Bo(Se(this,Mo));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=qr?Fo.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Jo(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),So=function(){var t=new xo,e=$o(t);this.promise=t,this.resolve=ei(ri,e),this.reject=ei(ni,e)},Ao.f=Bo=function(t){return t===Mo||t===Eo?new So(t):qo(t)},"function"==typeof Fr&&Uo!==Object.prototype)){Oo=Uo.then,Ko||(st(Uo,"then",(function(t,e){var n=this;return new Mo((function(t,e){Oo.call(n,t,e)})).then(t,e)}),{unsafe:!0}),st(Uo,"catch",Do.catch,{unsafe:!0}));try{delete Uo.constructor}catch(t){}Dn&&Dn(Uo,Do)}Nt({global:!0,wrap:!0,forced:Yo},{Promise:Mo}),Ln(Mo,_o,!1),mr(_o),Eo=vt(_o),Nt({target:_o,stat:!0,forced:Yo},{reject:function(t){var e=Bo(this);return e.reject.call(void 0,t),e.promise}}),Nt({target:_o,stat:!0,forced:Yo},{resolve:function(t){return function(t,e){if(M(t),T(e)&&e.constructor===t)return e;var n=Ao.f(t);return(0,n.resolve)(e),n.promise}(this,t)}}),Nt({target:_o,stat:!0,forced:Vo},{all:function(t){var e=this,n=Bo(e),r=n.resolve,o=n.reject,i=ko((function(){var n=we(e.resolve),i=[],c=0,a=1;ur(t,(function(t){var u=c++,l=!1;i.push(void 0),a++,n.call(e,t).then((function(t){l||(l=!0,i[u]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Bo(e),r=n.reject,o=ko((function(){var o=we(e.resolve);ur(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),Nt({target:"Object",stat:!0,sham:!h},{getOwnPropertyDescriptors:function(t){for(var e,n,r=j(t),o=U.f,i=Rt(r),c={},a=0;i.length>a;)void 0!==(n=o(r,e=i[a++]))&&pn(c,e,n);return c}});var oi=function(t,e,n,r){try{return r?e(M(n)[0],n[1]):e(n)}catch(e){throw cr(t),e}},ii=!dr((function(t){Array.from(t)}));Nt({target:"Array",stat:!0,forced:ii},{from:function(t){var e,n,r,o,i,c,a=k(t),u="function"==typeof this?this:Array,l=arguments.length,s=l>1?arguments[1]:void 0,f=void 0!==s,p=ir(a),v=0;if(f&&(s=Qe(s,l>2?arguments[2]:void 0,2)),null==p||u==Array&&rr(p))for(n=new u(e=mt(a.length));e>v;v++)c=f?s(a[v],v):a[v],pn(n,v,c);else for(i=(o=p.call(a)).next,n=new u;!(r=i.call(o)).done;v++)c=f?oi(o,s,[r.value,v],!0):r.value,pn(n,v,c);return n.length=v,n}});var ci=N.f,ai=Function.prototype,ui=ai.toString,li=/^\s*function ([^ (]*)/;h&&!("name"in ai)&&ci(ai,"name",{configurable:!0,get:function(){try{return ui.call(this).match(li)[1]}catch(t){return""}}});var si=dn("splice"),fi=Math.max,pi=Math.min;Nt({target:"Array",proto:!0,forced:!si},{splice:function(t,e){var n,r,o,i,c,a,u=k(this),l=mt(u.length),s=xt(t,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-s):(n=f-2,r=pi(fi(gt(e),0),l-s)),l+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=tn(u,r),i=0;i<r;i++)(c=s+i)in u&&pn(o,i,u[c]);if(o.length=r,n<r){for(i=s;i<l-r;i++)a=i+n,(c=i+r)in u?u[a]=u[c]:delete u[a];for(i=l;i>l-r+n;i--)delete u[i-1]}else if(n>r)for(i=l-r;i>s;i--)a=i+n-1,(c=i+r-1)in u?u[a]=u[c]:delete u[a];for(i=0;i<n;i++)u[i+s]=arguments[i+2];return u.length=l-r+n,o}});var vi=rn.map,di=dn("map");Nt({target:"Array",proto:!0,forced:!di},{map:function(t){return vi(this,t,arguments.length>1?arguments[1]:void 0)}});var hi=rn.filter,gi=dn("filter");Nt({target:"Array",proto:!0,forced:!gi},{filter:function(t){return hi(this,t,arguments.length>1?arguments[1]:void 0)}});var yi=[].join,mi=E!=Object,bi=on("join",",");Nt({target:"Array",proto:!0,forced:mi||!bi},{join:function(t){return yi.call(j(this),void 0===t?",":t)}});var wi=/"/g;Nt({target:"String",proto:!0,forced:function(t){return d((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}("anchor")},{anchor:function(t){return e="a",n="name",r=t,o=String(O(this)),i="<"+e,""!==n&&(i+=" "+n+'="'+String(r).replace(wi,"&quot;")+'"'),i+">"+o+"</"+e+">";var e,n,r,o,i}}),hr("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Er);var xi=Object.assign,Si=Object.defineProperty,Ei=!xi||d((function(){if(h&&1!==xi({b:1},xi(Si({},"a",{enumerable:!0,get:function(){Si(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=xi({},t)[n]||"abcdefghijklmnopqrst"!=_e(xi({},e)).join("")}))?function(t,e){for(var n=k(t),r=arguments.length,o=1,i=kt.f,c=m.f;r>o;)for(var a,u=E(arguments[o++]),l=i?_e(u).concat(i(u)):_e(u),s=l.length,f=0;s>f;)a=l[f++],h&&!c.call(u,a)||(n[a]=u[a]);return n}:xi;Nt({target:"Object",stat:!0,forced:Object.assign!==Ei},{assign:Ei});var Oi=Math.floor,ji="".replace,Ti=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Ai=/\$([$&'`]|\d{1,2})/g,ki=function(t,e,n,r,o,i){var c=n+t.length,a=r.length,u=Ai;return void 0!==o&&(o=k(o),u=Ti),ji.call(i,u,(function(i,u){var l;switch(u.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(c);case"<":l=o[u.slice(1,-1)];break;default:var s=+u;if(0===s)return i;if(s>a){var f=Oi(s/10);return 0===f?i:f<=a?void 0===r[f-1]?u.charAt(1):r[f-1]+u.charAt(1):i}l=r[s-1]}return void 0===l?"":l}))},Ri=Math.max,Pi=Math.min;me("replace",2,(function(t,e,n,r){var o=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,c=o?"$":"$0";return[function(n,r){var o=O(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!o&&i||"string"==typeof r&&-1===r.indexOf(c)){var a=n(e,t,this,r);if(a.done)return a.value}var u=M(t),l=String(this),s="function"==typeof r;s||(r=String(r));var f=u.global;if(f){var p=u.unicode;u.lastIndex=0}for(var v=[];;){var d=Ae(u,l);if(null===d)break;if(v.push(d),!f)break;""===String(d[0])&&(u.lastIndex=Te(l,mt(u.lastIndex),p))}for(var h,g="",y=0,m=0;m<v.length;m++){d=v[m];for(var b=String(d[0]),w=Ri(Pi(gt(d.index),l.length),0),x=[],S=1;S<d.length;S++)x.push(void 0===(h=d[S])?h:String(h));var E=d.groups;if(s){var O=[b].concat(x,w,l);void 0!==E&&O.push(E);var j=String(r.apply(void 0,O))}else j=ki(b,l,w,x,E,r);w>=y&&(g+=l.slice(y,w)+j,y=w+b.length)}return g+l.slice(y)}]}));Nt({target:"Array",proto:!0},{fill:function(t){for(var e=k(this),n=mt(e.length),r=arguments.length,o=xt(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,c=void 0===i?n:xt(i,n);c>o;)e[o++]=t;return e}}),On("fill");var Ii=At.f,_i={}.toString,$i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ci={f:function(t){return $i&&"[object Window]"==_i.call(t)?function(t){try{return Ii(t)}catch(t){return $i.slice()}}(t):Ii(j(t))}},Li={f:se},Ui=N.f,Mi=function(t){var e=ft.Symbol||(ft.Symbol={});P(e,t)||Ui(e,t,{value:Li.f(t)})},Di=rn.forEach,Ni=et("hidden"),zi=se("toPrimitive"),Fi=lt.set,Bi=lt.getterFor("Symbol"),qi=Object.prototype,Gi=v.Symbol,Wi=vt("JSON","stringify"),Ki=U.f,Yi=N.f,Vi=Ci.f,Hi=m.f,Ji=J("symbols"),Qi=J("op-symbols"),Xi=J("string-to-symbol-registry"),Zi=J("symbol-to-string-registry"),tc=J("wks"),ec=v.QObject,nc=!ec||!ec.prototype||!ec.prototype.findChild,rc=h&&d((function(){return 7!=Ne(Yi({},"a",{get:function(){return Yi(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Ki(qi,e);r&&delete qi[e],Yi(t,e,n),r&&t!==qi&&Yi(qi,e,r)}:Yi,oc=function(t,e){var n=Ji[t]=Ne(Gi.prototype);return Fi(n,{type:"Symbol",tag:t,description:e}),h||(n.description=e),n},ic=ce?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Gi},cc=function(t,e,n){t===qi&&cc(Qi,e,n),M(t);var r=A(e,!0);return M(n),P(Ji,r)?(n.enumerable?(P(t,Ni)&&t[Ni][r]&&(t[Ni][r]=!1),n=Ne(n,{enumerable:b(0,!1)})):(P(t,Ni)||Yi(t,Ni,b(1,{})),t[Ni][r]=!0),rc(t,r,n)):Yi(t,r,n)},ac=function(t,e){M(t);var n=j(e),r=_e(n).concat(fc(n));return Di(r,(function(e){h&&!uc.call(n,e)||cc(t,e,n[e])})),t},uc=function(t){var e=A(t,!0),n=Hi.call(this,e);return!(this===qi&&P(Ji,e)&&!P(Qi,e))&&(!(n||!P(this,e)||!P(Ji,e)||P(this,Ni)&&this[Ni][e])||n)},lc=function(t,e){var n=j(t),r=A(e,!0);if(n!==qi||!P(Ji,r)||P(Qi,r)){var o=Ki(n,r);return!o||!P(Ji,r)||P(n,Ni)&&n[Ni][r]||(o.enumerable=!0),o}},sc=function(t){var e=Vi(j(t)),n=[];return Di(e,(function(t){P(Ji,t)||P(nt,t)||n.push(t)})),n},fc=function(t){var e=t===qi,n=Vi(e?Qi:j(t)),r=[];return Di(n,(function(t){!P(Ji,t)||e&&!P(qi,t)||r.push(Ji[t])})),r};if(ie||(st((Gi=function(){if(this instanceof Gi)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=Z(t),n=function(t){this===qi&&n.call(Qi,t),P(this,Ni)&&P(this[Ni],e)&&(this[Ni][e]=!1),rc(this,e,b(1,t))};return h&&nc&&rc(qi,e,{configurable:!0,set:n}),oc(e,t)}).prototype,"toString",(function(){return Bi(this).tag})),st(Gi,"withoutSetter",(function(t){return oc(Z(t),t)})),m.f=uc,N.f=cc,U.f=lc,At.f=Ci.f=sc,kt.f=fc,Li.f=function(t){return oc(se(t),t)},h&&(Yi(Gi.prototype,"description",{configurable:!0,get:function(){return Bi(this).description}}),st(qi,"propertyIsEnumerable",uc,{unsafe:!0}))),Nt({global:!0,wrap:!0,forced:!ie,sham:!ie},{Symbol:Gi}),Di(_e(tc),(function(t){Mi(t)})),Nt({target:"Symbol",stat:!0,forced:!ie},{for:function(t){var e=String(t);if(P(Xi,e))return Xi[e];var n=Gi(e);return Xi[e]=n,Zi[n]=e,n},keyFor:function(t){if(!ic(t))throw TypeError(t+" is not a symbol");if(P(Zi,t))return Zi[t]},useSetter:function(){nc=!0},useSimple:function(){nc=!1}}),Nt({target:"Object",stat:!0,forced:!ie,sham:!h},{create:function(t,e){return void 0===e?Ne(t):ac(Ne(t),e)},defineProperty:cc,defineProperties:ac,getOwnPropertyDescriptor:lc}),Nt({target:"Object",stat:!0,forced:!ie},{getOwnPropertyNames:sc,getOwnPropertySymbols:fc}),Nt({target:"Object",stat:!0,forced:d((function(){kt.f(1)}))},{getOwnPropertySymbols:function(t){return kt.f(k(t))}}),Wi){var pc=!ie||d((function(){var t=Gi();return"[null]"!=Wi([t])||"{}"!=Wi({a:t})||"{}"!=Wi(Object(t))}));Nt({target:"JSON",stat:!0,forced:pc},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(T(e)||void 0!==t)&&!ic(t))return Xe(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!ic(e))return e}),o[1]=e,Wi.apply(null,o)}})}Gi.prototype[zi]||z(Gi.prototype,zi,Gi.prototype.valueOf),Ln(Gi,"Symbol"),nt[Ni]=!0;var vc,dc=N.f,hc=v.Symbol;if(h&&"function"==typeof hc&&(!("description"in hc.prototype)||void 0!==hc().description)){var gc={},yc=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof yc?new hc(t):void 0===t?hc():hc(t);return""===t&&(gc[e]=!0),e};Pt(yc,hc);var mc=yc.prototype=hc.prototype;mc.constructor=yc;var bc=mc.toString,wc="Symbol(test)"==String(hc("test")),xc=/^Symbol\((.*)\)[^)]+$/;dc(mc,"description",{configurable:!0,get:function(){var t=T(this)?this.valueOf():this,e=bc.call(t);if(P(gc,t))return"";var n=wc?e.slice(7,-1):e.replace(xc,"$1");return""===n?void 0:n}}),Nt({global:!0,forced:!0},{Symbol:yc})}function Sc(){}function Ec(t){return t()}function Oc(){return Object.create(null)}function jc(t){t.forEach(Ec)}function Tc(t){return"function"==typeof t}function Ac(t,e){return t!=t?e==e:t!==e||t&&"object"===o(t)||"function"==typeof t}function kc(t,e){t.appendChild(e)}function Rc(t,e,n){t.insertBefore(e,n||null)}function Pc(t){t.parentNode.removeChild(t)}function Ic(t){return document.createElement(t)}function _c(t){return document.createTextNode(t)}function $c(){return _c(" ")}function Cc(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function Lc(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Uc(t){return Array.from(t.childNodes)}function Mc(t,e,n){t.classList[n?"add":"remove"](e)}function Dc(t){vc=t}Mi("iterator");var Nc=[],zc=[],Fc=[],Bc=[],qc=Promise.resolve(),Gc=!1;function Wc(t){Fc.push(t)}var Kc=!1,Yc=new Set;function Vc(){if(!Kc){Kc=!0;do{for(var t=0;t<Nc.length;t+=1){var e=Nc[t];Dc(e),Hc(e.$$)}for(Dc(null),Nc.length=0;zc.length;)zc.pop()();for(var n=0;n<Fc.length;n+=1){var r=Fc[n];Yc.has(r)||(Yc.add(r),r())}Fc.length=0}while(Nc.length);for(;Bc.length;)Bc.pop()();Gc=!1,Kc=!1,Yc.clear()}}function Hc(t){if(null!==t.fragment){t.update(),jc(t.before_update);var e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Wc)}}var Jc=new Set;function Qc(t,e){t&&t.i&&(Jc.delete(t),t.i(e))}function Xc(t,e,n,r){if(t&&t.o){if(Jc.has(t))return;Jc.add(t),(void 0).c.push((function(){Jc.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}var Zc="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function ta(t){t&&t.c()}function ea(t,e,n,r){var o=t.$$,i=o.fragment,c=o.on_mount,a=o.on_destroy,u=o.after_update;i&&i.m(e,n),r||Wc((function(){var e=c.map(Ec).filter(Tc);a?a.push.apply(a,Ve(e)):jc(e),t.$$.on_mount=[]})),u.forEach(Wc)}function na(t,e){var n=t.$$;null!==n.fragment&&(jc(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ra(t,e){-1===t.$$.dirty[0]&&(Nc.push(t),Gc||(Gc=!0,qc.then(Vc)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function oa(t,e,n,r,o,i){var c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[-1],a=vc;Dc(t);var u=t.$$={fragment:null,ctx:null,props:i,update:Sc,not_equal:o,bound:Oc(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:e.context||[]),callbacks:Oc(),dirty:c,skip_bound:!1},l=!1;if(u.ctx=n?n(t,e.props||{},(function(e,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return u.ctx&&o(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),l&&ra(t,e)),n})):[],u.update(),l=!0,jc(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){var s=Uc(e.target);u.fragment&&u.fragment.l(s),s.forEach(Pc)}else u.fragment&&u.fragment.c();e.intro&&Qc(t.$$.fragment),ea(t,e.target,e.anchor,e.customElement),Vc()}Dc(a)}var ia=function(){function e(){t(this,e)}var n,r,o;return n=e,(r=[{key:"$destroy",value:function(){na(this,1),this.$destroy=Sc}},{key:"$on",value:function(t,e){var n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}},{key:"$set",value:function(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}])&&He(n.prototype,r),o&&He(n,o),e}();function ca(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return i(this,n)}}function aa(t){var e,n,r;return{c:function(){(e=Ic("p")).textContent="Please make sure that the script tag has 'id=\"chatbot\"' and the attribute\n 'data-server' with the full qualified URL to the chatbot-server.",n=$c(),(r=Ic("pre")).innerHTML='<code class="svelte-1ril8w">&lt;script\n <br class="svelte-1ril8w"/>\n id=&quot;chatbot&quot;\n <br class="svelte-1ril8w"/>\n data-server=&quot;https://server.com/webclient&quot;\n <br class="svelte-1ril8w"/>\n defer\n <br class="svelte-1ril8w"/>\n src=&quot;https://server.com/webclient/embed/bundle.js&quot;&gt; &lt;/script&gt;</code>',Lc(e,"class","svelte-1ril8w"),Lc(r,"class","svelte-1ril8w")},m:function(t,o){Rc(t,e,o),Rc(t,n,o),Rc(t,r,o)},p:Sc,d:function(t){t&&Pc(e),t&&Pc(n),t&&Pc(r)}}}function ua(t){var e,n,r,o,i,c,a,u,l,s,f,p;return{c:function(){e=Ic("div"),n=Ic("div"),r=Ic("img"),i=$c(),(c=Ic("div")).innerHTML='<svg viewBox="-2 -2 24 24" class="svelte-1ril8w"><path d="M0,0L20,20M20,0L0,20" class="svelte-1ril8w"></path></svg>',a=$c(),u=Ic("iframe"),r.src!==(o="".concat(t[2],"/embed/logo.svg"))&&Lc(r,"src",o),Lc(r,"alt","Logo"),Lc(r,"class","svelte-1ril8w"),Lc(c,"aria-label","Close chat window"),Lc(c,"role","button"),Lc(c,"class","bot-border-close-icon svelte-1ril8w"),Lc(c,"tabindex",0),Lc(n,"class","header svelte-1ril8w"),Lc(u,"id","chat-frame"),Lc(u,"title","Chat"),Lc(u,"class","bot svelte-1ril8w"),u.src!==(l=t[0])&&Lc(u,"src",l),Lc(u,"frameborder","0"),Lc(u,"allow","microphone"),u.allowFullscreen="",Lc(e,"class","bot-border svelte-1ril8w"),Lc(e,"aria-hidden",s=t[1]?"false":"true"),Mc(e,"closed",!t[1])},m:function(o,l){Rc(o,e,l),kc(e,n),kc(n,r),kc(n,i),kc(n,c),kc(e,a),kc(e,u),f||(p=[Cc(c,"click",(function(){Tc(t[3])&&t[3].apply(this,arguments)})),Cc(c,"keydown",t[4])],f=!0)},p:function(n,i){t=n,4&i&&r.src!==(o="".concat(t[2],"/embed/logo.svg"))&&Lc(r,"src",o),1&i&&u.src!==(l=t[0])&&Lc(u,"src",l),2&i&&s!==(s=t[1]?"false":"true")&&Lc(e,"aria-hidden",s),2&i&&Mc(e,"closed",!t[1])},d:function(t){t&&Pc(e),f=!1,jc(p)}}}function la(t){var e;function n(t,e){return t[0]?ua:aa}var r=n(t),o=r(t);return{c:function(){o.c(),e=_c("")},m:function(t,n){o.m(t,n),Rc(t,e,n)},p:function(t,i){var c=l(i,1)[0];r===(r=n(t))&&o?o.p(t,c):(o.d(1),(o=r(t))&&(o.c(),o.m(e.parentNode,e)))},i:Sc,o:Sc,d:function(t){o.d(t),t&&Pc(e)}}}function sa(t,e,n){var r=e.server,o=e.open,i=e.assetsUrl,c=e.onToggle;return t.$$set=function(t){"server"in t&&n(0,r=t.server),"open"in t&&n(1,o=t.open),"assetsUrl"in t&&n(2,i=t.assetsUrl),"onToggle"in t&&n(3,c=t.onToggle)},[r,o,i,c,function(t){var e=t.key;"ArrowDown"!==e&&"ArrowRight"!==e&&"Enter"!==e&&" "!==e&&"Space"!==e||(t.stopPropagation(),c())}]}var fa=function(n){r(i,n);var o=ca(i);function i(n){var r,c;return t(this,i),r=o.call(this),document.getElementById("svelte-1ril8w-style")||((c=Ic("style")).id="svelte-1ril8w-style",c.textContent=".svelte-1ril8w.svelte-1ril8w,.svelte-1ril8w.svelte-1ril8w:before,.svelte-1ril8w.svelte-1ril8w:after{box-sizing:border-box}.bot-border.svelte-1ril8w.svelte-1ril8w{position:fixed !important;display:flex;flex-direction:column;bottom:0;height:85vh;width:100%;border-width:0;border-radius:12px;box-shadow:rgba(0, 0, 0, 0.24) 0px 16px 40px;background:rgba(255, 255, 255, 0.93);opacity:1;transition:transform 200ms, opacity 100ms 100ms, all 150ms;z-index:1000}.bot-border.closed.svelte-1ril8w.svelte-1ril8w{transform:translateY(85vh);opacity:0}.header.svelte-1ril8w.svelte-1ril8w{display:flex;justify-content:space-between;width:100%;height:3.5em;padding:0.5em 1em;color:white;background-color:#3f4143}.bot.svelte-1ril8w.svelte-1ril8w{display:block;width:100%;flex:1 0 auto}@media screen and (min-width: 768px){.bot-border.svelte-1ril8w.svelte-1ril8w{height:38em;max-height:calc(100vh - 2rem);width:23em;right:1em;bottom:1em;left:auto}.bot-border.closed.svelte-1ril8w.svelte-1ril8w{transform:translateY(38em);opacity:0}}.bot-border-close-icon.svelte-1ril8w.svelte-1ril8w{height:100%}img.svelte-1ril8w.svelte-1ril8w{display:block;height:100%}svg.svelte-1ril8w.svelte-1ril8w{height:100%;padding:0.4em;cursor:pointer}svg.svelte-1ril8w path.svelte-1ril8w{transition:stroke-width 100ms;stroke:white;stroke-width:2px}svg.svelte-1ril8w:hover path.svelte-1ril8w{stroke-width:3px}p.svelte-1ril8w.svelte-1ril8w,pre.svelte-1ril8w.svelte-1ril8w{max-width:300px}pre.svelte-1ril8w.svelte-1ril8w{font-size:0.6em;line-height:0.5}",kc(document.head,c)),oa(e(r),n,sa,la,Ac,{server:0,open:1,assetsUrl:2,onToggle:3}),r}return i}(ia);function pa(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return i(this,n)}}function va(t){var e,n,r,o,i;return{c:function(){e=Ic("div"),Lc(n=Ic("img"),"class","chat-button svelte-xlhtz"),Lc(n,"alt","Open chatbot"),n.src!==(r="".concat(t[0],"/embed/open-button.svg"))&&Lc(n,"src",r),Lc(e,"class","chat-button-wrapper svelte-xlhtz"),Lc(e,"tabindex","0"),Lc(e,"role","button"),Lc(e,"aria-label","Open chat window")},m:function(r,c){Rc(r,e,c),kc(e,n),o||(i=[Cc(e,"click",(function(){Tc(t[1])&&t[1].apply(this,arguments)})),Cc(e,"keydown",t[2])],o=!0)},p:function(e,o){var i=l(o,1)[0];t=e,1&i&&n.src!==(r="".concat(t[0],"/embed/open-button.svg"))&&Lc(n,"src",r)},i:Sc,o:Sc,d:function(t){t&&Pc(e),o=!1,jc(i)}}}function da(t,e,n){var r=e.assetsUrl,o=e.onToggle;return t.$$set=function(t){"assetsUrl"in t&&n(0,r=t.assetsUrl),"onToggle"in t&&n(1,o=t.onToggle)},[r,o,function(t){var e=t.key;"ArrowDown"!==e&&"ArrowRight"!==e&&"Enter"!==e&&" "!==e&&"Space"!==e||(t.stopPropagation(),o())}]}var ha=function(n){r(i,n);var o=pa(i);function i(n){var r,c;return t(this,i),r=o.call(this),document.getElementById("svelte-xlhtz-style")||((c=Ic("style")).id="svelte-xlhtz-style",c.textContent=".svelte-xlhtz,.svelte-xlhtz:before,.svelte-xlhtz:after{box-sizing:border-box}.chat-button-wrapper.svelte-xlhtz{position:fixed !important;right:2em;bottom:2em;width:6em;height:6em;z-index:999}.chat-button.svelte-xlhtz{display:block;height:100%;cursor:pointer;border-radius:50%;box-shadow:9px 9px 16px rgba(0, 0, 0, 0.25);transition:transform 100ms, box-shadow 100ms}.chat-button.svelte-xlhtz:hover{box-shadow:16px 16px 16px rgba(0, 0, 0, 0.2);transform:translateY(-2px)}",kc(document.head,c)),oa(e(r),n,da,va,Ac,{assetsUrl:0,onToggle:1}),r}return i}(ia),ga=function(t,e){var n=window.addEventListener?"addEventListener":"attachEvent";(0,window[n])("attachEvent"===n?"onmessage":"message",(function(n){var r,o=n.data;switch(o.type){case"webclient.expand.window":t(o.devices);break;case"webclient.change.url":e(o.url);break;case"google.tag.event":r=o.payload,window.gtag?window.gtag("event","",r):window.dataLayer&&window.dataLayer.push(r)}}),!1)};me("match",1,(function(t,e,n){return[function(e){var n=O(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var o=M(t),i=String(this);if(!o.global)return Ae(o,i);var c=o.unicode;o.lastIndex=0;for(var a,u=[],l=0;null!==(a=Ae(o,i));){var s=String(a[0]);u[l]=s,""===s&&(o.lastIndex=Te(i,mt(o.lastIndex),c)),l++}return 0===l?null:u}]}));var ya=function(){navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&document.querySelectorAll("html, body").forEach((function(t){t.classList.add("iOS-device")}))},ma=f((function(t,e){var n;n=function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(e,n,i){if("undefined"!=typeof document){"number"==typeof(i=t({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var c=JSON.stringify(n);/^[\{\[]/.test(c)&&(n=c)}catch(t){}n=r.write?r.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var u in i)i[u]&&(a+="; "+u,!0!==i[u]&&(a+="="+i[u].split(";")[0]));return document.cookie=e+"="+n+a}}function c(t,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],c=0;c<i.length;c++){var a=i[c].split("="),u=a.slice(1).join("=");n||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var l=e(a[0]);if(u=(r.read||r)(u,l)||e(u),n)try{u=JSON.parse(u)}catch(t){}if(o[l]=u,t===l)break}catch(t){}}return t?o[t]:o}}return o.set=i,o.get=function(t){return c(t,!1)},o.getJSON=function(t){return c(t,!0)},o.remove=function(e,n){i(e,"",t(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))},t.exports=n()})),ba=function(t){ma.set("bot-window",t)};function wa(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return i(this,n)}}var xa=Zc.document;function Sa(t){var e,n,r,o,i,c,a,u;return i=new ha({props:{server:t[0],assetsUrl:t[1],onToggle:t[3]}}),a=new fa({props:{server:t[0],assetsUrl:t[1],open:t[2],onToggle:t[3]}}),{c:function(){e=Ic("link"),r=$c(),o=Ic("div"),ta(i.$$.fragment),c=$c(),ta(a.$$.fragment),Lc(e,"rel","stylesheet"),Lc(e,"href",n="".concat(t[1],"/embed/custom.css")),Lc(o,"id","chatbot-window"),Lc(o,"class","svelte-sr5aex")},m:function(t,n){kc(xa.head,e),Rc(t,r,n),Rc(t,o,n),ea(i,o,null),kc(o,c),ea(a,o,null),u=!0},p:function(t,r){var o=l(r,1)[0];(!u||2&o&&n!==(n="".concat(t[1],"/embed/custom.css")))&&Lc(e,"href",n);var c={};1&o&&(c.server=t[0]),2&o&&(c.assetsUrl=t[1]),i.$set(c);var s={};1&o&&(s.server=t[0]),2&o&&(s.assetsUrl=t[1]),4&o&&(s.open=t[2]),a.$set(s)},i:function(t){u||(Qc(i.$$.fragment,t),Qc(a.$$.fragment,t),u=!0)},o:function(t){Xc(i.$$.fragment,t),Xc(a.$$.fragment,t),u=!1},d:function(t){Pc(e),t&&Pc(r),t&&Pc(o),na(i),na(a)}}}function Ea(t,e,n){var r=e.server,o=e.assetsUrl,i=void 0===o?r?r.split("?")[0]:void 0:o;ya();var c=function(){switch(ma.get("bot-window")){case"open":return!0;case"closed":default:return!1}}();function a(){n(2,c=!0),ba("open")}function u(){n(2,c=!1),ba("closed")}return ga((function(t){var e=window.innerWidth;(null==t||"all"===t||"desktop"===t&&e>=768||"mobile"===t&&e<768)&&a()}),(function(t){window.innerWidth<768&&u(),document.location.href=t})),t.$$set=function(t){"server"in t&&n(0,r=t.server),"assetsUrl"in t&&n(1,i=t.assetsUrl)},[r,i,c,function(){c?u():a()}]}var Oa=function(n){r(i,n);var o=wa(i);function i(n){var r,c;return t(this,i),r=o.call(this),xa.getElementById("svelte-sr5aex-style")||((c=Ic("style")).id="svelte-sr5aex-style",c.textContent="#chatbot-window.svelte-sr5aex{font-size:16px}",kc(xa.head,c)),oa(e(r),n,Ea,Sa,Ac,{server:0,assetsUrl:1}),r}return i}(ia),ja=function(t){if(t&&void 0!==t.src)return function(t){return t.dataset&&t.dataset.server}(t)||function(t){return t.src.replace(/\/embed\/bundle\.js/,"")}(t)}(document.querySelector("script#chatbot")),Ta=function(){console.log("Chatbot is loading from",ja),new Oa({target:document.body,props:{server:ja}})};window.addEventListener("load",(function(){return setTimeout(Ta,3e3)}))}();
1
+ var chatbot=function(t){"use strict";function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(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&&r(t,e)}function i(t){return(i="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 c(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?n(t):e}function a(t){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function u(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 l(t,e){if(t){if("string"==typeof t)return u(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)?u(t,e):void 0}}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var r,o,i=[],c=!0,a=!1;try{for(n=n.call(t);!(c=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);c=!0);}catch(t){a=!0,o=t}finally{try{c||null==n.return||n.return()}finally{if(a)throw o}}return i}}(t,e)||l(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function p(t,e){return t(e={exports:{}},e.exports),e.exports}var d=function(t){return t&&t.Math==Math&&t},v=d("object"==typeof globalThis&&globalThis)||d("object"==typeof window&&window)||d("object"==typeof self&&self)||d("object"==typeof f&&f)||function(){return this}()||Function("return this")(),h=function(t){try{return!!t()}catch(t){return!0}},g=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),y={}.propertyIsEnumerable,m=Object.getOwnPropertyDescriptor,b={f:m&&!y.call({1:2},1)?function(t){var e=m(this,t);return!!e&&e.enumerable}:y},w=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},x={}.toString,S=function(t){return x.call(t).slice(8,-1)},E="".split,O=h((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==S(t)?E.call(t,""):Object(t)}:Object,j=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},T=function(t){return O(j(t))},A=function(t){return"object"==typeof t?null!==t:"function"==typeof t},_=function(t,e){if(!A(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!A(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!A(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!A(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},R=function(t){return Object(j(t))},k={}.hasOwnProperty,I=function(t,e){return k.call(R(t),e)},P=v.document,$=A(P)&&A(P.createElement),C=function(t){return $?P.createElement(t):{}},L=!g&&!h((function(){return 7!=Object.defineProperty(C("div"),"a",{get:function(){return 7}}).a})),M=Object.getOwnPropertyDescriptor,U={f:g?M:function(t,e){if(t=T(t),e=_(e,!0),L)try{return M(t,e)}catch(t){}if(I(t,e))return w(!b.f.call(t,e),t[e])}},N=function(t){if(!A(t))throw TypeError(String(t)+" is not an object");return t},D=Object.defineProperty,z={f:g?D:function(t,e,n){if(N(t),e=_(e,!0),N(n),L)try{return D(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},F=g?function(t,e,n){return z.f(t,e,w(1,n))}:function(t,e,n){return t[e]=n,t},B=function(t,e){try{F(v,t,e)}catch(n){v[t]=e}return e},G=v["__core-js_shared__"]||B("__core-js_shared__",{}),W=Function.toString;"function"!=typeof G.inspectSource&&(G.inspectSource=function(t){return W.call(t)});var q,H,Y,K=G.inspectSource,V=v.WeakMap,J="function"==typeof V&&/native code/.test(K(V)),Q=p((function(t){(t.exports=function(t,e){return G[t]||(G[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.12.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),X=0,Z=Math.random(),tt=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++X+Z).toString(36)},et=Q("keys"),nt=function(t){return et[t]||(et[t]=tt(t))},rt={},ot=v.WeakMap;if(J||G.state){var it=G.state||(G.state=new ot),ct=it.get,at=it.has,ut=it.set;q=function(t,e){if(at.call(it,t))throw new TypeError("Object already initialized");return e.facade=t,ut.call(it,t,e),e},H=function(t){return ct.call(it,t)||{}},Y=function(t){return at.call(it,t)}}else{var lt=nt("state");rt[lt]=!0,q=function(t,e){if(I(t,lt))throw new TypeError("Object already initialized");return e.facade=t,F(t,lt,e),e},H=function(t){return I(t,lt)?t[lt]:{}},Y=function(t){return I(t,lt)}}var st={set:q,get:H,has:Y,enforce:function(t){return Y(t)?H(t):q(t,{})},getterFor:function(t){return function(e){var n;if(!A(e)||(n=H(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},ft=p((function(t){var e=st.get,n=st.enforce,r=String(String).split("String");(t.exports=function(t,e,o,i){var c,a=!!i&&!!i.unsafe,u=!!i&&!!i.enumerable,l=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof e||I(o,"name")||F(o,"name",e),(c=n(o)).source||(c.source=r.join("string"==typeof e?e:""))),t!==v?(a?!l&&t[e]&&(u=!0):delete t[e],u?t[e]=o:F(t,e,o)):u?t[e]=o:B(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||K(this)}))})),pt=v,dt=function(t){return"function"==typeof t?t:void 0},vt=function(t,e){return arguments.length<2?dt(pt[t])||dt(v[t]):pt[t]&&pt[t][e]||v[t]&&v[t][e]},ht=Math.ceil,gt=Math.floor,yt=function(t){return isNaN(t=+t)?0:(t>0?gt:ht)(t)},mt=Math.min,bt=function(t){return t>0?mt(yt(t),9007199254740991):0},wt=Math.max,xt=Math.min,St=function(t,e){var n=yt(t);return n<0?wt(n+e,0):xt(n,e)},Et=function(t){return function(e,n,r){var o,i=T(e),c=bt(i.length),a=St(r,c);if(t&&n!=n){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},Ot={includes:Et(!0),indexOf:Et(!1)}.indexOf,jt=function(t,e){var n,r=T(t),o=0,i=[];for(n in r)!I(rt,n)&&I(r,n)&&i.push(n);for(;e.length>o;)I(r,n=e[o++])&&(~Ot(i,n)||i.push(n));return i},Tt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],At=Tt.concat("length","prototype"),_t={f:Object.getOwnPropertyNames||function(t){return jt(t,At)}},Rt={f:Object.getOwnPropertySymbols},kt=vt("Reflect","ownKeys")||function(t){var e=_t.f(N(t)),n=Rt.f;return n?e.concat(n(t)):e},It=function(t,e){for(var n=kt(e),r=z.f,o=U.f,i=0;i<n.length;i++){var c=n[i];I(t,c)||r(t,c,o(e,c))}},Pt=/#|\.prototype\./,$t=function(t,e){var n=Lt[Ct(t)];return n==Ut||n!=Mt&&("function"==typeof e?h(e):!!e)},Ct=$t.normalize=function(t){return String(t).replace(Pt,".").toLowerCase()},Lt=$t.data={},Mt=$t.NATIVE="N",Ut=$t.POLYFILL="P",Nt=$t,Dt=U.f,zt=function(t,e){var n,r,o,i,c,a=t.target,u=t.global,l=t.stat;if(n=u?v:l?v[a]||B(a,{}):(v[a]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(c=Dt(n,r))&&c.value:n[r],!Nt(u?r:a+(l?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;It(i,o)}(t.sham||o&&o.sham)&&F(i,"sham",!0),ft(n,r,i,t)}},Ft=function(){var t=N(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e};function Bt(t,e){return RegExp(t,e)}var Gt,Wt,qt={UNSUPPORTED_Y:h((function(){var t=Bt("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:h((function(){var t=Bt("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Ht=RegExp.prototype.exec,Yt=Q("native-string-replace",String.prototype.replace),Kt=Ht,Vt=(Gt=/a/,Wt=/b*/g,Ht.call(Gt,"a"),Ht.call(Wt,"a"),0!==Gt.lastIndex||0!==Wt.lastIndex),Jt=qt.UNSUPPORTED_Y||qt.BROKEN_CARET,Qt=void 0!==/()??/.exec("")[1];(Vt||Qt||Jt)&&(Kt=function(t){var e,n,r,o,i=this,c=Jt&&i.sticky,a=Ft.call(i),u=i.source,l=0,s=t;return c&&(-1===(a=a.replace("y","")).indexOf("g")&&(a+="g"),s=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(u="(?: "+u+")",s=" "+s,l++),n=new RegExp("^(?:"+u+")",a)),Qt&&(n=new RegExp("^"+u+"$(?!\\s)",a)),Vt&&(e=i.lastIndex),r=Ht.call(c?n:i,s),c?r?(r.input=r.input.slice(l),r[0]=r[0].slice(l),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Vt&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),Qt&&r&&r.length>1&&Yt.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var Xt=Kt;zt({target:"RegExp",proto:!0,forced:/./.exec!==Xt},{exec:Xt});var Zt,te,ee=vt("navigator","userAgent")||"",ne=v.process,re=ne&&ne.versions,oe=re&&re.v8;oe?te=(Zt=oe.split("."))[0]<4?1:Zt[0]+Zt[1]:ee&&(!(Zt=ee.match(/Edge\/(\d+)/))||Zt[1]>=74)&&(Zt=ee.match(/Chrome\/(\d+)/))&&(te=Zt[1]);var ie=te&&+te,ce=!!Object.getOwnPropertySymbols&&!h((function(){return!String(Symbol())||!Symbol.sham&&ie&&ie<41})),ae=ce&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ue=Q("wks"),le=v.Symbol,se=ae?le:le&&le.withoutSetter||tt,fe=function(t){return I(ue,t)&&(ce||"string"==typeof ue[t])||(ce&&I(le,t)?ue[t]=le[t]:ue[t]=se("Symbol."+t)),ue[t]},pe=fe("species"),de=RegExp.prototype,ve=!h((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),he="$0"==="a".replace(/./,"$0"),ge=fe("replace"),ye=!!/./[ge]&&""===/./[ge]("a","$0"),me=!h((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),be=function(t,e,n,r){var o=fe(t),i=!h((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),c=i&&!h((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[pe]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!c||"replace"===t&&(!ve||!he||ye)||"split"===t&&!me){var a=/./[o],u=n(o,""[t],(function(t,e,n,r,o){var c=e.exec;return c===Xt||c===de.exec?i&&!o?{done:!0,value:a.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:he,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:ye}),l=u[0],s=u[1];ft(String.prototype,t,l),ft(de,o,2==e?function(t,e){return s.call(t,this,e)}:function(t){return s.call(t,this)})}r&&F(de[o],"sham",!0)},we=fe("match"),xe=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Se=fe("species"),Ee=function(t,e){var n,r=N(t).constructor;return void 0===r||null==(n=N(r)[Se])?e:xe(n)},Oe=function(t){return function(e,n){var r,o,i=String(j(e)),c=yt(n),a=i.length;return c<0||c>=a?t?"":void 0:(r=i.charCodeAt(c))<55296||r>56319||c+1===a||(o=i.charCodeAt(c+1))<56320||o>57343?t?i.charAt(c):r:t?i.slice(c,c+2):o-56320+(r-55296<<10)+65536}},je={codeAt:Oe(!1),charAt:Oe(!0)},Te=je.charAt,Ae=function(t,e,n){return e+(n?Te(t,e).length:1)},_e=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==S(t))throw TypeError("RegExp#exec called on incompatible receiver");return Xt.call(t,e)},Re=qt.UNSUPPORTED_Y,ke=[].push,Ie=Math.min;be("split",2,(function(t,e,n){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var r,o,i=String(j(this)),c=void 0===n?4294967295:n>>>0;if(0===c)return[];if(void 0===t)return[i];if(!A(r=t)||!(void 0!==(o=r[we])?o:"RegExp"==S(r)))return e.call(i,t,c);for(var a,u,l,s=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,d=new RegExp(t.source,f+"g");(a=Xt.call(d,i))&&!((u=d.lastIndex)>p&&(s.push(i.slice(p,a.index)),a.length>1&&a.index<i.length&&ke.apply(s,a.slice(1)),l=a[0].length,p=u,s.length>=c));)d.lastIndex===a.index&&d.lastIndex++;return p===i.length?!l&&d.test("")||s.push(""):s.push(i.slice(p)),s.length>c?s.slice(0,c):s}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,n){var o=j(this),i=null==e?void 0:e[t];return void 0!==i?i.call(e,o,n):r.call(String(o),e,n)},function(t,o){var i=n(r,t,this,o,r!==e);if(i.done)return i.value;var c=N(t),a=String(this),u=Ee(c,RegExp),l=c.unicode,s=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(Re?"g":"y"),f=new u(Re?"^(?:"+c.source+")":c,s),p=void 0===o?4294967295:o>>>0;if(0===p)return[];if(0===a.length)return null===_e(f,a)?[a]:[];for(var d=0,v=0,h=[];v<a.length;){f.lastIndex=Re?0:v;var g,y=_e(f,Re?a.slice(v):a);if(null===y||(g=Ie(bt(f.lastIndex+(Re?v:0)),a.length))===d)v=Ae(a,v,l);else{if(h.push(a.slice(d,v)),h.length===p)return h;for(var m=1;m<=y.length-1;m++)if(h.push(y[m]),h.length===p)return h;v=d=g}}return h.push(a.slice(d)),h}]}),Re);var Pe,$e=Object.keys||function(t){return jt(t,Tt)},Ce=g?Object.defineProperties:function(t,e){N(t);for(var n,r=$e(e),o=r.length,i=0;o>i;)z.f(t,n=r[i++],e[n]);return t},Le=vt("document","documentElement"),Me=nt("IE_PROTO"),Ue=function(){},Ne=function(t){return"<script>"+t+"<\/script>"},De=function(){try{Pe=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;De=Pe?function(t){t.write(Ne("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Pe):((e=C("iframe")).style.display="none",Le.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Ne("document.F=Object")),t.close(),t.F);for(var n=Tt.length;n--;)delete De.prototype[Tt[n]];return De()};rt[Me]=!0;var ze=Object.create||function(t,e){var n;return null!==t?(Ue.prototype=N(t),n=new Ue,Ue.prototype=null,n[Me]=t):n=De(),void 0===e?n:Ce(n,e)},Fe=[].slice,Be={},Ge=function(t,e,n){if(!(e in Be)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";Be[e]=Function("C,a","return new C("+r.join(",")+")")}return Be[e](t,n)},We=Function.bind||function(t){var e=xe(this),n=Fe.call(arguments,1),r=function(){var o=n.concat(Fe.call(arguments));return this instanceof r?Ge(e,o.length,o):e.apply(t,o)};return A(e.prototype)&&(r.prototype=e.prototype),r},qe=vt("Reflect","construct"),He=h((function(){function t(){}return!(qe((function(){}),[],t)instanceof t)})),Ye=!h((function(){qe((function(){}))})),Ke=He||Ye;function Ve(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Je(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)}}zt({target:"Reflect",stat:!0,forced:Ke,sham:Ke},{construct:function(t,e){xe(t),N(e);var n=arguments.length<3?t:xe(arguments[2]);if(Ye&&!He)return qe(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return r.push.apply(r,e),new(We.apply(t,r))}var o=n.prototype,i=ze(A(o)?o:Object.prototype),c=Function.apply.call(t,i,e);return A(c)?c:i}});var Qe={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Xe=function(t,e,n){if(xe(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},Ze=Array.isArray||function(t){return"Array"==S(t)},tn=fe("species"),en=function(t,e){var n;return Ze(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Ze(n.prototype)?A(n)&&null===(n=n[tn])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},nn=[].push,rn=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,c=7==t,a=5==t||i;return function(u,l,s,f){for(var p,d,v=R(u),h=O(v),g=Xe(l,s,3),y=bt(h.length),m=0,b=f||en,w=e?b(u,y):n||c?b(u,0):void 0;y>m;m++)if((a||m in h)&&(d=g(p=h[m],m,v),t))if(e)w[m]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return m;case 2:nn.call(w,p)}else switch(t){case 4:return!1;case 7:nn.call(w,p)}return i?-1:r||o?o:w}},on={forEach:rn(0),map:rn(1),filter:rn(2),some:rn(3),every:rn(4),find:rn(5),findIndex:rn(6),filterOut:rn(7)},cn=function(t,e){var n=[][t];return!!n&&h((function(){n.call(null,e||function(){throw 1},1)}))},an=on.forEach,un=cn("forEach")?[].forEach:function(t){return an(this,t,arguments.length>1?arguments[1]:void 0)};for(var ln in Qe){var sn=v[ln],fn=sn&&sn.prototype;if(fn&&fn.forEach!==un)try{F(fn,"forEach",un)}catch(t){fn.forEach=un}}var pn=h((function(){$e(1)}));zt({target:"Object",stat:!0,forced:pn},{keys:function(t){return $e(R(t))}});var dn=function(t,e,n){var r=_(e);r in t?z.f(t,r,w(0,n)):t[r]=n},vn=fe("species"),hn=function(t){return ie>=51||!h((function(){var e=[];return(e.constructor={})[vn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},gn=hn("slice"),yn=fe("species"),mn=[].slice,bn=Math.max;zt({target:"Array",proto:!0,forced:!gn},{slice:function(t,e){var n,r,o,i=T(this),c=bt(i.length),a=St(t,c),u=St(void 0===e?c:e,c);if(Ze(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!Ze(n.prototype)?A(n)&&null===(n=n[yn])&&(n=void 0):n=void 0,n===Array||void 0===n))return mn.call(i,a,u);for(r=new(void 0===n?Array:n)(bn(u-a,0)),o=0;a<u;a++,o++)a in i&&dn(r,o,i[a]);return r.length=o,r}});var wn=fe("unscopables"),xn=Array.prototype;null==xn[wn]&&z.f(xn,wn,{configurable:!0,value:ze(null)});var Sn,En,On,jn=function(t){xn[wn][t]=!0},Tn={},An=!h((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),_n=nt("IE_PROTO"),Rn=Object.prototype,kn=An?Object.getPrototypeOf:function(t){return t=R(t),I(t,_n)?t[_n]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Rn:null},In=fe("iterator"),Pn=!1;[].keys&&("next"in(On=[].keys())?(En=kn(kn(On)))!==Object.prototype&&(Sn=En):Pn=!0),(null==Sn||h((function(){var t={};return Sn[In].call(t)!==t})))&&(Sn={}),I(Sn,In)||F(Sn,In,(function(){return this}));var $n={IteratorPrototype:Sn,BUGGY_SAFARI_ITERATORS:Pn},Cn=z.f,Ln=fe("toStringTag"),Mn=function(t,e,n){t&&!I(t=n?t:t.prototype,Ln)&&Cn(t,Ln,{configurable:!0,value:e})},Un=$n.IteratorPrototype,Nn=function(){return this},Dn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return N(n),function(t){if(!A(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),zn=$n.IteratorPrototype,Fn=$n.BUGGY_SAFARI_ITERATORS,Bn=fe("iterator"),Gn=function(){return this},Wn=function(t,e,n,r,o,i,c){!function(t,e,n){var r=e+" Iterator";t.prototype=ze(Un,{next:w(1,n)}),Mn(t,r,!1),Tn[r]=Nn}(n,e,r);var a,u,l,s=function(t){if(t===o&&h)return h;if(!Fn&&t in d)return d[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},f=e+" Iterator",p=!1,d=t.prototype,v=d[Bn]||d["@@iterator"]||o&&d[o],h=!Fn&&v||s(o),g="Array"==e&&d.entries||v;if(g&&(a=kn(g.call(new t)),zn!==Object.prototype&&a.next&&(kn(a)!==zn&&(Dn?Dn(a,zn):"function"!=typeof a[Bn]&&F(a,Bn,Gn)),Mn(a,f,!0))),"values"==o&&v&&"values"!==v.name&&(p=!0,h=function(){return v.call(this)}),d[Bn]!==h&&F(d,Bn,h),Tn[e]=h,o)if(u={values:s("values"),keys:i?h:s("keys"),entries:s("entries")},c)for(l in u)(Fn||p||!(l in d))&&ft(d,l,u[l]);else zt({target:e,proto:!0,forced:Fn||p},u);return u},qn=st.set,Hn=st.getterFor("Array Iterator"),Yn=Wn(Array,"Array",(function(t,e){qn(this,{type:"Array Iterator",target:T(t),index:0,kind:e})}),(function(){var t=Hn(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");Tn.Arguments=Tn.Array,jn("keys"),jn("values"),jn("entries");var Kn={};Kn[fe("toStringTag")]="z";var Vn="[object z]"===String(Kn),Jn=fe("toStringTag"),Qn="Arguments"==S(function(){return arguments}()),Xn=Vn?S:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Jn))?n:Qn?S(e):"Object"==(r=S(e))&&"function"==typeof e.callee?"Arguments":r},Zn=Vn?{}.toString:function(){return"[object "+Xn(this)+"]"};Vn||ft(Object.prototype,"toString",Zn,{unsafe:!0});var tr=!h((function(){return Object.isExtensible(Object.preventExtensions({}))})),er=p((function(t){var e=z.f,n=tt("meta"),r=0,o=Object.isExtensible||function(){return!0},i=function(t){e(t,n,{value:{objectID:"O"+ ++r,weakData:{}}})},c=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!A(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!I(t,n)){if(!o(t))return"F";if(!e)return"E";i(t)}return t[n].objectID},getWeakData:function(t,e){if(!I(t,n)){if(!o(t))return!0;if(!e)return!1;i(t)}return t[n].weakData},onFreeze:function(t){return tr&&c.REQUIRED&&o(t)&&!I(t,n)&&i(t),t}};rt[n]=!0}));er.REQUIRED,er.fastKey,er.getWeakData,er.onFreeze;var nr=fe("iterator"),rr=Array.prototype,or=function(t){return void 0!==t&&(Tn.Array===t||rr[nr]===t)},ir=fe("iterator"),cr=function(t){if(null!=t)return t[ir]||t["@@iterator"]||Tn[Xn(t)]},ar=function(t){var e=t.return;if(void 0!==e)return N(e.call(t)).value},ur=function(t,e){this.stopped=t,this.result=e},lr=function(t,e,n){var r,o,i,c,a,u,l,s=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),v=Xe(e,s,1+f+d),h=function(t){return r&&ar(r),new ur(!0,t)},g=function(t){return f?(N(t),d?v(t[0],t[1],h):v(t[0],t[1])):d?v(t,h):v(t)};if(p)r=t;else{if("function"!=typeof(o=cr(t)))throw TypeError("Target is not iterable");if(or(o)){for(i=0,c=bt(t.length);c>i;i++)if((a=g(t[i]))&&a instanceof ur)return a;return new ur(!1)}r=o.call(t)}for(u=r.next;!(l=u.call(r)).done;){try{a=g(l.value)}catch(t){throw ar(r),t}if("object"==typeof a&&a&&a instanceof ur)return a}return new ur(!1)},sr=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t},fr=fe("iterator"),pr=!1;try{var dr=0,vr={next:function(){return{done:!!dr++}},return:function(){pr=!0}};vr[fr]=function(){return this},Array.from(vr,(function(){throw 2}))}catch(t){}var hr=function(t,e){if(!e&&!pr)return!1;var n=!1;try{var r={};r[fr]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},gr=function(t,e,n){var r=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=r?"set":"add",c=v[t],a=c&&c.prototype,u=c,l={},s=function(t){var e=a[t];ft(a,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!A(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return o&&!A(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!A(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(Nt(t,"function"!=typeof c||!(o||a.forEach&&!h((function(){(new c).entries().next()})))))u=n.getConstructor(e,t,r,i),er.REQUIRED=!0;else if(Nt(t,!0)){var f=new u,p=f[i](o?{}:-0,1)!=f,d=h((function(){f.has(1)})),g=hr((function(t){new c(t)})),y=!o&&h((function(){for(var t=new c,e=5;e--;)t[i](e,e);return!t.has(-0)}));g||((u=e((function(e,n){sr(e,u,t);var o=function(t,e,n){var r,o;return Dn&&"function"==typeof(r=e.constructor)&&r!==n&&A(o=r.prototype)&&o!==n.prototype&&Dn(t,o),t}(new c,e,u);return null!=n&&lr(n,o[i],{that:o,AS_ENTRIES:r}),o}))).prototype=a,a.constructor=u),(d||y)&&(s("delete"),s("has"),r&&s("get")),(y||p)&&s(i),o&&a.clear&&delete a.clear}return l[t]=u,zt({global:!0,forced:u!=c},l),Mn(u,t),o||n.setStrong(u,t,r),u},yr=function(t,e,n){for(var r in e)ft(t,r,e[r],n);return t},mr=fe("species"),br=function(t){var e=vt(t),n=z.f;g&&e&&!e[mr]&&n(e,mr,{configurable:!0,get:function(){return this}})},wr=z.f,xr=er.fastKey,Sr=st.set,Er=st.getterFor,Or={getConstructor:function(t,e,n,r){var o=t((function(t,i){sr(t,o,e),Sr(t,{type:e,index:ze(null),first:void 0,last:void 0,size:0}),g||(t.size=0),null!=i&&lr(i,t[r],{that:t,AS_ENTRIES:n})})),i=Er(e),c=function(t,e,n){var r,o,c=i(t),u=a(t,e);return u?u.value=n:(c.last=u={index:o=xr(e,!0),key:e,value:n,previous:r=c.last,next:void 0,removed:!1},c.first||(c.first=u),r&&(r.next=u),g?c.size++:t.size++,"F"!==o&&(c.index[o]=u)),t},a=function(t,e){var n,r=i(t),o=xr(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return yr(o.prototype,{clear:function(){for(var t=i(this),e=t.index,n=t.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,g?t.size=0:this.size=0},delete:function(t){var e=i(this),n=a(this,t);if(n){var r=n.next,o=n.previous;delete e.index[n.index],n.removed=!0,o&&(o.next=r),r&&(r.previous=o),e.first==n&&(e.first=r),e.last==n&&(e.last=o),g?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=i(this),r=Xe(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:n.first;)for(r(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!a(this,t)}}),yr(o.prototype,n?{get:function(t){var e=a(this,t);return e&&e.value},set:function(t,e){return c(this,0===t?0:t,e)}}:{add:function(t){return c(this,t=0===t?0:t,t)}}),g&&wr(o.prototype,"size",{get:function(){return i(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=Er(e),i=Er(r);Wn(t,e,(function(t,e){Sr(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),br(e)}};gr("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Or);var jr=je.charAt,Tr=st.set,Ar=st.getterFor("String Iterator");Wn(String,"String",(function(t){Tr(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=Ar(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=jr(n,r),e.index+=t.length,{value:t,done:!1})}));var _r=fe("iterator"),Rr=fe("toStringTag"),kr=Yn.values;for(var Ir in Qe){var Pr=v[Ir],$r=Pr&&Pr.prototype;if($r){if($r[_r]!==kr)try{F($r,_r,kr)}catch(t){$r[_r]=kr}if($r[Rr]||F($r,Rr,Ir),Qe[Ir])for(var Cr in Yn)if($r[Cr]!==Yn[Cr])try{F($r,Cr,Yn[Cr])}catch(t){$r[Cr]=Yn[Cr]}}}var Lr=fe("isConcatSpreadable"),Mr=ie>=51||!h((function(){var t=[];return t[Lr]=!1,t.concat()[0]!==t})),Ur=hn("concat"),Nr=function(t){if(!A(t))return!1;var e=t[Lr];return void 0!==e?!!e:Ze(t)};zt({target:"Array",proto:!0,forced:!Mr||!Ur},{concat:function(t){var e,n,r,o,i,c=R(this),a=en(c,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Nr(i=-1===e?c:arguments[e])){if(u+(o=bt(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in i&&dn(a,u,i[n])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");dn(a,u++,i)}return a.length=u,a}});var Dr,zr,Fr,Br=v.Promise,Gr=/(?:iphone|ipod|ipad).*applewebkit/i.test(ee),Wr="process"==S(v.process),qr=v.location,Hr=v.setImmediate,Yr=v.clearImmediate,Kr=v.process,Vr=v.MessageChannel,Jr=v.Dispatch,Qr=0,Xr={},Zr=function(t){if(Xr.hasOwnProperty(t)){var e=Xr[t];delete Xr[t],e()}},to=function(t){return function(){Zr(t)}},eo=function(t){Zr(t.data)},no=function(t){v.postMessage(t+"",qr.protocol+"//"+qr.host)};Hr&&Yr||(Hr=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Xr[++Qr]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},Dr(Qr),Qr},Yr=function(t){delete Xr[t]},Wr?Dr=function(t){Kr.nextTick(to(t))}:Jr&&Jr.now?Dr=function(t){Jr.now(to(t))}:Vr&&!Gr?(Fr=(zr=new Vr).port2,zr.port1.onmessage=eo,Dr=Xe(Fr.postMessage,Fr,1)):v.addEventListener&&"function"==typeof postMessage&&!v.importScripts&&qr&&"file:"!==qr.protocol&&!h(no)?(Dr=no,v.addEventListener("message",eo,!1)):Dr="onreadystatechange"in C("script")?function(t){Le.appendChild(C("script")).onreadystatechange=function(){Le.removeChild(this),Zr(t)}}:function(t){setTimeout(to(t),0)});var ro,oo,io,co,ao,uo,lo,so,fo={set:Hr,clear:Yr},po=/web0s(?!.*chrome)/i.test(ee),vo=U.f,ho=fo.set,go=v.MutationObserver||v.WebKitMutationObserver,yo=v.document,mo=v.process,bo=v.Promise,wo=vo(v,"queueMicrotask"),xo=wo&&wo.value;xo||(ro=function(){var t,e;for(Wr&&(t=mo.domain)&&t.exit();oo;){e=oo.fn,oo=oo.next;try{e()}catch(t){throw oo?co():io=void 0,t}}io=void 0,t&&t.enter()},Gr||Wr||po||!go||!yo?bo&&bo.resolve?((lo=bo.resolve(void 0)).constructor=bo,so=lo.then,co=function(){so.call(lo,ro)}):co=Wr?function(){mo.nextTick(ro)}:function(){ho.call(v,ro)}:(ao=!0,uo=yo.createTextNode(""),new go(ro).observe(uo,{characterData:!0}),co=function(){uo.data=ao=!ao}));var So,Eo,Oo,jo,To=xo||function(t){var e={fn:t,next:void 0};io&&(io.next=e),oo||(oo=e,co()),io=e},Ao=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=xe(e),this.reject=xe(n)},_o={f:function(t){return new Ao(t)}},Ro=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},ko="object"==typeof window,Io=fo.set,Po=fe("species"),$o="Promise",Co=st.get,Lo=st.set,Mo=st.getterFor($o),Uo=Br&&Br.prototype,No=Br,Do=Uo,zo=v.TypeError,Fo=v.document,Bo=v.process,Go=_o.f,Wo=Go,qo=!!(Fo&&Fo.createEvent&&v.dispatchEvent),Ho="function"==typeof PromiseRejectionEvent,Yo=!1,Ko=Nt($o,(function(){var t=K(No)!==String(No);if(!t&&66===ie)return!0;if(ie>=51&&/native code/.test(No))return!1;var e=new No((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(e.constructor={})[Po]=n,!(Yo=e.then((function(){}))instanceof n)||!t&&ko&&!Ho})),Vo=Ko||!hr((function(t){No.all(t).catch((function(){}))})),Jo=function(t){var e;return!(!A(t)||"function"!=typeof(e=t.then))&&e},Qo=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;To((function(){for(var r=t.value,o=1==t.state,i=0;n.length>i;){var c,a,u,l=n[i++],s=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{s?(o||(2===t.rejection&&ei(t),t.rejection=1),!0===s?c=r:(d&&d.enter(),c=s(r),d&&(d.exit(),u=!0)),c===l.promise?p(zo("Promise-chain cycle")):(a=Jo(c))?a.call(c,f,p):f(c)):p(r)}catch(t){d&&!u&&d.exit(),p(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&Zo(t)}))}},Xo=function(t,e,n){var r,o;qo?((r=Fo.createEvent("Event")).promise=e,r.reason=n,r.initEvent(t,!1,!0),v.dispatchEvent(r)):r={promise:e,reason:n},!Ho&&(o=v["on"+t])?o(r):"unhandledrejection"===t&&function(t,e){var n=v.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},Zo=function(t){Io.call(v,(function(){var e,n=t.facade,r=t.value;if(ti(t)&&(e=Ro((function(){Wr?Bo.emit("unhandledRejection",r,n):Xo("unhandledrejection",n,r)})),t.rejection=Wr||ti(t)?2:1,e.error))throw e.value}))},ti=function(t){return 1!==t.rejection&&!t.parent},ei=function(t){Io.call(v,(function(){var e=t.facade;Wr?Bo.emit("rejectionHandled",e):Xo("rejectionhandled",e,t.value)}))},ni=function(t,e,n){return function(r){t(e,r,n)}},ri=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,Qo(t,!0))},oi=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw zo("Promise can't be resolved itself");var r=Jo(e);r?To((function(){var n={done:!1};try{r.call(e,ni(oi,n,t),ni(ri,n,t))}catch(e){ri(n,e,t)}})):(t.value=e,t.state=1,Qo(t,!1))}catch(e){ri({done:!1},e,t)}}};if(Ko&&(Do=(No=function(t){sr(this,No,$o),xe(t),So.call(this);var e=Co(this);try{t(ni(oi,e),ni(ri,e))}catch(t){ri(e,t)}}).prototype,(So=function(t){Lo(this,{type:$o,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=yr(Do,{then:function(t,e){var n=Mo(this),r=Go(Ee(this,No));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=Wr?Bo.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&Qo(n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),Eo=function(){var t=new So,e=Co(t);this.promise=t,this.resolve=ni(oi,e),this.reject=ni(ri,e)},_o.f=Go=function(t){return t===No||t===Oo?new Eo(t):Wo(t)},"function"==typeof Br&&Uo!==Object.prototype)){jo=Uo.then,Yo||(ft(Uo,"then",(function(t,e){var n=this;return new No((function(t,e){jo.call(n,t,e)})).then(t,e)}),{unsafe:!0}),ft(Uo,"catch",Do.catch,{unsafe:!0}));try{delete Uo.constructor}catch(t){}Dn&&Dn(Uo,Do)}zt({global:!0,wrap:!0,forced:Ko},{Promise:No}),Mn(No,$o,!1),br($o),Oo=vt($o),zt({target:$o,stat:!0,forced:Ko},{reject:function(t){var e=Go(this);return e.reject.call(void 0,t),e.promise}}),zt({target:$o,stat:!0,forced:Ko},{resolve:function(t){return function(t,e){if(N(t),A(e)&&e.constructor===t)return e;var n=_o.f(t);return(0,n.resolve)(e),n.promise}(this,t)}}),zt({target:$o,stat:!0,forced:Vo},{all:function(t){var e=this,n=Go(e),r=n.resolve,o=n.reject,i=Ro((function(){var n=xe(e.resolve),i=[],c=0,a=1;lr(t,(function(t){var u=c++,l=!1;i.push(void 0),a++,n.call(e,t).then((function(t){l||(l=!0,i[u]=t,--a||r(i))}),o)})),--a||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Go(e),r=n.reject,o=Ro((function(){var o=xe(e.resolve);lr(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}}),zt({target:"Object",stat:!0,sham:!g},{getOwnPropertyDescriptors:function(t){for(var e,n,r=T(t),o=U.f,i=kt(r),c={},a=0;i.length>a;)void 0!==(n=o(r,e=i[a++]))&&dn(c,e,n);return c}});var ii=function(t,e,n,r){try{return r?e(N(n)[0],n[1]):e(n)}catch(e){throw ar(t),e}},ci=!hr((function(t){Array.from(t)}));zt({target:"Array",stat:!0,forced:ci},{from:function(t){var e,n,r,o,i,c,a=R(t),u="function"==typeof this?this:Array,l=arguments.length,s=l>1?arguments[1]:void 0,f=void 0!==s,p=cr(a),d=0;if(f&&(s=Xe(s,l>2?arguments[2]:void 0,2)),null==p||u==Array&&or(p))for(n=new u(e=bt(a.length));e>d;d++)c=f?s(a[d],d):a[d],dn(n,d,c);else for(i=(o=p.call(a)).next,n=new u;!(r=i.call(o)).done;d++)c=f?ii(o,s,[r.value,d],!0):r.value,dn(n,d,c);return n.length=d,n}});var ai=z.f,ui=Function.prototype,li=ui.toString,si=/^\s*function ([^ (]*)/;g&&!("name"in ui)&&ai(ui,"name",{configurable:!0,get:function(){try{return li.call(this).match(si)[1]}catch(t){return""}}});var fi=hn("splice"),pi=Math.max,di=Math.min;zt({target:"Array",proto:!0,forced:!fi},{splice:function(t,e){var n,r,o,i,c,a,u=R(this),l=bt(u.length),s=St(t,l),f=arguments.length;if(0===f?n=r=0:1===f?(n=0,r=l-s):(n=f-2,r=di(pi(yt(e),0),l-s)),l+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=en(u,r),i=0;i<r;i++)(c=s+i)in u&&dn(o,i,u[c]);if(o.length=r,n<r){for(i=s;i<l-r;i++)a=i+n,(c=i+r)in u?u[a]=u[c]:delete u[a];for(i=l;i>l-r+n;i--)delete u[i-1]}else if(n>r)for(i=l-r;i>s;i--)a=i+n-1,(c=i+r-1)in u?u[a]=u[c]:delete u[a];for(i=0;i<n;i++)u[i+s]=arguments[i+2];return u.length=l-r+n,o}});var vi=on.map,hi=hn("map");zt({target:"Array",proto:!0,forced:!hi},{map:function(t){return vi(this,t,arguments.length>1?arguments[1]:void 0)}});var gi=on.filter,yi=hn("filter");zt({target:"Array",proto:!0,forced:!yi},{filter:function(t){return gi(this,t,arguments.length>1?arguments[1]:void 0)}});var mi=[].join,bi=O!=Object,wi=cn("join",",");zt({target:"Array",proto:!0,forced:bi||!wi},{join:function(t){return mi.call(T(this),void 0===t?",":t)}});var xi=/"/g;zt({target:"String",proto:!0,forced:function(t){return h((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}("anchor")},{anchor:function(t){return e="a",n="name",r=t,o=String(j(this)),i="<"+e,""!==n&&(i+=" "+n+'="'+String(r).replace(xi,"&quot;")+'"'),i+">"+o+"</"+e+">";var e,n,r,o,i}}),gr("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Or);var Si=Object.assign,Ei=Object.defineProperty,Oi=!Si||h((function(){if(g&&1!==Si({b:1},Si(Ei({},"a",{enumerable:!0,get:function(){Ei(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=Si({},t)[n]||"abcdefghijklmnopqrst"!=$e(Si({},e)).join("")}))?function(t,e){for(var n=R(t),r=arguments.length,o=1,i=Rt.f,c=b.f;r>o;)for(var a,u=O(arguments[o++]),l=i?$e(u).concat(i(u)):$e(u),s=l.length,f=0;s>f;)a=l[f++],g&&!c.call(u,a)||(n[a]=u[a]);return n}:Si;zt({target:"Object",stat:!0,forced:Object.assign!==Oi},{assign:Oi});var ji=Math.floor,Ti="".replace,Ai=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,_i=/\$([$&'`]|\d{1,2})/g,Ri=function(t,e,n,r,o,i){var c=n+t.length,a=r.length,u=_i;return void 0!==o&&(o=R(o),u=Ai),Ti.call(i,u,(function(i,u){var l;switch(u.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(c);case"<":l=o[u.slice(1,-1)];break;default:var s=+u;if(0===s)return i;if(s>a){var f=ji(s/10);return 0===f?i:f<=a?void 0===r[f-1]?u.charAt(1):r[f-1]+u.charAt(1):i}l=r[s-1]}return void 0===l?"":l}))},ki=Math.max,Ii=Math.min;be("replace",2,(function(t,e,n,r){var o=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,i=r.REPLACE_KEEPS_$0,c=o?"$":"$0";return[function(n,r){var o=j(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,r){if(!o&&i||"string"==typeof r&&-1===r.indexOf(c)){var a=n(e,t,this,r);if(a.done)return a.value}var u=N(t),l=String(this),s="function"==typeof r;s||(r=String(r));var f=u.global;if(f){var p=u.unicode;u.lastIndex=0}for(var d=[];;){var v=_e(u,l);if(null===v)break;if(d.push(v),!f)break;""===String(v[0])&&(u.lastIndex=Ae(l,bt(u.lastIndex),p))}for(var h,g="",y=0,m=0;m<d.length;m++){v=d[m];for(var b=String(v[0]),w=ki(Ii(yt(v.index),l.length),0),x=[],S=1;S<v.length;S++)x.push(void 0===(h=v[S])?h:String(h));var E=v.groups;if(s){var O=[b].concat(x,w,l);void 0!==E&&O.push(E);var j=String(r.apply(void 0,O))}else j=Ri(b,l,w,x,E,r);w>=y&&(g+=l.slice(y,w)+j,y=w+b.length)}return g+l.slice(y)}]}));zt({target:"Array",proto:!0},{fill:function(t){for(var e=R(this),n=bt(e.length),r=arguments.length,o=St(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,c=void 0===i?n:St(i,n);c>o;)e[o++]=t;return e}}),jn("fill");var Pi=_t.f,$i={}.toString,Ci="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Li={f:function(t){return Ci&&"[object Window]"==$i.call(t)?function(t){try{return Pi(t)}catch(t){return Ci.slice()}}(t):Pi(T(t))}},Mi={f:fe},Ui=z.f,Ni=function(t){var e=pt.Symbol||(pt.Symbol={});I(e,t)||Ui(e,t,{value:Mi.f(t)})},Di=on.forEach,zi=nt("hidden"),Fi=fe("toPrimitive"),Bi=st.set,Gi=st.getterFor("Symbol"),Wi=Object.prototype,qi=v.Symbol,Hi=vt("JSON","stringify"),Yi=U.f,Ki=z.f,Vi=Li.f,Ji=b.f,Qi=Q("symbols"),Xi=Q("op-symbols"),Zi=Q("string-to-symbol-registry"),tc=Q("symbol-to-string-registry"),ec=Q("wks"),nc=v.QObject,rc=!nc||!nc.prototype||!nc.prototype.findChild,oc=g&&h((function(){return 7!=ze(Ki({},"a",{get:function(){return Ki(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Yi(Wi,e);r&&delete Wi[e],Ki(t,e,n),r&&t!==Wi&&Ki(Wi,e,r)}:Ki,ic=function(t,e){var n=Qi[t]=ze(qi.prototype);return Bi(n,{type:"Symbol",tag:t,description:e}),g||(n.description=e),n},cc=ae?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof qi},ac=function(t,e,n){t===Wi&&ac(Xi,e,n),N(t);var r=_(e,!0);return N(n),I(Qi,r)?(n.enumerable?(I(t,zi)&&t[zi][r]&&(t[zi][r]=!1),n=ze(n,{enumerable:w(0,!1)})):(I(t,zi)||Ki(t,zi,w(1,{})),t[zi][r]=!0),oc(t,r,n)):Ki(t,r,n)},uc=function(t,e){N(t);var n=T(e),r=$e(n).concat(pc(n));return Di(r,(function(e){g&&!lc.call(n,e)||ac(t,e,n[e])})),t},lc=function(t){var e=_(t,!0),n=Ji.call(this,e);return!(this===Wi&&I(Qi,e)&&!I(Xi,e))&&(!(n||!I(this,e)||!I(Qi,e)||I(this,zi)&&this[zi][e])||n)},sc=function(t,e){var n=T(t),r=_(e,!0);if(n!==Wi||!I(Qi,r)||I(Xi,r)){var o=Yi(n,r);return!o||!I(Qi,r)||I(n,zi)&&n[zi][r]||(o.enumerable=!0),o}},fc=function(t){var e=Vi(T(t)),n=[];return Di(e,(function(t){I(Qi,t)||I(rt,t)||n.push(t)})),n},pc=function(t){var e=t===Wi,n=Vi(e?Xi:T(t)),r=[];return Di(n,(function(t){!I(Qi,t)||e&&!I(Wi,t)||r.push(Qi[t])})),r};if(ce||(ft((qi=function(){if(this instanceof qi)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=tt(t),n=function(t){this===Wi&&n.call(Xi,t),I(this,zi)&&I(this[zi],e)&&(this[zi][e]=!1),oc(this,e,w(1,t))};return g&&rc&&oc(Wi,e,{configurable:!0,set:n}),ic(e,t)}).prototype,"toString",(function(){return Gi(this).tag})),ft(qi,"withoutSetter",(function(t){return ic(tt(t),t)})),b.f=lc,z.f=ac,U.f=sc,_t.f=Li.f=fc,Rt.f=pc,Mi.f=function(t){return ic(fe(t),t)},g&&(Ki(qi.prototype,"description",{configurable:!0,get:function(){return Gi(this).description}}),ft(Wi,"propertyIsEnumerable",lc,{unsafe:!0}))),zt({global:!0,wrap:!0,forced:!ce,sham:!ce},{Symbol:qi}),Di($e(ec),(function(t){Ni(t)})),zt({target:"Symbol",stat:!0,forced:!ce},{for:function(t){var e=String(t);if(I(Zi,e))return Zi[e];var n=qi(e);return Zi[e]=n,tc[n]=e,n},keyFor:function(t){if(!cc(t))throw TypeError(t+" is not a symbol");if(I(tc,t))return tc[t]},useSetter:function(){rc=!0},useSimple:function(){rc=!1}}),zt({target:"Object",stat:!0,forced:!ce,sham:!g},{create:function(t,e){return void 0===e?ze(t):uc(ze(t),e)},defineProperty:ac,defineProperties:uc,getOwnPropertyDescriptor:sc}),zt({target:"Object",stat:!0,forced:!ce},{getOwnPropertyNames:fc,getOwnPropertySymbols:pc}),zt({target:"Object",stat:!0,forced:h((function(){Rt.f(1)}))},{getOwnPropertySymbols:function(t){return Rt.f(R(t))}}),Hi){var dc=!ce||h((function(){var t=qi();return"[null]"!=Hi([t])||"{}"!=Hi({a:t})||"{}"!=Hi(Object(t))}));zt({target:"JSON",stat:!0,forced:dc},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(A(e)||void 0!==t)&&!cc(t))return Ze(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!cc(e))return e}),o[1]=e,Hi.apply(null,o)}})}qi.prototype[Fi]||F(qi.prototype,Fi,qi.prototype.valueOf),Mn(qi,"Symbol"),rt[zi]=!0;var vc,hc=z.f,gc=v.Symbol;if(g&&"function"==typeof gc&&(!("description"in gc.prototype)||void 0!==gc().description)){var yc={},mc=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof mc?new gc(t):void 0===t?gc():gc(t);return""===t&&(yc[e]=!0),e};It(mc,gc);var bc=mc.prototype=gc.prototype;bc.constructor=mc;var wc=bc.toString,xc="Symbol(test)"==String(gc("test")),Sc=/^Symbol\((.*)\)[^)]+$/;hc(bc,"description",{configurable:!0,get:function(){var t=A(this)?this.valueOf():this,e=wc.call(t);if(I(yc,t))return"";var n=xc?e.slice(7,-1):e.replace(Sc,"$1");return""===n?void 0:n}}),zt({global:!0,forced:!0},{Symbol:mc})}function Ec(){}function Oc(t){return t()}function jc(){return Object.create(null)}function Tc(t){t.forEach(Oc)}function Ac(t){return"function"==typeof t}function _c(t,e){return t!=t?e==e:t!==e||t&&"object"===i(t)||"function"==typeof t}function Rc(t,e){t.appendChild(e)}function kc(t,e,n){t.insertBefore(e,n||null)}function Ic(t){t.parentNode.removeChild(t)}function Pc(t){return document.createElement(t)}function $c(t){return document.createTextNode(t)}function Cc(){return $c(" ")}function Lc(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function Mc(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Uc(t){return Array.from(t.childNodes)}function Nc(t,e,n){t.classList[n?"add":"remove"](e)}function Dc(t){vc=t}Ni("iterator");var zc=[],Fc=[],Bc=[],Gc=[],Wc=Promise.resolve(),qc=!1;function Hc(t){Bc.push(t)}var Yc=!1,Kc=new Set;function Vc(){if(!Yc){Yc=!0;do{for(var t=0;t<zc.length;t+=1){var e=zc[t];Dc(e),Jc(e.$$)}for(Dc(null),zc.length=0;Fc.length;)Fc.pop()();for(var n=0;n<Bc.length;n+=1){var r=Bc[n];Kc.has(r)||(Kc.add(r),r())}Bc.length=0}while(zc.length);for(;Gc.length;)Gc.pop()();qc=!1,Yc=!1,Kc.clear()}}function Jc(t){if(null!==t.fragment){t.update(),Tc(t.before_update);var e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Hc)}}var Qc=new Set;function Xc(t,e){t&&t.i&&(Qc.delete(t),t.i(e))}function Zc(t,e,n,r){if(t&&t.o){if(Qc.has(t))return;Qc.add(t),(void 0).c.push((function(){Qc.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}var ta="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function ea(t){t&&t.c()}function na(t,e,n,r){var o=t.$$,i=o.fragment,c=o.on_mount,a=o.on_destroy,u=o.after_update;i&&i.m(e,n),r||Hc((function(){var e=c.map(Oc).filter(Ac);a?a.push.apply(a,Ve(e)):Tc(e),t.$$.on_mount=[]})),u.forEach(Hc)}function ra(t,e){var n=t.$$;null!==n.fragment&&(Tc(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function oa(t,e){-1===t.$$.dirty[0]&&(zc.push(t),qc||(qc=!0,Wc.then(Vc)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ia(t,e,n,r,o,i){var c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[-1],a=vc;Dc(t);var u=t.$$={fragment:null,ctx:null,props:i,update:Ec,not_equal:o,bound:jc(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:e.context||[]),callbacks:jc(),dirty:c,skip_bound:!1},l=!1;if(u.ctx=n?n(t,e.props||{},(function(e,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return u.ctx&&o(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),l&&oa(t,e)),n})):[],u.update(),l=!0,Tc(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){var s=Uc(e.target);u.fragment&&u.fragment.l(s),s.forEach(Ic)}else u.fragment&&u.fragment.c();e.intro&&Xc(t.$$.fragment),na(t,e.target,e.anchor,e.customElement),Vc()}Dc(a)}var ca=function(){function t(){e(this,t)}var n,r,o;return n=t,(r=[{key:"$destroy",value:function(){ra(this,1),this.$destroy=Ec}},{key:"$on",value:function(t,e){var n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}},{key:"$set",value:function(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}])&&Je(n.prototype,r),o&&Je(n,o),t}();function aa(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var o=a(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function ua(t){var e,n,r;return{c:function(){(e=Pc("p")).textContent="Please make sure that the script tag has 'id=\"chatbot\"' and the attribute\n 'data-server' with the full qualified URL to the chatbot-server.",n=Cc(),(r=Pc("pre")).innerHTML='<code class="svelte-1ril8w">&lt;script\n <br class="svelte-1ril8w"/>\n id=&quot;chatbot&quot;\n <br class="svelte-1ril8w"/>\n data-server=&quot;https://server.com/webclient&quot;\n <br class="svelte-1ril8w"/>\n defer\n <br class="svelte-1ril8w"/>\n src=&quot;https://server.com/webclient/embed/bundle.js&quot;&gt; &lt;/script&gt;</code>',Mc(e,"class","svelte-1ril8w"),Mc(r,"class","svelte-1ril8w")},m:function(t,o){kc(t,e,o),kc(t,n,o),kc(t,r,o)},p:Ec,d:function(t){t&&Ic(e),t&&Ic(n),t&&Ic(r)}}}function la(t){var e,n,r,o,i,c,a,u,l,s,f,p;return{c:function(){e=Pc("div"),n=Pc("div"),r=Pc("img"),i=Cc(),(c=Pc("div")).innerHTML='<svg viewBox="-2 -2 24 24" class="svelte-1ril8w"><path d="M0,0L20,20M20,0L0,20" class="svelte-1ril8w"></path></svg>',a=Cc(),u=Pc("iframe"),r.src!==(o="".concat(t[2],"/embed/logo.svg"))&&Mc(r,"src",o),Mc(r,"alt","Logo"),Mc(r,"class","svelte-1ril8w"),Mc(c,"aria-label","Close chat window"),Mc(c,"role","button"),Mc(c,"class","bot-border-close-icon svelte-1ril8w"),Mc(c,"tabindex",0),Mc(n,"class","header svelte-1ril8w"),Mc(u,"id","chat-frame"),Mc(u,"title","Chat"),Mc(u,"class","bot svelte-1ril8w"),u.src!==(l=t[0])&&Mc(u,"src",l),Mc(u,"frameborder","0"),Mc(u,"allow","microphone"),u.allowFullscreen="",Mc(e,"class","bot-border svelte-1ril8w"),Mc(e,"aria-hidden",s=t[1]?"false":"true"),Nc(e,"closed",!t[1])},m:function(o,l){kc(o,e,l),Rc(e,n),Rc(n,r),Rc(n,i),Rc(n,c),Rc(e,a),Rc(e,u),f||(p=[Lc(c,"click",(function(){Ac(t[3])&&t[3].apply(this,arguments)})),Lc(c,"keydown",t[4])],f=!0)},p:function(n,i){t=n,4&i&&r.src!==(o="".concat(t[2],"/embed/logo.svg"))&&Mc(r,"src",o),1&i&&u.src!==(l=t[0])&&Mc(u,"src",l),2&i&&s!==(s=t[1]?"false":"true")&&Mc(e,"aria-hidden",s),2&i&&Nc(e,"closed",!t[1])},d:function(t){t&&Ic(e),f=!1,Tc(p)}}}function sa(t){var e;function n(t,e){return t[0]?la:ua}var r=n(t),o=r(t);return{c:function(){o.c(),e=$c("")},m:function(t,n){o.m(t,n),kc(t,e,n)},p:function(t,i){var c=s(i,1)[0];r===(r=n(t))&&o?o.p(t,c):(o.d(1),(o=r(t))&&(o.c(),o.m(e.parentNode,e)))},i:Ec,o:Ec,d:function(t){o.d(t),t&&Ic(e)}}}function fa(t,e,n){var r=e.server,o=e.open,i=e.assetsUrl,c=e.onToggle;return t.$$set=function(t){"server"in t&&n(0,r=t.server),"open"in t&&n(1,o=t.open),"assetsUrl"in t&&n(2,i=t.assetsUrl),"onToggle"in t&&n(3,c=t.onToggle)},[r,o,i,c,function(t){var e=t.key;"ArrowDown"!==e&&"ArrowRight"!==e&&"Enter"!==e&&" "!==e&&"Space"!==e||(t.stopPropagation(),c())}]}var pa=function(t){o(i,t);var r=aa(i);function i(t){var o,c;return e(this,i),o=r.call(this),document.getElementById("svelte-1ril8w-style")||((c=Pc("style")).id="svelte-1ril8w-style",c.textContent=".svelte-1ril8w.svelte-1ril8w,.svelte-1ril8w.svelte-1ril8w:before,.svelte-1ril8w.svelte-1ril8w:after{box-sizing:border-box}.bot-border.svelte-1ril8w.svelte-1ril8w{position:fixed !important;display:flex;flex-direction:column;bottom:0;height:85vh;width:100%;border-width:0;border-radius:12px;box-shadow:rgba(0, 0, 0, 0.24) 0px 16px 40px;background:rgba(255, 255, 255, 0.93);opacity:1;transition:transform 200ms, opacity 100ms 100ms, all 150ms;z-index:1000}.bot-border.closed.svelte-1ril8w.svelte-1ril8w{transform:translateY(85vh);opacity:0}.header.svelte-1ril8w.svelte-1ril8w{display:flex;justify-content:space-between;width:100%;height:3.5em;padding:0.5em 1em;color:white;background-color:#3f4143}.bot.svelte-1ril8w.svelte-1ril8w{display:block;width:100%;flex:1 0 auto}@media screen and (min-width: 768px){.bot-border.svelte-1ril8w.svelte-1ril8w{height:38em;max-height:calc(100vh - 2rem);width:23em;right:1em;bottom:1em;left:auto}.bot-border.closed.svelte-1ril8w.svelte-1ril8w{transform:translateY(38em);opacity:0}}.bot-border-close-icon.svelte-1ril8w.svelte-1ril8w{height:100%}img.svelte-1ril8w.svelte-1ril8w{display:block;height:100%}svg.svelte-1ril8w.svelte-1ril8w{height:100%;padding:0.4em;cursor:pointer}svg.svelte-1ril8w path.svelte-1ril8w{transition:stroke-width 100ms;stroke:white;stroke-width:2px}svg.svelte-1ril8w:hover path.svelte-1ril8w{stroke-width:3px}p.svelte-1ril8w.svelte-1ril8w,pre.svelte-1ril8w.svelte-1ril8w{max-width:300px}pre.svelte-1ril8w.svelte-1ril8w{font-size:0.6em;line-height:0.5}",Rc(document.head,c)),ia(n(o),t,fa,sa,_c,{server:0,open:1,assetsUrl:2,onToggle:3}),o}return i}(ca);function da(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var o=a(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function va(t){var e,n,r,o,i;return{c:function(){e=Pc("div"),Mc(n=Pc("img"),"class","chat-button svelte-xlhtz"),Mc(n,"alt","Open chatbot"),n.src!==(r="".concat(t[0],"/embed/open-button.svg"))&&Mc(n,"src",r),Mc(e,"class","chat-button-wrapper svelte-xlhtz"),Mc(e,"tabindex","0"),Mc(e,"role","button"),Mc(e,"aria-label","Open chat window")},m:function(r,c){kc(r,e,c),Rc(e,n),o||(i=[Lc(e,"click",(function(){Ac(t[1])&&t[1].apply(this,arguments)})),Lc(e,"keydown",t[2])],o=!0)},p:function(e,o){var i=s(o,1)[0];t=e,1&i&&n.src!==(r="".concat(t[0],"/embed/open-button.svg"))&&Mc(n,"src",r)},i:Ec,o:Ec,d:function(t){t&&Ic(e),o=!1,Tc(i)}}}function ha(t,e,n){var r=e.assetsUrl,o=e.onToggle;return t.$$set=function(t){"assetsUrl"in t&&n(0,r=t.assetsUrl),"onToggle"in t&&n(1,o=t.onToggle)},[r,o,function(t){var e=t.key;"ArrowDown"!==e&&"ArrowRight"!==e&&"Enter"!==e&&" "!==e&&"Space"!==e||(t.stopPropagation(),o())}]}var ga=function(t){o(i,t);var r=da(i);function i(t){var o,c;return e(this,i),o=r.call(this),document.getElementById("svelte-xlhtz-style")||((c=Pc("style")).id="svelte-xlhtz-style",c.textContent=".svelte-xlhtz,.svelte-xlhtz:before,.svelte-xlhtz:after{box-sizing:border-box}.chat-button-wrapper.svelte-xlhtz{position:fixed !important;right:2em;bottom:2em;width:6em;height:6em;z-index:999}.chat-button.svelte-xlhtz{display:block;height:100%;cursor:pointer;border-radius:50%;box-shadow:9px 9px 16px rgba(0, 0, 0, 0.25);transition:transform 100ms, box-shadow 100ms}.chat-button.svelte-xlhtz:hover{box-shadow:16px 16px 16px rgba(0, 0, 0, 0.2);transform:translateY(-2px)}",Rc(document.head,c)),ia(n(o),t,ha,va,_c,{assetsUrl:0,onToggle:1}),o}return i}(ca),ya=function(t,e){var n=window.addEventListener?"addEventListener":"attachEvent";(0,window[n])("attachEvent"===n?"onmessage":"message",(function(n){var r,o=n.data;switch(o.type){case"webclient.expand.window":t(o.devices);break;case"webclient.change.url":e(o.url);break;case"google.tag.event":r=o.payload,window.gtag?window.gtag("event","",r):window.dataLayer&&window.dataLayer.push(r)}}),!1)},ma=p((function(t,e){var n;n=function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function o(){}function i(e,n,i){if("undefined"!=typeof document){"number"==typeof(i=t({path:"/"},o.defaults,i)).expires&&(i.expires=new Date(1*new Date+864e5*i.expires)),i.expires=i.expires?i.expires.toUTCString():"";try{var c=JSON.stringify(n);/^[\{\[]/.test(c)&&(n=c)}catch(t){}n=r.write?r.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var a="";for(var u in i)i[u]&&(a+="; "+u,!0!==i[u]&&(a+="="+i[u].split(";")[0]));return document.cookie=e+"="+n+a}}function c(t,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],c=0;c<i.length;c++){var a=i[c].split("="),u=a.slice(1).join("=");n||'"'!==u.charAt(0)||(u=u.slice(1,-1));try{var l=e(a[0]);if(u=(r.read||r)(u,l)||e(u),n)try{u=JSON.parse(u)}catch(t){}if(o[l]=u,t===l)break}catch(t){}}return t?o[t]:o}}return o.set=i,o.get=function(t){return c(t,!1)},o.getJSON=function(t){return c(t,!0)},o.remove=function(e,n){i(e,"",t(n,{expires:-1}))},o.defaults={},o.withConverter=n,o}((function(){}))},t.exports=n()})),ba=function(){switch(ma.get("bot-window")){case"open":return!0;case"closed":default:return!1}},wa=function(t){ma.set("bot-window",t)},xa=!1;var Sa=[],Ea=ba();function Oa(){Ea=!0,wa("open"),Sa.forEach((function(t){t.call(window,Ea)}))}function ja(){Ea=!1,wa("closed"),Sa.forEach((function(t){t.call(window,Ea)}))}function Ta(){Ea?ja():Oa()}function Aa(t){document.getElementById("chat-frame").contentWindow.postMessage(t,"*")}function _a(t,e){switch(t){case"ON_CHAT_WINDOW_STATE_CHANGE":Sa.push(e);break;default:throw new Error("Unsupported event "+t)}}be("match",1,(function(t,e,n){return[function(e){var n=j(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var o=N(t),i=String(this);if(!o.global)return _e(o,i);var c=o.unicode;o.lastIndex=0;for(var a,u=[],l=0;null!==(a=_e(o,i));){var s=String(a[0]);u[l]=s,""===s&&(o.lastIndex=Ae(i,bt(o.lastIndex),c)),l++}return 0===l?null:u}]}));var Ra=function(){navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&document.querySelectorAll("html, body").forEach((function(t){t.classList.add("iOS-device")}))};function ka(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=a(t);if(e){var o=a(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}var Ia=ta.document;function Pa(t){var e,n,r,o,i,c,a,u;return i=new ga({props:{server:t[0],assetsUrl:t[1],onToggle:Ta}}),a=new pa({props:{server:t[0],assetsUrl:t[1],open:t[2],onToggle:Ta}}),{c:function(){e=Pc("link"),r=Cc(),o=Pc("div"),ea(i.$$.fragment),c=Cc(),ea(a.$$.fragment),Mc(e,"rel","stylesheet"),Mc(e,"href",n="".concat(t[1],"/embed/custom.css")),Mc(o,"id","chatbot-window"),Mc(o,"class","svelte-sr5aex")},m:function(t,n){Rc(Ia.head,e),kc(t,r,n),kc(t,o,n),na(i,o,null),Rc(o,c),na(a,o,null),u=!0},p:function(t,r){var o=s(r,1)[0];(!u||2&o&&n!==(n="".concat(t[1],"/embed/custom.css")))&&Mc(e,"href",n);var c={};1&o&&(c.server=t[0]),2&o&&(c.assetsUrl=t[1]),i.$set(c);var l={};1&o&&(l.server=t[0]),2&o&&(l.assetsUrl=t[1]),4&o&&(l.open=t[2]),a.$set(l)},i:function(t){u||(Xc(i.$$.fragment,t),Xc(a.$$.fragment,t),u=!0)},o:function(t){Zc(i.$$.fragment,t),Zc(a.$$.fragment,t),u=!1},d:function(t){Ic(e),t&&Ic(r),t&&Ic(o),ra(i),ra(a)}}}function $a(t,e,n){var r=e.server,o=e.assetsUrl,i=void 0===o?r?r.split("?")[0]:void 0:o;Ra();var c=ba();return _a("ON_CHAT_WINDOW_STATE_CHANGE",(function(t){n(2,c=t)})),ya((function(t){var e=window.innerWidth;(null==t||"all"===t||"desktop"===t&&e>=768||"mobile"===t&&e<768)&&Oa()}),(function(t){window.innerWidth<768&&ja(),document.location.href=t})),t.$$set=function(t){"server"in t&&n(0,r=t.server),"assetsUrl"in t&&n(1,i=t.assetsUrl)},[r,i,c]}var Ca=function(t){o(i,t);var r=ka(i);function i(t){var o,c;return e(this,i),o=r.call(this),Ia.getElementById("svelte-sr5aex-style")||((c=Pc("style")).id="svelte-sr5aex-style",c.textContent="#chatbot-window.svelte-sr5aex{font-size:16px}",Rc(Ia.head,c)),ia(n(o),t,$a,Pa,_c,{server:0,assetsUrl:1}),o}return i}(ca),La=function(t){if(t&&void 0!==t.src)return function(t){return t.dataset&&t.dataset.server}(t)||function(t){return t.src.replace(/\/embed\/bundle\.js/,"")}(t)}(document.querySelector("script#chatbot")),Ma=function(){console.log("Chatbot is loading from",La),new Ca({target:document.body,props:{server:La}}),xa=!0};return window.addEventListener("load",(function(){return setTimeout(Ma,3e3)})),t.closeChatWindow=ja,t.enterGuestMessage=function(t){Aa({type:"CHAT_MESSAGE_FROM_GUEST",text:t})},t.isChatbotLoaded=function(){return xa},t.openChatWindow=Oa,t.subscribe=_a,t.toggleChatWindow=Ta,t.triggerStory=function(t){Aa({type:"TRIGGER_STORY",story:t})},Object.defineProperty(t,"__esModule",{value:!0}),t}({});
2
2
  //# sourceMappingURL=bundle.js.map