@botfabrik/engine-webclient 4.0.1-alpha.9 → 4.0.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.
@@ -1,2 +1,2 @@
1
- var app=function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n=function(t){return t&&t.Math==Math&&t},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")(),o=function(t){try{return!!t()}catch(t){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=function(t){return"object"==typeof t?null!==t:"function"==typeof t},u=r.document,a=c(u)&&c(u.createElement),s=function(t){return a?u.createElement(t):{}},f=!i&&!o((function(){return 7!=Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})),l=function(t){if(!c(t))throw TypeError(String(t)+" is not an object");return t},p=function(t,e){if(!c(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!c(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!c(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!c(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},v=Object.defineProperty,d={f:i?v:function(t,e,n){if(l(t),e=p(e,!0),l(n),f)try{return v(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}},h=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},g=i?function(t,e,n){return d.f(t,e,h(1,n))}:function(t,e,n){return t[e]=n,t},y=function(t,e){try{g(r,t,e)}catch(n){r[t]=e}return e},m=r["__core-js_shared__"]||y("__core-js_shared__",{}),b=e((function(t){(t.exports=function(t,e){return m[t]||(m[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),x={}.hasOwnProperty,w=function(t,e){return x.call(t,e)},S=0,E=Math.random(),O=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++S+E).toString(36)},j=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())})),A=j&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,R=b("wks"),P=r.Symbol,k=A?P:P&&P.withoutSetter||O,I=function(t){return w(R,t)||(j&&w(P,t)?R[t]=P[t]:R[t]=k("Symbol."+t)),R[t]},T={};T[I("toStringTag")]="z";var $="[object z]"===String(T),_=Function.toString;"function"!=typeof m.inspectSource&&(m.inspectSource=function(t){return _.call(t)});var C,L,M,D=m.inspectSource,z=r.WeakMap,F="function"==typeof z&&/native code/.test(D(z)),N=b("keys"),U=function(t){return N[t]||(N[t]=O(t))},B={},q=r.WeakMap;if(F){var G=new q,K=G.get,W=G.has,V=G.set;C=function(t,e){return V.call(G,t,e),e},L=function(t){return K.call(G,t)||{}},M=function(t){return W.call(G,t)}}else{var Y=U("state");B[Y]=!0,C=function(t,e){return g(t,Y,e),e},L=function(t){return w(t,Y)?t[Y]:{}},M=function(t){return w(t,Y)}}var H={set:C,get:L,has:M,enforce:function(t){return M(t)?L(t):C(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=L(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},J=e((function(t){var e=H.get,n=H.enforce,o=String(String).split("String");(t.exports=function(t,e,i,c){var u=!!c&&!!c.unsafe,a=!!c&&!!c.enumerable,s=!!c&&!!c.noTargetGet;"function"==typeof i&&("string"!=typeof e||w(i,"name")||g(i,"name",e),n(i).source=o.join("string"==typeof e?e:"")),t!==r?(u?!s&&t[e]&&(a=!0):delete t[e],a?t[e]=i:g(t,e,i)):a?t[e]=i:y(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||D(this)}))})),Q={}.toString,X=function(t){return Q.call(t).slice(8,-1)},Z=I("toStringTag"),tt="Arguments"==X(function(){return arguments}()),et=$?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),Z))?n:tt?X(e):"Object"==(r=X(e))&&"function"==typeof e.callee?"Arguments":r},nt=$?{}.toString:function(){return"[object "+et(this)+"]"};$||J(Object.prototype,"toString",nt,{unsafe:!0});var rt,ot={}.propertyIsEnumerable,it=Object.getOwnPropertyDescriptor,ct={f:it&&!ot.call({1:2},1)?function(t){var e=it(this,t);return!!e&&e.enumerable}:ot},ut="".split,at=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==X(t)?ut.call(t,""):Object(t)}:Object,st=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},ft=function(t){return at(st(t))},lt=Object.getOwnPropertyDescriptor,pt={f:i?lt:function(t,e){if(t=ft(t),e=p(e,!0),f)try{return lt(t,e)}catch(t){}if(w(t,e))return h(!ct.f.call(t,e),t[e])}},vt=r,dt=function(t){return"function"==typeof t?t:void 0},ht=function(t,e){return arguments.length<2?dt(vt[t])||dt(r[t]):vt[t]&&vt[t][e]||r[t]&&r[t][e]},gt=Math.ceil,yt=Math.floor,mt=function(t){return isNaN(t=+t)?0:(t>0?yt:gt)(t)},bt=Math.min,xt=function(t){return t>0?bt(mt(t),9007199254740991):0},wt=Math.max,St=Math.min,Et=function(t,e){var n=mt(t);return n<0?wt(n+e,0):St(n,e)},Ot=function(t){return function(e,n,r){var o,i=ft(e),c=xt(i.length),u=Et(r,c);if(t&&n!=n){for(;c>u;)if((o=i[u++])!=o)return!0}else for(;c>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},jt={includes:Ot(!0),indexOf:Ot(!1)},At=jt.indexOf,Rt=function(t,e){var n,r=ft(t),o=0,i=[];for(n in r)!w(B,n)&&w(r,n)&&i.push(n);for(;e.length>o;)w(r,n=e[o++])&&(~At(i,n)||i.push(n));return i},Pt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],kt=Pt.concat("length","prototype"),It={f:Object.getOwnPropertyNames||function(t){return Rt(t,kt)}},Tt={f:Object.getOwnPropertySymbols},$t=ht("Reflect","ownKeys")||function(t){var e=It.f(l(t)),n=Tt.f;return n?e.concat(n(t)):e},_t=function(t,e){for(var n=$t(e),r=d.f,o=pt.f,i=0;i<n.length;i++){var c=n[i];w(t,c)||r(t,c,o(e,c))}},Ct=/#|\.prototype\./,Lt=function(t,e){var n=Dt[Mt(t)];return n==Ft||n!=zt&&("function"==typeof e?o(e):!!e)},Mt=Lt.normalize=function(t){return String(t).replace(Ct,".").toLowerCase()},Dt=Lt.data={},zt=Lt.NATIVE="N",Ft=Lt.POLYFILL="P",Nt=Lt,Ut=pt.f,Bt=function(t,e){var n,o,i,c,u,a=t.target,s=t.global,f=t.stat;if(n=s?r:f?r[a]||y(a,{}):(r[a]||{}).prototype)for(o in e){if(c=e[o],i=t.noTargetGet?(u=Ut(n,o))&&u.value:n[o],!Nt(s?o:a+(f?".":"#")+o,t.forced)&&void 0!==i){if(typeof c==typeof i)continue;_t(c,i)}(t.sham||i&&i.sham)&&g(c,"sham",!0),J(n,o,c,t)}},qt=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Gt=Object.keys||function(t){return Rt(t,Pt)},Kt=i?Object.defineProperties:function(t,e){l(t);for(var n,r=Gt(e),o=r.length,i=0;o>i;)d.f(t,n=r[i++],e[n]);return t},Wt=ht("document","documentElement"),Vt=U("IE_PROTO"),Yt=function(){},Ht=function(t){return"<script>"+t+"<\/script>"},Jt=function(){try{rt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Jt=rt?function(t){t.write(Ht("")),t.close();var e=t.parentWindow.Object;return t=null,e}(rt):((e=s("iframe")).style.display="none",Wt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Ht("document.F=Object")),t.close(),t.F);for(var n=Pt.length;n--;)delete Jt.prototype[Pt[n]];return Jt()};B[Vt]=!0;var Qt=Object.create||function(t,e){var n;return null!==t?(Yt.prototype=l(t),n=new Yt,Yt.prototype=null,n[Vt]=t):n=Jt(),void 0===e?n:Kt(n,e)},Xt=[].slice,Zt={},te=function(t,e,n){if(!(e in Zt)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";Zt[e]=Function("C,a","return new C("+r.join(",")+")")}return Zt[e](t,n)},ee=Function.bind||function(t){var e=qt(this),n=Xt.call(arguments,1),r=function(){var o=n.concat(Xt.call(arguments));return this instanceof r?te(e,o.length,o):e.apply(t,o)};return c(e.prototype)&&(r.prototype=e.prototype),r},ne=ht("Reflect","construct"),re=o((function(){function t(){}return!(ne((function(){}),[],t)instanceof t)})),oe=!o((function(){ne((function(){}))})),ie=re||oe;Bt({target:"Reflect",stat:!0,forced:ie,sham:ie},{construct:function(t,e){qt(t),l(e);var n=arguments.length<3?t:qt(arguments[2]);if(oe&&!re)return ne(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(ee.apply(t,r))}var o=n.prototype,i=Qt(c(o)?o:Object.prototype),u=Function.apply.call(t,i,e);return c(u)?u:i}});var ce=function(){var t=l(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},ue=RegExp.prototype,ae=ue.toString,se=o((function(){return"/a/b"!=ae.call({source:"a",flags:"b"})})),fe="toString"!=ae.name;function le(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pe(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ve(t,e){return(ve=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function de(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&&ve(t,e)}function he(t){return(he="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 ge(t,e){return!e||"object"!==he(e)&&"function"!=typeof e?pe(t):e}function ye(t){return(ye=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function me(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 be(t,e){if(t){if("string"==typeof t)return me(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)?me(t,e):void 0}}function xe(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var c,u=t[Symbol.iterator]();!(r=(c=u.next()).done)&&(n.push(c.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}(t,e)||be(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.")}()}(se||fe)&&J(RegExp.prototype,"toString",(function(){var t=l(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in ue)?ce.call(t):n)}),{unsafe:!0});var we=Array.isArray||function(t){return"Array"==X(t)},Se=function(t){return Object(st(t))},Ee=It.f,Oe={}.toString,je="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ae={f:function(t){return je&&"[object Window]"==Oe.call(t)?function(t){try{return Ee(t)}catch(t){return je.slice()}}(t):Ee(ft(t))}},Re={f:I},Pe=d.f,ke=function(t){var e=vt.Symbol||(vt.Symbol={});w(e,t)||Pe(e,t,{value:Re.f(t)})},Ie=d.f,Te=I("toStringTag"),$e=function(t,e,n){t&&!w(t=n?t:t.prototype,Te)&&Ie(t,Te,{configurable:!0,value:e})},_e=function(t,e,n){if(qt(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)}},Ce=I("species"),Le=function(t,e){var n;return we(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!we(n.prototype)?c(n)&&null===(n=n[Ce])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Me=[].push,De=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,c=5==t||i;return function(u,a,s,f){for(var l,p,v=Se(u),d=at(v),h=_e(a,s,3),g=xt(d.length),y=0,m=f||Le,b=e?m(u,g):n?m(u,0):void 0;g>y;y++)if((c||y in d)&&(p=h(l=d[y],y,v),t))if(e)b[y]=p;else if(p)switch(t){case 3:return!0;case 5:return l;case 6:return y;case 2:Me.call(b,l)}else if(o)return!1;return i?-1:r||o?o:b}},ze={forEach:De(0),map:De(1),filter:De(2),some:De(3),every:De(4),find:De(5),findIndex:De(6)},Fe=ze.forEach,Ne=U("hidden"),Ue=I("toPrimitive"),Be=H.set,qe=H.getterFor("Symbol"),Ge=Object.prototype,Ke=r.Symbol,We=ht("JSON","stringify"),Ve=pt.f,Ye=d.f,He=Ae.f,Je=ct.f,Qe=b("symbols"),Xe=b("op-symbols"),Ze=b("string-to-symbol-registry"),tn=b("symbol-to-string-registry"),en=b("wks"),nn=r.QObject,rn=!nn||!nn.prototype||!nn.prototype.findChild,on=i&&o((function(){return 7!=Qt(Ye({},"a",{get:function(){return Ye(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Ve(Ge,e);r&&delete Ge[e],Ye(t,e,n),r&&t!==Ge&&Ye(Ge,e,r)}:Ye,cn=function(t,e){var n=Qe[t]=Qt(Ke.prototype);return Be(n,{type:"Symbol",tag:t,description:e}),i||(n.description=e),n},un=A?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Ke},an=function(t,e,n){t===Ge&&an(Xe,e,n),l(t);var r=p(e,!0);return l(n),w(Qe,r)?(n.enumerable?(w(t,Ne)&&t[Ne][r]&&(t[Ne][r]=!1),n=Qt(n,{enumerable:h(0,!1)})):(w(t,Ne)||Ye(t,Ne,h(1,{})),t[Ne][r]=!0),on(t,r,n)):Ye(t,r,n)},sn=function(t,e){l(t);var n=ft(e),r=Gt(n).concat(vn(n));return Fe(r,(function(e){i&&!fn.call(n,e)||an(t,e,n[e])})),t},fn=function(t){var e=p(t,!0),n=Je.call(this,e);return!(this===Ge&&w(Qe,e)&&!w(Xe,e))&&(!(n||!w(this,e)||!w(Qe,e)||w(this,Ne)&&this[Ne][e])||n)},ln=function(t,e){var n=ft(t),r=p(e,!0);if(n!==Ge||!w(Qe,r)||w(Xe,r)){var o=Ve(n,r);return!o||!w(Qe,r)||w(n,Ne)&&n[Ne][r]||(o.enumerable=!0),o}},pn=function(t){var e=He(ft(t)),n=[];return Fe(e,(function(t){w(Qe,t)||w(B,t)||n.push(t)})),n},vn=function(t){var e=t===Ge,n=He(e?Xe:ft(t)),r=[];return Fe(n,(function(t){!w(Qe,t)||e&&!w(Ge,t)||r.push(Qe[t])})),r};if(j||(J((Ke=function(){if(this instanceof Ke)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=O(t),n=function(t){this===Ge&&n.call(Xe,t),w(this,Ne)&&w(this[Ne],e)&&(this[Ne][e]=!1),on(this,e,h(1,t))};return i&&rn&&on(Ge,e,{configurable:!0,set:n}),cn(e,t)}).prototype,"toString",(function(){return qe(this).tag})),J(Ke,"withoutSetter",(function(t){return cn(O(t),t)})),ct.f=fn,d.f=an,pt.f=ln,It.f=Ae.f=pn,Tt.f=vn,Re.f=function(t){return cn(I(t),t)},i&&(Ye(Ke.prototype,"description",{configurable:!0,get:function(){return qe(this).description}}),J(Ge,"propertyIsEnumerable",fn,{unsafe:!0}))),Bt({global:!0,wrap:!0,forced:!j,sham:!j},{Symbol:Ke}),Fe(Gt(en),(function(t){ke(t)})),Bt({target:"Symbol",stat:!0,forced:!j},{for:function(t){var e=String(t);if(w(Ze,e))return Ze[e];var n=Ke(e);return Ze[e]=n,tn[n]=e,n},keyFor:function(t){if(!un(t))throw TypeError(t+" is not a symbol");if(w(tn,t))return tn[t]},useSetter:function(){rn=!0},useSimple:function(){rn=!1}}),Bt({target:"Object",stat:!0,forced:!j,sham:!i},{create:function(t,e){return void 0===e?Qt(t):sn(Qt(t),e)},defineProperty:an,defineProperties:sn,getOwnPropertyDescriptor:ln}),Bt({target:"Object",stat:!0,forced:!j},{getOwnPropertyNames:pn,getOwnPropertySymbols:vn}),Bt({target:"Object",stat:!0,forced:o((function(){Tt.f(1)}))},{getOwnPropertySymbols:function(t){return Tt.f(Se(t))}}),We){var dn=!j||o((function(){var t=Ke();return"[null]"!=We([t])||"{}"!=We({a:t})||"{}"!=We(Object(t))}));Bt({target:"JSON",stat:!0,forced:dn},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(c(e)||void 0!==t)&&!un(t))return we(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!un(e))return e}),o[1]=e,We.apply(null,o)}})}Ke.prototype[Ue]||g(Ke.prototype,Ue,Ke.prototype.valueOf),$e(Ke,"Symbol"),B[Ne]=!0;var hn=d.f,gn=r.Symbol;if(i&&"function"==typeof gn&&(!("description"in gn.prototype)||void 0!==gn().description)){var yn={},mn=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof mn?new gn(t):void 0===t?gn():gn(t);return""===t&&(yn[e]=!0),e};_t(mn,gn);var bn=mn.prototype=gn.prototype;bn.constructor=mn;var xn=bn.toString,wn="Symbol(test)"==String(gn("test")),Sn=/^Symbol\((.*)\)[^)]+$/;hn(bn,"description",{configurable:!0,get:function(){var t=c(this)?this.valueOf():this,e=xn.call(t);if(w(yn,t))return"";var n=wn?e.slice(7,-1):e.replace(Sn,"$1");return""===n?void 0:n}}),Bt({global:!0,forced:!0},{Symbol:mn})}ke("iterator");var En,On,jn=function(t,e,n){var r=p(e);r in t?d.f(t,r,h(0,n)):t[r]=n},An=ht("navigator","userAgent")||"",Rn=r.process,Pn=Rn&&Rn.versions,kn=Pn&&Pn.v8;kn?On=(En=kn.split("."))[0]+En[1]:An&&(!(En=An.match(/Edge\/(\d+)/))||En[1]>=74)&&(En=An.match(/Chrome\/(\d+)/))&&(On=En[1]);var In=On&&+On,Tn=I("species"),$n=function(t){return In>=51||!o((function(){var e=[];return(e.constructor={})[Tn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},_n=I("isConcatSpreadable"),Cn=In>=51||!o((function(){var t=[];return t[_n]=!1,t.concat()[0]!==t})),Ln=$n("concat"),Mn=function(t){if(!c(t))return!1;var e=t[_n];return void 0!==e?!!e:we(t)};Bt({target:"Array",proto:!0,forced:!Cn||!Ln},{concat:function(t){var e,n,r,o,i,c=Se(this),u=Le(c,0),a=0;for(e=-1,r=arguments.length;e<r;e++)if(Mn(i=-1===e?c:arguments[e])){if(a+(o=xt(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,a++)n in i&&jn(u,a,i[n])}else{if(a>=9007199254740991)throw TypeError("Maximum allowed index exceeded");jn(u,a++,i)}return u.length=a,u}});var Dn=I("unscopables"),zn=Array.prototype;null==zn[Dn]&&d.f(zn,Dn,{configurable:!0,value:Qt(null)});var Fn=function(t){zn[Dn][t]=!0};Bt({target:"Array",proto:!0},{fill:function(t){for(var e=Se(this),n=xt(e.length),r=arguments.length,o=Et(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,c=void 0===i?n:Et(i,n);c>o;)e[o++]=t;return e}}),Fn("fill");var Nn=Object.defineProperty,Un={},Bn=function(t){throw t},qn=function(t,e){if(w(Un,t))return Un[t];e||(e={});var n=[][t],r=!!w(e,"ACCESSORS")&&e.ACCESSORS,c=w(e,0)?e[0]:Bn,u=w(e,1)?e[1]:void 0;return Un[t]=!!n&&!o((function(){if(r&&!i)return!0;var t={length:-1};r?Nn(t,1,{enumerable:!0,get:Bn}):t[1]=1,n.call(t,c,u)}))},Gn=ze.filter,Kn=$n("filter"),Wn=qn("filter");Bt({target:"Array",proto:!0,forced:!Kn||!Wn},{filter:function(t){return Gn(this,t,arguments.length>1?arguments[1]:void 0)}});var Vn=function(t,e){var n=[][t];return!!n&&o((function(){n.call(null,e||function(){throw 1},1)}))},Yn=ze.forEach,Hn=Vn("forEach"),Jn=qn("forEach"),Qn=Hn&&Jn?[].forEach:function(t){return Yn(this,t,arguments.length>1?arguments[1]:void 0)};Bt({target:"Array",proto:!0,forced:[].forEach!=Qn},{forEach:Qn});var Xn=function(t,e,n,r){try{return r?e(l(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&l(o.call(t)),e}},Zn={},tr=I("iterator"),er=Array.prototype,nr=function(t){return void 0!==t&&(Zn.Array===t||er[tr]===t)},rr=I("iterator"),or=function(t){if(null!=t)return t[rr]||t["@@iterator"]||Zn[et(t)]},ir=I("iterator"),cr=!1;try{var ur=0,ar={next:function(){return{done:!!ur++}},return:function(){cr=!0}};ar[ir]=function(){return this},Array.from(ar,(function(){throw 2}))}catch(t){}var sr=function(t,e){if(!e&&!cr)return!1;var n=!1;try{var r={};r[ir]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},fr=!sr((function(t){Array.from(t)}));Bt({target:"Array",stat:!0,forced:fr},{from:function(t){var e,n,r,o,i,c,u=Se(t),a="function"==typeof this?this:Array,s=arguments.length,f=s>1?arguments[1]:void 0,l=void 0!==f,p=or(u),v=0;if(l&&(f=_e(f,s>2?arguments[2]:void 0,2)),null==p||a==Array&&nr(p))for(n=new a(e=xt(u.length));e>v;v++)c=l?f(u[v],v):u[v],jn(n,v,c);else for(i=(o=p.call(u)).next,n=new a;!(r=i.call(o)).done;v++)c=l?Xn(o,f,[r.value,v],!0):r.value,jn(n,v,c);return n.length=v,n}});var lr=jt.indexOf,pr=[].indexOf,vr=!!pr&&1/[1].indexOf(1,-0)<0,dr=Vn("indexOf"),hr=qn("indexOf",{ACCESSORS:!0,1:0});Bt({target:"Array",proto:!0,forced:vr||!dr||!hr},{indexOf:function(t){return vr?pr.apply(this,arguments)||0:lr(this,t,arguments.length>1?arguments[1]:void 0)}});var gr,yr,mr,br=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),xr=U("IE_PROTO"),wr=Object.prototype,Sr=br?Object.getPrototypeOf:function(t){return t=Se(t),w(t,xr)?t[xr]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?wr:null},Er=I("iterator"),Or=!1;[].keys&&("next"in(mr=[].keys())?(yr=Sr(Sr(mr)))!==Object.prototype&&(gr=yr):Or=!0),null==gr&&(gr={}),w(gr,Er)||g(gr,Er,(function(){return this}));var jr={IteratorPrototype:gr,BUGGY_SAFARI_ITERATORS:Or},Ar=jr.IteratorPrototype,Rr=function(){return this},Pr=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 l(n),function(t){if(!c(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),kr=jr.IteratorPrototype,Ir=jr.BUGGY_SAFARI_ITERATORS,Tr=I("iterator"),$r=function(){return this},_r=function(t,e,n,r,o,i,c){!function(t,e,n){var r=e+" Iterator";t.prototype=Qt(Ar,{next:h(1,n)}),$e(t,r,!1),Zn[r]=Rr}(n,e,r);var u,a,s,f=function(t){if(t===o&&y)return y;if(!Ir&&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)}},l=e+" Iterator",p=!1,v=t.prototype,d=v[Tr]||v["@@iterator"]||o&&v[o],y=!Ir&&d||f(o),m="Array"==e&&v.entries||d;if(m&&(u=Sr(m.call(new t)),kr!==Object.prototype&&u.next&&(Sr(u)!==kr&&(Pr?Pr(u,kr):"function"!=typeof u[Tr]&&g(u,Tr,$r)),$e(u,l,!0))),"values"==o&&d&&"values"!==d.name&&(p=!0,y=function(){return d.call(this)}),v[Tr]!==y&&g(v,Tr,y),Zn[e]=y,o)if(a={values:f("values"),keys:i?y:f("keys"),entries:f("entries")},c)for(s in a)(Ir||p||!(s in v))&&J(v,s,a[s]);else Bt({target:e,proto:!0,forced:Ir||p},a);return a},Cr=H.set,Lr=H.getterFor("Array Iterator"),Mr=_r(Array,"Array",(function(t,e){Cr(this,{type:"Array Iterator",target:ft(t),index:0,kind:e})}),(function(){var t=Lr(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");Zn.Arguments=Zn.Array,Fn("keys"),Fn("values"),Fn("entries");var Dr=[].join,zr=at!=Object,Fr=Vn("join",",");Bt({target:"Array",proto:!0,forced:zr||!Fr},{join:function(t){return Dr.call(ft(this),void 0===t?",":t)}});var Nr=ze.map,Ur=$n("map"),Br=qn("map");Bt({target:"Array",proto:!0,forced:!Ur||!Br},{map:function(t){return Nr(this,t,arguments.length>1?arguments[1]:void 0)}});var qr=$n("slice"),Gr=qn("slice",{ACCESSORS:!0,0:0,1:2}),Kr=I("species"),Wr=[].slice,Vr=Math.max;Bt({target:"Array",proto:!0,forced:!qr||!Gr},{slice:function(t,e){var n,r,o,i=ft(this),u=xt(i.length),a=Et(t,u),s=Et(void 0===e?u:e,u);if(we(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!we(n.prototype)?c(n)&&null===(n=n[Kr])&&(n=void 0):n=void 0,n===Array||void 0===n))return Wr.call(i,a,s);for(r=new(void 0===n?Array:n)(Vr(s-a,0)),o=0;a<s;a++,o++)a in i&&jn(r,o,i[a]);return r.length=o,r}});var Yr=$n("splice"),Hr=qn("splice",{ACCESSORS:!0,0:0,1:2}),Jr=Math.max,Qr=Math.min;Bt({target:"Array",proto:!0,forced:!Yr||!Hr},{splice:function(t,e){var n,r,o,i,c,u,a=Se(this),s=xt(a.length),f=Et(t,s),l=arguments.length;if(0===l?n=r=0:1===l?(n=0,r=s-f):(n=l-2,r=Qr(Jr(mt(e),0),s-f)),s+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=Le(a,r),i=0;i<r;i++)(c=f+i)in a&&jn(o,i,a[c]);if(o.length=r,n<r){for(i=f;i<s-r;i++)u=i+n,(c=i+r)in a?a[u]=a[c]:delete a[u];for(i=s;i>s-r+n;i--)delete a[i-1]}else if(n>r)for(i=s-r;i>f;i--)u=i+n-1,(c=i+r-1)in a?a[u]=a[c]:delete a[u];for(i=0;i<n;i++)a[i+f]=arguments[i+2];return a.length=s-r+n,o}});var Xr=d.f,Zr=Function.prototype,to=Zr.toString,eo=/^\s*function ([^ (]*)/;i&&!("name"in Zr)&&Xr(Zr,"name",{configurable:!0,get:function(){try{return to.call(this).match(eo)[1]}catch(t){return""}}});var no=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),ro=e((function(t){var e=d.f,n=O("meta"),r=0,o=Object.isExtensible||function(){return!0},i=function(t){e(t,n,{value:{objectID:"O"+ ++r,weakData:{}}})},u=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!c(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!w(t,n)){if(!o(t))return"F";if(!e)return"E";i(t)}return t[n].objectID},getWeakData:function(t,e){if(!w(t,n)){if(!o(t))return!0;if(!e)return!1;i(t)}return t[n].weakData},onFreeze:function(t){return no&&u.REQUIRED&&o(t)&&!w(t,n)&&i(t),t}};B[n]=!0})),oo=(ro.REQUIRED,ro.fastKey,ro.getWeakData,ro.onFreeze,e((function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,n,r,o,i){var c,u,a,s,f,p,v,d=_e(n,r,o?2:1);if(i)c=t;else{if("function"!=typeof(u=or(t)))throw TypeError("Target is not iterable");if(nr(u)){for(a=0,s=xt(t.length);s>a;a++)if((f=o?d(l(v=t[a])[0],v[1]):d(t[a]))&&f instanceof e)return f;return new e(!1)}c=u.call(t)}for(p=c.next;!(v=p.call(c)).done;)if("object"==typeof(f=Xn(c,d,v.value,o))&&f&&f instanceof e)return f;return new e(!1)}).stop=function(t){return new e(!0,t)}}))),io=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t},co=function(t,e,n){var i=-1!==t.indexOf("Map"),u=-1!==t.indexOf("Weak"),a=i?"set":"add",s=r[t],f=s&&s.prototype,l=s,p={},v=function(t){var e=f[t];J(f,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(u&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return u&&!c(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(u&&!c(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 s||!(u||f.forEach&&!o((function(){(new s).entries().next()})))))l=n.getConstructor(e,t,i,a),ro.REQUIRED=!0;else if(Nt(t,!0)){var d=new l,h=d[a](u?{}:-0,1)!=d,g=o((function(){d.has(1)})),y=sr((function(t){new s(t)})),m=!u&&o((function(){for(var t=new s,e=5;e--;)t[a](e,e);return!t.has(-0)}));y||((l=e((function(e,n){io(e,l,t);var r=function(t,e,n){var r,o;return Pr&&"function"==typeof(r=e.constructor)&&r!==n&&c(o=r.prototype)&&o!==n.prototype&&Pr(t,o),t}(new s,e,l);return null!=n&&oo(n,r[a],r,i),r}))).prototype=f,f.constructor=l),(g||m)&&(v("delete"),v("has"),i&&v("get")),(m||h)&&v(a),u&&f.clear&&delete f.clear}return p[t]=l,Bt({global:!0,forced:l!=s},p),$e(l,t),u||n.setStrong(l,t,i),l},uo=function(t,e,n){for(var r in e)J(t,r,e[r],n);return t},ao=I("species"),so=function(t){var e=ht(t),n=d.f;i&&e&&!e[ao]&&n(e,ao,{configurable:!0,get:function(){return this}})},fo=d.f,lo=ro.fastKey,po=H.set,vo=H.getterFor,ho={getConstructor:function(t,e,n,r){var o=t((function(t,c){io(t,o,e),po(t,{type:e,index:Qt(null),first:void 0,last:void 0,size:0}),i||(t.size=0),null!=c&&oo(c,t[r],t,n)})),c=vo(e),u=function(t,e,n){var r,o,u=c(t),s=a(t,e);return s?s.value=n:(u.last=s={index:o=lo(e,!0),key:e,value:n,previous:r=u.last,next:void 0,removed:!1},u.first||(u.first=s),r&&(r.next=s),i?u.size++:t.size++,"F"!==o&&(u.index[o]=s)),t},a=function(t,e){var n,r=c(t),o=lo(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return uo(o.prototype,{clear:function(){for(var t=c(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,i?t.size=0:this.size=0},delete:function(t){var e=c(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),i?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=c(this),r=_e(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)}}),uo(o.prototype,n?{get:function(t){var e=a(this,t);return e&&e.value},set:function(t,e){return u(this,0===t?0:t,e)}}:{add:function(t){return u(this,t=0===t?0:t,t)}}),i&&fo(o.prototype,"size",{get:function(){return c(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=vo(e),i=vo(r);_r(t,e,(function(t,e){po(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),so(e)}},go=(co("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),ho),Object.assign),yo=Object.defineProperty,mo=!go||o((function(){if(i&&1!==go({b:1},go(yo({},"a",{enumerable:!0,get:function(){yo(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!=go({},t)[n]||"abcdefghijklmnopqrst"!=Gt(go({},e)).join("")}))?function(t,e){for(var n=Se(t),r=arguments.length,o=1,c=Tt.f,u=ct.f;r>o;)for(var a,s=at(arguments[o++]),f=c?Gt(s).concat(c(s)):Gt(s),l=f.length,p=0;l>p;)a=f[p++],i&&!u.call(s,a)||(n[a]=s[a]);return n}:go;Bt({target:"Object",stat:!0,forced:Object.assign!==mo},{assign:mo}),Bt({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,n,r=ft(t),o=pt.f,i=$t(r),c={},u=0;i.length>u;)void 0!==(n=o(r,e=i[u++]))&&jn(c,e,n);return c}});var bo=o((function(){Gt(1)}));Bt({target:"Object",stat:!0,forced:bo},{keys:function(t){return Gt(Se(t))}});var xo,wo,So,Eo=r.Promise,Oo=I("species"),jo=function(t,e){var n,r=l(t).constructor;return void 0===r||null==(n=l(r)[Oo])?e:qt(n)},Ao=/(iphone|ipod|ipad).*applewebkit/i.test(An),Ro=r.location,Po=r.setImmediate,ko=r.clearImmediate,Io=r.process,To=r.MessageChannel,$o=r.Dispatch,_o=0,Co={},Lo=function(t){if(Co.hasOwnProperty(t)){var e=Co[t];delete Co[t],e()}},Mo=function(t){return function(){Lo(t)}},Do=function(t){Lo(t.data)},zo=function(t){r.postMessage(t+"",Ro.protocol+"//"+Ro.host)};Po&&ko||(Po=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Co[++_o]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},xo(_o),_o},ko=function(t){delete Co[t]},"process"==X(Io)?xo=function(t){Io.nextTick(Mo(t))}:$o&&$o.now?xo=function(t){$o.now(Mo(t))}:To&&!Ao?(So=(wo=new To).port2,wo.port1.onmessage=Do,xo=_e(So.postMessage,So,1)):!r.addEventListener||"function"!=typeof postMessage||r.importScripts||o(zo)||"file:"===Ro.protocol?xo="onreadystatechange"in s("script")?function(t){Wt.appendChild(s("script")).onreadystatechange=function(){Wt.removeChild(this),Lo(t)}}:function(t){setTimeout(Mo(t),0)}:(xo=zo,r.addEventListener("message",Do,!1)));var Fo,No,Uo,Bo,qo,Go,Ko,Wo,Vo={set:Po,clear:ko},Yo=pt.f,Ho=Vo.set,Jo=r.MutationObserver||r.WebKitMutationObserver,Qo=r.process,Xo=r.Promise,Zo="process"==X(Qo),ti=Yo(r,"queueMicrotask"),ei=ti&&ti.value;ei||(Fo=function(){var t,e;for(Zo&&(t=Qo.domain)&&t.exit();No;){e=No.fn,No=No.next;try{e()}catch(t){throw No?Bo():Uo=void 0,t}}Uo=void 0,t&&t.enter()},Zo?Bo=function(){Qo.nextTick(Fo)}:Jo&&!Ao?(qo=!0,Go=document.createTextNode(""),new Jo(Fo).observe(Go,{characterData:!0}),Bo=function(){Go.data=qo=!qo}):Xo&&Xo.resolve?(Ko=Xo.resolve(void 0),Wo=Ko.then,Bo=function(){Wo.call(Ko,Fo)}):Bo=function(){Ho.call(r,Fo)});var ni,ri,oi,ii,ci=ei||function(t){var e={fn:t,next:void 0};Uo&&(Uo.next=e),No||(No=e,Bo()),Uo=e},ui=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=qt(e),this.reject=qt(n)},ai={f:function(t){return new ui(t)}},si=function(t,e){if(l(t),c(e)&&e.constructor===t)return e;var n=ai.f(t);return(0,n.resolve)(e),n.promise},fi=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},li=Vo.set,pi=I("species"),vi="Promise",di=H.get,hi=H.set,gi=H.getterFor(vi),yi=Eo,mi=r.TypeError,bi=r.document,xi=r.process,wi=ht("fetch"),Si=ai.f,Ei=Si,Oi="process"==X(xi),ji=!!(bi&&bi.createEvent&&r.dispatchEvent),Ai=Nt(vi,(function(){if(!(D(yi)!==String(yi))){if(66===In)return!0;if(!Oi&&"function"!=typeof PromiseRejectionEvent)return!0}if(In>=51&&/native code/.test(yi))return!1;var t=yi.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[pi]=e,!(t.then((function(){}))instanceof e)})),Ri=Ai||!sr((function(t){yi.all(t).catch((function(){}))})),Pi=function(t){var e;return!(!c(t)||"function"!=typeof(e=t.then))&&e},ki=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;ci((function(){for(var o=e.value,i=1==e.state,c=0;r.length>c;){var u,a,s,f=r[c++],l=i?f.ok:f.fail,p=f.resolve,v=f.reject,d=f.domain;try{l?(i||(2===e.rejection&&_i(t,e),e.rejection=1),!0===l?u=o:(d&&d.enter(),u=l(o),d&&(d.exit(),s=!0)),u===f.promise?v(mi("Promise-chain cycle")):(a=Pi(u))?a.call(u,p,v):p(u)):v(o)}catch(t){d&&!s&&d.exit(),v(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&Ti(t,e)}))}},Ii=function(t,e,n){var o,i;ji?((o=bi.createEvent("Event")).promise=e,o.reason=n,o.initEvent(t,!1,!0),r.dispatchEvent(o)):o={promise:e,reason:n},(i=r["on"+t])?i(o):"unhandledrejection"===t&&function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},Ti=function(t,e){li.call(r,(function(){var n,r=e.value;if($i(e)&&(n=fi((function(){Oi?xi.emit("unhandledRejection",r,t):Ii("unhandledrejection",t,r)})),e.rejection=Oi||$i(e)?2:1,n.error))throw n.value}))},$i=function(t){return 1!==t.rejection&&!t.parent},_i=function(t,e){li.call(r,(function(){Oi?xi.emit("rejectionHandled",t):Ii("rejectionhandled",t,e.value)}))},Ci=function(t,e,n,r){return function(o){t(e,n,o,r)}},Li=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,ki(t,e,!0))},Mi=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw mi("Promise can't be resolved itself");var o=Pi(n);o?ci((function(){var r={done:!1};try{o.call(n,Ci(Mi,t,r,e),Ci(Li,t,r,e))}catch(n){Li(t,r,n,e)}})):(e.value=n,e.state=1,ki(t,e,!1))}catch(n){Li(t,{done:!1},n,e)}}};function Di(t,e){return RegExp(t,e)}Ai&&(yi=function(t){io(this,yi,vi),qt(t),ni.call(this);var e=di(this);try{t(Ci(Mi,this,e),Ci(Li,this,e))}catch(t){Li(this,e,t)}},(ni=function(t){hi(this,{type:vi,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=uo(yi.prototype,{then:function(t,e){var n=gi(this),r=Si(jo(this,yi));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=Oi?xi.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&ki(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),ri=function(){var t=new ni,e=di(t);this.promise=t,this.resolve=Ci(Mi,t,e),this.reject=Ci(Li,t,e)},ai.f=Si=function(t){return t===yi||t===oi?new ri(t):Ei(t)},"function"==typeof Eo&&(ii=Eo.prototype.then,J(Eo.prototype,"then",(function(t,e){var n=this;return new yi((function(t,e){ii.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof wi&&Bt({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return si(yi,wi.apply(r,arguments))}}))),Bt({global:!0,wrap:!0,forced:Ai},{Promise:yi}),$e(yi,vi,!1),so(vi),oi=ht(vi),Bt({target:vi,stat:!0,forced:Ai},{reject:function(t){var e=Si(this);return e.reject.call(void 0,t),e.promise}}),Bt({target:vi,stat:!0,forced:Ai},{resolve:function(t){return si(this,t)}}),Bt({target:vi,stat:!0,forced:Ri},{all:function(t){var e=this,n=Si(e),r=n.resolve,o=n.reject,i=fi((function(){var n=qt(e.resolve),i=[],c=0,u=1;oo(t,(function(t){var a=c++,s=!1;i.push(void 0),u++,n.call(e,t).then((function(t){s||(s=!0,i[a]=t,--u||r(i))}),o)})),--u||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Si(e),r=n.reject,o=fi((function(){var o=qt(e.resolve);oo(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var zi,Fi,Ni={UNSUPPORTED_Y:o((function(){var t=Di("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:o((function(){var t=Di("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Ui=RegExp.prototype.exec,Bi=String.prototype.replace,qi=Ui,Gi=(zi=/a/,Fi=/b*/g,Ui.call(zi,"a"),Ui.call(Fi,"a"),0!==zi.lastIndex||0!==Fi.lastIndex),Ki=Ni.UNSUPPORTED_Y||Ni.BROKEN_CARET,Wi=void 0!==/()??/.exec("")[1];(Gi||Wi||Ki)&&(qi=function(t){var e,n,r,o,i=this,c=Ki&&i.sticky,u=ce.call(i),a=i.source,s=0,f=t;return c&&(-1===(u=u.replace("y","")).indexOf("g")&&(u+="g"),f=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(a="(?: "+a+")",f=" "+f,s++),n=new RegExp("^(?:"+a+")",u)),Wi&&(n=new RegExp("^"+a+"$(?!\\s)",u)),Gi&&(e=i.lastIndex),r=Ui.call(c?n:i,f),c?r?(r.input=r.input.slice(s),r[0]=r[0].slice(s),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Gi&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),Wi&&r&&r.length>1&&Bi.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var Vi=qi;Bt({target:"RegExp",proto:!0,forced:/./.exec!==Vi},{exec:Vi});co("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),ho);var Yi=function(t){return function(e,n){var r,o,i=String(st(e)),c=mt(n),u=i.length;return c<0||c>=u?t?"":void 0:(r=i.charCodeAt(c))<55296||r>56319||c+1===u||(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}},Hi={codeAt:Yi(!1),charAt:Yi(!0)},Ji=Hi.charAt,Qi=H.set,Xi=H.getterFor("String Iterator");_r(String,"String",(function(t){Qi(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=Xi(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Ji(n,r),e.index+=t.length,{value:t,done:!1})}));var Zi=I("species"),tc=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),ec="$0"==="a".replace(/./,"$0"),nc=I("replace"),rc=!!/./[nc]&&""===/./[nc]("a","$0"),oc=!o((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]})),ic=function(t,e,n,r){var i=I(t),c=!o((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),u=c&&!o((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Zi]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!c||!u||"replace"===t&&(!tc||!ec||rc)||"split"===t&&!oc){var a=/./[i],s=n(i,""[t],(function(t,e,n,r,o){return e.exec===Vi?c&&!o?{done:!0,value:a.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:ec,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:rc}),f=s[0],l=s[1];J(String.prototype,t,f),J(RegExp.prototype,i,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)})}r&&g(RegExp.prototype[i],"sham",!0)},cc=Hi.charAt,uc=function(t,e,n){return e+(n?cc(t,e).length:1)},ac=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 Vi.call(t,e)},sc=Math.max,fc=Math.min,lc=Math.floor,pc=/\$([$&'`]|\d\d?|<[^>]*>)/g,vc=/\$([$&'`]|\d\d?)/g;ic("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=st(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 s=l(t),f=String(this),p="function"==typeof r;p||(r=String(r));var v=s.global;if(v){var d=s.unicode;s.lastIndex=0}for(var h=[];;){var g=ac(s,f);if(null===g)break;if(h.push(g),!v)break;""===String(g[0])&&(s.lastIndex=uc(f,xt(s.lastIndex),d))}for(var y,m="",b=0,x=0;x<h.length;x++){g=h[x];for(var w=String(g[0]),S=sc(fc(mt(g.index),f.length),0),E=[],O=1;O<g.length;O++)E.push(void 0===(y=g[O])?y:String(y));var j=g.groups;if(p){var A=[w].concat(E,S,f);void 0!==j&&A.push(j);var R=String(r.apply(void 0,A))}else R=u(w,f,S,E,j,r);S>=b&&(m+=f.slice(b,S)+R,b=S+w.length)}return m+f.slice(b)}];function u(t,n,r,o,i,c){var u=r+t.length,a=o.length,s=vc;return void 0!==i&&(i=Se(i),s=pc),e.call(c,s,(function(e,c){var s;switch(c.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(u);case"<":s=i[c.slice(1,-1)];break;default:var f=+c;if(0===f)return e;if(f>a){var l=lc(f/10);return 0===l?e:l<=a?void 0===o[l-1]?c.charAt(1):o[l-1]+c.charAt(1):e}s=o[f-1]}return void 0===s?"":s}))}}));var dc=I("match"),hc=[].push,gc=Math.min,yc=!o((function(){return!RegExp(4294967295,"y")}));ic("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(st(this)),u=void 0===n?4294967295:n>>>0;if(0===u)return[];if(void 0===t)return[i];if(!c(r=t)||!(void 0!==(o=r[dc])?o:"RegExp"==X(r)))return e.call(i,t,u);for(var a,s,f,l=[],p=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,d=new RegExp(t.source,p+"g");(a=Vi.call(d,i))&&!((s=d.lastIndex)>v&&(l.push(i.slice(v,a.index)),a.length>1&&a.index<i.length&&hc.apply(l,a.slice(1)),f=a[0].length,v=s,l.length>=u));)d.lastIndex===a.index&&d.lastIndex++;return v===i.length?!f&&d.test("")||l.push(""):l.push(i.slice(v)),l.length>u?l.slice(0,u):l}:"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=st(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=l(t),u=String(this),a=jo(c,RegExp),s=c.unicode,f=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(yc?"y":"g"),p=new a(yc?c:"^(?:"+c.source+")",f),v=void 0===o?4294967295:o>>>0;if(0===v)return[];if(0===u.length)return null===ac(p,u)?[u]:[];for(var d=0,h=0,g=[];h<u.length;){p.lastIndex=yc?h:0;var y,m=ac(p,yc?u:u.slice(h));if(null===m||(y=gc(xt(p.lastIndex+(yc?0:h)),u.length))===d)h=uc(u,h,s);else{if(g.push(u.slice(d,h)),g.length===v)return g;for(var b=1;b<=m.length-1;b++)if(g.push(m[b]),g.length===v)return g;h=d=y}}return g.push(u.slice(d)),g}]}),!yc);var mc=/"/g;Bt({target:"String",proto:!0,forced:function(t){return o((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(st(this)),i="<"+e,""!==n&&(i+=" "+n+'="'+String(r).replace(mc,"&quot;")+'"'),i+">"+o+"</"+e+">";var e,n,r,o,i}});var bc={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};for(var xc in bc){var wc=r[xc],Sc=wc&&wc.prototype;if(Sc&&Sc.forEach!==Qn)try{g(Sc,"forEach",Qn)}catch(t){Sc.forEach=Qn}}var Ec,Oc=I("iterator"),jc=I("toStringTag"),Ac=Mr.values;for(var Rc in bc){var Pc=r[Rc],kc=Pc&&Pc.prototype;if(kc){if(kc[Oc]!==Ac)try{g(kc,Oc,Ac)}catch(t){kc[Oc]=Ac}if(kc[jc]||g(kc,jc,Rc),bc[Rc])for(var Ic in Mr)if(kc[Ic]!==Mr[Ic])try{g(kc,Ic,Mr[Ic])}catch(t){kc[Ic]=Mr[Ic]}}}function Tc(t){return function(t){if(Array.isArray(t))return me(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||be(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 $c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _c(){}function Cc(t){return t()}function Lc(){return Object.create(null)}function Mc(t){t.forEach(Cc)}function Dc(t){return"function"==typeof t}function zc(t,e){return t!=t?e==e:t!==e||t&&"object"===he(t)||"function"==typeof t}function Fc(t,e){t.appendChild(e)}function Nc(t,e,n){t.insertBefore(e,n||null)}function Uc(t){t.parentNode.removeChild(t)}function Bc(t){return document.createElement(t)}function qc(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Gc(t){return document.createTextNode(t)}function Kc(){return Gc(" ")}function Wc(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function Vc(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Yc(t){return Array.from(t.childNodes)}function Hc(t,e,n){t.classList[n?"add":"remove"](e)}function Jc(t){Ec=t}function Qc(t,e){var n=t.$$.callbacks[e.type];n&&n.slice().forEach((function(t){return t(e)}))}var Xc=[],Zc=[],tu=[],eu=[],nu=Promise.resolve(),ru=!1;function ou(t){tu.push(t)}var iu=!1,cu=new Set;function uu(){if(!iu){iu=!0;do{for(var t=0;t<Xc.length;t+=1){var e=Xc[t];Jc(e),au(e.$$)}for(Xc.length=0;Zc.length;)Zc.pop()();for(var n=0;n<tu.length;n+=1){var r=tu[n];cu.has(r)||(cu.add(r),r())}tu.length=0}while(Xc.length);for(;eu.length;)eu.pop()();ru=!1,iu=!1,cu.clear()}}function au(t){if(null!==t.fragment){t.update(),Mc(t.before_update);var e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ou)}}var su=new Set;function fu(t,e){t&&t.i&&(su.delete(t),t.i(e))}function lu(t,e,n,r){if(t&&t.o){if(su.has(t))return;su.add(t),(void 0).c.push((function(){su.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function pu(t){t&&t.c()}function vu(t,e,n){var r=t.$$,o=r.fragment,i=r.on_mount,c=r.on_destroy,u=r.after_update;o&&o.m(e,n),ou((function(){var e=i.map(Cc).filter(Dc);c?c.push.apply(c,Tc(e)):Mc(e),t.$$.on_mount=[]})),u.forEach(ou)}function du(t,e){var n=t.$$;null!==n.fragment&&(Mc(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function hu(t,e){-1===t.$$.dirty[0]&&(Xc.push(t),ru||(ru=!0,nu.then(uu)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function gu(t,e,n,r,o,i){var c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[-1],u=Ec;Jc(t);var a=e.props||{},s=t.$$={fragment:null,ctx:null,props:i,update:_c,not_equal:o,bound:Lc(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(u?u.$$.context:[]),callbacks:Lc(),dirty:c},f=!1;if(s.ctx=n?n(t,a,(function(e,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return s.ctx&&o(s.ctx[e],s.ctx[e]=r)&&(s.bound[e]&&s.bound[e](r),f&&hu(t,e)),n})):[],s.update(),f=!0,Mc(s.before_update),s.fragment=!!r&&r(s.ctx),e.target){if(e.hydrate){var l=Yc(e.target);s.fragment&&s.fragment.l(l),l.forEach(Uc)}else s.fragment&&s.fragment.c();e.intro&&fu(t.$$.fragment),vu(t,e.target,e.anchor),uu()}Jc(u)}var yu=function(){function t(){le(this,t)}var e,n,r;return e=t,(n=[{key:"$destroy",value:function(){du(this,1),this.$destroy=_c}},{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(){}}])&&$c(e.prototype,n),r&&$c(e,r),t}();function mu(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ye(t);if(e){var o=ye(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ge(this,n)}}function bu(t){var e,n,r;return{c:function(){(e=Bc("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=Kc(),(r=Bc("pre")).innerHTML='<code class="svelte-i2rssx">\n &lt;script\n <br class="svelte-i2rssx">\n id=&quot;chatbot&quot;\n <br class="svelte-i2rssx">\n data-server=&quot;https://server.com/webclient&quot;\n <br class="svelte-i2rssx">\n defer\n <br class="svelte-i2rssx">\n src=&quot;https://server.com/webclient/embed/bundle.js&quot;&gt; &lt;/script&gt;\n </code>',Vc(e,"class","svelte-i2rssx"),Vc(r,"class","svelte-i2rssx")},m:function(t,o){Nc(t,e,o),Nc(t,n,o),Nc(t,r,o)},p:_c,d:function(t){t&&Uc(e),t&&Uc(n),t&&Uc(r)}}}function xu(t){var e,n,r,o,i,c,u,a,s,f,l,p;return{c:function(){e=Bc("div"),n=Bc("div"),r=Bc("img"),i=Kc(),c=qc("svg"),u=qc("path"),a=Kc(),s=Bc("iframe"),r.src!==(o="".concat(t[0],"/embed/logo.svg"))&&Vc(r,"src",o),Vc(r,"alt","Logo"),Vc(r,"class","svelte-i2rssx"),Vc(u,"d","M0,0L20,20M20,0L0,20"),Vc(u,"class","svelte-i2rssx"),Vc(c,"viewBox","-2 -2 24 24"),Vc(c,"class","svelte-i2rssx"),Vc(n,"class","header svelte-i2rssx"),Vc(s,"id","chat-frame"),Vc(s,"title","chatbot"),Vc(s,"class","bot svelte-i2rssx"),s.src!==(f=t[0])&&Vc(s,"src",f),Vc(s,"frameborder","0"),s.allowFullscreen="",Vc(e,"class","bot-border svelte-i2rssx"),Hc(e,"closed",!t[1])},m:function(o,f){Nc(o,e,f),Fc(e,n),Fc(n,r),Fc(n,i),Fc(n,c),Fc(c,u),Fc(e,a),Fc(e,s),l||(p=Wc(c,"click",t[2]),l=!0)},p:function(t,n){1&n&&r.src!==(o="".concat(t[0],"/embed/logo.svg"))&&Vc(r,"src",o),1&n&&s.src!==(f=t[0])&&Vc(s,"src",f),2&n&&Hc(e,"closed",!t[1])},d:function(t){t&&Uc(e),l=!1,p()}}}function wu(t){var e;function n(t,e){return t[0]?xu:bu}var r=n(t),o=r(t);return{c:function(){o.c(),e=Gc("")},m:function(t,n){o.m(t,n),Nc(t,e,n)},p:function(t,i){var c=xe(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:_c,o:_c,d:function(t){o.d(t),t&&Uc(e)}}}function Su(t,e,n){var r=e.server,o=e.open;return t.$set=function(t){"server"in t&&n(0,r=t.server),"open"in t&&n(1,o=t.open)},[r,o,function(e){Qc(t,e)}]}var Eu=function(t){de(n,t);var e=mu(n);function n(t){var r,o;return le(this,n),r=e.call(this),document.getElementById("svelte-i2rssx-style")||((o=Bc("style")).id="svelte-i2rssx-style",o.textContent=".svelte-i2rssx.svelte-i2rssx,.svelte-i2rssx.svelte-i2rssx:before,.svelte-i2rssx.svelte-i2rssx:after{box-sizing:border-box}.bot-border.svelte-i2rssx.svelte-i2rssx{position:fixed !important;display:flex;flex-direction:column;bottom:0;height:85vh;width:100%;border:1px solid gainsboro;background:rgba(255, 255, 255, 0.93);opacity:1;transition:transform 200ms, opacity 100ms 100ms, all 150ms;z-index:1000}.bot-border.closed.svelte-i2rssx.svelte-i2rssx{transform:translateY(85vh);opacity:0}.header.svelte-i2rssx.svelte-i2rssx{display:flex;justify-content:space-between;width:100%;height:3em;padding:0.5em 1em;color:white;background-color:#3f4143}.bot.svelte-i2rssx.svelte-i2rssx{display:block;width:100%;flex:1 0 auto}@media screen and (min-width: 768px){.bot-border.svelte-i2rssx.svelte-i2rssx{height:38em;width:23em;right:1em;bottom:1em;left:auto;border-radius:0.2em;box-shadow:9px 9px 16px rgba(0, 0, 0, 0.25)}.bot-border.closed.svelte-i2rssx.svelte-i2rssx{transform:translateY(38em);opacity:0}}img.svelte-i2rssx.svelte-i2rssx{display:block;height:100%}svg.svelte-i2rssx.svelte-i2rssx{height:100%;padding:0.1em;cursor:pointer}svg.svelte-i2rssx path.svelte-i2rssx{transition:stroke-width 100ms;stroke:white;stroke-width:2px}svg.svelte-i2rssx:hover path.svelte-i2rssx{stroke-width:3px}p.svelte-i2rssx.svelte-i2rssx,pre.svelte-i2rssx.svelte-i2rssx{max-width:300px}pre.svelte-i2rssx.svelte-i2rssx{font-size:0.6em;line-height:0.5}",Fc(document.head,o)),gu(pe(r),t,Su,wu,zc,{server:0,open:1}),r}return n}(yu);function Ou(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ye(t);if(e){var o=ye(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ge(this,n)}}function ju(t){var e,n,r,o,i;return{c:function(){e=Bc("div"),Vc(n=Bc("img"),"class","chat-button svelte-xlhtz"),Vc(n,"alt","Open chatbot"),n.src!==(r="".concat(t[0],"/embed/open-button.svg"))&&Vc(n,"src",r),Vc(e,"class","chat-button-wrapper svelte-xlhtz")},m:function(r,c){Nc(r,e,c),Fc(e,n),o||(i=Wc(n,"click",t[1]),o=!0)},p:function(t,e){1&xe(e,1)[0]&&n.src!==(r="".concat(t[0],"/embed/open-button.svg"))&&Vc(n,"src",r)},i:_c,o:_c,d:function(t){t&&Uc(e),o=!1,i()}}}function Au(t,e,n){var r=e.server;return t.$set=function(t){"server"in t&&n(0,r=t.server)},[r,function(e){Qc(t,e)}]}var Ru=function(t){de(n,t);var e=Ou(n);function n(t){var r,o;return le(this,n),r=e.call(this),document.getElementById("svelte-xlhtz-style")||((o=Bc("style")).id="svelte-xlhtz-style",o.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)}",Fc(document.head,o)),gu(pe(r),t,Au,ju,zc,{server:0}),r}return n}(yu),Pu=function(t){var e=window.addEventListener?"addEventListener":"attachEvent";(0,window[e])("attachEvent"===e?"onmessage":"message",(function(e){var n,r=e.data;switch(r.type){case"webclient.expand.window":t();break;case"webclient.change.url":n=r.url,document.location.href=n}}),!1)};ic("match",1,(function(t,e,n){return[function(e){var n=st(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=l(t),i=String(this);if(!o.global)return ac(o,i);var c=o.unicode;o.lastIndex=0;for(var u,a=[],s=0;null!==(u=ac(o,i));){var f=String(u[0]);a[s]=f,""===f&&(o.lastIndex=uc(i,xt(o.lastIndex),c)),s++}return 0===s?null:a}]}));var ku=function(){navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&document.querySelectorAll("html, body").forEach((function(t){t.classList.add("iOS-device")}))},Iu=e((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 u="";for(var a in i)i[a]&&(u+="; "+a,!0!==i[a]&&(u+="="+i[a].split(";")[0]));return document.cookie=e+"="+n+u}}function c(t,n){if("undefined"!=typeof document){for(var o={},i=document.cookie?document.cookie.split("; "):[],c=0;c<i.length;c++){var u=i[c].split("="),a=u.slice(1).join("=");n||'"'!==a.charAt(0)||(a=a.slice(1,-1));try{var s=e(u[0]);if(a=(r.read||r)(a,s)||e(a),n)try{a=JSON.parse(a)}catch(t){}if(o[s]=a,t===s)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()})),Tu=function(t){Iu.set("bot-window",t)};function $u(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ye(t);if(e){var o=ye(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ge(this,n)}}function _u(t){var e,n,r,o,i,c,u,a;return(i=new Ru({props:{server:t[0]}})).$on("click",t[2]),(u=new Eu({props:{server:t[0],open:t[1]}})).$on("click",t[2]),{c:function(){e=Bc("link"),r=Kc(),o=Bc("div"),pu(i.$$.fragment),c=Kc(),pu(u.$$.fragment),Vc(e,"rel","stylesheet"),Vc(e,"href",n="".concat(t[0],"/embed/custom.css")),Vc(o,"id","chatbot-window"),Vc(o,"class","svelte-sr5aex")},m:function(t,n){Fc(document.head,e),Nc(t,r,n),Nc(t,o,n),vu(i,o,null),Fc(o,c),vu(u,o,null),a=!0},p:function(t,r){var o=xe(r,1)[0];(!a||1&o&&n!==(n="".concat(t[0],"/embed/custom.css")))&&Vc(e,"href",n);var c={};1&o&&(c.server=t[0]),i.$set(c);var s={};1&o&&(s.server=t[0]),2&o&&(s.open=t[1]),u.$set(s)},i:function(t){a||(fu(i.$$.fragment,t),fu(u.$$.fragment,t),a=!0)},o:function(t){lu(i.$$.fragment,t),lu(u.$$.fragment,t),a=!1},d:function(t){Uc(e),t&&Uc(r),t&&Uc(o),du(i),du(u)}}}function Cu(t,e,n){var r=e.server;ku();var o=function(){switch(Iu.get("bot-window")){case"open":return!0;case"closed":default:return!1}}();return Pu((function(){n(1,o=!0),Tu("open")})),t.$set=function(t){"server"in t&&n(0,r=t.server)},[r,o,function(){n(1,o=!o),Tu(o?"open":"closed")}]}var Lu=function(t){de(n,t);var e=$u(n);function n(t){var r,o;return le(this,n),r=e.call(this),document.getElementById("svelte-sr5aex-style")||((o=Bc("style")).id="svelte-sr5aex-style",o.textContent="#chatbot-window.svelte-sr5aex{font-size:16px}",Fc(document.head,o)),gu(pe(r),t,Cu,_u,zc,{server:0}),r}return n}(yu),Mu=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"));return console.log("Chatbot is loading from",Mu),new Lu({target:document.body,props:{server:Mu}})}();
1
+ var app=function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n=function(t){return t&&t.Math==Math&&t},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")(),o=function(t){try{return!!t()}catch(t){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c=function(t){return"object"==typeof t?null!==t:"function"==typeof t},a=r.document,u=c(a)&&c(a.createElement),f=function(t){return u?a.createElement(t):{}},s=!i&&!o((function(){return 7!=Object.defineProperty(f("div"),"a",{get:function(){return 7}}).a})),l=function(t){if(!c(t))throw TypeError(String(t)+" is not an object");return t},v=function(t,e){if(!c(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!c(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!c(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!c(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},p=Object.defineProperty,h={f:i?p:function(t,e,n){if(l(t),e=v(e,!0),l(n),s)try{return p(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}},d=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},g=i?function(t,e,n){return h.f(t,e,d(1,n))}:function(t,e,n){return t[e]=n,t},y=function(t,e){try{g(r,t,e)}catch(n){r[t]=e}return e},m=r["__core-js_shared__"]||y("__core-js_shared__",{}),b=e((function(t){(t.exports=function(t,e){return m[t]||(m[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),x={}.hasOwnProperty,w=function(t,e){return x.call(t,e)},S=0,E=Math.random(),O=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++S+E).toString(36)},j=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())})),A=j&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,R=b("wks"),P=r.Symbol,k=A?P:P&&P.withoutSetter||O,I=function(t){return w(R,t)||(j&&w(P,t)?R[t]=P[t]:R[t]=k("Symbol."+t)),R[t]},T={};T[I("toStringTag")]="z";var $="[object z]"===String(T),_=Function.toString;"function"!=typeof m.inspectSource&&(m.inspectSource=function(t){return _.call(t)});var C,q,L,M=m.inspectSource,D=r.WeakMap,z="function"==typeof D&&/native code/.test(M(D)),F=b("keys"),N=function(t){return F[t]||(F[t]=O(t))},U={},B=r.WeakMap;if(z){var G=new B,K=G.get,W=G.has,V=G.set;C=function(t,e){return V.call(G,t,e),e},q=function(t){return K.call(G,t)||{}},L=function(t){return W.call(G,t)}}else{var Y=N("state");U[Y]=!0,C=function(t,e){return g(t,Y,e),e},q=function(t){return w(t,Y)?t[Y]:{}},L=function(t){return w(t,Y)}}var H={set:C,get:q,has:L,enforce:function(t){return L(t)?q(t):C(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=q(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},J=e((function(t){var e=H.get,n=H.enforce,o=String(String).split("String");(t.exports=function(t,e,i,c){var a=!!c&&!!c.unsafe,u=!!c&&!!c.enumerable,f=!!c&&!!c.noTargetGet;"function"==typeof i&&("string"!=typeof e||w(i,"name")||g(i,"name",e),n(i).source=o.join("string"==typeof e?e:"")),t!==r?(a?!f&&t[e]&&(u=!0):delete t[e],u?t[e]=i:g(t,e,i)):u?t[e]=i:y(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||M(this)}))})),Q={}.toString,X=function(t){return Q.call(t).slice(8,-1)},Z=I("toStringTag"),tt="Arguments"==X(function(){return arguments}()),et=$?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),Z))?n:tt?X(e):"Object"==(r=X(e))&&"function"==typeof e.callee?"Arguments":r},nt=$?{}.toString:function(){return"[object "+et(this)+"]"};$||J(Object.prototype,"toString",nt,{unsafe:!0});var rt,ot={}.propertyIsEnumerable,it=Object.getOwnPropertyDescriptor,ct={f:it&&!ot.call({1:2},1)?function(t){var e=it(this,t);return!!e&&e.enumerable}:ot},at="".split,ut=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==X(t)?at.call(t,""):Object(t)}:Object,ft=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},st=function(t){return ut(ft(t))},lt=Object.getOwnPropertyDescriptor,vt={f:i?lt:function(t,e){if(t=st(t),e=v(e,!0),s)try{return lt(t,e)}catch(t){}if(w(t,e))return d(!ct.f.call(t,e),t[e])}},pt=r,ht=function(t){return"function"==typeof t?t:void 0},dt=function(t,e){return arguments.length<2?ht(pt[t])||ht(r[t]):pt[t]&&pt[t][e]||r[t]&&r[t][e]},gt=Math.ceil,yt=Math.floor,mt=function(t){return isNaN(t=+t)?0:(t>0?yt:gt)(t)},bt=Math.min,xt=function(t){return t>0?bt(mt(t),9007199254740991):0},wt=Math.max,St=Math.min,Et=function(t,e){var n=mt(t);return n<0?wt(n+e,0):St(n,e)},Ot=function(t){return function(e,n,r){var o,i=st(e),c=xt(i.length),a=Et(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}},jt={includes:Ot(!0),indexOf:Ot(!1)},At=jt.indexOf,Rt=function(t,e){var n,r=st(t),o=0,i=[];for(n in r)!w(U,n)&&w(r,n)&&i.push(n);for(;e.length>o;)w(r,n=e[o++])&&(~At(i,n)||i.push(n));return i},Pt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],kt=Pt.concat("length","prototype"),It={f:Object.getOwnPropertyNames||function(t){return Rt(t,kt)}},Tt={f:Object.getOwnPropertySymbols},$t=dt("Reflect","ownKeys")||function(t){var e=It.f(l(t)),n=Tt.f;return n?e.concat(n(t)):e},_t=function(t,e){for(var n=$t(e),r=h.f,o=vt.f,i=0;i<n.length;i++){var c=n[i];w(t,c)||r(t,c,o(e,c))}},Ct=/#|\.prototype\./,qt=function(t,e){var n=Mt[Lt(t)];return n==zt||n!=Dt&&("function"==typeof e?o(e):!!e)},Lt=qt.normalize=function(t){return String(t).replace(Ct,".").toLowerCase()},Mt=qt.data={},Dt=qt.NATIVE="N",zt=qt.POLYFILL="P",Ft=qt,Nt=vt.f,Ut=function(t,e){var n,o,i,c,a,u=t.target,f=t.global,s=t.stat;if(n=f?r:s?r[u]||y(u,{}):(r[u]||{}).prototype)for(o in e){if(c=e[o],i=t.noTargetGet?(a=Nt(n,o))&&a.value:n[o],!Ft(f?o:u+(s?".":"#")+o,t.forced)&&void 0!==i){if(typeof c==typeof i)continue;_t(c,i)}(t.sham||i&&i.sham)&&g(c,"sham",!0),J(n,o,c,t)}},Bt=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Gt=Object.keys||function(t){return Rt(t,Pt)},Kt=i?Object.defineProperties:function(t,e){l(t);for(var n,r=Gt(e),o=r.length,i=0;o>i;)h.f(t,n=r[i++],e[n]);return t},Wt=dt("document","documentElement"),Vt=N("IE_PROTO"),Yt=function(){},Ht=function(t){return"<script>"+t+"<\/script>"},Jt=function(){try{rt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Jt=rt?function(t){t.write(Ht("")),t.close();var e=t.parentWindow.Object;return t=null,e}(rt):((e=f("iframe")).style.display="none",Wt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Ht("document.F=Object")),t.close(),t.F);for(var n=Pt.length;n--;)delete Jt.prototype[Pt[n]];return Jt()};U[Vt]=!0;var Qt=Object.create||function(t,e){var n;return null!==t?(Yt.prototype=l(t),n=new Yt,Yt.prototype=null,n[Vt]=t):n=Jt(),void 0===e?n:Kt(n,e)},Xt=[].slice,Zt={},te=function(t,e,n){if(!(e in Zt)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";Zt[e]=Function("C,a","return new C("+r.join(",")+")")}return Zt[e](t,n)},ee=Function.bind||function(t){var e=Bt(this),n=Xt.call(arguments,1),r=function(){var o=n.concat(Xt.call(arguments));return this instanceof r?te(e,o.length,o):e.apply(t,o)};return c(e.prototype)&&(r.prototype=e.prototype),r},ne=dt("Reflect","construct"),re=o((function(){function t(){}return!(ne((function(){}),[],t)instanceof t)})),oe=!o((function(){ne((function(){}))})),ie=re||oe;Ut({target:"Reflect",stat:!0,forced:ie,sham:ie},{construct:function(t,e){Bt(t),l(e);var n=arguments.length<3?t:Bt(arguments[2]);if(oe&&!re)return ne(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(ee.apply(t,r))}var o=n.prototype,i=Qt(c(o)?o:Object.prototype),a=Function.apply.call(t,i,e);return c(a)?a:i}});var ce=function(){var t=l(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},ae=RegExp.prototype,ue=ae.toString,fe=o((function(){return"/a/b"!=ue.call({source:"a",flags:"b"})})),se="toString"!=ue.name;function le(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ve(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pe(t,e){return(pe=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function he(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&&pe(t,e)}function de(t){return(de="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 ge(t,e){return!e||"object"!==de(e)&&"function"!=typeof e?ve(t):e}function ye(t){return(ye=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function me(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 be(t,e){if(t){if("string"==typeof t)return me(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)?me(t,e):void 0}}function xe(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=t[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}}(t,e)||be(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.")}()}(fe||se)&&J(RegExp.prototype,"toString",(function(){var t=l(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in ae)?ce.call(t):n)}),{unsafe:!0});var we=Array.isArray||function(t){return"Array"==X(t)},Se=function(t){return Object(ft(t))},Ee=It.f,Oe={}.toString,je="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ae={f:function(t){return je&&"[object Window]"==Oe.call(t)?function(t){try{return Ee(t)}catch(t){return je.slice()}}(t):Ee(st(t))}},Re={f:I},Pe=h.f,ke=function(t){var e=pt.Symbol||(pt.Symbol={});w(e,t)||Pe(e,t,{value:Re.f(t)})},Ie=h.f,Te=I("toStringTag"),$e=function(t,e,n){t&&!w(t=n?t:t.prototype,Te)&&Ie(t,Te,{configurable:!0,value:e})},_e=function(t,e,n){if(Bt(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)}},Ce=I("species"),qe=function(t,e){var n;return we(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!we(n.prototype)?c(n)&&null===(n=n[Ce])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Le=[].push,Me=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,c=5==t||i;return function(a,u,f,s){for(var l,v,p=Se(a),h=ut(p),d=_e(u,f,3),g=xt(h.length),y=0,m=s||qe,b=e?m(a,g):n?m(a,0):void 0;g>y;y++)if((c||y in h)&&(v=d(l=h[y],y,p),t))if(e)b[y]=v;else if(v)switch(t){case 3:return!0;case 5:return l;case 6:return y;case 2:Le.call(b,l)}else if(o)return!1;return i?-1:r||o?o:b}},De={forEach:Me(0),map:Me(1),filter:Me(2),some:Me(3),every:Me(4),find:Me(5),findIndex:Me(6)},ze=De.forEach,Fe=N("hidden"),Ne=I("toPrimitive"),Ue=H.set,Be=H.getterFor("Symbol"),Ge=Object.prototype,Ke=r.Symbol,We=dt("JSON","stringify"),Ve=vt.f,Ye=h.f,He=Ae.f,Je=ct.f,Qe=b("symbols"),Xe=b("op-symbols"),Ze=b("string-to-symbol-registry"),tn=b("symbol-to-string-registry"),en=b("wks"),nn=r.QObject,rn=!nn||!nn.prototype||!nn.prototype.findChild,on=i&&o((function(){return 7!=Qt(Ye({},"a",{get:function(){return Ye(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Ve(Ge,e);r&&delete Ge[e],Ye(t,e,n),r&&t!==Ge&&Ye(Ge,e,r)}:Ye,cn=function(t,e){var n=Qe[t]=Qt(Ke.prototype);return Ue(n,{type:"Symbol",tag:t,description:e}),i||(n.description=e),n},an=A?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Ke},un=function(t,e,n){t===Ge&&un(Xe,e,n),l(t);var r=v(e,!0);return l(n),w(Qe,r)?(n.enumerable?(w(t,Fe)&&t[Fe][r]&&(t[Fe][r]=!1),n=Qt(n,{enumerable:d(0,!1)})):(w(t,Fe)||Ye(t,Fe,d(1,{})),t[Fe][r]=!0),on(t,r,n)):Ye(t,r,n)},fn=function(t,e){l(t);var n=st(e),r=Gt(n).concat(pn(n));return ze(r,(function(e){i&&!sn.call(n,e)||un(t,e,n[e])})),t},sn=function(t){var e=v(t,!0),n=Je.call(this,e);return!(this===Ge&&w(Qe,e)&&!w(Xe,e))&&(!(n||!w(this,e)||!w(Qe,e)||w(this,Fe)&&this[Fe][e])||n)},ln=function(t,e){var n=st(t),r=v(e,!0);if(n!==Ge||!w(Qe,r)||w(Xe,r)){var o=Ve(n,r);return!o||!w(Qe,r)||w(n,Fe)&&n[Fe][r]||(o.enumerable=!0),o}},vn=function(t){var e=He(st(t)),n=[];return ze(e,(function(t){w(Qe,t)||w(U,t)||n.push(t)})),n},pn=function(t){var e=t===Ge,n=He(e?Xe:st(t)),r=[];return ze(n,(function(t){!w(Qe,t)||e&&!w(Ge,t)||r.push(Qe[t])})),r};if(j||(J((Ke=function(){if(this instanceof Ke)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=O(t),n=function(t){this===Ge&&n.call(Xe,t),w(this,Fe)&&w(this[Fe],e)&&(this[Fe][e]=!1),on(this,e,d(1,t))};return i&&rn&&on(Ge,e,{configurable:!0,set:n}),cn(e,t)}).prototype,"toString",(function(){return Be(this).tag})),J(Ke,"withoutSetter",(function(t){return cn(O(t),t)})),ct.f=sn,h.f=un,vt.f=ln,It.f=Ae.f=vn,Tt.f=pn,Re.f=function(t){return cn(I(t),t)},i&&(Ye(Ke.prototype,"description",{configurable:!0,get:function(){return Be(this).description}}),J(Ge,"propertyIsEnumerable",sn,{unsafe:!0}))),Ut({global:!0,wrap:!0,forced:!j,sham:!j},{Symbol:Ke}),ze(Gt(en),(function(t){ke(t)})),Ut({target:"Symbol",stat:!0,forced:!j},{for:function(t){var e=String(t);if(w(Ze,e))return Ze[e];var n=Ke(e);return Ze[e]=n,tn[n]=e,n},keyFor:function(t){if(!an(t))throw TypeError(t+" is not a symbol");if(w(tn,t))return tn[t]},useSetter:function(){rn=!0},useSimple:function(){rn=!1}}),Ut({target:"Object",stat:!0,forced:!j,sham:!i},{create:function(t,e){return void 0===e?Qt(t):fn(Qt(t),e)},defineProperty:un,defineProperties:fn,getOwnPropertyDescriptor:ln}),Ut({target:"Object",stat:!0,forced:!j},{getOwnPropertyNames:vn,getOwnPropertySymbols:pn}),Ut({target:"Object",stat:!0,forced:o((function(){Tt.f(1)}))},{getOwnPropertySymbols:function(t){return Tt.f(Se(t))}}),We){var hn=!j||o((function(){var t=Ke();return"[null]"!=We([t])||"{}"!=We({a:t})||"{}"!=We(Object(t))}));Ut({target:"JSON",stat:!0,forced:hn},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(c(e)||void 0!==t)&&!an(t))return we(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!an(e))return e}),o[1]=e,We.apply(null,o)}})}Ke.prototype[Ne]||g(Ke.prototype,Ne,Ke.prototype.valueOf),$e(Ke,"Symbol"),U[Fe]=!0;var dn=h.f,gn=r.Symbol;if(i&&"function"==typeof gn&&(!("description"in gn.prototype)||void 0!==gn().description)){var yn={},mn=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof mn?new gn(t):void 0===t?gn():gn(t);return""===t&&(yn[e]=!0),e};_t(mn,gn);var bn=mn.prototype=gn.prototype;bn.constructor=mn;var xn=bn.toString,wn="Symbol(test)"==String(gn("test")),Sn=/^Symbol\((.*)\)[^)]+$/;dn(bn,"description",{configurable:!0,get:function(){var t=c(this)?this.valueOf():this,e=xn.call(t);if(w(yn,t))return"";var n=wn?e.slice(7,-1):e.replace(Sn,"$1");return""===n?void 0:n}}),Ut({global:!0,forced:!0},{Symbol:mn})}ke("iterator");var En,On,jn=function(t,e,n){var r=v(e);r in t?h.f(t,r,d(0,n)):t[r]=n},An=dt("navigator","userAgent")||"",Rn=r.process,Pn=Rn&&Rn.versions,kn=Pn&&Pn.v8;kn?On=(En=kn.split("."))[0]+En[1]:An&&(!(En=An.match(/Edge\/(\d+)/))||En[1]>=74)&&(En=An.match(/Chrome\/(\d+)/))&&(On=En[1]);var In=On&&+On,Tn=I("species"),$n=function(t){return In>=51||!o((function(){var e=[];return(e.constructor={})[Tn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},_n=I("isConcatSpreadable"),Cn=In>=51||!o((function(){var t=[];return t[_n]=!1,t.concat()[0]!==t})),qn=$n("concat"),Ln=function(t){if(!c(t))return!1;var e=t[_n];return void 0!==e?!!e:we(t)};Ut({target:"Array",proto:!0,forced:!Cn||!qn},{concat:function(t){var e,n,r,o,i,c=Se(this),a=qe(c,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Ln(i=-1===e?c:arguments[e])){if(u+(o=xt(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,u++)n in i&&jn(a,u,i[n])}else{if(u>=9007199254740991)throw TypeError("Maximum allowed index exceeded");jn(a,u++,i)}return a.length=u,a}});var Mn=I("unscopables"),Dn=Array.prototype;null==Dn[Mn]&&h.f(Dn,Mn,{configurable:!0,value:Qt(null)});var zn=function(t){Dn[Mn][t]=!0};Ut({target:"Array",proto:!0},{fill:function(t){for(var e=Se(this),n=xt(e.length),r=arguments.length,o=Et(r>1?arguments[1]:void 0,n),i=r>2?arguments[2]:void 0,c=void 0===i?n:Et(i,n);c>o;)e[o++]=t;return e}}),zn("fill");var Fn=Object.defineProperty,Nn={},Un=function(t){throw t},Bn=function(t,e){if(w(Nn,t))return Nn[t];e||(e={});var n=[][t],r=!!w(e,"ACCESSORS")&&e.ACCESSORS,c=w(e,0)?e[0]:Un,a=w(e,1)?e[1]:void 0;return Nn[t]=!!n&&!o((function(){if(r&&!i)return!0;var t={length:-1};r?Fn(t,1,{enumerable:!0,get:Un}):t[1]=1,n.call(t,c,a)}))},Gn=De.filter,Kn=$n("filter"),Wn=Bn("filter");Ut({target:"Array",proto:!0,forced:!Kn||!Wn},{filter:function(t){return Gn(this,t,arguments.length>1?arguments[1]:void 0)}});var Vn=function(t,e){var n=[][t];return!!n&&o((function(){n.call(null,e||function(){throw 1},1)}))},Yn=De.forEach,Hn=Vn("forEach"),Jn=Bn("forEach"),Qn=Hn&&Jn?[].forEach:function(t){return Yn(this,t,arguments.length>1?arguments[1]:void 0)};Ut({target:"Array",proto:!0,forced:[].forEach!=Qn},{forEach:Qn});var Xn=function(t,e,n,r){try{return r?e(l(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&l(o.call(t)),e}},Zn={},tr=I("iterator"),er=Array.prototype,nr=function(t){return void 0!==t&&(Zn.Array===t||er[tr]===t)},rr=I("iterator"),or=function(t){if(null!=t)return t[rr]||t["@@iterator"]||Zn[et(t)]},ir=I("iterator"),cr=!1;try{var ar=0,ur={next:function(){return{done:!!ar++}},return:function(){cr=!0}};ur[ir]=function(){return this},Array.from(ur,(function(){throw 2}))}catch(t){}var fr=function(t,e){if(!e&&!cr)return!1;var n=!1;try{var r={};r[ir]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n},sr=!fr((function(t){Array.from(t)}));Ut({target:"Array",stat:!0,forced:sr},{from:function(t){var e,n,r,o,i,c,a=Se(t),u="function"==typeof this?this:Array,f=arguments.length,s=f>1?arguments[1]:void 0,l=void 0!==s,v=or(a),p=0;if(l&&(s=_e(s,f>2?arguments[2]:void 0,2)),null==v||u==Array&&nr(v))for(n=new u(e=xt(a.length));e>p;p++)c=l?s(a[p],p):a[p],jn(n,p,c);else for(i=(o=v.call(a)).next,n=new u;!(r=i.call(o)).done;p++)c=l?Xn(o,s,[r.value,p],!0):r.value,jn(n,p,c);return n.length=p,n}});var lr=jt.indexOf,vr=[].indexOf,pr=!!vr&&1/[1].indexOf(1,-0)<0,hr=Vn("indexOf"),dr=Bn("indexOf",{ACCESSORS:!0,1:0});Ut({target:"Array",proto:!0,forced:pr||!hr||!dr},{indexOf:function(t){return pr?vr.apply(this,arguments)||0:lr(this,t,arguments.length>1?arguments[1]:void 0)}});var gr,yr,mr,br=!o((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),xr=N("IE_PROTO"),wr=Object.prototype,Sr=br?Object.getPrototypeOf:function(t){return t=Se(t),w(t,xr)?t[xr]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?wr:null},Er=I("iterator"),Or=!1;[].keys&&("next"in(mr=[].keys())?(yr=Sr(Sr(mr)))!==Object.prototype&&(gr=yr):Or=!0),null==gr&&(gr={}),w(gr,Er)||g(gr,Er,(function(){return this}));var jr={IteratorPrototype:gr,BUGGY_SAFARI_ITERATORS:Or},Ar=jr.IteratorPrototype,Rr=function(){return this},Pr=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 l(n),function(t){if(!c(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),kr=jr.IteratorPrototype,Ir=jr.BUGGY_SAFARI_ITERATORS,Tr=I("iterator"),$r=function(){return this},_r=function(t,e,n,r,o,i,c){!function(t,e,n){var r=e+" Iterator";t.prototype=Qt(Ar,{next:d(1,n)}),$e(t,r,!1),Zn[r]=Rr}(n,e,r);var a,u,f,s=function(t){if(t===o&&y)return y;if(!Ir&&t in p)return p[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},l=e+" Iterator",v=!1,p=t.prototype,h=p[Tr]||p["@@iterator"]||o&&p[o],y=!Ir&&h||s(o),m="Array"==e&&p.entries||h;if(m&&(a=Sr(m.call(new t)),kr!==Object.prototype&&a.next&&(Sr(a)!==kr&&(Pr?Pr(a,kr):"function"!=typeof a[Tr]&&g(a,Tr,$r)),$e(a,l,!0))),"values"==o&&h&&"values"!==h.name&&(v=!0,y=function(){return h.call(this)}),p[Tr]!==y&&g(p,Tr,y),Zn[e]=y,o)if(u={values:s("values"),keys:i?y:s("keys"),entries:s("entries")},c)for(f in u)(Ir||v||!(f in p))&&J(p,f,u[f]);else Ut({target:e,proto:!0,forced:Ir||v},u);return u},Cr=H.set,qr=H.getterFor("Array Iterator"),Lr=_r(Array,"Array",(function(t,e){Cr(this,{type:"Array Iterator",target:st(t),index:0,kind:e})}),(function(){var t=qr(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");Zn.Arguments=Zn.Array,zn("keys"),zn("values"),zn("entries");var Mr=[].join,Dr=ut!=Object,zr=Vn("join",",");Ut({target:"Array",proto:!0,forced:Dr||!zr},{join:function(t){return Mr.call(st(this),void 0===t?",":t)}});var Fr=De.map,Nr=$n("map"),Ur=Bn("map");Ut({target:"Array",proto:!0,forced:!Nr||!Ur},{map:function(t){return Fr(this,t,arguments.length>1?arguments[1]:void 0)}});var Br=$n("slice"),Gr=Bn("slice",{ACCESSORS:!0,0:0,1:2}),Kr=I("species"),Wr=[].slice,Vr=Math.max;Ut({target:"Array",proto:!0,forced:!Br||!Gr},{slice:function(t,e){var n,r,o,i=st(this),a=xt(i.length),u=Et(t,a),f=Et(void 0===e?a:e,a);if(we(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!we(n.prototype)?c(n)&&null===(n=n[Kr])&&(n=void 0):n=void 0,n===Array||void 0===n))return Wr.call(i,u,f);for(r=new(void 0===n?Array:n)(Vr(f-u,0)),o=0;u<f;u++,o++)u in i&&jn(r,o,i[u]);return r.length=o,r}});var Yr=$n("splice"),Hr=Bn("splice",{ACCESSORS:!0,0:0,1:2}),Jr=Math.max,Qr=Math.min;Ut({target:"Array",proto:!0,forced:!Yr||!Hr},{splice:function(t,e){var n,r,o,i,c,a,u=Se(this),f=xt(u.length),s=Et(t,f),l=arguments.length;if(0===l?n=r=0:1===l?(n=0,r=f-s):(n=l-2,r=Qr(Jr(mt(e),0),f-s)),f+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(o=qe(u,r),i=0;i<r;i++)(c=s+i)in u&&jn(o,i,u[c]);if(o.length=r,n<r){for(i=s;i<f-r;i++)a=i+n,(c=i+r)in u?u[a]=u[c]:delete u[a];for(i=f;i>f-r+n;i--)delete u[i-1]}else if(n>r)for(i=f-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=f-r+n,o}});var Xr=h.f,Zr=Function.prototype,to=Zr.toString,eo=/^\s*function ([^ (]*)/;i&&!("name"in Zr)&&Xr(Zr,"name",{configurable:!0,get:function(){try{return to.call(this).match(eo)[1]}catch(t){return""}}});var no=!o((function(){return Object.isExtensible(Object.preventExtensions({}))})),ro=e((function(t){var e=h.f,n=O("meta"),r=0,o=Object.isExtensible||function(){return!0},i=function(t){e(t,n,{value:{objectID:"O"+ ++r,weakData:{}}})},a=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!c(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!w(t,n)){if(!o(t))return"F";if(!e)return"E";i(t)}return t[n].objectID},getWeakData:function(t,e){if(!w(t,n)){if(!o(t))return!0;if(!e)return!1;i(t)}return t[n].weakData},onFreeze:function(t){return no&&a.REQUIRED&&o(t)&&!w(t,n)&&i(t),t}};U[n]=!0})),oo=(ro.REQUIRED,ro.fastKey,ro.getWeakData,ro.onFreeze,e((function(t){var e=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,n,r,o,i){var c,a,u,f,s,v,p,h=_e(n,r,o?2:1);if(i)c=t;else{if("function"!=typeof(a=or(t)))throw TypeError("Target is not iterable");if(nr(a)){for(u=0,f=xt(t.length);f>u;u++)if((s=o?h(l(p=t[u])[0],p[1]):h(t[u]))&&s instanceof e)return s;return new e(!1)}c=a.call(t)}for(v=c.next;!(p=v.call(c)).done;)if("object"==typeof(s=Xn(c,h,p.value,o))&&s&&s instanceof e)return s;return new e(!1)}).stop=function(t){return new e(!0,t)}}))),io=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t},co=function(t,e,n){var i=-1!==t.indexOf("Map"),a=-1!==t.indexOf("Weak"),u=i?"set":"add",f=r[t],s=f&&f.prototype,l=f,v={},p=function(t){var e=s[t];J(s,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(a&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return a&&!c(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(a&&!c(t))&&e.call(this,0===t?0:t)}:function(t,n){return e.call(this,0===t?0:t,n),this})};if(Ft(t,"function"!=typeof f||!(a||s.forEach&&!o((function(){(new f).entries().next()})))))l=n.getConstructor(e,t,i,u),ro.REQUIRED=!0;else if(Ft(t,!0)){var h=new l,d=h[u](a?{}:-0,1)!=h,g=o((function(){h.has(1)})),y=fr((function(t){new f(t)})),m=!a&&o((function(){for(var t=new f,e=5;e--;)t[u](e,e);return!t.has(-0)}));y||((l=e((function(e,n){io(e,l,t);var r=function(t,e,n){var r,o;return Pr&&"function"==typeof(r=e.constructor)&&r!==n&&c(o=r.prototype)&&o!==n.prototype&&Pr(t,o),t}(new f,e,l);return null!=n&&oo(n,r[u],r,i),r}))).prototype=s,s.constructor=l),(g||m)&&(p("delete"),p("has"),i&&p("get")),(m||d)&&p(u),a&&s.clear&&delete s.clear}return v[t]=l,Ut({global:!0,forced:l!=f},v),$e(l,t),a||n.setStrong(l,t,i),l},ao=function(t,e,n){for(var r in e)J(t,r,e[r],n);return t},uo=I("species"),fo=function(t){var e=dt(t),n=h.f;i&&e&&!e[uo]&&n(e,uo,{configurable:!0,get:function(){return this}})},so=h.f,lo=ro.fastKey,vo=H.set,po=H.getterFor,ho={getConstructor:function(t,e,n,r){var o=t((function(t,c){io(t,o,e),vo(t,{type:e,index:Qt(null),first:void 0,last:void 0,size:0}),i||(t.size=0),null!=c&&oo(c,t[r],t,n)})),c=po(e),a=function(t,e,n){var r,o,a=c(t),f=u(t,e);return f?f.value=n:(a.last=f={index:o=lo(e,!0),key:e,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||(a.first=f),r&&(r.next=f),i?a.size++:t.size++,"F"!==o&&(a.index[o]=f)),t},u=function(t,e){var n,r=c(t),o=lo(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return ao(o.prototype,{clear:function(){for(var t=c(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,i?t.size=0:this.size=0},delete:function(t){var e=c(this),n=u(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),i?e.size--:this.size--}return!!n},forEach:function(t){for(var e,n=c(this),r=_e(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!!u(this,t)}}),ao(o.prototype,n?{get:function(t){var e=u(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),i&&so(o.prototype,"size",{get:function(){return c(this).size}}),o},setStrong:function(t,e,n){var r=e+" Iterator",o=po(e),i=po(r);_r(t,e,(function(t,e){vo(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),fo(e)}},go=(co("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),ho),Object.assign),yo=Object.defineProperty,mo=!go||o((function(){if(i&&1!==go({b:1},go(yo({},"a",{enumerable:!0,get:function(){yo(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!=go({},t)[n]||"abcdefghijklmnopqrst"!=Gt(go({},e)).join("")}))?function(t,e){for(var n=Se(t),r=arguments.length,o=1,c=Tt.f,a=ct.f;r>o;)for(var u,f=ut(arguments[o++]),s=c?Gt(f).concat(c(f)):Gt(f),l=s.length,v=0;l>v;)u=s[v++],i&&!a.call(f,u)||(n[u]=f[u]);return n}:go;Ut({target:"Object",stat:!0,forced:Object.assign!==mo},{assign:mo}),Ut({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,n,r=st(t),o=vt.f,i=$t(r),c={},a=0;i.length>a;)void 0!==(n=o(r,e=i[a++]))&&jn(c,e,n);return c}});var bo=o((function(){Gt(1)}));Ut({target:"Object",stat:!0,forced:bo},{keys:function(t){return Gt(Se(t))}});var xo,wo,So,Eo=r.Promise,Oo=I("species"),jo=function(t,e){var n,r=l(t).constructor;return void 0===r||null==(n=l(r)[Oo])?e:Bt(n)},Ao=/(iphone|ipod|ipad).*applewebkit/i.test(An),Ro=r.location,Po=r.setImmediate,ko=r.clearImmediate,Io=r.process,To=r.MessageChannel,$o=r.Dispatch,_o=0,Co={},qo=function(t){if(Co.hasOwnProperty(t)){var e=Co[t];delete Co[t],e()}},Lo=function(t){return function(){qo(t)}},Mo=function(t){qo(t.data)},Do=function(t){r.postMessage(t+"",Ro.protocol+"//"+Ro.host)};Po&&ko||(Po=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return Co[++_o]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},xo(_o),_o},ko=function(t){delete Co[t]},"process"==X(Io)?xo=function(t){Io.nextTick(Lo(t))}:$o&&$o.now?xo=function(t){$o.now(Lo(t))}:To&&!Ao?(So=(wo=new To).port2,wo.port1.onmessage=Mo,xo=_e(So.postMessage,So,1)):!r.addEventListener||"function"!=typeof postMessage||r.importScripts||o(Do)||"file:"===Ro.protocol?xo="onreadystatechange"in f("script")?function(t){Wt.appendChild(f("script")).onreadystatechange=function(){Wt.removeChild(this),qo(t)}}:function(t){setTimeout(Lo(t),0)}:(xo=Do,r.addEventListener("message",Mo,!1)));var zo,Fo,No,Uo,Bo,Go,Ko,Wo,Vo={set:Po,clear:ko},Yo=vt.f,Ho=Vo.set,Jo=r.MutationObserver||r.WebKitMutationObserver,Qo=r.process,Xo=r.Promise,Zo="process"==X(Qo),ti=Yo(r,"queueMicrotask"),ei=ti&&ti.value;ei||(zo=function(){var t,e;for(Zo&&(t=Qo.domain)&&t.exit();Fo;){e=Fo.fn,Fo=Fo.next;try{e()}catch(t){throw Fo?Uo():No=void 0,t}}No=void 0,t&&t.enter()},Zo?Uo=function(){Qo.nextTick(zo)}:Jo&&!Ao?(Bo=!0,Go=document.createTextNode(""),new Jo(zo).observe(Go,{characterData:!0}),Uo=function(){Go.data=Bo=!Bo}):Xo&&Xo.resolve?(Ko=Xo.resolve(void 0),Wo=Ko.then,Uo=function(){Wo.call(Ko,zo)}):Uo=function(){Ho.call(r,zo)});var ni,ri,oi,ii,ci=ei||function(t){var e={fn:t,next:void 0};No&&(No.next=e),Fo||(Fo=e,Uo()),No=e},ai=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=Bt(e),this.reject=Bt(n)},ui={f:function(t){return new ai(t)}},fi=function(t,e){if(l(t),c(e)&&e.constructor===t)return e;var n=ui.f(t);return(0,n.resolve)(e),n.promise},si=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},li=Vo.set,vi=I("species"),pi="Promise",hi=H.get,di=H.set,gi=H.getterFor(pi),yi=Eo,mi=r.TypeError,bi=r.document,xi=r.process,wi=dt("fetch"),Si=ui.f,Ei=Si,Oi="process"==X(xi),ji=!!(bi&&bi.createEvent&&r.dispatchEvent),Ai=Ft(pi,(function(){if(!(M(yi)!==String(yi))){if(66===In)return!0;if(!Oi&&"function"!=typeof PromiseRejectionEvent)return!0}if(In>=51&&/native code/.test(yi))return!1;var t=yi.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[vi]=e,!(t.then((function(){}))instanceof e)})),Ri=Ai||!fr((function(t){yi.all(t).catch((function(){}))})),Pi=function(t){var e;return!(!c(t)||"function"!=typeof(e=t.then))&&e},ki=function(t,e,n){if(!e.notified){e.notified=!0;var r=e.reactions;ci((function(){for(var o=e.value,i=1==e.state,c=0;r.length>c;){var a,u,f,s=r[c++],l=i?s.ok:s.fail,v=s.resolve,p=s.reject,h=s.domain;try{l?(i||(2===e.rejection&&_i(t,e),e.rejection=1),!0===l?a=o:(h&&h.enter(),a=l(o),h&&(h.exit(),f=!0)),a===s.promise?p(mi("Promise-chain cycle")):(u=Pi(a))?u.call(a,v,p):v(a)):p(o)}catch(t){h&&!f&&h.exit(),p(t)}}e.reactions=[],e.notified=!1,n&&!e.rejection&&Ti(t,e)}))}},Ii=function(t,e,n){var o,i;ji?((o=bi.createEvent("Event")).promise=e,o.reason=n,o.initEvent(t,!1,!0),r.dispatchEvent(o)):o={promise:e,reason:n},(i=r["on"+t])?i(o):"unhandledrejection"===t&&function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},Ti=function(t,e){li.call(r,(function(){var n,r=e.value;if($i(e)&&(n=si((function(){Oi?xi.emit("unhandledRejection",r,t):Ii("unhandledrejection",t,r)})),e.rejection=Oi||$i(e)?2:1,n.error))throw n.value}))},$i=function(t){return 1!==t.rejection&&!t.parent},_i=function(t,e){li.call(r,(function(){Oi?xi.emit("rejectionHandled",t):Ii("rejectionhandled",t,e.value)}))},Ci=function(t,e,n,r){return function(o){t(e,n,o,r)}},qi=function(t,e,n,r){e.done||(e.done=!0,r&&(e=r),e.value=n,e.state=2,ki(t,e,!0))},Li=function(t,e,n,r){if(!e.done){e.done=!0,r&&(e=r);try{if(t===n)throw mi("Promise can't be resolved itself");var o=Pi(n);o?ci((function(){var r={done:!1};try{o.call(n,Ci(Li,t,r,e),Ci(qi,t,r,e))}catch(n){qi(t,r,n,e)}})):(e.value=n,e.state=1,ki(t,e,!1))}catch(n){qi(t,{done:!1},n,e)}}};function Mi(t,e){return RegExp(t,e)}Ai&&(yi=function(t){io(this,yi,pi),Bt(t),ni.call(this);var e=hi(this);try{t(Ci(Li,this,e),Ci(qi,this,e))}catch(t){qi(this,e,t)}},(ni=function(t){di(this,{type:pi,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=ao(yi.prototype,{then:function(t,e){var n=gi(this),r=Si(jo(this,yi));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=Oi?xi.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&ki(this,n,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),ri=function(){var t=new ni,e=hi(t);this.promise=t,this.resolve=Ci(Li,t,e),this.reject=Ci(qi,t,e)},ui.f=Si=function(t){return t===yi||t===oi?new ri(t):Ei(t)},"function"==typeof Eo&&(ii=Eo.prototype.then,J(Eo.prototype,"then",(function(t,e){var n=this;return new yi((function(t,e){ii.call(n,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof wi&&Ut({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return fi(yi,wi.apply(r,arguments))}}))),Ut({global:!0,wrap:!0,forced:Ai},{Promise:yi}),$e(yi,pi,!1),fo(pi),oi=dt(pi),Ut({target:pi,stat:!0,forced:Ai},{reject:function(t){var e=Si(this);return e.reject.call(void 0,t),e.promise}}),Ut({target:pi,stat:!0,forced:Ai},{resolve:function(t){return fi(this,t)}}),Ut({target:pi,stat:!0,forced:Ri},{all:function(t){var e=this,n=Si(e),r=n.resolve,o=n.reject,i=si((function(){var n=Bt(e.resolve),i=[],c=0,a=1;oo(t,(function(t){var u=c++,f=!1;i.push(void 0),a++,n.call(e,t).then((function(t){f||(f=!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=Si(e),r=n.reject,o=si((function(){var o=Bt(e.resolve);oo(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var Di,zi,Fi={UNSUPPORTED_Y:o((function(){var t=Mi("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:o((function(){var t=Mi("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Ni=RegExp.prototype.exec,Ui=String.prototype.replace,Bi=Ni,Gi=(Di=/a/,zi=/b*/g,Ni.call(Di,"a"),Ni.call(zi,"a"),0!==Di.lastIndex||0!==zi.lastIndex),Ki=Fi.UNSUPPORTED_Y||Fi.BROKEN_CARET,Wi=void 0!==/()??/.exec("")[1];(Gi||Wi||Ki)&&(Bi=function(t){var e,n,r,o,i=this,c=Ki&&i.sticky,a=ce.call(i),u=i.source,f=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,f++),n=new RegExp("^(?:"+u+")",a)),Wi&&(n=new RegExp("^"+u+"$(?!\\s)",a)),Gi&&(e=i.lastIndex),r=Ni.call(c?n:i,s),c?r?(r.input=r.input.slice(f),r[0]=r[0].slice(f),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Gi&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),Wi&&r&&r.length>1&&Ui.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var Vi=Bi;Ut({target:"RegExp",proto:!0,forced:/./.exec!==Vi},{exec:Vi});co("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),ho);var Yi=function(t){return function(e,n){var r,o,i=String(ft(e)),c=mt(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}},Hi={codeAt:Yi(!1),charAt:Yi(!0)},Ji=Hi.charAt,Qi=H.set,Xi=H.getterFor("String Iterator");_r(String,"String",(function(t){Qi(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=Xi(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=Ji(n,r),e.index+=t.length,{value:t,done:!1})}));var Zi=I("species"),tc=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),ec="$0"==="a".replace(/./,"$0"),nc=I("replace"),rc=!!/./[nc]&&""===/./[nc]("a","$0"),oc=!o((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]})),ic=function(t,e,n,r){var i=I(t),c=!o((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),a=c&&!o((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Zi]=function(){return n},n.flags="",n[i]=/./[i]),n.exec=function(){return e=!0,null},n[i](""),!e}));if(!c||!a||"replace"===t&&(!tc||!ec||rc)||"split"===t&&!oc){var u=/./[i],f=n(i,""[t],(function(t,e,n,r,o){return e.exec===Vi?c&&!o?{done:!0,value:u.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:ec,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:rc}),s=f[0],l=f[1];J(String.prototype,t,s),J(RegExp.prototype,i,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)})}r&&g(RegExp.prototype[i],"sham",!0)},cc=Hi.charAt,ac=function(t,e,n){return e+(n?cc(t,e).length:1)},uc=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 Vi.call(t,e)},fc=Math.max,sc=Math.min,lc=Math.floor,vc=/\$([$&'`]|\d\d?|<[^>]*>)/g,pc=/\$([$&'`]|\d\d?)/g;ic("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=ft(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 u=n(e,t,this,r);if(u.done)return u.value}var f=l(t),s=String(this),v="function"==typeof r;v||(r=String(r));var p=f.global;if(p){var h=f.unicode;f.lastIndex=0}for(var d=[];;){var g=uc(f,s);if(null===g)break;if(d.push(g),!p)break;""===String(g[0])&&(f.lastIndex=ac(s,xt(f.lastIndex),h))}for(var y,m="",b=0,x=0;x<d.length;x++){g=d[x];for(var w=String(g[0]),S=fc(sc(mt(g.index),s.length),0),E=[],O=1;O<g.length;O++)E.push(void 0===(y=g[O])?y:String(y));var j=g.groups;if(v){var A=[w].concat(E,S,s);void 0!==j&&A.push(j);var R=String(r.apply(void 0,A))}else R=a(w,s,S,E,j,r);S>=b&&(m+=s.slice(b,S)+R,b=S+w.length)}return m+s.slice(b)}];function a(t,n,r,o,i,c){var a=r+t.length,u=o.length,f=pc;return void 0!==i&&(i=Se(i),f=vc),e.call(c,f,(function(e,c){var f;switch(c.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(a);case"<":f=i[c.slice(1,-1)];break;default:var s=+c;if(0===s)return e;if(s>u){var l=lc(s/10);return 0===l?e:l<=u?void 0===o[l-1]?c.charAt(1):o[l-1]+c.charAt(1):e}f=o[s-1]}return void 0===f?"":f}))}}));var hc=I("match"),dc=[].push,gc=Math.min,yc=!o((function(){return!RegExp(4294967295,"y")}));ic("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(ft(this)),a=void 0===n?4294967295:n>>>0;if(0===a)return[];if(void 0===t)return[i];if(!c(r=t)||!(void 0!==(o=r[hc])?o:"RegExp"==X(r)))return e.call(i,t,a);for(var u,f,s,l=[],v=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,h=new RegExp(t.source,v+"g");(u=Vi.call(h,i))&&!((f=h.lastIndex)>p&&(l.push(i.slice(p,u.index)),u.length>1&&u.index<i.length&&dc.apply(l,u.slice(1)),s=u[0].length,p=f,l.length>=a));)h.lastIndex===u.index&&h.lastIndex++;return p===i.length?!s&&h.test("")||l.push(""):l.push(i.slice(p)),l.length>a?l.slice(0,a):l}:"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=ft(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=l(t),a=String(this),u=jo(c,RegExp),f=c.unicode,s=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(yc?"y":"g"),v=new u(yc?c:"^(?:"+c.source+")",s),p=void 0===o?4294967295:o>>>0;if(0===p)return[];if(0===a.length)return null===uc(v,a)?[a]:[];for(var h=0,d=0,g=[];d<a.length;){v.lastIndex=yc?d:0;var y,m=uc(v,yc?a:a.slice(d));if(null===m||(y=gc(xt(v.lastIndex+(yc?0:d)),a.length))===h)d=ac(a,d,f);else{if(g.push(a.slice(h,d)),g.length===p)return g;for(var b=1;b<=m.length-1;b++)if(g.push(m[b]),g.length===p)return g;d=h=y}}return g.push(a.slice(h)),g}]}),!yc);var mc=/"/g;Ut({target:"String",proto:!0,forced:function(t){return o((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(ft(this)),i="<"+e,""!==n&&(i+=" "+n+'="'+String(r).replace(mc,"&quot;")+'"'),i+">"+o+"</"+e+">";var e,n,r,o,i}});var bc={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};for(var xc in bc){var wc=r[xc],Sc=wc&&wc.prototype;if(Sc&&Sc.forEach!==Qn)try{g(Sc,"forEach",Qn)}catch(t){Sc.forEach=Qn}}var Ec,Oc=I("iterator"),jc=I("toStringTag"),Ac=Lr.values;for(var Rc in bc){var Pc=r[Rc],kc=Pc&&Pc.prototype;if(kc){if(kc[Oc]!==Ac)try{g(kc,Oc,Ac)}catch(t){kc[Oc]=Ac}if(kc[jc]||g(kc,jc,Rc),bc[Rc])for(var Ic in Lr)if(kc[Ic]!==Lr[Ic])try{g(kc,Ic,Lr[Ic])}catch(t){kc[Ic]=Lr[Ic]}}}function Tc(t){return function(t){if(Array.isArray(t))return me(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||be(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 $c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _c(){}function Cc(t){return t()}function qc(){return Object.create(null)}function Lc(t){t.forEach(Cc)}function Mc(t){return"function"==typeof t}function Dc(t,e){return t!=t?e==e:t!==e||t&&"object"===de(t)||"function"==typeof t}function zc(t,e){t.appendChild(e)}function Fc(t,e,n){t.insertBefore(e,n||null)}function Nc(t){t.parentNode.removeChild(t)}function Uc(t){return document.createElement(t)}function Bc(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Gc(t){return document.createTextNode(t)}function Kc(){return Gc(" ")}function Wc(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function Vc(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function Yc(t){return Array.from(t.childNodes)}function Hc(t,e,n){t.classList[n?"add":"remove"](e)}function Jc(t){Ec=t}function Qc(t,e){var n=t.$$.callbacks[e.type];n&&n.slice().forEach((function(t){return t(e)}))}var Xc=[],Zc=[],ta=[],ea=[],na=Promise.resolve(),ra=!1;function oa(t){ta.push(t)}var ia=!1,ca=new Set;function aa(){if(!ia){ia=!0;do{for(var t=0;t<Xc.length;t+=1){var e=Xc[t];Jc(e),ua(e.$$)}for(Xc.length=0;Zc.length;)Zc.pop()();for(var n=0;n<ta.length;n+=1){var r=ta[n];ca.has(r)||(ca.add(r),r())}ta.length=0}while(Xc.length);for(;ea.length;)ea.pop()();ra=!1,ia=!1,ca.clear()}}function ua(t){if(null!==t.fragment){t.update(),Lc(t.before_update);var e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(oa)}}var fa=new Set;function sa(t,e){t&&t.i&&(fa.delete(t),t.i(e))}function la(t,e,n,r){if(t&&t.o){if(fa.has(t))return;fa.add(t),(void 0).c.push((function(){fa.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function va(t){t&&t.c()}function pa(t,e,n){var r=t.$$,o=r.fragment,i=r.on_mount,c=r.on_destroy,a=r.after_update;o&&o.m(e,n),oa((function(){var e=i.map(Cc).filter(Mc);c?c.push.apply(c,Tc(e)):Lc(e),t.$$.on_mount=[]})),a.forEach(oa)}function ha(t,e){var n=t.$$;null!==n.fragment&&(Lc(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function da(t,e){-1===t.$$.dirty[0]&&(Xc.push(t),ra||(ra=!0,na.then(aa)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ga(t,e,n,r,o,i){var c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[-1],a=Ec;Jc(t);var u=e.props||{},f=t.$$={fragment:null,ctx:null,props:i,update:_c,not_equal:o,bound:qc(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:[]),callbacks:qc(),dirty:c},s=!1;if(f.ctx=n?n(t,u,(function(e,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return f.ctx&&o(f.ctx[e],f.ctx[e]=r)&&(f.bound[e]&&f.bound[e](r),s&&da(t,e)),n})):[],f.update(),s=!0,Lc(f.before_update),f.fragment=!!r&&r(f.ctx),e.target){if(e.hydrate){var l=Yc(e.target);f.fragment&&f.fragment.l(l),l.forEach(Nc)}else f.fragment&&f.fragment.c();e.intro&&sa(t.$$.fragment),pa(t,e.target,e.anchor),aa()}Jc(a)}var ya=function(){function t(){le(this,t)}var e,n,r;return e=t,(n=[{key:"$destroy",value:function(){ha(this,1),this.$destroy=_c}},{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(){}}])&&$c(e.prototype,n),r&&$c(e,r),t}();function ma(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ye(t);if(e){var o=ye(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ge(this,n)}}function ba(t){var e,n,r;return{c:function(){(e=Uc("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=Kc(),(r=Uc("pre")).innerHTML='<code class="svelte-19qvehx">\n &lt;script\n <br class="svelte-19qvehx">\n id=&quot;chatbot&quot;\n <br class="svelte-19qvehx">\n data-server=&quot;https://server.com/webclient&quot;\n <br class="svelte-19qvehx">\n defer\n <br class="svelte-19qvehx">\n src=&quot;https://server.com/webclient/embed/bundle.js&quot;&gt; &lt;/script&gt;\n </code>',Vc(e,"class","svelte-19qvehx"),Vc(r,"class","svelte-19qvehx")},m:function(t,o){Fc(t,e,o),Fc(t,n,o),Fc(t,r,o)},p:_c,d:function(t){t&&Nc(e),t&&Nc(n),t&&Nc(r)}}}function xa(t){var e,n,r,o,i,c,a,u,f,s,l,v;return{c:function(){e=Uc("div"),n=Uc("div"),r=Uc("img"),i=Kc(),c=Bc("svg"),a=Bc("path"),u=Kc(),f=Uc("iframe"),r.src!==(o="".concat(t[0],"/embed/logo.svg"))&&Vc(r,"src",o),Vc(r,"alt","Logo"),Vc(r,"class","svelte-19qvehx"),Vc(a,"d","M0,0L20,20M20,0L0,20"),Vc(a,"class","svelte-19qvehx"),Vc(c,"viewBox","-2 -2 24 24"),Vc(c,"class","svelte-19qvehx"),Vc(n,"class","header svelte-19qvehx"),Vc(f,"id","chat-frame"),Vc(f,"title","chatbot"),Vc(f,"class","bot svelte-19qvehx"),f.src!==(s=t[0])&&Vc(f,"src",s),Vc(f,"frameborder","0"),f.allowFullscreen="",Vc(e,"class","bot-border svelte-19qvehx"),Hc(e,"closed",!t[1])},m:function(o,s){Fc(o,e,s),zc(e,n),zc(n,r),zc(n,i),zc(n,c),zc(c,a),zc(e,u),zc(e,f),l||(v=Wc(c,"click",t[2]),l=!0)},p:function(t,n){1&n&&r.src!==(o="".concat(t[0],"/embed/logo.svg"))&&Vc(r,"src",o),1&n&&f.src!==(s=t[0])&&Vc(f,"src",s),2&n&&Hc(e,"closed",!t[1])},d:function(t){t&&Nc(e),l=!1,v()}}}function wa(t){var e;function n(t,e){return t[0]?xa:ba}var r=n(t),o=r(t);return{c:function(){o.c(),e=Gc("")},m:function(t,n){o.m(t,n),Fc(t,e,n)},p:function(t,i){var c=xe(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:_c,o:_c,d:function(t){o.d(t),t&&Nc(e)}}}function Sa(t,e,n){var r=e.server,o=e.open;return t.$set=function(t){"server"in t&&n(0,r=t.server),"open"in t&&n(1,o=t.open)},[r,o,function(e){Qc(t,e)}]}var Ea=function(t){he(n,t);var e=ma(n);function n(t){var r,o;return le(this,n),r=e.call(this),document.getElementById("svelte-19qvehx-style")||((o=Uc("style")).id="svelte-19qvehx-style",o.textContent=".svelte-19qvehx.svelte-19qvehx,.svelte-19qvehx.svelte-19qvehx:before,.svelte-19qvehx.svelte-19qvehx:after{box-sizing:border-box}.bot-border.svelte-19qvehx.svelte-19qvehx{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-19qvehx.svelte-19qvehx{transform:translateY(85vh);opacity:0}.header.svelte-19qvehx.svelte-19qvehx{display:flex;justify-content:space-between;width:100%;height:3.5em;padding:0.5em 1em;color:white;background-color:#3f4143}.bot.svelte-19qvehx.svelte-19qvehx{display:block;width:100%;flex:1 0 auto}@media screen and (min-width: 768px){.bot-border.svelte-19qvehx.svelte-19qvehx{height:38em;max-height:calc(100vh - 2rem);width:23em;right:1em;bottom:1em;left:auto}.bot-border.closed.svelte-19qvehx.svelte-19qvehx{transform:translateY(38em);opacity:0}}img.svelte-19qvehx.svelte-19qvehx{display:block;height:100%}svg.svelte-19qvehx.svelte-19qvehx{height:100%;padding:0.4em;cursor:pointer}svg.svelte-19qvehx path.svelte-19qvehx{transition:stroke-width 100ms;stroke:white;stroke-width:2px}svg.svelte-19qvehx:hover path.svelte-19qvehx{stroke-width:3px}p.svelte-19qvehx.svelte-19qvehx,pre.svelte-19qvehx.svelte-19qvehx{max-width:300px}pre.svelte-19qvehx.svelte-19qvehx{font-size:0.6em;line-height:0.5}",zc(document.head,o)),ga(ve(r),t,Sa,wa,Dc,{server:0,open:1}),r}return n}(ya);function Oa(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ye(t);if(e){var o=ye(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ge(this,n)}}function ja(t){var e,n,r,o,i;return{c:function(){e=Uc("div"),Vc(n=Uc("img"),"class","chat-button svelte-xlhtz"),Vc(n,"alt","Open chatbot"),n.src!==(r="".concat(t[0],"/embed/open-button.svg"))&&Vc(n,"src",r),Vc(e,"class","chat-button-wrapper svelte-xlhtz")},m:function(r,c){Fc(r,e,c),zc(e,n),o||(i=Wc(n,"click",t[1]),o=!0)},p:function(t,e){1&xe(e,1)[0]&&n.src!==(r="".concat(t[0],"/embed/open-button.svg"))&&Vc(n,"src",r)},i:_c,o:_c,d:function(t){t&&Nc(e),o=!1,i()}}}function Aa(t,e,n){var r=e.server;return t.$set=function(t){"server"in t&&n(0,r=t.server)},[r,function(e){Qc(t,e)}]}var Ra=function(t){he(n,t);var e=Oa(n);function n(t){var r,o;return le(this,n),r=e.call(this),document.getElementById("svelte-xlhtz-style")||((o=Uc("style")).id="svelte-xlhtz-style",o.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)}",zc(document.head,o)),ga(ve(r),t,Aa,ja,Dc,{server:0}),r}return n}(ya),Pa=function(t){var e=window.addEventListener?"addEventListener":"attachEvent";(0,window[e])("attachEvent"===e?"onmessage":"message",(function(e){var n,r=e.data;switch(r.type){case"webclient.expand.window":t();break;case"webclient.change.url":n=r.url,document.location.href=n}}),!1)};ic("match",1,(function(t,e,n){return[function(e){var n=ft(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=l(t),i=String(this);if(!o.global)return uc(o,i);var c=o.unicode;o.lastIndex=0;for(var a,u=[],f=0;null!==(a=uc(o,i));){var s=String(a[0]);u[f]=s,""===s&&(o.lastIndex=ac(i,xt(o.lastIndex),c)),f++}return 0===f?null:u}]}));var ka=function(){navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&document.querySelectorAll("html, body").forEach((function(t){t.classList.add("iOS-device")}))},Ia=e((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 f=e(a[0]);if(u=(r.read||r)(u,f)||e(u),n)try{u=JSON.parse(u)}catch(t){}if(o[f]=u,t===f)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()})),Ta=function(t){Ia.set("bot-window",t)};function $a(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=ye(t);if(e){var o=ye(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ge(this,n)}}function _a(t){var e,n,r,o,i,c,a,u;return(i=new Ra({props:{server:t[0]}})).$on("click",t[2]),(a=new Ea({props:{server:t[0],open:t[1]}})).$on("click",t[2]),{c:function(){e=Uc("link"),r=Kc(),o=Uc("div"),va(i.$$.fragment),c=Kc(),va(a.$$.fragment),Vc(e,"rel","stylesheet"),Vc(e,"href",n="".concat(t[0],"/embed/custom.css")),Vc(o,"id","chatbot-window"),Vc(o,"class","svelte-sr5aex")},m:function(t,n){zc(document.head,e),Fc(t,r,n),Fc(t,o,n),pa(i,o,null),zc(o,c),pa(a,o,null),u=!0},p:function(t,r){var o=xe(r,1)[0];(!u||1&o&&n!==(n="".concat(t[0],"/embed/custom.css")))&&Vc(e,"href",n);var c={};1&o&&(c.server=t[0]),i.$set(c);var f={};1&o&&(f.server=t[0]),2&o&&(f.open=t[1]),a.$set(f)},i:function(t){u||(sa(i.$$.fragment,t),sa(a.$$.fragment,t),u=!0)},o:function(t){la(i.$$.fragment,t),la(a.$$.fragment,t),u=!1},d:function(t){Nc(e),t&&Nc(r),t&&Nc(o),ha(i),ha(a)}}}function Ca(t,e,n){var r=e.server;ka();var o=function(){switch(Ia.get("bot-window")){case"open":return!0;case"closed":default:return!1}}();return Pa((function(){n(1,o=!0),Ta("open")})),t.$set=function(t){"server"in t&&n(0,r=t.server)},[r,o,function(){n(1,o=!o),Ta(o?"open":"closed")}]}var qa=function(t){he(n,t);var e=$a(n);function n(t){var r,o;return le(this,n),r=e.call(this),document.getElementById("svelte-sr5aex-style")||((o=Uc("style")).id="svelte-sr5aex-style",o.textContent="#chatbot-window.svelte-sr5aex{font-size:16px}",zc(document.head,o)),ga(ve(r),t,Ca,_a,Dc,{server:0}),r}return n}(ya),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"));return console.log("Chatbot is loading from",La),new qa({target:document.body,props:{server:La}})}();
2
2
  //# sourceMappingURL=bundle.js.map