@sesamy/sesamy-js 1.37.2 → 1.37.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sesamy-js.cjs +3 -3
- package/dist/sesamy-js.iife.js +3 -3
- package/dist/sesamy-js.mjs +93 -91
- package/package.json +1 -1
package/dist/sesamy-js.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var As=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},js={},An,Us;function qe(){return Us||(Us=1,An=function(e){try{return!!e()}catch{return!0}}),An}var jn,Ls;function nn(){if(Ls)return jn;Ls=1;var e=qe();return jn=!e(function(){var r=(function(){}).bind();return typeof r!="function"||r.hasOwnProperty("prototype")}),jn}var Un,qs;function Se(){if(qs)return Un;qs=1;var e=nn(),r=Function.prototype,t=r.call,n=e&&r.bind.bind(t,t);return Un=e?n:function(a){return function(){return t.apply(a,arguments)}},Un}var Ln,xs;function an(){if(xs)return Ln;xs=1;var e=Se(),r=e({}.toString),t=e("".slice);return Ln=function(n){return t(r(n),8,-1)},Ln}var qn,Ns;function Id(){if(Ns)return qn;Ns=1;var e=Se(),r=qe(),t=an(),n=Object,a=e("".split);return qn=r(function(){return!n("z").propertyIsEnumerable(0)})?function(i){return t(i)==="String"?a(i,""):n(i)}:n,qn}var xn,Ds;function on(){return Ds||(Ds=1,xn=function(e){return e==null}),xn}var Nn,$s;function sn(){if($s)return Nn;$s=1;var e=on(),r=TypeError;return Nn=function(t){if(e(t))throw new r("Can't call method on "+t);return t},Nn}var Dn,Ms;function Tt(){if(Ms)return Dn;Ms=1;var e=Id(),r=sn();return Dn=function(t){return e(r(t))},Dn}var mt,Fs;function Ie(){if(Fs)return mt;Fs=1;var e=function(r){return r&&r.Math===Math&&r};return mt=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof As=="object"&&As)||e(typeof mt=="object"&&mt)||function(){return this}()||Function("return this")(),mt}var $n={exports:{}},Mn,Bs;function gr(){return Bs||(Bs=1,Mn=!1),Mn}var Fn,zs;function Bo(){if(zs)return Fn;zs=1;var e=Ie(),r=Object.defineProperty;return Fn=function(t,n){try{r(e,t,{value:n,configurable:!0,writable:!0})}catch{e[t]=n}return n},Fn}var Hs;function zo(){if(Hs)return $n.exports;Hs=1;var e=gr(),r=Ie(),t=Bo(),n="__core-js_shared__",a=$n.exports=r[n]||t(n,{});return(a.versions||(a.versions=[])).push({version:"3.39.0",mode:e?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"}),$n.exports}var Bn,Gs;function Pd(){if(Gs)return Bn;Gs=1;var e=zo();return Bn=function(r,t){return e[r]||(e[r]=t||{})},Bn}var zn,Ks;function un(){if(Ks)return zn;Ks=1;var e=sn(),r=Object;return zn=function(t){return r(e(t))},zn}var Hn,Ws;function tr(){if(Ws)return Hn;Ws=1;var e=Se(),r=un(),t=e({}.hasOwnProperty);return Hn=Object.hasOwn||function(a,i){return t(r(a),i)},Hn}var Gn,Vs;function Ed(){if(Vs)return Gn;Vs=1;var e=Se(),r=0,t=Math.random(),n=e(1 .toString);return Gn=function(a){return"Symbol("+(a===void 0?"":a)+")_"+n(++r+t,36)},Gn}var Kn,Js;function Ot(){if(Js)return Kn;Js=1;var e=Ie(),r=e.navigator,t=r&&r.userAgent;return Kn=t?String(t):"",Kn}var Wn,Zs;function Rd(){if(Zs)return Wn;Zs=1;var e=Ie(),r=Ot(),t=e.process,n=e.Deno,a=t&&t.versions||n&&n.version,i=a&&a.v8,o,s;return i&&(o=i.split("."),s=o[0]>0&&o[0]<4?1:+(o[0]+o[1])),!s&&r&&(o=r.match(/Edge\/(\d+)/),(!o||o[1]>=74)&&(o=r.match(/Chrome\/(\d+)/),o&&(s=+o[1]))),Wn=s,Wn}var Vn,Ys;function _d(){if(Ys)return Vn;Ys=1;var e=Rd(),r=qe(),t=Ie(),n=t.String;return Vn=!!Object.getOwnPropertySymbols&&!r(function(){var a=Symbol("symbol detection");return!n(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&e&&e<41}),Vn}var Jn,Xs;function Td(){if(Xs)return Jn;Xs=1;var e=_d();return Jn=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Jn}var Zn,Qs;function xe(){if(Qs)return Zn;Qs=1;var e=Ie(),r=Pd(),t=tr(),n=Ed(),a=_d(),i=Td(),o=e.Symbol,s=r("wks"),c=i?o.for||o:o&&o.withoutSetter||n;return Zn=function(l){return t(s,l)||(s[l]=a&&t(o,l)?o[l]:c("Symbol."+l)),s[l]},Zn}var Yn,eu;function Re(){if(eu)return Yn;eu=1;var e=typeof document=="object"&&document.all;return Yn=typeof e>"u"&&e!==void 0?function(r){return typeof r=="function"||r===e}:function(r){return typeof r=="function"},Yn}var Xn,ru;function nr(){if(ru)return Xn;ru=1;var e=Re();return Xn=function(r){return typeof r=="object"?r!==null:e(r)},Xn}var Qn,tu;function ur(){if(tu)return Qn;tu=1;var e=nr(),r=String,t=TypeError;return Qn=function(n){if(e(n))return n;throw new t(r(n)+" is not an object")},Qn}var ea={},ra,nu;function Ne(){if(nu)return ra;nu=1;var e=qe();return ra=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),ra}var ta,au;function Od(){if(au)return ta;au=1;var e=Ne(),r=qe();return ta=e&&r(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),ta}var na={},aa,iu;function cn(){if(iu)return aa;iu=1;var e=Ie(),r=nr(),t=e.document,n=r(t)&&r(t.createElement);return aa=function(a){return n?t.createElement(a):{}},aa}var ia,ou;function kd(){if(ou)return ia;ou=1;var e=Ne(),r=qe(),t=cn();return ia=!e&&!r(function(){return Object.defineProperty(t("div"),"a",{get:function(){return 7}}).a!==7}),ia}var oa,su;function Me(){if(su)return oa;su=1;var e=nn(),r=Function.prototype.call;return oa=e?r.bind(r):function(){return r.apply(r,arguments)},oa}var sa,uu;function ar(){if(uu)return sa;uu=1;var e=Ie(),r=Re(),t=function(n){return r(n)?n:void 0};return sa=function(n,a){return arguments.length<2?t(e[n]):e[n]&&e[n][a]},sa}var ua,cu;function ln(){if(cu)return ua;cu=1;var e=Se();return ua=e({}.isPrototypeOf),ua}var ca,lu;function Cd(){if(lu)return ca;lu=1;var e=ar(),r=Re(),t=ln(),n=Td(),a=Object;return ca=n?function(i){return typeof i=="symbol"}:function(i){var o=e("Symbol");return r(o)&&t(o.prototype,a(i))},ca}var la,fu;function fn(){if(fu)return la;fu=1;var e=String;return la=function(r){try{return e(r)}catch{return"Object"}},la}var fa,du;function cr(){if(du)return fa;du=1;var e=Re(),r=fn(),t=TypeError;return fa=function(n){if(e(n))return n;throw new t(r(n)+" is not a function")},fa}var da,hu;function Ho(){if(hu)return da;hu=1;var e=cr(),r=on();return da=function(t,n){var a=t[n];return r(a)?void 0:e(a)},da}var ha,vu;function mv(){if(vu)return ha;vu=1;var e=Me(),r=Re(),t=nr(),n=TypeError;return ha=function(a,i){var o,s;if(i==="string"&&r(o=a.toString)&&!t(s=e(o,a))||r(o=a.valueOf)&&!t(s=e(o,a))||i!=="string"&&r(o=a.toString)&&!t(s=e(o,a)))return s;throw new n("Can't convert object to primitive value")},ha}var va,pu;function gv(){if(pu)return va;pu=1;var e=Me(),r=nr(),t=Cd(),n=Ho(),a=mv(),i=xe(),o=TypeError,s=i("toPrimitive");return va=function(c,l){if(!r(c)||t(c))return c;var u=n(c,s),f;if(u){if(l===void 0&&(l="default"),f=e(u,c,l),!r(f)||t(f))return f;throw new o("Can't convert object to primitive value")}return l===void 0&&(l="number"),a(c,l)},va}var pa,mu;function Ad(){if(mu)return pa;mu=1;var e=gv(),r=Cd();return pa=function(t){var n=e(t,"string");return r(n)?n:n+""},pa}var gu;function Pr(){if(gu)return na;gu=1;var e=Ne(),r=kd(),t=Od(),n=ur(),a=Ad(),i=TypeError,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c="enumerable",l="configurable",u="writable";return na.f=e?t?function(h,d,v){if(n(h),d=a(d),n(v),typeof h=="function"&&d==="prototype"&&"value"in v&&u in v&&!v[u]){var m=s(h,d);m&&m[u]&&(h[d]=v.value,v={configurable:l in v?v[l]:m[l],enumerable:c in v?v[c]:m[c],writable:!1})}return o(h,d,v)}:o:function(h,d,v){if(n(h),d=a(d),n(v),r)try{return o(h,d,v)}catch{}if("get"in v||"set"in v)throw new i("Accessors not supported");return"value"in v&&(h[d]=v.value),h},na}var ma,yu;function yv(){if(yu)return ma;yu=1;var e=Math.ceil,r=Math.floor;return ma=Math.trunc||function(n){var a=+n;return(a>0?r:e)(a)},ma}var ga,wu;function Go(){if(wu)return ga;wu=1;var e=yv();return ga=function(r){var t=+r;return t!==t||t===0?0:e(t)},ga}var ya,bu;function jd(){if(bu)return ya;bu=1;var e=Go(),r=Math.max,t=Math.min;return ya=function(n,a){var i=e(n);return i<0?r(i+a,0):t(i,a)},ya}var wa,Su;function wv(){if(Su)return wa;Su=1;var e=Go(),r=Math.min;return wa=function(t){var n=e(t);return n>0?r(n,9007199254740991):0},wa}var ba,Iu;function Ko(){if(Iu)return ba;Iu=1;var e=wv();return ba=function(r){return e(r.length)},ba}var Sa,Pu;function bv(){if(Pu)return Sa;Pu=1;var e=Tt(),r=jd(),t=Ko(),n=function(a){return function(i,o,s){var c=e(i),l=t(c);if(l===0)return!a&&-1;var u=r(s,l),f;if(a&&o!==o){for(;l>u;)if(f=c[u++],f!==f)return!0}else for(;l>u;u++)if((a||u in c)&&c[u]===o)return a||u||0;return!a&&-1}};return Sa={includes:n(!0),indexOf:n(!1)},Sa}var Ia,Eu;function Wo(){return Eu||(Eu=1,Ia={}),Ia}var Pa,Ru;function Ud(){if(Ru)return Pa;Ru=1;var e=Se(),r=tr(),t=Tt(),n=bv().indexOf,a=Wo(),i=e([].push);return Pa=function(o,s){var c=t(o),l=0,u=[],f;for(f in c)!r(a,f)&&r(c,f)&&i(u,f);for(;s.length>l;)r(c,f=s[l++])&&(~n(u,f)||i(u,f));return u},Pa}var Ea,_u;function Vo(){return _u||(_u=1,Ea=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),Ea}var Ra,Tu;function Ld(){if(Tu)return Ra;Tu=1;var e=Ud(),r=Vo();return Ra=Object.keys||function(n){return e(n,r)},Ra}var Ou;function Sv(){if(Ou)return ea;Ou=1;var e=Ne(),r=Od(),t=Pr(),n=ur(),a=Tt(),i=Ld();return ea.f=e&&!r?Object.defineProperties:function(s,c){n(s);for(var l=a(c),u=i(c),f=u.length,h=0,d;f>h;)t.f(s,d=u[h++],l[d]);return s},ea}var _a,ku;function qd(){if(ku)return _a;ku=1;var e=ar();return _a=e("document","documentElement"),_a}var Ta,Cu;function Jo(){if(Cu)return Ta;Cu=1;var e=Pd(),r=Ed(),t=e("keys");return Ta=function(n){return t[n]||(t[n]=r(n))},Ta}var Oa,Au;function kt(){if(Au)return Oa;Au=1;var e=ur(),r=Sv(),t=Vo(),n=Wo(),a=qd(),i=cn(),o=Jo(),s=">",c="<",l="prototype",u="script",f=o("IE_PROTO"),h=function(){},d=function(b){return c+u+s+b+c+"/"+u+s},v=function(b){b.write(d("")),b.close();var g=b.parentWindow.Object;return b=null,g},m=function(){var b=i("iframe"),g="java"+u+":",p;return b.style.display="none",a.appendChild(b),b.src=String(g),p=b.contentWindow.document,p.open(),p.write(d("document.F=Object")),p.close(),p.F},w,E=function(){try{w=new ActiveXObject("htmlfile")}catch{}E=typeof document<"u"?document.domain&&w?v(w):m():v(w);for(var b=t.length;b--;)delete E[l][t[b]];return E()};return n[f]=!0,Oa=Object.create||function(g,p){var y;return g!==null?(h[l]=e(g),y=new h,h[l]=null,y[f]=g):y=E(),p===void 0?y:r.f(y,p)},Oa}var ka,ju;function Iv(){if(ju)return ka;ju=1;var e=xe(),r=kt(),t=Pr().f,n=e("unscopables"),a=Array.prototype;return a[n]===void 0&&t(a,n,{configurable:!0,value:r(null)}),ka=function(i){a[n][i]=!0},ka}var Ca,Uu;function Ct(){return Uu||(Uu=1,Ca={}),Ca}var Aa,Lu;function Pv(){if(Lu)return Aa;Lu=1;var e=Ie(),r=Re(),t=e.WeakMap;return Aa=r(t)&&/native code/.test(String(t)),Aa}var ja,qu;function Fr(){return qu||(qu=1,ja=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}),ja}var Ua,xu;function Br(){if(xu)return Ua;xu=1;var e=Ne(),r=Pr(),t=Fr();return Ua=e?function(n,a,i){return r.f(n,a,t(1,i))}:function(n,a,i){return n[a]=i,n},Ua}var La,Nu;function ut(){if(Nu)return La;Nu=1;var e=Pv(),r=Ie(),t=nr(),n=Br(),a=tr(),i=zo(),o=Jo(),s=Wo(),c="Object already initialized",l=r.TypeError,u=r.WeakMap,f,h,d,v=function(b){return d(b)?h(b):f(b,{})},m=function(b){return function(g){var p;if(!t(g)||(p=h(g)).type!==b)throw new l("Incompatible receiver, "+b+" required");return p}};if(e||i.state){var w=i.state||(i.state=new u);w.get=w.get,w.has=w.has,w.set=w.set,f=function(b,g){if(w.has(b))throw new l(c);return g.facade=b,w.set(b,g),g},h=function(b){return w.get(b)||{}},d=function(b){return w.has(b)}}else{var E=o("state");s[E]=!0,f=function(b,g){if(a(b,E))throw new l(c);return g.facade=b,n(b,E,g),g},h=function(b){return a(b,E)?b[E]:{}},d=function(b){return a(b,E)}}return La={set:f,get:h,has:d,enforce:v,getterFor:m},La}var qa={},xa={},Du;function xd(){if(Du)return xa;Du=1;var e={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,t=r&&!e.call({1:2},1);return xa.f=t?function(a){var i=r(this,a);return!!i&&i.enumerable}:e,xa}var $u;function Nd(){if($u)return qa;$u=1;var e=Ne(),r=Me(),t=xd(),n=Fr(),a=Tt(),i=Ad(),o=tr(),s=kd(),c=Object.getOwnPropertyDescriptor;return qa.f=e?c:function(u,f){if(u=a(u),f=i(f),s)try{return c(u,f)}catch{}if(o(u,f))return n(!r(t.f,u,f),u[f])},qa}var Na={exports:{}},Da,Mu;function Dd(){if(Mu)return Da;Mu=1;var e=Ne(),r=tr(),t=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,a=r(t,"name"),i=a&&(function(){}).name==="something",o=a&&(!e||e&&n(t,"name").configurable);return Da={EXISTS:a,PROPER:i,CONFIGURABLE:o},Da}var $a,Fu;function Zo(){if(Fu)return $a;Fu=1;var e=Se(),r=Re(),t=zo(),n=e(Function.toString);return r(t.inspectSource)||(t.inspectSource=function(a){return n(a)}),$a=t.inspectSource,$a}var Bu;function $d(){if(Bu)return Na.exports;Bu=1;var e=Se(),r=qe(),t=Re(),n=tr(),a=Ne(),i=Dd().CONFIGURABLE,o=Zo(),s=ut(),c=s.enforce,l=s.get,u=String,f=Object.defineProperty,h=e("".slice),d=e("".replace),v=e([].join),m=a&&!r(function(){return f(function(){},"length",{value:8}).length!==8}),w=String(String).split("String"),E=Na.exports=function(b,g,p){h(u(g),0,7)==="Symbol("&&(g="["+d(u(g),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),p&&p.getter&&(g="get "+g),p&&p.setter&&(g="set "+g),(!n(b,"name")||i&&b.name!==g)&&(a?f(b,"name",{value:g,configurable:!0}):b.name=g),m&&p&&n(p,"arity")&&b.length!==p.arity&&f(b,"length",{value:p.arity});try{p&&n(p,"constructor")&&p.constructor?a&&f(b,"prototype",{writable:!1}):b.prototype&&(b.prototype=void 0)}catch{}var y=c(b);return n(y,"source")||(y.source=v(w,typeof g=="string"?g:"")),b};return Function.prototype.toString=E(function(){return t(this)&&l(this).source||o(this)},"toString"),Na.exports}var Ma,zu;function ir(){if(zu)return Ma;zu=1;var e=Re(),r=Pr(),t=$d(),n=Bo();return Ma=function(a,i,o,s){s||(s={});var c=s.enumerable,l=s.name!==void 0?s.name:i;if(e(o)&&t(o,l,s),s.global)c?a[i]=o:n(i,o);else{try{s.unsafe?a[i]&&(c=!0):delete a[i]}catch{}c?a[i]=o:r.f(a,i,{value:o,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return a},Ma}var Fa={},Hu;function Ev(){if(Hu)return Fa;Hu=1;var e=Ud(),r=Vo(),t=r.concat("length","prototype");return Fa.f=Object.getOwnPropertyNames||function(a){return e(a,t)},Fa}var Ba={},Gu;function Md(){return Gu||(Gu=1,Ba.f=Object.getOwnPropertySymbols),Ba}var za,Ku;function Rv(){if(Ku)return za;Ku=1;var e=ar(),r=Se(),t=Ev(),n=Md(),a=ur(),i=r([].concat);return za=e("Reflect","ownKeys")||function(s){var c=t.f(a(s)),l=n.f;return l?i(c,l(s)):c},za}var Ha,Wu;function Fd(){if(Wu)return Ha;Wu=1;var e=tr(),r=Rv(),t=Nd(),n=Pr();return Ha=function(a,i,o){for(var s=r(i),c=n.f,l=t.f,u=0;u<s.length;u++){var f=s[u];!e(a,f)&&!(o&&e(o,f))&&c(a,f,l(i,f))}},Ha}var Ga,Vu;function Bd(){if(Vu)return Ga;Vu=1;var e=qe(),r=Re(),t=/#|\.prototype\./,n=function(c,l){var u=i[a(c)];return u===s?!0:u===o?!1:r(l)?e(l):!!l},a=n.normalize=function(c){return String(c).replace(t,".").toLowerCase()},i=n.data={},o=n.NATIVE="N",s=n.POLYFILL="P";return Ga=n,Ga}var Ka,Ju;function ke(){if(Ju)return Ka;Ju=1;var e=Ie(),r=Nd().f,t=Br(),n=ir(),a=Bo(),i=Fd(),o=Bd();return Ka=function(s,c){var l=s.target,u=s.global,f=s.stat,h,d,v,m,w,E;if(u?d=e:f?d=e[l]||a(l,{}):d=e[l]&&e[l].prototype,d)for(v in c){if(w=c[v],s.dontCallGetSet?(E=r(d,v),m=E&&E.value):m=d[v],h=o(u?v:l+(f?".":"#")+v,s.forced),!h&&m!==void 0){if(typeof w==typeof m)continue;i(w,m)}(s.sham||m&&m.sham)&&t(w,"sham",!0),n(d,v,w,s)}},Ka}var Wa,Zu;function _v(){if(Zu)return Wa;Zu=1;var e=qe();return Wa=!e(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype}),Wa}var Va,Yu;function Yo(){if(Yu)return Va;Yu=1;var e=tr(),r=Re(),t=un(),n=Jo(),a=_v(),i=n("IE_PROTO"),o=Object,s=o.prototype;return Va=a?o.getPrototypeOf:function(c){var l=t(c);if(e(l,i))return l[i];var u=l.constructor;return r(u)&&l instanceof u?u.prototype:l instanceof o?s:null},Va}var Ja,Xu;function zd(){if(Xu)return Ja;Xu=1;var e=qe(),r=Re(),t=nr(),n=kt(),a=Yo(),i=ir(),o=xe(),s=gr(),c=o("iterator"),l=!1,u,f,h;[].keys&&(h=[].keys(),"next"in h?(f=a(a(h)),f!==Object.prototype&&(u=f)):l=!0);var d=!t(u)||e(function(){var v={};return u[c].call(v)!==v});return d?u={}:s&&(u=n(u)),r(u[c])||i(u,c,function(){return this}),Ja={IteratorPrototype:u,BUGGY_SAFARI_ITERATORS:l},Ja}var Za,Qu;function ct(){if(Qu)return Za;Qu=1;var e=Pr().f,r=tr(),t=xe(),n=t("toStringTag");return Za=function(a,i,o){a&&!o&&(a=a.prototype),a&&!r(a,n)&&e(a,n,{configurable:!0,value:i})},Za}var Ya,ec;function Hd(){if(ec)return Ya;ec=1;var e=zd().IteratorPrototype,r=kt(),t=Fr(),n=ct(),a=Ct(),i=function(){return this};return Ya=function(o,s,c,l){var u=s+" Iterator";return o.prototype=r(e,{next:t(+!l,c)}),n(o,u,!1,!0),a[u]=i,o},Ya}var Xa,rc;function Tv(){if(rc)return Xa;rc=1;var e=Se(),r=cr();return Xa=function(t,n,a){try{return e(r(Object.getOwnPropertyDescriptor(t,n)[a]))}catch{}},Xa}var Qa,tc;function Ov(){if(tc)return Qa;tc=1;var e=nr();return Qa=function(r){return e(r)||r===null},Qa}var ei,nc;function kv(){if(nc)return ei;nc=1;var e=Ov(),r=String,t=TypeError;return ei=function(n){if(e(n))return n;throw new t("Can't set "+r(n)+" as a prototype")},ei}var ri,ac;function Xo(){if(ac)return ri;ac=1;var e=Tv(),r=nr(),t=sn(),n=kv();return ri=Object.setPrototypeOf||("__proto__"in{}?function(){var a=!1,i={},o;try{o=e(Object.prototype,"__proto__","set"),o(i,[]),a=i instanceof Array}catch{}return function(c,l){return t(c),n(l),r(c)&&(a?o(c,l):c.__proto__=l),c}}():void 0),ri}var ti,ic;function Gd(){if(ic)return ti;ic=1;var e=ke(),r=Me(),t=gr(),n=Dd(),a=Re(),i=Hd(),o=Yo(),s=Xo(),c=ct(),l=Br(),u=ir(),f=xe(),h=Ct(),d=zd(),v=n.PROPER,m=n.CONFIGURABLE,w=d.IteratorPrototype,E=d.BUGGY_SAFARI_ITERATORS,b=f("iterator"),g="keys",p="values",y="entries",k=function(){return this};return ti=function(A,j,z,H,ee,x,N){i(z,j,H);var q=function(Z){if(Z===ee&&S)return S;if(!E&&Z&&Z in re)return re[Z];switch(Z){case g:return function(){return new z(this,Z)};case p:return function(){return new z(this,Z)};case y:return function(){return new z(this,Z)}}return function(){return new z(this)}},O=j+" Iterator",X=!1,re=A.prototype,Q=re[b]||re["@@iterator"]||ee&&re[ee],S=!E&&Q||q(ee),_=j==="Array"&&re.entries||Q,D,B,K;if(_&&(D=o(_.call(new A)),D!==Object.prototype&&D.next&&(!t&&o(D)!==w&&(s?s(D,w):a(D[b])||u(D,b,k)),c(D,O,!0,!0),t&&(h[O]=k))),v&&ee===p&&Q&&Q.name!==p&&(!t&&m?l(re,"name",p):(X=!0,S=function(){return r(Q,this)})),ee)if(B={values:q(p),keys:x?S:q(g),entries:q(y)},N)for(K in B)(E||X||!(K in re))&&u(re,K,B[K]);else e({target:j,proto:!0,forced:E||X},B);return(!t||N)&&re[b]!==S&&u(re,b,S,{name:ee}),h[j]=S,B},ti}var ni,oc;function Qo(){return oc||(oc=1,ni=function(e,r){return{value:e,done:r}}),ni}var ai,sc;function es(){if(sc)return ai;sc=1;var e=Tt(),r=Iv(),t=Ct(),n=ut(),a=Pr().f,i=Gd(),o=Qo(),s=gr(),c=Ne(),l="Array Iterator",u=n.set,f=n.getterFor(l);ai=i(Array,"Array",function(d,v){u(this,{type:l,target:e(d),index:0,kind:v})},function(){var d=f(this),v=d.target,m=d.index++;if(!v||m>=v.length)return d.target=null,o(void 0,!0);switch(d.kind){case"keys":return o(m,!1);case"values":return o(v[m],!1)}return o([m,v[m]],!1)},"values");var h=t.Arguments=t.Array;if(r("keys"),r("values"),r("entries"),!s&&c&&h.name!=="values")try{a(h,"name",{value:"values"})}catch{}return ai}var uc={},cc;function Cv(){if(cc)return uc;cc=1;var e=ke(),r=Se(),t=jd(),n=RangeError,a=String.fromCharCode,i=String.fromCodePoint,o=r([].join),s=!!i&&i.length!==1;return e({target:"String",stat:!0,arity:1,forced:s},{fromCodePoint:function(l){for(var u=[],f=arguments.length,h=0,d;f>h;){if(d=+arguments[h++],t(d,1114111)!==d)throw new n(d+" is not a valid code point");u[h]=d<65536?a(d):a(((d-=65536)>>10)+55296,d%1024+56320)}return o(u,"")}}),uc}var ii,lc;function Kd(){if(lc)return ii;lc=1;var e=Ie(),r=Ne(),t=Object.getOwnPropertyDescriptor;return ii=function(n){if(!r)return e[n];var a=t(e,n);return a&&a.value},ii}var oi,fc;function dn(){if(fc)return oi;fc=1;var e=qe(),r=xe(),t=Ne(),n=gr(),a=r("iterator");return oi=!e(function(){var i=new URL("b?a=1&b=2&c=3","https://a"),o=i.searchParams,s=new URLSearchParams("a=1&a=2&b=3"),c="";return i.pathname="c%20d",o.forEach(function(l,u){o.delete("b"),c+=u+l}),s.delete("a",2),s.delete("b",void 0),n&&(!i.toJSON||!s.has("a",1)||s.has("a",2)||!s.has("a",void 0)||s.has("b"))||!o.size&&(n||!t)||!o.sort||i.href!=="https://a/c%20d?a=1&c=3"||o.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!o[a]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("https://тест").host!=="xn--e1aybc"||new URL("https://a#б").hash!=="#%D0%B1"||c!=="a1c3"||new URL("https://x",void 0).host!=="x"}),oi}var si,dc;function hn(){if(dc)return si;dc=1;var e=$d(),r=Pr();return si=function(t,n,a){return a.get&&e(a.get,n,{getter:!0}),a.set&&e(a.set,n,{setter:!0}),r.f(t,n,a)},si}var ui,hc;function Av(){if(hc)return ui;hc=1;var e=ir();return ui=function(r,t,n){for(var a in t)e(r,a,t[a],n);return r},ui}var ci,vc;function rs(){if(vc)return ci;vc=1;var e=ln(),r=TypeError;return ci=function(t,n){if(e(n,t))return t;throw new r("Incorrect invocation")},ci}var li,pc;function jv(){if(pc)return li;pc=1;var e=an(),r=Se();return li=function(t){if(e(t)==="Function")return r(t)},li}var fi,mc;function lt(){if(mc)return fi;mc=1;var e=jv(),r=cr(),t=nn(),n=e(e.bind);return fi=function(a,i){return r(a),i===void 0?a:t?n(a,i):function(){return a.apply(i,arguments)}},fi}var di,gc;function ts(){if(gc)return di;gc=1;var e=xe(),r=e("toStringTag"),t={};return t[r]="z",di=String(t)==="[object z]",di}var hi,yc;function At(){if(yc)return hi;yc=1;var e=ts(),r=Re(),t=an(),n=xe(),a=n("toStringTag"),i=Object,o=t(function(){return arguments}())==="Arguments",s=function(c,l){try{return c[l]}catch{}};return hi=e?t:function(c){var l,u,f;return c===void 0?"Undefined":c===null?"Null":typeof(u=s(l=i(c),a))=="string"?u:o?t(l):(f=t(l))==="Object"&&r(l.callee)?"Arguments":f},hi}var vi,wc;function Er(){if(wc)return vi;wc=1;var e=At(),r=String;return vi=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return r(t)},vi}var pi,bc;function vn(){if(bc)return pi;bc=1;var e=At(),r=Ho(),t=on(),n=Ct(),a=xe(),i=a("iterator");return pi=function(o){if(!t(o))return r(o,i)||r(o,"@@iterator")||n[e(o)]},pi}var mi,Sc;function ns(){if(Sc)return mi;Sc=1;var e=Me(),r=cr(),t=ur(),n=fn(),a=vn(),i=TypeError;return mi=function(o,s){var c=arguments.length<2?a(o):s;if(r(c))return t(e(c,o));throw new i(n(o)+" is not iterable")},mi}var gi,Ic;function zr(){if(Ic)return gi;Ic=1;var e=TypeError;return gi=function(r,t){if(r<t)throw new e("Not enough arguments");return r},gi}var yi,Pc;function pn(){if(Pc)return yi;Pc=1;var e=Se();return yi=e([].slice),yi}var wi,Ec;function Uv(){if(Ec)return wi;Ec=1;var e=pn(),r=Math.floor,t=function(n,a){var i=n.length;if(i<8)for(var o=1,s,c;o<i;){for(c=o,s=n[o];c&&a(n[c-1],s)>0;)n[c]=n[--c];c!==o++&&(n[c]=s)}else for(var l=r(i/2),u=t(e(n,0,l),a),f=t(e(n,l),a),h=u.length,d=f.length,v=0,m=0;v<h||m<d;)n[v+m]=v<h&&m<d?a(u[v],f[m])<=0?u[v++]:f[m++]:v<h?u[v++]:f[m++];return n};return wi=t,wi}var bi,Rc;function Wd(){if(Rc)return bi;Rc=1,es(),Cv();var e=ke(),r=Ie(),t=Kd(),n=ar(),a=Me(),i=Se(),o=Ne(),s=dn(),c=ir(),l=hn(),u=Av(),f=ct(),h=Hd(),d=ut(),v=rs(),m=Re(),w=tr(),E=lt(),b=At(),g=ur(),p=nr(),y=Er(),k=kt(),A=Fr(),j=ns(),z=vn(),H=Qo(),ee=zr(),x=xe(),N=Uv(),q=x("iterator"),O="URLSearchParams",X=O+"Iterator",re=d.set,Q=d.getterFor(O),S=d.getterFor(X),_=t("fetch"),D=t("Request"),B=t("Headers"),K=D&&D.prototype,Z=B&&B.prototype,de=r.TypeError,ae=r.encodeURIComponent,ue=String.fromCharCode,se=n("String","fromCodePoint"),Pe=parseInt,je=i("".charAt),Fe=i([].join),Ce=i([].push),Ve=i("".replace),lr=i([].shift),fr=i([].splice),T=i("".split),F=i("".slice),J=i(/./.exec),pe=/\+/g,ve="�",me=/^[0-9a-f]+$/i,Be=function($,W){var V=F($,W,W+2);return J(me,V)?Pe(V,16):NaN},M=function($){for(var W=0,V=128;V>0&&($&V)!==0;V>>=1)W++;return W},ie=function($){var W=null;switch($.length){case 1:W=$[0];break;case 2:W=($[0]&31)<<6|$[1]&63;break;case 3:W=($[0]&15)<<12|($[1]&63)<<6|$[2]&63;break;case 4:W=($[0]&7)<<18|($[1]&63)<<12|($[2]&63)<<6|$[3]&63;break}return W>1114111?null:W},le=function($){$=Ve($,pe," ");for(var W=$.length,V="",Y=0;Y<W;){var ce=je($,Y);if(ce==="%"){if(je($,Y+1)==="%"||Y+3>W){V+="%",Y++;continue}var he=Be($,Y+1);if(he!==he){V+=ce,Y++;continue}Y+=2;var we=M(he);if(we===0)ce=ue(he);else{if(we===1||we>4){V+=ve,Y++;continue}for(var be=[he],_e=1;_e<we&&(Y++,!(Y+3>W||je($,Y)!=="%"));){var De=Be($,Y+1);if(De!==De){Y+=3;break}if(De>191||De<128)break;Ce(be,De),Y+=2,_e++}if(be.length!==we){V+=ve;continue}var dr=ie(be);dr===null?V+=ve:ce=se(dr)}}V+=ce,Y++}return V},fe=/[!'()~]|%20/g,ge={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},or=function($){return ge[$]},sr=function($){return Ve(ae($),fe,or)},Te=h(function(W,V){re(this,{type:X,target:Q(W).entries,index:0,kind:V})},O,function(){var W=S(this),V=W.target,Y=W.index++;if(!V||Y>=V.length)return W.target=null,H(void 0,!0);var ce=V[Y];switch(W.kind){case"keys":return H(ce.key,!1);case"values":return H(ce.value,!1)}return H([ce.key,ce.value],!1)},!0),He=function($){this.entries=[],this.url=null,$!==void 0&&(p($)?this.parseObject($):this.parseQuery(typeof $=="string"?je($,0)==="?"?F($,1):$:y($)))};He.prototype={type:O,bindURL:function($){this.url=$,this.update()},parseObject:function($){var W=this.entries,V=z($),Y,ce,he,we,be,_e,De;if(V)for(Y=j($,V),ce=Y.next;!(he=a(ce,Y)).done;){if(we=j(g(he.value)),be=we.next,(_e=a(be,we)).done||(De=a(be,we)).done||!a(be,we).done)throw new de("Expected sequence with length 2");Ce(W,{key:y(_e.value),value:y(De.value)})}else for(var dr in $)w($,dr)&&Ce(W,{key:dr,value:y($[dr])})},parseQuery:function($){if($)for(var W=this.entries,V=T($,"&"),Y=0,ce,he;Y<V.length;)ce=V[Y++],ce.length&&(he=T(ce,"="),Ce(W,{key:le(lr(he)),value:le(Fe(he,"="))}))},serialize:function(){for(var $=this.entries,W=[],V=0,Y;V<$.length;)Y=$[V++],Ce(W,sr(Y.key)+"="+sr(Y.value));return Fe(W,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Je=function(){v(this,Xe);var W=arguments.length>0?arguments[0]:void 0,V=re(this,new He(W));o||(this.size=V.entries.length)},Xe=Je.prototype;if(u(Xe,{append:function(W,V){var Y=Q(this);ee(arguments.length,2),Ce(Y.entries,{key:y(W),value:y(V)}),o||this.length++,Y.updateURL()},delete:function($){for(var W=Q(this),V=ee(arguments.length,1),Y=W.entries,ce=y($),he=V<2?void 0:arguments[1],we=he===void 0?he:y(he),be=0;be<Y.length;){var _e=Y[be];if(_e.key===ce&&(we===void 0||_e.value===we)){if(fr(Y,be,1),we!==void 0)break}else be++}o||(this.size=Y.length),W.updateURL()},get:function(W){var V=Q(this).entries;ee(arguments.length,1);for(var Y=y(W),ce=0;ce<V.length;ce++)if(V[ce].key===Y)return V[ce].value;return null},getAll:function(W){var V=Q(this).entries;ee(arguments.length,1);for(var Y=y(W),ce=[],he=0;he<V.length;he++)V[he].key===Y&&Ce(ce,V[he].value);return ce},has:function(W){for(var V=Q(this).entries,Y=ee(arguments.length,1),ce=y(W),he=Y<2?void 0:arguments[1],we=he===void 0?he:y(he),be=0;be<V.length;){var _e=V[be++];if(_e.key===ce&&(we===void 0||_e.value===we))return!0}return!1},set:function(W,V){var Y=Q(this);ee(arguments.length,1);for(var ce=Y.entries,he=!1,we=y(W),be=y(V),_e=0,De;_e<ce.length;_e++)De=ce[_e],De.key===we&&(he?fr(ce,_e--,1):(he=!0,De.value=be));he||Ce(ce,{key:we,value:be}),o||(this.size=ce.length),Y.updateURL()},sort:function(){var W=Q(this);N(W.entries,function(V,Y){return V.key>Y.key?1:-1}),W.updateURL()},forEach:function(W){for(var V=Q(this).entries,Y=E(W,arguments.length>1?arguments[1]:void 0),ce=0,he;ce<V.length;)he=V[ce++],Y(he.value,he.key,this)},keys:function(){return new Te(this,"keys")},values:function(){return new Te(this,"values")},entries:function(){return new Te(this,"entries")}},{enumerable:!0}),c(Xe,q,Xe.entries,{name:"entries"}),c(Xe,"toString",function(){return Q(this).serialize()},{enumerable:!0}),o&&l(Xe,"size",{get:function(){return Q(this).entries.length},configurable:!0,enumerable:!0}),f(Je,O),e({global:!0,constructor:!0,forced:!s},{URLSearchParams:Je}),!s&&m(B)){var pt=i(Z.has),Rn=i(Z.set),Hr=function($){if(p($)){var W=$.body,V;if(b(W)===O)return V=$.headers?new B($.headers):new B,pt(V,"content-type")||Rn(V,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),k($,{body:A(0,y(W)),headers:A(0,V)})}return $};if(m(_)&&e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(W){return _(W,arguments.length>1?Hr(arguments[1]):{})}}),m(D)){var Gr=function(W){return v(this,K),new D(W,arguments.length>1?Hr(arguments[1]):{})};K.constructor=Gr,Gr.prototype=K,e({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Gr})}}return bi={URLSearchParams:Je,getState:Q},bi}var _c;function Lv(){return _c||(_c=1,Wd()),js}var Tc={},Oc;function qv(){if(Oc)return Tc;Oc=1;var e=ir(),r=Se(),t=Er(),n=zr(),a=URLSearchParams,i=a.prototype,o=r(i.append),s=r(i.delete),c=r(i.forEach),l=r([].push),u=new a("a=1&a=2&b=3");return u.delete("a",1),u.delete("b",void 0),u+""!="a=2"&&e(i,"delete",function(f){var h=arguments.length,d=h<2?void 0:arguments[1];if(h&&d===void 0)return s(this,f);var v=[];c(this,function(k,A){l(v,{key:A,value:k})}),n(h,1);for(var m=t(f),w=t(d),E=0,b=0,g=!1,p=v.length,y;E<p;)y=v[E++],g||y.key===m?(g=!0,s(this,y.key)):b++;for(;b<p;)y=v[b++],y.key===m&&y.value===w||o(this,y.key,y.value)},{enumerable:!0,unsafe:!0}),Tc}var kc={},Cc;function xv(){if(Cc)return kc;Cc=1;var e=ir(),r=Se(),t=Er(),n=zr(),a=URLSearchParams,i=a.prototype,o=r(i.getAll),s=r(i.has),c=new a("a=1");return(c.has("a",2)||!c.has("a",void 0))&&e(i,"has",function(u){var f=arguments.length,h=f<2?void 0:arguments[1];if(f&&h===void 0)return s(this,u);var d=o(this,u);n(f,1);for(var v=t(h),m=0;m<d.length;)if(d[m++]===v)return!0;return!1},{enumerable:!0,unsafe:!0}),kc}var Ac={},jc;function Nv(){if(jc)return Ac;jc=1;var e=Ne(),r=Se(),t=hn(),n=URLSearchParams.prototype,a=r(n.forEach);return e&&!("size"in n)&&t(n,"size",{get:function(){var o=0;return a(this,function(){o++}),o},configurable:!0,enumerable:!0}),Ac}var Si,Uc;function as(){if(Uc)return Si;Uc=1;var e=Ie();return Si=e,Si}var Ii,Lc;function Vd(){if(Lc)return Ii;Lc=1,Lv(),qv(),xv(),Nv();var e=as();return Ii=e.URLSearchParams,Ii}var qc={},xc={},Nc={},Pi,Dc;function Jd(){if(Dc)return Pi;Dc=1;var e=Se(),r=Go(),t=Er(),n=sn(),a=e("".charAt),i=e("".charCodeAt),o=e("".slice),s=function(c){return function(l,u){var f=t(n(l)),h=r(u),d=f.length,v,m;return h<0||h>=d?c?"":void 0:(v=i(f,h),v<55296||v>56319||h+1===d||(m=i(f,h+1))<56320||m>57343?c?a(f,h):v:c?o(f,h,h+2):(v-55296<<10)+(m-56320)+65536)}};return Pi={codeAt:s(!1),charAt:s(!0)},Pi}var $c;function Zd(){if($c)return Nc;$c=1;var e=Jd().charAt,r=Er(),t=ut(),n=Gd(),a=Qo(),i="String Iterator",o=t.set,s=t.getterFor(i);return n(String,"String",function(c){o(this,{type:i,string:r(c),index:0})},function(){var l=s(this),u=l.string,f=l.index,h;return f>=u.length?a(void 0,!0):(h=e(u,f),l.index+=h.length,a(h,!1))}),Nc}var Ei,Mc;function Dv(){if(Mc)return Ei;Mc=1;var e=Ne(),r=Se(),t=Me(),n=qe(),a=Ld(),i=Md(),o=xd(),s=un(),c=Id(),l=Object.assign,u=Object.defineProperty,f=r([].concat);return Ei=!l||n(function(){if(e&&l({b:1},l(u({},"a",{enumerable:!0,get:function(){u(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var h={},d={},v=Symbol("assign detection"),m="abcdefghijklmnopqrst";return h[v]=7,m.split("").forEach(function(w){d[w]=w}),l({},h)[v]!==7||a(l({},d)).join("")!==m})?function(d,v){for(var m=s(d),w=arguments.length,E=1,b=i.f,g=o.f;w>E;)for(var p=c(arguments[E++]),y=b?f(a(p),b(p)):a(p),k=y.length,A=0,j;k>A;)j=y[A++],(!e||t(g,p,j))&&(m[j]=p[j]);return m}:l,Ei}var Ri,Fc;function Yd(){if(Fc)return Ri;Fc=1;var e=Me(),r=ur(),t=Ho();return Ri=function(n,a,i){var o,s;r(n);try{if(o=t(n,"return"),!o){if(a==="throw")throw i;return i}o=e(o,n)}catch(c){s=!0,o=c}if(a==="throw")throw i;if(s)throw o;return r(o),i},Ri}var _i,Bc;function $v(){if(Bc)return _i;Bc=1;var e=ur(),r=Yd();return _i=function(t,n,a,i){try{return i?n(e(a)[0],a[1]):n(a)}catch(o){r(t,"throw",o)}},_i}var Ti,zc;function Xd(){if(zc)return Ti;zc=1;var e=xe(),r=Ct(),t=e("iterator"),n=Array.prototype;return Ti=function(a){return a!==void 0&&(r.Array===a||n[t]===a)},Ti}var Oi,Hc;function Qd(){if(Hc)return Oi;Hc=1;var e=Se(),r=qe(),t=Re(),n=At(),a=ar(),i=Zo(),o=function(){},s=a("Reflect","construct"),c=/^\s*(?:class|function)\b/,l=e(c.exec),u=!c.test(o),f=function(v){if(!t(v))return!1;try{return s(o,[],v),!0}catch{return!1}},h=function(v){if(!t(v))return!1;switch(n(v)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return u||!!l(c,i(v))}catch{return!0}};return h.sham=!0,Oi=!s||r(function(){var d;return f(f.call)||!f(Object)||!f(function(){d=!0})||d})?h:f,Oi}var ki,Gc;function Mv(){if(Gc)return ki;Gc=1;var e=Ne(),r=Pr(),t=Fr();return ki=function(n,a,i){e?r.f(n,a,t(0,i)):n[a]=i},ki}var Ci,Kc;function Fv(){if(Kc)return Ci;Kc=1;var e=lt(),r=Me(),t=un(),n=$v(),a=Xd(),i=Qd(),o=Ko(),s=Mv(),c=ns(),l=vn(),u=Array;return Ci=function(h){var d=t(h),v=i(this),m=arguments.length,w=m>1?arguments[1]:void 0,E=w!==void 0;E&&(w=e(w,m>2?arguments[2]:void 0));var b=l(d),g=0,p,y,k,A,j,z;if(b&&!(this===u&&a(b)))for(y=v?new this:[],A=c(d,b),j=A.next;!(k=r(j,A)).done;g++)z=E?n(A,w,[k.value,g],!0):k.value,s(y,g,z);else for(p=o(d),y=v?new this(p):u(p);p>g;g++)z=E?w(d[g],g):d[g],s(y,g,z);return y.length=g,y},Ci}var Ai,Wc;function Bv(){if(Wc)return Ai;Wc=1;var e=Se(),r=2147483647,t=36,n=1,a=26,i=38,o=700,s=72,c=128,l="-",u=/[^\0-\u007E]/,f=/[.\u3002\uFF0E\uFF61]/g,h="Overflow: input needs wider integers to process",d=t-n,v=RangeError,m=e(f.exec),w=Math.floor,E=String.fromCharCode,b=e("".charCodeAt),g=e([].join),p=e([].push),y=e("".replace),k=e("".split),A=e("".toLowerCase),j=function(x){for(var N=[],q=0,O=x.length;q<O;){var X=b(x,q++);if(X>=55296&&X<=56319&&q<O){var re=b(x,q++);(re&64512)===56320?p(N,((X&1023)<<10)+(re&1023)+65536):(p(N,X),q--)}else p(N,X)}return N},z=function(x){return x+22+75*(x<26)},H=function(x,N,q){var O=0;for(x=q?w(x/o):x>>1,x+=w(x/N);x>d*a>>1;)x=w(x/d),O+=t;return w(O+(d+1)*x/(x+i))},ee=function(x){var N=[];x=j(x);var q=x.length,O=c,X=0,re=s,Q,S;for(Q=0;Q<x.length;Q++)S=x[Q],S<128&&p(N,E(S));var _=N.length,D=_;for(_&&p(N,l);D<q;){var B=r;for(Q=0;Q<x.length;Q++)S=x[Q],S>=O&&S<B&&(B=S);var K=D+1;if(B-O>w((r-X)/K))throw new v(h);for(X+=(B-O)*K,O=B,Q=0;Q<x.length;Q++){if(S=x[Q],S<O&&++X>r)throw new v(h);if(S===O){for(var Z=X,de=t;;){var ae=de<=re?n:de>=re+a?a:de-re;if(Z<ae)break;var ue=Z-ae,se=t-ae;p(N,E(z(ae+ue%se))),Z=w(ue/se),de+=t}p(N,E(z(Z))),re=H(X,K,D===_),X=0,D++}}X++,O++}return g(N,"")};return Ai=function(x){var N=[],q=k(y(A(x),f,"."),"."),O,X;for(O=0;O<q.length;O++)X=q[O],p(N,m(u,X)?"xn--"+ee(X):X);return g(N,".")},Ai}var Vc;function zv(){if(Vc)return xc;Vc=1,Zd();var e=ke(),r=Ne(),t=dn(),n=Ie(),a=lt(),i=Se(),o=ir(),s=hn(),c=rs(),l=tr(),u=Dv(),f=Fv(),h=pn(),d=Jd().codeAt,v=Bv(),m=Er(),w=ct(),E=zr(),b=Wd(),g=ut(),p=g.set,y=g.getterFor("URL"),k=b.URLSearchParams,A=b.getState,j=n.URL,z=n.TypeError,H=n.parseInt,ee=Math.floor,x=Math.pow,N=i("".charAt),q=i(/./.exec),O=i([].join),X=i(1 .toString),re=i([].pop),Q=i([].push),S=i("".replace),_=i([].shift),D=i("".split),B=i("".slice),K=i("".toLowerCase),Z=i([].unshift),de="Invalid authority",ae="Invalid scheme",ue="Invalid host",se="Invalid port",Pe=/[a-z]/i,je=/[\d+-.a-z]/i,Fe=/\d/,Ce=/^0x/i,Ve=/^[0-7]+$/,lr=/^\d+$/,fr=/^[\da-f]+$/i,T=/[\0\t\n\r #%/:<>?@[\\\]^|]/,F=/[\0\t\n\r #/:<>?@[\\\]^|]/,J=/^[\u0000-\u0020]+/,pe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ve=/[\t\n\r]/g,me,Be=function(P){var L=D(P,"."),R,I,C,oe,G,Ee,Oe;if(L.length&&L[L.length-1]===""&&L.length--,R=L.length,R>4)return P;for(I=[],C=0;C<R;C++){if(oe=L[C],oe==="")return P;if(G=10,oe.length>1&&N(oe,0)==="0"&&(G=q(Ce,oe)?16:8,oe=B(oe,G===8?1:2)),oe==="")Ee=0;else{if(!q(G===10?lr:G===8?Ve:fr,oe))return P;Ee=H(oe,G)}Q(I,Ee)}for(C=0;C<R;C++)if(Ee=I[C],C===R-1){if(Ee>=x(256,5-R))return null}else if(Ee>255)return null;for(Oe=re(I),C=0;C<I.length;C++)Oe+=I[C]*x(256,3-C);return Oe},M=function(P){var L=[0,0,0,0,0,0,0,0],R=0,I=null,C=0,oe,G,Ee,Oe,Ue,er,U,Ae=function(){return N(P,C)};if(Ae()===":"){if(N(P,1)!==":")return;C+=2,R++,I=R}for(;Ae();){if(R===8)return;if(Ae()===":"){if(I!==null)return;C++,R++,I=R;continue}for(oe=G=0;G<4&&q(fr,Ae());)oe=oe*16+H(Ae(),16),C++,G++;if(Ae()==="."){if(G===0||(C-=G,R>6))return;for(Ee=0;Ae();){if(Oe=null,Ee>0)if(Ae()==="."&&Ee<4)C++;else return;if(!q(Fe,Ae()))return;for(;q(Fe,Ae());){if(Ue=H(Ae(),10),Oe===null)Oe=Ue;else{if(Oe===0)return;Oe=Oe*10+Ue}if(Oe>255)return;C++}L[R]=L[R]*256+Oe,Ee++,(Ee===2||Ee===4)&&R++}if(Ee!==4)return;break}else if(Ae()===":"){if(C++,!Ae())return}else if(Ae())return;L[R++]=oe}if(I!==null)for(er=R-I,R=7;R!==0&&er>0;)U=L[R],L[R--]=L[I+er-1],L[I+--er]=U;else if(R!==8)return;return L},ie=function(P){for(var L=null,R=1,I=null,C=0,oe=0;oe<8;oe++)P[oe]!==0?(C>R&&(L=I,R=C),I=null,C=0):(I===null&&(I=oe),++C);return C>R?I:L},le=function(P){var L,R,I,C;if(typeof P=="number"){for(L=[],R=0;R<4;R++)Z(L,P%256),P=ee(P/256);return O(L,".")}if(typeof P=="object"){for(L="",I=ie(P),R=0;R<8;R++)C&&P[R]===0||(C&&(C=!1),I===R?(L+=R?":":"::",C=!0):(L+=X(P[R],16),R<7&&(L+=":")));return"["+L+"]"}return P},fe={},ge=u({},fe,{" ":1,'"':1,"<":1,">":1,"`":1}),or=u({},ge,{"#":1,"?":1,"{":1,"}":1}),sr=u({},or,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Te=function(P,L){var R=d(P,0);return R>32&&R<127&&!l(L,P)?P:encodeURIComponent(P)},He={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Je=function(P,L){var R;return P.length===2&&q(Pe,N(P,0))&&((R=N(P,1))===":"||!L&&R==="|")},Xe=function(P){var L;return P.length>1&&Je(B(P,0,2))&&(P.length===2||(L=N(P,2))==="/"||L==="\\"||L==="?"||L==="#")},pt=function(P){return P==="."||K(P)==="%2e"},Rn=function(P){return P=K(P),P===".."||P==="%2e."||P===".%2e"||P==="%2e%2e"},Hr={},Gr={},$={},W={},V={},Y={},ce={},he={},we={},be={},_e={},De={},dr={},_n={},Rs={},Tn={},Kr={},hr={},_s={},Cr={},yr={},On=function(P,L,R){var I=m(P),C,oe,G;if(L){if(oe=this.parse(I),oe)throw new z(oe);this.searchParams=null}else{if(R!==void 0&&(C=new On(R,!0)),oe=this.parse(I,null,C),oe)throw new z(oe);G=A(new k),G.bindURL(this),this.searchParams=G}};On.prototype={type:"URL",parse:function(P,L,R){var I=this,C=L||Hr,oe=0,G="",Ee=!1,Oe=!1,Ue=!1,er,U,Ae,wr;for(P=m(P),L||(I.scheme="",I.username="",I.password="",I.host=null,I.port=null,I.path=[],I.query=null,I.fragment=null,I.cannotBeABaseURL=!1,P=S(P,J,""),P=S(P,pe,"$1")),P=S(P,ve,""),er=f(P);oe<=er.length;){switch(U=er[oe],C){case Hr:if(U&&q(Pe,U))G+=K(U),C=Gr;else{if(L)return ae;C=$;continue}break;case Gr:if(U&&(q(je,U)||U==="+"||U==="-"||U==="."))G+=K(U);else if(U===":"){if(L&&(I.isSpecial()!==l(He,G)||G==="file"&&(I.includesCredentials()||I.port!==null)||I.scheme==="file"&&!I.host))return;if(I.scheme=G,L){I.isSpecial()&&He[I.scheme]===I.port&&(I.port=null);return}G="",I.scheme==="file"?C=_n:I.isSpecial()&&R&&R.scheme===I.scheme?C=W:I.isSpecial()?C=he:er[oe+1]==="/"?(C=V,oe++):(I.cannotBeABaseURL=!0,Q(I.path,""),C=_s)}else{if(L)return ae;G="",C=$,oe=0;continue}break;case $:if(!R||R.cannotBeABaseURL&&U!=="#")return ae;if(R.cannotBeABaseURL&&U==="#"){I.scheme=R.scheme,I.path=h(R.path),I.query=R.query,I.fragment="",I.cannotBeABaseURL=!0,C=yr;break}C=R.scheme==="file"?_n:Y;continue;case W:if(U==="/"&&er[oe+1]==="/")C=we,oe++;else{C=Y;continue}break;case V:if(U==="/"){C=be;break}else{C=hr;continue}case Y:if(I.scheme=R.scheme,U===me)I.username=R.username,I.password=R.password,I.host=R.host,I.port=R.port,I.path=h(R.path),I.query=R.query;else if(U==="/"||U==="\\"&&I.isSpecial())C=ce;else if(U==="?")I.username=R.username,I.password=R.password,I.host=R.host,I.port=R.port,I.path=h(R.path),I.query="",C=Cr;else if(U==="#")I.username=R.username,I.password=R.password,I.host=R.host,I.port=R.port,I.path=h(R.path),I.query=R.query,I.fragment="",C=yr;else{I.username=R.username,I.password=R.password,I.host=R.host,I.port=R.port,I.path=h(R.path),I.path.length--,C=hr;continue}break;case ce:if(I.isSpecial()&&(U==="/"||U==="\\"))C=we;else if(U==="/")C=be;else{I.username=R.username,I.password=R.password,I.host=R.host,I.port=R.port,C=hr;continue}break;case he:if(C=we,U!=="/"||N(G,oe+1)!=="/")continue;oe++;break;case we:if(U!=="/"&&U!=="\\"){C=be;continue}break;case be:if(U==="@"){Ee&&(G="%40"+G),Ee=!0,Ae=f(G);for(var kn=0;kn<Ae.length;kn++){var ks=Ae[kn];if(ks===":"&&!Ue){Ue=!0;continue}var Cs=Te(ks,sr);Ue?I.password+=Cs:I.username+=Cs}G=""}else if(U===me||U==="/"||U==="?"||U==="#"||U==="\\"&&I.isSpecial()){if(Ee&&G==="")return de;oe-=f(G).length+1,G="",C=_e}else G+=U;break;case _e:case De:if(L&&I.scheme==="file"){C=Tn;continue}else if(U===":"&&!Oe){if(G==="")return ue;if(wr=I.parseHost(G),wr)return wr;if(G="",C=dr,L===De)return}else if(U===me||U==="/"||U==="?"||U==="#"||U==="\\"&&I.isSpecial()){if(I.isSpecial()&&G==="")return ue;if(L&&G===""&&(I.includesCredentials()||I.port!==null))return;if(wr=I.parseHost(G),wr)return wr;if(G="",C=Kr,L)return;continue}else U==="["?Oe=!0:U==="]"&&(Oe=!1),G+=U;break;case dr:if(q(Fe,U))G+=U;else if(U===me||U==="/"||U==="?"||U==="#"||U==="\\"&&I.isSpecial()||L){if(G!==""){var Cn=H(G,10);if(Cn>65535)return se;I.port=I.isSpecial()&&Cn===He[I.scheme]?null:Cn,G=""}if(L)return;C=Kr;continue}else return se;break;case _n:if(I.scheme="file",U==="/"||U==="\\")C=Rs;else if(R&&R.scheme==="file")switch(U){case me:I.host=R.host,I.path=h(R.path),I.query=R.query;break;case"?":I.host=R.host,I.path=h(R.path),I.query="",C=Cr;break;case"#":I.host=R.host,I.path=h(R.path),I.query=R.query,I.fragment="",C=yr;break;default:Xe(O(h(er,oe),""))||(I.host=R.host,I.path=h(R.path),I.shortenPath()),C=hr;continue}else{C=hr;continue}break;case Rs:if(U==="/"||U==="\\"){C=Tn;break}R&&R.scheme==="file"&&!Xe(O(h(er,oe),""))&&(Je(R.path[0],!0)?Q(I.path,R.path[0]):I.host=R.host),C=hr;continue;case Tn:if(U===me||U==="/"||U==="\\"||U==="?"||U==="#"){if(!L&&Je(G))C=hr;else if(G===""){if(I.host="",L)return;C=Kr}else{if(wr=I.parseHost(G),wr)return wr;if(I.host==="localhost"&&(I.host=""),L)return;G="",C=Kr}continue}else G+=U;break;case Kr:if(I.isSpecial()){if(C=hr,U!=="/"&&U!=="\\")continue}else if(!L&&U==="?")I.query="",C=Cr;else if(!L&&U==="#")I.fragment="",C=yr;else if(U!==me&&(C=hr,U!=="/"))continue;break;case hr:if(U===me||U==="/"||U==="\\"&&I.isSpecial()||!L&&(U==="?"||U==="#")){if(Rn(G)?(I.shortenPath(),U!=="/"&&!(U==="\\"&&I.isSpecial())&&Q(I.path,"")):pt(G)?U!=="/"&&!(U==="\\"&&I.isSpecial())&&Q(I.path,""):(I.scheme==="file"&&!I.path.length&&Je(G)&&(I.host&&(I.host=""),G=N(G,0)+":"),Q(I.path,G)),G="",I.scheme==="file"&&(U===me||U==="?"||U==="#"))for(;I.path.length>1&&I.path[0]==="";)_(I.path);U==="?"?(I.query="",C=Cr):U==="#"&&(I.fragment="",C=yr)}else G+=Te(U,or);break;case _s:U==="?"?(I.query="",C=Cr):U==="#"?(I.fragment="",C=yr):U!==me&&(I.path[0]+=Te(U,fe));break;case Cr:!L&&U==="#"?(I.fragment="",C=yr):U!==me&&(U==="'"&&I.isSpecial()?I.query+="%27":U==="#"?I.query+="%23":I.query+=Te(U,fe));break;case yr:U!==me&&(I.fragment+=Te(U,ge));break}oe++}},parseHost:function(P){var L,R,I;if(N(P,0)==="["){if(N(P,P.length-1)!=="]"||(L=M(B(P,1,-1)),!L))return ue;this.host=L}else if(this.isSpecial()){if(P=v(P),q(T,P)||(L=Be(P),L===null))return ue;this.host=L}else{if(q(F,P))return ue;for(L="",R=f(P),I=0;I<R.length;I++)L+=Te(R[I],fe);this.host=L}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||this.scheme==="file"},includesCredentials:function(){return this.username!==""||this.password!==""},isSpecial:function(){return l(He,this.scheme)},shortenPath:function(){var P=this.path,L=P.length;L&&(this.scheme!=="file"||L!==1||!Je(P[0],!0))&&P.length--},serialize:function(){var P=this,L=P.scheme,R=P.username,I=P.password,C=P.host,oe=P.port,G=P.path,Ee=P.query,Oe=P.fragment,Ue=L+":";return C!==null?(Ue+="//",P.includesCredentials()&&(Ue+=R+(I?":"+I:"")+"@"),Ue+=le(C),oe!==null&&(Ue+=":"+oe)):L==="file"&&(Ue+="//"),Ue+=P.cannotBeABaseURL?G[0]:G.length?"/"+O(G,"/"):"",Ee!==null&&(Ue+="?"+Ee),Oe!==null&&(Ue+="#"+Oe),Ue},setHref:function(P){var L=this.parse(P);if(L)throw new z(L);this.searchParams.update()},getOrigin:function(){var P=this.scheme,L=this.port;if(P==="blob")try{return new Wr(P.path[0]).origin}catch{return"null"}return P==="file"||!this.isSpecial()?"null":P+"://"+le(this.host)+(L!==null?":"+L:"")},getProtocol:function(){return this.scheme+":"},setProtocol:function(P){this.parse(m(P)+":",Hr)},getUsername:function(){return this.username},setUsername:function(P){var L=f(m(P));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var R=0;R<L.length;R++)this.username+=Te(L[R],sr)}},getPassword:function(){return this.password},setPassword:function(P){var L=f(m(P));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var R=0;R<L.length;R++)this.password+=Te(L[R],sr)}},getHost:function(){var P=this.host,L=this.port;return P===null?"":L===null?le(P):le(P)+":"+L},setHost:function(P){this.cannotBeABaseURL||this.parse(P,_e)},getHostname:function(){var P=this.host;return P===null?"":le(P)},setHostname:function(P){this.cannotBeABaseURL||this.parse(P,De)},getPort:function(){var P=this.port;return P===null?"":m(P)},setPort:function(P){this.cannotHaveUsernamePasswordPort()||(P=m(P),P===""?this.port=null:this.parse(P,dr))},getPathname:function(){var P=this.path;return this.cannotBeABaseURL?P[0]:P.length?"/"+O(P,"/"):""},setPathname:function(P){this.cannotBeABaseURL||(this.path=[],this.parse(P,Kr))},getSearch:function(){var P=this.query;return P?"?"+P:""},setSearch:function(P){P=m(P),P===""?this.query=null:(N(P,0)==="?"&&(P=B(P,1)),this.query="",this.parse(P,Cr)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var P=this.fragment;return P?"#"+P:""},setHash:function(P){if(P=m(P),P===""){this.fragment=null;return}N(P,0)==="#"&&(P=B(P,1)),this.fragment="",this.parse(P,yr)},update:function(){this.query=this.searchParams.serialize()||null}};var Wr=function(L){var R=c(this,ze),I=E(arguments.length,1)>1?arguments[1]:void 0,C=p(R,new On(L,!1,I));r||(R.href=C.serialize(),R.origin=C.getOrigin(),R.protocol=C.getProtocol(),R.username=C.getUsername(),R.password=C.getPassword(),R.host=C.getHost(),R.hostname=C.getHostname(),R.port=C.getPort(),R.pathname=C.getPathname(),R.search=C.getSearch(),R.searchParams=C.getSearchParams(),R.hash=C.getHash())},ze=Wr.prototype,Qe=function(P,L){return{get:function(){return y(this)[P]()},set:L&&function(R){return y(this)[L](R)},configurable:!0,enumerable:!0}};if(r&&(s(ze,"href",Qe("serialize","setHref")),s(ze,"origin",Qe("getOrigin")),s(ze,"protocol",Qe("getProtocol","setProtocol")),s(ze,"username",Qe("getUsername","setUsername")),s(ze,"password",Qe("getPassword","setPassword")),s(ze,"host",Qe("getHost","setHost")),s(ze,"hostname",Qe("getHostname","setHostname")),s(ze,"port",Qe("getPort","setPort")),s(ze,"pathname",Qe("getPathname","setPathname")),s(ze,"search",Qe("getSearch","setSearch")),s(ze,"searchParams",Qe("getSearchParams")),s(ze,"hash",Qe("getHash","setHash"))),o(ze,"toJSON",function(){return y(this).serialize()},{enumerable:!0}),o(ze,"toString",function(){return y(this).serialize()},{enumerable:!0}),j){var Ts=j.createObjectURL,Os=j.revokeObjectURL;Ts&&o(Wr,"createObjectURL",a(Ts,j)),Os&&o(Wr,"revokeObjectURL",a(Os,j))}return w(Wr,"URL"),e({global:!0,constructor:!0,forced:!t,sham:!r},{URL:Wr}),xc}var Jc;function Hv(){return Jc||(Jc=1,zv()),qc}var Zc={},Yc;function Gv(){if(Yc)return Zc;Yc=1;var e=ke(),r=ar(),t=qe(),n=zr(),a=Er(),i=dn(),o=r("URL"),s=i&&t(function(){o.canParse()}),c=t(function(){return o.canParse.length!==1});return e({target:"URL",stat:!0,forced:!s||c},{canParse:function(u){var f=n(arguments.length,1),h=a(u),d=f<2||arguments[1]===void 0?void 0:a(arguments[1]);try{return!!new o(h,d)}catch{return!1}}}),Zc}var Xc={},Qc;function Kv(){if(Qc)return Xc;Qc=1;var e=ke(),r=ar(),t=zr(),n=Er(),a=dn(),i=r("URL");return e({target:"URL",stat:!0,forced:!a},{parse:function(s){var c=t(arguments.length,1),l=n(s),u=c<2||arguments[1]===void 0?void 0:n(arguments[1]);try{return new i(l,u)}catch{return null}}}),Xc}var el={},rl;function Wv(){if(rl)return el;rl=1;var e=ke(),r=Me();return e({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return r(URL.prototype.toString,this)}}),el}var ji,tl;function Vv(){if(tl)return ji;tl=1,Vd(),Hv(),Gv(),Kv(),Wv();var e=as();return ji=e.URL,ji}var Ui,nl;function Jv(){if(nl)return Ui;nl=1;var e=Vv();return Ui=e,Ui}var Li,al;function Zv(){if(al)return Li;al=1;var e=Jv();return Li=e,Li}Zv();var il={},qi,ol;function Yv(){return ol||(ol=1,qi={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}),qi}var xi,sl;function Xv(){if(sl)return xi;sl=1;var e=cn(),r=e("span").classList,t=r&&r.constructor&&r.constructor.prototype;return xi=t===Object.prototype?void 0:t,xi}var ul;function eh(){if(ul)return il;ul=1;var e=Ie(),r=Yv(),t=Xv(),n=es(),a=Br(),i=ct(),o=xe(),s=o("iterator"),c=n.values,l=function(f,h){if(f){if(f[s]!==c)try{a(f,s,c)}catch{f[s]=c}if(i(f,h,!0),r[h]){for(var d in n)if(f[d]!==n[d])try{a(f,d,n[d])}catch{f[d]=n[d]}}}};for(var u in r)l(e[u]&&e[u].prototype,u);return l(t,"DOMTokenList"),il}var Ni,cl;function Qv(){if(cl)return Ni;cl=1;var e=Vd();return eh(),Ni=e,Ni}var Di,ll;function ep(){if(ll)return Di;ll=1;var e=Qv();return Di=e,Di}ep();var fl={},dl={},$i,hl;function rp(){if(hl)return $i;hl=1;var e=nr(),r=Br();return $i=function(t,n){e(n)&&"cause"in n&&r(t,"cause",n.cause)},$i}var Mi,vl;function tp(){if(vl)return Mi;vl=1;var e=Se(),r=Error,t=e("".replace),n=function(o){return String(new r(o).stack)}("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,i=a.test(n);return Mi=function(o,s){if(i&&typeof o=="string"&&!r.prepareStackTrace)for(;s--;)o=t(o,a,"");return o},Mi}var Fi,pl;function np(){if(pl)return Fi;pl=1;var e=qe(),r=Fr();return Fi=!e(function(){var t=new Error("a");return"stack"in t?(Object.defineProperty(t,"stack",r(1,7)),t.stack!==7):!0}),Fi}var Bi,ml;function ap(){if(ml)return Bi;ml=1;var e=Br(),r=tp(),t=np(),n=Error.captureStackTrace;return Bi=function(a,i,o,s){t&&(n?n(a,i):e(a,"stack",r(o,s)))},Bi}var zi,gl;function jt(){if(gl)return zi;gl=1;var e=lt(),r=Me(),t=ur(),n=fn(),a=Xd(),i=Ko(),o=ln(),s=ns(),c=vn(),l=Yd(),u=TypeError,f=function(d,v){this.stopped=d,this.result=v},h=f.prototype;return zi=function(d,v,m){var w=m&&m.that,E=!!(m&&m.AS_ENTRIES),b=!!(m&&m.IS_RECORD),g=!!(m&&m.IS_ITERATOR),p=!!(m&&m.INTERRUPTED),y=e(v,w),k,A,j,z,H,ee,x,N=function(O){return k&&l(k,"normal",O),new f(!0,O)},q=function(O){return E?(t(O),p?y(O[0],O[1],N):y(O[0],O[1])):p?y(O,N):y(O)};if(b)k=d.iterator;else if(g)k=d;else{if(A=c(d),!A)throw new u(n(d)+" is not iterable");if(a(A)){for(j=0,z=i(d);z>j;j++)if(H=q(d[j]),H&&o(h,H))return H;return new f(!1)}k=s(d,A)}for(ee=b?d.next:k.next;!(x=r(ee,k)).done;){try{H=q(x.value)}catch(O){l(k,"throw",O)}if(typeof H=="object"&&H&&o(h,H))return H}return new f(!1)},zi}var Hi,yl;function ip(){if(yl)return Hi;yl=1;var e=Er();return Hi=function(r,t){return r===void 0?arguments.length<2?"":t:e(r)},Hi}var wl;function op(){if(wl)return dl;wl=1;var e=ke(),r=ln(),t=Yo(),n=Xo(),a=Fd(),i=kt(),o=Br(),s=Fr(),c=rp(),l=ap(),u=jt(),f=ip(),h=xe(),d=h("toStringTag"),v=Error,m=[].push,w=function(g,p){var y=r(E,this),k;n?k=n(new v,y?t(this):E):(k=y?this:i(E),o(k,d,"Error")),p!==void 0&&o(k,"message",f(p)),l(k,w,k.stack,1),arguments.length>2&&c(k,arguments[2]);var A=[];return u(g,m,{that:A}),o(k,"errors",A),k};n?n(w,v):a(w,v,{name:!0});var E=w.prototype=i(v.prototype,{constructor:s(1,w),message:s(1,""),name:s(1,"AggregateError")});return e({global:!0,constructor:!0,arity:2},{AggregateError:w}),dl}var bl;function sp(){return bl||(bl=1,op()),fl}var Sl={},Gi,Il;function up(){if(Il)return Gi;Il=1;var e=ts(),r=At();return Gi=e?{}.toString:function(){return"[object "+r(this)+"]"},Gi}var Pl;function cp(){if(Pl)return Sl;Pl=1;var e=ts(),r=ir(),t=up();return e||r(Object.prototype,"toString",t,{unsafe:!0}),Sl}var El={},Rl={},Ki,_l;function rh(){if(_l)return Ki;_l=1;var e=Ie(),r=Ot(),t=an(),n=function(a){return r.slice(0,a.length)===a};return Ki=function(){return n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":e.Bun&&typeof Bun.version=="string"?"BUN":e.Deno&&typeof Deno.version=="object"?"DENO":t(e.process)==="process"?"NODE":e.window&&e.document?"BROWSER":"REST"}(),Ki}var Wi,Tl;function is(){if(Tl)return Wi;Tl=1;var e=rh();return Wi=e==="NODE",Wi}var Vi,Ol;function lp(){if(Ol)return Vi;Ol=1;var e=ar(),r=hn(),t=xe(),n=Ne(),a=t("species");return Vi=function(i){var o=e(i);n&&o&&!o[a]&&r(o,a,{configurable:!0,get:function(){return this}})},Vi}var Ji,kl;function fp(){if(kl)return Ji;kl=1;var e=Qd(),r=fn(),t=TypeError;return Ji=function(n){if(e(n))return n;throw new t(r(n)+" is not a constructor")},Ji}var Zi,Cl;function th(){if(Cl)return Zi;Cl=1;var e=ur(),r=fp(),t=on(),n=xe(),a=n("species");return Zi=function(i,o){var s=e(i).constructor,c;return s===void 0||t(c=e(s)[a])?o:r(c)},Zi}var Yi,Al;function nh(){if(Al)return Yi;Al=1;var e=nn(),r=Function.prototype,t=r.apply,n=r.call;return Yi=typeof Reflect=="object"&&Reflect.apply||(e?n.bind(t):function(){return n.apply(t,arguments)}),Yi}var Xi,jl;function ah(){if(jl)return Xi;jl=1;var e=Ot();return Xi=/(?:ipad|iphone|ipod).*applewebkit/i.test(e),Xi}var Qi,Ul;function ih(){if(Ul)return Qi;Ul=1;var e=Ie(),r=nh(),t=lt(),n=Re(),a=tr(),i=qe(),o=qd(),s=pn(),c=cn(),l=zr(),u=ah(),f=is(),h=e.setImmediate,d=e.clearImmediate,v=e.process,m=e.Dispatch,w=e.Function,E=e.MessageChannel,b=e.String,g=0,p={},y="onreadystatechange",k,A,j,z;i(function(){k=e.location});var H=function(q){if(a(p,q)){var O=p[q];delete p[q],O()}},ee=function(q){return function(){H(q)}},x=function(q){H(q.data)},N=function(q){e.postMessage(b(q),k.protocol+"//"+k.host)};return(!h||!d)&&(h=function(O){l(arguments.length,1);var X=n(O)?O:w(O),re=s(arguments,1);return p[++g]=function(){r(X,void 0,re)},A(g),g},d=function(O){delete p[O]},f?A=function(q){v.nextTick(ee(q))}:m&&m.now?A=function(q){m.now(ee(q))}:E&&!u?(j=new E,z=j.port2,j.port1.onmessage=x,A=t(z.postMessage,z)):e.addEventListener&&n(e.postMessage)&&!e.importScripts&&k&&k.protocol!=="file:"&&!i(N)?(A=N,e.addEventListener("message",x,!1)):y in c("script")?A=function(q){o.appendChild(c("script"))[y]=function(){o.removeChild(this),H(q)}}:A=function(q){setTimeout(ee(q),0)}),Qi={set:h,clear:d},Qi}var eo,Ll;function oh(){if(Ll)return eo;Ll=1;var e=function(){this.head=null,this.tail=null};return e.prototype={add:function(r){var t={item:r,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var r=this.head;if(r){var t=this.head=r.next;return t===null&&(this.tail=null),r.item}}},eo=e,eo}var ro,ql;function dp(){if(ql)return ro;ql=1;var e=Ot();return ro=/ipad|iphone|ipod/i.test(e)&&typeof Pebble<"u",ro}var to,xl;function hp(){if(xl)return to;xl=1;var e=Ot();return to=/web0s(?!.*chrome)/i.test(e),to}var no,Nl;function vp(){if(Nl)return no;Nl=1;var e=Ie(),r=Kd(),t=lt(),n=ih().set,a=oh(),i=ah(),o=dp(),s=hp(),c=is(),l=e.MutationObserver||e.WebKitMutationObserver,u=e.document,f=e.process,h=e.Promise,d=r("queueMicrotask"),v,m,w,E,b;if(!d){var g=new a,p=function(){var y,k;for(c&&(y=f.domain)&&y.exit();k=g.get();)try{k()}catch(A){throw g.head&&v(),A}y&&y.enter()};!i&&!c&&!s&&l&&u?(m=!0,w=u.createTextNode(""),new l(p).observe(w,{characterData:!0}),v=function(){w.data=m=!m}):!o&&h&&h.resolve?(E=h.resolve(void 0),E.constructor=h,b=t(E.then,E),v=function(){b(p)}):c?v=function(){f.nextTick(p)}:(n=t(n,e),v=function(){n(p)}),d=function(y){g.head||v(),g.add(y)}}return no=d,no}var ao,Dl;function pp(){return Dl||(Dl=1,ao=function(e,r){try{arguments.length===1?console.error(e):console.error(e,r)}catch{}}),ao}var io,$l;function ft(){return $l||($l=1,io=function(e){try{return{error:!1,value:e()}}catch(r){return{error:!0,value:r}}}),io}var oo,Ml;function dt(){if(Ml)return oo;Ml=1;var e=Ie();return oo=e.Promise,oo}var so,Fl;function Ut(){if(Fl)return so;Fl=1;var e=Ie(),r=dt(),t=Re(),n=Bd(),a=Zo(),i=xe(),o=rh(),s=gr(),c=Rd(),l=r&&r.prototype,u=i("species"),f=!1,h=t(e.PromiseRejectionEvent),d=n("Promise",function(){var v=a(r),m=v!==String(r);if(!m&&c===66||s&&!(l.catch&&l.finally))return!0;if(!c||c<51||!/native code/.test(v)){var w=new r(function(g){g(1)}),E=function(g){g(function(){},function(){})},b=w.constructor={};if(b[u]=E,f=w.then(function(){})instanceof E,!f)return!0}return!m&&(o==="BROWSER"||o==="DENO")&&!h});return so={CONSTRUCTOR:d,REJECTION_EVENT:h,SUBCLASSING:f},so}var uo={},Bl;function Rr(){if(Bl)return uo;Bl=1;var e=cr(),r=TypeError,t=function(n){var a,i;this.promise=new n(function(o,s){if(a!==void 0||i!==void 0)throw new r("Bad Promise constructor");a=o,i=s}),this.resolve=e(a),this.reject=e(i)};return uo.f=function(n){return new t(n)},uo}var zl;function mp(){if(zl)return Rl;zl=1;var e=ke(),r=gr(),t=is(),n=Ie(),a=Me(),i=ir(),o=Xo(),s=ct(),c=lp(),l=cr(),u=Re(),f=nr(),h=rs(),d=th(),v=ih().set,m=vp(),w=pp(),E=ft(),b=oh(),g=ut(),p=dt(),y=Ut(),k=Rr(),A="Promise",j=y.CONSTRUCTOR,z=y.REJECTION_EVENT,H=y.SUBCLASSING,ee=g.getterFor(A),x=g.set,N=p&&p.prototype,q=p,O=N,X=n.TypeError,re=n.document,Q=n.process,S=k.f,_=S,D=!!(re&&re.createEvent&&n.dispatchEvent),B="unhandledrejection",K="rejectionhandled",Z=0,de=1,ae=2,ue=1,se=2,Pe,je,Fe,Ce,Ve=function(M){var ie;return f(M)&&u(ie=M.then)?ie:!1},lr=function(M,ie){var le=ie.value,fe=ie.state===de,ge=fe?M.ok:M.fail,or=M.resolve,sr=M.reject,Te=M.domain,He,Je,Xe;try{ge?(fe||(ie.rejection===se&&pe(ie),ie.rejection=ue),ge===!0?He=le:(Te&&Te.enter(),He=ge(le),Te&&(Te.exit(),Xe=!0)),He===M.promise?sr(new X("Promise-chain cycle")):(Je=Ve(He))?a(Je,He,or,sr):or(He)):sr(le)}catch(pt){Te&&!Xe&&Te.exit(),sr(pt)}},fr=function(M,ie){M.notified||(M.notified=!0,m(function(){for(var le=M.reactions,fe;fe=le.get();)lr(fe,M);M.notified=!1,ie&&!M.rejection&&F(M)}))},T=function(M,ie,le){var fe,ge;D?(fe=re.createEvent("Event"),fe.promise=ie,fe.reason=le,fe.initEvent(M,!1,!0),n.dispatchEvent(fe)):fe={promise:ie,reason:le},!z&&(ge=n["on"+M])?ge(fe):M===B&&w("Unhandled promise rejection",le)},F=function(M){a(v,n,function(){var ie=M.facade,le=M.value,fe=J(M),ge;if(fe&&(ge=E(function(){t?Q.emit("unhandledRejection",le,ie):T(B,ie,le)}),M.rejection=t||J(M)?se:ue,ge.error))throw ge.value})},J=function(M){return M.rejection!==ue&&!M.parent},pe=function(M){a(v,n,function(){var ie=M.facade;t?Q.emit("rejectionHandled",ie):T(K,ie,M.value)})},ve=function(M,ie,le){return function(fe){M(ie,fe,le)}},me=function(M,ie,le){M.done||(M.done=!0,le&&(M=le),M.value=ie,M.state=ae,fr(M,!0))},Be=function(M,ie,le){if(!M.done){M.done=!0,le&&(M=le);try{if(M.facade===ie)throw new X("Promise can't be resolved itself");var fe=Ve(ie);fe?m(function(){var ge={done:!1};try{a(fe,ie,ve(Be,ge,M),ve(me,ge,M))}catch(or){me(ge,or,M)}}):(M.value=ie,M.state=de,fr(M,!1))}catch(ge){me({done:!1},ge,M)}}};if(j&&(q=function(ie){h(this,O),l(ie),a(Pe,this);var le=ee(this);try{ie(ve(Be,le),ve(me,le))}catch(fe){me(le,fe)}},O=q.prototype,Pe=function(ie){x(this,{type:A,done:!1,notified:!1,parent:!1,reactions:new b,rejection:!1,state:Z,value:null})},Pe.prototype=i(O,"then",function(ie,le){var fe=ee(this),ge=S(d(this,q));return fe.parent=!0,ge.ok=u(ie)?ie:!0,ge.fail=u(le)&&le,ge.domain=t?Q.domain:void 0,fe.state===Z?fe.reactions.add(ge):m(function(){lr(ge,fe)}),ge.promise}),je=function(){var M=new Pe,ie=ee(M);this.promise=M,this.resolve=ve(Be,ie),this.reject=ve(me,ie)},k.f=S=function(M){return M===q||M===Fe?new je(M):_(M)},!r&&u(p)&&N!==Object.prototype)){Ce=N.then,H||i(N,"then",function(ie,le){var fe=this;return new q(function(ge,or){a(Ce,fe,ge,or)}).then(ie,le)},{unsafe:!0});try{delete N.constructor}catch{}o&&o(N,O)}return e({global:!0,constructor:!0,wrap:!0,forced:j},{Promise:q}),s(q,A,!1,!0),c(A),Rl}var Hl={},co,Gl;function gp(){if(Gl)return co;Gl=1;var e=xe(),r=e("iterator"),t=!1;try{var n=0,a={next:function(){return{done:!!n++}},return:function(){t=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch{}return co=function(i,o){try{if(!o&&!t)return!1}catch{return!1}var s=!1;try{var c={};c[r]=function(){return{next:function(){return{done:s=!0}}}},i(c)}catch{}return s},co}var lo,Kl;function mn(){if(Kl)return lo;Kl=1;var e=dt(),r=gp(),t=Ut().CONSTRUCTOR;return lo=t||!r(function(n){e.all(n).then(void 0,function(){})}),lo}var Wl;function yp(){if(Wl)return Hl;Wl=1;var e=ke(),r=Me(),t=cr(),n=Rr(),a=ft(),i=jt(),o=mn();return e({target:"Promise",stat:!0,forced:o},{all:function(c){var l=this,u=n.f(l),f=u.resolve,h=u.reject,d=a(function(){var v=t(l.resolve),m=[],w=0,E=1;i(c,function(b){var g=w++,p=!1;E++,r(v,l,b).then(function(y){p||(p=!0,m[g]=y,--E||f(m))},h)}),--E||f(m)});return d.error&&h(d.value),u.promise}}),Hl}var Vl={},Jl;function wp(){if(Jl)return Vl;Jl=1;var e=ke(),r=gr(),t=Ut().CONSTRUCTOR,n=dt(),a=ar(),i=Re(),o=ir(),s=n&&n.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(l){return this.then(void 0,l)}}),!r&&i(n)){var c=a("Promise").prototype.catch;s.catch!==c&&o(s,"catch",c,{unsafe:!0})}return Vl}var Zl={},Yl;function bp(){if(Yl)return Zl;Yl=1;var e=ke(),r=Me(),t=cr(),n=Rr(),a=ft(),i=jt(),o=mn();return e({target:"Promise",stat:!0,forced:o},{race:function(c){var l=this,u=n.f(l),f=u.reject,h=a(function(){var d=t(l.resolve);i(c,function(v){r(d,l,v).then(u.resolve,f)})});return h.error&&f(h.value),u.promise}}),Zl}var Xl={},Ql;function Sp(){if(Ql)return Xl;Ql=1;var e=ke(),r=Rr(),t=Ut().CONSTRUCTOR;return e({target:"Promise",stat:!0,forced:t},{reject:function(a){var i=r.f(this),o=i.reject;return o(a),i.promise}}),Xl}var ef={},fo,rf;function sh(){if(rf)return fo;rf=1;var e=ur(),r=nr(),t=Rr();return fo=function(n,a){if(e(n),r(a)&&a.constructor===n)return a;var i=t.f(n),o=i.resolve;return o(a),i.promise},fo}var tf;function Ip(){if(tf)return ef;tf=1;var e=ke(),r=ar(),t=gr(),n=dt(),a=Ut().CONSTRUCTOR,i=sh(),o=r("Promise"),s=t&&!a;return e({target:"Promise",stat:!0,forced:t||a},{resolve:function(l){return i(s&&this===o?n:this,l)}}),ef}var nf;function Pp(){return nf||(nf=1,mp(),yp(),wp(),bp(),Sp(),Ip()),El}var af={},of;function Ep(){if(of)return af;of=1;var e=ke(),r=Me(),t=cr(),n=Rr(),a=ft(),i=jt(),o=mn();return e({target:"Promise",stat:!0,forced:o},{allSettled:function(c){var l=this,u=n.f(l),f=u.resolve,h=u.reject,d=a(function(){var v=t(l.resolve),m=[],w=0,E=1;i(c,function(b){var g=w++,p=!1;E++,r(v,l,b).then(function(y){p||(p=!0,m[g]={status:"fulfilled",value:y},--E||f(m))},function(y){p||(p=!0,m[g]={status:"rejected",reason:y},--E||f(m))})}),--E||f(m)});return d.error&&h(d.value),u.promise}}),af}var sf={},uf;function Rp(){if(uf)return sf;uf=1;var e=ke(),r=Me(),t=cr(),n=ar(),a=Rr(),i=ft(),o=jt(),s=mn(),c="No one promise resolved";return e({target:"Promise",stat:!0,forced:s},{any:function(u){var f=this,h=n("AggregateError"),d=a.f(f),v=d.resolve,m=d.reject,w=i(function(){var E=t(f.resolve),b=[],g=0,p=1,y=!1;o(u,function(k){var A=g++,j=!1;p++,r(E,f,k).then(function(z){j||y||(y=!0,v(z))},function(z){j||y||(j=!0,b[A]=z,--p||m(new h(b,c)))})}),--p||m(new h(b,c))});return w.error&&m(w.value),d.promise}}),sf}var cf={},lf;function uh(){if(lf)return cf;lf=1;var e=ke(),r=Ie(),t=nh(),n=pn(),a=Rr(),i=cr(),o=ft(),s=r.Promise,c=!1,l=!s||!s.try||o(function(){s.try(function(u){c=u===8},8)}).error||!c;return e({target:"Promise",stat:!0,forced:l},{try:function(u){var f=arguments.length>1?n(arguments,1):[],h=a.f(this),d=o(function(){return t(i(u),void 0,f)});return(d.error?h.reject:h.resolve)(d.value),h.promise}}),cf}var ff={},df;function ch(){if(df)return ff;df=1;var e=ke(),r=Rr();return e({target:"Promise",stat:!0},{withResolvers:function(){var n=r.f(this);return{promise:n.promise,resolve:n.resolve,reject:n.reject}}}),ff}var hf={},vf;function _p(){if(vf)return hf;vf=1;var e=ke(),r=gr(),t=dt(),n=qe(),a=ar(),i=Re(),o=th(),s=sh(),c=ir(),l=t&&t.prototype,u=!!t&&n(function(){l.finally.call({then:function(){}},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:u},{finally:function(h){var d=o(this,a("Promise")),v=i(h);return this.then(v?function(m){return s(d,h()).then(function(){return m})}:h,v?function(m){return s(d,h()).then(function(){throw m})}:h)}}),!r&&i(t)){var f=a("Promise").prototype.finally;l.finally!==f&&c(l,"finally",f,{unsafe:!0})}return hf}var ho,pf;function Tp(){if(pf)return ho;pf=1,sp(),es(),cp(),Pp(),Ep(),Rp(),uh(),ch(),_p(),Zd();var e=as();return ho=e.Promise,ho}var vo,mf;function Op(){if(mf)return vo;mf=1;var e=Tp();return eh(),vo=e,vo}var gf={},yf;function kp(){return yf||(yf=1,uh()),gf}var wf={},bf;function Cp(){return bf||(bf=1,ch()),wf}var po,Sf;function Ap(){if(Sf)return po;Sf=1;var e=Op();return kp(),Cp(),po=e,po}Ap();const lh="sesamy-debug";function jp(e,r,t){const n=new Date;n.setTime(n.getTime()+t*60*60*1e3);const a="expires="+n.toUTCString();document.cookie=`${e}=${r}; ${a}; path=/`}function Up(e){if(typeof document>"u")return null;const r=e+"=",t=document.cookie.split(";");for(let n=0;n<t.length;n++){let a=t[n];for(;a.charAt(0)===" ";)a=a.substring(1);if(a.indexOf(r)===0)return a.substring(r.length,a.length)}return null}function Lp(e){jp(lh,e.toString(),1)}function qp(){return Up(lh)==="true"}function ye(e){qp()&&console.log(e)}function Ir(e,r){if(typeof window>"u")return;const t=new CustomEvent(e,{detail:r,bubbles:!0,composed:!0});ye(`Triggering event: ${e}`),dispatchEvent(t)}function pr(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)r.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(t[n[a]]=e[n[a]])}return t}var jr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function os(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ss(e,r){return e(r={exports:{}},r.exports),r.exports}var Ar=ss(function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t=function(){function n(){var a=this;this.locked=new Map,this.addToLocked=function(i,o){var s=a.locked.get(i);s===void 0?o===void 0?a.locked.set(i,[]):a.locked.set(i,[o]):o!==void 0&&(s.unshift(o),a.locked.set(i,s))},this.isLocked=function(i){return a.locked.has(i)},this.lock=function(i){return new Promise(function(o,s){a.isLocked(i)?a.addToLocked(i,o):(a.addToLocked(i),o())})},this.unlock=function(i){var o=a.locked.get(i);if(o!==void 0&&o.length!==0){var s=o.pop();a.locked.set(i,o),s!==void 0&&setTimeout(s,0)}else a.locked.delete(i)}}return n.getInstance=function(){return n.instance===void 0&&(n.instance=new n),n.instance},n}();r.default=function(){return t.getInstance()}});os(Ar);var xp=os(ss(function(e,r){var t=jr&&jr.__awaiter||function(u,f,h,d){return new(h||(h=Promise))(function(v,m){function w(g){try{b(d.next(g))}catch(p){m(p)}}function E(g){try{b(d.throw(g))}catch(p){m(p)}}function b(g){g.done?v(g.value):new h(function(p){p(g.value)}).then(w,E)}b((d=d.apply(u,f||[])).next())})},n=jr&&jr.__generator||function(u,f){var h,d,v,m,w={label:0,sent:function(){if(1&v[0])throw v[1];return v[1]},trys:[],ops:[]};return m={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function E(b){return function(g){return function(p){if(h)throw new TypeError("Generator is already executing.");for(;w;)try{if(h=1,d&&(v=2&p[0]?d.return:p[0]?d.throw||((v=d.return)&&v.call(d),0):d.next)&&!(v=v.call(d,p[1])).done)return v;switch(d=0,v&&(p=[2&p[0],v.value]),p[0]){case 0:case 1:v=p;break;case 4:return w.label++,{value:p[1],done:!1};case 5:w.label++,d=p[1],p=[0];continue;case 7:p=w.ops.pop(),w.trys.pop();continue;default:if(v=w.trys,!((v=v.length>0&&v[v.length-1])||p[0]!==6&&p[0]!==2)){w=0;continue}if(p[0]===3&&(!v||p[1]>v[0]&&p[1]<v[3])){w.label=p[1];break}if(p[0]===6&&w.label<v[1]){w.label=v[1],v=p;break}if(v&&w.label<v[2]){w.label=v[2],w.ops.push(p);break}v[2]&&w.ops.pop(),w.trys.pop();continue}p=f.call(u,w)}catch(y){p=[6,y],d=0}finally{h=v=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([b,g])}}},a=jr;Object.defineProperty(r,"__esModule",{value:!0});var i="browser-tabs-lock-key",o={key:function(u){return t(a,void 0,void 0,function(){return n(this,function(f){throw new Error("Unsupported")})})},getItem:function(u){return t(a,void 0,void 0,function(){return n(this,function(f){throw new Error("Unsupported")})})},clear:function(){return t(a,void 0,void 0,function(){return n(this,function(u){return[2,window.localStorage.clear()]})})},removeItem:function(u){return t(a,void 0,void 0,function(){return n(this,function(f){throw new Error("Unsupported")})})},setItem:function(u,f){return t(a,void 0,void 0,function(){return n(this,function(h){throw new Error("Unsupported")})})},keySync:function(u){return window.localStorage.key(u)},getItemSync:function(u){return window.localStorage.getItem(u)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(u){return window.localStorage.removeItem(u)},setItemSync:function(u,f){return window.localStorage.setItem(u,f)}};function s(u){return new Promise(function(f){return setTimeout(f,u)})}function c(u){for(var f="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",h="",d=0;d<u;d++)h+=f[Math.floor(Math.random()*f.length)];return h}var l=function(){function u(f){this.acquiredIatSet=new Set,this.storageHandler=void 0,this.id=Date.now().toString()+c(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),this.storageHandler=f,u.waiters===void 0&&(u.waiters=[])}return u.prototype.acquireLock=function(f,h){return h===void 0&&(h=5e3),t(this,void 0,void 0,function(){var d,v,m,w,E,b,g;return n(this,function(p){switch(p.label){case 0:d=Date.now()+c(4),v=Date.now()+h,m=i+"-"+f,w=this.storageHandler===void 0?o:this.storageHandler,p.label=1;case 1:return Date.now()<v?[4,s(30)]:[3,8];case 2:return p.sent(),w.getItemSync(m)!==null?[3,5]:(E=this.id+"-"+f+"-"+d,[4,s(Math.floor(25*Math.random()))]);case 3:return p.sent(),w.setItemSync(m,JSON.stringify({id:this.id,iat:d,timeoutKey:E,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,s(30)];case 4:return p.sent(),(b=w.getItemSync(m))!==null&&(g=JSON.parse(b)).id===this.id&&g.iat===d?(this.acquiredIatSet.add(d),this.refreshLockWhileAcquired(m,d),[2,!0]):[3,7];case 5:return u.lockCorrector(this.storageHandler===void 0?o:this.storageHandler),[4,this.waitForSomethingToChange(v)];case 6:p.sent(),p.label=7;case 7:return d=Date.now()+c(4),[3,1];case 8:return[2,!1]}})})},u.prototype.refreshLockWhileAcquired=function(f,h){return t(this,void 0,void 0,function(){var d=this;return n(this,function(v){return setTimeout(function(){return t(d,void 0,void 0,function(){var m,w,E;return n(this,function(b){switch(b.label){case 0:return[4,Ar.default().lock(h)];case 1:return b.sent(),this.acquiredIatSet.has(h)?(m=this.storageHandler===void 0?o:this.storageHandler,(w=m.getItemSync(f))===null?(Ar.default().unlock(h),[2]):((E=JSON.parse(w)).timeRefreshed=Date.now(),m.setItemSync(f,JSON.stringify(E)),Ar.default().unlock(h),this.refreshLockWhileAcquired(f,h),[2])):(Ar.default().unlock(h),[2])}})})},1e3),[2]})})},u.prototype.waitForSomethingToChange=function(f){return t(this,void 0,void 0,function(){return n(this,function(h){switch(h.label){case 0:return[4,new Promise(function(d){var v=!1,m=Date.now(),w=!1;function E(){if(w||(window.removeEventListener("storage",E),u.removeFromWaiting(E),clearTimeout(b),w=!0),!v){v=!0;var g=50-(Date.now()-m);g>0?setTimeout(d,g):d(null)}}window.addEventListener("storage",E),u.addToWaiting(E);var b=setTimeout(E,Math.max(0,f-Date.now()))})];case 1:return h.sent(),[2]}})})},u.addToWaiting=function(f){this.removeFromWaiting(f),u.waiters!==void 0&&u.waiters.push(f)},u.removeFromWaiting=function(f){u.waiters!==void 0&&(u.waiters=u.waiters.filter(function(h){return h!==f}))},u.notifyWaiters=function(){u.waiters!==void 0&&u.waiters.slice().forEach(function(f){return f()})},u.prototype.releaseLock=function(f){return t(this,void 0,void 0,function(){return n(this,function(h){switch(h.label){case 0:return[4,this.releaseLock__private__(f)];case 1:return[2,h.sent()]}})})},u.prototype.releaseLock__private__=function(f){return t(this,void 0,void 0,function(){var h,d,v,m;return n(this,function(w){switch(w.label){case 0:return h=this.storageHandler===void 0?o:this.storageHandler,d=i+"-"+f,(v=h.getItemSync(d))===null?[2]:(m=JSON.parse(v)).id!==this.id?[3,2]:[4,Ar.default().lock(m.iat)];case 1:w.sent(),this.acquiredIatSet.delete(m.iat),h.removeItemSync(d),Ar.default().unlock(m.iat),u.notifyWaiters(),w.label=2;case 2:return[2]}})})},u.lockCorrector=function(f){for(var h=Date.now()-5e3,d=f,v=[],m=0;;){var w=d.keySync(m);if(w===null)break;v.push(w),m++}for(var E=!1,b=0;b<v.length;b++){var g=v[b];if(g.includes(i)){var p=d.getItemSync(g);if(p!==null){var y=JSON.parse(p);(y.timeRefreshed===void 0&&y.timeAcquired<h||y.timeRefreshed!==void 0&&y.timeRefreshed<h)&&(d.removeItemSync(g),E=!0)}}}E&&u.notifyWaiters()},u.waiters=void 0,u}();r.default=l}));const Np={timeoutInSeconds:60},fh={name:"auth0-spa-js",version:"2.1.3"},dh=()=>Date.now();let Ye=class To extends Error{constructor(r,t){super(t),this.error=r,this.error_description=t,Object.setPrototypeOf(this,To.prototype)}static fromPayload({error:r,error_description:t}){return new To(r,t)}},Dp=class hh extends Ye{constructor(r,t,n,a=null){super(r,t),this.state=n,this.appState=a,Object.setPrototypeOf(this,hh.prototype)}},Oo=class vh extends Ye{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,vh.prototype)}},$p=class ph extends Oo{constructor(r){super(),this.popup=r,Object.setPrototypeOf(this,ph.prototype)}},Mp=class mh extends Ye{constructor(r){super("cancelled","Popup closed"),this.popup=r,Object.setPrototypeOf(this,mh.prototype)}},Fp=class gh extends Ye{constructor(r,t,n){super(r,t),this.mfa_token=n,Object.setPrototypeOf(this,gh.prototype)}},yh=class wh extends Ye{constructor(r,t){super("missing_refresh_token",`Missing Refresh Token (audience: '${If(r,["default"])}', scope: '${If(t)}')`),this.audience=r,this.scope=t,Object.setPrototypeOf(this,wh.prototype)}};function If(e,r=[]){return e&&!r.includes(e)?e:""}const Kt=()=>window.crypto,mo=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let r="";return Array.from(Kt().getRandomValues(new Uint8Array(43))).forEach(t=>r+=e[t%e.length]),r},Pf=e=>btoa(e),ko=e=>{var{clientId:r}=e,t=pr(e,["clientId"]);return new URLSearchParams((n=>Object.keys(n).filter(a=>n[a]!==void 0).reduce((a,i)=>Object.assign(Object.assign({},a),{[i]:n[i]}),{}))(Object.assign({client_id:r},t))).toString()},Ef=e=>(r=>decodeURIComponent(atob(r).split("").map(t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),Bp=async(e,r)=>{const t=await fetch(e,r);return{ok:t.ok,json:await t.json()}},zp=async(e,r,t)=>{const n=new AbortController;let a;return r.signal=n.signal,Promise.race([Bp(e,r),new Promise((i,o)=>{a=setTimeout(()=>{n.abort(),o(new Error("Timeout when executing 'fetch'"))},t)})]).finally(()=>{clearTimeout(a)})},Hp=async(e,r,t,n,a,i,o)=>{return s={auth:{audience:r,scope:t},timeout:a,fetchUrl:e,fetchOptions:n,useFormData:o},c=i,new Promise(function(l,u){const f=new MessageChannel;f.port1.onmessage=function(h){h.data.error?u(new Error(h.data.error)):l(h.data),f.port1.close()},c.postMessage(s,[f.port2])});var s,c},Gp=async(e,r,t,n,a,i,o=1e4)=>a?Hp(e,r,t,n,o,a,i):zp(e,n,o);async function Kp(e,r){var{baseUrl:t,timeout:n,audience:a,scope:i,auth0Client:o,useFormData:s}=e,c=pr(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const l=s?ko(c):JSON.stringify(c);return await async function(u,f,h,d,v,m,w){let E,b=null;for(let j=0;j<3;j++)try{E=await Gp(u,h,d,v,m,w,f),b=null;break}catch(z){b=z}if(b)throw b;const g=E.json,{error:p,error_description:y}=g,k=pr(g,["error","error_description"]),{ok:A}=E;if(!A){const j=y||`HTTP error. Unable to fetch ${u}`;throw p==="mfa_required"?new Fp(p,j,k.mfa_token):p==="missing_refresh_token"?new yh(h,d):new Ye(p||"request_error",j)}return k}(`${t}/oauth/token`,n,a||"default",i,{method:"POST",body:l,headers:{"Content-Type":s?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(o||fh))}},r,s)}const qt=(...e)=>{return(r=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(r))).join(" ");var r};let Lr=class Co{constructor(r,t="@@auth0spajs@@",n){this.prefix=t,this.suffix=n,this.clientId=r.clientId,this.scope=r.scope,this.audience=r.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(r){const[t,n,a,i]=r.split("::");return new Co({clientId:n,scope:i,audience:a},t)}static fromCacheEntry(r){const{scope:t,audience:n,client_id:a}=r;return new Co({scope:t,audience:n,clientId:a})}},Wp=class{set(r,t){localStorage.setItem(r,JSON.stringify(t))}get(r){const t=window.localStorage.getItem(r);if(t)try{return JSON.parse(t)}catch{return}}remove(r){localStorage.removeItem(r)}allKeys(){return Object.keys(window.localStorage).filter(r=>r.startsWith("@@auth0spajs@@"))}},bh=class{constructor(){this.enclosedCache=function(){let r={};return{set(t,n){r[t]=n},get(t){const n=r[t];if(n)return n},remove(t){delete r[t]},allKeys:()=>Object.keys(r)}}()}},Vp=class{constructor(r,t,n){this.cache=r,this.keyManifest=t,this.nowProvider=n||dh}async setIdToken(r,t,n){var a;const i=this.getIdTokenCacheKey(r);await this.cache.set(i,{id_token:t,decodedToken:n}),await((a=this.keyManifest)===null||a===void 0?void 0:a.add(i))}async getIdToken(r){const t=await this.cache.get(this.getIdTokenCacheKey(r.clientId));if(!t&&r.scope&&r.audience){const n=await this.get(r);return!n||!n.id_token||!n.decodedToken?void 0:{id_token:n.id_token,decodedToken:n.decodedToken}}if(t)return{id_token:t.id_token,decodedToken:t.decodedToken}}async get(r,t=0){var n;let a=await this.cache.get(r.toKey());if(!a){const s=await this.getCacheKeys();if(!s)return;const c=this.matchExistingCacheKey(r,s);c&&(a=await this.cache.get(c))}if(!a)return;const i=await this.nowProvider(),o=Math.floor(i/1e3);return a.expiresAt-t<o?a.body.refresh_token?(a.body={refresh_token:a.body.refresh_token},await this.cache.set(r.toKey(),a),a.body):(await this.cache.remove(r.toKey()),void await((n=this.keyManifest)===null||n===void 0?void 0:n.remove(r.toKey()))):a.body}async set(r){var t;const n=new Lr({clientId:r.client_id,scope:r.scope,audience:r.audience}),a=await this.wrapCacheEntry(r);await this.cache.set(n.toKey(),a),await((t=this.keyManifest)===null||t===void 0?void 0:t.add(n.toKey()))}async clear(r){var t;const n=await this.getCacheKeys();n&&(await n.filter(a=>!r||a.includes(r)).reduce(async(a,i)=>{await a,await this.cache.remove(i)},Promise.resolve()),await((t=this.keyManifest)===null||t===void 0?void 0:t.clear()))}async wrapCacheEntry(r){const t=await this.nowProvider();return{body:r,expiresAt:Math.floor(t/1e3)+r.expires_in}}async getCacheKeys(){var r;return this.keyManifest?(r=await this.keyManifest.get())===null||r===void 0?void 0:r.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(r){return new Lr({clientId:r},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(r,t){return t.filter(n=>{var a;const i=Lr.fromKey(n),o=new Set(i.scope&&i.scope.split(" ")),s=((a=r.scope)===null||a===void 0?void 0:a.split(" "))||[],c=i.scope&&s.reduce((l,u)=>l&&o.has(u),!0);return i.prefix==="@@auth0spajs@@"&&i.clientId===r.clientId&&i.audience===r.audience&&c})[0]}},Jp=class{constructor(r,t,n){this.storage=r,this.clientId=t,this.cookieDomain=n,this.storageKey=`a0.spajs.txs.${this.clientId}`}create(r){this.storage.save(this.storageKey,r,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}};const gt=e=>typeof e=="number",Zp=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"],Yp=e=>{if(!e.id_token)throw new Error("ID token is required but missing");const r=(i=>{const o=i.split("."),[s,c,l]=o;if(o.length!==3||!s||!c||!l)throw new Error("ID token could not be decoded");const u=JSON.parse(Ef(c)),f={__raw:i},h={};return Object.keys(u).forEach(d=>{f[d]=u[d],Zp.includes(d)||(h[d]=u[d])}),{encoded:{header:s,payload:c,signature:l},header:JSON.parse(Ef(s)),claims:f,user:h}})(e.id_token);if(!r.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(r.claims.iss!==e.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${e.iss}", found "${r.claims.iss}"`);if(!r.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(r.header.alg!=="RS256")throw new Error(`Signature algorithm of "${r.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!r.claims.aud||typeof r.claims.aud!="string"&&!Array.isArray(r.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(r.claims.aud)){if(!r.claims.aud.includes(e.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${e.aud}" but was not one of "${r.claims.aud.join(", ")}"`);if(r.claims.aud.length>1){if(!r.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(r.claims.azp!==e.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${e.aud}", found "${r.claims.azp}"`)}}else if(r.claims.aud!==e.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${e.aud}" but found "${r.claims.aud}"`);if(e.nonce){if(!r.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(r.claims.nonce!==e.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${e.nonce}", found "${r.claims.nonce}"`)}if(e.max_age&&!gt(r.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(r.claims.exp==null||!gt(r.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!gt(r.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const t=e.leeway||60,n=new Date(e.now||Date.now()),a=new Date(0);if(a.setUTCSeconds(r.claims.exp+t),n>a)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${n}) is after expiration time (${a})`);if(r.claims.nbf!=null&>(r.claims.nbf)){const i=new Date(0);if(i.setUTCSeconds(r.claims.nbf-t),n<i)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${n}) is before ${i}`)}if(r.claims.auth_time!=null&>(r.claims.auth_time)){const i=new Date(0);if(i.setUTCSeconds(parseInt(r.claims.auth_time)+e.max_age+t),n>i)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${n}) is after last auth at ${i}`)}if(e.organization){const i=e.organization.trim();if(i.startsWith("org_")){const o=i;if(!r.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(o!==r.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${o}", found "${r.claims.org_id}"`)}else{const o=i.toLowerCase();if(!r.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(o!==r.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${o}", found "${r.claims.org_name}"`)}}return r};var qr=ss(function(e,r){var t=jr&&jr.__assign||function(){return t=Object.assign||function(c){for(var l,u=1,f=arguments.length;u<f;u++)for(var h in l=arguments[u])Object.prototype.hasOwnProperty.call(l,h)&&(c[h]=l[h]);return c},t.apply(this,arguments)};function n(c,l){if(!l)return"";var u="; "+c;return l===!0?u:u+"="+l}function a(c,l,u){return encodeURIComponent(c).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(l).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(f){if(typeof f.expires=="number"){var h=new Date;h.setMilliseconds(h.getMilliseconds()+864e5*f.expires),f.expires=h}return n("Expires",f.expires?f.expires.toUTCString():"")+n("Domain",f.domain)+n("Path",f.path)+n("Secure",f.secure)+n("SameSite",f.sameSite)}(u)}function i(c){for(var l={},u=c?c.split("; "):[],f=/(%[\dA-F]{2})+/gi,h=0;h<u.length;h++){var d=u[h].split("="),v=d.slice(1).join("=");v.charAt(0)==='"'&&(v=v.slice(1,-1));try{l[d[0].replace(f,decodeURIComponent)]=v.replace(f,decodeURIComponent)}catch{}}return l}function o(){return i(document.cookie)}function s(c,l,u){document.cookie=a(c,l,t({path:"/"},u))}r.__esModule=!0,r.encode=a,r.parse=i,r.getAll=o,r.get=function(c){return o()[c]},r.set=s,r.remove=function(c,l){s(c,"",t(t({},l),{expires:-1}))}});os(qr),qr.encode,qr.parse,qr.getAll;var Xp=qr.get,Sh=qr.set,Ih=qr.remove;const Jr={get(e){const r=Xp(e);if(r!==void 0)return JSON.parse(r)},save(e,r,t){let n={};window.location.protocol==="https:"&&(n={secure:!0,sameSite:"none"}),t?.daysUntilExpire&&(n.expires=t.daysUntilExpire),t?.cookieDomain&&(n.domain=t.cookieDomain),Sh(e,JSON.stringify(r),n)},remove(e,r){let t={};r?.cookieDomain&&(t.domain=r.cookieDomain),Ih(e,t)}},Qp={get(e){return Jr.get(e)||Jr.get(`_legacy_${e}`)},save(e,r,t){let n={};window.location.protocol==="https:"&&(n={secure:!0}),t?.daysUntilExpire&&(n.expires=t.daysUntilExpire),t?.cookieDomain&&(n.domain=t.cookieDomain),Sh(`_legacy_${e}`,JSON.stringify(r),n),Jr.save(e,r,t)},remove(e,r){let t={};r?.cookieDomain&&(t.domain=r.cookieDomain),Ih(e,t),Jr.remove(e,r),Jr.remove(`_legacy_${e}`,r)}},em={get(e){if(typeof sessionStorage>"u")return;const r=sessionStorage.getItem(e);return r!=null?JSON.parse(r):void 0},save(e,r){sessionStorage.setItem(e,JSON.stringify(r))},remove(e){sessionStorage.removeItem(e)}};function rm(e,r,t){var n=r===void 0?null:r,a=function(c,l){var u=atob(c);if(l){for(var f=new Uint8Array(u.length),h=0,d=u.length;h<d;++h)f[h]=u.charCodeAt(h);return String.fromCharCode.apply(null,new Uint16Array(f.buffer))}return u}(e,t!==void 0&&t),i=a.indexOf(`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var As=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},js={},An,Us;function xe(){return Us||(Us=1,An=function(e){try{return!!e()}catch{return!0}}),An}var jn,Ls;function nn(){if(Ls)return jn;Ls=1;var e=xe();return jn=!e(function(){var r=(function(){}).bind();return typeof r!="function"||r.hasOwnProperty("prototype")}),jn}var Un,qs;function Se(){if(qs)return Un;qs=1;var e=nn(),r=Function.prototype,t=r.call,n=e&&r.bind.bind(t,t);return Un=e?n:function(a){return function(){return t.apply(a,arguments)}},Un}var Ln,xs;function an(){if(xs)return Ln;xs=1;var e=Se(),r=e({}.toString),t=e("".slice);return Ln=function(n){return t(r(n),8,-1)},Ln}var qn,Ns;function Id(){if(Ns)return qn;Ns=1;var e=Se(),r=xe(),t=an(),n=Object,a=e("".split);return qn=r(function(){return!n("z").propertyIsEnumerable(0)})?function(i){return t(i)==="String"?a(i,""):n(i)}:n,qn}var xn,Ds;function on(){return Ds||(Ds=1,xn=function(e){return e==null}),xn}var Nn,$s;function sn(){if($s)return Nn;$s=1;var e=on(),r=TypeError;return Nn=function(t){if(e(t))throw new r("Can't call method on "+t);return t},Nn}var Dn,Ms;function Tt(){if(Ms)return Dn;Ms=1;var e=Id(),r=sn();return Dn=function(t){return e(r(t))},Dn}var mt,Fs;function Ie(){if(Fs)return mt;Fs=1;var e=function(r){return r&&r.Math===Math&&r};return mt=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof As=="object"&&As)||e(typeof mt=="object"&&mt)||function(){return this}()||Function("return this")(),mt}var $n={exports:{}},Mn,Bs;function gr(){return Bs||(Bs=1,Mn=!1),Mn}var Fn,zs;function Bo(){if(zs)return Fn;zs=1;var e=Ie(),r=Object.defineProperty;return Fn=function(t,n){try{r(e,t,{value:n,configurable:!0,writable:!0})}catch{e[t]=n}return n},Fn}var Hs;function zo(){if(Hs)return $n.exports;Hs=1;var e=gr(),r=Ie(),t=Bo(),n="__core-js_shared__",a=$n.exports=r[n]||t(n,{});return(a.versions||(a.versions=[])).push({version:"3.39.0",mode:e?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"}),$n.exports}var Bn,Gs;function Pd(){if(Gs)return Bn;Gs=1;var e=zo();return Bn=function(r,t){return e[r]||(e[r]=t||{})},Bn}var zn,Ks;function un(){if(Ks)return zn;Ks=1;var e=sn(),r=Object;return zn=function(t){return r(e(t))},zn}var Hn,Ws;function tr(){if(Ws)return Hn;Ws=1;var e=Se(),r=un(),t=e({}.hasOwnProperty);return Hn=Object.hasOwn||function(a,i){return t(r(a),i)},Hn}var Gn,Vs;function Ed(){if(Vs)return Gn;Vs=1;var e=Se(),r=0,t=Math.random(),n=e(1 .toString);return Gn=function(a){return"Symbol("+(a===void 0?"":a)+")_"+n(++r+t,36)},Gn}var Kn,Js;function Ot(){if(Js)return Kn;Js=1;var e=Ie(),r=e.navigator,t=r&&r.userAgent;return Kn=t?String(t):"",Kn}var Wn,Zs;function Rd(){if(Zs)return Wn;Zs=1;var e=Ie(),r=Ot(),t=e.process,n=e.Deno,a=t&&t.versions||n&&n.version,i=a&&a.v8,o,s;return i&&(o=i.split("."),s=o[0]>0&&o[0]<4?1:+(o[0]+o[1])),!s&&r&&(o=r.match(/Edge\/(\d+)/),(!o||o[1]>=74)&&(o=r.match(/Chrome\/(\d+)/),o&&(s=+o[1]))),Wn=s,Wn}var Vn,Ys;function _d(){if(Ys)return Vn;Ys=1;var e=Rd(),r=xe(),t=Ie(),n=t.String;return Vn=!!Object.getOwnPropertySymbols&&!r(function(){var a=Symbol("symbol detection");return!n(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&e&&e<41}),Vn}var Jn,Xs;function Td(){if(Xs)return Jn;Xs=1;var e=_d();return Jn=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Jn}var Zn,Qs;function Ne(){if(Qs)return Zn;Qs=1;var e=Ie(),r=Pd(),t=tr(),n=Ed(),a=_d(),i=Td(),o=e.Symbol,s=r("wks"),c=i?o.for||o:o&&o.withoutSetter||n;return Zn=function(l){return t(s,l)||(s[l]=a&&t(o,l)?o[l]:c("Symbol."+l)),s[l]},Zn}var Yn,eu;function Re(){if(eu)return Yn;eu=1;var e=typeof document=="object"&&document.all;return Yn=typeof e>"u"&&e!==void 0?function(r){return typeof r=="function"||r===e}:function(r){return typeof r=="function"},Yn}var Xn,ru;function nr(){if(ru)return Xn;ru=1;var e=Re();return Xn=function(r){return typeof r=="object"?r!==null:e(r)},Xn}var Qn,tu;function ur(){if(tu)return Qn;tu=1;var e=nr(),r=String,t=TypeError;return Qn=function(n){if(e(n))return n;throw new t(r(n)+" is not an object")},Qn}var ea={},ra,nu;function De(){if(nu)return ra;nu=1;var e=xe();return ra=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),ra}var ta,au;function Od(){if(au)return ta;au=1;var e=De(),r=xe();return ta=e&&r(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),ta}var na={},aa,iu;function cn(){if(iu)return aa;iu=1;var e=Ie(),r=nr(),t=e.document,n=r(t)&&r(t.createElement);return aa=function(a){return n?t.createElement(a):{}},aa}var ia,ou;function kd(){if(ou)return ia;ou=1;var e=De(),r=xe(),t=cn();return ia=!e&&!r(function(){return Object.defineProperty(t("div"),"a",{get:function(){return 7}}).a!==7}),ia}var oa,su;function Me(){if(su)return oa;su=1;var e=nn(),r=Function.prototype.call;return oa=e?r.bind(r):function(){return r.apply(r,arguments)},oa}var sa,uu;function ar(){if(uu)return sa;uu=1;var e=Ie(),r=Re(),t=function(n){return r(n)?n:void 0};return sa=function(n,a){return arguments.length<2?t(e[n]):e[n]&&e[n][a]},sa}var ua,cu;function ln(){if(cu)return ua;cu=1;var e=Se();return ua=e({}.isPrototypeOf),ua}var ca,lu;function Cd(){if(lu)return ca;lu=1;var e=ar(),r=Re(),t=ln(),n=Td(),a=Object;return ca=n?function(i){return typeof i=="symbol"}:function(i){var o=e("Symbol");return r(o)&&t(o.prototype,a(i))},ca}var la,fu;function fn(){if(fu)return la;fu=1;var e=String;return la=function(r){try{return e(r)}catch{return"Object"}},la}var fa,du;function cr(){if(du)return fa;du=1;var e=Re(),r=fn(),t=TypeError;return fa=function(n){if(e(n))return n;throw new t(r(n)+" is not a function")},fa}var da,hu;function Ho(){if(hu)return da;hu=1;var e=cr(),r=on();return da=function(t,n){var a=t[n];return r(a)?void 0:e(a)},da}var ha,vu;function mv(){if(vu)return ha;vu=1;var e=Me(),r=Re(),t=nr(),n=TypeError;return ha=function(a,i){var o,s;if(i==="string"&&r(o=a.toString)&&!t(s=e(o,a))||r(o=a.valueOf)&&!t(s=e(o,a))||i!=="string"&&r(o=a.toString)&&!t(s=e(o,a)))return s;throw new n("Can't convert object to primitive value")},ha}var va,pu;function gv(){if(pu)return va;pu=1;var e=Me(),r=nr(),t=Cd(),n=Ho(),a=mv(),i=Ne(),o=TypeError,s=i("toPrimitive");return va=function(c,l){if(!r(c)||t(c))return c;var u=n(c,s),f;if(u){if(l===void 0&&(l="default"),f=e(u,c,l),!r(f)||t(f))return f;throw new o("Can't convert object to primitive value")}return l===void 0&&(l="number"),a(c,l)},va}var pa,mu;function Ad(){if(mu)return pa;mu=1;var e=gv(),r=Cd();return pa=function(t){var n=e(t,"string");return r(n)?n:n+""},pa}var gu;function Pr(){if(gu)return na;gu=1;var e=De(),r=kd(),t=Od(),n=ur(),a=Ad(),i=TypeError,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c="enumerable",l="configurable",u="writable";return na.f=e?t?function(h,d,v){if(n(h),d=a(d),n(v),typeof h=="function"&&d==="prototype"&&"value"in v&&u in v&&!v[u]){var m=s(h,d);m&&m[u]&&(h[d]=v.value,v={configurable:l in v?v[l]:m[l],enumerable:c in v?v[c]:m[c],writable:!1})}return o(h,d,v)}:o:function(h,d,v){if(n(h),d=a(d),n(v),r)try{return o(h,d,v)}catch{}if("get"in v||"set"in v)throw new i("Accessors not supported");return"value"in v&&(h[d]=v.value),h},na}var ma,yu;function yv(){if(yu)return ma;yu=1;var e=Math.ceil,r=Math.floor;return ma=Math.trunc||function(n){var a=+n;return(a>0?r:e)(a)},ma}var ga,wu;function Go(){if(wu)return ga;wu=1;var e=yv();return ga=function(r){var t=+r;return t!==t||t===0?0:e(t)},ga}var ya,bu;function jd(){if(bu)return ya;bu=1;var e=Go(),r=Math.max,t=Math.min;return ya=function(n,a){var i=e(n);return i<0?r(i+a,0):t(i,a)},ya}var wa,Su;function wv(){if(Su)return wa;Su=1;var e=Go(),r=Math.min;return wa=function(t){var n=e(t);return n>0?r(n,9007199254740991):0},wa}var ba,Iu;function Ko(){if(Iu)return ba;Iu=1;var e=wv();return ba=function(r){return e(r.length)},ba}var Sa,Pu;function bv(){if(Pu)return Sa;Pu=1;var e=Tt(),r=jd(),t=Ko(),n=function(a){return function(i,o,s){var c=e(i),l=t(c);if(l===0)return!a&&-1;var u=r(s,l),f;if(a&&o!==o){for(;l>u;)if(f=c[u++],f!==f)return!0}else for(;l>u;u++)if((a||u in c)&&c[u]===o)return a||u||0;return!a&&-1}};return Sa={includes:n(!0),indexOf:n(!1)},Sa}var Ia,Eu;function Wo(){return Eu||(Eu=1,Ia={}),Ia}var Pa,Ru;function Ud(){if(Ru)return Pa;Ru=1;var e=Se(),r=tr(),t=Tt(),n=bv().indexOf,a=Wo(),i=e([].push);return Pa=function(o,s){var c=t(o),l=0,u=[],f;for(f in c)!r(a,f)&&r(c,f)&&i(u,f);for(;s.length>l;)r(c,f=s[l++])&&(~n(u,f)||i(u,f));return u},Pa}var Ea,_u;function Vo(){return _u||(_u=1,Ea=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),Ea}var Ra,Tu;function Ld(){if(Tu)return Ra;Tu=1;var e=Ud(),r=Vo();return Ra=Object.keys||function(n){return e(n,r)},Ra}var Ou;function Sv(){if(Ou)return ea;Ou=1;var e=De(),r=Od(),t=Pr(),n=ur(),a=Tt(),i=Ld();return ea.f=e&&!r?Object.defineProperties:function(s,c){n(s);for(var l=a(c),u=i(c),f=u.length,h=0,d;f>h;)t.f(s,d=u[h++],l[d]);return s},ea}var _a,ku;function qd(){if(ku)return _a;ku=1;var e=ar();return _a=e("document","documentElement"),_a}var Ta,Cu;function Jo(){if(Cu)return Ta;Cu=1;var e=Pd(),r=Ed(),t=e("keys");return Ta=function(n){return t[n]||(t[n]=r(n))},Ta}var Oa,Au;function kt(){if(Au)return Oa;Au=1;var e=ur(),r=Sv(),t=Vo(),n=Wo(),a=qd(),i=cn(),o=Jo(),s=">",c="<",l="prototype",u="script",f=o("IE_PROTO"),h=function(){},d=function(b){return c+u+s+b+c+"/"+u+s},v=function(b){b.write(d("")),b.close();var g=b.parentWindow.Object;return b=null,g},m=function(){var b=i("iframe"),g="java"+u+":",p;return b.style.display="none",a.appendChild(b),b.src=String(g),p=b.contentWindow.document,p.open(),p.write(d("document.F=Object")),p.close(),p.F},w,E=function(){try{w=new ActiveXObject("htmlfile")}catch{}E=typeof document<"u"?document.domain&&w?v(w):m():v(w);for(var b=t.length;b--;)delete E[l][t[b]];return E()};return n[f]=!0,Oa=Object.create||function(g,p){var y;return g!==null?(h[l]=e(g),y=new h,h[l]=null,y[f]=g):y=E(),p===void 0?y:r.f(y,p)},Oa}var ka,ju;function Iv(){if(ju)return ka;ju=1;var e=Ne(),r=kt(),t=Pr().f,n=e("unscopables"),a=Array.prototype;return a[n]===void 0&&t(a,n,{configurable:!0,value:r(null)}),ka=function(i){a[n][i]=!0},ka}var Ca,Uu;function Ct(){return Uu||(Uu=1,Ca={}),Ca}var Aa,Lu;function Pv(){if(Lu)return Aa;Lu=1;var e=Ie(),r=Re(),t=e.WeakMap;return Aa=r(t)&&/native code/.test(String(t)),Aa}var ja,qu;function Fr(){return qu||(qu=1,ja=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}),ja}var Ua,xu;function Br(){if(xu)return Ua;xu=1;var e=De(),r=Pr(),t=Fr();return Ua=e?function(n,a,i){return r.f(n,a,t(1,i))}:function(n,a,i){return n[a]=i,n},Ua}var La,Nu;function ut(){if(Nu)return La;Nu=1;var e=Pv(),r=Ie(),t=nr(),n=Br(),a=tr(),i=zo(),o=Jo(),s=Wo(),c="Object already initialized",l=r.TypeError,u=r.WeakMap,f,h,d,v=function(b){return d(b)?h(b):f(b,{})},m=function(b){return function(g){var p;if(!t(g)||(p=h(g)).type!==b)throw new l("Incompatible receiver, "+b+" required");return p}};if(e||i.state){var w=i.state||(i.state=new u);w.get=w.get,w.has=w.has,w.set=w.set,f=function(b,g){if(w.has(b))throw new l(c);return g.facade=b,w.set(b,g),g},h=function(b){return w.get(b)||{}},d=function(b){return w.has(b)}}else{var E=o("state");s[E]=!0,f=function(b,g){if(a(b,E))throw new l(c);return g.facade=b,n(b,E,g),g},h=function(b){return a(b,E)?b[E]:{}},d=function(b){return a(b,E)}}return La={set:f,get:h,has:d,enforce:v,getterFor:m},La}var qa={},xa={},Du;function xd(){if(Du)return xa;Du=1;var e={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,t=r&&!e.call({1:2},1);return xa.f=t?function(a){var i=r(this,a);return!!i&&i.enumerable}:e,xa}var $u;function Nd(){if($u)return qa;$u=1;var e=De(),r=Me(),t=xd(),n=Fr(),a=Tt(),i=Ad(),o=tr(),s=kd(),c=Object.getOwnPropertyDescriptor;return qa.f=e?c:function(u,f){if(u=a(u),f=i(f),s)try{return c(u,f)}catch{}if(o(u,f))return n(!r(t.f,u,f),u[f])},qa}var Na={exports:{}},Da,Mu;function Dd(){if(Mu)return Da;Mu=1;var e=De(),r=tr(),t=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,a=r(t,"name"),i=a&&(function(){}).name==="something",o=a&&(!e||e&&n(t,"name").configurable);return Da={EXISTS:a,PROPER:i,CONFIGURABLE:o},Da}var $a,Fu;function Zo(){if(Fu)return $a;Fu=1;var e=Se(),r=Re(),t=zo(),n=e(Function.toString);return r(t.inspectSource)||(t.inspectSource=function(a){return n(a)}),$a=t.inspectSource,$a}var Bu;function $d(){if(Bu)return Na.exports;Bu=1;var e=Se(),r=xe(),t=Re(),n=tr(),a=De(),i=Dd().CONFIGURABLE,o=Zo(),s=ut(),c=s.enforce,l=s.get,u=String,f=Object.defineProperty,h=e("".slice),d=e("".replace),v=e([].join),m=a&&!r(function(){return f(function(){},"length",{value:8}).length!==8}),w=String(String).split("String"),E=Na.exports=function(b,g,p){h(u(g),0,7)==="Symbol("&&(g="["+d(u(g),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),p&&p.getter&&(g="get "+g),p&&p.setter&&(g="set "+g),(!n(b,"name")||i&&b.name!==g)&&(a?f(b,"name",{value:g,configurable:!0}):b.name=g),m&&p&&n(p,"arity")&&b.length!==p.arity&&f(b,"length",{value:p.arity});try{p&&n(p,"constructor")&&p.constructor?a&&f(b,"prototype",{writable:!1}):b.prototype&&(b.prototype=void 0)}catch{}var y=c(b);return n(y,"source")||(y.source=v(w,typeof g=="string"?g:"")),b};return Function.prototype.toString=E(function(){return t(this)&&l(this).source||o(this)},"toString"),Na.exports}var Ma,zu;function ir(){if(zu)return Ma;zu=1;var e=Re(),r=Pr(),t=$d(),n=Bo();return Ma=function(a,i,o,s){s||(s={});var c=s.enumerable,l=s.name!==void 0?s.name:i;if(e(o)&&t(o,l,s),s.global)c?a[i]=o:n(i,o);else{try{s.unsafe?a[i]&&(c=!0):delete a[i]}catch{}c?a[i]=o:r.f(a,i,{value:o,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return a},Ma}var Fa={},Hu;function Ev(){if(Hu)return Fa;Hu=1;var e=Ud(),r=Vo(),t=r.concat("length","prototype");return Fa.f=Object.getOwnPropertyNames||function(a){return e(a,t)},Fa}var Ba={},Gu;function Md(){return Gu||(Gu=1,Ba.f=Object.getOwnPropertySymbols),Ba}var za,Ku;function Rv(){if(Ku)return za;Ku=1;var e=ar(),r=Se(),t=Ev(),n=Md(),a=ur(),i=r([].concat);return za=e("Reflect","ownKeys")||function(s){var c=t.f(a(s)),l=n.f;return l?i(c,l(s)):c},za}var Ha,Wu;function Fd(){if(Wu)return Ha;Wu=1;var e=tr(),r=Rv(),t=Nd(),n=Pr();return Ha=function(a,i,o){for(var s=r(i),c=n.f,l=t.f,u=0;u<s.length;u++){var f=s[u];!e(a,f)&&!(o&&e(o,f))&&c(a,f,l(i,f))}},Ha}var Ga,Vu;function Bd(){if(Vu)return Ga;Vu=1;var e=xe(),r=Re(),t=/#|\.prototype\./,n=function(c,l){var u=i[a(c)];return u===s?!0:u===o?!1:r(l)?e(l):!!l},a=n.normalize=function(c){return String(c).replace(t,".").toLowerCase()},i=n.data={},o=n.NATIVE="N",s=n.POLYFILL="P";return Ga=n,Ga}var Ka,Ju;function ke(){if(Ju)return Ka;Ju=1;var e=Ie(),r=Nd().f,t=Br(),n=ir(),a=Bo(),i=Fd(),o=Bd();return Ka=function(s,c){var l=s.target,u=s.global,f=s.stat,h,d,v,m,w,E;if(u?d=e:f?d=e[l]||a(l,{}):d=e[l]&&e[l].prototype,d)for(v in c){if(w=c[v],s.dontCallGetSet?(E=r(d,v),m=E&&E.value):m=d[v],h=o(u?v:l+(f?".":"#")+v,s.forced),!h&&m!==void 0){if(typeof w==typeof m)continue;i(w,m)}(s.sham||m&&m.sham)&&t(w,"sham",!0),n(d,v,w,s)}},Ka}var Wa,Zu;function _v(){if(Zu)return Wa;Zu=1;var e=xe();return Wa=!e(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype}),Wa}var Va,Yu;function Yo(){if(Yu)return Va;Yu=1;var e=tr(),r=Re(),t=un(),n=Jo(),a=_v(),i=n("IE_PROTO"),o=Object,s=o.prototype;return Va=a?o.getPrototypeOf:function(c){var l=t(c);if(e(l,i))return l[i];var u=l.constructor;return r(u)&&l instanceof u?u.prototype:l instanceof o?s:null},Va}var Ja,Xu;function zd(){if(Xu)return Ja;Xu=1;var e=xe(),r=Re(),t=nr(),n=kt(),a=Yo(),i=ir(),o=Ne(),s=gr(),c=o("iterator"),l=!1,u,f,h;[].keys&&(h=[].keys(),"next"in h?(f=a(a(h)),f!==Object.prototype&&(u=f)):l=!0);var d=!t(u)||e(function(){var v={};return u[c].call(v)!==v});return d?u={}:s&&(u=n(u)),r(u[c])||i(u,c,function(){return this}),Ja={IteratorPrototype:u,BUGGY_SAFARI_ITERATORS:l},Ja}var Za,Qu;function ct(){if(Qu)return Za;Qu=1;var e=Pr().f,r=tr(),t=Ne(),n=t("toStringTag");return Za=function(a,i,o){a&&!o&&(a=a.prototype),a&&!r(a,n)&&e(a,n,{configurable:!0,value:i})},Za}var Ya,ec;function Hd(){if(ec)return Ya;ec=1;var e=zd().IteratorPrototype,r=kt(),t=Fr(),n=ct(),a=Ct(),i=function(){return this};return Ya=function(o,s,c,l){var u=s+" Iterator";return o.prototype=r(e,{next:t(+!l,c)}),n(o,u,!1,!0),a[u]=i,o},Ya}var Xa,rc;function Tv(){if(rc)return Xa;rc=1;var e=Se(),r=cr();return Xa=function(t,n,a){try{return e(r(Object.getOwnPropertyDescriptor(t,n)[a]))}catch{}},Xa}var Qa,tc;function Ov(){if(tc)return Qa;tc=1;var e=nr();return Qa=function(r){return e(r)||r===null},Qa}var ei,nc;function kv(){if(nc)return ei;nc=1;var e=Ov(),r=String,t=TypeError;return ei=function(n){if(e(n))return n;throw new t("Can't set "+r(n)+" as a prototype")},ei}var ri,ac;function Xo(){if(ac)return ri;ac=1;var e=Tv(),r=nr(),t=sn(),n=kv();return ri=Object.setPrototypeOf||("__proto__"in{}?function(){var a=!1,i={},o;try{o=e(Object.prototype,"__proto__","set"),o(i,[]),a=i instanceof Array}catch{}return function(c,l){return t(c),n(l),r(c)&&(a?o(c,l):c.__proto__=l),c}}():void 0),ri}var ti,ic;function Gd(){if(ic)return ti;ic=1;var e=ke(),r=Me(),t=gr(),n=Dd(),a=Re(),i=Hd(),o=Yo(),s=Xo(),c=ct(),l=Br(),u=ir(),f=Ne(),h=Ct(),d=zd(),v=n.PROPER,m=n.CONFIGURABLE,w=d.IteratorPrototype,E=d.BUGGY_SAFARI_ITERATORS,b=f("iterator"),g="keys",p="values",y="entries",k=function(){return this};return ti=function(A,j,z,H,ee,x,N){i(z,j,H);var q=function(Z){if(Z===ee&&S)return S;if(!E&&Z&&Z in re)return re[Z];switch(Z){case g:return function(){return new z(this,Z)};case p:return function(){return new z(this,Z)};case y:return function(){return new z(this,Z)}}return function(){return new z(this)}},O=j+" Iterator",X=!1,re=A.prototype,Q=re[b]||re["@@iterator"]||ee&&re[ee],S=!E&&Q||q(ee),_=j==="Array"&&re.entries||Q,D,B,K;if(_&&(D=o(_.call(new A)),D!==Object.prototype&&D.next&&(!t&&o(D)!==w&&(s?s(D,w):a(D[b])||u(D,b,k)),c(D,O,!0,!0),t&&(h[O]=k))),v&&ee===p&&Q&&Q.name!==p&&(!t&&m?l(re,"name",p):(X=!0,S=function(){return r(Q,this)})),ee)if(B={values:q(p),keys:x?S:q(g),entries:q(y)},N)for(K in B)(E||X||!(K in re))&&u(re,K,B[K]);else e({target:j,proto:!0,forced:E||X},B);return(!t||N)&&re[b]!==S&&u(re,b,S,{name:ee}),h[j]=S,B},ti}var ni,oc;function Qo(){return oc||(oc=1,ni=function(e,r){return{value:e,done:r}}),ni}var ai,sc;function es(){if(sc)return ai;sc=1;var e=Tt(),r=Iv(),t=Ct(),n=ut(),a=Pr().f,i=Gd(),o=Qo(),s=gr(),c=De(),l="Array Iterator",u=n.set,f=n.getterFor(l);ai=i(Array,"Array",function(d,v){u(this,{type:l,target:e(d),index:0,kind:v})},function(){var d=f(this),v=d.target,m=d.index++;if(!v||m>=v.length)return d.target=null,o(void 0,!0);switch(d.kind){case"keys":return o(m,!1);case"values":return o(v[m],!1)}return o([m,v[m]],!1)},"values");var h=t.Arguments=t.Array;if(r("keys"),r("values"),r("entries"),!s&&c&&h.name!=="values")try{a(h,"name",{value:"values"})}catch{}return ai}var uc={},cc;function Cv(){if(cc)return uc;cc=1;var e=ke(),r=Se(),t=jd(),n=RangeError,a=String.fromCharCode,i=String.fromCodePoint,o=r([].join),s=!!i&&i.length!==1;return e({target:"String",stat:!0,arity:1,forced:s},{fromCodePoint:function(l){for(var u=[],f=arguments.length,h=0,d;f>h;){if(d=+arguments[h++],t(d,1114111)!==d)throw new n(d+" is not a valid code point");u[h]=d<65536?a(d):a(((d-=65536)>>10)+55296,d%1024+56320)}return o(u,"")}}),uc}var ii,lc;function Kd(){if(lc)return ii;lc=1;var e=Ie(),r=De(),t=Object.getOwnPropertyDescriptor;return ii=function(n){if(!r)return e[n];var a=t(e,n);return a&&a.value},ii}var oi,fc;function dn(){if(fc)return oi;fc=1;var e=xe(),r=Ne(),t=De(),n=gr(),a=r("iterator");return oi=!e(function(){var i=new URL("b?a=1&b=2&c=3","https://a"),o=i.searchParams,s=new URLSearchParams("a=1&a=2&b=3"),c="";return i.pathname="c%20d",o.forEach(function(l,u){o.delete("b"),c+=u+l}),s.delete("a",2),s.delete("b",void 0),n&&(!i.toJSON||!s.has("a",1)||s.has("a",2)||!s.has("a",void 0)||s.has("b"))||!o.size&&(n||!t)||!o.sort||i.href!=="https://a/c%20d?a=1&c=3"||o.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!o[a]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("https://тест").host!=="xn--e1aybc"||new URL("https://a#б").hash!=="#%D0%B1"||c!=="a1c3"||new URL("https://x",void 0).host!=="x"}),oi}var si,dc;function hn(){if(dc)return si;dc=1;var e=$d(),r=Pr();return si=function(t,n,a){return a.get&&e(a.get,n,{getter:!0}),a.set&&e(a.set,n,{setter:!0}),r.f(t,n,a)},si}var ui,hc;function Av(){if(hc)return ui;hc=1;var e=ir();return ui=function(r,t,n){for(var a in t)e(r,a,t[a],n);return r},ui}var ci,vc;function rs(){if(vc)return ci;vc=1;var e=ln(),r=TypeError;return ci=function(t,n){if(e(n,t))return t;throw new r("Incorrect invocation")},ci}var li,pc;function jv(){if(pc)return li;pc=1;var e=an(),r=Se();return li=function(t){if(e(t)==="Function")return r(t)},li}var fi,mc;function lt(){if(mc)return fi;mc=1;var e=jv(),r=cr(),t=nn(),n=e(e.bind);return fi=function(a,i){return r(a),i===void 0?a:t?n(a,i):function(){return a.apply(i,arguments)}},fi}var di,gc;function ts(){if(gc)return di;gc=1;var e=Ne(),r=e("toStringTag"),t={};return t[r]="z",di=String(t)==="[object z]",di}var hi,yc;function At(){if(yc)return hi;yc=1;var e=ts(),r=Re(),t=an(),n=Ne(),a=n("toStringTag"),i=Object,o=t(function(){return arguments}())==="Arguments",s=function(c,l){try{return c[l]}catch{}};return hi=e?t:function(c){var l,u,f;return c===void 0?"Undefined":c===null?"Null":typeof(u=s(l=i(c),a))=="string"?u:o?t(l):(f=t(l))==="Object"&&r(l.callee)?"Arguments":f},hi}var vi,wc;function Er(){if(wc)return vi;wc=1;var e=At(),r=String;return vi=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return r(t)},vi}var pi,bc;function vn(){if(bc)return pi;bc=1;var e=At(),r=Ho(),t=on(),n=Ct(),a=Ne(),i=a("iterator");return pi=function(o){if(!t(o))return r(o,i)||r(o,"@@iterator")||n[e(o)]},pi}var mi,Sc;function ns(){if(Sc)return mi;Sc=1;var e=Me(),r=cr(),t=ur(),n=fn(),a=vn(),i=TypeError;return mi=function(o,s){var c=arguments.length<2?a(o):s;if(r(c))return t(e(c,o));throw new i(n(o)+" is not iterable")},mi}var gi,Ic;function zr(){if(Ic)return gi;Ic=1;var e=TypeError;return gi=function(r,t){if(r<t)throw new e("Not enough arguments");return r},gi}var yi,Pc;function pn(){if(Pc)return yi;Pc=1;var e=Se();return yi=e([].slice),yi}var wi,Ec;function Uv(){if(Ec)return wi;Ec=1;var e=pn(),r=Math.floor,t=function(n,a){var i=n.length;if(i<8)for(var o=1,s,c;o<i;){for(c=o,s=n[o];c&&a(n[c-1],s)>0;)n[c]=n[--c];c!==o++&&(n[c]=s)}else for(var l=r(i/2),u=t(e(n,0,l),a),f=t(e(n,l),a),h=u.length,d=f.length,v=0,m=0;v<h||m<d;)n[v+m]=v<h&&m<d?a(u[v],f[m])<=0?u[v++]:f[m++]:v<h?u[v++]:f[m++];return n};return wi=t,wi}var bi,Rc;function Wd(){if(Rc)return bi;Rc=1,es(),Cv();var e=ke(),r=Ie(),t=Kd(),n=ar(),a=Me(),i=Se(),o=De(),s=dn(),c=ir(),l=hn(),u=Av(),f=ct(),h=Hd(),d=ut(),v=rs(),m=Re(),w=tr(),E=lt(),b=At(),g=ur(),p=nr(),y=Er(),k=kt(),A=Fr(),j=ns(),z=vn(),H=Qo(),ee=zr(),x=Ne(),N=Uv(),q=x("iterator"),O="URLSearchParams",X=O+"Iterator",re=d.set,Q=d.getterFor(O),S=d.getterFor(X),_=t("fetch"),D=t("Request"),B=t("Headers"),K=D&&D.prototype,Z=B&&B.prototype,de=r.TypeError,ae=r.encodeURIComponent,ue=String.fromCharCode,se=n("String","fromCodePoint"),Pe=parseInt,je=i("".charAt),Fe=i([].join),Ce=i([].push),Ve=i("".replace),lr=i([].shift),fr=i([].splice),T=i("".split),F=i("".slice),J=i(/./.exec),pe=/\+/g,ve="�",me=/^[0-9a-f]+$/i,Be=function($,W){var V=F($,W,W+2);return J(me,V)?Pe(V,16):NaN},M=function($){for(var W=0,V=128;V>0&&($&V)!==0;V>>=1)W++;return W},ie=function($){var W=null;switch($.length){case 1:W=$[0];break;case 2:W=($[0]&31)<<6|$[1]&63;break;case 3:W=($[0]&15)<<12|($[1]&63)<<6|$[2]&63;break;case 4:W=($[0]&7)<<18|($[1]&63)<<12|($[2]&63)<<6|$[3]&63;break}return W>1114111?null:W},le=function($){$=Ve($,pe," ");for(var W=$.length,V="",Y=0;Y<W;){var ce=je($,Y);if(ce==="%"){if(je($,Y+1)==="%"||Y+3>W){V+="%",Y++;continue}var he=Be($,Y+1);if(he!==he){V+=ce,Y++;continue}Y+=2;var we=M(he);if(we===0)ce=ue(he);else{if(we===1||we>4){V+=ve,Y++;continue}for(var be=[he],_e=1;_e<we&&(Y++,!(Y+3>W||je($,Y)!=="%"));){var $e=Be($,Y+1);if($e!==$e){Y+=3;break}if($e>191||$e<128)break;Ce(be,$e),Y+=2,_e++}if(be.length!==we){V+=ve;continue}var dr=ie(be);dr===null?V+=ve:ce=se(dr)}}V+=ce,Y++}return V},fe=/[!'()~]|%20/g,ge={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},or=function($){return ge[$]},sr=function($){return Ve(ae($),fe,or)},Te=h(function(W,V){re(this,{type:X,target:Q(W).entries,index:0,kind:V})},O,function(){var W=S(this),V=W.target,Y=W.index++;if(!V||Y>=V.length)return W.target=null,H(void 0,!0);var ce=V[Y];switch(W.kind){case"keys":return H(ce.key,!1);case"values":return H(ce.value,!1)}return H([ce.key,ce.value],!1)},!0),He=function($){this.entries=[],this.url=null,$!==void 0&&(p($)?this.parseObject($):this.parseQuery(typeof $=="string"?je($,0)==="?"?F($,1):$:y($)))};He.prototype={type:O,bindURL:function($){this.url=$,this.update()},parseObject:function($){var W=this.entries,V=z($),Y,ce,he,we,be,_e,$e;if(V)for(Y=j($,V),ce=Y.next;!(he=a(ce,Y)).done;){if(we=j(g(he.value)),be=we.next,(_e=a(be,we)).done||($e=a(be,we)).done||!a(be,we).done)throw new de("Expected sequence with length 2");Ce(W,{key:y(_e.value),value:y($e.value)})}else for(var dr in $)w($,dr)&&Ce(W,{key:dr,value:y($[dr])})},parseQuery:function($){if($)for(var W=this.entries,V=T($,"&"),Y=0,ce,he;Y<V.length;)ce=V[Y++],ce.length&&(he=T(ce,"="),Ce(W,{key:le(lr(he)),value:le(Fe(he,"="))}))},serialize:function(){for(var $=this.entries,W=[],V=0,Y;V<$.length;)Y=$[V++],Ce(W,sr(Y.key)+"="+sr(Y.value));return Fe(W,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Je=function(){v(this,Xe);var W=arguments.length>0?arguments[0]:void 0,V=re(this,new He(W));o||(this.size=V.entries.length)},Xe=Je.prototype;if(u(Xe,{append:function(W,V){var Y=Q(this);ee(arguments.length,2),Ce(Y.entries,{key:y(W),value:y(V)}),o||this.length++,Y.updateURL()},delete:function($){for(var W=Q(this),V=ee(arguments.length,1),Y=W.entries,ce=y($),he=V<2?void 0:arguments[1],we=he===void 0?he:y(he),be=0;be<Y.length;){var _e=Y[be];if(_e.key===ce&&(we===void 0||_e.value===we)){if(fr(Y,be,1),we!==void 0)break}else be++}o||(this.size=Y.length),W.updateURL()},get:function(W){var V=Q(this).entries;ee(arguments.length,1);for(var Y=y(W),ce=0;ce<V.length;ce++)if(V[ce].key===Y)return V[ce].value;return null},getAll:function(W){var V=Q(this).entries;ee(arguments.length,1);for(var Y=y(W),ce=[],he=0;he<V.length;he++)V[he].key===Y&&Ce(ce,V[he].value);return ce},has:function(W){for(var V=Q(this).entries,Y=ee(arguments.length,1),ce=y(W),he=Y<2?void 0:arguments[1],we=he===void 0?he:y(he),be=0;be<V.length;){var _e=V[be++];if(_e.key===ce&&(we===void 0||_e.value===we))return!0}return!1},set:function(W,V){var Y=Q(this);ee(arguments.length,1);for(var ce=Y.entries,he=!1,we=y(W),be=y(V),_e=0,$e;_e<ce.length;_e++)$e=ce[_e],$e.key===we&&(he?fr(ce,_e--,1):(he=!0,$e.value=be));he||Ce(ce,{key:we,value:be}),o||(this.size=ce.length),Y.updateURL()},sort:function(){var W=Q(this);N(W.entries,function(V,Y){return V.key>Y.key?1:-1}),W.updateURL()},forEach:function(W){for(var V=Q(this).entries,Y=E(W,arguments.length>1?arguments[1]:void 0),ce=0,he;ce<V.length;)he=V[ce++],Y(he.value,he.key,this)},keys:function(){return new Te(this,"keys")},values:function(){return new Te(this,"values")},entries:function(){return new Te(this,"entries")}},{enumerable:!0}),c(Xe,q,Xe.entries,{name:"entries"}),c(Xe,"toString",function(){return Q(this).serialize()},{enumerable:!0}),o&&l(Xe,"size",{get:function(){return Q(this).entries.length},configurable:!0,enumerable:!0}),f(Je,O),e({global:!0,constructor:!0,forced:!s},{URLSearchParams:Je}),!s&&m(B)){var pt=i(Z.has),Rn=i(Z.set),Hr=function($){if(p($)){var W=$.body,V;if(b(W)===O)return V=$.headers?new B($.headers):new B,pt(V,"content-type")||Rn(V,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),k($,{body:A(0,y(W)),headers:A(0,V)})}return $};if(m(_)&&e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(W){return _(W,arguments.length>1?Hr(arguments[1]):{})}}),m(D)){var Gr=function(W){return v(this,K),new D(W,arguments.length>1?Hr(arguments[1]):{})};K.constructor=Gr,Gr.prototype=K,e({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Gr})}}return bi={URLSearchParams:Je,getState:Q},bi}var _c;function Lv(){return _c||(_c=1,Wd()),js}var Tc={},Oc;function qv(){if(Oc)return Tc;Oc=1;var e=ir(),r=Se(),t=Er(),n=zr(),a=URLSearchParams,i=a.prototype,o=r(i.append),s=r(i.delete),c=r(i.forEach),l=r([].push),u=new a("a=1&a=2&b=3");return u.delete("a",1),u.delete("b",void 0),u+""!="a=2"&&e(i,"delete",function(f){var h=arguments.length,d=h<2?void 0:arguments[1];if(h&&d===void 0)return s(this,f);var v=[];c(this,function(k,A){l(v,{key:A,value:k})}),n(h,1);for(var m=t(f),w=t(d),E=0,b=0,g=!1,p=v.length,y;E<p;)y=v[E++],g||y.key===m?(g=!0,s(this,y.key)):b++;for(;b<p;)y=v[b++],y.key===m&&y.value===w||o(this,y.key,y.value)},{enumerable:!0,unsafe:!0}),Tc}var kc={},Cc;function xv(){if(Cc)return kc;Cc=1;var e=ir(),r=Se(),t=Er(),n=zr(),a=URLSearchParams,i=a.prototype,o=r(i.getAll),s=r(i.has),c=new a("a=1");return(c.has("a",2)||!c.has("a",void 0))&&e(i,"has",function(u){var f=arguments.length,h=f<2?void 0:arguments[1];if(f&&h===void 0)return s(this,u);var d=o(this,u);n(f,1);for(var v=t(h),m=0;m<d.length;)if(d[m++]===v)return!0;return!1},{enumerable:!0,unsafe:!0}),kc}var Ac={},jc;function Nv(){if(jc)return Ac;jc=1;var e=De(),r=Se(),t=hn(),n=URLSearchParams.prototype,a=r(n.forEach);return e&&!("size"in n)&&t(n,"size",{get:function(){var o=0;return a(this,function(){o++}),o},configurable:!0,enumerable:!0}),Ac}var Si,Uc;function as(){if(Uc)return Si;Uc=1;var e=Ie();return Si=e,Si}var Ii,Lc;function Vd(){if(Lc)return Ii;Lc=1,Lv(),qv(),xv(),Nv();var e=as();return Ii=e.URLSearchParams,Ii}var qc={},xc={},Nc={},Pi,Dc;function Jd(){if(Dc)return Pi;Dc=1;var e=Se(),r=Go(),t=Er(),n=sn(),a=e("".charAt),i=e("".charCodeAt),o=e("".slice),s=function(c){return function(l,u){var f=t(n(l)),h=r(u),d=f.length,v,m;return h<0||h>=d?c?"":void 0:(v=i(f,h),v<55296||v>56319||h+1===d||(m=i(f,h+1))<56320||m>57343?c?a(f,h):v:c?o(f,h,h+2):(v-55296<<10)+(m-56320)+65536)}};return Pi={codeAt:s(!1),charAt:s(!0)},Pi}var $c;function Zd(){if($c)return Nc;$c=1;var e=Jd().charAt,r=Er(),t=ut(),n=Gd(),a=Qo(),i="String Iterator",o=t.set,s=t.getterFor(i);return n(String,"String",function(c){o(this,{type:i,string:r(c),index:0})},function(){var l=s(this),u=l.string,f=l.index,h;return f>=u.length?a(void 0,!0):(h=e(u,f),l.index+=h.length,a(h,!1))}),Nc}var Ei,Mc;function Dv(){if(Mc)return Ei;Mc=1;var e=De(),r=Se(),t=Me(),n=xe(),a=Ld(),i=Md(),o=xd(),s=un(),c=Id(),l=Object.assign,u=Object.defineProperty,f=r([].concat);return Ei=!l||n(function(){if(e&&l({b:1},l(u({},"a",{enumerable:!0,get:function(){u(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var h={},d={},v=Symbol("assign detection"),m="abcdefghijklmnopqrst";return h[v]=7,m.split("").forEach(function(w){d[w]=w}),l({},h)[v]!==7||a(l({},d)).join("")!==m})?function(d,v){for(var m=s(d),w=arguments.length,E=1,b=i.f,g=o.f;w>E;)for(var p=c(arguments[E++]),y=b?f(a(p),b(p)):a(p),k=y.length,A=0,j;k>A;)j=y[A++],(!e||t(g,p,j))&&(m[j]=p[j]);return m}:l,Ei}var Ri,Fc;function Yd(){if(Fc)return Ri;Fc=1;var e=Me(),r=ur(),t=Ho();return Ri=function(n,a,i){var o,s;r(n);try{if(o=t(n,"return"),!o){if(a==="throw")throw i;return i}o=e(o,n)}catch(c){s=!0,o=c}if(a==="throw")throw i;if(s)throw o;return r(o),i},Ri}var _i,Bc;function $v(){if(Bc)return _i;Bc=1;var e=ur(),r=Yd();return _i=function(t,n,a,i){try{return i?n(e(a)[0],a[1]):n(a)}catch(o){r(t,"throw",o)}},_i}var Ti,zc;function Xd(){if(zc)return Ti;zc=1;var e=Ne(),r=Ct(),t=e("iterator"),n=Array.prototype;return Ti=function(a){return a!==void 0&&(r.Array===a||n[t]===a)},Ti}var Oi,Hc;function Qd(){if(Hc)return Oi;Hc=1;var e=Se(),r=xe(),t=Re(),n=At(),a=ar(),i=Zo(),o=function(){},s=a("Reflect","construct"),c=/^\s*(?:class|function)\b/,l=e(c.exec),u=!c.test(o),f=function(v){if(!t(v))return!1;try{return s(o,[],v),!0}catch{return!1}},h=function(v){if(!t(v))return!1;switch(n(v)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return u||!!l(c,i(v))}catch{return!0}};return h.sham=!0,Oi=!s||r(function(){var d;return f(f.call)||!f(Object)||!f(function(){d=!0})||d})?h:f,Oi}var ki,Gc;function Mv(){if(Gc)return ki;Gc=1;var e=De(),r=Pr(),t=Fr();return ki=function(n,a,i){e?r.f(n,a,t(0,i)):n[a]=i},ki}var Ci,Kc;function Fv(){if(Kc)return Ci;Kc=1;var e=lt(),r=Me(),t=un(),n=$v(),a=Xd(),i=Qd(),o=Ko(),s=Mv(),c=ns(),l=vn(),u=Array;return Ci=function(h){var d=t(h),v=i(this),m=arguments.length,w=m>1?arguments[1]:void 0,E=w!==void 0;E&&(w=e(w,m>2?arguments[2]:void 0));var b=l(d),g=0,p,y,k,A,j,z;if(b&&!(this===u&&a(b)))for(y=v?new this:[],A=c(d,b),j=A.next;!(k=r(j,A)).done;g++)z=E?n(A,w,[k.value,g],!0):k.value,s(y,g,z);else for(p=o(d),y=v?new this(p):u(p);p>g;g++)z=E?w(d[g],g):d[g],s(y,g,z);return y.length=g,y},Ci}var Ai,Wc;function Bv(){if(Wc)return Ai;Wc=1;var e=Se(),r=2147483647,t=36,n=1,a=26,i=38,o=700,s=72,c=128,l="-",u=/[^\0-\u007E]/,f=/[.\u3002\uFF0E\uFF61]/g,h="Overflow: input needs wider integers to process",d=t-n,v=RangeError,m=e(f.exec),w=Math.floor,E=String.fromCharCode,b=e("".charCodeAt),g=e([].join),p=e([].push),y=e("".replace),k=e("".split),A=e("".toLowerCase),j=function(x){for(var N=[],q=0,O=x.length;q<O;){var X=b(x,q++);if(X>=55296&&X<=56319&&q<O){var re=b(x,q++);(re&64512)===56320?p(N,((X&1023)<<10)+(re&1023)+65536):(p(N,X),q--)}else p(N,X)}return N},z=function(x){return x+22+75*(x<26)},H=function(x,N,q){var O=0;for(x=q?w(x/o):x>>1,x+=w(x/N);x>d*a>>1;)x=w(x/d),O+=t;return w(O+(d+1)*x/(x+i))},ee=function(x){var N=[];x=j(x);var q=x.length,O=c,X=0,re=s,Q,S;for(Q=0;Q<x.length;Q++)S=x[Q],S<128&&p(N,E(S));var _=N.length,D=_;for(_&&p(N,l);D<q;){var B=r;for(Q=0;Q<x.length;Q++)S=x[Q],S>=O&&S<B&&(B=S);var K=D+1;if(B-O>w((r-X)/K))throw new v(h);for(X+=(B-O)*K,O=B,Q=0;Q<x.length;Q++){if(S=x[Q],S<O&&++X>r)throw new v(h);if(S===O){for(var Z=X,de=t;;){var ae=de<=re?n:de>=re+a?a:de-re;if(Z<ae)break;var ue=Z-ae,se=t-ae;p(N,E(z(ae+ue%se))),Z=w(ue/se),de+=t}p(N,E(z(Z))),re=H(X,K,D===_),X=0,D++}}X++,O++}return g(N,"")};return Ai=function(x){var N=[],q=k(y(A(x),f,"."),"."),O,X;for(O=0;O<q.length;O++)X=q[O],p(N,m(u,X)?"xn--"+ee(X):X);return g(N,".")},Ai}var Vc;function zv(){if(Vc)return xc;Vc=1,Zd();var e=ke(),r=De(),t=dn(),n=Ie(),a=lt(),i=Se(),o=ir(),s=hn(),c=rs(),l=tr(),u=Dv(),f=Fv(),h=pn(),d=Jd().codeAt,v=Bv(),m=Er(),w=ct(),E=zr(),b=Wd(),g=ut(),p=g.set,y=g.getterFor("URL"),k=b.URLSearchParams,A=b.getState,j=n.URL,z=n.TypeError,H=n.parseInt,ee=Math.floor,x=Math.pow,N=i("".charAt),q=i(/./.exec),O=i([].join),X=i(1 .toString),re=i([].pop),Q=i([].push),S=i("".replace),_=i([].shift),D=i("".split),B=i("".slice),K=i("".toLowerCase),Z=i([].unshift),de="Invalid authority",ae="Invalid scheme",ue="Invalid host",se="Invalid port",Pe=/[a-z]/i,je=/[\d+-.a-z]/i,Fe=/\d/,Ce=/^0x/i,Ve=/^[0-7]+$/,lr=/^\d+$/,fr=/^[\da-f]+$/i,T=/[\0\t\n\r #%/:<>?@[\\\]^|]/,F=/[\0\t\n\r #/:<>?@[\\\]^|]/,J=/^[\u0000-\u0020]+/,pe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ve=/[\t\n\r]/g,me,Be=function(P){var L=D(P,"."),R,I,C,oe,G,Ee,Oe;if(L.length&&L[L.length-1]===""&&L.length--,R=L.length,R>4)return P;for(I=[],C=0;C<R;C++){if(oe=L[C],oe==="")return P;if(G=10,oe.length>1&&N(oe,0)==="0"&&(G=q(Ce,oe)?16:8,oe=B(oe,G===8?1:2)),oe==="")Ee=0;else{if(!q(G===10?lr:G===8?Ve:fr,oe))return P;Ee=H(oe,G)}Q(I,Ee)}for(C=0;C<R;C++)if(Ee=I[C],C===R-1){if(Ee>=x(256,5-R))return null}else if(Ee>255)return null;for(Oe=re(I),C=0;C<I.length;C++)Oe+=I[C]*x(256,3-C);return Oe},M=function(P){var L=[0,0,0,0,0,0,0,0],R=0,I=null,C=0,oe,G,Ee,Oe,Ue,er,U,Ae=function(){return N(P,C)};if(Ae()===":"){if(N(P,1)!==":")return;C+=2,R++,I=R}for(;Ae();){if(R===8)return;if(Ae()===":"){if(I!==null)return;C++,R++,I=R;continue}for(oe=G=0;G<4&&q(fr,Ae());)oe=oe*16+H(Ae(),16),C++,G++;if(Ae()==="."){if(G===0||(C-=G,R>6))return;for(Ee=0;Ae();){if(Oe=null,Ee>0)if(Ae()==="."&&Ee<4)C++;else return;if(!q(Fe,Ae()))return;for(;q(Fe,Ae());){if(Ue=H(Ae(),10),Oe===null)Oe=Ue;else{if(Oe===0)return;Oe=Oe*10+Ue}if(Oe>255)return;C++}L[R]=L[R]*256+Oe,Ee++,(Ee===2||Ee===4)&&R++}if(Ee!==4)return;break}else if(Ae()===":"){if(C++,!Ae())return}else if(Ae())return;L[R++]=oe}if(I!==null)for(er=R-I,R=7;R!==0&&er>0;)U=L[R],L[R--]=L[I+er-1],L[I+--er]=U;else if(R!==8)return;return L},ie=function(P){for(var L=null,R=1,I=null,C=0,oe=0;oe<8;oe++)P[oe]!==0?(C>R&&(L=I,R=C),I=null,C=0):(I===null&&(I=oe),++C);return C>R?I:L},le=function(P){var L,R,I,C;if(typeof P=="number"){for(L=[],R=0;R<4;R++)Z(L,P%256),P=ee(P/256);return O(L,".")}if(typeof P=="object"){for(L="",I=ie(P),R=0;R<8;R++)C&&P[R]===0||(C&&(C=!1),I===R?(L+=R?":":"::",C=!0):(L+=X(P[R],16),R<7&&(L+=":")));return"["+L+"]"}return P},fe={},ge=u({},fe,{" ":1,'"':1,"<":1,">":1,"`":1}),or=u({},ge,{"#":1,"?":1,"{":1,"}":1}),sr=u({},or,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Te=function(P,L){var R=d(P,0);return R>32&&R<127&&!l(L,P)?P:encodeURIComponent(P)},He={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Je=function(P,L){var R;return P.length===2&&q(Pe,N(P,0))&&((R=N(P,1))===":"||!L&&R==="|")},Xe=function(P){var L;return P.length>1&&Je(B(P,0,2))&&(P.length===2||(L=N(P,2))==="/"||L==="\\"||L==="?"||L==="#")},pt=function(P){return P==="."||K(P)==="%2e"},Rn=function(P){return P=K(P),P===".."||P==="%2e."||P===".%2e"||P==="%2e%2e"},Hr={},Gr={},$={},W={},V={},Y={},ce={},he={},we={},be={},_e={},$e={},dr={},_n={},Rs={},Tn={},Kr={},hr={},_s={},Cr={},yr={},On=function(P,L,R){var I=m(P),C,oe,G;if(L){if(oe=this.parse(I),oe)throw new z(oe);this.searchParams=null}else{if(R!==void 0&&(C=new On(R,!0)),oe=this.parse(I,null,C),oe)throw new z(oe);G=A(new k),G.bindURL(this),this.searchParams=G}};On.prototype={type:"URL",parse:function(P,L,R){var I=this,C=L||Hr,oe=0,G="",Ee=!1,Oe=!1,Ue=!1,er,U,Ae,wr;for(P=m(P),L||(I.scheme="",I.username="",I.password="",I.host=null,I.port=null,I.path=[],I.query=null,I.fragment=null,I.cannotBeABaseURL=!1,P=S(P,J,""),P=S(P,pe,"$1")),P=S(P,ve,""),er=f(P);oe<=er.length;){switch(U=er[oe],C){case Hr:if(U&&q(Pe,U))G+=K(U),C=Gr;else{if(L)return ae;C=$;continue}break;case Gr:if(U&&(q(je,U)||U==="+"||U==="-"||U==="."))G+=K(U);else if(U===":"){if(L&&(I.isSpecial()!==l(He,G)||G==="file"&&(I.includesCredentials()||I.port!==null)||I.scheme==="file"&&!I.host))return;if(I.scheme=G,L){I.isSpecial()&&He[I.scheme]===I.port&&(I.port=null);return}G="",I.scheme==="file"?C=_n:I.isSpecial()&&R&&R.scheme===I.scheme?C=W:I.isSpecial()?C=he:er[oe+1]==="/"?(C=V,oe++):(I.cannotBeABaseURL=!0,Q(I.path,""),C=_s)}else{if(L)return ae;G="",C=$,oe=0;continue}break;case $:if(!R||R.cannotBeABaseURL&&U!=="#")return ae;if(R.cannotBeABaseURL&&U==="#"){I.scheme=R.scheme,I.path=h(R.path),I.query=R.query,I.fragment="",I.cannotBeABaseURL=!0,C=yr;break}C=R.scheme==="file"?_n:Y;continue;case W:if(U==="/"&&er[oe+1]==="/")C=we,oe++;else{C=Y;continue}break;case V:if(U==="/"){C=be;break}else{C=hr;continue}case Y:if(I.scheme=R.scheme,U===me)I.username=R.username,I.password=R.password,I.host=R.host,I.port=R.port,I.path=h(R.path),I.query=R.query;else if(U==="/"||U==="\\"&&I.isSpecial())C=ce;else if(U==="?")I.username=R.username,I.password=R.password,I.host=R.host,I.port=R.port,I.path=h(R.path),I.query="",C=Cr;else if(U==="#")I.username=R.username,I.password=R.password,I.host=R.host,I.port=R.port,I.path=h(R.path),I.query=R.query,I.fragment="",C=yr;else{I.username=R.username,I.password=R.password,I.host=R.host,I.port=R.port,I.path=h(R.path),I.path.length--,C=hr;continue}break;case ce:if(I.isSpecial()&&(U==="/"||U==="\\"))C=we;else if(U==="/")C=be;else{I.username=R.username,I.password=R.password,I.host=R.host,I.port=R.port,C=hr;continue}break;case he:if(C=we,U!=="/"||N(G,oe+1)!=="/")continue;oe++;break;case we:if(U!=="/"&&U!=="\\"){C=be;continue}break;case be:if(U==="@"){Ee&&(G="%40"+G),Ee=!0,Ae=f(G);for(var kn=0;kn<Ae.length;kn++){var ks=Ae[kn];if(ks===":"&&!Ue){Ue=!0;continue}var Cs=Te(ks,sr);Ue?I.password+=Cs:I.username+=Cs}G=""}else if(U===me||U==="/"||U==="?"||U==="#"||U==="\\"&&I.isSpecial()){if(Ee&&G==="")return de;oe-=f(G).length+1,G="",C=_e}else G+=U;break;case _e:case $e:if(L&&I.scheme==="file"){C=Tn;continue}else if(U===":"&&!Oe){if(G==="")return ue;if(wr=I.parseHost(G),wr)return wr;if(G="",C=dr,L===$e)return}else if(U===me||U==="/"||U==="?"||U==="#"||U==="\\"&&I.isSpecial()){if(I.isSpecial()&&G==="")return ue;if(L&&G===""&&(I.includesCredentials()||I.port!==null))return;if(wr=I.parseHost(G),wr)return wr;if(G="",C=Kr,L)return;continue}else U==="["?Oe=!0:U==="]"&&(Oe=!1),G+=U;break;case dr:if(q(Fe,U))G+=U;else if(U===me||U==="/"||U==="?"||U==="#"||U==="\\"&&I.isSpecial()||L){if(G!==""){var Cn=H(G,10);if(Cn>65535)return se;I.port=I.isSpecial()&&Cn===He[I.scheme]?null:Cn,G=""}if(L)return;C=Kr;continue}else return se;break;case _n:if(I.scheme="file",U==="/"||U==="\\")C=Rs;else if(R&&R.scheme==="file")switch(U){case me:I.host=R.host,I.path=h(R.path),I.query=R.query;break;case"?":I.host=R.host,I.path=h(R.path),I.query="",C=Cr;break;case"#":I.host=R.host,I.path=h(R.path),I.query=R.query,I.fragment="",C=yr;break;default:Xe(O(h(er,oe),""))||(I.host=R.host,I.path=h(R.path),I.shortenPath()),C=hr;continue}else{C=hr;continue}break;case Rs:if(U==="/"||U==="\\"){C=Tn;break}R&&R.scheme==="file"&&!Xe(O(h(er,oe),""))&&(Je(R.path[0],!0)?Q(I.path,R.path[0]):I.host=R.host),C=hr;continue;case Tn:if(U===me||U==="/"||U==="\\"||U==="?"||U==="#"){if(!L&&Je(G))C=hr;else if(G===""){if(I.host="",L)return;C=Kr}else{if(wr=I.parseHost(G),wr)return wr;if(I.host==="localhost"&&(I.host=""),L)return;G="",C=Kr}continue}else G+=U;break;case Kr:if(I.isSpecial()){if(C=hr,U!=="/"&&U!=="\\")continue}else if(!L&&U==="?")I.query="",C=Cr;else if(!L&&U==="#")I.fragment="",C=yr;else if(U!==me&&(C=hr,U!=="/"))continue;break;case hr:if(U===me||U==="/"||U==="\\"&&I.isSpecial()||!L&&(U==="?"||U==="#")){if(Rn(G)?(I.shortenPath(),U!=="/"&&!(U==="\\"&&I.isSpecial())&&Q(I.path,"")):pt(G)?U!=="/"&&!(U==="\\"&&I.isSpecial())&&Q(I.path,""):(I.scheme==="file"&&!I.path.length&&Je(G)&&(I.host&&(I.host=""),G=N(G,0)+":"),Q(I.path,G)),G="",I.scheme==="file"&&(U===me||U==="?"||U==="#"))for(;I.path.length>1&&I.path[0]==="";)_(I.path);U==="?"?(I.query="",C=Cr):U==="#"&&(I.fragment="",C=yr)}else G+=Te(U,or);break;case _s:U==="?"?(I.query="",C=Cr):U==="#"?(I.fragment="",C=yr):U!==me&&(I.path[0]+=Te(U,fe));break;case Cr:!L&&U==="#"?(I.fragment="",C=yr):U!==me&&(U==="'"&&I.isSpecial()?I.query+="%27":U==="#"?I.query+="%23":I.query+=Te(U,fe));break;case yr:U!==me&&(I.fragment+=Te(U,ge));break}oe++}},parseHost:function(P){var L,R,I;if(N(P,0)==="["){if(N(P,P.length-1)!=="]"||(L=M(B(P,1,-1)),!L))return ue;this.host=L}else if(this.isSpecial()){if(P=v(P),q(T,P)||(L=Be(P),L===null))return ue;this.host=L}else{if(q(F,P))return ue;for(L="",R=f(P),I=0;I<R.length;I++)L+=Te(R[I],fe);this.host=L}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||this.scheme==="file"},includesCredentials:function(){return this.username!==""||this.password!==""},isSpecial:function(){return l(He,this.scheme)},shortenPath:function(){var P=this.path,L=P.length;L&&(this.scheme!=="file"||L!==1||!Je(P[0],!0))&&P.length--},serialize:function(){var P=this,L=P.scheme,R=P.username,I=P.password,C=P.host,oe=P.port,G=P.path,Ee=P.query,Oe=P.fragment,Ue=L+":";return C!==null?(Ue+="//",P.includesCredentials()&&(Ue+=R+(I?":"+I:"")+"@"),Ue+=le(C),oe!==null&&(Ue+=":"+oe)):L==="file"&&(Ue+="//"),Ue+=P.cannotBeABaseURL?G[0]:G.length?"/"+O(G,"/"):"",Ee!==null&&(Ue+="?"+Ee),Oe!==null&&(Ue+="#"+Oe),Ue},setHref:function(P){var L=this.parse(P);if(L)throw new z(L);this.searchParams.update()},getOrigin:function(){var P=this.scheme,L=this.port;if(P==="blob")try{return new Wr(P.path[0]).origin}catch{return"null"}return P==="file"||!this.isSpecial()?"null":P+"://"+le(this.host)+(L!==null?":"+L:"")},getProtocol:function(){return this.scheme+":"},setProtocol:function(P){this.parse(m(P)+":",Hr)},getUsername:function(){return this.username},setUsername:function(P){var L=f(m(P));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var R=0;R<L.length;R++)this.username+=Te(L[R],sr)}},getPassword:function(){return this.password},setPassword:function(P){var L=f(m(P));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var R=0;R<L.length;R++)this.password+=Te(L[R],sr)}},getHost:function(){var P=this.host,L=this.port;return P===null?"":L===null?le(P):le(P)+":"+L},setHost:function(P){this.cannotBeABaseURL||this.parse(P,_e)},getHostname:function(){var P=this.host;return P===null?"":le(P)},setHostname:function(P){this.cannotBeABaseURL||this.parse(P,$e)},getPort:function(){var P=this.port;return P===null?"":m(P)},setPort:function(P){this.cannotHaveUsernamePasswordPort()||(P=m(P),P===""?this.port=null:this.parse(P,dr))},getPathname:function(){var P=this.path;return this.cannotBeABaseURL?P[0]:P.length?"/"+O(P,"/"):""},setPathname:function(P){this.cannotBeABaseURL||(this.path=[],this.parse(P,Kr))},getSearch:function(){var P=this.query;return P?"?"+P:""},setSearch:function(P){P=m(P),P===""?this.query=null:(N(P,0)==="?"&&(P=B(P,1)),this.query="",this.parse(P,Cr)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var P=this.fragment;return P?"#"+P:""},setHash:function(P){if(P=m(P),P===""){this.fragment=null;return}N(P,0)==="#"&&(P=B(P,1)),this.fragment="",this.parse(P,yr)},update:function(){this.query=this.searchParams.serialize()||null}};var Wr=function(L){var R=c(this,ze),I=E(arguments.length,1)>1?arguments[1]:void 0,C=p(R,new On(L,!1,I));r||(R.href=C.serialize(),R.origin=C.getOrigin(),R.protocol=C.getProtocol(),R.username=C.getUsername(),R.password=C.getPassword(),R.host=C.getHost(),R.hostname=C.getHostname(),R.port=C.getPort(),R.pathname=C.getPathname(),R.search=C.getSearch(),R.searchParams=C.getSearchParams(),R.hash=C.getHash())},ze=Wr.prototype,Qe=function(P,L){return{get:function(){return y(this)[P]()},set:L&&function(R){return y(this)[L](R)},configurable:!0,enumerable:!0}};if(r&&(s(ze,"href",Qe("serialize","setHref")),s(ze,"origin",Qe("getOrigin")),s(ze,"protocol",Qe("getProtocol","setProtocol")),s(ze,"username",Qe("getUsername","setUsername")),s(ze,"password",Qe("getPassword","setPassword")),s(ze,"host",Qe("getHost","setHost")),s(ze,"hostname",Qe("getHostname","setHostname")),s(ze,"port",Qe("getPort","setPort")),s(ze,"pathname",Qe("getPathname","setPathname")),s(ze,"search",Qe("getSearch","setSearch")),s(ze,"searchParams",Qe("getSearchParams")),s(ze,"hash",Qe("getHash","setHash"))),o(ze,"toJSON",function(){return y(this).serialize()},{enumerable:!0}),o(ze,"toString",function(){return y(this).serialize()},{enumerable:!0}),j){var Ts=j.createObjectURL,Os=j.revokeObjectURL;Ts&&o(Wr,"createObjectURL",a(Ts,j)),Os&&o(Wr,"revokeObjectURL",a(Os,j))}return w(Wr,"URL"),e({global:!0,constructor:!0,forced:!t,sham:!r},{URL:Wr}),xc}var Jc;function Hv(){return Jc||(Jc=1,zv()),qc}var Zc={},Yc;function Gv(){if(Yc)return Zc;Yc=1;var e=ke(),r=ar(),t=xe(),n=zr(),a=Er(),i=dn(),o=r("URL"),s=i&&t(function(){o.canParse()}),c=t(function(){return o.canParse.length!==1});return e({target:"URL",stat:!0,forced:!s||c},{canParse:function(u){var f=n(arguments.length,1),h=a(u),d=f<2||arguments[1]===void 0?void 0:a(arguments[1]);try{return!!new o(h,d)}catch{return!1}}}),Zc}var Xc={},Qc;function Kv(){if(Qc)return Xc;Qc=1;var e=ke(),r=ar(),t=zr(),n=Er(),a=dn(),i=r("URL");return e({target:"URL",stat:!0,forced:!a},{parse:function(s){var c=t(arguments.length,1),l=n(s),u=c<2||arguments[1]===void 0?void 0:n(arguments[1]);try{return new i(l,u)}catch{return null}}}),Xc}var el={},rl;function Wv(){if(rl)return el;rl=1;var e=ke(),r=Me();return e({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return r(URL.prototype.toString,this)}}),el}var ji,tl;function Vv(){if(tl)return ji;tl=1,Vd(),Hv(),Gv(),Kv(),Wv();var e=as();return ji=e.URL,ji}var Ui,nl;function Jv(){if(nl)return Ui;nl=1;var e=Vv();return Ui=e,Ui}var Li,al;function Zv(){if(al)return Li;al=1;var e=Jv();return Li=e,Li}Zv();var il={},qi,ol;function Yv(){return ol||(ol=1,qi={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}),qi}var xi,sl;function Xv(){if(sl)return xi;sl=1;var e=cn(),r=e("span").classList,t=r&&r.constructor&&r.constructor.prototype;return xi=t===Object.prototype?void 0:t,xi}var ul;function eh(){if(ul)return il;ul=1;var e=Ie(),r=Yv(),t=Xv(),n=es(),a=Br(),i=ct(),o=Ne(),s=o("iterator"),c=n.values,l=function(f,h){if(f){if(f[s]!==c)try{a(f,s,c)}catch{f[s]=c}if(i(f,h,!0),r[h]){for(var d in n)if(f[d]!==n[d])try{a(f,d,n[d])}catch{f[d]=n[d]}}}};for(var u in r)l(e[u]&&e[u].prototype,u);return l(t,"DOMTokenList"),il}var Ni,cl;function Qv(){if(cl)return Ni;cl=1;var e=Vd();return eh(),Ni=e,Ni}var Di,ll;function ep(){if(ll)return Di;ll=1;var e=Qv();return Di=e,Di}ep();var fl={},dl={},$i,hl;function rp(){if(hl)return $i;hl=1;var e=nr(),r=Br();return $i=function(t,n){e(n)&&"cause"in n&&r(t,"cause",n.cause)},$i}var Mi,vl;function tp(){if(vl)return Mi;vl=1;var e=Se(),r=Error,t=e("".replace),n=function(o){return String(new r(o).stack)}("zxcasd"),a=/\n\s*at [^:]*:[^\n]*/,i=a.test(n);return Mi=function(o,s){if(i&&typeof o=="string"&&!r.prepareStackTrace)for(;s--;)o=t(o,a,"");return o},Mi}var Fi,pl;function np(){if(pl)return Fi;pl=1;var e=xe(),r=Fr();return Fi=!e(function(){var t=new Error("a");return"stack"in t?(Object.defineProperty(t,"stack",r(1,7)),t.stack!==7):!0}),Fi}var Bi,ml;function ap(){if(ml)return Bi;ml=1;var e=Br(),r=tp(),t=np(),n=Error.captureStackTrace;return Bi=function(a,i,o,s){t&&(n?n(a,i):e(a,"stack",r(o,s)))},Bi}var zi,gl;function jt(){if(gl)return zi;gl=1;var e=lt(),r=Me(),t=ur(),n=fn(),a=Xd(),i=Ko(),o=ln(),s=ns(),c=vn(),l=Yd(),u=TypeError,f=function(d,v){this.stopped=d,this.result=v},h=f.prototype;return zi=function(d,v,m){var w=m&&m.that,E=!!(m&&m.AS_ENTRIES),b=!!(m&&m.IS_RECORD),g=!!(m&&m.IS_ITERATOR),p=!!(m&&m.INTERRUPTED),y=e(v,w),k,A,j,z,H,ee,x,N=function(O){return k&&l(k,"normal",O),new f(!0,O)},q=function(O){return E?(t(O),p?y(O[0],O[1],N):y(O[0],O[1])):p?y(O,N):y(O)};if(b)k=d.iterator;else if(g)k=d;else{if(A=c(d),!A)throw new u(n(d)+" is not iterable");if(a(A)){for(j=0,z=i(d);z>j;j++)if(H=q(d[j]),H&&o(h,H))return H;return new f(!1)}k=s(d,A)}for(ee=b?d.next:k.next;!(x=r(ee,k)).done;){try{H=q(x.value)}catch(O){l(k,"throw",O)}if(typeof H=="object"&&H&&o(h,H))return H}return new f(!1)},zi}var Hi,yl;function ip(){if(yl)return Hi;yl=1;var e=Er();return Hi=function(r,t){return r===void 0?arguments.length<2?"":t:e(r)},Hi}var wl;function op(){if(wl)return dl;wl=1;var e=ke(),r=ln(),t=Yo(),n=Xo(),a=Fd(),i=kt(),o=Br(),s=Fr(),c=rp(),l=ap(),u=jt(),f=ip(),h=Ne(),d=h("toStringTag"),v=Error,m=[].push,w=function(g,p){var y=r(E,this),k;n?k=n(new v,y?t(this):E):(k=y?this:i(E),o(k,d,"Error")),p!==void 0&&o(k,"message",f(p)),l(k,w,k.stack,1),arguments.length>2&&c(k,arguments[2]);var A=[];return u(g,m,{that:A}),o(k,"errors",A),k};n?n(w,v):a(w,v,{name:!0});var E=w.prototype=i(v.prototype,{constructor:s(1,w),message:s(1,""),name:s(1,"AggregateError")});return e({global:!0,constructor:!0,arity:2},{AggregateError:w}),dl}var bl;function sp(){return bl||(bl=1,op()),fl}var Sl={},Gi,Il;function up(){if(Il)return Gi;Il=1;var e=ts(),r=At();return Gi=e?{}.toString:function(){return"[object "+r(this)+"]"},Gi}var Pl;function cp(){if(Pl)return Sl;Pl=1;var e=ts(),r=ir(),t=up();return e||r(Object.prototype,"toString",t,{unsafe:!0}),Sl}var El={},Rl={},Ki,_l;function rh(){if(_l)return Ki;_l=1;var e=Ie(),r=Ot(),t=an(),n=function(a){return r.slice(0,a.length)===a};return Ki=function(){return n("Bun/")?"BUN":n("Cloudflare-Workers")?"CLOUDFLARE":n("Deno/")?"DENO":n("Node.js/")?"NODE":e.Bun&&typeof Bun.version=="string"?"BUN":e.Deno&&typeof Deno.version=="object"?"DENO":t(e.process)==="process"?"NODE":e.window&&e.document?"BROWSER":"REST"}(),Ki}var Wi,Tl;function is(){if(Tl)return Wi;Tl=1;var e=rh();return Wi=e==="NODE",Wi}var Vi,Ol;function lp(){if(Ol)return Vi;Ol=1;var e=ar(),r=hn(),t=Ne(),n=De(),a=t("species");return Vi=function(i){var o=e(i);n&&o&&!o[a]&&r(o,a,{configurable:!0,get:function(){return this}})},Vi}var Ji,kl;function fp(){if(kl)return Ji;kl=1;var e=Qd(),r=fn(),t=TypeError;return Ji=function(n){if(e(n))return n;throw new t(r(n)+" is not a constructor")},Ji}var Zi,Cl;function th(){if(Cl)return Zi;Cl=1;var e=ur(),r=fp(),t=on(),n=Ne(),a=n("species");return Zi=function(i,o){var s=e(i).constructor,c;return s===void 0||t(c=e(s)[a])?o:r(c)},Zi}var Yi,Al;function nh(){if(Al)return Yi;Al=1;var e=nn(),r=Function.prototype,t=r.apply,n=r.call;return Yi=typeof Reflect=="object"&&Reflect.apply||(e?n.bind(t):function(){return n.apply(t,arguments)}),Yi}var Xi,jl;function ah(){if(jl)return Xi;jl=1;var e=Ot();return Xi=/(?:ipad|iphone|ipod).*applewebkit/i.test(e),Xi}var Qi,Ul;function ih(){if(Ul)return Qi;Ul=1;var e=Ie(),r=nh(),t=lt(),n=Re(),a=tr(),i=xe(),o=qd(),s=pn(),c=cn(),l=zr(),u=ah(),f=is(),h=e.setImmediate,d=e.clearImmediate,v=e.process,m=e.Dispatch,w=e.Function,E=e.MessageChannel,b=e.String,g=0,p={},y="onreadystatechange",k,A,j,z;i(function(){k=e.location});var H=function(q){if(a(p,q)){var O=p[q];delete p[q],O()}},ee=function(q){return function(){H(q)}},x=function(q){H(q.data)},N=function(q){e.postMessage(b(q),k.protocol+"//"+k.host)};return(!h||!d)&&(h=function(O){l(arguments.length,1);var X=n(O)?O:w(O),re=s(arguments,1);return p[++g]=function(){r(X,void 0,re)},A(g),g},d=function(O){delete p[O]},f?A=function(q){v.nextTick(ee(q))}:m&&m.now?A=function(q){m.now(ee(q))}:E&&!u?(j=new E,z=j.port2,j.port1.onmessage=x,A=t(z.postMessage,z)):e.addEventListener&&n(e.postMessage)&&!e.importScripts&&k&&k.protocol!=="file:"&&!i(N)?(A=N,e.addEventListener("message",x,!1)):y in c("script")?A=function(q){o.appendChild(c("script"))[y]=function(){o.removeChild(this),H(q)}}:A=function(q){setTimeout(ee(q),0)}),Qi={set:h,clear:d},Qi}var eo,Ll;function oh(){if(Ll)return eo;Ll=1;var e=function(){this.head=null,this.tail=null};return e.prototype={add:function(r){var t={item:r,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var r=this.head;if(r){var t=this.head=r.next;return t===null&&(this.tail=null),r.item}}},eo=e,eo}var ro,ql;function dp(){if(ql)return ro;ql=1;var e=Ot();return ro=/ipad|iphone|ipod/i.test(e)&&typeof Pebble<"u",ro}var to,xl;function hp(){if(xl)return to;xl=1;var e=Ot();return to=/web0s(?!.*chrome)/i.test(e),to}var no,Nl;function vp(){if(Nl)return no;Nl=1;var e=Ie(),r=Kd(),t=lt(),n=ih().set,a=oh(),i=ah(),o=dp(),s=hp(),c=is(),l=e.MutationObserver||e.WebKitMutationObserver,u=e.document,f=e.process,h=e.Promise,d=r("queueMicrotask"),v,m,w,E,b;if(!d){var g=new a,p=function(){var y,k;for(c&&(y=f.domain)&&y.exit();k=g.get();)try{k()}catch(A){throw g.head&&v(),A}y&&y.enter()};!i&&!c&&!s&&l&&u?(m=!0,w=u.createTextNode(""),new l(p).observe(w,{characterData:!0}),v=function(){w.data=m=!m}):!o&&h&&h.resolve?(E=h.resolve(void 0),E.constructor=h,b=t(E.then,E),v=function(){b(p)}):c?v=function(){f.nextTick(p)}:(n=t(n,e),v=function(){n(p)}),d=function(y){g.head||v(),g.add(y)}}return no=d,no}var ao,Dl;function pp(){return Dl||(Dl=1,ao=function(e,r){try{arguments.length===1?console.error(e):console.error(e,r)}catch{}}),ao}var io,$l;function ft(){return $l||($l=1,io=function(e){try{return{error:!1,value:e()}}catch(r){return{error:!0,value:r}}}),io}var oo,Ml;function dt(){if(Ml)return oo;Ml=1;var e=Ie();return oo=e.Promise,oo}var so,Fl;function Ut(){if(Fl)return so;Fl=1;var e=Ie(),r=dt(),t=Re(),n=Bd(),a=Zo(),i=Ne(),o=rh(),s=gr(),c=Rd(),l=r&&r.prototype,u=i("species"),f=!1,h=t(e.PromiseRejectionEvent),d=n("Promise",function(){var v=a(r),m=v!==String(r);if(!m&&c===66||s&&!(l.catch&&l.finally))return!0;if(!c||c<51||!/native code/.test(v)){var w=new r(function(g){g(1)}),E=function(g){g(function(){},function(){})},b=w.constructor={};if(b[u]=E,f=w.then(function(){})instanceof E,!f)return!0}return!m&&(o==="BROWSER"||o==="DENO")&&!h});return so={CONSTRUCTOR:d,REJECTION_EVENT:h,SUBCLASSING:f},so}var uo={},Bl;function Rr(){if(Bl)return uo;Bl=1;var e=cr(),r=TypeError,t=function(n){var a,i;this.promise=new n(function(o,s){if(a!==void 0||i!==void 0)throw new r("Bad Promise constructor");a=o,i=s}),this.resolve=e(a),this.reject=e(i)};return uo.f=function(n){return new t(n)},uo}var zl;function mp(){if(zl)return Rl;zl=1;var e=ke(),r=gr(),t=is(),n=Ie(),a=Me(),i=ir(),o=Xo(),s=ct(),c=lp(),l=cr(),u=Re(),f=nr(),h=rs(),d=th(),v=ih().set,m=vp(),w=pp(),E=ft(),b=oh(),g=ut(),p=dt(),y=Ut(),k=Rr(),A="Promise",j=y.CONSTRUCTOR,z=y.REJECTION_EVENT,H=y.SUBCLASSING,ee=g.getterFor(A),x=g.set,N=p&&p.prototype,q=p,O=N,X=n.TypeError,re=n.document,Q=n.process,S=k.f,_=S,D=!!(re&&re.createEvent&&n.dispatchEvent),B="unhandledrejection",K="rejectionhandled",Z=0,de=1,ae=2,ue=1,se=2,Pe,je,Fe,Ce,Ve=function(M){var ie;return f(M)&&u(ie=M.then)?ie:!1},lr=function(M,ie){var le=ie.value,fe=ie.state===de,ge=fe?M.ok:M.fail,or=M.resolve,sr=M.reject,Te=M.domain,He,Je,Xe;try{ge?(fe||(ie.rejection===se&&pe(ie),ie.rejection=ue),ge===!0?He=le:(Te&&Te.enter(),He=ge(le),Te&&(Te.exit(),Xe=!0)),He===M.promise?sr(new X("Promise-chain cycle")):(Je=Ve(He))?a(Je,He,or,sr):or(He)):sr(le)}catch(pt){Te&&!Xe&&Te.exit(),sr(pt)}},fr=function(M,ie){M.notified||(M.notified=!0,m(function(){for(var le=M.reactions,fe;fe=le.get();)lr(fe,M);M.notified=!1,ie&&!M.rejection&&F(M)}))},T=function(M,ie,le){var fe,ge;D?(fe=re.createEvent("Event"),fe.promise=ie,fe.reason=le,fe.initEvent(M,!1,!0),n.dispatchEvent(fe)):fe={promise:ie,reason:le},!z&&(ge=n["on"+M])?ge(fe):M===B&&w("Unhandled promise rejection",le)},F=function(M){a(v,n,function(){var ie=M.facade,le=M.value,fe=J(M),ge;if(fe&&(ge=E(function(){t?Q.emit("unhandledRejection",le,ie):T(B,ie,le)}),M.rejection=t||J(M)?se:ue,ge.error))throw ge.value})},J=function(M){return M.rejection!==ue&&!M.parent},pe=function(M){a(v,n,function(){var ie=M.facade;t?Q.emit("rejectionHandled",ie):T(K,ie,M.value)})},ve=function(M,ie,le){return function(fe){M(ie,fe,le)}},me=function(M,ie,le){M.done||(M.done=!0,le&&(M=le),M.value=ie,M.state=ae,fr(M,!0))},Be=function(M,ie,le){if(!M.done){M.done=!0,le&&(M=le);try{if(M.facade===ie)throw new X("Promise can't be resolved itself");var fe=Ve(ie);fe?m(function(){var ge={done:!1};try{a(fe,ie,ve(Be,ge,M),ve(me,ge,M))}catch(or){me(ge,or,M)}}):(M.value=ie,M.state=de,fr(M,!1))}catch(ge){me({done:!1},ge,M)}}};if(j&&(q=function(ie){h(this,O),l(ie),a(Pe,this);var le=ee(this);try{ie(ve(Be,le),ve(me,le))}catch(fe){me(le,fe)}},O=q.prototype,Pe=function(ie){x(this,{type:A,done:!1,notified:!1,parent:!1,reactions:new b,rejection:!1,state:Z,value:null})},Pe.prototype=i(O,"then",function(ie,le){var fe=ee(this),ge=S(d(this,q));return fe.parent=!0,ge.ok=u(ie)?ie:!0,ge.fail=u(le)&&le,ge.domain=t?Q.domain:void 0,fe.state===Z?fe.reactions.add(ge):m(function(){lr(ge,fe)}),ge.promise}),je=function(){var M=new Pe,ie=ee(M);this.promise=M,this.resolve=ve(Be,ie),this.reject=ve(me,ie)},k.f=S=function(M){return M===q||M===Fe?new je(M):_(M)},!r&&u(p)&&N!==Object.prototype)){Ce=N.then,H||i(N,"then",function(ie,le){var fe=this;return new q(function(ge,or){a(Ce,fe,ge,or)}).then(ie,le)},{unsafe:!0});try{delete N.constructor}catch{}o&&o(N,O)}return e({global:!0,constructor:!0,wrap:!0,forced:j},{Promise:q}),s(q,A,!1,!0),c(A),Rl}var Hl={},co,Gl;function gp(){if(Gl)return co;Gl=1;var e=Ne(),r=e("iterator"),t=!1;try{var n=0,a={next:function(){return{done:!!n++}},return:function(){t=!0}};a[r]=function(){return this},Array.from(a,function(){throw 2})}catch{}return co=function(i,o){try{if(!o&&!t)return!1}catch{return!1}var s=!1;try{var c={};c[r]=function(){return{next:function(){return{done:s=!0}}}},i(c)}catch{}return s},co}var lo,Kl;function mn(){if(Kl)return lo;Kl=1;var e=dt(),r=gp(),t=Ut().CONSTRUCTOR;return lo=t||!r(function(n){e.all(n).then(void 0,function(){})}),lo}var Wl;function yp(){if(Wl)return Hl;Wl=1;var e=ke(),r=Me(),t=cr(),n=Rr(),a=ft(),i=jt(),o=mn();return e({target:"Promise",stat:!0,forced:o},{all:function(c){var l=this,u=n.f(l),f=u.resolve,h=u.reject,d=a(function(){var v=t(l.resolve),m=[],w=0,E=1;i(c,function(b){var g=w++,p=!1;E++,r(v,l,b).then(function(y){p||(p=!0,m[g]=y,--E||f(m))},h)}),--E||f(m)});return d.error&&h(d.value),u.promise}}),Hl}var Vl={},Jl;function wp(){if(Jl)return Vl;Jl=1;var e=ke(),r=gr(),t=Ut().CONSTRUCTOR,n=dt(),a=ar(),i=Re(),o=ir(),s=n&&n.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(l){return this.then(void 0,l)}}),!r&&i(n)){var c=a("Promise").prototype.catch;s.catch!==c&&o(s,"catch",c,{unsafe:!0})}return Vl}var Zl={},Yl;function bp(){if(Yl)return Zl;Yl=1;var e=ke(),r=Me(),t=cr(),n=Rr(),a=ft(),i=jt(),o=mn();return e({target:"Promise",stat:!0,forced:o},{race:function(c){var l=this,u=n.f(l),f=u.reject,h=a(function(){var d=t(l.resolve);i(c,function(v){r(d,l,v).then(u.resolve,f)})});return h.error&&f(h.value),u.promise}}),Zl}var Xl={},Ql;function Sp(){if(Ql)return Xl;Ql=1;var e=ke(),r=Rr(),t=Ut().CONSTRUCTOR;return e({target:"Promise",stat:!0,forced:t},{reject:function(a){var i=r.f(this),o=i.reject;return o(a),i.promise}}),Xl}var ef={},fo,rf;function sh(){if(rf)return fo;rf=1;var e=ur(),r=nr(),t=Rr();return fo=function(n,a){if(e(n),r(a)&&a.constructor===n)return a;var i=t.f(n),o=i.resolve;return o(a),i.promise},fo}var tf;function Ip(){if(tf)return ef;tf=1;var e=ke(),r=ar(),t=gr(),n=dt(),a=Ut().CONSTRUCTOR,i=sh(),o=r("Promise"),s=t&&!a;return e({target:"Promise",stat:!0,forced:t||a},{resolve:function(l){return i(s&&this===o?n:this,l)}}),ef}var nf;function Pp(){return nf||(nf=1,mp(),yp(),wp(),bp(),Sp(),Ip()),El}var af={},of;function Ep(){if(of)return af;of=1;var e=ke(),r=Me(),t=cr(),n=Rr(),a=ft(),i=jt(),o=mn();return e({target:"Promise",stat:!0,forced:o},{allSettled:function(c){var l=this,u=n.f(l),f=u.resolve,h=u.reject,d=a(function(){var v=t(l.resolve),m=[],w=0,E=1;i(c,function(b){var g=w++,p=!1;E++,r(v,l,b).then(function(y){p||(p=!0,m[g]={status:"fulfilled",value:y},--E||f(m))},function(y){p||(p=!0,m[g]={status:"rejected",reason:y},--E||f(m))})}),--E||f(m)});return d.error&&h(d.value),u.promise}}),af}var sf={},uf;function Rp(){if(uf)return sf;uf=1;var e=ke(),r=Me(),t=cr(),n=ar(),a=Rr(),i=ft(),o=jt(),s=mn(),c="No one promise resolved";return e({target:"Promise",stat:!0,forced:s},{any:function(u){var f=this,h=n("AggregateError"),d=a.f(f),v=d.resolve,m=d.reject,w=i(function(){var E=t(f.resolve),b=[],g=0,p=1,y=!1;o(u,function(k){var A=g++,j=!1;p++,r(E,f,k).then(function(z){j||y||(y=!0,v(z))},function(z){j||y||(j=!0,b[A]=z,--p||m(new h(b,c)))})}),--p||m(new h(b,c))});return w.error&&m(w.value),d.promise}}),sf}var cf={},lf;function uh(){if(lf)return cf;lf=1;var e=ke(),r=Ie(),t=nh(),n=pn(),a=Rr(),i=cr(),o=ft(),s=r.Promise,c=!1,l=!s||!s.try||o(function(){s.try(function(u){c=u===8},8)}).error||!c;return e({target:"Promise",stat:!0,forced:l},{try:function(u){var f=arguments.length>1?n(arguments,1):[],h=a.f(this),d=o(function(){return t(i(u),void 0,f)});return(d.error?h.reject:h.resolve)(d.value),h.promise}}),cf}var ff={},df;function ch(){if(df)return ff;df=1;var e=ke(),r=Rr();return e({target:"Promise",stat:!0},{withResolvers:function(){var n=r.f(this);return{promise:n.promise,resolve:n.resolve,reject:n.reject}}}),ff}var hf={},vf;function _p(){if(vf)return hf;vf=1;var e=ke(),r=gr(),t=dt(),n=xe(),a=ar(),i=Re(),o=th(),s=sh(),c=ir(),l=t&&t.prototype,u=!!t&&n(function(){l.finally.call({then:function(){}},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:u},{finally:function(h){var d=o(this,a("Promise")),v=i(h);return this.then(v?function(m){return s(d,h()).then(function(){return m})}:h,v?function(m){return s(d,h()).then(function(){throw m})}:h)}}),!r&&i(t)){var f=a("Promise").prototype.finally;l.finally!==f&&c(l,"finally",f,{unsafe:!0})}return hf}var ho,pf;function Tp(){if(pf)return ho;pf=1,sp(),es(),cp(),Pp(),Ep(),Rp(),uh(),ch(),_p(),Zd();var e=as();return ho=e.Promise,ho}var vo,mf;function Op(){if(mf)return vo;mf=1;var e=Tp();return eh(),vo=e,vo}var gf={},yf;function kp(){return yf||(yf=1,uh()),gf}var wf={},bf;function Cp(){return bf||(bf=1,ch()),wf}var po,Sf;function Ap(){if(Sf)return po;Sf=1;var e=Op();return kp(),Cp(),po=e,po}Ap();const lh="sesamy-debug";function jp(e,r,t){const n=new Date;n.setTime(n.getTime()+t*60*60*1e3);const a="expires="+n.toUTCString();document.cookie=`${e}=${r}; ${a}; path=/`}function Up(e){if(typeof document>"u")return null;const r=e+"=",t=document.cookie.split(";");for(let n=0;n<t.length;n++){let a=t[n];for(;a.charAt(0)===" ";)a=a.substring(1);if(a.indexOf(r)===0)return a.substring(r.length,a.length)}return null}function Lp(e){jp(lh,e.toString(),1)}function qp(){return Up(lh)==="true"}function ye(e){qp()&&console.log(e)}function Ir(e,r){if(typeof window>"u")return;const t=new CustomEvent(e,{detail:r,bubbles:!0,composed:!0});ye(`Triggering event: ${e}`),dispatchEvent(t)}function pr(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)r.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(t[n[a]]=e[n[a]])}return t}var jr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function os(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ss(e,r){return e(r={exports:{}},r.exports),r.exports}var Ar=ss(function(e,r){Object.defineProperty(r,"__esModule",{value:!0});var t=function(){function n(){var a=this;this.locked=new Map,this.addToLocked=function(i,o){var s=a.locked.get(i);s===void 0?o===void 0?a.locked.set(i,[]):a.locked.set(i,[o]):o!==void 0&&(s.unshift(o),a.locked.set(i,s))},this.isLocked=function(i){return a.locked.has(i)},this.lock=function(i){return new Promise(function(o,s){a.isLocked(i)?a.addToLocked(i,o):(a.addToLocked(i),o())})},this.unlock=function(i){var o=a.locked.get(i);if(o!==void 0&&o.length!==0){var s=o.pop();a.locked.set(i,o),s!==void 0&&setTimeout(s,0)}else a.locked.delete(i)}}return n.getInstance=function(){return n.instance===void 0&&(n.instance=new n),n.instance},n}();r.default=function(){return t.getInstance()}});os(Ar);var xp=os(ss(function(e,r){var t=jr&&jr.__awaiter||function(u,f,h,d){return new(h||(h=Promise))(function(v,m){function w(g){try{b(d.next(g))}catch(p){m(p)}}function E(g){try{b(d.throw(g))}catch(p){m(p)}}function b(g){g.done?v(g.value):new h(function(p){p(g.value)}).then(w,E)}b((d=d.apply(u,f||[])).next())})},n=jr&&jr.__generator||function(u,f){var h,d,v,m,w={label:0,sent:function(){if(1&v[0])throw v[1];return v[1]},trys:[],ops:[]};return m={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function E(b){return function(g){return function(p){if(h)throw new TypeError("Generator is already executing.");for(;w;)try{if(h=1,d&&(v=2&p[0]?d.return:p[0]?d.throw||((v=d.return)&&v.call(d),0):d.next)&&!(v=v.call(d,p[1])).done)return v;switch(d=0,v&&(p=[2&p[0],v.value]),p[0]){case 0:case 1:v=p;break;case 4:return w.label++,{value:p[1],done:!1};case 5:w.label++,d=p[1],p=[0];continue;case 7:p=w.ops.pop(),w.trys.pop();continue;default:if(v=w.trys,!((v=v.length>0&&v[v.length-1])||p[0]!==6&&p[0]!==2)){w=0;continue}if(p[0]===3&&(!v||p[1]>v[0]&&p[1]<v[3])){w.label=p[1];break}if(p[0]===6&&w.label<v[1]){w.label=v[1],v=p;break}if(v&&w.label<v[2]){w.label=v[2],w.ops.push(p);break}v[2]&&w.ops.pop(),w.trys.pop();continue}p=f.call(u,w)}catch(y){p=[6,y],d=0}finally{h=v=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([b,g])}}},a=jr;Object.defineProperty(r,"__esModule",{value:!0});var i="browser-tabs-lock-key",o={key:function(u){return t(a,void 0,void 0,function(){return n(this,function(f){throw new Error("Unsupported")})})},getItem:function(u){return t(a,void 0,void 0,function(){return n(this,function(f){throw new Error("Unsupported")})})},clear:function(){return t(a,void 0,void 0,function(){return n(this,function(u){return[2,window.localStorage.clear()]})})},removeItem:function(u){return t(a,void 0,void 0,function(){return n(this,function(f){throw new Error("Unsupported")})})},setItem:function(u,f){return t(a,void 0,void 0,function(){return n(this,function(h){throw new Error("Unsupported")})})},keySync:function(u){return window.localStorage.key(u)},getItemSync:function(u){return window.localStorage.getItem(u)},clearSync:function(){return window.localStorage.clear()},removeItemSync:function(u){return window.localStorage.removeItem(u)},setItemSync:function(u,f){return window.localStorage.setItem(u,f)}};function s(u){return new Promise(function(f){return setTimeout(f,u)})}function c(u){for(var f="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz",h="",d=0;d<u;d++)h+=f[Math.floor(Math.random()*f.length)];return h}var l=function(){function u(f){this.acquiredIatSet=new Set,this.storageHandler=void 0,this.id=Date.now().toString()+c(15),this.acquireLock=this.acquireLock.bind(this),this.releaseLock=this.releaseLock.bind(this),this.releaseLock__private__=this.releaseLock__private__.bind(this),this.waitForSomethingToChange=this.waitForSomethingToChange.bind(this),this.refreshLockWhileAcquired=this.refreshLockWhileAcquired.bind(this),this.storageHandler=f,u.waiters===void 0&&(u.waiters=[])}return u.prototype.acquireLock=function(f,h){return h===void 0&&(h=5e3),t(this,void 0,void 0,function(){var d,v,m,w,E,b,g;return n(this,function(p){switch(p.label){case 0:d=Date.now()+c(4),v=Date.now()+h,m=i+"-"+f,w=this.storageHandler===void 0?o:this.storageHandler,p.label=1;case 1:return Date.now()<v?[4,s(30)]:[3,8];case 2:return p.sent(),w.getItemSync(m)!==null?[3,5]:(E=this.id+"-"+f+"-"+d,[4,s(Math.floor(25*Math.random()))]);case 3:return p.sent(),w.setItemSync(m,JSON.stringify({id:this.id,iat:d,timeoutKey:E,timeAcquired:Date.now(),timeRefreshed:Date.now()})),[4,s(30)];case 4:return p.sent(),(b=w.getItemSync(m))!==null&&(g=JSON.parse(b)).id===this.id&&g.iat===d?(this.acquiredIatSet.add(d),this.refreshLockWhileAcquired(m,d),[2,!0]):[3,7];case 5:return u.lockCorrector(this.storageHandler===void 0?o:this.storageHandler),[4,this.waitForSomethingToChange(v)];case 6:p.sent(),p.label=7;case 7:return d=Date.now()+c(4),[3,1];case 8:return[2,!1]}})})},u.prototype.refreshLockWhileAcquired=function(f,h){return t(this,void 0,void 0,function(){var d=this;return n(this,function(v){return setTimeout(function(){return t(d,void 0,void 0,function(){var m,w,E;return n(this,function(b){switch(b.label){case 0:return[4,Ar.default().lock(h)];case 1:return b.sent(),this.acquiredIatSet.has(h)?(m=this.storageHandler===void 0?o:this.storageHandler,(w=m.getItemSync(f))===null?(Ar.default().unlock(h),[2]):((E=JSON.parse(w)).timeRefreshed=Date.now(),m.setItemSync(f,JSON.stringify(E)),Ar.default().unlock(h),this.refreshLockWhileAcquired(f,h),[2])):(Ar.default().unlock(h),[2])}})})},1e3),[2]})})},u.prototype.waitForSomethingToChange=function(f){return t(this,void 0,void 0,function(){return n(this,function(h){switch(h.label){case 0:return[4,new Promise(function(d){var v=!1,m=Date.now(),w=!1;function E(){if(w||(window.removeEventListener("storage",E),u.removeFromWaiting(E),clearTimeout(b),w=!0),!v){v=!0;var g=50-(Date.now()-m);g>0?setTimeout(d,g):d(null)}}window.addEventListener("storage",E),u.addToWaiting(E);var b=setTimeout(E,Math.max(0,f-Date.now()))})];case 1:return h.sent(),[2]}})})},u.addToWaiting=function(f){this.removeFromWaiting(f),u.waiters!==void 0&&u.waiters.push(f)},u.removeFromWaiting=function(f){u.waiters!==void 0&&(u.waiters=u.waiters.filter(function(h){return h!==f}))},u.notifyWaiters=function(){u.waiters!==void 0&&u.waiters.slice().forEach(function(f){return f()})},u.prototype.releaseLock=function(f){return t(this,void 0,void 0,function(){return n(this,function(h){switch(h.label){case 0:return[4,this.releaseLock__private__(f)];case 1:return[2,h.sent()]}})})},u.prototype.releaseLock__private__=function(f){return t(this,void 0,void 0,function(){var h,d,v,m;return n(this,function(w){switch(w.label){case 0:return h=this.storageHandler===void 0?o:this.storageHandler,d=i+"-"+f,(v=h.getItemSync(d))===null?[2]:(m=JSON.parse(v)).id!==this.id?[3,2]:[4,Ar.default().lock(m.iat)];case 1:w.sent(),this.acquiredIatSet.delete(m.iat),h.removeItemSync(d),Ar.default().unlock(m.iat),u.notifyWaiters(),w.label=2;case 2:return[2]}})})},u.lockCorrector=function(f){for(var h=Date.now()-5e3,d=f,v=[],m=0;;){var w=d.keySync(m);if(w===null)break;v.push(w),m++}for(var E=!1,b=0;b<v.length;b++){var g=v[b];if(g.includes(i)){var p=d.getItemSync(g);if(p!==null){var y=JSON.parse(p);(y.timeRefreshed===void 0&&y.timeAcquired<h||y.timeRefreshed!==void 0&&y.timeRefreshed<h)&&(d.removeItemSync(g),E=!0)}}}E&&u.notifyWaiters()},u.waiters=void 0,u}();r.default=l}));const Np={timeoutInSeconds:60},fh={name:"auth0-spa-js",version:"2.1.3"},dh=()=>Date.now();let Ye=class To extends Error{constructor(r,t){super(t),this.error=r,this.error_description=t,Object.setPrototypeOf(this,To.prototype)}static fromPayload({error:r,error_description:t}){return new To(r,t)}},Dp=class hh extends Ye{constructor(r,t,n,a=null){super(r,t),this.state=n,this.appState=a,Object.setPrototypeOf(this,hh.prototype)}},Oo=class vh extends Ye{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,vh.prototype)}},$p=class ph extends Oo{constructor(r){super(),this.popup=r,Object.setPrototypeOf(this,ph.prototype)}},Mp=class mh extends Ye{constructor(r){super("cancelled","Popup closed"),this.popup=r,Object.setPrototypeOf(this,mh.prototype)}},Fp=class gh extends Ye{constructor(r,t,n){super(r,t),this.mfa_token=n,Object.setPrototypeOf(this,gh.prototype)}},yh=class wh extends Ye{constructor(r,t){super("missing_refresh_token",`Missing Refresh Token (audience: '${If(r,["default"])}', scope: '${If(t)}')`),this.audience=r,this.scope=t,Object.setPrototypeOf(this,wh.prototype)}};function If(e,r=[]){return e&&!r.includes(e)?e:""}const Kt=()=>window.crypto,mo=()=>{const e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_~.";let r="";return Array.from(Kt().getRandomValues(new Uint8Array(43))).forEach(t=>r+=e[t%e.length]),r},Pf=e=>btoa(e),ko=e=>{var{clientId:r}=e,t=pr(e,["clientId"]);return new URLSearchParams((n=>Object.keys(n).filter(a=>n[a]!==void 0).reduce((a,i)=>Object.assign(Object.assign({},a),{[i]:n[i]}),{}))(Object.assign({client_id:r},t))).toString()},Ef=e=>(r=>decodeURIComponent(atob(r).split("").map(t=>"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)).join("")))(e.replace(/_/g,"/").replace(/-/g,"+")),Bp=async(e,r)=>{const t=await fetch(e,r);return{ok:t.ok,json:await t.json()}},zp=async(e,r,t)=>{const n=new AbortController;let a;return r.signal=n.signal,Promise.race([Bp(e,r),new Promise((i,o)=>{a=setTimeout(()=>{n.abort(),o(new Error("Timeout when executing 'fetch'"))},t)})]).finally(()=>{clearTimeout(a)})},Hp=async(e,r,t,n,a,i,o)=>{return s={auth:{audience:r,scope:t},timeout:a,fetchUrl:e,fetchOptions:n,useFormData:o},c=i,new Promise(function(l,u){const f=new MessageChannel;f.port1.onmessage=function(h){h.data.error?u(new Error(h.data.error)):l(h.data),f.port1.close()},c.postMessage(s,[f.port2])});var s,c},Gp=async(e,r,t,n,a,i,o=1e4)=>a?Hp(e,r,t,n,o,a,i):zp(e,n,o);async function Kp(e,r){var{baseUrl:t,timeout:n,audience:a,scope:i,auth0Client:o,useFormData:s}=e,c=pr(e,["baseUrl","timeout","audience","scope","auth0Client","useFormData"]);const l=s?ko(c):JSON.stringify(c);return await async function(u,f,h,d,v,m,w){let E,b=null;for(let j=0;j<3;j++)try{E=await Gp(u,h,d,v,m,w,f),b=null;break}catch(z){b=z}if(b)throw b;const g=E.json,{error:p,error_description:y}=g,k=pr(g,["error","error_description"]),{ok:A}=E;if(!A){const j=y||`HTTP error. Unable to fetch ${u}`;throw p==="mfa_required"?new Fp(p,j,k.mfa_token):p==="missing_refresh_token"?new yh(h,d):new Ye(p||"request_error",j)}return k}(`${t}/oauth/token`,n,a||"default",i,{method:"POST",body:l,headers:{"Content-Type":s?"application/x-www-form-urlencoded":"application/json","Auth0-Client":btoa(JSON.stringify(o||fh))}},r,s)}const qt=(...e)=>{return(r=e.filter(Boolean).join(" ").trim().split(/\s+/),Array.from(new Set(r))).join(" ");var r};let Lr=class Co{constructor(r,t="@@auth0spajs@@",n){this.prefix=t,this.suffix=n,this.clientId=r.clientId,this.scope=r.scope,this.audience=r.audience}toKey(){return[this.prefix,this.clientId,this.audience,this.scope,this.suffix].filter(Boolean).join("::")}static fromKey(r){const[t,n,a,i]=r.split("::");return new Co({clientId:n,scope:i,audience:a},t)}static fromCacheEntry(r){const{scope:t,audience:n,client_id:a}=r;return new Co({scope:t,audience:n,clientId:a})}},Wp=class{set(r,t){localStorage.setItem(r,JSON.stringify(t))}get(r){const t=window.localStorage.getItem(r);if(t)try{return JSON.parse(t)}catch{return}}remove(r){localStorage.removeItem(r)}allKeys(){return Object.keys(window.localStorage).filter(r=>r.startsWith("@@auth0spajs@@"))}},bh=class{constructor(){this.enclosedCache=function(){let r={};return{set(t,n){r[t]=n},get(t){const n=r[t];if(n)return n},remove(t){delete r[t]},allKeys:()=>Object.keys(r)}}()}},Vp=class{constructor(r,t,n){this.cache=r,this.keyManifest=t,this.nowProvider=n||dh}async setIdToken(r,t,n){var a;const i=this.getIdTokenCacheKey(r);await this.cache.set(i,{id_token:t,decodedToken:n}),await((a=this.keyManifest)===null||a===void 0?void 0:a.add(i))}async getIdToken(r){const t=await this.cache.get(this.getIdTokenCacheKey(r.clientId));if(!t&&r.scope&&r.audience){const n=await this.get(r);return!n||!n.id_token||!n.decodedToken?void 0:{id_token:n.id_token,decodedToken:n.decodedToken}}if(t)return{id_token:t.id_token,decodedToken:t.decodedToken}}async get(r,t=0){var n;let a=await this.cache.get(r.toKey());if(!a){const s=await this.getCacheKeys();if(!s)return;const c=this.matchExistingCacheKey(r,s);c&&(a=await this.cache.get(c))}if(!a)return;const i=await this.nowProvider(),o=Math.floor(i/1e3);return a.expiresAt-t<o?a.body.refresh_token?(a.body={refresh_token:a.body.refresh_token},await this.cache.set(r.toKey(),a),a.body):(await this.cache.remove(r.toKey()),void await((n=this.keyManifest)===null||n===void 0?void 0:n.remove(r.toKey()))):a.body}async set(r){var t;const n=new Lr({clientId:r.client_id,scope:r.scope,audience:r.audience}),a=await this.wrapCacheEntry(r);await this.cache.set(n.toKey(),a),await((t=this.keyManifest)===null||t===void 0?void 0:t.add(n.toKey()))}async clear(r){var t;const n=await this.getCacheKeys();n&&(await n.filter(a=>!r||a.includes(r)).reduce(async(a,i)=>{await a,await this.cache.remove(i)},Promise.resolve()),await((t=this.keyManifest)===null||t===void 0?void 0:t.clear()))}async wrapCacheEntry(r){const t=await this.nowProvider();return{body:r,expiresAt:Math.floor(t/1e3)+r.expires_in}}async getCacheKeys(){var r;return this.keyManifest?(r=await this.keyManifest.get())===null||r===void 0?void 0:r.keys:this.cache.allKeys?this.cache.allKeys():void 0}getIdTokenCacheKey(r){return new Lr({clientId:r},"@@auth0spajs@@","@@user@@").toKey()}matchExistingCacheKey(r,t){return t.filter(n=>{var a;const i=Lr.fromKey(n),o=new Set(i.scope&&i.scope.split(" ")),s=((a=r.scope)===null||a===void 0?void 0:a.split(" "))||[],c=i.scope&&s.reduce((l,u)=>l&&o.has(u),!0);return i.prefix==="@@auth0spajs@@"&&i.clientId===r.clientId&&i.audience===r.audience&&c})[0]}},Jp=class{constructor(r,t,n){this.storage=r,this.clientId=t,this.cookieDomain=n,this.storageKey=`a0.spajs.txs.${this.clientId}`}create(r){this.storage.save(this.storageKey,r,{daysUntilExpire:1,cookieDomain:this.cookieDomain})}get(){return this.storage.get(this.storageKey)}remove(){this.storage.remove(this.storageKey,{cookieDomain:this.cookieDomain})}};const gt=e=>typeof e=="number",Zp=["iss","aud","exp","nbf","iat","jti","azp","nonce","auth_time","at_hash","c_hash","acr","amr","sub_jwk","cnf","sip_from_tag","sip_date","sip_callid","sip_cseq_num","sip_via_branch","orig","dest","mky","events","toe","txn","rph","sid","vot","vtm"],Yp=e=>{if(!e.id_token)throw new Error("ID token is required but missing");const r=(i=>{const o=i.split("."),[s,c,l]=o;if(o.length!==3||!s||!c||!l)throw new Error("ID token could not be decoded");const u=JSON.parse(Ef(c)),f={__raw:i},h={};return Object.keys(u).forEach(d=>{f[d]=u[d],Zp.includes(d)||(h[d]=u[d])}),{encoded:{header:s,payload:c,signature:l},header:JSON.parse(Ef(s)),claims:f,user:h}})(e.id_token);if(!r.claims.iss)throw new Error("Issuer (iss) claim must be a string present in the ID token");if(r.claims.iss!==e.iss)throw new Error(`Issuer (iss) claim mismatch in the ID token; expected "${e.iss}", found "${r.claims.iss}"`);if(!r.user.sub)throw new Error("Subject (sub) claim must be a string present in the ID token");if(r.header.alg!=="RS256")throw new Error(`Signature algorithm of "${r.header.alg}" is not supported. Expected the ID token to be signed with "RS256".`);if(!r.claims.aud||typeof r.claims.aud!="string"&&!Array.isArray(r.claims.aud))throw new Error("Audience (aud) claim must be a string or array of strings present in the ID token");if(Array.isArray(r.claims.aud)){if(!r.claims.aud.includes(e.aud))throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${e.aud}" but was not one of "${r.claims.aud.join(", ")}"`);if(r.claims.aud.length>1){if(!r.claims.azp)throw new Error("Authorized Party (azp) claim must be a string present in the ID token when Audience (aud) claim has multiple values");if(r.claims.azp!==e.aud)throw new Error(`Authorized Party (azp) claim mismatch in the ID token; expected "${e.aud}", found "${r.claims.azp}"`)}}else if(r.claims.aud!==e.aud)throw new Error(`Audience (aud) claim mismatch in the ID token; expected "${e.aud}" but found "${r.claims.aud}"`);if(e.nonce){if(!r.claims.nonce)throw new Error("Nonce (nonce) claim must be a string present in the ID token");if(r.claims.nonce!==e.nonce)throw new Error(`Nonce (nonce) claim mismatch in the ID token; expected "${e.nonce}", found "${r.claims.nonce}"`)}if(e.max_age&&!gt(r.claims.auth_time))throw new Error("Authentication Time (auth_time) claim must be a number present in the ID token when Max Age (max_age) is specified");if(r.claims.exp==null||!gt(r.claims.exp))throw new Error("Expiration Time (exp) claim must be a number present in the ID token");if(!gt(r.claims.iat))throw new Error("Issued At (iat) claim must be a number present in the ID token");const t=e.leeway||60,n=new Date(e.now||Date.now()),a=new Date(0);if(a.setUTCSeconds(r.claims.exp+t),n>a)throw new Error(`Expiration Time (exp) claim error in the ID token; current time (${n}) is after expiration time (${a})`);if(r.claims.nbf!=null&>(r.claims.nbf)){const i=new Date(0);if(i.setUTCSeconds(r.claims.nbf-t),n<i)throw new Error(`Not Before time (nbf) claim in the ID token indicates that this token can't be used just yet. Current time (${n}) is before ${i}`)}if(r.claims.auth_time!=null&>(r.claims.auth_time)){const i=new Date(0);if(i.setUTCSeconds(parseInt(r.claims.auth_time)+e.max_age+t),n>i)throw new Error(`Authentication Time (auth_time) claim in the ID token indicates that too much time has passed since the last end-user authentication. Current time (${n}) is after last auth at ${i}`)}if(e.organization){const i=e.organization.trim();if(i.startsWith("org_")){const o=i;if(!r.claims.org_id)throw new Error("Organization ID (org_id) claim must be a string present in the ID token");if(o!==r.claims.org_id)throw new Error(`Organization ID (org_id) claim mismatch in the ID token; expected "${o}", found "${r.claims.org_id}"`)}else{const o=i.toLowerCase();if(!r.claims.org_name)throw new Error("Organization Name (org_name) claim must be a string present in the ID token");if(o!==r.claims.org_name)throw new Error(`Organization Name (org_name) claim mismatch in the ID token; expected "${o}", found "${r.claims.org_name}"`)}}return r};var qr=ss(function(e,r){var t=jr&&jr.__assign||function(){return t=Object.assign||function(c){for(var l,u=1,f=arguments.length;u<f;u++)for(var h in l=arguments[u])Object.prototype.hasOwnProperty.call(l,h)&&(c[h]=l[h]);return c},t.apply(this,arguments)};function n(c,l){if(!l)return"";var u="; "+c;return l===!0?u:u+"="+l}function a(c,l,u){return encodeURIComponent(c).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/\(/g,"%28").replace(/\)/g,"%29")+"="+encodeURIComponent(l).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent)+function(f){if(typeof f.expires=="number"){var h=new Date;h.setMilliseconds(h.getMilliseconds()+864e5*f.expires),f.expires=h}return n("Expires",f.expires?f.expires.toUTCString():"")+n("Domain",f.domain)+n("Path",f.path)+n("Secure",f.secure)+n("SameSite",f.sameSite)}(u)}function i(c){for(var l={},u=c?c.split("; "):[],f=/(%[\dA-F]{2})+/gi,h=0;h<u.length;h++){var d=u[h].split("="),v=d.slice(1).join("=");v.charAt(0)==='"'&&(v=v.slice(1,-1));try{l[d[0].replace(f,decodeURIComponent)]=v.replace(f,decodeURIComponent)}catch{}}return l}function o(){return i(document.cookie)}function s(c,l,u){document.cookie=a(c,l,t({path:"/"},u))}r.__esModule=!0,r.encode=a,r.parse=i,r.getAll=o,r.get=function(c){return o()[c]},r.set=s,r.remove=function(c,l){s(c,"",t(t({},l),{expires:-1}))}});os(qr),qr.encode,qr.parse,qr.getAll;var Xp=qr.get,Sh=qr.set,Ih=qr.remove;const Jr={get(e){const r=Xp(e);if(r!==void 0)return JSON.parse(r)},save(e,r,t){let n={};window.location.protocol==="https:"&&(n={secure:!0,sameSite:"none"}),t?.daysUntilExpire&&(n.expires=t.daysUntilExpire),t?.cookieDomain&&(n.domain=t.cookieDomain),Sh(e,JSON.stringify(r),n)},remove(e,r){let t={};r?.cookieDomain&&(t.domain=r.cookieDomain),Ih(e,t)}},Qp={get(e){return Jr.get(e)||Jr.get(`_legacy_${e}`)},save(e,r,t){let n={};window.location.protocol==="https:"&&(n={secure:!0}),t?.daysUntilExpire&&(n.expires=t.daysUntilExpire),t?.cookieDomain&&(n.domain=t.cookieDomain),Sh(`_legacy_${e}`,JSON.stringify(r),n),Jr.save(e,r,t)},remove(e,r){let t={};r?.cookieDomain&&(t.domain=r.cookieDomain),Ih(e,t),Jr.remove(e,r),Jr.remove(`_legacy_${e}`,r)}},em={get(e){if(typeof sessionStorage>"u")return;const r=sessionStorage.getItem(e);return r!=null?JSON.parse(r):void 0},save(e,r){sessionStorage.setItem(e,JSON.stringify(r))},remove(e){sessionStorage.removeItem(e)}};function rm(e,r,t){var n=r===void 0?null:r,a=function(c,l){var u=atob(c);if(l){for(var f=new Uint8Array(u.length),h=0,d=u.length;h<d;++h)f[h]=u.charCodeAt(h);return String.fromCharCode.apply(null,new Uint16Array(f.buffer))}return u}(e,t!==void 0&&t),i=a.indexOf(`
|
|
2
2
|
`,10)+1,o=a.substring(i)+(n?"//# sourceMappingURL="+n:""),s=new Blob([o],{type:"application/javascript"});return URL.createObjectURL(s)}var Rf,_f,Tf,go,tm=(Rf="Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwohZnVuY3Rpb24oKXsidXNlIHN0cmljdCI7Y2xhc3MgZSBleHRlbmRzIEVycm9ye2NvbnN0cnVjdG9yKHQscil7c3VwZXIociksdGhpcy5lcnJvcj10LHRoaXMuZXJyb3JfZGVzY3JpcHRpb249cixPYmplY3Quc2V0UHJvdG90eXBlT2YodGhpcyxlLnByb3RvdHlwZSl9c3RhdGljIGZyb21QYXlsb2FkKHtlcnJvcjp0LGVycm9yX2Rlc2NyaXB0aW9uOnJ9KXtyZXR1cm4gbmV3IGUodCxyKX19Y2xhc3MgdCBleHRlbmRzIGV7Y29uc3RydWN0b3IoZSxzKXtzdXBlcigibWlzc2luZ19yZWZyZXNoX3Rva2VuIixgTWlzc2luZyBSZWZyZXNoIFRva2VuIChhdWRpZW5jZTogJyR7cihlLFsiZGVmYXVsdCJdKX0nLCBzY29wZTogJyR7cihzKX0nKWApLHRoaXMuYXVkaWVuY2U9ZSx0aGlzLnNjb3BlPXMsT2JqZWN0LnNldFByb3RvdHlwZU9mKHRoaXMsdC5wcm90b3R5cGUpfX1mdW5jdGlvbiByKGUsdD1bXSl7cmV0dXJuIGUmJiF0LmluY2x1ZGVzKGUpP2U6IiJ9ImZ1bmN0aW9uIj09dHlwZW9mIFN1cHByZXNzZWRFcnJvciYmU3VwcHJlc3NlZEVycm9yO2NvbnN0IHM9ZT0+e3ZhcntjbGllbnRJZDp0fT1lLHI9ZnVuY3Rpb24oZSx0KXt2YXIgcj17fTtmb3IodmFyIHMgaW4gZSlPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoZSxzKSYmdC5pbmRleE9mKHMpPDAmJihyW3NdPWVbc10pO2lmKG51bGwhPWUmJiJmdW5jdGlvbiI9PXR5cGVvZiBPYmplY3QuZ2V0T3duUHJvcGVydHlTeW1ib2xzKXt2YXIgbz0wO2ZvcihzPU9iamVjdC5nZXRPd25Qcm9wZXJ0eVN5bWJvbHMoZSk7bzxzLmxlbmd0aDtvKyspdC5pbmRleE9mKHNbb10pPDAmJk9iamVjdC5wcm90b3R5cGUucHJvcGVydHlJc0VudW1lcmFibGUuY2FsbChlLHNbb10pJiYocltzW29dXT1lW3Nbb11dKX1yZXR1cm4gcn0oZSxbImNsaWVudElkIl0pO3JldHVybiBuZXcgVVJMU2VhcmNoUGFyYW1zKChlPT5PYmplY3Qua2V5cyhlKS5maWx0ZXIoKHQ9PnZvaWQgMCE9PWVbdF0pKS5yZWR1Y2UoKCh0LHIpPT5PYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30sdCkse1tyXTplW3JdfSkpLHt9KSkoT2JqZWN0LmFzc2lnbih7Y2xpZW50X2lkOnR9LHIpKSkudG9TdHJpbmcoKX07bGV0IG89e307Y29uc3Qgbj0oZSx0KT0+YCR7ZX18JHt0fWA7YWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsKGFzeW5jKHtkYXRhOnt0aW1lb3V0OmUsYXV0aDpyLGZldGNoVXJsOmksZmV0Y2hPcHRpb25zOmMsdXNlRm9ybURhdGE6YX0scG9ydHM6W3BdfSk9PntsZXQgZjtjb25zdHthdWRpZW5jZTp1LHNjb3BlOmx9PXJ8fHt9O3RyeXtjb25zdCByPWE/KGU9Pntjb25zdCB0PW5ldyBVUkxTZWFyY2hQYXJhbXMoZSkscj17fTtyZXR1cm4gdC5mb3JFYWNoKCgoZSx0KT0+e3JbdF09ZX0pKSxyfSkoYy5ib2R5KTpKU09OLnBhcnNlKGMuYm9keSk7aWYoIXIucmVmcmVzaF90b2tlbiYmInJlZnJlc2hfdG9rZW4iPT09ci5ncmFudF90eXBlKXtjb25zdCBlPSgoZSx0KT0+b1tuKGUsdCldKSh1LGwpO2lmKCFlKXRocm93IG5ldyB0KHUsbCk7Yy5ib2R5PWE/cyhPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKTpKU09OLnN0cmluZ2lmeShPYmplY3QuYXNzaWduKE9iamVjdC5hc3NpZ24oe30scikse3JlZnJlc2hfdG9rZW46ZX0pKX1sZXQgaCxnOyJmdW5jdGlvbiI9PXR5cGVvZiBBYm9ydENvbnRyb2xsZXImJihoPW5ldyBBYm9ydENvbnRyb2xsZXIsYy5zaWduYWw9aC5zaWduYWwpO3RyeXtnPWF3YWl0IFByb21pc2UucmFjZShbKGQ9ZSxuZXcgUHJvbWlzZSgoZT0+c2V0VGltZW91dChlLGQpKSkpLGZldGNoKGksT2JqZWN0LmFzc2lnbih7fSxjKSldKX1jYXRjaChlKXtyZXR1cm4gdm9pZCBwLnBvc3RNZXNzYWdlKHtlcnJvcjplLm1lc3NhZ2V9KX1pZighZylyZXR1cm4gaCYmaC5hYm9ydCgpLHZvaWQgcC5wb3N0TWVzc2FnZSh7ZXJyb3I6IlRpbWVvdXQgd2hlbiBleGVjdXRpbmcgJ2ZldGNoJyJ9KTtmPWF3YWl0IGcuanNvbigpLGYucmVmcmVzaF90b2tlbj8oKChlLHQscik9PntvW24odCxyKV09ZX0pKGYucmVmcmVzaF90b2tlbix1LGwpLGRlbGV0ZSBmLnJlZnJlc2hfdG9rZW4pOigoZSx0KT0+e2RlbGV0ZSBvW24oZSx0KV19KSh1LGwpLHAucG9zdE1lc3NhZ2Uoe29rOmcub2ssanNvbjpmfSl9Y2F0Y2goZSl7cC5wb3N0TWVzc2FnZSh7b2s6ITEsanNvbjp7ZXJyb3I6ZS5lcnJvcixlcnJvcl9kZXNjcmlwdGlvbjplLm1lc3NhZ2V9fSl9dmFyIGR9KSl9KCk7Cgo=",_f=null,Tf=!1,function(e){return go=go||rm(Rf,_f,Tf),new Worker(go,e)});const yo={};let nm=class{constructor(r,t){this.cache=r,this.clientId=t,this.manifestKey=this.createManifestKeyFrom(this.clientId)}async add(r){var t;const n=new Set(((t=await this.cache.get(this.manifestKey))===null||t===void 0?void 0:t.keys)||[]);n.add(r),await this.cache.set(this.manifestKey,{keys:[...n]})}async remove(r){const t=await this.cache.get(this.manifestKey);if(t){const n=new Set(t.keys);return n.delete(r),n.size>0?await this.cache.set(this.manifestKey,{keys:[...n]}):await this.cache.remove(this.manifestKey)}}get(){return this.cache.get(this.manifestKey)}clear(){return this.cache.remove(this.manifestKey)}createManifestKeyFrom(r){return`@@auth0spajs@@::${r}`}};const am={memory:()=>new bh().enclosedCache,localstorage:()=>new Wp},Of=e=>am[e],kf=e=>{const{openUrl:r,onRedirect:t}=e,n=pr(e,["openUrl","onRedirect"]);return Object.assign(Object.assign({},n),{openUrl:r===!1||r?r:t})},wo=new xp;let im=class{constructor(r){let t,n;if(this.userCache=new bh().enclosedCache,this.defaultOptions={authorizationParams:{scope:"openid profile email"},useRefreshTokensFallback:!1,useFormData:!0},this._releaseLockOnPageHide=async()=>{await wo.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)},this.options=Object.assign(Object.assign(Object.assign({},this.defaultOptions),r),{authorizationParams:Object.assign(Object.assign({},this.defaultOptions.authorizationParams),r.authorizationParams)}),typeof window<"u"&&(()=>{if(!Kt())throw new Error("For security reasons, `window.crypto` is required to run `auth0-spa-js`.");if(Kt().subtle===void 0)throw new Error(`
|
|
3
3
|
auth0-spa-js must run on a secure origin. See https://github.com/auth0/auth0-spa-js/blob/main/FAQ.md#why-do-i-get-auth0-spa-js-must-run-on-a-secure-origin for more information.
|
|
4
4
|
`)})(),r.cache&&r.cacheLocation&&console.warn("Both `cache` and `cacheLocation` options have been specified in the Auth0Client configuration; ignoring `cacheLocation` and using `cache`."),r.cache)n=r.cache;else{if(t=r.cacheLocation||"memory",!Of(t))throw new Error(`Invalid cache location "${t}"`);n=Of(t)()}this.httpTimeoutMs=r.httpTimeoutInSeconds?1e3*r.httpTimeoutInSeconds:1e4,this.cookieStorage=r.legacySameSiteCookie===!1?Jr:Qp,this.orgHintCookieName=`auth0.${this.options.clientId}.organization_hint`,this.isAuthenticatedCookieName=(o=>`auth0.${o}.is.authenticated`)(this.options.clientId),this.sessionCheckExpiryDays=r.sessionCheckExpiryDays||1;const a=r.useCookiesForTransactions?this.cookieStorage:em;var i;this.scope=qt("openid",this.options.authorizationParams.scope,this.options.useRefreshTokens?"offline_access":""),this.transactionManager=new Jp(a,this.options.clientId,this.options.cookieDomain),this.nowProvider=this.options.nowProvider||dh,this.cacheManager=new Vp(n,n.allKeys?void 0:new nm(n,this.options.clientId),this.nowProvider),this.domainUrl=(i=this.options.domain,/^https?:\/\//.test(i)?i:`https://${i}`),this.tokenIssuer=((o,s)=>o?o.startsWith("https://")?o:`https://${o}/`:`${s}/`)(this.options.issuer,this.domainUrl),typeof window<"u"&&window.Worker&&this.options.useRefreshTokens&&t==="memory"&&(this.options.workerUrl?this.worker=new Worker(this.options.workerUrl):this.worker=new tm)}_url(r){const t=encodeURIComponent(btoa(JSON.stringify(this.options.auth0Client||fh)));return`${this.domainUrl}${r}&auth0Client=${t}`}_authorizeUrl(r){return this._url(`/authorize?${ko(r)}`)}async _verifyIdToken(r,t,n){const a=await this.nowProvider();return Yp({iss:this.tokenIssuer,aud:this.options.clientId,id_token:r,nonce:t,organization:n,leeway:this.options.leeway,max_age:(i=this.options.authorizationParams.max_age,typeof i!="string"?i:parseInt(i,10)||void 0),now:a});var i}_processOrgHint(r){r?this.cookieStorage.save(this.orgHintCookieName,r,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}):this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain})}async _prepareAuthorizeUrl(r,t,n){const a=Pf(mo()),i=Pf(mo()),o=mo(),s=(u=>{const f=new Uint8Array(u);return(h=>{const d={"+":"-","/":"_","=":""};return h.replace(/[+/=]/g,v=>d[v])})(window.btoa(String.fromCharCode(...Array.from(f))))})(await(async u=>await Kt().subtle.digest({name:"SHA-256"},new TextEncoder().encode(u)))(o)),c=((u,f,h,d,v,m,w,E)=>Object.assign(Object.assign(Object.assign({client_id:u.clientId},u.authorizationParams),h),{scope:qt(f,h.scope),response_type:"code",response_mode:E||"query",state:d,nonce:v,redirect_uri:w||u.authorizationParams.redirect_uri,code_challenge:m,code_challenge_method:"S256"}))(this.options,this.scope,r,a,i,s,r.redirect_uri||this.options.authorizationParams.redirect_uri||n,t?.response_mode),l=this._authorizeUrl(c);return{nonce:i,code_verifier:o,scope:c.scope,audience:c.audience||"default",redirect_uri:c.redirect_uri,state:a,url:l}}async loginWithPopup(r,t){var n;if(r=r||{},!(t=t||{}).popup&&(t.popup=(s=>{const c=window.screenX+(window.innerWidth-400)/2,l=window.screenY+(window.innerHeight-600)/2;return window.open(s,"auth0:authorize:popup",`left=${c},top=${l},width=400,height=600,resizable,scrollbars=yes,status=1`)})(""),!t.popup))throw new Error("Unable to open a popup for loginWithPopup - window.open returned `null`");const a=await this._prepareAuthorizeUrl(r.authorizationParams||{},{response_mode:"web_message"},window.location.origin);t.popup.location.href=a.url;const i=await(s=>new Promise((c,l)=>{let u;const f=setInterval(()=>{s.popup&&s.popup.closed&&(clearInterval(f),clearTimeout(h),window.removeEventListener("message",u,!1),l(new Mp(s.popup)))},1e3),h=setTimeout(()=>{clearInterval(f),l(new $p(s.popup)),window.removeEventListener("message",u,!1)},1e3*(s.timeoutInSeconds||60));u=function(d){if(d.data&&d.data.type==="authorization_response"){if(clearTimeout(h),clearInterval(f),window.removeEventListener("message",u,!1),s.popup.close(),d.data.response.error)return l(Ye.fromPayload(d.data.response));c(d.data.response)}},window.addEventListener("message",u)}))(Object.assign(Object.assign({},t),{timeoutInSeconds:t.timeoutInSeconds||this.options.authorizeTimeoutInSeconds||60}));if(a.state!==i.state)throw new Ye("state_mismatch","Invalid state");const o=((n=r.authorizationParams)===null||n===void 0?void 0:n.organization)||this.options.authorizationParams.organization;await this._requestToken({audience:a.audience,scope:a.scope,code_verifier:a.code_verifier,grant_type:"authorization_code",code:i.code,redirect_uri:a.redirect_uri},{nonceIn:a.nonce,organization:o})}async getUser(){var r;const t=await this._getIdTokenFromCache();return(r=t?.decodedToken)===null||r===void 0?void 0:r.user}async getIdTokenClaims(){var r;const t=await this._getIdTokenFromCache();return(r=t?.decodedToken)===null||r===void 0?void 0:r.claims}async loginWithRedirect(r={}){var t;const n=kf(r),{openUrl:a,fragment:i,appState:o}=n,s=pr(n,["openUrl","fragment","appState"]),c=((t=s.authorizationParams)===null||t===void 0?void 0:t.organization)||this.options.authorizationParams.organization,l=await this._prepareAuthorizeUrl(s.authorizationParams||{}),{url:u}=l,f=pr(l,["url"]);this.transactionManager.create(Object.assign(Object.assign(Object.assign({},f),{appState:o}),c&&{organization:c}));const h=i?`${u}#${i}`:u;a?await a(h):window.location.assign(h)}async handleRedirectCallback(r=window.location.href){const t=r.split("?").slice(1);if(t.length===0)throw new Error("There are no query params available for parsing.");const{state:n,code:a,error:i,error_description:o}=(f=>{f.indexOf("#")>-1&&(f=f.substring(0,f.indexOf("#")));const h=new URLSearchParams(f);return{state:h.get("state"),code:h.get("code")||void 0,error:h.get("error")||void 0,error_description:h.get("error_description")||void 0}})(t.join("")),s=this.transactionManager.get();if(!s)throw new Ye("missing_transaction","Invalid state");if(this.transactionManager.remove(),i)throw new Dp(i,o||i,n,s.appState);if(!s.code_verifier||s.state&&s.state!==n)throw new Ye("state_mismatch","Invalid state");const c=s.organization,l=s.nonce,u=s.redirect_uri;return await this._requestToken(Object.assign({audience:s.audience,scope:s.scope,code_verifier:s.code_verifier,grant_type:"authorization_code",code:a},u?{redirect_uri:u}:{}),{nonceIn:l,organization:c}),{appState:s.appState}}async checkSession(r){if(!this.cookieStorage.get(this.isAuthenticatedCookieName)){if(!this.cookieStorage.get("auth0.is.authenticated"))return;this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove("auth0.is.authenticated")}try{await this.getTokenSilently(r)}catch{}}async getTokenSilently(r={}){var t;const n=Object.assign(Object.assign({cacheMode:"on"},r),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),r.authorizationParams),{scope:qt(this.scope,(t=r.authorizationParams)===null||t===void 0?void 0:t.scope)})}),a=await((i,o)=>{let s=yo[o];return s||(s=i().finally(()=>{delete yo[o],s=null}),yo[o]=s),s})(()=>this._getTokenSilently(n),`${this.options.clientId}::${n.authorizationParams.audience}::${n.authorizationParams.scope}`);return r.detailedResponse?a:a?.access_token}async _getTokenSilently(r){const{cacheMode:t}=r,n=pr(r,["cacheMode"]);if(t!=="off"){const a=await this._getEntryFromCache({scope:n.authorizationParams.scope,audience:n.authorizationParams.audience||"default",clientId:this.options.clientId});if(a)return a}if(t!=="cache-only"){if(!await(async(a,i=3)=>{for(let o=0;o<i;o++)if(await a())return!0;return!1})(()=>wo.acquireLock("auth0.lock.getTokenSilently",5e3),10))throw new Oo;try{if(window.addEventListener("pagehide",this._releaseLockOnPageHide),t!=="off"){const l=await this._getEntryFromCache({scope:n.authorizationParams.scope,audience:n.authorizationParams.audience||"default",clientId:this.options.clientId});if(l)return l}const a=this.options.useRefreshTokens?await this._getTokenUsingRefreshToken(n):await this._getTokenFromIFrame(n),{id_token:i,access_token:o,oauthTokenScope:s,expires_in:c}=a;return Object.assign(Object.assign({id_token:i,access_token:o},s?{scope:s}:null),{expires_in:c})}finally{await wo.releaseLock("auth0.lock.getTokenSilently"),window.removeEventListener("pagehide",this._releaseLockOnPageHide)}}}async getTokenWithPopup(r={},t={}){var n;const a=Object.assign(Object.assign({},r),{authorizationParams:Object.assign(Object.assign(Object.assign({},this.options.authorizationParams),r.authorizationParams),{scope:qt(this.scope,(n=r.authorizationParams)===null||n===void 0?void 0:n.scope)})});return t=Object.assign(Object.assign({},Np),t),await this.loginWithPopup(a,t),(await this.cacheManager.get(new Lr({scope:a.authorizationParams.scope,audience:a.authorizationParams.audience||"default",clientId:this.options.clientId}))).access_token}async isAuthenticated(){return!!await this.getUser()}_buildLogoutUrl(r){r.clientId!==null?r.clientId=r.clientId||this.options.clientId:delete r.clientId;const t=r.logoutParams||{},{federated:n}=t,a=pr(t,["federated"]),i=n?"&federated":"";return this._url(`/v2/logout?${ko(Object.assign({clientId:r.clientId},a))}`)+i}async logout(r={}){const t=kf(r),{openUrl:n}=t,a=pr(t,["openUrl"]);r.clientId===null?await this.cacheManager.clear():await this.cacheManager.clear(r.clientId||this.options.clientId),this.cookieStorage.remove(this.orgHintCookieName,{cookieDomain:this.options.cookieDomain}),this.cookieStorage.remove(this.isAuthenticatedCookieName,{cookieDomain:this.options.cookieDomain}),this.userCache.remove("@@user@@");const i=this._buildLogoutUrl(a);n?await n(i):n!==!1&&window.location.assign(i)}async _getTokenFromIFrame(r){const t=Object.assign(Object.assign({},r.authorizationParams),{prompt:"none"}),n=this.cookieStorage.get(this.orgHintCookieName);n&&!t.organization&&(t.organization=n);const{url:a,state:i,nonce:o,code_verifier:s,redirect_uri:c,scope:l,audience:u}=await this._prepareAuthorizeUrl(t,{response_mode:"web_message"},window.location.origin);try{if(window.crossOriginIsolated)throw new Ye("login_required","The application is running in a Cross-Origin Isolated context, silently retrieving a token without refresh token is not possible.");const f=r.timeoutInSeconds||this.options.authorizeTimeoutInSeconds,h=await((v,m,w=60)=>new Promise((E,b)=>{const g=window.document.createElement("iframe");g.setAttribute("width","0"),g.setAttribute("height","0"),g.style.display="none";const p=()=>{window.document.body.contains(g)&&(window.document.body.removeChild(g),window.removeEventListener("message",y,!1))};let y;const k=setTimeout(()=>{b(new Oo),p()},1e3*w);y=function(A){if(A.origin!=m||!A.data||A.data.type!=="authorization_response")return;const j=A.source;j&&j.close(),A.data.response.error?b(Ye.fromPayload(A.data.response)):E(A.data.response),clearTimeout(k),window.removeEventListener("message",y,!1),setTimeout(p,2e3)},window.addEventListener("message",y,!1),window.document.body.appendChild(g),g.setAttribute("src",v)}))(a,this.domainUrl,f);if(i!==h.state)throw new Ye("state_mismatch","Invalid state");const d=await this._requestToken(Object.assign(Object.assign({},r.authorizationParams),{code_verifier:s,code:h.code,grant_type:"authorization_code",redirect_uri:c,timeout:r.authorizationParams.timeout||this.httpTimeoutMs}),{nonceIn:o,organization:t.organization});return Object.assign(Object.assign({},d),{scope:l,oauthTokenScope:d.scope,audience:u})}catch(f){throw f.error==="login_required"&&this.logout({openUrl:!1}),f}}async _getTokenUsingRefreshToken(r){const t=await this.cacheManager.get(new Lr({scope:r.authorizationParams.scope,audience:r.authorizationParams.audience||"default",clientId:this.options.clientId}));if(!(t&&t.refresh_token||this.worker)){if(this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(r);throw new yh(r.authorizationParams.audience||"default",r.authorizationParams.scope)}const n=r.authorizationParams.redirect_uri||this.options.authorizationParams.redirect_uri||window.location.origin,a=typeof r.timeoutInSeconds=="number"?1e3*r.timeoutInSeconds:null;try{const i=await this._requestToken(Object.assign(Object.assign(Object.assign({},r.authorizationParams),{grant_type:"refresh_token",refresh_token:t&&t.refresh_token,redirect_uri:n}),a&&{timeout:a}));return Object.assign(Object.assign({},i),{scope:r.authorizationParams.scope,oauthTokenScope:i.scope,audience:r.authorizationParams.audience||"default"})}catch(i){if((i.message.indexOf("Missing Refresh Token")>-1||i.message&&i.message.indexOf("invalid refresh token")>-1)&&this.options.useRefreshTokensFallback)return await this._getTokenFromIFrame(r);throw i}}async _saveEntryInCache(r){const{id_token:t,decodedToken:n}=r,a=pr(r,["id_token","decodedToken"]);this.userCache.set("@@user@@",{id_token:t,decodedToken:n}),await this.cacheManager.setIdToken(this.options.clientId,r.id_token,r.decodedToken),await this.cacheManager.set(a)}async _getIdTokenFromCache(){const r=this.options.authorizationParams.audience||"default",t=await this.cacheManager.getIdToken(new Lr({clientId:this.options.clientId,audience:r,scope:this.scope})),n=this.userCache.get("@@user@@");return t&&t.id_token===n?.id_token?n:(this.userCache.set("@@user@@",t),t)}async _getEntryFromCache({scope:r,audience:t,clientId:n}){const a=await this.cacheManager.get(new Lr({scope:r,audience:t,clientId:n}),60);if(a&&a.access_token){const{access_token:i,oauthTokenScope:o,expires_in:s}=a,c=await this._getIdTokenFromCache();return c&&Object.assign(Object.assign({id_token:c.id_token,access_token:i},o?{scope:o}:null),{expires_in:s})}}async _requestToken(r,t){const{nonceIn:n,organization:a}=t||{},i=await Kp(Object.assign({baseUrl:this.domainUrl,client_id:this.options.clientId,auth0Client:this.options.auth0Client,useFormData:this.options.useFormData,timeout:this.httpTimeoutMs},r),this.worker),o=await this._verifyIdToken(i.id_token,n,a);return await this._saveEntryInCache(Object.assign(Object.assign(Object.assign(Object.assign({},i),{decodedToken:o,scope:r.scope,audience:r.audience||"default"}),i.scope?{oauthTokenScope:i.scope}:null),{client_id:this.options.clientId})),this.cookieStorage.save(this.isAuthenticatedCookieName,!0,{daysUntilExpire:this.sessionCheckExpiryDays,cookieDomain:this.options.cookieDomain}),this._processOrgHint(a||o.claims.org_id),Object.assign(Object.assign({},i),{decodedToken:o})}};async function om(e){const r=new im(e);return await r.checkSession(),r}var We=(e=>(e.AUTH_INITIALIZED="sesamyJsAuthInitialized",e.READY="sesamyJsReady",e.AUTHENTICATED="sesamyJsAuthenticated",e.LOGOUT="sesamyJsLogout",e.CLEAR_CACHE="sesamyJsClearCache",e.USER_ATTRIBUTE_CHANGED="sesamyUserAttributeChanged",e.PURCHASE="sesamyJsPurchase",e))(We||{});const sm="sesamy.com",um="sesamy.dev",cm="https://sesa.my",Ao="sesamyCacheTimestamp",Cf="sesamyContentReloaded";function Ph(e,r){return`${e}.${r==="dev"?um:sm}`}function vr(e,r){return`https://${Ph(e,r)}`}function Yt(){return(document.documentElement.getAttribute("lang")??navigator.language??"en").split("-")[0]?.toLocaleLowerCase()}/*!
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
*
|
|
32
32
|
* Please keep this comment intact in order to properly abide by the MIT License.
|
|
33
33
|
*
|
|
34
|
-
**/var jo={d:(e,r)=>{for(var t in r)jo.o(r,t)&&!jo.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r)},us={};jo.d(us,{A:()=>lm,k:()=>cs});var xt=function(e,r,t,n){return new(t||(t=Promise))(function(a,i){function o(l){try{c(n.next(l))}catch(u){i(u)}}function s(l){try{c(n.throw(l))}catch(u){i(u)}}function c(l){var u;l.done?a(l.value):(u=l.value,u instanceof t?u:new t(function(f){f(u)})).then(o,s)}c((n=n.apply(e,[])).next())})},Nt=function(e,r){var t,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(c){return function(l){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(t=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!((a=a.length>0&&a[a.length-1])||u[0]!==6&&u[0]!==2)){o=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(u[0]===6&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=r.call(e,o)}catch(f){u=[6,f],n=0}finally{t=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([c,l])}}};function cs(){return xt(this,void 0,Promise,function(){return Nt(this,function(e){switch(e.label){case 0:return[4,new Promise(function(r,t){var n="Unknown",a=!1;function i(h){a||(a=!0,r({isPrivate:h,browserName:n}))}function o(){var h=0,d=parseInt("-1");try{d.toFixed(d)}catch(v){h=v.message.length}return h}function s(){return navigator.msSaveBlob!==void 0&&function(h){try{return h===eval.toString().length}catch{return!1}}(39)}function c(){var h;return xt(this,void 0,void 0,function(){var d,v;return Nt(this,function(m){switch(m.label){case 0:return m.trys.push([0,2,,3]),[4,navigator.storage.getDirectory()];case 1:return m.sent(),i(!1),[3,3];case 2:return d=m.sent(),v=d,d instanceof Error&&(v=(h=d.message)!==null&&h!==void 0?h:d),typeof v!="string"?(i(!1),[2]):(i(!!v.includes("unknown transient reason")),[3,3]);case 3:return[2]}})})}function l(){var h;return xt(this,void 0,Promise,function(){return Nt(this,function(d){switch(d.label){case 0:return((h=navigator.storage)===null||h===void 0?void 0:h.getDirectory)===void 0?[3,2]:[4,c()];case 1:return d.sent(),[3,3];case 2:navigator.maxTouchPoints!==void 0?function(){var v=String(Math.random());try{var m=indexedDB.open(v,1);m.onupgradeneeded=function(w){var E=w.target.result,b=function(g){i(g)};try{E.createObjectStore("t",{autoIncrement:!0}).put(new Blob),b(!1)}catch(g){(g.message||"").includes("are not yet supported")?b(!0):b(!1)}finally{E.close(),indexedDB.deleteDatabase(v)}},m.onerror=function(){return i(!1)}}catch{i(!1)}}():function(){var v=window.openDatabase,m=window.localStorage;try{v(null,null,null,null)}catch{return void i(!0)}try{m.setItem("test","1"),m.removeItem("test")}catch{return void i(!0)}i(!1)}(),d.label=3;case 3:return[2]}})})}function u(){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(h,d){var v;i(Math.round(d/1048576)<2*Math.round(((v=window).performance!==void 0&&v.performance.memory!==void 0&&v.performance.memory.jsHeapSizeLimit!==void 0?performance.memory.jsHeapSizeLimit:1073741824)/1048576))},function(h){t(new Error("detectIncognito somehow failed to query storage quota: "+h.message))})}function f(){self.Promise!==void 0&&self.Promise.allSettled!==void 0?u():(0,window.webkitRequestFileSystem)(0,1,function(){i(!1)},function(){i(!0)})}(function(){return xt(this,void 0,Promise,function(){return Nt(this,function(h){switch(h.label){case 0:return o()!==44?[3,2]:(n="Safari",[4,l()]);case 1:return h.sent(),[3,3];case 2:o()===51?(d=navigator.userAgent,n=d.match(/Chrome/)?navigator.brave!==void 0?"Brave":d.match(/Edg/)?"Edge":d.match(/OPR/)?"Opera":"Chrome":"Chromium",f()):o()===25?(n="Firefox",i(navigator.serviceWorker===void 0)):s()?(n="Internet Explorer",i(window.indexedDB===void 0)):t(new Error("detectIncognito cannot determine the browser")),h.label=3;case 3:return[2]}var d})})})().catch(t)})];case 1:return[2,e.sent()]}})})}typeof window<"u"&&(window.detectIncognito=cs);const lm=cs;us.A;const fm=us.k,Wt="sesamy_incognito_mode";function ls(){try{const e=sessionStorage.getItem(Wt);return e===null?void 0:e==="true"}catch{return}}async function dm(){try{const e=sessionStorage.getItem(Wt);if(e!==null)return e==="true";const{isPrivate:r}=await fm();return sessionStorage.setItem(Wt,r.toString()),r}catch{try{sessionStorage.setItem(Wt,"false")}catch{}return!1}}function Et(){return typeof window<"u"}function Af(e,r,t,n,a){for(r=r.split?r.split("."):r,n=0;n<r.length;n++)e=e?e[r[n]]:a;return e===a?t:e}var Dt="undefined",jf="object",Uo=function(){},Eh="any",Rh="*",Dr="__",Xt=typeof process<"u"?process:{};Xt.env&&Xt.env.NODE_ENV;var Le=typeof document<"u";Xt.versions!=null&&Xt.versions.node!=null;typeof Deno<"u"&&Deno.core;Le&&window.name==="nodejs"||typeof navigator<"u"&&navigator.userAgent!==void 0&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function _h(e,r){return r.charAt(0)[e]()+r.slice(1)}var hm=_h.bind(null,"toUpperCase"),vm=_h.bind(null,"toLowerCase");function pm(e){return Th(e)?hm("null"):typeof e=="object"?wm(e):Object.prototype.toString.call(e).slice(8,-1)}function Qt(e,r){r===void 0&&(r=!0);var t=pm(e);return r?vm(t):t}function Lt(e,r){return typeof r===e}var Ke=Lt.bind(null,"function"),Or=Lt.bind(null,"string"),Yr=Lt.bind(null,"undefined"),mm=Lt.bind(null,"boolean");Lt.bind(null,"symbol");function Th(e){return e===null}function gm(e){return Qt(e)==="number"&&!isNaN(e)}function Oh(e){return Qt(e)==="array"}function Ge(e){if(!ym(e))return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function ym(e){return e&&(typeof e=="object"||e!==null)}function wm(e){return Ke(e.constructor)?e.constructor.name:null}function bm(e){return e instanceof Error||Or(e.message)&&e.constructor&&gm(e.constructor.stackTraceLimit)}function kh(e,r){if(typeof r!="object"||Th(r))return!1;if(r instanceof e)return!0;var t=Qt(new e(""));if(bm(r))for(;r;){if(Qt(r)===t)return!0;r=Object.getPrototypeOf(r)}return!1}kh.bind(null,TypeError);kh.bind(null,SyntaxError);function gn(e,r){var t=e instanceof Element||e instanceof HTMLDocument;return t&&r?Sm(e,r):t}function Sm(e,r){return r===void 0&&(r=""),e&&e.nodeName===r.toUpperCase()}function yn(e){var r=[].slice.call(arguments,1);return function(){return e.apply(void 0,[].slice.call(arguments).concat(r))}}yn(gn,"form");yn(gn,"button");yn(gn,"input");yn(gn,"select");function Im(e){return e?Oh(e)?e:[e]:[]}function Uf(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function Pm(){if(Le){var e=navigator,r=e.languages;return e.userLanguage||(r&&r.length?r[0]:e.language)}}function Em(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function Rm(e){return function(r){for(var t,n=Object.create(null),a=/([^&=]+)=?([^&]*)/g;t=a.exec(r);){var i=Uf(t[1]),o=Uf(t[2]);i.substring(i.length-2)==="[]"?(n[i=i.substring(0,i.length-2)]||(n[i]=[])).push(o):n[i]=o===""||o}for(var s in n){var c=s.split("[");c.length>1&&(_m(n,c.map(function(l){return l.replace(/[?[\]\\ ]/g,"")}),n[s]),delete n[s])}return n}(function(r){return Le&&window.location.search.substring(1)}())}function _m(e,r,t){for(var n=r.length-1,a=0;a<n;++a){var i=r[a];if(i==="__proto__"||i==="constructor")break;i in e||(e[i]={}),e=e[i]}e[r[n]]=t}function wn(){for(var e="",r=0,t=4294967295*Math.random()|0;r++<36;){var n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[r-1],a=15&t;e+=n=="-"||n=="4"?n:(n=="x"?a:3&a|8).toString(16),t=r%8==0?4294967295*Math.random()|0:t>>4}return e}function Tm(e,r){var t,n,a,i=null,o=0,s=function(){o=new Date,i=null,a=e.apply(t,n)};return function(){var c=new Date;o||(o=c);var l=r-(c-o);return t=this,n=arguments,l<=0?(clearTimeout(i),i=null,o=c,a=e.apply(t,n)):i||(i=setTimeout(s,l)),a}}var bt="global",nt=Dr+"global"+Dr,at=typeof self===jf&&self.self===self&&self||typeof global===jf&&global.global===global&&global||void 0;function $r(e){return at[nt][e]}function Mr(e,r){return at[nt][e]=r}function ht(e){delete at[nt][e]}function vt(e,r,t){var n;try{if(fs(e)){var a=window[e];n=a[r].bind(a)}}catch{}return n||t}at[nt]||(at[nt]={});var $t={};function fs(e){if(typeof $t[e]!==Dt)return $t[e];try{var r=window[e];r.setItem(Dt,Dt),r.removeItem(Dt)}catch{return $t[e]=!1}return $t[e]=!0}function ne(){return ne=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ne.apply(this,arguments)}var Tr="function",Sr="undefined",Om="@@redux/"+Math.random().toString(36),Lf=function(){return typeof Symbol===Tr&&Symbol.observable||"@@observable"}(),Mt=" != "+Tr;function Ch(e,r,t){var n;if(typeof r===Tr&&typeof t===Sr&&(t=r,r=void 0),typeof t!==Sr){if(typeof t!==Tr)throw new Error("enhancer"+Mt);return t(Ch)(e,r)}if(typeof e!==Tr)throw new Error("reducer"+Mt);var a=e,i=r,o=[],s=o,c=!1;function l(){s===o&&(s=o.slice())}function u(){return i}function f(d){if(typeof d!==Tr)throw new Error("Listener"+Mt);var v=!0;return l(),s.push(d),function(){if(v){v=!1,l();var m=s.indexOf(d);s.splice(m,1)}}}function h(d){if(!Ge(d))throw new Error("Act != obj");if(typeof d.type===Sr)throw new Error("ActType "+Sr);if(c)throw new Error("Dispatch in reducer");try{c=!0,i=a(i,d)}finally{c=!1}for(var v=o=s,m=0;m<v.length;m++)(0,v[m])();return d}return h({type:"@@redux/INIT"}),(n={dispatch:h,subscribe:f,getState:u,replaceReducer:function(d){if(typeof d!==Tr)throw new Error("next reducer"+Mt);a=d,h({type:"@@redux/INIT"})}})[Lf]=function(){var d,v=f;return(d={subscribe:function(m){if(typeof m!="object")throw new TypeError("Observer != obj");function w(){m.next&&m.next(u())}return w(),{unsubscribe:v(w)}}})[Lf]=function(){return this},d},n}function km(e,r){var t=r&&r.type;return"action "+(t&&t.toString()||"?")+"reducer "+e+" returns "+Sr}function it(){var e=[].slice.call(arguments);return e.length===0?function(r){return r}:e.length===1?e[0]:e.reduce(function(r,t){return function(){return r(t.apply(void 0,[].slice.call(arguments)))}})}function Cm(){var e=arguments;return function(r){return function(t,n,a){var i,o=r(t,n,a),s=o.dispatch,c={getState:o.getState,dispatch:function(l){return s(l)}};return i=[].slice.call(e).map(function(l){return l(c)}),ne({},o,{dispatch:s=it.apply(void 0,i)(o.dispatch)})}}}var kr=Dr+"anon_id",xr=Dr+"user_id",Qr=Dr+"user_traits",_r="userId",Xr="anonymousId",Vt=["bootstrap","params","campaign","initializeStart","initialize","initializeEnd","ready","resetStart","reset","resetEnd","pageStart","page","pageEnd","pageAborted","trackStart","track","trackEnd","trackAborted","identifyStart","identify","identifyEnd","identifyAborted","userIdChanged","registerPlugins","enablePlugin","disablePlugin","online","offline","setItemStart","setItem","setItemEnd","setItemAborted","removeItemStart","removeItem","removeItemEnd","removeItemAborted"],Lo=["name","EVENTS","config","loaded"],te=Vt.reduce(function(e,r){return e[r]=r,e},{registerPluginType:function(e){return"registerPlugin:"+e},pluginReadyType:function(e){return"ready:"+e}}),qf=/^utm_/,xf=/^an_prop_/,Nf=/^an_trait_/;function Am(e){var r=e.storage.setItem;return function(t){return function(n){return function(a){if(a.type===te.bootstrap){var i=a.params,o=a.user,s=a.persistedUser,c=a.initialUser,l=s.userId===o.userId;s.anonymousId!==o.anonymousId&&r(kr,o.anonymousId),l||r(xr,o.userId),c.traits&&r(Qr,ne({},l&&s.traits?s.traits:{},c.traits));var u=Object.keys(a.params);if(u.length){var f=i.an_uid,h=i.an_event,d=u.reduce(function(v,m){if(m.match(qf)||m.match(/^(d|g)clid/)){var w=m.replace(qf,"");v.campaign[w==="campaign"?"name":w]=i[m]}return m.match(xf)&&(v.props[m.replace(xf,"")]=i[m]),m.match(Nf)&&(v.traits[m.replace(Nf,"")]=i[m]),v},{campaign:{},props:{},traits:{}});t.dispatch(ne({type:te.params,raw:i},d,f?{userId:f}:{})),f&&setTimeout(function(){return e.identify(f,d.traits)},0),h&&setTimeout(function(){return e.track(h,d.props)},0),Object.keys(d.campaign).length&&t.dispatch({type:te.campaign,campaign:d.campaign})}}return n(a)}}}}function jm(e){return function(r,t){if(r===void 0&&(r={}),t===void 0&&(t={}),t.type===te.setItemEnd){if(t.key===kr)return ne({},r,{anonymousId:t.value});if(t.key===xr)return ne({},r,{userId:t.value})}switch(t.type){case te.identify:return Object.assign({},r,{userId:t.userId,traits:ne({},r.traits,t.traits)});case te.reset:return[xr,kr,Qr].forEach(function(n){e.removeItem(n)}),Object.assign({},r,{userId:null,anonymousId:null,traits:{}});default:return r}}}function Df(e){return{userId:e.getItem(xr),anonymousId:e.getItem(kr),traits:e.getItem(Qr)}}var qo=function(e){return Dr+"TEMP"+Dr+e};function Um(e){var r=e.storage,t=r.setItem,n=r.removeItem,a=r.getItem;return function(i){return function(o){return function(s){var c=s.userId,l=s.traits,u=s.options;if(s.type===te.reset&&([xr,Qr,kr].forEach(function(d){n(d)}),[_r,Xr,"traits"].forEach(function(d){ht(qo(d))})),s.type===te.identify){a(kr)||t(kr,wn());var f=a(xr),h=a(Qr)||{};f&&f!==c&&i.dispatch({type:te.userIdChanged,old:{userId:f,traits:h},new:{userId:c,traits:l},options:u}),c&&t(xr,c),l&&t(Qr,ne({},h,l))}return o(s)}}}}var wt={};function $f(e,r){wt[e]&&Ke(wt[e])&&(wt[e](r),delete wt[e])}function Ah(e,r,t){return new Promise(function(n,a){return r()?n(e):t<1?a(ne({},e,{queue:!0})):new Promise(function(i){return setTimeout(i,10)}).then(function(i){return Ah(e,r,t-10).then(n,a)})})}function Lm(e){return{abort:e}}function jh(e,r,t){var n={},a=r(),i=e.getState(),o=i.plugins,s=i.queue,c=i.user;if(!i.context.offline&&s&&s.actions&&s.actions.length){var l=s.actions.reduce(function(f,h,d){return o[h.plugin].loaded?(f.process.push(h),f.processIndex.push(d)):(f.requeue.push(h),f.requeueIndex.push(d)),f},{processIndex:[],process:[],requeue:[],requeueIndex:[]});if(l.processIndex&&l.processIndex.length){l.processIndex.forEach(function(f){var h=s.actions[f],d=h.plugin,v=h.payload.type,m=a[d][v];if(m&&Ke(m)){var w,E=function(p,y){return p===void 0&&(p={}),y===void 0&&(y={}),[_r,Xr].reduce(function(k,A){return p.hasOwnProperty(A)&&y[A]&&y[A]!==p[A]&&(k[A]=y[A]),k},p)}(h.payload,c),b=n[E.meta.rid];if(!b&&(w=m({payload:E,config:o[d].config,instance:t,abort:Lm}))&&Ge(w)&&w.abort)return void(n[E.meta.rid]=!0);if(!b){var g=v+":"+d;e.dispatch(ne({},E,{type:g,_:{called:g,from:"queueDrain"}}))}}});var u=s.actions.filter(function(f,h){return!~l.processIndex.indexOf(h)});s.actions=u}}}var bo=function(e){var r=e.data,t=e.action,n=e.instance,a=e.state,i=e.allPlugins,o=e.allMatches,s=e.store,c=e.EVENTS;try{var l=a.plugins,u=a.context,f=t.type,h=f.match(et),d=r.exact.map(function(w){return w.pluginName});h&&(d=o.during.map(function(w){return w.pluginName}));var v=function(w,E){return function(b,g,p){var y=g.config,k=g.name,A=k+"."+b.type;p&&(A=p.event);var j=b.type.match(et)?function(z,H,ee,x,N){return function(q,O){var X=x?x.name:z,re=O&&Rt(O)?O:ee;if(x&&(!(re=O&&Rt(O)?O:[z]).includes(z)||re.length!==1))throw new Error("Method "+H+" can only abort "+z+" plugin. "+JSON.stringify(re)+" input valid");return ne({},N,{abort:{reason:q,plugins:re,caller:H,_:X}})}}(k,A,E,p,b):function(z,H){return function(){throw new Error(z.type+" action not cancellable. Remove abort in "+H)}}(b,A);return{payload:qm(b),instance:w,config:y||{},abort:j}}}(n,d),m=r.exact.reduce(function(w,E){var b=E.pluginName,g=E.methodName,p=!1;return g.match(/^initialize/)||g.match(/^reset/)||(p=!l[b].loaded),u.offline&&g.match(/^(page|track|identify)/)&&(p=!0),w[""+b]=p,w},{});return Promise.resolve(r.exact.reduce(function(w,E,b){try{var g=E.pluginName;return Promise.resolve(w).then(function(p){function y(){return Promise.resolve(p)}var k=function(){if(r.namespaced&&r.namespaced[g])return Promise.resolve(r.namespaced[g].reduce(function(A,j,z){try{return Promise.resolve(A).then(function(H){return j.method&&Ke(j.method)?(function(q,O){var X=Kf(q);if(X&&X.name===O){var re=Kf(X.method);throw new Error([O+" plugin is calling method "+q,"Plugins cant call self","Use "+X.method+" "+(re?"or "+re.method:"")+" in "+O+" plugin insteadof "+q].join(`
|
|
35
|
-
`))}}(j.methodName,j.pluginName),Promise.resolve(j.method({payload:H,instance:n,abort:(ee=H,x=g,N=j.pluginName,function(q,O){return ne({},ee,{abort:{reason:q,plugins:O||[x],caller:f,from:N||x}})}),config:Bf(j.pluginName,l,i),plugins:l})).then(function(q){var O=Ge(q)?q:{};return Promise.resolve(ne({},H,O))})):H;var ee,x,N})}catch(H){return Promise.reject(H)}},Promise.resolve(t))).then(function(A){p[g]=A});p[g]=t}();return k&&k.then?k.then(y):y()})}catch(p){return Promise.reject(p)}},Promise.resolve({}))).then(function(w){return Promise.resolve(r.exact.reduce(function(E,b,g){try{var p=r.exact.length===g+1,y=b.pluginName,k=i[y];return Promise.resolve(E).then(function(A){var j=w[y]?w[y]:{};if(h&&(j=A),Io(j,y))return So({data:j,method:f,instance:n,pluginName:y,store:s}),Promise.resolve(A);if(Io(A,y))return p&&So({data:A,method:f,instance:n,store:s}),Promise.resolve(A);if(m.hasOwnProperty(y)&&m[y]===!0)return s.dispatch({type:"queue",plugin:y,payload:j,_:{called:"queue",from:"queueMechanism"}}),Promise.resolve(A);var z=v(w[y],i[y]);return Promise.resolve(k[f]({abort:z.abort,payload:j,instance:n,config:Bf(y,l,i),plugins:l})).then(function(H){var ee=Ge(H)?H:{},x=ne({},A,ee),N=w[y];if(Io(N,y))So({data:N,method:f,instance:n,pluginName:y,store:s});else{var q=f+":"+y;(q.match(/:/g)||[]).length<2&&!f.match(Mf)&&!f.match(Ff)&&n.dispatch(ne({},h?x:j,{type:q,_:{called:q,from:"submethod"}}))}return Promise.resolve(x)})})}catch(A){return Promise.reject(A)}},Promise.resolve(t))).then(function(E){if(!(f.match(et)||f.match(/^registerPlugin/)||f.match(Ff)||f.match(Mf)||f.match(/^params/)||f.match(/^userIdChanged/))){if(c.plugins.includes(f),E._&&E._.originalAction===f)return E;var b=ne({},E,{_:{originalAction:E.type,called:E.type,from:"engineEnd"}});Uh(E,r.exact.length)&&!f.match(/End$/)&&(b=ne({},b,{type:E.type+"Aborted"})),s.dispatch(b)}return E})})}catch(w){return Promise.reject(w)}},et=/Start$/,Mf=/^bootstrap/,Ff=/^ready/;function So(e){var r=e.pluginName,t=e.method+"Aborted"+(r?":"+r:"");e.store.dispatch(ne({},e.data,{type:t,_:{called:t,from:"abort"}}))}function Bf(e,r,t){var n=r[e]||t[e];return n&&n.config?n.config:{}}function zf(e,r){return r.reduce(function(t,n){return n[e]?t.concat({methodName:e,pluginName:n.name,method:n[e]}):t},[])}function Hf(e,r){var t=e.replace(et,""),n=r?":"+r:"";return[""+e+n,""+t+n,t+"End"+n]}function Io(e,r){var t=e.abort;return!!t&&(t===!0||Gf(t,r)||t&&Gf(t.plugins,r))}function Uh(e,r){var t=e.abort;if(!t)return!1;if(t===!0||Or(t))return!0;var n=t.plugins;return Rt(t)&&t.length===r||Rt(n)&&n.length===r}function Rt(e){return Array.isArray(e)}function Gf(e,r){return!(!e||!Rt(e))&&e.includes(r)}function Kf(e){var r=e.match(/(.*):(.*)/);return!!r&&{method:r[1],name:r[2]}}function qm(e){return Object.keys(e).reduce(function(r,t){return t==="type"||(r[t]=Ge(e[t])?Object.assign({},e[t]):e[t]),r},{})}function xm(e,r,t){var n={};return function(a){return function(i){return function(o){try{var s,c=function(p){return s?p:i(f)},l=o.type,u=o.plugins,f=o;if(o.abort)return Promise.resolve(i(o));if(l===te.enablePlugin&&a.dispatch({type:te.initializeStart,plugins:u,disabled:[],fromEnable:!0,meta:o.meta}),l===te.disablePlugin&&setTimeout(function(){return $f(o.meta.rid,{payload:o})},0),l===te.initializeEnd){var h=r(),d=Object.keys(h),v=d.filter(function(p){return u.includes(p)}).map(function(p){return h[p]}),m=[],w=[],E=o.disabled,b=v.map(function(p){var y=p.loaded,k=p.name,A=p.config;return Ah(p,function(){return y({config:A})},1e4).then(function(j){return n[k]||(a.dispatch({type:te.pluginReadyType(k),name:k,events:Object.keys(p).filter(function(z){return!Lo.includes(z)})}),n[k]=!0),m=m.concat(k),p}).catch(function(j){if(j instanceof Error)throw new Error(j);return w=w.concat(j.name),j})});Promise.all(b).then(function(p){var y={plugins:m,failed:w,disabled:E};setTimeout(function(){d.length===b.length+E.length&&a.dispatch(ne({},{type:te.ready},y))},0)})}var g=function(){if(l!==te.bootstrap)return/^ready:([^:]*)$/.test(l)&&setTimeout(function(){return jh(a,r,e)},0),Promise.resolve(function(p,y,k,A,j){try{var z=Ke(y)?y():y,H=p.type,ee=H.replace(et,"");if(p._&&p._.called)return Promise.resolve(p);var x=k.getState(),N=(X=z,(re=x.plugins)===void 0&&(re={}),(Q=p.options)===void 0&&(Q={}),Object.keys(X).filter(function(S){var _=Q.plugins||{};return mm(_[S])?_[S]:_.all!==!1&&(!re[S]||re[S].enabled!==!1)}).map(function(S){return X[S]}));H===te.initializeStart&&p.fromEnable&&(N=Object.keys(x.plugins).filter(function(S){var _=x.plugins[S];return p.plugins.includes(S)&&!_.initialized}).map(function(S){return z[S]}));var q=N.map(function(S){return S.name}),O=function(S,_,D){var B=Hf(S).map(function(K){return zf(K,_)});return _.reduce(function(K,Z){var de=Z.name,ae=Hf(S,de).map(function(je){return zf(je,_)}),ue=ae[0],se=ae[1],Pe=ae[2];return ue.length&&(K.beforeNS[de]=ue),se.length&&(K.duringNS[de]=se),Pe.length&&(K.afterNS[de]=Pe),K},{before:B[0],beforeNS:{},during:B[1],duringNS:{},after:B[2],afterNS:{}})}(H,N);return Promise.resolve(bo({action:p,data:{exact:O.before,namespaced:O.beforeNS},state:x,allPlugins:z,allMatches:O,instance:k,store:A,EVENTS:j})).then(function(S){function _(){var K=function(){if(H.match(et))return Promise.resolve(bo({action:ne({},D,{type:ee+"End"}),data:{exact:O.after,namespaced:O.afterNS},state:x,allPlugins:z,allMatches:O,instance:k,store:A,EVENTS:j})).then(function(Z){Z.meta&&Z.meta.hasCallback&&$f(Z.meta.rid,{payload:Z})})}();return K&&K.then?K.then(function(){return S}):S}if(Uh(S,q.length))return S;var D,B=function(){if(H!==ee)return Promise.resolve(bo({action:ne({},S,{type:ee}),data:{exact:O.during,namespaced:O.duringNS},state:x,allPlugins:z,allMatches:O,instance:k,store:A,EVENTS:j})).then(function(K){D=K});D=S}();return B&&B.then?B.then(_):_()})}catch(S){return Promise.reject(S)}var X,re,Q}(o,r,e,a,t)).then(function(p){return s=1,i(p)})}();return Promise.resolve(g&&g.then?g.then(c):c(g))}catch(p){return Promise.reject(p)}}}}}function Nm(e){return function(r){return function(t){return function(n){var a=n.type,i=n.key,o=n.value,s=n.options;if(a===te.setItem||a===te.removeItem){if(n.abort)return t(n);a===te.setItem?e.setItem(i,o,s):e.removeItem(i,s)}return t(n)}}}}var Dm=function(){var e=this;this.before=[],this.after=[],this.addMiddleware=function(r,t){e[t]=e[t].concat(r)},this.removeMiddleware=function(r,t){var n=e[t].findIndex(function(a){return a===r});n!==-1&&(e[t]=[].concat(e[t].slice(0,n),e[t].slice(n+1)))},this.dynamicMiddlewares=function(r){return function(t){return function(n){return function(a){var i={getState:t.getState,dispatch:function(s){return t.dispatch(s)}},o=e[r].map(function(s){return s(i)});return it.apply(void 0,o)(n)(a)}}}}};function $m(e){return function(r,t){r===void 0&&(r={});var n={};if(t.type==="initialize:aborted")return r;if(/^registerPlugin:([^:]*)$/.test(t.type)){var a=Wf(t.type,"registerPlugin"),i=e()[a];if(!i||!a)return r;var o=t.enabled,s=i.config;return n[a]={enabled:o,initialized:!!o&&!i.initialize,loaded:!!o&&!!i.loaded({config:s}),config:s},ne({},r,n)}if(/^initialize:([^:]*)$/.test(t.type)){var c=Wf(t.type,te.initialize),l=e()[c];return l&&c?(n[c]=ne({},r[c],{initialized:!0,loaded:!!l.loaded({config:l.config})}),ne({},r,n)):r}if(/^ready:([^:]*)$/.test(t.type))return n[t.name]=ne({},r[t.name],{loaded:!0}),ne({},r,n);switch(t.type){case te.disablePlugin:return ne({},r,Vf(t.plugins,!1,r));case te.enablePlugin:return ne({},r,Vf(t.plugins,!0,r));default:return r}}}function Wf(e,r){return e.substring(r.length+1,e.length)}function Vf(e,r,t){return e.reduce(function(n,a){return n[a]=ne({},t[a],{enabled:r}),n},t)}function Lh(e){try{return JSON.parse(JSON.stringify(e))}catch{}return e}var Mm={last:{},history:[]};function Fm(e,r){e===void 0&&(e=Mm);var t=r.options,n=r.meta;if(r.type===te.track){var a=Lh(ne({event:r.event,properties:r.properties},Object.keys(t).length&&{options:t},{meta:n}));return ne({},e,{last:a,history:e.history.concat(a)})}return e}var Bm={actions:[]};function zm(e,r){e===void 0&&(e=Bm);var t=r.payload;switch(r.type){case"queue":var n;return n=t&&t.type&&t.type===te.identify?[r].concat(e.actions):e.actions.concat(r),ne({},e,{actions:n});case"dequeue":return[];default:return e}}var qh=/#.*$/;function Hm(e){var r=/(http[s]?:\/\/)?([^\/\s]+\/)(.*)/g.exec(e);return"/"+(r&&r[3]?r[3].split("?")[0].replace(qh,""):"")}var xh,Nh,Dh,$h,Gm=function(e){if(e===void 0&&(e={}),!Le)return e;var r=document,t=r.title,n=r.referrer,a=window,i=a.location,o=a.innerWidth,s=a.innerHeight,c=i.hash,l=i.search,u=function(h){var d=function(){if(Le){for(var v,m=document.getElementsByTagName("link"),w=0;v=m[w];w++)if(v.getAttribute("rel")==="canonical")return v.getAttribute("href")}}();return d?d.match(/\?/)?d:d+h:window.location.href.replace(qh,"")}(l),f={title:t,url:u,path:Hm(u),hash:c,search:l,width:o,height:s};return n&&n!==""&&(f.referrer=n),ne({},f,e)},Km={last:{},history:[]};function Wm(e,r){e===void 0&&(e=Km);var t=r.options;if(r.type===te.page){var n=Lh(ne({properties:r.properties,meta:r.meta},Object.keys(t).length&&{options:t}));return ne({},e,{last:n,history:e.history.concat(n)})}return e}xh=function(){if(!Le)return!1;var e=navigator.appVersion;return~e.indexOf("Win")?"Windows":~e.indexOf("Mac")?"MacOS":~e.indexOf("X11")?"UNIX":~e.indexOf("Linux")?"Linux":"Unknown OS"}(),Nh=Le?document.referrer:null,Dh=Pm(),$h=Em();var Jf={initialized:!1,sessionId:wn(),app:null,version:null,debug:!1,offline:!!Le&&!navigator.onLine,os:{name:xh},userAgent:Le?navigator.userAgent:"node",library:{name:"analytics",version:"0.12.13"},timezone:$h,locale:Dh,campaign:{},referrer:Nh};function Vm(e,r){e===void 0&&(e=Jf);var t=e.initialized,n=r.campaign;switch(r.type){case te.campaign:return ne({},e,{campaign:n});case te.offline:return ne({},e,{offline:!0});case te.online:return ne({},e,{offline:!1});default:return t?e:ne({},Jf,e,{initialized:!0})}}var Jm=["plugins","reducers","storage"];function Zm(e,r,t){if(Le){var n=window[(t?"add":"remove")+"EventListener"];e.split(" ").forEach(function(a){n(a,r)})}}function Ym(e){var r=Zm.bind(null,"online offline",function(t){return Promise.resolve(!navigator.onLine).then(e)});return r(!0),function(t){return r(!1)}}function Mh(){return Mr("analytics",[]),function(e){return function(r,t,n){var a=e(r,t,n),i=a.dispatch;return Object.assign(a,{dispatch:function(o){return at[nt].analytics.push(o.action||o),i(o)}})}}}function Zf(e){return function(){return it(it.apply(null,arguments),Mh())}}function Po(e){return e?Oh(e)?e:[e]:[]}function Yf(e,r,t){e===void 0&&(e={});var n,a,i=wn();return r&&(wt[i]=(n=r,a=function(o){for(var s,c=o||Array.prototype.slice.call(arguments),l=0;l<c.length;l++)if(Ke(c[l])){s=c[l];break}return s}(t),function(o){a&&a(o),n(o)})),ne({},e,{rid:i,ts:new Date().getTime()},r?{hasCallback:!0}:{})}function Xm(e){e===void 0&&(e={});var r=e.reducers||{},t=e.initialUser||{},n=(e.plugins||[]).reduce(function(S,_){if(Ke(_))return S.middlewares=S.middlewares.concat(_),S;if(_.NAMESPACE&&(_.name=_.NAMESPACE),!_.name)throw new Error("https://lytics.dev/errors/1");_.config||(_.config={});var D=_.EVENTS?Object.keys(_.EVENTS).map(function(Z){return _.EVENTS[Z]}):[];S.pluginEnabled[_.name]=!(_.enabled===!1||_.config.enabled===!1),delete _.enabled,_.methods&&(S.methods[_.name]=Object.keys(_.methods).reduce(function(Z,de){var ae;return Z[de]=(ae=_.methods[de],function(){for(var ue=Array.prototype.slice.call(arguments),se=new Array(ae.length),Pe=0;Pe<ue.length;Pe++)se[Pe]=ue[Pe];return se[se.length]=y,ae.apply({instance:y},se)}),Z},{}),delete _.methods);var B=Object.keys(_).concat(D),K=new Set(S.events.concat(B));if(S.events=Array.from(K),S.pluginsArray=S.pluginsArray.concat(_),S.plugins[_.name])throw new Error(_.name+"AlreadyLoaded");return S.plugins[_.name]=_,S.plugins[_.name].loaded||(S.plugins[_.name].loaded=function(){return!0}),S},{plugins:{},pluginEnabled:{},methods:{},pluginsArray:[],middlewares:[],events:[]}),a=e.storage?e.storage:{getItem:$r,setItem:Mr,removeItem:ht},i=function(S){return function(_,D,B){return D.getState("user")[_]||(B&&Ge(B)&&B[_]?B[_]:Df(S)[_]||$r(qo(_))||null)}}(a),o=n.plugins,s=n.events.filter(function(S){return!Lo.includes(S)}).sort(),c=new Set(s.concat(Vt).filter(function(S){return!Lo.includes(S)})),l=Array.from(c).sort(),u=function(){return o},f=new Dm,h=f.addMiddleware,d=f.removeMiddleware,v=f.dynamicMiddlewares,m=function(){throw new Error("Abort disabled inListener")},w=Rm(),E=Df(a),b=ne({},E,t,w.an_uid?{userId:w.an_uid}:{},w.an_aid?{anonymousId:w.an_aid}:{});b.anonymousId||(b.anonymousId=wn());var g=ne({enable:function(S,_){return new Promise(function(D){O.dispatch({type:te.enablePlugin,plugins:Po(S),_:{originalAction:te.enablePlugin}},D,[_])})},disable:function(S,_){return new Promise(function(D){O.dispatch({type:te.disablePlugin,plugins:Po(S),_:{originalAction:te.disablePlugin}},D,[_])})}},n.methods),p=!1,y={identify:function(S,_,D,B){try{var K=Or(S)?S:null,Z=Ge(S)?S:_,de=D||{},ae=y.user();Mr(qo(_r),K);var ue=K||Z.userId||i(_r,y,Z);return Promise.resolve(new Promise(function(se){O.dispatch(ne({type:te.identifyStart,userId:ue,traits:Z||{},options:de,anonymousId:ae.anonymousId},ae.id&&ae.id!==K&&{previousId:ae.id}),se,[_,D,B])}))}catch(se){return Promise.reject(se)}},track:function(S,_,D,B){try{var K=Ge(S)?S.event:S;if(!K||!Or(K))throw new Error("EventMissing");var Z=Ge(S)?S:_||{},de=Ge(D)?D:{};return Promise.resolve(new Promise(function(ae){O.dispatch({type:te.trackStart,event:K,properties:Z,options:de,userId:i(_r,y,_),anonymousId:i(Xr,y,_)},ae,[_,D,B])}))}catch(ae){return Promise.reject(ae)}},page:function(S,_,D){try{var B=Ge(S)?S:{},K=Ge(_)?_:{};return Promise.resolve(new Promise(function(Z){O.dispatch({type:te.pageStart,properties:Gm(B),options:K,userId:i(_r,y,B),anonymousId:i(Xr,y,B)},Z,[S,_,D])}))}catch(Z){return Promise.reject(Z)}},user:function(S){if(S===_r||S==="id")return i(_r,y);if(S===Xr||S==="anonId")return i(Xr,y);var _=y.getState("user");return S?Af(_,S):_},reset:function(S){return new Promise(function(_){O.dispatch({type:te.resetStart},_,S)})},ready:function(S){return p&&S({plugins:g,instance:y}),y.on(te.ready,function(_){S(_),p=!0})},on:function(S,_){if(!S||!Ke(_))return!1;if(S===te.bootstrap)throw new Error(".on disabled for "+S);var D=/Start$|Start:/;if(S==="*"){var B=function(ae){return function(ue){return function(se){return se.type.match(D)&&_({payload:se,instance:y,plugins:o}),ue(se)}}},K=function(ae){return function(ue){return function(se){return se.type.match(D)||_({payload:se,instance:y,plugins:o}),ue(se)}}};return h(B,Ft),h(K,Bt),function(){d(B,Ft),d(K,Bt)}}var Z=S.match(D)?Ft:Bt,de=function(ae){return function(ue){return function(se){return se.type===S&&_({payload:se,instance:y,plugins:o,abort:m}),ue(se)}}};return h(de,Z),function(){return d(de,Z)}},once:function(S,_){if(!S||!Ke(_))return!1;if(S===te.bootstrap)throw new Error(".once disabled for "+S);var D=y.on(S,function(B){_({payload:B.payload,instance:y,plugins:o,abort:m}),D()});return D},getState:function(S){var _=O.getState();return S?Af(_,S):Object.assign({},_)},dispatch:function(S){var _=Or(S)?{type:S}:S;if(Vt.includes(_.type))throw new Error("reserved action "+_.type);var D=ne({},_,{_:ne({originalAction:_.type},S._||{})});O.dispatch(D)},enablePlugin:g.enable,disablePlugin:g.disable,plugins:g,storage:{getItem:a.getItem,setItem:function(S,_,D){O.dispatch({type:te.setItemStart,key:S,value:_,options:D})},removeItem:function(S,_){O.dispatch({type:te.removeItemStart,key:S,options:_})}},setAnonymousId:function(S,_){y.storage.setItem(kr,S,_)},events:{core:Vt,plugins:s}},k=n.middlewares.concat([function(S){return function(_){return function(D){return D.meta||(D.meta=Yf()),_(D)}}},v(Ft),xm(y,u,{all:l,plugins:s}),Nm(a),Am(y),Um(y),v(Bt)]),A={context:Vm,user:jm(a),page:Wm,track:Fm,plugins:$m(u),queue:zm},j=it,z=it;if(Le&&e.debug){var H=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;H&&(j=H({trace:!0,traceLimit:25})),z=function(){return arguments.length===0?Mh():Ge(typeof arguments[0])?Zf():Zf().apply(null,arguments)}}var ee,x=function(S){return Object.keys(S).reduce(function(_,D){return Jm.includes(D)||(_[D]=S[D]),_},{})}(e),N=n.pluginsArray.reduce(function(S,_){var D=_.name,B=_.config,K=_.loaded,Z=n.pluginEnabled[D];return S[D]={enabled:Z,initialized:!!Z&&!_.initialize,loaded:!!K({config:B}),config:B},S},{}),q={context:x,user:b,plugins:N},O=Ch(function(S){for(var _=Object.keys(S),D={},B=0;B<_.length;B++){var K=_[B];typeof S[K]===Tr&&(D[K]=S[K])}var Z,de=Object.keys(D);try{(function(ae){Object.keys(ae).forEach(function(ue){var se=ae[ue];if(typeof se(void 0,{type:"@@redux/INIT"})===Sr||typeof se(void 0,{type:Om})===Sr)throw new Error("reducer "+ue+" "+Sr)})})(D)}catch(ae){Z=ae}return function(ae,ue){if(ae===void 0&&(ae={}),Z)throw Z;for(var se=!1,Pe={},je=0;je<de.length;je++){var Fe=de[je],Ce=ae[Fe],Ve=(0,D[Fe])(Ce,ue);if(typeof Ve===Sr){var lr=km(Fe,ue);throw new Error(lr)}Pe[Fe]=Ve,se=se||Ve!==Ce}return se?Pe:ae}}(ne({},A,r)),q,z(j(Cm.apply(void 0,k))));O.dispatch=(ee=O.dispatch,function(S,_,D){var B=ne({},S,{meta:Yf(S.meta,_,Po(D))});return ee.apply(null,[B])});var X=Object.keys(o);O.dispatch({type:te.bootstrap,plugins:X,config:x,params:w,user:b,initialUser:t,persistedUser:E});var re=X.filter(function(S){return n.pluginEnabled[S]}),Q=X.filter(function(S){return!n.pluginEnabled[S]});return O.dispatch({type:te.registerPlugins,plugins:X,enabled:n.pluginEnabled}),n.pluginsArray.map(function(S,_){var D=S.bootstrap,B=S.config,K=S.name;D&&Ke(D)&&D({instance:y,config:B,payload:S}),O.dispatch({type:te.registerPluginType(K),name:K,enabled:n.pluginEnabled[K],plugin:S}),n.pluginsArray.length===_+1&&O.dispatch({type:te.initializeStart,plugins:re,disabled:Q})}),Ym(function(S){O.dispatch({type:S?te.offline:te.online})}),function(S,_,D){setInterval(function(){return jh(S,_,D)},3e3)}(O,u,y),y}var Ft="before",Bt="after",St="cookie",Ur=zh(),Fh=bn,Qm=bn;function Bh(e){return Ur?bn(e,"",-1):ht(e)}function zh(){if(Ur!==void 0)return Ur;var e="cookiecookie";try{bn(e,e),Ur=document.cookie.indexOf(e)!==-1,Bh(e)}catch{Ur=!1}return Ur}function bn(e,r,t,n,a,i){if(typeof window<"u"){var o=arguments.length>1;return Ur===!1&&(o?Mr(e,r):$r(e)),o?document.cookie=e+"="+encodeURIComponent(r)+(t?"; expires="+new Date(+new Date+1e3*t).toUTCString()+(n?"; path="+n:"")+(a?"; domain="+a:"")+(i?"; secure":""):""):decodeURIComponent((("; "+document.cookie).split("; "+e+"=")[1]||"").split(";")[0])}}var It="localStorage",eg=fs.bind(null,"localStorage");vt("localStorage","getItem",$r);vt("localStorage","setItem",Mr);vt("localStorage","removeItem",ht);var Pt="sessionStorage",rg=fs.bind(null,"sessionStorage");vt("sessionStorage","getItem",$r);vt("sessionStorage","setItem",Mr);vt("sessionStorage","removeItem",ht);function rt(e){var r=e;try{if((r=JSON.parse(e))==="true")return!0;if(r==="false")return!1;if(Ge(r))return r;parseFloat(r)===r&&(r=parseFloat(r))}catch{}if(r!==null&&r!=="")return r}var tg=eg(),ng=rg(),ag=zh();function Hh(e,r){if(e){var t=ds(r),n=!ms(t),a=hs(t)?rt(localStorage.getItem(e)):void 0;if(n&&!Yr(a))return a;var i=vs(t)?rt(Fh(e)):void 0;if(n&&i)return i;var o=ps(t)?rt(sessionStorage.getItem(e)):void 0;if(n&&o)return o;var s=$r(e);return n?s:{localStorage:a,sessionStorage:o,cookie:i,global:s}}}function ig(e,r,t){if(e&&!Yr(r)){var n={},a=ds(t),i=JSON.stringify(r),o=!ms(a);return hs(a)&&(n[It]=zt(It,r,rt(localStorage.getItem(e))),localStorage.setItem(e,i),o)?n[It]:vs(a)&&(n[St]=zt(St,r,rt(Fh(e))),Qm(e,i),o)?n[St]:ps(a)&&(n[Pt]=zt(Pt,r,rt(sessionStorage.getItem(e))),sessionStorage.setItem(e,i),o)?n[Pt]:(n[bt]=zt(bt,r,$r(e)),Mr(e,r),o?n[bt]:n)}}function og(e,r){if(e){var t=ds(r),n=Hh(e,Rh),a={};return!Yr(n.localStorage)&&hs(t)&&(localStorage.removeItem(e),a[It]=n.localStorage),!Yr(n.cookie)&&vs(t)&&(Bh(e),a[St]=n.cookie),!Yr(n.sessionStorage)&&ps(t)&&(sessionStorage.removeItem(e),a[Pt]=n.sessionStorage),!Yr(n.global)&&Sn(t,bt)&&(ht(e),a[bt]=n.global),a}}function ds(e){return e?Or(e)?e:e.storage:Eh}function hs(e){return tg&&Sn(e,It)}function vs(e){return ag&&Sn(e,St)}function ps(e){return ng&&Sn(e,Pt)}function ms(e){return e===Rh||e==="all"}function Sn(e,r){return e===Eh||e===r||ms(e)}function zt(e,r,t){return{location:e,current:r,previous:t}}var sg={setItem:ig,getItem:Hh,removeItem:og};function ug(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Xf(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,n)}return t}function Qf(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Xf(Object(t),!0).forEach(function(n){ug(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Xf(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function cg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r={storage:sg};return Xm(Qf(Qf({},r),e))}function lg(e,r){r=r||{};var t,n,a=[],i=r.max||1/0;function o(){clearInterval(t),e(a.splice(0,i)),s()}function s(){t=setInterval(o,r.interval||1e4)}return s(),{flush:o,push:function(c){return n=a.push(c),n>=i&&o(),n},size:function(){return a.length},end:function(c){c&&o(),clearInterval(t)}}}const Gh="@sesamy/sesamy-js",gs="1.37.2";function fg(e){if(typeof window>"u")return;const{addEventListener:r,history:t,location:n}=window;let a=n.pathname;r("popstate",()=>e(n.pathname)),["push","replace"].map(i=>{const o=`${i}State`;if(o!=="pushState"&&o!=="replaceState")return;const s=t[o];t[o]=function(...c){const l=c[2]?.toString()||"",u=hg(l);return a!==u&&(a=u,setTimeout(()=>e(l),0)),s.apply(t,c)}})}function dg(e,r){const t=e.indexOf(r);return t>-1?e.slice(0,t):e}function hg(e){return["#","?"].forEach(r=>e=dg(e,r)),e}function vg(){fg(()=>{br.page()})}function pg(e){if(e===void 0&&(e={}),!Le)return Uo;var r=rd(),t=xo(),n=ed(),a=Ht(n,r),i=Ht(t,r),o=[],s=[],c=[],l=n,u=a,f=i,h=Object.keys(e);if(!h.length)return Uo;var d=h.map(function(m){return Number(m)}),v=Tm(function(){var m=rd(),w=function(x,N){return N.map(function(q){return q===100?x-5:x*(q/100)})}(m,d),E=xo(),b=ed(),g=Ht(b,m),p=Ht(E,m);if(u=g>u?g:u,f=p<f?p:f,!(o.length>=d.length)){var y=l===b,k="up";y?k="initial":l<=b&&(k="down");var A=w,j=d;(k==="up"||y)&&(A=w.slice().reverse(),j=d.slice().reverse());var z=j.reduce(function(x,N,q){var O=A[q];return c.includes(N)&&b<=O&&(c=c.filter(function(X){return X!==N}),x.singleFunction=N),k==="down"&&!o.includes(N)&&b>=O&&N>i?(s.push(N),x.callbacks=x.callbacks.concat(N),x):k==="up"&&!o.includes(N)&&b<=O&&N<=g?(x.foundFunc=[N],x):(y&&b>=O&&x.foundFunc.length===0&&(x.foundFunc=[N]),!s.includes(N)&&b>=O&&(s.push(N),x.singleFunction?c.push(N):x.singleFunction=N),x)},{foundFunc:[],singleFunction:null,callbacks:[],direction:k});if(l=b,k==="down"&&z.callbacks&&z.callbacks.forEach(function(x){Ke(e[x])&&(e[x]({trigger:x,direction:k,scrollMin:f,scrollMax:u,range:[f,u]}),o.push(x))}),z.singleFunction){var H=z.singleFunction,ee=z.direction;Ke(e[H])&&e[H]({trigger:H,direction:ee,scrollMin:f,scrollMax:u,range:[f,u]}),o.push(H)}}},500);return window.addEventListener("scroll",v),function(){return window.removeEventListener("scroll",v)}}function xo(){return Le?document.body.scrollTop||document.documentElement.scrollTop:0}function mg(){return Le?window.innerHeight||document.documentElement.clientHeight:0}function ed(){return Math.round(xo()+mg())}function rd(){if(!Le)return 0;var e=document.body,r=document.documentElement;return Math.max(e.scrollHeight,e.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight)}function Ht(e,r){return Math.round(e/r*100)}var td="EventListener";function gg(e){return function(r,t,n,a){var i=n||Uo,o=a||!1;if(!Le)return i;var s=en(t),c=en(r,!0);if(!c.length)throw new Error("noElements");if(!s.length)throw new Error("noEvent");var l=[];return function u(f){f&&(l=[]);for(var h=f?"add"+td:"remove"+td,d=0;d<c.length;d++){var v=c[d];l[d]=f?o&&o.once?yg(i):i:l[d]||i;for(var m=0;m<s.length;m++)v[h]?v["on"+s[m]]=f?l[d]:null:v[h](s[m],l[d],o)}return u.bind(null,!f)}(e)}}function en(e,r){if(Or(e))return r?en(document.querySelectorAll(e)):(t=e).split(t.indexOf(",")>-1?",":" ").map(function(o){return o.trim()});var t;if(NodeList.prototype.isPrototypeOf(e)){for(var n=[],a=e.length>>>0;a--;)n[a]=e[a];return n}var i=Im(e);return r?i.map(function(o){return Or(o)?en(o,!0):o}).flat():i}function yg(e,r){var t;return function(){return e&&(t=e.apply(this,arguments),e=null),t}}var Eo=gg("Event");function Kh(e,r){return Le&&Ke(window[e])?(t=window[e],n=r,(a=window)===void 0&&(a=null),Ke(t)?function(){t.apply(a,arguments),n.apply(a,arguments)}:n):window[e]=r;var t,n,a}Kh.bind(null,"onerror");Kh.bind(null,"onload");var Wh=typeof window>"u",nd="hidden";function wg(e){if(Wh)return!1;var r=bg(),t="".concat(r.replace(/[H|h]idden/,""),"visibilitychange"),n=function(){return e(!!document[r])},a=function(){return document.addEventListener(t,n)};return a(),function(){return document.removeEventListener(t,n),a}}function bg(){var e=["webkit","moz","ms","o"];return Wh||nd in document?nd:e.reduce(function(r,t){var n=t+"Hidden";return!r&&n in document?n:r},null)}var Sg=["mousemove","mousedown","touchmove","touchstart","touchend","keydown"];function Ig(e,r){r===void 0&&(r={});var t=function(o,s){var c=this,l=!1;return function(u){l||(o.call(c,u),l=!0,setTimeout(function(){return l=!1},s))}}(e,r.throttle||1e4),n=[];function a(){var o=wg(function(s){s||t({type:"tabVisible"})});return n=[o].concat(Sg.map(function(s){return Eo(document,s,t)})).concat(Eo(window,"load",t)).concat(Eo(window,"scroll",t,{capture:!0,passive:!0})),i}function i(){n.map(function(o){return o()})}return a(),function(){return i(),a}}function Pg(e){var r,t,n=e.onIdle,a=e.onWakeUp,i=e.onHeartbeat,o=e.timeout,s=o,c=e.throttle,l=c===void 0?2e3:c,u=!1,f=!1,h=new Date,d=function(){return clearTimeout(r)};function v(w){d(),i&&!u&&i(yt(h),w),a&&u&&(u=!1,a(yt(t),w),h=new Date),r=setTimeout(function(){u=!0,n&&(t=new Date,n(yt(h),w))},s)}var m=Ig(v,{throttle:l});return{disable:function(){f=!0,u=!1,d();var w=m();return function(){return f=!1,h=new Date,v({type:"load"}),w()}},getStatus:function(){return{isIdle:u,isDisabled:f,active:u?0:yt(h,f),idle:u?yt(t,f):0}}}}function yt(e,r){return r?0:Math.round((new Date-e)/1e3)}const ad=5e3;class Eg{element;isInViewport=!1;isAwake=!1;isFlushing;observer;lastEventAt=Date.now();registeredView=!1;viewCallback;activeDurationCallback;idleDurationCallback;scrollCallback;constructor(r){this.element=r.element,this.viewCallback=r.viewCallback,this.activeDurationCallback=r.activeDurationCallback,this.idleDurationCallback=r.idleDurationCallback,this.scrollCallback=r.scrollCallback,this.observer=new IntersectionObserver(t=>{t.forEach(n=>{this.handleInViewPort(n.isIntersecting)})},{threshold:0}),this.observer.observe(this.element),Pg({onIdle:t=>this.handleAwake(!1,t),onWakeUp:t=>this.handleAwake(!0,t),timeout:ad}),pg({25:this.handleScroll.bind(this),50:this.handleScroll.bind(this),75:this.handleScroll.bind(this),90:this.handleScroll.bind(this),100:this.handleScroll.bind(this)})}flush(){this.isFlushing=!0,this.handleAwake(!this.isAwake)}handleInViewPort(r){r?(this.isAwake=!0,this.trackInViewport()):this.handleAwake(!1),this.isInViewport=r}handleAwake(r,t=Math.round((Date.now()-this.lastEventAt)/1e3)){this.isAwake=r,this.lastEventAt=r?Date.now()-t*ad:Date.now(),this.isInViewport&&this.trackAwake(r,t)}handleScroll(r){this.scrollCallback&&this.scrollCallback(r)}handleVisibilityChange(){this.isAwake=!1;const r=Math.round((Date.now()-this.lastEventAt)/1e3);r>1&&(this.lastEventAt=Date.now(),this.trackAwake(!1,r))}trackAwake(r,t){!r&&this.activeDurationCallback&&this.activeDurationCallback(t,this.isFlushing,this.lastEventAt),r&&this.idleDurationCallback&&this.idleDurationCallback(t,this.isFlushing,this.lastEventAt)}trackInViewport(){this.registeredView||(this.registeredView=!0,this.viewCallback&&this.viewCallback())}}const id="sesamy_session_id";function Rg(){let e=sessionStorage.getItem(id);return e||(e=Math.random().toString(36).slice(2,9),sessionStorage.setItem(id,e)),e}function Vh(e){function r(n){return n.id?`#${n.id}`:n.classList.length>0?Array.from(n.classList).map(i=>`.${i}`).join(""):null}function t(n){const a=[];let i=n;for(;i&&i!==document.body&&i!==document.documentElement;){const o=r(i);if(o){a.unshift(o);break}if(i.parentElement){const s=Array.from(i.parentElement.children),c=s.indexOf(i)+1,l=i.tagName.toLowerCase();s.filter(f=>f.tagName.toLowerCase()===l).length>1?a.unshift(`${l}:nth-child(${c})`):a.unshift(l)}i=i.parentElement}return a.join(" > ")}return t(e)}let Ze={article:{selector:"sesamy-article"},image:{selector:"img",attribute:"src"},title:{selector:"h1",attribute:"textContent"},excerpt:{selector:"p",attribute:"textContent"},price:{selector:"sesamy-article",attribute:"price"},currency:{selector:"sesamy-article",attribute:"currency"},url:{selector:"sesamy-article",attribute:"item-src"},accessLevel:{selector:"sesamy-article",attribute:"access-level"},id:{selector:"sesamy-article",attribute:"publisher-content-id"},pass:{selector:"sesamy-article",attribute:"pass"}},Jt;function _g(e,r){Ze={...Ze,...e.content?.article},Jt=r}function Tg(e,r){const{selector:t}=r;return t===Ze.article.selector?e:e.querySelector(t)}function Jh(e,r){if(e)return r.attribute?r.attribute==="textContent"?e.textContent??void 0:e.getAttribute(r.attribute)??Jh(e.parentElement,r):e.textContent??void 0}function tt(e){const r=document.head.querySelectorAll(`[property~='${e}'][content]`);for(let n=0;n<r.length;n+=1)if(r[n].content)return r[n].content;const t=document.head.querySelectorAll(`[name~='${e}'][content]`);for(let n=0;n<t.length;n+=1)if(t[n].content)return t[n].content}function Zh({publisherContentId:e,key:r,defaultValue:t=""}){return(e?document.body.querySelector(`sesamy-content-data[id='${e}']`):null)?.getAttribute(r)||tt(`sesamy:${r}`)||tt(`og:${r}`)||tt(r)||t}function Og(){const e=document.querySelectorAll(Ze.article.selector);return Array.from(e).map(ys).filter(r=>r!==null)}function ys(e){const r=typeof e=="string"?document.querySelector(e):e;if(!r)return null;const t={element:r,selector:typeof e=="string"?e:Vh(r)},n=(a,i,o,s)=>{const c=Tg(r,i);if(c){const l=Jh(c,i)||Zh({publisherContentId:o,key:a});l!==void 0&&(t[a]=s?s(l):l)}};return n("id",Ze.id),n("title",Ze.title,t.id),n("excerpt",Ze.excerpt,t.id),n("image",Ze.image,t.id),n("price",Ze.price,t.id,a=>parseFloat(a)),n("currency",Ze.currency,t.id),n("url",Ze.url,t.id),n("pass",Ze.pass,t.id),n("accessLevel",Ze.accessLevel,t.id,a=>a||"entitlement"),t}async function kg(e,r){const t=typeof e=="string"?document.querySelector(e):e;if(!t)throw new Error("Could not find element");const n=ys(t);if(!n?.url)throw new Error("Could not find content for element");const a=await Jt.entitlements.hasAccess(n.url||"",n.pass?.split(",")||[]);if(!a)throw new Error("User does not have access to the content");const i=await Jt.entitlements.access(a.id);if(!i.token)throw new Error("Could not get access token");const o=r||Vh(t.parentElement||t);return Jt.proxy.getContent(i.token,n.url,o)}function Yh(e){document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}let Xh=!1,No,od,rn;const Qh=new Map;function Cg({clientId:e,enabled:r=!0,environment:t}){No=e,od=r,rn=`${vr("logs",t)}/events`,od&&(window.addEventListener("beforeunload",()=>{tv.forEach((n,a)=>{n.bind(a)()}),Ag()}),window.addEventListener("visibilitychange",()=>{document.visibilityState!=="visible"&&Qh.forEach((n,a)=>{n.bind(a)()})}),vg(),Yh(()=>{const n=new Eg({element:document.body,viewCallback:()=>{br.page()},activeDurationCallback:(a,i,o)=>{br.track("activeDuration",{duration:a,durationStart:o,flushing:i})},idleDurationCallback:(a,i,o)=>{br.track("idleDuration",{duration:a,durationStart:o,flushing:i})},scrollCallback:a=>{br.track("scroll",{scroll:a.scrollMax})}});jg(document.body,()=>{n.flush()}),Ug(document.body,()=>{n.handleVisibilityChange()})}),window.addEventListener(We.AUTHENTICATED,async n=>{const a=n;await br.identify(a.detail.sub)}),window.addEventListener(We.LOGOUT,async()=>{await br.track("logout",{}),ws.flush(),await br.reset()}))}function ev(e){return JSON.stringify(e.map(r=>({...r,clientId:No,requestId:Math.random().toString(36).slice(2,9),sessionId:Rg(),timestamp:new Date().toISOString(),version:gs,event:r.event,context:{page:{url:window.location.href,title:document.title,referrer:document.referrer,itemSrc:tt("sesamy:item-src"),publisherContentId:tt("sesamy:publisher-content-id")},locale:navigator.language,library:Gh,userAgent:navigator.userAgent,clientId:No}})))}const ws=lg(async e=>{if(e.length>0){const r=ev(e);Xh?navigator.sendBeacon(rn,r):(await fetch(rn,{method:"POST",body:r,headers:{"Content-Type":"text/plain"}})).ok}},{max:10,interval:3e3});function Ro(e){if(e.anonymousId)if(e.properties?.flushing){const r={...e};delete r.properties.flushing,navigator.sendBeacon(rn,ev([r]))}else ws.push(e)}const br=cg({app:Gh,version:gs,plugins:[{name:"custom-analytics-plugin",page:({payload:e})=>{const{properties:r,anonymousId:t,userId:n,event:a}=e;Ro({anonymousId:t,userId:n,properties:r,event:a,type:"page"})},track:({payload:e})=>{const{properties:r,anonymousId:t,userId:n,event:a}=e;Ro({anonymousId:t,userId:n,properties:r,event:a,type:"track"})},identify:({payload:e})=>{const{properties:r,anonymousId:t,userId:n}=e;Ro({anonymousId:t,userId:n,properties:r,type:"identify"})}}]});function rv(e,r){br.track(e,r)}function Ag(){return Xh=!0,ws.flush()}const tv=new Map;function jg(e,r){tv.set(e,r)}function Ug(e,r){Qh.set(e,r)}function nv(e,r,t=!1){const n={name:e,data:r},a=new CustomEvent(e,{detail:n,cancelable:t,bubbles:!0});rv(`event:${e}`,{...r,timestamp:new Date().toISOString()});const i=window.dispatchEvent(a);return t&&!i?{canceled:!0,message:n.cancellationMessage}:{canceled:!1}}function Lg(e,r){e.cancelable&&(e.detail.cancellationMessage=r,e.preventDefault())}let $e,av,Do=!1,Zt=!1;Et()&&window.addEventListener("pageshow",()=>{Zt=!1});const ot="sesamyAccessToken",_o="sesamyRefreshToken";async function In(){return Do?!0:new Promise((e,r)=>{const t=setTimeout(()=>{Do?e(!0):r(new Error("Initialization failed: Timeout"))},2e3);window.addEventListener(We.AUTH_INITIALIZED,()=>{clearTimeout(t),e(!0)})})}async function qg(e){if(!e)return null;const r=localStorage.getItem(_o);if(!r)return ye("No refresh token found in localstorage"),null;const t=new URLSearchParams;t.set("client_id",e.iss),t.set("refresh_token",r),t.set("grant_type","refresh_token");const n=new URL(e.iss);n.pathname="/oauth/token",n.searchParams.set("user_id",e.sub);try{const a=await fetch(n.href,{body:t.toString(),method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"}});if(!a.ok)throw localStorage.removeItem(_o),new Error("Renew token failed");const i=await a.json();return localStorage.setItem(_o,i.refresh_token),localStorage.setItem(ot,i.access_token),i.access_token}catch{Ss()}}async function bs(){const e=localStorage.getItem(ot);if(!e)return null;const r=Is(e);if(!r||!r.exp||r.exp<new Date().getTime()/1e3){const t=await qg(r);if(t)return t;localStorage.removeItem(ot)}return e}let Gt=null;function xg(){try{if(Gt!==null)return Gt;const r=Object.keys(localStorage).filter(t=>t.startsWith("@@auth0spajs@@"));for(const t of r){const n=JSON.parse(localStorage.getItem(t)||"{}");if(typeof n=="object"&&"refresh_token"in n)return Gt=!0,!0}}catch(e){ye(`Error checking for existing auth0 tokens: ${e.message}`)}return Gt=!1,!1}function sd(e){try{const r=new URL(e).hostname,t=r.split(".");return t.length>1?t.slice(-2).join("."):r}catch{return null}}async function Ng(e){if(e.enabled===!1)return;av=e.organization;const r=e.domain&&!xg()?e.domain:Ph("token",e.environment),t={domain:r,clientId:e.clientId,useCookiesForTransactions:!0};t.cacheLocation="localstorage",sd(window.location.href)!==sd(`https://${r}`)&&(t.useRefreshTokens=!0),ye(`Initializing auth0 client: ${JSON.stringify(t)}`),$e=await om(t);const n=new URLSearchParams(window.location.search),a=n.get("code"),i=n.get("state");if(a)if(window.opener)ye("Code found in URL, posting to opener"),window.opener.postMessage({type:"authorization_response",response:{code:a,state:i}},window.location.origin);else{ye("Code found in URL, handling redirect");try{const c=await $e.handleRedirectCallback();ye(`Login result: ${JSON.stringify(c)}`);const l=await $e.getUser();if(!l)throw ye("No user found"),new Error("No user found");ye(`User found ${JSON.stringify(l)}`),Ir(We.AUTHENTICATED,l),ye("Rewrite url")}catch(c){alert("There was an error logging in"),console.error(c)}const o=new URL(location.href),s=o.searchParams;s.delete("code"),s.delete("state"),o.search=s.toString(),window.history.replaceState({},document.title,o.toString())}Do=!0,Ir(We.AUTH_INITIALIZED,{})}async function _t(){return await In(),await bs()?!0:$e?$e.isAuthenticated():!1}async function Dg(){return await In(),await bs()?(ye("Using local user"),{sub:"local",name:"Local User"}):$e?$e.getUser():null}function iv(e){if(Zt)return ye("Login already in progress"),null;if(Zt=!0,setTimeout(()=>{Zt=!1},3e3),localStorage.removeItem(ot),!$e)throw new Error("Auth0 client not initialized");const r=e?.authorizationParams||{};return{...e,authorizationParams:{organization:av,redirect_uri:window.location.href,ui_locales:Yt(),incognito:ls(),...r}}}async function Pn(e){const r=iv(e);if(r)return $e.loginWithRedirect(r)}async function ov(e){const r=iv(e);if(!r)return;await $e.loginWithPopup(r),nv(We.AUTHENTICATED,await $e.getUser()).canceled||window.location.reload()}async function $g(e){return await ls()?ov(e):Pn(e)}async function Zr(e=!0,r=!1){await In();const t=await bs();if(t)return t;try{if(!$e)return ye("Auth client not initialized"),null;let n=await $e.getTokenSilently();const a=Is(n);return r&&a?.exp&&a.exp+3600<new Date().getTime()/1e3&&(n=await $e.getTokenSilently({cacheMode:r?"off":"on"})),n}catch(n){const a=n;if(ye(`Failed to get token silently: ${a.message}`),a.message==="Invalid refresh token"&&await Ss(),e)throw n;return null}}async function Ss(e={}){if(await In(),localStorage.removeItem(ot),Ir(We.LOGOUT,{}),!!$e)return ye(`Logout with options: ${JSON.stringify(e)}`),$e.logout({...e,logoutParams:{returnTo:window.location.href,...e.logoutParams}})}function Is(e){const r=e.split(".");if(r.length!==3)return null;const n=r[1].replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(atob(n).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(a)}async function $o(e){const r=Is(e);if(!r||!r.exp||r.exp<new Date().getTime()/1e3)throw new Error("Invalid token");ye("Set token"),localStorage.setItem(ot,e),Ir(We.AUTHENTICATED,r)}const Mg=(e,r)=>r.skipDedupe||r.method!=="GET",Fg=(e,r)=>r.method+"@"+e,Bg=e=>e.clone(),ud=({skip:e=Mg,key:r=Fg,resolver:t=Bg}={})=>{const n=new Map;return a=>(i,o)=>{if(e(i,o))return a(i,o);const s=r(i,o);if(!n.has(s))n.set(s,[]);else return new Promise((c,l)=>{n.get(s).push([c,l])});try{return a(i,o).then(c=>(n.get(s).forEach(([l])=>l(t(c))),n.delete(s),c)).catch(c=>{throw n.get(s).forEach(([,l])=>l(c)),n.delete(s),c})}catch(c){return n.delete(s),Promise.reject(c)}}},zg=(e,r)=>e*r,Hg=e=>e&&e.ok,cd=({delayTimer:e=500,delayRamp:r=zg,maxAttempts:t=10,until:n=Hg,onRetry:a=null,retryOnNetworkError:i=!1,resolveWithLatestResponse:o=!1,skip:s}={})=>c=>(l,u)=>{let f=0;if(s&&s(l,u))return c(l,u);const h=(d,v)=>Promise.resolve(n(d,v)).then(m=>m?d&&o?d:v?Promise.reject(v):d:(f++,!t||f<=t?new Promise(w=>{const E=r(e,f);setTimeout(()=>{typeof a=="function"?Promise.resolve(a({response:d,error:v,url:l,options:u})).then((b={})=>{var g,p;w(c((g=b&&b.url)!==null&&g!==void 0?g:l,(p=b&&b.options)!==null&&p!==void 0?p:u))}):w(c(l,u))},E)}).then(h).catch(w=>{if(!i)throw w;return h(null,w)}):d&&o?d:Promise.reject(v||new Error("Number of attempts exceeded."))));return c(l,u).then(h).catch(d=>{if(!i)throw d;return h(null,d)})},Gg="application/json",sv="Content-Type",Vr=Symbol(),uv=Symbol();function ld(e={}){var r;return(r=Object.entries(e).find(([t])=>t.toLowerCase()===sv.toLowerCase()))===null||r===void 0?void 0:r[1]}function fd(e){return/^application\/.*json.*/.test(e)}const Nr=function(e,r,t=!1){return Object.entries(r).reduce((n,[a,i])=>{const o=e[a];return Array.isArray(o)&&Array.isArray(i)?n[a]=t?[...o,...i]:i:typeof o=="object"&&typeof i=="object"?n[a]=Nr(o,i,t):n[a]=i,n},{...e})},st={options:{},errorType:"text",polyfills:{},polyfill(e,r=!0,t=!1,...n){const a=this.polyfills[e]||(typeof self<"u"?self[e]:null)||(typeof global<"u"?global[e]:null);if(r&&!a)throw new Error(e+" is not defined");return t&&a?new a(...n):a}};function Kg(e,r=!1){st.options=r?e:Nr(st.options,e)}function Wg(e,r=!1){st.polyfills=r?e:Nr(st.polyfills,e)}function Vg(e){st.errorType=e}const Jg=e=>r=>e.reduceRight((t,n)=>n(t),r)||r;class cv extends Error{}const Zg=e=>{const r=Object.create(null);e=e._addons.reduce((g,p)=>p.beforeRequest&&p.beforeRequest(g,e._options,r)||g,e);const{_url:t,_options:n,_config:a,_catchers:i,_resolvers:o,_middlewares:s,_addons:c}=e,l=new Map(i),u=Nr(a.options,n);let f=t;const h=Jg(s)((g,p)=>(f=g,a.polyfill("fetch")(g,p)))(t,u),d=new Error,v=h.catch(g=>{throw{[Vr]:g}}).then(g=>{var p;if(!g.ok){const y=new cv;if(y.cause=d,y.stack=y.stack+`
|
|
34
|
+
**/var jo={d:(e,r)=>{for(var t in r)jo.o(r,t)&&!jo.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o:(e,r)=>Object.prototype.hasOwnProperty.call(e,r)},us={};jo.d(us,{A:()=>lm,k:()=>cs});var xt=function(e,r,t,n){return new(t||(t=Promise))(function(a,i){function o(l){try{c(n.next(l))}catch(u){i(u)}}function s(l){try{c(n.throw(l))}catch(u){i(u)}}function c(l){var u;l.done?a(l.value):(u=l.value,u instanceof t?u:new t(function(f){f(u)})).then(o,s)}c((n=n.apply(e,[])).next())})},Nt=function(e,r){var t,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(c){return function(l){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(t=1,n&&(a=2&u[0]?n.return:u[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,u[1])).done)return a;switch(n=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!((a=a.length>0&&a[a.length-1])||u[0]!==6&&u[0]!==2)){o=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(u[0]===6&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=r.call(e,o)}catch(f){u=[6,f],n=0}finally{t=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([c,l])}}};function cs(){return xt(this,void 0,Promise,function(){return Nt(this,function(e){switch(e.label){case 0:return[4,new Promise(function(r,t){var n="Unknown",a=!1;function i(h){a||(a=!0,r({isPrivate:h,browserName:n}))}function o(){var h=0,d=parseInt("-1");try{d.toFixed(d)}catch(v){h=v.message.length}return h}function s(){return navigator.msSaveBlob!==void 0&&function(h){try{return h===eval.toString().length}catch{return!1}}(39)}function c(){var h;return xt(this,void 0,void 0,function(){var d,v;return Nt(this,function(m){switch(m.label){case 0:return m.trys.push([0,2,,3]),[4,navigator.storage.getDirectory()];case 1:return m.sent(),i(!1),[3,3];case 2:return d=m.sent(),v=d,d instanceof Error&&(v=(h=d.message)!==null&&h!==void 0?h:d),typeof v!="string"?(i(!1),[2]):(i(!!v.includes("unknown transient reason")),[3,3]);case 3:return[2]}})})}function l(){var h;return xt(this,void 0,Promise,function(){return Nt(this,function(d){switch(d.label){case 0:return((h=navigator.storage)===null||h===void 0?void 0:h.getDirectory)===void 0?[3,2]:[4,c()];case 1:return d.sent(),[3,3];case 2:navigator.maxTouchPoints!==void 0?function(){var v=String(Math.random());try{var m=indexedDB.open(v,1);m.onupgradeneeded=function(w){var E=w.target.result,b=function(g){i(g)};try{E.createObjectStore("t",{autoIncrement:!0}).put(new Blob),b(!1)}catch(g){(g.message||"").includes("are not yet supported")?b(!0):b(!1)}finally{E.close(),indexedDB.deleteDatabase(v)}},m.onerror=function(){return i(!1)}}catch{i(!1)}}():function(){var v=window.openDatabase,m=window.localStorage;try{v(null,null,null,null)}catch{return void i(!0)}try{m.setItem("test","1"),m.removeItem("test")}catch{return void i(!0)}i(!1)}(),d.label=3;case 3:return[2]}})})}function u(){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(h,d){var v;i(Math.round(d/1048576)<2*Math.round(((v=window).performance!==void 0&&v.performance.memory!==void 0&&v.performance.memory.jsHeapSizeLimit!==void 0?performance.memory.jsHeapSizeLimit:1073741824)/1048576))},function(h){t(new Error("detectIncognito somehow failed to query storage quota: "+h.message))})}function f(){self.Promise!==void 0&&self.Promise.allSettled!==void 0?u():(0,window.webkitRequestFileSystem)(0,1,function(){i(!1)},function(){i(!0)})}(function(){return xt(this,void 0,Promise,function(){return Nt(this,function(h){switch(h.label){case 0:return o()!==44?[3,2]:(n="Safari",[4,l()]);case 1:return h.sent(),[3,3];case 2:o()===51?(d=navigator.userAgent,n=d.match(/Chrome/)?navigator.brave!==void 0?"Brave":d.match(/Edg/)?"Edge":d.match(/OPR/)?"Opera":"Chrome":"Chromium",f()):o()===25?(n="Firefox",i(navigator.serviceWorker===void 0)):s()?(n="Internet Explorer",i(window.indexedDB===void 0)):t(new Error("detectIncognito cannot determine the browser")),h.label=3;case 3:return[2]}var d})})})().catch(t)})];case 1:return[2,e.sent()]}})})}typeof window<"u"&&(window.detectIncognito=cs);const lm=cs;us.A;const fm=us.k,Wt="sesamy_incognito_mode";function ls(){try{const e=sessionStorage.getItem(Wt);return e===null?void 0:e==="true"}catch{return}}async function dm(){try{const e=sessionStorage.getItem(Wt);if(e!==null)return e==="true";const{isPrivate:r}=await fm();return sessionStorage.setItem(Wt,r.toString()),r}catch{try{sessionStorage.setItem(Wt,"false")}catch{}return!1}}function Et(){return typeof window<"u"}function Af(e,r,t,n,a){for(r=r.split?r.split("."):r,n=0;n<r.length;n++)e=e?e[r[n]]:a;return e===a?t:e}var Dt="undefined",jf="object",Uo=function(){},Eh="any",Rh="*",Dr="__",Xt=typeof process<"u"?process:{};Xt.env&&Xt.env.NODE_ENV;var qe=typeof document<"u";Xt.versions!=null&&Xt.versions.node!=null;typeof Deno<"u"&&Deno.core;qe&&window.name==="nodejs"||typeof navigator<"u"&&navigator.userAgent!==void 0&&(navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom"));function _h(e,r){return r.charAt(0)[e]()+r.slice(1)}var hm=_h.bind(null,"toUpperCase"),vm=_h.bind(null,"toLowerCase");function pm(e){return Th(e)?hm("null"):typeof e=="object"?wm(e):Object.prototype.toString.call(e).slice(8,-1)}function Qt(e,r){r===void 0&&(r=!0);var t=pm(e);return r?vm(t):t}function Lt(e,r){return typeof r===e}var Ke=Lt.bind(null,"function"),Or=Lt.bind(null,"string"),Yr=Lt.bind(null,"undefined"),mm=Lt.bind(null,"boolean");Lt.bind(null,"symbol");function Th(e){return e===null}function gm(e){return Qt(e)==="number"&&!isNaN(e)}function Oh(e){return Qt(e)==="array"}function Ge(e){if(!ym(e))return!1;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function ym(e){return e&&(typeof e=="object"||e!==null)}function wm(e){return Ke(e.constructor)?e.constructor.name:null}function bm(e){return e instanceof Error||Or(e.message)&&e.constructor&&gm(e.constructor.stackTraceLimit)}function kh(e,r){if(typeof r!="object"||Th(r))return!1;if(r instanceof e)return!0;var t=Qt(new e(""));if(bm(r))for(;r;){if(Qt(r)===t)return!0;r=Object.getPrototypeOf(r)}return!1}kh.bind(null,TypeError);kh.bind(null,SyntaxError);function gn(e,r){var t=e instanceof Element||e instanceof HTMLDocument;return t&&r?Sm(e,r):t}function Sm(e,r){return r===void 0&&(r=""),e&&e.nodeName===r.toUpperCase()}function yn(e){var r=[].slice.call(arguments,1);return function(){return e.apply(void 0,[].slice.call(arguments).concat(r))}}yn(gn,"form");yn(gn,"button");yn(gn,"input");yn(gn,"select");function Im(e){return e?Oh(e)?e:[e]:[]}function Uf(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function Pm(){if(qe){var e=navigator,r=e.languages;return e.userLanguage||(r&&r.length?r[0]:e.language)}}function Em(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{}}function Rm(e){return function(r){for(var t,n=Object.create(null),a=/([^&=]+)=?([^&]*)/g;t=a.exec(r);){var i=Uf(t[1]),o=Uf(t[2]);i.substring(i.length-2)==="[]"?(n[i=i.substring(0,i.length-2)]||(n[i]=[])).push(o):n[i]=o===""||o}for(var s in n){var c=s.split("[");c.length>1&&(_m(n,c.map(function(l){return l.replace(/[?[\]\\ ]/g,"")}),n[s]),delete n[s])}return n}(function(r){return qe&&window.location.search.substring(1)}())}function _m(e,r,t){for(var n=r.length-1,a=0;a<n;++a){var i=r[a];if(i==="__proto__"||i==="constructor")break;i in e||(e[i]={}),e=e[i]}e[r[n]]=t}function wn(){for(var e="",r=0,t=4294967295*Math.random()|0;r++<36;){var n="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[r-1],a=15&t;e+=n=="-"||n=="4"?n:(n=="x"?a:3&a|8).toString(16),t=r%8==0?4294967295*Math.random()|0:t>>4}return e}function Tm(e,r){var t,n,a,i=null,o=0,s=function(){o=new Date,i=null,a=e.apply(t,n)};return function(){var c=new Date;o||(o=c);var l=r-(c-o);return t=this,n=arguments,l<=0?(clearTimeout(i),i=null,o=c,a=e.apply(t,n)):i||(i=setTimeout(s,l)),a}}var bt="global",nt=Dr+"global"+Dr,at=typeof self===jf&&self.self===self&&self||typeof global===jf&&global.global===global&&global||void 0;function $r(e){return at[nt][e]}function Mr(e,r){return at[nt][e]=r}function ht(e){delete at[nt][e]}function vt(e,r,t){var n;try{if(fs(e)){var a=window[e];n=a[r].bind(a)}}catch{}return n||t}at[nt]||(at[nt]={});var $t={};function fs(e){if(typeof $t[e]!==Dt)return $t[e];try{var r=window[e];r.setItem(Dt,Dt),r.removeItem(Dt)}catch{return $t[e]=!1}return $t[e]=!0}function ne(){return ne=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ne.apply(this,arguments)}var Tr="function",Sr="undefined",Om="@@redux/"+Math.random().toString(36),Lf=function(){return typeof Symbol===Tr&&Symbol.observable||"@@observable"}(),Mt=" != "+Tr;function Ch(e,r,t){var n;if(typeof r===Tr&&typeof t===Sr&&(t=r,r=void 0),typeof t!==Sr){if(typeof t!==Tr)throw new Error("enhancer"+Mt);return t(Ch)(e,r)}if(typeof e!==Tr)throw new Error("reducer"+Mt);var a=e,i=r,o=[],s=o,c=!1;function l(){s===o&&(s=o.slice())}function u(){return i}function f(d){if(typeof d!==Tr)throw new Error("Listener"+Mt);var v=!0;return l(),s.push(d),function(){if(v){v=!1,l();var m=s.indexOf(d);s.splice(m,1)}}}function h(d){if(!Ge(d))throw new Error("Act != obj");if(typeof d.type===Sr)throw new Error("ActType "+Sr);if(c)throw new Error("Dispatch in reducer");try{c=!0,i=a(i,d)}finally{c=!1}for(var v=o=s,m=0;m<v.length;m++)(0,v[m])();return d}return h({type:"@@redux/INIT"}),(n={dispatch:h,subscribe:f,getState:u,replaceReducer:function(d){if(typeof d!==Tr)throw new Error("next reducer"+Mt);a=d,h({type:"@@redux/INIT"})}})[Lf]=function(){var d,v=f;return(d={subscribe:function(m){if(typeof m!="object")throw new TypeError("Observer != obj");function w(){m.next&&m.next(u())}return w(),{unsubscribe:v(w)}}})[Lf]=function(){return this},d},n}function km(e,r){var t=r&&r.type;return"action "+(t&&t.toString()||"?")+"reducer "+e+" returns "+Sr}function it(){var e=[].slice.call(arguments);return e.length===0?function(r){return r}:e.length===1?e[0]:e.reduce(function(r,t){return function(){return r(t.apply(void 0,[].slice.call(arguments)))}})}function Cm(){var e=arguments;return function(r){return function(t,n,a){var i,o=r(t,n,a),s=o.dispatch,c={getState:o.getState,dispatch:function(l){return s(l)}};return i=[].slice.call(e).map(function(l){return l(c)}),ne({},o,{dispatch:s=it.apply(void 0,i)(o.dispatch)})}}}var kr=Dr+"anon_id",xr=Dr+"user_id",Qr=Dr+"user_traits",_r="userId",Xr="anonymousId",Vt=["bootstrap","params","campaign","initializeStart","initialize","initializeEnd","ready","resetStart","reset","resetEnd","pageStart","page","pageEnd","pageAborted","trackStart","track","trackEnd","trackAborted","identifyStart","identify","identifyEnd","identifyAborted","userIdChanged","registerPlugins","enablePlugin","disablePlugin","online","offline","setItemStart","setItem","setItemEnd","setItemAborted","removeItemStart","removeItem","removeItemEnd","removeItemAborted"],Lo=["name","EVENTS","config","loaded"],te=Vt.reduce(function(e,r){return e[r]=r,e},{registerPluginType:function(e){return"registerPlugin:"+e},pluginReadyType:function(e){return"ready:"+e}}),qf=/^utm_/,xf=/^an_prop_/,Nf=/^an_trait_/;function Am(e){var r=e.storage.setItem;return function(t){return function(n){return function(a){if(a.type===te.bootstrap){var i=a.params,o=a.user,s=a.persistedUser,c=a.initialUser,l=s.userId===o.userId;s.anonymousId!==o.anonymousId&&r(kr,o.anonymousId),l||r(xr,o.userId),c.traits&&r(Qr,ne({},l&&s.traits?s.traits:{},c.traits));var u=Object.keys(a.params);if(u.length){var f=i.an_uid,h=i.an_event,d=u.reduce(function(v,m){if(m.match(qf)||m.match(/^(d|g)clid/)){var w=m.replace(qf,"");v.campaign[w==="campaign"?"name":w]=i[m]}return m.match(xf)&&(v.props[m.replace(xf,"")]=i[m]),m.match(Nf)&&(v.traits[m.replace(Nf,"")]=i[m]),v},{campaign:{},props:{},traits:{}});t.dispatch(ne({type:te.params,raw:i},d,f?{userId:f}:{})),f&&setTimeout(function(){return e.identify(f,d.traits)},0),h&&setTimeout(function(){return e.track(h,d.props)},0),Object.keys(d.campaign).length&&t.dispatch({type:te.campaign,campaign:d.campaign})}}return n(a)}}}}function jm(e){return function(r,t){if(r===void 0&&(r={}),t===void 0&&(t={}),t.type===te.setItemEnd){if(t.key===kr)return ne({},r,{anonymousId:t.value});if(t.key===xr)return ne({},r,{userId:t.value})}switch(t.type){case te.identify:return Object.assign({},r,{userId:t.userId,traits:ne({},r.traits,t.traits)});case te.reset:return[xr,kr,Qr].forEach(function(n){e.removeItem(n)}),Object.assign({},r,{userId:null,anonymousId:null,traits:{}});default:return r}}}function Df(e){return{userId:e.getItem(xr),anonymousId:e.getItem(kr),traits:e.getItem(Qr)}}var qo=function(e){return Dr+"TEMP"+Dr+e};function Um(e){var r=e.storage,t=r.setItem,n=r.removeItem,a=r.getItem;return function(i){return function(o){return function(s){var c=s.userId,l=s.traits,u=s.options;if(s.type===te.reset&&([xr,Qr,kr].forEach(function(d){n(d)}),[_r,Xr,"traits"].forEach(function(d){ht(qo(d))})),s.type===te.identify){a(kr)||t(kr,wn());var f=a(xr),h=a(Qr)||{};f&&f!==c&&i.dispatch({type:te.userIdChanged,old:{userId:f,traits:h},new:{userId:c,traits:l},options:u}),c&&t(xr,c),l&&t(Qr,ne({},h,l))}return o(s)}}}}var wt={};function $f(e,r){wt[e]&&Ke(wt[e])&&(wt[e](r),delete wt[e])}function Ah(e,r,t){return new Promise(function(n,a){return r()?n(e):t<1?a(ne({},e,{queue:!0})):new Promise(function(i){return setTimeout(i,10)}).then(function(i){return Ah(e,r,t-10).then(n,a)})})}function Lm(e){return{abort:e}}function jh(e,r,t){var n={},a=r(),i=e.getState(),o=i.plugins,s=i.queue,c=i.user;if(!i.context.offline&&s&&s.actions&&s.actions.length){var l=s.actions.reduce(function(f,h,d){return o[h.plugin].loaded?(f.process.push(h),f.processIndex.push(d)):(f.requeue.push(h),f.requeueIndex.push(d)),f},{processIndex:[],process:[],requeue:[],requeueIndex:[]});if(l.processIndex&&l.processIndex.length){l.processIndex.forEach(function(f){var h=s.actions[f],d=h.plugin,v=h.payload.type,m=a[d][v];if(m&&Ke(m)){var w,E=function(p,y){return p===void 0&&(p={}),y===void 0&&(y={}),[_r,Xr].reduce(function(k,A){return p.hasOwnProperty(A)&&y[A]&&y[A]!==p[A]&&(k[A]=y[A]),k},p)}(h.payload,c),b=n[E.meta.rid];if(!b&&(w=m({payload:E,config:o[d].config,instance:t,abort:Lm}))&&Ge(w)&&w.abort)return void(n[E.meta.rid]=!0);if(!b){var g=v+":"+d;e.dispatch(ne({},E,{type:g,_:{called:g,from:"queueDrain"}}))}}});var u=s.actions.filter(function(f,h){return!~l.processIndex.indexOf(h)});s.actions=u}}}var bo=function(e){var r=e.data,t=e.action,n=e.instance,a=e.state,i=e.allPlugins,o=e.allMatches,s=e.store,c=e.EVENTS;try{var l=a.plugins,u=a.context,f=t.type,h=f.match(et),d=r.exact.map(function(w){return w.pluginName});h&&(d=o.during.map(function(w){return w.pluginName}));var v=function(w,E){return function(b,g,p){var y=g.config,k=g.name,A=k+"."+b.type;p&&(A=p.event);var j=b.type.match(et)?function(z,H,ee,x,N){return function(q,O){var X=x?x.name:z,re=O&&Rt(O)?O:ee;if(x&&(!(re=O&&Rt(O)?O:[z]).includes(z)||re.length!==1))throw new Error("Method "+H+" can only abort "+z+" plugin. "+JSON.stringify(re)+" input valid");return ne({},N,{abort:{reason:q,plugins:re,caller:H,_:X}})}}(k,A,E,p,b):function(z,H){return function(){throw new Error(z.type+" action not cancellable. Remove abort in "+H)}}(b,A);return{payload:qm(b),instance:w,config:y||{},abort:j}}}(n,d),m=r.exact.reduce(function(w,E){var b=E.pluginName,g=E.methodName,p=!1;return g.match(/^initialize/)||g.match(/^reset/)||(p=!l[b].loaded),u.offline&&g.match(/^(page|track|identify)/)&&(p=!0),w[""+b]=p,w},{});return Promise.resolve(r.exact.reduce(function(w,E,b){try{var g=E.pluginName;return Promise.resolve(w).then(function(p){function y(){return Promise.resolve(p)}var k=function(){if(r.namespaced&&r.namespaced[g])return Promise.resolve(r.namespaced[g].reduce(function(A,j,z){try{return Promise.resolve(A).then(function(H){return j.method&&Ke(j.method)?(function(q,O){var X=Kf(q);if(X&&X.name===O){var re=Kf(X.method);throw new Error([O+" plugin is calling method "+q,"Plugins cant call self","Use "+X.method+" "+(re?"or "+re.method:"")+" in "+O+" plugin insteadof "+q].join(`
|
|
35
|
+
`))}}(j.methodName,j.pluginName),Promise.resolve(j.method({payload:H,instance:n,abort:(ee=H,x=g,N=j.pluginName,function(q,O){return ne({},ee,{abort:{reason:q,plugins:O||[x],caller:f,from:N||x}})}),config:Bf(j.pluginName,l,i),plugins:l})).then(function(q){var O=Ge(q)?q:{};return Promise.resolve(ne({},H,O))})):H;var ee,x,N})}catch(H){return Promise.reject(H)}},Promise.resolve(t))).then(function(A){p[g]=A});p[g]=t}();return k&&k.then?k.then(y):y()})}catch(p){return Promise.reject(p)}},Promise.resolve({}))).then(function(w){return Promise.resolve(r.exact.reduce(function(E,b,g){try{var p=r.exact.length===g+1,y=b.pluginName,k=i[y];return Promise.resolve(E).then(function(A){var j=w[y]?w[y]:{};if(h&&(j=A),Io(j,y))return So({data:j,method:f,instance:n,pluginName:y,store:s}),Promise.resolve(A);if(Io(A,y))return p&&So({data:A,method:f,instance:n,store:s}),Promise.resolve(A);if(m.hasOwnProperty(y)&&m[y]===!0)return s.dispatch({type:"queue",plugin:y,payload:j,_:{called:"queue",from:"queueMechanism"}}),Promise.resolve(A);var z=v(w[y],i[y]);return Promise.resolve(k[f]({abort:z.abort,payload:j,instance:n,config:Bf(y,l,i),plugins:l})).then(function(H){var ee=Ge(H)?H:{},x=ne({},A,ee),N=w[y];if(Io(N,y))So({data:N,method:f,instance:n,pluginName:y,store:s});else{var q=f+":"+y;(q.match(/:/g)||[]).length<2&&!f.match(Mf)&&!f.match(Ff)&&n.dispatch(ne({},h?x:j,{type:q,_:{called:q,from:"submethod"}}))}return Promise.resolve(x)})})}catch(A){return Promise.reject(A)}},Promise.resolve(t))).then(function(E){if(!(f.match(et)||f.match(/^registerPlugin/)||f.match(Ff)||f.match(Mf)||f.match(/^params/)||f.match(/^userIdChanged/))){if(c.plugins.includes(f),E._&&E._.originalAction===f)return E;var b=ne({},E,{_:{originalAction:E.type,called:E.type,from:"engineEnd"}});Uh(E,r.exact.length)&&!f.match(/End$/)&&(b=ne({},b,{type:E.type+"Aborted"})),s.dispatch(b)}return E})})}catch(w){return Promise.reject(w)}},et=/Start$/,Mf=/^bootstrap/,Ff=/^ready/;function So(e){var r=e.pluginName,t=e.method+"Aborted"+(r?":"+r:"");e.store.dispatch(ne({},e.data,{type:t,_:{called:t,from:"abort"}}))}function Bf(e,r,t){var n=r[e]||t[e];return n&&n.config?n.config:{}}function zf(e,r){return r.reduce(function(t,n){return n[e]?t.concat({methodName:e,pluginName:n.name,method:n[e]}):t},[])}function Hf(e,r){var t=e.replace(et,""),n=r?":"+r:"";return[""+e+n,""+t+n,t+"End"+n]}function Io(e,r){var t=e.abort;return!!t&&(t===!0||Gf(t,r)||t&&Gf(t.plugins,r))}function Uh(e,r){var t=e.abort;if(!t)return!1;if(t===!0||Or(t))return!0;var n=t.plugins;return Rt(t)&&t.length===r||Rt(n)&&n.length===r}function Rt(e){return Array.isArray(e)}function Gf(e,r){return!(!e||!Rt(e))&&e.includes(r)}function Kf(e){var r=e.match(/(.*):(.*)/);return!!r&&{method:r[1],name:r[2]}}function qm(e){return Object.keys(e).reduce(function(r,t){return t==="type"||(r[t]=Ge(e[t])?Object.assign({},e[t]):e[t]),r},{})}function xm(e,r,t){var n={};return function(a){return function(i){return function(o){try{var s,c=function(p){return s?p:i(f)},l=o.type,u=o.plugins,f=o;if(o.abort)return Promise.resolve(i(o));if(l===te.enablePlugin&&a.dispatch({type:te.initializeStart,plugins:u,disabled:[],fromEnable:!0,meta:o.meta}),l===te.disablePlugin&&setTimeout(function(){return $f(o.meta.rid,{payload:o})},0),l===te.initializeEnd){var h=r(),d=Object.keys(h),v=d.filter(function(p){return u.includes(p)}).map(function(p){return h[p]}),m=[],w=[],E=o.disabled,b=v.map(function(p){var y=p.loaded,k=p.name,A=p.config;return Ah(p,function(){return y({config:A})},1e4).then(function(j){return n[k]||(a.dispatch({type:te.pluginReadyType(k),name:k,events:Object.keys(p).filter(function(z){return!Lo.includes(z)})}),n[k]=!0),m=m.concat(k),p}).catch(function(j){if(j instanceof Error)throw new Error(j);return w=w.concat(j.name),j})});Promise.all(b).then(function(p){var y={plugins:m,failed:w,disabled:E};setTimeout(function(){d.length===b.length+E.length&&a.dispatch(ne({},{type:te.ready},y))},0)})}var g=function(){if(l!==te.bootstrap)return/^ready:([^:]*)$/.test(l)&&setTimeout(function(){return jh(a,r,e)},0),Promise.resolve(function(p,y,k,A,j){try{var z=Ke(y)?y():y,H=p.type,ee=H.replace(et,"");if(p._&&p._.called)return Promise.resolve(p);var x=k.getState(),N=(X=z,(re=x.plugins)===void 0&&(re={}),(Q=p.options)===void 0&&(Q={}),Object.keys(X).filter(function(S){var _=Q.plugins||{};return mm(_[S])?_[S]:_.all!==!1&&(!re[S]||re[S].enabled!==!1)}).map(function(S){return X[S]}));H===te.initializeStart&&p.fromEnable&&(N=Object.keys(x.plugins).filter(function(S){var _=x.plugins[S];return p.plugins.includes(S)&&!_.initialized}).map(function(S){return z[S]}));var q=N.map(function(S){return S.name}),O=function(S,_,D){var B=Hf(S).map(function(K){return zf(K,_)});return _.reduce(function(K,Z){var de=Z.name,ae=Hf(S,de).map(function(je){return zf(je,_)}),ue=ae[0],se=ae[1],Pe=ae[2];return ue.length&&(K.beforeNS[de]=ue),se.length&&(K.duringNS[de]=se),Pe.length&&(K.afterNS[de]=Pe),K},{before:B[0],beforeNS:{},during:B[1],duringNS:{},after:B[2],afterNS:{}})}(H,N);return Promise.resolve(bo({action:p,data:{exact:O.before,namespaced:O.beforeNS},state:x,allPlugins:z,allMatches:O,instance:k,store:A,EVENTS:j})).then(function(S){function _(){var K=function(){if(H.match(et))return Promise.resolve(bo({action:ne({},D,{type:ee+"End"}),data:{exact:O.after,namespaced:O.afterNS},state:x,allPlugins:z,allMatches:O,instance:k,store:A,EVENTS:j})).then(function(Z){Z.meta&&Z.meta.hasCallback&&$f(Z.meta.rid,{payload:Z})})}();return K&&K.then?K.then(function(){return S}):S}if(Uh(S,q.length))return S;var D,B=function(){if(H!==ee)return Promise.resolve(bo({action:ne({},S,{type:ee}),data:{exact:O.during,namespaced:O.duringNS},state:x,allPlugins:z,allMatches:O,instance:k,store:A,EVENTS:j})).then(function(K){D=K});D=S}();return B&&B.then?B.then(_):_()})}catch(S){return Promise.reject(S)}var X,re,Q}(o,r,e,a,t)).then(function(p){return s=1,i(p)})}();return Promise.resolve(g&&g.then?g.then(c):c(g))}catch(p){return Promise.reject(p)}}}}}function Nm(e){return function(r){return function(t){return function(n){var a=n.type,i=n.key,o=n.value,s=n.options;if(a===te.setItem||a===te.removeItem){if(n.abort)return t(n);a===te.setItem?e.setItem(i,o,s):e.removeItem(i,s)}return t(n)}}}}var Dm=function(){var e=this;this.before=[],this.after=[],this.addMiddleware=function(r,t){e[t]=e[t].concat(r)},this.removeMiddleware=function(r,t){var n=e[t].findIndex(function(a){return a===r});n!==-1&&(e[t]=[].concat(e[t].slice(0,n),e[t].slice(n+1)))},this.dynamicMiddlewares=function(r){return function(t){return function(n){return function(a){var i={getState:t.getState,dispatch:function(s){return t.dispatch(s)}},o=e[r].map(function(s){return s(i)});return it.apply(void 0,o)(n)(a)}}}}};function $m(e){return function(r,t){r===void 0&&(r={});var n={};if(t.type==="initialize:aborted")return r;if(/^registerPlugin:([^:]*)$/.test(t.type)){var a=Wf(t.type,"registerPlugin"),i=e()[a];if(!i||!a)return r;var o=t.enabled,s=i.config;return n[a]={enabled:o,initialized:!!o&&!i.initialize,loaded:!!o&&!!i.loaded({config:s}),config:s},ne({},r,n)}if(/^initialize:([^:]*)$/.test(t.type)){var c=Wf(t.type,te.initialize),l=e()[c];return l&&c?(n[c]=ne({},r[c],{initialized:!0,loaded:!!l.loaded({config:l.config})}),ne({},r,n)):r}if(/^ready:([^:]*)$/.test(t.type))return n[t.name]=ne({},r[t.name],{loaded:!0}),ne({},r,n);switch(t.type){case te.disablePlugin:return ne({},r,Vf(t.plugins,!1,r));case te.enablePlugin:return ne({},r,Vf(t.plugins,!0,r));default:return r}}}function Wf(e,r){return e.substring(r.length+1,e.length)}function Vf(e,r,t){return e.reduce(function(n,a){return n[a]=ne({},t[a],{enabled:r}),n},t)}function Lh(e){try{return JSON.parse(JSON.stringify(e))}catch{}return e}var Mm={last:{},history:[]};function Fm(e,r){e===void 0&&(e=Mm);var t=r.options,n=r.meta;if(r.type===te.track){var a=Lh(ne({event:r.event,properties:r.properties},Object.keys(t).length&&{options:t},{meta:n}));return ne({},e,{last:a,history:e.history.concat(a)})}return e}var Bm={actions:[]};function zm(e,r){e===void 0&&(e=Bm);var t=r.payload;switch(r.type){case"queue":var n;return n=t&&t.type&&t.type===te.identify?[r].concat(e.actions):e.actions.concat(r),ne({},e,{actions:n});case"dequeue":return[];default:return e}}var qh=/#.*$/;function Hm(e){var r=/(http[s]?:\/\/)?([^\/\s]+\/)(.*)/g.exec(e);return"/"+(r&&r[3]?r[3].split("?")[0].replace(qh,""):"")}var xh,Nh,Dh,$h,Gm=function(e){if(e===void 0&&(e={}),!qe)return e;var r=document,t=r.title,n=r.referrer,a=window,i=a.location,o=a.innerWidth,s=a.innerHeight,c=i.hash,l=i.search,u=function(h){var d=function(){if(qe){for(var v,m=document.getElementsByTagName("link"),w=0;v=m[w];w++)if(v.getAttribute("rel")==="canonical")return v.getAttribute("href")}}();return d?d.match(/\?/)?d:d+h:window.location.href.replace(qh,"")}(l),f={title:t,url:u,path:Hm(u),hash:c,search:l,width:o,height:s};return n&&n!==""&&(f.referrer=n),ne({},f,e)},Km={last:{},history:[]};function Wm(e,r){e===void 0&&(e=Km);var t=r.options;if(r.type===te.page){var n=Lh(ne({properties:r.properties,meta:r.meta},Object.keys(t).length&&{options:t}));return ne({},e,{last:n,history:e.history.concat(n)})}return e}xh=function(){if(!qe)return!1;var e=navigator.appVersion;return~e.indexOf("Win")?"Windows":~e.indexOf("Mac")?"MacOS":~e.indexOf("X11")?"UNIX":~e.indexOf("Linux")?"Linux":"Unknown OS"}(),Nh=qe?document.referrer:null,Dh=Pm(),$h=Em();var Jf={initialized:!1,sessionId:wn(),app:null,version:null,debug:!1,offline:!!qe&&!navigator.onLine,os:{name:xh},userAgent:qe?navigator.userAgent:"node",library:{name:"analytics",version:"0.12.13"},timezone:$h,locale:Dh,campaign:{},referrer:Nh};function Vm(e,r){e===void 0&&(e=Jf);var t=e.initialized,n=r.campaign;switch(r.type){case te.campaign:return ne({},e,{campaign:n});case te.offline:return ne({},e,{offline:!0});case te.online:return ne({},e,{offline:!1});default:return t?e:ne({},Jf,e,{initialized:!0})}}var Jm=["plugins","reducers","storage"];function Zm(e,r,t){if(qe){var n=window[(t?"add":"remove")+"EventListener"];e.split(" ").forEach(function(a){n(a,r)})}}function Ym(e){var r=Zm.bind(null,"online offline",function(t){return Promise.resolve(!navigator.onLine).then(e)});return r(!0),function(t){return r(!1)}}function Mh(){return Mr("analytics",[]),function(e){return function(r,t,n){var a=e(r,t,n),i=a.dispatch;return Object.assign(a,{dispatch:function(o){return at[nt].analytics.push(o.action||o),i(o)}})}}}function Zf(e){return function(){return it(it.apply(null,arguments),Mh())}}function Po(e){return e?Oh(e)?e:[e]:[]}function Yf(e,r,t){e===void 0&&(e={});var n,a,i=wn();return r&&(wt[i]=(n=r,a=function(o){for(var s,c=o||Array.prototype.slice.call(arguments),l=0;l<c.length;l++)if(Ke(c[l])){s=c[l];break}return s}(t),function(o){a&&a(o),n(o)})),ne({},e,{rid:i,ts:new Date().getTime()},r?{hasCallback:!0}:{})}function Xm(e){e===void 0&&(e={});var r=e.reducers||{},t=e.initialUser||{},n=(e.plugins||[]).reduce(function(S,_){if(Ke(_))return S.middlewares=S.middlewares.concat(_),S;if(_.NAMESPACE&&(_.name=_.NAMESPACE),!_.name)throw new Error("https://lytics.dev/errors/1");_.config||(_.config={});var D=_.EVENTS?Object.keys(_.EVENTS).map(function(Z){return _.EVENTS[Z]}):[];S.pluginEnabled[_.name]=!(_.enabled===!1||_.config.enabled===!1),delete _.enabled,_.methods&&(S.methods[_.name]=Object.keys(_.methods).reduce(function(Z,de){var ae;return Z[de]=(ae=_.methods[de],function(){for(var ue=Array.prototype.slice.call(arguments),se=new Array(ae.length),Pe=0;Pe<ue.length;Pe++)se[Pe]=ue[Pe];return se[se.length]=y,ae.apply({instance:y},se)}),Z},{}),delete _.methods);var B=Object.keys(_).concat(D),K=new Set(S.events.concat(B));if(S.events=Array.from(K),S.pluginsArray=S.pluginsArray.concat(_),S.plugins[_.name])throw new Error(_.name+"AlreadyLoaded");return S.plugins[_.name]=_,S.plugins[_.name].loaded||(S.plugins[_.name].loaded=function(){return!0}),S},{plugins:{},pluginEnabled:{},methods:{},pluginsArray:[],middlewares:[],events:[]}),a=e.storage?e.storage:{getItem:$r,setItem:Mr,removeItem:ht},i=function(S){return function(_,D,B){return D.getState("user")[_]||(B&&Ge(B)&&B[_]?B[_]:Df(S)[_]||$r(qo(_))||null)}}(a),o=n.plugins,s=n.events.filter(function(S){return!Lo.includes(S)}).sort(),c=new Set(s.concat(Vt).filter(function(S){return!Lo.includes(S)})),l=Array.from(c).sort(),u=function(){return o},f=new Dm,h=f.addMiddleware,d=f.removeMiddleware,v=f.dynamicMiddlewares,m=function(){throw new Error("Abort disabled inListener")},w=Rm(),E=Df(a),b=ne({},E,t,w.an_uid?{userId:w.an_uid}:{},w.an_aid?{anonymousId:w.an_aid}:{});b.anonymousId||(b.anonymousId=wn());var g=ne({enable:function(S,_){return new Promise(function(D){O.dispatch({type:te.enablePlugin,plugins:Po(S),_:{originalAction:te.enablePlugin}},D,[_])})},disable:function(S,_){return new Promise(function(D){O.dispatch({type:te.disablePlugin,plugins:Po(S),_:{originalAction:te.disablePlugin}},D,[_])})}},n.methods),p=!1,y={identify:function(S,_,D,B){try{var K=Or(S)?S:null,Z=Ge(S)?S:_,de=D||{},ae=y.user();Mr(qo(_r),K);var ue=K||Z.userId||i(_r,y,Z);return Promise.resolve(new Promise(function(se){O.dispatch(ne({type:te.identifyStart,userId:ue,traits:Z||{},options:de,anonymousId:ae.anonymousId},ae.id&&ae.id!==K&&{previousId:ae.id}),se,[_,D,B])}))}catch(se){return Promise.reject(se)}},track:function(S,_,D,B){try{var K=Ge(S)?S.event:S;if(!K||!Or(K))throw new Error("EventMissing");var Z=Ge(S)?S:_||{},de=Ge(D)?D:{};return Promise.resolve(new Promise(function(ae){O.dispatch({type:te.trackStart,event:K,properties:Z,options:de,userId:i(_r,y,_),anonymousId:i(Xr,y,_)},ae,[_,D,B])}))}catch(ae){return Promise.reject(ae)}},page:function(S,_,D){try{var B=Ge(S)?S:{},K=Ge(_)?_:{};return Promise.resolve(new Promise(function(Z){O.dispatch({type:te.pageStart,properties:Gm(B),options:K,userId:i(_r,y,B),anonymousId:i(Xr,y,B)},Z,[S,_,D])}))}catch(Z){return Promise.reject(Z)}},user:function(S){if(S===_r||S==="id")return i(_r,y);if(S===Xr||S==="anonId")return i(Xr,y);var _=y.getState("user");return S?Af(_,S):_},reset:function(S){return new Promise(function(_){O.dispatch({type:te.resetStart},_,S)})},ready:function(S){return p&&S({plugins:g,instance:y}),y.on(te.ready,function(_){S(_),p=!0})},on:function(S,_){if(!S||!Ke(_))return!1;if(S===te.bootstrap)throw new Error(".on disabled for "+S);var D=/Start$|Start:/;if(S==="*"){var B=function(ae){return function(ue){return function(se){return se.type.match(D)&&_({payload:se,instance:y,plugins:o}),ue(se)}}},K=function(ae){return function(ue){return function(se){return se.type.match(D)||_({payload:se,instance:y,plugins:o}),ue(se)}}};return h(B,Ft),h(K,Bt),function(){d(B,Ft),d(K,Bt)}}var Z=S.match(D)?Ft:Bt,de=function(ae){return function(ue){return function(se){return se.type===S&&_({payload:se,instance:y,plugins:o,abort:m}),ue(se)}}};return h(de,Z),function(){return d(de,Z)}},once:function(S,_){if(!S||!Ke(_))return!1;if(S===te.bootstrap)throw new Error(".once disabled for "+S);var D=y.on(S,function(B){_({payload:B.payload,instance:y,plugins:o,abort:m}),D()});return D},getState:function(S){var _=O.getState();return S?Af(_,S):Object.assign({},_)},dispatch:function(S){var _=Or(S)?{type:S}:S;if(Vt.includes(_.type))throw new Error("reserved action "+_.type);var D=ne({},_,{_:ne({originalAction:_.type},S._||{})});O.dispatch(D)},enablePlugin:g.enable,disablePlugin:g.disable,plugins:g,storage:{getItem:a.getItem,setItem:function(S,_,D){O.dispatch({type:te.setItemStart,key:S,value:_,options:D})},removeItem:function(S,_){O.dispatch({type:te.removeItemStart,key:S,options:_})}},setAnonymousId:function(S,_){y.storage.setItem(kr,S,_)},events:{core:Vt,plugins:s}},k=n.middlewares.concat([function(S){return function(_){return function(D){return D.meta||(D.meta=Yf()),_(D)}}},v(Ft),xm(y,u,{all:l,plugins:s}),Nm(a),Am(y),Um(y),v(Bt)]),A={context:Vm,user:jm(a),page:Wm,track:Fm,plugins:$m(u),queue:zm},j=it,z=it;if(qe&&e.debug){var H=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__;H&&(j=H({trace:!0,traceLimit:25})),z=function(){return arguments.length===0?Mh():Ge(typeof arguments[0])?Zf():Zf().apply(null,arguments)}}var ee,x=function(S){return Object.keys(S).reduce(function(_,D){return Jm.includes(D)||(_[D]=S[D]),_},{})}(e),N=n.pluginsArray.reduce(function(S,_){var D=_.name,B=_.config,K=_.loaded,Z=n.pluginEnabled[D];return S[D]={enabled:Z,initialized:!!Z&&!_.initialize,loaded:!!K({config:B}),config:B},S},{}),q={context:x,user:b,plugins:N},O=Ch(function(S){for(var _=Object.keys(S),D={},B=0;B<_.length;B++){var K=_[B];typeof S[K]===Tr&&(D[K]=S[K])}var Z,de=Object.keys(D);try{(function(ae){Object.keys(ae).forEach(function(ue){var se=ae[ue];if(typeof se(void 0,{type:"@@redux/INIT"})===Sr||typeof se(void 0,{type:Om})===Sr)throw new Error("reducer "+ue+" "+Sr)})})(D)}catch(ae){Z=ae}return function(ae,ue){if(ae===void 0&&(ae={}),Z)throw Z;for(var se=!1,Pe={},je=0;je<de.length;je++){var Fe=de[je],Ce=ae[Fe],Ve=(0,D[Fe])(Ce,ue);if(typeof Ve===Sr){var lr=km(Fe,ue);throw new Error(lr)}Pe[Fe]=Ve,se=se||Ve!==Ce}return se?Pe:ae}}(ne({},A,r)),q,z(j(Cm.apply(void 0,k))));O.dispatch=(ee=O.dispatch,function(S,_,D){var B=ne({},S,{meta:Yf(S.meta,_,Po(D))});return ee.apply(null,[B])});var X=Object.keys(o);O.dispatch({type:te.bootstrap,plugins:X,config:x,params:w,user:b,initialUser:t,persistedUser:E});var re=X.filter(function(S){return n.pluginEnabled[S]}),Q=X.filter(function(S){return!n.pluginEnabled[S]});return O.dispatch({type:te.registerPlugins,plugins:X,enabled:n.pluginEnabled}),n.pluginsArray.map(function(S,_){var D=S.bootstrap,B=S.config,K=S.name;D&&Ke(D)&&D({instance:y,config:B,payload:S}),O.dispatch({type:te.registerPluginType(K),name:K,enabled:n.pluginEnabled[K],plugin:S}),n.pluginsArray.length===_+1&&O.dispatch({type:te.initializeStart,plugins:re,disabled:Q})}),Ym(function(S){O.dispatch({type:S?te.offline:te.online})}),function(S,_,D){setInterval(function(){return jh(S,_,D)},3e3)}(O,u,y),y}var Ft="before",Bt="after",St="cookie",Ur=zh(),Fh=bn,Qm=bn;function Bh(e){return Ur?bn(e,"",-1):ht(e)}function zh(){if(Ur!==void 0)return Ur;var e="cookiecookie";try{bn(e,e),Ur=document.cookie.indexOf(e)!==-1,Bh(e)}catch{Ur=!1}return Ur}function bn(e,r,t,n,a,i){if(typeof window<"u"){var o=arguments.length>1;return Ur===!1&&(o?Mr(e,r):$r(e)),o?document.cookie=e+"="+encodeURIComponent(r)+(t?"; expires="+new Date(+new Date+1e3*t).toUTCString()+(n?"; path="+n:"")+(a?"; domain="+a:"")+(i?"; secure":""):""):decodeURIComponent((("; "+document.cookie).split("; "+e+"=")[1]||"").split(";")[0])}}var It="localStorage",eg=fs.bind(null,"localStorage");vt("localStorage","getItem",$r);vt("localStorage","setItem",Mr);vt("localStorage","removeItem",ht);var Pt="sessionStorage",rg=fs.bind(null,"sessionStorage");vt("sessionStorage","getItem",$r);vt("sessionStorage","setItem",Mr);vt("sessionStorage","removeItem",ht);function rt(e){var r=e;try{if((r=JSON.parse(e))==="true")return!0;if(r==="false")return!1;if(Ge(r))return r;parseFloat(r)===r&&(r=parseFloat(r))}catch{}if(r!==null&&r!=="")return r}var tg=eg(),ng=rg(),ag=zh();function Hh(e,r){if(e){var t=ds(r),n=!ms(t),a=hs(t)?rt(localStorage.getItem(e)):void 0;if(n&&!Yr(a))return a;var i=vs(t)?rt(Fh(e)):void 0;if(n&&i)return i;var o=ps(t)?rt(sessionStorage.getItem(e)):void 0;if(n&&o)return o;var s=$r(e);return n?s:{localStorage:a,sessionStorage:o,cookie:i,global:s}}}function ig(e,r,t){if(e&&!Yr(r)){var n={},a=ds(t),i=JSON.stringify(r),o=!ms(a);return hs(a)&&(n[It]=zt(It,r,rt(localStorage.getItem(e))),localStorage.setItem(e,i),o)?n[It]:vs(a)&&(n[St]=zt(St,r,rt(Fh(e))),Qm(e,i),o)?n[St]:ps(a)&&(n[Pt]=zt(Pt,r,rt(sessionStorage.getItem(e))),sessionStorage.setItem(e,i),o)?n[Pt]:(n[bt]=zt(bt,r,$r(e)),Mr(e,r),o?n[bt]:n)}}function og(e,r){if(e){var t=ds(r),n=Hh(e,Rh),a={};return!Yr(n.localStorage)&&hs(t)&&(localStorage.removeItem(e),a[It]=n.localStorage),!Yr(n.cookie)&&vs(t)&&(Bh(e),a[St]=n.cookie),!Yr(n.sessionStorage)&&ps(t)&&(sessionStorage.removeItem(e),a[Pt]=n.sessionStorage),!Yr(n.global)&&Sn(t,bt)&&(ht(e),a[bt]=n.global),a}}function ds(e){return e?Or(e)?e:e.storage:Eh}function hs(e){return tg&&Sn(e,It)}function vs(e){return ag&&Sn(e,St)}function ps(e){return ng&&Sn(e,Pt)}function ms(e){return e===Rh||e==="all"}function Sn(e,r){return e===Eh||e===r||ms(e)}function zt(e,r,t){return{location:e,current:r,previous:t}}var sg={setItem:ig,getItem:Hh,removeItem:og};function ug(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Xf(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,n)}return t}function Qf(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Xf(Object(t),!0).forEach(function(n){ug(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Xf(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function cg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r={storage:sg};return Xm(Qf(Qf({},r),e))}function lg(e,r){r=r||{};var t,n,a=[],i=r.max||1/0;function o(){clearInterval(t),e(a.splice(0,i)),s()}function s(){t=setInterval(o,r.interval||1e4)}return s(),{flush:o,push:function(c){return n=a.push(c),n>=i&&o(),n},size:function(){return a.length},end:function(c){c&&o(),clearInterval(t)}}}const Gh="@sesamy/sesamy-js",gs="1.37.3";function fg(e){if(typeof window>"u")return;const{addEventListener:r,history:t,location:n}=window;let a=n.pathname;r("popstate",()=>e(n.pathname)),["push","replace"].map(i=>{const o=`${i}State`;if(o!=="pushState"&&o!=="replaceState")return;const s=t[o];t[o]=function(...c){const l=c[2]?.toString()||"",u=hg(l);return a!==u&&(a=u,setTimeout(()=>e(l),0)),s.apply(t,c)}})}function dg(e,r){const t=e.indexOf(r);return t>-1?e.slice(0,t):e}function hg(e){return["#","?"].forEach(r=>e=dg(e,r)),e}function vg(){fg(()=>{br.page()})}function pg(e){if(e===void 0&&(e={}),!qe)return Uo;var r=rd(),t=xo(),n=ed(),a=Ht(n,r),i=Ht(t,r),o=[],s=[],c=[],l=n,u=a,f=i,h=Object.keys(e);if(!h.length)return Uo;var d=h.map(function(m){return Number(m)}),v=Tm(function(){var m=rd(),w=function(x,N){return N.map(function(q){return q===100?x-5:x*(q/100)})}(m,d),E=xo(),b=ed(),g=Ht(b,m),p=Ht(E,m);if(u=g>u?g:u,f=p<f?p:f,!(o.length>=d.length)){var y=l===b,k="up";y?k="initial":l<=b&&(k="down");var A=w,j=d;(k==="up"||y)&&(A=w.slice().reverse(),j=d.slice().reverse());var z=j.reduce(function(x,N,q){var O=A[q];return c.includes(N)&&b<=O&&(c=c.filter(function(X){return X!==N}),x.singleFunction=N),k==="down"&&!o.includes(N)&&b>=O&&N>i?(s.push(N),x.callbacks=x.callbacks.concat(N),x):k==="up"&&!o.includes(N)&&b<=O&&N<=g?(x.foundFunc=[N],x):(y&&b>=O&&x.foundFunc.length===0&&(x.foundFunc=[N]),!s.includes(N)&&b>=O&&(s.push(N),x.singleFunction?c.push(N):x.singleFunction=N),x)},{foundFunc:[],singleFunction:null,callbacks:[],direction:k});if(l=b,k==="down"&&z.callbacks&&z.callbacks.forEach(function(x){Ke(e[x])&&(e[x]({trigger:x,direction:k,scrollMin:f,scrollMax:u,range:[f,u]}),o.push(x))}),z.singleFunction){var H=z.singleFunction,ee=z.direction;Ke(e[H])&&e[H]({trigger:H,direction:ee,scrollMin:f,scrollMax:u,range:[f,u]}),o.push(H)}}},500);return window.addEventListener("scroll",v),function(){return window.removeEventListener("scroll",v)}}function xo(){return qe?document.body.scrollTop||document.documentElement.scrollTop:0}function mg(){return qe?window.innerHeight||document.documentElement.clientHeight:0}function ed(){return Math.round(xo()+mg())}function rd(){if(!qe)return 0;var e=document.body,r=document.documentElement;return Math.max(e.scrollHeight,e.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight)}function Ht(e,r){return Math.round(e/r*100)}var td="EventListener";function gg(e){return function(r,t,n,a){var i=n||Uo,o=a||!1;if(!qe)return i;var s=en(t),c=en(r,!0);if(!c.length)throw new Error("noElements");if(!s.length)throw new Error("noEvent");var l=[];return function u(f){f&&(l=[]);for(var h=f?"add"+td:"remove"+td,d=0;d<c.length;d++){var v=c[d];l[d]=f?o&&o.once?yg(i):i:l[d]||i;for(var m=0;m<s.length;m++)v[h]?v["on"+s[m]]=f?l[d]:null:v[h](s[m],l[d],o)}return u.bind(null,!f)}(e)}}function en(e,r){if(Or(e))return r?en(document.querySelectorAll(e)):(t=e).split(t.indexOf(",")>-1?",":" ").map(function(o){return o.trim()});var t;if(NodeList.prototype.isPrototypeOf(e)){for(var n=[],a=e.length>>>0;a--;)n[a]=e[a];return n}var i=Im(e);return r?i.map(function(o){return Or(o)?en(o,!0):o}).flat():i}function yg(e,r){var t;return function(){return e&&(t=e.apply(this,arguments),e=null),t}}var Eo=gg("Event");function Kh(e,r){return qe&&Ke(window[e])?(t=window[e],n=r,(a=window)===void 0&&(a=null),Ke(t)?function(){t.apply(a,arguments),n.apply(a,arguments)}:n):window[e]=r;var t,n,a}Kh.bind(null,"onerror");Kh.bind(null,"onload");var Wh=typeof window>"u",nd="hidden";function wg(e){if(Wh)return!1;var r=bg(),t="".concat(r.replace(/[H|h]idden/,""),"visibilitychange"),n=function(){return e(!!document[r])},a=function(){return document.addEventListener(t,n)};return a(),function(){return document.removeEventListener(t,n),a}}function bg(){var e=["webkit","moz","ms","o"];return Wh||nd in document?nd:e.reduce(function(r,t){var n=t+"Hidden";return!r&&n in document?n:r},null)}var Sg=["mousemove","mousedown","touchmove","touchstart","touchend","keydown"];function Ig(e,r){r===void 0&&(r={});var t=function(o,s){var c=this,l=!1;return function(u){l||(o.call(c,u),l=!0,setTimeout(function(){return l=!1},s))}}(e,r.throttle||1e4),n=[];function a(){var o=wg(function(s){s||t({type:"tabVisible"})});return n=[o].concat(Sg.map(function(s){return Eo(document,s,t)})).concat(Eo(window,"load",t)).concat(Eo(window,"scroll",t,{capture:!0,passive:!0})),i}function i(){n.map(function(o){return o()})}return a(),function(){return i(),a}}function Pg(e){var r,t,n=e.onIdle,a=e.onWakeUp,i=e.onHeartbeat,o=e.timeout,s=o,c=e.throttle,l=c===void 0?2e3:c,u=!1,f=!1,h=new Date,d=function(){return clearTimeout(r)};function v(w){d(),i&&!u&&i(yt(h),w),a&&u&&(u=!1,a(yt(t),w),h=new Date),r=setTimeout(function(){u=!0,n&&(t=new Date,n(yt(h),w))},s)}var m=Ig(v,{throttle:l});return{disable:function(){f=!0,u=!1,d();var w=m();return function(){return f=!1,h=new Date,v({type:"load"}),w()}},getStatus:function(){return{isIdle:u,isDisabled:f,active:u?0:yt(h,f),idle:u?yt(t,f):0}}}}function yt(e,r){return r?0:Math.round((new Date-e)/1e3)}const ad=5e3;class Eg{element;isInViewport=!1;isAwake=!1;isFlushing;observer;lastEventAt=Date.now();registeredView=!1;viewCallback;activeDurationCallback;idleDurationCallback;scrollCallback;constructor(r){this.element=r.element,this.viewCallback=r.viewCallback,this.activeDurationCallback=r.activeDurationCallback,this.idleDurationCallback=r.idleDurationCallback,this.scrollCallback=r.scrollCallback,this.observer=new IntersectionObserver(t=>{t.forEach(n=>{this.handleInViewPort(n.isIntersecting)})},{threshold:0}),this.observer.observe(this.element),Pg({onIdle:t=>this.handleAwake(!1,t),onWakeUp:t=>this.handleAwake(!0,t),timeout:ad}),pg({25:this.handleScroll.bind(this),50:this.handleScroll.bind(this),75:this.handleScroll.bind(this),90:this.handleScroll.bind(this),100:this.handleScroll.bind(this)})}flush(){this.isFlushing=!0,this.handleAwake(!this.isAwake)}handleInViewPort(r){r?(this.isAwake=!0,this.trackInViewport()):this.handleAwake(!1),this.isInViewport=r}handleAwake(r,t=Math.round((Date.now()-this.lastEventAt)/1e3)){this.isAwake=r,this.lastEventAt=r?Date.now()-t*ad:Date.now(),this.isInViewport&&this.trackAwake(r,t)}handleScroll(r){this.scrollCallback&&this.scrollCallback(r)}handleVisibilityChange(){this.isAwake=!1;const r=Math.round((Date.now()-this.lastEventAt)/1e3);r>1&&(this.lastEventAt=Date.now(),this.trackAwake(!1,r))}trackAwake(r,t){!r&&this.activeDurationCallback&&this.activeDurationCallback(t,this.isFlushing,this.lastEventAt),r&&this.idleDurationCallback&&this.idleDurationCallback(t,this.isFlushing,this.lastEventAt)}trackInViewport(){this.registeredView||(this.registeredView=!0,this.viewCallback&&this.viewCallback())}}const id="sesamy_session_id";function Rg(){let e=sessionStorage.getItem(id);return e||(e=Math.random().toString(36).slice(2,9),sessionStorage.setItem(id,e)),e}function Vh(e){function r(n){return n.id?`#${n.id}`:n.classList.length>0?Array.from(n.classList).map(i=>`.${i}`).join(""):null}function t(n){const a=[];let i=n;for(;i&&i!==document.body&&i!==document.documentElement;){const o=r(i);if(o){a.unshift(o);break}if(i.parentElement){const s=Array.from(i.parentElement.children),c=s.indexOf(i)+1,l=i.tagName.toLowerCase();s.filter(f=>f.tagName.toLowerCase()===l).length>1?a.unshift(`${l}:nth-child(${c})`):a.unshift(l)}i=i.parentElement}return a.join(" > ")}return t(e)}let Ze={article:{selector:"sesamy-article"},image:{selector:"img",attribute:"src"},title:{selector:"h1",attribute:"textContent"},excerpt:{selector:"p",attribute:"textContent"},price:{selector:"sesamy-article",attribute:"price"},currency:{selector:"sesamy-article",attribute:"currency"},url:{selector:"sesamy-article",attribute:"item-src"},accessLevel:{selector:"sesamy-article",attribute:"access-level"},id:{selector:"sesamy-article",attribute:"publisher-content-id"},pass:{selector:"sesamy-article",attribute:"pass"}},Jt;function _g(e,r){Ze={...Ze,...e.content?.article},Jt=r}function Tg(e,r){const{selector:t}=r;return t===Ze.article.selector?e:e.querySelector(t)}function Jh(e,r){if(e)return r.attribute?r.attribute==="textContent"?e.textContent??void 0:e.getAttribute(r.attribute)??Jh(e.parentElement,r):e.textContent??void 0}function tt(e){const r=document.head.querySelectorAll(`[property~='${e}'][content]`);for(let n=0;n<r.length;n+=1)if(r[n].content)return r[n].content;const t=document.head.querySelectorAll(`[name~='${e}'][content]`);for(let n=0;n<t.length;n+=1)if(t[n].content)return t[n].content}function Zh({publisherContentId:e,key:r,defaultValue:t=""}){return(e?document.body.querySelector(`sesamy-content-data[id='${e}']`):null)?.getAttribute(r)||tt(`sesamy:${r}`)||tt(`og:${r}`)||tt(r)||t}function Og(){const e=document.querySelectorAll(Ze.article.selector);return Array.from(e).map(ys).filter(r=>r!==null)}function ys(e){const r=typeof e=="string"?document.querySelector(e):e;if(!r)return null;const t={element:r,selector:typeof e=="string"?e:Vh(r)},n=(a,i,o,s)=>{const c=Tg(r,i);if(c){const l=Jh(c,i)||Zh({publisherContentId:o,key:a});l!==void 0&&(t[a]=s?s(l):l)}};return n("id",Ze.id),n("title",Ze.title,t.id),n("excerpt",Ze.excerpt,t.id),n("image",Ze.image,t.id),n("price",Ze.price,t.id,a=>parseFloat(a)),n("currency",Ze.currency,t.id),n("url",Ze.url,t.id),n("pass",Ze.pass,t.id),n("accessLevel",Ze.accessLevel,t.id,a=>a||"entitlement"),t}async function kg(e,r){const t=typeof e=="string"?document.querySelector(e):e;if(!t)throw new Error("Could not find element");const n=ys(t);if(!n?.url)throw new Error("Could not find content for element");const a=await Jt.entitlements.hasAccess(n.url||"",n.pass?.split(",")||[]);if(!a)throw new Error("User does not have access to the content");const i=await Jt.entitlements.access(a.id);if(!i.token)throw new Error("Could not get access token");const o=r||Vh(t.parentElement||t);return Jt.proxy.getContent(i.token,n.url,o)}function Yh(e){document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}let Xh=!1,No,od,rn;const Qh=new Map;function Cg({clientId:e,enabled:r=!0,environment:t}){No=e,od=r,rn=`${vr("logs",t)}/events`,od&&(window.addEventListener("beforeunload",()=>{tv.forEach((n,a)=>{n.bind(a)()}),Ag()}),window.addEventListener("visibilitychange",()=>{document.visibilityState!=="visible"&&Qh.forEach((n,a)=>{n.bind(a)()})}),vg(),Yh(()=>{const n=new Eg({element:document.body,viewCallback:()=>{br.page()},activeDurationCallback:(a,i,o)=>{br.track("activeDuration",{duration:a,durationStart:o,flushing:i})},idleDurationCallback:(a,i,o)=>{br.track("idleDuration",{duration:a,durationStart:o,flushing:i})},scrollCallback:a=>{br.track("scroll",{scroll:a.scrollMax})}});jg(document.body,()=>{n.flush()}),Ug(document.body,()=>{n.handleVisibilityChange()})}),window.addEventListener(We.AUTHENTICATED,async n=>{const a=n;await br.identify(a.detail.sub)}),window.addEventListener(We.LOGOUT,async()=>{await br.track("logout",{}),ws.flush(),await br.reset()}))}function ev(e){return JSON.stringify(e.map(r=>({...r,clientId:No,requestId:Math.random().toString(36).slice(2,9),sessionId:Rg(),timestamp:new Date().toISOString(),version:gs,event:r.event,context:{page:{url:window.location.href,title:document.title,referrer:document.referrer,itemSrc:tt("sesamy:item-src"),publisherContentId:tt("sesamy:publisher-content-id")},locale:navigator.language,library:Gh,userAgent:navigator.userAgent,clientId:No}})))}const ws=lg(async e=>{if(e.length>0){const r=ev(e);Xh?navigator.sendBeacon(rn,r):(await fetch(rn,{method:"POST",body:r,headers:{"Content-Type":"text/plain"}})).ok}},{max:10,interval:3e3});function Ro(e){if(e.anonymousId)if(e.properties?.flushing){const r={...e};delete r.properties.flushing,navigator.sendBeacon(rn,ev([r]))}else ws.push(e)}const br=cg({app:Gh,version:gs,plugins:[{name:"custom-analytics-plugin",page:({payload:e})=>{const{properties:r,anonymousId:t,userId:n,event:a}=e;Ro({anonymousId:t,userId:n,properties:r,event:a,type:"page"})},track:({payload:e})=>{const{properties:r,anonymousId:t,userId:n,event:a}=e;Ro({anonymousId:t,userId:n,properties:r,event:a,type:"track"})},identify:({payload:e})=>{const{properties:r,anonymousId:t,userId:n}=e;Ro({anonymousId:t,userId:n,properties:r,type:"identify"})}}]});function rv(e,r){br.track(e,r)}function Ag(){return Xh=!0,ws.flush()}const tv=new Map;function jg(e,r){tv.set(e,r)}function Ug(e,r){Qh.set(e,r)}function nv(e,r,t=!1){const n={name:e,data:r},a=new CustomEvent(e,{detail:n,cancelable:t,bubbles:!0});rv(`event:${e}`,{...r,timestamp:new Date().toISOString()});const i=window.dispatchEvent(a);return t&&!i?{canceled:!0,message:n.cancellationMessage}:{canceled:!1}}function Lg(e,r){e.cancelable&&(e.detail.cancellationMessage=r,e.preventDefault())}let Le,av,Do=!1,Zt=!1;Et()&&window.addEventListener("pageshow",()=>{Zt=!1});const ot="sesamyAccessToken",_o="sesamyRefreshToken";async function In(){return Do?!0:new Promise((e,r)=>{const t=setTimeout(()=>{Do?e(!0):r(new Error("Initialization failed: Timeout"))},2e3);window.addEventListener(We.AUTH_INITIALIZED,()=>{clearTimeout(t),e(!0)})})}async function qg(e){if(!e)return null;const r=localStorage.getItem(_o);if(!r)return ye("No refresh token found in localstorage"),null;const t=new URLSearchParams;t.set("client_id",e.iss),t.set("refresh_token",r),t.set("grant_type","refresh_token");const n=new URL(e.iss);n.pathname="/oauth/token",n.searchParams.set("user_id",e.sub);try{const a=await fetch(n.href,{body:t.toString(),method:"POST",headers:{"content-type":"application/x-www-form-urlencoded"}});if(!a.ok)throw localStorage.removeItem(_o),new Error("Renew token failed");const i=await a.json();return localStorage.setItem(_o,i.refresh_token),localStorage.setItem(ot,i.access_token),i.access_token}catch{Ss()}}async function bs(){const e=localStorage.getItem(ot);if(!e)return null;const r=Is(e);if(!r||!r.exp||r.exp<new Date().getTime()/1e3){const t=await qg(r);if(t)return t;localStorage.removeItem(ot)}return e}let Gt=null;function xg(){try{if(Gt!==null)return Gt;const r=Object.keys(localStorage).filter(t=>t.startsWith("@@auth0spajs@@"));for(const t of r){const n=JSON.parse(localStorage.getItem(t)||"{}");if(typeof n=="object"&&"refresh_token"in n)return Gt=!0,!0}}catch(e){ye(`Error checking for existing auth0 tokens: ${e.message}`)}return Gt=!1,!1}function sd(e){try{const r=new URL(e).hostname,t=r.split(".");return t.length>1?t.slice(-2).join("."):r}catch{return null}}async function Ng(e){if(e.enabled===!1)return;av=e.organization;const r=e.domain&&!xg()?e.domain:Ph("token",e.environment),t={domain:r,clientId:e.clientId,useCookiesForTransactions:!0};t.cacheLocation="localstorage",sd(window.location.href)!==sd(`https://${r}`)&&(t.useRefreshTokens=!0),ye(`Initializing auth0 client: ${JSON.stringify(t)}`),Le=await om(t);const n=new URLSearchParams(window.location.search),a=n.get("code"),i=n.get("state");if(a)if(window.opener)ye("Code found in URL, posting to opener"),window.opener.postMessage({type:"authorization_response",response:{code:a,state:i}},window.location.origin);else{ye("Code found in URL, handling redirect");try{const c=await Le.handleRedirectCallback();ye(`Login result: ${JSON.stringify(c)}`);const l=await Le.getUser();if(!l)throw ye("No user found"),new Error("No user found");ye(`User found ${JSON.stringify(l)}`),Ir(We.AUTHENTICATED,l),ye("Rewrite url")}catch(c){alert("There was an error logging in"),console.error(c)}const o=new URL(location.href),s=o.searchParams;s.delete("code"),s.delete("state"),o.search=s.toString(),window.history.replaceState({},document.title,o.toString())}Do=!0,Ir(We.AUTH_INITIALIZED,{})}async function _t(){return await In(),await bs()?!0:Le?Le.isAuthenticated():!1}async function Dg(){return await In(),await bs()?(ye("Using local user"),{sub:"local",name:"Local User"}):Le?Le.getUser():null}function iv(e){if(Zt)return ye("Login already in progress"),null;if(Zt=!0,setTimeout(()=>{Zt=!1},3e3),localStorage.removeItem(ot),!Le)throw new Error("Auth0 client not initialized");const r=e?.authorizationParams||{};return{...e,authorizationParams:{organization:av,redirect_uri:window.location.href,ui_locales:Yt(),incognito:ls(),...r}}}async function Pn(e){const r=iv(e);if(r)return Le.loginWithRedirect(r)}async function ov(e){const r=iv(e);if(!r)return;await Le.loginWithPopup(r),nv(We.AUTHENTICATED,await Le.getUser()).canceled||window.location.reload()}async function $g(e){return await ls()?ov(e):Pn(e)}async function Zr(e=!0,r=!1){await In();const t=await bs();if(t)return t;try{if(!Le)return ye("Auth client not initialized"),null;if(await Le.isAuthenticated()===!1)return null;let n=await Le.getTokenSilently();const a=Is(n);return r&&a?.exp&&a.exp+3600<new Date().getTime()/1e3&&(n=await Le.getTokenSilently({cacheMode:r?"off":"on"})),n}catch(n){const a=n;if(ye(`Failed to get token silently: ${a.message}`),(a.message==="Invalid refresh token"||a.message.includes("Missing Refresh Token"))&&await Ss(),e)throw n;return null}}async function Ss(e={}){if(await In(),localStorage.removeItem(ot),Ir(We.LOGOUT,{}),!!Le)return ye(`Logout with options: ${JSON.stringify(e)}`),Le.logout({...e,logoutParams:{returnTo:window.location.href,...e.logoutParams}})}function Is(e){const r=e.split(".");if(r.length!==3)return null;const n=r[1].replace(/-/g,"+").replace(/_/g,"/"),a=decodeURIComponent(atob(n).split("").map(function(i){return"%"+("00"+i.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(a)}async function $o(e){const r=Is(e);if(!r||!r.exp||r.exp<new Date().getTime()/1e3)throw new Error("Invalid token");ye("Set token"),localStorage.setItem(ot,e),Ir(We.AUTHENTICATED,r)}const Mg=(e,r)=>r.skipDedupe||r.method!=="GET",Fg=(e,r)=>r.method+"@"+e,Bg=e=>e.clone(),ud=({skip:e=Mg,key:r=Fg,resolver:t=Bg}={})=>{const n=new Map;return a=>(i,o)=>{if(e(i,o))return a(i,o);const s=r(i,o);if(!n.has(s))n.set(s,[]);else return new Promise((c,l)=>{n.get(s).push([c,l])});try{return a(i,o).then(c=>(n.get(s).forEach(([l])=>l(t(c))),n.delete(s),c)).catch(c=>{throw n.get(s).forEach(([,l])=>l(c)),n.delete(s),c})}catch(c){return n.delete(s),Promise.reject(c)}}},zg=(e,r)=>e*r,Hg=e=>e&&e.ok,cd=({delayTimer:e=500,delayRamp:r=zg,maxAttempts:t=10,until:n=Hg,onRetry:a=null,retryOnNetworkError:i=!1,resolveWithLatestResponse:o=!1,skip:s}={})=>c=>(l,u)=>{let f=0;if(s&&s(l,u))return c(l,u);const h=(d,v)=>Promise.resolve(n(d,v)).then(m=>m?d&&o?d:v?Promise.reject(v):d:(f++,!t||f<=t?new Promise(w=>{const E=r(e,f);setTimeout(()=>{typeof a=="function"?Promise.resolve(a({response:d,error:v,url:l,options:u})).then((b={})=>{var g,p;w(c((g=b&&b.url)!==null&&g!==void 0?g:l,(p=b&&b.options)!==null&&p!==void 0?p:u))}):w(c(l,u))},E)}).then(h).catch(w=>{if(!i)throw w;return h(null,w)}):d&&o?d:Promise.reject(v||new Error("Number of attempts exceeded."))));return c(l,u).then(h).catch(d=>{if(!i)throw d;return h(null,d)})},Gg="application/json",sv="Content-Type",Vr=Symbol(),uv=Symbol();function ld(e={}){var r;return(r=Object.entries(e).find(([t])=>t.toLowerCase()===sv.toLowerCase()))===null||r===void 0?void 0:r[1]}function fd(e){return/^application\/.*json.*/.test(e)}const Nr=function(e,r,t=!1){return Object.entries(r).reduce((n,[a,i])=>{const o=e[a];return Array.isArray(o)&&Array.isArray(i)?n[a]=t?[...o,...i]:i:typeof o=="object"&&typeof i=="object"?n[a]=Nr(o,i,t):n[a]=i,n},{...e})},st={options:{},errorType:"text",polyfills:{},polyfill(e,r=!0,t=!1,...n){const a=this.polyfills[e]||(typeof self<"u"?self[e]:null)||(typeof global<"u"?global[e]:null);if(r&&!a)throw new Error(e+" is not defined");return t&&a?new a(...n):a}};function Kg(e,r=!1){st.options=r?e:Nr(st.options,e)}function Wg(e,r=!1){st.polyfills=r?e:Nr(st.polyfills,e)}function Vg(e){st.errorType=e}const Jg=e=>r=>e.reduceRight((t,n)=>n(t),r)||r;class cv extends Error{}const Zg=e=>{const r=Object.create(null);e=e._addons.reduce((g,p)=>p.beforeRequest&&p.beforeRequest(g,e._options,r)||g,e);const{_url:t,_options:n,_config:a,_catchers:i,_resolvers:o,_middlewares:s,_addons:c}=e,l=new Map(i),u=Nr(a.options,n);let f=t;const h=Jg(s)((g,p)=>(f=g,a.polyfill("fetch")(g,p)))(t,u),d=new Error,v=h.catch(g=>{throw{[Vr]:g}}).then(g=>{var p;if(!g.ok){const y=new cv;if(y.cause=d,y.stack=y.stack+`
|
|
36
36
|
CAUSE: `+d.stack,y.response=g,y.status=g.status,y.url=f,g.type==="opaque")throw y;const k=a.errorType==="json"||((p=g.headers.get("Content-Type"))===null||p===void 0?void 0:p.split(";")[0])==="application/json";return(a.errorType?k?g.text():g[a.errorType]():Promise.resolve(g.body)).then(j=>{throw y.message=typeof j=="string"?j:g.statusText,j&&(k&&typeof j=="string"?(y.text=j,y.json=JSON.parse(j)):y[a.errorType]=j),y})}return g}),m=g=>g.catch(p=>{const y=Object.prototype.hasOwnProperty.call(p,Vr),k=y?p[Vr]:p,A=k?.status&&l.get(k.status)||l.get(k?.name)||y&&l.has(Vr)&&l.get(Vr);if(A)return A(k,e);const j=l.get(uv);if(j)return j(k,e);throw k}),w=g=>p=>m(g?v.then(y=>y&&y[g]()).then(y=>p?p(y):y):v.then(y=>p?p(y):y)),E={_wretchReq:e,_fetchReq:h,_sharedState:r,res:w(null),json:w("json"),blob:w("blob"),formData:w("formData"),arrayBuffer:w("arrayBuffer"),text:w("text"),error(g,p){return l.set(g,p),this},badRequest(g){return this.error(400,g)},unauthorized(g){return this.error(401,g)},forbidden(g){return this.error(403,g)},notFound(g){return this.error(404,g)},timeout(g){return this.error(408,g)},internalError(g){return this.error(500,g)},fetchError(g){return this.error(Vr,g)}},b=c.reduce((g,p)=>({...g,...typeof p.resolver=="function"?p.resolver(g):p.resolver}),E);return o.reduce((g,p)=>p(g,e),b)},Yg={_url:"",_options:{},_config:st,_catchers:new Map,_resolvers:[],_deferred:[],_middlewares:[],_addons:[],addon(e){return{...this,_addons:[...this._addons,e],...e.wretch}},errorType(e){return{...this,_config:{...this._config,errorType:e}}},polyfills(e,r=!1){return{...this,_config:{...this._config,polyfills:r?e:Nr(this._config.polyfills,e)}}},url(e,r=!1){if(r)return{...this,_url:e};const t=this._url.split("?");return{...this,_url:t.length>1?t[0]+e+"?"+t[1]:this._url+e}},options(e,r=!1){return{...this,_options:r?e:Nr(this._options,e)}},headers(e){const r=e?Array.isArray(e)?Object.fromEntries(e):"entries"in e?Object.fromEntries(e.entries()):e:{};return{...this,_options:Nr(this._options,{headers:r})}},accept(e){return this.headers({Accept:e})},content(e){return this.headers({[sv]:e})},auth(e){return this.headers({Authorization:e})},catcher(e,r){const t=new Map(this._catchers);return t.set(e,r),{...this,_catchers:t}},catcherFallback(e){return this.catcher(uv,e)},resolve(e,r=!1){return{...this,_resolvers:r?[e]:[...this._resolvers,e]}},defer(e,r=!1){return{...this,_deferred:r?[e]:[...this._deferred,e]}},middlewares(e,r=!1){return{...this,_middlewares:r?e:[...this._middlewares,...e]}},fetch(e=this._options.method,r="",t=null){let n=this.url(r).options({method:e});const a=ld(n._options.headers),i=this._config.polyfill("FormData",!1),o=typeof t=="object"&&!(i&&t instanceof i)&&(!n._options.headers||!a||fd(a));return n=t?o?n.json(t,a):n.body(t):n,Zg(n._deferred.reduce((s,c)=>c(s,s._url,s._options),n))},get(e=""){return this.fetch("GET",e)},delete(e=""){return this.fetch("DELETE",e)},put(e,r=""){return this.fetch("PUT",r,e)},post(e,r=""){return this.fetch("POST",r,e)},patch(e,r=""){return this.fetch("PATCH",r,e)},head(e=""){return this.fetch("HEAD",e)},opts(e=""){return this.fetch("OPTIONS",e)},body(e){return{...this,_options:{...this._options,body:e}}},json(e,r){const t=ld(this._options.headers);return this.content(r||fd(t)&&t||Gg).body(JSON.stringify(e))}};function mr(e="",r={}){return{...Yg,_url:e,_options:r}}mr.default=mr;mr.options=Kg;mr.errorType=Vg;mr.polyfills=Wg;mr.WretchError=cv;function rr(){return sessionStorage.removeItem(Ao),ye("Cache cleared"),Ir(We.CLEAR_CACHE,{}),"Cache cleared"}function Mo(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}function lv(e,r){if(Mo(e))return{itemSrc:e};const[t,n,a]=e.split(":");return{sku:`${t}:${n}`,purchaseOption:r||a}}function dd(e){return e.endsWith("/")?e.slice(0,-1):e}function hd(e,r){if(!Mo(e)||!Mo(r))return!1;const t=new URL(e),n=new URL(r);return t.origin===n.origin&&dd(t.pathname)===dd(n.pathname)}function Xg(e,r,t){const n=new URL(`${vr("checkout3",e.environment)}`);if(r.language&&n.searchParams.set("lang",r.language),r.sku)n.searchParams.set("sku",r.sku),r.purchaseOptionId&&n.searchParams.set("po-id",r.purchaseOptionId);else if(r.itemSrc){const{sku:s,purchaseOption:c,itemSrc:l}=lv(r.itemSrc,r.purchaseOptionId);l&&n.searchParams.set("url",l),s&&n.searchParams.set("sku",s),c&&n.searchParams.set("po-id",c)}r.email&&n.searchParams.set("email",r.email),r.business&&n.searchParams.set("business","true"),r.currency&&n.searchParams.set("currency",r.currency),r.price&&n.searchParams.set("price",r.price.toString()),r.discountCode&&n.searchParams.set("discount-code",r.discountCode),r.attributionItemSrc?n.searchParams.set("itemSrc",r.attributionItemSrc):t.itemSrc&&n.searchParams.set("itemSrc",t.itemSrc),r.attributionPublisherContentId?n.searchParams.set("publisherContentId",r.attributionPublisherContentId):t.publisherContentId&&n.searchParams.set("publisherContentId",t.publisherContentId),r.utmSource?n.searchParams.set("utm_source",r.utmSource):t.utmSource&&n.searchParams.set("utm_source",t.utmSource),r.utmMedium?n.searchParams.set("utm_medium",r.utmMedium):t.utmMedium&&n.searchParams.set("utm_medium",t.utmMedium),r.utmCampaign?n.searchParams.set("utm_campaign",r.utmCampaign):t.utmCampaign&&n.searchParams.set("utm_campaign",t.utmCampaign),r.utmTerm?n.searchParams.set("utm_term",r.utmTerm):t.utmTerm&&n.searchParams.set("utm_term",t.utmTerm),r.utmContent?n.searchParams.set("utm_content",r.utmContent):t.utmContent&&n.searchParams.set("utm_content",t.utmContent);const a=["_ga","_gid","_fbp","_fbc"];document.cookie.split(";").map(s=>{const[c,l]=s.trim().split("=");return{key:c,value:l}}).filter(s=>a.some(c=>c===s.key)).forEach(s=>{n.searchParams.append(s.key,s.value)});const o=new URL(r.redirectUrl||window.location.href);return o.searchParams.set("force-refetch-entitlements","true"),r.itemSrc&&o.searchParams.set("sesamy-purchase",r.itemSrc),n.searchParams.set("redirect-url",o.toString()),r.paymentMethodsFilter&&n.searchParams.set("paymentmethods-filter",r.paymentMethodsFilter.flatMap(({provider:s,methods:c})=>c?c.map(l=>`${s}|${l}`):s).join(",")),n}const fv="sesamySignedURLs";function Ps(){const e=sessionStorage.getItem(fv);return e?JSON.parse(e):[]}function Qg(e){const r=Ps();r.push(e),ye(`Adding signed URL: ${e}`),sessionStorage.setItem(fv,JSON.stringify(r))}function ey(e){const r={};return Object.keys(e).forEach(t=>{const n=e[t];n!=null&&(r[t]=n.toString())}),r}const Fo="sesamyAttribution";function ry(e){const r=localStorage.getItem(e);if(!r)return null;try{return JSON.parse(r).value}catch{return console.error(`Failed to parse ${e}`),null}}function ty(e){return Object.keys(e).find(r=>r.startsWith("utm_"))?{utmSource:void 0,utmMedium:void 0,utmCampaign:void 0,...e}:e}function tn(){return ry(Fo)||{}}function dv(e){if(e===null)localStorage.removeItem(Fo);else{ye(`Setting attribution ${JSON.stringify(e)}`);const r=tn()??{},t=ey({...r,...ty(e)});localStorage.setItem(Fo,JSON.stringify({value:t}))}}function ny(e){const r=vr("api2",e.environment),t=T=>async(F,J)=>{let pe=sessionStorage.getItem(Ao);pe||(pe=Date.now().toString(),sessionStorage.setItem(Ao,pe));const ve={...J,headers:{...J.headers,"Cache-Timestamp":pe}};return T(F,ve)},n=(T=!0)=>F=>async(J,pe)=>{let ve=null;if(ve=await Zr(T),!ve){if(T)throw new Error("No access token available");return F(J,pe)}const me={...pe,headers:{...pe.headers,...ve?{Authorization:`Bearer ${ve}`}:{}}};return F(J,me)},a=T=>(F,J)=>{if(J.headers.Authorization)return T(F,J);const pe=localStorage.getItem("__anon_id"),ve=btoa(`${e.clientId}|${pe}:`),me={...J,headers:{...J.headers,Authorization:`Basic ${ve}`}};return T(F,me)},i=mr(r).headers({"Content-Type":"application/json"}).middlewares([t,n(),ud(),cd({delayTimer:1e3,delayRamp:(T,F)=>T*F,maxAttempts:3,until:T=>!!(T&&(T.ok||T.status>=400&&T.status<500)),retryOnNetworkError:!1})]),o=mr(r).headers({"Content-Type":"application/json"}).middlewares([t,n(!1),a,ud(),cd({delayTimer:1e3,delayRamp:(T,F)=>T*F,maxAttempts:3,until:T=>!!(T&&(T.ok||T.status>=400&&T.status<500)),retryOnNetworkError:!1})]);async function s(T={}){const{waitForEntitlementAfter:F,includeSignedLinks:J=!0}=T,pe=F?`?wait-for-entitlement-after=${F.toISOString()}`:"",ve=await _t()?await i.get(`/entitlements${pe}`).json():[];return J&&ve.push(...Ps()),ve}async function c(T,F=[]){return(await s())?.find(ve=>{const{sku:me,purchaseOption:Be}=lv(T);let M="sku"in ve&&me===ve.sku;M&&Be&&"purchaseOptionId"in ve&&(M=Be===ve.purchaseOptionId);const ie=hd(T,ve.url),le=F.some(fe=>hd(fe,ve.url));return M||ie||le})}async function l(T){return(await i.get("/entitlements").json())?.find(J=>J.id===T)}async function u(T){return i.get(`/entitlements/${encodeURIComponent(T)}/access`).json()}async function f(T,F,J){const pe=new URL(vr("api2",e.environment));return pe.pathname="/proxy",pe.searchParams.set("url",F),J&&pe.searchParams.set("selector",J),mr(pe.toString()).headers({Authorization:`Bearer ${T}`}).get().text()}async function h(T){if(!T)throw new Error("SKU is required to get fulfillments");return await _t()?await i.get(`/fulfillments?sku=${encodeURIComponent(T)}`).json():[]}async function d(T,F){if(!T||!F)throw new Error("SKU and itemId are required to request delivery");return(await i.post({sku:T},`/fulfillments/${encodeURIComponent(F)}/request-delivery?`).res()).ok}async function v(){return i.get("/contracts").json()}async function m(T){return(await i.get("/contracts").json())?.find(J=>J.id===T)}async function w(T){const F=await i.post({},`/contracts/${encodeURIComponent(T)}/cancel`).res();return rr(),F.ok}async function E(){return console.warn("getSubscriptions is deprecated, use getContracts instead"),i.get("/subscriptions").json()}async function b(){return i.get("/bills").json()}async function g(T){return(await i.get("/bills").json())?.find(J=>J.id===T)}async function p(){return i.get("/transactions").json()}async function y(T){return(await i.get("/transactions").json())?.find(J=>J.id===T)}async function k(T,F){const J=await i.url(`/user-metadata/${encodeURIComponent(T)}`).put(F).json();return Ir(We.USER_ATTRIBUTE_CHANGED,{}),rr(),J}async function A(T){const F=await i.url(`/user-metadata/${encodeURIComponent(T)}`).delete().res();return rr(),F.ok}async function j(T){return(await i.url(`/user-metadata/${encodeURIComponent(T)}`).get().json())[T]}async function z(){return await i.url("/user-metadata").get().json()}async function H(){return await i.url("/tags").get().json()}async function ee(T){const F=await i.url(`/tags/${encodeURIComponent(T)}`).delete().res();return rr(),F.ok}async function x(T){const F=await i.url("/tags").post(encodeURIComponent(T)).res();return Ir(We.USER_ATTRIBUTE_CHANGED,{}),rr(),F.ok}async function N(T){return(await o.url("/tallies").get().json())[T]}async function q(){return await o.url("/tallies").get().json()}async function O(T){const F=await o.url(`/tallies/${T}`).delete().res();return rr(),F.ok}async function X(T,F){return await o.url(`/tallies/${encodeURIComponent(T)}/push`).post(F).json()}async function re(T){return await i.url(`/products/${encodeURIComponent(T)}`).get().json()}async function Q(){return await Zr(!1)?await i.url("/profile").get().json():null}async function S(T){const F=await i.url("/profile").patch(T).res();return rr(),F.ok}async function _(){return await i.url("/payment-issues").get().json()}async function D(){return(await i.url("/profile/spotify-link").get().json()).isSpotifyLinked}async function B(){return(await i.url("/profile/unlink-spotify").post().res()).ok}async function K(T){const F=await Zr(!1);if(!F)throw new Error("No access token available");const J=new URL(`${vr("access-sync",e.environment)}/spotify/sesamy-callback`);J.searchParams.set("access_token",F),J.searchParams.set("state",T),window.location.href=J.toString()}async function Z(T){const F=await i.url(`/products/${encodeURIComponent(T)}/auto-onboard`).post().json();return F.length&&rr(),F}async function de(T,F=3600){const{shortlink:J}=await mr(cm).post({url:T,ttl:F}).json();return J}async function ae(T){const F=await Zr(!1,!0);let J;const pe=T.language||Yt(),ve=tn();switch(T.target){case"account":J=new URL(`${vr("account",e.environment)}/${encodeURIComponent(T.language||pe)}/subscriptions/${encodeURIComponent(e.clientId)}${T.contractId?`/${encodeURIComponent(T.contractId)}`:""}`),J.searchParams.set("sesamy-redirect-url",T.redirectUrl||window.location.href);break;case"change-payment":J=new URL(`${vr("account",e.environment)}/${encodeURIComponent(T.language||pe)}/subscriptions/${encodeURIComponent(e.clientId)}/${encodeURIComponent(T.contractId)}/change-payment-method`),J.searchParams.set("sesamy-redirect-url",T.redirectUrl||window.location.href);break;case"change-plan":J=new URL(`${vr("account",e.environment)}/${encodeURIComponent(T.language||pe)}/subscriptions/${encodeURIComponent(e.clientId)}/${encodeURIComponent(T.contractId)}/edit-plan`),J.searchParams.set("sesamy-redirect-url",T.redirectUrl||window.location.href);break;case"consume":J=new URL(`${vr("consume",e.environment)}/${encodeURIComponent(T.language||pe)}/@${encodeURIComponent(e.clientId)}/${encodeURIComponent(T.sku)}`),T.episodeId?J.href+=`/${T.episodeId}`:J.href+="/listen",J.searchParams.set("sesamy-redirect-url",T.redirectUrl||window.location.href);break;case"checkout":J=Xg(e,{language:pe,...T},ve);break;default:throw new Error("Invalid target")}return F&&(J.hash=`#access_token=${F}`),T.shorten?de(J.href,T.ttl):J.href}async function ue(T){const F=tn(),J=["_ga","_gid","_fbp","_fbc"];return document.cookie.split(";").forEach(ve=>{const me=F,[Be,M]=ve.trim().split("=");J.includes(Be)&&!me[Be]&&(me[Be]=M)}),(await o.url("/checkouts").post({language:Yt(),...T,attribution:{...F,...T.attribution},vendorId:e.clientId})).json()}async function se(T,F){return(await o.url(`/checkouts/${T}`).patch(F)).json()}async function Pe(T){return(await o.url(`/checkouts/${T}`).get()).json()}async function je(T){return(await o.url(`/paywalls/${T}`).get()).json()}async function Fe(){return(await o.url("/vendor").get()).json()}async function Ce(){return(await i.url("/vendors").get()).json()}async function Ve(T){return(await i.url(`/contracts/${encodeURIComponent(T.contractId)}/amendments`).post({amendmentType:T.amendmentType,discountCode:T.discountCode})).json()}async function lr(T){return await i.url(`/amendments/${encodeURIComponent(T)}/confirm`).post(),!0}async function fr(){const T=await Zr(!1),F=new URL(`${vr("account",e.environment)}/subscriptions/${e.clientId}`);T&&(F.hash=`#access_token=${T}`),window.location.href=F.toString()}return{autoOnboardProduct:Z,cancelContract:w,confirmAmendment:lr,createAmendment:Ve,createCheckout:ue,deleteTag:ee,deleteTally:O,deleteUserMetadata:A,generateLink:ae,getBill:g,getBills:b,getCheckout:Pe,getProxyContent:f,getContract:m,getContracts:v,getEntitlement:l,getEntitlementAccess:u,getEntitlements:s,getFulfillments:h,requestDelivery:d,getPaywall:je,getPaymentIssues:_,getProfile:Q,getProduct:re,getSubscriptions:E,getTally:N,getTallies:q,getTags:H,getTransaction:y,getTransactions:p,getUserMetadata:j,hasAccess:c,isSpotifyLinked:D,linkSpotify:K,listUserMetadata:z,openHostedAccountPage:fr,pushTally:X,setTag:x,setUserMetadata:k,unlinkSpotify:B,updateCheckout:se,updateProfile:S,getVendorSettings:Fe,listVendors:Ce}}const ay=["AdHeader","AdContainer","AD_Top","homead","ad-lead"];function iy(){return new Promise(e=>{const r=ay.map(t=>{const n=document.createElement("div");return n.innerHTML=" ",n.id=t,n.style.position="absolute",document.body.appendChild(n),n});window.setTimeout(()=>{const t=!r.every(n=>document.querySelector(`#${n.id}`)?.offsetParent);r.forEach(n=>n.remove()),e(t)},100)})}function oy(){const e=navigator.userAgent.toLowerCase(),r=[{name:"Facebook",regex:/fbav|fban/i},{name:"LinkedIn",regex:/linkedin/i},{name:"Instagram",regex:/instagram/i},{name:"Gmail",regex:/gmail/i},{name:"Twitter",regex:/twitter/i},{name:"WeChat",regex:/micromessenger/i},{name:"Line",regex:/line/i},{name:"Snapchat",regex:/snapchat/i},{name:"Pinterest",regex:/pinterest/i},{name:"Kakao",regex:/kakaotalk/i},{name:"Skype",regex:/skype/i},{name:"WhatsApp",regex:/whatsapp/i}];for(const t of r)if(t.regex.test(e))return{isInAppBrowser:!0,browserName:t.name};return/; wv\)/.test(e)?{isInAppBrowser:!0,browserName:"Unknown In-App Browser"}:{isInAppBrowser:!1,browserName:null}}const hv="sesamyFlags";async function vv(e){try{localStorage.setItem(hv,JSON.stringify(e))}catch{ye("Failed to save flags to localStorage")}}async function sy(e,r){const t=await En();t[e]=r,await vv(t)}async function uy(e){return(await En())[e]}async function cy(e){const r=await En();e in r&&(delete r[e],await vv(r))}async function En(){try{const e=localStorage.getItem(hv);return e?JSON.parse(e):{}}catch{return{}}}function ly(e){const{autoOnboardProduct:r,cancelContract:t,createCheckout:n,deleteTag:a,deleteTally:i,deleteUserMetadata:o,generateLink:s,getBill:c,getBills:l,getCheckout:u,getContract:f,getContracts:h,getEntitlement:d,getEntitlementAccess:v,getEntitlements:m,getFulfillments:w,getPaywall:E,getPaymentIssues:b,getProfile:g,getProduct:p,getProxyContent:y,getSubscriptions:k,getTags:A,getTally:j,getTallies:z,getTransaction:H,getTransactions:ee,getUserMetadata:x,getVendorSettings:N,listVendors:q,hasAccess:O,isSpotifyLinked:X,linkSpotify:re,listUserMetadata:Q,openHostedAccountPage:S,pushTally:_,requestDelivery:D,setTag:B,setUserMetadata:K,unlinkSpotify:Z,updateCheckout:de,updateProfile:ae}=ny(e),ue={analytics:{track:rv},attribution:{get:tn,set:dv},auth:{getUser:g,getTokenSilently:Zr,isAuthenticated:_t,loginWithRedirect:Pn,loginWithPopup:ov,login:$g,logout:Ss,setToken:$o},bills:{get:c,list:l},browser:{detectAdblock:iy,isInAppBrowser:oy,isIncognito:ls},checkouts:{create:n,get:u,update:de},clearCache:rr,content:{list:Og,get:ys,getLanguage:Yt,unlock:kg,getPropertyFromHTML:Zh},contracts:{cancel:t,get:f,list:h},entitlements:{access:v,get:d,hasAccess:O,list:m,signedLinks:Ps},events:{emit:nv,cancel:Lg},flags:{get:uy,set:sy,list:En,delete:cy},fulfillments:{list:w,requestDelivery:D},generateLink:s,getPaymentIssues:b,getVersion:fy,isReady:()=>exports.isInitialized,log:ye,paywalls:{get:E},products:{autoOnboard:r,get:p,linkSpotify:re},profile:{get:g,isSpotifyLinked:X,openHostedAccountPage:S,unlinkSpotify:Z,update:ae},proxy:{getContent:y},subscriptions:{list:k},tags:{delete:a,list:A,set:B},tallies:{delete:i,get:j,list:z,push:_},transactions:{get:H,list:ee},userMetadata:{delete:o,get:x,list:Q,set:K},vendors:{get:N,list:q},setToken:$o};return e.namespace&&(window[e.namespace]=ue),ue}function fy(){return gs}function dy(e,r){e.style.position="relative",e.style.height="200px",e.style.overflow="hidden";let n=0;const a=Array.from(e.children);for(const o of a){const s=o.offsetHeight;n+s>200?o.remove():n+=s}const i=document.createElement("style");i.innerHTML=`
|
|
37
37
|
${r.selector}::before {
|
|
38
38
|
content: '';
|