@botfabrik/engine-webclient 4.60.1 → 4.61.4

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,4 +1,19 @@
1
- var chatbot=function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t,e){return t(e={exports:{}},e.exports),e.exports}var n,o,i=function(t){return t&&t.Math==Math&&t},a=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||function(){return this}()||Function("return this")(),u=Object.defineProperty,c=function(t,e){try{u(a,t,{value:e,configurable:!0,writable:!0})}catch(r){a[t]=e}return e},f=a["__core-js_shared__"]||c("__core-js_shared__",{}),s=r((function(t){(t.exports=function(t,e){return f[t]||(f[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.26.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),l=function(t){try{return!!t()}catch(t){return!0}},d=!l((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),h=Function.prototype,v=h.call,p=d&&h.bind.bind(v,v),y=d?p:function(t){return function(){return v.apply(t,arguments)}},g=function(t){return null==t},b=TypeError,m=function(t){if(g(t))throw b("Can't call method on "+t);return t},w=Object,x=function(t){return w(m(t))},A=y({}.hasOwnProperty),T=Object.hasOwn||function(t,e){return A(x(t),e)},S=0,E=Math.random(),O=y(1..toString),j=function(t){return"Symbol("+(void 0===t?"":t)+")_"+O(++S+E,36)},R="object"==typeof document&&document.all,I={all:R,IS_HTMLDDA:void 0===R&&void 0!==R},P=I.all,_=I.IS_HTMLDDA?function(t){return"function"==typeof t||t===P}:function(t){return"function"==typeof t},k=function(t){return _(t)?t:void 0},C=function(t,e){return arguments.length<2?k(a[t]):a[t]&&a[t][e]},M=C("navigator","userAgent")||"",$=a.process,L=a.Deno,F=$&&$.versions||L&&L.version,N=F&&F.v8;N&&(o=(n=N.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&M&&(!(n=M.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=M.match(/Chrome\/(\d+)/))&&(o=+n[1]);var U=o,D=!!Object.getOwnPropertySymbols&&!l((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&U&&U<41})),B=D&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,W=s("wks"),z=a.Symbol,G=z&&z.for,V=B?z:z&&z.withoutSetter||j,Y=function(t){if(!T(W,t)||!D&&"string"!=typeof W[t]){var e="Symbol."+t;D&&T(z,t)?W[t]=z[t]:W[t]=B&&G?G(e):V(e)}return W[t]},H={};H[Y("toStringTag")]="z";var q="[object z]"===String(H),K=!l((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),J=I.all,X=I.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:_(t)||t===J}:function(t){return"object"==typeof t?null!==t:_(t)},Q=a.document,Z=X(Q)&&X(Q.createElement),tt=function(t){return Z?Q.createElement(t):{}},et=!K&&!l((function(){return 7!=Object.defineProperty(tt("div"),"a",{get:function(){return 7}}).a})),rt=K&&l((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),nt=String,ot=TypeError,it=function(t){if(X(t))return t;throw ot(nt(t)+" is not an object")},at=Function.prototype.call,ut=d?at.bind(at):function(){return at.apply(at,arguments)},ct=y({}.isPrototypeOf),ft=Object,st=B?function(t){return"symbol"==typeof t}:function(t){var e=C("Symbol");return _(e)&&ct(e.prototype,ft(t))},lt=String,dt=function(t){try{return lt(t)}catch(t){return"Object"}},ht=TypeError,vt=function(t){if(_(t))return t;throw ht(dt(t)+" is not a function")},pt=function(t,e){var r=t[e];return g(r)?void 0:vt(r)},yt=TypeError,gt=TypeError,bt=Y("toPrimitive"),mt=function(t,e){if(!X(t)||st(t))return t;var r,n=pt(t,bt);if(n){if(void 0===e&&(e="default"),r=ut(n,t,e),!X(r)||st(r))return r;throw gt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&_(r=t.toString)&&!X(n=ut(r,t)))return n;if(_(r=t.valueOf)&&!X(n=ut(r,t)))return n;if("string"!==e&&_(r=t.toString)&&!X(n=ut(r,t)))return n;throw yt("Can't convert object to primitive value")}(t,e)},wt=function(t){var e=mt(t,"string");return st(e)?e:e+""},xt=TypeError,At=Object.defineProperty,Tt=Object.getOwnPropertyDescriptor,St={f:K?rt?function(t,e,r){if(it(t),e=wt(e),it(r),"function"==typeof t&&"prototype"===e&&"value"in r&&"writable"in r&&!r.writable){var n=Tt(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return At(t,e,r)}:At:function(t,e,r){if(it(t),e=wt(e),it(r),et)try{return At(t,e,r)}catch(t){}if("get"in r||"set"in r)throw xt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Et=Function.prototype,Ot=K&&Object.getOwnPropertyDescriptor,jt=T(Et,"name"),Rt={EXISTS:jt,PROPER:jt&&"something"===function(){}.name,CONFIGURABLE:jt&&(!K||K&&Ot(Et,"name").configurable)},It=y(Function.toString);_(f.inspectSource)||(f.inspectSource=function(t){return It(t)});var Pt,_t,kt,Ct=f.inspectSource,Mt=a.WeakMap,$t=_(Mt)&&/native code/.test(String(Mt)),Lt=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Ft=K?function(t,e,r){return St.f(t,e,Lt(1,r))}:function(t,e,r){return t[e]=r,t},Nt=s("keys"),Ut=function(t){return Nt[t]||(Nt[t]=j(t))},Dt={},Bt=a.TypeError,Wt=a.WeakMap;if($t||f.state){var zt=f.state||(f.state=new Wt);zt.get=zt.get,zt.has=zt.has,zt.set=zt.set,Pt=function(t,e){if(zt.has(t))throw Bt("Object already initialized");return e.facade=t,zt.set(t,e),e},_t=function(t){return zt.get(t)||{}},kt=function(t){return zt.has(t)}}else{var Gt=Ut("state");Dt[Gt]=!0,Pt=function(t,e){if(T(t,Gt))throw Bt("Object already initialized");return e.facade=t,Ft(t,Gt,e),e},_t=function(t){return T(t,Gt)?t[Gt]:{}},kt=function(t){return T(t,Gt)}}var Vt={set:Pt,get:_t,has:kt,enforce:function(t){return kt(t)?_t(t):Pt(t,{})},getterFor:function(t){return function(e){var r;if(!X(e)||(r=_t(e)).type!==t)throw Bt("Incompatible receiver, "+t+" required");return r}}},Yt=r((function(t){var e=Rt.CONFIGURABLE,r=Vt.enforce,n=Vt.get,o=Object.defineProperty,i=K&&!l((function(){return 8!==o((function(){}),"length",{value:8}).length})),a=String(String).split("String"),u=t.exports=function(t,n,u){"Symbol("===String(n).slice(0,7)&&(n="["+String(n).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),u&&u.getter&&(n="get "+n),u&&u.setter&&(n="set "+n),(!T(t,"name")||e&&t.name!==n)&&(K?o(t,"name",{value:n,configurable:!0}):t.name=n),i&&u&&T(u,"arity")&&t.length!==u.arity&&o(t,"length",{value:u.arity});try{u&&T(u,"constructor")&&u.constructor?K&&o(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var c=r(t);return T(c,"source")||(c.source=a.join("string"==typeof n?n:"")),t};Function.prototype.toString=u((function(){return _(this)&&n(this).source||Ct(this)}),"toString")})),Ht=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(_(r)&&Yt(r,i,n),n.global)o?t[e]=r:c(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:St.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},qt=y({}.toString),Kt=y("".slice),Jt=function(t){return Kt(qt(t),8,-1)},Xt=Y("toStringTag"),Qt=Object,Zt="Arguments"==Jt(function(){return arguments}()),te=q?Jt:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Qt(t),Xt))?r:Zt?Jt(e):"Object"==(n=Jt(e))&&_(e.callee)?"Arguments":n},ee=q?{}.toString:function(){return"[object "+te(this)+"]"};q||Ht(Object.prototype,"toString",ee,{unsafe:!0});var re={}.propertyIsEnumerable,ne=Object.getOwnPropertyDescriptor,oe={f:ne&&!re.call({1:2},1)?function(t){var e=ne(this,t);return!!e&&e.enumerable}:re},ie=Object,ae=y("".split),ue=l((function(){return!ie("z").propertyIsEnumerable(0)}))?function(t){return"String"==Jt(t)?ae(t,""):ie(t)}:ie,ce=function(t){return ue(m(t))},fe=Object.getOwnPropertyDescriptor,se={f:K?fe:function(t,e){if(t=ce(t),e=wt(e),et)try{return fe(t,e)}catch(t){}if(T(t,e))return Lt(!ut(oe.f,t,e),t[e])}},le=Math.ceil,de=Math.floor,he=Math.trunc||function(t){var e=+t;return(e>0?de:le)(e)},ve=function(t){var e=+t;return e!=e||0===e?0:he(e)},pe=Math.max,ye=Math.min,ge=function(t,e){var r=ve(t);return r<0?pe(r+e,0):ye(r,e)},be=Math.min,me=function(t){return t>0?be(ve(t),9007199254740991):0},we=function(t){return me(t.length)},xe=function(t){return function(e,r,n){var o,i=ce(e),a=we(i),u=ge(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Ae={includes:xe(!0),indexOf:xe(!1)},Te=Ae.indexOf,Se=y([].push),Ee=function(t,e){var r,n=ce(t),o=0,i=[];for(r in n)!T(Dt,r)&&T(n,r)&&Se(i,r);for(;e.length>o;)T(n,r=e[o++])&&(~Te(i,r)||Se(i,r));return i},Oe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],je=Oe.concat("length","prototype"),Re={f:Object.getOwnPropertyNames||function(t){return Ee(t,je)}},Ie={f:Object.getOwnPropertySymbols},Pe=y([].concat),_e=C("Reflect","ownKeys")||function(t){var e=Re.f(it(t)),r=Ie.f;return r?Pe(e,r(t)):e},ke=function(t,e,r){for(var n=_e(e),o=St.f,i=se.f,a=0;a<n.length;a++){var u=n[a];T(t,u)||r&&T(r,u)||o(t,u,i(e,u))}},Ce=/#|\.prototype\./,Me=function(t,e){var r=Le[$e(t)];return r==Ne||r!=Fe&&(_(e)?l(e):!!e)},$e=Me.normalize=function(t){return String(t).replace(Ce,".").toLowerCase()},Le=Me.data={},Fe=Me.NATIVE="N",Ne=Me.POLYFILL="P",Ue=Me,De=se.f,Be=function(t,e){var r,n,o,i,u,f=t.target,s=t.global,l=t.stat;if(r=s?a:l?a[f]||c(f,{}):(a[f]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(u=De(r,n))&&u.value:r[n],!Ue(s?n:f+(l?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;ke(i,o)}(t.sham||o&&o.sham)&&Ft(i,"sham",!0),Ht(r,n,i,t)}},We=Function.prototype,ze=We.apply,Ge=We.call,Ve="object"==typeof Reflect&&Reflect.apply||(d?Ge.bind(ze):function(){return Ge.apply(ze,arguments)}),Ye=y([].slice),He=Function,qe=y([].concat),Ke=y([].join),Je={},Xe=function(t,e,r){if(!T(Je,e)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";Je[e]=He("C,a","return new C("+Ke(n,",")+")")}return Je[e](t,r)},Qe=d?He.bind:function(t){var e=vt(this),r=e.prototype,n=Ye(arguments,1),o=function(){var r=qe(n,Ye(arguments));return this instanceof o?Xe(e,r.length,r):e.apply(t,r)};return X(r)&&(o.prototype=r),o},Ze=function(){},tr=[],er=C("Reflect","construct"),rr=/^\s*(?:class|function)\b/,nr=y(rr.exec),or=!rr.exec(Ze),ir=function(t){if(!_(t))return!1;try{return er(Ze,tr,t),!0}catch(t){return!1}},ar=function(t){if(!_(t))return!1;switch(te(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return or||!!nr(rr,Ct(t))}catch(t){return!0}};ar.sham=!0;var ur,cr=!er||l((function(){var t;return ir(ir.call)||!ir(Object)||!ir((function(){t=!0}))||t}))?ar:ir,fr=TypeError,sr=function(t){if(cr(t))return t;throw fr(dt(t)+" is not a constructor")},lr=Object.keys||function(t){return Ee(t,Oe)},dr={f:K&&!rt?Object.defineProperties:function(t,e){it(t);for(var r,n=ce(e),o=lr(e),i=o.length,a=0;i>a;)St.f(t,r=o[a++],n[r]);return t}},hr=C("document","documentElement"),vr=Ut("IE_PROTO"),pr=function(){},yr=function(t){return"<script>"+t+"<\/script>"},gr=function(t){t.write(yr("")),t.close();var e=t.parentWindow.Object;return t=null,e},br=function(){try{ur=new ActiveXObject("htmlfile")}catch(t){}var t,e;br="undefined"!=typeof document?document.domain&&ur?gr(ur):((e=tt("iframe")).style.display="none",hr.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(yr("document.F=Object")),t.close(),t.F):gr(ur);for(var r=Oe.length;r--;)delete br.prototype[Oe[r]];return br()};Dt[vr]=!0;var mr=Object.create||function(t,e){var r;return null!==t?(pr.prototype=it(t),r=new pr,pr.prototype=null,r[vr]=t):r=br(),void 0===e?r:dr.f(r,e)},wr=C("Reflect","construct"),xr=Object.prototype,Ar=[].push,Tr=l((function(){function t(){}return!(wr((function(){}),[],t)instanceof t)})),Sr=!l((function(){wr((function(){}))})),Er=Tr||Sr;function Or(t){return(Or="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 jr(t){var e=function(t,e){if("object"!==Or(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Or(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Or(e)?e:String(e)}function Rr(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,jr(n.key),n)}}function Ir(t,e,r){return e&&Rr(t.prototype,e),r&&Rr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Pr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kr(t,e){return(kr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function Cr(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&kr(t,e)}function Mr(t,e){if(e&&("object"===Or(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _r(t)}function $r(t){return($r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Lr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Fr(t,e){if(t){if("string"==typeof t)return Lr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Lr(t,e):void 0}}function Nr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,u=[],c=!0,f=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(u.push(n.value),u.length!==e);c=!0);}catch(t){f=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(f)throw o}}return u}}(t,e)||Fr(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.")}()}function Ur(t){return function(t){if(Array.isArray(t))return Lr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Fr(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.")}()}Be({target:"Reflect",stat:!0,forced:Er,sham:Er},{construct:function(t,e){sr(t),it(e);var r=arguments.length<3?t:sr(arguments[2]);if(Sr&&!Tr)return wr(t,e,r);if(t==r){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 n=[null];return Ve(Ar,n,e),new(Ve(Qe,t,n))}var o=r.prototype,i=mr(X(o)?o:xr),a=Ve(t,i,e);return X(a)?a:i}});var Dr={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},Br=tt("span").classList,Wr=Br&&Br.constructor&&Br.constructor.prototype,zr=Wr===Object.prototype?void 0:Wr,Gr=function(t){if("Function"===Jt(t))return y(t)},Vr=Gr(Gr.bind),Yr=function(t,e){return vt(t),void 0===e?t:d?Vr(t,e):function(){return t.apply(e,arguments)}},Hr=Array.isArray||function(t){return"Array"==Jt(t)},qr=Y("species"),Kr=Array,Jr=function(t,e){return new(function(t){var e;return Hr(t)&&(e=t.constructor,(cr(e)&&(e===Kr||Hr(e.prototype))||X(e)&&null===(e=e[qr]))&&(e=void 0)),void 0===e?Kr:e}(t))(0===e?0:e)},Xr=y([].push),Qr=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,u=5==t||i;return function(c,f,s,l){for(var d,h,v=x(c),p=ue(v),y=Yr(f,s),g=we(p),b=0,m=l||Jr,w=e?m(c,g):r||a?m(c,0):void 0;g>b;b++)if((u||b in p)&&(h=y(d=p[b],b,v),t))if(e)w[b]=h;else if(h)switch(t){case 3:return!0;case 5:return d;case 6:return b;case 2:Xr(w,d)}else switch(t){case 4:return!1;case 7:Xr(w,d)}return i?-1:n||o?o:w}},Zr={forEach:Qr(0),map:Qr(1),filter:Qr(2),some:Qr(3),every:Qr(4),find:Qr(5),findIndex:Qr(6),filterReject:Qr(7)},tn=function(t,e){var r=[][t];return!!r&&l((function(){r.call(null,e||function(){return 1},1)}))},en=Zr.forEach,rn=tn("forEach")?[].forEach:function(t){return en(this,t,arguments.length>1?arguments[1]:void 0)},nn=function(t){if(t&&t.forEach!==rn)try{Ft(t,"forEach",rn)}catch(e){t.forEach=rn}};for(var on in Dr)Dr[on]&&nn(a[on]&&a[on].prototype);nn(zr);var an=l((function(){lr(1)}));Be({target:"Object",stat:!0,forced:an},{keys:function(t){return lr(x(t))}});var un=function(t,e,r){var n=wt(e);n in t?St.f(t,n,Lt(0,r)):t[n]=r},cn=Y("species"),fn=function(t){return U>=51||!l((function(){var e=[];return(e.constructor={})[cn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},sn=fn("slice"),ln=Y("species"),dn=Array,hn=Math.max;Be({target:"Array",proto:!0,forced:!sn},{slice:function(t,e){var r,n,o,i=ce(this),a=we(i),u=ge(t,a),c=ge(void 0===e?a:e,a);if(Hr(i)&&(r=i.constructor,(cr(r)&&(r===dn||Hr(r.prototype))||X(r)&&null===(r=r[ln]))&&(r=void 0),r===dn||void 0===r))return Ye(i,u,c);for(n=new(void 0===r?dn:r)(hn(c-u,0)),o=0;u<c;u++,o++)u in i&&un(n,o,i[u]);return n.length=o,n}});var vn=St.f,pn=Y("unscopables"),yn=Array.prototype;null==yn[pn]&&vn(yn,pn,{configurable:!0,value:mr(null)});var gn,bn,mn,wn=function(t){yn[pn][t]=!0},xn={},An=!l((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Tn=Ut("IE_PROTO"),Sn=Object,En=Sn.prototype,On=An?Sn.getPrototypeOf:function(t){var e=x(t);if(T(e,Tn))return e[Tn];var r=e.constructor;return _(r)&&e instanceof r?r.prototype:e instanceof Sn?En:null},jn=Y("iterator"),Rn=!1;[].keys&&("next"in(mn=[].keys())?(bn=On(On(mn)))!==Object.prototype&&(gn=bn):Rn=!0),(!X(gn)||l((function(){var t={};return gn[jn].call(t)!==t})))&&(gn={}),_(gn[jn])||Ht(gn,jn,(function(){return this}));var In={IteratorPrototype:gn,BUGGY_SAFARI_ITERATORS:Rn},Pn=St.f,_n=Y("toStringTag"),kn=function(t,e,r){t&&!r&&(t=t.prototype),t&&!T(t,_n)&&Pn(t,_n,{configurable:!0,value:e})},Cn=In.IteratorPrototype,Mn=function(){return this},$n=String,Ln=TypeError,Fn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=y(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return it(r),function(t){if("object"==typeof t||_(t))return t;throw Ln("Can't set "+$n(t)+" as a prototype")}(n),e?t(r,n):r.__proto__=n,r}}():void 0),Nn=Rt.PROPER,Un=Rt.CONFIGURABLE,Dn=In.IteratorPrototype,Bn=In.BUGGY_SAFARI_ITERATORS,Wn=Y("iterator"),zn=function(){return this},Gn=function(t,e,r,n,o,i,a){!function(t,e,r,n){var o=e+" Iterator";t.prototype=mr(Cn,{next:Lt(+!n,r)}),kn(t,o,!1),xn[o]=Mn}(r,e,n);var u,c,f,s=function(t){if(t===o&&p)return p;if(!Bn&&t in h)return h[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",d=!1,h=t.prototype,v=h[Wn]||h["@@iterator"]||o&&h[o],p=!Bn&&v||s(o),y="Array"==e&&h.entries||v;if(y&&(u=On(y.call(new t)))!==Object.prototype&&u.next&&(On(u)!==Dn&&(Fn?Fn(u,Dn):_(u[Wn])||Ht(u,Wn,zn)),kn(u,l,!0)),Nn&&"values"==o&&v&&"values"!==v.name&&(Un?Ft(h,"name","values"):(d=!0,p=function(){return ut(v,this)})),o)if(c={values:s("values"),keys:i?p:s("keys"),entries:s("entries")},a)for(f in c)(Bn||d||!(f in h))&&Ht(h,f,c[f]);else Be({target:e,proto:!0,forced:Bn||d},c);return h[Wn]!==p&&Ht(h,Wn,p,{name:o}),xn[e]=p,c},Vn=function(t,e){return{value:t,done:e}},Yn=St.f,Hn=Vt.set,qn=Vt.getterFor("Array Iterator"),Kn=Gn(Array,"Array",(function(t,e){Hn(this,{type:"Array Iterator",target:ce(t),index:0,kind:e})}),(function(){var t=qn(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,Vn(void 0,!0)):Vn("keys"==r?n:"values"==r?e[n]:[n,e[n]],!1)}),"values"),Jn=xn.Arguments=xn.Array;if(wn("keys"),wn("values"),wn("entries"),K&&"values"!==Jn.name)try{Yn(Jn,"name",{value:"values"})}catch(t){}var Xn=Array,Qn=Math.max,Zn=function(t,e,r){for(var n=we(t),o=ge(e,n),i=ge(void 0===r?n:r,n),a=Xn(Qn(i-o,0)),u=0;o<i;o++,u++)un(a,u,t[o]);return a.length=u,a},to=Re.f,eo="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ro={f:function(t){return eo&&"Window"==Jt(t)?function(t){try{return to(t)}catch(t){return Zn(eo)}}(t):to(ce(t))}},no=l((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),oo=Object.isExtensible,io=l((function(){oo(1)}))||no?function(t){return!!X(t)&&((!no||"ArrayBuffer"!=Jt(t))&&(!oo||oo(t)))}:oo,ao=!l((function(){return Object.isExtensible(Object.preventExtensions({}))})),uo=r((function(t){var e=St.f,r=!1,n=j("meta"),o=0,i=function(t){e(t,n,{value:{objectID:"O"+o++,weakData:{}}})},a=t.exports={enable:function(){a.enable=function(){},r=!0;var t=Re.f,e=y([].splice),o={};o[n]=1,t(o).length&&(Re.f=function(r){for(var o=t(r),i=0,a=o.length;i<a;i++)if(o[i]===n){e(o,i,1);break}return o},Be({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ro.f}))},fastKey:function(t,e){if(!X(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!T(t,n)){if(!io(t))return"F";if(!e)return"E";i(t)}return t[n].objectID},getWeakData:function(t,e){if(!T(t,n)){if(!io(t))return!0;if(!e)return!1;i(t)}return t[n].weakData},onFreeze:function(t){return ao&&r&&io(t)&&!T(t,n)&&i(t),t}};Dt[n]=!0}));uo.enable,uo.fastKey,uo.getWeakData,uo.onFreeze;var co=Y("iterator"),fo=Array.prototype,so=function(t){return void 0!==t&&(xn.Array===t||fo[co]===t)},lo=Y("iterator"),ho=function(t){if(!g(t))return pt(t,lo)||pt(t,"@@iterator")||xn[te(t)]},vo=TypeError,po=function(t,e){var r=arguments.length<2?ho(t):e;if(vt(r))return it(ut(r,t));throw vo(dt(t)+" is not iterable")},yo=function(t,e,r){var n,o;it(t);try{if(!(n=pt(t,"return"))){if("throw"===e)throw r;return r}n=ut(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return it(n),r},go=TypeError,bo=function(t,e){this.stopped=t,this.result=e},mo=bo.prototype,wo=function(t,e,r){var n,o,i,a,u,c,f,s=r&&r.that,l=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),p=Yr(e,s),y=function(t){return n&&yo(n,"normal",t),new bo(!0,t)},g=function(t){return l?(it(t),v?p(t[0],t[1],y):p(t[0],t[1])):v?p(t,y):p(t)};if(d)n=t.iterator;else if(h)n=t;else{if(!(o=ho(t)))throw go(dt(t)+" is not iterable");if(so(o)){for(i=0,a=we(t);a>i;i++)if((u=g(t[i]))&&ct(mo,u))return u;return new bo(!1)}n=po(t,o)}for(c=d?t.next:n.next;!(f=ut(c,n)).done;){try{u=g(f.value)}catch(t){yo(n,"throw",t)}if("object"==typeof u&&u&&ct(mo,u))return u}return new bo(!1)},xo=TypeError,Ao=function(t,e){if(ct(e,t))return t;throw xo("Incorrect invocation")},To=Y("iterator"),So=!1;try{var Eo=0,Oo={next:function(){return{done:!!Eo++}},return:function(){So=!0}};Oo[To]=function(){return this},Array.from(Oo,(function(){throw 2}))}catch(t){}var jo=function(t,e){if(!e&&!So)return!1;var r=!1;try{var n={};n[To]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},Ro=function(t,e,r){var n,o;return Fn&&_(n=e.constructor)&&n!==r&&X(o=n.prototype)&&o!==r.prototype&&Fn(t,o),t},Io=function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=a[t],c=u&&u.prototype,f=u,s={},d=function(t){var e=y(c[t]);Ht(c,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!X(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return o&&!X(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!X(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(Ue(t,!_(u)||!(o||c.forEach&&!l((function(){(new u).entries().next()})))))f=r.getConstructor(e,t,n,i),uo.enable();else if(Ue(t,!0)){var h=new f,v=h[i](o?{}:-0,1)!=h,p=l((function(){h.has(1)})),b=jo((function(t){new u(t)})),m=!o&&l((function(){for(var t=new u,e=5;e--;)t[i](e,e);return!t.has(-0)}));b||((f=e((function(t,e){Ao(t,c);var r=Ro(new u,t,f);return g(e)||wo(e,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=c,c.constructor=f),(p||m)&&(d("delete"),d("has"),n&&d("get")),(m||v)&&d(i),o&&c.clear&&delete c.clear}return s[t]=f,Be({global:!0,constructor:!0,forced:f!=u},s),kn(f,t),o||r.setStrong(f,t,n),f},Po=function(t,e,r){for(var n in e)Ht(t,n,e[n],r);return t},_o=Y("species"),ko=function(t){var e=C(t),r=St.f;K&&e&&!e[_o]&&r(e,_o,{configurable:!0,get:function(){return this}})},Co=St.f,Mo=uo.fastKey,$o=Vt.set,Lo=Vt.getterFor,Fo={getConstructor:function(t,e,r,n){var o=t((function(t,o){Ao(t,i),$o(t,{type:e,index:mr(null),first:void 0,last:void 0,size:0}),K||(t.size=0),g(o)||wo(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,a=Lo(e),u=function(t,e,r){var n,o,i=a(t),u=c(t,e);return u?u.value=r:(i.last=u={index:o=Mo(e,!0),key:e,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=u),n&&(n.next=u),K?i.size++:t.size++,"F"!==o&&(i.index[o]=u)),t},c=function(t,e){var r,n=a(t),o=Mo(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return Po(i,{clear:function(){for(var t=a(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,K?t.size=0:this.size=0},delete:function(t){var e=a(this),r=c(this,t);if(r){var n=r.next,o=r.previous;delete e.index[r.index],r.removed=!0,o&&(o.next=n),n&&(n.previous=o),e.first==r&&(e.first=n),e.last==r&&(e.last=o),K?e.size--:this.size--}return!!r},forEach:function(t){for(var e,r=a(this),n=Yr(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!c(this,t)}}),Po(i,r?{get:function(t){var e=c(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)}}),K&&Co(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=Lo(e),i=Lo(n);Gn(t,e,(function(t,e){$o(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?Vn("keys"==e?r.key:"values"==e?r.value:[r.key,r.value],!1):(t.target=void 0,Vn(void 0,!0))}),r?"entries":"values",!r,!0),ko(e)}};Io("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Fo);var No=String,Uo=function(t){if("Symbol"===te(t))throw TypeError("Cannot convert a Symbol value to a string");return No(t)},Do=y("".charAt),Bo=y("".charCodeAt),Wo=y("".slice),zo=function(t){return function(e,r){var n,o,i=Uo(m(e)),a=ve(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=Bo(i,a))<55296||n>56319||a+1===u||(o=Bo(i,a+1))<56320||o>57343?t?Do(i,a):n:t?Wo(i,a,a+2):o-56320+(n-55296<<10)+65536}},Go={codeAt:zo(!1),charAt:zo(!0)},Vo=Go.charAt,Yo=Vt.set,Ho=Vt.getterFor("String Iterator");Gn(String,"String",(function(t){Yo(this,{type:"String Iterator",string:Uo(t),index:0})}),(function(){var t,e=Ho(this),r=e.string,n=e.index;return n>=r.length?Vn(void 0,!0):(t=Vo(r,n),e.index+=t.length,Vn(t,!1))}));var qo=Y("iterator"),Ko=Y("toStringTag"),Jo=Kn.values,Xo=function(t,e){if(t){if(t[qo]!==Jo)try{Ft(t,qo,Jo)}catch(e){t[qo]=Jo}if(t[Ko]||Ft(t,Ko,e),Dr[e])for(var r in Kn)if(t[r]!==Kn[r])try{Ft(t,r,Kn[r])}catch(e){t[r]=Kn[r]}}};for(var Qo in Dr)Xo(a[Qo]&&a[Qo].prototype,Qo);Xo(zr,"DOMTokenList");var Zo=TypeError,ti=function(t){if(t>9007199254740991)throw Zo("Maximum allowed index exceeded");return t},ei=Y("isConcatSpreadable"),ri=U>=51||!l((function(){var t=[];return t[ei]=!1,t.concat()[0]!==t})),ni=fn("concat"),oi=function(t){if(!X(t))return!1;var e=t[ei];return void 0!==e?!!e:Hr(t)};Be({target:"Array",proto:!0,arity:1,forced:!ri||!ni},{concat:function(t){var e,r,n,o,i,a=x(this),u=Jr(a,0),c=0;for(e=-1,n=arguments.length;e<n;e++)if(oi(i=-1===e?a:arguments[e]))for(o=we(i),ti(c+o),r=0;r<o;r++,c++)r in i&&un(u,c,i[r]);else ti(c+1),un(u,c++,i);return u.length=c,u}});var ii,ai,ui,ci,fi="process"==Jt(a.process),si=Y("species"),li=function(t,e){var r,n=it(t).constructor;return void 0===n||g(r=it(n)[si])?e:sr(r)},di=TypeError,hi=function(t,e){if(t<e)throw di("Not enough arguments");return t},vi=/(?:ipad|iphone|ipod).*applewebkit/i.test(M),pi=a.setImmediate,yi=a.clearImmediate,gi=a.process,bi=a.Dispatch,mi=a.Function,wi=a.MessageChannel,xi=a.String,Ai=0,Ti={};try{ii=a.location}catch(t){}var Si=function(t){if(T(Ti,t)){var e=Ti[t];delete Ti[t],e()}},Ei=function(t){return function(){Si(t)}},Oi=function(t){Si(t.data)},ji=function(t){a.postMessage(xi(t),ii.protocol+"//"+ii.host)};pi&&yi||(pi=function(t){hi(arguments.length,1);var e=_(t)?t:mi(t),r=Ye(arguments,1);return Ti[++Ai]=function(){Ve(e,void 0,r)},ai(Ai),Ai},yi=function(t){delete Ti[t]},fi?ai=function(t){gi.nextTick(Ei(t))}:bi&&bi.now?ai=function(t){bi.now(Ei(t))}:wi&&!vi?(ci=(ui=new wi).port2,ui.port1.onmessage=Oi,ai=Yr(ci.postMessage,ci)):a.addEventListener&&_(a.postMessage)&&!a.importScripts&&ii&&"file:"!==ii.protocol&&!l(ji)?(ai=ji,a.addEventListener("message",Oi,!1)):ai="onreadystatechange"in tt("script")?function(t){hr.appendChild(tt("script")).onreadystatechange=function(){hr.removeChild(this),Si(t)}}:function(t){setTimeout(Ei(t),0)});var Ri,Ii,Pi,_i,ki,Ci,Mi,$i,Li={set:pi,clear:yi},Fi=/ipad|iphone|ipod/i.test(M)&&void 0!==a.Pebble,Ni=/web0s(?!.*chrome)/i.test(M),Ui=se.f,Di=Li.set,Bi=a.MutationObserver||a.WebKitMutationObserver,Wi=a.document,zi=a.process,Gi=a.Promise,Vi=Ui(a,"queueMicrotask"),Yi=Vi&&Vi.value;Yi||(Ri=function(){var t,e;for(fi&&(t=zi.domain)&&t.exit();Ii;){e=Ii.fn,Ii=Ii.next;try{e()}catch(t){throw Ii?_i():Pi=void 0,t}}Pi=void 0,t&&t.enter()},vi||fi||Ni||!Bi||!Wi?!Fi&&Gi&&Gi.resolve?((Mi=Gi.resolve(void 0)).constructor=Gi,$i=Yr(Mi.then,Mi),_i=function(){$i(Ri)}):fi?_i=function(){zi.nextTick(Ri)}:(Di=Yr(Di,a),_i=function(){Di(Ri)}):(ki=!0,Ci=Wi.createTextNode(""),new Bi(Ri).observe(Ci,{characterData:!0}),_i=function(){Ci.data=ki=!ki}));var Hi=Yi||function(t){var e={fn:t,next:void 0};Pi&&(Pi.next=e),Ii||(Ii=e,_i()),Pi=e},qi=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Ki=function(){this.head=null,this.tail=null};Ki.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var Ji=Ki,Xi=a.Promise,Qi="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Zi=!Qi&&!fi&&"object"==typeof window&&"object"==typeof document;Xi&&Xi.prototype;var ta,ea,ra,na=Y("species"),oa=!1,ia=_(a.PromiseRejectionEvent),aa={CONSTRUCTOR:Ue("Promise",(function(){var t=Ct(Xi),e=t!==String(Xi);if(!e&&66===U)return!0;if(!U||U<51||!/native code/.test(t)){var r=new Xi((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((r.constructor={})[na]=n,!(oa=r.then((function(){}))instanceof n))return!0}return!e&&(Zi||Qi)&&!ia})),REJECTION_EVENT:ia,SUBCLASSING:oa},ua=TypeError,ca=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw ua("Bad Promise constructor");e=t,r=n})),this.resolve=vt(e),this.reject=vt(r)},fa={f:function(t){return new ca(t)}},sa=Li.set,la=aa.CONSTRUCTOR,da=aa.REJECTION_EVENT,ha=aa.SUBCLASSING,va=Vt.getterFor("Promise"),pa=Vt.set,ya=Xi&&Xi.prototype,ga=Xi,ba=ya,ma=a.TypeError,wa=a.document,xa=a.process,Aa=fa.f,Ta=Aa,Sa=!!(wa&&wa.createEvent&&a.dispatchEvent),Ea=function(t){var e;return!(!X(t)||!_(e=t.then))&&e},Oa=function(t,e){var r,n,o,i=e.value,a=1==e.state,u=a?t.ok:t.fail,c=t.resolve,f=t.reject,s=t.domain;try{u?(a||(2===e.rejection&&_a(e),e.rejection=1),!0===u?r=i:(s&&s.enter(),r=u(i),s&&(s.exit(),o=!0)),r===t.promise?f(ma("Promise-chain cycle")):(n=Ea(r))?ut(n,r,c,f):c(r)):f(i)}catch(t){s&&!o&&s.exit(),f(t)}},ja=function(t,e){t.notified||(t.notified=!0,Hi((function(){for(var r,n=t.reactions;r=n.get();)Oa(r,t);t.notified=!1,e&&!t.rejection&&Ia(t)})))},Ra=function(t,e,r){var n,o;Sa?((n=wa.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),a.dispatchEvent(n)):n={promise:e,reason:r},!da&&(o=a["on"+t])?o(n):"unhandledrejection"===t&&function(t,e){var r=a.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))}("Unhandled promise rejection",r)},Ia=function(t){ut(sa,a,(function(){var e,r=t.facade,n=t.value;if(Pa(t)&&(e=qi((function(){fi?xa.emit("unhandledRejection",n,r):Ra("unhandledrejection",r,n)})),t.rejection=fi||Pa(t)?2:1,e.error))throw e.value}))},Pa=function(t){return 1!==t.rejection&&!t.parent},_a=function(t){ut(sa,a,(function(){var e=t.facade;fi?xa.emit("rejectionHandled",e):Ra("rejectionhandled",e,t.value)}))},ka=function(t,e,r){return function(n){t(e,n,r)}},Ca=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,ja(t,!0))},Ma=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw ma("Promise can't be resolved itself");var n=Ea(e);n?Hi((function(){var r={done:!1};try{ut(n,e,ka(Ma,r,t),ka(Ca,r,t))}catch(e){Ca(r,e,t)}})):(t.value=e,t.state=1,ja(t,!1))}catch(e){Ca({done:!1},e,t)}}};if(la&&(ba=(ga=function(t){Ao(this,ba),vt(t),ut(ta,this);var e=va(this);try{t(ka(Ma,e),ka(Ca,e))}catch(t){Ca(e,t)}}).prototype,(ta=function(t){pa(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new Ji,rejection:!1,state:0,value:void 0})}).prototype=Ht(ba,"then",(function(t,e){var r=va(this),n=Aa(li(this,ga));return r.parent=!0,n.ok=!_(t)||t,n.fail=_(e)&&e,n.domain=fi?xa.domain:void 0,0==r.state?r.reactions.add(n):Hi((function(){Oa(n,r)})),n.promise})),ea=function(){var t=new ta,e=va(t);this.promise=t,this.resolve=ka(Ma,e),this.reject=ka(Ca,e)},fa.f=Aa=function(t){return t===ga||void 0===t?new ea(t):Ta(t)},_(Xi)&&ya!==Object.prototype)){ra=ya.then,ha||Ht(ya,"then",(function(t,e){var r=this;return new ga((function(t,e){ut(ra,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete ya.constructor}catch(t){}Fn&&Fn(ya,ba)}Be({global:!0,constructor:!0,wrap:!0,forced:la},{Promise:ga}),kn(ga,"Promise",!1),ko("Promise");var $a=aa.CONSTRUCTOR||!jo((function(t){Xi.all(t).then(void 0,(function(){}))}));Be({target:"Promise",stat:!0,forced:$a},{all:function(t){var e=this,r=fa.f(e),n=r.resolve,o=r.reject,i=qi((function(){var r=vt(e.resolve),i=[],a=0,u=1;wo(t,(function(t){var c=a++,f=!1;u++,ut(r,e,t).then((function(t){f||(f=!0,i[c]=t,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),r.promise}});var La=aa.CONSTRUCTOR,Fa=Xi&&Xi.prototype;if(Be({target:"Promise",proto:!0,forced:La,real:!0},{catch:function(t){return this.then(void 0,t)}}),_(Xi)){var Na=C("Promise").prototype.catch;Fa.catch!==Na&&Ht(Fa,"catch",Na,{unsafe:!0})}Be({target:"Promise",stat:!0,forced:$a},{race:function(t){var e=this,r=fa.f(e),n=r.reject,o=qi((function(){var o=vt(e.resolve);wo(t,(function(t){ut(o,e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}}),Be({target:"Promise",stat:!0,forced:aa.CONSTRUCTOR},{reject:function(t){var e=fa.f(this);return ut(e.reject,void 0,t),e.promise}});var Ua=aa.CONSTRUCTOR;C("Promise"),Be({target:"Promise",stat:!0,forced:Ua},{resolve:function(t){return function(t,e){if(it(t),X(e)&&e.constructor===t)return e;var r=fa.f(t);return(0,r.resolve)(e),r.promise}(this,t)}});var Da,Ba,Wa,za="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,Ga=St.f,Va=Vt.enforce,Ya=Vt.get,Ha=a.Int8Array,qa=Ha&&Ha.prototype,Ka=a.Uint8ClampedArray,Ja=Ka&&Ka.prototype,Xa=Ha&&On(Ha),Qa=qa&&On(qa),Za=Object.prototype,tu=a.TypeError,eu=Y("toStringTag"),ru=j("TYPED_ARRAY_TAG"),nu=za&&!!Fn&&"Opera"!==te(a.opera),ou=!1,iu={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},au={BigInt64Array:8,BigUint64Array:8},uu=function(t){var e=On(t);if(X(e)){var r=Ya(e);return r&&T(r,"TypedArrayConstructor")?r.TypedArrayConstructor:uu(e)}},cu=function(t){if(!X(t))return!1;var e=te(t);return T(iu,e)||T(au,e)};for(Da in iu)(Wa=(Ba=a[Da])&&Ba.prototype)?Va(Wa).TypedArrayConstructor=Ba:nu=!1;for(Da in au)(Wa=(Ba=a[Da])&&Ba.prototype)&&(Va(Wa).TypedArrayConstructor=Ba);if((!nu||!_(Xa)||Xa===Function.prototype)&&(Xa=function(){throw tu("Incorrect invocation")},nu))for(Da in iu)a[Da]&&Fn(a[Da],Xa);if((!nu||!Qa||Qa===Za)&&(Qa=Xa.prototype,nu))for(Da in iu)a[Da]&&Fn(a[Da].prototype,Qa);if(nu&&On(Ja)!==Qa&&Fn(Ja,Qa),K&&!T(Qa,eu))for(Da in ou=!0,Ga(Qa,eu,{get:function(){return X(this)?this[ru]:void 0}}),iu)a[Da]&&Ft(a[Da],ru,Da);var fu={NATIVE_ARRAY_BUFFER_VIEWS:nu,TYPED_ARRAY_TAG:ou&&ru,aTypedArray:function(t){if(cu(t))return t;throw tu("Target is not a typed array")},aTypedArrayConstructor:function(t){if(_(t)&&(!Fn||ct(Xa,t)))return t;throw tu(dt(t)+" is not a typed array constructor")},exportTypedArrayMethod:function(t,e,r,n){if(K){if(r)for(var o in iu){var i=a[o];if(i&&T(i.prototype,t))try{delete i.prototype[t]}catch(r){try{i.prototype[t]=e}catch(t){}}}Qa[t]&&!r||Ht(Qa,t,r?e:nu&&qa[t]||e,n)}},exportTypedArrayStaticMethod:function(t,e,r){var n,o;if(K){if(Fn){if(r)for(n in iu)if((o=a[n])&&T(o,t))try{delete o[t]}catch(t){}if(Xa[t]&&!r)return;try{return Ht(Xa,t,r?e:nu&&Xa[t]||e)}catch(t){}}for(n in iu)!(o=a[n])||o[t]&&!r||Ht(o,t,e)}},getTypedArrayConstructor:uu,isView:function(t){if(!X(t))return!1;var e=te(t);return"DataView"===e||T(iu,e)||T(au,e)},isTypedArray:cu,TypedArray:Xa,TypedArrayPrototype:Qa},su=fu.NATIVE_ARRAY_BUFFER_VIEWS,lu=a.ArrayBuffer,du=a.Int8Array,hu=!su||!l((function(){du(1)}))||!l((function(){new du(-1)}))||!jo((function(t){new du,new du(null),new du(1.5),new du(t)}),!0)||l((function(){return 1!==new du(new lu(2),1,void 0).length})),vu=RangeError,pu=function(t){if(void 0===t)return 0;var e=ve(t),r=me(e);if(e!==r)throw vu("Wrong length or index");return r},yu=Array,gu=Math.abs,bu=Math.pow,mu=Math.floor,wu=Math.log,xu=Math.LN2,Au=function(t,e,r){var n,o,i,a=yu(r),u=8*r-e-1,c=(1<<u)-1,f=c>>1,s=23===e?bu(2,-24)-bu(2,-77):0,l=t<0||0===t&&1/t<0?1:0,d=0;for((t=gu(t))!=t||t===1/0?(o=t!=t?1:0,n=c):(n=mu(wu(t)/xu),t*(i=bu(2,-n))<1&&(n--,i*=2),(t+=n+f>=1?s/i:s*bu(2,1-f))*i>=2&&(n++,i/=2),n+f>=c?(o=0,n=c):n+f>=1?(o=(t*i-1)*bu(2,e),n+=f):(o=t*bu(2,f-1)*bu(2,e),n=0));e>=8;)a[d++]=255&o,o/=256,e-=8;for(n=n<<e|o,u+=e;u>0;)a[d++]=255&n,n/=256,u-=8;return a[--d]|=128*l,a},Tu=function(t,e){var r,n=t.length,o=8*n-e-1,i=(1<<o)-1,a=i>>1,u=o-7,c=n-1,f=t[c--],s=127&f;for(f>>=7;u>0;)s=256*s+t[c--],u-=8;for(r=s&(1<<-u)-1,s>>=-u,u+=e;u>0;)r=256*r+t[c--],u-=8;if(0===s)s=1-a;else{if(s===i)return r?NaN:f?-1/0:1/0;r+=bu(2,e),s-=a}return(f?-1:1)*r*bu(2,s-e)},Su=function(t){for(var e=x(this),r=we(e),n=arguments.length,o=ge(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:ge(i,r);a>o;)e[o++]=t;return e},Eu=Re.f,Ou=St.f,ju=Rt.PROPER,Ru=Rt.CONFIGURABLE,Iu=Vt.get,Pu=Vt.set,_u=a.ArrayBuffer,ku=_u,Cu=ku&&ku.prototype,Mu=a.DataView,$u=Mu&&Mu.prototype,Lu=Object.prototype,Fu=a.Array,Nu=a.RangeError,Uu=y(Su),Du=y([].reverse),Bu=Au,Wu=Tu,zu=function(t){return[255&t]},Gu=function(t){return[255&t,t>>8&255]},Vu=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},Yu=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},Hu=function(t){return Bu(t,23,4)},qu=function(t){return Bu(t,52,8)},Ku=function(t,e){Ou(t.prototype,e,{get:function(){return Iu(this)[e]}})},Ju=function(t,e,r,n){var o=pu(r),i=Iu(t);if(o+e>i.byteLength)throw Nu("Wrong index");var a=Iu(i.buffer).bytes,u=o+i.byteOffset,c=Zn(a,u,u+e);return n?c:Du(c)},Xu=function(t,e,r,n,o,i){var a=pu(r),u=Iu(t);if(a+e>u.byteLength)throw Nu("Wrong index");for(var c=Iu(u.buffer).bytes,f=a+u.byteOffset,s=n(+o),l=0;l<e;l++)c[f+l]=s[i?l:e-l-1]};if(za){var Qu=ju&&"ArrayBuffer"!==_u.name;if(l((function(){_u(1)}))&&l((function(){new _u(-1)}))&&!l((function(){return new _u,new _u(1.5),new _u(NaN),1!=_u.length||Qu&&!Ru})))Qu&&Ru&&Ft(_u,"name","ArrayBuffer");else{(ku=function(t){return Ao(this,Cu),new _u(pu(t))}).prototype=Cu;for(var Zu,tc=Eu(_u),ec=0;tc.length>ec;)(Zu=tc[ec++])in ku||Ft(ku,Zu,_u[Zu]);Cu.constructor=ku}Fn&&On($u)!==Lu&&Fn($u,Lu);var rc=new Mu(new ku(2)),nc=y($u.setInt8);rc.setInt8(0,2147483648),rc.setInt8(1,2147483649),!rc.getInt8(0)&&rc.getInt8(1)||Po($u,{setInt8:function(t,e){nc(this,t,e<<24>>24)},setUint8:function(t,e){nc(this,t,e<<24>>24)}},{unsafe:!0})}else Cu=(ku=function(t){Ao(this,Cu);var e=pu(t);Pu(this,{bytes:Uu(Fu(e),0),byteLength:e}),K||(this.byteLength=e)}).prototype,$u=(Mu=function(t,e,r){Ao(this,$u),Ao(t,Cu);var n=Iu(t).byteLength,o=ve(e);if(o<0||o>n)throw Nu("Wrong offset");if(o+(r=void 0===r?n-o:me(r))>n)throw Nu("Wrong length");Pu(this,{buffer:t,byteLength:r,byteOffset:o}),K||(this.buffer=t,this.byteLength=r,this.byteOffset=o)}).prototype,K&&(Ku(ku,"byteLength"),Ku(Mu,"buffer"),Ku(Mu,"byteLength"),Ku(Mu,"byteOffset")),Po($u,{getInt8:function(t){return Ju(this,1,t)[0]<<24>>24},getUint8:function(t){return Ju(this,1,t)[0]},getInt16:function(t){var e=Ju(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Ju(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return Yu(Ju(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return Yu(Ju(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return Wu(Ju(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return Wu(Ju(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){Xu(this,1,t,zu,e)},setUint8:function(t,e){Xu(this,1,t,zu,e)},setInt16:function(t,e){Xu(this,2,t,Gu,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){Xu(this,2,t,Gu,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){Xu(this,4,t,Vu,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){Xu(this,4,t,Vu,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){Xu(this,4,t,Hu,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){Xu(this,8,t,qu,e,arguments.length>2?arguments[2]:void 0)}});kn(ku,"ArrayBuffer"),kn(Mu,"DataView");var oc={ArrayBuffer:ku,DataView:Mu},ic=Math.floor,ac=Number.isInteger||function(t){return!X(t)&&isFinite(t)&&ic(t)===t},uc=RangeError,cc=RangeError,fc=function(t,e){var r=function(t){var e=ve(t);if(e<0)throw uc("The argument can't be less than 0");return e}(t);if(r%e)throw cc("Wrong offset");return r},sc=y("".slice),lc=function(t){return"Big"===sc(te(t),0,3)},dc=TypeError,hc=function(t){var e=mt(t,"number");if("number"==typeof e)throw dc("Can't convert number to bigint");return BigInt(e)},vc=fu.aTypedArrayConstructor,pc=function(t){var e,r,n,o,i,a,u,c,f=sr(this),s=x(t),l=arguments.length,d=l>1?arguments[1]:void 0,h=void 0!==d,v=ho(s);if(v&&!so(v))for(c=(u=po(s,v)).next,s=[];!(a=ut(c,u)).done;)s.push(a.value);for(h&&l>2&&(d=Yr(d,arguments[2])),r=we(s),n=new(vc(f))(r),o=lc(n),e=0;r>e;e++)i=h?d(s[e],e):s[e],n[e]=o?hc(i):+i;return n};r((function(t){var e=Re.f,r=Zr.forEach,n=Vt.get,o=Vt.set,i=Vt.enforce,u=St.f,c=se.f,f=Math.round,s=a.RangeError,l=oc.ArrayBuffer,d=l.prototype,h=oc.DataView,v=fu.NATIVE_ARRAY_BUFFER_VIEWS,p=fu.TYPED_ARRAY_TAG,y=fu.TypedArray,g=fu.TypedArrayPrototype,b=fu.aTypedArrayConstructor,m=fu.isTypedArray,w=function(t,e){b(t);for(var r=0,n=e.length,o=new t(n);n>r;)o[r]=e[r++];return o},x=function(t,e){u(t,e,{get:function(){return n(this)[e]}})},A=function(t){var e;return ct(d,t)||"ArrayBuffer"==(e=te(t))||"SharedArrayBuffer"==e},S=function(t,e){return m(t)&&!st(e)&&e in t&&ac(+e)&&e>=0},E=function(t,e){return e=wt(e),S(t,e)?Lt(2,t[e]):c(t,e)},O=function(t,e,r){return e=wt(e),!(S(t,e)&&X(r)&&T(r,"value"))||T(r,"get")||T(r,"set")||r.configurable||T(r,"writable")&&!r.writable||T(r,"enumerable")&&!r.enumerable?u(t,e,r):(t[e]=r.value,t)};K?(v||(se.f=E,St.f=O,x(g,"buffer"),x(g,"byteOffset"),x(g,"byteLength"),x(g,"length")),Be({target:"Object",stat:!0,forced:!v},{getOwnPropertyDescriptor:E,defineProperty:O}),t.exports=function(t,c,d){var b=t.match(/\d+$/)[0]/8,x=t+(d?"Clamped":"")+"Array",T="get"+t,S="set"+t,E=a[x],O=E,j=O&&O.prototype,R={},I=function(t,e){u(t,e,{get:function(){return function(t,e){var r=n(t);return r.view[T](e*b+r.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,r){var o=n(t);d&&(r=(r=f(r))<0?0:r>255?255:255&r),o.view[S](e*b+o.byteOffset,r,!0)}(this,e,t)},enumerable:!0})};v?hu&&(O=c((function(t,e,r,n){return Ao(t,j),Ro(X(e)?A(e)?void 0!==n?new E(e,fc(r,b),n):void 0!==r?new E(e,fc(r,b)):new E(e):m(e)?w(O,e):ut(pc,O,e):new E(pu(e)),t,O)})),Fn&&Fn(O,y),r(e(E),(function(t){t in O||Ft(O,t,E[t])})),O.prototype=j):(O=c((function(t,e,r,n){Ao(t,j);var i,a,u,c=0,f=0;if(X(e)){if(!A(e))return m(e)?w(O,e):ut(pc,O,e);i=e,f=fc(r,b);var d=e.byteLength;if(void 0===n){if(d%b)throw s("Wrong length");if((a=d-f)<0)throw s("Wrong length")}else if((a=me(n)*b)+f>d)throw s("Wrong length");u=a/b}else u=pu(e),i=new l(a=u*b);for(o(t,{buffer:i,byteOffset:f,byteLength:a,length:u,view:new h(i)});c<u;)I(t,c++)})),Fn&&Fn(O,y),j=O.prototype=mr(g)),j.constructor!==O&&Ft(j,"constructor",O),i(j).TypedArrayConstructor=O,p&&Ft(j,p,x);var P=O!=E;R[x]=O,Be({global:!0,constructor:!0,forced:P,sham:!v},R),"BYTES_PER_ELEMENT"in O||Ft(O,"BYTES_PER_ELEMENT",b),"BYTES_PER_ELEMENT"in j||Ft(j,"BYTES_PER_ELEMENT",b),ko(x)}):t.exports=function(){}}))("Int32",(function(t){return function(e,r,n){return t(this,e,r,n)}}));var yc=TypeError,gc=function(t,e){if(!delete t[e])throw yc("Cannot delete property "+dt(e)+" of "+dt(t))},bc=Math.min,mc=y([].copyWithin||function(t,e){var r=x(this),n=we(r),o=ge(t,n),i=ge(e,n),a=arguments.length>2?arguments[2]:void 0,u=bc((void 0===a?n:ge(a,n))-i,n-o),c=1;for(i<o&&o<i+u&&(c=-1,i+=u-1,o+=u-1);u-- >0;)i in r?r[o]=r[i]:gc(r,o),o+=c,i+=c;return r}),wc=fu.aTypedArray;(0,fu.exportTypedArrayMethod)("copyWithin",(function(t,e){return mc(wc(this),t,e,arguments.length>2?arguments[2]:void 0)}));var xc=Zr.every,Ac=fu.aTypedArray;(0,fu.exportTypedArrayMethod)("every",(function(t){return xc(Ac(this),t,arguments.length>1?arguments[1]:void 0)}));var Tc=fu.aTypedArray,Sc=fu.exportTypedArrayMethod,Ec=y("".slice);Sc("fill",(function(t){var e=arguments.length;Tc(this);var r="Big"===Ec(te(this),0,3)?hc(t):+t;return ut(Su,this,r,e>1?arguments[1]:void 0,e>2?arguments[2]:void 0)}),l((function(){var t=0;return new Int8Array(2).fill({valueOf:function(){return t++}}),1!==t})));var Oc=fu.aTypedArrayConstructor,jc=fu.getTypedArrayConstructor,Rc=function(t){return Oc(li(t,jc(t)))},Ic=function(t,e){return function(t,e){for(var r=0,n=we(e),o=new t(n);n>r;)o[r]=e[r++];return o}(Rc(t),e)},Pc=Zr.filter,_c=fu.aTypedArray;(0,fu.exportTypedArrayMethod)("filter",(function(t){var e=Pc(_c(this),t,arguments.length>1?arguments[1]:void 0);return Ic(this,e)}));var kc=Zr.find,Cc=fu.aTypedArray;(0,fu.exportTypedArrayMethod)("find",(function(t){return kc(Cc(this),t,arguments.length>1?arguments[1]:void 0)}));var Mc=Zr.findIndex,$c=fu.aTypedArray;(0,fu.exportTypedArrayMethod)("findIndex",(function(t){return Mc($c(this),t,arguments.length>1?arguments[1]:void 0)}));var Lc=Zr.forEach,Fc=fu.aTypedArray;(0,fu.exportTypedArrayMethod)("forEach",(function(t){Lc(Fc(this),t,arguments.length>1?arguments[1]:void 0)}));var Nc=Ae.includes,Uc=fu.aTypedArray;(0,fu.exportTypedArrayMethod)("includes",(function(t){return Nc(Uc(this),t,arguments.length>1?arguments[1]:void 0)}));var Dc=Ae.indexOf,Bc=fu.aTypedArray;(0,fu.exportTypedArrayMethod)("indexOf",(function(t){return Dc(Bc(this),t,arguments.length>1?arguments[1]:void 0)}));var Wc=Y("iterator"),zc=a.Uint8Array,Gc=y(Kn.values),Vc=y(Kn.keys),Yc=y(Kn.entries),Hc=fu.aTypedArray,qc=fu.exportTypedArrayMethod,Kc=zc&&zc.prototype,Jc=!l((function(){Kc[Wc].call([1])})),Xc=!!Kc&&Kc.values&&Kc[Wc]===Kc.values&&"values"===Kc.values.name,Qc=function(){return Gc(Hc(this))};qc("entries",(function(){return Yc(Hc(this))}),Jc),qc("keys",(function(){return Vc(Hc(this))}),Jc),qc("values",Qc,Jc||!Xc,{name:"values"}),qc(Wc,Qc,Jc||!Xc,{name:"values"});var Zc=fu.aTypedArray,tf=fu.exportTypedArrayMethod,ef=y([].join);tf("join",(function(t){return ef(Zc(this),t)}));var rf=Math.min,nf=[].lastIndexOf,of=!!nf&&1/[1].lastIndexOf(1,-0)<0,af=tn("lastIndexOf"),uf=of||!af?function(t){if(of)return Ve(nf,this,arguments)||0;var e=ce(this),r=we(e),n=r-1;for(arguments.length>1&&(n=rf(n,ve(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}:nf,cf=fu.aTypedArray;(0,fu.exportTypedArrayMethod)("lastIndexOf",(function(t){var e=arguments.length;return Ve(uf,cf(this),e>1?[t,arguments[1]]:[t])}));var ff=Zr.map,sf=fu.aTypedArray;(0,fu.exportTypedArrayMethod)("map",(function(t){return ff(sf(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(Rc(t))(e)}))}));var lf=TypeError,df=function(t){return function(e,r,n,o){vt(r);var i=x(e),a=ue(i),u=we(i),c=t?u-1:0,f=t?-1:1;if(n<2)for(;;){if(c in a){o=a[c],c+=f;break}if(c+=f,t?c<0:u<=c)throw lf("Reduce of empty array with no initial value")}for(;t?c>=0:u>c;c+=f)c in a&&(o=r(o,a[c],c,i));return o}},hf={left:df(!1),right:df(!0)},vf=hf.left,pf=fu.aTypedArray;(0,fu.exportTypedArrayMethod)("reduce",(function(t){var e=arguments.length;return vf(pf(this),t,e,e>1?arguments[1]:void 0)}));var yf=hf.right,gf=fu.aTypedArray;(0,fu.exportTypedArrayMethod)("reduceRight",(function(t){var e=arguments.length;return yf(gf(this),t,e,e>1?arguments[1]:void 0)}));var bf=fu.aTypedArray,mf=fu.exportTypedArrayMethod,wf=Math.floor;mf("reverse",(function(){for(var t,e=bf(this).length,r=wf(e/2),n=0;n<r;)t=this[n],this[n++]=this[--e],this[e]=t;return this}));var xf=a.RangeError,Af=a.Int8Array,Tf=Af&&Af.prototype,Sf=Tf&&Tf.set,Ef=fu.aTypedArray,Of=fu.exportTypedArrayMethod,jf=!l((function(){var t=new Uint8ClampedArray(2);return ut(Sf,t,{length:1,0:3},1),3!==t[1]})),Rf=jf&&fu.NATIVE_ARRAY_BUFFER_VIEWS&&l((function(){var t=new Af(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));Of("set",(function(t){Ef(this);var e=fc(arguments.length>1?arguments[1]:void 0,1),r=x(t);if(jf)return ut(Sf,this,r,e);var n=this.length,o=we(r),i=0;if(o+e>n)throw xf("Wrong length");for(;i<o;)this[e+i]=r[i++]}),!jf||Rf);var If=fu.aTypedArray;(0,fu.exportTypedArrayMethod)("slice",(function(t,e){for(var r=Ye(If(this),t,e),n=Rc(this),o=0,i=r.length,a=new n(i);i>o;)a[o]=r[o++];return a}),l((function(){new Int8Array(1).slice()})));var Pf=Zr.some,_f=fu.aTypedArray;(0,fu.exportTypedArrayMethod)("some",(function(t){return Pf(_f(this),t,arguments.length>1?arguments[1]:void 0)}));var kf=Math.floor,Cf=function(t,e){var r=t.length,n=kf(r/2);return r<8?Mf(t,e):$f(t,Cf(Zn(t,0,n),e),Cf(Zn(t,n),e),e)},Mf=function(t,e){for(var r,n,o=t.length,i=1;i<o;){for(n=i,r=t[i];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==i++&&(t[n]=r)}return t},$f=function(t,e,r,n){for(var o=e.length,i=r.length,a=0,u=0;a<o||u<i;)t[a+u]=a<o&&u<i?n(e[a],r[u])<=0?e[a++]:r[u++]:a<o?e[a++]:r[u++];return t},Lf=Cf,Ff=M.match(/firefox\/(\d+)/i),Nf=!!Ff&&+Ff[1],Uf=/MSIE|Trident/.test(M),Df=M.match(/AppleWebKit\/(\d+)\./),Bf=!!Df&&+Df[1],Wf=fu.aTypedArray,zf=fu.exportTypedArrayMethod,Gf=a.Uint16Array,Vf=Gf&&Gr(Gf.prototype.sort),Yf=!(!Vf||l((function(){Vf(new Gf(2),null)}))&&l((function(){Vf(new Gf(2),{})}))),Hf=!!Vf&&!l((function(){if(U)return U<74;if(Nf)return Nf<67;if(Uf)return!0;if(Bf)return Bf<602;var t,e,r=new Gf(516),n=Array(516);for(t=0;t<516;t++)e=t%4,r[t]=515-t,n[t]=t-2*e+3;for(Vf(r,(function(t,e){return(t/4|0)-(e/4|0)})),t=0;t<516;t++)if(r[t]!==n[t])return!0}));zf("sort",(function(t){return void 0!==t&&vt(t),Hf?Vf(this,t):Lf(Wf(this),function(t){return function(e,r){return void 0!==t?+t(e,r)||0:r!=r?-1:e!=e?1:0===e&&0===r?1/e>0&&1/r<0?1:-1:e>r}}(t))}),!Hf||Yf);var qf=fu.aTypedArray;(0,fu.exportTypedArrayMethod)("subarray",(function(t,e){var r=qf(this),n=r.length,o=ge(t,n);return new(Rc(r))(r.buffer,r.byteOffset+o*r.BYTES_PER_ELEMENT,me((void 0===e?n:ge(e,n))-o))}));var Kf=a.Int8Array,Jf=fu.aTypedArray,Xf=fu.exportTypedArrayMethod,Qf=[].toLocaleString,Zf=!!Kf&&l((function(){Qf.call(new Kf(1))}));Xf("toLocaleString",(function(){return Ve(Qf,Zf?Ye(Jf(this)):Jf(this),Ye(arguments))}),l((function(){return[1,2].toLocaleString()!=new Kf([1,2]).toLocaleString()}))||!l((function(){Kf.prototype.toLocaleString.call([1,2])})));var ts=fu.exportTypedArrayMethod,es=a.Uint8Array,rs=es&&es.prototype||{},ns=[].toString,os=y([].join);l((function(){ns.call({})}))&&(ns=function(){return os(this)});var is=rs.toString!=ns;ts("toString",ns,is);var as=[],us=y(as.sort),cs=y(as.push),fs=l((function(){as.sort(void 0)})),ss=l((function(){as.sort(null)})),ls=tn("sort"),ds=!l((function(){if(U)return U<70;if(!(Nf&&Nf>3)){if(Uf)return!0;if(Bf)return Bf<603;var t,e,r,n,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)as.push({k:e+n,v:r})}for(as.sort((function(t,e){return e.v-t.v})),n=0;n<as.length;n++)e=as[n].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}}));Be({target:"Array",proto:!0,forced:fs||!ss||!ls||!ds},{sort:function(t){void 0!==t&&vt(t);var e=x(this);if(ds)return void 0===t?us(e):us(e,t);var r,n,o=[],i=we(e);for(n=0;n<i;n++)n in e&&cs(o,e[n]);for(Lf(o,function(t){return function(e,r){return void 0===r?-1:void 0===e?1:void 0!==t?+t(e,r)||0:Uo(e)>Uo(r)?1:-1}}(t)),r=we(o),n=0;n<r;)e[n]=o[n++];for(;n<i;)gc(e,n++);return e}}),Be({target:"Object",stat:!0,sham:!K},{getOwnPropertyDescriptors:function(t){for(var e,r,n=ce(t),o=se.f,i=_e(n),a={},u=0;i.length>u;)void 0!==(r=o(n,e=i[u++]))&&un(a,e,r);return a}});var hs=function(t,e,r,n){try{return n?e(it(r)[0],r[1]):e(r)}catch(e){yo(t,"throw",e)}},vs=Array,ps=!jo((function(t){Array.from(t)}));Be({target:"Array",stat:!0,forced:ps},{from:function(t){var e=x(t),r=cr(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Yr(o,n>2?arguments[2]:void 0));var a,u,c,f,s,l,d=ho(e),h=0;if(!d||this===vs&&so(d))for(a=we(e),u=r?new this(a):vs(a);a>h;h++)l=i?o(e[h],h):e[h],un(u,h,l);else for(s=(f=po(e,d)).next,u=r?new this:[];!(c=ut(s,f)).done;h++)l=i?hs(f,o,[c.value,h],!0):c.value,un(u,h,l);return u.length=h,u}});var ys=TypeError,gs=Object.getOwnPropertyDescriptor,bs=K&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}()?function(t,e){if(Hr(t)&&!gs(t,"length").writable)throw ys("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},ms=fn("splice"),ws=Math.max,xs=Math.min;Be({target:"Array",proto:!0,forced:!ms},{splice:function(t,e){var r,n,o,i,a,u,c=x(this),f=we(c),s=ge(t,f),l=arguments.length;for(0===l?r=n=0:1===l?(r=0,n=f-s):(r=l-2,n=xs(ws(ve(e),0),f-s)),ti(f+r-n),o=Jr(c,n),i=0;i<n;i++)(a=s+i)in c&&un(o,i,c[a]);if(o.length=n,r<n){for(i=s;i<f-n;i++)u=i+r,(a=i+n)in c?c[u]=c[a]:gc(c,u);for(i=f;i>f-n+r;i--)gc(c,i-1)}else if(r>n)for(i=f-n;i>s;i--)u=i+r-1,(a=i+n-1)in c?c[u]=c[a]:gc(c,u);for(i=0;i<r;i++)c[i+s]=arguments[i+2];return bs(c,f-n+r),o}});var As=Rt.EXISTS,Ts=St.f,Ss=Function.prototype,Es=y(Ss.toString),Os=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,js=y(Os.exec);K&&!As&&Ts(Ss,"name",{configurable:!0,get:function(){try{return js(Os,Es(this))[1]}catch(t){return""}}});var Rs,Is=Y("match"),Ps=TypeError,_s=function(t){if(function(t){var e;return X(t)&&(void 0!==(e=t[Is])?!!e:"RegExp"==Jt(t))}(t))throw Ps("The method doesn't accept regular expressions");return t},ks=Y("match"),Cs=se.f,Ms=Gr("".startsWith),$s=Gr("".slice),Ls=Math.min,Fs=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[ks]=!1,"/./"[t](e)}catch(t){}}return!1}("startsWith"),Ns=!(Fs||(Rs=Cs(String.prototype,"startsWith"),!Rs||Rs.writable));Be({target:"String",proto:!0,forced:!Ns&&!Fs},{startsWith:function(t){var e=Uo(m(this));_s(t);var r=me(Ls(arguments.length>1?arguments[1]:void 0,e.length)),n=Uo(t);return Ms?Ms(e,n,r):$s(e,r,r+n.length)===n}});var Us,Ds="\t\n\v\f\r                 \u2028\u2029\ufeff",Bs=y("".replace),Ws="["+Ds+"]",zs=RegExp("^"+Ws+Ws+"*"),Gs=RegExp(Ws+Ws+"*$"),Vs=function(t){return function(e){var r=Uo(m(e));return 1&t&&(r=Bs(r,zs,"")),2&t&&(r=Bs(r,Gs,"")),r}},Ys={start:Vs(1),end:Vs(2),trim:Vs(3)},Hs=Rt.PROPER,qs=Ys.trim;Be({target:"String",proto:!0,forced:(Us="trim",l((function(){return!!Ds[Us]()||"​…᠎"!=="​…᠎"[Us]()||Hs&&Ds[Us].name!==Us})))},{trim:function(){return qs(this)}});var Ks=Zr.map,Js=fn("map");Be({target:"Array",proto:!0,forced:!Js},{map:function(t){return Ks(this,t,arguments.length>1?arguments[1]:void 0)}}),Io("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),Fo);var Xs=Zr.filter,Qs=fn("filter");Be({target:"Array",proto:!0,forced:!Qs},{filter:function(t){return Xs(this,t,arguments.length>1?arguments[1]:void 0)}});var Zs=y([].join),tl=ue!=Object,el=tn("join",",");Be({target:"Array",proto:!0,forced:tl||!el},{join:function(t){return Zs(ce(this),void 0===t?",":t)}});var rl=/"/g,nl=y("".replace);Be({target:"String",proto:!0,forced:function(t){return l((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}("anchor")},{anchor:function(t){return e="a",r="name",n=t,o=Uo(m(this)),i="<"+e,""!==r&&(i+=" "+r+'="'+nl(Uo(n),rl,"&quot;")+'"'),i+">"+o+"</"+e+">";var e,r,n,o,i}}),Be({global:!0,forced:a.globalThis!==a},{globalThis:a});var ol,il,al=function(){var t=it(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},ul=a.RegExp,cl=l((function(){var t=ul("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),fl=cl||l((function(){return!ul("a","y").sticky})),sl={BROKEN_CARET:cl||l((function(){var t=ul("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:fl,UNSUPPORTED_Y:cl},ll=a.RegExp,dl=l((function(){var t=ll(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),hl=a.RegExp,vl=l((function(){var t=hl("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),pl=Vt.get,yl=s("native-string-replace",String.prototype.replace),gl=RegExp.prototype.exec,bl=gl,ml=y("".charAt),wl=y("".indexOf),xl=y("".replace),Al=y("".slice),Tl=(il=/b*/g,ut(gl,ol=/a/,"a"),ut(gl,il,"a"),0!==ol.lastIndex||0!==il.lastIndex),Sl=sl.BROKEN_CARET,El=void 0!==/()??/.exec("")[1];(Tl||El||Sl||dl||vl)&&(bl=function(t){var e,r,n,o,i,a,u,c=this,f=pl(c),s=Uo(t),l=f.raw;if(l)return l.lastIndex=c.lastIndex,e=ut(bl,l,s),c.lastIndex=l.lastIndex,e;var d=f.groups,h=Sl&&c.sticky,v=ut(al,c),p=c.source,y=0,g=s;if(h&&(v=xl(v,"y",""),-1===wl(v,"g")&&(v+="g"),g=Al(s,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==ml(s,c.lastIndex-1))&&(p="(?: "+p+")",g=" "+g,y++),r=new RegExp("^(?:"+p+")",v)),El&&(r=new RegExp("^"+p+"$(?!\\s)",v)),Tl&&(n=c.lastIndex),o=ut(gl,h?r:c,g),h?o?(o.input=Al(o.input,y),o[0]=Al(o[0],y),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Tl&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),El&&o&&o.length>1&&ut(yl,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&d)for(o.groups=a=mr(null),i=0;i<d.length;i++)a[(u=d[i])[0]]=o[u[1]];return o});var Ol=bl;Be({target:"RegExp",proto:!0,forced:/./.exec!==Ol},{exec:Ol});var jl=Object.assign,Rl=Object.defineProperty,Il=y([].concat),Pl=!jl||l((function(){if(K&&1!==jl({b:1},jl(Rl({},"a",{enumerable:!0,get:function(){Rl(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol();return t[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=jl({},t)[r]||"abcdefghijklmnopqrst"!=lr(jl({},e)).join("")}))?function(t,e){for(var r=x(t),n=arguments.length,o=1,i=Ie.f,a=oe.f;n>o;)for(var u,c=ue(arguments[o++]),f=i?Il(lr(c),i(c)):lr(c),s=f.length,l=0;s>l;)u=f[l++],K&&!ut(a,c,u)||(r[u]=c[u]);return r}:jl;Be({target:"Object",stat:!0,arity:2,forced:Object.assign!==Pl},{assign:Pl}),Be({target:"Array",proto:!0},{fill:Su}),wn("fill");var _l={f:Y},kl=a,Cl=St.f,Ml=function(t){var e=kl.Symbol||(kl.Symbol={});T(e,t)||Cl(e,t,{value:_l.f(t)})},$l=Zr.forEach,Ll=Ut("hidden"),Fl=Vt.set,Nl=Vt.getterFor("Symbol"),Ul=Object.prototype,Dl=a.Symbol,Bl=Dl&&Dl.prototype,Wl=a.TypeError,zl=a.QObject,Gl=se.f,Vl=St.f,Yl=ro.f,Hl=oe.f,ql=y([].push),Kl=s("symbols"),Jl=s("op-symbols"),Xl=s("wks"),Ql=!zl||!zl.prototype||!zl.prototype.findChild,Zl=K&&l((function(){return 7!=mr(Vl({},"a",{get:function(){return Vl(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=Gl(Ul,e);n&&delete Ul[e],Vl(t,e,r),n&&t!==Ul&&Vl(Ul,e,n)}:Vl,td=function(t,e){var r=Kl[t]=mr(Bl);return Fl(r,{type:"Symbol",tag:t,description:e}),K||(r.description=e),r},ed=function(t,e,r){t===Ul&&ed(Jl,e,r),it(t);var n=wt(e);return it(r),T(Kl,n)?(r.enumerable?(T(t,Ll)&&t[Ll][n]&&(t[Ll][n]=!1),r=mr(r,{enumerable:Lt(0,!1)})):(T(t,Ll)||Vl(t,Ll,Lt(1,{})),t[Ll][n]=!0),Zl(t,n,r)):Vl(t,n,r)},rd=function(t,e){it(t);var r=ce(e),n=lr(r).concat(ad(r));return $l(n,(function(e){K&&!ut(nd,r,e)||ed(t,e,r[e])})),t},nd=function(t){var e=wt(t),r=ut(Hl,this,e);return!(this===Ul&&T(Kl,e)&&!T(Jl,e))&&(!(r||!T(this,e)||!T(Kl,e)||T(this,Ll)&&this[Ll][e])||r)},od=function(t,e){var r=ce(t),n=wt(e);if(r!==Ul||!T(Kl,n)||T(Jl,n)){var o=Gl(r,n);return!o||!T(Kl,n)||T(r,Ll)&&r[Ll][n]||(o.enumerable=!0),o}},id=function(t){var e=Yl(ce(t)),r=[];return $l(e,(function(t){T(Kl,t)||T(Dt,t)||ql(r,t)})),r},ad=function(t){var e=t===Ul,r=Yl(e?Jl:ce(t)),n=[];return $l(r,(function(t){!T(Kl,t)||e&&!T(Ul,t)||ql(n,Kl[t])})),n};D||(Bl=(Dl=function(){if(ct(Bl,this))throw Wl("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Uo(arguments[0]):void 0,e=j(t),r=function(t){this===Ul&&ut(r,Jl,t),T(this,Ll)&&T(this[Ll],e)&&(this[Ll][e]=!1),Zl(this,e,Lt(1,t))};return K&&Ql&&Zl(Ul,e,{configurable:!0,set:r}),td(e,t)}).prototype,Ht(Bl,"toString",(function(){return Nl(this).tag})),Ht(Dl,"withoutSetter",(function(t){return td(j(t),t)})),oe.f=nd,St.f=ed,dr.f=rd,se.f=od,Re.f=ro.f=id,Ie.f=ad,_l.f=function(t){return td(Y(t),t)},K&&(Vl(Bl,"description",{configurable:!0,get:function(){return Nl(this).description}}),Ht(Ul,"propertyIsEnumerable",nd,{unsafe:!0}))),Be({global:!0,constructor:!0,wrap:!0,forced:!D,sham:!D},{Symbol:Dl}),$l(lr(Xl),(function(t){Ml(t)})),Be({target:"Symbol",stat:!0,forced:!D},{useSetter:function(){Ql=!0},useSimple:function(){Ql=!1}}),Be({target:"Object",stat:!0,forced:!D,sham:!K},{create:function(t,e){return void 0===e?mr(t):rd(mr(t),e)},defineProperty:ed,defineProperties:rd,getOwnPropertyDescriptor:od}),Be({target:"Object",stat:!0,forced:!D},{getOwnPropertyNames:id}),function(){var t=C("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,n=Y("toPrimitive");e&&!e[n]&&Ht(e,n,(function(t){return ut(r,this)}),{arity:1})}(),kn(Dl,"Symbol"),Dt[Ll]=!0;var ud=D&&!!Symbol.for&&!!Symbol.keyFor,cd=s("string-to-symbol-registry"),fd=s("symbol-to-string-registry");Be({target:"Symbol",stat:!0,forced:!ud},{for:function(t){var e=Uo(t);if(T(cd,e))return cd[e];var r=C("Symbol")(e);return cd[e]=r,fd[r]=e,r}});var sd=s("symbol-to-string-registry");Be({target:"Symbol",stat:!0,forced:!ud},{keyFor:function(t){if(!st(t))throw TypeError(dt(t)+" is not a symbol");if(T(sd,t))return sd[t]}});var ld=C("JSON","stringify"),dd=y(/./.exec),hd=y("".charAt),vd=y("".charCodeAt),pd=y("".replace),yd=y(1..toString),gd=/[\uD800-\uDFFF]/g,bd=/^[\uD800-\uDBFF]$/,md=/^[\uDC00-\uDFFF]$/,wd=!D||l((function(){var t=C("Symbol")();return"[null]"!=ld([t])||"{}"!=ld({a:t})||"{}"!=ld(Object(t))})),xd=l((function(){return'"\\udf06\\ud834"'!==ld("\udf06\ud834")||'"\\udead"'!==ld("\udead")})),Ad=function(t,e){var r=Ye(arguments),n=e;if((X(e)||void 0!==t)&&!st(t))return Hr(e)||(e=function(t,e){if(_(n)&&(e=ut(n,this,t,e)),!st(e))return e}),r[1]=e,Ve(ld,null,r)},Td=function(t,e,r){var n=hd(r,e-1),o=hd(r,e+1);return dd(bd,t)&&!dd(md,o)||dd(md,t)&&!dd(bd,n)?"\\u"+yd(vd(t,0),16):t};ld&&Be({target:"JSON",stat:!0,arity:3,forced:wd||xd},{stringify:function(t,e,r){var n=Ye(arguments),o=Ve(wd?Ad:ld,null,n);return xd&&"string"==typeof o?pd(o,gd,Td):o}});var Sd=!D||l((function(){Ie.f(1)}));Be({target:"Object",stat:!0,forced:Sd},{getOwnPropertySymbols:function(t){var e=Ie.f;return e?e(x(t)):[]}});var Ed,Od,jd=St.f,Rd=a.Symbol,Id=Rd&&Rd.prototype;if(K&&_(Rd)&&(!("description"in Id)||void 0!==Rd().description)){var Pd={},_d=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:Uo(arguments[0]),e=ct(Id,this)?new Rd(t):void 0===t?Rd():Rd(t);return""===t&&(Pd[e]=!0),e};ke(_d,Rd),_d.prototype=Id,Id.constructor=_d;var kd="Symbol(test)"==String(Rd("test")),Cd=y(Id.valueOf),Md=y(Id.toString),$d=/^Symbol\((.*)\)[^)]+$/,Ld=y("".replace),Fd=y("".slice);jd(Id,"description",{configurable:!0,get:function(){var t=Cd(this);if(T(Pd,t))return"";var e=Md(t),r=kd?Fd(e,7,-1):Ld(e,$d,"$1");return""===r?void 0:r}}),Be({global:!0,constructor:!0,forced:!0},{Symbol:_d})}function Nd(){}function Ud(t){return t()}function Dd(){return Object.create(null)}function Bd(t){t.forEach(Ud)}function Wd(t){return"function"==typeof t}function zd(t,e){return t!=t?e==e:t!==e||t&&"object"===Or(t)||"function"==typeof t}function Gd(t,e){return Ed||(Ed=document.createElement("a")),Ed.href=e,t===Ed.href}function Vd(t,e){t.appendChild(e)}function Yd(t,e,r){var n=function(t){if(!t)return document;var e=t.getRootNode?t.getRootNode():t.ownerDocument;if(e&&e.host)return e;return t.ownerDocument}(t);if(!n.getElementById(e)){var o=Kd("style");o.id=e,o.textContent=r,function(t,e){Vd(t.head||t,e),e.sheet}(n,o)}}function Hd(t,e,r){t.insertBefore(e,r||null)}function qd(t){t.parentNode&&t.parentNode.removeChild(t)}function Kd(t){return document.createElement(t)}function Jd(t){return document.createTextNode(t)}function Xd(){return Jd(" ")}function Qd(t,e,r,n){return t.addEventListener(e,r,n),function(){return t.removeEventListener(e,r,n)}}function Zd(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function th(t){return Array.from(t.childNodes)}function eh(t,e,r){t.classList[r?"add":"remove"](e)}function rh(t){Od=t}Ml("iterator");var nh=[],oh=[],ih=[],ah=[],uh=Promise.resolve(),ch=!1;function fh(t){ih.push(t)}var sh=new Set,lh=0;function dh(){var t=Od;do{for(;lh<nh.length;){var e=nh[lh];lh++,rh(e),hh(e.$$)}for(rh(null),nh.length=0,lh=0;oh.length;)oh.pop()();for(var r=0;r<ih.length;r+=1){var n=ih[r];sh.has(n)||(sh.add(n),n())}ih.length=0}while(nh.length);for(;ah.length;)ah.pop()();ch=!1,sh.clear(),rh(t)}function hh(t){if(null!==t.fragment){t.update(),Bd(t.before_update);var e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(fh)}}var vh=new Set;function ph(t,e){t&&t.i&&(vh.delete(t),t.i(e))}function yh(t,e,r,n){if(t&&t.o){if(vh.has(t))return;vh.add(t),(void 0).c.push((function(){vh.delete(t),n&&(r&&t.d(1),n())})),t.o(e)}else n&&n()}var gh="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function bh(t){t&&t.c()}function mh(t,e,r,n){var o=t.$$,i=o.fragment,a=o.after_update;i&&i.m(e,r),n||fh((function(){var e,r=t.$$.on_mount.map(Ud).filter(Wd);t.$$.on_destroy?(e=t.$$.on_destroy).push.apply(e,Ur(r)):Bd(r);t.$$.on_mount=[]})),a.forEach(fh)}function wh(t,e){var r=t.$$;null!==r.fragment&&(Bd(r.on_destroy),r.fragment&&r.fragment.d(e),r.on_destroy=r.fragment=null,r.ctx=[])}function xh(t,e){-1===t.$$.dirty[0]&&(nh.push(t),ch||(ch=!0,uh.then(dh)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Ah(t,e,r,n,o,i,a){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],c=Od;rh(t);var f=t.$$={fragment:null,ctx:[],props:i,update:Nd,not_equal:o,bound:Dd(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:Dd(),dirty:u,skip_bound:!1,root:e.target||c.$$.root};a&&a(f.root);var s=!1;if(f.ctx=r?r(t,e.props||{},(function(e,r){var n=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:r;return f.ctx&&o(f.ctx[e],f.ctx[e]=n)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](n),s&&xh(t,e)),r})):[],f.update(),s=!0,Bd(f.before_update),f.fragment=!!n&&n(f.ctx),e.target){if(e.hydrate){var l=th(e.target);f.fragment&&f.fragment.l(l),l.forEach(qd)}else f.fragment&&f.fragment.c();e.intro&&ph(t.$$.fragment),mh(t,e.target,e.anchor,e.customElement),dh()}rh(c)}var Th=function(){function t(){Pr(this,t)}return Ir(t,[{key:"$destroy",value:function(){wh(this,1),this.$destroy=Nd}},{key:"$on",value:function(t,e){if(!Wd(e))return Nd;var r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),function(){var t=r.indexOf(e);-1!==t&&r.splice(t,1)}}},{key:"$set",value:function(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}]),t}();function Sh(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=$r(t);if(e){var o=$r(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Mr(this,r)}}function Eh(t){Yd(t,"svelte-tod4fh",".svelte-tod4fh.svelte-tod4fh,.svelte-tod4fh.svelte-tod4fh:before,.svelte-tod4fh.svelte-tod4fh:after{box-sizing:border-box}.bot-border.svelte-tod4fh.svelte-tod4fh{position:fixed;display:flex;flex-direction:column;top:0;bottom:env(safe-area-inset-bottom);height:100%;max-height:100vh;width:100%;border-width:0;border-radius:var(--window-border-radius, 8px);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:2147483647}.bot-border.closed.svelte-tod4fh.svelte-tod4fh{transform:translateY(100vh);opacity:0}.header.svelte-tod4fh.svelte-tod4fh{display:flex;justify-content:space-between;width:100%;height:var(--header-height, 4em);background-color:var(--header-background-color, var(--brand-primary-color, rgb(114, 46, 209)))}.bot.svelte-tod4fh.svelte-tod4fh{display:block;width:100%;flex:1 0 auto}@media screen and (min-width: 768px){#chat-frame.svelte-tod4fh.svelte-tod4fh{border-bottom-left-radius:var(--window-border-radius, 8px);border-bottom-right-radius:var(--window-border-radius, 8px)}.header.svelte-tod4fh.svelte-tod4fh{border-top-left-radius:var(--window-border-radius, 8px);border-top-right-radius:var(--window-border-radius, 8px)}.bot-border.svelte-tod4fh.svelte-tod4fh{height:var(--window-height, 40em);max-height:calc(100vh - 2em);width:var(--window-width, 23em);top:auto;right:1em;bottom:1em;left:auto;border-radius:var(--window-border-radius, 8px)}.bot-border.closed.svelte-tod4fh.svelte-tod4fh{transform:translateY(var(--window-height, 40em));opacity:0}}.bot-border-close-icon.svelte-tod4fh.svelte-tod4fh{height:100%;padding:var(--close-icon-padding, 1em)\n }img.svelte-tod4fh.svelte-tod4fh{display:block;height:100%;padding:var(--logo-padding, 1em)\n }svg.svelte-tod4fh.svelte-tod4fh{height:100%;padding:0.4em;cursor:pointer}svg.svelte-tod4fh path.svelte-tod4fh{transition:stroke-width 100ms;stroke:white;stroke-width:2px}svg.svelte-tod4fh:hover path.svelte-tod4fh{stroke-width:3px}p.svelte-tod4fh.svelte-tod4fh,pre.svelte-tod4fh.svelte-tod4fh{max-width:300px}pre.svelte-tod4fh.svelte-tod4fh{font-size:0.6em;line-height:0.5}")}function Oh(t){var e,r,n;return{c:function(){(e=Kd("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.",r=Xd(),(n=Kd("pre")).innerHTML=' <code class="svelte-tod4fh">\n &lt;script\n <br class="svelte-tod4fh"/>\n id=&quot;chatbot&quot;\n <br class="svelte-tod4fh"/>\n data-server=&quot;https://server.com/webclient&quot;\n <br class="svelte-tod4fh"/>\n defer\n <br class="svelte-tod4fh"/>\n src=&quot;https://server.com/webclient/embed/bundle.js&quot;&gt; &lt;/script&gt;\n </code>\n ',Zd(e,"class","svelte-tod4fh"),Zd(n,"class","svelte-tod4fh")},m:function(t,o){Hd(t,e,o),Hd(t,r,o),Hd(t,n,o)},p:Nd,d:function(t){t&&qd(e),t&&qd(r),t&&qd(n)}}}function jh(t){var e,r,n,o,i,a,u,c,f,s,l,d;return{c:function(){e=Kd("div"),r=Kd("div"),n=Kd("img"),i=Xd(),(a=Kd("div")).innerHTML='<svg viewBox="-2 -2 24 24" class="svelte-tod4fh"><path d="M0,0L20,20M20,0L0,20" class="svelte-tod4fh"></path></svg>',u=Xd(),c=Kd("iframe"),Gd(n.src,o="".concat(t[3],"/logo.svg"))||Zd(n,"src",o),Zd(n,"alt","Logo"),Zd(n,"class","logo svelte-tod4fh"),Zd(a,"aria-label","Close chat window"),Zd(a,"role","button"),Zd(a,"class","bot-border-close-icon svelte-tod4fh"),Zd(a,"tabindex",0),Zd(r,"class","header svelte-tod4fh"),Zd(c,"id","chat-frame"),Zd(c,"title","Chat"),Zd(c,"class","bot svelte-tod4fh"),Gd(c.src,f="".concat(t[0]).concat(-1===t[0].indexOf("?")?"?":"&","referrer=").concat(encodeURIComponent(t[1]),"&windowHeight=").concat(Ph(),"&windowWidth=").concat(Ih()))||Zd(c,"src",f),Zd(c,"frameborder","0"),Zd(c,"allow","microphone"),c.allowFullscreen="",Zd(e,"class","bot-border svelte-tod4fh"),Zd(e,"aria-hidden",s=t[2]?"false":"true"),eh(e,"closed",!t[2])},m:function(o,f){Hd(o,e,f),Vd(e,r),Vd(r,n),Vd(r,i),Vd(r,a),Vd(e,u),Vd(e,c),l||(d=[Qd(a,"click",(function(){Wd(t[4])&&t[4].apply(this,arguments)})),Qd(a,"keydown",t[5])],l=!0)},p:function(r,i){t=r,8&i&&!Gd(n.src,o="".concat(t[3],"/logo.svg"))&&Zd(n,"src",o),3&i&&!Gd(c.src,f="".concat(t[0]).concat(-1===t[0].indexOf("?")?"?":"&","referrer=").concat(encodeURIComponent(t[1]),"&windowHeight=").concat(Ph(),"&windowWidth=").concat(Ih()))&&Zd(c,"src",f),4&i&&s!==(s=t[2]?"false":"true")&&Zd(e,"aria-hidden",s),4&i&&eh(e,"closed",!t[2])},d:function(t){t&&qd(e),l=!1,Bd(d)}}}function Rh(t){var e;function r(t,e){return t[0]?jh:Oh}var n=r(t),o=n(t);return{c:function(){o.c(),e=Jd("")},m:function(t,r){o.m(t,r),Hd(t,e,r)},p:function(t,i){var a=Nr(i,1)[0];n===(n=r(t))&&o?o.p(t,a):(o.d(1),(o=n(t))&&(o.c(),o.m(e.parentNode,e)))},i:Nd,o:Nd,d:function(t){o.d(t),t&&qd(e)}}}function Ih(){try{return window.innerWidth}catch(t){return-1}}function Ph(){try{return window.innerHeight}catch(t){return-1}}function _h(t,e,r){var n=e.server,o=e.referrer,i=e.open,a=e.assetsUrl,u=e.onToggle;return t.$$set=function(t){"server"in t&&r(0,n=t.server),"referrer"in t&&r(1,o=t.referrer),"open"in t&&r(2,i=t.open),"assetsUrl"in t&&r(3,a=t.assetsUrl),"onToggle"in t&&r(4,u=t.onToggle)},[n,o,i,a,u,function(t){var e=t.key;"ArrowDown"!==e&&"ArrowRight"!==e&&"Enter"!==e&&" "!==e&&"Space"!==e||(t.stopPropagation(),u())}]}var kh=function(t){Cr(r,t);var e=Sh(r);function r(t){var n;return Pr(this,r),Ah(_r(n=e.call(this)),t,_h,Rh,zd,{server:0,referrer:1,open:2,assetsUrl:3,onToggle:4},Eh),n}return Ir(r)}(Th);function Ch(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=$r(t);if(e){var o=$r(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Mr(this,r)}}function Mh(t){Yd(t,"svelte-k6xuc4",".svelte-k6xuc4,.svelte-k6xuc4:before,.svelte-k6xuc4:after{box-sizing:border-box}.chat-button-wrapper.svelte-k6xuc4{position:fixed;top:var(--fab-top-mobile, var(--fab-top, auto));right:var(--fab-right-mobile, var(--fab-right, 1.5em));bottom:var(--fab-bottom-mobile, var(--fab-bottom, 1.5em));left:var(--fab-left-mobile, var(--fab-left, auto));width:var(--fab-size-mobile, var(--fab-size, 5em));height:var(--fab-size-mobile, var(--fab-size, 5em));z-index:999}@media screen and (min-width: 768px){.chat-button-wrapper.svelte-k6xuc4{top:var(--fab-top, auto);right:var(--fab-right, 1.5em);bottom:var(--fab-bottom, 1.5em);left:var(--fab-left, auto);width:var(--fab-size, 6em);height:var(--fab-size, 6em)}}.chat-button.svelte-k6xuc4{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-k6xuc4:hover{box-shadow:16px 16px 16px rgba(0, 0, 0, 0.2);transform:translateY(-2px)}")}function $h(t){var e,r,n,o,i;return{c:function(){e=Kd("div"),Zd(r=Kd("img"),"class","chat-button svelte-k6xuc4"),Zd(r,"alt","Open chatbot"),Gd(r.src,n="".concat(t[0],"/fab.svg"))||Zd(r,"src",n),Zd(e,"class","chat-button-wrapper svelte-k6xuc4"),Zd(e,"tabindex","0"),Zd(e,"role","button"),Zd(e,"aria-label","Open chat window")},m:function(n,a){Hd(n,e,a),Vd(e,r),o||(i=[Qd(e,"click",(function(){Wd(t[1])&&t[1].apply(this,arguments)})),Qd(e,"keydown",t[2])],o=!0)},p:function(e,o){var i=Nr(o,1)[0];t=e,1&i&&!Gd(r.src,n="".concat(t[0],"/fab.svg"))&&Zd(r,"src",n)},i:Nd,o:Nd,d:function(t){t&&qd(e),o=!1,Bd(i)}}}function Lh(t,e,r){var n=e.assetsUrl,o=e.onToggle;return t.$$set=function(t){"assetsUrl"in t&&r(0,n=t.assetsUrl),"onToggle"in t&&r(1,o=t.onToggle)},[n,o,function(t){var e=t.key;"ArrowDown"!==e&&"ArrowRight"!==e&&"Enter"!==e&&" "!==e&&"Space"!==e||(t.stopPropagation(),o())}]}var Fh=function(t){Cr(r,t);var e=Ch(r);function r(t){var n;return Pr(this,r),Ah(_r(n=e.call(this)),t,Lh,$h,zd,{assetsUrl:0,onToggle:1},Mh),n}return Ir(r)}(Th),Nh=function(t,e){var r=window.addEventListener?"addEventListener":"attachEvent";(0,window[r])("attachEvent"===r?"onmessage":"message",(function(r){var n,o=r.data;switch(o.type){case"webclient.expand.window":t(o.devices);break;case"webclient.change.url":e(o.url);break;case"google.tag.event":n=o.payload,window.gtag?window.gtag("event","",n):window.dataLayer&&window.dataLayer.push(n)}}),!1)},Uh=Y("species"),Dh=RegExp.prototype,Bh=function(t,e,r,n){var o=Y(t),i=!l((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!l((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Uh]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!a||r){var u=Gr(/./[o]),c=e(o,""[t],(function(t,e,r,n,o){var a=Gr(t),c=e.exec;return c===Ol||c===Dh.exec?i&&!o?{done:!0,value:u(e,r,n)}:{done:!0,value:a(r,e,n)}:{done:!1}}));Ht(String.prototype,t,c[0]),Ht(Dh,o,c[1])}n&&Ft(Dh[o],"sham",!0)},Wh=Go.charAt,zh=function(t,e,r){return e+(r?Wh(t,e).length:1)},Gh=Math.floor,Vh=y("".charAt),Yh=y("".replace),Hh=y("".slice),qh=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Kh=/\$([$&'`]|\d{1,2})/g,Jh=function(t,e,r,n,o,i){var a=r+t.length,u=n.length,c=Kh;return void 0!==o&&(o=x(o),c=qh),Yh(i,c,(function(i,c){var f;switch(Vh(c,0)){case"$":return"$";case"&":return t;case"`":return Hh(e,0,r);case"'":return Hh(e,a);case"<":f=o[Hh(c,1,-1)];break;default:var s=+c;if(0===s)return i;if(s>u){var l=Gh(s/10);return 0===l?i:l<=u?void 0===n[l-1]?Vh(c,1):n[l-1]+Vh(c,1):i}f=n[s-1]}return void 0===f?"":f}))},Xh=TypeError,Qh=function(t,e){var r=t.exec;if(_(r)){var n=ut(r,t,e);return null!==n&&it(n),n}if("RegExp"===Jt(t))return ut(Ol,t,e);throw Xh("RegExp#exec called on incompatible receiver")},Zh=Y("replace"),tv=Math.max,ev=Math.min,rv=y([].concat),nv=y([].push),ov=y("".indexOf),iv=y("".slice),av="$0"==="a".replace(/./,"$0"),uv=!!/./[Zh]&&""===/./[Zh]("a","$0");Bh("replace",(function(t,e,r){var n=uv?"$":"$0";return[function(t,r){var n=m(this),o=g(t)?void 0:pt(t,Zh);return o?ut(o,t,n,r):ut(e,Uo(n),t,r)},function(t,o){var i=it(this),a=Uo(t);if("string"==typeof o&&-1===ov(o,n)&&-1===ov(o,"$<")){var u=r(e,i,a,o);if(u.done)return u.value}var c=_(o);c||(o=Uo(o));var f=i.global;if(f){var s=i.unicode;i.lastIndex=0}for(var l=[];;){var d=Qh(i,a);if(null===d)break;if(nv(l,d),!f)break;""===Uo(d[0])&&(i.lastIndex=zh(a,me(i.lastIndex),s))}for(var h,v="",p=0,y=0;y<l.length;y++){for(var g=Uo((d=l[y])[0]),b=tv(ev(ve(d.index),a.length),0),m=[],w=1;w<d.length;w++)nv(m,void 0===(h=d[w])?h:String(h));var x=d.groups;if(c){var A=rv([g],m,b,a);void 0!==x&&nv(A,x);var T=Uo(Ve(o,void 0,A))}else T=Jh(g,a,b,m,x,o);b>=p&&(v+=iv(a,p,b)+T,p=b+g.length)}return v+iv(a,p)}]}),!!l((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!av||uv);var cv=uo.onFreeze,fv=Object.freeze,sv=l((function(){fv(1)}));
2
- /*! js-cookie v3.0.1 | MIT */
3
- function lv(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)t[n]=r[n]}return t}Be({target:"Object",stat:!0,forced:sv,sham:!ao},{freeze:function(t){return fv&&X(t)?fv(cv(t)):t}});var dv=function t(e,r){function n(t,n,o){if("undefined"!=typeof document){"number"==typeof(o=lv({},r,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var i="";for(var a in o)o[a]&&(i+="; "+a,!0!==o[a]&&(i+="="+o[a].split(";")[0]));return document.cookie=t+"="+e.write(n,t)+i}}return Object.create({set:n,get:function(t){if("undefined"!=typeof document&&(!arguments.length||t)){for(var r=document.cookie?document.cookie.split("; "):[],n={},o=0;o<r.length;o++){var i=r[o].split("="),a=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(n[u]=e.read(a,u),t===u)break}catch(t){}}return t?n[t]:n}},remove:function(t,e){n(t,"",lv({},e,{expires:-1}))},withAttributes:function(e){return t(this.converter,lv({},this.attributes,e))},withConverter:function(e){return t(lv({},this.converter,e),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(e)}})}({read:function(t){return'"'===t[0]&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),hv=function(){switch(dv.get("bot-window")){case"open":return!0;case"closed":default:return!1}},vv=function(t){dv.set("bot-window",t)},pv=!1;var yv=[],gv=hv();function bv(){gv=!0,vv("open"),yv.forEach((function(t){t.call(window,gv)}))}function mv(){gv=!1,vv("closed"),yv.forEach((function(t){t.call(window,gv)}))}function wv(){gv?mv():bv()}function xv(t){document.getElementById("chat-frame").contentWindow.postMessage(t,"*")}function Av(t,e){switch(t){case"ON_CHAT_WINDOW_STATE_CHANGE":yv.push(e);break;default:throw new Error("Unsupported event "+t)}}Bh("match",(function(t,e,r){return[function(e){var r=m(this),n=g(e)?void 0:pt(e,t);return n?ut(n,e,r):new RegExp(e)[t](Uo(r))},function(t){var n=it(this),o=Uo(t),i=r(e,n,o);if(i.done)return i.value;if(!n.global)return Qh(n,o);var a=n.unicode;n.lastIndex=0;for(var u,c=[],f=0;null!==(u=Qh(n,o));){var s=Uo(u[0]);c[f]=s,""===s&&(n.lastIndex=zh(o,me(n.lastIndex),a)),f++}return 0===f?null:c}]}));var Tv=function(){navigator.userAgent.match(/(iPad|iPhone|iPod)/g)&&document.querySelectorAll("html, body").forEach((function(t){t.classList.add("iOS-device")}))};function Sv(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=$r(t);if(e){var o=$r(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Mr(this,r)}}var Ev=gh.document;function Ov(t){Yd(t,"svelte-sr5aex","#chatbot-window.svelte-sr5aex{font-size:16px}")}function jv(t){var e,r,n,o,i,a,u,c;return i=new Fh({props:{server:t[0],assetsUrl:t[2],onToggle:wv}}),u=new kh({props:{server:t[0],referrer:t[1],assetsUrl:t[2],open:t[3],onToggle:wv}}),{c:function(){e=Kd("link"),n=Xd(),o=Kd("div"),bh(i.$$.fragment),a=Xd(),bh(u.$$.fragment),Zd(e,"rel","stylesheet"),Zd(e,"href",r="".concat(t[2],"/custom.css")),Zd(o,"id","chatbot-window"),Zd(o,"class","svelte-sr5aex")},m:function(t,r){Vd(Ev.head,e),Hd(t,n,r),Hd(t,o,r),mh(i,o,null),Vd(o,a),mh(u,o,null),c=!0},p:function(t,n){var o=Nr(n,1)[0];(!c||4&o&&r!==(r="".concat(t[2],"/custom.css")))&&Zd(e,"href",r);var a={};1&o&&(a.server=t[0]),4&o&&(a.assetsUrl=t[2]),i.$set(a);var f={};1&o&&(f.server=t[0]),2&o&&(f.referrer=t[1]),4&o&&(f.assetsUrl=t[2]),8&o&&(f.open=t[3]),u.$set(f)},i:function(t){c||(ph(i.$$.fragment,t),ph(u.$$.fragment,t),c=!0)},o:function(t){yh(i.$$.fragment,t),yh(u.$$.fragment,t),c=!1},d:function(t){qd(e),t&&qd(n),t&&qd(o),wh(i),wh(u)}}}function Rv(t,e,r){var n=e.server,o=e.referrer,i=e.assetsUrl,a=void 0===i?n?n.split("?")[0]:void 0:i;Tv();var u=hv();return Av("ON_CHAT_WINDOW_STATE_CHANGE",(function(t){r(3,u=t)})),Nh((function(t){var e=window.innerWidth;(null==t||"all"===t||"desktop"===t&&e>=768||"mobile"===t&&e<768)&&bv()}),(function(t){window.innerWidth<768&&mv(),document.location.href=t})),t.$$set=function(t){"server"in t&&r(0,n=t.server),"referrer"in t&&r(1,o=t.referrer),"assetsUrl"in t&&r(2,a=t.assetsUrl)},[n,o,a,u]}var Iv=function(t){Cr(r,t);var e=Sv(r);function r(t){var n;return Pr(this,r),Ah(_r(n=e.call(this)),t,Rv,jv,zd,{server:0,referrer:1,assetsUrl:2},Ov),n}return Ir(r)}(Th),Pv=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")),_v=function(){console.log("Chatbot is loading from",Pv),new Iv({target:document.body,props:{server:Pv,referrer:window.location.href}}),pv=!0};!function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;e>=3||"complete"===document.readyState?setTimeout(_v,1e3):setTimeout((function(){t(e+1)}),1e3)}();var kv=document.getElementById("chatbot");return kv&&kv.src.indexOf("caller=bookmarklet")>0&&setTimeout(_v,500),t.closeChatWindow=mv,t.enterGuestMessage=function(t){xv({type:"CHAT_MESSAGE_FROM_GUEST",text:t})},t.isChatbotLoaded=function(){return pv},t.openChatWindow=bv,t.subscribe=Av,t.toggleChatWindow=wv,t.triggerStory=function(t){xv({type:"TRIGGER_STORY",story:t})},Object.defineProperty(t,"__esModule",{value:!0}),t}({});
4
- //# sourceMappingURL=bundle.js.map
1
+ var ge=Object.defineProperty;var me=(e,t,r)=>t in e?ge(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var D=(e,t,r)=>(me(e,typeof t!="symbol"?t+"":t,r),r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))o(n);new MutationObserver(n=>{for(const a of n)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function r(n){const a={};return n.integrity&&(a.integrity=n.integrity),n.referrerPolicy&&(a.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?a.credentials="include":n.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function o(n){if(n.ep)return;n.ep=!0;const a=r(n);fetch(n.href,a)}})();function _(){}function se(e){return e()}function V(){return Object.create(null)}function C(e){e.forEach(se)}function I(e){return typeof e=="function"}function B(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let T;function x(e,t){return e===t?!0:(T||(T=document.createElement("a")),T.href=t,e===T.href)}function pe(e){return Object.keys(e).length===0}const be=typeof window<"u"?window:typeof globalThis<"u"?globalThis:global;function g(e,t){e.appendChild(t)}function M(e,t,r){const o=_e(e);if(!o.getElementById(t)){const n=v("style");n.id=t,n.textContent=r,ye(o,n)}}function _e(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ye(e,t){return g(e.head||e,t),t.sheet}function b(e,t,r){e.insertBefore(t,r||null)}function m(e){e.parentNode&&e.parentNode.removeChild(e)}function v(e){return document.createElement(e)}function ie(e){return document.createTextNode(e)}function O(){return ie(" ")}function ze(){return ie("")}function L(e,t,r,o){return e.addEventListener(t,r,o),()=>e.removeEventListener(t,r,o)}function u(e,t,r){r==null?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function xe(e){return Array.from(e.childNodes)}function J(e,t,r){e.classList.toggle(t,!!r)}let F;function U(e){F=e}const z=[],Q=[];let k=[];const X=[],ke=Promise.resolve();let $=!1;function Ce(){$||($=!0,ke.then(ae))}function N(e){k.push(e)}const R=new Set;let y=0;function ae(){if(y!==0)return;const e=F;do{try{for(;y<z.length;){const t=z[y];y++,U(t),Ue(t.$$)}}catch(t){throw z.length=0,y=0,t}for(U(null),z.length=0,y=0;Q.length;)Q.pop()();for(let t=0;t<k.length;t+=1){const r=k[t];R.has(r)||(R.add(r),r())}k.length=0}while(z.length);for(;X.length;)X.pop()();$=!1,R.clear(),U(e)}function Ue(e){if(e.fragment!==null){e.update(),C(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(N)}}function Oe(e){const t=[],r=[];k.forEach(o=>e.indexOf(o)===-1?t.push(o):r.push(o)),r.forEach(o=>o()),k=t}const W=new Set;let Ee;function P(e,t){e&&e.i&&(W.delete(e),e.i(t))}function Z(e,t,r,o){if(e&&e.o){if(W.has(e))return;W.add(e),Ee.c.push(()=>{W.delete(e),o&&(r&&e.d(1),o())}),e.o(t)}else o&&o()}function ee(e){e&&e.c()}function j(e,t,r){const{fragment:o,after_update:n}=e.$$;o&&o.m(t,r),N(()=>{const a=e.$$.on_mount.map(se).filter(I);e.$$.on_destroy?e.$$.on_destroy.push(...a):C(a),e.$$.on_mount=[]}),n.forEach(N)}function q(e,t){const r=e.$$;r.fragment!==null&&(Oe(r.after_update),C(r.on_destroy),r.fragment&&r.fragment.d(t),r.on_destroy=r.fragment=null,r.ctx=[])}function Te(e,t){e.$$.dirty[0]===-1&&(z.push(e),Ce(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function K(e,t,r,o,n,a,i=null,l=[-1]){const c=F;U(e);const s=e.$$={fragment:null,ctx:[],props:a,update:_,not_equal:n,bound:V(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(c?c.$$.context:[])),callbacks:V(),dirty:l,skip_bound:!1,root:t.target||c.$$.root};i&&i(s.root);let d=!1;if(s.ctx=r?r(e,t.props||{},(f,h,...w)=>{const p=w.length?w[0]:h;return s.ctx&&n(s.ctx[f],s.ctx[f]=p)&&(!s.skip_bound&&s.bound[f]&&s.bound[f](p),d&&Te(e,f)),h}):[],s.update(),d=!0,C(s.before_update),s.fragment=o?o(s.ctx):!1,t.target){if(t.hydrate){const f=xe(t.target);s.fragment&&s.fragment.l(f),f.forEach(m)}else s.fragment&&s.fragment.c();t.intro&&P(e.$$.fragment),j(e,t.target,t.anchor),ae()}U(c)}class Y{constructor(){D(this,"$$");D(this,"$$set")}$destroy(){q(this,1),this.$destroy=_}$on(t,r){if(!I(r))return _;const o=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return o.push(r),()=>{const n=o.indexOf(r);n!==-1&&o.splice(n,1)}}$set(t){this.$$set&&!pe(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const Ae="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Ae);function Se(e){M(e,"svelte-15u9vwz",`.svelte-15u9vwz.svelte-15u9vwz,.svelte-15u9vwz.svelte-15u9vwz:before,.svelte-15u9vwz.svelte-15u9vwz:after{box-sizing:border-box}.bot-border.svelte-15u9vwz.svelte-15u9vwz{position:fixed;display:flex;flex-direction:column;top:0;bottom:env(safe-area-inset-bottom);height:100%;max-height:100vh;width:100%;border-width:0;border-radius:var(--window-border-radius, 8px);box-shadow:rgba(0, 0, 0, 0.24) 0px 16px 40px;background:rgba(255, 255, 255, 0.93);opacity:1;transition:transform 200ms,
2
+ opacity 100ms 100ms,
3
+ all 150ms;z-index:2147483647}.bot-border.closed.svelte-15u9vwz.svelte-15u9vwz{transform:translateY(100vh);opacity:0}.header.svelte-15u9vwz.svelte-15u9vwz{display:flex;justify-content:space-between;width:100%;height:var(--header-height, 4em);background-color:var(
4
+ --header-background-color,
5
+ var(--brand-primary-color, rgb(114, 46, 209))
6
+ )}.bot.svelte-15u9vwz.svelte-15u9vwz{display:block;width:100%;flex:1 0 auto}@media screen and (min-width: 768px){#chat-frame.svelte-15u9vwz.svelte-15u9vwz{border-bottom-left-radius:var(--window-border-radius, 8px);border-bottom-right-radius:var(--window-border-radius, 8px)}.header.svelte-15u9vwz.svelte-15u9vwz{border-top-left-radius:var(--window-border-radius, 8px);border-top-right-radius:var(--window-border-radius, 8px)}.bot-border.svelte-15u9vwz.svelte-15u9vwz{height:var(--window-height, 40em);max-height:calc(100vh - 2em);width:var(--window-width, 23em);top:auto;right:1em;bottom:1em;left:auto;border-radius:var(--window-border-radius, 8px)}.bot-border.closed.svelte-15u9vwz.svelte-15u9vwz{transform:translateY(var(--window-height, 40em));opacity:0}}.bot-border-close-icon.svelte-15u9vwz.svelte-15u9vwz{height:100%;padding:var(--close-icon-padding, 1em)}img.svelte-15u9vwz.svelte-15u9vwz{display:block;height:100%;padding:var(--logo-padding, 1em)}svg.svelte-15u9vwz.svelte-15u9vwz{height:100%;padding:0.4em;cursor:pointer}svg.svelte-15u9vwz path.svelte-15u9vwz{transition:stroke-width 100ms;stroke:white;stroke-width:2px}svg.svelte-15u9vwz:hover path.svelte-15u9vwz{stroke-width:3px}p.svelte-15u9vwz.svelte-15u9vwz,pre.svelte-15u9vwz.svelte-15u9vwz{max-width:300px}pre.svelte-15u9vwz.svelte-15u9vwz{font-size:0.6em;line-height:0.5}`)}function We(e){let t,r,o;return{c(){t=v("p"),t.textContent=`Please make sure that the script tag has 'id="chatbot"' and the attribute
7
+ 'data-server' with the full qualified URL to the chatbot-server.`,r=O(),o=v("pre"),o.innerHTML=` <code class="svelte-15u9vwz">
8
+ &lt;script
9
+ <br class="svelte-15u9vwz"/>
10
+ id=&quot;chatbot&quot;
11
+ <br class="svelte-15u9vwz"/>
12
+ data-server=&quot;https://server.com/webclient&quot;
13
+ <br class="svelte-15u9vwz"/>
14
+ defer
15
+ <br class="svelte-15u9vwz"/>
16
+ src=&quot;https://server.com/webclient/embed/bundle.js&quot;&gt; &lt;/script&gt;
17
+ </code>
18
+ `,u(t,"class","svelte-15u9vwz"),u(o,"class","svelte-15u9vwz")},m(n,a){b(n,t,a),b(n,r,a),b(n,o,a)},p:_,d(n){n&&(m(t),m(r),m(o))}}}function Le(e){let t,r,o,n,a,i,l,c,s,d,f,h;return{c(){t=v("div"),r=v("div"),o=v("img"),a=O(),i=v("div"),i.innerHTML='<svg viewBox="-2 -2 24 24" class="svelte-15u9vwz"><path d="M0,0L20,20M20,0L0,20" class="svelte-15u9vwz"></path></svg>',l=O(),c=v("iframe"),x(o.src,n=`${e[3]}/logo.svg`)||u(o,"src",n),u(o,"alt","Logo"),u(o,"class","logo svelte-15u9vwz"),u(i,"aria-label","Close chat window"),u(i,"role","button"),u(i,"class","bot-border-close-icon svelte-15u9vwz"),u(i,"tabindex",0),u(r,"class","header svelte-15u9vwz"),u(c,"id","chat-frame"),u(c,"title","Chat"),u(c,"class","bot svelte-15u9vwz"),x(c.src,s=`${e[0]}${e[0].indexOf("?")===-1?"?":"&"}referrer=${encodeURIComponent(e[1]??"")}&windowHeight=${re()}&windowWidth=${te()}`)||u(c,"src",s),u(c,"frameborder","0"),u(c,"allow","microphone"),c.allowFullscreen=!0,u(t,"class","bot-border svelte-15u9vwz"),u(t,"aria-hidden",d=e[2]?"false":"true"),J(t,"closed",!e[2])},m(w,p){b(w,t,p),g(t,r),g(r,o),g(r,a),g(r,i),g(t,l),g(t,c),f||(h=[L(i,"click",function(){I(e[4])&&e[4].apply(this,arguments)}),L(i,"keydown",e[5])],f=!0)},p(w,p){e=w,p&8&&!x(o.src,n=`${e[3]}/logo.svg`)&&u(o,"src",n),p&3&&!x(c.src,s=`${e[0]}${e[0].indexOf("?")===-1?"?":"&"}referrer=${encodeURIComponent(e[1]??"")}&windowHeight=${re()}&windowWidth=${te()}`)&&u(c,"src",s),p&4&&d!==(d=e[2]?"false":"true")&&u(t,"aria-hidden",d),p&4&&J(t,"closed",!e[2])},d(w){w&&m(t),f=!1,C(h)}}}function Ie(e){let t;function r(a,i){return a[0]?Le:We}let o=r(e),n=o(e);return{c(){n.c(),t=ze()},m(a,i){n.m(a,i),b(a,t,i)},p(a,[i]){o===(o=r(a))&&n?n.p(a,i):(n.d(1),n=o(a),n&&(n.c(),n.m(t.parentNode,t)))},i:_,o:_,d(a){a&&m(t),n.d(a)}}}function te(){try{return window.innerWidth}catch{return-1}}function re(){try{return window.innerHeight}catch{return-1}}function De(e,t,r){let{server:o}=t,{referrer:n}=t,{open:a}=t,{assetsUrl:i}=t,{onToggle:l}=t;function c(s){const d=s.key;(d==="ArrowDown"||d==="ArrowRight"||d==="Enter"||d===" "||d==="Space")&&(s.stopPropagation(),l())}return e.$$set=s=>{"server"in s&&r(0,o=s.server),"referrer"in s&&r(1,n=s.referrer),"open"in s&&r(2,a=s.open),"assetsUrl"in s&&r(3,i=s.assetsUrl),"onToggle"in s&&r(4,l=s.onToggle)},[o,n,a,i,l,c]}class Re extends Y{constructor(t){super(),K(this,t,De,Ie,B,{server:0,referrer:1,open:2,assetsUrl:3,onToggle:4},Se)}}function $e(e){M(e,"svelte-2hl2mw",`.svelte-2hl2mw,.svelte-2hl2mw:before,.svelte-2hl2mw:after{box-sizing:border-box}.chat-button-wrapper.svelte-2hl2mw{position:fixed;top:var(--fab-top-mobile, var(--fab-top, auto));right:var(--fab-right-mobile, var(--fab-right, 1.5em));bottom:var(--fab-bottom-mobile, var(--fab-bottom, 1.5em));left:var(--fab-left-mobile, var(--fab-left, auto));width:var(--fab-size-mobile, var(--fab-size, 5em));height:var(--fab-size-mobile, var(--fab-size, 5em));z-index:999}@media screen and (min-width: 768px){.chat-button-wrapper.svelte-2hl2mw{top:var(--fab-top, auto);right:var(--fab-right, 1.5em);bottom:var(--fab-bottom, 1.5em);left:var(--fab-left, auto);width:var(--fab-size, 6em);height:var(--fab-size, 6em)}}.chat-button.svelte-2hl2mw{display:block;height:100%;cursor:pointer;border-radius:50%;box-shadow:9px 9px 16px rgba(0, 0, 0, 0.25);transition:transform 100ms,
19
+ box-shadow 100ms}.chat-button.svelte-2hl2mw:hover{box-shadow:16px 16px 16px rgba(0, 0, 0, 0.2);transform:translateY(-2px)}`)}function Ne(e){let t,r,o,n,a;return{c(){t=v("div"),r=v("img"),u(r,"class","chat-button svelte-2hl2mw"),u(r,"alt","Open chatbot"),x(r.src,o=`${e[0]}/fab.svg`)||u(r,"src",o),u(t,"class","chat-button-wrapper svelte-2hl2mw"),u(t,"tabindex","0"),u(t,"role","button"),u(t,"aria-label","Open chat window")},m(i,l){b(i,t,l),g(t,r),n||(a=[L(t,"click",function(){I(e[1])&&e[1].apply(this,arguments)}),L(t,"keydown",e[2])],n=!0)},p(i,[l]){e=i,l&1&&!x(r.src,o=`${e[0]}/fab.svg`)&&u(r,"src",o)},i:_,o:_,d(i){i&&m(t),n=!1,C(a)}}}function Pe(e,t,r){let{assetsUrl:o}=t,{onToggle:n}=t;function a(i){const l=i.key;(l==="ArrowDown"||l==="ArrowRight"||l==="Enter"||l===" "||l==="Space")&&(i.stopPropagation(),n())}return e.$$set=i=>{"assetsUrl"in i&&r(0,o=i.assetsUrl),"onToggle"in i&&r(1,n=i.onToggle)},[o,n,a]}class je extends Y{constructor(t){super(),K(this,t,Pe,Ne,B,{assetsUrl:0,onToggle:1},$e)}}const qe=e=>{"gtag"in window&&typeof window.gtag=="function"?window.gtag("event","",e):"dataLayer"in window&&Array.isArray(window.dataLayer)&&window.dataLayer.push(e)},He=(e,t)=>{window.addEventListener("message",r=>{const o=r.data;switch(o.type){case"webclient.expand.window":e(o.devices);break;case"webclient.change.url":t(o.url);break;case"google.tag.event":qe(o.payload);break}},!1)};/*! js-cookie v3.0.5 | MIT */function A(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)e[o]=r[o]}return e}var Be={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function H(e,t){function r(n,a,i){if(!(typeof document>"u")){i=A({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),n=encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var c in i)i[c]&&(l+="; "+c,i[c]!==!0&&(l+="="+i[c].split(";")[0]));return document.cookie=n+"="+e.write(a,n)+l}}function o(n){if(!(typeof document>"u"||arguments.length&&!n)){for(var a=document.cookie?document.cookie.split("; "):[],i={},l=0;l<a.length;l++){var c=a[l].split("="),s=c.slice(1).join("=");try{var d=decodeURIComponent(c[0]);if(i[d]=e.read(s,d),n===d)break}catch{}}return n?i[n]:i}}return Object.create({set:r,get:o,remove:function(n,a){r(n,"",A({},a,{expires:-1}))},withAttributes:function(n){return H(this.converter,A({},this.attributes,n))},withConverter:function(n){return H(A({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var le=H(Be,{path:"/"});const ce="bot-window",ue=()=>{switch(le.get(ce)){case"open":return!0;case"closed":return!1;default:return!1}},de=e=>{le.set(ce,e)},G=[];let E=ue();function fe(){E=!0,de("open"),G.forEach(function(e){e.call(window,E)})}function he(){E=!1,de("closed"),G.forEach(function(e){e.call(window,E)})}function ne(){E?he():fe()}function Me(e,t){switch(e){case"ON_CHAT_WINDOW_STATE_CHANGE":G.push(t);break;default:throw new Error("Unsupported event "+e)}}function Fe(){return navigator.userAgent.match(/(iPad|iPhone|iPod)/g)}const Ke=()=>{Fe()&&document.querySelectorAll("html, body").forEach(e=>{e.classList.add("iOS-device")})},{document:Ye}=be;function Ge(e){M(e,"svelte-sr5aex","#chatbot-window.svelte-sr5aex{font-size:16px}")}function Ve(e){let t,r,o,n,a,i,l,c;return a=new je({props:{assetsUrl:e[2],onToggle:ne}}),l=new Re({props:{server:e[0],referrer:e[1],assetsUrl:e[2],open:e[3],onToggle:ne}}),{c(){t=v("link"),o=O(),n=v("div"),ee(a.$$.fragment),i=O(),ee(l.$$.fragment),u(t,"rel","stylesheet"),u(t,"href",r=`${e[2]}/custom.css`),u(n,"id","chatbot-window"),u(n,"class","svelte-sr5aex")},m(s,d){g(Ye.head,t),b(s,o,d),b(s,n,d),j(a,n,null),g(n,i),j(l,n,null),c=!0},p(s,[d]){(!c||d&4&&r!==(r=`${s[2]}/custom.css`))&&u(t,"href",r);const f={};d&4&&(f.assetsUrl=s[2]),a.$set(f);const h={};d&1&&(h.server=s[0]),d&2&&(h.referrer=s[1]),d&4&&(h.assetsUrl=s[2]),d&8&&(h.open=s[3]),l.$set(h)},i(s){c||(P(a.$$.fragment,s),P(l.$$.fragment,s),c=!0)},o(s){Z(a.$$.fragment,s),Z(l.$$.fragment,s),c=!1},d(s){s&&(m(o),m(n)),m(t),q(a),q(l)}}}function Je(e,t,r){let{server:o}=t,{referrer:n}=t,{assetsUrl:a=o?o.split("?")[0]:void 0}=t;Ke();let i=ue();Me("ON_CHAT_WINDOW_STATE_CHANGE",function(d){r(3,i=d)});function l(s){const d=window.innerWidth,f=s==null||s==="all",h=s==="desktop"&&d>=768,w=s==="mobile"&&d<768;(f||h||w)&&fe()}function c(s){window.innerWidth<768&&he(),document.location.href=s}return He(l,c),e.$$set=s=>{"server"in s&&r(0,o=s.server),"referrer"in s&&r(1,n=s.referrer),"assetsUrl"in s&&r(2,a=s.assetsUrl)},[o,n,a,i]}class Qe extends Y{constructor(t){super(),K(this,t,Je,Ve,B,{server:0,referrer:1,assetsUrl:2},Ge)}}const Xe=e=>e.replace(/\/embed\/bundle\.js/,""),Ze=e=>{var t;return(t=e.dataset)==null?void 0:t.server},et=e=>{if(e&&"src"in e&&typeof e.src=="string")return Ze(e)||Xe(e.src)},tt=document.querySelector("script#chatbot"),oe=et(tt),ve=()=>{console.log("Chatbot is loading from",oe),new Qe({target:document.body,props:{server:oe,referrer:window.location.href}})},we=(e=0)=>{e>=3||document.readyState==="complete"?setTimeout(ve,1e3):setTimeout(()=>{we(e+1)},1e3)};we();var S=document.getElementById("chatbot");S&&"src"in S&&typeof S.src=="string"&&S.src.indexOf("caller=bookmarklet")>0&&setTimeout(ve,500);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botfabrik/engine-webclient",
3
- "version": "4.60.1",
3
+ "version": "4.61.4",
4
4
  "description": "Webclient for Botfabriks Bot Engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  "build:script-tag": "(cd ./script-tag && npm run build && cd ..)",
10
10
  "build:client": "(cd ./client && npm run build && cd ..)",
11
11
  "build:server": "tsc",
12
- "copy:script-tag": "copyfiles -u 2 ./script-tag/dist/**/*.* ./dist/embed && copyfiles -u 2 ./script-tag/public/**/*.* ./dist/embed",
12
+ "copy:script-tag": "copyfiles -u 2 ./script-tag/dist/bundle.js ./dist/embed",
13
13
  "copy:client": "copyfiles -u 2 ./client/dist/** ./dist/client && copyfiles -u 2 ./client/dist/**/*.* ./dist/client",
14
14
  "clean": "rimraf ./dist",
15
15
  "test": "jest --verbose",
@@ -40,5 +40,5 @@
40
40
  "rimraf": "^5.0.5",
41
41
  "typescript": "5.1.6"
42
42
  },
43
- "gitHead": "51c16e653e32b4aa17c2ea45dde1edd5a29fd163"
43
+ "gitHead": "8695e07297f35b1920c63f29672908d61ea304bf"
44
44
  }