@clickview/auth 0.62.0 → 0.63.0-rc.2
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/bundles.json +2 -2
- package/dist/css/{BbKL3pVQ.chunk.css → CAcV3VKz.chunk.css} +1 -1
- package/dist/en.json +1 -1
- package/dist/scripts/index-CYMe75aH.js +78 -0
- package/dist/scripts/index-CYMe75aH.js.map +1 -0
- package/package.json +1 -16
- package/dist/scripts/index-DHs1_kLy.js +0 -78
- package/dist/scripts/index-DHs1_kLy.js.map +0 -1
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
function Ws(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sh={exports:{}},BE;function R$(){return BE||(BE=1,(function(e){var r=(function(t){var a=Object.prototype,o=a.hasOwnProperty,s,u=typeof Symbol=="function"?Symbol:{},v=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",h=u.toStringTag||"@@toStringTag";function f($,M,L){return Object.defineProperty($,M,{value:L,enumerable:!0,configurable:!0,writable:!0}),$[M]}try{f({},"")}catch{f=function(M,L,F){return M[L]=F}}function c($,M,L,F){var V=M&&M.prototype instanceof I?M:I,ae=Object.create(V.prototype),oe=new B(F||[]);return ae._invoke=k($,L,oe),ae}t.wrap=c;function _($,M,L){try{return{type:"normal",arg:$.call(M,L)}}catch(F){return{type:"throw",arg:F}}}var E="suspendedStart",S="suspendedYield",w="executing",T="completed",b={};function I(){}function m(){}function p(){}var y={};f(y,v,function(){return this});var g=Object.getPrototypeOf,x=g&&g(g(H([])));x&&x!==a&&o.call(x,v)&&(y=x);var R=p.prototype=I.prototype=Object.create(y);m.prototype=p,f(R,"constructor",p),f(p,"constructor",m),m.displayName=f(p,h,"GeneratorFunction");function O($){["next","throw","return"].forEach(function(M){f($,M,function(L){return this._invoke(M,L)})})}t.isGeneratorFunction=function($){var M=typeof $=="function"&&$.constructor;return M?M===m||(M.displayName||M.name)==="GeneratorFunction":!1},t.mark=function($){return Object.setPrototypeOf?Object.setPrototypeOf($,p):($.__proto__=p,f($,h,"GeneratorFunction")),$.prototype=Object.create(R),$},t.awrap=function($){return{__await:$}};function j($,M){function L(ae,oe,_e,he){var ye=_($[ae],$,oe);if(ye.type==="throw")he(ye.arg);else{var ge=ye.arg,Re=ge.value;return Re&&typeof Re=="object"&&o.call(Re,"__await")?M.resolve(Re.__await).then(function(We){L("next",We,_e,he)},function(We){L("throw",We,_e,he)}):M.resolve(Re).then(function(We){ge.value=We,_e(ge)},function(We){return L("throw",We,_e,he)})}}var F;function V(ae,oe){function _e(){return new M(function(he,ye){L(ae,oe,he,ye)})}return F=F?F.then(_e,_e):_e()}this._invoke=V}O(j.prototype),f(j.prototype,d,function(){return this}),t.AsyncIterator=j,t.async=function($,M,L,F,V){V===void 0&&(V=Promise);var ae=new j(c($,M,L,F),V);return t.isGeneratorFunction(M)?ae:ae.next().then(function(oe){return oe.done?oe.value:ae.next()})};function k($,M,L){var F=E;return function(ae,oe){if(F===w)throw new Error("Generator is already running");if(F===T){if(ae==="throw")throw oe;return G()}for(L.method=ae,L.arg=oe;;){var _e=L.delegate;if(_e){var he=N(_e,L);if(he){if(he===b)continue;return he}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(F===E)throw F=T,L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);F=w;var ye=_($,M,L);if(ye.type==="normal"){if(F=L.done?T:S,ye.arg===b)continue;return{value:ye.arg,done:L.done}}else ye.type==="throw"&&(F=T,L.method="throw",L.arg=ye.arg)}}}function N($,M){var L=$.iterator[M.method];if(L===s){if(M.delegate=null,M.method==="throw"){if($.iterator.return&&(M.method="return",M.arg=s,N($,M),M.method==="throw"))return b;M.method="throw",M.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var F=_(L,$.iterator,M.arg);if(F.type==="throw")return M.method="throw",M.arg=F.arg,M.delegate=null,b;var V=F.arg;if(!V)return M.method="throw",M.arg=new TypeError("iterator result is not an object"),M.delegate=null,b;if(V.done)M[$.resultName]=V.value,M.next=$.nextLoc,M.method!=="return"&&(M.method="next",M.arg=s);else return V;return M.delegate=null,b}O(R),f(R,h,"Generator"),f(R,v,function(){return this}),f(R,"toString",function(){return"[object Generator]"});function D($){var M={tryLoc:$[0]};1 in $&&(M.catchLoc=$[1]),2 in $&&(M.finallyLoc=$[2],M.afterLoc=$[3]),this.tryEntries.push(M)}function U($){var M=$.completion||{};M.type="normal",delete M.arg,$.completion=M}function B($){this.tryEntries=[{tryLoc:"root"}],$.forEach(D,this),this.reset(!0)}t.keys=function($){var M=[];for(var L in $)M.push(L);return M.reverse(),function F(){for(;M.length;){var V=M.pop();if(V in $)return F.value=V,F.done=!1,F}return F.done=!0,F}};function H($){if($){var M=$[v];if(M)return M.call($);if(typeof $.next=="function")return $;if(!isNaN($.length)){var L=-1,F=function V(){for(;++L<$.length;)if(o.call($,L))return V.value=$[L],V.done=!1,V;return V.value=s,V.done=!0,V};return F.next=F}}return{next:G}}t.values=H;function G(){return{value:s,done:!0}}return B.prototype={constructor:B,reset:function($){if(this.prev=0,this.next=0,this.sent=this._sent=s,this.done=!1,this.delegate=null,this.method="next",this.arg=s,this.tryEntries.forEach(U),!$)for(var M in this)M.charAt(0)==="t"&&o.call(this,M)&&!isNaN(+M.slice(1))&&(this[M]=s)},stop:function(){this.done=!0;var $=this.tryEntries[0],M=$.completion;if(M.type==="throw")throw M.arg;return this.rval},dispatchException:function($){if(this.done)throw $;var M=this;function L(he,ye){return ae.type="throw",ae.arg=$,M.next=he,ye&&(M.method="next",M.arg=s),!!ye}for(var F=this.tryEntries.length-1;F>=0;--F){var V=this.tryEntries[F],ae=V.completion;if(V.tryLoc==="root")return L("end");if(V.tryLoc<=this.prev){var oe=o.call(V,"catchLoc"),_e=o.call(V,"finallyLoc");if(oe&&_e){if(this.prev<V.catchLoc)return L(V.catchLoc,!0);if(this.prev<V.finallyLoc)return L(V.finallyLoc)}else if(oe){if(this.prev<V.catchLoc)return L(V.catchLoc,!0)}else if(_e){if(this.prev<V.finallyLoc)return L(V.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function($,M){for(var L=this.tryEntries.length-1;L>=0;--L){var F=this.tryEntries[L];if(F.tryLoc<=this.prev&&o.call(F,"finallyLoc")&&this.prev<F.finallyLoc){var V=F;break}}V&&($==="break"||$==="continue")&&V.tryLoc<=M&&M<=V.finallyLoc&&(V=null);var ae=V?V.completion:{};return ae.type=$,ae.arg=M,V?(this.method="next",this.next=V.finallyLoc,b):this.complete(ae)},complete:function($,M){if($.type==="throw")throw $.arg;return $.type==="break"||$.type==="continue"?this.next=$.arg:$.type==="return"?(this.rval=this.arg=$.arg,this.method="return",this.next="end"):$.type==="normal"&&M&&(this.next=M),b},finish:function($){for(var M=this.tryEntries.length-1;M>=0;--M){var L=this.tryEntries[M];if(L.finallyLoc===$)return this.complete(L.completion,L.afterLoc),U(L),b}},catch:function($){for(var M=this.tryEntries.length-1;M>=0;--M){var L=this.tryEntries[M];if(L.tryLoc===$){var F=L.completion;if(F.type==="throw"){var V=F.arg;U(L)}return V}}throw new Error("illegal catch attempt")},delegateYield:function($,M,L){return this.delegate={iterator:H($),resultName:M,nextLoc:L},this.method==="next"&&(this.arg=s),b}},t})(e.exports);try{regeneratorRuntime=r}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}})(Sh)),Sh.exports}R$();var $E={},zE={},Gu,ZE;function ir(){if(ZE)return Gu;ZE=1;var e=function(r){return r&&r.Math===Math&&r};return Gu=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof globalThis=="object"&&globalThis)||e(typeof Gu=="object"&&Gu)||(function(){return this})()||Function("return this")(),Gu}var wh={},Eh,HE;function Je(){return HE||(HE=1,Eh=function(e){try{return!!e()}catch{return!0}}),Eh}var Ch,VE;function Tr(){if(VE)return Ch;VE=1;var e=Je();return Ch=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),Ch}var xh,GE;function cl(){if(GE)return xh;GE=1;var e=Je();return xh=!e(function(){var r=(function(){}).bind();return typeof r!="function"||r.hasOwnProperty("prototype")}),xh}var Ih,WE;function Er(){if(WE)return Ih;WE=1;var e=cl(),r=Function.prototype.call;return Ih=e?r.bind(r):function(){return r.apply(r,arguments)},Ih}var Ah={},KE;function tf(){if(KE)return Ah;KE=1;var e={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,t=r&&!e.call({1:2},1);return Ah.f=t?function(o){var s=r(this,o);return!!s&&s.enumerable}:e,Ah}var Th,YE;function _a(){return YE||(YE=1,Th=function(e,r){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:r}}),Th}var Rh,JE;function er(){if(JE)return Rh;JE=1;var e=cl(),r=Function.prototype,t=r.call,a=e&&r.bind.bind(t,t);return Rh=e?a:function(o){return function(){return t.apply(o,arguments)}},Rh}var Oh,XE;function $n(){if(XE)return Oh;XE=1;var e=er(),r=e({}.toString),t=e("".slice);return Oh=function(a){return t(r(a),8,-1)},Oh}var kh,QE;function Ks(){if(QE)return kh;QE=1;var e=er(),r=Je(),t=$n(),a=Object,o=e("".split);return kh=r(function(){return!a("z").propertyIsEnumerable(0)})?function(s){return t(s)==="String"?o(s,""):a(s)}:a,kh}var Ph,e2;function Bi(){return e2||(e2=1,Ph=function(e){return e==null}),Ph}var Nh,r2;function Nt(){if(r2)return Nh;r2=1;var e=Bi(),r=TypeError;return Nh=function(t){if(e(t))throw new r("Can't call method on "+t);return t},Nh}var jh,t2;function mn(){if(t2)return jh;t2=1;var e=Ks(),r=Nt();return jh=function(t){return e(r(t))},jh}var qh,n2;function Xr(){if(n2)return qh;n2=1;var e=typeof document=="object"&&document.all;return qh=typeof e>"u"&&e!==void 0?function(r){return typeof r=="function"||r===e}:function(r){return typeof r=="function"},qh}var Dh,a2;function Mr(){if(a2)return Dh;a2=1;var e=Xr();return Dh=function(r){return typeof r=="object"?r!==null:e(r)},Dh}var Lh,i2;function Vr(){if(i2)return Lh;i2=1;var e=ir(),r=Xr(),t=function(a){return r(a)?a:void 0};return Lh=function(a,o){return arguments.length<2?t(e[a]):e[a]&&e[a][o]},Lh}var Mh,o2;function Jn(){if(o2)return Mh;o2=1;var e=er();return Mh=e({}.isPrototypeOf),Mh}var Uh,s2;function mi(){if(s2)return Uh;s2=1;var e=ir(),r=e.navigator,t=r&&r.userAgent;return Uh=t?String(t):"",Uh}var Fh,u2;function yi(){if(u2)return Fh;u2=1;var e=ir(),r=mi(),t=e.process,a=e.Deno,o=t&&t.versions||a&&a.version,s=o&&o.v8,u,v;return s&&(u=s.split("."),v=u[0]>0&&u[0]<4?1:+(u[0]+u[1])),!v&&r&&(u=r.match(/Edge\/(\d+)/),(!u||u[1]>=74)&&(u=r.match(/Chrome\/(\d+)/),u&&(v=+u[1]))),Fh=v,Fh}var Bh,l2;function Ys(){if(l2)return Bh;l2=1;var e=yi(),r=Je(),t=ir(),a=t.String;return Bh=!!Object.getOwnPropertySymbols&&!r(function(){var o=Symbol("symbol detection");return!a(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&e&&e<41}),Bh}var $h,c2;function kL(){if(c2)return $h;c2=1;var e=Ys();return $h=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",$h}var zh,f2;function Yo(){if(f2)return zh;f2=1;var e=Vr(),r=Xr(),t=Jn(),a=kL(),o=Object;return zh=a?function(s){return typeof s=="symbol"}:function(s){var u=e("Symbol");return r(u)&&t(u.prototype,o(s))},zh}var Zh,d2;function Jo(){if(d2)return Zh;d2=1;var e=String;return Zh=function(r){try{return e(r)}catch{return"Object"}},Zh}var Hh,h2;function Gr(){if(h2)return Hh;h2=1;var e=Xr(),r=Jo(),t=TypeError;return Hh=function(a){if(e(a))return a;throw new t(r(a)+" is not a function")},Hh}var Vh,v2;function Rn(){if(v2)return Vh;v2=1;var e=Gr(),r=Bi();return Vh=function(t,a){var o=t[a];return r(o)?void 0:e(o)},Vh}var Gh,p2;function PL(){if(p2)return Gh;p2=1;var e=Er(),r=Xr(),t=Mr(),a=TypeError;return Gh=function(o,s){var u,v;if(s==="string"&&r(u=o.toString)&&!t(v=e(u,o))||r(u=o.valueOf)&&!t(v=e(u,o))||s!=="string"&&r(u=o.toString)&&!t(v=e(u,o)))return v;throw new a("Can't convert object to primitive value")},Gh}var Wh={exports:{}},Kh,g2;function ht(){return g2||(g2=1,Kh=!1),Kh}var Yh,m2;function a_(){if(m2)return Yh;m2=1;var e=ir(),r=Object.defineProperty;return Yh=function(t,a){try{r(e,t,{value:a,configurable:!0,writable:!0})}catch{e[t]=a}return a},Yh}var y2;function nf(){if(y2)return Wh.exports;y2=1;var e=ht(),r=ir(),t=a_(),a="__core-js_shared__",o=Wh.exports=r[a]||t(a,{});return(o.versions||(o.versions=[])).push({version:"3.45.1",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.45.1/LICENSE",source:"https://github.com/zloirock/core-js"}),Wh.exports}var Jh,b2;function Js(){if(b2)return Jh;b2=1;var e=nf();return Jh=function(r,t){return e[r]||(e[r]=t||{})},Jh}var Xh,_2;function lt(){if(_2)return Xh;_2=1;var e=Nt(),r=Object;return Xh=function(t){return r(e(t))},Xh}var Qh,S2;function Wr(){if(S2)return Qh;S2=1;var e=er(),r=lt(),t=e({}.hasOwnProperty);return Qh=Object.hasOwn||function(o,s){return t(r(o),s)},Qh}var ev,w2;function Xs(){if(w2)return ev;w2=1;var e=er(),r=0,t=Math.random(),a=e(1.1.toString);return ev=function(o){return"Symbol("+(o===void 0?"":o)+")_"+a(++r+t,36)},ev}var rv,E2;function Ur(){if(E2)return rv;E2=1;var e=ir(),r=Js(),t=Wr(),a=Xs(),o=Ys(),s=kL(),u=e.Symbol,v=r("wks"),d=s?u.for||u:u&&u.withoutSetter||a;return rv=function(h){return t(v,h)||(v[h]=o&&t(u,h)?u[h]:d("Symbol."+h)),v[h]},rv}var tv,C2;function af(){if(C2)return tv;C2=1;var e=Er(),r=Mr(),t=Yo(),a=Rn(),o=PL(),s=Ur(),u=TypeError,v=s("toPrimitive");return tv=function(d,h){if(!r(d)||t(d))return d;var f=a(d,v),c;if(f){if(h===void 0&&(h="default"),c=e(f,d,h),!r(c)||t(c))return c;throw new u("Can't convert object to primitive value")}return h===void 0&&(h="number"),o(d,h)},tv}var nv,x2;function So(){if(x2)return nv;x2=1;var e=af(),r=Yo();return nv=function(t){var a=e(t,"string");return r(a)?a:a+""},nv}var av,I2;function of(){if(I2)return av;I2=1;var e=ir(),r=Mr(),t=e.document,a=r(t)&&r(t.createElement);return av=function(o){return a?t.createElement(o):{}},av}var iv,A2;function NL(){if(A2)return iv;A2=1;var e=Tr(),r=Je(),t=of();return iv=!e&&!r(function(){return Object.defineProperty(t("div"),"a",{get:function(){return 7}}).a!==7}),iv}var T2;function On(){if(T2)return wh;T2=1;var e=Tr(),r=Er(),t=tf(),a=_a(),o=mn(),s=So(),u=Wr(),v=NL(),d=Object.getOwnPropertyDescriptor;return wh.f=e?d:function(f,c){if(f=o(f),c=s(c),v)try{return d(f,c)}catch{}if(u(f,c))return a(!r(t.f,f,c),f[c])},wh}var ov={},sv,R2;function jL(){if(R2)return sv;R2=1;var e=Tr(),r=Je();return sv=e&&r(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),sv}var uv,O2;function Ir(){if(O2)return uv;O2=1;var e=Mr(),r=String,t=TypeError;return uv=function(a){if(e(a))return a;throw new t(r(a)+" is not an object")},uv}var k2;function Tt(){if(k2)return ov;k2=1;var e=Tr(),r=NL(),t=jL(),a=Ir(),o=So(),s=TypeError,u=Object.defineProperty,v=Object.getOwnPropertyDescriptor,d="enumerable",h="configurable",f="writable";return ov.f=e?t?function(_,E,S){if(a(_),E=o(E),a(S),typeof _=="function"&&E==="prototype"&&"value"in S&&f in S&&!S[f]){var w=v(_,E);w&&w[f]&&(_[E]=S.value,S={configurable:h in S?S[h]:w[h],enumerable:d in S?S[d]:w[d],writable:!1})}return u(_,E,S)}:u:function(_,E,S){if(a(_),E=o(E),a(S),r)try{return u(_,E,S)}catch{}if("get"in S||"set"in S)throw new s("Accessors not supported");return"value"in S&&(_[E]=S.value),_},ov}var lv,P2;function kn(){if(P2)return lv;P2=1;var e=Tr(),r=Tt(),t=_a();return lv=e?function(a,o,s){return r.f(a,o,t(1,s))}:function(a,o,s){return a[o]=s,a},lv}var cv={exports:{}},fv,N2;function Qs(){if(N2)return fv;N2=1;var e=Tr(),r=Wr(),t=Function.prototype,a=e&&Object.getOwnPropertyDescriptor,o=r(t,"name"),s=o&&(function(){}).name==="something",u=o&&(!e||e&&a(t,"name").configurable);return fv={EXISTS:o,PROPER:s,CONFIGURABLE:u},fv}var dv,j2;function i_(){if(j2)return dv;j2=1;var e=er(),r=Xr(),t=nf(),a=e(Function.toString);return r(t.inspectSource)||(t.inspectSource=function(o){return a(o)}),dv=t.inspectSource,dv}var hv,q2;function qL(){if(q2)return hv;q2=1;var e=ir(),r=Xr(),t=e.WeakMap;return hv=r(t)&&/native code/.test(String(t)),hv}var vv,D2;function sf(){if(D2)return vv;D2=1;var e=Js(),r=Xs(),t=e("keys");return vv=function(a){return t[a]||(t[a]=r(a))},vv}var pv,L2;function fl(){return L2||(L2=1,pv={}),pv}var gv,M2;function Lt(){if(M2)return gv;M2=1;var e=qL(),r=ir(),t=Mr(),a=kn(),o=Wr(),s=nf(),u=sf(),v=fl(),d="Object already initialized",h=r.TypeError,f=r.WeakMap,c,_,E,S=function(I){return E(I)?_(I):c(I,{})},w=function(I){return function(m){var p;if(!t(m)||(p=_(m)).type!==I)throw new h("Incompatible receiver, "+I+" required");return p}};if(e||s.state){var T=s.state||(s.state=new f);T.get=T.get,T.has=T.has,T.set=T.set,c=function(I,m){if(T.has(I))throw new h(d);return m.facade=I,T.set(I,m),m},_=function(I){return T.get(I)||{}},E=function(I){return T.has(I)}}else{var b=u("state");v[b]=!0,c=function(I,m){if(o(I,b))throw new h(d);return m.facade=I,a(I,b,m),m},_=function(I){return o(I,b)?I[b]:{}},E=function(I){return o(I,b)}}return gv={set:c,get:_,has:E,enforce:S,getterFor:w},gv}var U2;function o_(){if(U2)return cv.exports;U2=1;var e=er(),r=Je(),t=Xr(),a=Wr(),o=Tr(),s=Qs().CONFIGURABLE,u=i_(),v=Lt(),d=v.enforce,h=v.get,f=String,c=Object.defineProperty,_=e("".slice),E=e("".replace),S=e([].join),w=o&&!r(function(){return c(function(){},"length",{value:8}).length!==8}),T=String(String).split("String"),b=cv.exports=function(I,m,p){_(f(m),0,7)==="Symbol("&&(m="["+E(f(m),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),p&&p.getter&&(m="get "+m),p&&p.setter&&(m="set "+m),(!a(I,"name")||s&&I.name!==m)&&(o?c(I,"name",{value:m,configurable:!0}):I.name=m),w&&p&&a(p,"arity")&&I.length!==p.arity&&c(I,"length",{value:p.arity});try{p&&a(p,"constructor")&&p.constructor?o&&c(I,"prototype",{writable:!1}):I.prototype&&(I.prototype=void 0)}catch{}var y=d(I);return a(y,"source")||(y.source=S(T,typeof m=="string"?m:"")),I};return Function.prototype.toString=b(function(){return t(this)&&h(this).source||u(this)},"toString"),cv.exports}var mv,F2;function mt(){if(F2)return mv;F2=1;var e=Xr(),r=Tt(),t=o_(),a=a_();return mv=function(o,s,u,v){v||(v={});var d=v.enumerable,h=v.name!==void 0?v.name:s;if(e(u)&&t(u,h,v),v.global)d?o[s]=u:a(s,u);else{try{v.unsafe?o[s]&&(d=!0):delete o[s]}catch{}d?o[s]=u:r.f(o,s,{value:u,enumerable:!1,configurable:!v.nonConfigurable,writable:!v.nonWritable})}return o},mv}var yv={},bv,B2;function DL(){if(B2)return bv;B2=1;var e=Math.ceil,r=Math.floor;return bv=Math.trunc||function(a){var o=+a;return(o>0?r:e)(o)},bv}var _v,$2;function Vt(){if($2)return _v;$2=1;var e=DL();return _v=function(r){var t=+r;return t!==t||t===0?0:e(t)},_v}var Sv,z2;function $i(){if(z2)return Sv;z2=1;var e=Vt(),r=Math.max,t=Math.min;return Sv=function(a,o){var s=e(a);return s<0?r(s+o,0):t(s,o)},Sv}var wv,Z2;function Sa(){if(Z2)return wv;Z2=1;var e=Vt(),r=Math.min;return wv=function(t){var a=e(t);return a>0?r(a,9007199254740991):0},wv}var Ev,H2;function bt(){if(H2)return Ev;H2=1;var e=Sa();return Ev=function(r){return e(r.length)},Ev}var Cv,V2;function dl(){if(V2)return Cv;V2=1;var e=mn(),r=$i(),t=bt(),a=function(o){return function(s,u,v){var d=e(s),h=t(d);if(h===0)return!o&&-1;var f=r(v,h),c;if(o&&u!==u){for(;h>f;)if(c=d[f++],c!==c)return!0}else for(;h>f;f++)if((o||f in d)&&d[f]===u)return o||f||0;return!o&&-1}};return Cv={includes:a(!0),indexOf:a(!1)},Cv}var xv,G2;function LL(){if(G2)return xv;G2=1;var e=er(),r=Wr(),t=mn(),a=dl().indexOf,o=fl(),s=e([].push);return xv=function(u,v){var d=t(u),h=0,f=[],c;for(c in d)!r(o,c)&&r(d,c)&&s(f,c);for(;v.length>h;)r(d,c=v[h++])&&(~a(f,c)||s(f,c));return f},xv}var Iv,W2;function s_(){return W2||(W2=1,Iv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),Iv}var K2;function Xo(){if(K2)return yv;K2=1;var e=LL(),r=s_(),t=r.concat("length","prototype");return yv.f=Object.getOwnPropertyNames||function(o){return e(o,t)},yv}var Av={},Y2;function uf(){return Y2||(Y2=1,Av.f=Object.getOwnPropertySymbols),Av}var Tv,J2;function u_(){if(J2)return Tv;J2=1;var e=Vr(),r=er(),t=Xo(),a=uf(),o=Ir(),s=r([].concat);return Tv=e("Reflect","ownKeys")||function(v){var d=t.f(o(v)),h=a.f;return h?s(d,h(v)):d},Tv}var Rv,X2;function eu(){if(X2)return Rv;X2=1;var e=Wr(),r=u_(),t=On(),a=Tt();return Rv=function(o,s,u){for(var v=r(s),d=a.f,h=t.f,f=0;f<v.length;f++){var c=v[f];!e(o,c)&&!(u&&e(u,c))&&d(o,c,h(s,c))}},Rv}var Ov,Q2;function hl(){if(Q2)return Ov;Q2=1;var e=Je(),r=Xr(),t=/#|\.prototype\./,a=function(d,h){var f=s[o(d)];return f===v?!0:f===u?!1:r(h)?e(h):!!h},o=a.normalize=function(d){return String(d).replace(t,".").toLowerCase()},s=a.data={},u=a.NATIVE="N",v=a.POLYFILL="P";return Ov=a,Ov}var kv,eC;function ie(){if(eC)return kv;eC=1;var e=ir(),r=On().f,t=kn(),a=mt(),o=a_(),s=eu(),u=hl();return kv=function(v,d){var h=v.target,f=v.global,c=v.stat,_,E,S,w,T,b;if(f?E=e:c?E=e[h]||o(h,{}):E=e[h]&&e[h].prototype,E)for(S in d){if(T=d[S],v.dontCallGetSet?(b=r(E,S),w=b&&b.value):w=E[S],_=u(f?S:h+(c?".":"#")+S,v.forced),!_&&w!==void 0){if(typeof T==typeof w)continue;s(T,w)}(v.sham||w&&w.sham)&&t(T,"sham",!0),a(E,S,T,v)}},kv}var Pv,rC;function l_(){if(rC)return Pv;rC=1;var e=Ur(),r=e("toStringTag"),t={};return t[r]="z",Pv=String(t)==="[object z]",Pv}var Nv,tC;function wa(){if(tC)return Nv;tC=1;var e=l_(),r=Xr(),t=$n(),a=Ur(),o=a("toStringTag"),s=Object,u=t((function(){return arguments})())==="Arguments",v=function(d,h){try{return d[h]}catch{}};return Nv=e?t:function(d){var h,f,c;return d===void 0?"Undefined":d===null?"Null":typeof(f=v(h=s(d),o))=="string"?f:u?t(h):(c=t(h))==="Object"&&r(h.callee)?"Arguments":c},Nv}var jv,nC;function zr(){if(nC)return jv;nC=1;var e=wa(),r=String;return jv=function(t){if(e(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return r(t)},jv}var qv={},Dv,aC;function vl(){if(aC)return Dv;aC=1;var e=LL(),r=s_();return Dv=Object.keys||function(a){return e(a,r)},Dv}var iC;function c_(){if(iC)return qv;iC=1;var e=Tr(),r=jL(),t=Tt(),a=Ir(),o=mn(),s=vl();return qv.f=e&&!r?Object.defineProperties:function(v,d){a(v);for(var h=o(d),f=s(d),c=f.length,_=0,E;c>_;)t.f(v,E=f[_++],h[E]);return v},qv}var Lv,oC;function ML(){if(oC)return Lv;oC=1;var e=Vr();return Lv=e("document","documentElement"),Lv}var Mv,sC;function Pn(){if(sC)return Mv;sC=1;var e=Ir(),r=c_(),t=s_(),a=fl(),o=ML(),s=of(),u=sf(),v=">",d="<",h="prototype",f="script",c=u("IE_PROTO"),_=function(){},E=function(I){return d+f+v+I+d+"/"+f+v},S=function(I){I.write(E("")),I.close();var m=I.parentWindow.Object;return I=null,m},w=function(){var I=s("iframe"),m="java"+f+":",p;return I.style.display="none",o.appendChild(I),I.src=String(m),p=I.contentWindow.document,p.open(),p.write(E("document.F=Object")),p.close(),p.F},T,b=function(){try{T=new ActiveXObject("htmlfile")}catch{}b=typeof document<"u"?document.domain&&T?S(T):w():S(T);for(var I=t.length;I--;)delete b[h][t[I]];return b()};return a[c]=!0,Mv=Object.create||function(m,p){var y;return m!==null?(_[h]=e(m),y=new _,_[h]=null,y[c]=m):y=b(),p===void 0?y:r.f(y,p)},Mv}var Uv={},Fv,uC;function Ba(){if(uC)return Fv;uC=1;var e=er();return Fv=e([].slice),Fv}var lC;function f_(){if(lC)return Uv;lC=1;var e=$n(),r=mn(),t=Xo().f,a=Ba(),o=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(u){try{return t(u)}catch{return a(o)}};return Uv.f=function(v){return o&&e(v)==="Window"?s(v):t(r(v))},Uv}var Bv,cC;function Jt(){if(cC)return Bv;cC=1;var e=o_(),r=Tt();return Bv=function(t,a,o){return o.get&&e(o.get,a,{getter:!0}),o.set&&e(o.set,a,{setter:!0}),r.f(t,a,o)},Bv}var $v={},fC;function UL(){if(fC)return $v;fC=1;var e=Ur();return $v.f=e,$v}var zv,dC;function lf(){if(dC)return zv;dC=1;var e=ir();return zv=e,zv}var Zv,hC;function zn(){if(hC)return Zv;hC=1;var e=lf(),r=Wr(),t=UL(),a=Tt().f;return Zv=function(o){var s=e.Symbol||(e.Symbol={});r(s,o)||a(s,o,{value:t.f(o)})},Zv}var Hv,vC;function FL(){if(vC)return Hv;vC=1;var e=Er(),r=Vr(),t=Ur(),a=mt();return Hv=function(){var o=r("Symbol"),s=o&&o.prototype,u=s&&s.valueOf,v=t("toPrimitive");s&&!s[v]&&a(s,v,function(d){return e(u,this)},{arity:1})},Hv}var Vv,pC;function fa(){if(pC)return Vv;pC=1;var e=Tt().f,r=Wr(),t=Ur(),a=t("toStringTag");return Vv=function(o,s,u){o&&!u&&(o=o.prototype),o&&!r(o,a)&&e(o,a,{configurable:!0,value:s})},Vv}var Gv,gC;function Qo(){if(gC)return Gv;gC=1;var e=$n(),r=er();return Gv=function(t){if(e(t)==="Function")return r(t)},Gv}var Wv,mC;function Ea(){if(mC)return Wv;mC=1;var e=Qo(),r=Gr(),t=cl(),a=e(e.bind);return Wv=function(o,s){return r(o),s===void 0?o:t?a(o,s):function(){return o.apply(s,arguments)}},Wv}var Kv,yC;function wo(){if(yC)return Kv;yC=1;var e=$n();return Kv=Array.isArray||function(t){return e(t)==="Array"},Kv}var Yv,bC;function es(){if(bC)return Yv;bC=1;var e=er(),r=Je(),t=Xr(),a=wa(),o=Vr(),s=i_(),u=function(){},v=o("Reflect","construct"),d=/^\s*(?:class|function)\b/,h=e(d.exec),f=!d.test(u),c=function(S){if(!t(S))return!1;try{return v(u,[],S),!0}catch{return!1}},_=function(S){if(!t(S))return!1;switch(a(S)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!h(d,s(S))}catch{return!0}};return _.sham=!0,Yv=!v||r(function(){var E;return c(c.call)||!c(Object)||!c(function(){E=!0})||E})?_:c,Yv}var Jv,_C;function O$(){if(_C)return Jv;_C=1;var e=wo(),r=es(),t=Mr(),a=Ur(),o=a("species"),s=Array;return Jv=function(u){var v;return e(u)&&(v=u.constructor,r(v)&&(v===s||e(v.prototype))?v=void 0:t(v)&&(v=v[o],v===null&&(v=void 0))),v===void 0?s:v},Jv}var Xv,SC;function pl(){if(SC)return Xv;SC=1;var e=O$();return Xv=function(r,t){return new(e(r))(t===0?0:t)},Xv}var Qv,wC;function Nn(){if(wC)return Qv;wC=1;var e=Ea(),r=er(),t=Ks(),a=lt(),o=bt(),s=pl(),u=r([].push),v=function(d){var h=d===1,f=d===2,c=d===3,_=d===4,E=d===6,S=d===7,w=d===5||E;return function(T,b,I,m){for(var p=a(T),y=t(p),g=o(y),x=e(b,I),R=0,O=m||s,j=h?O(T,g):f||S?O(T,0):void 0,k,N;g>R;R++)if((w||R in y)&&(k=y[R],N=x(k,R,p),d))if(h)j[R]=N;else if(N)switch(d){case 3:return!0;case 5:return k;case 6:return R;case 2:u(j,k)}else switch(d){case 4:return!1;case 7:u(j,k)}return E?-1:c||_?_:j}};return Qv={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6),filterReject:v(7)},Qv}var EC;function k$(){if(EC)return zE;EC=1;var e=ie(),r=ir(),t=Er(),a=er(),o=ht(),s=Tr(),u=Ys(),v=Je(),d=Wr(),h=Jn(),f=Ir(),c=mn(),_=So(),E=zr(),S=_a(),w=Pn(),T=vl(),b=Xo(),I=f_(),m=uf(),p=On(),y=Tt(),g=c_(),x=tf(),R=mt(),O=Jt(),j=Js(),k=sf(),N=fl(),D=Xs(),U=Ur(),B=UL(),H=zn(),G=FL(),$=fa(),M=Lt(),L=Nn().forEach,F=k("hidden"),V="Symbol",ae="prototype",oe=M.set,_e=M.getterFor(V),he=Object[ae],ye=r.Symbol,ge=ye&&ye[ae],Re=r.RangeError,We=r.TypeError,He=r.QObject,nr=p.f,ar=y.f,xr=I.f,or=x.f,lr=a([].push),Ve=j("symbols"),Ge=j("op-symbols"),W=j("wks"),Y=!He||!He[ae]||!He[ae].findChild,Q=function(Ae,Ne,Oe){var De=nr(he,Ne);De&&delete he[Ne],ar(Ae,Ne,Oe),De&&Ae!==he&&ar(he,Ne,De)},re=s&&v(function(){return w(ar({},"a",{get:function(){return ar(this,"a",{value:7}).a}})).a!==7})?Q:ar,pe=function(Ae,Ne){var Oe=Ve[Ae]=w(ge);return oe(Oe,{type:V,tag:Ae,description:Ne}),s||(Oe.description=Ne),Oe},le=function(Ne,Oe,De){Ne===he&&le(Ge,Oe,De),f(Ne);var Te=_(Oe);return f(De),d(Ve,Te)?(De.enumerable?(d(Ne,F)&&Ne[F][Te]&&(Ne[F][Te]=!1),De=w(De,{enumerable:S(0,!1)})):(d(Ne,F)||ar(Ne,F,S(1,w(null))),Ne[F][Te]=!0),re(Ne,Te,De)):ar(Ne,Te,De)},Ee=function(Ne,Oe){f(Ne);var De=c(Oe),Te=T(De).concat(de(De));return L(Te,function(vr){(!s||t(Pe,De,vr))&&le(Ne,vr,De[vr])}),Ne},fe=function(Ne,Oe){return Oe===void 0?w(Ne):Ee(w(Ne),Oe)},Pe=function(Ne){var Oe=_(Ne),De=t(or,this,Oe);return this===he&&d(Ve,Oe)&&!d(Ge,Oe)?!1:De||!d(this,Oe)||!d(Ve,Oe)||d(this,F)&&this[F][Oe]?De:!0},ur=function(Ne,Oe){var De=c(Ne),Te=_(Oe);if(!(De===he&&d(Ve,Te)&&!d(Ge,Te))){var vr=nr(De,Te);return vr&&d(Ve,Te)&&!(d(De,F)&&De[F][Te])&&(vr.enumerable=!0),vr}},cr=function(Ne){var Oe=xr(c(Ne)),De=[];return L(Oe,function(Te){!d(Ve,Te)&&!d(N,Te)&&lr(De,Te)}),De},de=function(Ae){var Ne=Ae===he,Oe=xr(Ne?Ge:c(Ae)),De=[];return L(Oe,function(Te){d(Ve,Te)&&(!Ne||d(he,Te))&&lr(De,Ve[Te])}),De};return u||(ye=function(){if(h(ge,this))throw new We("Symbol is not a constructor");var Ne=!arguments.length||arguments[0]===void 0?void 0:E(arguments[0]),Oe=D(Ne),De=function(Te){var vr=this===void 0?r:this;vr===he&&t(De,Ge,Te),d(vr,F)&&d(vr[F],Oe)&&(vr[F][Oe]=!1);var $r=S(1,Te);try{re(vr,Oe,$r)}catch(Me){if(!(Me instanceof Re))throw Me;Q(vr,Oe,$r)}};return s&&Y&&re(he,Oe,{configurable:!0,set:De}),pe(Oe,Ne)},ge=ye[ae],R(ge,"toString",function(){return _e(this).tag}),R(ye,"withoutSetter",function(Ae){return pe(D(Ae),Ae)}),x.f=Pe,y.f=le,g.f=Ee,p.f=ur,b.f=I.f=cr,m.f=de,B.f=function(Ae){return pe(U(Ae),Ae)},s&&(O(ge,"description",{configurable:!0,get:function(){return _e(this).description}}),o||R(he,"propertyIsEnumerable",Pe,{unsafe:!0}))),e({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:ye}),L(T(W),function(Ae){H(Ae)}),e({target:V,stat:!0,forced:!u},{useSetter:function(){Y=!0},useSimple:function(){Y=!1}}),e({target:"Object",stat:!0,forced:!u,sham:!s},{create:fe,defineProperty:le,defineProperties:Ee,getOwnPropertyDescriptor:ur}),e({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:cr}),G(),$(ye,V),N[F]=!0,zE}var CC={},ep,xC;function BL(){if(xC)return ep;xC=1;var e=Ys();return ep=e&&!!Symbol.for&&!!Symbol.keyFor,ep}var IC;function P$(){if(IC)return CC;IC=1;var e=ie(),r=Vr(),t=Wr(),a=zr(),o=Js(),s=BL(),u=o("string-to-symbol-registry"),v=o("symbol-to-string-registry");return e({target:"Symbol",stat:!0,forced:!s},{for:function(d){var h=a(d);if(t(u,h))return u[h];var f=r("Symbol")(h);return u[h]=f,v[f]=h,f}}),CC}var AC={},TC;function N$(){if(TC)return AC;TC=1;var e=ie(),r=Wr(),t=Yo(),a=Jo(),o=Js(),s=BL(),u=o("symbol-to-string-registry");return e({target:"Symbol",stat:!0,forced:!s},{keyFor:function(d){if(!t(d))throw new TypeError(a(d)+" is not a symbol");if(r(u,d))return u[d]}}),AC}var RC={},rp,OC;function Ca(){if(OC)return rp;OC=1;var e=cl(),r=Function.prototype,t=r.apply,a=r.call;return rp=typeof Reflect=="object"&&Reflect.apply||(e?a.bind(t):function(){return a.apply(t,arguments)}),rp}var tp,kC;function j$(){if(kC)return tp;kC=1;var e=er(),r=wo(),t=Xr(),a=$n(),o=zr(),s=e([].push);return tp=function(u){if(t(u))return u;if(r(u)){for(var v=u.length,d=[],h=0;h<v;h++){var f=u[h];typeof f=="string"?s(d,f):(typeof f=="number"||a(f)==="Number"||a(f)==="String")&&s(d,o(f))}var c=d.length,_=!0;return function(E,S){if(_)return _=!1,S;if(r(this))return S;for(var w=0;w<c;w++)if(d[w]===E)return S}}},tp}var PC;function $L(){if(PC)return RC;PC=1;var e=ie(),r=Vr(),t=Ca(),a=Er(),o=er(),s=Je(),u=Xr(),v=Yo(),d=Ba(),h=j$(),f=Ys(),c=String,_=r("JSON","stringify"),E=o(/./.exec),S=o("".charAt),w=o("".charCodeAt),T=o("".replace),b=o(1.1.toString),I=/[\uD800-\uDFFF]/g,m=/^[\uD800-\uDBFF]$/,p=/^[\uDC00-\uDFFF]$/,y=!f||s(function(){var O=r("Symbol")("stringify detection");return _([O])!=="[null]"||_({a:O})!=="{}"||_(Object(O))!=="{}"}),g=s(function(){return _("\uDF06\uD834")!=='"\\udf06\\ud834"'||_("\uDEAD")!=='"\\udead"'}),x=function(O,j){var k=d(arguments),N=h(j);if(!(!u(N)&&(O===void 0||v(O))))return k[1]=function(D,U){if(u(N)&&(U=a(N,this,c(D),U)),!v(U))return U},t(_,null,k)},R=function(O,j,k){var N=S(k,j-1),D=S(k,j+1);return E(m,O)&&!E(p,D)||E(p,O)&&!E(m,N)?"\\u"+b(w(O,0),16):O};return _&&e({target:"JSON",stat:!0,arity:3,forced:y||g},{stringify:function(j,k,N){var D=d(arguments),U=t(y?x:_,null,D);return g&&typeof U=="string"?T(U,I,R):U}}),RC}var NC={},jC;function q$(){if(jC)return NC;jC=1;var e=ie(),r=Ys(),t=Je(),a=uf(),o=lt(),s=!r||t(function(){a.f(1)});return e({target:"Object",stat:!0,forced:s},{getOwnPropertySymbols:function(v){var d=a.f;return d?d(o(v)):[]}}),NC}var qC;function D$(){return qC||(qC=1,k$(),P$(),N$(),$L(),q$()),$E}var DC={},LC;function L$(){if(LC)return DC;LC=1;var e=ie(),r=Tr(),t=ir(),a=er(),o=Wr(),s=Xr(),u=Jn(),v=zr(),d=Jt(),h=eu(),f=t.Symbol,c=f&&f.prototype;if(r&&s(f)&&(!("description"in c)||f().description!==void 0)){var _={},E=function(){var y=arguments.length<1||arguments[0]===void 0?void 0:v(arguments[0]),g=u(c,this)?new f(y):y===void 0?f():f(y);return y===""&&(_[g]=!0),g};h(E,f),E.prototype=c,c.constructor=E;var S=String(f("description detection"))==="Symbol(description detection)",w=a(c.valueOf),T=a(c.toString),b=/^Symbol\((.*)\)[^)]+$/,I=a("".replace),m=a("".slice);d(c,"description",{configurable:!0,get:function(){var y=w(this);if(o(_,y))return"";var g=T(y),x=S?m(g,7,-1):I(g,b,"$1");return x===""?void 0:x}}),e({global:!0,constructor:!0,forced:!0},{Symbol:E})}return DC}var MC={},UC;function M$(){if(UC)return MC;UC=1;var e=ir(),r=zn(),t=Tt().f,a=On().f,o=e.Symbol;if(r("asyncDispose"),o){var s=a(o,"asyncDispose");s.enumerable&&s.configurable&&s.writable&&t(o,"asyncDispose",{value:s.value,enumerable:!1,configurable:!1,writable:!1})}return MC}var FC={},BC;function U$(){if(BC)return FC;BC=1;var e=zn();return e("asyncIterator"),FC}var $C={},zC;function F$(){if(zC)return $C;zC=1;var e=ir(),r=zn(),t=Tt().f,a=On().f,o=e.Symbol;if(r("dispose"),o){var s=a(o,"dispose");s.enumerable&&s.configurable&&s.writable&&t(o,"dispose",{value:s.value,enumerable:!1,configurable:!1,writable:!1})}return $C}var ZC={},HC;function B$(){if(HC)return ZC;HC=1;var e=zn();return e("hasInstance"),ZC}var VC={},GC;function $$(){if(GC)return VC;GC=1;var e=zn();return e("isConcatSpreadable"),VC}var WC={},KC;function z$(){if(KC)return WC;KC=1;var e=zn();return e("iterator"),WC}var YC={},JC;function Z$(){if(JC)return YC;JC=1;var e=zn();return e("match"),YC}var XC={},QC;function H$(){if(QC)return XC;QC=1;var e=zn();return e("matchAll"),XC}var ex={},rx;function V$(){if(rx)return ex;rx=1;var e=zn();return e("replace"),ex}var tx={},nx;function G$(){if(nx)return tx;nx=1;var e=zn();return e("search"),tx}var ax={},ix;function W$(){if(ix)return ax;ix=1;var e=zn();return e("species"),ax}var ox={},sx;function K$(){if(sx)return ox;sx=1;var e=zn();return e("split"),ox}var ux={},lx;function Y$(){if(lx)return ux;lx=1;var e=zn(),r=FL();return e("toPrimitive"),r(),ux}var cx={},fx;function J$(){if(fx)return cx;fx=1;var e=Vr(),r=zn(),t=fa();return r("toStringTag"),t(e("Symbol"),"Symbol"),cx}var dx={},hx;function X$(){if(hx)return dx;hx=1;var e=zn();return e("unscopables"),dx}var vx={},np,px;function cf(){if(px)return np;px=1;var e=er(),r=Gr();return np=function(t,a,o){try{return e(r(Object.getOwnPropertyDescriptor(t,a)[o]))}catch{}},np}var ap,gx;function zL(){if(gx)return ap;gx=1;var e=Mr();return ap=function(r){return e(r)||r===null},ap}var ip,mx;function ZL(){if(mx)return ip;mx=1;var e=zL(),r=String,t=TypeError;return ip=function(a){if(e(a))return a;throw new t("Can't set "+r(a)+" as a prototype")},ip}var op,yx;function ni(){if(yx)return op;yx=1;var e=cf(),r=Mr(),t=Nt(),a=ZL();return op=Object.setPrototypeOf||("__proto__"in{}?(function(){var o=!1,s={},u;try{u=e(Object.prototype,"__proto__","set"),u(s,[]),o=s instanceof Array}catch{}return function(d,h){return t(d),a(h),r(d)&&(o?u(d,h):d.__proto__=h),d}})():void 0),op}var sp,bx;function HL(){if(bx)return sp;bx=1;var e=Tt().f;return sp=function(r,t,a){a in r||e(r,a,{configurable:!0,get:function(){return t[a]},set:function(o){t[a]=o}})},sp}var up,_x;function rs(){if(_x)return up;_x=1;var e=Xr(),r=Mr(),t=ni();return up=function(a,o,s){var u,v;return t&&e(u=o.constructor)&&u!==s&&r(v=u.prototype)&&v!==s.prototype&&t(a,v),a},up}var lp,Sx;function ru(){if(Sx)return lp;Sx=1;var e=zr();return lp=function(r,t){return r===void 0?arguments.length<2?"":t:e(r)},lp}var cp,wx;function VL(){if(wx)return cp;wx=1;var e=Mr(),r=kn();return cp=function(t,a){e(a)&&"cause"in a&&r(t,"cause",a.cause)},cp}var fp,Ex;function d_(){if(Ex)return fp;Ex=1;var e=er(),r=Error,t=e("".replace),a=(function(u){return String(new r(u).stack)})("zxcasd"),o=/\n\s*at [^:]*:[^\n]*/,s=o.test(a);return fp=function(u,v){if(s&&typeof u=="string"&&!r.prepareStackTrace)for(;v--;)u=t(u,o,"");return u},fp}var dp,Cx;function GL(){if(Cx)return dp;Cx=1;var e=Je(),r=_a();return dp=!e(function(){var t=new Error("a");return"stack"in t?(Object.defineProperty(t,"stack",r(1,7)),t.stack!==7):!0}),dp}var hp,xx;function h_(){if(xx)return hp;xx=1;var e=kn(),r=d_(),t=GL(),a=Error.captureStackTrace;return hp=function(o,s,u,v){t&&(a?a(o,s):e(o,"stack",r(u,v)))},hp}var vp,Ix;function WL(){if(Ix)return vp;Ix=1;var e=Vr(),r=Wr(),t=kn(),a=Jn(),o=ni(),s=eu(),u=HL(),v=rs(),d=ru(),h=VL(),f=h_(),c=Tr(),_=ht();return vp=function(E,S,w,T){var b="stackTraceLimit",I=T?2:1,m=E.split("."),p=m[m.length-1],y=e.apply(null,m);if(y){var g=y.prototype;if(!_&&r(g,"cause")&&delete g.cause,!w)return y;var x=e("Error"),R=S(function(O,j){var k=d(T?j:O,void 0),N=T?new y(O):new y;return k!==void 0&&t(N,"message",k),f(N,R,N.stack,2),this&&a(g,this)&&v(N,this,R),arguments.length>I&&h(N,arguments[I]),N});if(R.prototype=g,p!=="Error"?o?o(R,x):s(R,x,{name:!0}):c&&b in y&&(u(R,y,b),u(R,y,"prepareStackTrace")),s(R,y),!_)try{g.name!==p&&t(g,"name",p),g.constructor=R}catch{}return R}},vp}var Ax;function Q$(){if(Ax)return vx;Ax=1;var e=ie(),r=ir(),t=Ca(),a=WL(),o="WebAssembly",s=r[o],u=new Error("e",{cause:7}).cause!==7,v=function(h,f){var c={};c[h]=a(h,f,u),e({global:!0,constructor:!0,arity:1,forced:u},c)},d=function(h,f){if(s&&s[h]){var c={};c[h]=a(o+"."+h,f,u),e({target:o,stat:!0,constructor:!0,arity:1,forced:u},c)}};return v("Error",function(h){return function(c){return t(h,this,arguments)}}),v("EvalError",function(h){return function(c){return t(h,this,arguments)}}),v("RangeError",function(h){return function(c){return t(h,this,arguments)}}),v("ReferenceError",function(h){return function(c){return t(h,this,arguments)}}),v("SyntaxError",function(h){return function(c){return t(h,this,arguments)}}),v("TypeError",function(h){return function(c){return t(h,this,arguments)}}),v("URIError",function(h){return function(c){return t(h,this,arguments)}}),d("CompileError",function(h){return function(c){return t(h,this,arguments)}}),d("LinkError",function(h){return function(c){return t(h,this,arguments)}}),d("RuntimeError",function(h){return function(c){return t(h,this,arguments)}}),vx}var Tx={},Rx;function ez(){if(Rx)return Tx;Rx=1;var e=ie(),r=Vr(),t=Mr(),a=wa(),o=Je(),s="Error",u="DOMException",v=Object.setPrototypeOf||{}.__proto__,d=r(u),h=Error,f=h.isError,c=!f||!v||o(function(){return d&&!f(new d(u))||!f(new h(s,{cause:function(){}}))||f(r("Object","create")(h.prototype))});return e({target:"Error",stat:!0,sham:!0,forced:c},{isError:function(E){if(!t(E))return!1;var S=a(E);return S===s||S===u}}),Tx}var Ox={},pp,kx;function KL(){if(kx)return pp;kx=1;var e=Tr(),r=Je(),t=Ir(),a=ru(),o=Error.prototype.toString,s=r(function(){if(e){var u=Object.create(Object.defineProperty({},"name",{get:function(){return this===u}}));if(o.call(u)!=="true")return!0}return o.call({message:1,name:2})!=="2: 1"||o.call({})!=="Error"});return pp=s?function(){var v=t(this),d=a(v.name,"Error"),h=a(v.message);return d?h?d+": "+h:d:h}:o,pp}var Px;function rz(){if(Px)return Ox;Px=1;var e=mt(),r=KL(),t=Error.prototype;return t.toString!==r&&e(t,"toString",r),Ox}var Nx={},jx={},gp,qx;function v_(){if(qx)return gp;qx=1;var e=Je();return gp=!e(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype}),gp}var mp,Dx;function Xn(){if(Dx)return mp;Dx=1;var e=Wr(),r=Xr(),t=lt(),a=sf(),o=v_(),s=a("IE_PROTO"),u=Object,v=u.prototype;return mp=o?u.getPrototypeOf:function(d){var h=t(d);if(e(h,s))return h[s];var f=h.constructor;return r(f)&&h instanceof f?f.prototype:h instanceof u?v:null},mp}var yp,Lx;function gl(){return Lx||(Lx=1,yp={}),yp}var bp,Mx;function p_(){if(Mx)return bp;Mx=1;var e=Ur(),r=gl(),t=e("iterator"),a=Array.prototype;return bp=function(o){return o!==void 0&&(r.Array===o||a[t]===o)},bp}var _p,Ux;function ts(){if(Ux)return _p;Ux=1;var e=wa(),r=Rn(),t=Bi(),a=gl(),o=Ur(),s=o("iterator");return _p=function(u){if(!t(u))return r(u,s)||r(u,"@@iterator")||a[e(u)]},_p}var Sp,Fx;function tu(){if(Fx)return Sp;Fx=1;var e=Er(),r=Gr(),t=Ir(),a=Jo(),o=ts(),s=TypeError;return Sp=function(u,v){var d=arguments.length<2?o(u):v;if(r(d))return t(e(d,u));throw new s(a(u)+" is not iterable")},Sp}var wp,Bx;function jn(){if(Bx)return wp;Bx=1;var e=Er(),r=Ir(),t=Rn();return wp=function(a,o,s){var u,v;r(a);try{if(u=t(a,"return"),!u){if(o==="throw")throw s;return s}u=e(u,a)}catch(d){v=!0,u=d}if(o==="throw")throw s;if(v)throw u;return r(u),s},wp}var Ep,$x;function ln(){if($x)return Ep;$x=1;var e=Ea(),r=Er(),t=Ir(),a=Jo(),o=p_(),s=bt(),u=Jn(),v=tu(),d=ts(),h=jn(),f=TypeError,c=function(E,S){this.stopped=E,this.result=S},_=c.prototype;return Ep=function(E,S,w){var T=w&&w.that,b=!!(w&&w.AS_ENTRIES),I=!!(w&&w.IS_RECORD),m=!!(w&&w.IS_ITERATOR),p=!!(w&&w.INTERRUPTED),y=e(S,T),g,x,R,O,j,k,N,D=function(B){return g&&h(g,"normal"),new c(!0,B)},U=function(B){return b?(t(B),p?y(B[0],B[1],D):y(B[0],B[1])):p?y(B,D):y(B)};if(I)g=E.iterator;else if(m)g=E;else{if(x=d(E),!x)throw new f(a(E)+" is not iterable");if(o(x)){for(R=0,O=s(E);O>R;R++)if(j=U(E[R]),j&&u(_,j))return j;return new c(!1)}g=v(E,x)}for(k=I?E.next:g.next;!(N=r(k,g)).done;){try{j=U(N.value)}catch(B){h(g,"throw",B)}if(typeof j=="object"&&j&&u(_,j))return j}return new c(!1)},Ep}var zx;function tz(){if(zx)return jx;zx=1;var e=ie(),r=Jn(),t=Xn(),a=ni(),o=eu(),s=Pn(),u=kn(),v=_a(),d=VL(),h=h_(),f=ln(),c=ru(),_=Ur(),E=_("toStringTag"),S=Error,w=[].push,T=function(m,p){var y=r(b,this),g;a?g=a(new S,y?t(this):b):(g=y?this:s(b),u(g,E,"Error")),p!==void 0&&u(g,"message",c(p)),h(g,T,g.stack,1),arguments.length>2&&d(g,arguments[2]);var x=[];return f(m,w,{that:x}),u(g,"errors",x),g};a?a(T,S):o(T,S,{name:!0});var b=T.prototype=s(S.prototype,{constructor:v(1,T),message:v(1,""),name:v(1,"AggregateError")});return e({global:!0,constructor:!0,arity:2},{AggregateError:T}),jx}var Zx;function nz(){return Zx||(Zx=1,tz()),Nx}var Hx={},Vx;function az(){if(Vx)return Hx;Vx=1;var e=ie(),r=Vr(),t=Ca(),a=Je(),o=WL(),s="AggregateError",u=r(s),v=!a(function(){return u([1]).errors[0]!==1})&&a(function(){return u([1],s,{cause:7}).cause!==7});return e({global:!0,constructor:!0,arity:2,forced:v},{AggregateError:o(s,function(d){return function(f,c){return t(d,this,arguments)}},v,!0)}),Hx}var Gx={},Wx;function iz(){if(Wx)return Gx;Wx=1;var e=ie(),r=ir(),t=Jn(),a=Xn(),o=ni(),s=eu(),u=Pn(),v=kn(),d=_a(),h=h_(),f=ru(),c=Ur(),_=Je(),E=ht(),S=r.SuppressedError,w=c("toStringTag"),T=Error,b=!!S&&S.length!==3,I=!!S&&_(function(){return new S(1,2,3,{cause:4}).cause===4}),m=b||I,p=function(x,R,O){var j=t(y,this),k;return o?k=m&&(!j||a(this)===y)?new S:o(new T,j?a(this):y):(k=j?this:u(y),v(k,w,"Error")),O!==void 0&&v(k,"message",f(O)),h(k,p,k.stack,1),v(k,"error",x),v(k,"suppressed",R),k};o?o(p,T):s(p,T,{name:!0});var y=p.prototype=m?S.prototype:u(T.prototype,{constructor:d(1,p),message:d(1,""),name:d(1,"SuppressedError")});return m&&!E&&(y.constructor=p),e({global:!0,constructor:!0,arity:3,forced:m},{SuppressedError:p}),Gx}var Kx={},Cp,Yx;function da(){if(Yx)return Cp;Yx=1;var e=Ur(),r=Pn(),t=Tt().f,a=e("unscopables"),o=Array.prototype;return o[a]===void 0&&t(o,a,{configurable:!0,value:r(null)}),Cp=function(s){o[a][s]=!0},Cp}var Jx;function oz(){if(Jx)return Kx;Jx=1;var e=ie(),r=lt(),t=bt(),a=Vt(),o=da();return e({target:"Array",proto:!0},{at:function(u){var v=r(this),d=t(v),h=a(u),f=h>=0?h:d+h;return f<0||f>=d?void 0:v[f]}}),o("at"),Kx}var Xx={},xp,Qx;function ns(){if(Qx)return xp;Qx=1;var e=TypeError,r=9007199254740991;return xp=function(t){if(t>r)throw e("Maximum allowed index exceeded");return t},xp}var Ip,eI;function zi(){if(eI)return Ip;eI=1;var e=Tr(),r=Tt(),t=_a();return Ip=function(a,o,s){e?r.f(a,o,t(0,s)):a[o]=s},Ip}var Ap,rI;function ml(){if(rI)return Ap;rI=1;var e=Je(),r=Ur(),t=yi(),a=r("species");return Ap=function(o){return t>=51||!e(function(){var s=[],u=s.constructor={};return u[a]=function(){return{foo:1}},s[o](Boolean).foo!==1})},Ap}var tI;function sz(){if(tI)return Xx;tI=1;var e=ie(),r=Je(),t=wo(),a=Mr(),o=lt(),s=bt(),u=ns(),v=zi(),d=pl(),h=ml(),f=Ur(),c=yi(),_=f("isConcatSpreadable"),E=c>=51||!r(function(){var T=[];return T[_]=!1,T.concat()[0]!==T}),S=function(T){if(!a(T))return!1;var b=T[_];return b!==void 0?!!b:t(T)},w=!E||!h("concat");return e({target:"Array",proto:!0,arity:1,forced:w},{concat:function(b){var I=o(this),m=d(I,0),p=0,y,g,x,R,O;for(y=-1,x=arguments.length;y<x;y++)if(O=y===-1?I:arguments[y],S(O))for(R=s(O),u(p+R),g=0;g<R;g++,p++)g in O&&v(m,p,O[g]);else u(p+1),v(m,p++,O);return m.length=p,m}}),Xx}var nI={},Tp,aI;function ff(){if(aI)return Tp;aI=1;var e=Jo(),r=TypeError;return Tp=function(t,a){if(!delete t[a])throw new r("Cannot delete property "+e(a)+" of "+e(t))},Tp}var Rp,iI;function YL(){if(iI)return Rp;iI=1;var e=lt(),r=$i(),t=bt(),a=ff(),o=Math.min;return Rp=[].copyWithin||function(u,v){var d=e(this),h=t(d),f=r(u,h),c=r(v,h),_=arguments.length>2?arguments[2]:void 0,E=o((_===void 0?h:r(_,h))-c,h-f),S=1;for(c<f&&f<c+E&&(S=-1,c+=E-1,f+=E-1);E-- >0;)c in d?d[f]=d[c]:a(d,f),f+=S,c+=S;return d},Rp}var oI;function uz(){if(oI)return nI;oI=1;var e=ie(),r=YL(),t=da();return e({target:"Array",proto:!0},{copyWithin:r}),t("copyWithin"),nI}var sI={},Op,uI;function Zi(){if(uI)return Op;uI=1;var e=Je();return Op=function(r,t){var a=[][r];return!!a&&e(function(){a.call(null,t||function(){return 1},1)})},Op}var lI;function lz(){if(lI)return sI;lI=1;var e=ie(),r=Nn().every,t=Zi(),a=t("every");return e({target:"Array",proto:!0,forced:!a},{every:function(s){return r(this,s,arguments.length>1?arguments[1]:void 0)}}),sI}var cI={},kp,fI;function g_(){if(fI)return kp;fI=1;var e=lt(),r=$i(),t=bt();return kp=function(o){for(var s=e(this),u=t(s),v=arguments.length,d=r(v>1?arguments[1]:void 0,u),h=v>2?arguments[2]:void 0,f=h===void 0?u:r(h,u);f>d;)s[d++]=o;return s},kp}var dI;function cz(){if(dI)return cI;dI=1;var e=ie(),r=g_(),t=da();return e({target:"Array",proto:!0},{fill:r}),t("fill"),cI}var hI={},vI;function fz(){if(vI)return hI;vI=1;var e=ie(),r=Nn().filter,t=ml(),a=t("filter");return e({target:"Array",proto:!0,forced:!a},{filter:function(s){return r(this,s,arguments.length>1?arguments[1]:void 0)}}),hI}var pI={},gI;function dz(){if(gI)return pI;gI=1;var e=ie(),r=Nn().find,t=da(),a="find",o=!0;return a in[]&&Array(1)[a](function(){o=!1}),e({target:"Array",proto:!0,forced:o},{find:function(u){return r(this,u,arguments.length>1?arguments[1]:void 0)}}),t(a),pI}var mI={},yI;function hz(){if(yI)return mI;yI=1;var e=ie(),r=Nn().findIndex,t=da(),a="findIndex",o=!0;return a in[]&&Array(1)[a](function(){o=!1}),e({target:"Array",proto:!0,forced:o},{findIndex:function(u){return r(this,u,arguments.length>1?arguments[1]:void 0)}}),t(a),mI}var bI={},Pp,_I;function df(){if(_I)return Pp;_I=1;var e=Ea(),r=Ks(),t=lt(),a=bt(),o=function(s){var u=s===1;return function(v,d,h){for(var f=t(v),c=r(f),_=a(c),E=e(d,h),S,w;_-- >0;)if(S=c[_],w=E(S,_,f),w)switch(s){case 0:return S;case 1:return _}return u?-1:void 0}};return Pp={findLast:o(0),findLastIndex:o(1)},Pp}var SI;function vz(){if(SI)return bI;SI=1;var e=ie(),r=df().findLast,t=da();return e({target:"Array",proto:!0},{findLast:function(o){return r(this,o,arguments.length>1?arguments[1]:void 0)}}),t("findLast"),bI}var wI={},EI;function pz(){if(EI)return wI;EI=1;var e=ie(),r=df().findLastIndex,t=da();return e({target:"Array",proto:!0},{findLastIndex:function(o){return r(this,o,arguments.length>1?arguments[1]:void 0)}}),t("findLastIndex"),wI}var CI={},Np,xI;function JL(){if(xI)return Np;xI=1;var e=wo(),r=bt(),t=ns(),a=Ea(),o=function(s,u,v,d,h,f,c,_){for(var E=h,S=0,w=c?a(c,_):!1,T,b;S<d;)S in v&&(T=w?w(v[S],S,u):v[S],f>0&&e(T)?(b=r(T),E=o(s,u,T,b,E,f-1)-1):(t(E+1),s[E]=T),E++),S++;return E};return Np=o,Np}var II;function gz(){if(II)return CI;II=1;var e=ie(),r=JL(),t=lt(),a=bt(),o=Vt(),s=pl();return e({target:"Array",proto:!0},{flat:function(){var v=arguments.length?arguments[0]:void 0,d=t(this),h=a(d),f=s(d,0);return f.length=r(f,d,d,h,0,v===void 0?1:o(v)),f}}),CI}var AI={},TI;function mz(){if(TI)return AI;TI=1;var e=ie(),r=JL(),t=Gr(),a=lt(),o=bt(),s=pl();return e({target:"Array",proto:!0},{flatMap:function(v){var d=a(this),h=o(d),f;return t(v),f=s(d,0),f.length=r(f,d,d,h,0,1,v,arguments.length>1?arguments[1]:void 0),f}}),AI}var RI={},jp,OI;function XL(){if(OI)return jp;OI=1;var e=Nn().forEach,r=Zi(),t=r("forEach");return jp=t?[].forEach:function(o){return e(this,o,arguments.length>1?arguments[1]:void 0)},jp}var kI;function yz(){if(kI)return RI;kI=1;var e=ie(),r=XL();return e({target:"Array",proto:!0,forced:[].forEach!==r},{forEach:r}),RI}var PI={},qp,NI;function m_(){if(NI)return qp;NI=1;var e=Ir(),r=jn();return qp=function(t,a,o,s){try{return s?a(e(o)[0],o[1]):a(o)}catch(u){r(t,"throw",u)}},qp}var Dp,jI;function QL(){if(jI)return Dp;jI=1;var e=Ea(),r=Er(),t=lt(),a=m_(),o=p_(),s=es(),u=bt(),v=zi(),d=tu(),h=ts(),f=Array;return Dp=function(_){var E=t(_),S=s(this),w=arguments.length,T=w>1?arguments[1]:void 0,b=T!==void 0;b&&(T=e(T,w>2?arguments[2]:void 0));var I=h(E),m=0,p,y,g,x,R,O;if(I&&!(this===f&&o(I)))for(y=S?new this:[],x=d(E,I),R=x.next;!(g=r(R,x)).done;m++)O=b?a(x,T,[g.value,m],!0):g.value,v(y,m,O);else for(p=u(E),y=S?new this(p):f(p);p>m;m++)O=b?T(E[m],m):E[m],v(y,m,O);return y.length=m,y},Dp}var Lp,qI;function hf(){if(qI)return Lp;qI=1;var e=Ur(),r=e("iterator"),t=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){t=!0}};o[r]=function(){return this},Array.from(o,function(){throw 2})}catch{}return Lp=function(s,u){try{if(!u&&!t)return!1}catch{return!1}var v=!1;try{var d={};d[r]=function(){return{next:function(){return{done:v=!0}}}},s(d)}catch{}return v},Lp}var DI;function bz(){if(DI)return PI;DI=1;var e=ie(),r=QL(),t=hf(),a=!t(function(o){Array.from(o)});return e({target:"Array",stat:!0,forced:a},{from:r}),PI}var LI={},MI;function _z(){if(MI)return LI;MI=1;var e=ie(),r=dl().includes,t=Je(),a=da(),o=t(function(){return!Array(1).includes()});return e({target:"Array",proto:!0,forced:o},{includes:function(u){return r(this,u,arguments.length>1?arguments[1]:void 0)}}),a("includes"),LI}var UI={},FI;function Sz(){if(FI)return UI;FI=1;var e=ie(),r=Qo(),t=dl().indexOf,a=Zi(),o=r([].indexOf),s=!!o&&1/o([1],1,-0)<0,u=s||!a("indexOf");return e({target:"Array",proto:!0,forced:u},{indexOf:function(d){var h=arguments.length>1?arguments[1]:void 0;return s?o(this,d,h)||0:t(this,d,h)}}),UI}var BI={},$I;function wz(){if($I)return BI;$I=1;var e=ie(),r=wo();return e({target:"Array",stat:!0},{isArray:r}),BI}var Mp,zI;function nu(){if(zI)return Mp;zI=1;var e=Je(),r=Xr(),t=Mr(),a=Pn(),o=Xn(),s=mt(),u=Ur(),v=ht(),d=u("iterator"),h=!1,f,c,_;[].keys&&(_=[].keys(),"next"in _?(c=o(o(_)),c!==Object.prototype&&(f=c)):h=!0);var E=!t(f)||e(function(){var S={};return f[d].call(S)!==S});return E?f={}:v&&(f=a(f)),r(f[d])||s(f,d,function(){return this}),Mp={IteratorPrototype:f,BUGGY_SAFARI_ITERATORS:h},Mp}var Up,ZI;function y_(){if(ZI)return Up;ZI=1;var e=nu().IteratorPrototype,r=Pn(),t=_a(),a=fa(),o=gl(),s=function(){return this};return Up=function(u,v,d,h){var f=v+" Iterator";return u.prototype=r(e,{next:t(+!h,d)}),a(u,f,!1,!0),o[f]=s,u},Up}var Fp,HI;function b_(){if(HI)return Fp;HI=1;var e=ie(),r=Er(),t=ht(),a=Qs(),o=Xr(),s=y_(),u=Xn(),v=ni(),d=fa(),h=kn(),f=mt(),c=Ur(),_=gl(),E=nu(),S=a.PROPER,w=a.CONFIGURABLE,T=E.IteratorPrototype,b=E.BUGGY_SAFARI_ITERATORS,I=c("iterator"),m="keys",p="values",y="entries",g=function(){return this};return Fp=function(x,R,O,j,k,N,D){s(O,R,j);var U=function(oe){if(oe===k&&M)return M;if(!b&&oe&&oe in G)return G[oe];switch(oe){case m:return function(){return new O(this,oe)};case p:return function(){return new O(this,oe)};case y:return function(){return new O(this,oe)}}return function(){return new O(this)}},B=R+" Iterator",H=!1,G=x.prototype,$=G[I]||G["@@iterator"]||k&&G[k],M=!b&&$||U(k),L=R==="Array"&&G.entries||$,F,V,ae;if(L&&(F=u(L.call(new x)),F!==Object.prototype&&F.next&&(!t&&u(F)!==T&&(v?v(F,T):o(F[I])||f(F,I,g)),d(F,B,!0,!0),t&&(_[B]=g))),S&&k===p&&$&&$.name!==p&&(!t&&w?h(G,"name",p):(H=!0,M=function(){return r($,this)})),k)if(V={values:U(p),keys:N?M:U(m),entries:U(y)},D)for(ae in V)(b||H||!(ae in G))&&f(G,ae,V[ae]);else e({target:R,proto:!0,forced:b||H},V);return(!t||D)&&G[I]!==M&&f(G,I,M,{name:k}),_[R]=M,V},Fp}var Bp,VI;function as(){return VI||(VI=1,Bp=function(e,r){return{value:e,done:r}}),Bp}var $p,GI;function vf(){if(GI)return $p;GI=1;var e=mn(),r=da(),t=gl(),a=Lt(),o=Tt().f,s=b_(),u=as(),v=ht(),d=Tr(),h="Array Iterator",f=a.set,c=a.getterFor(h);$p=s(Array,"Array",function(E,S){f(this,{type:h,target:e(E),index:0,kind:S})},function(){var E=c(this),S=E.target,w=E.index++;if(!S||w>=S.length)return E.target=null,u(void 0,!0);switch(E.kind){case"keys":return u(w,!1);case"values":return u(S[w],!1)}return u([w,S[w]],!1)},"values");var _=t.Arguments=t.Array;if(r("keys"),r("values"),r("entries"),!v&&d&&_.name!=="values")try{o(_,"name",{value:"values"})}catch{}return $p}var WI={},KI;function Ez(){if(KI)return WI;KI=1;var e=ie(),r=er(),t=Ks(),a=mn(),o=Zi(),s=r([].join),u=t!==Object,v=u||!o("join",",");return e({target:"Array",proto:!0,forced:v},{join:function(h){return s(a(this),h===void 0?",":h)}}),WI}var YI={},zp,JI;function eM(){if(JI)return zp;JI=1;var e=Ca(),r=mn(),t=Vt(),a=bt(),o=Zi(),s=Math.min,u=[].lastIndexOf,v=!!u&&1/[1].lastIndexOf(1,-0)<0,d=o("lastIndexOf"),h=v||!d;return zp=h?function(c){if(v)return e(u,this,arguments)||0;var _=r(this),E=a(_);if(E===0)return-1;var S=E-1;for(arguments.length>1&&(S=s(S,t(arguments[1]))),S<0&&(S=E+S);S>=0;S--)if(S in _&&_[S]===c)return S||0;return-1}:u,zp}var XI;function Cz(){if(XI)return YI;XI=1;var e=ie(),r=eM();return e({target:"Array",proto:!0,forced:r!==[].lastIndexOf},{lastIndexOf:r}),YI}var QI={},eA;function xz(){if(eA)return QI;eA=1;var e=ie(),r=Nn().map,t=ml(),a=t("map");return e({target:"Array",proto:!0,forced:!a},{map:function(s){return r(this,s,arguments.length>1?arguments[1]:void 0)}}),QI}var rA={},tA;function Iz(){if(tA)return rA;tA=1;var e=ie(),r=Je(),t=es(),a=zi(),o=Array,s=r(function(){function u(){}return!(o.of.call(u)instanceof u)});return e({target:"Array",stat:!0,forced:s},{of:function(){for(var v=0,d=arguments.length,h=new(t(this)?this:o)(d);d>v;)a(h,v,arguments[v++]);return h.length=d,h}}),rA}var nA={},Zp,aA;function __(){if(aA)return Zp;aA=1;var e=Tr(),r=wo(),t=TypeError,a=Object.getOwnPropertyDescriptor,o=e&&!(function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(s){return s instanceof TypeError}})();return Zp=o?function(s,u){if(r(s)&&!a(s,"length").writable)throw new t("Cannot set read only .length");return s.length=u}:function(s,u){return s.length=u},Zp}var iA;function Az(){if(iA)return nA;iA=1;var e=ie(),r=lt(),t=bt(),a=__(),o=ns(),s=Je(),u=s(function(){return[].push.call({length:4294967296},1)!==4294967297}),v=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(h){return h instanceof TypeError}},d=u||!v();return e({target:"Array",proto:!0,arity:1,forced:d},{push:function(f){var c=r(this),_=t(c),E=arguments.length;o(_+E);for(var S=0;S<E;S++)c[_]=arguments[S],_++;return a(c,_),_}}),nA}var oA={},Hp,sA;function pf(){if(sA)return Hp;sA=1;var e=Gr(),r=lt(),t=Ks(),a=bt(),o=TypeError,s="Reduce of empty array with no initial value",u=function(v){return function(d,h,f,c){var _=r(d),E=t(_),S=a(_);if(e(h),S===0&&f<2)throw new o(s);var w=v?S-1:0,T=v?-1:1;if(f<2)for(;;){if(w in E){c=E[w],w+=T;break}if(w+=T,v?w<0:S<=w)throw new o(s)}for(;v?w>=0:S>w;w+=T)w in E&&(c=h(c,E[w],w,_));return c}};return Hp={left:u(!1),right:u(!0)},Hp}var Vp,uA;function gf(){if(uA)return Vp;uA=1;var e=ir(),r=mi(),t=$n(),a=function(o){return r.slice(0,o.length)===o};return Vp=(function(){return a("Bun/")?"BUN":a("Cloudflare-Workers")?"CLOUDFLARE":a("Deno/")?"DENO":a("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"})(),Vp}var Gp,lA;function au(){if(lA)return Gp;lA=1;var e=gf();return Gp=e==="NODE",Gp}var cA;function Tz(){if(cA)return oA;cA=1;var e=ie(),r=pf().left,t=Zi(),a=yi(),o=au(),s=!o&&a>79&&a<83,u=s||!t("reduce");return e({target:"Array",proto:!0,forced:u},{reduce:function(d){var h=arguments.length;return r(this,d,h,h>1?arguments[1]:void 0)}}),oA}var fA={},dA;function Rz(){if(dA)return fA;dA=1;var e=ie(),r=pf().right,t=Zi(),a=yi(),o=au(),s=!o&&a>79&&a<83,u=s||!t("reduceRight");return e({target:"Array",proto:!0,forced:u},{reduceRight:function(d){return r(this,d,arguments.length,arguments.length>1?arguments[1]:void 0)}}),fA}var hA={},vA;function Oz(){if(vA)return hA;vA=1;var e=ie(),r=er(),t=wo(),a=r([].reverse),o=[1,2];return e({target:"Array",proto:!0,forced:String(o)===String(o.reverse())},{reverse:function(){return t(this)&&(this.length=this.length),a(this)}}),hA}var pA={},gA;function kz(){if(gA)return pA;gA=1;var e=ie(),r=wo(),t=es(),a=Mr(),o=$i(),s=bt(),u=mn(),v=zi(),d=Ur(),h=ml(),f=Ba(),c=h("slice"),_=d("species"),E=Array,S=Math.max;return e({target:"Array",proto:!0,forced:!c},{slice:function(T,b){var I=u(this),m=s(I),p=o(T,m),y=o(b===void 0?m:b,m),g,x,R;if(r(I)&&(g=I.constructor,t(g)&&(g===E||r(g.prototype))?g=void 0:a(g)&&(g=g[_],g===null&&(g=void 0)),g===E||g===void 0))return f(I,p,y);for(x=new(g===void 0?E:g)(S(y-p,0)),R=0;p<y;p++,R++)p in I&&v(x,R,I[p]);return x.length=R,x}}),pA}var mA={},yA;function Pz(){if(yA)return mA;yA=1;var e=ie(),r=Nn().some,t=Zi(),a=t("some");return e({target:"Array",proto:!0,forced:!a},{some:function(s){return r(this,s,arguments.length>1?arguments[1]:void 0)}}),mA}var bA={},Wp,_A;function S_(){if(_A)return Wp;_A=1;var e=Ba(),r=Math.floor,t=function(a,o){var s=a.length;if(s<8)for(var u=1,v,d;u<s;){for(d=u,v=a[u];d&&o(a[d-1],v)>0;)a[d]=a[--d];d!==u++&&(a[d]=v)}else for(var h=r(s/2),f=t(e(a,0,h),o),c=t(e(a,h),o),_=f.length,E=c.length,S=0,w=0;S<_||w<E;)a[S+w]=S<_&&w<E?o(f[S],c[w])<=0?f[S++]:c[w++]:S<_?f[S++]:c[w++];return a};return Wp=t,Wp}var Kp,SA;function rM(){if(SA)return Kp;SA=1;var e=mi(),r=e.match(/firefox\/(\d+)/i);return Kp=!!r&&+r[1],Kp}var Yp,wA;function tM(){if(wA)return Yp;wA=1;var e=mi();return Yp=/MSIE|Trident/.test(e),Yp}var Jp,EA;function w_(){if(EA)return Jp;EA=1;var e=mi(),r=e.match(/AppleWebKit\/(\d+)\./);return Jp=!!r&&+r[1],Jp}var CA;function Nz(){if(CA)return bA;CA=1;var e=ie(),r=er(),t=Gr(),a=lt(),o=bt(),s=ff(),u=zr(),v=Je(),d=S_(),h=Zi(),f=rM(),c=tM(),_=yi(),E=w_(),S=[],w=r(S.sort),T=r(S.push),b=v(function(){S.sort(void 0)}),I=v(function(){S.sort(null)}),m=h("sort"),p=!v(function(){if(_)return _<70;if(!(f&&f>3)){if(c)return!0;if(E)return E<603;var x="",R,O,j,k;for(R=65;R<76;R++){switch(O=String.fromCharCode(R),R){case 66:case 69:case 70:case 72:j=3;break;case 68:case 71:j=4;break;default:j=2}for(k=0;k<47;k++)S.push({k:O+k,v:j})}for(S.sort(function(N,D){return D.v-N.v}),k=0;k<S.length;k++)O=S[k].k.charAt(0),x.charAt(x.length-1)!==O&&(x+=O);return x!=="DGBEFHACIJK"}}),y=b||!I||!m||!p,g=function(x){return function(R,O){return O===void 0?-1:R===void 0?1:x!==void 0?+x(R,O)||0:u(R)>u(O)?1:-1}};return e({target:"Array",proto:!0,forced:y},{sort:function(R){R!==void 0&&t(R);var O=a(this);if(p)return R===void 0?w(O):w(O,R);var j=[],k=o(O),N,D;for(D=0;D<k;D++)D in O&&T(j,O[D]);for(d(j,g(R)),N=o(j),D=0;D<N;)O[D]=j[D++];for(;D<k;)s(O,D++);return O}}),bA}var xA={},Xp,IA;function iu(){if(IA)return Xp;IA=1;var e=Vr(),r=Jt(),t=Ur(),a=Tr(),o=t("species");return Xp=function(s){var u=e(s);a&&u&&!u[o]&&r(u,o,{configurable:!0,get:function(){return this}})},Xp}var AA;function jz(){if(AA)return xA;AA=1;var e=iu();return e("Array"),xA}var TA={},RA;function qz(){if(RA)return TA;RA=1;var e=ie(),r=lt(),t=$i(),a=Vt(),o=bt(),s=__(),u=ns(),v=pl(),d=zi(),h=ff(),f=ml(),c=f("splice"),_=Math.max,E=Math.min;return e({target:"Array",proto:!0,forced:!c},{splice:function(w,T){var b=r(this),I=o(b),m=t(w,I),p=arguments.length,y,g,x,R,O,j;for(p===0?y=g=0:p===1?(y=0,g=I-m):(y=p-2,g=E(_(a(T),0),I-m)),u(I+y-g),x=v(b,g),R=0;R<g;R++)O=m+R,O in b&&d(x,R,b[O]);if(x.length=g,y<g){for(R=m;R<I-g;R++)O=R+g,j=R+y,O in b?b[j]=b[O]:h(b,j);for(R=I;R>I-g+y;R--)h(b,R-1)}else if(y>g)for(R=I-g;R>m;R--)O=R+g-1,j=R+y-1,O in b?b[j]=b[O]:h(b,j);for(R=0;R<y;R++)b[R+m]=arguments[R+2];return s(b,I-g+y),x}}),TA}var OA={},Qp,kA;function nM(){if(kA)return Qp;kA=1;var e=bt();return Qp=function(r,t){for(var a=e(r),o=new t(a),s=0;s<a;s++)o[s]=r[a-s-1];return o},Qp}var PA;function Dz(){if(PA)return OA;PA=1;var e=ie(),r=nM(),t=mn(),a=da(),o=Array;return e({target:"Array",proto:!0},{toReversed:function(){return r(t(this),o)}}),a("toReversed"),OA}var NA={},eg,jA;function yl(){if(jA)return eg;jA=1;var e=bt();return eg=function(r,t,a){for(var o=0,s=arguments.length>2?a:e(t),u=new r(s);s>o;)u[o]=t[o++];return u},eg}var rg,qA;function aM(){if(qA)return rg;qA=1;var e=ir();return rg=function(r,t){var a=e[r],o=a&&a.prototype;return o&&o[t]},rg}var DA;function Lz(){if(DA)return NA;DA=1;var e=ie(),r=er(),t=Gr(),a=mn(),o=yl(),s=aM(),u=da(),v=Array,d=r(s("Array","sort"));return e({target:"Array",proto:!0},{toSorted:function(f){f!==void 0&&t(f);var c=a(this),_=o(v,c);return d(_,f)}}),u("toSorted"),NA}var LA={},MA;function Mz(){if(MA)return LA;MA=1;var e=ie(),r=da(),t=ns(),a=bt(),o=$i(),s=mn(),u=Vt(),v=Array,d=Math.max,h=Math.min;return e({target:"Array",proto:!0},{toSpliced:function(c,_){var E=s(this),S=a(E),w=o(c,S),T=arguments.length,b=0,I,m,p,y;for(T===0?I=m=0:T===1?(I=0,m=S-w):(I=T-2,m=h(d(u(_),0),S-w)),p=t(S+I-m),y=v(p);b<w;b++)y[b]=E[b];for(;b<w+I;b++)y[b]=arguments[b-w+2];for(;b<p;b++)y[b]=E[b+m-I];return y}}),r("toSpliced"),LA}var UA={},FA;function Uz(){if(FA)return UA;FA=1;var e=da();return e("flat"),UA}var BA={},$A;function Fz(){if($A)return BA;$A=1;var e=da();return e("flatMap"),BA}var zA={},ZA;function Bz(){if(ZA)return zA;ZA=1;var e=ie(),r=lt(),t=bt(),a=__(),o=ff(),s=ns(),u=[].unshift(0)!==1,v=function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(h){return h instanceof TypeError}},d=u||!v();return e({target:"Array",proto:!0,arity:1,forced:d},{unshift:function(f){var c=r(this),_=t(c),E=arguments.length;if(E){s(_+E);for(var S=_;S--;){var w=S+E;S in c?c[w]=c[S]:o(c,w)}for(var T=0;T<E;T++)c[T]=arguments[T]}return a(c,_+E)}}),zA}var HA={},tg,VA;function iM(){if(VA)return tg;VA=1;var e=bt(),r=Vt(),t=RangeError;return tg=function(a,o,s,u){var v=e(a),d=r(s),h=d<0?v+d:d;if(h>=v||h<0)throw new t("Incorrect index");for(var f=new o(v),c=0;c<v;c++)f[c]=c===h?u:a[c];return f},tg}var GA;function $z(){if(GA)return HA;GA=1;var e=ie(),r=iM(),t=mn(),a=Array,o=(function(){try{[].with({valueOf:function(){throw 4}},null)}catch(s){return s!==4}})();return e({target:"Array",proto:!0,forced:o},{with:function(s,u){return r(t(this),a,s,u)}}),HA}var WA={},ng,KA;function mf(){return KA||(KA=1,ng=typeof ArrayBuffer<"u"&&typeof DataView<"u"),ng}var ag,YA;function Hi(){if(YA)return ag;YA=1;var e=mt();return ag=function(r,t,a){for(var o in t)e(r,o,t[o],a);return r},ag}var ig,JA;function xa(){if(JA)return ig;JA=1;var e=Jn(),r=TypeError;return ig=function(t,a){if(e(a,t))return t;throw new r("Incorrect invocation")},ig}var og,XA;function yf(){if(XA)return og;XA=1;var e=Vt(),r=Sa(),t=RangeError;return og=function(a){if(a===void 0)return 0;var o=e(a),s=r(o);if(o!==s)throw new t("Wrong length or index");return s},og}var sg,QA;function E_(){return QA||(QA=1,sg=Math.sign||function(r){var t=+r;return t===0||t!==t?t:t<0?-1:1}),sg}var ug,e5;function oM(){if(e5)return ug;e5=1;var e=2220446049250313e-31,r=1/e;return ug=function(t){return t+r-r},ug}var lg,r5;function sM(){if(r5)return lg;r5=1;var e=E_(),r=oM(),t=Math.abs,a=2220446049250313e-31;return lg=function(o,s,u,v){var d=+o,h=t(d),f=e(d);if(h<v)return f*r(h/v/s)*v*s;var c=(1+s/a)*h,_=c-(c-h);return _>u||_!==_?f*(1/0):f*_},lg}var cg,t5;function uM(){if(t5)return cg;t5=1;var e=sM(),r=11920928955078125e-23,t=34028234663852886e22,a=11754943508222875e-54;return cg=Math.fround||function(s){return e(s,r,t,a)},cg}var fg,n5;function zz(){if(n5)return fg;n5=1;var e=Array,r=Math.abs,t=Math.pow,a=Math.floor,o=Math.log,s=Math.LN2,u=function(d,h,f){var c=e(f),_=f*8-h-1,E=(1<<_)-1,S=E>>1,w=h===23?t(2,-24)-t(2,-77):0,T=d<0||d===0&&1/d<0?1:0,b=0,I,m,p;for(d=r(d),d!==d||d===1/0?(m=d!==d?1:0,I=E):(I=a(o(d)/s),p=t(2,-I),d*p<1&&(I--,p*=2),I+S>=1?d+=w/p:d+=w*t(2,1-S),d*p>=2&&(I++,p/=2),I+S>=E?(m=0,I=E):I+S>=1?(m=(d*p-1)*t(2,h),I+=S):(m=d*t(2,S-1)*t(2,h),I=0));h>=8;)c[b++]=m&255,m/=256,h-=8;for(I=I<<h|m,_+=h;_>0;)c[b++]=I&255,I/=256,_-=8;return c[b-1]|=T*128,c},v=function(d,h){var f=d.length,c=f*8-h-1,_=(1<<c)-1,E=_>>1,S=c-7,w=f-1,T=d[w--],b=T&127,I;for(T>>=7;S>0;)b=b*256+d[w--],S-=8;for(I=b&(1<<-S)-1,b>>=-S,S+=h;S>0;)I=I*256+d[w--],S-=8;if(b===0)b=1-E;else{if(b===_)return I?NaN:T?-1/0:1/0;I+=t(2,h),b-=E}return(T?-1:1)*I*t(2,b-h)};return fg={pack:u,unpack:v},fg}var dg,a5;function bf(){if(a5)return dg;a5=1;var e=ir(),r=er(),t=Tr(),a=mf(),o=Qs(),s=kn(),u=Jt(),v=Hi(),d=Je(),h=xa(),f=Vt(),c=Sa(),_=yf(),E=uM(),S=zz(),w=Xn(),T=ni(),b=g_(),I=Ba(),m=rs(),p=eu(),y=fa(),g=Lt(),x=o.PROPER,R=o.CONFIGURABLE,O="ArrayBuffer",j="DataView",k="prototype",N="Wrong length",D="Wrong index",U=g.getterFor(O),B=g.getterFor(j),H=g.set,G=e[O],$=G,M=$&&$[k],L=e[j],F=L&&L[k],V=Object.prototype,ae=e.Array,oe=e.RangeError,_e=r(b),he=r([].reverse),ye=S.pack,ge=S.unpack,Re=function(Q){return[Q&255]},We=function(Q){return[Q&255,Q>>8&255]},He=function(Q){return[Q&255,Q>>8&255,Q>>16&255,Q>>24&255]},nr=function(Q){return Q[3]<<24|Q[2]<<16|Q[1]<<8|Q[0]},ar=function(Q){return ye(E(Q),23,4)},xr=function(Q){return ye(Q,52,8)},or=function(Q,re,pe){u(Q[k],re,{configurable:!0,get:function(){return pe(this)[re]}})},lr=function(Q,re,pe,le){var Ee=B(Q),fe=_(pe),Pe=!!le;if(fe+re>Ee.byteLength)throw new oe(D);var ur=Ee.bytes,cr=fe+Ee.byteOffset,de=I(ur,cr,cr+re);return Pe?de:he(de)},Ve=function(Q,re,pe,le,Ee,fe){var Pe=B(Q),ur=_(pe),cr=le(+Ee),de=!!fe;if(ur+re>Pe.byteLength)throw new oe(D);for(var Ae=Pe.bytes,Ne=ur+Pe.byteOffset,Oe=0;Oe<re;Oe++)Ae[Ne+Oe]=cr[de?Oe:re-Oe-1]};if(!a)$=function(re){h(this,M);var pe=_(re);H(this,{type:O,bytes:_e(ae(pe),0),byteLength:pe}),t||(this.byteLength=pe,this.detached=!1)},M=$[k],L=function(re,pe,le){h(this,F),h(re,M);var Ee=U(re),fe=Ee.byteLength,Pe=f(pe);if(Pe<0||Pe>fe)throw new oe("Wrong offset");if(le=le===void 0?fe-Pe:c(le),Pe+le>fe)throw new oe(N);H(this,{type:j,buffer:re,byteLength:le,byteOffset:Pe,bytes:Ee.bytes}),t||(this.buffer=re,this.byteLength=le,this.byteOffset=Pe)},F=L[k],t&&(or($,"byteLength",U),or(L,"buffer",B),or(L,"byteLength",B),or(L,"byteOffset",B)),v(F,{getInt8:function(re){return lr(this,1,re)[0]<<24>>24},getUint8:function(re){return lr(this,1,re)[0]},getInt16:function(re){var pe=lr(this,2,re,arguments.length>1?arguments[1]:!1);return(pe[1]<<8|pe[0])<<16>>16},getUint16:function(re){var pe=lr(this,2,re,arguments.length>1?arguments[1]:!1);return pe[1]<<8|pe[0]},getInt32:function(re){return nr(lr(this,4,re,arguments.length>1?arguments[1]:!1))},getUint32:function(re){return nr(lr(this,4,re,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function(re){return ge(lr(this,4,re,arguments.length>1?arguments[1]:!1),23)},getFloat64:function(re){return ge(lr(this,8,re,arguments.length>1?arguments[1]:!1),52)},setInt8:function(re,pe){Ve(this,1,re,Re,pe)},setUint8:function(re,pe){Ve(this,1,re,Re,pe)},setInt16:function(re,pe){Ve(this,2,re,We,pe,arguments.length>2?arguments[2]:!1)},setUint16:function(re,pe){Ve(this,2,re,We,pe,arguments.length>2?arguments[2]:!1)},setInt32:function(re,pe){Ve(this,4,re,He,pe,arguments.length>2?arguments[2]:!1)},setUint32:function(re,pe){Ve(this,4,re,He,pe,arguments.length>2?arguments[2]:!1)},setFloat32:function(re,pe){Ve(this,4,re,ar,pe,arguments.length>2?arguments[2]:!1)},setFloat64:function(re,pe){Ve(this,8,re,xr,pe,arguments.length>2?arguments[2]:!1)}});else{var Ge=x&&G.name!==O;!d(function(){G(1)})||!d(function(){new G(-1)})||d(function(){return new G,new G(1.5),new G(NaN),G.length!==1||Ge&&!R})?($=function(re){return h(this,M),m(new G(_(re)),this,$)},$[k]=M,M.constructor=$,p($,G)):Ge&&R&&s(G,"name",O),T&&w(F)!==V&&T(F,V);var W=new L(new $(2)),Y=r(F.setInt8);W.setInt8(0,2147483648),W.setInt8(1,2147483649),(W.getInt8(0)||!W.getInt8(1))&&v(F,{setInt8:function(re,pe){Y(this,re,pe<<24>>24)},setUint8:function(re,pe){Y(this,re,pe<<24>>24)}},{unsafe:!0})}return y($,O),y(L,j),dg={ArrayBuffer:$,DataView:L},dg}var i5;function Zz(){if(i5)return WA;i5=1;var e=ie(),r=ir(),t=bf(),a=iu(),o="ArrayBuffer",s=t[o],u=r[o];return e({global:!0,constructor:!0,forced:u!==s},{ArrayBuffer:s}),a(o),WA}var o5={},hg,s5;function Qr(){if(s5)return hg;s5=1;var e=mf(),r=Tr(),t=ir(),a=Xr(),o=Mr(),s=Wr(),u=wa(),v=Jo(),d=kn(),h=mt(),f=Jt(),c=Jn(),_=Xn(),E=ni(),S=Ur(),w=Xs(),T=Lt(),b=T.enforce,I=T.get,m=t.Int8Array,p=m&&m.prototype,y=t.Uint8ClampedArray,g=y&&y.prototype,x=m&&_(m),R=p&&_(p),O=Object.prototype,j=t.TypeError,k=S("toStringTag"),N=w("TYPED_ARRAY_TAG"),D="TypedArrayConstructor",U=e&&!!E&&u(t.opera)!=="Opera",B=!1,H,G,$,M={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},L={BigInt64Array:8,BigUint64Array:8},F=function(Re){if(!o(Re))return!1;var We=u(Re);return We==="DataView"||s(M,We)||s(L,We)},V=function(ge){var Re=_(ge);if(o(Re)){var We=I(Re);return We&&s(We,D)?We[D]:V(Re)}},ae=function(ge){if(!o(ge))return!1;var Re=u(ge);return s(M,Re)||s(L,Re)},oe=function(ge){if(ae(ge))return ge;throw new j("Target is not a typed array")},_e=function(ge){if(a(ge)&&(!E||c(x,ge)))return ge;throw new j(v(ge)+" is not a typed array constructor")},he=function(ge,Re,We,He){if(r){if(We)for(var nr in M){var ar=t[nr];if(ar&&s(ar.prototype,ge))try{delete ar.prototype[ge]}catch{try{ar.prototype[ge]=Re}catch{}}}(!R[ge]||We)&&h(R,ge,We?Re:U&&p[ge]||Re,He)}},ye=function(ge,Re,We){var He,nr;if(r){if(E){if(We){for(He in M)if(nr=t[He],nr&&s(nr,ge))try{delete nr[ge]}catch{}}if(!x[ge]||We)try{return h(x,ge,We?Re:U&&x[ge]||Re)}catch{}else return}for(He in M)nr=t[He],nr&&(!nr[ge]||We)&&h(nr,ge,Re)}};for(H in M)G=t[H],$=G&&G.prototype,$?b($)[D]=G:U=!1;for(H in L)G=t[H],$=G&&G.prototype,$&&(b($)[D]=G);if((!U||!a(x)||x===Function.prototype)&&(x=function(){throw new j("Incorrect invocation")},U))for(H in M)t[H]&&E(t[H],x);if((!U||!R||R===O)&&(R=x.prototype,U))for(H in M)t[H]&&E(t[H].prototype,R);if(U&&_(g)!==R&&E(g,R),r&&!s(R,k)){B=!0,f(R,k,{configurable:!0,get:function(){return o(this)?this[N]:void 0}});for(H in M)t[H]&&d(t[H],N,H)}return hg={NATIVE_ARRAY_BUFFER_VIEWS:U,TYPED_ARRAY_TAG:B&&N,aTypedArray:oe,aTypedArrayConstructor:_e,exportTypedArrayMethod:he,exportTypedArrayStaticMethod:ye,getTypedArrayConstructor:V,isView:F,isTypedArray:ae,TypedArray:x,TypedArrayPrototype:R},hg}var u5;function Hz(){if(u5)return o5;u5=1;var e=ie(),r=Qr(),t=r.NATIVE_ARRAY_BUFFER_VIEWS;return e({target:"ArrayBuffer",stat:!0,forced:!t},{isView:r.isView}),o5}var l5={},c5;function Vz(){if(c5)return l5;c5=1;var e=ie(),r=Qo(),t=Je(),a=bf(),o=Ir(),s=$i(),u=Sa(),v=a.ArrayBuffer,d=a.DataView,h=d.prototype,f=r(v.prototype.slice),c=r(h.getUint8),_=r(h.setUint8),E=t(function(){return!new v(2).slice(1,void 0).byteLength});return e({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:E},{slice:function(w,T){if(f&&T===void 0)return f(o(this),w);for(var b=o(this).byteLength,I=s(w,b),m=s(T===void 0?b:T,b),p=new v(u(m-I)),y=new d(this),g=new d(p),x=0;I<m;)_(g,x++,c(y,I++));return p}}),l5}var f5={},d5={},h5;function Gz(){if(h5)return d5;h5=1;var e=ie(),r=bf(),t=mf();return e({global:!0,constructor:!0,forced:!t},{DataView:r.DataView}),d5}var v5;function Wz(){return v5||(v5=1,Gz()),f5}var p5={},g5;function Kz(){if(g5)return p5;g5=1;var e=ie(),r=er(),t=Math.pow,a=31,o=1023,s=t(2,-24),u=.0009765625,v=function(h){var f=h>>>15,c=h>>>10&a,_=h&o;return c===a?_===0?f===0?1/0:-1/0:NaN:c===0?_*(f===0?s:-s):t(2,c-15)*(f===0?1+_*u:-1-_*u)},d=r(DataView.prototype.getUint16);return e({target:"DataView",proto:!0},{getFloat16:function(f){return v(d(this,f,arguments.length>1?arguments[1]:!1))}}),p5}var m5={},vg,y5;function Yz(){if(y5)return vg;y5=1;var e=wa(),r=TypeError;return vg=function(t){if(e(t)==="DataView")return t;throw new r("Argument is not a DataView")},vg}var pg,b5;function lM(){if(b5)return pg;b5=1;var e=Math.log,r=Math.LN2;return pg=Math.log2||function(a){return e(a)/r},pg}var _5;function Jz(){if(_5)return m5;_5=1;var e=ie(),r=er(),t=Yz(),a=yf(),o=lM(),s=oM(),u=Math.pow,v=65520,d=61005353927612305e-21,h=16777216,f=1024,c=function(E){if(E!==E)return 32256;if(E===0)return(1/E===-1/0)<<15;var S=E<0;if(S&&(E=-E),E>=v)return S<<15|31744;if(E<d)return S<<15|s(E*h);var w=o(E)|0;if(w===-15)return S<<15|f;var T=s((E*u(2,-w)-1)*f);return T===f?S<<15|w+16<<10:S<<15|w+15<<10|T},_=r(DataView.prototype.setUint16);return e({target:"DataView",proto:!0},{setFloat16:function(S,w){_(t(this),a(S),c(+w),arguments.length>2?arguments[2]:!1)}}),m5}var S5={},gg,w5;function cM(){if(w5)return gg;w5=1;var e=ir(),r=cf(),t=$n(),a=e.ArrayBuffer,o=e.TypeError;return gg=a&&r(a.prototype,"byteLength","get")||function(s){if(t(s)!=="ArrayBuffer")throw new o("ArrayBuffer expected");return s.byteLength},gg}var mg,E5;function fM(){if(E5)return mg;E5=1;var e=ir(),r=mf(),t=cM(),a=e.DataView;return mg=function(o){if(!r||t(o)!==0)return!1;try{return new a(o),!1}catch{return!0}},mg}var C5;function Xz(){if(C5)return S5;C5=1;var e=Tr(),r=Jt(),t=fM(),a=ArrayBuffer.prototype;return e&&!("detached"in a)&&r(a,"detached",{configurable:!0,get:function(){return t(this)}}),S5}var x5={},yg,I5;function bl(){if(I5)return yg;I5=1;var e=fM(),r=TypeError;return yg=function(t){if(e(t))throw new r("ArrayBuffer is detached");return t},yg}var bg,A5;function dM(){if(A5)return bg;A5=1;var e=ir(),r=au();return bg=function(t){if(r){try{return e.process.getBuiltinModule(t)}catch{}try{return Function('return require("'+t+'")')()}catch{}}},bg}var _g,T5;function C_(){if(T5)return _g;T5=1;var e=ir(),r=Je(),t=yi(),a=gf(),o=e.structuredClone;return _g=!!o&&!r(function(){if(a==="DENO"&&t>92||a==="NODE"&&t>94||a==="BROWSER"&&t>97)return!1;var s=new ArrayBuffer(8),u=o(s,{transfer:[s]});return s.byteLength!==0||u.byteLength!==8}),_g}var Sg,R5;function hM(){if(R5)return Sg;R5=1;var e=ir(),r=dM(),t=C_(),a=e.structuredClone,o=e.ArrayBuffer,s=e.MessageChannel,u=!1,v,d,h,f;if(t)u=function(c){a(c,{transfer:[c]})};else if(o)try{s||(v=r("worker_threads"),v&&(s=v.MessageChannel)),s&&(d=new s,h=new o(2),f=function(c){d.port1.postMessage(null,[c])},h.byteLength===2&&(f(h),h.byteLength===0&&(u=f)))}catch{}return Sg=u,Sg}var wg,O5;function vM(){if(O5)return wg;O5=1;var e=ir(),r=er(),t=cf(),a=yf(),o=bl(),s=cM(),u=hM(),v=C_(),d=e.structuredClone,h=e.ArrayBuffer,f=e.DataView,c=Math.min,_=h.prototype,E=f.prototype,S=r(_.slice),w=t(_,"resizable","get"),T=t(_,"maxByteLength","get"),b=r(E.getInt8),I=r(E.setInt8);return wg=(v||u)&&function(m,p,y){var g=s(m),x=p===void 0?g:a(p),R=!w||!w(m),O;if(o(m),v&&(m=d(m,{transfer:[m]}),g===x&&(y||R)))return m;if(g>=x&&(!y||R))O=S(m,0,x);else{var j=y&&!R&&T?{maxByteLength:T(m)}:void 0;O=new h(x,j);for(var k=new f(m),N=new f(O),D=c(x,g),U=0;U<D;U++)I(N,U,b(k,U))}return v||u(m),O},wg}var k5;function Qz(){if(k5)return x5;k5=1;var e=ie(),r=vM();return r&&e({target:"ArrayBuffer",proto:!0},{transfer:function(){return r(this,arguments.length?arguments[0]:void 0,!0)}}),x5}var P5={},N5;function eZ(){if(N5)return P5;N5=1;var e=ie(),r=vM();return r&&e({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return r(this,arguments.length?arguments[0]:void 0,!1)}}),P5}var j5={},q5;function rZ(){if(q5)return j5;q5=1;var e=ie(),r=er(),t=Je(),a=t(function(){return new Date(16e11).getYear()!==120}),o=r(Date.prototype.getFullYear);return e({target:"Date",proto:!0,forced:a},{getYear:function(){return o(this)-1900}}),j5}var D5={},L5;function tZ(){if(L5)return D5;L5=1;var e=ie(),r=er(),t=Date,a=r(t.prototype.getTime);return e({target:"Date",stat:!0},{now:function(){return a(new t)}}),D5}var M5={},U5;function nZ(){if(U5)return M5;U5=1;var e=ie(),r=er(),t=Vt(),a=Date.prototype,o=r(a.getTime),s=r(a.setFullYear);return e({target:"Date",proto:!0},{setYear:function(v){o(this);var d=t(v),h=d>=0&&d<=99?d+1900:d;return s(this,h)}}),M5}var F5={},B5;function aZ(){if(B5)return F5;B5=1;var e=ie();return e({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString}),F5}var $5={},Eg,z5;function _f(){if(z5)return Eg;z5=1;var e=Vt(),r=zr(),t=Nt(),a=RangeError;return Eg=function(s){var u=r(t(this)),v="",d=e(s);if(d<0||d===1/0)throw new a("Wrong number of repetitions");for(;d>0;(d>>>=1)&&(u+=u))d&1&&(v+=u);return v},Eg}var Cg,Z5;function Sf(){if(Z5)return Cg;Z5=1;var e=er(),r=Sa(),t=zr(),a=_f(),o=Nt(),s=e(a),u=e("".slice),v=Math.ceil,d=function(h){return function(f,c,_){var E=t(o(f)),S=r(c),w=E.length,T=_===void 0?" ":t(_),b,I;return S<=w||T===""?E:(b=S-w,I=s(T,v(b/T.length)),I.length>b&&(I=u(I,0,b)),h?E+I:I+E)}};return Cg={start:d(!1),end:d(!0)},Cg}var xg,H5;function iZ(){if(H5)return xg;H5=1;var e=er(),r=Je(),t=Sf().start,a=RangeError,o=isFinite,s=Math.abs,u=Date.prototype,v=u.toISOString,d=e(u.getTime),h=e(u.getUTCDate),f=e(u.getUTCFullYear),c=e(u.getUTCHours),_=e(u.getUTCMilliseconds),E=e(u.getUTCMinutes),S=e(u.getUTCMonth),w=e(u.getUTCSeconds);return xg=r(function(){return v.call(new Date(-5e13-1))!=="0385-07-25T07:06:39.999Z"})||!r(function(){v.call(new Date(NaN))})?function(){if(!o(d(this)))throw new a("Invalid time value");var b=this,I=f(b),m=_(b),p=I<0?"-":I>9999?"+":"";return p+t(s(I),p?6:4,0)+"-"+t(S(b)+1,2,0)+"-"+t(h(b),2,0)+"T"+t(c(b),2,0)+":"+t(E(b),2,0)+":"+t(w(b),2,0)+"."+t(m,3,0)+"Z"}:v,xg}var V5;function oZ(){if(V5)return $5;V5=1;var e=ie(),r=iZ();return e({target:"Date",proto:!0,forced:Date.prototype.toISOString!==r},{toISOString:r}),$5}var G5={},W5;function sZ(){if(W5)return G5;W5=1;var e=ie(),r=Je(),t=lt(),a=af(),o=r(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function(){return 1}})!==1});return e({target:"Date",proto:!0,arity:1,forced:o},{toJSON:function(u){var v=t(this),d=a(v,"number");return typeof d=="number"&&!isFinite(d)?null:v.toISOString()}}),G5}var K5={},Ig,Y5;function uZ(){if(Y5)return Ig;Y5=1;var e=Ir(),r=PL(),t=TypeError;return Ig=function(a){if(e(this),a==="string"||a==="default")a="string";else if(a!=="number")throw new t("Incorrect hint");return r(this,a)},Ig}var J5;function lZ(){if(J5)return K5;J5=1;var e=Wr(),r=mt(),t=uZ(),a=Ur(),o=a("toPrimitive"),s=Date.prototype;return e(s,o)||r(s,o,t),K5}var X5={},Q5;function cZ(){if(Q5)return X5;Q5=1;var e=er(),r=mt(),t=Date.prototype,a="Invalid Date",o="toString",s=e(t[o]),u=e(t.getTime);return String(new Date(NaN))!==a&&r(t,o,function(){var d=u(this);return d===d?s(this):a}),X5}var eT={},Ag,rT;function pM(){if(rT)return Ag;rT=1;var e=Vr(),r=Er(),t=er(),a=Ea(),o=Ir(),s=Gr(),u=Bi(),v=Rn(),d=Ur(),h=d("asyncDispose"),f=d("dispose"),c=t([].push),_=function(S,w){if(w==="async-dispose"){var T=v(S,h);return T!==void 0||(T=v(S,f),T===void 0)?T:function(){var b=this,I=e("Promise");return new I(function(m){r(T,b),m(void 0)})}}return v(S,f)},E=function(S,w,T){return arguments.length<3&&!u(S)&&(T=s(_(o(S),w))),T===void 0?function(){}:a(T,S)};return Ag=function(S,w,T,b){var I;if(arguments.length<4){if(u(w)&&T==="sync-dispose")return;I=E(w,T)}else I=E(void 0,T,b);c(S.stack,I)},Ag}var tT;function fZ(){if(tT)return eT;tT=1;var e=ie(),r=Tr(),t=Vr(),a=Gr(),o=xa(),s=mt(),u=Hi(),v=Jt(),d=Ur(),h=Lt(),f=pM(),c=t("SuppressedError"),_=ReferenceError,E=d("dispose"),S=d("toStringTag"),w="DisposableStack",T=h.set,b=h.getterFor(w),I="sync-dispose",m="disposed",p="pending",y=function(R){var O=b(R);if(O.state===m)throw new _(w+" already disposed");return O},g=function(){T(o(this,x),{type:w,state:p,stack:[]}),r||(this.disposed=!1)},x=g.prototype;return u(x,{dispose:function(){var O=b(this);if(O.state!==m){O.state=m,r||(this.disposed=!0);for(var j=O.stack,k=j.length,N=!1,D;k;){var U=j[--k];j[k]=null;try{U()}catch(B){N?D=new c(B,D):(N=!0,D=B)}}if(O.stack=null,N)throw D}},use:function(O){return f(y(this),O,I),O},adopt:function(O,j){var k=y(this);return a(j),f(k,void 0,I,function(){j(O)}),O},defer:function(O){var j=y(this);a(O),f(j,void 0,I,O)},move:function(){var O=y(this),j=new g;return b(j).stack=O.stack,O.stack=[],O.state=m,r||(this.disposed=!0),j}}),r&&v(x,"disposed",{configurable:!0,get:function(){return b(this).state===m}}),s(x,E,x.dispose,{name:"dispose"}),s(x,S,w,{nonWritable:!0}),e({global:!0,constructor:!0},{DisposableStack:g}),eT}var nT={},aT;function dZ(){if(aT)return nT;aT=1;var e=ie(),r=er(),t=zr(),a=r("".charAt),o=r("".charCodeAt),s=r(/./.exec),u=r(1.1.toString),v=r("".toUpperCase),d=/[\w*+\-./@]/,h=function(f,c){for(var _=u(f,16);_.length<c;)_="0"+_;return _};return e({global:!0},{escape:function(c){for(var _=t(c),E="",S=_.length,w=0,T,b;w<S;)T=a(_,w++),s(d,T)?E+=T:(b=o(T,0),b<256?E+="%"+h(b,2):E+="%u"+v(h(b,4)));return E}}),nT}var iT={},Tg,oT;function gM(){if(oT)return Tg;oT=1;var e=er(),r=Gr(),t=Mr(),a=Wr(),o=Ba(),s=cl(),u=Function,v=e([].concat),d=e([].join),h={},f=function(c,_,E){if(!a(h,_)){for(var S=[],w=0;w<_;w++)S[w]="a["+w+"]";h[_]=u("C,a","return new C("+d(S,",")+")")}return h[_](c,E)};return Tg=s?u.bind:function(_){var E=r(this),S=E.prototype,w=o(arguments,1),T=function(){var I=v(w,o(arguments));return this instanceof T?f(E,I.length,I):E.apply(_,I)};return t(S)&&(T.prototype=S),T},Tg}var sT;function hZ(){if(sT)return iT;sT=1;var e=ie(),r=gM();return e({target:"Function",proto:!0,forced:Function.bind!==r},{bind:r}),iT}var uT={},lT;function vZ(){if(lT)return uT;lT=1;var e=Xr(),r=Mr(),t=Tt(),a=Jn(),o=Ur(),s=o_(),u=o("hasInstance"),v=Function.prototype;return u in v||t.f(v,u,{value:s(function(d){if(!e(this)||!r(d))return!1;var h=this.prototype;return r(h)?a(h,d):d instanceof this},u)}),uT}var cT={},fT;function pZ(){if(fT)return cT;fT=1;var e=Tr(),r=Qs().EXISTS,t=er(),a=Jt(),o=Function.prototype,s=t(o.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,v=t(u.exec),d="name";return e&&!r&&a(o,d,{configurable:!0,get:function(){try{return v(u,s(this))[1]}catch{return""}}}),cT}var dT={},hT;function gZ(){if(hT)return dT;hT=1;var e=ie(),r=ir();return e({global:!0,forced:r.globalThis!==r},{globalThis:r}),dT}var vT={},pT;function mZ(){if(pT)return vT;pT=1;var e=ie(),r=ir(),t=xa(),a=Ir(),o=Xr(),s=Xn(),u=Jt(),v=zi(),d=Je(),h=Wr(),f=Ur(),c=nu().IteratorPrototype,_=Tr(),E=ht(),S="constructor",w="Iterator",T=f("toStringTag"),b=TypeError,I=r[w],m=E||!o(I)||I.prototype!==c||!d(function(){I({})}),p=function(){if(t(this,c),s(this)===c)throw new b("Abstract class Iterator not directly constructable")},y=function(g,x){_?u(c,g,{configurable:!0,get:function(){return x},set:function(R){if(a(this),this===c)throw new b("You can't redefine this property");h(this,g)?this[g]=R:v(this,g,R)}}):c[g]=x};return h(c,T)||y(T,w),(m||!h(c,S)||c[S]===Object)&&y(S,p),p.prototype=c,e({global:!0,constructor:!0,forced:m},{Iterator:p}),vT}var gT={},mT;function yZ(){if(mT)return gT;mT=1;var e=Er(),r=mt(),t=Rn(),a=Wr(),o=Ur(),s=nu().IteratorPrototype,u=o("dispose");return a(s,u)||r(s,u,function(){var v=t(this,"return");v&&e(v,this)}),gT}var yT={},Rg,bT;function Zn(){return bT||(bT=1,Rg=function(e){return{iterator:e,next:e.next,done:!1}}),Rg}var Og,_T;function mM(){if(_T)return Og;_T=1;var e=RangeError;return Og=function(r){if(r===r)return r;throw new e("NaN is not allowed")},Og}var kg,ST;function x_(){if(ST)return kg;ST=1;var e=Vt(),r=RangeError;return kg=function(t){var a=e(t);if(a<0)throw new r("The argument can't be less than 0");return a},kg}var Pg,wT;function bZ(){if(wT)return Pg;wT=1;var e=jn();return Pg=function(r,t,a){for(var o=r.length-1;o>=0;o--)if(r[o]!==void 0)try{a=e(r[o].iterator,t,a)}catch(s){t="throw",a=s}if(t==="throw")throw a;return a},Pg}var Ng,ET;function ou(){if(ET)return Ng;ET=1;var e=Er(),r=Pn(),t=kn(),a=Hi(),o=Ur(),s=Lt(),u=Rn(),v=nu().IteratorPrototype,d=as(),h=jn(),f=bZ(),c=o("toStringTag"),_="IteratorHelper",E="WrapForValidIterator",S="normal",w="throw",T=s.set,b=function(p){var y=s.getterFor(p?E:_);return a(r(v),{next:function(){var x=y(this);if(p)return x.nextHandler();if(x.done)return d(void 0,!0);try{var R=x.nextHandler();return x.returnHandlerResult?R:d(R,x.done)}catch(O){throw x.done=!0,O}},return:function(){var g=y(this),x=g.iterator;if(g.done=!0,p){var R=u(x,"return");return R?e(R,x):d(void 0,!0)}if(g.inner)try{h(g.inner.iterator,S)}catch(O){return h(x,w,O)}if(g.openIters)try{f(g.openIters,S)}catch(O){return h(x,w,O)}return x&&h(x,S),d(void 0,!0)}})},I=b(!0),m=b(!1);return t(m,c,"Iterator Helper"),Ng=function(p,y,g){var x=function(O,j){j?(j.iterator=O.iterator,j.next=O.next):j=O,j.type=y?E:_,j.returnHandlerResult=!!g,j.nextHandler=p,j.counter=0,j.done=!1,T(this,j)};return x.prototype=y?I:m,x},Ng}var jg,CT;function wf(){return CT||(CT=1,jg=function(e,r){var t=typeof Iterator=="function"&&Iterator.prototype[e];if(t)try{t.call({next:null},r).next()}catch{return!0}}),jg}var qg,xT;function bi(){if(xT)return qg;xT=1;var e=ir();return qg=function(r,t){var a=e.Iterator,o=a&&a.prototype,s=o&&o[r],u=!1;if(s)try{s.call({next:function(){return{done:!0}},return:function(){u=!0}},-1)}catch(v){v instanceof t||(u=!1)}if(!u)return s},qg}var IT;function _Z(){if(IT)return yT;IT=1;var e=ie(),r=Er(),t=Ir(),a=Zn(),o=mM(),s=x_(),u=jn(),v=ou(),d=wf(),h=bi(),f=ht(),c=!f&&!d("drop",0),_=!f&&!c&&h("drop",RangeError),E=f||c||_,S=v(function(){for(var w=this.iterator,T=this.next,b,I;this.remaining;)if(this.remaining--,b=t(r(T,w)),I=this.done=!!b.done,I)return;if(b=t(r(T,w)),I=this.done=!!b.done,!I)return b.value});return e({target:"Iterator",proto:!0,real:!0,forced:E},{drop:function(T){t(this);var b;try{b=s(o(+T))}catch(I){u(this,"throw",I)}return _?r(_,this,b):new S(a(this),{remaining:b})}}),yT}var AT={},TT;function SZ(){if(TT)return AT;TT=1;var e=ie(),r=Er(),t=ln(),a=Gr(),o=Ir(),s=Zn(),u=jn(),v=bi(),d=v("every",TypeError);return e({target:"Iterator",proto:!0,real:!0,forced:d},{every:function(f){o(this);try{a(f)}catch(E){u(this,"throw",E)}if(d)return r(d,this,f);var c=s(this),_=0;return!t(c,function(E,S){if(!f(E,_++))return S()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}}),AT}var RT={},OT;function wZ(){if(OT)return RT;OT=1;var e=ie(),r=Er(),t=Gr(),a=Ir(),o=Zn(),s=ou(),u=m_(),v=ht(),d=jn(),h=wf(),f=bi(),c=!v&&!h("filter",function(){}),_=!v&&!c&&f("filter",TypeError),E=v||c||_,S=s(function(){for(var w=this.iterator,T=this.predicate,b=this.next,I,m,p;;){if(I=a(r(b,w)),m=this.done=!!I.done,m)return;if(p=I.value,u(w,T,[p,this.counter++],!0))return p}});return e({target:"Iterator",proto:!0,real:!0,forced:E},{filter:function(T){a(this);try{t(T)}catch(b){d(this,"throw",b)}return _?r(_,this,T):new S(o(this),{predicate:T})}}),RT}var kT={},PT;function EZ(){if(PT)return kT;PT=1;var e=ie(),r=Er(),t=ln(),a=Gr(),o=Ir(),s=Zn(),u=jn(),v=bi(),d=v("find",TypeError);return e({target:"Iterator",proto:!0,real:!0,forced:d},{find:function(f){o(this);try{a(f)}catch(E){u(this,"throw",E)}if(d)return r(d,this,f);var c=s(this),_=0;return t(c,function(E,S){if(f(E,_++))return S(E)},{IS_RECORD:!0,INTERRUPTED:!0}).result}}),kT}var NT={},Dg,jT;function yM(){if(jT)return Dg;jT=1;var e=Er(),r=Ir(),t=Zn(),a=ts();return Dg=function(o,s){(!s||typeof o!="string")&&r(o);var u=a(o);return t(r(u!==void 0?e(u,o):o))},Dg}var qT;function CZ(){if(qT)return NT;qT=1;var e=ie(),r=Er(),t=Gr(),a=Ir(),o=Zn(),s=yM(),u=ou(),v=jn(),d=ht(),h=wf(),f=bi(),c=!d&&!h("flatMap",function(){}),_=!d&&!c&&f("flatMap",TypeError),E=d||c||_,S=u(function(){for(var w=this.iterator,T=this.mapper,b,I;;){if(I=this.inner)try{if(b=a(r(I.next,I.iterator)),!b.done)return b.value;this.inner=null}catch(m){v(w,"throw",m)}if(b=a(r(this.next,w)),this.done=!!b.done)return;try{this.inner=s(T(b.value,this.counter++),!1)}catch(m){v(w,"throw",m)}}});return e({target:"Iterator",proto:!0,real:!0,forced:E},{flatMap:function(T){a(this);try{t(T)}catch(b){v(this,"throw",b)}return _?r(_,this,T):new S(o(this),{mapper:T,inner:null})}}),NT}var DT={},LT;function xZ(){if(LT)return DT;LT=1;var e=ie(),r=Er(),t=ln(),a=Gr(),o=Ir(),s=Zn(),u=jn(),v=bi(),d=v("forEach",TypeError);return e({target:"Iterator",proto:!0,real:!0,forced:d},{forEach:function(f){o(this);try{a(f)}catch(E){u(this,"throw",E)}if(d)return r(d,this,f);var c=s(this),_=0;t(c,function(E){f(E,_++)},{IS_RECORD:!0})}}),DT}var MT={},UT;function IZ(){if(UT)return MT;UT=1;var e=ie(),r=Er(),t=lt(),a=Jn(),o=nu().IteratorPrototype,s=ou(),u=yM(),v=ht(),d=v||(function(){try{Iterator.from({return:null}).return()}catch{return!0}})(),h=s(function(){return r(this.next,this.iterator)},!0);return e({target:"Iterator",stat:!0,forced:d},{from:function(c){var _=u(typeof c=="string"?t(c):c,!0);return a(o,_.iterator)?_.iterator:new h(_)}}),MT}var FT={},BT;function AZ(){if(BT)return FT;BT=1;var e=ie(),r=Er(),t=Gr(),a=Ir(),o=Zn(),s=ou(),u=m_(),v=jn(),d=wf(),h=bi(),f=ht(),c=!f&&!d("map",function(){}),_=!f&&!c&&h("map",TypeError),E=f||c||_,S=s(function(){var w=this.iterator,T=a(r(this.next,w)),b=this.done=!!T.done;if(!b)return u(w,this.mapper,[T.value,this.counter++],!0)});return e({target:"Iterator",proto:!0,real:!0,forced:E},{map:function(T){a(this);try{t(T)}catch(b){v(this,"throw",b)}return _?r(_,this,T):new S(o(this),{mapper:T})}}),FT}var $T={},zT;function TZ(){if(zT)return $T;zT=1;var e=ie(),r=ln(),t=Gr(),a=Ir(),o=Zn(),s=jn(),u=bi(),v=Ca(),d=Je(),h=TypeError,f=d(function(){[].keys().reduce(function(){},void 0)}),c=!f&&u("reduce",h);return e({target:"Iterator",proto:!0,real:!0,forced:f||c},{reduce:function(E){a(this);try{t(E)}catch(I){s(this,"throw",I)}var S=arguments.length<2,w=S?void 0:arguments[1];if(c)return v(c,this,S?[E]:[E,w]);var T=o(this),b=0;if(r(T,function(I){S?(S=!1,w=I):w=E(w,I,b),b++},{IS_RECORD:!0}),S)throw new h("Reduce of empty iterator with no initial value");return w}}),$T}var ZT={},HT;function RZ(){if(HT)return ZT;HT=1;var e=ie(),r=Er(),t=ln(),a=Gr(),o=Ir(),s=Zn(),u=jn(),v=bi(),d=v("some",TypeError);return e({target:"Iterator",proto:!0,real:!0,forced:d},{some:function(f){o(this);try{a(f)}catch(E){u(this,"throw",E)}if(d)return r(d,this,f);var c=s(this),_=0;return t(c,function(E,S){if(f(E,_++))return S()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}}),ZT}var VT={},GT;function OZ(){if(GT)return VT;GT=1;var e=ie(),r=Er(),t=Ir(),a=Zn(),o=mM(),s=x_(),u=ou(),v=jn(),d=bi(),h=ht(),f=!h&&d("take",RangeError),c=u(function(){var _=this.iterator;if(!this.remaining--)return this.done=!0,v(_,"normal",void 0);var E=t(r(this.next,_)),S=this.done=!!E.done;if(!S)return E.value});return e({target:"Iterator",proto:!0,real:!0,forced:h||f},{take:function(E){t(this);var S;try{S=s(o(+E))}catch(w){v(this,"throw",w)}return f?r(f,this,S):new c(a(this),{remaining:S})}}),VT}var WT={},KT;function kZ(){if(KT)return WT;KT=1;var e=ie(),r=Ir(),t=ln(),a=Zn(),o=[].push;return e({target:"Iterator",proto:!0,real:!0},{toArray:function(){var u=[];return t(a(r(this)),o,{that:u,IS_RECORD:!0}),u}}),WT}var YT={},JT;function PZ(){if(JT)return YT;JT=1;var e=ir(),r=fa();return r(e.JSON,"JSON",!0),YT}var XT={},QT={},Lg={exports:{}},Mg,eR;function I_(){if(eR)return Mg;eR=1;var e=Je();return Mg=e(function(){if(typeof ArrayBuffer=="function"){var r=new ArrayBuffer(8);Object.isExtensible(r)&&Object.defineProperty(r,"a",{value:8})}}),Mg}var Ug,rR;function A_(){if(rR)return Ug;rR=1;var e=Je(),r=Mr(),t=$n(),a=I_(),o=Object.isExtensible,s=e(function(){});return Ug=s||a?function(v){return!r(v)||a&&t(v)==="ArrayBuffer"?!1:o?o(v):!0}:o,Ug}var Fg,tR;function su(){if(tR)return Fg;tR=1;var e=Je();return Fg=!e(function(){return Object.isExtensible(Object.preventExtensions({}))}),Fg}var nR;function is(){if(nR)return Lg.exports;nR=1;var e=ie(),r=er(),t=fl(),a=Mr(),o=Wr(),s=Tt().f,u=Xo(),v=f_(),d=A_(),h=Xs(),f=su(),c=!1,_=h("meta"),E=0,S=function(p){s(p,_,{value:{objectID:"O"+E++,weakData:{}}})},w=function(p,y){if(!a(p))return typeof p=="symbol"?p:(typeof p=="string"?"S":"P")+p;if(!o(p,_)){if(!d(p))return"F";if(!y)return"E";S(p)}return p[_].objectID},T=function(p,y){if(!o(p,_)){if(!d(p))return!0;if(!y)return!1;S(p)}return p[_].weakData},b=function(p){return f&&c&&d(p)&&!o(p,_)&&S(p),p},I=function(){m.enable=function(){},c=!0;var p=u.f,y=r([].splice),g={};g[_]=1,p(g).length&&(u.f=function(x){for(var R=p(x),O=0,j=R.length;O<j;O++)if(R[O]===_){y(R,O,1);break}return R},e({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:v.f}))},m=Lg.exports={enable:I,fastKey:w,getWeakData:T,onFreeze:b};return t[_]=!0,Lg.exports}var Bg,aR;function Ef(){if(aR)return Bg;aR=1;var e=ie(),r=ir(),t=er(),a=hl(),o=mt(),s=is(),u=ln(),v=xa(),d=Xr(),h=Bi(),f=Mr(),c=Je(),_=hf(),E=fa(),S=rs();return Bg=function(w,T,b){var I=w.indexOf("Map")!==-1,m=w.indexOf("Weak")!==-1,p=I?"set":"add",y=r[w],g=y&&y.prototype,x=y,R={},O=function(H){var G=t(g[H]);o(g,H,H==="add"?function(M){return G(this,M===0?0:M),this}:H==="delete"?function($){return m&&!f($)?!1:G(this,$===0?0:$)}:H==="get"?function(M){return m&&!f(M)?void 0:G(this,M===0?0:M)}:H==="has"?function(M){return m&&!f(M)?!1:G(this,M===0?0:M)}:function(M,L){return G(this,M===0?0:M,L),this})},j=a(w,!d(y)||!(m||g.forEach&&!c(function(){new y().entries().next()})));if(j)x=b.getConstructor(T,w,I,p),s.enable();else if(a(w,!0)){var k=new x,N=k[p](m?{}:-0,1)!==k,D=c(function(){k.has(1)}),U=_(function(H){new y(H)}),B=!m&&c(function(){for(var H=new y,G=5;G--;)H[p](G,G);return!H.has(-0)});U||(x=T(function(H,G){v(H,g);var $=S(new y,H,x);return h(G)||u(G,$[p],{that:$,AS_ENTRIES:I}),$}),x.prototype=g,g.constructor=x),(D||B)&&(O("delete"),O("has"),I&&O("get")),(B||N)&&O(p),m&&g.clear&&delete g.clear}return R[w]=x,e({global:!0,constructor:!0,forced:x!==y},R),E(x,w),m||b.setStrong(x,w,I),x},Bg}var $g,iR;function bM(){if(iR)return $g;iR=1;var e=Pn(),r=Jt(),t=Hi(),a=Ea(),o=xa(),s=Bi(),u=ln(),v=b_(),d=as(),h=iu(),f=Tr(),c=is().fastKey,_=Lt(),E=_.set,S=_.getterFor;return $g={getConstructor:function(w,T,b,I){var m=w(function(R,O){o(R,p),E(R,{type:T,index:e(null),first:null,last:null,size:0}),f||(R.size=0),s(O)||u(O,R[I],{that:R,AS_ENTRIES:b})}),p=m.prototype,y=S(T),g=function(R,O,j){var k=y(R),N=x(R,O),D,U;return N?N.value=j:(k.last=N={index:U=c(O,!0),key:O,value:j,previous:D=k.last,next:null,removed:!1},k.first||(k.first=N),D&&(D.next=N),f?k.size++:R.size++,U!=="F"&&(k.index[U]=N)),R},x=function(R,O){var j=y(R),k=c(O),N;if(k!=="F")return j.index[k];for(N=j.first;N;N=N.next)if(N.key===O)return N};return t(p,{clear:function(){for(var O=this,j=y(O),k=j.first;k;)k.removed=!0,k.previous&&(k.previous=k.previous.next=null),k=k.next;j.first=j.last=null,j.index=e(null),f?j.size=0:O.size=0},delete:function(R){var O=this,j=y(O),k=x(O,R);if(k){var N=k.next,D=k.previous;delete j.index[k.index],k.removed=!0,D&&(D.next=N),N&&(N.previous=D),j.first===k&&(j.first=N),j.last===k&&(j.last=D),f?j.size--:O.size--}return!!k},forEach:function(O){for(var j=y(this),k=a(O,arguments.length>1?arguments[1]:void 0),N;N=N?N.next:j.first;)for(k(N.value,N.key,this);N&&N.removed;)N=N.previous},has:function(O){return!!x(this,O)}}),t(p,b?{get:function(O){var j=x(this,O);return j&&j.value},set:function(O,j){return g(this,O===0?0:O,j)}}:{add:function(O){return g(this,O=O===0?0:O,O)}}),f&&r(p,"size",{configurable:!0,get:function(){return y(this).size}}),m},setStrong:function(w,T,b){var I=T+" Iterator",m=S(T),p=S(I);v(w,T,function(y,g){E(this,{type:I,target:y,state:m(y),kind:g,last:null})},function(){for(var y=p(this),g=y.kind,x=y.last;x&&x.removed;)x=x.previous;return!y.target||!(y.last=x=x?x.next:y.state.first)?(y.target=null,d(void 0,!0)):d(g==="keys"?x.key:g==="values"?x.value:[x.key,x.value],!1)},b?"entries":"values",!b,!0),h(T)}},$g}var oR;function NZ(){if(oR)return QT;oR=1;var e=Ef(),r=bM();return e("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},r),QT}var sR;function jZ(){return sR||(sR=1,NZ()),XT}var uR={},zg,lR;function _M(){if(lR)return zg;lR=1;var e=er(),r=Map.prototype;return zg={Map,set:e(r.set),get:e(r.get),has:e(r.has),remove:e(r.delete),proto:r},zg}var cR;function qZ(){if(cR)return uR;cR=1;var e=ie(),r=er(),t=Gr(),a=Nt(),o=ln(),s=_M(),u=ht(),v=Je(),d=s.Map,h=s.has,f=s.get,c=s.set,_=r([].push),E=u||v(function(){return d.groupBy("ab",function(S){return S}).get("a").length!==1});return e({target:"Map",stat:!0,forced:u||E},{groupBy:function(w,T){a(w),t(T);var b=new d,I=0;return o(w,function(m){var p=T(m,I++);h(b,p)?_(f(b,p),m):c(b,p,[m])}),b}}),uR}var fR={},Zg,dR;function SM(){if(dR)return Zg;dR=1;var e=Math.log;return Zg=Math.log1p||function(t){var a=+t;return a>-1e-8&&a<1e-8?a-a*a/2:e(1+a)},Zg}var hR;function DZ(){if(hR)return fR;hR=1;var e=ie(),r=SM(),t=Math.acosh,a=Math.log,o=Math.sqrt,s=Math.LN2,u=!t||Math.floor(t(Number.MAX_VALUE))!==710||t(1/0)!==1/0;return e({target:"Math",stat:!0,forced:u},{acosh:function(d){var h=+d;return h<1?NaN:h>9490626562425156e-8?a(h)+s:r(h-1+o(h-1)*o(h+1))}}),fR}var vR={},pR;function LZ(){if(pR)return vR;pR=1;var e=ie(),r=Math.asinh,t=Math.log,a=Math.sqrt;function o(u){var v=+u;return!isFinite(v)||v===0?v:v<0?-o(-v):t(v+a(v*v+1))}var s=!(r&&1/r(0)>0);return e({target:"Math",stat:!0,forced:s},{asinh:o}),vR}var gR={},mR;function MZ(){if(mR)return gR;mR=1;var e=ie(),r=Math.atanh,t=Math.log,a=!(r&&1/r(-0)<0);return e({target:"Math",stat:!0,forced:a},{atanh:function(s){var u=+s;return u===0?u:t((1+u)/(1-u))/2}}),gR}var yR={},bR;function UZ(){if(bR)return yR;bR=1;var e=ie(),r=E_(),t=Math.abs,a=Math.pow;return e({target:"Math",stat:!0},{cbrt:function(s){var u=+s;return r(u)*a(t(u),1/3)}}),yR}var _R={},SR;function FZ(){if(SR)return _R;SR=1;var e=ie(),r=Math.floor,t=Math.log,a=Math.LOG2E;return e({target:"Math",stat:!0},{clz32:function(s){var u=s>>>0;return u?31-r(t(u+.5)*a):32}}),_R}var wR={},Hg,ER;function Cf(){if(ER)return Hg;ER=1;var e=Math.expm1,r=Math.exp;return Hg=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||e(-2e-17)!==-2e-17?function(a){var o=+a;return o===0?o:o>-1e-6&&o<1e-6?o+o*o/2:r(o)-1}:e,Hg}var CR;function BZ(){if(CR)return wR;CR=1;var e=ie(),r=Cf(),t=Math.cosh,a=Math.abs,o=Math.E,s=!t||t(710)===1/0;return e({target:"Math",stat:!0,forced:s},{cosh:function(v){var d=r(a(v)-1)+1;return(d+1/(d*o*o))*(o/2)}}),wR}var xR={},IR;function $Z(){if(IR)return xR;IR=1;var e=ie(),r=Cf();return e({target:"Math",stat:!0,forced:r!==Math.expm1},{expm1:r}),xR}var AR={},TR;function zZ(){if(TR)return AR;TR=1;var e=ie(),r=uM();return e({target:"Math",stat:!0},{fround:r}),AR}var RR={},OR;function ZZ(){if(OR)return RR;OR=1;var e=ie(),r=sM(),t=.0009765625,a=65504,o=6103515625e-14;return e({target:"Math",stat:!0},{f16round:function(u){return r(u,t,a,o)}}),RR}var kR={},PR;function HZ(){if(PR)return kR;PR=1;var e=ie(),r=Math.hypot,t=Math.abs,a=Math.sqrt,o=!!r&&r(1/0,NaN)!==1/0;return e({target:"Math",stat:!0,arity:2,forced:o},{hypot:function(u,v){for(var d=0,h=0,f=arguments.length,c=0,_,E;h<f;)_=t(arguments[h++]),c<_?(E=c/_,d=d*E*E+1,c=_):_>0?(E=_/c,d+=E*E):d+=_;return c===1/0?1/0:c*a(d)}}),kR}var NR={},jR;function VZ(){if(jR)return NR;jR=1;var e=ie(),r=Je(),t=Math.imul,a=r(function(){return t(4294967295,5)!==-5||t.length!==2});return e({target:"Math",stat:!0,forced:a},{imul:function(s,u){var v=65535,d=+s,h=+u,f=v&d,c=v&h;return 0|f*c+((v&d>>>16)*c+f*(v&h>>>16)<<16>>>0)}}),NR}var qR={},Vg,DR;function wM(){if(DR)return Vg;DR=1;var e=Math.log,r=Math.LOG10E;return Vg=Math.log10||function(a){return e(a)*r},Vg}var LR;function GZ(){if(LR)return qR;LR=1;var e=ie(),r=wM();return e({target:"Math",stat:!0},{log10:r}),qR}var MR={},UR;function WZ(){if(UR)return MR;UR=1;var e=ie(),r=SM();return e({target:"Math",stat:!0},{log1p:r}),MR}var FR={},BR;function KZ(){if(BR)return FR;BR=1;var e=ie(),r=lM();return e({target:"Math",stat:!0},{log2:r}),FR}var $R={},zR;function YZ(){if(zR)return $R;zR=1;var e=ie(),r=E_();return e({target:"Math",stat:!0},{sign:r}),$R}var ZR={},HR;function JZ(){if(HR)return ZR;HR=1;var e=ie(),r=Je(),t=Cf(),a=Math.abs,o=Math.exp,s=Math.E,u=r(function(){return Math.sinh(-2e-17)!==-2e-17});return e({target:"Math",stat:!0,forced:u},{sinh:function(d){var h=+d;return a(h)<1?(t(h)-t(-h))/2:(o(h-1)-o(-h-1))*(s/2)}}),ZR}var VR={},GR;function XZ(){if(GR)return VR;GR=1;var e=ie(),r=er(),t=ln(),a=RangeError,o=TypeError,s=1/0,u=NaN,v=Math.abs,d=Math.pow,h=r([].push),f=d(2,1023),c=d(2,53)-1,_=Number.MAX_VALUE,E=d(2,971),S={},w={},T={},b={},I={},m=function(p,y){var g=p+y,x=y-(g-p);return{hi:g,lo:x}};return e({target:"Math",stat:!0},{sumPrecise:function(y){var g=[],x=0,R=b;switch(t(y,function(ae){if(++x>=c)throw new a("Maximum allowed index exceeded");if(typeof ae!="number")throw new o("Value is not a number");R!==S&&(ae!==ae?R=S:ae===s?R=R===w?S:T:ae===-s?R=R===T?S:w:(ae!==0||1/ae===s)&&(R===b||R===I)&&(R=I,h(g,ae)))}),R){case S:return u;case w:return-s;case T:return s;case b:return-0}for(var O=[],j=0,k,N,D,U,B,H,G=0;G<g.length;G++){k=g[G];for(var $=0,M=0;M<O.length;M++){if(N=O[M],v(k)<v(N)&&(H=k,k=N,N=H),D=m(k,N),U=D.hi,B=D.lo,v(U)===s){var L=U===s?1:-1;j+=L,k=k-L*f-L*f,v(k)<v(N)&&(H=k,k=N,N=H),D=m(k,N),U=D.hi,B=D.lo}B!==0&&(O[$++]=B),k=U}O.length=$,k!==0&&h(O,k)}var F=O.length-1;if(U=0,B=0,j!==0){var V=F>=0?O[F]:0;if(F--,v(j)>1||j>0&&V>0||j<0&&V<0)return j>0?s:-s;if(D=m(j*f,V/2),U=D.hi,B=D.lo,B*=2,v(2*U)===s)return U>0?U===f&&B===-(E/2)&&F>=0&&O[F]<0?_:s:U===-f&&B===E/2&&F>=0&&O[F]>0?-_:-s;B!==0&&(O[++F]=B,B=0),U*=2}for(;F>=0&&(D=m(U,O[F--]),U=D.hi,B=D.lo,B===0););return F>=0&&(B<0&&O[F]<0||B>0&&O[F]>0)&&(N=B*2,k=U+N,N===k-U&&(U=k)),U}}),VR}var WR={},KR;function QZ(){if(KR)return WR;KR=1;var e=ie(),r=Cf(),t=Math.exp;return e({target:"Math",stat:!0},{tanh:function(o){var s=+o,u=r(s),v=r(-s);return u===1/0?1:v===1/0?-1:(u-v)/(t(s)+t(-s))}}),WR}var YR={},JR;function eH(){if(JR)return YR;JR=1;var e=fa();return e(Math,"Math",!0),YR}var XR={},QR;function rH(){if(QR)return XR;QR=1;var e=ie(),r=DL();return e({target:"Math",stat:!0},{trunc:r}),XR}var e4={},Gg,r4;function xf(){if(r4)return Gg;r4=1;var e=er();return Gg=e(1.1.valueOf),Gg}var Wg,t4;function _l(){return t4||(t4=1,Wg=`
|
|
2
|
+
\v\f\r \u2028\u2029\uFEFF`),Wg}var Kg,n4;function uu(){if(n4)return Kg;n4=1;var e=er(),r=Nt(),t=zr(),a=_l(),o=e("".replace),s=RegExp("^["+a+"]+"),u=RegExp("(^|[^"+a+"])["+a+"]+$"),v=function(d){return function(h){var f=t(r(h));return d&1&&(f=o(f,s,"")),d&2&&(f=o(f,u,"$1")),f}};return Kg={start:v(1),end:v(2),trim:v(3)},Kg}var a4;function tH(){if(a4)return e4;a4=1;var e=ie(),r=ht(),t=Tr(),a=ir(),o=lf(),s=er(),u=hl(),v=Wr(),d=rs(),h=Jn(),f=Yo(),c=af(),_=Je(),E=Xo().f,S=On().f,w=Tt().f,T=xf(),b=uu().trim,I="Number",m=a[I],p=o[I],y=m.prototype,g=a.TypeError,x=s("".slice),R=s("".charCodeAt),O=function(B){var H=c(B,"number");return typeof H=="bigint"?H:j(H)},j=function(B){var H=c(B,"number"),G,$,M,L,F,V,ae,oe;if(f(H))throw new g("Cannot convert a Symbol value to a number");if(typeof H=="string"&&H.length>2){if(H=b(H),G=R(H,0),G===43||G===45){if($=R(H,2),$===88||$===120)return NaN}else if(G===48){switch(R(H,1)){case 66:case 98:M=2,L=49;break;case 79:case 111:M=8,L=55;break;default:return+H}for(F=x(H,2),V=F.length,ae=0;ae<V;ae++)if(oe=R(F,ae),oe<48||oe>L)return NaN;return parseInt(F,M)}}return+H},k=u(I,!m(" 0o1")||!m("0b1")||m("+0x1")),N=function(B){return h(y,B)&&_(function(){T(B)})},D=function(H){var G=arguments.length<1?0:m(O(H));return N(this)?d(Object(G),this,D):G};D.prototype=y,k&&!r&&(y.constructor=D),e({global:!0,constructor:!0,wrap:!0,forced:k},{Number:D});var U=function(B,H){for(var G=t?E(H):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),$=0,M;G.length>$;$++)v(H,M=G[$])&&!v(B,M)&&w(B,M,S(H,M))};return r&&p&&U(o[I],p),(k||r)&&U(o[I],m),e4}var i4={},o4;function nH(){if(o4)return i4;o4=1;var e=ie();return e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)}),i4}var s4={},Yg,u4;function aH(){if(u4)return Yg;u4=1;var e=ir(),r=e.isFinite;return Yg=Number.isFinite||function(a){return typeof a=="number"&&r(a)},Yg}var l4;function iH(){if(l4)return s4;l4=1;var e=ie(),r=aH();return e({target:"Number",stat:!0},{isFinite:r}),s4}var c4={},Jg,f4;function T_(){if(f4)return Jg;f4=1;var e=Mr(),r=Math.floor;return Jg=Number.isInteger||function(a){return!e(a)&&isFinite(a)&&r(a)===a},Jg}var d4;function oH(){if(d4)return c4;d4=1;var e=ie(),r=T_();return e({target:"Number",stat:!0},{isInteger:r}),c4}var h4={},v4;function sH(){if(v4)return h4;v4=1;var e=ie();return e({target:"Number",stat:!0},{isNaN:function(t){return t!==t}}),h4}var p4={},g4;function uH(){if(g4)return p4;g4=1;var e=ie(),r=T_(),t=Math.abs;return e({target:"Number",stat:!0},{isSafeInteger:function(o){return r(o)&&t(o)<=9007199254740991}}),p4}var m4={},y4;function lH(){if(y4)return m4;y4=1;var e=ie();return e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991}),m4}var b4={},_4;function cH(){if(_4)return b4;_4=1;var e=ie();return e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991}),b4}var S4={},Xg,w4;function EM(){if(w4)return Xg;w4=1;var e=ir(),r=Je(),t=er(),a=zr(),o=uu().trim,s=_l(),u=t("".charAt),v=e.parseFloat,d=e.Symbol,h=d&&d.iterator,f=1/v(s+"-0")!==-1/0||h&&!r(function(){v(Object(h))});return Xg=f?function(_){var E=o(a(_)),S=v(E);return S===0&&u(E,0)==="-"?-0:S}:v,Xg}var E4;function fH(){if(E4)return S4;E4=1;var e=ie(),r=EM();return e({target:"Number",stat:!0,forced:Number.parseFloat!==r},{parseFloat:r}),S4}var C4={},Qg,x4;function CM(){if(x4)return Qg;x4=1;var e=ir(),r=Je(),t=er(),a=zr(),o=uu().trim,s=_l(),u=e.parseInt,v=e.Symbol,d=v&&v.iterator,h=/^[+-]?0x/i,f=t(h.exec),c=u(s+"08")!==8||u(s+"0x16")!==22||d&&!r(function(){u(Object(d))});return Qg=c?function(E,S){var w=o(a(E));return u(w,S>>>0||(f(h,w)?16:10))}:u,Qg}var I4;function dH(){if(I4)return C4;I4=1;var e=ie(),r=CM();return e({target:"Number",stat:!0,forced:Number.parseInt!==r},{parseInt:r}),C4}var A4={},T4;function hH(){if(T4)return A4;T4=1;var e=ie(),r=er(),t=Vt(),a=xf(),o=_f(),s=wM(),u=Je(),v=RangeError,d=String,h=isFinite,f=Math.abs,c=Math.floor,_=Math.pow,E=Math.round,S=r(1.1.toExponential),w=r(o),T=r("".slice),b=S(-69e-12,4)==="-6.9000e-11"&&S(1.255,2)==="1.25e+0"&&S(12345,3)==="1.235e+4"&&S(25,0)==="3e+1",I=function(){return u(function(){S(1,1/0)})&&u(function(){S(1,-1/0)})},m=function(){return!u(function(){S(1/0,1/0),S(NaN,1/0)})},p=!b||!I()||!m();return e({target:"Number",proto:!0,forced:p},{toExponential:function(g){var x=a(this);if(g===void 0)return S(x);var R=t(g);if(!h(x))return String(x);if(R<0||R>20)throw new v("Incorrect fraction digits");if(b)return S(x,R);var O="",j,k,N,D;if(x<0&&(O="-",x=-x),x===0)k=0,j=w("0",R+1);else{var U=s(x);k=c(U);var B=_(10,k-R),H=E(x/B);2*x>=(2*H+1)*B&&(H+=1),H>=_(10,R+1)&&(H/=10,k+=1),j=d(H)}return R!==0&&(j=T(j,0,1)+"."+T(j,1)),k===0?(N="+",D="0"):(N=k>0?"+":"-",D=d(f(k))),j+="e"+N+D,O+j}}),A4}var R4={},O4;function vH(){if(O4)return R4;O4=1;var e=ie(),r=er(),t=Vt(),a=xf(),o=_f(),s=Je(),u=RangeError,v=String,d=Math.floor,h=r(o),f=r("".slice),c=r(1.1.toFixed),_=function(I,m,p){return m===0?p:m%2===1?_(I,m-1,p*I):_(I*I,m/2,p)},E=function(I){for(var m=0,p=I;p>=4096;)m+=12,p/=4096;for(;p>=2;)m+=1,p/=2;return m},S=function(I,m,p){for(var y=-1,g=p;++y<6;)g+=m*I[y],I[y]=g%1e7,g=d(g/1e7)},w=function(I,m){for(var p=6,y=0;--p>=0;)y+=I[p],I[p]=d(y/m),y=y%m*1e7},T=function(I){for(var m=6,p="";--m>=0;)if(p!==""||m===0||I[m]!==0){var y=v(I[m]);p=p===""?y:p+h("0",7-y.length)+y}return p},b=s(function(){return c(8e-5,3)!=="0.000"||c(.9,0)!=="1"||c(1.255,2)!=="1.25"||c(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!s(function(){c({})});return e({target:"Number",proto:!0,forced:b},{toFixed:function(m){var p=a(this),y=t(m),g=[0,0,0,0,0,0],x="",R="0",O,j,k,N;if(y<0||y>20)throw new u("Incorrect fraction digits");if(p!==p)return"NaN";if(p<=-1e21||p>=1e21)return v(p);if(p<0&&(x="-",p=-p),p>1e-21)if(O=E(p*_(2,69,1))-69,j=O<0?p*_(2,-O,1):p/_(2,O,1),j*=4503599627370496,O=52-O,O>0){for(S(g,0,j),k=y;k>=7;)S(g,1e7,0),k-=7;for(S(g,_(10,k,1),0),k=O-1;k>=23;)w(g,1<<23),k-=23;w(g,1<<k),S(g,1,1),w(g,2),R=T(g)}else S(g,0,j),S(g,1<<-O,0),R=T(g)+h("0",y);return y>0?(N=R.length,R=x+(N<=y?"0."+h("0",y-N)+R:f(R,0,N-y)+"."+f(R,N-y))):R=x+R,R}}),R4}var k4={},P4;function pH(){if(P4)return k4;P4=1;var e=ie(),r=er(),t=Je(),a=xf(),o=r(1.1.toPrecision),s=t(function(){return o(1,void 0)!=="1"})||!t(function(){o({})});return e({target:"Number",proto:!0,forced:s},{toPrecision:function(v){return v===void 0?o(a(this)):o(a(this),v)}}),k4}var N4={},em,j4;function xM(){if(j4)return em;j4=1;var e=Tr(),r=er(),t=Er(),a=Je(),o=vl(),s=uf(),u=tf(),v=lt(),d=Ks(),h=Object.assign,f=Object.defineProperty,c=r([].concat);return em=!h||a(function(){if(e&&h({b:1},h(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var _={},E={},S=Symbol("assign detection"),w="abcdefghijklmnopqrst";return _[S]=7,w.split("").forEach(function(T){E[T]=T}),h({},_)[S]!==7||o(h({},E)).join("")!==w})?function(E,S){for(var w=v(E),T=arguments.length,b=1,I=s.f,m=u.f;T>b;)for(var p=d(arguments[b++]),y=I?c(o(p),I(p)):o(p),g=y.length,x=0,R;g>x;)R=y[x++],(!e||t(m,p,R))&&(w[R]=p[R]);return w}:h,em}var q4;function gH(){if(q4)return N4;q4=1;var e=ie(),r=xM();return e({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r}),N4}var D4={},L4;function mH(){if(L4)return D4;L4=1;var e=ie(),r=Tr(),t=Pn();return e({target:"Object",stat:!0,sham:!r},{create:t}),D4}var M4={},rm,U4;function If(){if(U4)return rm;U4=1;var e=ht(),r=ir(),t=Je(),a=w_();return rm=e||!t(function(){if(!(a&&a<535)){var o=Math.random();__defineSetter__.call(null,o,function(){}),delete r[o]}}),rm}var F4;function yH(){if(F4)return M4;F4=1;var e=ie(),r=Tr(),t=If(),a=Gr(),o=lt(),s=Tt();return r&&e({target:"Object",proto:!0,forced:t},{__defineGetter__:function(v,d){s.f(o(this),v,{get:a(d),enumerable:!0,configurable:!0})}}),M4}var B4={},$4;function bH(){if($4)return B4;$4=1;var e=ie(),r=Tr(),t=c_().f;return e({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!r},{defineProperties:t}),B4}var z4={},Z4;function _H(){if(Z4)return z4;Z4=1;var e=ie(),r=Tr(),t=Tt().f;return e({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!r},{defineProperty:t}),z4}var H4={},V4;function SH(){if(V4)return H4;V4=1;var e=ie(),r=Tr(),t=If(),a=Gr(),o=lt(),s=Tt();return r&&e({target:"Object",proto:!0,forced:t},{__defineSetter__:function(v,d){s.f(o(this),v,{set:a(d),enumerable:!0,configurable:!0})}}),H4}var G4={},tm,W4;function IM(){if(W4)return tm;W4=1;var e=Tr(),r=Je(),t=er(),a=Xn(),o=vl(),s=mn(),u=tf().f,v=t(u),d=t([].push),h=e&&r(function(){var c=Object.create(null);return c[2]=2,!v(c,2)}),f=function(c){return function(_){for(var E=s(_),S=o(E),w=h&&a(E)===null,T=S.length,b=0,I=[],m;T>b;)m=S[b++],(!e||(w?m in E:v(E,m)))&&d(I,c?[m,E[m]]:E[m]);return I}};return tm={entries:f(!0),values:f(!1)},tm}var K4;function wH(){if(K4)return G4;K4=1;var e=ie(),r=IM().entries;return e({target:"Object",stat:!0},{entries:function(a){return r(a)}}),G4}var Y4={},J4;function EH(){if(J4)return Y4;J4=1;var e=ie(),r=su(),t=Je(),a=Mr(),o=is().onFreeze,s=Object.freeze,u=t(function(){s(1)});return e({target:"Object",stat:!0,forced:u,sham:!r},{freeze:function(d){return s&&a(d)?s(o(d)):d}}),Y4}var X4={},Q4;function CH(){if(Q4)return X4;Q4=1;var e=ie(),r=ln(),t=zi();return e({target:"Object",stat:!0},{fromEntries:function(o){var s={};return r(o,function(u,v){t(s,u,v)},{AS_ENTRIES:!0}),s}}),X4}var eO={},rO;function xH(){if(rO)return eO;rO=1;var e=ie(),r=Je(),t=mn(),a=On().f,o=Tr(),s=!o||r(function(){a(1)});return e({target:"Object",stat:!0,forced:s,sham:!o},{getOwnPropertyDescriptor:function(v,d){return a(t(v),d)}}),eO}var tO={},nO;function IH(){if(nO)return tO;nO=1;var e=ie(),r=Tr(),t=u_(),a=mn(),o=On(),s=zi();return e({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(v){for(var d=a(v),h=o.f,f=t(d),c={},_=0,E,S;f.length>_;)S=h(d,E=f[_++]),S!==void 0&&s(c,E,S);return c}}),tO}var aO={},iO;function AH(){if(iO)return aO;iO=1;var e=ie(),r=Je(),t=f_().f,a=r(function(){return!Object.getOwnPropertyNames(1)});return e({target:"Object",stat:!0,forced:a},{getOwnPropertyNames:t}),aO}var oO={},sO;function TH(){if(sO)return oO;sO=1;var e=ie(),r=Je(),t=lt(),a=Xn(),o=v_(),s=r(function(){a(1)});return e({target:"Object",stat:!0,forced:s,sham:!o},{getPrototypeOf:function(v){return a(t(v))}}),oO}var uO={},lO;function RH(){if(lO)return uO;lO=1;var e=ie(),r=Vr(),t=er(),a=Gr(),o=Nt(),s=So(),u=ln(),v=Je(),d=Object.groupBy,h=r("Object","create"),f=t([].push),c=!d||v(function(){return d("ab",function(_){return _}).a.length!==1});return e({target:"Object",stat:!0,forced:c},{groupBy:function(E,S){o(E),a(S);var w=h(null),T=0;return u(E,function(b){var I=s(S(b,T++));I in w?f(w[I],b):w[I]=[b]}),w}}),uO}var cO={},fO;function OH(){if(fO)return cO;fO=1;var e=ie(),r=Wr();return e({target:"Object",stat:!0},{hasOwn:r}),cO}var dO={},nm,hO;function AM(){return hO||(hO=1,nm=Object.is||function(r,t){return r===t?r!==0||1/r===1/t:r!==r&&t!==t}),nm}var vO;function kH(){if(vO)return dO;vO=1;var e=ie(),r=AM();return e({target:"Object",stat:!0},{is:r}),dO}var pO={},gO;function PH(){if(gO)return pO;gO=1;var e=ie(),r=A_();return e({target:"Object",stat:!0,forced:Object.isExtensible!==r},{isExtensible:r}),pO}var mO={},yO;function NH(){if(yO)return mO;yO=1;var e=ie(),r=Je(),t=Mr(),a=$n(),o=I_(),s=Object.isFrozen,u=o||r(function(){});return e({target:"Object",stat:!0,forced:u},{isFrozen:function(d){return!t(d)||o&&a(d)==="ArrayBuffer"?!0:s?s(d):!1}}),mO}var bO={},_O;function jH(){if(_O)return bO;_O=1;var e=ie(),r=Je(),t=Mr(),a=$n(),o=I_(),s=Object.isSealed,u=o||r(function(){});return e({target:"Object",stat:!0,forced:u},{isSealed:function(d){return!t(d)||o&&a(d)==="ArrayBuffer"?!0:s?s(d):!1}}),bO}var SO={},wO;function qH(){if(wO)return SO;wO=1;var e=ie(),r=lt(),t=vl(),a=Je(),o=a(function(){t(1)});return e({target:"Object",stat:!0,forced:o},{keys:function(u){return t(r(u))}}),SO}var EO={},CO;function DH(){if(CO)return EO;CO=1;var e=ie(),r=Tr(),t=If(),a=lt(),o=So(),s=Xn(),u=On().f;return r&&e({target:"Object",proto:!0,forced:t},{__lookupGetter__:function(d){var h=a(this),f=o(d),c;do if(c=u(h,f))return c.get;while(h=s(h))}}),EO}var xO={},IO;function LH(){if(IO)return xO;IO=1;var e=ie(),r=Tr(),t=If(),a=lt(),o=So(),s=Xn(),u=On().f;return r&&e({target:"Object",proto:!0,forced:t},{__lookupSetter__:function(d){var h=a(this),f=o(d),c;do if(c=u(h,f))return c.set;while(h=s(h))}}),xO}var AO={},TO;function MH(){if(TO)return AO;TO=1;var e=ie(),r=Mr(),t=is().onFreeze,a=su(),o=Je(),s=Object.preventExtensions,u=o(function(){s(1)});return e({target:"Object",stat:!0,forced:u,sham:!a},{preventExtensions:function(d){return s&&r(d)?s(t(d)):d}}),AO}var RO={},OO;function UH(){if(OO)return RO;OO=1;var e=Tr(),r=Jt(),t=Mr(),a=zL(),o=lt(),s=Nt(),u=Object.getPrototypeOf,v=Object.setPrototypeOf,d=Object.prototype,h="__proto__";if(e&&u&&v&&!(h in d))try{r(d,h,{configurable:!0,get:function(){return u(o(this))},set:function(c){var _=s(this);a(c)&&t(_)&&v(_,c)}})}catch{}return RO}var kO={},PO;function FH(){if(PO)return kO;PO=1;var e=ie(),r=Mr(),t=is().onFreeze,a=su(),o=Je(),s=Object.seal,u=o(function(){s(1)});return e({target:"Object",stat:!0,forced:u,sham:!a},{seal:function(d){return s&&r(d)?s(t(d)):d}}),kO}var NO={},jO;function BH(){if(jO)return NO;jO=1;var e=ie(),r=ni();return e({target:"Object",stat:!0},{setPrototypeOf:r}),NO}var qO={},am,DO;function $H(){if(DO)return am;DO=1;var e=l_(),r=wa();return am=e?{}.toString:function(){return"[object "+r(this)+"]"},am}var LO;function zH(){if(LO)return qO;LO=1;var e=l_(),r=mt(),t=$H();return e||r(Object.prototype,"toString",t,{unsafe:!0}),qO}var MO={},UO;function ZH(){if(UO)return MO;UO=1;var e=ie(),r=IM().values;return e({target:"Object",stat:!0},{values:function(a){return r(a)}}),MO}var FO={},BO;function HH(){if(BO)return FO;BO=1;var e=ie(),r=EM();return e({global:!0,forced:parseFloat!==r},{parseFloat:r}),FO}var $O={},zO;function VH(){if(zO)return $O;zO=1;var e=ie(),r=CM();return e({global:!0,forced:parseInt!==r},{parseInt:r}),$O}var ZO={},HO={},im,VO;function R_(){if(VO)return im;VO=1;var e=es(),r=Jo(),t=TypeError;return im=function(a){if(e(a))return a;throw new t(r(a)+" is not a constructor")},im}var om,GO;function Af(){if(GO)return om;GO=1;var e=Ir(),r=R_(),t=Bi(),a=Ur(),o=a("species");return om=function(s,u){var v=e(s).constructor,d;return v===void 0||t(d=e(v)[o])?u:r(d)},om}var sm,WO;function $a(){if(WO)return sm;WO=1;var e=TypeError;return sm=function(r,t){if(r<t)throw new e("Not enough arguments");return r},sm}var um,KO;function TM(){if(KO)return um;KO=1;var e=mi();return um=/(?:ipad|iphone|ipod).*applewebkit/i.test(e),um}var lm,YO;function Tf(){if(YO)return lm;YO=1;var e=ir(),r=Ca(),t=Ea(),a=Xr(),o=Wr(),s=Je(),u=ML(),v=Ba(),d=of(),h=$a(),f=TM(),c=au(),_=e.setImmediate,E=e.clearImmediate,S=e.process,w=e.Dispatch,T=e.Function,b=e.MessageChannel,I=e.String,m=0,p={},y="onreadystatechange",g,x,R,O;s(function(){g=e.location});var j=function(U){if(o(p,U)){var B=p[U];delete p[U],B()}},k=function(U){return function(){j(U)}},N=function(U){j(U.data)},D=function(U){e.postMessage(I(U),g.protocol+"//"+g.host)};return(!_||!E)&&(_=function(B){h(arguments.length,1);var H=a(B)?B:T(B),G=v(arguments,1);return p[++m]=function(){r(H,void 0,G)},x(m),m},E=function(B){delete p[B]},c?x=function(U){S.nextTick(k(U))}:w&&w.now?x=function(U){w.now(k(U))}:b&&!f?(R=new b,O=R.port2,R.port1.onmessage=N,x=t(O.postMessage,O)):e.addEventListener&&a(e.postMessage)&&!e.importScripts&&g&&g.protocol!=="file:"&&!s(D)?(x=D,e.addEventListener("message",N,!1)):y in d("script")?x=function(U){u.appendChild(d("script"))[y]=function(){u.removeChild(this),j(U)}}:x=function(U){setTimeout(k(U),0)}),lm={set:_,clear:E},lm}var cm,JO;function RM(){if(JO)return cm;JO=1;var e=ir(),r=Tr(),t=Object.getOwnPropertyDescriptor;return cm=function(a){if(!r)return e[a];var o=t(e,a);return o&&o.value},cm}var fm,XO;function OM(){if(XO)return fm;XO=1;var e=function(){this.head=null,this.tail=null};return e.prototype={add:function(r){var t={item:r,next:null},a=this.tail;a?a.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}}},fm=e,fm}var dm,QO;function GH(){if(QO)return dm;QO=1;var e=mi();return dm=/ipad|iphone|ipod/i.test(e)&&typeof Pebble<"u",dm}var hm,ek;function WH(){if(ek)return hm;ek=1;var e=mi();return hm=/web0s(?!.*chrome)/i.test(e),hm}var vm,rk;function kM(){if(rk)return vm;rk=1;var e=ir(),r=RM(),t=Ea(),a=Tf().set,o=OM(),s=TM(),u=GH(),v=WH(),d=au(),h=e.MutationObserver||e.WebKitMutationObserver,f=e.document,c=e.process,_=e.Promise,E=r("queueMicrotask"),S,w,T,b,I;if(!E){var m=new o,p=function(){var y,g;for(d&&(y=c.domain)&&y.exit();g=m.get();)try{g()}catch(x){throw m.head&&S(),x}y&&y.enter()};!s&&!d&&!v&&h&&f?(w=!0,T=f.createTextNode(""),new h(p).observe(T,{characterData:!0}),S=function(){T.data=w=!w}):!u&&_&&_.resolve?(b=_.resolve(void 0),b.constructor=_,I=t(b.then,b),S=function(){I(p)}):d?S=function(){c.nextTick(p)}:(a=t(a,e),S=function(){a(p)}),E=function(y){m.head||S(),m.add(y)}}return vm=E,vm}var pm,tk;function KH(){return tk||(tk=1,pm=function(e,r){try{arguments.length===1?console.error(e):console.error(e,r)}catch{}}),pm}var gm,nk;function lu(){return nk||(nk=1,gm=function(e){try{return{error:!1,value:e()}}catch(r){return{error:!0,value:r}}}),gm}var mm,ak;function cu(){if(ak)return mm;ak=1;var e=ir();return mm=e.Promise,mm}var ym,ik;function Sl(){if(ik)return ym;ik=1;var e=ir(),r=cu(),t=Xr(),a=hl(),o=i_(),s=Ur(),u=gf(),v=ht(),d=yi(),h=r&&r.prototype,f=s("species"),c=!1,_=t(e.PromiseRejectionEvent),E=a("Promise",function(){var S=o(r),w=S!==String(r);if(!w&&d===66||v&&!(h.catch&&h.finally))return!0;if(!d||d<51||!/native code/.test(S)){var T=new r(function(m){m(1)}),b=function(m){m(function(){},function(){})},I=T.constructor={};if(I[f]=b,c=T.then(function(){})instanceof b,!c)return!0}return!w&&(u==="BROWSER"||u==="DENO")&&!_});return ym={CONSTRUCTOR:E,REJECTION_EVENT:_,SUBCLASSING:c},ym}var bm={},ok;function Vi(){if(ok)return bm;ok=1;var e=Gr(),r=TypeError,t=function(a){var o,s;this.promise=new a(function(u,v){if(o!==void 0||s!==void 0)throw new r("Bad Promise constructor");o=u,s=v}),this.resolve=e(o),this.reject=e(s)};return bm.f=function(a){return new t(a)},bm}var sk;function YH(){if(sk)return HO;sk=1;var e=ie(),r=ht(),t=au(),a=ir(),o=lf(),s=Er(),u=mt(),v=ni(),d=fa(),h=iu(),f=Gr(),c=Xr(),_=Mr(),E=xa(),S=Af(),w=Tf().set,T=kM(),b=KH(),I=lu(),m=OM(),p=Lt(),y=cu(),g=Sl(),x=Vi(),R="Promise",O=g.CONSTRUCTOR,j=g.REJECTION_EVENT,k=g.SUBCLASSING,N=p.getterFor(R),D=p.set,U=y&&y.prototype,B=y,H=U,G=a.TypeError,$=a.document,M=a.process,L=x.f,F=L,V=!!($&&$.createEvent&&a.dispatchEvent),ae="unhandledrejection",oe="rejectionhandled",_e=0,he=1,ye=2,ge=1,Re=2,We,He,nr,ar,xr=function(le){var Ee;return _(le)&&c(Ee=le.then)?Ee:!1},or=function(le,Ee){var fe=Ee.value,Pe=Ee.state===he,ur=Pe?le.ok:le.fail,cr=le.resolve,de=le.reject,Ae=le.domain,Ne,Oe,De;try{ur?(Pe||(Ee.rejection===Re&&Y(Ee),Ee.rejection=ge),ur===!0?Ne=fe:(Ae&&Ae.enter(),Ne=ur(fe),Ae&&(Ae.exit(),De=!0)),Ne===le.promise?de(new G("Promise-chain cycle")):(Oe=xr(Ne))?s(Oe,Ne,cr,de):cr(Ne)):de(fe)}catch(Te){Ae&&!De&&Ae.exit(),de(Te)}},lr=function(le,Ee){le.notified||(le.notified=!0,T(function(){for(var fe=le.reactions,Pe;Pe=fe.get();)or(Pe,le);le.notified=!1,Ee&&!le.rejection&&Ge(le)}))},Ve=function(le,Ee,fe){var Pe,ur;V?(Pe=$.createEvent("Event"),Pe.promise=Ee,Pe.reason=fe,Pe.initEvent(le,!1,!0),a.dispatchEvent(Pe)):Pe={promise:Ee,reason:fe},!j&&(ur=a["on"+le])?ur(Pe):le===ae&&b("Unhandled promise rejection",fe)},Ge=function(le){s(w,a,function(){var Ee=le.facade,fe=le.value,Pe=W(le),ur;if(Pe&&(ur=I(function(){t?M.emit("unhandledRejection",fe,Ee):Ve(ae,Ee,fe)}),le.rejection=t||W(le)?Re:ge,ur.error))throw ur.value})},W=function(le){return le.rejection!==ge&&!le.parent},Y=function(le){s(w,a,function(){var Ee=le.facade;t?M.emit("rejectionHandled",Ee):Ve(oe,Ee,le.value)})},Q=function(le,Ee,fe){return function(Pe){le(Ee,Pe,fe)}},re=function(le,Ee,fe){le.done||(le.done=!0,fe&&(le=fe),le.value=Ee,le.state=ye,lr(le,!0))},pe=function(le,Ee,fe){if(!le.done){le.done=!0,fe&&(le=fe);try{if(le.facade===Ee)throw new G("Promise can't be resolved itself");var Pe=xr(Ee);Pe?T(function(){var ur={done:!1};try{s(Pe,Ee,Q(pe,ur,le),Q(re,ur,le))}catch(cr){re(ur,cr,le)}}):(le.value=Ee,le.state=he,lr(le,!1))}catch(ur){re({done:!1},ur,le)}}};if(O&&(B=function(Ee){E(this,H),f(Ee),s(We,this);var fe=N(this);try{Ee(Q(pe,fe),Q(re,fe))}catch(Pe){re(fe,Pe)}},H=B.prototype,We=function(Ee){D(this,{type:R,done:!1,notified:!1,parent:!1,reactions:new m,rejection:!1,state:_e,value:null})},We.prototype=u(H,"then",function(Ee,fe){var Pe=N(this),ur=L(S(this,B));return Pe.parent=!0,ur.ok=c(Ee)?Ee:!0,ur.fail=c(fe)&&fe,ur.domain=t?M.domain:void 0,Pe.state===_e?Pe.reactions.add(ur):T(function(){or(ur,Pe)}),ur.promise}),He=function(){var le=new We,Ee=N(le);this.promise=le,this.resolve=Q(pe,Ee),this.reject=Q(re,Ee)},x.f=L=function(le){return le===B||le===nr?new He(le):F(le)},!r&&c(y)&&U!==Object.prototype)){ar=U.then,k||u(U,"then",function(Ee,fe){var Pe=this;return new B(function(ur,cr){s(ar,Pe,ur,cr)}).then(Ee,fe)},{unsafe:!0});try{delete U.constructor}catch{}v&&v(U,H)}return e({global:!0,constructor:!0,wrap:!0,forced:O},{Promise:B}),nr=o.Promise,d(B,R,!1,!0),h(R),HO}var uk={},_m,lk;function Rf(){if(lk)return _m;lk=1;var e=cu(),r=hf(),t=Sl().CONSTRUCTOR;return _m=t||!r(function(a){e.all(a).then(void 0,function(){})}),_m}var ck;function JH(){if(ck)return uk;ck=1;var e=ie(),r=Er(),t=Gr(),a=Vi(),o=lu(),s=ln(),u=Rf();return e({target:"Promise",stat:!0,forced:u},{all:function(d){var h=this,f=a.f(h),c=f.resolve,_=f.reject,E=o(function(){var S=t(h.resolve),w=[],T=0,b=1;s(d,function(I){var m=T++,p=!1;b++,r(S,h,I).then(function(y){p||(p=!0,w[m]=y,--b||c(w))},_)}),--b||c(w)});return E.error&&_(E.value),f.promise}}),uk}var fk={},dk;function XH(){if(dk)return fk;dk=1;var e=ie(),r=ht(),t=Sl().CONSTRUCTOR,a=cu(),o=Vr(),s=Xr(),u=mt(),v=a&&a.prototype;if(e({target:"Promise",proto:!0,forced:t,real:!0},{catch:function(h){return this.then(void 0,h)}}),!r&&s(a)){var d=o("Promise").prototype.catch;v.catch!==d&&u(v,"catch",d,{unsafe:!0})}return fk}var hk={},vk;function QH(){if(vk)return hk;vk=1;var e=ie(),r=Er(),t=Gr(),a=Vi(),o=lu(),s=ln(),u=Rf();return e({target:"Promise",stat:!0,forced:u},{race:function(d){var h=this,f=a.f(h),c=f.reject,_=o(function(){var E=t(h.resolve);s(d,function(S){r(E,h,S).then(f.resolve,c)})});return _.error&&c(_.value),f.promise}}),hk}var pk={},gk;function eV(){if(gk)return pk;gk=1;var e=ie(),r=Vi(),t=Sl().CONSTRUCTOR;return e({target:"Promise",stat:!0,forced:t},{reject:function(o){var s=r.f(this),u=s.reject;return u(o),s.promise}}),pk}var mk={},Sm,yk;function PM(){if(yk)return Sm;yk=1;var e=Ir(),r=Mr(),t=Vi();return Sm=function(a,o){if(e(a),r(o)&&o.constructor===a)return o;var s=t.f(a),u=s.resolve;return u(o),s.promise},Sm}var bk;function rV(){if(bk)return mk;bk=1;var e=ie(),r=Vr(),t=ht(),a=cu(),o=Sl().CONSTRUCTOR,s=PM(),u=r("Promise"),v=t&&!o;return e({target:"Promise",stat:!0,forced:t||o},{resolve:function(h){return s(v&&this===u?a:this,h)}}),mk}var _k;function tV(){return _k||(_k=1,YH(),JH(),XH(),QH(),eV(),rV()),ZO}var Sk={},wk;function nV(){if(wk)return Sk;wk=1;var e=ie(),r=Er(),t=Gr(),a=Vi(),o=lu(),s=ln(),u=Rf();return e({target:"Promise",stat:!0,forced:u},{allSettled:function(d){var h=this,f=a.f(h),c=f.resolve,_=f.reject,E=o(function(){var S=t(h.resolve),w=[],T=0,b=1;s(d,function(I){var m=T++,p=!1;b++,r(S,h,I).then(function(y){p||(p=!0,w[m]={status:"fulfilled",value:y},--b||c(w))},function(y){p||(p=!0,w[m]={status:"rejected",reason:y},--b||c(w))})}),--b||c(w)});return E.error&&_(E.value),f.promise}}),Sk}var Ek={},Ck;function aV(){if(Ck)return Ek;Ck=1;var e=ie(),r=Er(),t=Gr(),a=Vr(),o=Vi(),s=lu(),u=ln(),v=Rf(),d="No one promise resolved";return e({target:"Promise",stat:!0,forced:v},{any:function(f){var c=this,_=a("AggregateError"),E=o.f(c),S=E.resolve,w=E.reject,T=s(function(){var b=t(c.resolve),I=[],m=0,p=1,y=!1;u(f,function(g){var x=m++,R=!1;p++,r(b,c,g).then(function(O){R||y||(y=!0,S(O))},function(O){R||y||(R=!0,I[x]=O,--p||w(new _(I,d)))})}),--p||w(new _(I,d))});return T.error&&w(T.value),E.promise}}),Ek}var xk={},Ik;function iV(){if(Ik)return xk;Ik=1;var e=ie(),r=ht(),t=cu(),a=Je(),o=Vr(),s=Xr(),u=Af(),v=PM(),d=mt(),h=t&&t.prototype,f=!!t&&a(function(){h.finally.call({then:function(){}},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:f},{finally:function(_){var E=u(this,o("Promise")),S=s(_);return this.then(S?function(w){return v(E,_()).then(function(){return w})}:_,S?function(w){return v(E,_()).then(function(){throw w})}:_)}}),!r&&s(t)){var c=o("Promise").prototype.finally;h.finally!==c&&d(h,"finally",c,{unsafe:!0})}return xk}var Ak={},Tk;function oV(){if(Tk)return Ak;Tk=1;var e=ie(),r=ir(),t=Ca(),a=Ba(),o=Vi(),s=Gr(),u=lu(),v=r.Promise,d=!1,h=!v||!v.try||u(function(){v.try(function(f){d=f===8},8)}).error||!d;return e({target:"Promise",stat:!0,forced:h},{try:function(f){var c=arguments.length>1?a(arguments,1):[],_=o.f(this),E=u(function(){return t(s(f),void 0,c)});return(E.error?_.reject:_.resolve)(E.value),_.promise}}),Ak}var Rk={},Ok;function sV(){if(Ok)return Rk;Ok=1;var e=ie(),r=Vi();return e({target:"Promise",stat:!0},{withResolvers:function(){var a=r.f(this);return{promise:a.promise,resolve:a.resolve,reject:a.reject}}}),Rk}var kk={},wm,Pk;function NM(){if(Pk)return wm;Pk=1;var e=ir(),r=nf(),t=Xr(),a=Pn(),o=Xn(),s=mt(),u=Ur(),v=ht(),d="USE_FUNCTION_CONSTRUCTOR",h=u("asyncIterator"),f=e.AsyncIterator,c=r.AsyncIteratorPrototype,_,E;if(c)_=c;else if(t(f))_=f.prototype;else if(r[d]||e[d])try{E=o(o(o(Function("return async function*(){}()")()))),o(E)===Object.prototype&&(_=E)}catch{}return _?v&&(_=a(_)):_={},t(_[h])||s(_,h,function(){return this}),wm=_,wm}var Em,Nk;function jM(){if(Nk)return Em;Nk=1;var e=Er(),r=Ir(),t=Pn(),a=Rn(),o=Hi(),s=Lt(),u=jn(),v=Vr(),d=NM(),h=as(),f=v("Promise"),c="AsyncFromSyncIterator",_=s.set,E=s.getterFor(c),S=function(T,b,I,m,p){var y=T.done;f.resolve(T.value).then(function(g){b(h(g,y))},function(g){if(!y&&p)try{u(m,"throw",g)}catch(x){g=x}I(g)})},w=function(b){b.type=c,_(this,b)};return w.prototype=o(t(d),{next:function(){var b=E(this);return new f(function(I,m){var p=r(e(b.next,b.iterator));S(p,I,m,b.iterator,!0)})},return:function(){var T=E(this).iterator;return new f(function(b,I){var m=a(T,"return");if(m===void 0)return b(h(void 0,!0));var p=r(e(m,T));S(p,b,I,T)})}}),Em=w,Em}var Cm,jk;function uV(){if(jk)return Cm;jk=1;var e=Er(),r=jM(),t=Ir(),a=tu(),o=Zn(),s=Rn(),u=Ur(),v=u("asyncIterator");return Cm=function(d,h){var f=arguments.length<2?s(d,v):h;return f?t(e(f,d)):new r(o(a(d)))},Cm}var xm,qk;function lV(){if(qk)return xm;qk=1;var e=Er(),r=Vr(),t=Rn();return xm=function(a,o,s,u){try{var v=t(a,"return");if(v)return r("Promise").resolve(e(v,a)).then(function(){o(s)},function(d){u(d)})}catch(d){return u(d)}o(s)},xm}var Im,Dk;function cV(){if(Dk)return Im;Dk=1;var e=Er(),r=Gr(),t=Ir(),a=Mr(),o=ns(),s=Vr(),u=Zn(),v=lV(),d=function(h){var f=h===0,c=h===1,_=h===2,E=h===3;return function(S,w,T){t(S);var b=w!==void 0;(b||!f)&&r(w);var I=u(S),m=s("Promise"),p=I.iterator,y=I.next,g=0;return new m(function(x,R){var O=function(k){v(p,R,k,R)},j=function(){try{if(b)try{o(g)}catch(k){O(k)}m.resolve(t(e(y,p))).then(function(k){try{if(t(k).done)f?(T.length=g,x(T)):x(E?!1:_||void 0);else{var N=k.value;try{if(b){var D=w(N,g),U=function(B){if(c)j();else if(_)B?j():v(p,x,!1,R);else if(f)try{T[g++]=B,j()}catch(H){O(H)}else B?v(p,x,E||N,R):j()};a(D)?m.resolve(D).then(U,O):U(D)}else T[g++]=N,j()}catch(B){O(B)}}}catch(B){R(B)}},R)}catch(k){R(k)}};j()})}};return Im={toArray:d(0),forEach:d(1),every:d(2),some:d(3),find:d(4)},Im}var Am,Lk;function fV(){if(Lk)return Am;Lk=1;var e=Ea(),r=er(),t=lt(),a=es(),o=uV(),s=tu(),u=Zn(),v=ts(),d=Rn(),h=Vr(),f=aM(),c=Ur(),_=jM(),E=cV().toArray,S=c("asyncIterator"),w=r(f("Array","values")),T=r(w([]).next),b=function(){return new I(this)},I=function(m){this.iterator=w(m)};return I.prototype.next=function(){return T(this.iterator)},Am=function(p){var y=this,g=arguments.length,x=g>1?arguments[1]:void 0,R=g>2?arguments[2]:void 0;return new(h("Promise"))(function(O){var j=t(p);x!==void 0&&(x=e(x,R));var k=d(j,S),N=k?void 0:v(j)||b,D=a(y)?new y:[],U=k?o(j,k):new _(u(s(j,N)));O(E(U,x,D))})},Am}var Mk;function dV(){if(Mk)return kk;Mk=1;var e=ie(),r=fV(),t=Je(),a=Array.fromAsync,o=!a||t(function(){var s=0;return a.call(function(){return s++,[]},{length:0}),s!==1});return e({target:"Array",stat:!0,forced:o},{fromAsync:r}),kk}var Uk={},Fk;function hV(){if(Fk)return Uk;Fk=1;var e=ie(),r=Tr(),t=Vr(),a=Gr(),o=xa(),s=mt(),u=Hi(),v=Jt(),d=Ur(),h=Lt(),f=pM(),c=yi(),_=t("Promise"),E=t("SuppressedError"),S=ReferenceError,w=d("asyncDispose"),T=d("toStringTag"),b="AsyncDisposableStack",I=h.set,m=h.getterFor(b),p="async-dispose",y="disposed",g="pending",x=function(k){var N=m(k);if(N.state===y)throw new S(b+" already disposed");return N},R=function(){I(o(this,O),{type:b,state:g,stack:[]}),r||(this.disposed=!1)},O=R.prototype;u(O,{disposeAsync:function(){var N=this;return new _(function(D,U){var B=m(N);if(B.state===y)return D(void 0);B.state=y,r||(N.disposed=!0);var H=B.stack,G=H.length,$=!1,M,L=function(V){$?M=new E(V,M):($=!0,M=V),F()},F=function(){if(G){var V=H[--G];H[G]=null;try{_.resolve(V()).then(F,L)}catch(ae){L(ae)}}else B.stack=null,$?U(M):D(void 0)};F()})},use:function(N){return f(x(this),N,p),N},adopt:function(N,D){var U=x(this);return a(D),f(U,void 0,p,function(){return D(N)}),N},defer:function(N){var D=x(this);a(N),f(D,void 0,p,N)},move:function(){var N=x(this),D=new R;return m(D).stack=N.stack,N.stack=[],N.state=y,r||(this.disposed=!0),D}}),r&&v(O,"disposed",{configurable:!0,get:function(){return m(this).state===y}}),s(O,w,O.disposeAsync,{name:"disposeAsync"}),s(O,T,b,{nonWritable:!0});var j=c&&c<136;return e({global:!0,constructor:!0,forced:j},{AsyncDisposableStack:R}),Uk}var Bk={},$k;function vV(){if($k)return Bk;$k=1;var e=Er(),r=mt(),t=Vr(),a=Rn(),o=Wr(),s=Ur(),u=NM(),v=s("asyncDispose"),d=t("Promise");return o(u,v)||r(u,v,function(){var h=this;return new d(function(f,c){var _=a(h,"return");_?d.resolve(e(_,h)).then(function(){f(void 0)},c):f(void 0)})}),Bk}var zk={},Zk;function pV(){if(Zk)return zk;Zk=1;var e=ie(),r=Ca(),t=Gr(),a=Ir(),o=Je(),s=!o(function(){Reflect.apply(function(){})});return e({target:"Reflect",stat:!0,forced:s},{apply:function(v,d,h){return r(t(v),d,a(h))}}),zk}var Hk={},Vk;function gV(){if(Vk)return Hk;Vk=1;var e=ie(),r=Vr(),t=Ca(),a=gM(),o=R_(),s=Ir(),u=Mr(),v=Pn(),d=Je(),h=r("Reflect","construct"),f=Object.prototype,c=[].push,_=d(function(){function w(){}return!(h(function(){},[],w)instanceof w)}),E=!d(function(){h(function(){})}),S=_||E;return e({target:"Reflect",stat:!0,forced:S,sham:S},{construct:function(T,b){o(T),s(b);var I=arguments.length<3?T:o(arguments[2]);if(E&&!_)return h(T,b,I);if(T===I){switch(b.length){case 0:return new T;case 1:return new T(b[0]);case 2:return new T(b[0],b[1]);case 3:return new T(b[0],b[1],b[2]);case 4:return new T(b[0],b[1],b[2],b[3])}var m=[null];return t(c,m,b),new(t(a,T,m))}var p=I.prototype,y=v(u(p)?p:f),g=t(T,y,b);return u(g)?g:y}}),Hk}var Gk={},Wk;function mV(){if(Wk)return Gk;Wk=1;var e=ie(),r=Tr(),t=Ir(),a=So(),o=Tt(),s=Je(),u=s(function(){Reflect.defineProperty(o.f({},1,{value:1}),1,{value:2})});return e({target:"Reflect",stat:!0,forced:u,sham:!r},{defineProperty:function(d,h,f){t(d);var c=a(h);t(f);try{return o.f(d,c,f),!0}catch{return!1}}}),Gk}var Kk={},Yk;function yV(){if(Yk)return Kk;Yk=1;var e=ie(),r=Ir(),t=On().f;return e({target:"Reflect",stat:!0},{deleteProperty:function(o,s){var u=t(r(o),s);return u&&!u.configurable?!1:delete o[s]}}),Kk}var Jk={},Tm,Xk;function qM(){if(Xk)return Tm;Xk=1;var e=Wr();return Tm=function(r){return r!==void 0&&(e(r,"value")||e(r,"writable"))},Tm}var Qk;function bV(){if(Qk)return Jk;Qk=1;var e=ie(),r=Er(),t=Mr(),a=Ir(),o=qM(),s=On(),u=Xn();function v(d,h){var f=arguments.length<3?d:arguments[2],c,_;if(a(d)===f)return d[h];if(c=s.f(d,h),c)return o(c)?c.value:c.get===void 0?void 0:r(c.get,f);if(t(_=u(d)))return v(_,h,f)}return e({target:"Reflect",stat:!0},{get:v}),Jk}var e8={},r8;function _V(){if(r8)return e8;r8=1;var e=ie(),r=Tr(),t=Ir(),a=On();return e({target:"Reflect",stat:!0,sham:!r},{getOwnPropertyDescriptor:function(s,u){return a.f(t(s),u)}}),e8}var t8={},n8;function SV(){if(n8)return t8;n8=1;var e=ie(),r=Ir(),t=Xn(),a=v_();return e({target:"Reflect",stat:!0,sham:!a},{getPrototypeOf:function(s){return t(r(s))}}),t8}var a8={},i8;function wV(){if(i8)return a8;i8=1;var e=ie();return e({target:"Reflect",stat:!0},{has:function(t,a){return a in t}}),a8}var o8={},s8;function EV(){if(s8)return o8;s8=1;var e=ie(),r=Ir(),t=A_();return e({target:"Reflect",stat:!0},{isExtensible:function(o){return r(o),t(o)}}),o8}var u8={},l8;function CV(){if(l8)return u8;l8=1;var e=ie(),r=u_();return e({target:"Reflect",stat:!0},{ownKeys:r}),u8}var c8={},f8;function xV(){if(f8)return c8;f8=1;var e=ie(),r=Vr(),t=Ir(),a=su();return e({target:"Reflect",stat:!0,sham:!a},{preventExtensions:function(s){t(s);try{var u=r("Object","preventExtensions");return u&&u(s),!0}catch{return!1}}}),c8}var d8={},h8;function IV(){if(h8)return d8;h8=1;var e=ie(),r=Er(),t=Ir(),a=Mr(),o=qM(),s=Je(),u=Tt(),v=On(),d=Xn(),h=_a();function f(_,E,S){var w=arguments.length<4?_:arguments[3],T=v.f(t(_),E),b,I,m;if(!T){if(a(I=d(_)))return f(I,E,S,w);T=h(0)}if(o(T)){if(T.writable===!1||!a(w))return!1;if(b=v.f(w,E)){if(b.get||b.set||b.writable===!1)return!1;b.value=S,u.f(w,E,b)}else u.f(w,E,h(0,S))}else{if(m=T.set,m===void 0)return!1;r(m,w,S)}return!0}var c=s(function(){var _=function(){},E=u.f(new _,"a",{configurable:!0});return Reflect.set(_.prototype,"a",1,E)!==!1});return e({target:"Reflect",stat:!0,forced:c},{set:f}),d8}var v8={},p8;function AV(){if(p8)return v8;p8=1;var e=ie(),r=Ir(),t=ZL(),a=ni();return a&&e({target:"Reflect",stat:!0},{setPrototypeOf:function(s,u){r(s),t(u);try{return a(s,u),!0}catch{return!1}}}),v8}var g8={},m8;function TV(){if(m8)return g8;m8=1;var e=ie(),r=ir(),t=fa();return e({global:!0},{Reflect:{}}),t(r.Reflect,"Reflect",!0),g8}var y8={},Rm,b8;function Of(){if(b8)return Rm;b8=1;var e=Mr(),r=$n(),t=Ur(),a=t("match");return Rm=function(o){var s;return e(o)&&((s=o[a])!==void 0?!!s:r(o)==="RegExp")},Rm}var Om,_8;function DM(){if(_8)return Om;_8=1;var e=ir(),r=Je(),t=e.RegExp,a=!r(function(){var o=!0;try{t(".","d")}catch{o=!1}var s={},u="",v=o?"dgimsy":"gimsy",d=function(_,E){Object.defineProperty(s,_,{get:function(){return u+=E,!0}})},h={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};o&&(h.hasIndices="d");for(var f in h)d(f,h[f]);var c=Object.getOwnPropertyDescriptor(t.prototype,"flags").get.call(s);return c!==v||u!==v});return Om={correct:a},Om}var km,S8;function O_(){if(S8)return km;S8=1;var e=Ir();return km=function(){var r=e(this),t="";return r.hasIndices&&(t+="d"),r.global&&(t+="g"),r.ignoreCase&&(t+="i"),r.multiline&&(t+="m"),r.dotAll&&(t+="s"),r.unicode&&(t+="u"),r.unicodeSets&&(t+="v"),r.sticky&&(t+="y"),t},km}var Pm,w8;function os(){if(w8)return Pm;w8=1;var e=Er(),r=Wr(),t=Jn(),a=DM(),o=O_(),s=RegExp.prototype;return Pm=a.correct?function(u){return u.flags}:function(u){return!a.correct&&t(s,u)&&!r(u,"flags")?e(o,u):u.flags},Pm}var Nm,E8;function kf(){if(E8)return Nm;E8=1;var e=Je(),r=ir(),t=r.RegExp,a=e(function(){var u=t("a","y");return u.lastIndex=2,u.exec("abcd")!==null}),o=a||e(function(){return!t("a","y").sticky}),s=a||e(function(){var u=t("^r","gy");return u.lastIndex=2,u.exec("str")!==null});return Nm={BROKEN_CARET:s,MISSED_STICKY:o,UNSUPPORTED_Y:a},Nm}var jm,C8;function k_(){if(C8)return jm;C8=1;var e=Je(),r=ir(),t=r.RegExp;return jm=e(function(){var a=t(".","s");return!(a.dotAll&&a.test(`
|
|
3
|
+
`)&&a.flags==="s")}),jm}var qm,x8;function LM(){if(x8)return qm;x8=1;var e=Je(),r=ir(),t=r.RegExp;return qm=e(function(){var a=t("(?<a>b)","g");return a.exec("b").groups.a!=="b"||"b".replace(a,"$<a>c")!=="bc"}),qm}var I8;function RV(){if(I8)return y8;I8=1;var e=Tr(),r=ir(),t=er(),a=hl(),o=rs(),s=kn(),u=Pn(),v=Xo().f,d=Jn(),h=Of(),f=zr(),c=os(),_=kf(),E=HL(),S=mt(),w=Je(),T=Wr(),b=Lt().enforce,I=iu(),m=Ur(),p=k_(),y=LM(),g=m("match"),x=r.RegExp,R=x.prototype,O=r.SyntaxError,j=t(R.exec),k=t("".charAt),N=t("".replace),D=t("".indexOf),U=t("".slice),B=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,H=/a/g,G=/a/g,$=new x(H)!==H,M=_.MISSED_STICKY,L=_.UNSUPPORTED_Y,F=e&&(!$||M||p||y||w(function(){return G[g]=!1,x(H)!==H||x(G)===G||String(x(H,"i"))!=="/a/i"})),V=function(ye){for(var ge=ye.length,Re=0,We="",He=!1,nr;Re<=ge;Re++){if(nr=k(ye,Re),nr==="\\"){We+=nr+k(ye,++Re);continue}!He&&nr==="."?We+="[\\s\\S]":(nr==="["?He=!0:nr==="]"&&(He=!1),We+=nr)}return We},ae=function(ye){for(var ge=ye.length,Re=0,We="",He=[],nr=u(null),ar=!1,xr=!1,or=0,lr="",Ve;Re<=ge;Re++){if(Ve=k(ye,Re),Ve==="\\")Ve+=k(ye,++Re);else if(Ve==="]")ar=!1;else if(!ar)switch(!0){case Ve==="[":ar=!0;break;case Ve==="(":if(We+=Ve,U(ye,Re+1,Re+3)==="?:")continue;j(B,U(ye,Re+1))&&(Re+=2,xr=!0),or++;continue;case(Ve===">"&&xr):if(lr===""||T(nr,lr))throw new O("Invalid capture group name");nr[lr]=!0,He[He.length]=[lr,or],xr=!1,lr="";continue}xr?lr+=Ve:We+=Ve}return[We,He]};if(a("RegExp",F)){for(var oe=function(ge,Re){var We=d(R,this),He=h(ge),nr=Re===void 0,ar=[],xr=ge,or,lr,Ve,Ge,W,Y;if(!We&&He&&nr&&ge.constructor===oe)return ge;if((He||d(R,ge))&&(ge=ge.source,nr&&(Re=c(xr))),ge=ge===void 0?"":f(ge),Re=Re===void 0?"":f(Re),xr=ge,p&&"dotAll"in H&&(lr=!!Re&&D(Re,"s")>-1,lr&&(Re=N(Re,/s/g,""))),or=Re,M&&"sticky"in H&&(Ve=!!Re&&D(Re,"y")>-1,Ve&&L&&(Re=N(Re,/y/g,""))),y&&(Ge=ae(ge),ge=Ge[0],ar=Ge[1]),W=o(x(ge,Re),We?this:R,oe),(lr||Ve||ar.length)&&(Y=b(W),lr&&(Y.dotAll=!0,Y.raw=oe(V(ge),or)),Ve&&(Y.sticky=!0),ar.length&&(Y.groups=ar)),ge!==xr)try{s(W,"source",xr===""?"(?:)":xr)}catch{}return W},_e=v(x),he=0;_e.length>he;)E(oe,x,_e[he++]);R.constructor=oe,oe.prototype=R,S(r,"RegExp",oe,{constructor:!0})}return I("RegExp"),y8}var A8={},Dm,T8;function Pf(){if(T8)return Dm;T8=1;var e=TypeError;return Dm=function(r){if(typeof r=="string")return r;throw new e("Argument is not a string")},Dm}var R8;function OV(){if(R8)return A8;R8=1;var e=ie(),r=er(),t=Pf(),a=Wr(),o=Sf().start,s=_l(),u=Array,v=RegExp.escape,d=r("".charAt),h=r("".charCodeAt),f=r(1.1.toString),c=r([].join),_=/^[0-9a-z]/i,E=/^[$()*+./?[\\\]^{|}]/,S=RegExp("^[!\"#%&',\\-:;<=>@`~"+s+"]"),w=r(_.exec),T={" ":"t","\n":"n","\v":"v","\f":"f","\r":"r"},b=function(m){var p=f(h(m,0),16);return p.length<3?"\\x"+o(p,2,"0"):"\\u"+o(p,4,"0")},I=!v||v("ab")!=="\\x61b";return e({target:"RegExp",stat:!0,forced:I},{escape:function(p){t(p);for(var y=p.length,g=u(y),x=0;x<y;x++){var R=d(p,x);if(x===0&&w(_,R))g[x]=b(R);else if(a(T,R))g[x]="\\"+T[R];else if(w(E,R))g[x]="\\"+R;else if(w(S,R))g[x]=b(R);else{var O=h(R,0);(O&63488)!==55296?g[x]=R:O>=56320||x+1>=y||(h(p,x+1)&64512)!==56320?g[x]=b(R):(g[x]=R,g[++x]=d(p,x))}}return c(g,"")}}),A8}var O8={},k8;function kV(){if(k8)return O8;k8=1;var e=Tr(),r=k_(),t=$n(),a=Jt(),o=Lt().get,s=RegExp.prototype,u=TypeError;return e&&r&&a(s,"dotAll",{configurable:!0,get:function(){if(this!==s){if(t(this)==="RegExp")return!!o(this).dotAll;throw new u("Incompatible receiver, RegExp required")}}}),O8}var P8={},Lm,N8;function P_(){if(N8)return Lm;N8=1;var e=Er(),r=er(),t=zr(),a=O_(),o=kf(),s=Js(),u=Pn(),v=Lt().get,d=k_(),h=LM(),f=s("native-string-replace",String.prototype.replace),c=RegExp.prototype.exec,_=c,E=r("".charAt),S=r("".indexOf),w=r("".replace),T=r("".slice),b=(function(){var y=/a/,g=/b*/g;return e(c,y,"a"),e(c,g,"a"),y.lastIndex!==0||g.lastIndex!==0})(),I=o.BROKEN_CARET,m=/()??/.exec("")[1]!==void 0,p=b||m||I||d||h;return p&&(_=function(g){var x=this,R=v(x),O=t(g),j=R.raw,k,N,D,U,B,H,G;if(j)return j.lastIndex=x.lastIndex,k=e(_,j,O),x.lastIndex=j.lastIndex,k;var $=R.groups,M=I&&x.sticky,L=e(a,x),F=x.source,V=0,ae=O;if(M&&(L=w(L,"y",""),S(L,"g")===-1&&(L+="g"),ae=T(O,x.lastIndex),x.lastIndex>0&&(!x.multiline||x.multiline&&E(O,x.lastIndex-1)!==`
|
|
4
|
+
`)&&(F="(?: "+F+")",ae=" "+ae,V++),N=new RegExp("^(?:"+F+")",L)),m&&(N=new RegExp("^"+F+"$(?!\\s)",L)),b&&(D=x.lastIndex),U=e(c,M?N:x,ae),M?U?(U.input=T(U.input,V),U[0]=T(U[0],V),U.index=x.lastIndex,x.lastIndex+=U[0].length):x.lastIndex=0:b&&U&&(x.lastIndex=x.global?U.index+U[0].length:D),m&&U&&U.length>1&&e(f,U[0],N,function(){for(B=1;B<arguments.length-2;B++)arguments[B]===void 0&&(U[B]=void 0)}),U&&$)for(U.groups=H=u(null),B=0;B<$.length;B++)G=$[B],H[G[0]]=U[G[1]];return U}),Lm=_,Lm}var j8;function N_(){if(j8)return P8;j8=1;var e=ie(),r=P_();return e({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r}),P8}var q8={},D8;function PV(){if(D8)return q8;D8=1;var e=Tr(),r=Jt(),t=DM(),a=O_();return e&&!t.correct&&(r(RegExp.prototype,"flags",{configurable:!0,get:a}),t.correct=!0),q8}var L8={},M8;function NV(){if(M8)return L8;M8=1;var e=Tr(),r=kf().MISSED_STICKY,t=$n(),a=Jt(),o=Lt().get,s=RegExp.prototype,u=TypeError;return e&&r&&a(s,"sticky",{configurable:!0,get:function(){if(this!==s){if(t(this)==="RegExp")return!!o(this).sticky;throw new u("Incompatible receiver, RegExp required")}}}),L8}var U8={},F8;function jV(){if(F8)return U8;F8=1,N_();var e=ie(),r=Er(),t=Xr(),a=Ir(),o=zr(),s=(function(){var v=!1,d=/[ac]/;return d.exec=function(){return v=!0,/./.exec.apply(this,arguments)},d.test("abc")===!0&&v})(),u=/./.test;return e({target:"RegExp",proto:!0,forced:!s},{test:function(v){var d=a(this),h=o(v),f=d.exec;if(!t(f))return r(u,d,h);var c=r(f,d,h);return c===null?!1:(a(c),!0)}}),U8}var B8={},$8;function qV(){if($8)return B8;$8=1;var e=Qs().PROPER,r=mt(),t=Ir(),a=zr(),o=Je(),s=os(),u="toString",v=RegExp.prototype,d=v[u],h=o(function(){return d.call({source:"a",flags:"b"})!=="/a/b"}),f=e&&d.name!==u;return(h||f)&&r(v,u,function(){var _=t(this),E=a(_.source),S=a(s(_));return"/"+E+"/"+S},{unsafe:!0}),B8}var z8={},Z8={},H8;function DV(){if(H8)return Z8;H8=1;var e=Ef(),r=bM();return e("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},r),Z8}var V8;function LV(){return V8||(V8=1,DV()),z8}var G8={},Mm,W8;function ai(){if(W8)return Mm;W8=1;var e=er(),r=Set.prototype;return Mm={Set,add:e(r.add),has:e(r.has),remove:e(r.delete),proto:r},Mm}var Um,K8;function ss(){if(K8)return Um;K8=1;var e=ai().has;return Um=function(r){return e(r),r},Um}var Fm,Y8;function us(){if(Y8)return Fm;Y8=1;var e=Er();return Fm=function(r,t,a){for(var o=a?r:r.iterator,s=r.next,u,v;!(u=e(s,o)).done;)if(v=t(u.value),v!==void 0)return v},Fm}var Bm,J8;function fu(){if(J8)return Bm;J8=1;var e=er(),r=us(),t=ai(),a=t.Set,o=t.proto,s=e(o.forEach),u=e(o.keys),v=u(new a).next;return Bm=function(d,h,f){return f?r({iterator:u(d),next:v},h):s(d,h)},Bm}var $m,X8;function j_(){if(X8)return $m;X8=1;var e=ai(),r=fu(),t=e.Set,a=e.add;return $m=function(o){var s=new t;return r(o,function(u){a(s,u)}),s},$m}var zm,Q8;function wl(){if(Q8)return zm;Q8=1;var e=cf(),r=ai();return zm=e(r.proto,"size","get")||function(t){return t.size},zm}var Zm,e6;function ls(){if(e6)return Zm;e6=1;var e=Gr(),r=Ir(),t=Er(),a=Vt(),o=Zn(),s="Invalid size",u=RangeError,v=TypeError,d=Math.max,h=function(f,c){this.set=f,this.size=d(c,0),this.has=e(f.has),this.keys=e(f.keys)};return h.prototype={getIterator:function(){return o(r(t(this.keys,this.set)))},includes:function(f){return t(this.has,this.set,f)}},Zm=function(f){r(f);var c=+f.size;if(c!==c)throw new v(s);var _=a(c);if(_<0)throw new u(s);return new h(f,_)},Zm}var Hm,r6;function MV(){if(r6)return Hm;r6=1;var e=ss(),r=ai(),t=j_(),a=wl(),o=ls(),s=fu(),u=us(),v=r.has,d=r.remove;return Hm=function(f){var c=e(this),_=o(f),E=t(c);return a(c)<=_.size?s(c,function(S){_.includes(S)&&d(E,S)}):u(_.getIterator(),function(S){v(E,S)&&d(E,S)}),E},Hm}var Vm,t6;function cs(){if(t6)return Vm;t6=1;var e=Vr(),r=function(a){return{size:a,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},t=function(a){return{size:a,has:function(){return!0},keys:function(){throw new Error("e")}}};return Vm=function(a,o){var s=e("Set");try{new s()[a](r(0));try{return new s()[a](r(-1)),!1}catch{if(!o)return!0;try{return new s()[a](t(-1/0)),!1}catch{var u=new s;return u.add(1),u.add(2),o(u[a](t(1/0)))}}}catch{return!1}},Vm}var n6;function UV(){if(n6)return G8;n6=1;var e=ie(),r=MV(),t=Je(),a=cs(),o=!a("difference",function(u){return u.size===0}),s=o||t(function(){var u={size:1,has:function(){return!0},keys:function(){var d=0;return{next:function(){var h=d++>1;return v.has(1)&&v.clear(),{done:h,value:2}}}}},v=new Set([1,2,3,4]);return v.difference(u).size!==3});return e({target:"Set",proto:!0,real:!0,forced:s},{difference:r}),G8}var a6={},Gm,i6;function FV(){if(i6)return Gm;i6=1;var e=ss(),r=ai(),t=wl(),a=ls(),o=fu(),s=us(),u=r.Set,v=r.add,d=r.has;return Gm=function(f){var c=e(this),_=a(f),E=new u;return t(c)>_.size?s(_.getIterator(),function(S){d(c,S)&&v(E,S)}):o(c,function(S){_.includes(S)&&v(E,S)}),E},Gm}var o6;function BV(){if(o6)return a6;o6=1;var e=ie(),r=Je(),t=FV(),a=cs(),o=!a("intersection",function(s){return s.size===2&&s.has(1)&&s.has(2)})||r(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});return e({target:"Set",proto:!0,real:!0,forced:o},{intersection:t}),a6}var s6={},Wm,u6;function $V(){if(u6)return Wm;u6=1;var e=ss(),r=ai().has,t=wl(),a=ls(),o=fu(),s=us(),u=jn();return Wm=function(d){var h=e(this),f=a(d);if(t(h)<=f.size)return o(h,function(_){if(f.includes(_))return!1},!0)!==!1;var c=f.getIterator();return s(c,function(_){if(r(h,_))return u(c,"normal",!1)})!==!1},Wm}var l6;function zV(){if(l6)return s6;l6=1;var e=ie(),r=$V(),t=cs(),a=!t("isDisjointFrom",function(o){return!o});return e({target:"Set",proto:!0,real:!0,forced:a},{isDisjointFrom:r}),s6}var c6={},Km,f6;function ZV(){if(f6)return Km;f6=1;var e=ss(),r=wl(),t=fu(),a=ls();return Km=function(s){var u=e(this),v=a(s);return r(u)>v.size?!1:t(u,function(d){if(!v.includes(d))return!1},!0)!==!1},Km}var d6;function HV(){if(d6)return c6;d6=1;var e=ie(),r=ZV(),t=cs(),a=!t("isSubsetOf",function(o){return o});return e({target:"Set",proto:!0,real:!0,forced:a},{isSubsetOf:r}),c6}var h6={},Ym,v6;function VV(){if(v6)return Ym;v6=1;var e=ss(),r=ai().has,t=wl(),a=ls(),o=us(),s=jn();return Ym=function(v){var d=e(this),h=a(v);if(t(d)<h.size)return!1;var f=h.getIterator();return o(f,function(c){if(!r(d,c))return s(f,"normal",!1)})!==!1},Ym}var p6;function GV(){if(p6)return h6;p6=1;var e=ie(),r=VV(),t=cs(),a=!t("isSupersetOf",function(o){return!o});return e({target:"Set",proto:!0,real:!0,forced:a},{isSupersetOf:r}),h6}var g6={},Jm,m6;function WV(){if(m6)return Jm;m6=1;var e=ss(),r=ai(),t=j_(),a=ls(),o=us(),s=r.add,u=r.has,v=r.remove;return Jm=function(h){var f=e(this),c=a(h).getIterator(),_=t(f);return o(c,function(E){u(f,E)?v(_,E):s(_,E)}),_},Jm}var Xm,y6;function MM(){return y6||(y6=1,Xm=function(e){try{var r=new Set,t={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return r.clear(),r.add(4),function(){return{done:!0}}}})}},a=r[e](t);return a.size===1&&a.values().next().value===4}catch{return!1}}),Xm}var b6;function KV(){if(b6)return g6;b6=1;var e=ie(),r=WV(),t=MM(),a=cs(),o=!a("symmetricDifference")||!t("symmetricDifference");return e({target:"Set",proto:!0,real:!0,forced:o},{symmetricDifference:r}),g6}var _6={},Qm,S6;function YV(){if(S6)return Qm;S6=1;var e=ss(),r=ai().add,t=j_(),a=ls(),o=us();return Qm=function(u){var v=e(this),d=a(u).getIterator(),h=t(v);return o(d,function(f){r(h,f)}),h},Qm}var w6;function JV(){if(w6)return _6;w6=1;var e=ie(),r=YV(),t=MM(),a=cs(),o=!a("union")||!t("union");return e({target:"Set",proto:!0,real:!0,forced:o},{union:r}),_6}var E6={},C6;function XV(){if(C6)return E6;C6=1;var e=ie(),r=er(),t=Nt(),a=Vt(),o=zr(),s=Je(),u=r("".charAt),v=s(function(){return"𠮷".at(-2)!=="\uD842"});return e({target:"String",proto:!0,forced:v},{at:function(h){var f=o(t(this)),c=f.length,_=a(h),E=_>=0?_:c+_;return E<0||E>=c?void 0:u(f,E)}}),E6}var x6={},ey,I6;function Nf(){if(I6)return ey;I6=1;var e=er(),r=Vt(),t=zr(),a=Nt(),o=e("".charAt),s=e("".charCodeAt),u=e("".slice),v=function(d){return function(h,f){var c=t(a(h)),_=r(f),E=c.length,S,w;return _<0||_>=E?d?"":void 0:(S=s(c,_),S<55296||S>56319||_+1===E||(w=s(c,_+1))<56320||w>57343?d?o(c,_):S:d?u(c,_,_+2):(S-55296<<10)+(w-56320)+65536)}};return ey={codeAt:v(!1),charAt:v(!0)},ey}var A6;function QV(){if(A6)return x6;A6=1;var e=ie(),r=Nf().codeAt;return e({target:"String",proto:!0},{codePointAt:function(a){return r(this,a)}}),x6}var T6={},ry,R6;function q_(){if(R6)return ry;R6=1;var e=Of(),r=TypeError;return ry=function(t){if(e(t))throw new r("The method doesn't accept regular expressions");return t},ry}var ty,O6;function D_(){if(O6)return ty;O6=1;var e=Ur(),r=e("match");return ty=function(t){var a=/./;try{"/./"[t](a)}catch{try{return a[r]=!1,"/./"[t](a)}catch{}}return!1},ty}var k6;function eG(){if(k6)return T6;k6=1;var e=ie(),r=Qo(),t=On().f,a=Sa(),o=zr(),s=q_(),u=Nt(),v=D_(),d=ht(),h=r("".slice),f=Math.min,c=v("endsWith"),_=!d&&!c&&!!(function(){var E=t(String.prototype,"endsWith");return E&&!E.writable})();return e({target:"String",proto:!0,forced:!_&&!c},{endsWith:function(S){var w=o(u(this));s(S);var T=arguments.length>1?arguments[1]:void 0,b=w.length,I=T===void 0?b:f(a(T),b),m=o(S);return h(w,I-m.length,I)===m}}),T6}var P6={},N6;function UM(){if(N6)return P6;N6=1;var e=ie(),r=er(),t=$i(),a=RangeError,o=String.fromCharCode,s=String.fromCodePoint,u=r([].join),v=!!s&&s.length!==1;return e({target:"String",stat:!0,arity:1,forced:v},{fromCodePoint:function(h){for(var f=[],c=arguments.length,_=0,E;c>_;){if(E=+arguments[_++],t(E,1114111)!==E)throw new a(E+" is not a valid code point");f[_]=E<65536?o(E):o(((E-=65536)>>10)+55296,E%1024+56320)}return u(f,"")}}),P6}var j6={},q6;function rG(){if(q6)return j6;q6=1;var e=ie(),r=er(),t=q_(),a=Nt(),o=zr(),s=D_(),u=r("".indexOf);return e({target:"String",proto:!0,forced:!s("includes")},{includes:function(d){return!!~u(o(a(this)),o(t(d)),arguments.length>1?arguments[1]:void 0)}}),j6}var D6={},L6;function tG(){if(L6)return D6;L6=1;var e=ie(),r=er(),t=Nt(),a=zr(),o=r("".charCodeAt);return e({target:"String",proto:!0},{isWellFormed:function(){for(var u=a(t(this)),v=u.length,d=0;d<v;d++){var h=o(u,d);if((h&63488)===55296&&(h>=56320||++d>=v||(o(u,d)&64512)!==56320))return!1}return!0}}),D6}var M6={},U6;function FM(){if(U6)return M6;U6=1;var e=Nf().charAt,r=zr(),t=Lt(),a=b_(),o=as(),s="String Iterator",u=t.set,v=t.getterFor(s);return a(String,"String",function(d){u(this,{type:s,string:r(d),index:0})},function(){var h=v(this),f=h.string,c=h.index,_;return c>=f.length?o(void 0,!0):(_=e(f,c),h.index+=_.length,o(_,!1))}),M6}var F6={},ny,B6;function jf(){if(B6)return ny;B6=1,N_();var e=Er(),r=mt(),t=P_(),a=Je(),o=Ur(),s=kn(),u=o("species"),v=RegExp.prototype;return ny=function(d,h,f,c){var _=o(d),E=!a(function(){var b={};return b[_]=function(){return 7},""[d](b)!==7}),S=E&&!a(function(){var b=!1,I=/a/;return d==="split"&&(I={},I.constructor={},I.constructor[u]=function(){return I},I.flags="",I[_]=/./[_]),I.exec=function(){return b=!0,null},I[_](""),!b});if(!E||!S||f){var w=/./[_],T=h(_,""[d],function(b,I,m,p,y){var g=I.exec;return g===t||g===v.exec?E&&!y?{done:!0,value:e(w,I,m,p)}:{done:!0,value:e(b,m,I,p)}:{done:!1}});r(String.prototype,d,T[0]),r(v,_,T[1])}c&&s(v[_],"sham",!0)},ny}var ay,$6;function qf(){if($6)return ay;$6=1;var e=Nf().charAt;return ay=function(r,t,a){return t+(a?e(r,t).length:1)},ay}var iy,z6;function El(){if(z6)return iy;z6=1;var e=Er(),r=Ir(),t=Xr(),a=$n(),o=P_(),s=TypeError;return iy=function(u,v){var d=u.exec;if(t(d)){var h=e(d,u,v);return h!==null&&r(h),h}if(a(u)==="RegExp")return e(o,u,v);throw new s("RegExp#exec called on incompatible receiver")},iy}var Z6;function nG(){if(Z6)return F6;Z6=1;var e=Er(),r=er(),t=jf(),a=Ir(),o=Mr(),s=Sa(),u=zr(),v=Nt(),d=Rn(),h=qf(),f=os(),c=El(),_=r("".indexOf);return t("match",function(E,S,w){return[function(b){var I=v(this),m=o(b)?d(b,E):void 0;return m?e(m,b,I):new RegExp(b)[E](u(I))},function(T){var b=a(this),I=u(T),m=w(S,b,I);if(m.done)return m.value;var p=u(f(b));if(_(p,"g")===-1)return c(b,I);var y=_(p,"u")!==-1;b.lastIndex=0;for(var g=[],x=0,R;(R=c(b,I))!==null;){var O=u(R[0]);g[x]=O,O===""&&(b.lastIndex=h(I,s(b.lastIndex),y)),x++}return x===0?null:g}]}),F6}var H6={},V6;function aG(){if(V6)return H6;V6=1;var e=ie(),r=Er(),t=Qo(),a=y_(),o=as(),s=Nt(),u=Sa(),v=zr(),d=Ir(),h=Mr(),f=$n(),c=Of(),_=os(),E=Rn(),S=mt(),w=Je(),T=Ur(),b=Af(),I=qf(),m=El(),p=Lt(),y=ht(),g=T("matchAll"),x="RegExp String",R=x+" Iterator",O=p.set,j=p.getterFor(R),k=RegExp.prototype,N=TypeError,D=t("".indexOf),U=t("".matchAll),B=!!U&&!w(function(){U("a",/./)}),H=a(function(M,L,F,V){O(this,{type:R,regexp:M,string:L,global:F,unicode:V,done:!1})},x,function(){var M=j(this);if(M.done)return o(void 0,!0);var L=M.regexp,F=M.string,V=m(L,F);return V===null?(M.done=!0,o(void 0,!0)):M.global?(v(V[0])===""&&(L.lastIndex=I(F,u(L.lastIndex),M.unicode)),o(V,!1)):(M.done=!0,o(V,!1))}),G=function($){var M=d(this),L=v($),F=b(M,RegExp),V=v(_(M)),ae,oe,_e;return ae=new F(F===RegExp?M.source:M,V),oe=!!~D(V,"g"),_e=!!~D(V,"u"),ae.lastIndex=u(M.lastIndex),new H(ae,L,oe,_e)};return e({target:"String",proto:!0,forced:B},{matchAll:function(M){var L=s(this),F,V,ae,oe;if(h(M)){if(c(M)&&(F=v(s(_(M))),!~D(F,"g")))throw new N("`.matchAll` does not allow non-global regexes");if(B)return U(L,M);if(ae=E(M,g),ae===void 0&&y&&f(M)==="RegExp"&&(ae=G),ae)return r(ae,M,L)}else if(B)return U(L,M);return V=v(L),oe=new RegExp(M,"g"),y?r(G,oe,V):oe[g](V)}}),y||g in k||S(k,g,G),H6}var G6={},oy,W6;function BM(){if(W6)return oy;W6=1;var e=mi();return oy=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(e),oy}var K6;function iG(){if(K6)return G6;K6=1;var e=ie(),r=Sf().end,t=BM();return e({target:"String",proto:!0,forced:t},{padEnd:function(o){return r(this,o,arguments.length>1?arguments[1]:void 0)}}),G6}var Y6={},J6;function oG(){if(J6)return Y6;J6=1;var e=ie(),r=Sf().start,t=BM();return e({target:"String",proto:!0,forced:t},{padStart:function(o){return r(this,o,arguments.length>1?arguments[1]:void 0)}}),Y6}var X6={},Q6;function sG(){if(Q6)return X6;Q6=1;var e=ie(),r=er(),t=mn(),a=lt(),o=zr(),s=bt(),u=r([].push),v=r([].join);return e({target:"String",stat:!0},{raw:function(h){var f=t(a(h).raw),c=s(f);if(!c)return"";for(var _=arguments.length,E=[],S=0;;){if(u(E,o(f[S++])),S===c)return v(E,"");S<_&&u(E,o(arguments[S]))}}}),X6}var eP={},rP;function uG(){if(rP)return eP;rP=1;var e=ie(),r=_f();return e({target:"String",proto:!0},{repeat:r}),eP}var tP={},sy,nP;function $M(){if(nP)return sy;nP=1;var e=er(),r=lt(),t=Math.floor,a=e("".charAt),o=e("".replace),s=e("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,v=/\$([$&'`]|\d{1,2})/g;return sy=function(d,h,f,c,_,E){var S=f+d.length,w=c.length,T=v;return _!==void 0&&(_=r(_),T=u),o(E,T,function(b,I){var m;switch(a(I,0)){case"$":return"$";case"&":return d;case"`":return s(h,0,f);case"'":return s(h,S);case"<":m=_[s(I,1,-1)];break;default:var p=+I;if(p===0)return b;if(p>w){var y=t(p/10);return y===0?b:y<=w?c[y-1]===void 0?a(I,1):c[y-1]+a(I,1):b}m=c[p-1]}return m===void 0?"":m})},sy}var aP;function lG(){if(aP)return tP;aP=1;var e=Ca(),r=Er(),t=er(),a=jf(),o=Je(),s=Ir(),u=Xr(),v=Mr(),d=Vt(),h=Sa(),f=zr(),c=Nt(),_=qf(),E=Rn(),S=$M(),w=os(),T=El(),b=Ur(),I=b("replace"),m=Math.max,p=Math.min,y=t([].concat),g=t([].push),x=t("".indexOf),R=t("".slice),O=function(D){return D===void 0?D:String(D)},j=(function(){return"a".replace(/./,"$0")==="$0"})(),k=(function(){return/./[I]?/./[I]("a","$0")==="":!1})(),N=!o(function(){var D=/./;return D.exec=function(){var U=[];return U.groups={a:"7"},U},"".replace(D,"$<a>")!=="7"});return a("replace",function(D,U,B){var H=k?"$":"$0";return[function($,M){var L=c(this),F=v($)?E($,I):void 0;return F?r(F,$,L,M):r(U,f(L),$,M)},function(G,$){var M=s(this),L=f(G);if(typeof $=="string"&&x($,H)===-1&&x($,"$<")===-1){var F=B(U,M,L,$);if(F.done)return F.value}var V=u($);V||($=f($));var ae=f(w(M)),oe=x(ae,"g")!==-1,_e;oe&&(_e=x(ae,"u")!==-1,M.lastIndex=0);for(var he=[],ye;ye=T(M,L),!(ye===null||(g(he,ye),!oe));){var ge=f(ye[0]);ge===""&&(M.lastIndex=_(L,h(M.lastIndex),_e))}for(var Re="",We=0,He=0;He<he.length;He++){ye=he[He];for(var nr=f(ye[0]),ar=m(p(d(ye.index),L.length),0),xr=[],or,lr=1;lr<ye.length;lr++)g(xr,O(ye[lr]));var Ve=ye.groups;if(V){var Ge=y([nr],xr,ar,L);Ve!==void 0&&g(Ge,Ve),or=f(e($,void 0,Ge))}else or=S(nr,L,ar,xr,Ve,$);ar>=We&&(Re+=R(L,We,ar)+or,We=ar+nr.length)}return Re+R(L,We)}]},!N||!j||k),tP}var iP={},oP;function cG(){if(oP)return iP;oP=1;var e=ie(),r=Er(),t=er(),a=Nt(),o=Xr(),s=Mr(),u=Of(),v=zr(),d=Rn(),h=os(),f=$M(),c=Ur(),_=ht(),E=c("replace"),S=TypeError,w=t("".indexOf),T=t("".replace),b=t("".slice),I=Math.max;return e({target:"String",proto:!0},{replaceAll:function(p,y){var g=a(this),x,R,O,j,k,N,D,U,B,H,G=0,$="";if(s(p)){if(x=u(p),x&&(R=v(a(h(p))),!~w(R,"g")))throw new S("`.replaceAll` does not allow non-global regexes");if(O=d(p,E),O)return r(O,p,g,y);if(_&&x)return T(v(g),p,y)}for(j=v(g),k=v(p),N=o(y),N||(y=v(y)),D=k.length,U=I(1,D),B=w(j,k);B!==-1;)H=N?v(y(k,B,j)):f(k,j,B,[],void 0,y),$+=b(j,G,B)+H,G=B+D,B=B+U>j.length?-1:w(j,k,B+U);return G<j.length&&($+=b(j,G)),$}}),iP}var sP={},uP;function fG(){if(uP)return sP;uP=1;var e=Er(),r=jf(),t=Ir(),a=Mr(),o=Nt(),s=AM(),u=zr(),v=Rn(),d=El();return r("search",function(h,f,c){return[function(E){var S=o(this),w=a(E)?v(E,h):void 0;return w?e(w,E,S):new RegExp(E)[h](u(S))},function(_){var E=t(this),S=u(_),w=c(f,E,S);if(w.done)return w.value;var T=E.lastIndex;s(T,0)||(E.lastIndex=0);var b=d(E,S);return s(E.lastIndex,T)||(E.lastIndex=T),b===null?-1:b.index}]}),sP}var lP={},cP;function dG(){if(cP)return lP;cP=1;var e=Er(),r=er(),t=jf(),a=Ir(),o=Mr(),s=Nt(),u=Af(),v=qf(),d=Sa(),h=zr(),f=Rn(),c=El(),_=kf(),E=Je(),S=_.UNSUPPORTED_Y,w=4294967295,T=Math.min,b=r([].push),I=r("".slice),m=!E(function(){var y=/(?:)/,g=y.exec;y.exec=function(){return g.apply(this,arguments)};var x="ab".split(y);return x.length!==2||x[0]!=="a"||x[1]!=="b"}),p="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;return t("split",function(y,g,x){var R="0".split(void 0,0).length?function(O,j){return O===void 0&&j===0?[]:e(g,this,O,j)}:g;return[function(j,k){var N=s(this),D=o(j)?f(j,y):void 0;return D?e(D,j,N,k):e(R,h(N),j,k)},function(O,j){var k=a(this),N=h(O);if(!p){var D=x(R,k,N,j,R!==g);if(D.done)return D.value}var U=u(k,RegExp),B=k.unicode,H=(k.ignoreCase?"i":"")+(k.multiline?"m":"")+(k.unicode?"u":"")+(S?"g":"y"),G=new U(S?"^(?:"+k.source+")":k,H),$=j===void 0?w:j>>>0;if($===0)return[];if(N.length===0)return c(G,N)===null?[N]:[];for(var M=0,L=0,F=[];L<N.length;){G.lastIndex=S?0:L;var V=c(G,S?I(N,L):N),ae;if(V===null||(ae=T(d(G.lastIndex+(S?L:0)),N.length))===M)L=v(N,L,B);else{if(b(F,I(N,M,L)),F.length===$)return F;for(var oe=1;oe<=V.length-1;oe++)if(b(F,V[oe]),F.length===$)return F;L=M=ae}}return b(F,I(N,M)),F}]},p||!m,S),lP}var fP={},dP;function hG(){if(dP)return fP;dP=1;var e=ie(),r=Qo(),t=On().f,a=Sa(),o=zr(),s=q_(),u=Nt(),v=D_(),d=ht(),h=r("".slice),f=Math.min,c=v("startsWith"),_=!d&&!c&&!!(function(){var E=t(String.prototype,"startsWith");return E&&!E.writable})();return e({target:"String",proto:!0,forced:!_&&!c},{startsWith:function(S){var w=o(u(this));s(S);var T=a(f(arguments.length>1?arguments[1]:void 0,w.length)),b=o(S);return h(w,T,T+b.length)===b}}),fP}var hP={},vP;function vG(){if(vP)return hP;vP=1;var e=ie(),r=er(),t=Nt(),a=Vt(),o=zr(),s=r("".slice),u=Math.max,v=Math.min,d=!"".substr||"ab".substr(-1)!=="b";return e({target:"String",proto:!0,forced:d},{substr:function(f,c){var _=o(t(this)),E=_.length,S=a(f),w,T;return S===1/0&&(S=0),S<0&&(S=u(E+S,0)),w=c===void 0?E:a(c),w<=0||w===1/0?"":(T=v(S+w,E),S>=T?"":s(_,S,T))}}),hP}var pP={},gP;function pG(){if(gP)return pP;gP=1;var e=ie(),r=Er(),t=er(),a=Nt(),o=zr(),s=Je(),u=Array,v=t("".charAt),d=t("".charCodeAt),h=t([].join),f="".toWellFormed,c="�",_=f&&s(function(){return r(f,1)!=="1"});return e({target:"String",proto:!0,forced:_},{toWellFormed:function(){var S=o(a(this));if(_)return r(f,S);for(var w=S.length,T=u(w),b=0;b<w;b++){var I=d(S,b);(I&63488)!==55296?T[b]=v(S,b):I>=56320||b+1>=w||(d(S,b+1)&64512)!==56320?T[b]=c:(T[b]=v(S,b),T[++b]=v(S,b))}return h(T,"")}}),pP}var mP={},uy,yP;function L_(){if(yP)return uy;yP=1;var e=Qs().PROPER,r=Je(),t=_l(),a="
";return uy=function(o){return r(function(){return!!t[o]()||a[o]()!==a||e&&t[o].name!==o})},uy}var bP;function gG(){if(bP)return mP;bP=1;var e=ie(),r=uu().trim,t=L_();return e({target:"String",proto:!0,forced:t("trim")},{trim:function(){return r(this)}}),mP}var _P={},SP={},ly,wP;function zM(){if(wP)return ly;wP=1;var e=uu().end,r=L_();return ly=r("trimEnd")?function(){return e(this)}:"".trimEnd,ly}var EP;function mG(){if(EP)return SP;EP=1;var e=ie(),r=zM();return e({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==r},{trimRight:r}),SP}var CP;function yG(){if(CP)return _P;CP=1,mG();var e=ie(),r=zM();return e({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==r},{trimEnd:r}),_P}var xP={},IP={},cy,AP;function ZM(){if(AP)return cy;AP=1;var e=uu().start,r=L_();return cy=r("trimStart")?function(){return e(this)}:"".trimStart,cy}var TP;function bG(){if(TP)return IP;TP=1;var e=ie(),r=ZM();return e({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==r},{trimLeft:r}),IP}var RP;function _G(){if(RP)return xP;RP=1,bG();var e=ie(),r=ZM();return e({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==r},{trimStart:r}),xP}var OP={},fy,kP;function Ia(){if(kP)return fy;kP=1;var e=er(),r=Nt(),t=zr(),a=/"/g,o=e("".replace);return fy=function(s,u,v,d){var h=t(r(s)),f="<"+u;return v!==""&&(f+=" "+v+'="'+o(t(d),a,""")+'"'),f+">"+h+"</"+u+">"},fy}var dy,PP;function Aa(){if(PP)return dy;PP=1;var e=Je();return dy=function(r){return e(function(){var t=""[r]('"');return t!==t.toLowerCase()||t.split('"').length>3})},dy}var NP;function SG(){if(NP)return OP;NP=1;var e=ie(),r=Ia(),t=Aa();return e({target:"String",proto:!0,forced:t("anchor")},{anchor:function(o){return r(this,"a","name",o)}}),OP}var jP={},qP;function wG(){if(qP)return jP;qP=1;var e=ie(),r=Ia(),t=Aa();return e({target:"String",proto:!0,forced:t("big")},{big:function(){return r(this,"big","","")}}),jP}var DP={},LP;function EG(){if(LP)return DP;LP=1;var e=ie(),r=Ia(),t=Aa();return e({target:"String",proto:!0,forced:t("blink")},{blink:function(){return r(this,"blink","","")}}),DP}var MP={},UP;function CG(){if(UP)return MP;UP=1;var e=ie(),r=Ia(),t=Aa();return e({target:"String",proto:!0,forced:t("bold")},{bold:function(){return r(this,"b","","")}}),MP}var FP={},BP;function xG(){if(BP)return FP;BP=1;var e=ie(),r=Ia(),t=Aa();return e({target:"String",proto:!0,forced:t("fixed")},{fixed:function(){return r(this,"tt","","")}}),FP}var $P={},zP;function IG(){if(zP)return $P;zP=1;var e=ie(),r=Ia(),t=Aa();return e({target:"String",proto:!0,forced:t("fontcolor")},{fontcolor:function(o){return r(this,"font","color",o)}}),$P}var ZP={},HP;function AG(){if(HP)return ZP;HP=1;var e=ie(),r=Ia(),t=Aa();return e({target:"String",proto:!0,forced:t("fontsize")},{fontsize:function(o){return r(this,"font","size",o)}}),ZP}var VP={},GP;function TG(){if(GP)return VP;GP=1;var e=ie(),r=Ia(),t=Aa();return e({target:"String",proto:!0,forced:t("italics")},{italics:function(){return r(this,"i","","")}}),VP}var WP={},KP;function RG(){if(KP)return WP;KP=1;var e=ie(),r=Ia(),t=Aa();return e({target:"String",proto:!0,forced:t("link")},{link:function(o){return r(this,"a","href",o)}}),WP}var YP={},JP;function OG(){if(JP)return YP;JP=1;var e=ie(),r=Ia(),t=Aa();return e({target:"String",proto:!0,forced:t("small")},{small:function(){return r(this,"small","","")}}),YP}var XP={},QP;function kG(){if(QP)return XP;QP=1;var e=ie(),r=Ia(),t=Aa();return e({target:"String",proto:!0,forced:t("strike")},{strike:function(){return r(this,"strike","","")}}),XP}var e7={},r7;function PG(){if(r7)return e7;r7=1;var e=ie(),r=Ia(),t=Aa();return e({target:"String",proto:!0,forced:t("sub")},{sub:function(){return r(this,"sub","","")}}),e7}var t7={},n7;function NG(){if(n7)return t7;n7=1;var e=ie(),r=Ia(),t=Aa();return e({target:"String",proto:!0,forced:t("sup")},{sup:function(){return r(this,"sup","","")}}),t7}var a7={},qc={exports:{}},hy,i7;function M_(){if(i7)return hy;i7=1;var e=ir(),r=Je(),t=hf(),a=Qr().NATIVE_ARRAY_BUFFER_VIEWS,o=e.ArrayBuffer,s=e.Int8Array;return hy=!a||!r(function(){s(1)})||!r(function(){new s(-1)})||!t(function(u){new s,new s(null),new s(1.5),new s(u)},!0)||r(function(){return new s(new o(2),1,void 0).length!==1}),hy}var vy,o7;function HM(){if(o7)return vy;o7=1;var e=x_(),r=RangeError;return vy=function(t,a){var o=e(t);if(o%a)throw new r("Wrong offset");return o},vy}var py,s7;function jG(){if(s7)return py;s7=1;var e=Math.round;return py=function(r){var t=e(r);return t<0?0:t>255?255:t&255},py}var gy,u7;function VM(){if(u7)return gy;u7=1;var e=wa();return gy=function(r){var t=e(r);return t==="BigInt64Array"||t==="BigUint64Array"},gy}var my,l7;function U_(){if(l7)return my;l7=1;var e=af(),r=TypeError;return my=function(t){var a=e(t,"number");if(typeof a=="number")throw new r("Can't convert number to bigint");return BigInt(a)},my}var yy,c7;function GM(){if(c7)return yy;c7=1;var e=Ea(),r=Er(),t=R_(),a=lt(),o=bt(),s=tu(),u=ts(),v=p_(),d=VM(),h=Qr().aTypedArrayConstructor,f=U_();return yy=function(_){var E=t(this),S=a(_),w=arguments.length,T=w>1?arguments[1]:void 0,b=T!==void 0,I=u(S),m,p,y,g,x,R,O,j;if(I&&!v(I))for(O=s(S,I),j=O.next,S=[];!(R=r(j,O)).done;)S.push(R.value);for(b&&w>2&&(T=e(T,arguments[2])),p=o(S),y=new(h(E))(p),g=d(y),m=0;p>m;m++)x=b?T(S[m],m):S[m],y[m]=g?f(x):+x;return y},yy}var f7;function Gi(){if(f7)return qc.exports;f7=1;var e=ie(),r=ir(),t=Er(),a=Tr(),o=M_(),s=Qr(),u=bf(),v=xa(),d=_a(),h=kn(),f=T_(),c=Sa(),_=yf(),E=HM(),S=jG(),w=So(),T=Wr(),b=wa(),I=Mr(),m=Yo(),p=Pn(),y=Jn(),g=ni(),x=Xo().f,R=GM(),O=Nn().forEach,j=iu(),k=Jt(),N=Tt(),D=On(),U=yl(),B=Lt(),H=rs(),G=B.get,$=B.set,M=B.enforce,L=N.f,F=D.f,V=r.RangeError,ae=u.ArrayBuffer,oe=ae.prototype,_e=u.DataView,he=s.NATIVE_ARRAY_BUFFER_VIEWS,ye=s.TYPED_ARRAY_TAG,ge=s.TypedArray,Re=s.TypedArrayPrototype,We=s.isTypedArray,He="BYTES_PER_ELEMENT",nr="Wrong length",ar=function(Ge,W){k(Ge,W,{configurable:!0,get:function(){return G(this)[W]}})},xr=function(Ge){var W;return y(oe,Ge)||(W=b(Ge))==="ArrayBuffer"||W==="SharedArrayBuffer"},or=function(Ge,W){return We(Ge)&&!m(W)&&W in Ge&&f(+W)&&W>=0},lr=function(W,Y){return Y=w(Y),or(W,Y)?d(2,W[Y]):F(W,Y)},Ve=function(W,Y,Q){return Y=w(Y),or(W,Y)&&I(Q)&&T(Q,"value")&&!T(Q,"get")&&!T(Q,"set")&&!Q.configurable&&(!T(Q,"writable")||Q.writable)&&(!T(Q,"enumerable")||Q.enumerable)?(W[Y]=Q.value,W):L(W,Y,Q)};return a?(he||(D.f=lr,N.f=Ve,ar(Re,"buffer"),ar(Re,"byteOffset"),ar(Re,"byteLength"),ar(Re,"length")),e({target:"Object",stat:!0,forced:!he},{getOwnPropertyDescriptor:lr,defineProperty:Ve}),qc.exports=function(Ge,W,Y){var Q=Ge.match(/\d+/)[0]/8,re=Ge+(Y?"Clamped":"")+"Array",pe="get"+Ge,le="set"+Ge,Ee=r[re],fe=Ee,Pe=fe&&fe.prototype,ur={},cr=function(Oe,De){var Te=G(Oe);return Te.view[pe](De*Q+Te.byteOffset,!0)},de=function(Oe,De,Te){var vr=G(Oe);vr.view[le](De*Q+vr.byteOffset,Y?S(Te):Te,!0)},Ae=function(Oe,De){L(Oe,De,{get:function(){return cr(this,De)},set:function(Te){return de(this,De,Te)},enumerable:!0})};he?o&&(fe=W(function(Oe,De,Te,vr){return v(Oe,Pe),H((function(){return I(De)?xr(De)?vr!==void 0?new Ee(De,E(Te,Q),vr):Te!==void 0?new Ee(De,E(Te,Q)):new Ee(De):We(De)?U(fe,De):t(R,fe,De):new Ee(_(De))})(),Oe,fe)}),g&&g(fe,ge),O(x(Ee),function(Oe){Oe in fe||h(fe,Oe,Ee[Oe])}),fe.prototype=Pe):(fe=W(function(Oe,De,Te,vr){v(Oe,Pe);var $r=0,Me=0,rr,Xe,Qe;if(!I(De))Qe=_(De),Xe=Qe*Q,rr=new ae(Xe);else if(xr(De)){rr=De,Me=E(Te,Q);var hr=De.byteLength;if(vr===void 0){if(hr%Q)throw new V(nr);if(Xe=hr-Me,Xe<0)throw new V(nr)}else if(Xe=c(vr)*Q,Xe+Me>hr)throw new V(nr);Qe=Xe/Q}else return We(De)?U(fe,De):t(R,fe,De);for($(Oe,{buffer:rr,byteOffset:Me,byteLength:Xe,length:Qe,view:new _e(rr)});$r<Qe;)Ae(Oe,$r++)}),g&&g(fe,ge),Pe=fe.prototype=p(Re)),Pe.constructor!==fe&&h(Pe,"constructor",fe),M(Pe).TypedArrayConstructor=fe,ye&&h(Pe,ye,re);var Ne=fe!==Ee;ur[re]=fe,e({global:!0,constructor:!0,forced:Ne,sham:!he},ur),He in fe||h(fe,He,Q),He in Pe||h(Pe,He,Q),j(re)}):qc.exports=function(){},qc.exports}var d7;function qG(){if(d7)return a7;d7=1;var e=Gi();return e("Float32",function(r){return function(a,o,s){return r(this,a,o,s)}}),a7}var h7={},v7;function DG(){if(v7)return h7;v7=1;var e=Gi();return e("Float64",function(r){return function(a,o,s){return r(this,a,o,s)}}),h7}var p7={},g7;function LG(){if(g7)return p7;g7=1;var e=Gi();return e("Int8",function(r){return function(a,o,s){return r(this,a,o,s)}}),p7}var m7={},y7;function MG(){if(y7)return m7;y7=1;var e=Gi();return e("Int16",function(r){return function(a,o,s){return r(this,a,o,s)}}),m7}var b7={},_7;function UG(){if(_7)return b7;_7=1;var e=Gi();return e("Int32",function(r){return function(a,o,s){return r(this,a,o,s)}}),b7}var S7={},w7;function FG(){if(w7)return S7;w7=1;var e=Gi();return e("Uint8",function(r){return function(a,o,s){return r(this,a,o,s)}}),S7}var E7={},C7;function BG(){if(C7)return E7;C7=1;var e=Gi();return e("Uint8",function(r){return function(a,o,s){return r(this,a,o,s)}},!0),E7}var x7={},I7;function $G(){if(I7)return x7;I7=1;var e=Gi();return e("Uint16",function(r){return function(a,o,s){return r(this,a,o,s)}}),x7}var A7={},T7;function zG(){if(T7)return A7;T7=1;var e=Gi();return e("Uint32",function(r){return function(a,o,s){return r(this,a,o,s)}}),A7}var R7={},O7;function ZG(){if(O7)return R7;O7=1;var e=Qr(),r=bt(),t=Vt(),a=e.aTypedArray,o=e.exportTypedArrayMethod;return o("at",function(u){var v=a(this),d=r(v),h=t(u),f=h>=0?h:d+h;return f<0||f>=d?void 0:v[f]}),R7}var k7={},P7;function HG(){if(P7)return k7;P7=1;var e=er(),r=Qr(),t=YL(),a=e(t),o=r.aTypedArray,s=r.exportTypedArrayMethod;return s("copyWithin",function(v,d){return a(o(this),v,d,arguments.length>2?arguments[2]:void 0)}),k7}var N7={},j7;function VG(){if(j7)return N7;j7=1;var e=Qr(),r=Nn().every,t=e.aTypedArray,a=e.exportTypedArrayMethod;return a("every",function(s){return r(t(this),s,arguments.length>1?arguments[1]:void 0)}),N7}var q7={},D7;function GG(){if(D7)return q7;D7=1;var e=Qr(),r=g_(),t=U_(),a=wa(),o=Er(),s=er(),u=Je(),v=e.aTypedArray,d=e.exportTypedArrayMethod,h=s("".slice),f=u(function(){var c=0;return new Int8Array(2).fill({valueOf:function(){return c++}}),c!==1});return d("fill",function(_){var E=arguments.length;v(this);var S=h(a(this),0,3)==="Big"?t(_):+_;return o(r,this,S,E>1?arguments[1]:void 0,E>2?arguments[2]:void 0)},f),q7}var L7={},by,M7;function WG(){if(M7)return by;M7=1;var e=yl(),r=Qr().getTypedArrayConstructor;return by=function(t,a){return e(r(t),a)},by}var U7;function KG(){if(U7)return L7;U7=1;var e=Qr(),r=Nn().filter,t=WG(),a=e.aTypedArray,o=e.exportTypedArrayMethod;return o("filter",function(u){var v=r(a(this),u,arguments.length>1?arguments[1]:void 0);return t(this,v)}),L7}var F7={},B7;function YG(){if(B7)return F7;B7=1;var e=Qr(),r=Nn().find,t=e.aTypedArray,a=e.exportTypedArrayMethod;return a("find",function(s){return r(t(this),s,arguments.length>1?arguments[1]:void 0)}),F7}var $7={},z7;function JG(){if(z7)return $7;z7=1;var e=Qr(),r=Nn().findIndex,t=e.aTypedArray,a=e.exportTypedArrayMethod;return a("findIndex",function(s){return r(t(this),s,arguments.length>1?arguments[1]:void 0)}),$7}var Z7={},H7;function XG(){if(H7)return Z7;H7=1;var e=Qr(),r=df().findLast,t=e.aTypedArray,a=e.exportTypedArrayMethod;return a("findLast",function(s){return r(t(this),s,arguments.length>1?arguments[1]:void 0)}),Z7}var V7={},G7;function QG(){if(G7)return V7;G7=1;var e=Qr(),r=df().findLastIndex,t=e.aTypedArray,a=e.exportTypedArrayMethod;return a("findLastIndex",function(s){return r(t(this),s,arguments.length>1?arguments[1]:void 0)}),V7}var W7={},K7;function eW(){if(K7)return W7;K7=1;var e=Qr(),r=Nn().forEach,t=e.aTypedArray,a=e.exportTypedArrayMethod;return a("forEach",function(s){r(t(this),s,arguments.length>1?arguments[1]:void 0)}),W7}var Y7={},J7;function rW(){if(J7)return Y7;J7=1;var e=M_(),r=Qr().exportTypedArrayStaticMethod,t=GM();return r("from",t,e),Y7}var X7={},Q7;function tW(){if(Q7)return X7;Q7=1;var e=Qr(),r=dl().includes,t=e.aTypedArray,a=e.exportTypedArrayMethod;return a("includes",function(s){return r(t(this),s,arguments.length>1?arguments[1]:void 0)}),X7}var eN={},rN;function nW(){if(rN)return eN;rN=1;var e=Qr(),r=dl().indexOf,t=e.aTypedArray,a=e.exportTypedArrayMethod;return a("indexOf",function(s){return r(t(this),s,arguments.length>1?arguments[1]:void 0)}),eN}var tN={},nN;function aW(){if(nN)return tN;nN=1;var e=ir(),r=Je(),t=er(),a=Qr(),o=vf(),s=Ur(),u=s("iterator"),v=e.Uint8Array,d=t(o.values),h=t(o.keys),f=t(o.entries),c=a.aTypedArray,_=a.exportTypedArrayMethod,E=v&&v.prototype,S=!r(function(){E[u].call([1])}),w=!!E&&E.values&&E[u]===E.values&&E.values.name==="values",T=function(){return d(c(this))};return _("entries",function(){return f(c(this))},S),_("keys",function(){return h(c(this))},S),_("values",T,S||!w,{name:"values"}),_(u,T,S||!w,{name:"values"}),tN}var aN={},iN;function iW(){if(iN)return aN;iN=1;var e=Qr(),r=er(),t=e.aTypedArray,a=e.exportTypedArrayMethod,o=r([].join);return a("join",function(u){return o(t(this),u)}),aN}var oN={},sN;function oW(){if(sN)return oN;sN=1;var e=Qr(),r=Ca(),t=eM(),a=e.aTypedArray,o=e.exportTypedArrayMethod;return o("lastIndexOf",function(u){var v=arguments.length;return r(t,a(this),v>1?[u,arguments[1]]:[u])}),oN}var uN={},lN;function sW(){if(lN)return uN;lN=1;var e=Qr(),r=Nn().map,t=e.aTypedArray,a=e.getTypedArrayConstructor,o=e.exportTypedArrayMethod;return o("map",function(u){return r(t(this),u,arguments.length>1?arguments[1]:void 0,function(v,d){return new(a(v))(d)})}),uN}var cN={},fN;function uW(){if(fN)return cN;fN=1;var e=Qr(),r=M_(),t=e.aTypedArrayConstructor,a=e.exportTypedArrayStaticMethod;return a("of",function(){for(var s=0,u=arguments.length,v=new(t(this))(u);u>s;)v[s]=arguments[s++];return v},r),cN}var dN={},hN;function lW(){if(hN)return dN;hN=1;var e=Qr(),r=pf().left,t=e.aTypedArray,a=e.exportTypedArrayMethod;return a("reduce",function(s){var u=arguments.length;return r(t(this),s,u,u>1?arguments[1]:void 0)}),dN}var vN={},pN;function cW(){if(pN)return vN;pN=1;var e=Qr(),r=pf().right,t=e.aTypedArray,a=e.exportTypedArrayMethod;return a("reduceRight",function(s){var u=arguments.length;return r(t(this),s,u,u>1?arguments[1]:void 0)}),vN}var gN={},mN;function fW(){if(mN)return gN;mN=1;var e=Qr(),r=e.aTypedArray,t=e.exportTypedArrayMethod,a=Math.floor;return t("reverse",function(){for(var s=this,u=r(s).length,v=a(u/2),d=0,h;d<v;)h=s[d],s[d++]=s[--u],s[u]=h;return s}),gN}var yN={},bN;function dW(){if(bN)return yN;bN=1;var e=ir(),r=Er(),t=Qr(),a=bt(),o=HM(),s=lt(),u=Je(),v=e.RangeError,d=e.Int8Array,h=d&&d.prototype,f=h&&h.set,c=t.aTypedArray,_=t.exportTypedArrayMethod,E=!u(function(){var w=new Uint8ClampedArray(2);return r(f,w,{length:1,0:3},1),w[1]!==3}),S=E&&t.NATIVE_ARRAY_BUFFER_VIEWS&&u(function(){var w=new d(2);return w.set(1),w.set("2",1),w[0]!==0||w[1]!==2});return _("set",function(T){c(this);var b=o(arguments.length>1?arguments[1]:void 0,1),I=s(T);if(E)return r(f,this,I,b);var m=this.length,p=a(I),y=0;if(p+b>m)throw new v("Wrong length");for(;y<p;)this[b+y]=I[y++]},!E||S),yN}var _N={},SN;function hW(){if(SN)return _N;SN=1;var e=Qr(),r=Je(),t=Ba(),a=e.aTypedArray,o=e.getTypedArrayConstructor,s=e.exportTypedArrayMethod,u=r(function(){new Int8Array(1).slice()});return s("slice",function(d,h){for(var f=t(a(this),d,h),c=o(this),_=0,E=f.length,S=new c(E);E>_;)S[_]=f[_++];return S},u),_N}var wN={},EN;function vW(){if(EN)return wN;EN=1;var e=Qr(),r=Nn().some,t=e.aTypedArray,a=e.exportTypedArrayMethod;return a("some",function(s){return r(t(this),s,arguments.length>1?arguments[1]:void 0)}),wN}var CN={},xN;function pW(){if(xN)return CN;xN=1;var e=ir(),r=Qo(),t=Je(),a=Gr(),o=S_(),s=Qr(),u=rM(),v=tM(),d=yi(),h=w_(),f=s.aTypedArray,c=s.exportTypedArrayMethod,_=e.Uint16Array,E=_&&r(_.prototype.sort),S=!!E&&!(t(function(){E(new _(2),null)})&&t(function(){E(new _(2),{})})),w=!!E&&!t(function(){if(d)return d<74;if(u)return u<67;if(v)return!0;if(h)return h<602;var b=new _(516),I=Array(516),m,p;for(m=0;m<516;m++)p=m%4,b[m]=515-m,I[m]=m-2*p+3;for(E(b,function(y,g){return(y/4|0)-(g/4|0)}),m=0;m<516;m++)if(b[m]!==I[m])return!0}),T=function(b){return function(I,m){return b!==void 0?+b(I,m)||0:m!==m?-1:I!==I?1:I===0&&m===0?1/I>0&&1/m<0?1:-1:I>m}};return c("sort",function(I){return I!==void 0&&a(I),w?E(this,I):o(f(this),T(I))},!w||S),CN}var IN={},AN;function gW(){if(AN)return IN;AN=1;var e=Qr(),r=Sa(),t=$i(),a=e.aTypedArray,o=e.getTypedArrayConstructor,s=e.exportTypedArrayMethod;return s("subarray",function(v,d){var h=a(this),f=h.length,c=t(v,f),_=o(h);return new _(h.buffer,h.byteOffset+c*h.BYTES_PER_ELEMENT,r((d===void 0?f:t(d,f))-c))}),IN}var TN={},RN;function mW(){if(RN)return TN;RN=1;var e=ir(),r=Ca(),t=Qr(),a=Je(),o=Ba(),s=e.Int8Array,u=t.aTypedArray,v=t.exportTypedArrayMethod,d=[].toLocaleString,h=!!s&&a(function(){d.call(new s(1))}),f=a(function(){return[1,2].toLocaleString()!==new s([1,2]).toLocaleString()})||!a(function(){s.prototype.toLocaleString.call([1,2])});return v("toLocaleString",function(){return r(d,h?o(u(this)):u(this),o(arguments))},f),TN}var ON={},kN;function yW(){if(kN)return ON;kN=1;var e=nM(),r=Qr(),t=r.aTypedArray,a=r.exportTypedArrayMethod,o=r.getTypedArrayConstructor;return a("toReversed",function(){return e(t(this),o(this))}),ON}var PN={},NN;function bW(){if(NN)return PN;NN=1;var e=Qr(),r=er(),t=Gr(),a=yl(),o=e.aTypedArray,s=e.getTypedArrayConstructor,u=e.exportTypedArrayMethod,v=r(e.TypedArrayPrototype.sort);return u("toSorted",function(h){h!==void 0&&t(h);var f=o(this),c=a(s(f),f);return v(c,h)}),PN}var jN={},qN;function _W(){if(qN)return jN;qN=1;var e=Qr().exportTypedArrayMethod,r=Je(),t=ir(),a=er(),o=t.Uint8Array,s=o&&o.prototype||{},u=[].toString,v=a([].join);r(function(){u.call({})})&&(u=function(){return v(this)});var d=s.toString!==u;return e("toString",u,d),jN}var DN={},LN;function SW(){if(LN)return DN;LN=1;var e=iM(),r=Qr(),t=VM(),a=Vt(),o=U_(),s=r.aTypedArray,u=r.getTypedArrayConstructor,v=r.exportTypedArrayMethod,d=(function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(f){return f===8}})(),h=d&&(function(){try{new Int8Array(1).with(-.5,1)}catch{return!0}})();return v("with",function(f,c){var _=s(this),E=a(f),S=t(_)?o(c):+c;return e(_,u(_),E,S)},!d||h),DN}var MN={},_y,UN;function WM(){if(UN)return _y;UN=1;var e=Mr(),r=String,t=TypeError;return _y=function(a){if(a===void 0||e(a))return a;throw new t(r(a)+" is not an object or undefined")},_y}var Sy,FN;function Df(){if(FN)return Sy;FN=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=e+"+/",t=e+"-_",a=function(o){for(var s={},u=0;u<64;u++)s[o.charAt(u)]=u;return s};return Sy={i2c:r,c2i:a(r),i2cUrl:t,c2iUrl:a(t)},Sy}var wy,BN;function KM(){if(BN)return wy;BN=1;var e=TypeError;return wy=function(r){var t=r&&r.alphabet;if(t===void 0||t==="base64"||t==="base64url")return t||"base64";throw new e("Incorrect `alphabet` option")},wy}var Ey,$N;function YM(){if($N)return Ey;$N=1;var e=ir(),r=er(),t=WM(),a=Pf(),o=Wr(),s=Df(),u=KM(),v=bl(),d=s.c2i,h=s.c2iUrl,f=e.SyntaxError,c=e.TypeError,_=r("".charAt),E=function(T,b){for(var I=T.length;b<I;b++){var m=_(T,b);if(m!==" "&&m!==" "&&m!==`
|
|
5
|
+
`&&m!=="\f"&&m!=="\r")break}return b},S=function(T,b,I){var m=T.length;m<4&&(T+=m===2?"AA":"A");var p=(b[_(T,0)]<<18)+(b[_(T,1)]<<12)+(b[_(T,2)]<<6)+b[_(T,3)],y=[p>>16&255,p>>8&255,p&255];if(m===2){if(I&&y[1]!==0)throw new f("Extra bits");return[y[0]]}if(m===3){if(I&&y[2]!==0)throw new f("Extra bits");return[y[0],y[1]]}return y},w=function(T,b,I){for(var m=b.length,p=0;p<m;p++)T[I+p]=b[p];return I+m};return Ey=function(T,b,I,m){a(T),t(b);var p=u(b)==="base64"?d:h,y=b?b.lastChunkHandling:void 0;if(y===void 0&&(y="loose"),y!=="loose"&&y!=="strict"&&y!=="stop-before-partial")throw new c("Incorrect `lastChunkHandling` option");I&&v(I.buffer);var g=T.length,x=I||[],R=0,O=0,j="",k=0;if(m)for(;;){if(k=E(T,k),k===g){if(j.length>0){if(y==="stop-before-partial")break;if(y==="loose"){if(j.length===1)throw new f("Malformed padding: exactly one additional character");R=w(x,S(j,p,!1),R)}else throw new f("Missing padding")}O=g;break}var N=_(T,k);if(++k,N==="="){if(j.length<2)throw new f("Padding is too early");if(k=E(T,k),j.length===2){if(k===g){if(y==="stop-before-partial")break;throw new f("Malformed padding: only one =")}_(T,k)==="="&&(++k,k=E(T,k))}if(k<g)throw new f("Unexpected character after padding");R=w(x,S(j,p,y==="strict"),R),O=g;break}if(!o(p,N))throw new f("Unexpected character");var D=m-R;if(D===1&&j.length===2||D===2&&j.length===3||(j+=N,j.length===4&&(R=w(x,S(j,p,!1),R),j="",O=k,R===m)))break}return{bytes:x,read:O,written:R}},Ey}var zN;function wW(){if(zN)return MN;zN=1;var e=ie(),r=ir(),t=yl(),a=YM(),o=r.Uint8Array,s=!o||!o.fromBase64||!(function(){try{o.fromBase64("a");return}catch{}try{o.fromBase64("",null)}catch{return!0}})();return o&&e({target:"Uint8Array",stat:!0,forced:s},{fromBase64:function(v){var d=a(v,arguments.length>1?arguments[1]:void 0,null,9007199254740991);return t(o,d.bytes)}}),MN}var ZN={},Cy,HN;function JM(){if(HN)return Cy;HN=1;var e=ir(),r=er(),t=e.Uint8Array,a=e.SyntaxError,o=e.parseInt,s=Math.min,u=/[^\da-f]/i,v=r(u.exec),d=r("".slice);return Cy=function(h,f){var c=h.length;if(c%2!==0)throw new a("String should be an even number of characters");for(var _=f?s(f.length,c/2):c/2,E=f||new t(_),S=0,w=0;w<_;){var T=d(h,S,S+=2);if(v(u,T))throw new a("String should only contain hex characters");E[w++]=o(T,16)}return{bytes:E,read:S}},Cy}var VN;function EW(){if(VN)return ZN;VN=1;var e=ie(),r=ir(),t=Pf(),a=JM();return r.Uint8Array&&e({target:"Uint8Array",stat:!0},{fromHex:function(s){return a(t(s)).bytes}}),ZN}var GN={},xy,WN;function Lf(){if(WN)return xy;WN=1;var e=wa(),r=TypeError;return xy=function(t){if(e(t)==="Uint8Array")return t;throw new r("Argument is not an Uint8Array")},xy}var KN;function CW(){if(KN)return GN;KN=1;var e=ie(),r=ir(),t=YM(),a=Lf(),o=r.Uint8Array,s=!o||!o.prototype.setFromBase64||!(function(){var u=new o([255,255,255,255,255]);try{u.setFromBase64("",null);return}catch{}try{u.setFromBase64("a");return}catch{}try{u.setFromBase64("MjYyZg===")}catch{return u[0]===50&&u[1]===54&&u[2]===50&&u[3]===255&&u[4]===255}})();return o&&e({target:"Uint8Array",proto:!0,forced:s},{setFromBase64:function(v){a(this);var d=t(v,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:d.read,written:d.written}}}),GN}var YN={},JN;function xW(){if(JN)return YN;JN=1;var e=ie(),r=ir(),t=Pf(),a=Lf(),o=bl(),s=JM();return r.Uint8Array&&e({target:"Uint8Array",proto:!0},{setFromHex:function(v){a(this),t(v),o(this.buffer);var d=s(v,this).read;return{read:d,written:d/2}}}),YN}var XN={},QN;function IW(){if(QN)return XN;QN=1;var e=ie(),r=ir(),t=er(),a=WM(),o=Lf(),s=bl(),u=Df(),v=KM(),d=u.i2c,h=u.i2cUrl,f=t("".charAt),c=r.Uint8Array,_=!c||!c.prototype.toBase64||!(function(){try{var E=new c;E.toBase64(null)}catch{return!0}})();return c&&e({target:"Uint8Array",proto:!0,forced:_},{toBase64:function(){var S=o(this),w=arguments.length?a(arguments[0]):void 0,T=v(w)==="base64"?d:h,b=!!w&&!!w.omitPadding;s(this.buffer);for(var I="",m=0,p=S.length,y,g=function(x){return f(T,y>>6*x&63)};m+2<p;m+=3)y=(S[m]<<16)+(S[m+1]<<8)+S[m+2],I+=g(3)+g(2)+g(1)+g(0);return m+2===p?(y=(S[m]<<16)+(S[m+1]<<8),I+=g(3)+g(2)+g(1)+(b?"":"=")):m+1===p&&(y=S[m]<<16,I+=g(3)+g(2)+(b?"":"==")),I}}),XN}var e9={},r9;function AW(){if(r9)return e9;r9=1;var e=ie(),r=ir(),t=er(),a=Lf(),o=bl(),s=t(1.1.toString),u=r.Uint8Array,v=!u||!u.prototype.toHex||!(function(){try{var d=new u([255,255,255,255,255,255,255,255]);return d.toHex()==="ffffffffffffffff"}catch{return!1}})();return u&&e({target:"Uint8Array",proto:!0,forced:v},{toHex:function(){a(this),o(this.buffer);for(var h="",f=0,c=this.length;f<c;f++){var _=s(this[f],16);h+=_.length===1?"0"+_:_}return h}}),e9}var t9={},n9;function TW(){if(n9)return t9;n9=1;var e=ie(),r=er(),t=zr(),a=String.fromCharCode,o=r("".charAt),s=r(/./.exec),u=r("".slice),v=/^[\da-f]{2}$/i,d=/^[\da-f]{4}$/i;return e({global:!0},{unescape:function(f){for(var c=t(f),_="",E=c.length,S=0,w,T;S<E;){if(w=o(c,S++),w==="%"){if(o(c,S)==="u"){if(T=u(c,S+1,S+5),s(d,T)){_+=a(parseInt(T,16)),S+=5;continue}}else if(T=u(c,S,S+2),s(v,T)){_+=a(parseInt(T,16)),S+=2;continue}}_+=w}return _}}),t9}var a9={},i9={},Iy,o9;function XM(){if(o9)return Iy;o9=1;var e=er(),r=Hi(),t=is().getWeakData,a=xa(),o=Ir(),s=Bi(),u=Mr(),v=ln(),d=Nn(),h=Wr(),f=Lt(),c=f.set,_=f.getterFor,E=d.find,S=d.findIndex,w=e([].splice),T=0,b=function(p){return p.frozen||(p.frozen=new I)},I=function(){this.entries=[]},m=function(p,y){return E(p.entries,function(g){return g[0]===y})};return I.prototype={get:function(p){var y=m(this,p);if(y)return y[1]},has:function(p){return!!m(this,p)},set:function(p,y){var g=m(this,p);g?g[1]=y:this.entries.push([p,y])},delete:function(p){var y=S(this.entries,function(g){return g[0]===p});return~y&&w(this.entries,y,1),!!~y}},Iy={getConstructor:function(p,y,g,x){var R=p(function(N,D){a(N,O),c(N,{type:y,id:T++,frozen:null}),s(D)||v(D,N[x],{that:N,AS_ENTRIES:g})}),O=R.prototype,j=_(y),k=function(N,D,U){var B=j(N),H=t(o(D),!0);return H===!0?b(B).set(D,U):H[B.id]=U,N};return r(O,{delete:function(N){var D=j(this);if(!u(N))return!1;var U=t(N);return U===!0?b(D).delete(N):U&&h(U,D.id)&&delete U[D.id]},has:function(D){var U=j(this);if(!u(D))return!1;var B=t(D);return B===!0?b(U).has(D):B&&h(B,U.id)}}),r(O,g?{get:function(D){var U=j(this);if(u(D)){var B=t(D);if(B===!0)return b(U).get(D);if(B)return B[U.id]}},set:function(D,U){return k(this,D,U)}}:{add:function(D){return k(this,D,!0)}}),R}},Iy}var s9;function RW(){if(s9)return i9;s9=1;var e=su(),r=ir(),t=er(),a=Hi(),o=is(),s=Ef(),u=XM(),v=Mr(),d=Lt().enforce,h=Je(),f=qL(),c=Object,_=Array.isArray,E=c.isExtensible,S=c.isFrozen,w=c.isSealed,T=c.freeze,b=c.seal,I=!r.ActiveXObject&&"ActiveXObject"in r,m,p=function(N){return function(){return N(this,arguments.length?arguments[0]:void 0)}},y=s("WeakMap",p,u),g=y.prototype,x=t(g.set),R=function(){return e&&h(function(){var N=T([]);return x(new y,N,1),!S(N)})};if(f)if(I){m=u.getConstructor(p,"WeakMap",!0),o.enable();var O=t(g.delete),j=t(g.has),k=t(g.get);a(g,{delete:function(N){if(v(N)&&!E(N)){var D=d(this);return D.frozen||(D.frozen=new m),O(this,N)||D.frozen.delete(N)}return O(this,N)},has:function(D){if(v(D)&&!E(D)){var U=d(this);return U.frozen||(U.frozen=new m),j(this,D)||U.frozen.has(D)}return j(this,D)},get:function(D){if(v(D)&&!E(D)){var U=d(this);return U.frozen||(U.frozen=new m),j(this,D)?k(this,D):U.frozen.get(D)}return k(this,D)},set:function(D,U){if(v(D)&&!E(D)){var B=d(this);B.frozen||(B.frozen=new m),j(this,D)?x(this,D,U):B.frozen.set(D,U)}else x(this,D,U);return this}})}else R()&&a(g,{set:function(D,U){var B;return _(D)&&(S(D)?B=T:w(D)&&(B=b)),x(this,D,U),B&&B(D),this}});return i9}var u9;function OW(){return u9||(u9=1,RW()),a9}var l9={},c9={},f9;function kW(){if(f9)return c9;f9=1;var e=Ef(),r=XM();return e("WeakSet",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},r),c9}var d9;function PW(){return d9||(d9=1,kW()),l9}var h9={},v9;function NW(){if(v9)return h9;v9=1;var e=ie(),r=ir(),t=Vr(),a=er(),o=Er(),s=Je(),u=zr(),v=$a(),d=Df().c2i,h=/[^\d+/a-z]/i,f=/[\t\n\f\r ]+/g,c=/[=]{1,2}$/,_=t("atob"),E=String.fromCharCode,S=a("".charAt),w=a("".replace),T=a(h.exec),b=!!_&&!s(function(){return _("aGk=")!=="hi"}),I=b&&s(function(){return _(" ")!==""}),m=b&&!s(function(){_("a")}),p=b&&!s(function(){_()}),y=b&&_.length!==1,g=!b||I||m||p||y;return e({global:!0,bind:!0,enumerable:!0,forced:g},{atob:function(R){if(v(arguments.length,1),b&&!I&&!m)return o(_,r,R);var O=w(u(R),f,""),j="",k=0,N=0,D,U,B;if(O.length%4===0&&(O=w(O,c,"")),D=O.length,D%4===1||T(h,O))throw new(t("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;k<D;)U=S(O,k++),B=N%4?B*64+d[U]:d[U],N++%4&&(j+=E(255&B>>(-2*N&6)));return j}}),h9}var p9={},g9;function jW(){if(g9)return p9;g9=1;var e=ie(),r=ir(),t=Vr(),a=er(),o=Er(),s=Je(),u=zr(),v=$a(),d=Df().i2c,h=t("btoa"),f=a("".charAt),c=a("".charCodeAt),_=!!h&&!s(function(){return h("hi")!=="aGk="}),E=_&&!s(function(){h()}),S=_&&s(function(){return h(null)!=="bnVsbA=="}),w=_&&h.length!==1;return e({global:!0,bind:!0,enumerable:!0,forced:!_||E||S||w},{btoa:function(b){if(v(arguments.length,1),_)return o(h,r,u(b));for(var I=u(b),m="",p=0,y=d,g,x;f(I,p)||(y="=",p%1);){if(x=c(I,p+=3/4),x>255)throw new(t("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");g=g<<8|x,m+=f(y,63&g>>8-p%1*8)}return m}}),p9}var m9={},Ay,y9;function QM(){return y9||(y9=1,Ay={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}),Ay}var Ty,b9;function eU(){if(b9)return Ty;b9=1;var e=of(),r=e("span").classList,t=r&&r.constructor&&r.constructor.prototype;return Ty=t===Object.prototype?void 0:t,Ty}var _9;function qW(){if(_9)return m9;_9=1;var e=ir(),r=QM(),t=eU(),a=XL(),o=kn(),s=function(v){if(v&&v.forEach!==a)try{o(v,"forEach",a)}catch{v.forEach=a}};for(var u in r)r[u]&&s(e[u]&&e[u].prototype);return s(t),m9}var S9={},w9;function DW(){if(w9)return S9;w9=1;var e=ir(),r=QM(),t=eU(),a=vf(),o=kn(),s=fa(),u=Ur(),v=u("iterator"),d=a.values,h=function(c,_){if(c){if(c[v]!==d)try{o(c,v,d)}catch{c[v]=d}if(s(c,_,!0),r[_]){for(var E in a)if(c[E]!==a[E])try{o(c,E,a[E])}catch{c[E]=a[E]}}}};for(var f in r)h(e[f]&&e[f].prototype,f);return h(t,"DOMTokenList"),S9}var E9={},Ry,C9;function rU(){return C9||(C9=1,Ry={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}),Ry}var x9;function LW(){if(x9)return E9;x9=1;var e=ie(),r=Vr(),t=dM(),a=Je(),o=Pn(),s=_a(),u=Tt().f,v=mt(),d=Jt(),h=Wr(),f=xa(),c=Ir(),_=KL(),E=ru(),S=rU(),w=d_(),T=Lt(),b=Tr(),I=ht(),m="DOMException",p="DATA_CLONE_ERR",y=r("Error"),g=r(m)||(function(){try{var ge=r("MessageChannel")||t("worker_threads").MessageChannel;new ge().port1.postMessage(new WeakMap)}catch(Re){if(Re.name===p&&Re.code===25)return Re.constructor}})(),x=g&&g.prototype,R=y.prototype,O=T.set,j=T.getterFor(m),k="stack"in new y(m),N=function(ge){return h(S,ge)&&S[ge].m?S[ge].c:0},D=function(){f(this,U);var Re=arguments.length,We=E(Re<1?void 0:arguments[0]),He=E(Re<2?void 0:arguments[1],"Error"),nr=N(He);if(O(this,{type:m,name:He,message:We,code:nr}),b||(this.name=He,this.message=We,this.code=nr),k){var ar=new y(We);ar.name=m,u(this,"stack",s(1,w(ar.stack,1)))}},U=D.prototype=o(R),B=function(ge){return{enumerable:!0,configurable:!0,get:ge}},H=function(ge){return B(function(){return j(this)[ge]})};b&&(d(U,"code",H("code")),d(U,"message",H("message")),d(U,"name",H("name"))),u(U,"constructor",s(1,D));var G=a(function(){return!(new g instanceof y)}),$=G||a(function(){return R.toString!==_||String(new g(1,2))!=="2: 1"}),M=G||a(function(){return new g(1,"DataCloneError").code!==25}),L=G||g[p]!==25||x[p]!==25,F=I?$||M||L:G;e({global:!0,constructor:!0,forced:F},{DOMException:F?D:g});var V=r(m),ae=V.prototype;$&&(I||g===V)&&v(ae,"toString",_),M&&b&&g===V&&d(ae,"code",B(function(){return N(c(this).name)}));for(var oe in S)if(h(S,oe)){var _e=S[oe],he=_e.s,ye=s(6,_e.c);h(V,he)||u(V,he,ye),h(ae,he)||u(ae,he,ye)}return E9}var I9={},A9;function MW(){if(A9)return I9;A9=1;var e=ie(),r=ir(),t=Vr(),a=_a(),o=Tt().f,s=Wr(),u=xa(),v=rs(),d=ru(),h=rU(),f=d_(),c=Tr(),_=ht(),E="DOMException",S=t("Error"),w=t(E),T=function(){u(this,b);var D=arguments.length,U=d(D<1?void 0:arguments[0]),B=d(D<2?void 0:arguments[1],"Error"),H=new w(U,B),G=new S(U);return G.name=E,o(H,"stack",a(1,f(G.stack,1))),v(H,this,T),H},b=T.prototype=w.prototype,I="stack"in new S(E),m="stack"in new w(1,2),p=w&&c&&Object.getOwnPropertyDescriptor(r,E),y=!!p&&!(p.writable&&p.configurable),g=I&&!y&&!m;e({global:!0,constructor:!0,forced:_||g},{DOMException:g?T:w});var x=t(E),R=x.prototype;if(R.constructor!==x){_||o(R,"constructor",a(1,x));for(var O in h)if(s(h,O)){var j=h[O],k=j.s;s(x,k)||o(x,k,a(6,j.c))}}return I9}var T9={},R9;function UW(){if(R9)return T9;R9=1;var e=Vr(),r=fa(),t="DOMException";return r(e(t),t),T9}var O9={},k9={},P9;function FW(){if(P9)return k9;P9=1;var e=ie(),r=ir(),t=Tf().clear;return e({global:!0,bind:!0,enumerable:!0,forced:r.clearImmediate!==t},{clearImmediate:t}),k9}var N9={},Oy,j9;function F_(){if(j9)return Oy;j9=1;var e=ir(),r=Ca(),t=Xr(),a=gf(),o=mi(),s=Ba(),u=$a(),v=e.Function,d=/MSIE .\./.test(o)||a==="BUN"&&(function(){var h=e.Bun.version.split(".");return h.length<3||h[0]==="0"&&(h[1]<3||h[1]==="3"&&h[2]==="0")})();return Oy=function(h,f){var c=f?2:1;return d?function(_,E){var S=u(arguments.length,1)>c,w=t(_)?_:v(_),T=S?s(arguments,c):[],b=S?function(){r(w,this,T)}:w;return f?h(b,E):h(b)}:h},Oy}var q9;function BW(){if(q9)return N9;q9=1;var e=ie(),r=ir(),t=Tf().set,a=F_(),o=r.setImmediate?a(t,!1):t;return e({global:!0,bind:!0,enumerable:!0,forced:r.setImmediate!==o},{setImmediate:o}),N9}var D9;function $W(){return D9||(D9=1,FW(),BW()),O9}var L9={},M9;function zW(){if(M9)return L9;M9=1;var e=ie(),r=ir(),t=kM(),a=Gr(),o=$a(),s=Je(),u=Tr(),v=s(function(){return u&&Object.getOwnPropertyDescriptor(r,"queueMicrotask").value.length!==1});return e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:v},{queueMicrotask:function(h){o(arguments.length,1),t(a(h))}}),L9}var U9={},F9;function ZW(){if(F9)return U9;F9=1;var e=ie(),r=ir(),t=Jt(),a=Tr(),o=TypeError,s=Object.defineProperty,u=r.self!==r;try{if(a){var v=Object.getOwnPropertyDescriptor(r,"self");(u||!v||!v.get||!v.enumerable)&&t(r,"self",{get:function(){return r},set:function(h){if(this!==r)throw new o("Illegal invocation");s(r,"self",{value:h,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}else e({global:!0,simple:!0,forced:u},{self:r})}catch{}return U9}var B9={},$9;function HW(){if($9)return B9;$9=1;var e=ht(),r=ie(),t=ir(),a=Vr(),o=er(),s=Je(),u=Xs(),v=Xr(),d=es(),h=Bi(),f=Mr(),c=Yo(),_=ln(),E=Ir(),S=wa(),w=Wr(),T=zi(),b=kn(),I=bt(),m=$a(),p=os(),y=_M(),g=ai(),x=fu(),R=hM(),O=GL(),j=C_(),k=t.Object,N=t.Array,D=t.Date,U=t.Error,B=t.TypeError,H=t.PerformanceMark,G=a("DOMException"),$=y.Map,M=y.has,L=y.get,F=y.set,V=g.Set,ae=g.add,oe=g.has,_e=a("Object","keys"),he=o([].push),ye=o((!0).valueOf),ge=o(1.1.valueOf),Re=o("".valueOf),We=o(D.prototype.getTime),He=u("structuredClone"),nr="DataCloneError",ar="Transferring",xr=function(de){return!s(function(){var Ae=new t.Set([7]),Ne=de(Ae),Oe=de(k(7));return Ne===Ae||!Ne.has(7)||!f(Oe)||+Oe!=7})&&de},or=function(de,Ae){return!s(function(){var Ne=new Ae,Oe=de({a:Ne,b:Ne});return!(Oe&&Oe.a===Oe.b&&Oe.a instanceof Ae&&Oe.a.stack===Ne.stack)})},lr=function(de){return!s(function(){var Ae=de(new t.AggregateError([1],He,{cause:3}));return Ae.name!=="AggregateError"||Ae.errors[0]!==1||Ae.message!==He||Ae.cause!==3})},Ve=t.structuredClone,Ge=e||!or(Ve,U)||!or(Ve,G)||!lr(Ve),W=!Ve&&xr(function(de){return new H(He,{detail:de}).detail}),Y=xr(Ve)||W,Q=function(de){throw new G("Uncloneable type: "+de,nr)},re=function(de,Ae){throw new G((Ae||"Cloning")+" of "+de+" cannot be properly polyfilled in this engine",nr)},pe=function(de,Ae){return Y||re(Ae),Y(de)},le=function(){var de;try{de=new t.DataTransfer}catch{try{de=new t.ClipboardEvent("").clipboardData}catch{}}return de&&de.items&&de.files?de:null},Ee=function(de,Ae,Ne){if(M(Ae,de))return L(Ae,de);var Oe=Ne||S(de),De,Te,vr,$r,Me,rr;if(Oe==="SharedArrayBuffer")Y?De=Y(de):De=de;else{var Xe=t.DataView;!Xe&&!v(de.slice)&&re("ArrayBuffer");try{if(v(de.slice)&&!de.resizable)De=de.slice(0);else for(Te=de.byteLength,vr=("maxByteLength"in de)?{maxByteLength:de.maxByteLength}:void 0,De=new ArrayBuffer(Te,vr),$r=new Xe(de),Me=new Xe(De),rr=0;rr<Te;rr++)Me.setUint8(rr,$r.getUint8(rr))}catch{throw new G("ArrayBuffer is detached",nr)}}return F(Ae,de,De),De},fe=function(de,Ae,Ne,Oe,De){var Te=t[Ae];return f(Te)||re(Ae),new Te(Ee(de.buffer,De),Ne,Oe)},Pe=function(de,Ae){if(c(de)&&Q("Symbol"),!f(de))return de;if(Ae){if(M(Ae,de))return L(Ae,de)}else Ae=new $;var Ne=S(de),Oe,De,Te,vr,$r,Me,rr,Xe;switch(Ne){case"Array":Te=N(I(de));break;case"Object":Te={};break;case"Map":Te=new $;break;case"Set":Te=new V;break;case"RegExp":Te=new RegExp(de.source,p(de));break;case"Error":switch(De=de.name,De){case"AggregateError":Te=new(a(De))([]);break;case"EvalError":case"RangeError":case"ReferenceError":case"SuppressedError":case"SyntaxError":case"TypeError":case"URIError":Te=new(a(De));break;case"CompileError":case"LinkError":case"RuntimeError":Te=new(a("WebAssembly",De));break;default:Te=new U}break;case"DOMException":Te=new G(de.message,de.name);break;case"ArrayBuffer":case"SharedArrayBuffer":Te=Ee(de,Ae,Ne);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":Me=Ne==="DataView"?de.byteLength:de.length,Te=fe(de,Ne,de.byteOffset,Me,Ae);break;case"DOMQuad":try{Te=new DOMQuad(Pe(de.p1,Ae),Pe(de.p2,Ae),Pe(de.p3,Ae),Pe(de.p4,Ae))}catch{Te=pe(de,Ne)}break;case"File":if(Y)try{Te=Y(de),S(Te)!==Ne&&(Te=void 0)}catch{}if(!Te)try{Te=new File([de],de.name,de)}catch{}Te||re(Ne);break;case"FileList":if(vr=le(),vr){for($r=0,Me=I(de);$r<Me;$r++)vr.items.add(Pe(de[$r],Ae));Te=vr.files}else Te=pe(de,Ne);break;case"ImageData":try{Te=new ImageData(Pe(de.data,Ae),de.width,de.height,{colorSpace:de.colorSpace})}catch{Te=pe(de,Ne)}break;default:if(Y)Te=Y(de);else switch(Ne){case"BigInt":Te=k(de.valueOf());break;case"Boolean":Te=k(ye(de));break;case"Number":Te=k(ge(de));break;case"String":Te=k(Re(de));break;case"Date":Te=new D(We(de));break;case"Blob":try{Te=de.slice(0,de.size,de.type)}catch{re(Ne)}break;case"DOMPoint":case"DOMPointReadOnly":Oe=t[Ne];try{Te=Oe.fromPoint?Oe.fromPoint(de):new Oe(de.x,de.y,de.z,de.w)}catch{re(Ne)}break;case"DOMRect":case"DOMRectReadOnly":Oe=t[Ne];try{Te=Oe.fromRect?Oe.fromRect(de):new Oe(de.x,de.y,de.width,de.height)}catch{re(Ne)}break;case"DOMMatrix":case"DOMMatrixReadOnly":Oe=t[Ne];try{Te=Oe.fromMatrix?Oe.fromMatrix(de):new Oe(de)}catch{re(Ne)}break;case"AudioData":case"VideoFrame":v(de.clone)||re(Ne);try{Te=de.clone()}catch{Q(Ne)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":re(Ne);default:Q(Ne)}}switch(F(Ae,de,Te),Ne){case"Array":case"Object":for(rr=_e(de),$r=0,Me=I(rr);$r<Me;$r++)Xe=rr[$r],T(Te,Xe,Pe(de[Xe],Ae));break;case"Map":de.forEach(function(Qe,hr){F(Te,Pe(hr,Ae),Pe(Qe,Ae))});break;case"Set":de.forEach(function(Qe){ae(Te,Pe(Qe,Ae))});break;case"Error":b(Te,"message",Pe(de.message,Ae)),w(de,"cause")&&b(Te,"cause",Pe(de.cause,Ae)),De==="AggregateError"?Te.errors=Pe(de.errors,Ae):De==="SuppressedError"&&(Te.error=Pe(de.error,Ae),Te.suppressed=Pe(de.suppressed,Ae));case"DOMException":O&&b(Te,"stack",Pe(de.stack,Ae))}return Te},ur=function(de,Ae){if(!f(de))throw new B("Transfer option cannot be converted to a sequence");var Ne=[];_(de,function(hr){he(Ne,E(hr))});for(var Oe=0,De=I(Ne),Te=new V,vr,$r,Me,rr,Xe,Qe;Oe<De;){if(vr=Ne[Oe++],$r=S(vr),$r==="ArrayBuffer"?oe(Te,vr):M(Ae,vr))throw new G("Duplicate transferable",nr);if($r==="ArrayBuffer"){ae(Te,vr);continue}if(j)rr=Ve(vr,{transfer:[vr]});else switch($r){case"ImageBitmap":Me=t.OffscreenCanvas,d(Me)||re($r,ar);try{Xe=new Me(vr.width,vr.height),Qe=Xe.getContext("bitmaprenderer"),Qe.transferFromImageBitmap(vr),rr=Xe.transferToImageBitmap()}catch{}break;case"AudioData":case"VideoFrame":(!v(vr.clone)||!v(vr.close))&&re($r,ar);try{rr=vr.clone(),vr.close()}catch{}break;case"MediaSourceHandle":case"MessagePort":case"MIDIAccess":case"OffscreenCanvas":case"ReadableStream":case"RTCDataChannel":case"TransformStream":case"WebTransportReceiveStream":case"WebTransportSendStream":case"WritableStream":re($r,ar)}if(rr===void 0)throw new G("This object cannot be transferred: "+$r,nr);F(Ae,vr,rr)}return Te},cr=function(de){x(de,function(Ae){j?Y(Ae,{transfer:[Ae]}):v(Ae.transfer)?Ae.transfer():R?R(Ae):re("ArrayBuffer",ar)})};return r({global:!0,enumerable:!0,sham:!j,forced:Ge},{structuredClone:function(Ae){var Ne=m(arguments.length,1)>1&&!h(arguments[1])?E(arguments[1]):void 0,Oe=Ne?Ne.transfer:void 0,De,Te;Oe!==void 0&&(De=new $,Te=ur(Oe,De));var vr=Pe(Ae,De);return Te&&cr(Te),vr}}),B9}var z9={},Z9={},H9;function VW(){if(H9)return Z9;H9=1;var e=ie(),r=ir(),t=F_(),a=t(r.setInterval,!0);return e({global:!0,bind:!0,forced:r.setInterval!==a},{setInterval:a}),Z9}var V9={},G9;function GW(){if(G9)return V9;G9=1;var e=ie(),r=ir(),t=F_(),a=t(r.setTimeout,!0);return e({global:!0,bind:!0,forced:r.setTimeout!==a},{setTimeout:a}),V9}var W9;function WW(){return W9||(W9=1,VW(),GW()),z9}var K9={},Y9={},ky,J9;function Mf(){if(J9)return ky;J9=1;var e=Je(),r=Ur(),t=Tr(),a=ht(),o=r("iterator");return ky=!e(function(){var s=new URL("b?a=1&b=2&c=3","https://a"),u=s.searchParams,v=new URLSearchParams("a=1&a=2&b=3"),d="";return s.pathname="c%20d",u.forEach(function(h,f){u.delete("b"),d+=f+h}),v.delete("a",2),v.delete("b",void 0),a&&(!s.toJSON||!v.has("a",1)||v.has("a",2)||!v.has("a",void 0)||v.has("b"))||!u.size&&(a||!t)||!u.sort||s.href!=="https://a/c%20d?a=1&c=3"||u.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!u[o]||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"||d!=="a1c3"||new URL("https://x",void 0).host!=="x"}),ky}var Py,X9;function KW(){if(X9)return Py;X9=1;var e=er(),r=2147483647,t=36,a=1,o=26,s=38,u=700,v=72,d=128,h="-",f=/[^\0-\u007E]/,c=/[.\u3002\uFF0E\uFF61]/g,_="Overflow: input needs wider integers to process",E=t-a,S=RangeError,w=e(c.exec),T=Math.floor,b=String.fromCharCode,I=e("".charCodeAt),m=e([].join),p=e([].push),y=e("".replace),g=e("".split),x=e("".toLowerCase),R=function(N){for(var D=[],U=0,B=N.length;U<B;){var H=I(N,U++);if(H>=55296&&H<=56319&&U<B){var G=I(N,U++);(G&64512)===56320?p(D,((H&1023)<<10)+(G&1023)+65536):(p(D,H),U--)}else p(D,H)}return D},O=function(N){return N+22+75*(N<26)},j=function(N,D,U){var B=0;for(N=U?T(N/u):N>>1,N+=T(N/D);N>E*o>>1;)N=T(N/E),B+=t;return T(B+(E+1)*N/(N+s))},k=function(N){var D=[];N=R(N);var U=N.length,B=d,H=0,G=v,$,M;for($=0;$<N.length;$++)M=N[$],M<128&&p(D,b(M));var L=D.length,F=L;for(L&&p(D,h);F<U;){var V=r;for($=0;$<N.length;$++)M=N[$],M>=B&&M<V&&(V=M);var ae=F+1;if(V-B>T((r-H)/ae))throw new S(_);for(H+=(V-B)*ae,B=V,$=0;$<N.length;$++){if(M=N[$],M<B&&++H>r)throw new S(_);if(M===B){for(var oe=H,_e=t;;){var he=_e<=G?a:_e>=G+o?o:_e-G;if(oe<he)break;var ye=oe-he,ge=t-he;p(D,b(O(he+ye%ge))),oe=T(ye/ge),_e+=t}p(D,b(O(oe))),G=j(H,ae,F===L),H=0,F++}}H++,B++}return m(D,"")};return Py=function(N){var D=[],U=g(y(x(N),c,"."),"."),B,H;for(B=0;B<U.length;B++)H=U[B],p(D,w(f,H)?"xn--"+k(H):H);return m(D,".")},Py}var Ny,Q9;function tU(){if(Q9)return Ny;Q9=1,vf(),UM();var e=ie(),r=ir(),t=RM(),a=Vr(),o=Er(),s=er(),u=Tr(),v=Mf(),d=mt(),h=Jt(),f=Hi(),c=fa(),_=y_(),E=Lt(),S=xa(),w=Xr(),T=Wr(),b=Ea(),I=wa(),m=Ir(),p=Mr(),y=zr(),g=Pn(),x=_a(),R=tu(),O=ts(),j=as(),k=$a(),N=Ur(),D=S_(),U=N("iterator"),B="URLSearchParams",H=B+"Iterator",G=E.set,$=E.getterFor(B),M=E.getterFor(H),L=t("fetch"),F=t("Request"),V=t("Headers"),ae=F&&F.prototype,oe=V&&V.prototype,_e=r.TypeError,he=r.encodeURIComponent,ye=String.fromCharCode,ge=a("String","fromCodePoint"),Re=parseInt,We=s("".charAt),He=s([].join),nr=s([].push),ar=s("".replace),xr=s([].shift),or=s([].splice),lr=s("".split),Ve=s("".slice),Ge=s(/./.exec),W=/\+/g,Y="�",Q=/^[0-9a-f]+$/i,re=function(Me,rr){var Xe=Ve(Me,rr,rr+2);return Ge(Q,Xe)?Re(Xe,16):NaN},pe=function(Me){for(var rr=0,Xe=128;Xe>0&&(Me&Xe)!==0;Xe>>=1)rr++;return rr},le=function(Me){var rr=null;switch(Me.length){case 1:rr=Me[0];break;case 2:rr=(Me[0]&31)<<6|Me[1]&63;break;case 3:rr=(Me[0]&15)<<12|(Me[1]&63)<<6|Me[2]&63;break;case 4:rr=(Me[0]&7)<<18|(Me[1]&63)<<12|(Me[2]&63)<<6|Me[3]&63;break}return rr>1114111?null:rr},Ee=function(Me){Me=ar(Me,W," ");for(var rr=Me.length,Xe="",Qe=0;Qe<rr;){var hr=We(Me,Qe);if(hr==="%"){if(We(Me,Qe+1)==="%"||Qe+3>rr){Xe+="%",Qe++;continue}var gr=re(Me,Qe+1);if(gr!==gr){Xe+=hr,Qe++;continue}Qe+=2;var Kr=pe(gr);if(Kr===0)hr=ye(gr);else{if(Kr===1||Kr>4){Xe+=Y,Qe++;continue}for(var et=[gr],St=1;St<Kr&&(Qe++,!(Qe+3>rr||We(Me,Qe)!=="%"));){var Gt=re(Me,Qe+1);if(Gt!==Gt){Qe+=3;break}if(Gt>191||Gt<128)break;nr(et,Gt),Qe+=2,St++}if(et.length!==Kr){Xe+=Y;continue}var it=le(et);it===null?Xe+=Y:hr=ge(it)}}Xe+=hr,Qe++}return Xe},fe=/[!'()~]|%20/g,Pe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ur=function(Me){return Pe[Me]},cr=function(Me){return ar(he(Me),fe,ur)},de=_(function(rr,Xe){G(this,{type:H,target:$(rr).entries,index:0,kind:Xe})},B,function(){var rr=M(this),Xe=rr.target,Qe=rr.index++;if(!Xe||Qe>=Xe.length)return rr.target=null,j(void 0,!0);var hr=Xe[Qe];switch(rr.kind){case"keys":return j(hr.key,!1);case"values":return j(hr.value,!1)}return j([hr.key,hr.value],!1)},!0),Ae=function(Me){this.entries=[],this.url=null,Me!==void 0&&(p(Me)?this.parseObject(Me):this.parseQuery(typeof Me=="string"?We(Me,0)==="?"?Ve(Me,1):Me:y(Me)))};Ae.prototype={type:B,bindURL:function(Me){this.url=Me,this.update()},parseObject:function(Me){var rr=this.entries,Xe=O(Me),Qe,hr,gr,Kr,et,St,Gt;if(Xe)for(Qe=R(Me,Xe),hr=Qe.next;!(gr=o(hr,Qe)).done;){if(Kr=R(m(gr.value)),et=Kr.next,(St=o(et,Kr)).done||(Gt=o(et,Kr)).done||!o(et,Kr).done)throw new _e("Expected sequence with length 2");nr(rr,{key:y(St.value),value:y(Gt.value)})}else for(var it in Me)T(Me,it)&&nr(rr,{key:it,value:y(Me[it])})},parseQuery:function(Me){if(Me)for(var rr=this.entries,Xe=lr(Me,"&"),Qe=0,hr,gr;Qe<Xe.length;)hr=Xe[Qe++],hr.length&&(gr=lr(hr,"="),nr(rr,{key:Ee(xr(gr)),value:Ee(He(gr,"="))}))},serialize:function(){for(var Me=this.entries,rr=[],Xe=0,Qe;Xe<Me.length;)Qe=Me[Xe++],nr(rr,cr(Qe.key)+"="+cr(Qe.value));return He(rr,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Ne=function(){S(this,Oe);var rr=arguments.length>0?arguments[0]:void 0,Xe=G(this,new Ae(rr));u||(this.size=Xe.entries.length)},Oe=Ne.prototype;if(f(Oe,{append:function(rr,Xe){var Qe=$(this);k(arguments.length,2),nr(Qe.entries,{key:y(rr),value:y(Xe)}),u||this.length++,Qe.updateURL()},delete:function(Me){for(var rr=$(this),Xe=k(arguments.length,1),Qe=rr.entries,hr=y(Me),gr=Xe<2?void 0:arguments[1],Kr=gr===void 0?gr:y(gr),et=0;et<Qe.length;){var St=Qe[et];if(St.key===hr&&(Kr===void 0||St.value===Kr)){if(or(Qe,et,1),Kr!==void 0)break}else et++}u||(this.size=Qe.length),rr.updateURL()},get:function(rr){var Xe=$(this).entries;k(arguments.length,1);for(var Qe=y(rr),hr=0;hr<Xe.length;hr++)if(Xe[hr].key===Qe)return Xe[hr].value;return null},getAll:function(rr){var Xe=$(this).entries;k(arguments.length,1);for(var Qe=y(rr),hr=[],gr=0;gr<Xe.length;gr++)Xe[gr].key===Qe&&nr(hr,Xe[gr].value);return hr},has:function(rr){for(var Xe=$(this).entries,Qe=k(arguments.length,1),hr=y(rr),gr=Qe<2?void 0:arguments[1],Kr=gr===void 0?gr:y(gr),et=0;et<Xe.length;){var St=Xe[et++];if(St.key===hr&&(Kr===void 0||St.value===Kr))return!0}return!1},set:function(rr,Xe){var Qe=$(this);k(arguments.length,1);for(var hr=Qe.entries,gr=!1,Kr=y(rr),et=y(Xe),St=0,Gt;St<hr.length;St++)Gt=hr[St],Gt.key===Kr&&(gr?or(hr,St--,1):(gr=!0,Gt.value=et));gr||nr(hr,{key:Kr,value:et}),u||(this.size=hr.length),Qe.updateURL()},sort:function(){var rr=$(this);D(rr.entries,function(Xe,Qe){return Xe.key>Qe.key?1:-1}),rr.updateURL()},forEach:function(rr){for(var Xe=$(this).entries,Qe=b(rr,arguments.length>1?arguments[1]:void 0),hr=0,gr;hr<Xe.length;)gr=Xe[hr++],Qe(gr.value,gr.key,this)},keys:function(){return new de(this,"keys")},values:function(){return new de(this,"values")},entries:function(){return new de(this,"entries")}},{enumerable:!0}),d(Oe,U,Oe.entries,{name:"entries"}),d(Oe,"toString",function(){return $(this).serialize()},{enumerable:!0}),u&&h(Oe,"size",{get:function(){return $(this).entries.length},configurable:!0,enumerable:!0}),c(Ne,B),e({global:!0,constructor:!0,forced:!v},{URLSearchParams:Ne}),!v&&w(V)){var De=s(oe.has),Te=s(oe.set),vr=function(Me){if(p(Me)){var rr=Me.body,Xe;if(I(rr)===B)return Xe=Me.headers?new V(Me.headers):new V,De(Xe,"content-type")||Te(Xe,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),g(Me,{body:x(0,y(rr)),headers:x(0,Xe)})}return Me};if(w(L)&&e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(rr){return L(rr,arguments.length>1?vr(arguments[1]):{})}}),w(F)){var $r=function(rr){return S(this,ae),new F(rr,arguments.length>1?vr(arguments[1]):{})};ae.constructor=$r,$r.prototype=ae,e({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:$r})}}return Ny={URLSearchParams:Ne,getState:$},Ny}var e3;function YW(){if(e3)return Y9;e3=1,FM();var e=ie(),r=Tr(),t=Mf(),a=ir(),o=Ea(),s=er(),u=mt(),v=Jt(),d=xa(),h=Wr(),f=xM(),c=QL(),_=Ba(),E=Nf().codeAt,S=KW(),w=zr(),T=fa(),b=$a(),I=tU(),m=Lt(),p=m.set,y=m.getterFor("URL"),g=I.URLSearchParams,x=I.getState,R=a.URL,O=a.TypeError,j=a.parseInt,k=Math.floor,N=Math.pow,D=s("".charAt),U=s(/./.exec),B=s([].join),H=s(1.1.toString),G=s([].pop),$=s([].push),M=s("".replace),L=s([].shift),F=s("".split),V=s("".slice),ae=s("".toLowerCase),oe=s([].unshift),_e="Invalid authority",he="Invalid scheme",ye="Invalid host",ge="Invalid port",Re=/[a-z]/i,We=/[\d+-.a-z]/i,He=/\d/,nr=/^0x/i,ar=/^[0-7]+$/,xr=/^\d+$/,or=/^[\da-f]+$/i,lr=/[\0\t\n\r #%/:<>?@[\\\]^|]/,Ve=/[\0\t\n\r #/:<>?@[\\\]^|]/,Ge=/^[\u0000-\u0020]+/,W=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,Y=/[\t\n\r]/g,Q,re=function(Ce){var Ke=F(Ce,"."),xe,me,Be,kr,mr,wt,Fr;if(Ke.length&&Ke[Ke.length-1]===""&&Ke.length--,xe=Ke.length,xe>4)return Ce;for(me=[],Be=0;Be<xe;Be++){if(kr=Ke[Be],kr==="")return Ce;if(mr=10,kr.length>1&&D(kr,0)==="0"&&(mr=U(nr,kr)?16:8,kr=V(kr,mr===8?1:2)),kr==="")wt=0;else{if(!U(mr===10?xr:mr===8?ar:or,kr))return Ce;wt=j(kr,mr)}$(me,wt)}for(Be=0;Be<xe;Be++)if(wt=me[Be],Be===xe-1){if(wt>=N(256,5-xe))return null}else if(wt>255)return null;for(Fr=G(me),Be=0;Be<me.length;Be++)Fr+=me[Be]*N(256,3-Be);return Fr},pe=function(Ce){var Ke=[0,0,0,0,0,0,0,0],xe=0,me=null,Be=0,kr,mr,wt,Fr,Rt,fn,ze,Et=function(){return D(Ce,Be)};if(Et()===":"){if(D(Ce,1)!==":")return;Be+=2,xe++,me=xe}for(;Et();){if(xe===8)return;if(Et()===":"){if(me!==null)return;Be++,xe++,me=xe;continue}for(kr=mr=0;mr<4&&U(or,Et());)kr=kr*16+j(Et(),16),Be++,mr++;if(Et()==="."){if(mr===0||(Be-=mr,xe>6))return;for(wt=0;Et();){if(Fr=null,wt>0)if(Et()==="."&&wt<4)Be++;else return;if(!U(He,Et()))return;for(;U(He,Et());){if(Rt=j(Et(),10),Fr===null)Fr=Rt;else{if(Fr===0)return;Fr=Fr*10+Rt}if(Fr>255)return;Be++}Ke[xe]=Ke[xe]*256+Fr,wt++,(wt===2||wt===4)&&xe++}if(wt!==4)return;break}else if(Et()===":"){if(Be++,!Et())return}else if(Et())return;Ke[xe++]=kr}if(me!==null)for(fn=xe-me,xe=7;xe!==0&&fn>0;)ze=Ke[xe],Ke[xe--]=Ke[me+fn-1],Ke[me+--fn]=ze;else if(xe!==8)return;return Ke},le=function(Ce){for(var Ke=null,xe=1,me=null,Be=0,kr=0;kr<8;kr++)Ce[kr]!==0?(Be>xe&&(Ke=me,xe=Be),me=null,Be=0):(me===null&&(me=kr),++Be);return Be>xe?me:Ke},Ee=function(Ce){var Ke,xe,me,Be;if(typeof Ce=="number"){for(Ke=[],xe=0;xe<4;xe++)oe(Ke,Ce%256),Ce=k(Ce/256);return B(Ke,".")}if(typeof Ce=="object"){for(Ke="",me=le(Ce),xe=0;xe<8;xe++)Be&&Ce[xe]===0||(Be&&(Be=!1),me===xe?(Ke+=xe?":":"::",Be=!0):(Ke+=H(Ce[xe],16),xe<7&&(Ke+=":")));return"["+Ke+"]"}return Ce},fe={},Pe=f({},fe,{" ":1,'"':1,"<":1,">":1,"`":1}),ur=f({},Pe,{"#":1,"?":1,"{":1,"}":1}),cr=f({},ur,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),de=function(Ce,Ke){var xe=E(Ce,0);return xe>32&&xe<127&&!h(Ke,Ce)?Ce:encodeURIComponent(Ce)},Ae={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Ne=function(Ce,Ke){var xe;return Ce.length===2&&U(Re,D(Ce,0))&&((xe=D(Ce,1))===":"||!Ke&&xe==="|")},Oe=function(Ce){var Ke;return Ce.length>1&&Ne(V(Ce,0,2))&&(Ce.length===2||(Ke=D(Ce,2))==="/"||Ke==="\\"||Ke==="?"||Ke==="#")},De=function(Ce){return Ce==="."||ae(Ce)==="%2e"},Te=function(Ce){return Ce=ae(Ce),Ce===".."||Ce==="%2e."||Ce===".%2e"||Ce==="%2e%2e"},vr={},$r={},Me={},rr={},Xe={},Qe={},hr={},gr={},Kr={},et={},St={},Gt={},it={},cn={},Za={},va={},Qn={},ea={},ii={},Mt={},Ut={},Ha=function(Ce,Ke,xe){var me=w(Ce),Be,kr,mr;if(Ke){if(kr=this.parse(me),kr)throw new O(kr);this.searchParams=null}else{if(xe!==void 0&&(Be=new Ha(xe,!0)),kr=this.parse(me,null,Be),kr)throw new O(kr);mr=x(new g),mr.bindURL(this),this.searchParams=mr}};Ha.prototype={type:"URL",parse:function(Ce,Ke,xe){var me=this,Be=Ke||vr,kr=0,mr="",wt=!1,Fr=!1,Rt=!1,fn,ze,Et,pa;for(Ce=w(Ce),Ke||(me.scheme="",me.username="",me.password="",me.host=null,me.port=null,me.path=[],me.query=null,me.fragment=null,me.cannotBeABaseURL=!1,Ce=M(Ce,Ge,""),Ce=M(Ce,W,"$1")),Ce=M(Ce,Y,""),fn=c(Ce);kr<=fn.length;){switch(ze=fn[kr],Be){case vr:if(ze&&U(Re,ze))mr+=ae(ze),Be=$r;else{if(Ke)return he;Be=Me;continue}break;case $r:if(ze&&(U(We,ze)||ze==="+"||ze==="-"||ze==="."))mr+=ae(ze);else if(ze===":"){if(Ke&&(me.isSpecial()!==h(Ae,mr)||mr==="file"&&(me.includesCredentials()||me.port!==null)||me.scheme==="file"&&!me.host))return;if(me.scheme=mr,Ke){me.isSpecial()&&Ae[me.scheme]===me.port&&(me.port=null);return}mr="",me.scheme==="file"?Be=cn:me.isSpecial()&&xe&&xe.scheme===me.scheme?Be=rr:me.isSpecial()?Be=gr:fn[kr+1]==="/"?(Be=Xe,kr++):(me.cannotBeABaseURL=!0,$(me.path,""),Be=ii)}else{if(Ke)return he;mr="",Be=Me,kr=0;continue}break;case Me:if(!xe||xe.cannotBeABaseURL&&ze!=="#")return he;if(xe.cannotBeABaseURL&&ze==="#"){me.scheme=xe.scheme,me.path=_(xe.path),me.query=xe.query,me.fragment="",me.cannotBeABaseURL=!0,Be=Ut;break}Be=xe.scheme==="file"?cn:Qe;continue;case rr:if(ze==="/"&&fn[kr+1]==="/")Be=Kr,kr++;else{Be=Qe;continue}break;case Xe:if(ze==="/"){Be=et;break}else{Be=ea;continue}case Qe:if(me.scheme=xe.scheme,ze===Q)me.username=xe.username,me.password=xe.password,me.host=xe.host,me.port=xe.port,me.path=_(xe.path),me.query=xe.query;else if(ze==="/"||ze==="\\"&&me.isSpecial())Be=hr;else if(ze==="?")me.username=xe.username,me.password=xe.password,me.host=xe.host,me.port=xe.port,me.path=_(xe.path),me.query="",Be=Mt;else if(ze==="#")me.username=xe.username,me.password=xe.password,me.host=xe.host,me.port=xe.port,me.path=_(xe.path),me.query=xe.query,me.fragment="",Be=Ut;else{me.username=xe.username,me.password=xe.password,me.host=xe.host,me.port=xe.port,me.path=_(xe.path),me.path.length--,Be=ea;continue}break;case hr:if(me.isSpecial()&&(ze==="/"||ze==="\\"))Be=Kr;else if(ze==="/")Be=et;else{me.username=xe.username,me.password=xe.password,me.host=xe.host,me.port=xe.port,Be=ea;continue}break;case gr:if(Be=Kr,ze!=="/"||D(mr,kr+1)!=="/")continue;kr++;break;case Kr:if(ze!=="/"&&ze!=="\\"){Be=et;continue}break;case et:if(ze==="@"){wt&&(mr="%40"+mr),wt=!0,Et=c(mr);for(var oi=0;oi<Et.length;oi++){var wi=Et[oi];if(wi===":"&&!Rt){Rt=!0;continue}var Vn=de(wi,cr);Rt?me.password+=Vn:me.username+=Vn}mr=""}else if(ze===Q||ze==="/"||ze==="?"||ze==="#"||ze==="\\"&&me.isSpecial()){if(wt&&mr==="")return _e;kr-=c(mr).length+1,mr="",Be=St}else mr+=ze;break;case St:case Gt:if(Ke&&me.scheme==="file"){Be=va;continue}else if(ze===":"&&!Fr){if(mr==="")return ye;if(pa=me.parseHost(mr),pa)return pa;if(mr="",Be=it,Ke===Gt)return}else if(ze===Q||ze==="/"||ze==="?"||ze==="#"||ze==="\\"&&me.isSpecial()){if(me.isSpecial()&&mr==="")return ye;if(Ke&&mr===""&&(me.includesCredentials()||me.port!==null))return;if(pa=me.parseHost(mr),pa)return pa;if(mr="",Be=Qn,Ke)return;continue}else ze==="["?Fr=!0:ze==="]"&&(Fr=!1),mr+=ze;break;case it:if(U(He,ze))mr+=ze;else if(ze===Q||ze==="/"||ze==="?"||ze==="#"||ze==="\\"&&me.isSpecial()||Ke){if(mr!==""){var Wi=j(mr,10);if(Wi>65535)return ge;me.port=me.isSpecial()&&Wi===Ae[me.scheme]?null:Wi,mr=""}if(Ke)return;Be=Qn;continue}else return ge;break;case cn:if(me.scheme="file",ze==="/"||ze==="\\")Be=Za;else if(xe&&xe.scheme==="file")switch(ze){case Q:me.host=xe.host,me.path=_(xe.path),me.query=xe.query;break;case"?":me.host=xe.host,me.path=_(xe.path),me.query="",Be=Mt;break;case"#":me.host=xe.host,me.path=_(xe.path),me.query=xe.query,me.fragment="",Be=Ut;break;default:Oe(B(_(fn,kr),""))||(me.host=xe.host,me.path=_(xe.path),me.shortenPath()),Be=ea;continue}else{Be=ea;continue}break;case Za:if(ze==="/"||ze==="\\"){Be=va;break}xe&&xe.scheme==="file"&&!Oe(B(_(fn,kr),""))&&(Ne(xe.path[0],!0)?$(me.path,xe.path[0]):me.host=xe.host),Be=ea;continue;case va:if(ze===Q||ze==="/"||ze==="\\"||ze==="?"||ze==="#"){if(!Ke&&Ne(mr))Be=ea;else if(mr===""){if(me.host="",Ke)return;Be=Qn}else{if(pa=me.parseHost(mr),pa)return pa;if(me.host==="localhost"&&(me.host=""),Ke)return;mr="",Be=Qn}continue}else mr+=ze;break;case Qn:if(me.isSpecial()){if(Be=ea,ze!=="/"&&ze!=="\\")continue}else if(!Ke&&ze==="?")me.query="",Be=Mt;else if(!Ke&&ze==="#")me.fragment="",Be=Ut;else if(ze!==Q&&(Be=ea,ze!=="/"))continue;break;case ea:if(ze===Q||ze==="/"||ze==="\\"&&me.isSpecial()||!Ke&&(ze==="?"||ze==="#")){if(Te(mr)?(me.shortenPath(),ze!=="/"&&!(ze==="\\"&&me.isSpecial())&&$(me.path,"")):De(mr)?ze!=="/"&&!(ze==="\\"&&me.isSpecial())&&$(me.path,""):(me.scheme==="file"&&!me.path.length&&Ne(mr)&&(me.host&&(me.host=""),mr=D(mr,0)+":"),$(me.path,mr)),mr="",me.scheme==="file"&&(ze===Q||ze==="?"||ze==="#"))for(;me.path.length>1&&me.path[0]==="";)L(me.path);ze==="?"?(me.query="",Be=Mt):ze==="#"&&(me.fragment="",Be=Ut)}else mr+=de(ze,ur);break;case ii:ze==="?"?(me.query="",Be=Mt):ze==="#"?(me.fragment="",Be=Ut):ze!==Q&&(me.path[0]+=de(ze,fe));break;case Mt:!Ke&&ze==="#"?(me.fragment="",Be=Ut):ze!==Q&&(ze==="'"&&me.isSpecial()?me.query+="%27":ze==="#"?me.query+="%23":me.query+=de(ze,fe));break;case Ut:ze!==Q&&(me.fragment+=de(ze,Pe));break}kr++}},parseHost:function(Ce){var Ke,xe,me;if(D(Ce,0)==="["){if(D(Ce,Ce.length-1)!=="]"||(Ke=pe(V(Ce,1,-1)),!Ke))return ye;this.host=Ke}else if(this.isSpecial()){if(Ce=S(Ce),U(lr,Ce)||(Ke=re(Ce),Ke===null))return ye;this.host=Ke}else{if(U(Ve,Ce))return ye;for(Ke="",xe=c(Ce),me=0;me<xe.length;me++)Ke+=de(xe[me],fe);this.host=Ke}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||this.scheme==="file"},includesCredentials:function(){return this.username!==""||this.password!==""},isSpecial:function(){return h(Ae,this.scheme)},shortenPath:function(){var Ce=this.path,Ke=Ce.length;Ke&&(this.scheme!=="file"||Ke!==1||!Ne(Ce[0],!0))&&Ce.length--},serialize:function(){var Ce=this,Ke=Ce.scheme,xe=Ce.username,me=Ce.password,Be=Ce.host,kr=Ce.port,mr=Ce.path,wt=Ce.query,Fr=Ce.fragment,Rt=Ke+":";return Be!==null?(Rt+="//",Ce.includesCredentials()&&(Rt+=xe+(me?":"+me:"")+"@"),Rt+=Ee(Be),kr!==null&&(Rt+=":"+kr)):Ke==="file"&&(Rt+="//"),Rt+=Ce.cannotBeABaseURL?mr[0]:mr.length?"/"+B(mr,"/"):"",wt!==null&&(Rt+="?"+wt),Fr!==null&&(Rt+="#"+Fr),Rt},setHref:function(Ce){var Ke=this.parse(Ce);if(Ke)throw new O(Ke);this.searchParams.update()},getOrigin:function(){var Ce=this.scheme,Ke=this.port;if(Ce==="blob")try{return new Va(Ce.path[0]).origin}catch{return"null"}return Ce==="file"||!this.isSpecial()?"null":Ce+"://"+Ee(this.host)+(Ke!==null?":"+Ke:"")},getProtocol:function(){return this.scheme+":"},setProtocol:function(Ce){this.parse(w(Ce)+":",vr)},getUsername:function(){return this.username},setUsername:function(Ce){var Ke=c(w(Ce));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var xe=0;xe<Ke.length;xe++)this.username+=de(Ke[xe],cr)}},getPassword:function(){return this.password},setPassword:function(Ce){var Ke=c(w(Ce));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var xe=0;xe<Ke.length;xe++)this.password+=de(Ke[xe],cr)}},getHost:function(){var Ce=this.host,Ke=this.port;return Ce===null?"":Ke===null?Ee(Ce):Ee(Ce)+":"+Ke},setHost:function(Ce){this.cannotBeABaseURL||this.parse(Ce,St)},getHostname:function(){var Ce=this.host;return Ce===null?"":Ee(Ce)},setHostname:function(Ce){this.cannotBeABaseURL||this.parse(Ce,Gt)},getPort:function(){var Ce=this.port;return Ce===null?"":w(Ce)},setPort:function(Ce){this.cannotHaveUsernamePasswordPort()||(Ce=w(Ce),Ce===""?this.port=null:this.parse(Ce,it))},getPathname:function(){var Ce=this.path;return this.cannotBeABaseURL?Ce[0]:Ce.length?"/"+B(Ce,"/"):""},setPathname:function(Ce){this.cannotBeABaseURL||(this.path=[],this.parse(Ce,Qn))},getSearch:function(){var Ce=this.query;return Ce?"?"+Ce:""},setSearch:function(Ce){Ce=w(Ce),Ce===""?this.query=null:(D(Ce,0)==="?"&&(Ce=V(Ce,1)),this.query="",this.parse(Ce,Mt)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var Ce=this.fragment;return Ce?"#"+Ce:""},setHash:function(Ce){if(Ce=w(Ce),Ce===""){this.fragment=null;return}D(Ce,0)==="#"&&(Ce=V(Ce,1)),this.fragment="",this.parse(Ce,Ut)},update:function(){this.query=this.searchParams.serialize()||null}};var Va=function(Ke){var xe=d(this,Qt),me=b(arguments.length,1)>1?arguments[1]:void 0,Be=p(xe,new Ha(Ke,!1,me));r||(xe.href=Be.serialize(),xe.origin=Be.getOrigin(),xe.protocol=Be.getProtocol(),xe.username=Be.getUsername(),xe.password=Be.getPassword(),xe.host=Be.getHost(),xe.hostname=Be.getHostname(),xe.port=Be.getPort(),xe.pathname=Be.getPathname(),xe.search=Be.getSearch(),xe.searchParams=Be.getSearchParams(),xe.hash=Be.getHash())},Qt=Va.prototype,yn=function(Ce,Ke){return{get:function(){return y(this)[Ce]()},set:Ke&&function(xe){return y(this)[Ke](xe)},configurable:!0,enumerable:!0}};if(r&&(v(Qt,"href",yn("serialize","setHref")),v(Qt,"origin",yn("getOrigin")),v(Qt,"protocol",yn("getProtocol","setProtocol")),v(Qt,"username",yn("getUsername","setUsername")),v(Qt,"password",yn("getPassword","setPassword")),v(Qt,"host",yn("getHost","setHost")),v(Qt,"hostname",yn("getHostname","setHostname")),v(Qt,"port",yn("getPort","setPort")),v(Qt,"pathname",yn("getPathname","setPathname")),v(Qt,"search",yn("getSearch","setSearch")),v(Qt,"searchParams",yn("getSearchParams")),v(Qt,"hash",yn("getHash","setHash"))),u(Qt,"toJSON",function(){return y(this).serialize()},{enumerable:!0}),u(Qt,"toString",function(){return y(this).serialize()},{enumerable:!0}),R){var qn=R.createObjectURL,To=R.revokeObjectURL;qn&&u(Va,"createObjectURL",o(qn,R)),To&&u(Va,"revokeObjectURL",o(To,R))}return T(Va,"URL"),e({global:!0,constructor:!0,forced:!t,sham:!r},{URL:Va}),Y9}var r3;function JW(){return r3||(r3=1,YW()),K9}var t3={},n3;function XW(){if(n3)return t3;n3=1;var e=ie(),r=Vr(),t=Je(),a=$a(),o=zr(),s=Mf(),u=r("URL"),v=s&&t(function(){u.canParse()}),d=t(function(){return u.canParse.length!==1});return e({target:"URL",stat:!0,forced:!v||d},{canParse:function(f){var c=a(arguments.length,1),_=o(f),E=c<2||arguments[1]===void 0?void 0:o(arguments[1]);try{return!!new u(_,E)}catch{return!1}}}),t3}var a3={},i3;function QW(){if(i3)return a3;i3=1;var e=ie(),r=Vr(),t=$a(),a=zr(),o=Mf(),s=r("URL");return e({target:"URL",stat:!0,forced:!o},{parse:function(v){var d=t(arguments.length,1),h=a(v),f=d<2||arguments[1]===void 0?void 0:a(arguments[1]);try{return new s(h,f)}catch{return null}}}),a3}var o3={},s3;function eK(){if(s3)return o3;s3=1;var e=ie(),r=Er();return e({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return r(URL.prototype.toString,this)}}),o3}var u3={},l3;function rK(){return l3||(l3=1,tU()),u3}var c3={},f3;function tK(){if(f3)return c3;f3=1;var e=mt(),r=er(),t=zr(),a=$a(),o=URLSearchParams,s=o.prototype,u=r(s.append),v=r(s.delete),d=r(s.forEach),h=r([].push),f=new o("a=1&a=2&b=3");return f.delete("a",1),f.delete("b",void 0),f+""!="a=2"&&e(s,"delete",function(c){var _=arguments.length,E=_<2?void 0:arguments[1];if(_&&E===void 0)return v(this,c);var S=[];d(this,function(g,x){h(S,{key:x,value:g})}),a(_,1);for(var w=t(c),T=t(E),b=0,I=0,m=!1,p=S.length,y;b<p;)y=S[b++],m||y.key===w?(m=!0,v(this,y.key)):I++;for(;I<p;)y=S[I++],y.key===w&&y.value===T||u(this,y.key,y.value)},{enumerable:!0,unsafe:!0}),c3}var d3={},h3;function nK(){if(h3)return d3;h3=1;var e=mt(),r=er(),t=zr(),a=$a(),o=URLSearchParams,s=o.prototype,u=r(s.getAll),v=r(s.has),d=new o("a=1");return(d.has("a",2)||!d.has("a",void 0))&&e(s,"has",function(f){var c=arguments.length,_=c<2?void 0:arguments[1];if(c&&_===void 0)return v(this,f);var E=u(this,f);a(c,1);for(var S=t(_),w=0;w<E.length;)if(E[w++]===S)return!0;return!1},{enumerable:!0,unsafe:!0}),d3}var v3={},p3;function aK(){if(p3)return v3;p3=1;var e=Tr(),r=er(),t=Jt(),a=URLSearchParams.prototype,o=r(a.forEach);return e&&!("size"in a)&&t(a,"size",{get:function(){var u=0;return o(this,function(){u++}),u},configurable:!0,enumerable:!0}),v3}var jy,g3;function iK(){return g3||(g3=1,D$(),L$(),M$(),U$(),F$(),B$(),$$(),z$(),Z$(),H$(),V$(),G$(),W$(),K$(),Y$(),J$(),X$(),Q$(),ez(),rz(),nz(),az(),iz(),oz(),sz(),uz(),lz(),cz(),fz(),dz(),hz(),vz(),pz(),gz(),mz(),yz(),bz(),_z(),Sz(),wz(),vf(),Ez(),Cz(),xz(),Iz(),Az(),Tz(),Rz(),Oz(),kz(),Pz(),Nz(),jz(),qz(),Dz(),Lz(),Mz(),Uz(),Fz(),Bz(),$z(),Zz(),Hz(),Vz(),Wz(),Kz(),Jz(),Xz(),Qz(),eZ(),rZ(),tZ(),nZ(),aZ(),oZ(),sZ(),lZ(),cZ(),fZ(),dZ(),hZ(),vZ(),pZ(),gZ(),mZ(),yZ(),_Z(),SZ(),wZ(),EZ(),CZ(),xZ(),IZ(),AZ(),TZ(),RZ(),OZ(),kZ(),$L(),PZ(),jZ(),qZ(),DZ(),LZ(),MZ(),UZ(),FZ(),BZ(),$Z(),zZ(),ZZ(),HZ(),VZ(),GZ(),WZ(),KZ(),YZ(),JZ(),XZ(),QZ(),eH(),rH(),tH(),nH(),iH(),oH(),sH(),uH(),lH(),cH(),fH(),dH(),hH(),vH(),pH(),gH(),mH(),yH(),bH(),_H(),SH(),wH(),EH(),CH(),xH(),IH(),AH(),TH(),RH(),OH(),kH(),PH(),NH(),jH(),qH(),DH(),LH(),MH(),UH(),FH(),BH(),zH(),ZH(),HH(),VH(),tV(),nV(),aV(),iV(),oV(),sV(),dV(),hV(),vV(),pV(),gV(),mV(),yV(),bV(),_V(),SV(),wV(),EV(),CV(),xV(),IV(),AV(),TV(),RV(),OV(),kV(),N_(),PV(),NV(),jV(),qV(),LV(),UV(),BV(),zV(),HV(),GV(),KV(),JV(),XV(),QV(),eG(),UM(),rG(),tG(),FM(),nG(),aG(),iG(),oG(),sG(),uG(),lG(),cG(),fG(),dG(),hG(),vG(),pG(),gG(),yG(),_G(),SG(),wG(),EG(),CG(),xG(),IG(),AG(),TG(),RG(),OG(),kG(),PG(),NG(),qG(),DG(),LG(),MG(),UG(),FG(),BG(),$G(),zG(),ZG(),HG(),VG(),GG(),KG(),YG(),JG(),XG(),QG(),eW(),rW(),tW(),nW(),aW(),iW(),oW(),sW(),uW(),lW(),cW(),fW(),dW(),hW(),vW(),pW(),gW(),mW(),yW(),bW(),_W(),SW(),wW(),EW(),CW(),xW(),IW(),AW(),TW(),OW(),PW(),NW(),jW(),qW(),DW(),LW(),MW(),UW(),$W(),zW(),ZW(),HW(),WW(),JW(),XW(),QW(),eK(),rK(),tK(),nK(),aK(),jy=lf()),jy}iK();var qy={exports:{}},Wu={},Dy={exports:{}},Hr={},m3;function oK(){if(m3)return Hr;m3=1;/**
|
|
6
|
+
* @license React
|
|
7
|
+
* react.production.min.js
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the MIT license found in the
|
|
12
|
+
* LICENSE file in the root directory of this source tree.
|
|
13
|
+
*/var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),c=Symbol.iterator;function _(L){return L===null||typeof L!="object"?null:(L=c&&L[c]||L["@@iterator"],typeof L=="function"?L:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,w={};function T(L,F,V){this.props=L,this.context=F,this.refs=w,this.updater=V||E}T.prototype.isReactComponent={},T.prototype.setState=function(L,F){if(typeof L!="object"&&typeof L!="function"&&L!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,L,F,"setState")},T.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function b(){}b.prototype=T.prototype;function I(L,F,V){this.props=L,this.context=F,this.refs=w,this.updater=V||E}var m=I.prototype=new b;m.constructor=I,S(m,T.prototype),m.isPureReactComponent=!0;var p=Array.isArray,y=Object.prototype.hasOwnProperty,g={current:null},x={key:!0,ref:!0,__self:!0,__source:!0};function R(L,F,V){var ae,oe={},_e=null,he=null;if(F!=null)for(ae in F.ref!==void 0&&(he=F.ref),F.key!==void 0&&(_e=""+F.key),F)y.call(F,ae)&&!x.hasOwnProperty(ae)&&(oe[ae]=F[ae]);var ye=arguments.length-2;if(ye===1)oe.children=V;else if(1<ye){for(var ge=Array(ye),Re=0;Re<ye;Re++)ge[Re]=arguments[Re+2];oe.children=ge}if(L&&L.defaultProps)for(ae in ye=L.defaultProps,ye)oe[ae]===void 0&&(oe[ae]=ye[ae]);return{$$typeof:e,type:L,key:_e,ref:he,props:oe,_owner:g.current}}function O(L,F){return{$$typeof:e,type:L.type,key:F,ref:L.ref,props:L.props,_owner:L._owner}}function j(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function k(L){var F={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(V){return F[V]})}var N=/\/+/g;function D(L,F){return typeof L=="object"&&L!==null&&L.key!=null?k(""+L.key):F.toString(36)}function U(L,F,V,ae,oe){var _e=typeof L;(_e==="undefined"||_e==="boolean")&&(L=null);var he=!1;if(L===null)he=!0;else switch(_e){case"string":case"number":he=!0;break;case"object":switch(L.$$typeof){case e:case r:he=!0}}if(he)return he=L,oe=oe(he),L=ae===""?"."+D(he,0):ae,p(oe)?(V="",L!=null&&(V=L.replace(N,"$&/")+"/"),U(oe,F,V,"",function(Re){return Re})):oe!=null&&(j(oe)&&(oe=O(oe,V+(!oe.key||he&&he.key===oe.key?"":(""+oe.key).replace(N,"$&/")+"/")+L)),F.push(oe)),1;if(he=0,ae=ae===""?".":ae+":",p(L))for(var ye=0;ye<L.length;ye++){_e=L[ye];var ge=ae+D(_e,ye);he+=U(_e,F,V,ge,oe)}else if(ge=_(L),typeof ge=="function")for(L=ge.call(L),ye=0;!(_e=L.next()).done;)_e=_e.value,ge=ae+D(_e,ye++),he+=U(_e,F,V,ge,oe);else if(_e==="object")throw F=String(L),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.");return he}function B(L,F,V){if(L==null)return L;var ae=[],oe=0;return U(L,ae,"","",function(_e){return F.call(V,_e,oe++)}),ae}function H(L){if(L._status===-1){var F=L._result;F=F(),F.then(function(V){(L._status===0||L._status===-1)&&(L._status=1,L._result=V)},function(V){(L._status===0||L._status===-1)&&(L._status=2,L._result=V)}),L._status===-1&&(L._status=0,L._result=F)}if(L._status===1)return L._result.default;throw L._result}var G={current:null},$={transition:null},M={ReactCurrentDispatcher:G,ReactCurrentBatchConfig:$,ReactCurrentOwner:g};return Hr.Children={map:B,forEach:function(L,F,V){B(L,function(){F.apply(this,arguments)},V)},count:function(L){var F=0;return B(L,function(){F++}),F},toArray:function(L){return B(L,function(F){return F})||[]},only:function(L){if(!j(L))throw Error("React.Children.only expected to receive a single React element child.");return L}},Hr.Component=T,Hr.Fragment=t,Hr.Profiler=o,Hr.PureComponent=I,Hr.StrictMode=a,Hr.Suspense=d,Hr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,Hr.cloneElement=function(L,F,V){if(L==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+L+".");var ae=S({},L.props),oe=L.key,_e=L.ref,he=L._owner;if(F!=null){if(F.ref!==void 0&&(_e=F.ref,he=g.current),F.key!==void 0&&(oe=""+F.key),L.type&&L.type.defaultProps)var ye=L.type.defaultProps;for(ge in F)y.call(F,ge)&&!x.hasOwnProperty(ge)&&(ae[ge]=F[ge]===void 0&&ye!==void 0?ye[ge]:F[ge])}var ge=arguments.length-2;if(ge===1)ae.children=V;else if(1<ge){ye=Array(ge);for(var Re=0;Re<ge;Re++)ye[Re]=arguments[Re+2];ae.children=ye}return{$$typeof:e,type:L.type,key:oe,ref:_e,props:ae,_owner:he}},Hr.createContext=function(L){return L={$$typeof:u,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},L.Provider={$$typeof:s,_context:L},L.Consumer=L},Hr.createElement=R,Hr.createFactory=function(L){var F=R.bind(null,L);return F.type=L,F},Hr.createRef=function(){return{current:null}},Hr.forwardRef=function(L){return{$$typeof:v,render:L}},Hr.isValidElement=j,Hr.lazy=function(L){return{$$typeof:f,_payload:{_status:-1,_result:L},_init:H}},Hr.memo=function(L,F){return{$$typeof:h,type:L,compare:F===void 0?null:F}},Hr.startTransition=function(L){var F=$.transition;$.transition={};try{L()}finally{$.transition=F}},Hr.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},Hr.useCallback=function(L,F){return G.current.useCallback(L,F)},Hr.useContext=function(L){return G.current.useContext(L)},Hr.useDebugValue=function(){},Hr.useDeferredValue=function(L){return G.current.useDeferredValue(L)},Hr.useEffect=function(L,F){return G.current.useEffect(L,F)},Hr.useId=function(){return G.current.useId()},Hr.useImperativeHandle=function(L,F,V){return G.current.useImperativeHandle(L,F,V)},Hr.useInsertionEffect=function(L,F){return G.current.useInsertionEffect(L,F)},Hr.useLayoutEffect=function(L,F){return G.current.useLayoutEffect(L,F)},Hr.useMemo=function(L,F){return G.current.useMemo(L,F)},Hr.useReducer=function(L,F,V){return G.current.useReducer(L,F,V)},Hr.useRef=function(L){return G.current.useRef(L)},Hr.useState=function(L){return G.current.useState(L)},Hr.useSyncExternalStore=function(L,F,V){return G.current.useSyncExternalStore(L,F,V)},Hr.useTransition=function(){return G.current.useTransition()},Hr.version="18.1.0",Hr}var y3;function Cl(){return y3||(y3=1,Dy.exports=oK()),Dy.exports}/**
|
|
14
|
+
* @license React
|
|
15
|
+
* react-jsx-runtime.production.min.js
|
|
16
|
+
*
|
|
17
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the MIT license found in the
|
|
20
|
+
* LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/var b3;function sK(){if(b3)return Wu;b3=1;var e=Cl(),r=Symbol.for("react.element"),t=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(v,d,h){var f,c={},_=null,E=null;h!==void 0&&(_=""+h),d.key!==void 0&&(_=""+d.key),d.ref!==void 0&&(E=d.ref);for(f in d)a.call(d,f)&&!s.hasOwnProperty(f)&&(c[f]=d[f]);if(v&&v.defaultProps)for(f in d=v.defaultProps,d)c[f]===void 0&&(c[f]=d[f]);return{$$typeof:r,type:v,key:_,ref:E,props:c,_owner:o.current}}return Wu.Fragment=t,Wu.jsx=u,Wu.jsxs=u,Wu}var _3;function uK(){return _3||(_3=1,qy.exports=sK()),qy.exports}var A=uK(),Dc={},Ly={exports:{}},sa={},My={exports:{}},Uy={};/**
|
|
22
|
+
* @license React
|
|
23
|
+
* scheduler.production.min.js
|
|
24
|
+
*
|
|
25
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
26
|
+
*
|
|
27
|
+
* This source code is licensed under the MIT license found in the
|
|
28
|
+
* LICENSE file in the root directory of this source tree.
|
|
29
|
+
*/var S3;function lK(){return S3||(S3=1,(function(e){function r($,M){var L=$.length;$.push(M);e:for(;0<L;){var F=L-1>>>1,V=$[F];if(0<o(V,M))$[F]=M,$[L]=V,L=F;else break e}}function t($){return $.length===0?null:$[0]}function a($){if($.length===0)return null;var M=$[0],L=$.pop();if(L!==M){$[0]=L;e:for(var F=0,V=$.length,ae=V>>>1;F<ae;){var oe=2*(F+1)-1,_e=$[oe],he=oe+1,ye=$[he];if(0>o(_e,L))he<V&&0>o(ye,_e)?($[F]=ye,$[he]=L,F=he):($[F]=_e,$[oe]=L,F=oe);else if(he<V&&0>o(ye,L))$[F]=ye,$[he]=L,F=he;else break e}}return M}function o($,M){var L=$.sortIndex-M.sortIndex;return L!==0?L:$.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var u=Date,v=u.now();e.unstable_now=function(){return u.now()-v}}var d=[],h=[],f=1,c=null,_=3,E=!1,S=!1,w=!1,T=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,I=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m($){for(var M=t(h);M!==null;){if(M.callback===null)a(h);else if(M.startTime<=$)a(h),M.sortIndex=M.expirationTime,r(d,M);else break;M=t(h)}}function p($){if(w=!1,m($),!S)if(t(d)!==null)S=!0,H(y);else{var M=t(h);M!==null&&G(p,M.startTime-$)}}function y($,M){S=!1,w&&(w=!1,b(R),R=-1),E=!0;var L=_;try{for(m(M),c=t(d);c!==null&&(!(c.expirationTime>M)||$&&!k());){var F=c.callback;if(typeof F=="function"){c.callback=null,_=c.priorityLevel;var V=F(c.expirationTime<=M);M=e.unstable_now(),typeof V=="function"?c.callback=V:c===t(d)&&a(d),m(M)}else a(d);c=t(d)}if(c!==null)var ae=!0;else{var oe=t(h);oe!==null&&G(p,oe.startTime-M),ae=!1}return ae}finally{c=null,_=L,E=!1}}var g=!1,x=null,R=-1,O=5,j=-1;function k(){return!(e.unstable_now()-j<O)}function N(){if(x!==null){var $=e.unstable_now();j=$;var M=!0;try{M=x(!0,$)}finally{M?D():(g=!1,x=null)}}else g=!1}var D;if(typeof I=="function")D=function(){I(N)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,B=U.port2;U.port1.onmessage=N,D=function(){B.postMessage(null)}}else D=function(){T(N,0)};function H($){x=$,g||(g=!0,D())}function G($,M){R=T(function(){$(e.unstable_now())},M)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function($){$.callback=null},e.unstable_continueExecution=function(){S||E||(S=!0,H(y))},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_getFirstCallbackNode=function(){return t(d)},e.unstable_next=function($){switch(_){case 1:case 2:case 3:var M=3;break;default:M=_}var L=_;_=M;try{return $()}finally{_=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,M){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var L=_;_=$;try{return M()}finally{_=L}},e.unstable_scheduleCallback=function($,M,L){var F=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?F+L:F):L=F,$){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=L+V,$={id:f++,callback:M,priorityLevel:$,startTime:L,expirationTime:V,sortIndex:-1},L>F?($.sortIndex=L,r(h,$),t(d)===null&&$===t(h)&&(w?(b(R),R=-1):w=!0,G(p,L-F))):($.sortIndex=V,r(d,$),S||E||(S=!0,H(y))),$},e.unstable_shouldYield=k,e.unstable_wrapCallback=function($){var M=_;return function(){var L=_;_=M;try{return $.apply(this,arguments)}finally{_=L}}}})(Uy)),Uy}var w3;function cK(){return w3||(w3=1,My.exports=lK()),My.exports}/**
|
|
30
|
+
* @license React
|
|
31
|
+
* react-dom.production.min.js
|
|
32
|
+
*
|
|
33
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
34
|
+
*
|
|
35
|
+
* This source code is licensed under the MIT license found in the
|
|
36
|
+
* LICENSE file in the root directory of this source tree.
|
|
37
|
+
*/var E3;function fK(){if(E3)return sa;E3=1;var e=Cl(),r=cK();function t(n){for(var i="https://reactjs.org/docs/error-decoder.html?invariant="+n,l=1;l<arguments.length;l++)i+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,o={};function s(n,i){u(n,i),u(n+"Capture",i)}function u(n,i){for(o[n]=i,n=0;n<i.length;n++)a.add(i[n])}var v=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),d=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},c={};function _(n){return d.call(c,n)?!0:d.call(f,n)?!1:h.test(n)?c[n]=!0:(f[n]=!0,!1)}function E(n,i,l,C){if(l!==null&&l.type===0)return!1;switch(typeof i){case"function":case"symbol":return!0;case"boolean":return C?!1:l!==null?!l.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function S(n,i,l,C){if(i===null||typeof i>"u"||E(n,i,l,C))return!0;if(C)return!1;if(l!==null)switch(l.type){case 3:return!i;case 4:return i===!1;case 5:return isNaN(i);case 6:return isNaN(i)||1>i}return!1}function w(n,i,l,C,P,q,K){this.acceptsBooleans=i===2||i===3||i===4,this.attributeName=C,this.attributeNamespace=P,this.mustUseProperty=l,this.propertyName=n,this.type=i,this.sanitizeURL=q,this.removeEmptyString=K}var T={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){T[n]=new w(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var i=n[0];T[i]=new w(i,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){T[n]=new w(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){T[n]=new w(n,2,!1,n,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){T[n]=new w(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){T[n]=new w(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){T[n]=new w(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){T[n]=new w(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){T[n]=new w(n,5,!1,n.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function I(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var i=n.replace(b,I);T[i]=new w(i,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var i=n.replace(b,I);T[i]=new w(i,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var i=n.replace(b,I);T[i]=new w(i,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){T[n]=new w(n,1,!1,n.toLowerCase(),null,!1,!1)}),T.xlinkHref=new w("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){T[n]=new w(n,1,!1,n.toLowerCase(),null,!0,!0)});function m(n,i,l,C){var P=T.hasOwnProperty(i)?T[i]:null;(P!==null?P.type!==0:C||!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(S(i,l,P,C)&&(l=null),C||P===null?_(i)&&(l===null?n.removeAttribute(i):n.setAttribute(i,""+l)):P.mustUseProperty?n[P.propertyName]=l===null?P.type===3?!1:"":l:(i=P.attributeName,C=P.attributeNamespace,l===null?n.removeAttribute(i):(P=P.type,l=P===3||P===4&&l===!0?"":""+l,C?n.setAttributeNS(C,i,l):n.setAttribute(i,l))))}var p=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,y=Symbol.for("react.element"),g=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),O=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),k=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),D=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),G=Symbol.for("react.offscreen"),$=Symbol.iterator;function M(n){return n===null||typeof n!="object"?null:(n=$&&n[$]||n["@@iterator"],typeof n=="function"?n:null)}var L=Object.assign,F;function V(n){if(F===void 0)try{throw Error()}catch(l){var i=l.stack.trim().match(/\n( *(at )?)/);F=i&&i[1]||""}return`
|
|
38
|
+
`+F+n}var ae=!1;function oe(n,i){if(!n||ae)return"";ae=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(i)if(i=function(){throw Error()},Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(we){var C=we}Reflect.construct(n,[],i)}else{try{i.call()}catch(we){C=we}n.call(i.prototype)}else{try{throw Error()}catch(we){C=we}n()}}catch(we){if(we&&C&&typeof we.stack=="string"){for(var P=we.stack.split(`
|
|
39
|
+
`),q=C.stack.split(`
|
|
40
|
+
`),K=P.length-1,ee=q.length-1;1<=K&&0<=ee&&P[K]!==q[ee];)ee--;for(;1<=K&&0<=ee;K--,ee--)if(P[K]!==q[ee]){if(K!==1||ee!==1)do if(K--,ee--,0>ee||P[K]!==q[ee]){var se=`
|
|
41
|
+
`+P[K].replace(" at new "," at ");return n.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",n.displayName)),se}while(1<=K&&0<=ee);break}}}finally{ae=!1,Error.prepareStackTrace=l}return(n=n?n.displayName||n.name:"")?V(n):""}function _e(n){switch(n.tag){case 5:return V(n.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return n=oe(n.type,!1),n;case 11:return n=oe(n.type.render,!1),n;case 1:return n=oe(n.type,!0),n;default:return""}}function he(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case x:return"Fragment";case g:return"Portal";case O:return"Profiler";case R:return"StrictMode";case D:return"Suspense";case U:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case k:return(n.displayName||"Context")+".Consumer";case j:return(n._context.displayName||"Context")+".Provider";case N:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case B:return i=n.displayName||null,i!==null?i:he(n.type)||"Memo";case H:i=n._payload,n=n._init;try{return he(n(i))}catch{}}return null}function ye(n){var i=n.type;switch(n.tag){case 24:return"Cache";case 9:return(i.displayName||"Context")+".Consumer";case 10:return(i._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=i.render,n=n.displayName||n.name||"",i.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return i;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return he(i);case 8:return i===R?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i}return null}function ge(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function Re(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function We(n){var i=Re(n)?"checked":"value",l=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),C=""+n[i];if(!n.hasOwnProperty(i)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var P=l.get,q=l.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return P.call(this)},set:function(K){C=""+K,q.call(this,K)}}),Object.defineProperty(n,i,{enumerable:l.enumerable}),{getValue:function(){return C},setValue:function(K){C=""+K},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function He(n){n._valueTracker||(n._valueTracker=We(n))}function nr(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var l=i.getValue(),C="";return n&&(C=Re(n)?n.checked?"true":"false":n.value),n=C,n!==l?(i.setValue(n),!0):!1}function ar(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function xr(n,i){var l=i.checked;return L({},i,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??n._wrapperState.initialChecked})}function or(n,i){var l=i.defaultValue==null?"":i.defaultValue,C=i.checked!=null?i.checked:i.defaultChecked;l=ge(i.value!=null?i.value:l),n._wrapperState={initialChecked:C,initialValue:l,controlled:i.type==="checkbox"||i.type==="radio"?i.checked!=null:i.value!=null}}function lr(n,i){i=i.checked,i!=null&&m(n,"checked",i,!1)}function Ve(n,i){lr(n,i);var l=ge(i.value),C=i.type;if(l!=null)C==="number"?(l===0&&n.value===""||n.value!=l)&&(n.value=""+l):n.value!==""+l&&(n.value=""+l);else if(C==="submit"||C==="reset"){n.removeAttribute("value");return}i.hasOwnProperty("value")?W(n,i.type,l):i.hasOwnProperty("defaultValue")&&W(n,i.type,ge(i.defaultValue)),i.checked==null&&i.defaultChecked!=null&&(n.defaultChecked=!!i.defaultChecked)}function Ge(n,i,l){if(i.hasOwnProperty("value")||i.hasOwnProperty("defaultValue")){var C=i.type;if(!(C!=="submit"&&C!=="reset"||i.value!==void 0&&i.value!==null))return;i=""+n._wrapperState.initialValue,l||i===n.value||(n.value=i),n.defaultValue=i}l=n.name,l!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,l!==""&&(n.name=l)}function W(n,i,l){(i!=="number"||ar(n.ownerDocument)!==n)&&(l==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+l&&(n.defaultValue=""+l))}var Y=Array.isArray;function Q(n,i,l,C){if(n=n.options,i){i={};for(var P=0;P<l.length;P++)i["$"+l[P]]=!0;for(l=0;l<n.length;l++)P=i.hasOwnProperty("$"+n[l].value),n[l].selected!==P&&(n[l].selected=P),P&&C&&(n[l].defaultSelected=!0)}else{for(l=""+ge(l),i=null,P=0;P<n.length;P++){if(n[P].value===l){n[P].selected=!0,C&&(n[P].defaultSelected=!0);return}i!==null||n[P].disabled||(i=n[P])}i!==null&&(i.selected=!0)}}function re(n,i){if(i.dangerouslySetInnerHTML!=null)throw Error(t(91));return L({},i,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function pe(n,i){var l=i.value;if(l==null){if(l=i.children,i=i.defaultValue,l!=null){if(i!=null)throw Error(t(92));if(Y(l)){if(1<l.length)throw Error(t(93));l=l[0]}i=l}i==null&&(i=""),l=i}n._wrapperState={initialValue:ge(l)}}function le(n,i){var l=ge(i.value),C=ge(i.defaultValue);l!=null&&(l=""+l,l!==n.value&&(n.value=l),i.defaultValue==null&&n.defaultValue!==l&&(n.defaultValue=l)),C!=null&&(n.defaultValue=""+C)}function Ee(n){var i=n.textContent;i===n._wrapperState.initialValue&&i!==""&&i!==null&&(n.value=i)}function fe(n){switch(n){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Pe(n,i){return n==null||n==="http://www.w3.org/1999/xhtml"?fe(i):n==="http://www.w3.org/2000/svg"&&i==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var ur,cr=(function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(i,l,C,P){MSApp.execUnsafeLocalFunction(function(){return n(i,l,C,P)})}:n})(function(n,i){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=i;else{for(ur=ur||document.createElement("div"),ur.innerHTML="<svg>"+i.valueOf().toString()+"</svg>",i=ur.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;i.firstChild;)n.appendChild(i.firstChild)}});function de(n,i){if(i){var l=n.firstChild;if(l&&l===n.lastChild&&l.nodeType===3){l.nodeValue=i;return}}n.textContent=i}var Ae={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ne=["Webkit","ms","Moz","O"];Object.keys(Ae).forEach(function(n){Ne.forEach(function(i){i=i+n.charAt(0).toUpperCase()+n.substring(1),Ae[i]=Ae[n]})});function Oe(n,i,l){return i==null||typeof i=="boolean"||i===""?"":l||typeof i!="number"||i===0||Ae.hasOwnProperty(n)&&Ae[n]?(""+i).trim():i+"px"}function De(n,i){n=n.style;for(var l in i)if(i.hasOwnProperty(l)){var C=l.indexOf("--")===0,P=Oe(l,i[l],C);l==="float"&&(l="cssFloat"),C?n.setProperty(l,P):n[l]=P}}var Te=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vr(n,i){if(i){if(Te[n]&&(i.children!=null||i.dangerouslySetInnerHTML!=null))throw Error(t(137,n));if(i.dangerouslySetInnerHTML!=null){if(i.children!=null)throw Error(t(60));if(typeof i.dangerouslySetInnerHTML!="object"||!("__html"in i.dangerouslySetInnerHTML))throw Error(t(61))}if(i.style!=null&&typeof i.style!="object")throw Error(t(62))}}function $r(n,i){if(n.indexOf("-")===-1)return typeof i.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Me=null;function rr(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Xe=null,Qe=null,hr=null;function gr(n){if(n=ku(n)){if(typeof Xe!="function")throw Error(t(280));var i=n.stateNode;i&&(i=Kl(i),Xe(n.stateNode,n.type,i))}}function Kr(n){Qe?hr?hr.push(n):hr=[n]:Qe=n}function et(){if(Qe){var n=Qe,i=hr;if(hr=Qe=null,gr(n),i)for(n=0;n<i.length;n++)gr(i[n])}}function St(n,i){return n(i)}function Gt(){}var it=!1;function cn(n,i,l){if(it)return n(i,l);it=!0;try{return St(n,i,l)}finally{it=!1,(Qe!==null||hr!==null)&&(Gt(),et())}}function Za(n,i){var l=n.stateNode;if(l===null)return null;var C=Kl(l);if(C===null)return null;l=C[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(C=!C.disabled)||(n=n.type,C=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!C;break e;default:n=!1}if(n)return null;if(l&&typeof l!="function")throw Error(t(231,i,typeof l));return l}var va=!1;if(v)try{var Qn={};Object.defineProperty(Qn,"passive",{get:function(){va=!0}}),window.addEventListener("test",Qn,Qn),window.removeEventListener("test",Qn,Qn)}catch{va=!1}function ea(n,i,l,C,P,q,K,ee,se){var we=Array.prototype.slice.call(arguments,3);try{i.apply(l,we)}catch($e){this.onError($e)}}var ii=!1,Mt=null,Ut=!1,Ha=null,Va={onError:function(n){ii=!0,Mt=n}};function Qt(n,i,l,C,P,q,K,ee,se){ii=!1,Mt=null,ea.apply(Va,arguments)}function yn(n,i,l,C,P,q,K,ee,se){if(Qt.apply(this,arguments),ii){if(ii){var we=Mt;ii=!1,Mt=null}else throw Error(t(198));Ut||(Ut=!0,Ha=we)}}function qn(n){var i=n,l=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,(i.flags&4098)!==0&&(l=i.return),n=i.return;while(n)}return i.tag===3?l:null}function To(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function Ce(n){if(qn(n)!==n)throw Error(t(188))}function Ke(n){var i=n.alternate;if(!i){if(i=qn(n),i===null)throw Error(t(188));return i!==n?null:n}for(var l=n,C=i;;){var P=l.return;if(P===null)break;var q=P.alternate;if(q===null){if(C=P.return,C!==null){l=C;continue}break}if(P.child===q.child){for(q=P.child;q;){if(q===l)return Ce(P),n;if(q===C)return Ce(P),i;q=q.sibling}throw Error(t(188))}if(l.return!==C.return)l=P,C=q;else{for(var K=!1,ee=P.child;ee;){if(ee===l){K=!0,l=P,C=q;break}if(ee===C){K=!0,C=P,l=q;break}ee=ee.sibling}if(!K){for(ee=q.child;ee;){if(ee===l){K=!0,l=q,C=P;break}if(ee===C){K=!0,C=q,l=P;break}ee=ee.sibling}if(!K)throw Error(t(189))}}if(l.alternate!==C)throw Error(t(190))}if(l.tag!==3)throw Error(t(188));return l.stateNode.current===l?n:i}function xe(n){return n=Ke(n),n!==null?me(n):null}function me(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var i=me(n);if(i!==null)return i;n=n.sibling}return null}var Be=r.unstable_scheduleCallback,kr=r.unstable_cancelCallback,mr=r.unstable_shouldYield,wt=r.unstable_requestPaint,Fr=r.unstable_now,Rt=r.unstable_getCurrentPriorityLevel,fn=r.unstable_ImmediatePriority,ze=r.unstable_UserBlockingPriority,Et=r.unstable_NormalPriority,pa=r.unstable_LowPriority,oi=r.unstable_IdlePriority,wi=null,Vn=null;function Wi(n){if(Vn&&typeof Vn.onCommitFiberRoot=="function")try{Vn.onCommitFiberRoot(wi,n,void 0,(n.current.flags&128)===128)}catch{}}var Dn=Math.clz32?Math.clz32:gu,vu=Math.log,pu=Math.LN2;function gu(n){return n>>>=0,n===0?32:31-(vu(n)/pu|0)|0}var Ki=64,Yi=4194304;function Ei(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Ji(n,i){var l=n.pendingLanes;if(l===0)return 0;var C=0,P=n.suspendedLanes,q=n.pingedLanes,K=l&268435455;if(K!==0){var ee=K&~P;ee!==0?C=Ei(ee):(q&=K,q!==0&&(C=Ei(q)))}else K=l&~P,K!==0?C=Ei(K):q!==0&&(C=Ei(q));if(C===0)return 0;if(i!==0&&i!==C&&(i&P)===0&&(P=C&-C,q=i&-i,P>=q||P===16&&(q&4194240)!==0))return i;if((C&4)!==0&&(C|=l&16),i=n.entangledLanes,i!==0)for(n=n.entanglements,i&=C;0<i;)l=31-Dn(i),P=1<<l,C|=n[l],i&=~P;return C}function mu(n,i){switch(n){case 1:case 2:case 4:return i+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function yu(n,i){for(var l=n.suspendedLanes,C=n.pingedLanes,P=n.expirationTimes,q=n.pendingLanes;0<q;){var K=31-Dn(q),ee=1<<K,se=P[K];se===-1?((ee&l)===0||(ee&C)!==0)&&(P[K]=mu(ee,i)):se<=i&&(n.expiredLanes|=ee),q&=~ee}}function Ro(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function si(){var n=Ki;return Ki<<=1,(Ki&4194240)===0&&(Ki=64),n}function en(n){for(var i=[],l=0;31>l;l++)i.push(n);return i}function bn(n,i,l){n.pendingLanes|=i,i!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,i=31-Dn(i),n[i]=l}function ql(n,i){var l=n.pendingLanes&~i;n.pendingLanes=i,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=i,n.mutableReadLanes&=i,n.entangledLanes&=i,i=n.entanglements;var C=n.eventTimes;for(n=n.expirationTimes;0<l;){var P=31-Dn(l),q=1<<P;i[P]=0,C[P]=-1,n[P]=-1,l&=~q}}function bu(n,i){var l=n.entangledLanes|=i;for(n=n.entanglements;l;){var C=31-Dn(l),P=1<<C;P&i|n[C]&i&&(n[C]|=i),l&=~P}}var ct=0;function Ci(n){return n&=-n,1<n?4<n?(n&268435455)!==0?16:536870912:4:1}var Dl,_u,ms,Ll,Ml,ys=!1,xi=[],ui=null,li=null,ci=null,Ra=new Map,Xi=new Map,Ga=[],Qi="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ii(n,i){switch(n){case"focusin":case"focusout":ui=null;break;case"dragenter":case"dragleave":li=null;break;case"mouseover":case"mouseout":ci=null;break;case"pointerover":case"pointerout":Ra.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xi.delete(i.pointerId)}}function pt(n,i,l,C,P,q){return n===null||n.nativeEvent!==q?(n={blockedOn:i,domEventName:l,eventSystemFlags:C,nativeEvent:q,targetContainers:[P]},i!==null&&(i=ku(i),i!==null&&_u(i)),n):(n.eventSystemFlags|=C,i=n.targetContainers,P!==null&&i.indexOf(P)===-1&&i.push(P),n)}function Oa(n,i,l,C,P){switch(i){case"focusin":return ui=pt(ui,n,i,l,C,P),!0;case"dragenter":return li=pt(li,n,i,l,C,P),!0;case"mouseover":return ci=pt(ci,n,i,l,C,P),!0;case"pointerover":var q=P.pointerId;return Ra.set(q,pt(Ra.get(q)||null,n,i,l,C,P)),!0;case"gotpointercapture":return q=P.pointerId,Xi.set(q,pt(Xi.get(q)||null,n,i,l,C,P)),!0}return!1}function eo(n){var i=ko(n.target);if(i!==null){var l=qn(i);if(l!==null){if(i=l.tag,i===13){if(i=To(l),i!==null){n.blockedOn=i,Ml(n.priority,function(){ms(l)});return}}else if(i===3&&l.stateNode.current.memoizedState.isDehydrated){n.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}n.blockedOn=null}function bs(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var l=ve(n.domEventName,n.eventSystemFlags,i[0],n.nativeEvent);if(l===null){l=n.nativeEvent;var C=new l.constructor(l.type,l);Me=C,l.target.dispatchEvent(C),Me=null}else return i=ku(l),i!==null&&_u(i),n.blockedOn=l,!1;i.shift()}return!0}function Ul(n,i,l){bs(n)&&l.delete(i)}function nd(){ys=!1,ui!==null&&bs(ui)&&(ui=null),li!==null&&bs(li)&&(li=null),ci!==null&&bs(ci)&&(ci=null),Ra.forEach(Ul),Xi.forEach(Ul)}function Oo(n,i){n.blockedOn===i&&(n.blockedOn=null,ys||(ys=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,nd)))}function z(n){function i(P){return Oo(P,n)}if(0<xi.length){Oo(xi[0],n);for(var l=1;l<xi.length;l++){var C=xi[l];C.blockedOn===n&&(C.blockedOn=null)}}for(ui!==null&&Oo(ui,n),li!==null&&Oo(li,n),ci!==null&&Oo(ci,n),Ra.forEach(i),Xi.forEach(i),l=0;l<Ga.length;l++)C=Ga[l],C.blockedOn===n&&(C.blockedOn=null);for(;0<Ga.length&&(l=Ga[0],l.blockedOn===null);)eo(l),l.blockedOn===null&&Ga.shift()}var Z=p.ReactCurrentBatchConfig,X=!0;function te(n,i,l,C){var P=ct,q=Z.transition;Z.transition=null;try{ct=1,ne(n,i,l,C)}finally{ct=P,Z.transition=q}}function J(n,i,l,C){var P=ct,q=Z.transition;Z.transition=null;try{ct=4,ne(n,i,l,C)}finally{ct=P,Z.transition=q}}function ne(n,i,l,C){if(X){var P=ve(n,i,l,C);if(P===null)vd(n,i,C,ce,l),Ii(n,C);else if(Oa(P,n,i,l,C))C.stopPropagation();else if(Ii(n,C),i&4&&-1<Qi.indexOf(n)){for(;P!==null;){var q=ku(P);if(q!==null&&Dl(q),q=ve(n,i,l,C),q===null&&vd(n,i,C,ce,l),q===P)break;P=q}P!==null&&C.stopPropagation()}else vd(n,i,C,null,l)}}var ce=null;function ve(n,i,l,C){if(ce=null,n=rr(C),n=ko(n),n!==null)if(i=qn(n),i===null)n=null;else if(l=i.tag,l===13){if(n=To(i),n!==null)return n;n=null}else if(l===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null);return ce=n,null}function Ie(n){switch(n){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Rt()){case fn:return 1;case ze:return 4;case Et:case pa:return 16;case oi:return 536870912;default:return 16}default:return 16}}var ke=null,sr=null,jr=null;function wr(){if(jr)return jr;var n,i=sr,l=i.length,C,P="value"in ke?ke.value:ke.textContent,q=P.length;for(n=0;n<l&&i[n]===P[n];n++);var K=l-n;for(C=1;C<=K&&i[l-C]===P[q-C];C++);return jr=P.slice(n,1<C?1-C:void 0)}function Lr(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function Ar(){return!0}function br(){return!1}function Le(n){function i(l,C,P,q,K){this._reactName=l,this._targetInst=P,this.type=C,this.nativeEvent=q,this.target=K,this.currentTarget=null;for(var ee in n)n.hasOwnProperty(ee)&&(l=n[ee],this[ee]=l?l(q):q[ee]);return this.isDefaultPrevented=(q.defaultPrevented!=null?q.defaultPrevented:q.returnValue===!1)?Ar:br,this.isPropagationStopped=br,this}return L(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Ar)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ar)},persist:function(){},isPersistent:Ar}),i}var ot={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rn=Le(ot),Ft=L({},ot,{view:0,detail:0}),fi=Le(Ft),Bt,ft,Ln,Yr=L({},Ft,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ga,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Ln&&(Ln&&n.type==="mousemove"?(Bt=n.screenX-Ln.screenX,ft=n.screenY-Ln.screenY):ft=Bt=0,Ln=n),Bt)},movementY:function(n){return"movementY"in n?n.movementY:ft}}),st=Le(Yr),gt=L({},Yr,{dataTransfer:0}),_n=Le(gt),dn=L({},Ft,{relatedTarget:0}),tt=Le(dn),tn=L({},ot,{animationName:0,elapsedTime:0,pseudoElement:0}),Ye=Le(tn),Fe=L({},ot,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),Ue=Le(Fe),_r=L({},ot,{data:0}),Cr=Le(_r),nt={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ot={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wn(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=Sn[n])?!!i[n]:!1}function ga(){return wn}var Ai=L({},Ft,{key:function(n){if(n.key){var i=nt[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Lr(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?Ot[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ga,charCode:function(n){return n.type==="keypress"?Lr(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Lr(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),Wa=Le(Ai),Su=L({},Yr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pr=Le(Su),Jr=L({},Ft,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ga}),Ct=Le(Jr),Fl=L({},ot,{propertyName:0,elapsedTime:0,pseudoElement:0}),Bl=Le(Fl),EB=L({},Yr,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),CB=Le(EB),xB=[9,13,27,32],ad=v&&"CompositionEvent"in window,wu=null;v&&"documentMode"in document&&(wu=document.documentMode);var IB=v&&"TextEvent"in window&&!wu,OS=v&&(!ad||wu&&8<wu&&11>=wu),kS=" ",PS=!1;function NS(n,i){switch(n){case"keyup":return xB.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jS(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var _s=!1;function AB(n,i){switch(n){case"compositionend":return jS(i);case"keypress":return i.which!==32?null:(PS=!0,kS);case"textInput":return n=i.data,n===kS&&PS?null:n;default:return null}}function TB(n,i){if(_s)return n==="compositionend"||!ad&&NS(n,i)?(n=wr(),jr=sr=ke=null,_s=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return OS&&i.locale!=="ko"?null:i.data;default:return null}}var RB={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qS(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!RB[n.type]:i==="textarea"}function DS(n,i,l,C){Kr(C),i=Vl(i,"onChange"),0<i.length&&(l=new rn("onChange","change",null,l,C),n.push({event:l,listeners:i}))}var Eu=null,Cu=null;function OB(n){ew(n,0)}function $l(n){var i=xs(n);if(nr(i))return n}function kB(n,i){if(n==="change")return i}var LS=!1;if(v){var id;if(v){var od="oninput"in document;if(!od){var MS=document.createElement("div");MS.setAttribute("oninput","return;"),od=typeof MS.oninput=="function"}id=od}else id=!1;LS=id&&(!document.documentMode||9<document.documentMode)}function US(){Eu&&(Eu.detachEvent("onpropertychange",FS),Cu=Eu=null)}function FS(n){if(n.propertyName==="value"&&$l(Cu)){var i=[];DS(i,Cu,n,rr(n)),cn(OB,i)}}function PB(n,i,l){n==="focusin"?(US(),Eu=i,Cu=l,Eu.attachEvent("onpropertychange",FS)):n==="focusout"&&US()}function NB(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return $l(Cu)}function jB(n,i){if(n==="click")return $l(i)}function qB(n,i){if(n==="input"||n==="change")return $l(i)}function DB(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var Ka=typeof Object.is=="function"?Object.is:DB;function xu(n,i){if(Ka(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var l=Object.keys(n),C=Object.keys(i);if(l.length!==C.length)return!1;for(C=0;C<l.length;C++){var P=l[C];if(!d.call(i,P)||!Ka(n[P],i[P]))return!1}return!0}function BS(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function $S(n,i){var l=BS(n);n=0;for(var C;l;){if(l.nodeType===3){if(C=n+l.textContent.length,n<=i&&C>=i)return{node:l,offset:i-n};n=C}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=BS(l)}}function zS(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?zS(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function ZS(){for(var n=window,i=ar();i instanceof n.HTMLIFrameElement;){try{var l=typeof i.contentWindow.location.href=="string"}catch{l=!1}if(l)n=i.contentWindow;else break;i=ar(n.document)}return i}function sd(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}function LB(n){var i=ZS(),l=n.focusedElem,C=n.selectionRange;if(i!==l&&l&&l.ownerDocument&&zS(l.ownerDocument.documentElement,l)){if(C!==null&&sd(l)){if(i=C.start,n=C.end,n===void 0&&(n=i),"selectionStart"in l)l.selectionStart=i,l.selectionEnd=Math.min(n,l.value.length);else if(n=(i=l.ownerDocument||document)&&i.defaultView||window,n.getSelection){n=n.getSelection();var P=l.textContent.length,q=Math.min(C.start,P);C=C.end===void 0?q:Math.min(C.end,P),!n.extend&&q>C&&(P=C,C=q,q=P),P=$S(l,q);var K=$S(l,C);P&&K&&(n.rangeCount!==1||n.anchorNode!==P.node||n.anchorOffset!==P.offset||n.focusNode!==K.node||n.focusOffset!==K.offset)&&(i=i.createRange(),i.setStart(P.node,P.offset),n.removeAllRanges(),q>C?(n.addRange(i),n.extend(K.node,K.offset)):(i.setEnd(K.node,K.offset),n.addRange(i)))}}for(i=[],n=l;n=n.parentNode;)n.nodeType===1&&i.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<i.length;l++)n=i[l],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var MB=v&&"documentMode"in document&&11>=document.documentMode,Ss=null,ud=null,Iu=null,ld=!1;function HS(n,i,l){var C=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;ld||Ss==null||Ss!==ar(C)||(C=Ss,"selectionStart"in C&&sd(C)?C={start:C.selectionStart,end:C.selectionEnd}:(C=(C.ownerDocument&&C.ownerDocument.defaultView||window).getSelection(),C={anchorNode:C.anchorNode,anchorOffset:C.anchorOffset,focusNode:C.focusNode,focusOffset:C.focusOffset}),Iu&&xu(Iu,C)||(Iu=C,C=Vl(ud,"onSelect"),0<C.length&&(i=new rn("onSelect","select",null,i,l),n.push({event:i,listeners:C}),i.target=Ss)))}function zl(n,i){var l={};return l[n.toLowerCase()]=i.toLowerCase(),l["Webkit"+n]="webkit"+i,l["Moz"+n]="moz"+i,l}var ws={animationend:zl("Animation","AnimationEnd"),animationiteration:zl("Animation","AnimationIteration"),animationstart:zl("Animation","AnimationStart"),transitionend:zl("Transition","TransitionEnd")},cd={},VS={};v&&(VS=document.createElement("div").style,"AnimationEvent"in window||(delete ws.animationend.animation,delete ws.animationiteration.animation,delete ws.animationstart.animation),"TransitionEvent"in window||delete ws.transitionend.transition);function Zl(n){if(cd[n])return cd[n];if(!ws[n])return n;var i=ws[n],l;for(l in i)if(i.hasOwnProperty(l)&&l in VS)return cd[n]=i[l];return n}var GS=Zl("animationend"),WS=Zl("animationiteration"),KS=Zl("animationstart"),YS=Zl("transitionend"),JS=new Map,XS="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ro(n,i){JS.set(n,i),s(i,[n])}for(var fd=0;fd<XS.length;fd++){var dd=XS[fd],UB=dd.toLowerCase(),FB=dd[0].toUpperCase()+dd.slice(1);ro(UB,"on"+FB)}ro(GS,"onAnimationEnd"),ro(WS,"onAnimationIteration"),ro(KS,"onAnimationStart"),ro("dblclick","onDoubleClick"),ro("focusin","onFocus"),ro("focusout","onBlur"),ro(YS,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Au="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),BB=new Set("cancel close invalid load scroll toggle".split(" ").concat(Au));function QS(n,i,l){var C=n.type||"unknown-event";n.currentTarget=l,yn(C,i,void 0,n),n.currentTarget=null}function ew(n,i){i=(i&4)!==0;for(var l=0;l<n.length;l++){var C=n[l],P=C.event;C=C.listeners;e:{var q=void 0;if(i)for(var K=C.length-1;0<=K;K--){var ee=C[K],se=ee.instance,we=ee.currentTarget;if(ee=ee.listener,se!==q&&P.isPropagationStopped())break e;QS(P,ee,we),q=se}else for(K=0;K<C.length;K++){if(ee=C[K],se=ee.instance,we=ee.currentTarget,ee=ee.listener,se!==q&&P.isPropagationStopped())break e;QS(P,ee,we),q=se}}}if(Ut)throw n=Ha,Ut=!1,Ha=null,n}function xt(n,i){var l=i[_d];l===void 0&&(l=i[_d]=new Set);var C=n+"__bubble";l.has(C)||(rw(i,n,2,!1),l.add(C))}function hd(n,i,l){var C=0;i&&(C|=4),rw(l,n,C,i)}var Hl="_reactListening"+Math.random().toString(36).slice(2);function Tu(n){if(!n[Hl]){n[Hl]=!0,a.forEach(function(l){l!=="selectionchange"&&(BB.has(l)||hd(l,!1,n),hd(l,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[Hl]||(i[Hl]=!0,hd("selectionchange",!1,i))}}function rw(n,i,l,C){switch(Ie(i)){case 1:var P=te;break;case 4:P=J;break;default:P=ne}l=P.bind(null,i,l,n),P=void 0,!va||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(P=!0),C?P!==void 0?n.addEventListener(i,l,{capture:!0,passive:P}):n.addEventListener(i,l,!0):P!==void 0?n.addEventListener(i,l,{passive:P}):n.addEventListener(i,l,!1)}function vd(n,i,l,C,P){var q=C;if((i&1)===0&&(i&2)===0&&C!==null)e:for(;;){if(C===null)return;var K=C.tag;if(K===3||K===4){var ee=C.stateNode.containerInfo;if(ee===P||ee.nodeType===8&&ee.parentNode===P)break;if(K===4)for(K=C.return;K!==null;){var se=K.tag;if((se===3||se===4)&&(se=K.stateNode.containerInfo,se===P||se.nodeType===8&&se.parentNode===P))return;K=K.return}for(;ee!==null;){if(K=ko(ee),K===null)return;if(se=K.tag,se===5||se===6){C=q=K;continue e}ee=ee.parentNode}}C=C.return}cn(function(){var we=q,$e=rr(l),dr=[];e:{var qe=JS.get(n);if(qe!==void 0){var pr=rn,fr=n;switch(n){case"keypress":if(Lr(l)===0)break e;case"keydown":case"keyup":pr=Wa;break;case"focusin":fr="focus",pr=tt;break;case"focusout":fr="blur",pr=tt;break;case"beforeblur":case"afterblur":pr=tt;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":pr=st;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":pr=_n;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":pr=Ct;break;case GS:case WS:case KS:pr=Ye;break;case YS:pr=Bl;break;case"scroll":pr=fi;break;case"wheel":pr=CB;break;case"copy":case"cut":case"paste":pr=Ue;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":pr=Pr}var Br=(i&4)!==0,Wt=!Br&&n==="scroll",be=Br?qe!==null?qe+"Capture":null:qe;Br=[];for(var ue=we,Se;ue!==null;){Se=ue;var tr=Se.stateNode;if(Se.tag===5&&tr!==null&&(Se=tr,be!==null&&(tr=Za(ue,be),tr!=null&&Br.push(Ru(ue,tr,Se)))),Wt)break;ue=ue.return}0<Br.length&&(qe=new pr(qe,fr,null,l,$e),dr.push({event:qe,listeners:Br}))}}if((i&7)===0){e:{if(qe=n==="mouseover"||n==="pointerover",pr=n==="mouseout"||n==="pointerout",qe&&l!==Me&&(fr=l.relatedTarget||l.fromElement)&&(ko(fr)||fr[Ri]))break e;if((pr||qe)&&(qe=$e.window===$e?$e:(qe=$e.ownerDocument)?qe.defaultView||qe.parentWindow:window,pr?(fr=l.relatedTarget||l.toElement,pr=we,fr=fr?ko(fr):null,fr!==null&&(Wt=qn(fr),fr!==Wt||fr.tag!==5&&fr.tag!==6)&&(fr=null)):(pr=null,fr=we),pr!==fr)){if(Br=st,tr="onMouseLeave",be="onMouseEnter",ue="mouse",(n==="pointerout"||n==="pointerover")&&(Br=Pr,tr="onPointerLeave",be="onPointerEnter",ue="pointer"),Wt=pr==null?qe:xs(pr),Se=fr==null?qe:xs(fr),qe=new Br(tr,ue+"leave",pr,l,$e),qe.target=Wt,qe.relatedTarget=Se,tr=null,ko($e)===we&&(Br=new Br(be,ue+"enter",fr,l,$e),Br.target=Se,Br.relatedTarget=Wt,tr=Br),Wt=tr,pr&&fr)r:{for(Br=pr,be=fr,ue=0,Se=Br;Se;Se=Es(Se))ue++;for(Se=0,tr=be;tr;tr=Es(tr))Se++;for(;0<ue-Se;)Br=Es(Br),ue--;for(;0<Se-ue;)be=Es(be),Se--;for(;ue--;){if(Br===be||be!==null&&Br===be.alternate)break r;Br=Es(Br),be=Es(be)}Br=null}else Br=null;pr!==null&&tw(dr,qe,pr,Br,!1),fr!==null&&Wt!==null&&tw(dr,Wt,fr,Br,!0)}}e:{if(qe=we?xs(we):window,pr=qe.nodeName&&qe.nodeName.toLowerCase(),pr==="select"||pr==="input"&&qe.type==="file")var Sr=kB;else if(qS(qe))if(LS)Sr=qB;else{Sr=NB;var Rr=PB}else(pr=qe.nodeName)&&pr.toLowerCase()==="input"&&(qe.type==="checkbox"||qe.type==="radio")&&(Sr=jB);if(Sr&&(Sr=Sr(n,we))){DS(dr,Sr,l,$e);break e}Rr&&Rr(n,qe,we),n==="focusout"&&(Rr=qe._wrapperState)&&Rr.controlled&&qe.type==="number"&&W(qe,"number",qe.value)}switch(Rr=we?xs(we):window,n){case"focusin":(qS(Rr)||Rr.contentEditable==="true")&&(Ss=Rr,ud=we,Iu=null);break;case"focusout":Iu=ud=Ss=null;break;case"mousedown":ld=!0;break;case"contextmenu":case"mouseup":case"dragend":ld=!1,HS(dr,l,$e);break;case"selectionchange":if(MB)break;case"keydown":case"keyup":HS(dr,l,$e)}var Or;if(ad)e:{switch(n){case"compositionstart":var qr="onCompositionStart";break e;case"compositionend":qr="onCompositionEnd";break e;case"compositionupdate":qr="onCompositionUpdate";break e}qr=void 0}else _s?NS(n,l)&&(qr="onCompositionEnd"):n==="keydown"&&l.keyCode===229&&(qr="onCompositionStart");qr&&(OS&&l.locale!=="ko"&&(_s||qr!=="onCompositionStart"?qr==="onCompositionEnd"&&_s&&(Or=wr()):(ke=$e,sr="value"in ke?ke.value:ke.textContent,_s=!0)),Rr=Vl(we,qr),0<Rr.length&&(qr=new Cr(qr,n,null,l,$e),dr.push({event:qr,listeners:Rr}),Or?qr.data=Or:(Or=jS(l),Or!==null&&(qr.data=Or)))),(Or=IB?AB(n,l):TB(n,l))&&(we=Vl(we,"onBeforeInput"),0<we.length&&($e=new Cr("onBeforeInput","beforeinput",null,l,$e),dr.push({event:$e,listeners:we}),$e.data=Or))}ew(dr,i)})}function Ru(n,i,l){return{instance:n,listener:i,currentTarget:l}}function Vl(n,i){for(var l=i+"Capture",C=[];n!==null;){var P=n,q=P.stateNode;P.tag===5&&q!==null&&(P=q,q=Za(n,l),q!=null&&C.unshift(Ru(n,q,P)),q=Za(n,i),q!=null&&C.push(Ru(n,q,P))),n=n.return}return C}function Es(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function tw(n,i,l,C,P){for(var q=i._reactName,K=[];l!==null&&l!==C;){var ee=l,se=ee.alternate,we=ee.stateNode;if(se!==null&&se===C)break;ee.tag===5&&we!==null&&(ee=we,P?(se=Za(l,q),se!=null&&K.unshift(Ru(l,se,ee))):P||(se=Za(l,q),se!=null&&K.push(Ru(l,se,ee)))),l=l.return}K.length!==0&&n.push({event:i,listeners:K})}var $B=/\r\n?/g,zB=/\u0000|\uFFFD/g;function nw(n){return(typeof n=="string"?n:""+n).replace($B,`
|
|
42
|
+
`).replace(zB,"")}function Gl(n,i,l){if(i=nw(i),nw(n)!==i&&l)throw Error(t(425))}function Wl(){}var pd=null,gd=null;function md(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var yd=typeof setTimeout=="function"?setTimeout:void 0,ZB=typeof clearTimeout=="function"?clearTimeout:void 0,aw=typeof Promise=="function"?Promise:void 0,HB=typeof queueMicrotask=="function"?queueMicrotask:typeof aw<"u"?function(n){return aw.resolve(null).then(n).catch(VB)}:yd;function VB(n){setTimeout(function(){throw n})}function bd(n,i){var l=i,C=0;do{var P=l.nextSibling;if(n.removeChild(l),P&&P.nodeType===8)if(l=P.data,l==="/$"){if(C===0){n.removeChild(P),z(i);return}C--}else l!=="$"&&l!=="$?"&&l!=="$!"||C++;l=P}while(l);z(i)}function Ti(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?")break;if(i==="/$")return null}}return n}function iw(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var l=n.data;if(l==="$"||l==="$!"||l==="$?"){if(i===0)return n;i--}else l==="/$"&&i++}n=n.previousSibling}return null}var Cs=Math.random().toString(36).slice(2),di="__reactFiber$"+Cs,Ou="__reactProps$"+Cs,Ri="__reactContainer$"+Cs,_d="__reactEvents$"+Cs,GB="__reactListeners$"+Cs,WB="__reactHandles$"+Cs;function ko(n){var i=n[di];if(i)return i;for(var l=n.parentNode;l;){if(i=l[Ri]||l[di]){if(l=i.alternate,i.child!==null||l!==null&&l.child!==null)for(n=iw(n);n!==null;){if(l=n[di])return l;n=iw(n)}return i}n=l,l=n.parentNode}return null}function ku(n){return n=n[di]||n[Ri],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function xs(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(t(33))}function Kl(n){return n[Ou]||null}var Sd=[],Is=-1;function to(n){return{current:n}}function It(n){0>Is||(n.current=Sd[Is],Sd[Is]=null,Is--)}function _t(n,i){Is++,Sd[Is]=n.current,n.current=i}var no={},Mn=to(no),ra=to(!1),Po=no;function As(n,i){var l=n.type.contextTypes;if(!l)return no;var C=n.stateNode;if(C&&C.__reactInternalMemoizedUnmaskedChildContext===i)return C.__reactInternalMemoizedMaskedChildContext;var P={},q;for(q in l)P[q]=i[q];return C&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=i,n.__reactInternalMemoizedMaskedChildContext=P),P}function ta(n){return n=n.childContextTypes,n!=null}function Yl(){It(ra),It(Mn)}function ow(n,i,l){if(Mn.current!==no)throw Error(t(168));_t(Mn,i),_t(ra,l)}function sw(n,i,l){var C=n.stateNode;if(i=i.childContextTypes,typeof C.getChildContext!="function")return l;C=C.getChildContext();for(var P in C)if(!(P in i))throw Error(t(108,ye(n)||"Unknown",P));return L({},l,C)}function Jl(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||no,Po=Mn.current,_t(Mn,n),_t(ra,ra.current),!0}function uw(n,i,l){var C=n.stateNode;if(!C)throw Error(t(169));l?(n=sw(n,i,Po),C.__reactInternalMemoizedMergedChildContext=n,It(ra),It(Mn),_t(Mn,n)):It(ra),_t(ra,l)}var Oi=null,Xl=!1,wd=!1;function lw(n){Oi===null?Oi=[n]:Oi.push(n)}function KB(n){Xl=!0,lw(n)}function ao(){if(!wd&&Oi!==null){wd=!0;var n=0,i=ct;try{var l=Oi;for(ct=1;n<l.length;n++){var C=l[n];do C=C(!0);while(C!==null)}Oi=null,Xl=!1}catch(P){throw Oi!==null&&(Oi=Oi.slice(n+1)),Be(fn,ao),P}finally{ct=i,wd=!1}}return null}var YB=p.ReactCurrentBatchConfig;function Ya(n,i){if(n&&n.defaultProps){i=L({},i),n=n.defaultProps;for(var l in n)i[l]===void 0&&(i[l]=n[l]);return i}return i}var Ql=to(null),ec=null,Ts=null,Ed=null;function Cd(){Ed=Ts=ec=null}function xd(n){var i=Ql.current;It(Ql),n._currentValue=i}function Id(n,i,l){for(;n!==null;){var C=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,C!==null&&(C.childLanes|=i)):C!==null&&(C.childLanes&i)!==i&&(C.childLanes|=i),n===l)break;n=n.return}}function Rs(n,i){ec=n,Ed=Ts=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&i)!==0&&(aa=!0),n.firstContext=null)}function ka(n){var i=n._currentValue;if(Ed!==n)if(n={context:n,memoizedValue:i,next:null},Ts===null){if(ec===null)throw Error(t(308));Ts=n,ec.dependencies={lanes:0,firstContext:n}}else Ts=Ts.next=n;return i}var Ja=null,io=!1;function Ad(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function cw(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function ki(n,i){return{eventTime:n,lane:i,tag:0,payload:null,callback:null,next:null}}function oo(n,i){var l=n.updateQueue;l!==null&&(l=l.shared,xE(n)?(n=l.interleaved,n===null?(i.next=i,Ja===null?Ja=[l]:Ja.push(l)):(i.next=n.next,n.next=i),l.interleaved=i):(n=l.pending,n===null?i.next=i:(i.next=n.next,n.next=i),l.pending=i))}function rc(n,i,l){if(i=i.updateQueue,i!==null&&(i=i.shared,(l&4194240)!==0)){var C=i.lanes;C&=n.pendingLanes,l|=C,i.lanes=l,bu(n,l)}}function fw(n,i){var l=n.updateQueue,C=n.alternate;if(C!==null&&(C=C.updateQueue,l===C)){var P=null,q=null;if(l=l.firstBaseUpdate,l!==null){do{var K={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};q===null?P=q=K:q=q.next=K,l=l.next}while(l!==null);q===null?P=q=i:q=q.next=i}else P=q=i;l={baseState:C.baseState,firstBaseUpdate:P,lastBaseUpdate:q,shared:C.shared,effects:C.effects},n.updateQueue=l;return}n=l.lastBaseUpdate,n===null?l.firstBaseUpdate=i:n.next=i,l.lastBaseUpdate=i}function tc(n,i,l,C){var P=n.updateQueue;io=!1;var q=P.firstBaseUpdate,K=P.lastBaseUpdate,ee=P.shared.pending;if(ee!==null){P.shared.pending=null;var se=ee,we=se.next;se.next=null,K===null?q=we:K.next=we,K=se;var $e=n.alternate;$e!==null&&($e=$e.updateQueue,ee=$e.lastBaseUpdate,ee!==K&&(ee===null?$e.firstBaseUpdate=we:ee.next=we,$e.lastBaseUpdate=se))}if(q!==null){var dr=P.baseState;K=0,$e=we=se=null,ee=q;do{var qe=ee.lane,pr=ee.eventTime;if((C&qe)===qe){$e!==null&&($e=$e.next={eventTime:pr,lane:0,tag:ee.tag,payload:ee.payload,callback:ee.callback,next:null});e:{var fr=n,Br=ee;switch(qe=i,pr=l,Br.tag){case 1:if(fr=Br.payload,typeof fr=="function"){dr=fr.call(pr,dr,qe);break e}dr=fr;break e;case 3:fr.flags=fr.flags&-65537|128;case 0:if(fr=Br.payload,qe=typeof fr=="function"?fr.call(pr,dr,qe):fr,qe==null)break e;dr=L({},dr,qe);break e;case 2:io=!0}}ee.callback!==null&&ee.lane!==0&&(n.flags|=64,qe=P.effects,qe===null?P.effects=[ee]:qe.push(ee))}else pr={eventTime:pr,lane:qe,tag:ee.tag,payload:ee.payload,callback:ee.callback,next:null},$e===null?(we=$e=pr,se=dr):$e=$e.next=pr,K|=qe;if(ee=ee.next,ee===null){if(ee=P.shared.pending,ee===null)break;qe=ee,ee=qe.next,qe.next=null,P.lastBaseUpdate=qe,P.shared.pending=null}}while(!0);if($e===null&&(se=dr),P.baseState=se,P.firstBaseUpdate=we,P.lastBaseUpdate=$e,i=P.shared.interleaved,i!==null){P=i;do K|=P.lane,P=P.next;while(P!==i)}else q===null&&(P.shared.lanes=0);Lo|=K,n.lanes=K,n.memoizedState=dr}}function dw(n,i,l){if(n=i.effects,i.effects=null,n!==null)for(i=0;i<n.length;i++){var C=n[i],P=C.callback;if(P!==null){if(C.callback=null,C=l,typeof P!="function")throw Error(t(191,P));P.call(C)}}}var hw=new e.Component().refs;function Td(n,i,l,C){i=n.memoizedState,l=l(C,i),l=l==null?i:L({},i,l),n.memoizedState=l,n.lanes===0&&(n.updateQueue.baseState=l)}var nc={isMounted:function(n){return(n=n._reactInternals)?qn(n)===n:!1},enqueueSetState:function(n,i,l){n=n._reactInternals;var C=Wn(),P=co(n),q=ki(C,P);q.payload=i,l!=null&&(q.callback=l),oo(n,q),i=Da(n,P,C),i!==null&&rc(i,n,P)},enqueueReplaceState:function(n,i,l){n=n._reactInternals;var C=Wn(),P=co(n),q=ki(C,P);q.tag=1,q.payload=i,l!=null&&(q.callback=l),oo(n,q),i=Da(n,P,C),i!==null&&rc(i,n,P)},enqueueForceUpdate:function(n,i){n=n._reactInternals;var l=Wn(),C=co(n),P=ki(l,C);P.tag=2,i!=null&&(P.callback=i),oo(n,P),i=Da(n,C,l),i!==null&&rc(i,n,C)}};function vw(n,i,l,C,P,q,K){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(C,q,K):i.prototype&&i.prototype.isPureReactComponent?!xu(l,C)||!xu(P,q):!0}function pw(n,i,l){var C=!1,P=no,q=i.contextType;return typeof q=="object"&&q!==null?q=ka(q):(P=ta(i)?Po:Mn.current,C=i.contextTypes,q=(C=C!=null)?As(n,P):no),i=new i(l,q),n.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=nc,n.stateNode=i,i._reactInternals=n,C&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=P,n.__reactInternalMemoizedMaskedChildContext=q),i}function gw(n,i,l,C){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(l,C),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(l,C),i.state!==n&&nc.enqueueReplaceState(i,i.state,null)}function Rd(n,i,l,C){var P=n.stateNode;P.props=l,P.state=n.memoizedState,P.refs=hw,Ad(n);var q=i.contextType;typeof q=="object"&&q!==null?P.context=ka(q):(q=ta(i)?Po:Mn.current,P.context=As(n,q)),P.state=n.memoizedState,q=i.getDerivedStateFromProps,typeof q=="function"&&(Td(n,i,q,l),P.state=n.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof P.getSnapshotBeforeUpdate=="function"||typeof P.UNSAFE_componentWillMount!="function"&&typeof P.componentWillMount!="function"||(i=P.state,typeof P.componentWillMount=="function"&&P.componentWillMount(),typeof P.UNSAFE_componentWillMount=="function"&&P.UNSAFE_componentWillMount(),i!==P.state&&nc.enqueueReplaceState(P,P.state,null),tc(n,l,P,C),P.state=n.memoizedState),typeof P.componentDidMount=="function"&&(n.flags|=4194308)}var Os=[],ks=0,ac=null,ic=0,Pa=[],Na=0,No=null,Pi=1,Ni="";function jo(n,i){Os[ks++]=ic,Os[ks++]=ac,ac=n,ic=i}function mw(n,i,l){Pa[Na++]=Pi,Pa[Na++]=Ni,Pa[Na++]=No,No=n;var C=Pi;n=Ni;var P=32-Dn(C)-1;C&=~(1<<P),l+=1;var q=32-Dn(i)+P;if(30<q){var K=P-P%5;q=(C&(1<<K)-1).toString(32),C>>=K,P-=K,Pi=1<<32-Dn(i)+P|l<<P|C,Ni=q+n}else Pi=1<<q|l<<P|C,Ni=n}function Od(n){n.return!==null&&(jo(n,1),mw(n,1,0))}function kd(n){for(;n===ac;)ac=Os[--ks],Os[ks]=null,ic=Os[--ks],Os[ks]=null;for(;n===No;)No=Pa[--Na],Pa[Na]=null,Ni=Pa[--Na],Pa[Na]=null,Pi=Pa[--Na],Pa[Na]=null}var ma=null,na=null,kt=!1,Xa=null;function yw(n,i){var l=La(5,null,null,0);l.elementType="DELETED",l.stateNode=i,l.return=n,i=n.deletions,i===null?(n.deletions=[l],n.flags|=16):i.push(l)}function bw(n,i){switch(n.tag){case 5:var l=n.type;return i=i.nodeType!==1||l.toLowerCase()!==i.nodeName.toLowerCase()?null:i,i!==null?(n.stateNode=i,ma=n,na=Ti(i.firstChild),!0):!1;case 6:return i=n.pendingProps===""||i.nodeType!==3?null:i,i!==null?(n.stateNode=i,ma=n,na=null,!0):!1;case 13:return i=i.nodeType!==8?null:i,i!==null?(l=No!==null?{id:Pi,overflow:Ni}:null,n.memoizedState={dehydrated:i,treeContext:l,retryLane:1073741824},l=La(18,null,null,0),l.stateNode=i,l.return=n,n.child=l,ma=n,na=null,!0):!1;default:return!1}}function Pd(n){return(n.mode&1)!==0&&(n.flags&128)===0}function Nd(n){if(kt){var i=na;if(i){var l=i;if(!bw(n,i)){if(Pd(n))throw Error(t(418));i=Ti(l.nextSibling);var C=ma;i&&bw(n,i)?yw(C,l):(n.flags=n.flags&-4097|2,kt=!1,ma=n)}}else{if(Pd(n))throw Error(t(418));n.flags=n.flags&-4097|2,kt=!1,ma=n}}}function _w(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;ma=n}function Pu(n){if(n!==ma)return!1;if(!kt)return _w(n),kt=!0,!1;var i;if((i=n.tag!==3)&&!(i=n.tag!==5)&&(i=n.type,i=i!=="head"&&i!=="body"&&!md(n.type,n.memoizedProps)),i&&(i=na)){if(Pd(n)){for(n=na;n;)n=Ti(n.nextSibling);throw Error(t(418))}for(;i;)yw(n,i),i=Ti(i.nextSibling)}if(_w(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(t(317));e:{for(n=n.nextSibling,i=0;n;){if(n.nodeType===8){var l=n.data;if(l==="/$"){if(i===0){na=Ti(n.nextSibling);break e}i--}else l!=="$"&&l!=="$!"&&l!=="$?"||i++}n=n.nextSibling}na=null}}else na=ma?Ti(n.stateNode.nextSibling):null;return!0}function Ps(){na=ma=null,kt=!1}function jd(n){Xa===null?Xa=[n]:Xa.push(n)}function Nu(n,i,l){if(n=l.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(t(309));var C=l.stateNode}if(!C)throw Error(t(147,n));var P=C,q=""+n;return i!==null&&i.ref!==null&&typeof i.ref=="function"&&i.ref._stringRef===q?i.ref:(i=function(K){var ee=P.refs;ee===hw&&(ee=P.refs={}),K===null?delete ee[q]:ee[q]=K},i._stringRef=q,i)}if(typeof n!="string")throw Error(t(284));if(!l._owner)throw Error(t(290,n))}return n}function oc(n,i){throw n=Object.prototype.toString.call(i),Error(t(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n))}function Sw(n){var i=n._init;return i(n._payload)}function ww(n){function i(be,ue){if(n){var Se=be.deletions;Se===null?(be.deletions=[ue],be.flags|=16):Se.push(ue)}}function l(be,ue){if(!n)return null;for(;ue!==null;)i(be,ue),ue=ue.sibling;return null}function C(be,ue){for(be=new Map;ue!==null;)ue.key!==null?be.set(ue.key,ue):be.set(ue.index,ue),ue=ue.sibling;return be}function P(be,ue){return be=ho(be,ue),be.index=0,be.sibling=null,be}function q(be,ue,Se){return be.index=Se,n?(Se=be.alternate,Se!==null?(Se=Se.index,Se<ue?(be.flags|=2,ue):Se):(be.flags|=2,ue)):(be.flags|=1048576,ue)}function K(be){return n&&be.alternate===null&&(be.flags|=2),be}function ee(be,ue,Se,tr){return ue===null||ue.tag!==6?(ue=ph(Se,be.mode,tr),ue.return=be,ue):(ue=P(ue,Se),ue.return=be,ue)}function se(be,ue,Se,tr){var Sr=Se.type;return Sr===x?$e(be,ue,Se.props.children,tr,Se.key):ue!==null&&(ue.elementType===Sr||typeof Sr=="object"&&Sr!==null&&Sr.$$typeof===H&&Sw(Sr)===ue.type)?(tr=P(ue,Se.props),tr.ref=Nu(be,ue,Se),tr.return=be,tr):(tr=Ac(Se.type,Se.key,Se.props,null,be.mode,tr),tr.ref=Nu(be,ue,Se),tr.return=be,tr)}function we(be,ue,Se,tr){return ue===null||ue.tag!==4||ue.stateNode.containerInfo!==Se.containerInfo||ue.stateNode.implementation!==Se.implementation?(ue=gh(Se,be.mode,tr),ue.return=be,ue):(ue=P(ue,Se.children||[]),ue.return=be,ue)}function $e(be,ue,Se,tr,Sr){return ue===null||ue.tag!==7?(ue=Bo(Se,be.mode,tr,Sr),ue.return=be,ue):(ue=P(ue,Se),ue.return=be,ue)}function dr(be,ue,Se){if(typeof ue=="string"&&ue!==""||typeof ue=="number")return ue=ph(""+ue,be.mode,Se),ue.return=be,ue;if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case y:return Se=Ac(ue.type,ue.key,ue.props,null,be.mode,Se),Se.ref=Nu(be,null,ue),Se.return=be,Se;case g:return ue=gh(ue,be.mode,Se),ue.return=be,ue;case H:var tr=ue._init;return dr(be,tr(ue._payload),Se)}if(Y(ue)||M(ue))return ue=Bo(ue,be.mode,Se,null),ue.return=be,ue;oc(be,ue)}return null}function qe(be,ue,Se,tr){var Sr=ue!==null?ue.key:null;if(typeof Se=="string"&&Se!==""||typeof Se=="number")return Sr!==null?null:ee(be,ue,""+Se,tr);if(typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case y:return Se.key===Sr?se(be,ue,Se,tr):null;case g:return Se.key===Sr?we(be,ue,Se,tr):null;case H:return Sr=Se._init,qe(be,ue,Sr(Se._payload),tr)}if(Y(Se)||M(Se))return Sr!==null?null:$e(be,ue,Se,tr,null);oc(be,Se)}return null}function pr(be,ue,Se,tr,Sr){if(typeof tr=="string"&&tr!==""||typeof tr=="number")return be=be.get(Se)||null,ee(ue,be,""+tr,Sr);if(typeof tr=="object"&&tr!==null){switch(tr.$$typeof){case y:return be=be.get(tr.key===null?Se:tr.key)||null,se(ue,be,tr,Sr);case g:return be=be.get(tr.key===null?Se:tr.key)||null,we(ue,be,tr,Sr);case H:var Rr=tr._init;return pr(be,ue,Se,Rr(tr._payload),Sr)}if(Y(tr)||M(tr))return be=be.get(Se)||null,$e(ue,be,tr,Sr,null);oc(ue,tr)}return null}function fr(be,ue,Se,tr){for(var Sr=null,Rr=null,Or=ue,qr=ue=0,vn=null;Or!==null&&qr<Se.length;qr++){Or.index>qr?(vn=Or,Or=null):vn=Or.sibling;var ut=qe(be,Or,Se[qr],tr);if(ut===null){Or===null&&(Or=vn);break}n&&Or&&ut.alternate===null&&i(be,Or),ue=q(ut,ue,qr),Rr===null?Sr=ut:Rr.sibling=ut,Rr=ut,Or=vn}if(qr===Se.length)return l(be,Or),kt&&jo(be,qr),Sr;if(Or===null){for(;qr<Se.length;qr++)Or=dr(be,Se[qr],tr),Or!==null&&(ue=q(Or,ue,qr),Rr===null?Sr=Or:Rr.sibling=Or,Rr=Or);return kt&&jo(be,qr),Sr}for(Or=C(be,Or);qr<Se.length;qr++)vn=pr(Or,be,qr,Se[qr],tr),vn!==null&&(n&&vn.alternate!==null&&Or.delete(vn.key===null?qr:vn.key),ue=q(vn,ue,qr),Rr===null?Sr=vn:Rr.sibling=vn,Rr=vn);return n&&Or.forEach(function(vo){return i(be,vo)}),kt&&jo(be,qr),Sr}function Br(be,ue,Se,tr){var Sr=M(Se);if(typeof Sr!="function")throw Error(t(150));if(Se=Sr.call(Se),Se==null)throw Error(t(151));for(var Rr=Sr=null,Or=ue,qr=ue=0,vn=null,ut=Se.next();Or!==null&&!ut.done;qr++,ut=Se.next()){Or.index>qr?(vn=Or,Or=null):vn=Or.sibling;var vo=qe(be,Or,ut.value,tr);if(vo===null){Or===null&&(Or=vn);break}n&&Or&&vo.alternate===null&&i(be,Or),ue=q(vo,ue,qr),Rr===null?Sr=vo:Rr.sibling=vo,Rr=vo,Or=vn}if(ut.done)return l(be,Or),kt&&jo(be,qr),Sr;if(Or===null){for(;!ut.done;qr++,ut=Se.next())ut=dr(be,ut.value,tr),ut!==null&&(ue=q(ut,ue,qr),Rr===null?Sr=ut:Rr.sibling=ut,Rr=ut);return kt&&jo(be,qr),Sr}for(Or=C(be,Or);!ut.done;qr++,ut=Se.next())ut=pr(Or,be,qr,ut.value,tr),ut!==null&&(n&&ut.alternate!==null&&Or.delete(ut.key===null?qr:ut.key),ue=q(ut,ue,qr),Rr===null?Sr=ut:Rr.sibling=ut,Rr=ut);return n&&Or.forEach(function(T$){return i(be,T$)}),kt&&jo(be,qr),Sr}function Wt(be,ue,Se,tr){if(typeof Se=="object"&&Se!==null&&Se.type===x&&Se.key===null&&(Se=Se.props.children),typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case y:e:{for(var Sr=Se.key,Rr=ue;Rr!==null;){if(Rr.key===Sr){if(Sr=Se.type,Sr===x){if(Rr.tag===7){l(be,Rr.sibling),ue=P(Rr,Se.props.children),ue.return=be,be=ue;break e}}else if(Rr.elementType===Sr||typeof Sr=="object"&&Sr!==null&&Sr.$$typeof===H&&Sw(Sr)===Rr.type){l(be,Rr.sibling),ue=P(Rr,Se.props),ue.ref=Nu(be,Rr,Se),ue.return=be,be=ue;break e}l(be,Rr);break}else i(be,Rr);Rr=Rr.sibling}Se.type===x?(ue=Bo(Se.props.children,be.mode,tr,Se.key),ue.return=be,be=ue):(tr=Ac(Se.type,Se.key,Se.props,null,be.mode,tr),tr.ref=Nu(be,ue,Se),tr.return=be,be=tr)}return K(be);case g:e:{for(Rr=Se.key;ue!==null;){if(ue.key===Rr)if(ue.tag===4&&ue.stateNode.containerInfo===Se.containerInfo&&ue.stateNode.implementation===Se.implementation){l(be,ue.sibling),ue=P(ue,Se.children||[]),ue.return=be,be=ue;break e}else{l(be,ue);break}else i(be,ue);ue=ue.sibling}ue=gh(Se,be.mode,tr),ue.return=be,be=ue}return K(be);case H:return Rr=Se._init,Wt(be,ue,Rr(Se._payload),tr)}if(Y(Se))return fr(be,ue,Se,tr);if(M(Se))return Br(be,ue,Se,tr);oc(be,Se)}return typeof Se=="string"&&Se!==""||typeof Se=="number"?(Se=""+Se,ue!==null&&ue.tag===6?(l(be,ue.sibling),ue=P(ue,Se),ue.return=be,be=ue):(l(be,ue),ue=ph(Se,be.mode,tr),ue.return=be,be=ue),K(be)):l(be,ue)}return Wt}var Ns=ww(!0),Ew=ww(!1),ju={},hi=to(ju),qu=to(ju),Du=to(ju);function qo(n){if(n===ju)throw Error(t(174));return n}function qd(n,i){switch(_t(Du,i),_t(qu,n),_t(hi,ju),n=i.nodeType,n){case 9:case 11:i=(i=i.documentElement)?i.namespaceURI:Pe(null,"");break;default:n=n===8?i.parentNode:i,i=n.namespaceURI||null,n=n.tagName,i=Pe(i,n)}It(hi),_t(hi,i)}function js(){It(hi),It(qu),It(Du)}function Cw(n){qo(Du.current);var i=qo(hi.current),l=Pe(i,n.type);i!==l&&(_t(qu,n),_t(hi,l))}function Dd(n){qu.current===n&&(It(hi),It(qu))}var jt=to(0);function sc(n){for(var i=n;i!==null;){if(i.tag===13){var l=i.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Ld=[];function Md(){for(var n=0;n<Ld.length;n++)Ld[n]._workInProgressVersionPrimary=null;Ld.length=0}var uc=p.ReactCurrentDispatcher,Ud=p.ReactCurrentBatchConfig,Do=0,qt=null,nn=null,hn=null,lc=!1,Lu=!1,Mu=0,JB=0;function Un(){throw Error(t(321))}function Fd(n,i){if(i===null)return!1;for(var l=0;l<i.length&&l<n.length;l++)if(!Ka(n[l],i[l]))return!1;return!0}function Bd(n,i,l,C,P,q){if(Do=q,qt=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,uc.current=n===null||n.memoizedState===null?r$:t$,n=l(C,P),Lu){q=0;do{if(Lu=!1,Mu=0,25<=q)throw Error(t(301));q+=1,hn=nn=null,i.updateQueue=null,uc.current=n$,n=l(C,P)}while(Lu)}if(uc.current=dc,i=nn!==null&&nn.next!==null,Do=0,hn=nn=qt=null,lc=!1,i)throw Error(t(300));return n}function $d(){var n=Mu!==0;return Mu=0,n}function vi(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return hn===null?qt.memoizedState=hn=n:hn=hn.next=n,hn}function ja(){if(nn===null){var n=qt.alternate;n=n!==null?n.memoizedState:null}else n=nn.next;var i=hn===null?qt.memoizedState:hn.next;if(i!==null)hn=i,nn=n;else{if(n===null)throw Error(t(310));nn=n,n={memoizedState:nn.memoizedState,baseState:nn.baseState,baseQueue:nn.baseQueue,queue:nn.queue,next:null},hn===null?qt.memoizedState=hn=n:hn=hn.next=n}return hn}function Uu(n,i){return typeof i=="function"?i(n):i}function zd(n){var i=ja(),l=i.queue;if(l===null)throw Error(t(311));l.lastRenderedReducer=n;var C=nn,P=C.baseQueue,q=l.pending;if(q!==null){if(P!==null){var K=P.next;P.next=q.next,q.next=K}C.baseQueue=P=q,l.pending=null}if(P!==null){q=P.next,C=C.baseState;var ee=K=null,se=null,we=q;do{var $e=we.lane;if((Do&$e)===$e)se!==null&&(se=se.next={lane:0,action:we.action,hasEagerState:we.hasEagerState,eagerState:we.eagerState,next:null}),C=we.hasEagerState?we.eagerState:n(C,we.action);else{var dr={lane:$e,action:we.action,hasEagerState:we.hasEagerState,eagerState:we.eagerState,next:null};se===null?(ee=se=dr,K=C):se=se.next=dr,qt.lanes|=$e,Lo|=$e}we=we.next}while(we!==null&&we!==q);se===null?K=C:se.next=ee,Ka(C,i.memoizedState)||(aa=!0),i.memoizedState=C,i.baseState=K,i.baseQueue=se,l.lastRenderedState=C}if(n=l.interleaved,n!==null){P=n;do q=P.lane,qt.lanes|=q,Lo|=q,P=P.next;while(P!==n)}else P===null&&(l.lanes=0);return[i.memoizedState,l.dispatch]}function Zd(n){var i=ja(),l=i.queue;if(l===null)throw Error(t(311));l.lastRenderedReducer=n;var C=l.dispatch,P=l.pending,q=i.memoizedState;if(P!==null){l.pending=null;var K=P=P.next;do q=n(q,K.action),K=K.next;while(K!==P);Ka(q,i.memoizedState)||(aa=!0),i.memoizedState=q,i.baseQueue===null&&(i.baseState=q),l.lastRenderedState=q}return[q,C]}function xw(){}function Iw(n,i){var l=qt,C=ja(),P=i(),q=!Ka(C.memoizedState,P);if(q&&(C.memoizedState=P,aa=!0),C=C.queue,Hd(Rw.bind(null,l,C,n),[n]),C.getSnapshot!==i||q||hn!==null&&hn.memoizedState.tag&1){if(l.flags|=2048,Fu(9,Tw.bind(null,l,C,P,i),void 0,null),an===null)throw Error(t(349));(Do&30)!==0||Aw(l,i,P)}return P}function Aw(n,i,l){n.flags|=16384,n={getSnapshot:i,value:l},i=qt.updateQueue,i===null?(i={lastEffect:null,stores:null},qt.updateQueue=i,i.stores=[n]):(l=i.stores,l===null?i.stores=[n]:l.push(n))}function Tw(n,i,l,C){i.value=l,i.getSnapshot=C,Ow(i)&&Da(n,1,-1)}function Rw(n,i,l){return l(function(){Ow(i)&&Da(n,1,-1)})}function Ow(n){var i=n.getSnapshot;n=n.value;try{var l=i();return!Ka(n,l)}catch{return!0}}function kw(n){var i=vi();return typeof n=="function"&&(n=n()),i.memoizedState=i.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Uu,lastRenderedState:n},i.queue=n,n=n.dispatch=e$.bind(null,qt,n),[i.memoizedState,n]}function Fu(n,i,l,C){return n={tag:n,create:i,destroy:l,deps:C,next:null},i=qt.updateQueue,i===null?(i={lastEffect:null,stores:null},qt.updateQueue=i,i.lastEffect=n.next=n):(l=i.lastEffect,l===null?i.lastEffect=n.next=n:(C=l.next,l.next=n,n.next=C,i.lastEffect=n)),n}function Pw(){return ja().memoizedState}function cc(n,i,l,C){var P=vi();qt.flags|=n,P.memoizedState=Fu(1|i,l,void 0,C===void 0?null:C)}function fc(n,i,l,C){var P=ja();C=C===void 0?null:C;var q=void 0;if(nn!==null){var K=nn.memoizedState;if(q=K.destroy,C!==null&&Fd(C,K.deps)){P.memoizedState=Fu(i,l,q,C);return}}qt.flags|=n,P.memoizedState=Fu(1|i,l,q,C)}function Nw(n,i){return cc(8390656,8,n,i)}function Hd(n,i){return fc(2048,8,n,i)}function jw(n,i){return fc(4,2,n,i)}function qw(n,i){return fc(4,4,n,i)}function Dw(n,i){if(typeof i=="function")return n=n(),i(n),function(){i(null)};if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function Lw(n,i,l){return l=l!=null?l.concat([n]):null,fc(4,4,Dw.bind(null,i,n),l)}function Vd(){}function Mw(n,i){var l=ja();i=i===void 0?null:i;var C=l.memoizedState;return C!==null&&i!==null&&Fd(i,C[1])?C[0]:(l.memoizedState=[n,i],n)}function Uw(n,i){var l=ja();i=i===void 0?null:i;var C=l.memoizedState;return C!==null&&i!==null&&Fd(i,C[1])?C[0]:(n=n(),l.memoizedState=[n,i],n)}function Fw(n,i,l){return(Do&21)===0?(n.baseState&&(n.baseState=!1,aa=!0),n.memoizedState=l):(Ka(l,i)||(l=si(),qt.lanes|=l,Lo|=l,n.baseState=!0),i)}function XB(n,i){var l=ct;ct=l!==0&&4>l?l:4,n(!0);var C=Ud.transition;Ud.transition={};try{n(!1),i()}finally{ct=l,Ud.transition=C}}function Bw(){return ja().memoizedState}function QB(n,i,l){var C=co(n);l={lane:C,action:l,hasEagerState:!1,eagerState:null,next:null},$w(n)?zw(i,l):(Zw(n,i,l),l=Wn(),n=Da(n,C,l),n!==null&&Hw(n,i,C))}function e$(n,i,l){var C=co(n),P={lane:C,action:l,hasEagerState:!1,eagerState:null,next:null};if($w(n))zw(i,P);else{Zw(n,i,P);var q=n.alternate;if(n.lanes===0&&(q===null||q.lanes===0)&&(q=i.lastRenderedReducer,q!==null))try{var K=i.lastRenderedState,ee=q(K,l);if(P.hasEagerState=!0,P.eagerState=ee,Ka(ee,K))return}catch{}finally{}l=Wn(),n=Da(n,C,l),n!==null&&Hw(n,i,C)}}function $w(n){var i=n.alternate;return n===qt||i!==null&&i===qt}function zw(n,i){Lu=lc=!0;var l=n.pending;l===null?i.next=i:(i.next=l.next,l.next=i),n.pending=i}function Zw(n,i,l){xE(n)?(n=i.interleaved,n===null?(l.next=l,Ja===null?Ja=[i]:Ja.push(i)):(l.next=n.next,n.next=l),i.interleaved=l):(n=i.pending,n===null?l.next=l:(l.next=n.next,n.next=l),i.pending=l)}function Hw(n,i,l){if((l&4194240)!==0){var C=i.lanes;C&=n.pendingLanes,l|=C,i.lanes=l,bu(n,l)}}var dc={readContext:ka,useCallback:Un,useContext:Un,useEffect:Un,useImperativeHandle:Un,useInsertionEffect:Un,useLayoutEffect:Un,useMemo:Un,useReducer:Un,useRef:Un,useState:Un,useDebugValue:Un,useDeferredValue:Un,useTransition:Un,useMutableSource:Un,useSyncExternalStore:Un,useId:Un,unstable_isNewReconciler:!1},r$={readContext:ka,useCallback:function(n,i){return vi().memoizedState=[n,i===void 0?null:i],n},useContext:ka,useEffect:Nw,useImperativeHandle:function(n,i,l){return l=l!=null?l.concat([n]):null,cc(4194308,4,Dw.bind(null,i,n),l)},useLayoutEffect:function(n,i){return cc(4194308,4,n,i)},useInsertionEffect:function(n,i){return cc(4,2,n,i)},useMemo:function(n,i){var l=vi();return i=i===void 0?null:i,n=n(),l.memoizedState=[n,i],n},useReducer:function(n,i,l){var C=vi();return i=l!==void 0?l(i):i,C.memoizedState=C.baseState=i,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:i},C.queue=n,n=n.dispatch=QB.bind(null,qt,n),[C.memoizedState,n]},useRef:function(n){var i=vi();return n={current:n},i.memoizedState=n},useState:kw,useDebugValue:Vd,useDeferredValue:function(n){return vi().memoizedState=n},useTransition:function(){var n=kw(!1),i=n[0];return n=XB.bind(null,n[1]),vi().memoizedState=n,[i,n]},useMutableSource:function(){},useSyncExternalStore:function(n,i,l){var C=qt,P=vi();if(kt){if(l===void 0)throw Error(t(407));l=l()}else{if(l=i(),an===null)throw Error(t(349));(Do&30)!==0||Aw(C,i,l)}P.memoizedState=l;var q={value:l,getSnapshot:i};return P.queue=q,Nw(Rw.bind(null,C,q,n),[n]),C.flags|=2048,Fu(9,Tw.bind(null,C,q,l,i),void 0,null),l},useId:function(){var n=vi(),i=an.identifierPrefix;if(kt){var l=Ni,C=Pi;l=(C&~(1<<32-Dn(C)-1)).toString(32)+l,i=":"+i+"R"+l,l=Mu++,0<l&&(i+="H"+l.toString(32)),i+=":"}else l=JB++,i=":"+i+"r"+l.toString(32)+":";return n.memoizedState=i},unstable_isNewReconciler:!1},t$={readContext:ka,useCallback:Mw,useContext:ka,useEffect:Hd,useImperativeHandle:Lw,useInsertionEffect:jw,useLayoutEffect:qw,useMemo:Uw,useReducer:zd,useRef:Pw,useState:function(){return zd(Uu)},useDebugValue:Vd,useDeferredValue:function(n){var i=ja();return Fw(i,nn.memoizedState,n)},useTransition:function(){var n=zd(Uu)[0],i=ja().memoizedState;return[n,i]},useMutableSource:xw,useSyncExternalStore:Iw,useId:Bw,unstable_isNewReconciler:!1},n$={readContext:ka,useCallback:Mw,useContext:ka,useEffect:Hd,useImperativeHandle:Lw,useInsertionEffect:jw,useLayoutEffect:qw,useMemo:Uw,useReducer:Zd,useRef:Pw,useState:function(){return Zd(Uu)},useDebugValue:Vd,useDeferredValue:function(n){var i=ja();return nn===null?i.memoizedState=n:Fw(i,nn.memoizedState,n)},useTransition:function(){var n=Zd(Uu)[0],i=ja().memoizedState;return[n,i]},useMutableSource:xw,useSyncExternalStore:Iw,useId:Bw,unstable_isNewReconciler:!1};function Gd(n,i){try{var l="",C=i;do l+=_e(C),C=C.return;while(C);var P=l}catch(q){P=`
|
|
43
|
+
Error generating stack: `+q.message+`
|
|
44
|
+
`+q.stack}return{value:n,source:i,stack:P}}function Wd(n,i){try{console.error(i.value)}catch(l){setTimeout(function(){throw l})}}var a$=typeof WeakMap=="function"?WeakMap:Map;function Vw(n,i,l){l=ki(-1,l),l.tag=3,l.payload={element:null};var C=i.value;return l.callback=function(){_c||(_c=!0,sh=C),Wd(n,i)},l}function Gw(n,i,l){l=ki(-1,l),l.tag=3;var C=n.type.getDerivedStateFromError;if(typeof C=="function"){var P=i.value;l.payload=function(){return C(P)},l.callback=function(){Wd(n,i)}}var q=n.stateNode;return q!==null&&typeof q.componentDidCatch=="function"&&(l.callback=function(){Wd(n,i),typeof C!="function"&&(uo===null?uo=new Set([this]):uo.add(this));var K=i.stack;this.componentDidCatch(i.value,{componentStack:K!==null?K:""})}),l}function Ww(n,i,l){var C=n.pingCache;if(C===null){C=n.pingCache=new a$;var P=new Set;C.set(i,P)}else P=C.get(i),P===void 0&&(P=new Set,C.set(i,P));P.has(l)||(P.add(l),n=m$.bind(null,n,i,l),i.then(n,n))}function Kw(n){do{var i;if((i=n.tag===13)&&(i=n.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return n;n=n.return}while(n!==null);return null}function Yw(n,i,l,C,P){return(n.mode&1)===0?(n===i?n.flags|=65536:(n.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(i=ki(-1,1),i.tag=2,oo(l,i))),l.lanes|=1),n):(n.flags|=65536,n.lanes=P,n)}var Jw,Kd,Xw,Qw;Jw=function(n,i){for(var l=i.child;l!==null;){if(l.tag===5||l.tag===6)n.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===i)break;for(;l.sibling===null;){if(l.return===null||l.return===i)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Kd=function(){},Xw=function(n,i,l,C){var P=n.memoizedProps;if(P!==C){n=i.stateNode,qo(hi.current);var q=null;switch(l){case"input":P=xr(n,P),C=xr(n,C),q=[];break;case"select":P=L({},P,{value:void 0}),C=L({},C,{value:void 0}),q=[];break;case"textarea":P=re(n,P),C=re(n,C),q=[];break;default:typeof P.onClick!="function"&&typeof C.onClick=="function"&&(n.onclick=Wl)}vr(l,C);var K;l=null;for(we in P)if(!C.hasOwnProperty(we)&&P.hasOwnProperty(we)&&P[we]!=null)if(we==="style"){var ee=P[we];for(K in ee)ee.hasOwnProperty(K)&&(l||(l={}),l[K]="")}else we!=="dangerouslySetInnerHTML"&&we!=="children"&&we!=="suppressContentEditableWarning"&&we!=="suppressHydrationWarning"&&we!=="autoFocus"&&(o.hasOwnProperty(we)?q||(q=[]):(q=q||[]).push(we,null));for(we in C){var se=C[we];if(ee=P!=null?P[we]:void 0,C.hasOwnProperty(we)&&se!==ee&&(se!=null||ee!=null))if(we==="style")if(ee){for(K in ee)!ee.hasOwnProperty(K)||se&&se.hasOwnProperty(K)||(l||(l={}),l[K]="");for(K in se)se.hasOwnProperty(K)&&ee[K]!==se[K]&&(l||(l={}),l[K]=se[K])}else l||(q||(q=[]),q.push(we,l)),l=se;else we==="dangerouslySetInnerHTML"?(se=se?se.__html:void 0,ee=ee?ee.__html:void 0,se!=null&&ee!==se&&(q=q||[]).push(we,se)):we==="children"?typeof se!="string"&&typeof se!="number"||(q=q||[]).push(we,""+se):we!=="suppressContentEditableWarning"&&we!=="suppressHydrationWarning"&&(o.hasOwnProperty(we)?(se!=null&&we==="onScroll"&&xt("scroll",n),q||ee===se||(q=[])):(q=q||[]).push(we,se))}l&&(q=q||[]).push("style",l);var we=q;(i.updateQueue=we)&&(i.flags|=4)}},Qw=function(n,i,l,C){l!==C&&(i.flags|=4)};function Bu(n,i){if(!kt)switch(n.tailMode){case"hidden":i=n.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?n.tail=null:l.sibling=null;break;case"collapsed":l=n.tail;for(var C=null;l!==null;)l.alternate!==null&&(C=l),l=l.sibling;C===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:C.sibling=null}}function Fn(n){var i=n.alternate!==null&&n.alternate.child===n.child,l=0,C=0;if(i)for(var P=n.child;P!==null;)l|=P.lanes|P.childLanes,C|=P.subtreeFlags&14680064,C|=P.flags&14680064,P.return=n,P=P.sibling;else for(P=n.child;P!==null;)l|=P.lanes|P.childLanes,C|=P.subtreeFlags,C|=P.flags,P.return=n,P=P.sibling;return n.subtreeFlags|=C,n.childLanes=l,i}function i$(n,i,l){var C=i.pendingProps;switch(kd(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fn(i),null;case 1:return ta(i.type)&&Yl(),Fn(i),null;case 3:return C=i.stateNode,js(),It(ra),It(Mn),Md(),C.pendingContext&&(C.context=C.pendingContext,C.pendingContext=null),(n===null||n.child===null)&&(Pu(i)?i.flags|=4:n===null||n.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Xa!==null&&(ch(Xa),Xa=null))),Kd(n,i),Fn(i),null;case 5:Dd(i);var P=qo(Du.current);if(l=i.type,n!==null&&i.stateNode!=null)Xw(n,i,l,C,P),n.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!C){if(i.stateNode===null)throw Error(t(166));return Fn(i),null}if(n=qo(hi.current),Pu(i)){C=i.stateNode,l=i.type;var q=i.memoizedProps;switch(C[di]=i,C[Ou]=q,n=(i.mode&1)!==0,l){case"dialog":xt("cancel",C),xt("close",C);break;case"iframe":case"object":case"embed":xt("load",C);break;case"video":case"audio":for(P=0;P<Au.length;P++)xt(Au[P],C);break;case"source":xt("error",C);break;case"img":case"image":case"link":xt("error",C),xt("load",C);break;case"details":xt("toggle",C);break;case"input":or(C,q),xt("invalid",C);break;case"select":C._wrapperState={wasMultiple:!!q.multiple},xt("invalid",C);break;case"textarea":pe(C,q),xt("invalid",C)}vr(l,q),P=null;for(var K in q)if(q.hasOwnProperty(K)){var ee=q[K];K==="children"?typeof ee=="string"?C.textContent!==ee&&(q.suppressHydrationWarning!==!0&&Gl(C.textContent,ee,n),P=["children",ee]):typeof ee=="number"&&C.textContent!==""+ee&&(q.suppressHydrationWarning!==!0&&Gl(C.textContent,ee,n),P=["children",""+ee]):o.hasOwnProperty(K)&&ee!=null&&K==="onScroll"&&xt("scroll",C)}switch(l){case"input":He(C),Ge(C,q,!0);break;case"textarea":He(C),Ee(C);break;case"select":case"option":break;default:typeof q.onClick=="function"&&(C.onclick=Wl)}C=P,i.updateQueue=C,C!==null&&(i.flags|=4)}else{K=P.nodeType===9?P:P.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=fe(l)),n==="http://www.w3.org/1999/xhtml"?l==="script"?(n=K.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof C.is=="string"?n=K.createElement(l,{is:C.is}):(n=K.createElement(l),l==="select"&&(K=n,C.multiple?K.multiple=!0:C.size&&(K.size=C.size))):n=K.createElementNS(n,l),n[di]=i,n[Ou]=C,Jw(n,i,!1,!1),i.stateNode=n;e:{switch(K=$r(l,C),l){case"dialog":xt("cancel",n),xt("close",n),P=C;break;case"iframe":case"object":case"embed":xt("load",n),P=C;break;case"video":case"audio":for(P=0;P<Au.length;P++)xt(Au[P],n);P=C;break;case"source":xt("error",n),P=C;break;case"img":case"image":case"link":xt("error",n),xt("load",n),P=C;break;case"details":xt("toggle",n),P=C;break;case"input":or(n,C),P=xr(n,C),xt("invalid",n);break;case"option":P=C;break;case"select":n._wrapperState={wasMultiple:!!C.multiple},P=L({},C,{value:void 0}),xt("invalid",n);break;case"textarea":pe(n,C),P=re(n,C),xt("invalid",n);break;default:P=C}vr(l,P),ee=P;for(q in ee)if(ee.hasOwnProperty(q)){var se=ee[q];q==="style"?De(n,se):q==="dangerouslySetInnerHTML"?(se=se?se.__html:void 0,se!=null&&cr(n,se)):q==="children"?typeof se=="string"?(l!=="textarea"||se!=="")&&de(n,se):typeof se=="number"&&de(n,""+se):q!=="suppressContentEditableWarning"&&q!=="suppressHydrationWarning"&&q!=="autoFocus"&&(o.hasOwnProperty(q)?se!=null&&q==="onScroll"&&xt("scroll",n):se!=null&&m(n,q,se,K))}switch(l){case"input":He(n),Ge(n,C,!1);break;case"textarea":He(n),Ee(n);break;case"option":C.value!=null&&n.setAttribute("value",""+ge(C.value));break;case"select":n.multiple=!!C.multiple,q=C.value,q!=null?Q(n,!!C.multiple,q,!1):C.defaultValue!=null&&Q(n,!!C.multiple,C.defaultValue,!0);break;default:typeof P.onClick=="function"&&(n.onclick=Wl)}switch(l){case"button":case"input":case"select":case"textarea":C=!!C.autoFocus;break e;case"img":C=!0;break e;default:C=!1}}C&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return Fn(i),null;case 6:if(n&&i.stateNode!=null)Qw(n,i,n.memoizedProps,C);else{if(typeof C!="string"&&i.stateNode===null)throw Error(t(166));if(l=qo(Du.current),qo(hi.current),Pu(i)){if(C=i.stateNode,l=i.memoizedProps,C[di]=i,(q=C.nodeValue!==l)&&(n=ma,n!==null))switch(n.tag){case 3:Gl(C.nodeValue,l,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&Gl(C.nodeValue,l,(n.mode&1)!==0)}q&&(i.flags|=4)}else C=(l.nodeType===9?l:l.ownerDocument).createTextNode(C),C[di]=i,i.stateNode=C}return Fn(i),null;case 13:if(It(jt),C=i.memoizedState,kt&&na!==null&&(i.mode&1)!==0&&(i.flags&128)===0){for(C=na;C;)C=Ti(C.nextSibling);return Ps(),i.flags|=98560,i}if(C!==null&&C.dehydrated!==null){if(C=Pu(i),n===null){if(!C)throw Error(t(318));if(C=i.memoizedState,C=C!==null?C.dehydrated:null,!C)throw Error(t(317));C[di]=i}else Ps(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;return Fn(i),null}return Xa!==null&&(ch(Xa),Xa=null),(i.flags&128)!==0?(i.lanes=l,i):(C=C!==null,l=!1,n===null?Pu(i):l=n.memoizedState!==null,C!==l&&C&&(i.child.flags|=8192,(i.mode&1)!==0&&(n===null||(jt.current&1)!==0?on===0&&(on=3):hh())),i.updateQueue!==null&&(i.flags|=4),Fn(i),null);case 4:return js(),Kd(n,i),n===null&&Tu(i.stateNode.containerInfo),Fn(i),null;case 10:return xd(i.type._context),Fn(i),null;case 17:return ta(i.type)&&Yl(),Fn(i),null;case 19:if(It(jt),q=i.memoizedState,q===null)return Fn(i),null;if(C=(i.flags&128)!==0,K=q.rendering,K===null)if(C)Bu(q,!1);else{if(on!==0||n!==null&&(n.flags&128)!==0)for(n=i.child;n!==null;){if(K=sc(n),K!==null){for(i.flags|=128,Bu(q,!1),C=K.updateQueue,C!==null&&(i.updateQueue=C,i.flags|=4),i.subtreeFlags=0,C=l,l=i.child;l!==null;)q=l,n=C,q.flags&=14680066,K=q.alternate,K===null?(q.childLanes=0,q.lanes=n,q.child=null,q.subtreeFlags=0,q.memoizedProps=null,q.memoizedState=null,q.updateQueue=null,q.dependencies=null,q.stateNode=null):(q.childLanes=K.childLanes,q.lanes=K.lanes,q.child=K.child,q.subtreeFlags=0,q.deletions=null,q.memoizedProps=K.memoizedProps,q.memoizedState=K.memoizedState,q.updateQueue=K.updateQueue,q.type=K.type,n=K.dependencies,q.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),l=l.sibling;return _t(jt,jt.current&1|2),i.child}n=n.sibling}q.tail!==null&&Fr()>Ls&&(i.flags|=128,C=!0,Bu(q,!1),i.lanes=4194304)}else{if(!C)if(n=sc(K),n!==null){if(i.flags|=128,C=!0,l=n.updateQueue,l!==null&&(i.updateQueue=l,i.flags|=4),Bu(q,!0),q.tail===null&&q.tailMode==="hidden"&&!K.alternate&&!kt)return Fn(i),null}else 2*Fr()-q.renderingStartTime>Ls&&l!==1073741824&&(i.flags|=128,C=!0,Bu(q,!1),i.lanes=4194304);q.isBackwards?(K.sibling=i.child,i.child=K):(l=q.last,l!==null?l.sibling=K:i.child=K,q.last=K)}return q.tail!==null?(i=q.tail,q.rendering=i,q.tail=i.sibling,q.renderingStartTime=Fr(),i.sibling=null,l=jt.current,_t(jt,C?l&1|2:l&1),i):(Fn(i),null);case 22:case 23:return dh(),C=i.memoizedState!==null,n!==null&&n.memoizedState!==null!==C&&(i.flags|=8192),C&&(i.mode&1)!==0?(ya&1073741824)!==0&&(Fn(i),i.subtreeFlags&6&&(i.flags|=8192)):Fn(i),null;case 24:return null;case 25:return null}throw Error(t(156,i.tag))}var o$=p.ReactCurrentOwner,aa=!1;function Gn(n,i,l,C){i.child=n===null?Ew(i,null,l,C):Ns(i,n.child,l,C)}function eE(n,i,l,C,P){l=l.render;var q=i.ref;return Rs(i,P),C=Bd(n,i,l,C,q,P),l=$d(),n!==null&&!aa?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~P,ji(n,i,P)):(kt&&l&&Od(i),i.flags|=1,Gn(n,i,C,P),i.child)}function rE(n,i,l,C,P){if(n===null){var q=l.type;return typeof q=="function"&&!vh(q)&&q.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(i.tag=15,i.type=q,tE(n,i,q,C,P)):(n=Ac(l.type,null,C,i,i.mode,P),n.ref=i.ref,n.return=i,i.child=n)}if(q=n.child,(n.lanes&P)===0){var K=q.memoizedProps;if(l=l.compare,l=l!==null?l:xu,l(K,C)&&n.ref===i.ref)return ji(n,i,P)}return i.flags|=1,n=ho(q,C),n.ref=i.ref,n.return=i,i.child=n}function tE(n,i,l,C,P){if(n!==null){var q=n.memoizedProps;if(xu(q,C)&&n.ref===i.ref)if(aa=!1,i.pendingProps=C=q,(n.lanes&P)!==0)(n.flags&131072)!==0&&(aa=!0);else return i.lanes=n.lanes,ji(n,i,P)}return Yd(n,i,l,C,P)}function nE(n,i,l){var C=i.pendingProps,P=C.children,q=n!==null?n.memoizedState:null;if(C.mode==="hidden")if((i.mode&1)===0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},_t(Ds,ya),ya|=l;else if((l&1073741824)!==0)i.memoizedState={baseLanes:0,cachePool:null,transitions:null},C=q!==null?q.baseLanes:l,_t(Ds,ya),ya|=C;else return n=q!==null?q.baseLanes|l:l,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:n,cachePool:null,transitions:null},i.updateQueue=null,_t(Ds,ya),ya|=n,null;else q!==null?(C=q.baseLanes|l,i.memoizedState=null):C=l,_t(Ds,ya),ya|=C;return Gn(n,i,P,l),i.child}function aE(n,i){var l=i.ref;(n===null&&l!==null||n!==null&&n.ref!==l)&&(i.flags|=512,i.flags|=2097152)}function Yd(n,i,l,C,P){var q=ta(l)?Po:Mn.current;return q=As(i,q),Rs(i,P),l=Bd(n,i,l,C,q,P),C=$d(),n!==null&&!aa?(i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~P,ji(n,i,P)):(kt&&C&&Od(i),i.flags|=1,Gn(n,i,l,P),i.child)}function iE(n,i,l,C,P){if(ta(l)){var q=!0;Jl(i)}else q=!1;if(Rs(i,P),i.stateNode===null)n!==null&&(n.alternate=null,i.alternate=null,i.flags|=2),pw(i,l,C),Rd(i,l,C,P),C=!0;else if(n===null){var K=i.stateNode,ee=i.memoizedProps;K.props=ee;var se=K.context,we=l.contextType;typeof we=="object"&&we!==null?we=ka(we):(we=ta(l)?Po:Mn.current,we=As(i,we));var $e=l.getDerivedStateFromProps,dr=typeof $e=="function"||typeof K.getSnapshotBeforeUpdate=="function";dr||typeof K.UNSAFE_componentWillReceiveProps!="function"&&typeof K.componentWillReceiveProps!="function"||(ee!==C||se!==we)&&gw(i,K,C,we),io=!1;var qe=i.memoizedState;K.state=qe,tc(i,C,K,P),se=i.memoizedState,ee!==C||qe!==se||ra.current||io?(typeof $e=="function"&&(Td(i,l,$e,C),se=i.memoizedState),(ee=io||vw(i,l,ee,C,qe,se,we))?(dr||typeof K.UNSAFE_componentWillMount!="function"&&typeof K.componentWillMount!="function"||(typeof K.componentWillMount=="function"&&K.componentWillMount(),typeof K.UNSAFE_componentWillMount=="function"&&K.UNSAFE_componentWillMount()),typeof K.componentDidMount=="function"&&(i.flags|=4194308)):(typeof K.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=C,i.memoizedState=se),K.props=C,K.state=se,K.context=we,C=ee):(typeof K.componentDidMount=="function"&&(i.flags|=4194308),C=!1)}else{K=i.stateNode,cw(n,i),ee=i.memoizedProps,we=i.type===i.elementType?ee:Ya(i.type,ee),K.props=we,dr=i.pendingProps,qe=K.context,se=l.contextType,typeof se=="object"&&se!==null?se=ka(se):(se=ta(l)?Po:Mn.current,se=As(i,se));var pr=l.getDerivedStateFromProps;($e=typeof pr=="function"||typeof K.getSnapshotBeforeUpdate=="function")||typeof K.UNSAFE_componentWillReceiveProps!="function"&&typeof K.componentWillReceiveProps!="function"||(ee!==dr||qe!==se)&&gw(i,K,C,se),io=!1,qe=i.memoizedState,K.state=qe,tc(i,C,K,P);var fr=i.memoizedState;ee!==dr||qe!==fr||ra.current||io?(typeof pr=="function"&&(Td(i,l,pr,C),fr=i.memoizedState),(we=io||vw(i,l,we,C,qe,fr,se)||!1)?($e||typeof K.UNSAFE_componentWillUpdate!="function"&&typeof K.componentWillUpdate!="function"||(typeof K.componentWillUpdate=="function"&&K.componentWillUpdate(C,fr,se),typeof K.UNSAFE_componentWillUpdate=="function"&&K.UNSAFE_componentWillUpdate(C,fr,se)),typeof K.componentDidUpdate=="function"&&(i.flags|=4),typeof K.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof K.componentDidUpdate!="function"||ee===n.memoizedProps&&qe===n.memoizedState||(i.flags|=4),typeof K.getSnapshotBeforeUpdate!="function"||ee===n.memoizedProps&&qe===n.memoizedState||(i.flags|=1024),i.memoizedProps=C,i.memoizedState=fr),K.props=C,K.state=fr,K.context=se,C=we):(typeof K.componentDidUpdate!="function"||ee===n.memoizedProps&&qe===n.memoizedState||(i.flags|=4),typeof K.getSnapshotBeforeUpdate!="function"||ee===n.memoizedProps&&qe===n.memoizedState||(i.flags|=1024),C=!1)}return Jd(n,i,l,C,q,P)}function Jd(n,i,l,C,P,q){aE(n,i);var K=(i.flags&128)!==0;if(!C&&!K)return P&&uw(i,l,!1),ji(n,i,q);C=i.stateNode,o$.current=i;var ee=K&&typeof l.getDerivedStateFromError!="function"?null:C.render();return i.flags|=1,n!==null&&K?(i.child=Ns(i,n.child,null,q),i.child=Ns(i,null,ee,q)):Gn(n,i,ee,q),i.memoizedState=C.state,P&&uw(i,l,!0),i.child}function oE(n){var i=n.stateNode;i.pendingContext?ow(n,i.pendingContext,i.pendingContext!==i.context):i.context&&ow(n,i.context,!1),qd(n,i.containerInfo)}function sE(n,i,l,C,P){return Ps(),jd(P),i.flags|=256,Gn(n,i,l,C),i.child}var hc={dehydrated:null,treeContext:null,retryLane:0};function vc(n){return{baseLanes:n,cachePool:null,transitions:null}}function uE(n,i){return{baseLanes:n.baseLanes|i,cachePool:null,transitions:n.transitions}}function lE(n,i,l){var C=i.pendingProps,P=jt.current,q=!1,K=(i.flags&128)!==0,ee;if((ee=K)||(ee=n!==null&&n.memoizedState===null?!1:(P&2)!==0),ee?(q=!0,i.flags&=-129):(n===null||n.memoizedState!==null)&&(P|=1),_t(jt,P&1),n===null)return Nd(i),n=i.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((i.mode&1)===0?i.lanes=1:n.data==="$!"?i.lanes=8:i.lanes=1073741824,null):(P=C.children,n=C.fallback,q?(C=i.mode,q=i.child,P={mode:"hidden",children:P},(C&1)===0&&q!==null?(q.childLanes=0,q.pendingProps=P):q=Tc(P,C,0,null),n=Bo(n,C,l,null),q.return=i,n.return=i,q.sibling=n,i.child=q,i.child.memoizedState=vc(l),i.memoizedState=hc,n):Xd(i,P));if(P=n.memoizedState,P!==null){if(ee=P.dehydrated,ee!==null){if(K)return i.flags&256?(i.flags&=-257,pc(n,i,l,Error(t(422)))):i.memoizedState!==null?(i.child=n.child,i.flags|=128,null):(q=C.fallback,P=i.mode,C=Tc({mode:"visible",children:C.children},P,0,null),q=Bo(q,P,l,null),q.flags|=2,C.return=i,q.return=i,C.sibling=q,i.child=C,(i.mode&1)!==0&&Ns(i,n.child,null,l),i.child.memoizedState=vc(l),i.memoizedState=hc,q);if((i.mode&1)===0)i=pc(n,i,l,null);else if(ee.data==="$!")i=pc(n,i,l,Error(t(419)));else if(C=(l&n.childLanes)!==0,aa||C){if(C=an,C!==null){switch(l&-l){case 4:q=2;break;case 16:q=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:q=32;break;case 536870912:q=268435456;break;default:q=0}C=(q&(C.suspendedLanes|l))!==0?0:q,C!==0&&C!==P.retryLane&&(P.retryLane=C,Da(n,C,-1))}hh(),i=pc(n,i,l,Error(t(421)))}else ee.data==="$?"?(i.flags|=128,i.child=n.child,i=y$.bind(null,n),ee._reactRetry=i,i=null):(l=P.treeContext,na=Ti(ee.nextSibling),ma=i,kt=!0,Xa=null,l!==null&&(Pa[Na++]=Pi,Pa[Na++]=Ni,Pa[Na++]=No,Pi=l.id,Ni=l.overflow,No=i),i=Xd(i,i.pendingProps.children),i.flags|=4096);return i}return q?(C=fE(n,i,C.children,C.fallback,l),q=i.child,P=n.child.memoizedState,q.memoizedState=P===null?vc(l):uE(P,l),q.childLanes=n.childLanes&~l,i.memoizedState=hc,C):(l=cE(n,i,C.children,l),i.memoizedState=null,l)}return q?(C=fE(n,i,C.children,C.fallback,l),q=i.child,P=n.child.memoizedState,q.memoizedState=P===null?vc(l):uE(P,l),q.childLanes=n.childLanes&~l,i.memoizedState=hc,C):(l=cE(n,i,C.children,l),i.memoizedState=null,l)}function Xd(n,i){return i=Tc({mode:"visible",children:i},n.mode,0,null),i.return=n,n.child=i}function cE(n,i,l,C){var P=n.child;return n=P.sibling,l=ho(P,{mode:"visible",children:l}),(i.mode&1)===0&&(l.lanes=C),l.return=i,l.sibling=null,n!==null&&(C=i.deletions,C===null?(i.deletions=[n],i.flags|=16):C.push(n)),i.child=l}function fE(n,i,l,C,P){var q=i.mode;n=n.child;var K=n.sibling,ee={mode:"hidden",children:l};return(q&1)===0&&i.child!==n?(l=i.child,l.childLanes=0,l.pendingProps=ee,i.deletions=null):(l=ho(n,ee),l.subtreeFlags=n.subtreeFlags&14680064),K!==null?C=ho(K,C):(C=Bo(C,q,P,null),C.flags|=2),C.return=i,l.return=i,l.sibling=C,i.child=l,C}function pc(n,i,l,C){return C!==null&&jd(C),Ns(i,n.child,null,l),n=Xd(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function dE(n,i,l){n.lanes|=i;var C=n.alternate;C!==null&&(C.lanes|=i),Id(n.return,i,l)}function Qd(n,i,l,C,P){var q=n.memoizedState;q===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:C,tail:l,tailMode:P}:(q.isBackwards=i,q.rendering=null,q.renderingStartTime=0,q.last=C,q.tail=l,q.tailMode=P)}function hE(n,i,l){var C=i.pendingProps,P=C.revealOrder,q=C.tail;if(Gn(n,i,C.children,l),C=jt.current,(C&2)!==0)C=C&1|2,i.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&dE(n,l,i);else if(n.tag===19)dE(n,l,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}C&=1}if(_t(jt,C),(i.mode&1)===0)i.memoizedState=null;else switch(P){case"forwards":for(l=i.child,P=null;l!==null;)n=l.alternate,n!==null&&sc(n)===null&&(P=l),l=l.sibling;l=P,l===null?(P=i.child,i.child=null):(P=l.sibling,l.sibling=null),Qd(i,!1,P,l,q);break;case"backwards":for(l=null,P=i.child,i.child=null;P!==null;){if(n=P.alternate,n!==null&&sc(n)===null){i.child=P;break}n=P.sibling,P.sibling=l,l=P,P=n}Qd(i,!0,l,null,q);break;case"together":Qd(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function ji(n,i,l){if(n!==null&&(i.dependencies=n.dependencies),Lo|=i.lanes,(l&i.childLanes)===0)return null;if(n!==null&&i.child!==n.child)throw Error(t(153));if(i.child!==null){for(n=i.child,l=ho(n,n.pendingProps),i.child=l,l.return=i;n.sibling!==null;)n=n.sibling,l=l.sibling=ho(n,n.pendingProps),l.return=i;l.sibling=null}return i.child}function s$(n,i,l){switch(i.tag){case 3:oE(i),Ps();break;case 5:Cw(i);break;case 1:ta(i.type)&&Jl(i);break;case 4:qd(i,i.stateNode.containerInfo);break;case 10:var C=i.type._context,P=i.memoizedProps.value;_t(Ql,C._currentValue),C._currentValue=P;break;case 13:if(C=i.memoizedState,C!==null)return C.dehydrated!==null?(_t(jt,jt.current&1),i.flags|=128,null):(l&i.child.childLanes)!==0?lE(n,i,l):(_t(jt,jt.current&1),n=ji(n,i,l),n!==null?n.sibling:null);_t(jt,jt.current&1);break;case 19:if(C=(l&i.childLanes)!==0,(n.flags&128)!==0){if(C)return hE(n,i,l);i.flags|=128}if(P=i.memoizedState,P!==null&&(P.rendering=null,P.tail=null,P.lastEffect=null),_t(jt,jt.current),C)break;return null;case 22:case 23:return i.lanes=0,nE(n,i,l)}return ji(n,i,l)}function u$(n,i){switch(kd(i),i.tag){case 1:return ta(i.type)&&Yl(),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return js(),It(ra),It(Mn),Md(),n=i.flags,(n&65536)!==0&&(n&128)===0?(i.flags=n&-65537|128,i):null;case 5:return Dd(i),null;case 13:if(It(jt),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(t(340));Ps()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return It(jt),null;case 4:return js(),null;case 10:return xd(i.type._context),null;case 22:case 23:return dh(),null;case 24:return null;default:return null}}var gc=!1,Bn=!1,l$=typeof WeakSet=="function"?WeakSet:Set,yr=null;function qs(n,i){var l=n.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(C){$t(n,i,C)}else l.current=null}function eh(n,i,l){try{l()}catch(C){$t(n,i,C)}}var vE=!1;function c$(n,i){if(pd=X,n=ZS(),sd(n)){if("selectionStart"in n)var l={start:n.selectionStart,end:n.selectionEnd};else e:{l=(l=n.ownerDocument)&&l.defaultView||window;var C=l.getSelection&&l.getSelection();if(C&&C.rangeCount!==0){l=C.anchorNode;var P=C.anchorOffset,q=C.focusNode;C=C.focusOffset;try{l.nodeType,q.nodeType}catch{l=null;break e}var K=0,ee=-1,se=-1,we=0,$e=0,dr=n,qe=null;r:for(;;){for(var pr;dr!==l||P!==0&&dr.nodeType!==3||(ee=K+P),dr!==q||C!==0&&dr.nodeType!==3||(se=K+C),dr.nodeType===3&&(K+=dr.nodeValue.length),(pr=dr.firstChild)!==null;)qe=dr,dr=pr;for(;;){if(dr===n)break r;if(qe===l&&++we===P&&(ee=K),qe===q&&++$e===C&&(se=K),(pr=dr.nextSibling)!==null)break;dr=qe,qe=dr.parentNode}dr=pr}l=ee===-1||se===-1?null:{start:ee,end:se}}else l=null}l=l||{start:0,end:0}}else l=null;for(gd={focusedElem:n,selectionRange:l},X=!1,yr=i;yr!==null;)if(i=yr,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,yr=n;else for(;yr!==null;){i=yr;try{var fr=i.alternate;if((i.flags&1024)!==0)switch(i.tag){case 0:case 11:case 15:break;case 1:if(fr!==null){var Br=fr.memoizedProps,Wt=fr.memoizedState,be=i.stateNode,ue=be.getSnapshotBeforeUpdate(i.elementType===i.type?Br:Ya(i.type,Br),Wt);be.__reactInternalSnapshotBeforeUpdate=ue}break;case 3:var Se=i.stateNode.containerInfo;if(Se.nodeType===1)Se.textContent="";else if(Se.nodeType===9){var tr=Se.body;tr!=null&&(tr.textContent="")}break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(Sr){$t(i,i.return,Sr)}if(n=i.sibling,n!==null){n.return=i.return,yr=n;break}yr=i.return}return fr=vE,vE=!1,fr}function $u(n,i,l){var C=i.updateQueue;if(C=C!==null?C.lastEffect:null,C!==null){var P=C=C.next;do{if((P.tag&n)===n){var q=P.destroy;P.destroy=void 0,q!==void 0&&eh(i,l,q)}P=P.next}while(P!==C)}}function mc(n,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var l=i=i.next;do{if((l.tag&n)===n){var C=l.create;l.destroy=C()}l=l.next}while(l!==i)}}function rh(n){var i=n.ref;if(i!==null){var l=n.stateNode;switch(n.tag){case 5:n=l;break;default:n=l}typeof i=="function"?i(n):i.current=n}}function pE(n){var i=n.alternate;i!==null&&(n.alternate=null,pE(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&(delete i[di],delete i[Ou],delete i[_d],delete i[GB],delete i[WB])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function gE(n){return n.tag===5||n.tag===3||n.tag===4}function mE(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||gE(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function th(n,i,l){var C=n.tag;if(C===5||C===6)n=n.stateNode,i?l.nodeType===8?l.parentNode.insertBefore(n,i):l.insertBefore(n,i):(l.nodeType===8?(i=l.parentNode,i.insertBefore(n,l)):(i=l,i.appendChild(n)),l=l._reactRootContainer,l!=null||i.onclick!==null||(i.onclick=Wl));else if(C!==4&&(n=n.child,n!==null))for(th(n,i,l),n=n.sibling;n!==null;)th(n,i,l),n=n.sibling}function nh(n,i,l){var C=n.tag;if(C===5||C===6)n=n.stateNode,i?l.insertBefore(n,i):l.appendChild(n);else if(C!==4&&(n=n.child,n!==null))for(nh(n,i,l),n=n.sibling;n!==null;)nh(n,i,l),n=n.sibling}var En=null,Qa=!1;function so(n,i,l){for(l=l.child;l!==null;)yE(n,i,l),l=l.sibling}function yE(n,i,l){if(Vn&&typeof Vn.onCommitFiberUnmount=="function")try{Vn.onCommitFiberUnmount(wi,l)}catch{}switch(l.tag){case 5:Bn||qs(l,i);case 6:var C=En,P=Qa;En=null,so(n,i,l),En=C,Qa=P,En!==null&&(Qa?(n=En,l=l.stateNode,n.nodeType===8?n.parentNode.removeChild(l):n.removeChild(l)):En.removeChild(l.stateNode));break;case 18:En!==null&&(Qa?(n=En,l=l.stateNode,n.nodeType===8?bd(n.parentNode,l):n.nodeType===1&&bd(n,l),z(n)):bd(En,l.stateNode));break;case 4:C=En,P=Qa,En=l.stateNode.containerInfo,Qa=!0,so(n,i,l),En=C,Qa=P;break;case 0:case 11:case 14:case 15:if(!Bn&&(C=l.updateQueue,C!==null&&(C=C.lastEffect,C!==null))){P=C=C.next;do{var q=P,K=q.destroy;q=q.tag,K!==void 0&&((q&2)!==0||(q&4)!==0)&&eh(l,i,K),P=P.next}while(P!==C)}so(n,i,l);break;case 1:if(!Bn&&(qs(l,i),C=l.stateNode,typeof C.componentWillUnmount=="function"))try{C.props=l.memoizedProps,C.state=l.memoizedState,C.componentWillUnmount()}catch(ee){$t(l,i,ee)}so(n,i,l);break;case 21:so(n,i,l);break;case 22:l.mode&1?(Bn=(C=Bn)||l.memoizedState!==null,so(n,i,l),Bn=C):so(n,i,l);break;default:so(n,i,l)}}function bE(n){var i=n.updateQueue;if(i!==null){n.updateQueue=null;var l=n.stateNode;l===null&&(l=n.stateNode=new l$),i.forEach(function(C){var P=b$.bind(null,n,C);l.has(C)||(l.add(C),C.then(P,P))})}}function ei(n,i){var l=i.deletions;if(l!==null)for(var C=0;C<l.length;C++){var P=l[C];try{var q=n,K=i,ee=K;e:for(;ee!==null;){switch(ee.tag){case 5:En=ee.stateNode,Qa=!1;break e;case 3:En=ee.stateNode.containerInfo,Qa=!0;break e;case 4:En=ee.stateNode.containerInfo,Qa=!0;break e}ee=ee.return}if(En===null)throw Error(t(160));yE(q,K,P),En=null,Qa=!1;var se=P.alternate;se!==null&&(se.return=null),P.return=null}catch(we){$t(P,i,we)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)_E(i,n),i=i.sibling}function _E(n,i){var l=n.alternate,C=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(ei(i,n),pi(n),C&4){try{$u(3,n,n.return),mc(3,n)}catch(fr){$t(n,n.return,fr)}try{$u(5,n,n.return)}catch(fr){$t(n,n.return,fr)}}break;case 1:ei(i,n),pi(n),C&512&&l!==null&&qs(l,l.return);break;case 5:if(ei(i,n),pi(n),C&512&&l!==null&&qs(l,l.return),n.flags&32){var P=n.stateNode;try{de(P,"")}catch(fr){$t(n,n.return,fr)}}if(C&4&&(P=n.stateNode,P!=null)){var q=n.memoizedProps,K=l!==null?l.memoizedProps:q,ee=n.type,se=n.updateQueue;if(n.updateQueue=null,se!==null)try{ee==="input"&&q.type==="radio"&&q.name!=null&&lr(P,q),$r(ee,K);var we=$r(ee,q);for(K=0;K<se.length;K+=2){var $e=se[K],dr=se[K+1];$e==="style"?De(P,dr):$e==="dangerouslySetInnerHTML"?cr(P,dr):$e==="children"?de(P,dr):m(P,$e,dr,we)}switch(ee){case"input":Ve(P,q);break;case"textarea":le(P,q);break;case"select":var qe=P._wrapperState.wasMultiple;P._wrapperState.wasMultiple=!!q.multiple;var pr=q.value;pr!=null?Q(P,!!q.multiple,pr,!1):qe!==!!q.multiple&&(q.defaultValue!=null?Q(P,!!q.multiple,q.defaultValue,!0):Q(P,!!q.multiple,q.multiple?[]:"",!1))}P[Ou]=q}catch(fr){$t(n,n.return,fr)}}break;case 6:if(ei(i,n),pi(n),C&4){if(n.stateNode===null)throw Error(t(162));we=n.stateNode,$e=n.memoizedProps;try{we.nodeValue=$e}catch(fr){$t(n,n.return,fr)}}break;case 3:if(ei(i,n),pi(n),C&4&&l!==null&&l.memoizedState.isDehydrated)try{z(i.containerInfo)}catch(fr){$t(n,n.return,fr)}break;case 4:ei(i,n),pi(n);break;case 13:ei(i,n),pi(n),we=n.child,we.flags&8192&&we.memoizedState!==null&&(we.alternate===null||we.alternate.memoizedState===null)&&(oh=Fr()),C&4&&bE(n);break;case 22:if(we=l!==null&&l.memoizedState!==null,n.mode&1?(Bn=($e=Bn)||we,ei(i,n),Bn=$e):ei(i,n),pi(n),C&8192){$e=n.memoizedState!==null;e:for(dr=null,qe=n;;){if(qe.tag===5){if(dr===null){dr=qe;try{P=qe.stateNode,$e?(q=P.style,typeof q.setProperty=="function"?q.setProperty("display","none","important"):q.display="none"):(ee=qe.stateNode,se=qe.memoizedProps.style,K=se!=null&&se.hasOwnProperty("display")?se.display:null,ee.style.display=Oe("display",K))}catch(fr){$t(n,n.return,fr)}}}else if(qe.tag===6){if(dr===null)try{qe.stateNode.nodeValue=$e?"":qe.memoizedProps}catch(fr){$t(n,n.return,fr)}}else if((qe.tag!==22&&qe.tag!==23||qe.memoizedState===null||qe===n)&&qe.child!==null){qe.child.return=qe,qe=qe.child;continue}if(qe===n)break e;for(;qe.sibling===null;){if(qe.return===null||qe.return===n)break e;dr===qe&&(dr=null),qe=qe.return}dr===qe&&(dr=null),qe.sibling.return=qe.return,qe=qe.sibling}if($e&&!we&&(n.mode&1)!==0)for(yr=n,n=n.child;n!==null;){for(we=yr=n;yr!==null;){switch($e=yr,dr=$e.child,$e.tag){case 0:case 11:case 14:case 15:$u(4,$e,$e.return);break;case 1:if(qs($e,$e.return),q=$e.stateNode,typeof q.componentWillUnmount=="function"){qe=$e,pr=$e.return;try{P=qe,q.props=P.memoizedProps,q.state=P.memoizedState,q.componentWillUnmount()}catch(fr){$t(qe,pr,fr)}}break;case 5:qs($e,$e.return);break;case 22:if($e.memoizedState!==null){EE(we);continue}}dr!==null?(dr.return=$e,yr=dr):EE(we)}n=n.sibling}}break;case 19:ei(i,n),pi(n),C&4&&bE(n);break;case 21:break;default:ei(i,n),pi(n)}}function pi(n){var i=n.flags;if(i&2){try{e:{for(var l=n.return;l!==null;){if(gE(l)){var C=l;break e}l=l.return}throw Error(t(160))}switch(C.tag){case 5:var P=C.stateNode;C.flags&32&&(de(P,""),C.flags&=-33);var q=mE(n);nh(n,q,P);break;case 3:case 4:var K=C.stateNode.containerInfo,ee=mE(n);th(n,ee,K);break;default:throw Error(t(161))}}catch(se){$t(n,n.return,se)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function f$(n,i,l){yr=n,SE(n)}function SE(n,i,l){for(var C=(n.mode&1)!==0;yr!==null;){var P=yr,q=P.child;if(P.tag===22&&C){var K=P.memoizedState!==null||gc;if(!K){var ee=P.alternate,se=ee!==null&&ee.memoizedState!==null||Bn;ee=gc;var we=Bn;if(gc=K,(Bn=se)&&!we)for(yr=P;yr!==null;)K=yr,se=K.child,K.tag===22&&K.memoizedState!==null?CE(P):se!==null?(se.return=K,yr=se):CE(P);for(;q!==null;)yr=q,SE(q),q=q.sibling;yr=P,gc=ee,Bn=we}wE(n)}else(P.subtreeFlags&8772)!==0&&q!==null?(q.return=P,yr=q):wE(n)}}function wE(n){for(;yr!==null;){var i=yr;if((i.flags&8772)!==0){var l=i.alternate;try{if((i.flags&8772)!==0)switch(i.tag){case 0:case 11:case 15:Bn||mc(5,i);break;case 1:var C=i.stateNode;if(i.flags&4&&!Bn)if(l===null)C.componentDidMount();else{var P=i.elementType===i.type?l.memoizedProps:Ya(i.type,l.memoizedProps);C.componentDidUpdate(P,l.memoizedState,C.__reactInternalSnapshotBeforeUpdate)}var q=i.updateQueue;q!==null&&dw(i,q,C);break;case 3:var K=i.updateQueue;if(K!==null){if(l=null,i.child!==null)switch(i.child.tag){case 5:l=i.child.stateNode;break;case 1:l=i.child.stateNode}dw(i,K,l)}break;case 5:var ee=i.stateNode;if(l===null&&i.flags&4){l=ee;var se=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":se.autoFocus&&l.focus();break;case"img":se.src&&(l.src=se.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var we=i.alternate;if(we!==null){var $e=we.memoizedState;if($e!==null){var dr=$e.dehydrated;dr!==null&&z(dr)}}}break;case 19:case 17:case 21:case 22:case 23:break;default:throw Error(t(163))}Bn||i.flags&512&&rh(i)}catch(qe){$t(i,i.return,qe)}}if(i===n){yr=null;break}if(l=i.sibling,l!==null){l.return=i.return,yr=l;break}yr=i.return}}function EE(n){for(;yr!==null;){var i=yr;if(i===n){yr=null;break}var l=i.sibling;if(l!==null){l.return=i.return,yr=l;break}yr=i.return}}function CE(n){for(;yr!==null;){var i=yr;try{switch(i.tag){case 0:case 11:case 15:var l=i.return;try{mc(4,i)}catch(se){$t(i,l,se)}break;case 1:var C=i.stateNode;if(typeof C.componentDidMount=="function"){var P=i.return;try{C.componentDidMount()}catch(se){$t(i,P,se)}}var q=i.return;try{rh(i)}catch(se){$t(i,q,se)}break;case 5:var K=i.return;try{rh(i)}catch(se){$t(i,K,se)}}}catch(se){$t(i,i.return,se)}if(i===n){yr=null;break}var ee=i.sibling;if(ee!==null){ee.return=i.return,yr=ee;break}yr=i.return}}var d$=Math.ceil,yc=p.ReactCurrentDispatcher,ah=p.ReactCurrentOwner,qa=p.ReactCurrentBatchConfig,at=0,an=null,Xt=null,Cn=0,ya=0,Ds=to(0),on=0,zu=null,Lo=0,bc=0,ih=0,Zu=null,ia=null,oh=0,Ls=1/0,qi=null,_c=!1,sh=null,uo=null,Sc=!1,lo=null,wc=0,Hu=0,uh=null,Ec=-1,Cc=0;function Wn(){return(at&6)!==0?Fr():Ec!==-1?Ec:Ec=Fr()}function co(n){return(n.mode&1)===0?1:(at&2)!==0&&Cn!==0?Cn&-Cn:YB.transition!==null?(Cc===0&&(Cc=si()),Cc):(n=ct,n!==0||(n=window.event,n=n===void 0?16:Ie(n.type)),n)}function Da(n,i,l){if(50<Hu)throw Hu=0,uh=null,Error(t(185));var C=xc(n,i);return C===null?null:(bn(C,i,l),((at&2)===0||C!==an)&&(C===an&&((at&2)===0&&(bc|=i),on===4&&fo(C,Cn)),oa(C,l),i===1&&at===0&&(n.mode&1)===0&&(Ls=Fr()+500,Xl&&ao())),C)}function xc(n,i){n.lanes|=i;var l=n.alternate;for(l!==null&&(l.lanes|=i),l=n,n=n.return;n!==null;)n.childLanes|=i,l=n.alternate,l!==null&&(l.childLanes|=i),l=n,n=n.return;return l.tag===3?l.stateNode:null}function xE(n){return(an!==null||Ja!==null)&&(n.mode&1)!==0&&(at&2)===0}function oa(n,i){var l=n.callbackNode;yu(n,i);var C=Ji(n,n===an?Cn:0);if(C===0)l!==null&&kr(l),n.callbackNode=null,n.callbackPriority=0;else if(i=C&-C,n.callbackPriority!==i){if(l!=null&&kr(l),i===1)n.tag===0?KB(AE.bind(null,n)):lw(AE.bind(null,n)),HB(function(){at===0&&ao()}),l=null;else{switch(Ci(C)){case 1:l=fn;break;case 4:l=ze;break;case 16:l=Et;break;case 536870912:l=oi;break;default:l=Et}l=qE(l,IE.bind(null,n))}n.callbackPriority=i,n.callbackNode=l}}function IE(n,i){if(Ec=-1,Cc=0,(at&6)!==0)throw Error(t(327));var l=n.callbackNode;if(Ms()&&n.callbackNode!==l)return null;var C=Ji(n,n===an?Cn:0);if(C===0)return null;if((C&30)!==0||(C&n.expiredLanes)!==0||i)i=Ic(n,C);else{i=C;var P=at;at|=2;var q=RE();(an!==n||Cn!==i)&&(qi=null,Ls=Fr()+500,Uo(n,i));do try{p$();break}catch(ee){TE(n,ee)}while(!0);Cd(),yc.current=q,at=P,Xt!==null?i=0:(an=null,Cn=0,i=on)}if(i!==0){if(i===2&&(P=Ro(n),P!==0&&(C=P,i=lh(n,P))),i===1)throw l=zu,Uo(n,0),fo(n,C),oa(n,Fr()),l;if(i===6)fo(n,C);else{if(P=n.current.alternate,(C&30)===0&&!h$(P)&&(i=Ic(n,C),i===2&&(q=Ro(n),q!==0&&(C=q,i=lh(n,q))),i===1))throw l=zu,Uo(n,0),fo(n,C),oa(n,Fr()),l;switch(n.finishedWork=P,n.finishedLanes=C,i){case 0:case 1:throw Error(t(345));case 2:Fo(n,ia,qi);break;case 3:if(fo(n,C),(C&130023424)===C&&(i=oh+500-Fr(),10<i)){if(Ji(n,0)!==0)break;if(P=n.suspendedLanes,(P&C)!==C){Wn(),n.pingedLanes|=n.suspendedLanes&P;break}n.timeoutHandle=yd(Fo.bind(null,n,ia,qi),i);break}Fo(n,ia,qi);break;case 4:if(fo(n,C),(C&4194240)===C)break;for(i=n.eventTimes,P=-1;0<C;){var K=31-Dn(C);q=1<<K,K=i[K],K>P&&(P=K),C&=~q}if(C=P,C=Fr()-C,C=(120>C?120:480>C?480:1080>C?1080:1920>C?1920:3e3>C?3e3:4320>C?4320:1960*d$(C/1960))-C,10<C){n.timeoutHandle=yd(Fo.bind(null,n,ia,qi),C);break}Fo(n,ia,qi);break;case 5:Fo(n,ia,qi);break;default:throw Error(t(329))}}}return oa(n,Fr()),n.callbackNode===l?IE.bind(null,n):null}function lh(n,i){var l=Zu;return n.current.memoizedState.isDehydrated&&(Uo(n,i).flags|=256),n=Ic(n,i),n!==2&&(i=ia,ia=l,i!==null&&ch(i)),n}function ch(n){ia===null?ia=n:ia.push.apply(ia,n)}function h$(n){for(var i=n;;){if(i.flags&16384){var l=i.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var C=0;C<l.length;C++){var P=l[C],q=P.getSnapshot;P=P.value;try{if(!Ka(q(),P))return!1}catch{return!1}}}if(l=i.child,i.subtreeFlags&16384&&l!==null)l.return=i,i=l;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function fo(n,i){for(i&=~ih,i&=~bc,n.suspendedLanes|=i,n.pingedLanes&=~i,n=n.expirationTimes;0<i;){var l=31-Dn(i),C=1<<l;n[l]=-1,i&=~C}}function AE(n){if((at&6)!==0)throw Error(t(327));Ms();var i=Ji(n,0);if((i&1)===0)return oa(n,Fr()),null;var l=Ic(n,i);if(n.tag!==0&&l===2){var C=Ro(n);C!==0&&(i=C,l=lh(n,C))}if(l===1)throw l=zu,Uo(n,0),fo(n,i),oa(n,Fr()),l;if(l===6)throw Error(t(345));return n.finishedWork=n.current.alternate,n.finishedLanes=i,Fo(n,ia,qi),oa(n,Fr()),null}function fh(n,i){var l=at;at|=1;try{return n(i)}finally{at=l,at===0&&(Ls=Fr()+500,Xl&&ao())}}function Mo(n){lo!==null&&lo.tag===0&&(at&6)===0&&Ms();var i=at;at|=1;var l=qa.transition,C=ct;try{if(qa.transition=null,ct=1,n)return n()}finally{ct=C,qa.transition=l,at=i,(at&6)===0&&ao()}}function dh(){ya=Ds.current,It(Ds)}function Uo(n,i){n.finishedWork=null,n.finishedLanes=0;var l=n.timeoutHandle;if(l!==-1&&(n.timeoutHandle=-1,ZB(l)),Xt!==null)for(l=Xt.return;l!==null;){var C=l;switch(kd(C),C.tag){case 1:C=C.type.childContextTypes,C!=null&&Yl();break;case 3:js(),It(ra),It(Mn),Md();break;case 5:Dd(C);break;case 4:js();break;case 13:It(jt);break;case 19:It(jt);break;case 10:xd(C.type._context);break;case 22:case 23:dh()}l=l.return}if(an=n,Xt=n=ho(n.current,null),Cn=ya=i,on=0,zu=null,ih=bc=Lo=0,ia=Zu=null,Ja!==null){for(i=0;i<Ja.length;i++)if(l=Ja[i],C=l.interleaved,C!==null){l.interleaved=null;var P=C.next,q=l.pending;if(q!==null){var K=q.next;q.next=P,C.next=K}l.pending=C}Ja=null}return n}function TE(n,i){do{var l=Xt;try{if(Cd(),uc.current=dc,lc){for(var C=qt.memoizedState;C!==null;){var P=C.queue;P!==null&&(P.pending=null),C=C.next}lc=!1}if(Do=0,hn=nn=qt=null,Lu=!1,Mu=0,ah.current=null,l===null||l.return===null){on=1,zu=i,Xt=null;break}e:{var q=n,K=l.return,ee=l,se=i;if(i=Cn,ee.flags|=32768,se!==null&&typeof se=="object"&&typeof se.then=="function"){var we=se,$e=ee,dr=$e.tag;if(($e.mode&1)===0&&(dr===0||dr===11||dr===15)){var qe=$e.alternate;qe?($e.updateQueue=qe.updateQueue,$e.memoizedState=qe.memoizedState,$e.lanes=qe.lanes):($e.updateQueue=null,$e.memoizedState=null)}var pr=Kw(K);if(pr!==null){pr.flags&=-257,Yw(pr,K,ee,q,i),pr.mode&1&&Ww(q,we,i),i=pr,se=we;var fr=i.updateQueue;if(fr===null){var Br=new Set;Br.add(se),i.updateQueue=Br}else fr.add(se);break e}else{if((i&1)===0){Ww(q,we,i),hh();break e}se=Error(t(426))}}else if(kt&&ee.mode&1){var Wt=Kw(K);if(Wt!==null){(Wt.flags&65536)===0&&(Wt.flags|=256),Yw(Wt,K,ee,q,i),jd(se);break e}}q=se,on!==4&&(on=2),Zu===null?Zu=[q]:Zu.push(q),se=Gd(se,ee),ee=K;do{switch(ee.tag){case 3:ee.flags|=65536,i&=-i,ee.lanes|=i;var be=Vw(ee,se,i);fw(ee,be);break e;case 1:q=se;var ue=ee.type,Se=ee.stateNode;if((ee.flags&128)===0&&(typeof ue.getDerivedStateFromError=="function"||Se!==null&&typeof Se.componentDidCatch=="function"&&(uo===null||!uo.has(Se)))){ee.flags|=65536,i&=-i,ee.lanes|=i;var tr=Gw(ee,q,i);fw(ee,tr);break e}}ee=ee.return}while(ee!==null)}kE(l)}catch(Sr){i=Sr,Xt===l&&l!==null&&(Xt=l=l.return);continue}break}while(!0)}function RE(){var n=yc.current;return yc.current=dc,n===null?dc:n}function hh(){(on===0||on===3||on===2)&&(on=4),an===null||(Lo&268435455)===0&&(bc&268435455)===0||fo(an,Cn)}function Ic(n,i){var l=at;at|=2;var C=RE();(an!==n||Cn!==i)&&(qi=null,Uo(n,i));do try{v$();break}catch(P){TE(n,P)}while(!0);if(Cd(),at=l,yc.current=C,Xt!==null)throw Error(t(261));return an=null,Cn=0,on}function v$(){for(;Xt!==null;)OE(Xt)}function p$(){for(;Xt!==null&&!mr();)OE(Xt)}function OE(n){var i=jE(n.alternate,n,ya);n.memoizedProps=n.pendingProps,i===null?kE(n):Xt=i,ah.current=null}function kE(n){var i=n;do{var l=i.alternate;if(n=i.return,(i.flags&32768)===0){if(l=i$(l,i,ya),l!==null){Xt=l;return}}else{if(l=u$(l,i),l!==null){l.flags&=32767,Xt=l;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{on=6,Xt=null;return}}if(i=i.sibling,i!==null){Xt=i;return}Xt=i=n}while(i!==null);on===0&&(on=5)}function Fo(n,i,l){var C=ct,P=qa.transition;try{qa.transition=null,ct=1,g$(n,i,l,C)}finally{qa.transition=P,ct=C}return null}function g$(n,i,l,C){do Ms();while(lo!==null);if((at&6)!==0)throw Error(t(327));l=n.finishedWork;var P=n.finishedLanes;if(l===null)return null;if(n.finishedWork=null,n.finishedLanes=0,l===n.current)throw Error(t(177));n.callbackNode=null,n.callbackPriority=0;var q=l.lanes|l.childLanes;if(ql(n,q),n===an&&(Xt=an=null,Cn=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||Sc||(Sc=!0,qE(Et,function(){return Ms(),null})),q=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||q){q=qa.transition,qa.transition=null;var K=ct;ct=1;var ee=at;at|=4,ah.current=null,c$(n,l),_E(l,n),LB(gd),X=!!pd,gd=pd=null,n.current=l,f$(l),wt(),at=ee,ct=K,qa.transition=q}else n.current=l;if(Sc&&(Sc=!1,lo=n,wc=P),q=n.pendingLanes,q===0&&(uo=null),Wi(l.stateNode),oa(n,Fr()),i!==null)for(C=n.onRecoverableError,l=0;l<i.length;l++)C(i[l]);if(_c)throw _c=!1,n=sh,sh=null,n;return(wc&1)!==0&&n.tag!==0&&Ms(),q=n.pendingLanes,(q&1)!==0?n===uh?Hu++:(Hu=0,uh=n):Hu=0,ao(),null}function Ms(){if(lo!==null){var n=Ci(wc),i=qa.transition,l=ct;try{if(qa.transition=null,ct=16>n?16:n,lo===null)var C=!1;else{if(n=lo,lo=null,wc=0,(at&6)!==0)throw Error(t(331));var P=at;for(at|=4,yr=n.current;yr!==null;){var q=yr,K=q.child;if((yr.flags&16)!==0){var ee=q.deletions;if(ee!==null){for(var se=0;se<ee.length;se++){var we=ee[se];for(yr=we;yr!==null;){var $e=yr;switch($e.tag){case 0:case 11:case 15:$u(8,$e,q)}var dr=$e.child;if(dr!==null)dr.return=$e,yr=dr;else for(;yr!==null;){$e=yr;var qe=$e.sibling,pr=$e.return;if(pE($e),$e===we){yr=null;break}if(qe!==null){qe.return=pr,yr=qe;break}yr=pr}}}var fr=q.alternate;if(fr!==null){var Br=fr.child;if(Br!==null){fr.child=null;do{var Wt=Br.sibling;Br.sibling=null,Br=Wt}while(Br!==null)}}yr=q}}if((q.subtreeFlags&2064)!==0&&K!==null)K.return=q,yr=K;else e:for(;yr!==null;){if(q=yr,(q.flags&2048)!==0)switch(q.tag){case 0:case 11:case 15:$u(9,q,q.return)}var be=q.sibling;if(be!==null){be.return=q.return,yr=be;break e}yr=q.return}}var ue=n.current;for(yr=ue;yr!==null;){K=yr;var Se=K.child;if((K.subtreeFlags&2064)!==0&&Se!==null)Se.return=K,yr=Se;else e:for(K=ue;yr!==null;){if(ee=yr,(ee.flags&2048)!==0)try{switch(ee.tag){case 0:case 11:case 15:mc(9,ee)}}catch(Sr){$t(ee,ee.return,Sr)}if(ee===K){yr=null;break e}var tr=ee.sibling;if(tr!==null){tr.return=ee.return,yr=tr;break e}yr=ee.return}}if(at=P,ao(),Vn&&typeof Vn.onPostCommitFiberRoot=="function")try{Vn.onPostCommitFiberRoot(wi,n)}catch{}C=!0}return C}finally{ct=l,qa.transition=i}}return!1}function PE(n,i,l){i=Gd(l,i),i=Vw(n,i,1),oo(n,i),i=Wn(),n=xc(n,1),n!==null&&(bn(n,1,i),oa(n,i))}function $t(n,i,l){if(n.tag===3)PE(n,n,l);else for(;i!==null;){if(i.tag===3){PE(i,n,l);break}else if(i.tag===1){var C=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof C.componentDidCatch=="function"&&(uo===null||!uo.has(C))){n=Gd(l,n),n=Gw(i,n,1),oo(i,n),n=Wn(),i=xc(i,1),i!==null&&(bn(i,1,n),oa(i,n));break}}i=i.return}}function m$(n,i,l){var C=n.pingCache;C!==null&&C.delete(i),i=Wn(),n.pingedLanes|=n.suspendedLanes&l,an===n&&(Cn&l)===l&&(on===4||on===3&&(Cn&130023424)===Cn&&500>Fr()-oh?Uo(n,0):ih|=l),oa(n,i)}function NE(n,i){i===0&&((n.mode&1)===0?i=1:(i=Yi,Yi<<=1,(Yi&130023424)===0&&(Yi=4194304)));var l=Wn();n=xc(n,i),n!==null&&(bn(n,i,l),oa(n,l))}function y$(n){var i=n.memoizedState,l=0;i!==null&&(l=i.retryLane),NE(n,l)}function b$(n,i){var l=0;switch(n.tag){case 13:var C=n.stateNode,P=n.memoizedState;P!==null&&(l=P.retryLane);break;case 19:C=n.stateNode;break;default:throw Error(t(314))}C!==null&&C.delete(i),NE(n,l)}var jE;jE=function(n,i,l){if(n!==null)if(n.memoizedProps!==i.pendingProps||ra.current)aa=!0;else{if((n.lanes&l)===0&&(i.flags&128)===0)return aa=!1,s$(n,i,l);aa=(n.flags&131072)!==0}else aa=!1,kt&&(i.flags&1048576)!==0&&mw(i,ic,i.index);switch(i.lanes=0,i.tag){case 2:var C=i.type;n!==null&&(n.alternate=null,i.alternate=null,i.flags|=2),n=i.pendingProps;var P=As(i,Mn.current);Rs(i,l),P=Bd(null,i,C,n,P,l);var q=$d();return i.flags|=1,typeof P=="object"&&P!==null&&typeof P.render=="function"&&P.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,ta(C)?(q=!0,Jl(i)):q=!1,i.memoizedState=P.state!==null&&P.state!==void 0?P.state:null,Ad(i),P.updater=nc,i.stateNode=P,P._reactInternals=i,Rd(i,C,n,l),i=Jd(null,i,C,!0,q,l)):(i.tag=0,kt&&q&&Od(i),Gn(null,i,P,l),i=i.child),i;case 16:C=i.elementType;e:{switch(n!==null&&(n.alternate=null,i.alternate=null,i.flags|=2),n=i.pendingProps,P=C._init,C=P(C._payload),i.type=C,P=i.tag=S$(C),n=Ya(C,n),P){case 0:i=Yd(null,i,C,n,l);break e;case 1:i=iE(null,i,C,n,l);break e;case 11:i=eE(null,i,C,n,l);break e;case 14:i=rE(null,i,C,Ya(C.type,n),l);break e}throw Error(t(306,C,""))}return i;case 0:return C=i.type,P=i.pendingProps,P=i.elementType===C?P:Ya(C,P),Yd(n,i,C,P,l);case 1:return C=i.type,P=i.pendingProps,P=i.elementType===C?P:Ya(C,P),iE(n,i,C,P,l);case 3:e:{if(oE(i),n===null)throw Error(t(387));C=i.pendingProps,q=i.memoizedState,P=q.element,cw(n,i),tc(i,C,null,l);var K=i.memoizedState;if(C=K.element,q.isDehydrated)if(q={element:C,isDehydrated:!1,cache:K.cache,pendingSuspenseBoundaries:K.pendingSuspenseBoundaries,transitions:K.transitions},i.updateQueue.baseState=q,i.memoizedState=q,i.flags&256){P=Error(t(423)),i=sE(n,i,C,l,P);break e}else if(C!==P){P=Error(t(424)),i=sE(n,i,C,l,P);break e}else for(na=Ti(i.stateNode.containerInfo.firstChild),ma=i,kt=!0,Xa=null,l=Ew(i,null,C,l),i.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Ps(),C===P){i=ji(n,i,l);break e}Gn(n,i,C,l)}i=i.child}return i;case 5:return Cw(i),n===null&&Nd(i),C=i.type,P=i.pendingProps,q=n!==null?n.memoizedProps:null,K=P.children,md(C,P)?K=null:q!==null&&md(C,q)&&(i.flags|=32),aE(n,i),Gn(n,i,K,l),i.child;case 6:return n===null&&Nd(i),null;case 13:return lE(n,i,l);case 4:return qd(i,i.stateNode.containerInfo),C=i.pendingProps,n===null?i.child=Ns(i,null,C,l):Gn(n,i,C,l),i.child;case 11:return C=i.type,P=i.pendingProps,P=i.elementType===C?P:Ya(C,P),eE(n,i,C,P,l);case 7:return Gn(n,i,i.pendingProps,l),i.child;case 8:return Gn(n,i,i.pendingProps.children,l),i.child;case 12:return Gn(n,i,i.pendingProps.children,l),i.child;case 10:e:{if(C=i.type._context,P=i.pendingProps,q=i.memoizedProps,K=P.value,_t(Ql,C._currentValue),C._currentValue=K,q!==null)if(Ka(q.value,K)){if(q.children===P.children&&!ra.current){i=ji(n,i,l);break e}}else for(q=i.child,q!==null&&(q.return=i);q!==null;){var ee=q.dependencies;if(ee!==null){K=q.child;for(var se=ee.firstContext;se!==null;){if(se.context===C){if(q.tag===1){se=ki(-1,l&-l),se.tag=2;var we=q.updateQueue;if(we!==null){we=we.shared;var $e=we.pending;$e===null?se.next=se:(se.next=$e.next,$e.next=se),we.pending=se}}q.lanes|=l,se=q.alternate,se!==null&&(se.lanes|=l),Id(q.return,l,i),ee.lanes|=l;break}se=se.next}}else if(q.tag===10)K=q.type===i.type?null:q.child;else if(q.tag===18){if(K=q.return,K===null)throw Error(t(341));K.lanes|=l,ee=K.alternate,ee!==null&&(ee.lanes|=l),Id(K,l,i),K=q.sibling}else K=q.child;if(K!==null)K.return=q;else for(K=q;K!==null;){if(K===i){K=null;break}if(q=K.sibling,q!==null){q.return=K.return,K=q;break}K=K.return}q=K}Gn(n,i,P.children,l),i=i.child}return i;case 9:return P=i.type,C=i.pendingProps.children,Rs(i,l),P=ka(P),C=C(P),i.flags|=1,Gn(n,i,C,l),i.child;case 14:return C=i.type,P=Ya(C,i.pendingProps),P=Ya(C.type,P),rE(n,i,C,P,l);case 15:return tE(n,i,i.type,i.pendingProps,l);case 17:return C=i.type,P=i.pendingProps,P=i.elementType===C?P:Ya(C,P),n!==null&&(n.alternate=null,i.alternate=null,i.flags|=2),i.tag=1,ta(C)?(n=!0,Jl(i)):n=!1,Rs(i,l),pw(i,C,P),Rd(i,C,P,l),Jd(null,i,C,!0,n,l);case 19:return hE(n,i,l);case 22:return nE(n,i,l)}throw Error(t(156,i.tag))};function qE(n,i){return Be(n,i)}function _$(n,i,l,C){this.tag=n,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=C,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function La(n,i,l,C){return new _$(n,i,l,C)}function vh(n){return n=n.prototype,!(!n||!n.isReactComponent)}function S$(n){if(typeof n=="function")return vh(n)?1:0;if(n!=null){if(n=n.$$typeof,n===N)return 11;if(n===B)return 14}return 2}function ho(n,i){var l=n.alternate;return l===null?(l=La(n.tag,i,n.key,n.mode),l.elementType=n.elementType,l.type=n.type,l.stateNode=n.stateNode,l.alternate=n,n.alternate=l):(l.pendingProps=i,l.type=n.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=n.flags&14680064,l.childLanes=n.childLanes,l.lanes=n.lanes,l.child=n.child,l.memoizedProps=n.memoizedProps,l.memoizedState=n.memoizedState,l.updateQueue=n.updateQueue,i=n.dependencies,l.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},l.sibling=n.sibling,l.index=n.index,l.ref=n.ref,l}function Ac(n,i,l,C,P,q){var K=2;if(C=n,typeof n=="function")vh(n)&&(K=1);else if(typeof n=="string")K=5;else e:switch(n){case x:return Bo(l.children,P,q,i);case R:K=8,P|=8;break;case O:return n=La(12,l,i,P|2),n.elementType=O,n.lanes=q,n;case D:return n=La(13,l,i,P),n.elementType=D,n.lanes=q,n;case U:return n=La(19,l,i,P),n.elementType=U,n.lanes=q,n;case G:return Tc(l,P,q,i);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case j:K=10;break e;case k:K=9;break e;case N:K=11;break e;case B:K=14;break e;case H:K=16,C=null;break e}throw Error(t(130,n==null?n:typeof n,""))}return i=La(K,l,i,P),i.elementType=n,i.type=C,i.lanes=q,i}function Bo(n,i,l,C){return n=La(7,n,C,i),n.lanes=l,n}function Tc(n,i,l,C){return n=La(22,n,C,i),n.elementType=G,n.lanes=l,n.stateNode={},n}function ph(n,i,l){return n=La(6,n,null,i),n.lanes=l,n}function gh(n,i,l){return i=La(4,n.children!==null?n.children:[],n.key,i),i.lanes=l,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}function w$(n,i,l,C,P){this.tag=i,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=en(0),this.expirationTimes=en(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=en(0),this.identifierPrefix=C,this.onRecoverableError=P,this.mutableSourceEagerHydrationData=null}function mh(n,i,l,C,P,q,K,ee,se){return n=new w$(n,i,l,ee,se),i===1?(i=1,q===!0&&(i|=8)):i=0,q=La(3,null,null,i),n.current=q,q.stateNode=n,q.memoizedState={element:C,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ad(q),n}function E$(n,i,l){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:g,key:C==null?null:""+C,children:n,containerInfo:i,implementation:l}}function DE(n){if(!n)return no;n=n._reactInternals;e:{if(qn(n)!==n||n.tag!==1)throw Error(t(170));var i=n;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if(ta(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(t(171))}if(n.tag===1){var l=n.type;if(ta(l))return sw(n,l,i)}return i}function LE(n,i,l,C,P,q,K,ee,se){return n=mh(l,C,!0,n,P,q,K,ee,se),n.context=DE(null),l=n.current,C=Wn(),P=co(l),q=ki(C,P),q.callback=i??null,oo(l,q),n.current.lanes=P,bn(n,P,C),oa(n,C),n}function Rc(n,i,l,C){var P=i.current,q=Wn(),K=co(P);return l=DE(l),i.context===null?i.context=l:i.pendingContext=l,i=ki(q,K),i.payload={element:n},C=C===void 0?null:C,C!==null&&(i.callback=C),oo(P,i),n=Da(P,K,q),n!==null&&rc(n,P,K),K}function Oc(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function ME(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var l=n.retryLane;n.retryLane=l!==0&&l<i?l:i}}function yh(n,i){ME(n,i),(n=n.alternate)&&ME(n,i)}function C$(){return null}var UE=typeof reportError=="function"?reportError:function(n){console.error(n)};function bh(n){this._internalRoot=n}kc.prototype.render=bh.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(t(409));Rc(n,i,null,null)},kc.prototype.unmount=bh.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;Mo(function(){Rc(null,n,null,null)}),i[Ri]=null}};function kc(n){this._internalRoot=n}kc.prototype.unstable_scheduleHydration=function(n){if(n){var i=Ll();n={blockedOn:null,target:n,priority:i};for(var l=0;l<Ga.length&&i!==0&&i<Ga[l].priority;l++);Ga.splice(l,0,n),l===0&&eo(n)}};function _h(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function Pc(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function FE(){}function x$(n,i,l,C,P){if(P){if(typeof C=="function"){var q=C;C=function(){var we=Oc(K);q.call(we)}}var K=LE(i,C,n,0,null,!1,!1,"",FE);return n._reactRootContainer=K,n[Ri]=K.current,Tu(n.nodeType===8?n.parentNode:n),Mo(),K}for(;P=n.lastChild;)n.removeChild(P);if(typeof C=="function"){var ee=C;C=function(){var we=Oc(se);ee.call(we)}}var se=mh(n,0,!1,null,null,!1,!1,"",FE);return n._reactRootContainer=se,n[Ri]=se.current,Tu(n.nodeType===8?n.parentNode:n),Mo(function(){Rc(i,se,l,C)}),se}function Nc(n,i,l,C,P){var q=l._reactRootContainer;if(q){var K=q;if(typeof P=="function"){var ee=P;P=function(){var se=Oc(K);ee.call(se)}}Rc(i,K,n,P)}else K=x$(l,i,n,P,C);return Oc(K)}Dl=function(n){switch(n.tag){case 3:var i=n.stateNode;if(i.current.memoizedState.isDehydrated){var l=Ei(i.pendingLanes);l!==0&&(bu(i,l|1),oa(i,Fr()),(at&6)===0&&(Ls=Fr()+500,ao()))}break;case 13:var C=Wn();Mo(function(){return Da(n,1,C)}),yh(n,1)}},_u=function(n){if(n.tag===13){var i=Wn();Da(n,134217728,i),yh(n,134217728)}},ms=function(n){if(n.tag===13){var i=Wn(),l=co(n);Da(n,l,i),yh(n,l)}},Ll=function(){return ct},Ml=function(n,i){var l=ct;try{return ct=n,i()}finally{ct=l}},Xe=function(n,i,l){switch(i){case"input":if(Ve(n,l),i=l.name,l.type==="radio"&&i!=null){for(l=n;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<l.length;i++){var C=l[i];if(C!==n&&C.form===n.form){var P=Kl(C);if(!P)throw Error(t(90));nr(C),Ve(C,P)}}}break;case"textarea":le(n,l);break;case"select":i=l.value,i!=null&&Q(n,!!l.multiple,i,!1)}},St=fh,Gt=Mo;var I$={usingClientEntryPoint:!1,Events:[ku,xs,Kl,Kr,et,fh]},Vu={findFiberByHostInstance:ko,bundleType:0,version:"18.1.0",rendererPackageName:"react-dom"},A$={bundleType:Vu.bundleType,version:Vu.version,rendererPackageName:Vu.rendererPackageName,rendererConfig:Vu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:p.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=xe(n),n===null?null:n.stateNode},findFiberByHostInstance:Vu.findFiberByHostInstance||C$,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.1.0-next-22edb9f77-20220426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var jc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!jc.isDisabled&&jc.supportsFiber)try{wi=jc.inject(A$),Vn=jc}catch{}}return sa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I$,sa.createPortal=function(n,i){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!_h(i))throw Error(t(200));return E$(n,i,null,l)},sa.createRoot=function(n,i){if(!_h(n))throw Error(t(299));var l=!1,C="",P=UE;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(C=i.identifierPrefix),i.onRecoverableError!==void 0&&(P=i.onRecoverableError)),i=mh(n,1,!1,null,null,l,!1,C,P),n[Ri]=i.current,Tu(n.nodeType===8?n.parentNode:n),new bh(i)},sa.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(t(188)):(n=Object.keys(n).join(","),Error(t(268,n)));return n=xe(i),n=n===null?null:n.stateNode,n},sa.flushSync=function(n){return Mo(n)},sa.hydrate=function(n,i,l){if(!Pc(i))throw Error(t(200));return Nc(null,n,i,!0,l)},sa.hydrateRoot=function(n,i,l){if(!_h(n))throw Error(t(405));var C=l!=null&&l.hydratedSources||null,P=!1,q="",K=UE;if(l!=null&&(l.unstable_strictMode===!0&&(P=!0),l.identifierPrefix!==void 0&&(q=l.identifierPrefix),l.onRecoverableError!==void 0&&(K=l.onRecoverableError)),i=LE(i,null,n,1,l??null,P,!1,q,K),n[Ri]=i.current,Tu(n),C)for(n=0;n<C.length;n++)l=C[n],P=l._getVersion,P=P(l._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[l,P]:i.mutableSourceEagerHydrationData.push(l,P);return new kc(i)},sa.render=function(n,i,l){if(!Pc(i))throw Error(t(200));return Nc(null,n,i,!1,l)},sa.unmountComponentAtNode=function(n){if(!Pc(n))throw Error(t(40));return n._reactRootContainer?(Mo(function(){Nc(null,null,n,!1,function(){n._reactRootContainer=null,n[Ri]=null})}),!0):!1},sa.unstable_batchedUpdates=fh,sa.unstable_renderSubtreeIntoContainer=function(n,i,l,C){if(!Pc(l))throw Error(t(200));if(n==null||n._reactInternals===void 0)throw Error(t(38));return Nc(n,i,l,!1,C)},sa.version="18.1.0-next-22edb9f77-20220426",sa}var C3;function dK(){if(C3)return Ly.exports;C3=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),Ly.exports=fK(),Ly.exports}var x3;function hK(){if(x3)return Dc;x3=1;var e=dK();return Dc.createRoot=e.createRoot,Dc.hydrateRoot=e.hydrateRoot,Dc}var vK=hK(),Nr=Cl();const je=Ws(Nr);var At=(e=>(e[e.Unclassified=0]="Unclassified",e[e.Primary=1]="Primary",e[e.Secondary=2]="Secondary",e[e.K12=3]="K12",e[e.Tertiary=4]="Tertiary",e[e.NonEducational=5]="NonEducational",e[e.Partners=6]="Partners",e[e.Internal=7]="Internal",e[e.Other=8]="Other",e[e.ClickView=254]="ClickView",e[e.System=255]="System",e))(At||{}),ba=(e=>(e.Unclassified="Unclassified",e.Primary="Primary",e.Secondary="Secondary",e.K12="K12",e.Tertiary="Tertiary",e.NonEducational="NonEducational",e.Partners="Partners",e.Internal="Internal",e.Other="Other",e.ClickView="ClickView",e.System="System",e))(ba||{});At.Primary,At.Secondary,At.Primary,At.Secondary,At.Secondary,At.Primary,At.Primary,At.Primary,At.Secondary,At.Primary;function pK(){return A.jsx("svg",{viewBox:"0 0 24 24",children:A.jsx("path",{d:"M15.293 6.609l-.793.79A8.794 8.794 0 0 0 11.997 7C8.006 6.978 4 10.17 4 12c0 .925 1.062 2.216 2.63 3.254l-.715.714C4.174 14.76 3 13.228 3 12c0-2.44 4.5-6.025 9.003-6 1.119.006 2.239.234 3.29.609zm2.802 1.442C19.833 9.26 21 10.786 21 12c0 2.45-4.504 6-9 6-1.112 0-2.23-.223-3.279-.595l.794-.792A8.659 8.659 0 0 0 12 17c3.989 0 8-3.161 8-5 0-.911-1.055-2.196-2.62-3.235l.715-.714zm-7.65 7.635l.787-.785A3.005 3.005 0 0 0 15 12c0-.264-.034-.52-.098-.763l.787-.785a4 4 0 0 1-5.245 5.235zM8.318 13.57a4 4 0 0 1 5.257-5.246l-.785.782a3.003 3.003 0 0 0-3.687 3.68l-.785.784zm-3.466 6.285a.5.5 0 1 1-.706-.708l15-14.971a.5.5 0 1 1 .706.708l-15 14.97z"})})}function gK(){return A.jsx("svg",{viewBox:"0 0 24 24",children:A.jsx("path",{d:"M3 12c0-2.44 4.5-6.025 9.003-6C16.494 6.025 21 9.614 21 12c0 2.45-4.504 6-9 6-4.466 0-9-3.586-9-6zm1 0c0 1.804 4.042 5 8 5 3.989 0 8-3.161 8-5 0-1.778-4.017-4.977-8.003-5C8.006 6.978 4 10.17 4 12zm8 4a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-1a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"})})}function mK(e){var t;const r=!!((t=e.ipAuthGuests)!=null&&t.length);return Nr.useEffect(()=>{r?e.navigate({step:"username-or-guest",backStep:null}):e.navigate({step:"username-input",backStep:null})},[r]),A.jsx(A.Fragment,{})}const yK="_back_rcp4h_1",bK={back:yK};function _K(){return A.jsx("svg",{viewBox:"0 0 24 24",children:A.jsx("path",{d:"M8.305 11.267l5.906-5.963a1.046 1.046 0 0 1 1.473 0l.011.01a1.034 1.034 0 0 1 0 1.467L10.526 12l5.17 5.22c.406.41.406 1.055 0 1.465l-.012.011a1.046 1.046 0 0 1-1.473 0l-5.906-5.963a1.034 1.034 0 0 1 0-1.466z"})})}function SK(e){return A.jsxs("span",{className:`${bK.back} position-relative d-inline-flex flex-row cursor-pointer`,role:"button",tabIndex:0,onClick:e.onClick,children:[A.jsx(_K,{}),A.jsx("span",{children:"Back"})]})}function Ua(...e){const r=[];for(const t of e)if(t)if(typeof t=="object")for(const a of Object.keys(t))t[a]&&r.push(a);else typeof t=="string"&&r.push(t);return r.join(" ")}function yt(e){var o,s,u;const{onClickBack:r,children:t}=e,a=!!((o=e.title)!=null&&o.length);return a||t||r?A.jsxs("div",{className:"mb-3",children:[A.jsxs("div",{className:"text-left position-relative d-flex flex-column gap-3",children:[!!r&&A.jsx(SK,{onClick:r}),a&&A.jsx("h1",{className:Ua("h2",(s=e==null?void 0:e.className)==null?void 0:s.title),children:e.title})]}),t&&A.jsx("p",{className:Ua("text-start my-2",(u=e==null?void 0:e.className)==null?void 0:u.description),children:t})]}):A.jsx(A.Fragment,{})}function gn(e){const{showSpinner:r,children:t,className:a,...o}=e,s=Nr.useRef(null),[u,v]=Nr.useState({});return Nr.useEffect(()=>{const{width:d,height:h}=u;if(d&&h)return;const f=s.current,c=f.offsetHeight,_=f.offsetWidth;!c||!_||v({width:_,height:c})}),Nr.useEffect(()=>{const{width:d,height:h}=u;if(!d||!h)return;const f=s.current;f.style.width=`${d+1}px`,f.style.height=`${h+1}px`},[u]),A.jsx("button",{ref:s,disabled:r,className:`${a} d-flex justify-content-center align-items-center`,...o,children:r?A.jsx("span",{className:"spinner-border",role:"status",children:A.jsx("span",{className:"visually-hidden",children:"Loading..."})}):t})}function nU(){return A.jsx("svg",{viewBox:"0 0 24 24",children:A.jsx("path",{d:"M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z"})})}const wK="_back_fw24y_1",EK={back:wK};function CK(e){switch(e){case"email":return"Email";case"username":return"Username or email ";default:return null}}function I3(e){switch(e){case"email":return"Enter your email";case"username":return"Enter your username or email";default:return null}}function xK(e){switch(e){case"email":return"email";case"username":return"username email";default:return null}}function xl(e){const r=!e.hideCloseButton&&typeof e.onClickClose=="function";let t="form-control form-control-lg";return e.isError&&(t+=" is-invalid"),e.additionalClassNames&&(t+=" "+e.additionalClassNames),A.jsxs("div",{children:[!e.hideLabel&&A.jsx("label",{htmlFor:e.name,children:CK(e.type)}),A.jsxs("div",{className:"position-relative",children:[A.jsx("input",{className:t,type:"text","aria-label":I3(e.type),placeholder:I3(e.type),autoFocus:!0,value:e.value,onChange:e.onChange,disabled:e.disabled,autoComplete:xK(e.type),autoCorrect:"off",autoCapitalize:"none",spellCheck:"false",name:e.name,id:e.name,"aria-invalid":e.ariaInvalid,"aria-errormessage":e.ariaErrorMessage}),r&&A.jsx("span",{className:`${EK.back} position-absolute cursor-pointer text-gray-800`,role:"button",tabIndex:0,onClick:e.onClickClose,children:A.jsx(nU,{})})]})]})}const IK="https://support.clickvieweducation.com/hc/articles/42460495601305",AK="https://support.clickvieweducation.com/hc/articles/42594760983705",TK="https://support.clickvieweducation.com/hc/articles/43193378048665",RK="https://www.clickvieweducation.com/contact-us",OK={au:"https://www.clickvieweducation.com/en-au",nz:"https://www.clickview.co.nz",uk:"https://www.clickvieweducation.com/en-gb",us:"https://www.clickvieweducation.com",ca:"https://www.clickvieweducation.com/en-ca"},bo={kbEmailInUse:IK,verifyEmail:AK,verifyEmailNotReceived:TK,contactSupport:RK,marketingSite:OK};function aU(e){return PK[e]||iU}const Yc="If the error persists please contact ClickView Support.",kK="If the error persists please contact your ClickView Administrator.",Lc="Please contact your ClickView Administrator for further assistance.",iU={message:"Oops! Something went wrong...",additionalInformation:Yc,errorImage:"default-v2.png"},PK={error:iU,"invalid-token":{message:"This link is either invalid or expired.",errorImage:"link-not-found-v2.png"},"invalid-code":{message:"This code is either invalid or expired.",errorImage:"link-not-found-v2.png"},"validation-failure":{message:"The information provided is not valid.",additionalInformation:Yc,errorImage:"incorrect-information-v2.png"},"user.email-in-use-as-username":{message:"This email address is already in use by another account.",moreInfoUrl:bo.kbEmailInUse,errorImage:"email-error-v2.png"},"user.not-found":{message:"Oh oh! We can't find this account.",additionalInformation:Lc,errorImage:"user-not-found-v2.png"},"user.disabled":{message:"Oops! Looks like this account has been deactivated.",additionalInformation:Lc,errorImage:"user-disabled-v2.png"},"user.no-login":{message:"This account does not have a login.",additionalInformation:Lc,errorImage:"access-forbidden-v2.png"},"user.invalid-password":{message:"The provided username or password is incorrect.",errorImage:"access-forbidden-v2.png"},"user.same-password":{message:"The provided password is the same as the current password.",errorImage:"access-forbidden-v2.png"},"user.password-too-short":{message:"The provided password is too short.",errorImage:"access-forbidden-v2.png"},"user.not-activated":{message:"The account has not been activated. Please check your email for an activation link and try again.",errorImage:"email-error-v2.png"},"user.already-activated":{message:"This account has already been activated.",errorImage:"already-activated-v2.png"},"user.locked-out":{message:"Your account has temporarily been locked due to too many failed login attempts. Please try again in a few minutes.",errorImage:"locked-account-v2.png"},"user.invalid-first-name":{message:"The provided first name is invalid.",errorImage:"default-v2.png"},"user.invalid-surname":{message:"The provided surname is invalid.",errorImage:"default-v2.png"},"user.invalid-jobtitle":{message:"The provided job title is incorrect.",errorImage:"default-v2.png"},"user.no-external-user-data":{message:"Oops! We can't get the information from your IDP.",errorImage:"default-v2.png"},"user.empty-first-name":{message:"The first name must be provided.",errorImage:"default-v2.png"},"user.empty-surname":{message:"The surname must be provided.",errorImage:"default-v2.png"},"user.display-name-too-long":{message:"The maximum length for display name is 70 characters.",errorImage:"default-v2.png"},"user.display-name-too-short":{message:"The minimum length for display name is 2 characters.",errorImage:"default-v2.png"},"user.unknown-user-type":{message:"The account type needs to be provided.",errorImage:"default-v2.png"},"user.invalid-email":{message:"The provided email is invalid.",errorImage:"email-error-v2.png"},"user.email-too-long":{message:"The maximum length for email is 255 characters.",errorImage:"email-error-v2.png"},"user.email-already-exists":{message:"This email address is already in use by another account.",errorImage:"email-error-v2.png"},"user.unknown-year-group":{message:"The year level or grade must be provided for student account.",errorImage:"default-v2.png"},"customer.not-found":{message:"The customer of this account could not be found.",errorImage:"not-found-v2.png"},"user.empty-customer":{message:"The customer mapping does not exist.",errorImage:"default-v2.png"},"user.no-email":{message:"The account does not have an email.",errorImage:"email-error-v2.png"},"user.email-not-allowed":{message:"Oops! That email won't work to sign in to ClickView. Try using your school account instead.",errorImage:"email-error-v2.png"},"user.signup-not-allowed":{message:"Student sign up is currently not supported.",errorImage:"default-v2.png"},"user.invalid-external-user-role":{message:"The external user role is not supported",errorImage:"default-v2.png"},"user.user-type-not-matched":{message:"The provided user type does not match the existing user",errorImage:"default-v2.png"},"user.already-logged-in":{message:"You already have an account on ClickView",errorImage:"default-v2.png"},"login.error":{message:"Uh oh! We cannot log you in at this time.",additionalInformation:Yc,errorImage:"default-v2.png"},"login.invalid-login-state":{message:"Your session has expired.",additionalInformation:"Please login and try again.",errorImage:"incorrect-information-v2.png"},"login.no-ip":{message:"IP address could not be detected for IP auth",errorImage:"default-v2.png"},"verify-email.error":{message:"There was an issue verifying your email address, please try again.",additionalInformation:kK,errorImage:"email-error-v2.png"},"forgot-password.no-account":{message:"No account can be found for the provided username or email address."},"forgot-password.no-verified-email":{message:"Your account needs to be linked to a verified email to receive a password reset link. "+Lc},"idp.wonde-missing-data":{message:"MyLogin currently only supports logins via Wonde. Please contact ClickView support for assistance.",errorImage:"default-v2.png"},"idp.rm-missing-data":{message:"Failed to retrieve data from RM Unify.",errorImage:"default-v2.png"},"saml2.login":{message:"There was an issue processing your login. Please try again",errorImage:"default-v2.png"},"saml2.configuration-error":{preferServerError:!0,message:"There was an issue with the saml configuration. Please contact ClickView support for assistance.",errorImage:"default-v2.png"},"http.400":{message:"The information provided was not quite what we were looking for.",errorImage:"incorrect-information-v2.png"},"http.401":{message:"Uh oh! You don't have permission to access this page.",errorImage:"access-forbidden-v2.png"},"http.403":{message:"Uh oh! You don't have permission to access this page.",errorImage:"access-forbidden-v2.png"},"http.404":{message:"Oops! Nothing to see here.",errorImage:"not-found-v2.png"},"http.500":{message:"Shoot! Looks like theres smoke coming out of our servers.",additionalInformation:Yc,errorImage:"smoky-server-v2.png"}};function NK(){return"Value is required."}let jK=class extends Error{constructor(r,t,a){super(`An error has occured with errorCode: ${r}`),this.userMessage=t,this.errorCode=r,this.traceId=a}};function qK(e){const r=e.errorCode;let t;return r==="validation-failure"?t=NK():t=aU(r).message,new jK(r,t,e.traceId)}class DK{getXsrfToken(){const r="XSRF-TOKEN=",a=decodeURIComponent(document.cookie).split(";");for(let o=0;o<a.length;o++){let s=a[o];for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(r)===0)return s.substring(r.length,s.length)}return""}getHeaders(){return{"x-csrf-token":this.getXsrfToken(),"content-type":"application/json"}}handleResponse(r){return r.json().then(t=>{if(!r.ok)throw qK(t);return t})}get(r){return fetch(r).then(t=>this.handleResponse(t))}post(r,t){const a={method:"POST",headers:this.getHeaders(),body:t&&JSON.stringify(t)};return fetch(r,a).then(o=>this.handleResponse(o))}}const dt=new DK,LK="_banner_hzr93_1",MK="_pluginBanner_hzr93_5",B_={banner:LK,pluginBanner:MK};function A3(e){const r=$K[e.bannerType];return r?A.jsx(r,{}):A.jsx(A.Fragment,{})}const UK=()=>A.jsxs("div",{className:`${B_.banner} rounded mb-4 p-2 text-center mx-auto`,children:["If your email address is already in use, please ",A.jsx("a",{href:bo.contactSupport,target:"_blank",className:"info-link",children:"contact ClickView Support"}),"."]}),FK=()=>A.jsxs("div",{className:`${B_.banner} rounded mb-4 p-2 text-center mx-auto`,children:["If you did not receive a verification email, ",A.jsx("a",{href:bo.verifyEmailNotReceived,target:"_blank",className:"info-link",children:"please see our support article"})," or ",A.jsx("a",{href:bo.contactSupport,target:"_blank",className:"info-link",children:"contact ClickView Support"})," for help."]}),BK=()=>A.jsx("div",{className:`${B_.pluginBanner} position-absolute w-100 h-auto`,children:A.jsx("div",{className:"text-center",children:A.jsx("span",{className:"text-light d-inline-block py-3 h6 mb-0",children:"🎓️ Embed classroom-ready videos from ClickView"})})});function Di(){return A.jsx("div",{style:{height:"3.626rem"}})}const $K={"email-in-use":UK,"check-email":FK,plugin:BK};function $o(){return A.jsx("span",{className:"cv-logo d-inline-block",children:A.jsxs("svg",{viewBox:"0 0 434 71",children:[A.jsx("title",{children:"ClickView Logo"}),A.jsxs("g",{children:[A.jsx("path",{fill:"#000000",d:"M114.44 56.57l3.5 3.5a32.87 32.87 0 0 1-25.16 11.26c-19.63 0-33.62-15.54-33.62-35.16C59.16 16.55 73.16 1 92.78 1a32.31 32.31 0 0 1 24.19 10.4l-3.6 3.3a27.32 27.32 0 0 0-20.59-8.74c-16.91 0-28.39 13.5-28.39 30.21s11.48 30.21 28.39 30.21a28.08 28.08 0 0 0 21.66-9.81zM126.64 1h4.55v70.22h-4.73L126.64 1zm17.3 10.6a3.7 3.7 0 1 1 0 7.4 3.7 3.7 0 0 1 0-7.4zm-2.41 15.07h4.81v44.56h-4.81V26.67zm48 33.15l3.33 3.15a21.8 21.8 0 0 1-17.31 8.61c-12.59 0-21.76-10-21.76-22.22 0-12.22 9.17-22.22 21.76-22.22a21.84 21.84 0 0 1 16.85 8l-3.43 3.06a17.15 17.15 0 0 0-13.42-6.3c-10.09 0-16.76 8.15-16.76 17.5s6.67 17.5 16.76 17.5a17.38 17.38 0 0 0 13.98-7.08zm14.99-9.33v20.74h-4.73V1.01h4.73v47.75l20.74-19.02h6.64l-21.56 19.84L234 71.23h-7.01l-22.47-20.74z"}),A.jsx("path",{fill:"#F8981D",d:"M304.09 19.4a5.56 5.56 0 1 1 0-11.12 5.56 5.56 0 0 1 0 11.12zm-5.56 7.27h11.11v44.56h-11.11V26.67zm61.42 22.15c0 .81 0 2.42-.09 4h-31.75c.8 3.77 5.2 8.61 11.93 8.61a17.11 17.11 0 0 0 11.66-4.31l5.38 8.16a27.23 27.23 0 0 1-17 6.1c-12.92 0-22.88-9.87-22.88-22.34s9.06-22.33 21.35-22.33c11.62-.04 21.4 9.02 21.4 22.11zm-10.77-3.76c-.18-3.68-3.58-8.62-10.67-8.62-6.91 0-10.05 4.85-10.4 8.62h21.07zM385.92 71h-6.42l-19.64-44.37h13.97l9.16 23.98 9.72-23.98h8.31l9.63 23.98 9.16-23.98h13.97L414.24 71h-6.52l-10.85-23.7L385.92 71zm-120.22.35h-6L226.11 1.01h17.01l19.42 44.18 18.08-44.18h16.91L265.7 71.35zM0 1l41 35L0 71V1z"})]})]})})}const zK="/images/clickview-xmas-logo-2026.png";function ZK(){return A.jsx("span",{className:"cv-logo d-inline-block",children:A.jsx("img",{className:"h-100",alt:"ClickView Xmas logo",src:zK})})}const HK="_logo_1ermx_1",VK={logo:HK};function GK(){return A.jsx("span",{className:`${VK.logo} d-inline-block`,children:A.jsxs("svg",{width:"208",height:"40",viewBox:"0 0 208 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[A.jsx("path",{d:"M20 38.7879C30.3763 38.7879 38.7879 30.3763 38.7879 20C38.7879 9.62374 30.3763 1.21212 20 1.21212C9.62374 1.21212 1.21212 9.62374 1.21212 20C1.21212 30.3763 9.62374 38.7879 20 38.7879Z",fill:"white"}),A.jsx("path",{d:"M40 20C40 8.95431 31.0457 0 20 0C8.95431 0 0 8.95431 0 20C0 31.0457 8.95431 40 20 40C31.0457 40 40 31.0457 40 20ZM38.7879 20C38.7879 30.3763 30.3763 38.7879 20 38.7879C9.62374 38.7879 1.21212 30.3763 1.21212 20C1.21212 9.62374 9.62374 1.21212 20 1.21212C30.3763 1.21212 38.7879 9.62374 38.7879 20Z",fill:"white"}),A.jsx("path",{d:"M38.7879 20C38.7879 22.0082 38.4721 23.9425 37.889 25.7571C37.7071 24.466 37.2963 22.6012 36.3672 20.5494C35.2519 18.0869 31.75 14.5202 29.3855 12.2827C30.9915 12.5583 32.5742 12.9138 34.0908 13.4974C35.5547 14.0615 36.9983 14.9081 38.349 15.9452C38.6362 17.2515 38.7879 18.6078 38.7879 20Z",fill:"#ADE1F9"}),A.jsx("path",{d:"M20.92 23.7446C20.2812 23.6634 19.6436 23.5822 19.0099 23.4928C14.9431 22.917 10.8741 21.9261 7.29792 19.9058C4.90618 18.5547 3.11875 16.9893 1.84189 15.1604V15.1582C1.86479 15.0731 1.88768 14.9889 1.91101 14.9042C2.2043 13.9388 3.49974 10.573 7.28453 10.7817C8.18947 10.8313 11.6745 11.2482 12.163 15.3185C12.1989 15.617 12.2334 15.9159 12.2909 16.2113C13.0503 20.1214 17.3806 22.2971 20.7226 23.666C20.7883 23.6928 20.8544 23.7183 20.92 23.7446Z",fill:"#E1FAE1"}),A.jsx("path",{d:"M38.349 15.9452C36.9983 14.9081 35.5547 14.0615 34.0908 13.4974C32.5742 12.9138 30.9915 12.5583 29.3855 12.2827C25.8586 11.6767 22.2211 11.4555 18.9443 10.0452C17.235 9.30911 15.5875 8.17523 14.8087 6.48543C14.0649 4.87294 14.0878 3.4842 14.5992 2.31922C14.702 2.0851 14.9059 1.9093 15.153 1.84364C16.6994 1.43199 18.3236 1.21212 20 1.21212C26.6517 1.21212 32.4969 4.66906 35.835 9.88491C37.0056 11.7129 37.8678 13.7583 38.349 15.9452Z",fill:"#32B3EF"}),A.jsx("path",{d:"M34.6869 31.7168C31.2183 36.0588 25.8646 38.8293 19.8652 38.787C9.5065 38.7144 1.19784 30.3324 1.2121 19.9732C1.21426 18.3093 1.4337 16.6964 1.84189 15.1604C3.11875 16.9893 4.90618 18.5547 7.29792 19.9058C10.8741 21.9261 14.9431 22.917 19.0099 23.4928C19.6436 23.5822 20.2812 23.6634 20.92 23.7446C24.0267 24.1386 27.1566 24.5316 29.9427 25.9178C32.0282 26.9553 33.8791 28.7518 34.8009 30.8438C34.9283 31.1332 34.8847 31.4693 34.6869 31.7168Z",fill:"#5ABD5E"}),A.jsx("path",{d:"M49.4589 24.7134C49.7582 24.1897 50.1964 23.7622 50.7735 23.4309C51.3507 23.0995 52.008 22.9339 52.7455 22.9339C53.5364 22.9339 54.2472 23.1209 54.8778 23.495C55.5083 23.8691 56.0053 24.3981 56.3687 25.0822C56.7321 25.7555 56.9138 26.5411 56.9138 27.4389C56.9138 28.326 56.7321 29.1169 56.3687 29.8116C56.0053 30.5063 55.503 31.0461 54.8617 31.4309C54.2311 31.8156 53.5257 32.008 52.7455 32.008C51.9866 32.008 51.3186 31.8424 50.7415 31.511C50.175 31.1797 49.7475 30.7575 49.4589 30.2445V31.8637H48V20H49.4589V24.7134ZM55.4228 27.4389C55.4228 26.7762 55.2892 26.1991 55.022 25.7074C54.7548 25.2158 54.3914 24.8417 53.9319 24.5852C53.483 24.3287 52.986 24.2004 52.4409 24.2004C51.9065 24.2004 51.4095 24.334 50.9499 24.6012C50.501 24.8577 50.1376 25.2371 49.8597 25.7395C49.5925 26.2311 49.4589 26.8029 49.4589 27.4549C49.4589 28.1176 49.5925 28.7001 49.8597 29.2024C50.1376 29.6941 50.501 30.0735 50.9499 30.3407C51.4095 30.5972 51.9065 30.7255 52.4409 30.7255C52.986 30.7255 53.483 30.5972 53.9319 30.3407C54.3914 30.0735 54.7548 29.6941 55.022 29.2024C55.2892 28.7001 55.4228 28.1122 55.4228 27.4389Z",fill:"#313543"}),A.jsx("path",{d:"M66.4013 23.0782L61.1107 36H59.6037L61.3352 31.7675L57.7921 23.0782H59.4113L62.1688 30.1964L64.8943 23.0782H66.4013Z",fill:"#313543"}),A.jsx("path",{d:"M90.5069 29.4482L91.1019 30.0432C90.0255 31.2772 88.4619 31.977 86.8244 31.9576C83.487 31.9576 81.1085 29.3155 81.1085 25.9799C81.1085 22.6442 83.4887 20.0005 86.8244 20.0005C88.3841 19.9792 89.8794 20.6221 90.937 21.7687L90.325 22.3297C89.4236 21.3575 88.1498 20.8168 86.8244 20.8438C83.9495 20.8438 81.9977 23.139 81.9977 25.9799C81.9977 28.8208 83.9495 31.116 86.8244 31.116C88.2383 31.1328 89.587 30.522 90.5069 29.4482Z",fill:"#313543"}),A.jsx("path",{d:"M92.5811 20.0006H93.3546V31.9389H92.5505L92.5811 20.0006Z",fill:"#313543"}),A.jsx("path",{d:"M95.5223 21.8027C95.7767 21.8027 96.0061 21.956 96.1034 22.191C96.2008 22.4261 96.147 22.6967 95.9671 22.8766C95.7872 23.0565 95.5166 23.1103 95.2816 23.0129C95.0465 22.9156 94.8932 22.6862 94.8932 22.4318C94.8932 22.0844 95.1749 21.8027 95.5223 21.8027Z",fill:"#313543"}),A.jsx("path",{d:"M95.1125 24.3647H95.9303V31.9405H95.1125V24.3647Z",fill:"#313543"}),A.jsx("path",{d:"M103.273 30.0006L103.839 30.5362C103.14 31.4562 102.052 31.9975 100.896 32C98.756 32 97.197 30.2999 97.197 28.2223C97.197 26.1447 98.756 24.4446 100.896 24.4446C102.007 24.4469 103.058 24.9459 103.761 25.8047L103.178 26.325C102.619 25.6407 101.78 25.2468 100.896 25.2539C99.181 25.2539 98.047 26.6395 98.047 28.2291C98.047 29.8187 99.181 31.2043 100.896 31.2043C101.835 31.2033 102.717 30.7565 103.273 30.0006Z",fill:"#313543"}),A.jsx("path",{d:"M105.822 28.4145V31.9406H105.018V20.0023H105.822V28.1204L109.348 24.8867H110.477L106.811 28.2598L110.834 31.9406H109.642L105.822 28.4145Z",fill:"#313543"}),A.jsx("path",{d:"M123.695 22.1836C123.695 22.7056 123.272 23.1288 122.75 23.1288C122.228 23.1288 121.805 22.7056 121.805 22.1836C121.805 21.6615 122.228 21.2383 122.75 21.2383C123.272 21.2383 123.695 21.6615 123.695 22.1836Z",fill:"#F8981D"}),A.jsx("path",{d:"M121.805 24.3647H123.693V31.9405H121.805V24.3647Z",fill:"#F8981D"}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M132.232 28.8107C132.247 28.5421 132.247 28.2683 132.247 28.1306C132.247 25.9052 130.584 24.3648 128.609 24.3716C126.519 24.3716 124.979 26.048 124.979 28.168C124.979 30.2881 126.672 31.9661 128.869 31.9661C129.922 31.9593 130.942 31.5935 131.759 30.9291L130.844 29.5417C130.299 30.0259 129.591 30.2874 128.862 30.2745C127.718 30.2745 126.97 29.4516 126.834 28.8107H132.232ZM128.602 26.0259C129.807 26.0259 130.385 26.8657 130.416 27.4914H126.834C126.893 26.8504 127.427 26.0259 128.602 26.0259Z",fill:"#F8981D"}),A.jsx("path",{d:"M78.0976 25.9629L71.0505 20.0005V31.9269L78.0976 25.9629Z",fill:"#F8981D"}),A.jsx("path",{d:"M136.662 31.9014H135.571L132.231 24.3579H134.607L136.164 28.4348L137.816 24.3579H139.229L140.866 28.4348L142.424 24.3579H144.799L141.477 31.9014H140.368L138.524 27.8721L136.662 31.9014Z",fill:"#F8981D"}),A.jsx("path",{d:"M116.223 31.961H115.203L109.492 20.0023H112.384L115.686 27.5134L118.76 20.0023H121.635L116.223 31.961Z",fill:"#F8981D"}),A.jsx("path",{d:"M51.7774 15.9309C51.0608 15.9309 50.4159 15.8081 49.8426 15.5624C49.2694 15.3065 48.8189 14.9482 48.4914 14.4875C48.1638 14.0269 48 13.4894 48 12.8752H49.8733C49.9143 13.3359 50.0934 13.7147 50.4107 14.0115C50.7383 14.3084 51.1939 14.4568 51.7774 14.4568C52.3813 14.4568 52.8522 14.3135 53.19 14.0269C53.5278 13.73 53.6967 13.3512 53.6967 12.8906C53.6967 12.5323 53.5893 12.2406 53.3743 12.0154C53.1695 11.7901 52.9085 11.6161 52.5912 11.4933C52.2841 11.3704 51.8541 11.2374 51.3013 11.094C50.6052 10.9098 50.0371 10.7255 49.5969 10.5413C49.167 10.3468 48.7985 10.0499 48.4914 9.65067C48.1843 9.25144 48.0307 8.71913 48.0307 8.05374C48.0307 7.43954 48.1843 6.90211 48.4914 6.44146C48.7985 5.98081 49.2284 5.62764 49.7812 5.38196C50.334 5.13628 50.9738 5.01344 51.7006 5.01344C52.7345 5.01344 53.579 5.27447 54.2342 5.79655C54.8996 6.30838 55.2681 7.01471 55.3397 7.91555H53.405C53.3743 7.52655 53.19 7.19386 52.8522 6.91747C52.5144 6.64107 52.0691 6.50288 51.5163 6.50288C51.0147 6.50288 50.6052 6.63084 50.2879 6.88676C49.9706 7.14267 49.8119 7.5112 49.8119 7.99232C49.8119 8.3199 49.9091 8.59117 50.1036 8.80614C50.3084 9.01088 50.5643 9.17466 50.8714 9.2975C51.1785 9.42034 51.5982 9.55342 52.1305 9.69674C52.8369 9.89123 53.4101 10.0857 53.8503 10.2802C54.3007 10.4747 54.6795 10.7767 54.9866 11.1862C55.3039 11.5854 55.4626 12.1228 55.4626 12.7985C55.4626 13.341 55.3141 13.8528 55.0173 14.334C54.7306 14.8151 54.3058 15.2041 53.7428 15.501C53.19 15.7876 52.5349 15.9309 51.7774 15.9309Z",fill:"#313543"}),A.jsx("path",{d:"M59.5703 8.79079V13.4741C59.5703 13.7914 59.642 14.0218 59.7853 14.1651C59.9388 14.2981 60.1947 14.3647 60.553 14.3647H61.6279V15.8234H60.2459C59.4577 15.8234 58.8537 15.6392 58.434 15.2706C58.0143 14.9021 57.8045 14.3033 57.8045 13.4741V8.79079H56.8064V7.36276H57.8045V5.25912H59.5703V7.36276H61.6279V8.79079H59.5703Z",fill:"#313543"}),A.jsx("path",{d:"M64.9917 8.59117C65.2476 8.16123 65.5855 7.82853 66.0052 7.59309C66.4351 7.34741 66.9418 7.22457 67.5253 7.22457V9.03647H67.08C66.3942 9.03647 65.8721 9.21049 65.5138 9.55854C65.1657 9.90659 64.9917 10.5106 64.9917 11.3704V15.8234H63.2412V7.36276H64.9917V8.59117Z",fill:"#313543"}),A.jsx("path",{d:"M76.8887 11.3858C76.8887 11.7031 76.8682 11.9898 76.8273 12.2457H70.3628C70.4139 12.9213 70.6647 13.4639 71.1152 13.8733C71.5656 14.2828 72.1184 14.4875 72.7735 14.4875C73.7153 14.4875 74.3807 14.0934 74.7697 13.3052H76.6583C76.4024 14.0832 75.9367 14.723 75.261 15.2246C74.5956 15.7159 73.7665 15.9616 72.7735 15.9616C71.9648 15.9616 71.238 15.7825 70.5931 15.4242C69.9584 15.0557 69.4568 14.5438 69.0883 13.8887C68.73 13.2233 68.5509 12.4555 68.5509 11.5854C68.5509 10.7153 68.7249 9.95265 69.0729 9.2975C69.4312 8.63212 69.9277 8.12028 70.5624 7.762C71.2073 7.40371 71.9443 7.22457 72.7735 7.22457C73.572 7.22457 74.2834 7.39859 74.9079 7.74664C75.5323 8.09469 76.0186 8.58605 76.3666 9.22073C76.7146 9.84517 76.8887 10.5669 76.8887 11.3858ZM75.0614 10.833C75.0512 10.1881 74.8209 9.67114 74.3704 9.28215C73.92 8.89315 73.3621 8.69866 72.6967 8.69866C72.0928 8.69866 71.5758 8.89315 71.1459 9.28215C70.7159 9.66091 70.46 10.1779 70.3781 10.833H75.0614Z",fill:"#313543"}),A.jsx("path",{d:"M78.0278 11.5547C78.0278 10.7051 78.2019 9.95265 78.5499 9.2975C78.9082 8.64235 79.3893 8.13564 79.9933 7.77735C80.6075 7.40883 81.2831 7.22457 82.0202 7.22457C82.6855 7.22457 83.2639 7.35765 83.7553 7.6238C84.2569 7.87972 84.6561 8.20218 84.953 8.59117V7.36276H86.7188V15.8234H84.953V14.5643C84.6561 14.9635 84.2518 15.2962 83.7399 15.5624C83.2281 15.8285 82.6446 15.9616 81.9894 15.9616C81.2626 15.9616 80.5973 15.7774 79.9933 15.4088C79.3893 15.0301 78.9082 14.508 78.5499 13.8426C78.2019 13.167 78.0278 12.4044 78.0278 11.5547ZM84.953 11.5854C84.953 11.0019 84.8301 10.4952 84.5844 10.0653C84.349 9.63532 84.0368 9.30774 83.6478 9.08253C83.2588 8.85733 82.8391 8.74472 82.3887 8.74472C81.9383 8.74472 81.5186 8.85733 81.1296 9.08253C80.7406 9.2975 80.4232 9.61996 80.1775 10.0499C79.9421 10.4696 79.8244 10.9712 79.8244 11.5547C79.8244 12.1382 79.9421 12.65 80.1775 13.0902C80.4232 13.5304 80.7406 13.8682 81.1296 14.1036C81.5288 14.3289 81.9485 14.4415 82.3887 14.4415C82.8391 14.4415 83.2588 14.3289 83.6478 14.1036C84.0368 13.8784 84.349 13.5509 84.5844 13.1209C84.8301 12.6807 84.953 12.1689 84.953 11.5854Z",fill:"#313543"}),A.jsx("path",{d:"M99.2598 7.22457C99.9252 7.22457 100.519 7.36276 101.041 7.63916C101.573 7.91555 101.988 8.32502 102.285 8.86756C102.592 9.41011 102.745 10.0653 102.745 10.833V15.8234H101.01V11.094C101.01 10.3365 100.821 9.75816 100.442 9.35892C100.063 8.94946 99.5465 8.74472 98.8913 8.74472C98.2362 8.74472 97.7141 8.94946 97.3251 9.35892C96.9463 9.75816 96.757 10.3365 96.757 11.094V15.8234H95.0218V11.094C95.0218 10.3365 94.8324 9.75816 94.4537 9.35892C94.0749 8.94946 93.558 8.74472 92.9028 8.74472C92.2477 8.74472 91.7256 8.94946 91.3366 9.35892C90.9579 9.75816 90.7685 10.3365 90.7685 11.094V15.8234H89.018V7.36276H90.7685V8.33013C91.0551 7.98209 91.4185 7.71081 91.8587 7.51631C92.2989 7.32182 92.7697 7.22457 93.2713 7.22457C93.947 7.22457 94.5509 7.36788 95.0833 7.65451C95.6156 7.94114 96.025 8.35573 96.3117 8.89827C96.5676 8.38644 96.9668 7.98209 97.5094 7.68522C98.0519 7.37812 98.6354 7.22457 99.2598 7.22457Z",fill:"#313543"}),A.jsx("path",{d:"M104.389 11.5547C104.389 10.7051 104.563 9.95265 104.911 9.2975C105.27 8.64235 105.751 8.13564 106.355 7.77735C106.969 7.40883 107.645 7.22457 108.382 7.22457C109.047 7.22457 109.625 7.35765 110.117 7.6238C110.618 7.87972 111.018 8.20218 111.315 8.59117V7.36276H113.08V15.8234H111.315V14.5643C111.018 14.9635 110.613 15.2962 110.101 15.5624C109.59 15.8285 109.006 15.9616 108.351 15.9616C107.624 15.9616 106.959 15.7774 106.355 15.4088C105.751 15.0301 105.27 14.508 104.911 13.8426C104.563 13.167 104.389 12.4044 104.389 11.5547ZM111.315 11.5854C111.315 11.0019 111.192 10.4952 110.946 10.0653C110.711 9.63532 110.398 9.30774 110.009 9.08253C109.62 8.85733 109.201 8.74472 108.75 8.74472C108.3 8.74472 107.88 8.85733 107.491 9.08253C107.102 9.2975 106.785 9.61996 106.539 10.0499C106.304 10.4696 106.186 10.9712 106.186 11.5547C106.186 12.1382 106.304 12.65 106.539 13.0902C106.785 13.5304 107.102 13.8682 107.491 14.1036C107.89 14.3289 108.31 14.4415 108.75 14.4415C109.201 14.4415 109.62 14.3289 110.009 14.1036C110.398 13.8784 110.711 13.5509 110.946 13.1209C111.192 12.6807 111.315 12.1689 111.315 11.5854Z",fill:"#313543"}),A.jsx("path",{d:"M117.13 8.62188C117.427 8.21241 117.831 7.87972 118.343 7.6238C118.865 7.35765 119.444 7.22457 120.078 7.22457C120.826 7.22457 121.501 7.40371 122.105 7.762C122.709 8.12028 123.185 8.63212 123.533 9.2975C123.881 9.95265 124.055 10.7051 124.055 11.5547C124.055 12.4044 123.881 13.167 123.533 13.8426C123.185 14.508 122.704 15.0301 122.09 15.4088C121.486 15.7774 120.815 15.9616 120.078 15.9616C119.423 15.9616 118.84 15.8337 118.328 15.5777C117.826 15.3218 117.427 14.9942 117.13 14.595V15.8234H115.38V4.46065H117.13V8.62188ZM122.274 11.5547C122.274 10.9712 122.151 10.4696 121.905 10.0499C121.67 9.61996 121.353 9.2975 120.953 9.08253C120.564 8.85733 120.145 8.74472 119.694 8.74472C119.254 8.74472 118.834 8.85733 118.435 9.08253C118.046 9.30774 117.729 9.63532 117.483 10.0653C117.248 10.4952 117.13 11.0019 117.13 11.5854C117.13 12.1689 117.248 12.6807 117.483 13.1209C117.729 13.5509 118.046 13.8784 118.435 14.1036C118.834 14.3289 119.254 14.4415 119.694 14.4415C120.145 14.4415 120.564 14.3289 120.953 14.1036C121.353 13.8682 121.67 13.5304 121.905 13.0902C122.151 12.65 122.274 12.1382 122.274 11.5547Z",fill:"#313543"}),A.jsx("path",{d:"M127.537 4.46065V15.8234H125.786V4.46065H127.537Z",fill:"#313543"}),A.jsx("path",{d:"M137.589 11.3858C137.589 11.7031 137.569 11.9898 137.528 12.2457H131.063C131.115 12.9213 131.365 13.4639 131.816 13.8733C132.266 14.2828 132.819 14.4875 133.474 14.4875C134.416 14.4875 135.081 14.0934 135.47 13.3052H137.359C137.103 14.0832 136.637 14.723 135.962 15.2246C135.296 15.7159 134.467 15.9616 133.474 15.9616C132.665 15.9616 131.939 15.7825 131.294 15.4242C130.659 15.0557 130.157 14.5438 129.789 13.8887C129.431 13.2233 129.251 12.4555 129.251 11.5854C129.251 10.7153 129.425 9.95265 129.774 9.2975C130.132 8.63212 130.628 8.12028 131.263 7.762C131.908 7.40371 132.645 7.22457 133.474 7.22457C134.273 7.22457 134.984 7.39859 135.608 7.74664C136.233 8.09469 136.719 8.58605 137.067 9.22073C137.415 9.84517 137.589 10.5669 137.589 11.3858ZM135.762 10.833C135.752 10.1881 135.521 9.67114 135.071 9.28215C134.621 8.89315 134.063 8.69866 133.397 8.69866C132.793 8.69866 132.276 8.89315 131.846 9.28215C131.417 9.66091 131.161 10.1779 131.079 10.833H135.762Z",fill:"#313543"}),A.jsx("path",{d:"M145.051 14.4107H148.66V15.8234H143.301V5.15163H145.051V14.4107Z",fill:"#313543"}),A.jsx("path",{d:"M157.878 11.3858C157.878 11.7031 157.857 11.9898 157.816 12.2457H151.352C151.403 12.9213 151.654 13.4639 152.104 13.8733C152.555 14.2828 153.107 14.4875 153.763 14.4875C154.704 14.4875 155.37 14.0934 155.759 13.3052H157.647C157.392 14.0832 156.926 14.723 156.25 15.2246C155.585 15.7159 154.756 15.9616 153.763 15.9616C152.954 15.9616 152.227 15.7825 151.582 15.4242C150.947 15.0557 150.446 14.5438 150.077 13.8887C149.719 13.2233 149.54 12.4555 149.54 11.5854C149.54 10.7153 149.714 9.95265 150.062 9.2975C150.42 8.63212 150.917 8.12028 151.551 7.762C152.196 7.40371 152.933 7.22457 153.763 7.22457C154.561 7.22457 155.273 7.39859 155.897 7.74664C156.521 8.09469 157.008 8.58605 157.356 9.22073C157.704 9.84517 157.878 10.5669 157.878 11.3858ZM156.051 10.833C156.04 10.1881 155.81 9.67114 155.36 9.28215C154.909 8.89315 154.351 8.69866 153.686 8.69866C153.082 8.69866 152.565 8.89315 152.135 9.28215C151.705 9.66091 151.449 10.1779 151.367 10.833H156.051Z",fill:"#313543"}),A.jsx("path",{d:"M159.017 11.5547C159.017 10.7051 159.191 9.95265 159.539 9.2975C159.897 8.64235 160.378 8.13564 160.982 7.77735C161.597 7.40883 162.272 7.22457 163.009 7.22457C163.675 7.22457 164.253 7.35765 164.744 7.6238C165.246 7.87972 165.645 8.20218 165.942 8.59117V7.36276H167.708V15.8234H165.942V14.5643C165.645 14.9635 165.241 15.2962 164.729 15.5624C164.217 15.8285 163.634 15.9616 162.979 15.9616C162.252 15.9616 161.586 15.7774 160.982 15.4088C160.378 15.0301 159.897 14.508 159.539 13.8426C159.191 13.167 159.017 12.4044 159.017 11.5547ZM165.942 11.5854C165.942 11.0019 165.819 10.4952 165.574 10.0653C165.338 9.63532 165.026 9.30774 164.637 9.08253C164.248 8.85733 163.828 8.74472 163.378 8.74472C162.927 8.74472 162.508 8.85733 162.119 9.08253C161.73 9.2975 161.412 9.61996 161.167 10.0499C160.931 10.4696 160.813 10.9712 160.813 11.5547C160.813 12.1382 160.931 12.65 161.167 13.0902C161.412 13.5304 161.73 13.8682 162.119 14.1036C162.518 14.3289 162.938 14.4415 163.378 14.4415C163.828 14.4415 164.248 14.3289 164.637 14.1036C165.026 13.8784 165.338 13.5509 165.574 13.1209C165.819 12.6807 165.942 12.1689 165.942 11.5854Z",fill:"#313543"}),A.jsx("path",{d:"M171.758 8.59117C172.013 8.16123 172.351 7.82853 172.771 7.59309C173.201 7.34741 173.708 7.22457 174.291 7.22457V9.03647H173.846C173.16 9.03647 172.638 9.21049 172.28 9.55854C171.932 9.90659 171.758 10.5106 171.758 11.3704V15.8234H170.007V7.36276H171.758V8.59117Z",fill:"#313543"}),A.jsx("path",{d:"M180.169 7.22457C180.834 7.22457 181.428 7.36276 181.95 7.63916C182.482 7.91555 182.897 8.32502 183.194 8.86756C183.491 9.41011 183.639 10.0653 183.639 10.833V15.8234H181.904V11.094C181.904 10.3365 181.715 9.75816 181.336 9.35892C180.957 8.94946 180.44 8.74472 179.785 8.74472C179.13 8.74472 178.608 8.94946 178.219 9.35892C177.84 9.75816 177.651 10.3365 177.651 11.094V15.8234H175.9V7.36276H177.651V8.33013C177.937 7.98209 178.301 7.71081 178.741 7.51631C179.191 7.32182 179.667 7.22457 180.169 7.22457Z",fill:"#313543"}),A.jsx("path",{d:"M186.763 6.24184C186.445 6.24184 186.179 6.13436 185.964 5.91939C185.749 5.70442 185.642 5.43826 185.642 5.12092C185.642 4.80358 185.749 4.53743 185.964 4.32246C186.179 4.10749 186.445 4 186.763 4C187.07 4 187.331 4.10749 187.546 4.32246C187.761 4.53743 187.868 4.80358 187.868 5.12092C187.868 5.43826 187.761 5.70442 187.546 5.91939C187.331 6.13436 187.07 6.24184 186.763 6.24184ZM187.622 7.36276V15.8234H185.872V7.36276H187.622Z",fill:"#313543"}),A.jsx("path",{d:"M194.189 7.22457C194.855 7.22457 195.449 7.36276 195.971 7.63916C196.503 7.91555 196.918 8.32502 197.214 8.86756C197.511 9.41011 197.66 10.0653 197.66 10.833V15.8234H195.925V11.094C195.925 10.3365 195.735 9.75816 195.356 9.35892C194.978 8.94946 194.461 8.74472 193.806 8.74472C193.15 8.74472 192.628 8.94946 192.239 9.35892C191.861 9.75816 191.671 10.3365 191.671 11.094V15.8234H189.921V7.36276H191.671V8.33013C191.958 7.98209 192.321 7.71081 192.761 7.51631C193.212 7.32182 193.688 7.22457 194.189 7.22457Z",fill:"#313543"}),A.jsx("path",{d:"M203.301 7.22457C203.956 7.22457 204.535 7.35765 205.036 7.6238C205.548 7.87972 205.948 8.20218 206.234 8.59117V7.36276H208V15.9616C208 16.7396 207.836 17.4306 207.509 18.0345C207.181 18.6488 206.705 19.1299 206.081 19.4779C205.466 19.826 204.729 20 203.869 20C202.723 20 201.771 19.7287 201.013 19.1862C200.256 18.6539 199.826 17.9271 199.724 17.0058H201.459C201.592 17.4459 201.873 17.7991 202.303 18.0653C202.743 18.3417 203.266 18.4798 203.869 18.4798C204.576 18.4798 205.144 18.2649 205.574 17.8349C206.014 17.405 206.234 16.7806 206.234 15.9616V14.5489C205.937 14.9482 205.533 15.286 205.021 15.5624C204.52 15.8285 203.946 15.9616 203.301 15.9616C202.564 15.9616 201.889 15.7774 201.274 15.4088C200.671 15.0301 200.189 14.508 199.831 13.8426C199.483 13.167 199.309 12.4044 199.309 11.5547C199.309 10.7051 199.483 9.95265 199.831 9.2975C200.189 8.64235 200.671 8.13564 201.274 7.77735C201.889 7.40883 202.564 7.22457 203.301 7.22457ZM206.234 11.5854C206.234 11.0019 206.111 10.4952 205.866 10.0653C205.63 9.63532 205.318 9.30774 204.929 9.08253C204.54 8.85733 204.12 8.74472 203.67 8.74472C203.219 8.74472 202.8 8.85733 202.411 9.08253C202.022 9.2975 201.704 9.61996 201.459 10.0499C201.223 10.4696 201.106 10.9712 201.106 11.5547C201.106 12.1382 201.223 12.65 201.459 13.0902C201.704 13.5304 202.022 13.8682 202.411 14.1036C202.81 14.3289 203.23 14.4415 203.67 14.4415C204.12 14.4415 204.54 14.3289 204.929 14.1036C205.318 13.8784 205.63 13.5509 205.866 13.1209C206.111 12.6807 206.234 12.1689 206.234 11.5854Z",fill:"#313543"})]})})}var oU=(e=>(e.Default="default",e.Lite="lite",e.Exchange="exchange",e.Analytics="analytics",e.Cloud="cloud",e.Streamable="streamable",e.Xmas="xmas",e.Plugin="plugin",e.Curator="curator",e))(oU||{});const po="ClickView",WK="Streamable Learning",T3={default:{imageUrls:{default:["/images/backgrounds/bg-1.png","/images/backgrounds/bg-2.png","/images/backgrounds/bg-3.png","/images/backgrounds/bg-4.png","/images/backgrounds/bg-5.png"]},imageType:"background",logoComponent:$o,bannerSpacer:Di,productName:po},lite:{imageUrls:{default:["/images/backgrounds/products/lite-topic-1.png","/images/backgrounds/products/lite-topic-2.png","/images/backgrounds/products/lite-topic-3.png","/images/backgrounds/products/lite-discover-1.png","/images/backgrounds/products/lite-discover-2.png","/images/backgrounds/products/lite-student-1.png","/images/backgrounds/products/lite-student-2.png","/images/backgrounds/products/lite-event-1.png"]},imageType:"image",logoComponent:$o,backgroundColor:"#38A2E8",bannerSpacer:Di,productName:po},exchange:{imageUrls:{default:["/images/backgrounds/products/exchange-1.png"]},imageType:"image",logoComponent:$o,backgroundColor:"#F8981D",bannerSpacer:Di,productName:po},analytics:{imageUrls:{default:["/images/backgrounds/products/analytics-1-v3.png"]},imageType:"image",logoComponent:$o,backgroundColor:"#4C68DB",bannerSpacer:Di,productName:po},cloud:{imageUrls:{default:["/images/backgrounds/products/cloud-1.png"]},imageType:"image",logoComponent:$o,backgroundColor:"#40C2BB",bannerSpacer:Di,productName:po},streamable:{imageUrls:{default:["/images/backgrounds/products/streamable-1.png","/images/backgrounds/products/streamable-2.png"]},imageType:"image",logoComponent:GK,backgroundColor:"#D6F0FC",bannerSpacer:Di,productName:WK},xmas:{imageUrls:{default:["/images/backgrounds/xmas/2026-promo1-bg.png","/images/backgrounds/xmas/2026-promo2-bg.png","/images/backgrounds/xmas/2026-promo3-bg.png","/images/backgrounds/xmas/2026-promo4-bg.png","/images/backgrounds/xmas/2026-promo5-bg.png","/images/backgrounds/xmas/2026-promo6-bg.png","/images/backgrounds/xmas/2026-promo7-bg.png"]},imageType:"background",logoComponent:ZK,bannerSpacer:Di,productName:po},plugin:{imageUrls:{default:[]},imageType:"none",logoComponent:$o,bannerSpacer:Di,banner:"plugin",productName:po},curator:{imageUrls:{default:["/images/backgrounds/products/curator-1.png"]},imageType:"image",backgroundColor:"#49c5b1",logoComponent:$o,bannerSpacer:Di,productName:po,title:"Thank you for all the years of service, ClickView Central!"}},za={getDefinition(e){return T3[e]||T3[oU.Default]}},KK={success:e=>{window.location.href=e.data.redirectUrl},"continue-login":(e,r)=>{const{returnUrl:t}=r;dt.post("/ajax/login/continue",{returnUrl:t}).then(a=>Pt(a,r)).catch(a=>{throw a})}};function Pt(e,r,t){const a=KK[e.step];if(a){a(e,r);return}if(!!!wB[e.step])throw Error(`Unknown step '${e.step}'`);r.navigate({step:e.step,...t,...e.data})}function sU(e){return A.jsxs("div",{className:e.className,children:["Don't have an account? ",A.jsx("a",{className:"info-link btn-link",href:e.signInUrl,children:"Create account"})]})}const uU={getStorage(){return window.localStorage?window.localStorage:window.sessionStorage?window.sessionStorage:uU.getMemoryStorage()},getMemoryStorage(){const e=new Map;return{setItem(r,t){e.set(r,t)},getItem(r){return e.get(r)},removeItem(r){e.delete(r)},clear(){e.clear()},get length(){return e.size},key(r){return Array.from(e.values())[r]}}}};var Kn=(e=>(e.LocalStorage="localStorage",e.SessionStorage="sessionStorage",e.MemoryStorage="memoryStorage",e))(Kn||{});class $_{constructor(r){if(this.cachePrefix="_cv:",this.expireTime=3600,this.type=r.type,this.hasSupport=this.hasBrowserSupport(),!!this.hasSupport)try{this.type==="memoryStorage"?this.storage=uU.getMemoryStorage():this.storage=window[this.type]}catch{}}isAvailable(){return this.hasSupport}get(r){if(!this.hasSupport)return;const t=this.storage.getItem(r);try{return JSON.parse(t)}catch{return t}}set(r,t){if(this.hasSupport)try{return this.storage.removeItem(r),typeof t!="string"?(this.storage.setItem(r,JSON.stringify(t)),!0):(this.storage.setItem(r,t),!0)}catch{return!1}}remove(r){if(this.hasSupport)return this.storage.removeItem(r)}length(){if(this.hasSupport)return this.storage.length}clear(){if(this.hasSupport)return this.storage.clear()}cacheSet(r,t,a=this.expireTime){this.cacheClean();const o={time:this.getCurrentTime()+a*1e3,data:typeof t<"u"&&t!==null&&t};return this.set(`${this.cachePrefix}${r}`,o)}cacheGet(r){const t=`${this.cachePrefix}${r}`,a=this.get(t);return a?this.isExpired(a)?(this.remove(t),null):a.data:null}cacheExists(r){const t=`${this.cachePrefix}${r}`,a=this.get(t);return a?this.isExpired(a)?(this.remove(t),!1):!0:!1}cacheRemove(r){return this.remove(`${this.cachePrefix}${r}`)}cacheFlush(){this.cacheClean()}cacheClean(){if(this.hasSupport)for(let r=0;r<this.storage.length;r++){const t=this.storage.key(r);if(t.indexOf(this.cachePrefix)===0){const a=this.get(t);a&&a.time&&this.isExpired(a)&&this.remove(t)}}}isExpired(r){return r.time<this.getCurrentTime()}getCurrentTime(){return new Date().getTime()}hasBrowserSupport(){if(this.type==="memoryStorage")return!0;try{return this.type in window&&window[this.type]!==null}catch{return!1}}}class YK extends $_{static get Instance(){return this.instance||(this.instance=new this({type:"localStorage"}))}}class JK extends $_{static get Instance(){return this.instance||(this.instance=new this({type:"sessionStorage"}))}}class XK extends $_{static get Instance(){return this.instance||(this.instance=new this({type:"memoryStorage"}))}}const Tn=YK.Instance,R3=JK.Instance,O3=XK.Instance,k3="r",Uf="cv:r",Ff="cv:r:e",Mc="referrer",P3="cv:originalReferrer",Zb=28800,N3=["internalReferrer"],_i={getDecodedAttributionData(){const e=Tn.cacheGet(Uf);if(e&&Object.keys(e).length>0)return e;const r=j3();return r==null?void 0:r.decoded},getEncodedAttributionData(){const e=Tn.cacheGet(Ff);return e!=null&&e.length?e:j3().encoded},getProfileId(){const e=_i.getDecodedAttributionData();return(e==null?void 0:e.profileId)??null},setAttributionData(e){if(!e)return;const r=lU(e);Hb(r,e)},decodeRValue(e){if(e)try{const r=atob(e),t=JSON.parse(r);if(!z_(t))throw Error(`Decoded R value is invalid: ${JSON.stringify(t)}`);return t}catch(r){const t=r instanceof Error?r.message:r==null?void 0:r.toString();console.error(t)}}};function j3(){const e=Tn.cacheGet(Uf),r=Tn.cacheGet(Ff);return z_(e)?{encoded:r,decoded:e}:QK()}function QK(){Tn.cacheRemove(Uf),Tn.cacheRemove(Ff);const e=rY(),r=_i.decodeRValue(e);if(r)return Hb(e,r),{decoded:r,encoded:e};const t={internalReferrer:window.location.origin+window.location.pathname,originalReferrer:eY()},a=lU(t);return Hb(a,t),{decoded:t,encoded:a}}function z_(e){return!e||typeof e!="object"||Object.keys(e).length<N3.length?!1:N3.every(r=>typeof e[r]=="string")}function eY(){const e=Tn.cacheGet(P3);if(e&&typeof e=="string")return e;let r=document.referrer??"";if(window.URLSearchParams){const t=new URLSearchParams(window.location.search),a=t.has(Mc)&&t.get(Mc);t.has(Mc)&&t.get(Mc)&&(r=a)}return r&&Tn.cacheSet(P3,r,Zb),r}function rY(){if(!window.URLSearchParams)return;const e=new URLSearchParams(window.location.search);if(e.has(k3))return e.get(k3)}function lU(e){if(z_(e))try{return btoa(JSON.stringify(e))}catch{console.error(`R value could not be encoded: ${JSON.stringify(e)}`)}}function Hb(e,r){try{Tn.cacheSet(Uf,r,Zb),Tn.cacheSet(Ff,e,Zb)}catch{console.error("Could not store attribution data in session storage")}}const tY=28800,q3="cv:utmparams",Vb=[["source","utm_source"],["medium","utm_medium"],["campaign","utm_campaign"],["term","utm_term"],["content","utm_content"]],nY=Vb.reduce((e,[r])=>({...e,[r]:r}),{}),fs={getUtmParameters(){if(!window.URLSearchParams)return null;const e=new URLSearchParams(window.location.search),r={},t=([a,o])=>{e.has(o)&&(r[a]=e.get(o))};return Vb.forEach(t),D3(r)},setUtmParameters(e){if(!e)return;const r={},t=a=>{nY[a]&&(r[a]=e[a])};return Object.keys(e).forEach(t),D3(r)},getURLSearchParams(){if(!window.URLSearchParams)return null;const e=new URLSearchParams,r=fs.getUtmParameters();return r?(Vb.forEach(([t,a])=>{r[t]&&e.set(a,r[t])}),e):null}};function D3(e){if(Object.keys(e).length)return Tn.cacheSet(q3,e,tY),e;const r=Tn.cacheGet(q3);return r&&typeof r=="object"&&Object.keys(r).length?r:null}function Z_(e){function r(s){dt.post("/ajax/login/ip-auth",{id:s.id,returnUrl:e.returnUrl}).then(u=>Pt(u,e)).catch(u=>{console.warn(u)})}function t(s){window.location.href=s.url}function a(){e.navigate({step:e.backStep})}function o(){if(!window.URLSearchParams)return e.signUpUrl;const s=fs.getURLSearchParams()||new URLSearchParams,u=_i.getEncodedAttributionData();return u&&s.set("r",u),e.signUpUrl+"?"+s.toString()}return{onClickIpAuthGuest:r,onClickProvider:t,onClickBack:e.backStep?a:null,getSignInUrl:o}}const aY="_globalIdpButton_gzfrv_1",iY="_globalIdpImage_gzfrv_5",L3={globalIdpButton:aY,globalIdpImage:iY};function cU(e){const{idp:r,onClick:t,backgroundColour:a="F8981D",foregroundColour:o="FFF",last:s,isGlobalIdp:u}=e,v=s?"":"mb-3",d={backgroundColor:`#${r.backgroundColour||a}`,color:`#${r.foregroundColour||o}`},h={},f=u?`btn btn-lg btn-outline-dark w-100 ${v} ${L3.globalIdpButton}`:`btn btn-lg w-100 ${v}`,c=u?h:d,_=u?`Continue with ${r.name}`:r.name;return A.jsxs("button",{className:f,style:c,onClick:()=>t(r),children:[u&&r.logoUrl&&A.jsx("img",{src:r.logoUrl,className:L3.globalIdpImage,alt:`${r.name} logo`}),_]})}const oY="_divider_1q6pq_1",sY={divider:oY};function H_(e){var a;const r=((a=e.idps)==null?void 0:a.filter(o=>!!o.visible))||[];if(!r.length)return A.jsx(A.Fragment,{});function t(o){const s=window.location.pathname+window.location.search;let u=`/challenge?idp=${o.id}&redirectUrl=`+encodeURIComponent(s);"attribution"in e&&(u+="&attribution="+encodeURIComponent(e.attribution)),window.location.href=u}return A.jsxs("div",{className:`${e.className?e.className:""}`,children:[A.jsx("div",{className:`my-4 border-bottom position-relative ${sY.divider}`}),r.map((o,s)=>A.jsx(cU,{idp:o,onClick:"onClick"in e?e.onClick:t,attribution:"attribution"in e?e.attribution:null,isGlobalIdp:!0},s))]})}function Ht(e){return A.jsx("span",{id:`${e.name}Error`,className:`${e.className} invalid-feedback d-block`,role:"status",children:e.children})}function uY(e){var T;const[r,t]=Nr.useState(e.username||""),[a,o]=Nr.useState(!1),[s,u]=Nr.useState(""),v=za.getDefinition(e==null?void 0:e.theme),d=v!=null&&v.productName?`Sign in to ${v.productName}`:"Sign in",h=!!((T=e.globalIdps)!=null&&T.length),f=e.signUpUrl&&e.showSignUp,{onClickProvider:c,onClickBack:_,getSignInUrl:E}=Z_(e);function S(b){if(b.preventDefault(),!r){u("Please provide a username");return}o(!0),dt.post("/ajax/login/check-user",{username:r,returnUrl:e.returnUrl}).then(I=>Pt(I,e,{username:r})).catch(I=>{o(!1),u(I.userMessage||"Something went wrong")})}function w(b){t(b.target.value.trim()),b.target.value&&u("")}return A.jsxs(A.Fragment,{children:[A.jsx(yt,{theme:e.theme,title:d,onClickBack:_}),A.jsxs("form",{onSubmit:S,children:[A.jsxs("div",{className:"mb-3",children:[A.jsx(xl,{name:"username",type:"username",isError:!!s,value:r,onChange:w,"aria-invalid":!!s,"aria-errormessage":"usernameError"}),!!s&&A.jsx(Ht,{name:"username",children:s})]}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",showSpinner:a,children:"Continue"})]}),f&&A.jsx(sU,{className:"mt-4",signInUrl:E()}),h&&A.jsx(H_,{idps:e.globalIdps.map(b=>({...b,visible:!0})),onClick:c})]})}function lY(e){var c;const r=za.getDefinition(e==null?void 0:e.theme),t=r!=null&&r.productName?`Sign in to ${r.productName}`:"Sign in",a=!!((c=e.globalIdps)!=null&&c.length),o=e.signUpUrl&&e.showSignUp,{onClickIpAuthGuest:s,onClickProvider:u,onClickBack:v,getSignInUrl:d}=Z_(e);function h(){e.navigate({step:"username-input",backStep:"username"})}function f(){var _;((_=e.ipAuthGuests)==null?void 0:_.length)===1?s(e.ipAuthGuests[0]):e.navigate({step:"guest-selection",backStep:"username"})}return A.jsxs(A.Fragment,{children:[A.jsx(yt,{theme:e.theme,title:t,onClickBack:v}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100 mb-3",showSpinner:!1,onClick:h,children:"Sign in with username or email"}),A.jsx(gn,{className:"btn btn-outline-dark btn-lg w-100",showSpinner:!1,onClick:f,children:"Sign in as guest"}),o&&A.jsx(sU,{className:"mt-4",signInUrl:d()}),a&&A.jsx(H_,{idps:e.globalIdps.map(_=>({..._,visible:!0})),onClick:u})]})}function V_(){return A.jsx("div",{className:"svg-container",children:A.jsx("svg",{viewBox:"0 0 24 24",children:A.jsx("path",{d:"M15.695 11.267c.407.41.407 1.056 0 1.466L9.79 18.696a1.046 1.046 0 0 1-1.474 0l-.01-.01a1.034 1.034 0 0 1 0-1.467L13.474 12l-5.17-5.22a1.034 1.034 0 0 1 0-1.465l.012-.011a1.046 1.046 0 0 1 1.474 0l5.905 5.963z"})})})}const cY="_showIconOnHover_1ebbv_1",fY={showIconOnHover:cY};function dY({icon:e}){return A.jsx(A.Fragment,{children:e&&A.jsx("img",{alt:"icon",className:"w-100 h-100 border rounded-circle",src:e})})}function G_(e){const{text:r,onClick:t,className:a,icon:o,iconColor:s="dark",showIconOnHover:u=!0}=e,v={};let d;return typeof o=="function"?d=o:d=()=>A.jsx(dY,{icon:o}),A.jsx("button",{className:Ua("btn btn-outline-dark btn-lg w-100 border-secondary",u&&fY.showIconOnHover,a),onClick:t,style:v,children:A.jsxs("div",{className:"py-1 d-flex align-items-center",children:[d&&A.jsx("span",{className:`icon-circle rounded-circle text-white me-2 bg-${s} d-flex justify-content-center align-items-center`,children:A.jsx(d,{})}),A.jsx("span",{className:"h6 mb-0 w-75 text-start",children:r}),A.jsx("span",{className:"ms-auto",children:A.jsx(V_,{})})]})})}function al(){return A.jsx("div",{className:"svg-container lg",children:A.jsx("svg",{viewBox:"0 0 18 18",className:"align-top",children:A.jsx("path",{d:"M12.648 14.798a.914.914 0 0 1-.908-.907c0-.497.411-.908.908-.908.496 0 .907.411.907.908a.914.914 0 0 1-.907.907zm0-1.044a.135.135 0 0 0-.137.137c0 .086.051.137.137.137.085 0 .137-.052.137-.137a.135.135 0 0 0-.137-.137zm0-.086a.38.38 0 0 1-.377-.376V8.805L8.81 6.94c-.187-.103-.256-.342-.153-.514.103-.188.342-.256.513-.154l3.665 1.97c.12.068.205.205.205.342v4.709a.384.384 0 0 1-.393.377zM8.966 10.62a.606.606 0 0 1-.171-.034l-7.072-3.39a.4.4 0 0 1-.223-.36c0-.154.086-.291.223-.342l7.14-3.254a.362.362 0 0 1 .325 0l7.09 3.254a.394.394 0 0 1 .222.342.357.357 0 0 1-.223.343l-7.14 3.407a.606.606 0 0 1-.171.034zM2.801 6.853l6.165 2.962 6.216-2.962-6.165-2.825zm6.113 6.096c-3.561 0-4.983-2.106-5.034-2.209a.486.486 0 0 1-.068-.205V8.138a.38.38 0 0 1 .376-.377.38.38 0 0 1 .377.377v2.277c.291.36 1.558 1.764 4.332 1.764 2.74 0 4.161-1.405 4.504-1.781V8.274a.38.38 0 0 1 .377-.376.38.38 0 0 1 .376.376v2.26a.429.429 0 0 1-.068.223c-.035.103-1.644 2.192-5.172 2.192z",style:{strokeWidth:.0275199}})})})}const Zs={buildAvatarUrl(e,r){if(e)return r.size?`${e}${e.includes("?")?"&":"?"}size=${r.size}`:e}};function hY(e){return A.jsx("div",{className:"d-flex flex-column gap-3",children:e.ipAuthGuests.map(r=>A.jsx(G_,{onClick:()=>{e.onClickGuest(r)},text:r.customer.name,icon:Zs.buildAvatarUrl(r.customer.logoUrl,{size:"small"})||al},r.id))})}function vY(){return A.jsx("svg",{viewBox:"0 0 24 24",children:A.jsx("path",{d:"M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z"})})}const pY="_clearInput_1l19p_1",gY="_clearableInput_1l19p_8",M3={clearInput:pY,clearableInput:gY},Hs=je.forwardRef((e,r)=>{const{onClickClear:t,showClearButton:a,clearClassName:o,...s}=e;return A.jsxs("div",{className:"position-relative",children:[A.jsx("input",{...s,ref:r,className:`${e.className} ${M3.clearableInput}`}),(!!e.value||a)&&A.jsx("span",{className:`${M3.clearInput} position-absolute cursor-pointer text-secondary ${o||""}`,role:"button",onClick:t,onKeyDown:u=>u.key==="Enter"&&t(),tabIndex:0,children:A.jsx("div",{className:"d-inline-block svg-container md",children:A.jsx(vY,{})})})]})});function W_(e){const[r,t]=je.useState(0),a=je.useRef(null),[o,s]=je.useState(!!e.hideInitially);function u(){var f;a.current&&((f=a.current.children[r-1])==null||f.scrollIntoView({block:"center"}))}function v(f){if(e.hideOnEnter&&s(!1),f.code==="ArrowDown"){f.stopPropagation(),f.preventDefault();let c=r+1;c>e.itemCount&&(c=1),t(c),u();return}if(f.code==="ArrowUp"){f.stopPropagation(),f.preventDefault();let c=r-1;c<=0&&(c=e.itemCount),t(c),u();return}if(f.code==="Enter"&&r>0){f.stopPropagation(),f.preventDefault(),e.onSelected(r-1),e.hideOnEnter&&s(!0);return}t(0)}function d(){e.hideOnBlur&&s(!1)}function h(){e.hideOnBlur&&s(!0)}return{selectedIndex:r,onKeyDown:v,containerRef:a,hide:o,onFocus:d,onBlur:h}}const Wo=je.forwardRef((e,r)=>{function t(o){if(e.onKeyDown)return e.onKeyDown(o);if(o.key===" "&&o.preventDefault(),o.key==="Enter"||o.key===" "){if(e.disabled||!e.onClick)return;a(o)}}function a(...o){if(!(e.disabled||!e.onClick))return e.onClick(...o)}return A.jsx("div",{...e,ref:r,role:"button",tabIndex:e.tabIndex||0,className:`${e.className?e.className:""} ${e.disabled?"":"cursor-pointer"}`,onKeyDown:t,onClick:a,style:e.style?e.style:{},children:e.children})}),mY="_inputFocused_bwtre_1",yY="_dropdown_bwtre_4",bY="_suggestionContainer_bwtre_7",_Y="_suggestionItem_bwtre_16",SY="_large_bwtre_20",wY="_input_bwtre_1",EY="_selected_bwtre_39",CY="_clearInput_bwtre_43",xY="_clear_bwtre_43",ri={inputFocused:mY,dropdown:yY,suggestionContainer:bY,suggestionItem:_Y,large:SY,input:wY,selected:EY,clearInput:CY,clear:xY};function IY(e){const{items:r,getName:t,onItemClick:a,selectedIndex:o}=e;return A.jsx(A.Fragment,{children:r.map((s,u)=>A.jsx(Wo,{className:`${ri.suggestionItem} ${o-1===u?ri.selected:""}`,onKeyDown:v=>v.key==="Enter"&&a(s),onMouseDown:()=>a(s),onClick:()=>a(s),children:t(s)},u))})}function Il(e){const r=je.useRef(null),[t,a]=je.useState(""),[o,s]=je.useState([]),{selectedIndex:u,onKeyDown:v,containerRef:d,hide:h,onBlur:f,onFocus:c}=W_({onSelected:_,itemCount:e.cantFindText?e.items.length+1:e.items.length,hideOnBlur:!0,hideInitially:!0,hideOnEnter:!0});function _(g){if(g===o.length){e.onCantFind();return}const x=o[g];x&&I(x)}const E=!!e.item,S=e.cantFindText?(o==null?void 0:o.length)+1:o==null?void 0:o.length;je.useEffect(()=>{if(!E){if(!t.length){b();return}if(!E&&t.length>1){b(t);return}}},[t,E]);function w(g){e.item&&e.clearData(),g!==t&&a(g)}function T(){w(""),r.current.focus()}function b(g){if(!g){s(e.items);return}const x=e.items.filter(R=>e.getName(R).toLowerCase().includes(g.toLowerCase()));s(x)}function I(g){a(e.getName(g)),e.onSelect(g),s(e.items)}const m=S&&!e.disabled&&!h;let p=`form-select ${m?ri.inputFocused:ri.input} ${ri.clearInput} cursor-pointer`,y="form-group position-relative";return e.size==="lg"&&(p+=" form-select-lg",y+=` ${ri.large}`),A.jsxs("div",{className:y,children:[A.jsx(Hs,{id:e.id,value:t,onChange:g=>w(g.currentTarget.value),ref:r,className:p,type:"text",autoComplete:"off",placeholder:e.placeholder,disabled:e.disabled,onClickClear:T,onKeyDown:v,onFocus:c,onBlur:f,clearClassName:ri.clear}),A.jsx("div",{className:`position-absolute z-1 w-100 ${ri.dropdown} ${h?"d-none":""}`,children:A.jsxs("div",{className:`${ri.suggestionContainer} ${m?"":"d-none"}`,ref:d,children:[S&&A.jsx(IY,{items:o,onItemClick:I,getName:e.getName,selectedIndex:u}),e.cantFindText&&A.jsx("div",{className:`info-link ${ri.suggestionItem} ${u===o.length+1?ri.selected:""}`,onKeyDown:g=>g.key==="Enter"&&e.onCantFind(),onMouseDown:e.onCantFind,onClick:e.onCantFind,children:e.cantFindText})]})})]})}function AY(e){const[r,t]=Nr.useState(null);return A.jsxs(A.Fragment,{children:[A.jsx("div",{className:"mb-3",children:A.jsx(Il,{id:"guest",item:r,items:e.ipAuthGuests,onSelect:a=>t(a),getName:a=>a.customer.name,clearData:()=>t(null),placeholder:"Select a school",size:"lg"})}),A.jsx("button",{className:"btn btn-lg btn-dark w-100",disabled:!r,onClick:()=>{e.onClickGuest(r)},children:"Continue"})]})}const TY=4;function RY(e){return A.jsxs("div",{className:Ua(e.className),children:[A.jsx("p",{className:"fw-medium",children:"Which school would you like to sign in to as a guest?"}),e.ipAuthGuests.length>TY?A.jsx(AY,{ipAuthGuests:e.ipAuthGuests,onClickGuest:e.onClickGuest}):A.jsx(hY,{ipAuthGuests:e.ipAuthGuests,onClickGuest:e.onClickGuest})]})}function OY(e){const{onClickIpAuthGuest:r,onClickBack:t}=Z_(e);return A.jsxs(A.Fragment,{children:[A.jsx(yt,{theme:e.theme,title:"Sign in as guest",onClickBack:t}),A.jsx(RY,{ipAuthGuests:e.ipAuthGuests,onClickGuest:r})]})}const kY="_revealPassword_11wqf_1",PY="_passwordInput_11wqf_10",NY="_passwordContainer_11wqf_17",Fy={revealPassword:kY,passwordInput:PY,passwordContainer:NY};function jY(e){return e||"Password"}function Vs(e){const[r,t]=Nr.useState("password"),a=Nr.useRef(null);function o(u){var v;u.preventDefault(),t(r==="password"?"text":"password"),(v=a.current)==null||v.focus()}let s=`position-relative form-control form-control-lg ${Fy.passwordContainer}`;return e.hasError&&(s+=` ${e.hasError?"is-invalid":""}`),e.className&&(s+=` ${e.className}`),A.jsxs("div",{children:[!e.hideLabel&&A.jsx("label",{htmlFor:e.id||e.name,children:jY(e.label)}),A.jsxs("div",{className:s,children:[A.jsx("input",{className:`${Fy.passwordInput} border-0 w-100 h-100 outline-none rounded py-0 ps-0`,type:r,"aria-label":e.placeholder,placeholder:e.placeholder,autoFocus:e.autoFocus,value:e.value,onChange:e.onChange,name:e.name,autoComplete:e.autoComplete,ref:a,id:e.id||e.name}),A.jsx(Wo,{className:`svg-container cursor-pointer ${Fy.revealPassword}`,onClick:o,children:r==="password"?A.jsx(gK,{}):A.jsx(pK,{})})]})]})}function qY(e){const{returnUrl:r,navigate:t}=e,[a,o]=Nr.useState(e.username),[s,u]=Nr.useState(""),[v,d]=Nr.useState(!1),[h,f]=Nr.useState(""),c=!!e.username;function _(m){o(m.target.value.trim()),f("")}function E(m){u(m.target.value),f("")}function S(m){if(e.backStep){t({step:e.backStep,backStep:null});return}t({step:"username",clearUsername:m})}function w(){t({step:"forgot-password",backStep:"password",username:a})}function T(m){if(m.preventDefault(),!a){f("Please provide a username");return}if(!s){f("Please provide a password");return}if(s.trim().length!==s.length){f("Your password cannot start or end with a blank space");return}d(!0),dt.post("/ajax/login/password",{username:a,password:s,returnUrl:r}).then(p=>Pt(p,e)).catch(p=>{d(!1),f(p.userMessage||"Something went wrong")})}const b=za.getDefinition(e==null?void 0:e.theme),I=b!=null&&b.productName?`Sign in to ${b.productName}`:"Sign in";return A.jsxs("form",{onSubmit:T,children:[A.jsx(yt,{theme:e.theme,onClickBack:()=>S(!1),title:I}),A.jsx("div",{className:"mb-3 position-relative",children:A.jsx(xl,{name:"username",type:"username",isError:!!h,value:a,disabled:c,onChange:_,hideCloseButton:!c,onClickClose:()=>S(!0)})}),A.jsxs("div",{className:"mb-3",children:[A.jsx(Vs,{placeholder:"Enter your password",autoFocus:c,value:s,onChange:E,name:"current-password",autoComplete:"current-password",hasError:!!h,"aria-invalid":!!h,"aria-errormessage":"current-passwordError"}),!!h&&A.jsx(Ht,{name:"current-passwordError",children:h})]}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",showSpinner:v,children:"Sign in"}),A.jsx("div",{className:"text-start",children:A.jsx("button",{className:"btn btn-link text-info ps-0",onClick:w,children:"Forgot your password?"})})]})}const U3=["38A2E8","7A76E8","40BCC3","F7847B"];function DY(e){const{navigate:r,idps:t,showPasswordLogin:a}=e,[o,s]=Nr.useState(null);function u(c){window.location.href=c}function v(){r({step:"username"})}function d(){r({step:"password",backStep:"select-idp"})}function h(c){u(c.url)}function f(){o&&u(o.url)}return A.jsxs("div",{children:[A.jsx(yt,{onClickBack:v,theme:e.theme,title:"To sign in, please select an option from the list below"}),t.length>4?A.jsxs(A.Fragment,{children:[A.jsx(Il,{id:"idp",item:o,items:t,onSelect:s,getName:c=>c.name,clearData:()=>s(null),placeholder:"Select a school",size:"lg"}),A.jsx("button",{className:"btn btn-lg btn-dark w-100",disabled:!o,onClick:f,children:"Continue"})]}):t.map((c,_)=>A.jsx(cU,{onClick:h,idp:{...c,visible:!0},backgroundColour:U3[_%U3.length],isGlobalIdp:!c.id.startsWith("online:")},_)),a&&A.jsx("button",{className:"btn btn-link text-info w-100 mt-2 no-sso-link",onClick:d,children:"My school doesn't use Single Sign On"})]})}function fU(e,r){je.useEffect(()=>{if(e)return r.dispatch({type:"setBanner",data:{bannerType:e}}),()=>{r.dispatch({type:"setBanner",data:{bannerType:null}})}},[e])}const LY=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,MY=/^[\s\w,.?&;:@+'"!-=\\\/]+$/im,F3=250,gi={isEmail(e){return LY.test(e)},isValidLength(e){if(!e)return!1;const r=e.trim();return r.length>0&&r.length<=F3},exceedsMaxLength(e){return e?e.trim().length>F3:!1},containsValidText(e){return e?MY.test(e):!0},isPasswordValid(e,r,t){return e.length?t&&!r.length?[!1,"Password confirmation is required."]:t&&e!==r?[!1,"Password confirmation does not match."]:e.trim().length!==e.length?[!1,"Your password cannot start or end with a blank space"]:[!0]:[!1,"Password is required."]}};function UY(e){const{navigate:r,backStep:t}=e,[a,o]=je.useState(e.email||""),[s,u]=je.useState(!1),[v,d]=je.useState("");fU("email-in-use",e);const{productName:h}=za.getDefinition(e.theme);function f(){r({step:t||"username"})}function c(){r({step:"verify-email-skip-reason",backStep:"verify-email"})}function _(S){o(S.target.value)}function E(S){if(S.preventDefault(),!a){d("Please provide an email");return}if(!gi.isEmail(a)){d("The email address provided is invalid");return}u(!0),dt.post("/ajax/login/send-verify-email-code",{email:a}).then(w=>Pt(w,e,{email:a})).catch(w=>{u(!1),d(w.userMessage||"Something went wrong")})}return A.jsx(A.Fragment,{children:A.jsxs("form",{onSubmit:E,children:[A.jsx(yt,{onClickBack:f,theme:e.theme,title:"Verify your email",className:{description:"mt-0 mb-0"},children:A.jsxs("span",{className:"d-inline-block",children:[`Have peace of mind that your account is secure and you’re receiving the best experience out of ${h}.`," ",A.jsx("a",{className:"text-info cursor-pointer",target:"_blank",href:bo.verifyEmail,children:"Learn more."})]})}),A.jsx(xl,{isError:!!v,type:"email",value:a,onChange:_,name:"email",ariaInvalid:!!v,ariaErrorMessage:"emailError"}),!!v&&A.jsx(Ht,{name:"email",children:v}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100 mt-4",type:"submit",showSpinner:s,children:"Verify"}),e.canSkip&&A.jsx("button",{className:"btn btn-link text-info mt-2 ps-0",onClick:c,children:"Skip for now"})]})})}const FY="_input_1vtt8_1",BY={input:FY},$Y=/^[0-9]$/,zY=/^\d+$/,B3=8;function ZY(e){const[r,t]=je.useState(""),[a,o]=je.useState(""),[s,u]=je.useState(""),[v,d]=je.useState(""),[h,f]=je.useState(""),[c,_]=je.useState(""),E=je.useRef(null),S=je.useRef(null),w=je.useRef(null),T=je.useRef(null),b=je.useRef(null),I=je.useRef(null);je.useEffect(()=>{const x=(r||"X")+(a||"X")+(s||"X")+(v||"X")+(h||"X")+(c||"X"),R=x.length===6&&x.indexOf("X")===-1;e.onChange(x,R)},[r,a,s,v,h,c]);const m={"verify-1":{getNext:()=>m["verify-2"],getPrevious:()=>null,value:r,setState:t,focus:()=>E.current.focus()},"verify-2":{getNext:()=>m["verify-3"],getPrevious:()=>m["verify-1"],value:a,setState:o,focus:()=>S.current.focus()},"verify-3":{getNext:()=>m["verify-4"],getPrevious:()=>m["verify-2"],value:s,setState:u,focus:()=>w.current.focus()},"verify-4":{getNext:()=>m["verify-5"],getPrevious:()=>m["verify-3"],value:v,setState:d,focus:()=>T.current.focus()},"verify-5":{getNext:()=>m["verify-6"],getPrevious:()=>m["verify-4"],value:h,setState:f,focus:()=>b.current.focus()},"verify-6":{getNext:()=>null,getPrevious:()=>m["verify-5"],value:c,setState:_,focus:()=>I.current.focus()}};function p(x,R){var j,k;if(!$Y.test(x.key)&&x.keyCode!==B3)return;const O=m[R];if(x.keyCode===B3){O.setState(""),(j=O.getPrevious())==null||j.focus();return}if(x.currentTarget.selectionStart>0){const N=O.getNext();if(!N)return;N.setState(x.key),N.getNext()?N.getNext().focus():N.focus();return}O.setState(x.key),(k=O.getNext())==null||k.focus()}function y(x,R){x.preventDefault();const O=x.clipboardData.getData("text").trim();if(!zY.test(O))return;const j=O.split("");if(j.length===6){let D=m["verify-1"];for(const U of j)D.setState(U),D=D.getNext(),D==null||D.focus();return}let N=m[R];N.value&&N.getNext()&&(N=N.getNext());do N.focus(),N.setState(j.shift()),N=N.getNext();while(j.length&&N)}const g={className:`form-control mx-1 text-center form-control-lg p-3 fs-4 ${BY.input} ${e.hasError?"is-invalid":""}`,autoCorrect:"off",inputMode:"numeric",pattern:"[0-9]*",autoCapitalize:"off",autoComplete:"off","aria-invalid":!!e.hasError};return A.jsxs("fieldset",{className:"d-flex justify-content-between mx-n1","aria-describedby":"verificationCodeError",children:[A.jsx("input",{onPaste:x=>y(x,"verify-1"),onKeyDown:x=>p(x,"verify-1"),value:r,ref:E,onChange:()=>{},autoComplete:"off",...g}),A.jsx("input",{onPaste:x=>y(x,"verify-2"),onKeyDown:x=>p(x,"verify-2"),value:a,ref:S,onChange:()=>{},...g}),A.jsx("input",{onPaste:x=>y(x,"verify-3"),onKeyDown:x=>p(x,"verify-3"),value:s,ref:w,onChange:()=>{},...g}),A.jsx("input",{onPaste:x=>y(x,"verify-4"),onKeyDown:x=>p(x,"verify-4"),value:v,ref:T,onChange:()=>{},...g}),A.jsx("input",{onPaste:x=>y(x,"verify-5"),onKeyDown:x=>p(x,"verify-5"),value:h,ref:b,onChange:()=>{},...g}),A.jsx("input",{onPaste:x=>y(x,"verify-6"),onKeyDown:x=>p(x,"verify-6"),value:c,ref:I,onChange:()=>{},...g})]})}function Bf(e){const{theme:r,title:t,description:a,onBack:o,onResend:s,onSkip:u,submit:v,canSkip:d}=e,[h,f]=je.useState(""),[c,_]=je.useState(!1),[E,S]=je.useState(""),[w,T]=je.useState(!1);je.useEffect(()=>{w&&I()},[w]);function b(m,p){f(""),S(m),T(p)}function I(m){if(m==null||m.preventDefault(),!w){f("Incomplete code");return}_(!0),v(E).catch(p=>{_(!1),f(p.userMessage||"Something went wrong")})}return A.jsxs("form",{onSubmit:I,children:[A.jsx(yt,{onClickBack:o,theme:r,title:t,children:a}),A.jsxs("div",{className:"mb-3",children:[A.jsx(ZY,{onChange:b,hasError:!!h}),!!h&&A.jsx(Ht,{name:"verificationCode",children:h})]}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",showSpinner:c,disabled:!w,children:"Continue"}),A.jsxs("div",{className:"d-flex justify-content-between mt-3",children:[u&&d&&A.jsx("button",{className:"btn btn-link text-info p-0 flex-shrink-0",onClick:u,children:"Skip for now"}),s&&A.jsx("button",{className:"btn btn-link text-info p-0 flex-shrink-0",onClick:s,children:"Resend code"})]})]})}function HY(e){const{navigate:r,email:t,theme:a}=e;fU("check-email",e);function o(){r({step:"verify-email"})}function s(){r({step:"verify-email-skip-reason",backStep:"verify-email-check-code"})}function u(){r({step:"verify-email",email:t})}function v(d){return dt.post("/ajax/login/verify-email",{code:d,email:t}).then(h=>Pt(h,e,{code:d}))}return A.jsx(Bf,{navigate:r,theme:a,title:"Enter code",description:A.jsxs(A.Fragment,{children:["Please enter the ",A.jsx("strong",{children:"6 digit"})," code we've sent to ",A.jsx("strong",{children:t})]}),onBack:o,onResend:u,submit:v,onSkip:s,...e})}function dU(){return A.jsx("img",{className:"img-fluid mx-auto d-block mt-4",alt:"Success",src:"/images/success-tick-v2.png",style:{maxWidth:"304px"}})}function VY(e){const{returnUrl:r}=e;return A.jsxs("div",{children:[A.jsx(yt,{theme:e.theme,title:"Your email has been verified",className:{title:"text-center"}}),A.jsx("div",{className:"my-5",children:A.jsx(dU,{})}),r&&A.jsx("a",{role:"button",href:r,className:"btn btn-dark btn-lg w-100",children:"Continue"})]})}function GY(e){const{navigate:r,backStep:t}=e,[a,o]=je.useState(e.email||""),[s,u]=je.useState(!1),[v,d]=je.useState("");function h(_){o(_.target.value.trim())}function f(_){if(_.preventDefault(),!a){d("Please provide an email address");return}if(!gi.isEmail(a)){d("The email address provided is invalid");return}u(!0),dt.post("/ajax/login/send-recovery-code",{email:a}).then(E=>Pt(E,e,{email:a})).catch(E=>{u(!1),d(E.userMessage||"Something went wrong")})}function c(){r({step:t})}return A.jsxs("form",{onSubmit:f,children:[A.jsx(yt,{theme:e.theme,onClickBack:t&&c,title:"Forgot your password?",children:"Enter your email below to receive password reset instructions"}),A.jsxs("div",{className:"mb-3",children:[A.jsx(xl,{name:"email",value:a,type:"email",onChange:h,isError:!!v,"aria-invalid":!!v,"aria-errormessage":"emailError"}),!!v&&A.jsx(Ht,{name:"email",children:v})]}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",showSpinner:s,children:"Send"}),A.jsx("p",{className:"text-start mt-3",children:"Single Sign On customers should contact their network administrator to reset their password."})]})}function WY(e){const{navigate:r,email:t,theme:a}=e;function o(){r({step:"forgot-password"})}function s(){r({step:"forgot-password",email:t})}function u(v){return dt.post("/ajax/login/check-recovery-code",{code:v,email:t}).then(d=>Pt(d,e,{code:v}))}return A.jsx(Bf,{navigate:r,theme:a,title:"Enter code",description:A.jsxs(A.Fragment,{children:["If we can reset your password, we've sent a ",A.jsx("strong",{children:"6 digit"})," code to the email address provided"]}),submit:u,onBack:o,onResend:s,...e})}function KY(e){const{error:r,spinner:t,onClickContinue:a}=e;return A.jsxs("div",{children:[A.jsx(yt,{theme:e.theme}),A.jsx(dU,{}),A.jsx("p",{className:"text-center mb-4 mt-2",children:"Your password has been updated"}),r&&A.jsx("p",{className:"text-danger text-center mb-4 mt-2",children:r}),A.jsx(gn,{className:"btn btn-lg w-100 btn-dark",showSpinner:t,onClick:a,children:"Continue"})]})}function hU(e){const{submit:r}=e,[t,a]=je.useState(""),[o,s]=je.useState(""),[u,v]=je.useState(""),[d,h]=je.useState(!1),[f,c]=je.useState(null),{productName:_}=za.getDefinition(e.theme);function E(I){a(I.target.value),v("")}function S(I){s(I.target.value),v("")}function w(){const[I,m]=gi.isPasswordValid(t,o,!0);return m&&v(m),I}function T(I){I.preventDefault(),w()&&(h(!0),r(o).then(m=>{h(!1),c(m)}).catch(m=>{h(!1),v(m.userMessage||"Something went wrong")}))}function b(){try{h(!0),Pt(f,e)}catch(I){h(!1),v(I.userMessage||"Something went wrong")}}return f?A.jsx(KY,{error:u,spinner:d,onClickContinue:b,theme:e.theme}):A.jsxs("form",{onSubmit:T,children:[A.jsxs(yt,{onClickBack:e.onClickBack,theme:e.theme,title:e.heading,children:["Create a new password to secure your ",A.jsx("strong",{children:_})," account"]}),A.jsxs("div",{className:"mb-4",children:[A.jsx(Vs,{className:"mb-3",placeholder:"Enter your new password",autoFocus:!0,value:t,onChange:E,name:"new-password",autoComplete:"new-password",hasError:!!u,"aria-invalid":!!u,"aria-errormessage":"new-passwordError"}),A.jsx(Vs,{id:"confirm-new-password",label:"Confirm Password",placeholder:"Enter your password confirmation",value:o,onChange:S,name:"new-password",autoComplete:"new-password",hasError:!!u,"aria-invalid":!!u,"aria-errormessage":"new-passwordError"}),!!u&&A.jsx(Ht,{name:"new-password",children:u})]}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",showSpinner:d,children:"Update password"})]})}function YY(e){const{email:r,code:t,navigate:a}=e;function o(u){return dt.post("/ajax/login/reset-password",{email:r,code:t,newPassword:u})}function s(){a({step:"forgot-password",backStep:"username"})}return A.jsx(hU,{heading:"Reset password",submit:o,onClickBack:s,...e})}function JY(e){function r(t){return dt.post("/ajax/login/change-password",{newPassword:t})}return A.jsx(hU,{heading:"Change password",submit:r,...e})}function XY(e){const{navigate:r,backStep:t}=e,[a]=je.useState(e.userId||""),[o,s]=je.useState(e.username||""),[u,v]=je.useState(!1),[d,h]=je.useState("");function f(E){s(E.target.value.trim())}function c(E){if(E.preventDefault(),!o){h("Please provide an email or username");return}v(!0),dt.post("/ajax/login/send-self-activation-code",{userId:a}).then(S=>Pt(S,e,{userId:a,username:o})).catch(S=>{v(!1),h(S.userMessage||"Something went wrong")})}function _(){r({step:t})}return A.jsxs("form",{onSubmit:c,children:[A.jsx(yt,{theme:e.theme,onClickBack:t&&_,title:"Verify your email",children:"We will send you a verification code to your email to activate your account."}),A.jsxs("div",{className:"mb-3",children:[A.jsx(xl,{name:"email",value:o,type:"username",disabled:!0,onChange:f,isError:!!d,"aria-invalid":!!d,"aria-errormessage":"emailError"}),!!d&&A.jsx(Ht,{name:"email",children:d})]}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",showSpinner:u,children:"Send verification code"}),A.jsx("p",{className:"text-start mt-3",children:"Single Sign On customers should contact their network administrator to activate their account."})]})}function QY(e){const{navigate:r,userId:t,username:a,theme:o}=e;function s(){r({step:"self-activation"})}function u(){r({step:"self-activation",userId:t})}function v(d){return dt.post("/ajax/login/check-self-activation-code",{code:d,userId:t}).then(h=>Pt(h,e,{code:d}))}return A.jsx(Bf,{navigate:r,theme:o,title:"Enter code",description:A.jsxs(A.Fragment,{children:["Please enter the ",A.jsx("strong",{children:"6 digit"})," code we've sent to ",A.jsx("strong",{children:a})]}),submit:v,onBack:s,onResend:u,...e})}const eJ="_badge_1l0uk_1",rJ={badge:eJ};function K_(e){return A.jsx("span",{className:`rounded-pill d-inline-block mb-1 badge-white border border-dark rounded-pill ${rJ.badge}`,children:e.children})}function tJ(e){const{navigate:r}=e;function t(){r({step:e.backStep})}return A.jsxs("div",{children:[A.jsx(yt,{theme:e.theme,onClickBack:e.backStep?t:null,className:{description:"text-center"},children:!!e.email&&A.jsx(K_,{children:e.email})}),A.jsx("span",{className:"h4 mb-3 d-block text-center",children:"Contact Support"}),A.jsxs("p",{className:"text-center",children:["Please get in touch with our ",A.jsx("strong",{children:"Product Support Team"})," by emailing ",A.jsx("a",{className:"text-info",href:"mailto:support@clickvieweducation.com",children:"support@clickvieweducation.com"})," for further assistance."]})]})}function nJ(e){const r=aU(e.errorCode);return A.jsxs("div",{className:"text-center",children:[A.jsx(yt,{theme:e.theme}),A.jsx("img",{className:"img-fluid mb-4",alt:"error",src:`/images/errors/${r.errorImage||"default-v2.png"}`}),A.jsxs("div",{className:"d-flex flex-column gap-3",children:[A.jsx("h1",{className:"h3 mb-0",children:r.preferServerError?e.message:r.message}),!!r.additionalInformation&&A.jsx("p",{className:"mb-0",children:r.additionalInformation}),!!r.moreInfoUrl&&A.jsx("p",{className:"mb-0",children:A.jsx("a",{href:r.moreInfoUrl,className:"text-info",children:"Learn more"})}),A.jsx(aJ,{errorCode:e.errorCode,traceId:e.traceId})]})]})}function aJ(e){return A.jsxs("div",{className:"text-secondary small w-100",children:[A.jsxs("p",{className:"m-0",children:["Error Code: ",e.errorCode]}),A.jsxs("p",{className:"m-0",children:["RequestId: ",e.traceId]})]})}function iJ(e){const{token:r,email:t,userId:a,navigate:o}=e,[s,u]=je.useState(!1);function v(){u(!0),dt.post("/ajax/verify-email",{token:r,email:t,userId:a}).then(d=>Pt(d,e)).catch(()=>{o({step:"error",errorCode:"invalid-token"})})}return A.jsxs("div",{children:[A.jsxs(yt,{theme:e.theme,title:"Before you proceed...",children:["Your email address ",A.jsx("strong",{children:t})," is already in use with another account. By continuing you will remove your email from the other account."]}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"button",showSpinner:s,onClick:v,children:"Continue anyway"})]})}function oJ(e){const{email:r,code:t,navigate:a}=e,[o,s]=je.useState(!1);function u(){a({step:"verify-email",email:r})}function v(){s(!0),dt.post("/ajax/login/verify-email",{email:r,code:t,acknowledgeEmailInUse:!0}).then(d=>Pt(d,e)).catch(()=>{a({step:"error",errorCode:"invalid-token"})})}return A.jsxs("div",{children:[A.jsxs(yt,{onClickBack:u,theme:e.theme,title:"Before you proceed...",children:["Your email address ",A.jsx("strong",{children:r})," is already in use with another account. By continuing you will remove your email from the other account."]}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"button",showSpinner:o,onClick:v,children:"Continue anyway"})]})}var vU=(e=>(e.NotNow="not-now",e.NoEmail="no-email",e.EmailNotReceived="email-not-received",e.Other="other",e))(vU||{});function sJ(e){const{returnUrl:r,navigate:t,backStep:a}=e,[o,s]=je.useState(),[u,v]=je.useState(),[d,h]=je.useState(!1),[f,c]=je.useState(""),{productName:_}=za.getDefinition(e.theme);function E(){return o==="other"?gi.containsValidText(u)&&gi.isValidLength(u):Object.values(vU).includes(o)}function S(){t({step:a||"verify-email"})}function w(I){s(I)}function T(I){const m=I.target.value;let p="";gi.containsValidText(m)?gi.exceedsMaxLength(m)&&(p="Your reason is too long"):p="Your reason contains an invalid character or symbol",c(p),v(m)}function b(I){if(I.preventDefault(),!E())return;h(!0);const m=o==="other"?`other:${u}`:o;dt.post("/ajax/login/skip-verify-email",{reason:m,returnUrl:r}).then(p=>Pt(p,e)).catch(p=>{h(!1),c(p.userMessage||"Something went wrong")})}return A.jsxs("form",{onSubmit:b,children:[A.jsx(yt,{onClickBack:S,theme:e.theme,title:"Let us know why you aren't able to verify",className:{description:"mt-0 mb-0"},children:"Verifying will increase the security of your account and improve features on ClickView."}),A.jsxs("div",{className:"mb-4",children:[A.jsxs("div",{className:"form-check my-3",children:[A.jsx("input",{className:"form-check-input",type:"radio",id:"not-now",name:"not-now",checked:o==="not-now",onChange:()=>w("not-now")}),A.jsx("label",{className:"form-check-label",htmlFor:"not-now",children:"Not the right time"})]}),A.jsxs("div",{className:"form-check my-3",children:[A.jsx("input",{className:"form-check-input",type:"radio",id:"no-email",name:"no-email",checked:o==="no-email",onChange:()=>w("no-email")}),A.jsx("label",{className:"form-check-label",htmlFor:"no-email",children:"I don't have an email address"})]}),A.jsxs("div",{className:"form-check my-3",children:[A.jsx("input",{className:"form-check-input",type:"radio",id:"email-not-received",name:"email-not-received",checked:o==="email-not-received",onChange:()=>w("email-not-received")}),A.jsx("label",{className:"form-check-label",htmlFor:"email-not-received",children:"I didn't receive a verification email"})]}),A.jsxs("div",{className:"form-check mt-3 mb-2",children:[A.jsx("input",{className:"form-check-input",type:"radio",id:"other",name:"other",checked:o==="other",onChange:()=>w("other")}),A.jsx("label",{className:"form-check-label",htmlFor:"other",children:"Other reasons (please specify)"})]}),o==="other"&&A.jsxs(A.Fragment,{children:[A.jsx("input",{className:`form-control form-control-lg ${f?"is-invalid":""}`,type:"text",placeholder:"Enter your reason",name:"reason",onChange:T,autoComplete:"off","aria-invalid":!!f,"aria-errormessage":"reasonError"}),!!f&&A.jsx(Ht,{name:"reason",children:f})]})]}),A.jsxs(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",disabled:!E(),showSpinner:d,children:["Continue to ",_]})]})}function uJ(e){const{logoutId:r}=e,[t,a]=Nr.useState(!1),{productName:o}=za.getDefinition(e.theme);function s(){a(!0)}return A.jsxs("form",{onSubmit:s,action:"/logout",method:"post",children:[A.jsxs(yt,{theme:e.theme,title:"Logout",children:["Would you like to logout of ",o,"?"]}),A.jsx("input",{type:"hidden",name:"logoutId",value:r||""}),A.jsx("input",{type:"hidden",name:"__RequestVerificationToken",value:dt.getXsrfToken()}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",showSpinner:t,children:"Yes"})]})}function lJ(e){const{postLogoutRedirectUri:r,clientName:t,signOutIframeUrl:a,automaticRedirectAfterSignOut:o}=e;return Nr.useEffect(()=>{!o||!r||(window.location.href=r)},[o,r]),A.jsxs("div",{children:[A.jsx(yt,{theme:e.theme,title:"Logged out",children:"You are now logged out."}),r&&A.jsxs("p",{children:["Click ",A.jsx("a",{href:r,className:"text-info",children:"here"})," to return to the ",t," application."]}),a&&A.jsx("iframe",{width:0,height:0,frameBorder:0,src:a})]})}function cJ(e){const{navigate:r,organisation:t,orgCustomers:a,backStep:o}=e,[s,u]=je.useState(null),[v,d]=je.useState(null);async function h(w){try{await dt.post("/ajax/external/join-organisation-customer",{customerId:w});const T=await dt.post("/ajax/login/select-customer",{customerId:w});Pt(T,e)}catch(T){d(T.userMessage||"Something went wrong. Please try again.")}}function f(w){h(w.id)}function c(){r({step:"contact-support",backStep:"organisation-select-customer"})}function _(){s&&h(s.id)}function E(){r({step:"select-customer",backStep:"organisation-select-customer"})}function S(){r({step:o,backStep:null})}return A.jsxs("div",{children:[A.jsx(yt,{theme:e.theme,onClickBack:o&&S}),A.jsxs("span",{className:"h4 mb-3 d-block text-left",children:["To sign in, select a school from ",t.name]}),!!e.email&&A.jsx("p",{className:"text-left",children:A.jsx(K_,{children:e.email})}),!!(a!=null&&a.length)&&A.jsx("div",{className:"mb-4",children:a.length>10?A.jsxs(A.Fragment,{children:[A.jsx("p",{className:"font-weight-600 mb-1",children:"Schools"}),A.jsx("div",{className:"mb-3",children:A.jsx(Il,{id:"school",item:s,items:a,onSelect:u,getName:w=>w.name,clearData:()=>u(null),placeholder:"Select a school",size:"lg",cantFindText:"My school is not listed",onCantFind:c})}),A.jsx("button",{className:"btn btn-lg btn-dark w-100 mb-4",disabled:!s,onClick:_,children:"Continue"})]}):A.jsxs("div",{children:[a.map((w,T)=>A.jsx(G_,{onClick:()=>f(w),text:w.name,icon:Zs.buildAvatarUrl(w.logoUrl,{size:"small"})||al,className:"mb-3",iconColor:"dark"},T)),A.jsx("button",{className:"text-info",onClick:c,children:"My school is not listed"})]})}),e.hasExistingCustomers&&!o&&A.jsxs("button",{className:"h5 d-flex w-100",onClick:E,children:["View my existing schools",A.jsx("span",{className:"ms-auto",children:A.jsx(V_,{})})]}),v&&A.jsx("div",{className:"text-danger text-center",children:v})]})}function $3(e){if(!e)return{firstName:"",surname:"",source:""};const r=e.split(" ").filter(t=>t.length);return{firstName:r.shift(),surname:r.join(" "),source:e}}function pU(e){const{value:r,onChange:t,error:a,autoFocus:o}=e;return je.useEffect(()=>{e.onChange($3(e.value))},[]),A.jsxs("div",{className:"mb-3",children:[A.jsx("label",{htmlFor:"name",children:"Full name"}),A.jsx("input",{className:`form-control form-control-lg ${!!a&&"is-invalid"}`,type:"text",name:"name",id:"name",value:r,placeholder:"Enter your full name",autoFocus:o,autoComplete:"name",onChange:s=>t($3(s.target.value)),"aria-errormessage":"nameError"}),!!a&&A.jsx(Ht,{name:"name",children:a})]})}var Ze=(e=>(e.AU="au",e.NZ="nz",e.UK="uk",e.US="us",e.CA="ca",e))(Ze||{});const fJ=["Teacher","Librarian / Teacher Librarian","Curriculum Coordinator","Digital Technology Coordinator","SSO / SLSO","IT","Head of Department","Head of Subject","Assistant Principal","Deputy Principal","Principal","Business Manager"],dJ=["Teacher","Librarian / Teacher Librarian","IT/LRC","e-Learning/ICT Coordinator","Head of Key Stage","Head of Department","Subject Lead","Assistant Head Teacher","Deputy Head Teacher","Head Teacher"],gU=["Teacher","Librarian / Teacher Librarian","Head of Department","Instructional Technology Specialist","Curriculum Coordinator","School Leadership","District Leadership","Academic Coach","Principal","IT / IT Specialist"],hJ=["Teacher","Librarian / Teacher Librarian","Curriculum Leader","e-Learning Coordinator","IT","Head of Department","Head of Faculty","Learning Support","Learning Assistant","Deputy Principal","Assistant Principal","Principal"],vJ=["Teacher","Librarian / Teacher Librarian","Educational Assistant (EA)","Learning Support Teacher / Resource Teacher","Department Head / Manager","Curriculum Coordinator / Consultant","School Counsellor / Guidance Counsellor","Vice-Principal","Principal","Superintendent","Director of Education"],mU=["Professor","Lecturer","Course Coordinator / Administrator","Digital Learning Manager","Tutor","Teaching Fellow","Librarian","Learning Technologist","Teaching Assistant","Researcher","IT"],pJ=["Professor","Lecturer","Course Coordinator / Administrator","Digital Learning Manager","Tutor","Teaching Fellow","Librarian","Learning Technologist","Teacher","Teaching Assistant","Researcher","IT"],gJ={[Ze.AU]:fJ,[Ze.NZ]:hJ,[Ze.UK]:dJ,[Ze.US]:gU,[Ze.CA]:vJ},mJ={[Ze.AU]:mU,[Ze.UK]:pJ};function yU(e){var t;const r=(t=e.countryCode)==null?void 0:t.toLowerCase();return e.isTertiary?mJ[r]||mU:gJ[r]||gU}function bU(e){return(e==null?void 0:e.toLowerCase().includes("student"))||(e==null?void 0:e.toLowerCase().includes("parent"))}const By="OTHER";function _U(e){const{error:r,onChange:t,countryCode:a,isTertiary:o,autoFocus:s}=e,[u,v]=je.useState(""),[d,h]=je.useState(""),f=yU({countryCode:a,isTertiary:o});function c(S){v(S.target.value),h(""),t(S.target.value===By?"":S.target.value)}function _(S){h(S.target.value),t(S.target.value)}const E=u===By;return A.jsxs(A.Fragment,{children:[A.jsxs("div",{className:"mb-3",children:[A.jsx("label",{htmlFor:"jobTitle",children:"Job Title"}),A.jsxs("select",{className:`form-select form-select-lg ${u.length?"text-dark":"text-secondary"} ${!!r&&"is-invalid"}`,value:u,placeholder:"Role",onChange:c,autoFocus:s,name:"jobTitle",id:"jobTitle","aria-invalid":!!r&&!E,"aria-errormessage":r&&!E?"jobTitleError":void 0,children:[A.jsx("option",{value:"",disabled:!0,className:"text-secondary",children:"What do you do?"}),f.map((S,w)=>A.jsx("option",{value:S,className:"text-dark",children:S},w)),A.jsx("option",{value:By,className:"text-dark",children:"Other"})]}),!!r&&!E&&A.jsx(Ht,{name:"jobTitle",children:r})]}),E&&A.jsxs("div",{className:"mb-3",children:[A.jsx("input",{className:`form-control form-control-lg ${!!r&&"is-invalid"}`,type:"text",value:d,placeholder:"Enter your role",autoFocus:!0,onChange:_,name:"role","aria-invalid":!!r,"aria-errormessage":"roleError"}),!!r&&A.jsx(Ht,{name:"role",children:r})]})]})}function yJ(e){const{allowNameChange:r,allowJobTitleChange:t,errors:a,spinner:o,countryCode:s,setErrors:u}=e,[v,d]=Nr.useState(),[h,f]=Nr.useState(""),[c,_]=Nr.useState(""),[E,S]=Nr.useState("");function w(g){_(g.target.value),u({...a,password:""})}function T(g){S(g.target.value),u({...a,password:""})}function b(g){d(g),u({...a,fullName:""})}function I(g){f(g),u({...a,jobTitle:""})}function m(g){g.preventDefault();const x={password:c,confirmPassword:E};r&&(x.firstName=v.firstName,x.surname=v.surname),t&&(x.jobTitle=h),e.onSubmit(x)}function p(){return r?"fullName":t?"jobTitle":"password"}const y=p();return A.jsxs("form",{onSubmit:m,children:[A.jsxs("div",{className:"mb-3",children:[r&&A.jsx(pU,{value:(v==null?void 0:v.source)||"",onChange:b,error:a.fullName,autoFocus:y==="fullName"}),t&&A.jsx(_U,{error:a.jobTitle,onChange:I,countryCode:s,autoFocus:y==="jobTitle",isTertiary:e.isTertiary}),A.jsx(Vs,{placeholder:"Enter your password",value:c,onChange:w,name:"new-password",autoComplete:"new-password",hasError:!!a.password,autoFocus:y==="password","aria-errormessage":"new-passwordError",className:Ua(e.requireConfirmPassword&&"mb-3")}),e.requireConfirmPassword&&A.jsx(Vs,{id:"confirm-new-password",label:"Confirm password",placeholder:"Enter your password confirmation",value:E,onChange:T,name:"new-password",autoComplete:"new-password",hasError:!!a.password,"aria-invalid":!!a.password,"aria-errormessage":"new-passwordError"}),!!a.password&&A.jsx(Ht,{name:"new-password",children:a.password})]}),!!a.default&&A.jsx("div",{className:"text-danger my-3",children:a.default}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",showSpinner:o,children:"Get Started"})]})}var $y,z3;function bJ(){if(z3)return $y;z3=1;function e(){this.__data__=[],this.size=0}return $y=e,$y}var zy,Z3;function $f(){if(Z3)return zy;Z3=1;function e(r,t){return r===t||r!==r&&t!==t}return zy=e,zy}var Zy,H3;function zf(){if(H3)return Zy;H3=1;var e=$f();function r(t,a){for(var o=t.length;o--;)if(e(t[o][0],a))return o;return-1}return Zy=r,Zy}var Hy,V3;function _J(){if(V3)return Hy;V3=1;var e=zf(),r=Array.prototype,t=r.splice;function a(o){var s=this.__data__,u=e(s,o);if(u<0)return!1;var v=s.length-1;return u==v?s.pop():t.call(s,u,1),--this.size,!0}return Hy=a,Hy}var Vy,G3;function SJ(){if(G3)return Vy;G3=1;var e=zf();function r(t){var a=this.__data__,o=e(a,t);return o<0?void 0:a[o][1]}return Vy=r,Vy}var Gy,W3;function wJ(){if(W3)return Gy;W3=1;var e=zf();function r(t){return e(this.__data__,t)>-1}return Gy=r,Gy}var Wy,K3;function EJ(){if(K3)return Wy;K3=1;var e=zf();function r(t,a){var o=this.__data__,s=e(o,t);return s<0?(++this.size,o.push([t,a])):o[s][1]=a,this}return Wy=r,Wy}var Ky,Y3;function Zf(){if(Y3)return Ky;Y3=1;var e=bJ(),r=_J(),t=SJ(),a=wJ(),o=EJ();function s(u){var v=-1,d=u==null?0:u.length;for(this.clear();++v<d;){var h=u[v];this.set(h[0],h[1])}}return s.prototype.clear=e,s.prototype.delete=r,s.prototype.get=t,s.prototype.has=a,s.prototype.set=o,Ky=s,Ky}var Yy,J3;function CJ(){if(J3)return Yy;J3=1;var e=Zf();function r(){this.__data__=new e,this.size=0}return Yy=r,Yy}var Jy,X3;function xJ(){if(X3)return Jy;X3=1;function e(r){var t=this.__data__,a=t.delete(r);return this.size=t.size,a}return Jy=e,Jy}var Xy,Q3;function IJ(){if(Q3)return Xy;Q3=1;function e(r){return this.__data__.get(r)}return Xy=e,Xy}var Qy,ej;function AJ(){if(ej)return Qy;ej=1;function e(r){return this.__data__.has(r)}return Qy=e,Qy}var e1,rj;function SU(){if(rj)return e1;rj=1;var e=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis;return e1=e,e1}var r1,tj;function Si(){if(tj)return r1;tj=1;var e=SU(),r=typeof self=="object"&&self&&self.Object===Object&&self,t=e||r||Function("return this")();return r1=t,r1}var t1,nj;function Hf(){if(nj)return t1;nj=1;var e=Si(),r=e.Symbol;return t1=r,t1}var n1,aj;function TJ(){if(aj)return n1;aj=1;var e=Hf(),r=Object.prototype,t=r.hasOwnProperty,a=r.toString,o=e?e.toStringTag:void 0;function s(u){var v=t.call(u,o),d=u[o];try{u[o]=void 0;var h=!0}catch{}var f=a.call(u);return h&&(v?u[o]=d:delete u[o]),f}return n1=s,n1}var a1,ij;function RJ(){if(ij)return a1;ij=1;var e=Object.prototype,r=e.toString;function t(a){return r.call(a)}return a1=t,a1}var i1,oj;function du(){if(oj)return i1;oj=1;var e=Hf(),r=TJ(),t=RJ(),a="[object Null]",o="[object Undefined]",s=e?e.toStringTag:void 0;function u(v){return v==null?v===void 0?o:a:s&&s in Object(v)?r(v):t(v)}return i1=u,i1}var o1,sj;function Eo(){if(sj)return o1;sj=1;function e(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}return o1=e,o1}var s1,uj;function Y_(){if(uj)return s1;uj=1;var e=du(),r=Eo(),t="[object AsyncFunction]",a="[object Function]",o="[object GeneratorFunction]",s="[object Proxy]";function u(v){if(!r(v))return!1;var d=e(v);return d==a||d==o||d==t||d==s}return s1=u,s1}var u1,lj;function OJ(){if(lj)return u1;lj=1;var e=Si(),r=e["__core-js_shared__"];return u1=r,u1}var l1,cj;function kJ(){if(cj)return l1;cj=1;var e=OJ(),r=(function(){var a=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""})();function t(a){return!!r&&r in a}return l1=t,l1}var c1,fj;function wU(){if(fj)return c1;fj=1;var e=Function.prototype,r=e.toString;function t(a){if(a!=null){try{return r.call(a)}catch{}try{return a+""}catch{}}return""}return c1=t,c1}var f1,dj;function PJ(){if(dj)return f1;dj=1;var e=Y_(),r=kJ(),t=Eo(),a=wU(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,u=Function.prototype,v=Object.prototype,d=u.toString,h=v.hasOwnProperty,f=RegExp("^"+d.call(h).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function c(_){if(!t(_)||r(_))return!1;var E=e(_)?f:s;return E.test(a(_))}return f1=c,f1}var d1,hj;function NJ(){if(hj)return d1;hj=1;function e(r,t){return r==null?void 0:r[t]}return d1=e,d1}var h1,vj;function ds(){if(vj)return h1;vj=1;var e=PJ(),r=NJ();function t(a,o){var s=r(a,o);return e(s)?s:void 0}return h1=t,h1}var v1,pj;function J_(){if(pj)return v1;pj=1;var e=ds(),r=Si(),t=e(r,"Map");return v1=t,v1}var p1,gj;function Vf(){if(gj)return p1;gj=1;var e=ds(),r=e(Object,"create");return p1=r,p1}var g1,mj;function jJ(){if(mj)return g1;mj=1;var e=Vf();function r(){this.__data__=e?e(null):{},this.size=0}return g1=r,g1}var m1,yj;function qJ(){if(yj)return m1;yj=1;function e(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}return m1=e,m1}var y1,bj;function DJ(){if(bj)return y1;bj=1;var e=Vf(),r="__lodash_hash_undefined__",t=Object.prototype,a=t.hasOwnProperty;function o(s){var u=this.__data__;if(e){var v=u[s];return v===r?void 0:v}return a.call(u,s)?u[s]:void 0}return y1=o,y1}var b1,_j;function LJ(){if(_j)return b1;_j=1;var e=Vf(),r=Object.prototype,t=r.hasOwnProperty;function a(o){var s=this.__data__;return e?s[o]!==void 0:t.call(s,o)}return b1=a,b1}var _1,Sj;function MJ(){if(Sj)return _1;Sj=1;var e=Vf(),r="__lodash_hash_undefined__";function t(a,o){var s=this.__data__;return this.size+=this.has(a)?0:1,s[a]=e&&o===void 0?r:o,this}return _1=t,_1}var S1,wj;function UJ(){if(wj)return S1;wj=1;var e=jJ(),r=qJ(),t=DJ(),a=LJ(),o=MJ();function s(u){var v=-1,d=u==null?0:u.length;for(this.clear();++v<d;){var h=u[v];this.set(h[0],h[1])}}return s.prototype.clear=e,s.prototype.delete=r,s.prototype.get=t,s.prototype.has=a,s.prototype.set=o,S1=s,S1}var w1,Ej;function FJ(){if(Ej)return w1;Ej=1;var e=UJ(),r=Zf(),t=J_();function a(){this.size=0,this.__data__={hash:new e,map:new(t||r),string:new e}}return w1=a,w1}var E1,Cj;function BJ(){if(Cj)return E1;Cj=1;function e(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}return E1=e,E1}var C1,xj;function Gf(){if(xj)return C1;xj=1;var e=BJ();function r(t,a){var o=t.__data__;return e(a)?o[typeof a=="string"?"string":"hash"]:o.map}return C1=r,C1}var x1,Ij;function $J(){if(Ij)return x1;Ij=1;var e=Gf();function r(t){var a=e(this,t).delete(t);return this.size-=a?1:0,a}return x1=r,x1}var I1,Aj;function zJ(){if(Aj)return I1;Aj=1;var e=Gf();function r(t){return e(this,t).get(t)}return I1=r,I1}var A1,Tj;function ZJ(){if(Tj)return A1;Tj=1;var e=Gf();function r(t){return e(this,t).has(t)}return A1=r,A1}var T1,Rj;function HJ(){if(Rj)return T1;Rj=1;var e=Gf();function r(t,a){var o=e(this,t),s=o.size;return o.set(t,a),this.size+=o.size==s?0:1,this}return T1=r,T1}var R1,Oj;function EU(){if(Oj)return R1;Oj=1;var e=FJ(),r=$J(),t=zJ(),a=ZJ(),o=HJ();function s(u){var v=-1,d=u==null?0:u.length;for(this.clear();++v<d;){var h=u[v];this.set(h[0],h[1])}}return s.prototype.clear=e,s.prototype.delete=r,s.prototype.get=t,s.prototype.has=a,s.prototype.set=o,R1=s,R1}var O1,kj;function VJ(){if(kj)return O1;kj=1;var e=Zf(),r=J_(),t=EU(),a=200;function o(s,u){var v=this.__data__;if(v instanceof e){var d=v.__data__;if(!r||d.length<a-1)return d.push([s,u]),this.size=++v.size,this;v=this.__data__=new t(d)}return v.set(s,u),this.size=v.size,this}return O1=o,O1}var k1,Pj;function CU(){if(Pj)return k1;Pj=1;var e=Zf(),r=CJ(),t=xJ(),a=IJ(),o=AJ(),s=VJ();function u(v){var d=this.__data__=new e(v);this.size=d.size}return u.prototype.clear=r,u.prototype.delete=t,u.prototype.get=a,u.prototype.has=o,u.prototype.set=s,k1=u,k1}var P1,Nj;function GJ(){if(Nj)return P1;Nj=1;function e(r,t){for(var a=-1,o=r==null?0:r.length;++a<o&&t(r[a],a,r)!==!1;);return r}return P1=e,P1}var N1,jj;function xU(){if(jj)return N1;jj=1;var e=ds(),r=(function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch{}})();return N1=r,N1}var j1,qj;function X_(){if(qj)return j1;qj=1;var e=xU();function r(t,a,o){a=="__proto__"&&e?e(t,a,{configurable:!0,enumerable:!0,value:o,writable:!0}):t[a]=o}return j1=r,j1}var q1,Dj;function IU(){if(Dj)return q1;Dj=1;var e=X_(),r=$f(),t=Object.prototype,a=t.hasOwnProperty;function o(s,u,v){var d=s[u];(!(a.call(s,u)&&r(d,v))||v===void 0&&!(u in s))&&e(s,u,v)}return q1=o,q1}var D1,Lj;function Al(){if(Lj)return D1;Lj=1;var e=IU(),r=X_();function t(a,o,s,u){var v=!s;s||(s={});for(var d=-1,h=o.length;++d<h;){var f=o[d],c=u?u(s[f],a[f],f,s,a):void 0;c===void 0&&(c=a[f]),v?r(s,f,c):e(s,f,c)}return s}return D1=t,D1}var L1,Mj;function WJ(){if(Mj)return L1;Mj=1;function e(r,t){for(var a=-1,o=Array(r);++a<r;)o[a]=t(a);return o}return L1=e,L1}var M1,Uj;function Co(){if(Uj)return M1;Uj=1;function e(r){return r!=null&&typeof r=="object"}return M1=e,M1}var U1,Fj;function KJ(){if(Fj)return U1;Fj=1;var e=du(),r=Co(),t="[object Arguments]";function a(o){return r(o)&&e(o)==t}return U1=a,U1}var F1,Bj;function AU(){if(Bj)return F1;Bj=1;var e=KJ(),r=Co(),t=Object.prototype,a=t.hasOwnProperty,o=t.propertyIsEnumerable,s=e((function(){return arguments})())?e:function(u){return r(u)&&a.call(u,"callee")&&!o.call(u,"callee")};return F1=s,F1}var B1,$j;function hs(){if($j)return B1;$j=1;var e=Array.isArray;return B1=e,B1}var el={exports:{}},$1,zj;function YJ(){if(zj)return $1;zj=1;function e(){return!1}return $1=e,$1}el.exports;var Zj;function Q_(){return Zj||(Zj=1,(function(e,r){var t=Si(),a=YJ(),o=r&&!r.nodeType&&r,s=o&&!0&&e&&!e.nodeType&&e,u=s&&s.exports===o,v=u?t.Buffer:void 0,d=v?v.isBuffer:void 0,h=d||a;e.exports=h})(el,el.exports)),el.exports}var z1,Hj;function TU(){if(Hj)return z1;Hj=1;var e=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function t(a,o){var s=typeof a;return o=o??e,!!o&&(s=="number"||s!="symbol"&&r.test(a))&&a>-1&&a%1==0&&a<o}return z1=t,z1}var Z1,Vj;function RU(){if(Vj)return Z1;Vj=1;var e=9007199254740991;function r(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=e}return Z1=r,Z1}var H1,Gj;function JJ(){if(Gj)return H1;Gj=1;var e=du(),r=RU(),t=Co(),a="[object Arguments]",o="[object Array]",s="[object Boolean]",u="[object Date]",v="[object Error]",d="[object Function]",h="[object Map]",f="[object Number]",c="[object Object]",_="[object RegExp]",E="[object Set]",S="[object String]",w="[object WeakMap]",T="[object ArrayBuffer]",b="[object DataView]",I="[object Float32Array]",m="[object Float64Array]",p="[object Int8Array]",y="[object Int16Array]",g="[object Int32Array]",x="[object Uint8Array]",R="[object Uint8ClampedArray]",O="[object Uint16Array]",j="[object Uint32Array]",k={};k[I]=k[m]=k[p]=k[y]=k[g]=k[x]=k[R]=k[O]=k[j]=!0,k[a]=k[o]=k[T]=k[s]=k[b]=k[u]=k[v]=k[d]=k[h]=k[f]=k[c]=k[_]=k[E]=k[S]=k[w]=!1;function N(D){return t(D)&&r(D.length)&&!!k[e(D)]}return H1=N,H1}var V1,Wj;function eS(){if(Wj)return V1;Wj=1;function e(r){return function(t){return r(t)}}return V1=e,V1}var rl={exports:{}};rl.exports;var Kj;function rS(){return Kj||(Kj=1,(function(e,r){var t=SU(),a=r&&!r.nodeType&&r,o=a&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===a,u=s&&t.process,v=(function(){try{var d=o&&o.require&&o.require("util").types;return d||u&&u.binding&&u.binding("util")}catch{}})();e.exports=v})(rl,rl.exports)),rl.exports}var G1,Yj;function OU(){if(Yj)return G1;Yj=1;var e=JJ(),r=eS(),t=rS(),a=t&&t.isTypedArray,o=a?r(a):e;return G1=o,G1}var W1,Jj;function kU(){if(Jj)return W1;Jj=1;var e=WJ(),r=AU(),t=hs(),a=Q_(),o=TU(),s=OU(),u=Object.prototype,v=u.hasOwnProperty;function d(h,f){var c=t(h),_=!c&&r(h),E=!c&&!_&&a(h),S=!c&&!_&&!E&&s(h),w=c||_||E||S,T=w?e(h.length,String):[],b=T.length;for(var I in h)(f||v.call(h,I))&&!(w&&(I=="length"||E&&(I=="offset"||I=="parent")||S&&(I=="buffer"||I=="byteLength"||I=="byteOffset")||o(I,b)))&&T.push(I);return T}return W1=d,W1}var K1,Xj;function tS(){if(Xj)return K1;Xj=1;var e=Object.prototype;function r(t){var a=t&&t.constructor,o=typeof a=="function"&&a.prototype||e;return t===o}return K1=r,K1}var Y1,Qj;function PU(){if(Qj)return Y1;Qj=1;function e(r,t){return function(a){return r(t(a))}}return Y1=e,Y1}var J1,eq;function XJ(){if(eq)return J1;eq=1;var e=PU(),r=e(Object.keys,Object);return J1=r,J1}var X1,rq;function QJ(){if(rq)return X1;rq=1;var e=tS(),r=XJ(),t=Object.prototype,a=t.hasOwnProperty;function o(s){if(!e(s))return r(s);var u=[];for(var v in Object(s))a.call(s,v)&&v!="constructor"&&u.push(v);return u}return X1=o,X1}var Q1,tq;function Wf(){if(tq)return Q1;tq=1;var e=Y_(),r=RU();function t(a){return a!=null&&r(a.length)&&!e(a)}return Q1=t,Q1}var e0,nq;function nS(){if(nq)return e0;nq=1;var e=kU(),r=QJ(),t=Wf();function a(o){return t(o)?e(o):r(o)}return e0=a,e0}var r0,aq;function eX(){if(aq)return r0;aq=1;var e=Al(),r=nS();function t(a,o){return a&&e(o,r(o),a)}return r0=t,r0}var t0,iq;function rX(){if(iq)return t0;iq=1;function e(r){var t=[];if(r!=null)for(var a in Object(r))t.push(a);return t}return t0=e,t0}var n0,oq;function tX(){if(oq)return n0;oq=1;var e=Eo(),r=tS(),t=rX(),a=Object.prototype,o=a.hasOwnProperty;function s(u){if(!e(u))return t(u);var v=r(u),d=[];for(var h in u)h=="constructor"&&(v||!o.call(u,h))||d.push(h);return d}return n0=s,n0}var a0,sq;function Tl(){if(sq)return a0;sq=1;var e=kU(),r=tX(),t=Wf();function a(o){return t(o)?e(o,!0):r(o)}return a0=a,a0}var i0,uq;function nX(){if(uq)return i0;uq=1;var e=Al(),r=Tl();function t(a,o){return a&&e(o,r(o),a)}return i0=t,i0}var tl={exports:{}};tl.exports;var lq;function NU(){return lq||(lq=1,(function(e,r){var t=Si(),a=r&&!r.nodeType&&r,o=a&&!0&&e&&!e.nodeType&&e,s=o&&o.exports===a,u=s?t.Buffer:void 0,v=u?u.allocUnsafe:void 0;function d(h,f){if(f)return h.slice();var c=h.length,_=v?v(c):new h.constructor(c);return h.copy(_),_}e.exports=d})(tl,tl.exports)),tl.exports}var o0,cq;function jU(){if(cq)return o0;cq=1;function e(r,t){var a=-1,o=r.length;for(t||(t=Array(o));++a<o;)t[a]=r[a];return t}return o0=e,o0}var s0,fq;function aX(){if(fq)return s0;fq=1;function e(r,t){for(var a=-1,o=r==null?0:r.length,s=0,u=[];++a<o;){var v=r[a];t(v,a,r)&&(u[s++]=v)}return u}return s0=e,s0}var u0,dq;function qU(){if(dq)return u0;dq=1;function e(){return[]}return u0=e,u0}var l0,hq;function aS(){if(hq)return l0;hq=1;var e=aX(),r=qU(),t=Object.prototype,a=t.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(u){return u==null?[]:(u=Object(u),e(o(u),function(v){return a.call(u,v)}))}:r;return l0=s,l0}var c0,vq;function iX(){if(vq)return c0;vq=1;var e=Al(),r=aS();function t(a,o){return e(a,r(a),o)}return c0=t,c0}var f0,pq;function DU(){if(pq)return f0;pq=1;function e(r,t){for(var a=-1,o=t.length,s=r.length;++a<o;)r[s+a]=t[a];return r}return f0=e,f0}var d0,gq;function iS(){if(gq)return d0;gq=1;var e=PU(),r=e(Object.getPrototypeOf,Object);return d0=r,d0}var h0,mq;function LU(){if(mq)return h0;mq=1;var e=DU(),r=iS(),t=aS(),a=qU(),o=Object.getOwnPropertySymbols,s=o?function(u){for(var v=[];u;)e(v,t(u)),u=r(u);return v}:a;return h0=s,h0}var v0,yq;function oX(){if(yq)return v0;yq=1;var e=Al(),r=LU();function t(a,o){return e(a,r(a),o)}return v0=t,v0}var p0,bq;function MU(){if(bq)return p0;bq=1;var e=DU(),r=hs();function t(a,o,s){var u=o(a);return r(a)?u:e(u,s(a))}return p0=t,p0}var g0,_q;function sX(){if(_q)return g0;_q=1;var e=MU(),r=aS(),t=nS();function a(o){return e(o,t,r)}return g0=a,g0}var m0,Sq;function uX(){if(Sq)return m0;Sq=1;var e=MU(),r=LU(),t=Tl();function a(o){return e(o,t,r)}return m0=a,m0}var y0,wq;function lX(){if(wq)return y0;wq=1;var e=ds(),r=Si(),t=e(r,"DataView");return y0=t,y0}var b0,Eq;function cX(){if(Eq)return b0;Eq=1;var e=ds(),r=Si(),t=e(r,"Promise");return b0=t,b0}var _0,Cq;function fX(){if(Cq)return _0;Cq=1;var e=ds(),r=Si(),t=e(r,"Set");return _0=t,_0}var S0,xq;function dX(){if(xq)return S0;xq=1;var e=ds(),r=Si(),t=e(r,"WeakMap");return S0=t,S0}var w0,Iq;function oS(){if(Iq)return w0;Iq=1;var e=lX(),r=J_(),t=cX(),a=fX(),o=dX(),s=du(),u=wU(),v="[object Map]",d="[object Object]",h="[object Promise]",f="[object Set]",c="[object WeakMap]",_="[object DataView]",E=u(e),S=u(r),w=u(t),T=u(a),b=u(o),I=s;return(e&&I(new e(new ArrayBuffer(1)))!=_||r&&I(new r)!=v||t&&I(t.resolve())!=h||a&&I(new a)!=f||o&&I(new o)!=c)&&(I=function(m){var p=s(m),y=p==d?m.constructor:void 0,g=y?u(y):"";if(g)switch(g){case E:return _;case S:return v;case w:return h;case T:return f;case b:return c}return p}),w0=I,w0}var E0,Aq;function hX(){if(Aq)return E0;Aq=1;var e=Object.prototype,r=e.hasOwnProperty;function t(a){var o=a.length,s=new a.constructor(o);return o&&typeof a[0]=="string"&&r.call(a,"index")&&(s.index=a.index,s.input=a.input),s}return E0=t,E0}var C0,Tq;function vX(){if(Tq)return C0;Tq=1;var e=Si(),r=e.Uint8Array;return C0=r,C0}var x0,Rq;function sS(){if(Rq)return x0;Rq=1;var e=vX();function r(t){var a=new t.constructor(t.byteLength);return new e(a).set(new e(t)),a}return x0=r,x0}var I0,Oq;function pX(){if(Oq)return I0;Oq=1;var e=sS();function r(t,a){var o=a?e(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.byteLength)}return I0=r,I0}var A0,kq;function gX(){if(kq)return A0;kq=1;var e=/\w*$/;function r(t){var a=new t.constructor(t.source,e.exec(t));return a.lastIndex=t.lastIndex,a}return A0=r,A0}var T0,Pq;function mX(){if(Pq)return T0;Pq=1;var e=Hf(),r=e?e.prototype:void 0,t=r?r.valueOf:void 0;function a(o){return t?Object(t.call(o)):{}}return T0=a,T0}var R0,Nq;function UU(){if(Nq)return R0;Nq=1;var e=sS();function r(t,a){var o=a?e(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.length)}return R0=r,R0}var O0,jq;function yX(){if(jq)return O0;jq=1;var e=sS(),r=pX(),t=gX(),a=mX(),o=UU(),s="[object Boolean]",u="[object Date]",v="[object Map]",d="[object Number]",h="[object RegExp]",f="[object Set]",c="[object String]",_="[object Symbol]",E="[object ArrayBuffer]",S="[object DataView]",w="[object Float32Array]",T="[object Float64Array]",b="[object Int8Array]",I="[object Int16Array]",m="[object Int32Array]",p="[object Uint8Array]",y="[object Uint8ClampedArray]",g="[object Uint16Array]",x="[object Uint32Array]";function R(O,j,k){var N=O.constructor;switch(j){case E:return e(O);case s:case u:return new N(+O);case S:return r(O,k);case w:case T:case b:case I:case m:case p:case y:case g:case x:return o(O,k);case v:return new N;case d:case c:return new N(O);case h:return t(O);case f:return new N;case _:return a(O)}}return O0=R,O0}var k0,qq;function bX(){if(qq)return k0;qq=1;var e=Eo(),r=Object.create,t=(function(){function a(){}return function(o){if(!e(o))return{};if(r)return r(o);a.prototype=o;var s=new a;return a.prototype=void 0,s}})();return k0=t,k0}var P0,Dq;function FU(){if(Dq)return P0;Dq=1;var e=bX(),r=iS(),t=tS();function a(o){return typeof o.constructor=="function"&&!t(o)?e(r(o)):{}}return P0=a,P0}var N0,Lq;function _X(){if(Lq)return N0;Lq=1;var e=oS(),r=Co(),t="[object Map]";function a(o){return r(o)&&e(o)==t}return N0=a,N0}var j0,Mq;function SX(){if(Mq)return j0;Mq=1;var e=_X(),r=eS(),t=rS(),a=t&&t.isMap,o=a?r(a):e;return j0=o,j0}var q0,Uq;function wX(){if(Uq)return q0;Uq=1;var e=oS(),r=Co(),t="[object Set]";function a(o){return r(o)&&e(o)==t}return q0=a,q0}var D0,Fq;function EX(){if(Fq)return D0;Fq=1;var e=wX(),r=eS(),t=rS(),a=t&&t.isSet,o=a?r(a):e;return D0=o,D0}var L0,Bq;function CX(){if(Bq)return L0;Bq=1;var e=CU(),r=GJ(),t=IU(),a=eX(),o=nX(),s=NU(),u=jU(),v=iX(),d=oX(),h=sX(),f=uX(),c=oS(),_=hX(),E=yX(),S=FU(),w=hs(),T=Q_(),b=SX(),I=Eo(),m=EX(),p=nS(),y=Tl(),g=1,x=2,R=4,O="[object Arguments]",j="[object Array]",k="[object Boolean]",N="[object Date]",D="[object Error]",U="[object Function]",B="[object GeneratorFunction]",H="[object Map]",G="[object Number]",$="[object Object]",M="[object RegExp]",L="[object Set]",F="[object String]",V="[object Symbol]",ae="[object WeakMap]",oe="[object ArrayBuffer]",_e="[object DataView]",he="[object Float32Array]",ye="[object Float64Array]",ge="[object Int8Array]",Re="[object Int16Array]",We="[object Int32Array]",He="[object Uint8Array]",nr="[object Uint8ClampedArray]",ar="[object Uint16Array]",xr="[object Uint32Array]",or={};or[O]=or[j]=or[oe]=or[_e]=or[k]=or[N]=or[he]=or[ye]=or[ge]=or[Re]=or[We]=or[H]=or[G]=or[$]=or[M]=or[L]=or[F]=or[V]=or[He]=or[nr]=or[ar]=or[xr]=!0,or[D]=or[U]=or[ae]=!1;function lr(Ve,Ge,W,Y,Q,re){var pe,le=Ge&g,Ee=Ge&x,fe=Ge&R;if(W&&(pe=Q?W(Ve,Y,Q,re):W(Ve)),pe!==void 0)return pe;if(!I(Ve))return Ve;var Pe=w(Ve);if(Pe){if(pe=_(Ve),!le)return u(Ve,pe)}else{var ur=c(Ve),cr=ur==U||ur==B;if(T(Ve))return s(Ve,le);if(ur==$||ur==O||cr&&!Q){if(pe=Ee||cr?{}:S(Ve),!le)return Ee?d(Ve,o(pe,Ve)):v(Ve,a(pe,Ve))}else{if(!or[ur])return Q?Ve:{};pe=E(Ve,ur,le)}}re||(re=new e);var de=re.get(Ve);if(de)return de;re.set(Ve,pe),m(Ve)?Ve.forEach(function(Oe){pe.add(lr(Oe,Ge,W,Oe,Ve,re))}):b(Ve)&&Ve.forEach(function(Oe,De){pe.set(De,lr(Oe,Ge,W,De,Ve,re))});var Ae=fe?Ee?f:h:Ee?y:p,Ne=Pe?void 0:Ae(Ve);return r(Ne||Ve,function(Oe,De){Ne&&(De=Oe,Oe=Ve[De]),t(pe,De,lr(Oe,Ge,W,De,Ve,re))}),pe}return L0=lr,L0}var M0,$q;function xX(){if($q)return M0;$q=1;var e=CX(),r=1,t=4;function a(o){return e(o,r|t)}return M0=a,M0}var IX=xX();const AX=Ws(IX);var U0,zq;function uS(){if(zq)return U0;zq=1;var e=du(),r=Co(),t="[object Symbol]";function a(o){return typeof o=="symbol"||r(o)&&e(o)==t}return U0=a,U0}var F0,Zq;function TX(){if(Zq)return F0;Zq=1;var e=hs(),r=uS(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(s,u){if(e(s))return!1;var v=typeof s;return v=="number"||v=="symbol"||v=="boolean"||s==null||r(s)?!0:a.test(s)||!t.test(s)||u!=null&&s in Object(u)}return F0=o,F0}var B0,Hq;function RX(){if(Hq)return B0;Hq=1;var e=EU(),r="Expected a function";function t(a,o){if(typeof a!="function"||o!=null&&typeof o!="function")throw new TypeError(r);var s=function(){var u=arguments,v=o?o.apply(this,u):u[0],d=s.cache;if(d.has(v))return d.get(v);var h=a.apply(this,u);return s.cache=d.set(v,h)||d,h};return s.cache=new(t.Cache||e),s}return t.Cache=e,B0=t,B0}var $0,Vq;function OX(){if(Vq)return $0;Vq=1;var e=RX(),r=500;function t(a){var o=e(a,function(u){return s.size===r&&s.clear(),u}),s=o.cache;return o}return $0=t,$0}var z0,Gq;function kX(){if(Gq)return z0;Gq=1;var e=OX(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t=/\\(\\)?/g,a=e(function(o){var s=[];return o.charCodeAt(0)===46&&s.push(""),o.replace(r,function(u,v,d,h){s.push(d?h.replace(t,"$1"):v||u)}),s});return z0=a,z0}var Z0,Wq;function PX(){if(Wq)return Z0;Wq=1;function e(r,t){for(var a=-1,o=r==null?0:r.length,s=Array(o);++a<o;)s[a]=t(r[a],a,r);return s}return Z0=e,Z0}var H0,Kq;function NX(){if(Kq)return H0;Kq=1;var e=Hf(),r=PX(),t=hs(),a=uS(),o=e?e.prototype:void 0,s=o?o.toString:void 0;function u(v){if(typeof v=="string")return v;if(t(v))return r(v,u)+"";if(a(v))return s?s.call(v):"";var d=v+"";return d=="0"&&1/v==-1/0?"-0":d}return H0=u,H0}var V0,Yq;function jX(){if(Yq)return V0;Yq=1;var e=NX();function r(t){return t==null?"":e(t)}return V0=r,V0}var G0,Jq;function qX(){if(Jq)return G0;Jq=1;var e=hs(),r=TX(),t=kX(),a=jX();function o(s,u){return e(s)?s:r(s,u)?[s]:t(a(s))}return G0=o,G0}var W0,Xq;function DX(){if(Xq)return W0;Xq=1;var e=uS();function r(t){if(typeof t=="string"||e(t))return t;var a=t+"";return a=="0"&&1/t==-1/0?"-0":a}return W0=r,W0}var K0,Qq;function LX(){if(Qq)return K0;Qq=1;var e=qX(),r=DX();function t(a,o){o=e(o,a);for(var s=0,u=o.length;a!=null&&s<u;)a=a[r(o[s++])];return s&&s==u?a:void 0}return K0=t,K0}var Y0,eD;function MX(){if(eD)return Y0;eD=1;var e=LX();function r(t,a,o){var s=t==null?void 0:e(t,a);return s===void 0?o:s}return Y0=r,Y0}var UX=MX();const FX=Ws(UX);var J0,rD;function BU(){if(rD)return J0;rD=1;var e=X_(),r=$f();function t(a,o,s){(s!==void 0&&!r(a[o],s)||s===void 0&&!(o in a))&&e(a,o,s)}return J0=t,J0}var X0,tD;function BX(){if(tD)return X0;tD=1;function e(r){return function(t,a,o){for(var s=-1,u=Object(t),v=o(t),d=v.length;d--;){var h=v[r?d:++s];if(a(u[h],h,u)===!1)break}return t}}return X0=e,X0}var Q0,nD;function $X(){if(nD)return Q0;nD=1;var e=BX(),r=e();return Q0=r,Q0}var eb,aD;function zX(){if(aD)return eb;aD=1;var e=Wf(),r=Co();function t(a){return r(a)&&e(a)}return eb=t,eb}var rb,iD;function ZX(){if(iD)return rb;iD=1;var e=du(),r=iS(),t=Co(),a="[object Object]",o=Function.prototype,s=Object.prototype,u=o.toString,v=s.hasOwnProperty,d=u.call(Object);function h(f){if(!t(f)||e(f)!=a)return!1;var c=r(f);if(c===null)return!0;var _=v.call(c,"constructor")&&c.constructor;return typeof _=="function"&&_ instanceof _&&u.call(_)==d}return rb=h,rb}var tb,oD;function $U(){if(oD)return tb;oD=1;function e(r,t){if(!(t==="constructor"&&typeof r[t]=="function")&&t!="__proto__")return r[t]}return tb=e,tb}var nb,sD;function HX(){if(sD)return nb;sD=1;var e=Al(),r=Tl();function t(a){return e(a,r(a))}return nb=t,nb}var ab,uD;function VX(){if(uD)return ab;uD=1;var e=BU(),r=NU(),t=UU(),a=jU(),o=FU(),s=AU(),u=hs(),v=zX(),d=Q_(),h=Y_(),f=Eo(),c=ZX(),_=OU(),E=$U(),S=HX();function w(T,b,I,m,p,y,g){var x=E(T,I),R=E(b,I),O=g.get(R);if(O){e(T,I,O);return}var j=y?y(x,R,I+"",T,b,g):void 0,k=j===void 0;if(k){var N=u(R),D=!N&&d(R),U=!N&&!D&&_(R);j=R,N||D||U?u(x)?j=x:v(x)?j=a(x):D?(k=!1,j=r(R,!0)):U?(k=!1,j=t(R,!0)):j=[]:c(R)||s(R)?(j=x,s(x)?j=S(x):(!f(x)||h(x))&&(j=o(R))):k=!1}k&&(g.set(R,j),p(j,R,m,y,g),g.delete(R)),e(T,I,j)}return ab=w,ab}var ib,lD;function GX(){if(lD)return ib;lD=1;var e=CU(),r=BU(),t=$X(),a=VX(),o=Eo(),s=Tl(),u=$U();function v(d,h,f,c,_){d!==h&&t(h,function(E,S){if(_||(_=new e),o(E))a(d,h,S,f,v,c,_);else{var w=c?c(u(d,S),E,S+"",d,h,_):void 0;w===void 0&&(w=E),r(d,S,w)}},s)}return ib=v,ib}var ob,cD;function zU(){if(cD)return ob;cD=1;function e(r){return r}return ob=e,ob}var sb,fD;function WX(){if(fD)return sb;fD=1;function e(r,t,a){switch(a.length){case 0:return r.call(t);case 1:return r.call(t,a[0]);case 2:return r.call(t,a[0],a[1]);case 3:return r.call(t,a[0],a[1],a[2])}return r.apply(t,a)}return sb=e,sb}var ub,dD;function KX(){if(dD)return ub;dD=1;var e=WX(),r=Math.max;function t(a,o,s){return o=r(o===void 0?a.length-1:o,0),function(){for(var u=arguments,v=-1,d=r(u.length-o,0),h=Array(d);++v<d;)h[v]=u[o+v];v=-1;for(var f=Array(o+1);++v<o;)f[v]=u[v];return f[o]=s(h),e(a,this,f)}}return ub=t,ub}var lb,hD;function YX(){if(hD)return lb;hD=1;function e(r){return function(){return r}}return lb=e,lb}var cb,vD;function JX(){if(vD)return cb;vD=1;var e=YX(),r=xU(),t=zU(),a=r?function(o,s){return r(o,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:t;return cb=a,cb}var fb,pD;function XX(){if(pD)return fb;pD=1;var e=800,r=16,t=Date.now;function a(o){var s=0,u=0;return function(){var v=t(),d=r-(v-u);if(u=v,d>0){if(++s>=e)return arguments[0]}else s=0;return o.apply(void 0,arguments)}}return fb=a,fb}var db,gD;function QX(){if(gD)return db;gD=1;var e=JX(),r=XX(),t=r(e);return db=t,db}var hb,mD;function eQ(){if(mD)return hb;mD=1;var e=zU(),r=KX(),t=QX();function a(o,s){return t(r(o,s,e),o+"")}return hb=a,hb}var vb,yD;function rQ(){if(yD)return vb;yD=1;var e=$f(),r=Wf(),t=TU(),a=Eo();function o(s,u,v){if(!a(v))return!1;var d=typeof u;return(d=="number"?r(v)&&t(u,v.length):d=="string"&&u in v)?e(v[u],s):!1}return vb=o,vb}var pb,bD;function tQ(){if(bD)return pb;bD=1;var e=eQ(),r=rQ();function t(a){return e(function(o,s){var u=-1,v=s.length,d=v>1?s[v-1]:void 0,h=v>2?s[2]:void 0;for(d=a.length>3&&typeof d=="function"?(v--,d):void 0,h&&r(s[0],s[1],h)&&(d=v<3?void 0:d,v=1),o=Object(o);++u<v;){var f=s[u];f&&a(o,f,u,d)}return o})}return pb=t,pb}var gb,_D;function nQ(){if(_D)return gb;_D=1;var e=GX(),r=tQ(),t=r(function(a,o,s){e(a,o,s)});return gb=t,gb}var aQ=nQ();const iQ=Ws(aQ);var ZU="1.13.7",SD=typeof self=="object"&&self.self===self&&self||typeof globalThis=="object"&&globalThis.global===globalThis&&globalThis||Function("return this")()||{},Kf=Array.prototype,lS=Object.prototype,wD=typeof Symbol<"u"?Symbol.prototype:null,oQ=Kf.push,Rl=Kf.slice,ol=lS.toString,sQ=lS.hasOwnProperty,HU=typeof ArrayBuffer<"u",uQ=typeof DataView<"u",lQ=Array.isArray,ED=Object.keys,CD=Object.create,xD=HU&&ArrayBuffer.isView,cQ=isNaN,fQ=isFinite,VU=!{toString:null}.propertyIsEnumerable("toString"),ID=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],dQ=Math.pow(2,53)-1;function la(e,r){return r=r==null?e.length-1:+r,function(){for(var t=Math.max(arguments.length-r,0),a=Array(t),o=0;o<t;o++)a[o]=arguments[o+r];switch(r){case 0:return e.call(this,a);case 1:return e.call(this,arguments[0],a);case 2:return e.call(this,arguments[0],arguments[1],a)}var s=Array(r+1);for(o=0;o<r;o++)s[o]=arguments[o];return s[r]=a,e.apply(this,s)}}function xo(e){var r=typeof e;return r==="function"||r==="object"&&!!e}function hQ(e){return e===null}function GU(e){return e===void 0}function WU(e){return e===!0||e===!1||ol.call(e)==="[object Boolean]"}function vQ(e){return!!(e&&e.nodeType===1)}function Hn(e){var r="[object "+e+"]";return function(t){return ol.call(t)===r}}var cS=Hn("String"),KU=Hn("Number"),pQ=Hn("Date"),gQ=Hn("RegExp"),mQ=Hn("Error"),YU=Hn("Symbol"),JU=Hn("ArrayBuffer"),XU=Hn("Function"),yQ=SD.document&&SD.document.childNodes;typeof/./!="function"&&typeof Int8Array!="object"&&typeof yQ!="function"&&(XU=function(e){return typeof e=="function"||!1});var Yn=XU,QU=Hn("Object"),eF=uQ&&(!/\[native code\]/.test(String(DataView))||QU(new DataView(new ArrayBuffer(8)))),fS=typeof Map<"u"&&QU(new Map),bQ=Hn("DataView");function _Q(e){return e!=null&&Yn(e.getInt8)&&JU(e.buffer)}var Xc=eF?_Q:bQ,vs=lQ||Hn("Array");function Io(e,r){return e!=null&&sQ.call(e,r)}var Gb=Hn("Arguments");(function(){Gb(arguments)||(Gb=function(e){return Io(e,"callee")})})();var dS=Gb;function SQ(e){return!YU(e)&&fQ(e)&&!isNaN(parseFloat(e))}function rF(e){return KU(e)&&cQ(e)}function tF(e){return function(){return e}}function nF(e){return function(r){var t=e(r);return typeof t=="number"&&t>=0&&t<=dQ}}function aF(e){return function(r){return r==null?void 0:r[e]}}var Qc=aF("byteLength"),wQ=nF(Qc),EQ=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function CQ(e){return xD?xD(e)&&!Xc(e):wQ(e)&&EQ.test(ol.call(e))}var iF=HU?CQ:tF(!1),ca=aF("length");function xQ(e){for(var r={},t=e.length,a=0;a<t;++a)r[e[a]]=!0;return{contains:function(o){return r[o]===!0},push:function(o){return r[o]=!0,e.push(o)}}}function oF(e,r){r=xQ(r);var t=ID.length,a=e.constructor,o=Yn(a)&&a.prototype||lS,s="constructor";for(Io(e,s)&&!r.contains(s)&&r.push(s);t--;)s=ID[t],s in e&&e[s]!==o[s]&&!r.contains(s)&&r.push(s)}function un(e){if(!xo(e))return[];if(ED)return ED(e);var r=[];for(var t in e)Io(e,t)&&r.push(t);return VU&&oF(e,r),r}function sF(e){if(e==null)return!0;var r=ca(e);return typeof r=="number"&&(vs(e)||cS(e)||dS(e))?r===0:ca(un(e))===0}function uF(e,r){var t=un(r),a=t.length;if(e==null)return!a;for(var o=Object(e),s=0;s<a;s++){var u=t[s];if(r[u]!==o[u]||!(u in o))return!1}return!0}function vt(e){if(e instanceof vt)return e;if(!(this instanceof vt))return new vt(e);this._wrapped=e}vt.VERSION=ZU;vt.prototype.value=function(){return this._wrapped};vt.prototype.valueOf=vt.prototype.toJSON=vt.prototype.value;vt.prototype.toString=function(){return String(this._wrapped)};function AD(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,Qc(e))}var TD="[object DataView]";function Wb(e,r,t,a){if(e===r)return e!==0||1/e===1/r;if(e==null||r==null)return!1;if(e!==e)return r!==r;var o=typeof e;return o!=="function"&&o!=="object"&&typeof r!="object"?!1:lF(e,r,t,a)}function lF(e,r,t,a){e instanceof vt&&(e=e._wrapped),r instanceof vt&&(r=r._wrapped);var o=ol.call(e);if(o!==ol.call(r))return!1;if(eF&&o=="[object Object]"&&Xc(e)){if(!Xc(r))return!1;o=TD}switch(o){case"[object RegExp]":case"[object String]":return""+e==""+r;case"[object Number]":return+e!=+e?+r!=+r:+e==0?1/+e===1/r:+e==+r;case"[object Date]":case"[object Boolean]":return+e==+r;case"[object Symbol]":return wD.valueOf.call(e)===wD.valueOf.call(r);case"[object ArrayBuffer]":case TD:return lF(AD(e),AD(r),t,a)}var s=o==="[object Array]";if(!s&&iF(e)){var u=Qc(e);if(u!==Qc(r))return!1;if(e.buffer===r.buffer&&e.byteOffset===r.byteOffset)return!0;s=!0}if(!s){if(typeof e!="object"||typeof r!="object")return!1;var v=e.constructor,d=r.constructor;if(v!==d&&!(Yn(v)&&v instanceof v&&Yn(d)&&d instanceof d)&&"constructor"in e&&"constructor"in r)return!1}t=t||[],a=a||[];for(var h=t.length;h--;)if(t[h]===e)return a[h]===r;if(t.push(e),a.push(r),s){if(h=e.length,h!==r.length)return!1;for(;h--;)if(!Wb(e[h],r[h],t,a))return!1}else{var f=un(e),c;if(h=f.length,un(r).length!==h)return!1;for(;h--;)if(c=f[h],!(Io(r,c)&&Wb(e[c],r[c],t,a)))return!1}return t.pop(),a.pop(),!0}function cF(e,r){return Wb(e,r)}function Ol(e){if(!xo(e))return[];var r=[];for(var t in e)r.push(t);return VU&&oF(e,r),r}function hS(e){var r=ca(e);return function(t){if(t==null)return!1;var a=Ol(t);if(ca(a))return!1;for(var o=0;o<r;o++)if(!Yn(t[e[o]]))return!1;return e!==hF||!Yn(t[vS])}}var vS="forEach",fF="has",pS=["clear","delete"],dF=["get",fF,"set"],IQ=pS.concat(vS,dF),hF=pS.concat(dF),AQ=["add"].concat(pS,vS,fF),TQ=fS?hS(IQ):Hn("Map"),RQ=fS?hS(hF):Hn("WeakMap"),OQ=fS?hS(AQ):Hn("Set"),kQ=Hn("WeakSet");function ps(e){for(var r=un(e),t=r.length,a=Array(t),o=0;o<t;o++)a[o]=e[r[o]];return a}function PQ(e){for(var r=un(e),t=r.length,a=Array(t),o=0;o<t;o++)a[o]=[r[o],e[r[o]]];return a}function vF(e){for(var r={},t=un(e),a=0,o=t.length;a<o;a++)r[e[t[a]]]=t[a];return r}function Kb(e){var r=[];for(var t in e)Yn(e[t])&&r.push(t);return r.sort()}function gS(e,r){return function(t){var a=arguments.length;if(r&&(t=Object(t)),a<2||t==null)return t;for(var o=1;o<a;o++)for(var s=arguments[o],u=e(s),v=u.length,d=0;d<v;d++){var h=u[d];(!r||t[h]===void 0)&&(t[h]=s[h])}return t}}var pF=gS(Ol),ef=gS(un),gF=gS(Ol,!0);function NQ(){return function(){}}function mF(e){if(!xo(e))return{};if(CD)return CD(e);var r=NQ();r.prototype=e;var t=new r;return r.prototype=null,t}function jQ(e,r){var t=mF(e);return r&&ef(t,r),t}function qQ(e){return xo(e)?vs(e)?e.slice():pF({},e):e}function DQ(e,r){return r(e),e}function yF(e){return vs(e)?e:[e]}vt.toPath=yF;function kl(e){return vt.toPath(e)}function mS(e,r){for(var t=r.length,a=0;a<t;a++){if(e==null)return;e=e[r[a]]}return t?e:void 0}function bF(e,r,t){var a=mS(e,kl(r));return GU(a)?t:a}function LQ(e,r){r=kl(r);for(var t=r.length,a=0;a<t;a++){var o=r[a];if(!Io(e,o))return!1;e=e[o]}return!!t}function yS(e){return e}function sl(e){return e=ef({},e),function(r){return uF(r,e)}}function bS(e){return e=kl(e),function(r){return mS(r,e)}}function Pl(e,r,t){if(r===void 0)return e;switch(t??3){case 1:return function(a){return e.call(r,a)};case 3:return function(a,o,s){return e.call(r,a,o,s)};case 4:return function(a,o,s,u){return e.call(r,a,o,s,u)}}return function(){return e.apply(r,arguments)}}function _F(e,r,t){return e==null?yS:Yn(e)?Pl(e,r,t):xo(e)&&!vs(e)?sl(e):bS(e)}function _S(e,r){return _F(e,r,1/0)}vt.iteratee=_S;function ha(e,r,t){return vt.iteratee!==_S?vt.iteratee(e,r):_F(e,r,t)}function MQ(e,r,t){r=ha(r,t);for(var a=un(e),o=a.length,s={},u=0;u<o;u++){var v=a[u];s[v]=r(e[v],v,e)}return s}function SF(){}function UQ(e){return e==null?SF:function(r){return bF(e,r)}}function FQ(e,r,t){var a=Array(Math.max(0,e));r=Pl(r,t,1);for(var o=0;o<e;o++)a[o]=r(o);return a}function Yb(e,r){return r==null&&(r=e,e=0),e+Math.floor(Math.random()*(r-e+1))}var ul=Date.now||function(){return new Date().getTime()};function wF(e){var r=function(s){return e[s]},t="(?:"+un(e).join("|")+")",a=RegExp(t),o=RegExp(t,"g");return function(s){return s=s==null?"":""+s,a.test(s)?s.replace(o,r):s}}var EF={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},BQ=wF(EF),$Q=vF(EF),zQ=wF($Q),ZQ=vt.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},mb=/(.)^/,HQ={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},VQ=/\\|'|\r|\n|\u2028|\u2029/g;function GQ(e){return"\\"+HQ[e]}var WQ=/^\s*(\w|\$)+\s*$/;function KQ(e,r,t){!r&&t&&(r=t),r=gF({},r,vt.templateSettings);var a=RegExp([(r.escape||mb).source,(r.interpolate||mb).source,(r.evaluate||mb).source].join("|")+"|$","g"),o=0,s="__p+='";e.replace(a,function(h,f,c,_,E){return s+=e.slice(o,E).replace(VQ,GQ),o=E+h.length,f?s+=`'+
|
|
45
|
+
((__t=(`+f+`))==null?'':_.escape(__t))+
|
|
46
|
+
'`:c?s+=`'+
|
|
47
|
+
((__t=(`+c+`))==null?'':__t)+
|
|
48
|
+
'`:_&&(s+=`';
|
|
49
|
+
`+_+`
|
|
50
|
+
__p+='`),h}),s+=`';
|
|
51
|
+
`;var u=r.variable;if(u){if(!WQ.test(u))throw new Error("variable is not a bare identifier: "+u)}else s=`with(obj||{}){
|
|
52
|
+
`+s+`}
|
|
53
|
+
`,u="obj";s=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
|
|
54
|
+
`+s+`return __p;
|
|
55
|
+
`;var v;try{v=new Function(u,"_",s)}catch(h){throw h.source=s,h}var d=function(h){return v.call(this,h,vt)};return d.source="function("+u+`){
|
|
56
|
+
`+s+"}",d}function YQ(e,r,t){r=kl(r);var a=r.length;if(!a)return Yn(t)?t.call(e):t;for(var o=0;o<a;o++){var s=e==null?void 0:e[r[o]];s===void 0&&(s=t,o=a),e=Yn(s)?s.call(e):s}return e}var JQ=0;function XQ(e){var r=++JQ+"";return e?e+r:r}function QQ(e){var r=vt(e);return r._chain=!0,r}function CF(e,r,t,a,o){if(!(a instanceof r))return e.apply(t,o);var s=mF(e.prototype),u=e.apply(s,o);return xo(u)?u:s}var hu=la(function(e,r){var t=hu.placeholder,a=function(){for(var o=0,s=r.length,u=Array(s),v=0;v<s;v++)u[v]=r[v]===t?arguments[o++]:r[v];for(;o<arguments.length;)u.push(arguments[o++]);return CF(e,a,this,this,u)};return a});hu.placeholder=vt;var xF=la(function(e,r,t){if(!Yn(e))throw new TypeError("Bind must be called on a function");var a=la(function(o){return CF(e,a,r,this,t.concat(o))});return a}),Ta=nF(ca);function gs(e,r,t,a){if(a=a||[],!r&&r!==0)r=1/0;else if(r<=0)return a.concat(e);for(var o=a.length,s=0,u=ca(e);s<u;s++){var v=e[s];if(Ta(v)&&(vs(v)||dS(v)))if(r>1)gs(v,r-1,t,a),o=a.length;else for(var d=0,h=v.length;d<h;)a[o++]=v[d++];else t||(a[o++]=v)}return a}var eee=la(function(e,r){r=gs(r,!1,!1);var t=r.length;if(t<1)throw new Error("bindAll must be passed function names");for(;t--;){var a=r[t];e[a]=xF(e[a],e)}return e});function ree(e,r){var t=function(a){var o=t.cache,s=""+(r?r.apply(this,arguments):a);return Io(o,s)||(o[s]=e.apply(this,arguments)),o[s]};return t.cache={},t}var IF=la(function(e,r,t){return setTimeout(function(){return e.apply(null,t)},r)}),tee=hu(IF,vt,1);function nee(e,r,t){var a,o,s,u,v=0;t||(t={});var d=function(){v=t.leading===!1?0:ul(),a=null,u=e.apply(o,s),a||(o=s=null)},h=function(){var f=ul();!v&&t.leading===!1&&(v=f);var c=r-(f-v);return o=this,s=arguments,c<=0||c>r?(a&&(clearTimeout(a),a=null),v=f,u=e.apply(o,s),a||(o=s=null)):!a&&t.trailing!==!1&&(a=setTimeout(d,c)),u};return h.cancel=function(){clearTimeout(a),v=0,a=o=s=null},h}function aee(e,r,t){var a,o,s,u,v,d=function(){var f=ul()-o;r>f?a=setTimeout(d,r-f):(a=null,t||(u=e.apply(v,s)),a||(s=v=null))},h=la(function(f){return v=this,s=f,o=ul(),a||(a=setTimeout(d,r),t&&(u=e.apply(v,s))),u});return h.cancel=function(){clearTimeout(a),a=s=v=null},h}function iee(e,r){return hu(r,e)}function SS(e){return function(){return!e.apply(this,arguments)}}function oee(){var e=arguments,r=e.length-1;return function(){for(var t=r,a=e[r].apply(this,arguments);t--;)a=e[t].call(this,a);return a}}function see(e,r){return function(){if(--e<1)return r.apply(this,arguments)}}function AF(e,r){var t;return function(){return--e>0&&(t=r.apply(this,arguments)),e<=1&&(r=null),t}}var uee=hu(AF,2);function TF(e,r,t){r=ha(r,t);for(var a=un(e),o,s=0,u=a.length;s<u;s++)if(o=a[s],r(e[o],o,e))return o}function RF(e){return function(r,t,a){t=ha(t,a);for(var o=ca(r),s=e>0?0:o-1;s>=0&&s<o;s+=e)if(t(r[s],s,r))return s;return-1}}var Yf=RF(1),OF=RF(-1);function kF(e,r,t,a){t=ha(t,a,1);for(var o=t(r),s=0,u=ca(e);s<u;){var v=Math.floor((s+u)/2);t(e[v])<o?s=v+1:u=v}return s}function PF(e,r,t){return function(a,o,s){var u=0,v=ca(a);if(typeof s=="number")e>0?u=s>=0?s:Math.max(s+v,u):v=s>=0?Math.min(s+1,v):s+v+1;else if(t&&s&&v)return s=t(a,o),a[s]===o?s:-1;if(o!==o)return s=r(Rl.call(a,u,v),rF),s>=0?s+u:-1;for(s=e>0?u:v-1;s>=0&&s<v;s+=e)if(a[s]===o)return s;return-1}}var NF=PF(1,Yf,kF),lee=PF(-1,OF);function Jb(e,r,t){var a=Ta(e)?Yf:TF,o=a(e,r,t);if(o!==void 0&&o!==-1)return e[o]}function jF(e,r){return Jb(e,sl(r))}function Fi(e,r,t){r=Pl(r,t);var a,o;if(Ta(e))for(a=0,o=e.length;a<o;a++)r(e[a],a,e);else{var s=un(e);for(a=0,o=s.length;a<o;a++)r(e[s[a]],s[a],e)}return e}function Ko(e,r,t){r=ha(r,t);for(var a=!Ta(e)&&un(e),o=(a||e).length,s=Array(o),u=0;u<o;u++){var v=a?a[u]:u;s[u]=r(e[v],v,e)}return s}function qF(e){var r=function(t,a,o,s){var u=!Ta(t)&&un(t),v=(u||t).length,d=e>0?0:v-1;for(s||(o=t[u?u[d]:d],d+=e);d>=0&&d<v;d+=e){var h=u?u[d]:d;o=a(o,t[h],h,t)}return o};return function(t,a,o,s){var u=arguments.length>=3;return r(t,Pl(a,s,4),o,u)}}var yb=qF(1),RD=qF(-1);function Gs(e,r,t){var a=[];return r=ha(r,t),Fi(e,function(o,s,u){r(o,s,u)&&a.push(o)}),a}function cee(e,r,t){return Gs(e,SS(ha(r)),t)}function OD(e,r,t){r=ha(r,t);for(var a=!Ta(e)&&un(e),o=(a||e).length,s=0;s<o;s++){var u=a?a[s]:s;if(!r(e[u],u,e))return!1}return!0}function kD(e,r,t){r=ha(r,t);for(var a=!Ta(e)&&un(e),o=(a||e).length,s=0;s<o;s++){var u=a?a[s]:s;if(r(e[u],u,e))return!0}return!1}function Ui(e,r,t,a){return Ta(e)||(e=ps(e)),(typeof t!="number"||a)&&(t=0),NF(e,r,t)>=0}var fee=la(function(e,r,t){var a,o;return Yn(r)?o=r:(r=kl(r),a=r.slice(0,-1),r=r[r.length-1]),Ko(e,function(s){var u=o;if(!u){if(a&&a.length&&(s=mS(s,a)),s==null)return;u=s[r]}return u==null?u:u.apply(s,t)})});function wS(e,r){return Ko(e,bS(r))}function DF(e,r){return Gs(e,sl(r))}function ES(e,r,t){var a=-1/0,o=-1/0,s,u;if(r==null||typeof r=="number"&&typeof e[0]!="object"&&e!=null){e=Ta(e)?e:ps(e);for(var v=0,d=e.length;v<d;v++)s=e[v],s!=null&&s>a&&(a=s)}else r=ha(r,t),Fi(e,function(h,f,c){u=r(h,f,c),(u>o||u===-1/0&&a===-1/0)&&(a=h,o=u)});return a}function dee(e,r,t){var a=1/0,o=1/0,s,u;if(r==null||typeof r=="number"&&typeof e[0]!="object"&&e!=null){e=Ta(e)?e:ps(e);for(var v=0,d=e.length;v<d;v++)s=e[v],s!=null&&s<a&&(a=s)}else r=ha(r,t),Fi(e,function(h,f,c){u=r(h,f,c),(u<o||u===1/0&&a===1/0)&&(a=h,o=u)});return a}var hee=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function LF(e){return e?vs(e)?Rl.call(e):cS(e)?e.match(hee):Ta(e)?Ko(e,yS):ps(e):[]}function MF(e,r,t){if(r==null||t)return Ta(e)||(e=ps(e)),e[Yb(e.length-1)];var a=LF(e),o=ca(a);r=Math.max(Math.min(r,o),0);for(var s=o-1,u=0;u<r;u++){var v=Yb(u,s),d=a[u];a[u]=a[v],a[v]=d}return a.slice(0,r)}function UF(e){return MF(e,1/0)}function FF(e,r,t){var a=0;return r=ha(r,t),wS(Ko(e,function(o,s,u){return{value:o,index:a++,criteria:r(o,s,u)}}).sort(function(o,s){var u=o.criteria,v=s.criteria;if(u!==v){if(u>v||u===void 0)return 1;if(u<v||v===void 0)return-1}return o.index-s.index}),"value")}function Jf(e,r){return function(t,a,o){var s=r?[[],[]]:{};return a=ha(a,o),Fi(t,function(u,v){var d=a(u,v,t);e(s,u,d)}),s}}var BF=Jf(function(e,r,t){Io(e,t)?e[t].push(r):e[t]=[r]}),vee=Jf(function(e,r,t){e[t]=r}),$F=Jf(function(e,r,t){Io(e,t)?e[t]++:e[t]=1}),pee=Jf(function(e,r,t){e[t?0:1].push(r)},!0);function gee(e){return e==null?0:Ta(e)?e.length:un(e).length}function mee(e,r,t){return r in t}var CS=la(function(e,r){var t={},a=r[0];if(e==null)return t;Yn(a)?(r.length>1&&(a=Pl(a,r[1])),r=Ol(e)):(a=mee,r=gs(r,!1,!1),e=Object(e));for(var o=0,s=r.length;o<s;o++){var u=r[o],v=e[u];a(v,u,e)&&(t[u]=v)}return t}),zF=la(function(e,r){var t=r[0],a;return Yn(t)?(t=SS(t),r.length>1&&(a=r[1])):(r=Ko(gs(r,!1,!1),String),t=function(o,s){return!Ui(r,s)}),CS(e,t,a)});function ZF(e,r,t){return Rl.call(e,0,Math.max(0,e.length-(r==null||t?1:r)))}function il(e,r,t){return e==null||e.length<1?r==null||t?void 0:[]:r==null||t?e[0]:ZF(e,e.length-r)}function Jc(e,r,t){return Rl.call(e,r==null||t?1:r)}function Xb(e,r,t){return e==null||e.length<1?r==null||t?void 0:[]:r==null||t?e[e.length-1]:Jc(e,Math.max(0,e.length-r))}function yee(e){return Gs(e,Boolean)}function Qb(e,r){return gs(e,r,!1)}var HF=la(function(e,r){return r=gs(r,!0,!0),Gs(e,function(t){return!Ui(r,t)})}),bee=la(function(e,r){return HF(e,r)});function rf(e,r,t,a){WU(r)||(a=t,t=r,r=!1),t!=null&&(t=ha(t,a));for(var o=[],s=[],u=0,v=ca(e);u<v;u++){var d=e[u],h=t?t(d,u,e):d;r&&!t?((!u||s!==h)&&o.push(d),s=h):t?Ui(s,h)||(s.push(h),o.push(d)):Ui(o,d)||o.push(d)}return o}var _ee=la(function(e){return rf(gs(e,!0,!0))});function VF(e){for(var r=[],t=arguments.length,a=0,o=ca(e);a<o;a++){var s=e[a];if(!Ui(r,s)){var u;for(u=1;u<t&&Ui(arguments[u],s);u++);u===t&&r.push(s)}}return r}function e_(e){for(var r=e&&ES(e,ca).length||0,t=Array(r),a=0;a<r;a++)t[a]=wS(e,a);return t}var See=la(e_);function wee(e,r){for(var t={},a=0,o=ca(e);a<o;a++)r?t[e[a]]=r[a]:t[e[a][0]]=e[a][1];return t}function Eee(e,r,t){r==null&&(r=e||0,e=0),t||(t=r<e?-1:1);for(var a=Math.max(Math.ceil((r-e)/t),0),o=Array(a),s=0;s<a;s++,e+=t)o[s]=e;return o}function GF(e,r){if(r==null||r<1)return[];for(var t=[],a=0,o=e.length;a<o;)t.push(Rl.call(e,a,a+=r));return t}function xS(e,r){return e._chain?vt(r).chain():r}function WF(e){return Fi(Kb(e),function(r){var t=vt[r]=e[r];vt.prototype[r]=function(){var a=[this._wrapped];return oQ.apply(a,arguments),xS(this,t.apply(vt,a))}}),vt}Fi(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var r=Kf[e];vt.prototype[e]=function(){var t=this._wrapped;return t!=null&&(r.apply(t,arguments),(e==="shift"||e==="splice")&&t.length===0&&delete t[0]),xS(this,t)}});Fi(["concat","join","slice"],function(e){var r=Kf[e];vt.prototype[e]=function(){var t=this._wrapped;return t!=null&&(t=r.apply(t,arguments)),xS(this,t)}});var Cee={__proto__:null,VERSION:ZU,restArguments:la,isObject:xo,isNull:hQ,isUndefined:GU,isBoolean:WU,isElement:vQ,isString:cS,isNumber:KU,isDate:pQ,isRegExp:gQ,isError:mQ,isSymbol:YU,isArrayBuffer:JU,isDataView:Xc,isArray:vs,isFunction:Yn,isArguments:dS,isFinite:SQ,isNaN:rF,isTypedArray:iF,isEmpty:sF,isMatch:uF,isEqual:cF,isMap:TQ,isWeakMap:RQ,isSet:OQ,isWeakSet:kQ,keys:un,allKeys:Ol,values:ps,pairs:PQ,invert:vF,functions:Kb,methods:Kb,extend:pF,extendOwn:ef,assign:ef,defaults:gF,create:jQ,clone:qQ,tap:DQ,get:bF,has:LQ,mapObject:MQ,identity:yS,constant:tF,noop:SF,toPath:yF,property:bS,propertyOf:UQ,matcher:sl,matches:sl,times:FQ,random:Yb,now:ul,escape:BQ,unescape:zQ,templateSettings:ZQ,template:KQ,result:YQ,uniqueId:XQ,chain:QQ,iteratee:_S,partial:hu,bind:xF,bindAll:eee,memoize:ree,delay:IF,defer:tee,throttle:nee,debounce:aee,wrap:iee,negate:SS,compose:oee,after:see,before:AF,once:uee,findKey:TF,findIndex:Yf,findLastIndex:OF,sortedIndex:kF,indexOf:NF,lastIndexOf:lee,find:Jb,detect:Jb,findWhere:jF,each:Fi,forEach:Fi,map:Ko,collect:Ko,reduce:yb,foldl:yb,inject:yb,reduceRight:RD,foldr:RD,filter:Gs,select:Gs,reject:cee,every:OD,all:OD,some:kD,any:kD,contains:Ui,includes:Ui,include:Ui,invoke:fee,pluck:wS,where:DF,max:ES,min:dee,shuffle:UF,sample:MF,sortBy:FF,groupBy:BF,indexBy:vee,countBy:$F,partition:pee,toArray:LF,size:gee,pick:CS,omit:zF,first:il,head:il,take:il,initial:ZF,last:Xb,rest:Jc,tail:Jc,drop:Jc,compact:yee,flatten:Qb,without:bee,uniq:rf,unique:rf,union:_ee,intersection:VF,difference:HF,unzip:e_,transpose:e_,zip:See,object:wee,range:Eee,chunk:GF,mixin:WF,default:vt},PD=WF(Cee);PD._=PD;const ll={isEmpty(e){return sF(e)},values(e){return ps(e)},keys(e){return un(e)},deepClone(e){return AX(e)},getEnumKeys(e){return Object.keys(e).filter(r=>!(parseInt(r)>=0))},isObject(e){return xo(e)},isEqual(e,r){return cF(e,r)},omit(e,r){return zF(e,r)},pick(e,r){return CS(e,r)},removeEmptyKeys(e){return Object.entries(e).filter(([,r])=>r!=null).reduce((r,[t,a])=>({...r,[t]:a}),{})},flattenObjectToString(e,r="",t=","){return Object.keys(e).sort().map(a=>{const o=r?`${r}.${a}`:a;return typeof e[a]=="object"&&!Array.isArray(e[a])?ll.flattenObjectToString(e[a],o):`${o}:${e[a]}`}).join(t)},get(e,r,t){return FX(e,r,t)},swapKeysAndValues(e){return Object.entries(e).reduce((r,[t,a])=>({...r,[a]:t}),{})},merge(e,r){return iQ({},e,r)}};var Zo=(e=>(e[e.Unclassified=0]="Unclassified",e[e.Active=1]="Active",e[e.Prospect=2]="Prospect",e[e.LostCustomer=3]="LostCustomer",e[e.Disabled=4]="Disabled",e[e.Other=5]="Other",e))(Zo||{}),yo=(e=>(e.Unclassified="Unclassified",e.Active="Active",e.Prospect="Prospect",e.LostCustomer="LostCustomer",e.Disabled="Disabled",e.Other="Other",e))(yo||{});const KF={[ba.Unclassified]:At.Unclassified,[ba.Primary]:At.Primary,[ba.Secondary]:At.Secondary,[ba.K12]:At.K12,[ba.Tertiary]:At.Tertiary,[ba.NonEducational]:At.NonEducational,[ba.Partners]:At.Partners,[ba.Internal]:At.Internal,[ba.Other]:At.Other,[ba.ClickView]:At.ClickView,[ba.System]:At.System},xee=ll.swapKeysAndValues(KF),Iee={[yo.Unclassified]:Zo.Unclassified,[yo.Active]:Zo.Active,[yo.Prospect]:Zo.Prospect,[yo.LostCustomer]:Zo.LostCustomer,[yo.Disabled]:Zo.Disabled,[yo.Other]:Zo.Other},Aee=ll.swapKeysAndValues(Iee),YF={getCustomerType(e){return typeof e=="string"?KF[e]||At.Unclassified:e},getCustomerTypeString(e){return xee[e]||ba.Unclassified},getCustomerStatusString(e){return Aee[e]||yo.Unclassified}};function Tee(e){switch(e.errorCode.toString()){case"user.invalid-first-name":case"user.invalid-surname":return{fullName:e.userMessage};case"user.invalid-password":case"user.same-password":case"user.password-too-short":return{password:e.userMessage};case"user.invalid-jobtitle":return{default:e.userMessage};default:return{}}}function Ree(e){var f;const[r,t]=Nr.useState(!1),[a,o]=Nr.useState({}),{productName:s}=za.getDefinition(e.theme);function u(c){const{jobTitle:_,password:E,confirmPassword:S}=c,{firstName:w,surname:T}=c,b={},[I,m]=gi.isPasswordValid(E,S,e.requireConfirmPassword);return I||(b.password=m),e.allowNameChange&&(!w||!T)&&(b.fullName="Please enter your full name."),e.allowJobTitleChange&&!(_!=null&&_.length)&&(b.jobTitle="Please enter your role.."),o({...a,...b}),!Object.keys(b).length}function v(c){if(!u(c))return;const _={token:e.token,appLink:e.appLink,userId:e.userId,email:e.email,password:c.password};e.allowNameChange&&(_.firstName=c.firstName,_.surname=c.surname),e.allowJobTitleChange&&(_.jobTitle=c.jobTitle),t(!0),dt.post("/ajax/activate/complete",_).then(E=>Pt(E,e)).catch(d)}function d(c){t(!1);const _=Tee(c);o({...a,..._})}const h=(f=e.customers)==null?void 0:f.some(c=>YF.getCustomerType(c.customerType)===At.Tertiary);return A.jsxs(A.Fragment,{children:[A.jsx(yt,{theme:e.theme,title:`Welcome to ${s}`,children:"Create a password to login and get started"}),A.jsx(yJ,{allowNameChange:e.allowNameChange,allowJobTitleChange:e.allowJobTitleChange,errors:a,setErrors:o,onSubmit:v,spinner:r,requireConfirmPassword:e.requireConfirmPassword,countryCode:e.countryCode,isTertiary:h})]})}function Oee(e){return A.jsx("div",{className:`svg-container d-flex justify-content-center align-items-center ${e.className}`,children:A.jsx("svg",{viewBox:"0 0 24 24",children:A.jsx("path",{d:"M18.7827 5.19245C19.0472 5.47531 19.074 5.96669 18.8425 6.28996L9.93345 18.7344C9.81748 18.8964 9.65175 18.9924 9.47572 18.9996C9.29969 19.0067 9.12911 18.9244 9.00457 18.7722L5.18639 14.1055C4.93787 13.8018 4.93787 13.3093 5.18639 13.0056C5.4349 12.7019 5.83783 12.7019 6.08634 13.0056L9.42354 17.0844L17.8847 5.26562C18.1161 4.94235 18.5182 4.90959 18.7827 5.19245Z"})})})}const kee="_name_1lm04_1",Pee="_spinnerButton_1lm04_7",Nee="_containerNotJoined_1lm04_11",jee="_checkCircle_1lm04_18",qee="_checkIcon_1lm04_22",Dee="_logo_1lm04_27",Us={name:kee,spinnerButton:Pee,containerNotJoined:Nee,checkCircle:jee,checkIcon:qee,logo:Dee};function Lee(e){const[r,t]=je.useState(!1),[a,o]=je.useState(!1),[s,u]=je.useState(!1);let v;typeof e.icon=="function"?v=e.icon:v=()=>A.jsx("img",{alt:"icon",className:"w-100 h-100 border rounded-circle border",src:e.icon});function d(){t(!0),e.onClickJoin().then(()=>o(!0)).finally(()=>t(!1))}function h(){const f="py-2 btn btn-lg mb-3 w-100";return a?{onClick:e.onClickLogin,role:"button",tabIndex:0,className:`${f} bg-light-blue`}:{className:`${f} bg-light-blue cursor-default ${Us.containerNotJoined}`}}return A.jsx("div",{...h(),children:A.jsxs("div",{className:"py-1 d-flex align-items-center",children:[!s&&A.jsxs(A.Fragment,{children:[A.jsx("span",{className:`icon-circle rounded-circle text-white me-2 bg-blue d-flex justify-content-center align-items-center ${Us.logo}`,children:A.jsx(v,{})}),A.jsx("span",{className:`h6 mb-0 text-start me-2 ${Us.name}`,children:e.customerName})]}),a&&A.jsxs("div",{className:"d-flex align-items-center ms-auto",children:[A.jsx("div",{className:`rounded-circle bg-green text-white me-2 d-flex align-items-center justify-content-center ${Us.checkCircle}`,children:A.jsx(Oee,{className:Us.checkIcon})}),A.jsx("div",{className:"font-size-normal fw-semibold",children:"Joined"}),A.jsx("span",{className:"ms-1",children:A.jsx(V_,{})})]}),!a&&!s&&A.jsxs("span",{className:"ms-auto d-flex align-items-center",children:[A.jsx(gn,{onClick:d,className:`btn btn-outline-dark font-weight-600 text-nowrap ${Us.spinnerButton}`,showSpinner:r,children:"Accept invite"}),e.canDeletePendingInvites&&A.jsx("button",{onClick:()=>u(!0),className:"btn btn-link p-0 mx-1",children:A.jsx("div",{className:"svg-container",children:A.jsx(nU,{})})})]}),!a&&s&&A.jsxs("div",{className:"font-size-normal d-flex align-items-center text-nowrap py-1",children:[A.jsx("div",{children:"Are you sure?"})," ",A.jsx("button",{className:"btn btn-link text-danger p-0",onClick:e.onClickReject,children:"Decline invitation"})," | ",A.jsx("button",{className:"btn btn-link text-info p-0",onClick:()=>u(!1),children:"Go back"})]})]})})}function Mee(e){var R;const{navigate:r,customers:t,returnUrl:a,isChangeCustomer:o,organisation:s,backStep:u,email:v}=e,[d,h]=Nr.useState(null),[f,c]=Nr.useState(null),[_,E]=Nr.useState([]),S=((R=e.pendingInvites)==null?void 0:R.filter(O=>!_.includes(O.customerId)))??[],w=!!s&&!u;function T(){if(!v){r({step:"verify-email",canSkip:!1});return}e.navigate({step:"prospect-select",backStep:"select-customer"})}function b(O){const j=o?"/ajax/change-customer":"/ajax/login/select-customer";dt.post(j,{customerId:O,returnUrl:a}).then(k=>Pt(k,e,{backStep:"select-customer"})).catch(k=>{c(k.userMessage||"Something went wrong. Please try again.")})}function I(O){b(O.id)}function m(){d&&b(d.id)}function p(O){return new Promise((j,k)=>{dt.post("/ajax/login/accept-invite",{userProfileId:O}).then(j).catch(N=>{c(N.userMessage||"Something went wrong. Please try again."),k()})})}function y(O,j){dt.post("/ajax/login/deny-invite",{userProfileId:j}).then(()=>{E(k=>k.concat(O))}).catch(k=>{c(k.userMessage||"Something went wrong. Please try again.")})}function g(){r({step:"organisation-select-customer",backStep:"select-customer"})}function x(){r({step:u,backStep:null})}return A.jsxs("div",{children:[A.jsx(yt,{theme:e.theme,onClickBack:u&&x,title:`Welcome back ${e.firstName||""} 👋`,children:!!e.email&&A.jsx(K_,{children:e.email})}),A.jsx("p",{className:"font-weight-600 mb-1",children:"Schools"}),t!=null&&t.length?A.jsx(A.Fragment,{children:t.length>4?A.jsxs(A.Fragment,{children:[A.jsx("div",{className:"mb-3",children:A.jsx(Il,{id:"school",item:d,items:t,onSelect:h,getName:O=>O.name,clearData:()=>h(null),placeholder:"Select a school",size:"lg"})}),A.jsx("button",{className:"btn btn-lg btn-dark w-100 mb-3",disabled:!d,onClick:m,children:"Continue"})]}):A.jsx(A.Fragment,{children:t==null?void 0:t.map((O,j)=>A.jsx(G_,{onClick:()=>I(O),text:O.name,icon:Zs.buildAvatarUrl(O.logoUrl,{size:"small"})||al,className:"mb-3"},j))})}):A.jsxs("div",{className:"border border-secondary-subtle rounded-3 w-100 p-3 mb-3 d-flex align-items-center",children:[A.jsx("span",{className:"icon-circle rounded-circle text-white me-2 bg-secondary d-flex justify-content-center align-items-center",children:A.jsx(al,{})}),A.jsx("span",{className:"mb-0 fst-italic text-secondary",children:"You currently don't have access to any schools"})]}),!!(S!=null&&S.length)&&A.jsxs("div",{children:[A.jsx("p",{className:"font-weight-600 mb-1",children:"Pending Invitations"}),S.map(O=>A.jsx(Lee,{customerName:O.name,icon:Zs.buildAvatarUrl(O.logoUrl,{size:"small"})||al,onClickJoin:()=>p(O.userProfileId),onClickReject:()=>y(O.customerId,O.userProfileId),onClickLogin:()=>b(O.customerId),canDeletePendingInvites:e.canDeletePendingInvites},O.userProfileId))]}),!(t!=null&&t.length)&&A.jsxs(A.Fragment,{children:[A.jsxs("div",{className:"mb-3",children:[A.jsx("p",{className:"font-weight-600 mb-1",children:"Waiting on a school admin?"}),A.jsx("p",{className:"text-secondary mb-0",children:v?A.jsxs(A.Fragment,{children:["Ask them to invite ",A.jsx("strong",{children:v})," to access your school."]}):A.jsx(A.Fragment,{children:"Speak to your school admin to get added in their ClickView admin console."})})]}),e.showCreateProspect&&A.jsx("hr",{}),e.showCreateProspect&&A.jsxs("div",{className:"d-flex align-items-center justify-content-between mb-3",children:[A.jsxs("div",{children:[A.jsx("p",{className:"font-weight-600 mb-1",children:"Evaluating ClickView on your own?"}),A.jsx("p",{className:"text-secondary mb-0",children:"Start a free trial."})]}),A.jsx("button",{className:"btn btn-outline-dark font-weight-600 text-nowrap ms-3",onClick:T,children:"Start trial"})]}),!w&&bo.contactSupport&&A.jsxs("p",{className:"text-center text-secondary mt-5",children:["Stuck, or think this is wrong? ",A.jsx("a",{href:bo.contactSupport,target:"_blank",children:"Contact support"})]})]}),w&&A.jsx("div",{className:"text-center mt-3",children:A.jsxs("button",{className:"btn btn-link text-info",onClick:g,children:["Sign into another school in ",A.jsx("strong",{children:s.name})]})}),f&&A.jsx("div",{className:"text-danger text-center",children:f})]})}const ND=bo.marketingSite,jD={[Ze.NZ]:"/contact-us/",[Ze.UK]:"/contact-us/trial/",[Ze.AU]:"/contact-us/sales",[Ze.US]:"/contact-us/sales",[Ze.CA]:"/contact-us/sales"};function JF(e,r){const{email:t,firstName:a,surname:o,salesforceId:s,countryCode:u}=e;if(!t)return null;const v=ND[u.toLowerCase()]||ND[Ze.US];if(!v)return null;const d={email:t};a&&(d.fname=a),o&&(d.sname=o),s&&(d.id=s);const h=new URLSearchParams(d).toString();return`${v}${r}?${h}`}function Uee(e){const r=jD[e.countryCode.toLowerCase()]||jD[Ze.US];return r?JF(e,r):null}function Fee(e){return JF(e,"/contact-us/trial-upgrade/")}function Bee(e){return!(!e||e.toLowerCase()==="teacher")}const qD={[Ze.AU]:"02 9509 2600",[Ze.UK]:"+44 (0)333 207 6595",[Ze.NZ]:"09 916 1156",[Ze.US]:"+1 (312) 763-9491",[Ze.CA]:"+1 (312) 763-9491"};function $ee(e){const{email:r,firstName:t,surname:a,jobTitle:o,countryCode:s,salesforceId:u,userType:v}=e,d={email:r,firstName:t,surname:a,countryCode:s,salesforceId:u},h=qD[s.toLowerCase()]||qD[Ze.US],f=Uee(d),c=Fee(d),{productName:_}=za.getDefinition(e.theme);return A.jsxs("div",{className:"text-center",children:[A.jsx(yt,{theme:e.theme}),A.jsx("img",{className:"img-fluid mb-4",alt:"error",src:"/images/errors/trial-expired.png"}),A.jsxs("h1",{className:"h2",children:["Your ",_," trial has ended"]}),v==="Learner"?A.jsx(A.Fragment,{}):A.jsxs(A.Fragment,{children:[A.jsxs("p",{children:["Learn more about how to upgrade and access all features available on ",_,"."]}),A.jsx("div",{className:"text-center",children:f&&Bee(o)?A.jsx("a",{href:f,className:"btn btn-lg btn-dark",children:"Book a call"}):A.jsxs(A.Fragment,{children:[A.jsx("a",{href:c,className:"btn btn-lg btn-dark w-100",children:"Request upgrade"}),h&&A.jsxs("p",{children:["or ",A.jsx("br",{}),"Speak to a team member on ",A.jsx("b",{children:A.jsx("a",{href:`tel:${h}`,children:h})})]})]})})]})]})}var bb={},_b={},Ku={exports:{}},Ho={exports:{}},zee=Ho.exports,DD;function Zee(){return DD||(DD=1,(function(){var e,r,t,a,o,s;typeof performance<"u"&&performance!==null&&performance.now?Ho.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(Ho.exports=function(){return(e()-o)/1e6},r=process.hrtime,e=function(){var u;return u=r(),u[0]*1e9+u[1]},a=e(),s=process.uptime()*1e9,o=a-s):Date.now?(Ho.exports=function(){return Date.now()-t},t=Date.now()):(Ho.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(zee)),Ho.exports}var LD;function Hee(){if(LD)return Ku.exports;LD=1;for(var e=Zee(),r=typeof window>"u"?globalThis:window,t=["moz","webkit"],a="AnimationFrame",o=r["request"+a],s=r["cancel"+a]||r["cancelRequest"+a],u=0;!o&&u<t.length;u++)o=r[t[u]+"Request"+a],s=r[t[u]+"Cancel"+a]||r[t[u]+"CancelRequest"+a];if(!o||!s){var v=0,d=0,h=[],f=1e3/60;o=function(c){if(h.length===0){var _=e(),E=Math.max(0,f-(_-v));v=E+_,setTimeout(function(){var S=h.slice(0);h.length=0;for(var w=0;w<S.length;w++)if(!S[w].cancelled)try{S[w].callback(v)}catch(T){setTimeout(function(){throw T},0)}},Math.round(E))}return h.push({handle:++d,callback:c,cancelled:!1}),d},s=function(c){for(var _=0;_<h.length;_++)h[_].handle===c&&(h[_].cancelled=!0)}}return Ku.exports=function(c){return o.call(r,c)},Ku.exports.cancel=function(){s.apply(r,arguments)},Ku.exports.polyfill=function(c){c||(c=r),c.requestAnimationFrame=o,c.cancelAnimationFrame=s},Ku.exports}var Yu={exports:{}},Sb,MD;function Vee(){if(MD)return Sb;MD=1;var e=null,r=["Webkit","Moz","O","ms"];return Sb=function(a){e||(e=document.createElement("div"));var o=e.style;if(a in o)return a;for(var s=a.charAt(0).toUpperCase()+a.slice(1),u=r.length;u>=0;u--){var v=r[u]+s;if(v in o)return v}return!1},Sb}var wb,UD;function Gee(){if(UD)return wb;UD=1,wb=a;var e=/\s/,r=/(_|-|\.|:)/,t=/([a-z][A-Z]|[A-Z][a-z])/;function a(d){return e.test(d)?d.toLowerCase():r.test(d)?(s(d)||d).toLowerCase():t.test(d)?v(d).toLowerCase():d.toLowerCase()}var o=/[\W_]+(.|$)/g;function s(d){return d.replace(o,function(h,f){return f?" "+f:""})}var u=/(.)([A-Z]+)/g;function v(d){return d.replace(u,function(h,f,c){return f+" "+c.toLowerCase().split("").join(" ")})}return wb}var Eb,FD;function Wee(){if(FD)return Eb;FD=1;var e=Gee();Eb=r;function r(t){return e(t).replace(/[\W_]+(.|$)/g,function(a,o){return o?" "+o:""}).trim()}return Eb}var Cb,BD;function Kee(){if(BD)return Cb;BD=1;var e=Wee();Cb=r;function r(t){return e(t).replace(/\s(\w)/g,function(a,o){return o.toUpperCase()})}return Cb}var xb,$D;function Yee(){if($D)return xb;$D=1;var e={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};return xb=function(r,t){return typeof t=="number"&&!e[r]?t+"px":t},xb}var zD;function XF(){if(zD)return Yu.exports;zD=1;var e=Vee(),r=Kee(),t={float:"cssFloat"},a=Yee();function o(d,h,f){var c=t[h];if(typeof c>"u"&&(c=u(h)),c){if(f===void 0)return d.style[c];d.style[c]=a(c,f)}}function s(d,h){for(var f in h)h.hasOwnProperty(f)&&o(d,f,h[f])}function u(d){var h=r(d),f=e(h);return t[h]=t[d]=t[f]=f,f}function v(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:s(arguments[0],arguments[1]):o(arguments[0],arguments[1],arguments[2])}return Yu.exports=v,Yu.exports.set=v,Yu.exports.get=function(d,h){return Array.isArray(h)?h.reduce(function(f,c){return f[c]=o(d,c||""),f},{}):o(d,h||"")},Yu.exports}var Ib={exports:{}},Ab,ZD;function Jee(){if(ZD)return Ab;ZD=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ab=e,Ab}var Tb,HD;function Xee(){if(HD)return Tb;HD=1;var e=Jee();function r(){}function t(){}return t.resetWarningCache=r,Tb=function(){function a(u,v,d,h,f,c){if(c!==e){var _=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw _.name="Invariant Violation",_}}a.isRequired=a;function o(){return a}var s={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:o,element:a,elementType:a,instanceOf:o,node:a,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:t,resetWarningCache:r};return s.PropTypes=s,s},Tb}var VD;function Qee(){return VD||(VD=1,Ib.exports=Xee()()),Ib.exports}var Rb={},GD;function ere(){return GD||(GD=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(t){return typeof t=="string"}})(Rb)),Rb}var Ob={},WD;function rre(){return WD||(WD=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var r=XF(),t=a(r);function a(u){return u&&u.__esModule?u:{default:u}}var o=!1;function s(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(u&&o!==!1)return o;if(typeof document<"u"){var v=document.createElement("div");(0,t.default)(v,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(v),o=v.offsetWidth-v.clientWidth,document.body.removeChild(v)}else o=0;return o||0}})(Ob)),Ob}var kb={},KD;function tre(){return KD||(KD=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(){return!1}})(kb)),kb}var Pb={},YD;function nre(){return YD||(YD=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(t){var a=t.clientWidth,o=getComputedStyle(t),s=o.paddingLeft,u=o.paddingRight;return a-parseFloat(s)-parseFloat(u)}})(Pb)),Pb}var Nb={},JD;function are(){return JD||(JD=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;function r(t){var a=t.clientHeight,o=getComputedStyle(t),s=o.paddingTop,u=o.paddingBottom;return a-parseFloat(s)-parseFloat(u)}})(Nb)),Nb}var ua={},XD;function ire(){return XD||(XD=1,Object.defineProperty(ua,"__esModule",{value:!0}),ua.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},ua.containerStyleAutoHeight={height:"auto"},ua.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},ua.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},ua.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},ua.trackHorizontalStyleDefault={position:"absolute",height:6},ua.trackVerticalStyleDefault={position:"absolute",width:6},ua.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},ua.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},ua.disableSelectStyle={userSelect:"none"},ua.disableSelectStyleReset={userSelect:""}),ua}var go={},QD;function ore(){if(QD)return go;QD=1,Object.defineProperty(go,"__esModule",{value:!0});var e=Object.assign||function(f){for(var c=1;c<arguments.length;c++){var _=arguments[c];for(var E in _)Object.prototype.hasOwnProperty.call(_,E)&&(f[E]=_[E])}return f};go.renderViewDefault=s,go.renderTrackHorizontalDefault=u,go.renderTrackVerticalDefault=v,go.renderThumbHorizontalDefault=d,go.renderThumbVerticalDefault=h;var r=Cl(),t=a(r);function a(f){return f&&f.__esModule?f:{default:f}}function o(f,c){var _={};for(var E in f)c.indexOf(E)>=0||Object.prototype.hasOwnProperty.call(f,E)&&(_[E]=f[E]);return _}function s(f){return t.default.createElement("div",f)}function u(f){var c=f.style,_=o(f,["style"]),E=e({},c,{right:2,bottom:2,left:2,borderRadius:3});return t.default.createElement("div",e({style:E},_))}function v(f){var c=f.style,_=o(f,["style"]),E=e({},c,{right:2,bottom:2,top:2,borderRadius:3});return t.default.createElement("div",e({style:E},_))}function d(f){var c=f.style,_=o(f,["style"]),E=e({},c,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return t.default.createElement("div",e({style:E},_))}function h(f){var c=f.style,_=o(f,["style"]),E=e({},c,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return t.default.createElement("div",e({style:E},_))}return go}var eL;function sre(){return eL||(eL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(N){for(var D=1;D<arguments.length;D++){var U=arguments[D];for(var B in U)Object.prototype.hasOwnProperty.call(U,B)&&(N[B]=U[B])}return N},t=(function(){function N(D,U){for(var B=0;B<U.length;B++){var H=U[B];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(D,H.key,H)}}return function(D,U,B){return U&&N(D.prototype,U),B&&N(D,B),D}})(),a=Hee(),o=g(a),s=XF(),u=g(s),v=Cl(),d=Qee(),h=g(d),f=ere(),c=g(f),_=rre(),E=g(_),S=tre(),w=g(S),T=nre(),b=g(T),I=are(),m=g(I),p=ire(),y=ore();function g(N){return N&&N.__esModule?N:{default:N}}function x(N,D){var U={};for(var B in N)D.indexOf(B)>=0||Object.prototype.hasOwnProperty.call(N,B)&&(U[B]=N[B]);return U}function R(N,D){if(!(N instanceof D))throw new TypeError("Cannot call a class as a function")}function O(N,D){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:N}function j(N,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);N.prototype=Object.create(D&&D.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(N,D):N.__proto__=D)}var k=(function(N){j(D,N);function D(U){var B;R(this,D);for(var H=arguments.length,G=Array(H>1?H-1:0),$=1;$<H;$++)G[$-1]=arguments[$];var M=O(this,(B=D.__proto__||Object.getPrototypeOf(D)).call.apply(B,[this,U].concat(G)));return M.getScrollLeft=M.getScrollLeft.bind(M),M.getScrollTop=M.getScrollTop.bind(M),M.getScrollWidth=M.getScrollWidth.bind(M),M.getScrollHeight=M.getScrollHeight.bind(M),M.getClientWidth=M.getClientWidth.bind(M),M.getClientHeight=M.getClientHeight.bind(M),M.getValues=M.getValues.bind(M),M.getThumbHorizontalWidth=M.getThumbHorizontalWidth.bind(M),M.getThumbVerticalHeight=M.getThumbVerticalHeight.bind(M),M.getScrollLeftForOffset=M.getScrollLeftForOffset.bind(M),M.getScrollTopForOffset=M.getScrollTopForOffset.bind(M),M.scrollLeft=M.scrollLeft.bind(M),M.scrollTop=M.scrollTop.bind(M),M.scrollToLeft=M.scrollToLeft.bind(M),M.scrollToTop=M.scrollToTop.bind(M),M.scrollToRight=M.scrollToRight.bind(M),M.scrollToBottom=M.scrollToBottom.bind(M),M.handleTrackMouseEnter=M.handleTrackMouseEnter.bind(M),M.handleTrackMouseLeave=M.handleTrackMouseLeave.bind(M),M.handleHorizontalTrackMouseDown=M.handleHorizontalTrackMouseDown.bind(M),M.handleVerticalTrackMouseDown=M.handleVerticalTrackMouseDown.bind(M),M.handleHorizontalThumbMouseDown=M.handleHorizontalThumbMouseDown.bind(M),M.handleVerticalThumbMouseDown=M.handleVerticalThumbMouseDown.bind(M),M.handleWindowResize=M.handleWindowResize.bind(M),M.handleScroll=M.handleScroll.bind(M),M.handleDrag=M.handleDrag.bind(M),M.handleDragEnd=M.handleDragEnd.bind(M),M.state={didMountUniversal:!1},M}return t(D,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){var B=this.props.universal;B&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,a.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var B=this.view||{},H=B.scrollLeft,G=H===void 0?0:H,$=B.scrollTop,M=$===void 0?0:$,L=B.scrollWidth,F=L===void 0?0:L,V=B.scrollHeight,ae=V===void 0?0:V,oe=B.clientWidth,_e=oe===void 0?0:oe,he=B.clientHeight,ye=he===void 0?0:he;return{left:G/(F-_e)||0,top:M/(ae-ye)||0,scrollLeft:G,scrollTop:M,scrollWidth:F,scrollHeight:ae,clientWidth:_e,clientHeight:ye}}},{key:"getThumbHorizontalWidth",value:function(){var B=this.props,H=B.thumbSize,G=B.thumbMinSize,$=this.view,M=$.scrollWidth,L=$.clientWidth,F=(0,b.default)(this.trackHorizontal),V=Math.ceil(L/M*F);return F<=V?0:H||Math.max(V,G)}},{key:"getThumbVerticalHeight",value:function(){var B=this.props,H=B.thumbSize,G=B.thumbMinSize,$=this.view,M=$.scrollHeight,L=$.clientHeight,F=(0,m.default)(this.trackVertical),V=Math.ceil(L/M*F);return F<=V?0:H||Math.max(V,G)}},{key:"getScrollLeftForOffset",value:function(B){var H=this.view,G=H.scrollWidth,$=H.clientWidth,M=(0,b.default)(this.trackHorizontal),L=this.getThumbHorizontalWidth();return B/(M-L)*(G-$)}},{key:"getScrollTopForOffset",value:function(B){var H=this.view,G=H.scrollHeight,$=H.clientHeight,M=(0,m.default)(this.trackVertical),L=this.getThumbVerticalHeight();return B/(M-L)*(G-$)}},{key:"scrollLeft",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=B)}},{key:"scrollTop",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=B)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if(!(typeof document>"u"||!this.view)){var B=this.view,H=this.trackHorizontal,G=this.trackVertical,$=this.thumbHorizontal,M=this.thumbVertical;B.addEventListener("scroll",this.handleScroll),(0,E.default)()&&(H.addEventListener("mouseenter",this.handleTrackMouseEnter),H.addEventListener("mouseleave",this.handleTrackMouseLeave),H.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),G.addEventListener("mouseenter",this.handleTrackMouseEnter),G.addEventListener("mouseleave",this.handleTrackMouseLeave),G.addEventListener("mousedown",this.handleVerticalTrackMouseDown),$.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),M.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document>"u"||!this.view)){var B=this.view,H=this.trackHorizontal,G=this.trackVertical,$=this.thumbHorizontal,M=this.thumbVertical;B.removeEventListener("scroll",this.handleScroll),(0,E.default)()&&(H.removeEventListener("mouseenter",this.handleTrackMouseEnter),H.removeEventListener("mouseleave",this.handleTrackMouseLeave),H.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),G.removeEventListener("mouseenter",this.handleTrackMouseEnter),G.removeEventListener("mouseleave",this.handleTrackMouseLeave),G.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),$.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),M.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(B){var H=this,G=this.props,$=G.onScroll,M=G.onScrollFrame;$&&$(B),this.update(function(L){var F=L.scrollLeft,V=L.scrollTop;H.viewScrollLeft=F,H.viewScrollTop=V,M&&M(L)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var B=this.props.onScrollStart;B&&B(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var B=this.props.autoHide;B&&this.showTracks()}},{key:"handleScrollStop",value:function(){var B=this.props.onScrollStop;B&&B(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var B=this.props.autoHide;B&&this.hideTracks()}},{key:"handleWindowResize",value:function(){(0,E.default)(!1),this.forceUpdate()}},{key:"handleHorizontalTrackMouseDown",value:function(B){B.preventDefault();var H=B.target,G=B.clientX,$=H.getBoundingClientRect(),M=$.left,L=this.getThumbHorizontalWidth(),F=Math.abs(M-G)-L/2;this.view.scrollLeft=this.getScrollLeftForOffset(F)}},{key:"handleVerticalTrackMouseDown",value:function(B){B.preventDefault();var H=B.target,G=B.clientY,$=H.getBoundingClientRect(),M=$.top,L=this.getThumbVerticalHeight(),F=Math.abs(M-G)-L/2;this.view.scrollTop=this.getScrollTopForOffset(F)}},{key:"handleHorizontalThumbMouseDown",value:function(B){B.preventDefault(),this.handleDragStart(B);var H=B.target,G=B.clientX,$=H.offsetWidth,M=H.getBoundingClientRect(),L=M.left;this.prevPageX=$-(G-L)}},{key:"handleVerticalThumbMouseDown",value:function(B){B.preventDefault(),this.handleDragStart(B);var H=B.target,G=B.clientY,$=H.offsetHeight,M=H.getBoundingClientRect(),L=M.top;this.prevPageY=$-(G-L)}},{key:"setupDragging",value:function(){(0,u.default)(document.body,p.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=w.default}},{key:"teardownDragging",value:function(){(0,u.default)(document.body,p.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(B){this.dragging=!0,B.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(B){if(this.prevPageX){var H=B.clientX,G=this.trackHorizontal.getBoundingClientRect(),$=G.left,M=this.getThumbHorizontalWidth(),L=M-this.prevPageX,F=-$+H-L;this.view.scrollLeft=this.getScrollLeftForOffset(F)}if(this.prevPageY){var V=B.clientY,ae=this.trackVertical.getBoundingClientRect(),oe=ae.top,_e=this.getThumbVerticalHeight(),he=_e-this.prevPageY,ye=-oe+V-he;this.view.scrollTop=this.getScrollTopForOffset(ye)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){var B=this.props.autoHide;B&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var B=this.props.autoHide;B&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var B=this.props.autoHide;B&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,u.default)(this.trackHorizontal,{opacity:1}),(0,u.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var B=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var H=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,u.default)(B.trackHorizontal,{opacity:0}),(0,u.default)(B.trackVertical,{opacity:0})},H)}}},{key:"detectScrolling",value:function(){var B=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){B.lastViewScrollLeft===B.viewScrollLeft&&B.lastViewScrollTop===B.viewScrollTop&&(clearInterval(B.detectScrollingInterval),B.scrolling=!1,B.handleScrollStop()),B.lastViewScrollLeft=B.viewScrollLeft,B.lastViewScrollTop=B.viewScrollTop},100))}},{key:"raf",value:function(B){var H=this;this.requestFrame&&o.default.cancel(this.requestFrame),this.requestFrame=(0,o.default)(function(){H.requestFrame=void 0,B()})}},{key:"update",value:function(B){var H=this;this.raf(function(){return H._update(B)})}},{key:"_update",value:function(B){var H=this.props,G=H.onUpdate,$=H.hideTracksWhenNotNeeded,M=this.getValues();if((0,E.default)()){var L=M.scrollLeft,F=M.clientWidth,V=M.scrollWidth,ae=(0,b.default)(this.trackHorizontal),oe=this.getThumbHorizontalWidth(),_e=L/(V-F)*(ae-oe),he={width:oe,transform:"translateX("+_e+"px)"},ye=M.scrollTop,ge=M.clientHeight,Re=M.scrollHeight,We=(0,m.default)(this.trackVertical),He=this.getThumbVerticalHeight(),nr=ye/(Re-ge)*(We-He),ar={height:He,transform:"translateY("+nr+"px)"};if($){var xr={visibility:V>F?"visible":"hidden"},or={visibility:Re>ge?"visible":"hidden"};(0,u.default)(this.trackHorizontal,xr),(0,u.default)(this.trackVertical,or)}(0,u.default)(this.thumbHorizontal,he),(0,u.default)(this.thumbVertical,ar)}G&&G(M),typeof B=="function"&&B(M)}},{key:"render",value:function(){var B=this,H=(0,E.default)(),G=this.props;G.onScroll,G.onScrollFrame,G.onScrollStart,G.onScrollStop,G.onUpdate;var $=G.renderView,M=G.renderTrackHorizontal,L=G.renderTrackVertical,F=G.renderThumbHorizontal,V=G.renderThumbVertical,ae=G.tagName;G.hideTracksWhenNotNeeded;var oe=G.autoHide;G.autoHideTimeout;var _e=G.autoHideDuration;G.thumbSize,G.thumbMinSize;var he=G.universal,ye=G.autoHeight,ge=G.autoHeightMin,Re=G.autoHeightMax,We=G.style,He=G.children,nr=x(G,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),ar=this.state.didMountUniversal,xr=r({},p.containerStyleDefault,ye&&r({},p.containerStyleAutoHeight,{minHeight:ge,maxHeight:Re}),We),or=r({},p.viewStyleDefault,{marginRight:H?-H:0,marginBottom:H?-H:0},ye&&r({},p.viewStyleAutoHeight,{minHeight:(0,c.default)(ge)?"calc("+ge+" + "+H+"px)":ge+H,maxHeight:(0,c.default)(Re)?"calc("+Re+" + "+H+"px)":Re+H}),ye&&he&&!ar&&{minHeight:ge,maxHeight:Re},he&&!ar&&p.viewStyleUniversalInitial),lr={transition:"opacity "+_e+"ms",opacity:0},Ve=r({},p.trackHorizontalStyleDefault,oe&&lr,(!H||he&&!ar)&&{display:"none"}),Ge=r({},p.trackVerticalStyleDefault,oe&&lr,(!H||he&&!ar)&&{display:"none"});return(0,v.createElement)(ae,r({},nr,{style:xr,ref:function(Y){B.container=Y}}),[(0,v.cloneElement)($({style:or}),{key:"view",ref:function(Y){B.view=Y}},He),(0,v.cloneElement)(M({style:Ve}),{key:"trackHorizontal",ref:function(Y){B.trackHorizontal=Y}},(0,v.cloneElement)(F({style:p.thumbHorizontalStyleDefault}),{ref:function(Y){B.thumbHorizontal=Y}})),(0,v.cloneElement)(L({style:Ge}),{key:"trackVertical",ref:function(Y){B.trackVertical=Y}},(0,v.cloneElement)(V({style:p.thumbVerticalStyleDefault}),{ref:function(Y){B.thumbVertical=Y}}))])}}]),D})(v.Component);e.default=k,k.propTypes={onScroll:h.default.func,onScrollFrame:h.default.func,onScrollStart:h.default.func,onScrollStop:h.default.func,onUpdate:h.default.func,renderView:h.default.func,renderTrackHorizontal:h.default.func,renderTrackVertical:h.default.func,renderThumbHorizontal:h.default.func,renderThumbVertical:h.default.func,tagName:h.default.string,thumbSize:h.default.number,thumbMinSize:h.default.number,hideTracksWhenNotNeeded:h.default.bool,autoHide:h.default.bool,autoHideTimeout:h.default.number,autoHideDuration:h.default.number,autoHeight:h.default.bool,autoHeightMin:h.default.oneOfType([h.default.number,h.default.string]),autoHeightMax:h.default.oneOfType([h.default.number,h.default.string]),universal:h.default.bool,style:h.default.object,children:h.default.node},k.defaultProps={renderView:y.renderViewDefault,renderTrackHorizontal:y.renderTrackHorizontalDefault,renderTrackVertical:y.renderTrackVerticalDefault,renderThumbHorizontal:y.renderThumbHorizontalDefault,renderThumbVertical:y.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}})(_b)),_b}var rL;function ure(){return rL||(rL=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbars=void 0;var r=sre(),t=a(r);function a(o){return o&&o.__esModule?o:{default:o}}e.default=t.default,e.Scrollbars=t.default})(bb)),bb}var lre=ure();const cre="_avatar_14f3v_1",fre="_circle_14f3v_1",tL={avatar:cre,circle:fre};function r_(e){return e.logoUrl?A.jsx("div",{className:"h-100",children:A.jsx("img",{alt:e.customerName,className:`rounded-circle ${tL.avatar}`,src:e.logoUrl})}):A.jsx("div",{className:`${tL.circle} ${e.colourClass||"bg-ultramarine"} text-white rounded-circle`,children:A.jsx("svg",{viewBox:"0 0 24 24",className:"svg-container lg",children:A.jsx("path",{d:"M 19.53125,14.5438 H 16.9875 v -4.28056 l 0.34144,0.15522 c 0.0629,0.0286 0.12884,0.0421 0.19372,0.0421 0.17815,0 0.34843,-0.10215 0.427,-0.2749 0.10712,-0.23569 0.003,-0.51357 -0.23278,-0.62069 L 12.46875,7.17941 V 5.43956 h 1.53962 c 0.25885,0 0.46875,-0.20987 0.46875,-0.46875 V 4.46875 C 14.47712,4.20987 14.26722,4 14.00837,4 H 12 C 11.74116,4 11.53125,4.20987 11.53125,4.46875 V 7.17941 L 6.28316,9.56494 c -0.23566,0.10712 -0.33991,0.385 -0.23272,0.62068 0.10706,0.23569 0.385,0.33985 0.62065,0.23275 l 0.34144,-0.15521 v 4.28059 H 4.46875 C 4.20991,14.54375 4,14.75362 4,15.0125 v 4.51875 C 4,19.79012 4.20991,20 4.46875,20 h 3.0125 3.0125 3.01244 3.0125 3.01256 C 19.79016,20.00005 20,19.79017 20,19.5313 V 15.01255 C 20,14.75367 19.79016,14.5438 19.53125,14.5438 Z M 7.0125,19.06255 H 4.9375 V 15.4813 h 2.075 z m 6.02497,0 h -2.07494 v -2.07497 h 2.07494 z m 3.01253,-4.05 v 4.05 h -2.075 v -2.54372 c 0,-0.25887 -0.20984,-0.46875 -0.46875,-0.46875 h -3.01244 c -0.25884,0 -0.46875,0.20988 -0.46875,0.46875 v 2.54372 h -2.075 v -4.05 H 7.95 V 9.83708 L 12,7.99617 16.05,9.83708 Z m 3.0125,4.05 h -2.075 V 15.4813 h 2.075 z M 12,10.0608 c -1.089,0 -1.97497,0.88594 -1.97497,1.97497 0,1.089 0.88597,1.975 1.97497,1.975 1.08906,0 1.97497,-0.886 1.97497,-1.975 0,-1.08903 -0.88594,-1.97497 -1.97497,-1.97497 z m 0,3.01244 c -0.57203,0 -1.03747,-0.46544 -1.03747,-1.0375 0,-0.57203 0.46544,-1.03747 1.03747,-1.03747 0.57209,0 1.03747,0.4654 1.03747,1.03747 0,0.57209 -0.46541,1.0375 -1.03747,1.0375 z"})})})}var dre=["second","minute","hour","day","week","month","year"];function hre(e,r){if(r===0)return["just now","right now"];var t=dre[Math.floor(r/2)];return e>1&&(t+="s"),[e+" "+t+" ago","in "+e+" "+t]}var vre=["秒","分钟","小时","天","周","个月","年"];function pre(e,r){if(r===0)return["刚刚","片刻后"];var t=vre[~~(r/2)];return[e+" "+t+"前",e+" "+t+"后"]}var t_={},QF=function(e,r){t_[e]=r},gre=function(e){return t_[e]||t_.en_US},jb=[60,60,24,7,365/7/12,12];function mre(e){return e instanceof Date?e:!isNaN(e)||/^\d+$/.test(e)?new Date(parseInt(e)):(e=(e||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(e))}function yre(e,r){var t=e<0?1:0;e=Math.abs(e);for(var a=e,o=0;e>=jb[o]&&o<jb.length;o++)e/=jb[o];return e=Math.floor(e),o*=2,e>(o===0?9:1)&&(o+=1),r(e,o,a)[t].replace("%s",e.toString())}function bre(e,r){var t=new Date;return(+t-+mre(e))/1e3}var _re=function(e,r,t){var a=bre(e);return yre(a,gre(r))};QF("en_US",hre);QF("zh_CN",pre);const Sre="_tile_wesrn_1",wre="_avatar_wesrn_5",Ere="_email_wesrn_9",Cre="_subheading_wesrn_12",Ju={tile:Sre,avatar:wre,email:Ere,subheading:Cre};function xre(e){var t;const r=Zs.buildAvatarUrl(e.avatarUrl,{size:"small"});return A.jsxs("div",{className:`container my-4 p-3 rounded-3 ${Ju.tile}`,children:[A.jsx("p",{className:`${Ju.subheading} mb-0`,children:"Account:"}),A.jsxs("div",{className:"d-flex align-items-center pb-3",children:[A.jsx("div",{className:"h-100",children:A.jsx("img",{alt:"Avatar",className:`rounded-circle ${Ju.avatar}`,src:r})}),A.jsxs("div",{className:"ms-2",children:[A.jsxs("p",{className:"mb-1 text-break mt-2",children:[e.firstName," ",e.surname]}),A.jsx("p",{className:`mb-1 ${Ju.email}`,children:e.email}),A.jsx("p",{className:"m-0 text-secondary",children:e.lastSignInTime?A.jsxs(A.Fragment,{children:["Last logged in ",_re(e.lastSignInTime)]}):A.jsx(A.Fragment,{children:"No login history"})})]})]}),A.jsx("p",{className:Ju.subheading,children:"Has access to:"}),(t=e.customers)!=null&&t.length?A.jsx(lre.Scrollbars,{autoHeightMax:200,autoHeight:!0,children:A.jsx("div",{className:"mb-n2",children:e.customers.map(a=>{const o=Zs.buildAvatarUrl(a.logoUrl,{size:"small"});return A.jsxs("div",{className:"d-flex align-items-center mb-2",children:[A.jsx(r_,{logoUrl:o,customerName:a.name}),A.jsx("p",{className:"mb-0 ms-2 text-break",children:a.name})]},a.id)})})}):A.jsxs("div",{className:"d-flex align-items-center",children:[A.jsx(r_,{logoUrl:"",colourClass:"bg-gray-500"}),A.jsx("p",{className:"mb-0 ms-2 text-break text-secondary",children:"No schools"})]})]})}function Ire(e){const[r,t]=Nr.useState(""),[a,o]=Nr.useState(!1);function s(){o(!0);const v={userId:e.userId,email:e.email,idpId:e.idpId,externalUserId:e.externalUserId};dt.post("/ajax/external/link-account",v).then(d=>Pt(d,e)).catch(d=>{o(!1),t(d.userMessage||"Something went wrong")})}function u(){dt.post("/ajax/external/continue",{returnUrl:e.returnUrl,createWithoutEmail:!0}).then(v=>Pt(v,e,{createWithoutEmail:!0})).catch(v=>{o(!1),t(v.userMessage||"Something went wrong")})}return A.jsxs(A.Fragment,{children:[A.jsx(yt,{theme:e.theme,title:"It looks like you already have an account",children:"We've found an existing account using the same email - would you like to link your accounts?"}),A.jsx(xre,{firstName:e.firstName,surname:e.surname,avatarUrl:e.avatarUrl,email:e.email,lastSignInTime:e.lastSignInTime,customers:e.customers}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",showSpinner:a,type:"button",onClick:s,children:"Link existing account"}),!!r&&A.jsx(Ht,{name:"linkAccount",children:r}),e.showCreateNewAccount&&A.jsx("button",{className:"btn btn-link text-info w-100 mt-2 no-sso-link",onClick:u,children:"Create new account"})]})}function Are(e){const{navigate:r,userId:t,email:a,externalUserId:o,idpId:s,returnUrl:u,theme:v}=e;function d(){r({step:"link-account"})}function h(){return dt.post("/ajax/external/continue",{returnUrl:u}).then(c=>Pt(c,e))}function f(c){return dt.post("/ajax/external/link-account-code",{code:c,userId:t,email:a,idpId:s,externalUserId:o}).then(h)}return A.jsx(Bf,{navigate:r,theme:v,title:"Enter code",description:A.jsxs(A.Fragment,{children:["Please enter the ",A.jsx("strong",{children:"6 digit"})," code we've sent to ",A.jsx("strong",{children:a})]}),submit:f,onBack:d,...e})}function Tre(e){const{value:r,onChange:t,error:a,autoFocus:o}=e;return A.jsxs("div",{className:"mb-3",children:[A.jsx("label",{htmlFor:"username",children:"Email"}),A.jsx("input",{className:`form-control form-control-lg ${!!a&&"is-invalid"}`,type:"email",name:"username",id:"username",value:r,placeholder:"Enter your email",autoFocus:!!o,onChange:s=>t(s.target.value),disabled:e.disabled,"aria-invalid":!!a,"aria-errormessage":"usernameError"}),!!a&&A.jsx(Ht,{name:"username",children:a})]})}function Rre(e){const[r,t]=Nr.useState(e.email||""),[a,o]=Nr.useState({source:e.firstName||""}),[s,u]=Nr.useState(""),[v,d]=Nr.useState("");function h(T){o(T),e.setErrors({...e.errors,fullName:""})}function f(T){u(T.target.value),e.setErrors({...e.errors,password:""})}function c(T){t(T),e.setErrors({...e.errors,email:""})}function _(T){d(T),e.setErrors({...e.errors,jobTitle:""})}function E(T){T.preventDefault();const{firstName:b,surname:I}=a,m={firstName:b,surname:I,password:s,email:r};e.allowJobTitleChange&&(m.jobTitle=v),e.onSubmit(m)}const S=!e.email,w=e.errors.general||!S&&e.errors.email;return A.jsxs("form",{onSubmit:E,children:[A.jsxs("div",{className:"mb-3",children:[A.jsx(pU,{value:a.source||"",onChange:h,error:e.errors.fullName,autoFocus:!0}),S&&A.jsx(Tre,{value:r,onChange:c,error:e.errors.email,disabled:!!e.email}),e.allowJobTitleChange&&A.jsx(_U,{error:e.errors.jobTitle,onChange:_,countryCode:e.countryCode,autoFocus:!1,isTertiary:YF.getCustomerType(e.customerType)===At.Tertiary}),A.jsx(Vs,{placeholder:"Enter your password",value:s,onChange:f,name:"new-password",autoComplete:"new-password",hasError:!!e.errors.password,"aria-invalid":!!e.errors.password,"aria-errormessage":"new-passwordError"}),!!e.errors.password&&A.jsx(Ht,{name:"new-password",children:e.errors.password})]}),!!w&&A.jsx("div",{className:"text-danger my-3",children:w}),A.jsx(gn,{className:"btn btn-dark btn-lg w-100",type:"submit",showSpinner:e.spinner,children:"Get Started"})]})}function Ore(e){switch(e.errorCode.toString()){case"user.invalid-first-name":case"user.invalid-surname":return{fullName:e.userMessage};case"user.invalid-password":case"user.same-password":case"user.password-too-short":return{password:e.userMessage};case"user.invalid-email":return{email:e.userMessage};case"invalid-token":case"user.already-activated":return{general:e.userMessage};case"user.invalid-jobtitle":return{jobTitle:e.userMessage};default:return{}}}function kre(e){var h;const[r,t]=je.useState(!1),[a,o]=je.useState({}),{productName:s}=za.getDefinition(e.theme);function u(f){const{firstName:c,surname:_,email:E,jobTitle:S,password:w}=f,T={},[b,I]=gi.isPasswordValid(w,"",!1);return b||(T.password=I),!e.email&&!gi.isEmail(E)&&(T.email="Please enter a valid email."),(!c||!_)&&(T.fullName="Please enter your full name."),e.allowJobTitleChange&&!(S!=null&&S.length)&&(T.jobTitle="Please enter your role.."),o({...a,...T}),!Object.keys(T).length}function v(f){if(!u(f))return;const c={email:e.email||f.email,firstName:f.firstName,surname:f.surname,invitationToken:e.invitationToken,password:f.password};e.allowJobTitleChange&&(c.jobTitle=f.jobTitle),t(!0),dt.post("/ajax/invite",c).then(_=>Pt(_,e)).catch(d)}function d(f){t(!1);const c=Ore(f);o({...a,...c})}return A.jsxs(A.Fragment,{children:[A.jsx(yt,{theme:e.theme,title:`Welcome to ${s}!`,children:A.jsx("p",{children:"Please fill out the form below to create your account"})}),A.jsx(Rre,{allowJobTitleChange:e.allowJobTitleChange,countryCode:e.countryCode,email:e.email,firstName:e.firstName,spinner:r,errors:a,setErrors:o,onSubmit:v,customerType:(h=e.customer)==null?void 0:h.customerType})]})}function Pre(e){const{returnUrl:r,customer:t}=e;return A.jsxs("div",{children:[A.jsx("div",{className:"d-flex justify-content-center my-5 px-2 px-lg-4",children:A.jsx("img",{src:"/images/invites/invite-accepted-v2.png",className:"w-100 mx-auto h-auto"})}),A.jsx("div",{className:"mb-3 d-flex justify-content-center",children:A.jsx(r_,{logoUrl:t.logoUrl,customerName:t.name})}),A.jsx(yt,{theme:e.theme,className:{title:"text-center",description:"text-center"},title:"Welcome to",children:t.name}),r&&A.jsx("a",{role:"button",href:r,className:"btn btn-dark btn-lg w-100 text-decoration-none",children:"Continue"})]})}const Nre="_selected_1ryhi_1",nL={selected:Nre};function jre(e){const{returnUrl:r,navigate:t}=e,[a,o]=je.useState(null),{productName:s}=za.getDefinition(e.theme);function u(){if(!a)return;const d={returnUrl:r,userType:a==="staff"?1:2,createWithoutEmail:!!e.createWithoutEmail};dt.post("/ajax/external/continue",d).then(h=>Pt(h,e,{createWithoutEmail:!1})).catch(h=>{t({step:"error",errorCode:h.errorCode,traceId:h.traceId})})}const v="btn btn-lg w-100 mb-3 border-dark";return A.jsxs(A.Fragment,{children:[A.jsx(yt,{theme:e.theme,title:`Let's get you started with ${s}`}),A.jsx("button",{className:`${v} ${a==="staff"?nL.selected:""}`,onClick:()=>o("staff"),children:"I am an educator"}),A.jsx("button",{className:`${v} ${a==="learner"?nL.selected:""}`,onClick:()=>o("learner"),children:"I am a student"}),A.jsx("button",{className:"btn btn-dark btn-lg w-100",disabled:!a,onClick:u,children:"Continue"})]})}var qb={exports:{}};/*! For license information please see app.js.LICENSE.txt */var aL;function qre(){return aL||(aL=1,(function(e,r){(function(t,a){e.exports=a()})(self,(()=>(()=>{var t,a,o={8322:d=>{d.exports=(function(h){var f=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function c(p,y){var g=p[0],x=p[1],R=p[2],O=p[3];x=((x+=((R=((R+=((O=((O+=((g=((g+=(x&R|~x&O)+y[0]-680876936|0)<<7|g>>>25)+x|0)&x|~g&R)+y[1]-389564586|0)<<12|O>>>20)+g|0)&g|~O&x)+y[2]+606105819|0)<<17|R>>>15)+O|0)&O|~R&g)+y[3]-1044525330|0)<<22|x>>>10)+R|0,x=((x+=((R=((R+=((O=((O+=((g=((g+=(x&R|~x&O)+y[4]-176418897|0)<<7|g>>>25)+x|0)&x|~g&R)+y[5]+1200080426|0)<<12|O>>>20)+g|0)&g|~O&x)+y[6]-1473231341|0)<<17|R>>>15)+O|0)&O|~R&g)+y[7]-45705983|0)<<22|x>>>10)+R|0,x=((x+=((R=((R+=((O=((O+=((g=((g+=(x&R|~x&O)+y[8]+1770035416|0)<<7|g>>>25)+x|0)&x|~g&R)+y[9]-1958414417|0)<<12|O>>>20)+g|0)&g|~O&x)+y[10]-42063|0)<<17|R>>>15)+O|0)&O|~R&g)+y[11]-1990404162|0)<<22|x>>>10)+R|0,x=((x+=((R=((R+=((O=((O+=((g=((g+=(x&R|~x&O)+y[12]+1804603682|0)<<7|g>>>25)+x|0)&x|~g&R)+y[13]-40341101|0)<<12|O>>>20)+g|0)&g|~O&x)+y[14]-1502002290|0)<<17|R>>>15)+O|0)&O|~R&g)+y[15]+1236535329|0)<<22|x>>>10)+R|0,x=((x+=((R=((R+=((O=((O+=((g=((g+=(x&O|R&~O)+y[1]-165796510|0)<<5|g>>>27)+x|0)&R|x&~R)+y[6]-1069501632|0)<<9|O>>>23)+g|0)&x|g&~x)+y[11]+643717713|0)<<14|R>>>18)+O|0)&g|O&~g)+y[0]-373897302|0)<<20|x>>>12)+R|0,x=((x+=((R=((R+=((O=((O+=((g=((g+=(x&O|R&~O)+y[5]-701558691|0)<<5|g>>>27)+x|0)&R|x&~R)+y[10]+38016083|0)<<9|O>>>23)+g|0)&x|g&~x)+y[15]-660478335|0)<<14|R>>>18)+O|0)&g|O&~g)+y[4]-405537848|0)<<20|x>>>12)+R|0,x=((x+=((R=((R+=((O=((O+=((g=((g+=(x&O|R&~O)+y[9]+568446438|0)<<5|g>>>27)+x|0)&R|x&~R)+y[14]-1019803690|0)<<9|O>>>23)+g|0)&x|g&~x)+y[3]-187363961|0)<<14|R>>>18)+O|0)&g|O&~g)+y[8]+1163531501|0)<<20|x>>>12)+R|0,x=((x+=((R=((R+=((O=((O+=((g=((g+=(x&O|R&~O)+y[13]-1444681467|0)<<5|g>>>27)+x|0)&R|x&~R)+y[2]-51403784|0)<<9|O>>>23)+g|0)&x|g&~x)+y[7]+1735328473|0)<<14|R>>>18)+O|0)&g|O&~g)+y[12]-1926607734|0)<<20|x>>>12)+R|0,x=((x+=((R=((R+=((O=((O+=((g=((g+=(x^R^O)+y[5]-378558|0)<<4|g>>>28)+x|0)^x^R)+y[8]-2022574463|0)<<11|O>>>21)+g|0)^g^x)+y[11]+1839030562|0)<<16|R>>>16)+O|0)^O^g)+y[14]-35309556|0)<<23|x>>>9)+R|0,x=((x+=((R=((R+=((O=((O+=((g=((g+=(x^R^O)+y[1]-1530992060|0)<<4|g>>>28)+x|0)^x^R)+y[4]+1272893353|0)<<11|O>>>21)+g|0)^g^x)+y[7]-155497632|0)<<16|R>>>16)+O|0)^O^g)+y[10]-1094730640|0)<<23|x>>>9)+R|0,x=((x+=((R=((R+=((O=((O+=((g=((g+=(x^R^O)+y[13]+681279174|0)<<4|g>>>28)+x|0)^x^R)+y[0]-358537222|0)<<11|O>>>21)+g|0)^g^x)+y[3]-722521979|0)<<16|R>>>16)+O|0)^O^g)+y[6]+76029189|0)<<23|x>>>9)+R|0,x=((x+=((R=((R+=((O=((O+=((g=((g+=(x^R^O)+y[9]-640364487|0)<<4|g>>>28)+x|0)^x^R)+y[12]-421815835|0)<<11|O>>>21)+g|0)^g^x)+y[15]+530742520|0)<<16|R>>>16)+O|0)^O^g)+y[2]-995338651|0)<<23|x>>>9)+R|0,x=((x+=((O=((O+=(x^((g=((g+=(R^(x|~O))+y[0]-198630844|0)<<6|g>>>26)+x|0)|~R))+y[7]+1126891415|0)<<10|O>>>22)+g|0)^((R=((R+=(g^(O|~x))+y[14]-1416354905|0)<<15|R>>>17)+O|0)|~g))+y[5]-57434055|0)<<21|x>>>11)+R|0,x=((x+=((O=((O+=(x^((g=((g+=(R^(x|~O))+y[12]+1700485571|0)<<6|g>>>26)+x|0)|~R))+y[3]-1894986606|0)<<10|O>>>22)+g|0)^((R=((R+=(g^(O|~x))+y[10]-1051523|0)<<15|R>>>17)+O|0)|~g))+y[1]-2054922799|0)<<21|x>>>11)+R|0,x=((x+=((O=((O+=(x^((g=((g+=(R^(x|~O))+y[8]+1873313359|0)<<6|g>>>26)+x|0)|~R))+y[15]-30611744|0)<<10|O>>>22)+g|0)^((R=((R+=(g^(O|~x))+y[6]-1560198380|0)<<15|R>>>17)+O|0)|~g))+y[13]+1309151649|0)<<21|x>>>11)+R|0,x=((x+=((O=((O+=(x^((g=((g+=(R^(x|~O))+y[4]-145523070|0)<<6|g>>>26)+x|0)|~R))+y[11]-1120210379|0)<<10|O>>>22)+g|0)^((R=((R+=(g^(O|~x))+y[2]+718787259|0)<<15|R>>>17)+O|0)|~g))+y[9]-343485551|0)<<21|x>>>11)+R|0,p[0]=g+p[0]|0,p[1]=x+p[1]|0,p[2]=R+p[2]|0,p[3]=O+p[3]|0}function _(p){var y,g=[];for(y=0;y<64;y+=4)g[y>>2]=p.charCodeAt(y)+(p.charCodeAt(y+1)<<8)+(p.charCodeAt(y+2)<<16)+(p.charCodeAt(y+3)<<24);return g}function E(p){var y,g=[];for(y=0;y<64;y+=4)g[y>>2]=p[y]+(p[y+1]<<8)+(p[y+2]<<16)+(p[y+3]<<24);return g}function S(p){var y,g,x,R,O,j,k=p.length,N=[1732584193,-271733879,-1732584194,271733878];for(y=64;y<=k;y+=64)c(N,_(p.substring(y-64,y)));for(g=(p=p.substring(y-64)).length,x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],y=0;y<g;y+=1)x[y>>2]|=p.charCodeAt(y)<<(y%4<<3);if(x[y>>2]|=128<<(y%4<<3),y>55)for(c(N,x),y=0;y<16;y+=1)x[y]=0;return R=(R=8*k).toString(16).match(/(.*?)(.{0,8})$/),O=parseInt(R[2],16),j=parseInt(R[1],16)||0,x[14]=O,x[15]=j,c(N,x),N}function w(p){var y,g="";for(y=0;y<4;y+=1)g+=f[p>>8*y+4&15]+f[p>>8*y&15];return g}function T(p){var y;for(y=0;y<p.length;y+=1)p[y]=w(p[y]);return p.join("")}function b(p){return/[\u0080-\uFFFF]/.test(p)&&(p=unescape(encodeURIComponent(p))),p}function I(p){var y,g=[],x=p.length;for(y=0;y<x-1;y+=2)g.push(parseInt(p.substr(y,2),16));return String.fromCharCode.apply(String,g)}function m(){this.reset()}return T(S("hello")),typeof ArrayBuffer>"u"||ArrayBuffer.prototype.slice||(function(){function p(y,g){return(y=0|y||0)<0?Math.max(y+g,0):Math.min(y,g)}ArrayBuffer.prototype.slice=function(y,g){var x,R,O,j,k=this.byteLength,N=p(y,k),D=k;return g!==void 0&&(D=p(g,k)),N>D?new ArrayBuffer(0):(x=D-N,R=new ArrayBuffer(x),O=new Uint8Array(R),j=new Uint8Array(this,N,x),O.set(j),R)}})(),m.prototype.append=function(p){return this.appendBinary(b(p)),this},m.prototype.appendBinary=function(p){this._buff+=p,this._length+=p.length;var y,g=this._buff.length;for(y=64;y<=g;y+=64)c(this._hash,_(this._buff.substring(y-64,y)));return this._buff=this._buff.substring(y-64),this},m.prototype.end=function(p){var y,g,x=this._buff,R=x.length,O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(y=0;y<R;y+=1)O[y>>2]|=x.charCodeAt(y)<<(y%4<<3);return this._finish(O,R),g=T(this._hash),p&&(g=I(g)),this.reset(),g},m.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},m.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},m.prototype.setState=function(p){return this._buff=p.buff,this._length=p.length,this._hash=p.hash,this},m.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},m.prototype._finish=function(p,y){var g,x,R,O=y;if(p[O>>2]|=128<<(O%4<<3),O>55)for(c(this._hash,p),O=0;O<16;O+=1)p[O]=0;g=(g=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),x=parseInt(g[2],16),R=parseInt(g[1],16)||0,p[14]=x,p[15]=R,c(this._hash,p)},m.hash=function(p,y){return m.hashBinary(b(p),y)},m.hashBinary=function(p,y){var g=T(S(p));return y?I(g):g},m.ArrayBuffer=function(){this.reset()},m.ArrayBuffer.prototype.append=function(p){var y,g,x,R,O,j=(g=this._buff.buffer,x=p,R=!0,(O=new Uint8Array(g.byteLength+x.byteLength)).set(new Uint8Array(g)),O.set(new Uint8Array(x),g.byteLength),R?O:O.buffer),k=j.length;for(this._length+=p.byteLength,y=64;y<=k;y+=64)c(this._hash,E(j.subarray(y-64,y)));return this._buff=y-64<k?new Uint8Array(j.buffer.slice(y-64)):new Uint8Array(0),this},m.ArrayBuffer.prototype.end=function(p){var y,g,x=this._buff,R=x.length,O=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(y=0;y<R;y+=1)O[y>>2]|=x[y]<<(y%4<<3);return this._finish(O,R),g=T(this._hash),p&&(g=I(g)),this.reset(),g},m.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},m.ArrayBuffer.prototype.getState=function(){var p,y=m.prototype.getState.call(this);return y.buff=(p=y.buff,String.fromCharCode.apply(null,new Uint8Array(p))),y},m.ArrayBuffer.prototype.setState=function(p){return p.buff=(function(y,g){var x,R=y.length,O=new ArrayBuffer(R),j=new Uint8Array(O);for(x=0;x<R;x+=1)j[x]=y.charCodeAt(x);return g?j:O})(p.buff,!0),m.prototype.setState.call(this,p)},m.ArrayBuffer.prototype.destroy=m.prototype.destroy,m.ArrayBuffer.prototype._finish=m.prototype._finish,m.ArrayBuffer.hash=function(p,y){var g=T((function(x){var R,O,j,k,N,D,U=x.length,B=[1732584193,-271733879,-1732584194,271733878];for(R=64;R<=U;R+=64)c(B,E(x.subarray(R-64,R)));for(O=(x=R-64<U?x.subarray(R-64):new Uint8Array(0)).length,j=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],R=0;R<O;R+=1)j[R>>2]|=x[R]<<(R%4<<3);if(j[R>>2]|=128<<(R%4<<3),R>55)for(c(B,j),R=0;R<16;R+=1)j[R]=0;return k=(k=8*U).toString(16).match(/(.*?)(.{0,8})$/),N=parseInt(k[2],16),D=parseInt(k[1],16)||0,j[14]=N,j[15]=D,c(B,j),B})(new Uint8Array(p)));return y?I(g):g},m})()},2730:(d,h,f)=>{f.d(h,{G:()=>c,r:()=>_});const c={CustomEvent:"ce",Pr:"p",_u:"pc",vc:"ca",Ea:"i",qs:"ie",M:"cci",R:"ccic",I:"ccc",F:"ccd",ql:"ss",xl:"se",Oi:"si",Ei:"sc",Gi:"sbc",Cc:"sfe",mo:"iec",Uu:"lr",zu:"uae",O:"ci",$:"cc",Ju:"lcaa",Eu:"lcar",On:"inc",Ln:"add",Rn:"rem",$n:"set",Bn:"ncam",Ku:"sgu",Fr:"ffi"},_={Ar:"feed_displayed",Ec:"content_cards_displayed"}},7070:(d,h,f)=>{f.d(h,{Z:()=>c});const c={W:function(){const _=(E=!1)=>{const S=(Math.random().toString(16)+"000000000").substr(2,8);return E?"-"+S.substr(0,4)+"-"+S.substr(4,4):S};return _()+_(!0)+_(!0)+_()}}},5522:(d,h,f)=>{f.d(h,{Z:()=>c});class c{constructor(E,S){this.database=E,this.vd=S,this.parent=typeof window>"u"?self:window,this.database=E,this.vd=S}Dd(){if("indexedDB"in this.parent)return this.parent.indexedDB}isSupported(){var E;try{if(this.Dd()==null)return!1;{const S=(E=this.Dd())===null||E===void 0?void 0:E.open("Braze IndexedDB Support Test");if(S&&(S.onupgradeneeded=()=>S.result.close(),S.onsuccess=()=>S.result.close()),typeof window<"u"){const w=window,T=w.chrome||w.browser||w.pd;if(T&&T.runtime&&T.runtime.id)return this.vd.info("Not using IndexedDB for storage because we are running inside an extension"),!1}return!0}}catch(S){return this.vd.info("Not using IndexedDB for storage due to following error: "+S),!1}}Bd(E,S){var w;const T=(w=this.Dd())===null||w===void 0?void 0:w.open(this.database.Sd,this.database.VERSION);if(T==null)return typeof S=="function"&&S(),!1;const b=this;return T.onupgradeneeded=I=>{var m;b.vd.info("Upgrading indexedDB "+b.database.Sd+" to v"+b.database.VERSION+"...");const p=(m=I.target)===null||m===void 0?void 0:m.result;for(const y in b.database.ss){const g=y;b.database.ss.hasOwnProperty(y)&&!p.objectStoreNames.contains(b.database.ss[g])&&p.createObjectStore(b.database.ss[g])}},T.onsuccess=I=>{var m;const p=(m=I.target)===null||m===void 0?void 0:m.result;p.onversionchange=()=>{p.close(),typeof S=="function"&&S(),b.vd.error("Needed to close the database unexpectedly because of an upgrade in another tab")},E(p)},T.onerror=I=>{var m;const p=I;return b.vd.info("Could not open indexedDB "+b.database.Sd+" v"+b.database.VERSION+": "+((m=p.target)===null||m===void 0?void 0:m.errorCode)),typeof S=="function"&&S(),!0},!0}setItem(E,S,w,T,b){if(!this.isSupported())return typeof b=="function"&&b(),!1;const I=this;return this.Bd((m=>{if(!m.objectStoreNames.contains(E))return I.vd.error("Could not store object "+S+" in "+E+" on indexedDB "+I.database.Sd+" - "+E+" is not a valid objectStore"),typeof b=="function"&&b(),void m.close();const p=m.transaction([E],"readwrite");p.oncomplete=()=>m.close();const y=p.objectStore(E).put(w,S);y.onerror=()=>{I.vd.error("Could not store object "+S+" in "+E+" on indexedDB "+I.database.Sd),typeof b=="function"&&b()},y.onsuccess=()=>{typeof T=="function"&&T()}}),b)}getItem(E,S,w){if(!this.isSupported())return!1;const T=this;return this.Bd((b=>{if(!b.objectStoreNames.contains(E))return T.vd.error("Could not retrieve object "+S+" in "+E+" on indexedDB "+T.database.Sd+" - "+E+" is not a valid objectStore"),void b.close();const I=b.transaction([E],"readonly");I.oncomplete=()=>b.close();const m=I.objectStore(E).get(S);m.onerror=()=>{T.vd.error("Could not retrieve object "+S+" in "+E+" on indexedDB "+T.database.Sd)},m.onsuccess=p=>{var y;const g=(y=p.target)===null||y===void 0?void 0:y.result;g!=null&&w(g)}}))}jr(E,S,w){if(!this.isSupported())return typeof w=="function"&&w(),!1;const T=this;return this.Bd((b=>{if(!b.objectStoreNames.contains(E))return T.vd.error("Could not retrieve last record from "+E+" on indexedDB "+T.database.Sd+" - "+E+" is not a valid objectStore"),typeof w=="function"&&w(),void b.close();const I=b.transaction([E],"readonly");I.oncomplete=()=>b.close();const m=I.objectStore(E).openCursor(null,"prev");m.onerror=()=>{T.vd.error("Could not open cursor for "+E+" on indexedDB "+T.database.Sd),typeof w=="function"&&w()},m.onsuccess=p=>{var y;const g=(y=p.target)===null||y===void 0?void 0:y.result;g!=null&&g.value!=null&&g.key!=null?S(g.key,g.value):typeof w=="function"&&w()}}),w)}re(E,S){if(!this.isSupported())return!1;const w=this;return this.Bd((T=>{if(!T.objectStoreNames.contains(E))return w.vd.error("Could not delete record "+S+" from "+E+" on indexedDB "+w.database.Sd+" - "+E+" is not a valid objectStore"),void T.close();const b=T.transaction([E],"readwrite");b.oncomplete=()=>T.close(),b.objectStore(E).delete(S).onerror=()=>{w.vd.error("Could not delete record "+S+" from "+E+" on indexedDB "+w.database.Sd)}}))}Zt(E,S){if(!this.isSupported())return!1;const w=this;return this.Bd((T=>{if(!T.objectStoreNames.contains(E))return w.vd.error("Could not retrieve objects from "+E+" on indexedDB "+w.database.Sd+" - "+E+" is not a valid objectStore"),void T.close();const b=T.transaction([E],"readwrite");b.oncomplete=()=>T.close();const I=b.objectStore(E),m=I.openCursor(),p=[];m.onerror=()=>{p.length>0?(w.vd.info("Cursor closed midway through for "+E+" on indexedDB "+w.database.Sd),S(p)):w.vd.error("Could not open cursor for "+E+" on indexedDB "+w.database.Sd)},m.onsuccess=y=>{var g;const x=(g=y.target)===null||g===void 0?void 0:g.result;x!=null?(x.value!=null&&x.key!=null&&(I.delete(x.key).onsuccess=()=>{p.push(x.value)}),typeof x.continue=="function"&&x.continue()):p.length>0&&S(p)}}))}clearData(){if(!this.isSupported())return!1;const E=[];for(const w in this.database.ss){const T=w;this.database.ss.hasOwnProperty(w)&&this.database.ss[T]!==this.database.ss.ae&&E.push(this.database.ss[T])}const S=this;return this.Bd((function(w){const T=w.transaction(E,"readwrite");T.oncomplete=()=>w.close();for(let b=0;b<E.length;b++){const I=E[b];T.objectStore(I).clear().onerror=function(){S.vd.error("Could not clear "+this.source.name+" on indexedDB "+S.database.Sd)}}T.onerror=function(){S.vd.error("Could not clear object stores on indexedDB "+S.database.Sd)}}))}}c.Yt={Qt:{Sd:"AppboyServiceWorkerAsyncStorage",VERSION:6,ss:{$a:"data",hr:"pushClicks",cu:"pushSubscribed",Cd:"fallbackDevice",ts:"cardUpdates",ae:"optOut",wr:"pendingData",jh:"sdkAuthenticationSignature"},ie:1}}},335:(d,h,f)=>{f.d(h,{Z:()=>_});const c={init:function(E){E===void 0&&c.zg!==void 0||(c.zg=!!E),c.t||(c.t=!0)},destroy:function(){c.t=!1,c.zg=void 0,c.vd=void 0},setLogger:function(E){typeof E=="function"?(c.init(),c.vd=E):c.info("Ignoring setLogger call since logger is not a function")},toggleLogging:function(){c.init(),c.zg?(console.log("Disabling Braze logging"),c.zg=!1):(console.log("Enabled Braze logging"),c.zg=!0)},info:function(E){if(c.zg){const S="Braze: "+E;c.vd!=null?c.vd(S):console.log(S)}},warn:function(E){if(c.zg){const S="Braze SDK Warning: "+E+" (v5.3.1)";c.vd!=null?c.vd(S):console.warn(S)}},error:function(E){if(c.zg){const S="Braze SDK Error: "+E+" (v5.3.1)";c.vd!=null?c.vd(S):console.error(S)}}},_=c},7529:(d,h,f)=>{f.d(h,{Z:()=>p});var c=f(5563),_=f(9179),E=f(4673),S=f(335),w=f(2730),T=f(5966);class b{constructor(g){this.u=g,this.u=g}h(g,x){const R=new E.Z;if(g.p(),g.url==null||g.url==="")return S.Z.info(`Card ${g.id} has no url. Not logging click to Braze servers.`),R;if(x&&g.id&&this.u){const k=this.u.j(T.I.C.v)||{};k[g.id]=!0,this.u.k(T.I.C.v,k)}const O=this.D([g]);if(O==null)return R;const j=x?w.G.I:w.G.$;return _.Z.q(j,O)}B(g){const x=new E.Z;if(!g.N())return S.Z.info(`Card ${g.id} refused this dismissal. Ignoring analytics event.`),x;if(g.id&&this.u){const O=this.u.j(T.I.C.A)||{};O[g.id]=!0,this.u.k(T.I.C.A,O)}const R=this.D([g]);return R==null?x:_.Z.q(w.G.F,R)}G(g,x){const R=new E.Z(!0),O=[],j=[];let k={};this.u&&(k=x?this.u.j(T.I.C.H)||{}:this.u.j(T.I.C.J)||{});for(const U of g)U.K(),U instanceof c.Z?j.push(U):O.push(U),U.id&&(k[U.id]=!0);const N=this.D(O),D=this.D(j);if(N==null&&D==null)return R.L=!1,R;if(this.u&&(x?this.u.k(T.I.C.H,k):this.u.k(T.I.C.J,k)),N!=null){const U=x?w.G.M:w.G.O,B=_.Z.q(U,N);R.P(B)}if(D!=null&&x){const U=_.Z.q(w.G.R,D);R.P(U)}return R}D(g){let x,R=null;for(let O=0;O<g.length;O++)x=g[O].id,x!=null&&x!==""&&(R=R||{},R.ids=R.ids||[],R.ids.push(x));return R}}var I=f(5825);const m={t:!1,i:null,m:()=>(m.o(),m.i||(m.i=new b(I.ZP.l())),m.i),o:()=>{m.t||(I.ZP.g(m),m.t=!0)},destroy:()=>{m.i=null,m.t=!1}},p=m},5608:(d,h,f)=>{f.d(h,{CG:()=>g,Dj:()=>x,Ji:()=>b,Zw:()=>m,pq:()=>p,ql:()=>T,rW:()=>I,sv:()=>y});var c=f(5242),_=f(1507),E=f(420),S=f(2080),w=f(7070);function T(R){return R!=null&&!!R.getAttribute("data-ab-had-top-impression")}function b(R){R!=null&&R.setAttribute("data-ab-had-top-impression","true")}function I(R){return R!=null&&!!R.getAttribute("data-ab-had-bottom-impression")}function m(R){R!=null&&R.setAttribute("data-ab-had-bottom-impression","true")}function p(R){if(R!=null){const O=R.querySelectorAll(".ab-unread-indicator")[0];O!=null&&(O.className+=" read")}}function y(R){return R.getAttribute("data-ab-card-id")}function g(R,O){const j=O.querySelectorAll(".ab-image-area");let k,N=0;j.length>0&&(N=j[0].offsetWidth);for(const D of R)if(k=D.T,k&&D.imageUrl&&typeof D.aspectRatio=="number"){const U=N/D.aspectRatio;U&&(k.style.height=`${U}px`)}}function x(R,O,j){const k=document.createElement("div");k.className="ab-card ab-effect-card "+R._,R.id&&(k.setAttribute("data-ab-card-id",R.id),k.setAttribute("id",R.id)),k.setAttribute("role","article"),k.setAttribute("tabindex","0");let N="",D=!1;R.url&&R.url!==""&&(N=R.url,D=!0);const U=L=>(p(k),D&&(O(R),(0,E.S)(N,j,L)),!1);if(R.pinned){const L=document.createElement("div");L.className="ab-pinned-indicator";const F=document.createElement("i");F.className="fa fa-star",L.appendChild(F),k.appendChild(L)}if(R.imageUrl&&R.imageUrl!==""){const L=document.createElement("div");L.className="ab-image-area";const F=document.createElement("img");if(F.setAttribute("src",R.imageUrl),F.onload=()=>{k.style.height="auto"},(function(V,ae){let oe="";V.title||V.description||(oe="Feed Image"),ae.setAttribute("alt",oe)})(R,F),L.appendChild(F),k.className+=" with-image",D&&!R.S){const V=document.createElement("a");V.setAttribute("href",N),V.onclick=U,V.appendChild(L),k.appendChild(V)}else k.appendChild(L)}const B=document.createElement("div");if(B.className="ab-card-body",R.dismissible){R.logCardDismissal=()=>(0,S.K)(R);const L=(0,c.B)("Dismiss Card",void 0,R.dismissCard.bind(R));k.appendChild(L),(0,_.FZ)(B,_.mQ.U,(F=>{k.className+=" ab-swiped-left",L.onclick(F)})),(0,_.FZ)(B,_.mQ.V,(F=>{k.className+=" ab-swiped-right",L.onclick(F)}))}let H="",G=!1;if(R.title&&R.title!==""&&(H=R.title,G=!0),G){const L=document.createElement("h1");if(L.className="ab-title",L.id=w.Z.W(),k.setAttribute("aria-labelledby",L.id),D){const F=document.createElement("a");F.setAttribute("href",N),F.onclick=U,F.appendChild(document.createTextNode(H)),L.appendChild(F)}else L.appendChild(document.createTextNode(H));B.appendChild(L)}const $=document.createElement("div");if($.className=G?"ab-description":"ab-description ab-no-title",$.id=w.Z.W(),k.setAttribute("aria-describedby",$.id),R.description&&$.appendChild(document.createTextNode(R.description)),D){const L=document.createElement("div");L.className="ab-url-area";const F=document.createElement("a");F.setAttribute("href",N),R.linkText&&F.appendChild(document.createTextNode(R.linkText)),F.onclick=U,L.appendChild(F),$.appendChild(L)}B.appendChild($),k.appendChild(B);const M=document.createElement("div");return M.className="ab-unread-indicator",R.viewed&&(M.className+=" read"),k.appendChild(M),R.T=k,k}},1280:(d,h,f)=>{f.d(h,{d:()=>T});var c=f(2857),_=f(7529),E=f(7671),S=f(5825),w=f(335);function T(b,I){return!!S.ZP.X()&&(b instanceof c.Z?_.Z.m().h(b,I).L:(w.Z.error("card "+E.U4),!1))}},2080:(d,h,f)=>{f.d(h,{K:()=>T});var c=f(2857),_=f(7529),E=f(7671),S=f(5825),w=f(335);function T(b){return!!S.ZP.X()&&(b instanceof c.Z?_.Z.m().B(b).L:(w.Z.error("card "+E.U4),!1))}},1066:(d,h,f)=>{f.d(h,{p:()=>b});var c=f(2857),_=f(7529),E=f(5825),S=f(2893),w=f(7671),T=f(335);function b(I,m){if(!E.ZP.X())return!1;if(!(0,S.kJ)(I))return T.Z.error("cards must be an array"),!1;for(const p of I)if(!(p instanceof c.Z))return T.Z.error(`Each card in cards ${w.U4}`),!1;return _.Z.m().G(I,m).L}},2857:(d,h,f)=>{f.d(h,{Z:()=>w});var c=f(7750),_=f(7671),E=f(4663),S=f(335);class w{constructor(b,I,m,p,y,g,x,R,O,j,k,N,D,U,B,H){this.id=b,this.viewed=I,this.title=m,this.imageUrl=p,this.description=y,this.created=g,this.updated=x,this.categories=R,this.expiresAt=O,this.url=j,this.linkText=k,this.aspectRatio=N,this.extras=D,this.pinned=U,this.dismissible=B,this.clicked=H,this.id=b,this.viewed=I||!1,this.title=m||"",this.imageUrl=p,this.description=y||"",this.created=g||null,this.updated=x||null,this.categories=R||[],this.expiresAt=O||null,this.url=j,this.linkText=k,N==null?this.aspectRatio=null:(N=parseFloat(N.toString()),this.aspectRatio=isNaN(N)?null:N),this.extras=D||{},this.pinned=U||!1,this.dismissible=B||!1,this.dismissed=!1,this.clicked=H||!1,this.isControl=!1,this.test=!1,this.Et=null,this.Tt=null}subscribeToClickedEvent(b){return this.Nt().It(b)}subscribeToDismissedEvent(b){return this.St().It(b)}removeSubscription(b){this.Nt().removeSubscription(b),this.St().removeSubscription(b)}removeAllSubscriptions(){this.Nt().removeAllSubscriptions(),this.St().removeAllSubscriptions()}dismissCard(){if(!this.dismissible||this.dismissed)return;typeof this.logCardDismissal=="function"&&this.logCardDismissal();let b=this.T;!b&&this.id&&(b=document.getElementById(this.id)),b&&(b.style.height=b.offsetHeight+"px",b.className=b.className+" ab-hide",setTimeout((function(){b&&b.parentNode&&(b.style.height="0",b.style.margin="0",setTimeout((function(){b&&b.parentNode&&b.parentNode.removeChild(b)}),w.At))}),_.rF))}Nt(){return this.Et==null&&(this.Et=new E.Z),this.Et}St(){return this.Tt==null&&(this.Tt=new E.Z),this.Tt}K(){this.viewed=!0}p(){this.viewed=!0,this.clicked=!0,this.Nt().Dt()}N(){return!(!this.dismissible||this.dismissed||(this.dismissed=!0,this.St().Dt(),0))}Ct(b){if(b==null||b[w.Rt.ht]!==this.id)return!0;if(b[w.Rt.Lt])return!1;if(b[w.Rt.nt]!=null&&this.updated!=null&&parseInt(b[w.Rt.nt])<(0,c.FX)(this.updated.valueOf()))return!0;if(b[w.Rt.et]&&!this.viewed&&(this.viewed=!0),b[w.Rt.zt]&&!this.clicked&&(this.clicked=b[w.Rt.zt]),b[w.Rt.rt]!=null&&(this.title=b[w.Rt.rt]),b[w.Rt.ot]!=null&&(this.imageUrl=b[w.Rt.ot]),b[w.Rt.ct]!=null&&(this.description=b[w.Rt.ct]),b[w.Rt.nt]!=null){const I=(0,c.X2)(b[w.Rt.nt]);I!=null&&(this.updated=I)}if(b[w.Rt.lt]!=null){let I;I=b[w.Rt.lt]===w._t?null:(0,c.X2)(b[w.Rt.lt]),this.expiresAt=I}if(b[w.Rt.URL]!=null&&(this.url=b[w.Rt.URL]),b[w.Rt.ft]!=null&&(this.linkText=b[w.Rt.ft]),b[w.Rt.xt]!=null){const I=parseFloat(b[w.Rt.xt].toString());this.aspectRatio=isNaN(I)?null:I}return b[w.Rt.bt]!=null&&(this.extras=b[w.Rt.bt]),b[w.Rt.gt]!=null&&(this.pinned=b[w.Rt.gt]),b[w.Rt.jt]!=null&&(this.dismissible=b[w.Rt.jt]),b[w.Rt.kt]!=null&&(this.test=b[w.Rt.kt]),!0}Y(){S.Z.error("Must be implemented in a subclass")}}w._t=-1,w.Rt={ht:"id",et:"v",jt:"db",Lt:"r",nt:"ca",gt:"p",lt:"ea",bt:"e",Z:"tp",ot:"i",rt:"tt",ct:"ds",URL:"u",ft:"dm",xt:"ar",zt:"cl",kt:"t"},w.it={st:"captioned_image",Ot:"text_announcement",Mt:"short_news",Pt:"banner_image",Ut:"control"},w.tt={ht:"id",et:"v",jt:"db",dt:"cr",nt:"ca",gt:"p",ut:"t",lt:"ea",bt:"e",Z:"tp",ot:"i",rt:"tt",ct:"ds",URL:"u",ft:"dm",xt:"ar",zt:"cl",kt:"s"},w.Gt={Xt:"ADVERTISING",vt:"ANNOUNCEMENTS",Vt:"NEWS",Wt:"SOCIAL"},w.At=400},5563:(d,h,f)=>{f.d(h,{Z:()=>_});var c=f(2857);class _ extends c.Z{constructor(S,w,T,b,I,m){super(S,w,null,null,null,null,T,null,b,null,null,null,I,m),this.isControl=!0,this._="ab-control-card",this.S=!1}Y(){const S={};return S[c.Z.tt.Z]=c.Z.it.Ut,S[c.Z.tt.ht]=this.id,S[c.Z.tt.et]=this.viewed,S[c.Z.tt.nt]=this.updated,S[c.Z.tt.lt]=this.expiresAt,S[c.Z.tt.bt]=this.extras,S[c.Z.tt.gt]=this.pinned,S[c.Z.tt.kt]=this.test,S}}},5899:(d,h,f)=>{f.d(h,{xA:()=>m,D5:()=>p,rN:()=>y});var c=f(2857);class _ extends c.Z{constructor(x,R,O,j,k,N,D,U,B,H,G,$,M,L,F,V){super(x,R,O,j,k,N,D,U,B,H,G,$,M,L,F,V),this._="ab-classic-card",this.S=!0}Y(){const x={};return x[c.Z.tt.Z]=c.Z.it.Mt,x[c.Z.tt.ht]=this.id,x[c.Z.tt.et]=this.viewed,x[c.Z.tt.rt]=this.title,x[c.Z.tt.ot]=this.imageUrl,x[c.Z.tt.ct]=this.description,x[c.Z.tt.nt]=this.updated,x[c.Z.tt.dt]=this.created,x[c.Z.tt.ut]=this.categories,x[c.Z.tt.lt]=this.expiresAt,x[c.Z.tt.URL]=this.url,x[c.Z.tt.ft]=this.linkText,x[c.Z.tt.xt]=this.aspectRatio,x[c.Z.tt.bt]=this.extras,x[c.Z.tt.gt]=this.pinned,x[c.Z.tt.jt]=this.dismissible,x[c.Z.tt.zt]=this.clicked,x[c.Z.tt.kt]=this.test,x}}class E extends c.Z{constructor(x,R,O,j,k,N,D,U,B,H,G,$,M,L,F,V){super(x,R,O,j,k,N,D,U,B,H,G,$,M,L,F,V),this._="ab-captioned-image",this.S=!0,this.test=!1}Y(){const x={};return x[c.Z.tt.Z]=c.Z.it.st,x[c.Z.tt.ht]=this.id,x[c.Z.tt.et]=this.viewed,x[c.Z.tt.rt]=this.title,x[c.Z.tt.ot]=this.imageUrl,x[c.Z.tt.ct]=this.description,x[c.Z.tt.nt]=this.updated,x[c.Z.tt.dt]=this.created,x[c.Z.tt.ut]=this.categories,x[c.Z.tt.lt]=this.expiresAt,x[c.Z.tt.URL]=this.url,x[c.Z.tt.ft]=this.linkText,x[c.Z.tt.xt]=this.aspectRatio,x[c.Z.tt.bt]=this.extras,x[c.Z.tt.gt]=this.pinned,x[c.Z.tt.jt]=this.dismissible,x[c.Z.tt.zt]=this.clicked,x[c.Z.tt.kt]=this.test,x}}class S extends c.Z{constructor(x,R,O,j,k,N,D,U,B,H,G,$,M,L){super(x,R,null,O,null,j,k,N,D,U,B,H,G,$,M,L),this._="ab-image-only",this.S=!1,this.test=!1}Y(){const x={};return x[c.Z.tt.Z]=c.Z.it.Pt,x[c.Z.tt.ht]=this.id,x[c.Z.tt.et]=this.viewed,x[c.Z.tt.ot]=this.imageUrl,x[c.Z.tt.nt]=this.updated,x[c.Z.tt.dt]=this.created,x[c.Z.tt.ut]=this.categories,x[c.Z.tt.lt]=this.expiresAt,x[c.Z.tt.URL]=this.url,x[c.Z.tt.ft]=this.linkText,x[c.Z.tt.xt]=this.aspectRatio,x[c.Z.tt.bt]=this.extras,x[c.Z.tt.gt]=this.pinned,x[c.Z.tt.jt]=this.dismissible,x[c.Z.tt.zt]=this.clicked,x[c.Z.tt.kt]=this.test,x}}var w=f(5563),T=f(7750),b=f(335);function I(g,x,R,O,j,k,N,D,U,B,H,G,$,M,L,F,V,ae){let oe;if(x===c.Z.it.Ot||x===c.Z.it.Mt)oe=new _(g,R,O,j,k,N,D,U,B,H,G,$,M,L,F,V);else if(x===c.Z.it.st)oe=new E(g,R,O,j,k,N,D,U,B,H,G,$,M,L,F,V);else if(x===c.Z.it.Pt)oe=new S(g,R,j,N,D,U,B,H,G,$,M,L,F,V);else{if(x!==c.Z.it.Ut)return b.Z.error("Ignoring card with unknown type "+x),null;oe=new w.Z(g,R,D,B,M,L)}return ae&&(oe.test=ae),oe}function m(g){if(g[c.Z.Rt.Lt])return null;const x=g[c.Z.Rt.ht],R=g[c.Z.Rt.Z],O=g[c.Z.Rt.et],j=g[c.Z.Rt.rt],k=g[c.Z.Rt.ot],N=g[c.Z.Rt.ct],D=(0,T.X2)(g[c.Z.Rt.nt]),U=D;let B;return B=g[c.Z.Rt.lt]===c.Z._t?null:(0,T.X2)(g[c.Z.Rt.lt]),I(x,R,O,j,k,N,U,D,null,B,g[c.Z.Rt.URL],g[c.Z.Rt.ft],g[c.Z.Rt.xt],g[c.Z.Rt.bt],g[c.Z.Rt.gt],g[c.Z.Rt.jt],g[c.Z.Rt.zt],g[c.Z.Rt.kt]||!1)}function p(g){return I(g.id,g.type,g.viewed,g.title,g.image,g.description,(0,T.X2)(g.created),(0,T.X2)(g.updated),g.categories,(0,T.X2)(g.expires_at),g.url,g.domain,g.aspect_ratio,g.extras,!1,!1)}function y(g){return I(g[c.Z.tt.ht],g[c.Z.tt.Z],g[c.Z.tt.et],g[c.Z.tt.rt],g[c.Z.tt.ot],g[c.Z.tt.ct],(0,T.Rd)(g[c.Z.tt.dt]),(0,T.Rd)(g[c.Z.tt.nt]),g[c.Z.tt.ut],(0,T.Rd)(g[c.Z.tt.lt]),g[c.Z.tt.URL],g[c.Z.tt.ft],g[c.Z.tt.xt],g[c.Z.tt.bt],g[c.Z.tt.gt],g[c.Z.tt.jt],g[c.Z.tt.zt],g[c.Z.tt.kt]||!1)||void 0}},4790:(d,h,f)=>{f.r(h),f.d(h,{changeUser:()=>T});var c=f(5825),_=f(8548),E=f(335),S=f(7615),w=f(3905);function T(b,I){if(!c.ZP.X())return;if(b==null||b.length===0||b!=b)return void E.Z.error("changeUser requires a non-empty userId.");if((0,_.E)(b)>S.Z.lr)return void E.Z.error(`Rejected user id "${b}" because it is longer than ${S.Z.lr} bytes.`);if(I!=null&&!(0,w.ro)(I,"set signature for new user","signature"))return;const m=c.ZP.cr();m&&m.changeUser(b.toString(),c.ZP.gr(),I)}},6243:(d,h,f)=>{f.d(h,{P:()=>_});var c=f(5825);function _(){if(c.ZP.X())return c.ZP.pr()}},420:(d,h,f)=>{f.d(h,{S:()=>p});var c=f(335),_=f(7671),E=f(5825),S=f(3046),w=f(3695),T=f(5806),b=f(3905),I=f(5319),m=f(6243);function p(y,g,x){if(E.ZP.X())if(b.y9.test(y)){const R=(0,S.OL)(y);if(!R)return;const O=j=>{if(!(0,b.zR)(j))return void c.Z.error(`Decoded Braze Action json is invalid: ${JSON.stringify(j,null,2)}`);const k=S.A9.properties.type,N=S.A9.properties.oo,D=S.A9.properties.eo,U=j[k];if(U===S.A9.types.ro){const B=j[N];for(const H of B)O(H)}else{const B=j[D];let H,G;switch(U){case S.A9.types.logCustomEvent:Promise.resolve().then(f.bind(f,1454)).then((({logCustomEvent:$})=>{E.ZP.so()?(G=Array.prototype.slice.call(B),$(...G)):c.Z.error(_.Go)}));break;case S.A9.types.requestPushPermission:Promise.resolve().then(f.bind(f,2261)).then((({requestPushPermission:$})=>{E.ZP.so()?w.Z.browser==="Safari"&&w.Z.OS===T.T.io?window.navigator.standalone&&$():$():c.Z.error(_.Go)}));break;case S.A9.types.setEmailNotificationSubscriptionType:case S.A9.types.setPushNotificationSubscriptionType:case S.A9.types.setCustomUserAttribute:case S.A9.types.addToSubscriptionGroup:case S.A9.types.removeFromSubscriptionGroup:case S.A9.types.addToCustomAttributeArray:case S.A9.types.removeFromCustomAttributeArray:H=(0,m.P)(),H&&H[U](...Array.prototype.slice.call(B));break;case S.A9.types.no:case S.A9.types.ao:G=Array.prototype.slice.call(B),I.SD.openUri(...G);break;default:c.Z.info(`Ignoring unknown Braze Action: ${U}`)}}};O(R)}else I.SD.openUri(y,g,x)}},1454:(d,h,f)=>{f.r(h),f.d(h,{logCustomEvent:()=>m});var c=f(5825),_=f(9179),E=f(335),S=f(2730),w=f(4365),T=f(9342),b=f(3905),I=f(7671);function m(p,y){if(!c.ZP.X())return!1;if(p==null||p.length<=0)return E.Z.error(`logCustomEvent requires a non-empty eventName, got "${p}". Ignoring event.`),!1;if(!(0,b.zM)(p,"log custom event","the event name"))return!1;const[g,x]=(0,b.lg)(y,I._P,"eventProperties",`log custom event "${p}"`,"event");if(!g)return!1;const R=c.ZP.ir();if(R&&R.me(p))return E.Z.info(`Custom Event "${p}" is blocklisted, ignoring.`),!1;const O=_.Z.q(S.G.CustomEvent,{n:p,p:x});if(O.L){E.Z.info(`Logged custom event "${p}".`);for(const j of O.ge)T.n.rr().fe(w.Z.ue,[p,y],j)}return O.L}},4650:(d,h,f)=>{f.r(h),f.d(h,{requestImmediateDataFlush:()=>_});var c=f(5825);function _(E){if(!c.ZP.X())return;const S=c.ZP.cr();S&&S.requestImmediateDataFlush(E)}},3340:(d,h,f)=>{f.d(h,{V:()=>p,q:()=>m});var c=f(1792),_=f(8376),E=f(4410),S=f(1090),w=f(4072),T=f(3811),b=f(6616),I=f(335);function m(y){if(!y)return null;if(y.is_control)return _.Z.fromJson(y);let g=y.type;g!=null&&(g=g.toUpperCase());const x=y.message,R=y.text_align_message,O=y.slide_from,j=y.extras,k=y.trigger_id,N=y.click_action,D=y.uri,U=y.open_target,B=y.message_close,H=y.duration,G=y.icon,$=y.image_url,M=y.image_style,L=y.icon_color,F=y.icon_bg_color,V=y.bg_color,ae=y.text_color,oe=y.close_btn_color,_e=y.header,he=y.text_align_header,ye=y.header_text_color,ge=y.frame_color,Re=[];let We=y.btns;We==null&&(We=[]);for(let W=0;W<We.length;W++)Re.push(w.Z.fromJson(We[W]));const He=y.crop_type,nr=y.orientation,ar=y.animate_in,xr=y.animate_out;let or=y.html_id,lr=y.css;or!=null&&or!==""&&lr!=null&&lr!==""||(or=void 0,lr=void 0);const Ve=y.message_extras;let Ge;if(g===T.Z.it||g===c.Z.qe.Ve)Ge=new T.Z(x,R,j,k,N,D,U,B,H,G,$,M,L,F,V,ae,oe,ar,xr,_e,he,ye,ge,Re,He,or,lr,Ve);else if(g===E.Z.it)Ge=new E.Z(x,R,j,k,N,D,U,B,H,G,$,M,L,F,V,ae,oe,ar,xr,_e,he,ye,ge,Re,He,nr,or,lr,Ve);else if(g===b.Z.it)Ge=new b.Z(x,R,O,j,k,N,D,U,B,H,G,$,L,F,V,ae,oe,ar,xr,or,lr,Ve);else{if(g!==S.Z.it&&g!==c.Z.qe.$e&&g!==c.Z.qe.We)return void I.Z.error("Ignoring message with unknown type "+g);{const W=y.message_fields;Ge=new S.Z(x,j,k,B,H,ar,xr,ge,or,lr,W,Ve),Ge.trusted=y.trusted||!1}}return Ge.we=g,Ge}function p(y){const g=[];for(const x of y)g.push(new w.Z(x.text,x.backgroundColor,x.textColor,x.borderColor,x.clickAction,x.uri,x.id));return g}},1087:(d,h,f)=>{f.d(h,{Z:()=>M});var c=f(1843),_=f(5825),E=f(8376),S=f(1090),w=f(1792),T=f(4072),b=f(9179),I=f(3340),m=f(6504),p=f(4673),y=f(2730),g=f(335),x=f(4663),R=f(2246),O=f(3905),j=f(3046),k=f(4556),N=f(6870),D=f(5966),U=f(4410),B=f(3811),H=f(6616);class G{constructor(F,V,ae,oe){this.qt=F,this.ri=V,this.u=ae,this.wt=oe,this.qt=F,this.ri=V,this.u=ae,this.wt=oe,this._e=new x.Z,_.ZP.$t(this._e),this.Xe=1e3,this.Ye=6e4,this.Ze=null}Mi(){return this._e}_i(F){return this._e.It(F)}Pi(){return this.Ze}$i(F){this.Ze=F}q(F,V,ae,oe){const _e=new p.Z;let he;if(F instanceof E.Z)he={trigger_ids:[F.triggerId]};else{if(V===y.G.Ei||F instanceof S.Z&&V===y.G.Gi){if(!F.p(oe))return g.Z.info("This in-app message has already received a click. Ignoring analytics event."),_e}else if(V===y.G.Oi&&!F.K())return g.Z.info("This in-app message has already received an impression. Ignoring analytics event."),_e;he=this.Xi(F)}return he==null?_e:(F.messageExtras&&(he.message_extras=F.messageExtras),ae!=null&&(he.bid=ae),b.Z.q(V,he))}Hi(F,V){const ae=new p.Z;if(!F.p())return g.Z.info("This in-app message button has already received a click. Ignoring analytics event."),ae;const oe=this.Xi(V);return oe==null?ae:F.id===T.Z.Ji?(g.Z.info("This in-app message button does not have a tracking id. Not logging event to Braze servers."),ae):(F.id!=null&&(oe.bid=F.id),b.Z.q(y.G.Gi,oe))}Ki(F){const V=F.messageFields;return V!=null&&V.is_push_primer||!1}Li(F){if(!(F instanceof w.Z))return;const V=_e=>{if(!_e)return;const he=(0,j.OL)(_e);return(0,j.je)(he)?(0,j.Tu)(j.yi.Qi,"In-App Message"):(0,j.zA)(he)&&!k.Z.Vi()?(0,j.Tu)(j.yi.Wi,"In-App Message"):void 0};if(this.Ki(F)&&!k.Z.Vi())return"In-App Message contains a push prompt, but is not eligible for a push prompt. Ignoring.";const ae=F.buttons||[];let oe;for(const _e of ae)if(_e.clickAction===w.Z.ClickAction.URI&&_e.uri&&O.y9.test(_e.uri)&&(oe=V(_e.uri),oe))return oe;return F.clickAction===w.Z.ClickAction.URI&&F.uri&&O.y9.test(F.uri)?V(F.uri):void 0}Yi(F,V,ae,oe){const _e=this.qt;if(!_e)return;const he=_e.Zi(!1,!1),ye=_e.Js(he);ye.template={trigger_id:F.triggerId,trigger_event_type:V},ae!=null&&(ye.template.data=ae.Ir());const ge=_e.$s(ye,N.Z.Ps.Mr);_e.Xs(ye,((Re=-1)=>{if(!this.qt)return;const We=new Date().valueOf();N.Z._s(this.u,N.Z.Ps.Mr,We),Re!==-1&&ge.push(["X-Braze-Req-Tokens-Remaining",Re.toString()]),c.Z.Gs({url:`${this.qt.Hs()}/template/`,data:ye,headers:ge,L:He=>{if(N.Z.Qs(this.u,N.Z.Ps.Mr,1),!this.qt.Ks(ye,He,ge))return void(typeof F.Tr=="function"&&F.Tr());if(this.qt.Os(),He==null||He.templated_message==null)return;const nr=He.templated_message;if(nr.type!==R.Z._r.Br)return;const ar=(0,I.q)(nr.data);if(ar==null)return;const xr=this.Li(ar);if(xr)return g.Z.error(xr),void(typeof F.Tr=="function"&&F.Tr());typeof F.Er=="function"&&F.Er(ar)},error:He=>{let nr=`getting user personalization for message ${F.triggerId}`;if(new Date().valueOf()-F.Gr<F.Nr){N.Z.Ys(this.u,N.Z.Ps.Mr);const ar=Math.min(F.Nr,this.Ye),xr=this.Xe;oe==null&&(oe=xr);const or=Math.min(ar,(0,m.R)(xr,3*oe));nr+=`. Retrying in ${or} ms`,setTimeout((()=>{this.Yi(F,V,ae,or)}),or)}this.qt.Vs(He,nr)}})}),N.Z.Ps.Mr)}Xi(F){if(F.triggerId==null)return g.Z.info("The in-app message has no analytics id. Not logging event to Braze servers."),null;const V={};return F.triggerId!=null&&(V.trigger_ids=[F.triggerId]),V}je(F){return!!this.u&&!(!(F&&F instanceof w.Z&&F.constructor!==w.Z)||F instanceof E.Z)&&this.u.k(D.I.C.Cr,F.Y())}Ue(){if(!this.u)return null;const F=this.u.j(D.I.C.Cr);if(!F)return null;let V;switch(F.type){case w.Z.qe.Or:V=U.Z.Xr(F);break;case w.Z.qe.Hr:case w.Z.qe.$e:case w.Z.qe.We:V=S.Z.Xr(F);break;case w.Z.qe.Jr:case w.Z.qe.Ve:V=B.Z.Xr(F);break;case w.Z.qe.Kr:V=H.Z.Xr(F)}return V&&this.Lr(),V}Lr(){this.u&&this.u.ti(D.I.C.Cr)}}const $={i:null,t:!1,m:()=>($.o(),$.i||($.i=new G(_.ZP.nr(),_.ZP.zr(),_.ZP.l(),_.ZP.er())),$.i),o:()=>{$.t||(_.ZP.g($),$.t=!0)},destroy:()=>{$.i=null,$.t=!1}},M=$},8376:(d,h,f)=>{f.d(h,{Z:()=>c});class c{constructor(E,S){this.triggerId=E,this.messageExtras=S,this.triggerId=E,this.messageExtras=S,this.extras={},this.isControl=!0}static fromJson(E){return new c(E.trigger_id,E.message_extras)}}},4410:(d,h,f)=>{f.d(h,{Z:()=>E});var c=f(3340),_=f(1792);class E extends _.Z{constructor(w,T,b,I,m,p,y,g,x,R,O,j,k,N,D,U,B,H,G,$,M,L,F,V,ae,oe,_e,he,ye){g=g||_.Z.DismissType.MANUAL,oe=oe||_.Z.Orientation.PORTRAIT,super(w,T,void 0,b,I,m,p,y,g,x,R,O,j,k,N,D,U,B,H,G,$,M,L,F,V,ae=ae||_.Z.CropType.CENTER_CROP,oe,_e,he,ye),this.De=_.Z.TextAlignment.CENTER}Y(){return super.Y(E.it)}static Xr(w){return new E(w[_.Z.tt.Vr],w[_.Z.tt.Wr],w[_.Z.tt.bt],w[_.Z.tt.Yr],w[_.Z.tt.Zr],w[_.Z.tt.URI],w[_.Z.tt.ea],w[_.Z.tt.ra],w[_.Z.tt.sa],w[_.Z.tt.ta],w[_.Z.tt.ot],w[_.Z.tt.ia],w[_.Z.tt.aa],w[_.Z.tt.oa],w[_.Z.tt.pa],w[_.Z.tt.ma],w[_.Z.tt.na],w[_.Z.tt.ua],w[_.Z.tt.ca],w[_.Z.tt.fa],w[_.Z.tt.da],w[_.Z.tt.la],w[_.Z.tt.ga],(0,c.V)(w[_.Z.tt.ja]),w[_.Z.tt.xa],w[_.Z.tt.za],w[_.Z.tt.ha],w[_.Z.tt.CSS],w[_.Z.tt.va])}}E.it=_.Z.qe.Or},1090:(d,h,f)=>{f.d(h,{Z:()=>_});var c=f(1792);class _ extends c.Z{constructor(S,w,T,b,I,m,p,y,g,x,R,O){super(S,void 0,void 0,w,T,void 0,void 0,void 0,b=b||c.Z.DismissType.MANUAL,I,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,m,p,void 0,void 0,void 0,y,void 0,void 0,void 0,g,x,O),this.messageFields=R,this.messageFields=R}do(){return!1}p(S){if(this.we===c.Z.qe.Hr){if(this.vo)return!1;this.vo=!0}return this.Et.Dt(S),!0}Y(){const S=super.Y(_.it);return S[c.Z.tt.uo]=this.messageFields,S}static Xr(S){return new _(S[c.Z.tt.Vr],S[c.Z.tt.bt],S[c.Z.tt.Yr],S[c.Z.tt.ra],S[c.Z.tt.sa],S[c.Z.tt.ua],S[c.Z.tt.ca],S[c.Z.tt.ga],S[c.Z.tt.ha],S[c.Z.tt.CSS],S[c.Z.tt.uo],S[c.Z.tt.va])}}_.it=c.Z.qe.Hr},4072:(d,h,f)=>{f.d(h,{Z:()=>E});var c=f(1792),_=f(4663);class E{constructor(w,T,b,I,m,p,y){this.text=w,this.backgroundColor=T,this.textColor=b,this.borderColor=I,this.clickAction=m,this.uri=p,this.id=y,this.text=w||"",this.backgroundColor=T||c.Z.th.sh,this.textColor=b||c.Z.th.ih,this.borderColor=I||this.backgroundColor,this.clickAction=m||c.Z.ClickAction.NONE,this.uri=p,y==null&&(y=E.Ji),this.id=y,this.vo=!1,this.Et=new _.Z}subscribeToClickedEvent(w){return this.Et.It(w)}removeSubscription(w){this.Et.removeSubscription(w)}removeAllSubscriptions(){this.Et.removeAllSubscriptions()}p(){return!this.vo&&(this.vo=!0,this.Et.Dt(),!0)}static fromJson(w){return new E(w.text,w.bg_color,w.text_color,w.border_color,w.click_action,w.uri,w.id)}}E.Ji=-1},1792:(d,h,f)=>{f.d(h,{Z:()=>b});var c=f(5825),_=f(3695),E=f(1507),S=f(7429),w=f(4663),T=f(7048);class b{constructor(m,p,y,g,x,R,O,j,k,N,D,U,B,H,G,$,M,L,F,V,ae,oe,_e,he,ye,ge,Re,We,He,nr){this.message=m,this.messageAlignment=p,this.slideFrom=y,this.extras=g,this.triggerId=x,this.clickAction=R,this.uri=O,this.openTarget=j,this.dismissType=k,this.duration=N,this.icon=D,this.imageUrl=U,this.imageStyle=B,this.iconColor=H,this.iconBackgroundColor=G,this.backgroundColor=$,this.textColor=M,this.closeButtonColor=L,this.animateIn=F,this.animateOut=V,this.header=ae,this.headerAlignment=oe,this.headerTextColor=_e,this.frameColor=he,this.buttons=ye,this.cropType=ge,this.orientation=Re,this.htmlId=We,this.css=He,this.messageExtras=nr,this.message=m,this.messageAlignment=p||b.TextAlignment.CENTER,this.duration=N||5e3,this.slideFrom=y||b.SlideFrom.BOTTOM,this.extras=g||{},this.triggerId=x,this.clickAction=R||b.ClickAction.NONE,this.uri=O,this.openTarget=j||b.OpenTarget.NONE,this.dismissType=k||b.DismissType.AUTO_DISMISS,this.icon=D,this.imageUrl=U,this.imageStyle=B||b.ImageStyle.TOP,this.iconColor=H||b.th.ih,this.iconBackgroundColor=G||b.th.sh,this.backgroundColor=$||b.th.ih,this.textColor=M||b.th.hh,this.closeButtonColor=L||b.th.eh,this.animateIn=F,this.animateIn==null&&(this.animateIn=!0),this.animateOut=V,this.animateOut==null&&(this.animateOut=!0),this.header=ae,this.headerAlignment=oe||b.TextAlignment.CENTER,this.headerTextColor=_e||b.th.hh,this.frameColor=he||b.th.Eh,this.buttons=ye||[],this.cropType=ge||b.CropType.FIT_CENTER,this.orientation=Re,this.htmlId=We,this.css=He,this.isControl=!1,this.messageExtras=nr,this.nh=!1,this.Th=!1,this.vo=!1,this.oh=!1,this.Me=null,this.ke=null,this.Et=new w.Z,this.rh=new w.Z,this.De=b.TextAlignment.CENTER}subscribeToClickedEvent(m){return this.Et.It(m)}subscribeToDismissedEvent(m){return this.rh.It(m)}removeSubscription(m){this.Et.removeSubscription(m),this.rh.removeSubscription(m)}removeAllSubscriptions(){this.Et.removeAllSubscriptions(),this.rh.removeAllSubscriptions()}closeMessage(){this.Ae(this.Me)}ze(){return!0}do(){return this.ze()}xe(){return this.htmlId!=null&&this.htmlId.length>4}Ce(){return this.xe()&&this.css!=null&&this.css.length>0}ve(){if(this.xe()&&this.Ce())return this.htmlId+"-css"}K(){return!this.Th&&(this.Th=!0,!0)}Ur(){return this.Th}p(m){return!this.vo&&(this.vo=!0,this.Et.Dt(),!0)}N(){return!this.oh&&(this.oh=!0,this.rh.Dt(),!0)}hide(m){if(m&&m.parentNode){let p=m.closest(".ab-iam-root");if(p==null&&(p=m),this.ze()&&p.parentNode!=null){const y=p.parentNode.classList;y&&y.contains(b.lh)&&y.remove(b.lh),document.body.removeEventListener("touchmove",b.uh)}p.className=p.className.replace(b.ah,b.Ih)}return this.animateOut||!1}Ae(m,p){if(m==null)return;let y;this.Me=null,y=m.className.indexOf("ab-in-app-message")===-1?m.getElementsByClassName("ab-in-app-message")[0]:m;let g=!1;y&&(g=this.hide(y));const x=document.body;let R;x!=null&&(R=x.scrollTop);const O=()=>{if(m&&m.parentNode){let k=m.closest(".ab-iam-root");k==null&&(k=m),k.parentNode&&k.parentNode.removeChild(k)}const j=this.ve();if(j!=null){const k=document.getElementById(j);k&&k.parentNode&&k.parentNode.removeChild(k)}x!=null&&_.Z.browser==="Safari"&&(x.scrollTop=R),p?p():this.N()};g?setTimeout(O,b.Ah):O(),this.ke&&this.ke.focus()}Je(){return document.createTextNode(this.message||"")}Ge(m){let p="";this.message||this.header||!this.ze()||(p="Modal Image"),m.setAttribute("alt",p)}static uh(m){if(m.targetTouches&&m.targetTouches.length>1)return;const p=m.target;p&&p.classList&&p.classList.contains("ab-message-text")&&p.scrollHeight>p.clientHeight||document.querySelector(`.${b.lh}`)&&m.cancelable&&m.preventDefault()}Oh(m){const p=m.parentNode;this.ze()&&p!=null&&this.orientation!==b.Orientation.LANDSCAPE&&(p.classList!=null&&p.classList.add(b.lh),document.body.addEventListener("touchmove",b.uh,!!(0,E.QZ)()&&{passive:!1})),m.className+=" "+b.ah}static _h(m){if(m.keyCode===S.m.mh&&!c.ZP.nn(c.JY.Lh)&&document.querySelectorAll(".ab-modal-interactions").length>0){const p=document.getElementsByClassName("ab-html-message");let y=!1;for(const g of p){let x=null;(0,T.f)(g)&&g.contentWindow&&(x=g.contentWindow.document.getElementsByClassName("ab-programmatic-close-button")[0]),x!=null&&((0,E.$j)(x),y=!0)}if(!y){const g=document.querySelectorAll(".ab-modal-interactions > .ab-close-button")[0];g!=null&&(0,E.$j)(g)}}}Nh(){this.nh||c.ZP.nn(c.JY.Lh)||(document.addEventListener("keydown",b._h,!1),c.ZP.Sh((()=>{document.removeEventListener("keydown",b._h)})),this.nh=!0)}Y(m){const p={};return m&&(p[b.tt.Vr]=this.message,p[b.tt.Wr]=this.messageAlignment,p[b.tt.Rh]=this.slideFrom,p[b.tt.bt]=this.extras,p[b.tt.Yr]=this.triggerId,p[b.tt.Zr]=this.clickAction,p[b.tt.URI]=this.uri,p[b.tt.ea]=this.openTarget,p[b.tt.ra]=this.dismissType,p[b.tt.sa]=this.duration,p[b.tt.ta]=this.icon,p[b.tt.ot]=this.imageUrl,p[b.tt.ia]=this.imageStyle,p[b.tt.aa]=this.iconColor,p[b.tt.oa]=this.iconBackgroundColor,p[b.tt.pa]=this.backgroundColor,p[b.tt.ma]=this.textColor,p[b.tt.na]=this.closeButtonColor,p[b.tt.ua]=this.animateIn,p[b.tt.ca]=this.animateOut,p[b.tt.fa]=this.header,p[b.tt.da]=this.headerAlignment,p[b.tt.la]=this.headerTextColor,p[b.tt.ga]=this.frameColor,p[b.tt.ja]=this.buttons,p[b.tt.xa]=this.cropType,p[b.tt.za]=this.orientation,p[b.tt.ha]=this.htmlId,p[b.tt.CSS]=this.css,p[b.tt.Z]=m,p[b.tt.va]=this.messageExtras),p}}b.th={hh:4281545523,ih:4294967295,sh:4278219733,Mh:4293914607,Dh:4283782485,Eh:3224580915,eh:4288387995},b.Be={Ch:"hd",Le:"ias",dh:"of",Uh:"do",bh:"umt",Ph:"tf",ph:"te"},b.SlideFrom={TOP:"TOP",BOTTOM:"BOTTOM"},b.ClickAction={NEWS_FEED:"NEWS_FEED",URI:"URI",NONE:"NONE"},b.DismissType={AUTO_DISMISS:"AUTO_DISMISS",MANUAL:"SWIPE"},b.OpenTarget={NONE:"NONE",BLANK:"BLANK"},b.ImageStyle={TOP:"TOP",GRAPHIC:"GRAPHIC"},b.Orientation={PORTRAIT:"PORTRAIT",LANDSCAPE:"LANDSCAPE"},b.TextAlignment={START:"START",CENTER:"CENTER",END:"END"},b.CropType={CENTER_CROP:"CENTER_CROP",FIT_CENTER:"FIT_CENTER"},b.qe={Kr:"SLIDEUP",Jr:"MODAL",Ve:"MODAL_STYLED",Or:"FULL",Hr:"WEB_HTML",$e:"HTML",We:"HTML_FULL"},b.Ah=500,b.fh=200,b.ah="ab-show",b.Ih="ab-hide",b.lh="ab-pause-scrolling",b.tt={Vr:"m",Wr:"ma",Rh:"sf",bt:"e",Yr:"ti",Zr:"ca",URI:"u",ea:"oa",ra:"dt",sa:"d",ta:"i",ot:"iu",ia:"is",aa:"ic",oa:"ibc",pa:"bc",ma:"tc",na:"cbc",ua:"ai",ca:"ao",fa:"h",da:"ha",la:"htc",ga:"fc",ja:"b",xa:"ct",za:"o",ha:"hi",CSS:"css",Z:"type",uo:"messageFields",va:"me"}},3811:(d,h,f)=>{f.d(h,{Z:()=>E});var c=f(3340),_=f(1792);class E extends _.Z{constructor(w,T,b,I,m,p,y,g,x,R,O,j,k,N,D,U,B,H,G,$,M,L,F,V,ae,oe,_e,he){super(w,T,void 0,b,I,m,p,y,g=g||_.Z.DismissType.MANUAL,x,R,O,j,k,N,D,U,B,H,G,$,M,L,F,V,ae=ae||_.Z.CropType.FIT_CENTER,void 0,oe,_e,he),this.De=_.Z.TextAlignment.CENTER}Y(){return super.Y(E.it)}static Xr(w){return new E(w[_.Z.tt.Vr],w[_.Z.tt.Wr],w[_.Z.tt.bt],w[_.Z.tt.Yr],w[_.Z.tt.Zr],w[_.Z.tt.URI],w[_.Z.tt.ea],w[_.Z.tt.ra],w[_.Z.tt.sa],w[_.Z.tt.ta],w[_.Z.tt.ot],w[_.Z.tt.ia],w[_.Z.tt.aa],w[_.Z.tt.oa],w[_.Z.tt.pa],w[_.Z.tt.ma],w[_.Z.tt.na],w[_.Z.tt.ua],w[_.Z.tt.ca],w[_.Z.tt.fa],w[_.Z.tt.da],w[_.Z.tt.la],w[_.Z.tt.ga],(0,c.V)(w[_.Z.tt.ja]),w[_.Z.tt.xa],w[_.Z.tt.ha],w[_.Z.tt.CSS],w[_.Z.tt.va])}}E.it=_.Z.qe.Jr},6616:(d,h,f)=>{f.d(h,{Z:()=>E});var c=f(1792),_=f(1507);class E extends c.Z{constructor(w,T,b,I,m,p,y,g,x,R,O,j,k,N,D,U,B,H,G,$,M,L){U=U||c.Z.th.Dh,D=D||c.Z.th.Mh,super(w,T=T||c.Z.TextAlignment.START,b,I,m,p,y,g,x,R,O,j,void 0,k,N,D,U,B,H,G,void 0,void 0,void 0,void 0,void 0,void 0,void 0,$,M,L),this.De=c.Z.TextAlignment.START}ze(){return!1}Je(){const w=document.createElement("span");return w.appendChild(document.createTextNode(this.message||"")),w}Oh(w){const T=w.getElementsByClassName("ab-in-app-message")[0];_.lP.po(T,!0,!0)||(this.slideFrom===c.Z.SlideFrom.TOP?T.style.top="0px":T.style.bottom="0px"),super.Oh(w)}Y(){return super.Y(E.it)}static Xr(w){return new E(w[c.Z.tt.Vr],w[c.Z.tt.Wr],w[c.Z.tt.Rh],w[c.Z.tt.bt],w[c.Z.tt.Yr],w[c.Z.tt.Zr],w[c.Z.tt.URI],w[c.Z.tt.ea],w[c.Z.tt.ra],w[c.Z.tt.sa],w[c.Z.tt.ta],w[c.Z.tt.ot],w[c.Z.tt.aa],w[c.Z.tt.oa],w[c.Z.tt.pa],w[c.Z.tt.ma],w[c.Z.tt.na],w[c.Z.tt.ua],w[c.Z.tt.ca],w[c.Z.tt.ha],w[c.Z.tt.CSS],w[c.Z.tt.va])}}E.it=c.Z.qe.Kr},7048:(d,h,f)=>{f.d(h,{E:()=>_,f:()=>c});const c=E=>E!==null&&E.tagName==="IFRAME";function _(E){var S;if(E.tagName==="SCRIPT")(S=E.parentNode)===null||S===void 0||S.replaceChild((function(w){const T=document.createElement("script");T.text=w.innerHTML;for(const b of w.attributes)T.setAttribute(b.name,b.value);return T})(E),E);else for(const w of E.childNodes)_(w);return E}},4127:(d,h,f)=>{f.r(h),f.d(h,{default:()=>x});var c=f(5825),_=f(2893),E=f(3552),S=f(335);const w=function(R){const O=(R+"=".repeat((4-R.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),j=atob(O),k=new Uint8Array(j.length);for(let N=0;N<j.length;++N)k[N]=j.charCodeAt(N);return k};var T=f(5966),b=f(7615),I=f(5319),m=f(4556),p=f(8031);class y{constructor(O,j,k,N,D,U,B,H,G,$){this.sn=O,this.rn=j,this.on=k,this.un=D,this.an=U,this.yt=B,this.cn=H,this.hn=G,this.u=$,this.sn=O,this.rn=j,this.on=k,this.fn=N+"/safari/"+j,this.un=D||"/service-worker.js",this.an=U,this.yt=B,this.cn=H||!1,this.hn=G||!1,this.u=$,this.ln=m.Z.dn(),this.pn=m.Z.bn()}mn(){return this.hn}yn(O,j,k,N,D){O.unsubscribe().then((U=>{U?this.vn(j,k,N,D):(S.Z.error("Failed to unsubscribe device from push."),typeof D=="function"&&D(!1))})).catch((U=>{S.Z.error("Push unsubscription error: "+U),typeof D=="function"&&D(!1)}))}gn(O,j,k){var N;const D=($=>{if(typeof $=="string")return $;if($.endpoint.indexOf("https://android.googleapis.com/gcm/send")!==0)return $.endpoint;let M=$.endpoint;const L=$;return L.wn&&$.endpoint.indexOf(L.wn)===-1&&(M=$.endpoint+"/"+L.wn),M})(O);let U=null,B=null;const H=O;if(H.getKey!=null)try{const $=Array.from(new Uint8Array(H.getKey("p256dh"))),M=Array.from(new Uint8Array(H.getKey("auth")));U=btoa(String.fromCharCode.apply(null,$)),B=btoa(String.fromCharCode.apply(null,M))}catch($){S.Z.error((0,p.e)($))}const G=($=>{let M;return $.options&&(M=$.options.applicationServerKey)&&M.byteLength&&M.byteLength>0?btoa(String.fromCharCode.apply(null,Array.from(new Uint8Array(M)))).replace(/\+/g,"-").replace(/\//g,"_"):null})(H);(N=this.sn)===null||N===void 0||N.kn(D,j,U,B,G),D&&typeof k=="function"&&k(D,U,B)}Pn(){var O;(O=this.sn)===null||O===void 0||O.Dn(!0)}Sn(O,j){var k;(k=this.sn)===null||k===void 0||k.Dn(!1),S.Z.info(O),typeof j=="function"&&j(!1)}An(O,j,k,N){var D;if(j.permission==="default")try{window.safari.pushNotification.requestPermission(this.fn,O,{api_key:this.rn,device_id:((D=this.on)===null||D===void 0?void 0:D.ce().id)||""},(U=>{U.permission==="granted"&&this.sn&&this.sn.setPushNotificationSubscriptionType(b.Z.NotificationSubscriptionTypes.OPTED_IN),this.An(O,U,k,N)}))}catch(U){this.Sn("Could not request permission for push: "+U,N)}else j.permission==="denied"?this.Sn("The user has blocked notifications from this site, or Safari push is not configured in the Braze dashboard.",N):j.permission==="granted"&&(S.Z.info("Device successfully subscribed to push."),this.gn(j.deviceToken,new Date,k))}requestPermission(O,j,k){const N=U=>{switch(U){case"granted":return void(typeof O=="function"&&O());case"default":return void(typeof j=="function"&&j());case"denied":return void(typeof k=="function"&&k());default:S.Z.error("Received unexpected permission result "+U)}};let D=!1;if(window.Notification.permission!=="default")N(Notification.permission);else{const U=window.Notification.requestPermission((B=>{D&&N(B)}));U?U.then((B=>{N(B)})):D=!0}}vn(O,j,k,N){const D={userVisibleOnly:!0};j!=null&&(D.applicationServerKey=j),O.pushManager.subscribe(D).then((U=>{S.Z.info("Device successfully subscribed to push."),this.gn(U,new Date,k)})).catch((U=>{m.Z.isPushBlocked()?(S.Z.info("Permission for push notifications was denied."),typeof N=="function"&&N(!1)):(S.Z.error("Push subscription failed: "+U),typeof N=="function"&&N(!0))}))}jn(){return this.cn?navigator.serviceWorker.getRegistration(this.un):navigator.serviceWorker.register(this.un).then((()=>navigator.serviceWorker.ready.then((O=>(O&&typeof O.update=="function"&&O.update().catch((j=>{S.Z.info("ServiceWorker update failed: "+j)})),O)))))}xn(O){this.cn||(O.unregister(),S.Z.info("Service worker successfully unregistered."))}subscribe(O,j){if(!m.Z.isPushSupported())return S.Z.info(y.Nn),void(typeof j=="function"&&j(!1));if(this.ln){if(!this.cn&&window.location!=null){let B=this.un;B.indexOf(window.location.host)===-1&&(B=window.location.host+B),B.indexOf(window.location.protocol)===-1&&(B=window.location.protocol+"//"+B);const H=B.substr(0,B.lastIndexOf("/")+1);if(I.SD.Un().indexOf(H)!==0)return S.Z.error("Cannot subscribe to push from a path higher than the service worker location (tried to subscribe from "+window.location.pathname+" but service worker is at "+B+")"),void(typeof j=="function"&&j(!0))}if(m.Z.isPushBlocked())return void this.Sn("Notifications from this site are blocked. This may be a temporary embargo or a permanent denial.",j);if(this.yt&&!this.yt.Wn()&&this.yt.ii()===0)return S.Z.info("Waiting for VAPID key from server config before subscribing to push."),void this.yt._n((()=>{this.subscribe(O,j)}));const k=()=>{S.Z.info("Permission for push notifications was denied."),typeof j=="function"&&j(!1)},N=()=>{let B="Permission for push notifications was ignored.";m.Z.isPushBlocked()&&(B+=" The browser has automatically blocked further permission requests for a period (probably 1 week)."),S.Z.info(B),typeof j=="function"&&j(!0)},D=m.Z.isPushPermissionGranted(),U=()=>{!D&&this.sn&&this.sn.setPushNotificationSubscriptionType(b.Z.NotificationSubscriptionTypes.OPTED_IN),this.jn().then((B=>{if(B==null)return S.Z.error("No service worker registration. Set the `manageServiceWorkerExternally` initialization option to false or ensure that your service worker is registered before calling registerPush."),void(typeof j=="function"&&j(!0));B.pushManager.getSubscription().then((H=>{var G;let $=null;if(((G=this.yt)===null||G===void 0?void 0:G.Wn())!=null&&($=w(this.yt.Wn())),H){let M,L=null,F=null;if(this.u&&(M=this.u.j(T.I.C.In)),M&&!(0,_.kJ)(M)){let V;try{V=E.Z.qn(M).Vn}catch{V=null}V==null||isNaN(V.getTime())||V.getTime()===0||(L=V,F=new Date(L),F.setMonth(L.getMonth()+6))}$!=null&&H.options&&H.options.applicationServerKey&&H.options.applicationServerKey.byteLength&&H.options.applicationServerKey.byteLength>0&&!(0,_.Xy)($,new Uint8Array(H.options.applicationServerKey))?(H.options.applicationServerKey.byteLength>12?S.Z.info("Device was already subscribed to push using a different VAPID provider, creating new subscription."):S.Z.info("Attempting to upgrade a gcm_sender_id-based push registration to VAPID - depending on the browser this may or may not result in the same gcm_sender_id-based subscription."),this.yn(H,B,$,O,j)):H.expirationTime&&new Date(H.expirationTime).valueOf()<=new Date().valueOf()?(S.Z.info("Push subscription is expired, creating new subscription."),this.yn(H,B,$,O,j)):M&&(0,_.kJ)(M)?this.yn(H,B,$,O,j):F==null?(S.Z.info("No push subscription creation date found, creating new subscription."),this.yn(H,B,$,O,j)):F.valueOf()<=new Date().valueOf()?(S.Z.info("Push subscription older than 6 months, creating new subscription."),this.yn(H,B,$,O,j)):(S.Z.info("Device already subscribed to push, sending existing subscription to backend."),this.gn(H,L,O))}else this.vn(B,$,O,j)})).catch((H=>{S.Z.error("Error checking current push subscriptions: "+H)}))})).catch((B=>{S.Z.error("ServiceWorker registration failed: "+B)}))};this.requestPermission(U,N,k)}else if(this.pn){if(this.an==null||this.an==="")return S.Z.error("You must supply the safariWebsitePushId initialization option in order to use registerPush on Safari"),void(typeof j=="function"&&j(!0));const k=window.safari.pushNotification.permission(this.an);this.An(this.an,k,O,j)}}unsubscribe(O,j){if(!m.Z.isPushSupported())return S.Z.info(y.Nn),void(typeof j=="function"&&j());this.ln?navigator.serviceWorker.getRegistration(this.un).then((k=>{k?k.pushManager.getSubscription().then((N=>{N?(this.Pn(),N.unsubscribe().then((D=>{D?(S.Z.info("Device successfully unsubscribed from push."),typeof O=="function"&&O()):(S.Z.error("Failed to unsubscribe device from push."),typeof j=="function"&&j()),this.xn(k)})).catch((D=>{S.Z.error("Push unsubscription error: "+D),typeof j=="function"&&j()}))):(S.Z.info("Device already unsubscribed from push."),typeof O=="function"&&O())})).catch((N=>{S.Z.error("Error unsubscribing from push: "+N),typeof j=="function"&&j()})):(S.Z.info("Device already unsubscribed from push."),typeof O=="function"&&O())})):this.pn&&(this.Pn(),S.Z.info("Device unsubscribed from push."),typeof O=="function"&&O())}}y.Nn="Push notifications are not supported in this browser.";const g={t:!1,i:null,m:()=>(g.o(),g.i||(g.i=new y(c.ZP.pr(),c.ZP.ba(),c.ZP.te(),c.ZP.Hs(),c.ZP.nn(c.JY.wa),c.ZP.nn(c.JY.ya),c.ZP.ir(),c.ZP.nn(c.JY.Ma),c.ZP.nn(c.JY._a),c.ZP.l())),g.i),o:()=>{g.t||(c.ZP.g(g),g.t=!0)},destroy:()=>{g.i=null,g.t=!1}},x=g},2261:(d,h,f)=>{f.r(h),f.d(h,{requestPushPermission:()=>E});var c=f(5825),_=f(4127);function E(S,w){if(c.ZP.X())return _.default.m().subscribe(((T,b,I)=>{const m=c.ZP.cr();m&&m.requestImmediateDataFlush(),typeof S=="function"&&S(T,b,I)}),w)}},7824:(d,h,f)=>{f.r(h),f.d(h,{unregisterPush:()=>E});var c=f(5825),_=f(4127);function E(S,w){if(c.ZP.X())return _.default.m().unsubscribe(S,w)}},4556:(d,h,f)=>{f.d(h,{Z:()=>_});const c={dn:()=>"serviceWorker"in navigator&&typeof ServiceWorkerRegistration<"u"&&"showNotification"in ServiceWorkerRegistration.prototype&&"PushManager"in window,bn:()=>"safari"in window&&"pushNotification"in window.safari&&typeof window.safari.pushNotification.permission=="function"&&typeof window.safari.pushNotification.requestPermission=="function",isPushSupported:()=>c.dn()||c.bn(),isPushBlocked:()=>{const E=c.isPushSupported()&&"Notification"in window&&window.Notification!=null&&window.Notification.permission!=null&&window.Notification.permission==="denied",S=c.isPushSupported()&&(!("Notification"in window)||window.Notification==null);return E||S},isPushPermissionGranted:()=>c.isPushSupported()&&"Notification"in window&&window.Notification!=null&&window.Notification.permission!=null&&window.Notification.permission==="granted",Vi:()=>!c.isPushBlocked()&&c.isPushSupported()&&!c.isPushPermissionGranted()},_=c},7615:(d,h,f)=>{f.d(h,{Z:()=>b});var c=f(2893),_=f(335),E=f(2730),S=f(3905),w=f(7671),T=f(7750);class b{constructor(m,p){this.wt=m,this.zi=p,this.wt=m,this.zi=p}getUserId(m){const p=this.wt.getUserId();if(typeof m!="function")return p;_.Z.warn("The callback for getUserId is deprecated. You can access its return value directly instead (e.g. `const id = braze.getUser().getUserId()`)"),m(p)}addAlias(m,p){return!(0,S.ro)(m,"add alias","the alias",!1)||m.length<=0?(_.Z.error("addAlias requires a non-empty alias"),!1):!(0,S.ro)(p,"add alias","the label",!1)||p.length<=0?(_.Z.error("addAlias requires a non-empty label"),!1):this.zi.Cn(m,p).L}setFirstName(m){return!!(0,S.ro)(m,"set first name","the firstName",!0)&&this.wt.nu("first_name",m)}setLastName(m){return!!(0,S.ro)(m,"set last name","the lastName",!0)&&this.wt.nu("last_name",m)}setEmail(m){return m===null||(0,S.vV)(m)?this.wt.nu("email",m):(_.Z.error(`Cannot set email address - "${m}" did not pass RFC-5322 validation.`),!1)}setGender(m){return typeof m=="string"&&(m=m.toLowerCase()),!(m!==null&&!(0,c.fk)(b.Genders,m,`Gender "${m}" is not a valid gender.`,"User.Genders"))&&this.wt.nu("gender",m)}setDateOfBirth(m,p,y){return m===null&&p===null&&y===null?this.wt.nu("dob",null):(m=m!=null?parseInt(m.toString()):null,p=p!=null?parseInt(p.toString()):null,y=y!=null?parseInt(y.toString()):null,m==null||p==null||y==null||isNaN(m)||isNaN(p)||isNaN(y)||p>12||p<1||y>31||y<1?(_.Z.error("Cannot set date of birth - parameters should comprise a valid date e.g. setDateOfBirth(1776, 7, 4);"),!1):this.wt.nu("dob",`${m}-${p}-${y}`))}setCountry(m){return!!(0,S.ro)(m,"set country","the country",!0)&&this.wt.nu("country",m)}setHomeCity(m){return!!(0,S.ro)(m,"set home city","the homeCity",!0)&&this.wt.nu("home_city",m)}setLanguage(m){return!!(0,S.ro)(m,"set language","the language",!0)&&this.wt.nu("language",m)}setEmailNotificationSubscriptionType(m){return!!(0,c.fk)(b.NotificationSubscriptionTypes,m,`Email notification setting "${m}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.wt.nu("email_subscribe",m)}setPushNotificationSubscriptionType(m){return!!(0,c.fk)(b.NotificationSubscriptionTypes,m,`Push notification setting "${m}" is not a valid subscription type.`,"User.NotificationSubscriptionTypes")&&this.wt.nu("push_subscribe",m)}setPhoneNumber(m){return!!(0,S.ro)(m,"set phone number","the phoneNumber",!0)&&(m===null||m.match(b.En)?this.wt.nu("phone",m):(_.Z.error(`Cannot set phone number - "${m}" did not pass validation.`),!1))}setLastKnownLocation(m,p,y,g,x){return m==null||p==null?(_.Z.error("Cannot set last-known location - latitude and longitude are required."),!1):(m=parseFloat(m.toString()),p=parseFloat(p.toString()),y!=null&&(y=parseFloat(y.toString())),g!=null&&(g=parseFloat(g.toString())),x!=null&&(x=parseFloat(x.toString())),isNaN(m)||isNaN(p)||y!=null&&isNaN(y)||g!=null&&isNaN(g)||x!=null&&isNaN(x)?(_.Z.error("Cannot set last-known location - all supplied parameters must be numeric."),!1):m>90||m<-90||p>180||p<-180?(_.Z.error("Cannot set last-known location - latitude and longitude are bounded by ±90 and ±180 respectively."),!1):y!=null&&y<0||x!=null&&x<0?(_.Z.error("Cannot set last-known location - accuracy and altitudeAccuracy may not be negative."),!1):this.zi.setLastKnownLocation(this.wt.getUserId(),m,p,g,y,x).L)}setCustomUserAttribute(m,p,y){if(!(0,S.bj)(m))return!1;const g=x=>{const[R]=(0,S.lg)(x,w.db,"attribute value",`set custom user attribute "${m}"`,"custom user attribute");return R};if((0,c.kJ)(p)){const[x,R]=(0,S.$g)(m,p);if(!x&&!R&&p.length!==0)return!1;if(x||p.length===0)return this.zi.Fn(E.G.$n,m,p).L;for(const O of p)if(!g(O))return!1}else if((0,c.Kn)(p)){if(!g(p))return!1;if(y)return this.zi.Fn(E.G.Bn,m,p).L}else if(p===void 0||!(0,S.UO)(p)||((0,c.J_)(p)&&(p=(0,T.BT)(p)),typeof p=="string"&&!(0,S.zM)(p,`set custom user attribute "${m}"`,"the element in the given array")))return!1;return this.wt.setCustomUserAttribute(m,p)}addToCustomAttributeArray(m,p){return!!(0,S.zM)(m,"add to custom user attribute array","the given key")&&!(p!=null&&!(0,S.zM)(p,"add to custom user attribute array","the given value"))&&this.zi.Fn(E.G.Ln,m,p).L}removeFromCustomAttributeArray(m,p){return!!(0,S.zM)(m,"remove from custom user attribute array","the given key")&&!(p!=null&&!(0,S.zM)(p,"remove from custom user attribute array","the given value"))&&this.zi.Fn(E.G.Rn,m,p).L}incrementCustomUserAttribute(m,p){if(!(0,S.zM)(m,"increment custom user attribute","the given key"))return!1;p==null&&(p=1);const y=parseInt(p.toString());return isNaN(y)||y!==parseFloat(p.toString())?(_.Z.error(`Cannot increment custom user attribute because the given incrementValue "${p}" is not an integer.`),!1):this.zi.Fn(E.G.On,m,y).L}setCustomLocationAttribute(m,p,y){return!!(0,S.zM)(m,"set custom location attribute","the given key")&&((p!==null||y!==null)&&(p=p!=null?parseFloat(p.toString()):null,y=y!=null?parseFloat(y.toString()):null,p==null&&y!=null||p!=null&&y==null||p!=null&&(isNaN(p)||p>90||p<-90)||y!=null&&(isNaN(y)||y>180||y<-180))?(_.Z.error("Received invalid values for latitude and/or longitude. Latitude and longitude are bounded by ±90 and ±180 respectively, or must both be null for removal."),!1):this.zi.Gn(m,p,y).L)}addToSubscriptionGroup(m){return!(0,S.ro)(m,"add user to subscription group","subscription group ID",!1)||m.length<=0?(_.Z.error("addToSubscriptionGroup requires a non-empty subscription group ID"),!1):this.zi.Hn(m,b.Kn.SUBSCRIBED).L}removeFromSubscriptionGroup(m){return!(0,S.ro)(m,"remove user from subscription group","subscription group ID",!1)||m.length<=0?(_.Z.error("removeFromSubscriptionGroup requires a non-empty subscription group ID"),!1):this.zi.Hn(m,b.Kn.UNSUBSCRIBED).L}kn(m,p,y,g,x){this.wt.kn(m,p,y,g,x),this.zi.Mn()}Dn(m){this.wt.Dn(m)}}b.Genders={MALE:"m",FEMALE:"f",OTHER:"o",UNKNOWN:"u",NOT_APPLICABLE:"n",PREFER_NOT_TO_SAY:"p"},b.NotificationSubscriptionTypes={OPTED_IN:"opted_in",SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},b.En=/^[0-9 .\\(\\)\\+\\-]+$/,b.Kn={SUBSCRIBED:"subscribed",UNSUBSCRIBED:"unsubscribed"},b.Yn="user_id",b.lu="custom",b.lr=997},67:(d,h,f)=>{f.d(h,{Z:()=>E});var c=f(335),_=f(5563);class E{constructor(w,T){this.cards=w,this.lastUpdated=T,this.cards=w,this.lastUpdated=T}getUnreadCardCount(){let w=0;for(const T of this.cards)T.viewed||T instanceof _.Z||w++;return w}dr(){c.Z.error("Must be implemented in a subclass")}logCardImpressions(w){c.Z.error("Must be implemented in a subclass")}logCardClick(w){c.Z.error("Must be implemented in a subclass")}sr(){c.Z.error("Must be implemented in a subclass")}}E.ur=6e4,E.Ah=500,E.Co=1e4},158:(d,h,f)=>{f.d(h,{Z:()=>c});class c{constructor(){}Ns(E){}changeUser(E=!1){}clearData(E=!1){}}},7671:(d,h,f)=>{f.d(h,{De:()=>_,Fz:()=>c,Go:()=>b,S6:()=>g,Tt:()=>y,U4:()=>E,Up:()=>I,Y$:()=>m,_P:()=>w,dH:()=>p,db:()=>T,rF:()=>S});const c=100,_="inAppMessage must be an InAppMessage object",E="must be a Card object",S=500,w="logCustomEvent",T="setCustomUserAttribute",b="Braze must be initialized before calling methods.",I=30,m=30,p=72e5,y=3,g=1},9179:(d,h,f)=>{f.d(h,{Z:()=>w});var c=f(335),_=f(5825),E=f(7559),S=f(4673);const w={q:(T,b,I)=>{var m,p;const y=new S.Z,g=_.ZP.zr();if(!g)return c.Z.info(`Not logging event with type "${T}" because the current session ID could not be found.`),y;const x=g.wo();return y.ge.push(new E.Z(I||((m=_.ZP.er())===null||m===void 0?void 0:m.getUserId()),T,new Date().valueOf(),x,b)),y.L=((p=_.ZP.l())===null||p===void 0?void 0:p.xo(y.ge))||!1,y}}},1311:(d,h,f)=>{f.d(h,{cP:()=>N,tQ:()=>U,cz:()=>H,Yz:()=>$,cV:()=>G,GB:()=>L,Of:()=>M});var c=f(67),_=f(5608),E=f(1507),S=f(5563),w=f(2857),T=f(2893),b=f(7429),I=f(5825),m=f(3695),p=f(335);const y={en:{NO_CARDS_MESSAGE:"We have no updates for you at this time.<br/>Please check again later.",FEED_TIMEOUT_MESSAGE:"Sorry, this refresh timed out.<br/>Please try again later."},ar:{NO_CARDS_MESSAGE:"ليس لدينا أي تحديث. يرجى التحقق مرة أخرى لاحقاً",FEED_TIMEOUT_MESSAGE:"يرجى تكرار المحاولة لاحقا"},cs:{NO_CARDS_MESSAGE:"V tuto chvíli pro vás nemáme žádné aktualizace.<br/>Zkontrolujte prosím znovu později.",FEED_TIMEOUT_MESSAGE:"Prosím zkuste to znovu později."},da:{NO_CARDS_MESSAGE:"Vi har ingen updates.<br/>Prøv venligst senere.",FEED_TIMEOUT_MESSAGE:"Prøv venligst senere."},de:{NO_CARDS_MESSAGE:"Derzeit sind keine Updates verfügbar.<br/>Bitte später noch einmal versuchen.",FEED_TIMEOUT_MESSAGE:"Bitte später noch einmal versuchen."},es:{NO_CARDS_MESSAGE:"No tenemos actualizaciones.<br/>Por favor compruébelo más tarde.",FEED_TIMEOUT_MESSAGE:"Por favor inténtelo más tarde."},"es-mx":{NO_CARDS_MESSAGE:"No tenemos ninguna actualización.<br/>Vuelva a verificar más tarde.",FEED_TIMEOUT_MESSAGE:"Por favor, vuelva a intentarlo más tarde."},et:{NO_CARDS_MESSAGE:"Uuendusi pole praegu saadaval.<br/>Proovige hiljem uuesti.",FEED_TIMEOUT_MESSAGE:"Palun proovige hiljem uuesti."},fi:{NO_CARDS_MESSAGE:"Päivityksiä ei ole saatavilla.<br/>Tarkista myöhemmin uudelleen.",FEED_TIMEOUT_MESSAGE:"Yritä myöhemmin uudelleen."},fr:{NO_CARDS_MESSAGE:"Aucune mise à jour disponible.<br/>Veuillez vérifier ultérieurement.",FEED_TIMEOUT_MESSAGE:"Veuillez réessayer ultérieurement."},he:{NO_CARDS_MESSAGE:".אין לנו עדכונים. בבקשה בדוק שוב בקרוב",FEED_TIMEOUT_MESSAGE:".בבקשה נסה שוב בקרוב"},hi:{NO_CARDS_MESSAGE:"हमारे पास कोई अपडेट नहीं हैं। कृपया बाद में फिर से जाँच करें.।",FEED_TIMEOUT_MESSAGE:"कृपया बाद में दोबारा प्रयास करें।."},id:{NO_CARDS_MESSAGE:"Kami tidak memiliki pembaruan. Coba lagi nanti.",FEED_TIMEOUT_MESSAGE:"Coba lagi nanti."},it:{NO_CARDS_MESSAGE:"Non ci sono aggiornamenti.<br/>Ricontrollare più tardi.",FEED_TIMEOUT_MESSAGE:"Riprovare più tardi."},ja:{NO_CARDS_MESSAGE:"アップデートはありません。<br/>後でもう一度確認してください。",FEED_TIMEOUT_MESSAGE:"後でもう一度試してください。"},ko:{NO_CARDS_MESSAGE:"업데이트가 없습니다. 다음에 다시 확인해 주십시오.",FEED_TIMEOUT_MESSAGE:"나중에 다시 시도해 주십시오."},ms:{NO_CARDS_MESSAGE:"Tiada kemas kini. Sila periksa kemudian.",FEED_TIMEOUT_MESSAGE:"Sila cuba kemudian."},nl:{NO_CARDS_MESSAGE:"Er zijn geen updates.<br/>Probeer het later opnieuw.",FEED_TIMEOUT_MESSAGE:"Probeer het later opnieuw."},no:{NO_CARDS_MESSAGE:"Vi har ingen oppdateringer.<br/>Vennligst sjekk igjen senere.",FEED_TIMEOUT_MESSAGE:"Vennligst prøv igjen senere."},pl:{NO_CARDS_MESSAGE:"Brak aktualizacji.<br/>Proszę sprawdzić ponownie później.",FEED_TIMEOUT_MESSAGE:"Proszę spróbować ponownie później."},pt:{NO_CARDS_MESSAGE:"Não temos atualizações.<br/>Por favor, verifique mais tarde.",FEED_TIMEOUT_MESSAGE:"Por favor, tente mais tarde."},"pt-br":{NO_CARDS_MESSAGE:"Não temos nenhuma atualização.<br/>Verifique novamente mais tarde.",FEED_TIMEOUT_MESSAGE:"Tente novamente mais tarde."},ru:{NO_CARDS_MESSAGE:"Обновления недоступны.<br/>Пожалуйста, проверьте снова позже.",FEED_TIMEOUT_MESSAGE:"Пожалуйста, повторите попытку позже."},sv:{NO_CARDS_MESSAGE:"Det finns inga uppdateringar.<br/>Försök igen senare.",FEED_TIMEOUT_MESSAGE:"Försök igen senare."},th:{NO_CARDS_MESSAGE:"เราไม่มีการอัพเดต กรุณาตรวจสอบภายหลัง.",FEED_TIMEOUT_MESSAGE:"กรุณาลองใหม่ภายหลัง."},uk:{NO_CARDS_MESSAGE:"Оновлення недоступні.<br/>ласка, перевірте знову пізніше.",FEED_TIMEOUT_MESSAGE:"Будь ласка, спробуйте ще раз пізніше."},vi:{NO_CARDS_MESSAGE:"Chúng tôi không có cập nhật nào.<br/>Vui lòng kiểm tra lại sau.",FEED_TIMEOUT_MESSAGE:"Vui lòng thử lại sau."},"zh-hk":{NO_CARDS_MESSAGE:"暫時沒有更新.<br/>請稍候再試.",FEED_TIMEOUT_MESSAGE:"請稍候再試."},"zh-hans":{NO_CARDS_MESSAGE:"暂时没有更新.<br/>请稍后再试.",FEED_TIMEOUT_MESSAGE:"请稍候再试."},"zh-hant":{NO_CARDS_MESSAGE:"暫時沒有更新.<br/>請稍候再試.",FEED_TIMEOUT_MESSAGE:"請稍候再試."},"zh-tw":{NO_CARDS_MESSAGE:"暫時沒有更新.<br/>請稍候再試.",FEED_TIMEOUT_MESSAGE:"請稍候再試."},zh:{NO_CARDS_MESSAGE:"暂时没有更新.<br/>请稍后再试.",FEED_TIMEOUT_MESSAGE:"请稍候再试."}};class g{constructor(V,ae=!1){if(this.language=V,V!=null&&(V=V.toLowerCase()),V!=null&&y[V]==null){const oe=V.indexOf("-");oe>0&&(V=V.substring(0,oe))}if(y[V]==null){const oe="Braze does not yet have a localization for language "+V+", defaulting to English. Please contact us if you are willing and able to help us translate our SDK into this language.";ae?p.Z.error(oe):p.Z.info(oe),V="en"}this.language=V}get(V){return y[this.language][V]}}const x={t:!1,i:null,m:()=>{if(x.o(),!x.i){let F=m.Z.language,V=!1;I.ZP.nn(I.JY.zn)&&(F=I.ZP.nn(I.JY.zn),V=!0),x.i=new g(F,V)}return x.i},o:()=>{x.t||(I.ZP.g(x),x.t=!0)},destroy:()=>{x.i=null,x.t=!1}},R=x;var O=f(7070),j=f(3905),k=f(3046);const N="data-last-requested-refresh",D={};function U(F){F&&(F.className=F.className.replace("ab-show","ab-hide"),setTimeout((()=>{F&&F.parentNode&&F.parentNode.removeChild(F)}),c.Z.Ah));const V=F.getAttribute("data-update-subscription-id");var ae;V!=null&&(ae=V,I.ZP.X()&&I.ZP.removeSubscription(ae));const oe=F.getAttribute("data-listener-id");oe!=null&&(window.removeEventListener("scroll",D[oe]),delete D[oe])}function B(F,V){const ae=document.createElement("div");if(ae.className="ab-feed-body",ae.setAttribute("aria-label","Feed"),ae.setAttribute("role","feed"),F.lastUpdated==null){const oe=document.createElement("div");oe.className="ab-no-cards-message";const _e=document.createElement("i");_e.className="fa fa-spinner fa-spin fa-4x ab-initial-spinner",oe.appendChild(_e),ae.appendChild(oe)}else{let oe=!1;const _e=he=>F.logCardClick(he);for(const he of F.cards){const ye=he instanceof S.Z;!ye||F.dr()?(ae.appendChild((0,_.Dj)(he,_e,V)),oe=oe||!ye):p.Z.error("Received a control card for a legacy news feed. Control cards are only supported with content cards.")}if(!oe){const he=document.createElement("div");he.className="ab-no-cards-message",he.innerHTML=R.m().get("NO_CARDS_MESSAGE")||"",he.setAttribute("role","article"),ae.appendChild(he)}}return ae}function H(F,V){if(F!=null&&V!=null){const ae=[],oe=V.querySelectorAll(".ab-card");F.yo||(F.yo={});for(let _e=0;_e<oe.length;_e++){const he=(0,_.sv)(oe[_e]),ye=(0,E.rJ)(oe[_e]),ge=(0,E.Fr)(oe[_e]);if(F.yo[he]){ye||ge||(0,_.pq)(oe[_e]);continue}let Re=(0,_.ql)(oe[_e]),We=(0,_.rW)(oe[_e]);const He=Re,nr=We;if(!Re&&ye&&(Re=!0,(0,_.Ji)(oe[_e])),!We&&ge&&(We=!0,(0,_.Zw)(oe[_e])),Re&&We){if(He&&nr)continue;for(const ar of F.cards)if(ar.id===he){F.yo[ar.id]=!0,ae.push(ar);break}}}ae.length>0&&F.logCardImpressions(ae)}}function G(F,V){if(F==null||V==null)return;V.setAttribute("aria-busy","true");const ae=V.querySelectorAll(".ab-refresh-button")[0];ae!=null&&(ae.className+=" fa-spin");const oe=new Date().valueOf().toString();V.setAttribute("data-last-requested-refresh",oe),setTimeout((()=>{if(V.getAttribute("data-last-requested-refresh")===oe){const _e=V.querySelectorAll(".fa-spin");for(let ye=0;ye<_e.length;ye++)_e[ye].className=_e[ye].className.replace(/fa-spin/g,"");const he=V.querySelectorAll(".ab-initial-spinner")[0];if(he!=null){const ye=document.createElement("span");ye.innerHTML=R.m().get("FEED_TIMEOUT_MESSAGE")||"",he.parentNode!=null&&(he.parentNode.appendChild(ye),he.parentNode.removeChild(he))}V.getAttribute("aria-busy")==="true"&&V.setAttribute("aria-busy","false")}}),c.Z.Co),F.sr()}function $(F,V,ae){const oe=document.createElement("div");oe.className="ab-feed ab-hide ab-effect-slide",oe.setAttribute("role","dialog"),oe.setAttribute("aria-label","Feed"),oe.setAttribute("tabindex","-1");const _e=document.createElement("div");_e.className="ab-feed-buttons-wrapper",_e.setAttribute("role","group"),oe.appendChild(_e);const he=document.createElement("i");he.className="fa fa-times ab-close-button",he.setAttribute("aria-label","Close Feed"),he.setAttribute("tabindex","0"),he.setAttribute("role","button");const ye=He=>{U(oe),He.stopPropagation()};he.addEventListener("keydown",(He=>{He.keyCode!==b.m.Fo&&He.keyCode!==b.m.To||ye(He)})),he.onclick=ye;const ge=document.createElement("i");ge.className="fa fa-refresh ab-refresh-button",F&&F.lastUpdated==null&&(ge.className+=" fa-spin"),ge.setAttribute("aria-label","Refresh Feed"),ge.setAttribute("tabindex","0"),ge.setAttribute("role","button");const Re=He=>{G(F,oe),He.stopPropagation()};ge.addEventListener("keydown",(He=>{He.keyCode!==b.m.Fo&&He.keyCode!==b.m.To||Re(He)})),ge.onclick=Re,_e.appendChild(ge),_e.appendChild(he),oe.appendChild(B(F,V));const We=()=>H(F,oe);if(oe.addEventListener("scroll",We),!ae){window.addEventListener("scroll",We);const He=O.Z.W();D[He]=We,oe.setAttribute("data-listener-id",He)}return oe}function M(F,V,ae,oe,_e){if(!(0,T.kJ)(V))return;const he=[];for(const ye of V)if(ye instanceof w.Z){if(ye.url&&j.y9.test(ye.url)){const ge=(0,k.OL)(ye.url);if((0,k.je)(ge)){p.Z.error((0,k.Tu)(k.yi.Qi,"Content Card"));continue}}he.push(ye)}if(F.cards=he,F.lastUpdated=ae,oe!=null)if(oe.setAttribute("aria-busy","false"),F.lastUpdated==null)U(oe);else{const ye=oe.querySelectorAll(".ab-feed-body")[0];if(ye!=null){const ge=B(F,_e);ye.parentNode&&ye.parentNode.replaceChild(ge,ye),H(F,ge.parentNode)}}}function L(F,V){F&&V.setAttribute("data-update-subscription-id",F)}},5825:(d,h,f)=>{f.d(h,{JY:()=>lr,ZP:()=>Ve});var c=f(5966),_=f(4663),E=f(5522),S=f(335);class w{constructor(W,Y,Q){this.u=W,this.Jn=Y,this.Qn=Q,this.u=W,this.Jn=Y||!1,this.Qn=Q,this.Xn=new _.Z,this.Zn=0,this.gh=1}Fh(){return this.Jn}kh(){return this.u.j(c.I.C.wh)}setSdkAuthenticationSignature(W){const Y=this.kh();this.u.k(c.I.C.wh,W);const Q=E.Z.Yt.Qt;new E.Z(Q,S.Z).setItem(Q.ss.jh,this.gh,W),Y!==W&&this.Os()}xh(){this.u.ti(c.I.C.wh);const W=E.Z.Yt.Qt;new E.Z(W,S.Z).re(W.ss.jh,this.gh)}subscribeToSdkAuthenticationFailures(W){return this.Qn.It(W)}qh(W){this.Qn.Dt(W)}yh(){this.Xn.removeAllSubscriptions()}Bh(){this.Zn+=1}Gh(){return this.Zn}Os(){this.Zn=0}}var T=f(158),b=f(3695);class I{constructor(W){this.id=W,this.id=W}Ir(){const W={};return this.browser!=null&&(W.browser=this.browser),this.Ia!=null&&(W.browser_version=this.Ia),this.os!=null&&(W.os_version=this.os),this.resolution!=null&&(W.resolution=this.resolution),this.language!=null&&(W.locale=this.language),this.timeZone!=null&&(W.time_zone=this.timeZone),this.userAgent!=null&&(W.user_agent=this.userAgent),W}}const m={BROWSER:"browser",BROWSER_VERSION:"browserVersion",OS:"os",RESOLUTION:"resolution",LANGUAGE:"language",TIME_ZONE:"timeZone",USER_AGENT:"userAgent"};var p=f(2308),y=f(7070),g=f(2893),x=f(8031);class R{constructor(W,Y){this.u=W,this.ka=Y,this.u=W,Y==null&&(Y=(0,g.VO)(m)),this.ka=Y}ce(W=!0){let Y=this.u.tu(c.I.iu.Uo);Y==null&&(Y=new p.Z(y.Z.W()),W&&this.u.uu(c.I.iu.Uo,Y));const Q=new I(Y.eu);for(let re=0;re<this.ka.length;re++)switch(this.ka[re]){case m.BROWSER:Q.browser=b.Z.browser;break;case m.BROWSER_VERSION:Q.Ia=b.Z.version;break;case m.OS:Q.os=this.Ta();break;case m.RESOLUTION:Q.Da=screen.width+"x"+screen.height;break;case m.LANGUAGE:Q.language=b.Z.language;break;case m.TIME_ZONE:Q.timeZone=this.Sa(new Date);break;case m.USER_AGENT:Q.userAgent=b.Z.userAgent}return Q}Ta(){if(b.Z.Oa())return b.Z.Oa();const W=this.u.j(c.I.C.Ca);return W&&W.os_version?W.os_version:b.Z.Ta()}Sa(W){let Y=!1;if(typeof Intl<"u"&&typeof Intl.DateTimeFormat=="function")try{if(typeof Intl.DateTimeFormat().resolvedOptions=="function"){const re=Intl.DateTimeFormat().resolvedOptions().timeZone;if(re!=null&&re!=="")return re}}catch(re){S.Z.info("Intl.DateTimeFormat threw an error, cannot detect user's time zone:"+(0,x.e)(re)),Y=!0}if(Y)return"";const Q=W.getTimezoneOffset();return this.Fa(Q)}Fa(W){const Y=Math.trunc(W/60),Q=Math.trunc(W%60);let re="GMT";return W!==0&&(re+=W<0?"+":"-",re+=("00"+Math.abs(Y)).slice(-2)+":"+("00"+Math.abs(Q)).slice(-2)),re}}var O=f(3826),j=f(7559),k=f(7750),N=f(9179),D=f(2730),U=f(6870),B=f(7671),H=f(8982);class G{constructor(W,Y,Q,re,pe,le,Ee,fe,Pe,ur,cr,de){this.on=W,this.u=Y,this.zo=Q,this.wt=re,this.ri=pe,this.yt=le,this.rn=Ee,this.Go=fe,this.Wo=Pe,this.Vo=ur,this.appVersion=cr,this.Xh=de,this.$h=Ae=>Ae==null?"":`${Ae} `,this.on=W,this.u=Y,this.zo=Q,this.wt=re,this.ri=pe,this.yt=le,this.rn=Ee,this.Go=fe,this.Wo=Pe,this.Vo=ur,this.appVersion=cr,this.Xh=de,this.Hh=["npm"]}Js(W,Y=!1,Q=!1){const re=this.on.ce(!Q),pe=re.Ir(),le=this.u.j(c.I.C.Ca);(0,g.Xy)(le,pe)||(W.device=pe),W.api_key=this.rn,W.time=(0,k.FX)(new Date().valueOf(),!0);const Ee=this.u.j(c.I.C.Yh)||[],fe=this.u.j(c.I.C.Jh)||"";if(this.Hh.length>0&&(!(0,g.Xy)(Ee,this.Hh)||fe!==this.ri.Si())&&(W.sdk_metadata=this.Hh),W.sdk_version=this.Wo,this.Vo&&(W.sdk_flavor=this.Vo),W.app_version=this.appVersion,W.app_version_code=this.Xh,W.device_id=re.id,Y){const Pe=this.wt.getUserId();Pe!=null&&(W.user_id=Pe)}if(!W.user_id&&!this.zo.Fh()){const Pe=(0,H.q)(this.u);Pe&&(W.alias=Pe)}return W}Ks(W,Y,Q){const re=Y.auth_error,pe=Y.error;if(!re&&!pe)return!0;if(re){let le;this.zo.Bh();const Ee={errorCode:re.error_code};for(const Pe of Q)(0,g.kJ)(Pe)&&Pe[0]==="X-Braze-Auth-Signature"&&(Ee.signature=Pe[1]);W.respond_with&&W.respond_with.user_id?Ee.userId=W.respond_with.user_id:W.user_id&&(Ee.userId=W.user_id);const fe=re.reason;return fe?(Ee.reason=fe,le=`due to ${fe}`):le=`with error code ${re.error_code}.`,this.zo.Fh()||(le+=' Please use the "enableSdkAuthentication" initialization option to enable authentication.'),S.Z.error(`SDK Authentication failed ${le}`),this.Qh(W.events||[],W.attributes||[]),this.zo.qh(Ee),!1}if(pe){let le,Ee=pe;switch(Ee){case O.Z.Zh:return le="Received successful response with empty body.",N.Z.q(D.G.qs,{e:le}),S.Z.info(le),!1;case O.Z.Ra:return le="Received successful response with invalid JSON",N.Z.q(D.G.qs,{e:le+": "+Y.response}),S.Z.info(le),!1;case O.Z.qa:Ee=`The API key "${W.api_key}" is invalid for the baseUrl ${this.Go}`;break;case O.Z.Aa:Ee="Sorry, we are not currently accepting your requests. If you think this is in error, please contact us.";break;case O.Z.Ba:Ee="No device identifier. Please contact support@braze.com"}S.Z.error("Backend error: "+Ee)}return!1}Na(W,Y,Q,re){return!!(W&&W.length!==0||Y&&Y.length!==0||Q||re)}Xa(W,Y,Q,re,pe=!1){const le=[],Ee=Oe=>Oe||"",fe=Ee(this.wt.getUserId());let Pe=this.Zi(W,Y);const ur=[],cr=[];let de,Ae=null;if(Q.length>0){const Oe=[];for(const De of Q){if(de=De.Ir(),this.zo.Fh()){if(fe&&!de.user_id){Ae||(Ae={}),Ae.events||(Ae.events=[]),Ae.events.push(de);continue}if(Ee(de.user_id)!==fe){cr.push(de);continue}}Oe.push(de)}Oe.length>0&&(Pe.events=Oe)}if(re.length>0){const Oe=[];for(const De of re)De&&(this.zo.Fh()&&Ee(De.user_id)!==fe?ur.push(De):Oe.push(De));Oe.length>0&&(Pe.attributes=Oe)}if(this.Qh(cr,ur),Pe=this.Js(Pe,!0,pe),Ae){Ae=this.Js(Ae,!1,pe);const Oe={requestData:Ae,headers:this.$s(Ae,U.Z.Ps.$a)};le.push(Oe)}if(Pe&&!this.Na(Pe.events,Pe.attributes,W,Y))return Ae?le:null;const Ne={requestData:Pe,headers:this.$s(Pe,U.Z.Ps.$a)};return le.push(Ne),le}Qh(W,Y){if(W){const Q=[];for(const re of W){const pe=j.Z.fromJson(re);pe.time=(0,k.Pn)(pe.time),Q.push(pe)}this.u.xo(Q)}if(Y)for(const Q of Y)this.u.La(Q)}Vs(W,Y){let Q="HTTP error ";W!=null&&(Q+=W+" "),Q+=Y,S.Z.error(Q)}qr(W){return N.Z.q(D.G.Ea,{n:W})}Zi(W,Y,Q){const re={};W&&(re.feed=!0),Y&&(re.triggers=!0);const pe=Q??this.wt.getUserId();if(pe&&(re.user_id=pe),!re.user_id&&!this.zo.Fh()){const le=(0,H.q)(this.u);le&&(re.alias=le)}return re.config={config_time:this.yt.ii()},{respond_with:re}}Ka(W){const Y=new Date().valueOf();let Q=B.dH.toString();const re=U.Z.Pa(this.u,W);return re!==-1&&(Q=(Y-re).toString()),Q}$s(W,Y,Q=!1){const re=[["X-Braze-Api-Key",this.rn]],pe=this.Ka(Y);re.push(["X-Braze-Last-Req-Ms-Ago",pe]);const le=U.Z.Ua(this.u,Y).toString();re.push(["X-Braze-Req-Attempt",le]);let Ee=!1;if(W.respond_with!=null&&W.respond_with.triggers&&(re.push(["X-Braze-TriggersRequest","true"]),Ee=!0),W.respond_with!=null&&W.respond_with.feed&&(re.push(["X-Braze-FeedRequest","true"]),Ee=!0),Y===U.Z.Ps.Bs){re.push(["X-Braze-ContentCardsRequest","true"]);let fe=this.u.j(c.I.C.As);fe&&Q||(fe=0,this.u.k(c.I.C.As,fe)),re.push(["BRAZE-SYNC-RETRY-COUNT",fe.toString()]),Ee=!0}if(Y===U.Z.Ps.bi&&(re.push(["X-Braze-FeatureFlagsRequest","true"]),Ee=!0),Ee&&re.push(["X-Braze-DataRequest","true"]),this.zo.Fh()){const fe=this.zo.kh();fe!=null&&re.push(["X-Braze-Auth-Signature",fe])}return re}Ga(W,Y,Q,re){window.setTimeout((()=>{S.Z.info(`Retrying rate limited ${this.$h(re)}SDK request.`),this.Xs(Y,Q,re)}),W)}Xs(W,Y,Q,re){if(!this.Ha(Q))return S.Z.info(`${this.$h(Q)}SDK request being rate limited.`),void(typeof re=="function"&&re());const pe=this.Wa();if(!pe.Ya)return S.Z.info(`${this.$h(Q)}SDK request being rate limited. Request will be retried in ${Math.trunc(pe.Ja/1e3)} seconds.`),void this.Ga(pe.Ja,W,Y,Q);this.u.k(c.I.C.Qa,new Date().valueOf());const le=W.device;le&&le.os_version instanceof Promise?le.os_version.then((Ee=>{W.device.os_version=Ee,Y(pe.Va)})):Y(pe.Va)}Za(W){var Y;(Y=this.u)===null||Y===void 0||Y.k(c.I.C.au,W)}du(W,Y){let Q=this.fu();Q==null&&(Q={}),Q[W]=Y,this.u.k(c.I.C.vu,Q)}Ru(){var W;return(W=this.u)===null||W===void 0?void 0:W.j(c.I.C.au)}fu(){var W;return(W=this.u)===null||W===void 0?void 0:W.j(c.I.C.vu)}gu(W,Y,Q,re,pe=""){let le;if(pe){const fe=this.fu();le=fe==null||isNaN(fe[pe])?Y:fe[pe]}else le=this.Ru(),(le==null||isNaN(le))&&(le=Y);const Ee=(W-re)/1e3;return le=Math.min(le+Ee/Q,Y),le}pu(W,Y){return Math.max(0,(1-W)*Y*1e3)}bu(W,Y=""){var Q,re,pe,le,Ee;const fe={Ya:!0,Va:-1,Ja:0};if(W==null&&(W=!0),!W&&!Y)return fe;let Pe,ur,cr=null;if(W)cr=(Q=this.u)===null||Q===void 0?void 0:Q.j(c.I.C.Qa);else{const Ne=U.Z.qu(this.u);if(Ne==null||Ne[Y]==null)return fe;cr=Ne[Y]}if(cr==null||isNaN(cr)||(W?(Pe=((re=this.yt)===null||re===void 0?void 0:re.Au())||-1,ur=((pe=this.yt)===null||pe===void 0?void 0:pe.Du())||-1):(Pe=((le=this.yt)===null||le===void 0?void 0:le.Tu(Y))||-1,ur=((Ee=this.yt)===null||Ee===void 0?void 0:Ee.ku(Y))||-1),Pe===-1||ur===-1))return fe;const de=new Date().valueOf();let Ae=this.gu(de,Pe,ur,cr,Y);return Ae<1?(fe.Ya=!1,fe.Ja=this.pu(Ae,ur),fe):(Ae=Math.trunc(Ae)-1,fe.Va=Ae,W?this.Za(Ae):this.du(Y,Ae),fe)}Wa(){return this.bu(!0)}Ha(W){const Y=this.bu(!1,W);return!(Y&&!Y.Ya)}Os(){this.zo.Os()}Hs(){return this.Go}addSdkMetadata(W){for(const Y of W)this.Hh.indexOf(Y)===-1&&this.Hh.push(Y)}}var $=f(1843),M=f(6504),L=f(4673),F=f(4556);class V{constructor(W,Y,Q,re,pe,le,Ee,fe,Pe,ur){this.rn=W,this.baseUrl=Y,this.ri=Q,this.on=re,this.wt=pe,this.yt=le,this.u=Ee,this.wu=fe,this.zo=Pe,this.qt=ur,this.rn=W,this.baseUrl=Y,this.yu=0,this.fE=Ee.dE()||0,this.ju=null,this.ri=Q,this.on=re,this.wt=pe,this.yt=le,this.u=Ee,this.zo=Pe,this.qt=ur,this.wu=fe,this.Su=new _.Z,this.$u=null,this.Cu=50,this.Fu=!1}Lu(W,Y){return!W&&!Y&&this.zo.Gh()>=this.Cu}Mu(W){let Y=this.ri.Gl();if(W.length>0){const Q=this.wt.getUserId();for(const re of W){const pe=!re.userId&&!Q||re.userId===Q;re.type===D.G.ql&&pe&&(Y=!0)}}return Y}Pu(W=!1,Y=!1,Q=!0,re,pe,le,Ee=!1,fe=!1){Q&&this.xu();const Pe=this.u.AE(),ur=this.u.OE();let cr=!1;const de=(Te,vr,$r=-1)=>{let Me=!1;const rr=new Date().valueOf();U.Z._s(this.u,U.Z.Ps.$a,rr),$r!==-1&&vr.push(["X-Braze-Req-Tokens-Remaining",$r.toString()]),$.Z.Gs({url:this.baseUrl+"/data/",data:Te,headers:vr,L:Xe=>{Te.respond_with!=null&&Te.respond_with.triggers&&(this.yu=Math.max(this.yu-1,0)),this.qt.Ks(Te,Xe,vr)?(this.zo.Os(),this.yt.al(Xe),Te.respond_with!=null&&Te.respond_with.user_id!=this.wt.getUserId()||(Te.device!=null&&this.u.k(c.I.C.Ca,Te.device),Te.sdk_metadata!=null&&(this.u.k(c.I.C.Yh,Te.sdk_metadata),this.u.k(c.I.C.Jh,this.ri.Si())),this.wu(Xe),U.Z.Qs(this.u,U.Z.Ps.$a,1),typeof re=="function"&&re())):Xe.auth_error&&(Me=!0)},error:()=>{Te.respond_with!=null&&Te.respond_with.triggers&&(this.yu=Math.max(this.yu-1,0)),this.qt.Qh(Te.events,Te.attributes),typeof pe=="function"&&pe()},Ws:Xe=>{if(typeof le=="function"&&le(Xe),Q&&!cr){if(Xe&&!Me)this.Iu();else{U.Z.Ys(this.u,U.Z.Ps.$a);let Qe=this.ju;(Qe==null||Qe<1e3*this.fE)&&(Qe=1e3*this.fE),this.Iu(Math.min(3e5,(0,M.R)(1e3*this.fE,3*Qe)))}cr=!0}}})},Ae=this.Mu(Pe),Ne=Y||Ae;if(this.Lu(Ee,Ae))return void S.Z.info("Declining to flush data due to 50 consecutive authentication failures");if(Q&&!this.qt.Na(Pe,ur,W,Ne))return this.Iu(),void(typeof le=="function"&&le(!0));const Oe=this.qt.Xa(W,Ne,Pe,ur,fe);Ne&&this.yu++;let De=!1;if(Oe)for(const Te of Oe)this.qt.Xs(Te.requestData,(vr=>de(Te.requestData,Te.headers,vr)),U.Z.Ps.$a,pe),De=!0;this.zo.Fh()&&Q&&!De?this.Iu():Ae&&(S.Z.info("Invoking new session subscriptions"),this.Su.Dt())}Nu(){return this.yu>0}Iu(W=1e3*this.fE){this.Fu||(this.xu(),this.$u=window.setTimeout((()=>{if(document.hidden){const Y="visibilitychange",Q=()=>{document.hidden||(document.removeEventListener(Y,Q,!1),this.Pu())};document.addEventListener(Y,Q,!1)}else this.Pu()}),W),this.ju=W)}xu(){this.$u!=null&&(clearTimeout(this.$u),this.$u=null)}initialize(){this.Fu=!1,this.Iu()}destroy(){this.Su.removeAllSubscriptions(),this.zo.yh(),this.xu(),this.Fu=!0,this.Pu(void 0,void 0,!1,void 0,void 0,void 0,void 0,!0),this.$u=null}mr(W){return this.Su.It(W)}openSession(){const W=this.ri.Si()!==this.ri.wo();W&&(this.u.cE(c.I.iu.Uo),this.u.cE(c.I.iu.su)),this.Pu(void 0,!1,void 0,(()=>{this.u.ti(c.I.C.vi)})),this.Mn(),W&&Promise.resolve().then(f.bind(f,4127)).then((Y=>{if(this.Fu)return;const Q=Y.default.m();if(Q!=null&&(F.Z.isPushPermissionGranted()||F.Z.isPushBlocked())){const re=()=>{Q.mn()?S.Z.info("Push token maintenance is disabled, not refreshing token for backend."):Q.subscribe()},pe=(fe,Pe)=>{Pe&&re()},le=()=>{const fe=this.u.j(c.I.C.In);(fe==null||fe)&&re()},Ee=E.Z.Yt.Qt;new E.Z(Ee,S.Z).jr(Ee.ss.cu,pe,le)}}))}Ou(){this.u.ti(c.I.C.gi),this.u.ti(c.I.C.ws),this.u.ti(c.I.C.Cr)}changeUser(W,Y,Q){const re=this.wt.getUserId();if(re!==W){this.ri.yl(),this.Ou(),re!=null&&this.Pu(void 0,!1,void 0,void 0,void 0),this.wt.ou(W),Q?this.zo.setSdkAuthenticationSignature(Q):this.zo.xh();for(let pe=0;pe<Y.length;pe++)Y[pe].changeUser(re==null);re!=null&&this.u.ti(c.I.C.J),this.u.ti(c.I.C.Ca),this.u.ti(c.I.C.nE),this.u.ti(c.I.C._E),this.openSession(),S.Z.info('Changed user to "'+W+'".')}else{let pe="Doing nothing.";Q&&this.zo.kh()!==Q&&(this.zo.setSdkAuthenticationSignature(Q),pe="Updated SDK authentication signature"),S.Z.info(`Current user is already ${W}. ${pe}`)}}requestImmediateDataFlush(W){this.xu(),this.ri.wo(),this.Pu(void 0,void 0,void 0,void 0,(()=>{S.Z.error("Failed to flush data, request will be retried automatically.")}),W,!0)}requestFeedRefresh(){this.ri.wo(),this.Pu(!0)}$r(W,Y){this.ri.wo(),S.Z.info("Requesting explicit trigger refresh."),this.Pu(void 0,!0,void 0,W,Y)}Cn(W,Y){const Q=D.G.zu,re={a:W,l:Y},pe=N.Z.q(Q,re);return pe&&(S.Z.info(`Logged alias ${W} with label ${Y}`),this.u.k(c.I.C._E,re)),pe}Fn(W,Y,Q){if(this.yt.hu(Y))return S.Z.info(`Custom Attribute "${Y}" is blocklisted, ignoring.`),new L.Z;const re={key:Y,value:Q},pe=N.Z.q(W,re);if(pe){const le=typeof Q=="object"?JSON.stringify(Q,null,2):Q;S.Z.info(`Logged custom attribute: ${Y} with value: ${le}`)}return pe}setLastKnownLocation(W,Y,Q,re,pe,le){const Ee={latitude:Y,longitude:Q};re!=null&&(Ee.altitude=re),pe!=null&&(Ee.ll_accuracy=pe),le!=null&&(Ee.alt_accuracy=le);const fe=N.Z.q(D.G.Uu,Ee,W||void 0);return fe&&S.Z.info(`Set user last known location as ${JSON.stringify(Ee,null,2)}`),fe}kr(W,Y){const Q=this.ri.wo();return new j.Z(this.wt.getUserId(),D.G._u,W,Q,{cid:Y})}Bu(W,Y){return new E.Z(W,Y)}Mn(){const W=E.Z.Yt.Qt;this.Bu(W,S.Z).setItem(W.ss.$a,1,{baseUrl:this.baseUrl,data:{api_key:this.rn,device_id:this.on.ce().id},userId:this.wt.getUserId(),sdkAuthEnabled:this.zo.Fh()})}yr(W){for(const Y of W)if(Y.api_key===this.rn)this.qt.Qh(Y.events,Y.attributes);else{const Q=E.Z.Yt.Qt;new E.Z(Q,S.Z).setItem(Q.ss.wr,y.Z.W(),Y)}}Gn(W,Y,Q){if(this.yt.hu(W))return S.Z.info(`Custom Attribute "${W}" is blocklisted, ignoring.`),new L.Z;let re,pe;return Y===null&&Q===null?(re=D.G.Eu,pe={key:W}):(re=D.G.Ju,pe={key:W,latitude:Y,longitude:Q}),N.Z.q(re,pe)}Hn(W,Y){const Q={group_id:W,status:Y};return N.Z.q(D.G.Ku,Q)}}class ae{constructor(W=0,Y=[],Q=[],re=[],pe=null,le=null,Ee={enabled:!1},fe={enabled:!1,refresh_rate_limit:void 0},Pe={enabled:!0,capacity:B.Up,refill_rate:B.Y$,endpoint_overrides:{}}){this.hl=W,this.gl=Y,this.fl=Q,this.bl=re,this.Rl=pe,this.cl=le,this.ml=Ee,this.hi=fe,this.ol=Pe,this.hl=W,this.gl=Y,this.fl=Q,this.bl=re,this.Rl=pe,this.cl=le,this.ml=Ee,this.hi=fe,this.ol=Pe}Y(){return{s:"5.3.1",l:this.hl,e:this.gl,a:this.fl,p:this.bl,m:this.Rl,v:this.cl,c:this.ml,f:this.hi,grl:this.ol}}static qn(W){let Y=W.l;return W.s!=="5.3.1"&&(Y=0),new ae(Y,W.e,W.a,W.p,W.m,W.v,W.c,W.f,W.grl)}}class oe{constructor(W){this.u=W,this.u=W,this.tl=new _.Z,this.el=new _.Z,this.il=new _.Z,this.sl=null,this.rl=null}ll(){if(this.rl==null){const W=this.u.j(c.I.C.ul);this.rl=W!=null?ae.qn(W):new ae}return this.rl}ii(){return this.ll().hl}al(W){if(W!=null&&W.config!=null){const Y=W.config;if(Y.time>this.ll().hl){const Q=fe=>fe??this.ll().ol,re=new ae(Y.time,Y.events_blacklist,Y.attributes_blacklist,Y.purchases_blacklist,Y.messaging_session_timeout,Y.vapid_public_key,Y.content_cards,Y.feature_flags,Q(Y.global_request_rate_limit));let pe=!1;re.cl!=null&&this.Wn()!==re.cl&&(pe=!0);let le=!1;re.ml.enabled!=null&&this.si()!==re.ml.enabled&&(le=!0);let Ee=!1;re.hi.enabled!=null&&this.ci()!==re.hi.enabled&&(Ee=!0),this.rl=re,this.u.k(c.I.C.ul,re.Y()),pe&&this.tl.Dt(),le&&this.el.Dt(),Ee&&this.il.Dt()}}}_n(W){const Y=this.tl.It(W);return this.sl&&this.tl.removeSubscription(this.sl),this.sl=Y,Y}Is(W){return this.el.It(W)}ji(W){return this.il.It(W)}me(W){return this.ll().gl.indexOf(W)!==-1}hu(W){return this.ll().fl.indexOf(W)!==-1}Dr(W){return this.ll().bl.indexOf(W)!==-1}dl(){return this.ll().Rl}Wn(){return this.ll().cl}si(){return this.ll().ml.enabled||!1}Cl(){const W=this.ll().ol;return!(!W||W.enabled==null)&&W.enabled}Au(){if(!this.Cl())return-1;const W=this.ll().ol;return W.capacity==null||W.capacity<10?-1:W.capacity}Du(){if(!this.Cl())return-1;const W=this.ll().ol;return W.refill_rate==null||W.refill_rate<=0?-1:W.refill_rate}vl(W){const Y=this.ll().ol.endpoint_overrides;return Y==null?null:Y[W]}Tu(W){const Y=this.vl(W);return Y==null||isNaN(Y.capacity)||Y.capacity<=0?-1:Y.capacity}ku(W){const Y=this.vl(W);return Y==null||isNaN(Y.refill_rate)||Y.refill_rate<=0?-1:Y.refill_rate}ci(){return this.ll().hi.enabled&&this.Ri()==null?(N.Z.q(D.G.qs,{e:"Missing feature flag refresh_rate_limit."}),!1):this.ll().hi.enabled||!1}Ri(){return this.ll().hi.refresh_rate_limit}}class _e{constructor(W,Y,Q,re){this.u=W,this.wt=Y,this.yt=Q,this.wl=re,this.u=W,this.wt=Y,this.yt=Q,this.Sl=1e3,(re==null||isNaN(re))&&(re=1800),re<this.Sl/1e3&&(S.Z.info("Specified session timeout of "+re+"s is too small, using the minimum session timeout of "+this.Sl/1e3+"s instead."),re=this.Sl/1e3),this.wl=re}jl(W,Y){return new j.Z(this.wt.getUserId(),D.G.xl,W,Y.eu,{d:(0,k.FX)(W-Y.Dl)})}Si(){const W=this.u.tu(c.I.iu.El);return W==null?null:W.eu}Gl(){const W=new Date().valueOf(),Y=this.yt.dl(),Q=this.u.j(c.I.C.Nl);if(Q!=null&&Y==null)return!1;let re=!1;return Q==null?re=!0:Y!=null&&(re=W-Q>1e3*Y),re&&this.u.k(c.I.C.Nl,W),re}zl(W,Y){return Y==null||Y.Hl==null||!(W-Y.Dl<this.Sl)&&Y.Hl<W}wo(){const W=new Date().valueOf(),Y=W+1e3*this.wl,Q=this.u.tu(c.I.iu.El);if(this.zl(W,Q)){let re="Generating session start event with time "+W;if(Q!=null){let le=Q.Wl;le-Q.Dl<this.Sl&&(le=Q.Dl+this.Sl),this.u.kl(this.jl(le,Q)),re+=" (old session ended "+le+")"}re+=". Will expire "+Y.valueOf(),S.Z.info(re);const pe=new p.Z(y.Z.W(),Y);return this.u.kl(new j.Z(this.wt.getUserId(),D.G.ql,W,pe.eu)),this.u.uu(c.I.iu.El,pe),this.u.j(c.I.C.Nl)==null&&this.u.k(c.I.C.Nl,W),pe.eu}if(Q!=null)return Q.Wl=W,Q.Hl=Y,this.u.uu(c.I.iu.El,Q),Q.eu}yl(){const W=this.u.tu(c.I.iu.El);W!=null&&(this.u.Al(c.I.iu.El),this.u.kl(this.jl(new Date().valueOf(),W)))}}const he={Qo:function(Ge,W=!1){let Y=!1;try{if(localStorage&&localStorage.getItem)try{localStorage.setItem(c.I.C.ec,"true"),localStorage.getItem(c.I.C.ec)&&(localStorage.removeItem(c.I.C.ec),Y=!0)}catch(le){if(!(le instanceof Error&&(le.name==="QuotaExceededError"||le.name==="NS_ERROR_DOM_QUOTA_REACHED")&&localStorage.length>0))throw le;Y=!0}}catch{S.Z.info("Local Storage not supported!")}const Q=he.oc(),re=new c.Z.tc(Ge,Q&&!W,Y);let pe;return pe=Y?new c.Z.rc(Ge):new c.Z.ac,new c.Z(re,pe)},oc:function(){return navigator.cookieEnabled||"cookie"in document&&(document.cookie.length>0||(document.cookie="test").indexOf.call(document.cookie,"test")>-1)}},ye=he;var ge=f(9342),Re=f(8548),We=f(3552),He=f(7615);class nr{constructor(W,Y){this.yt=W,this.u=Y,this.yt=W,this.u=Y}getUserId(){const W=this.u.tu(c.I.iu.su);if(W==null)return null;let Y=W.eu,Q=(0,Re.E)(Y);if(Q>He.Z.lr){for(;Q>He.Z.lr;)Y=Y.slice(0,Y.length-1),Q=(0,Re.E)(Y);W.eu=Y,this.u.uu(c.I.iu.su,W)}return Y}ou(W){const Y=this.getUserId()==null;this.u.uu(c.I.iu.su,new p.Z(W)),Y&&this.u.ru(W)}setCustomUserAttribute(W,Y){if(this.yt.hu(W))return S.Z.info('Custom Attribute "'+W+'" is blocklisted, ignoring.'),!1;const Q={};return Q[W]=Y,this.nu(He.Z.lu,Q,!0)}nu(W,Y,Q=!1,re=!1){const pe=this.u.mu(this.getUserId(),W,Y);let le="",Ee=W,fe=Y;return Q&&(le=" custom",typeof Y=="object"&&(Ee=Object.keys(Y)[0],fe=Y[Ee],typeof fe=="object"&&(fe=JSON.stringify(fe,null,2)))),!re&&pe&&S.Z.info(`Logged${le} attribute ${Ee} with value ${fe}`),pe}kn(W,Y,Q,re,pe){this.nu("push_token",W,!1,!0),this.nu("custom_push_public_key",Q,!1,!0),this.nu("custom_push_user_auth",re,!1,!0),this.nu("custom_push_vapid_public_key",pe,!1,!0);const le=E.Z.Yt.Qt,Ee=new E.Z(le,S.Z),fe=new We.Z(W,Y,Q,re,pe);this.u.k(c.I.C.In,fe.Y()),Ee.setItem(le.ss.cu,le.ie,!0)}Dn(W){if(this.nu("push_token",null,!1,!0),this.nu("custom_push_public_key",null,!1,!0),this.nu("custom_push_user_auth",null,!1,!0),this.nu("custom_push_vapid_public_key",null,!1,!0),W){const Y=E.Z.Yt.Qt,Q=new E.Z(Y,S.Z);this.u.k(c.I.C.In,!1),Q.setItem(Y.ss.cu,Y.ie,!1)}}}var ar=f(1148),xr=f(5319);const or={Eo:"allowCrawlerActivity",_o:"baseUrl",Io:"noCookies",Ao:"devicePropertyAllowlist",_a:"disablePushTokenMaintenance",So:"enableLogging",No:"enableSdkAuthentication",Ma:"manageServiceWorkerExternally",Oo:"minimumIntervalBetweenTriggerActionsInSeconds",Po:"sessionTimeoutInSeconds",Ro:"appVersion",Lo:"appVersionNumber",wa:"serviceWorkerLocation",ya:"safariWebsitePushId",zn:"localization",bo:"contentSecurityNonce",Do:"allowUserSuppliedJavascript",jo:"inAppMessageZIndex",ho:"openInAppMessagesInNewTab",en:"openNewsFeedCardsInNewTab",Lh:"requireExplicitInAppMessageDismissal",Mo:"doNotLoadFontAwesome",Uo:"deviceId",Bo:"sdkFlavor",tn:"openCardsInNewTab"},lr={Eo:"allowCrawlerActivity",_o:"baseUrl",Io:"noCookies",Ao:"devicePropertyAllowlist",_a:"disablePushTokenMaintenance",So:"enableLogging",No:"enableSdkAuthentication",Ma:"manageServiceWorkerExternally",Oo:"minimumIntervalBetweenTriggerActionsInSeconds",Po:"sessionTimeoutInSeconds",Ro:"appVersion",Lo:"appVersionNumber",wa:"serviceWorkerLocation",ya:"safariWebsitePushId",zn:"localization",bo:"contentSecurityNonce",Do:"allowUserSuppliedJavascript",jo:"inAppMessageZIndex",ho:"openInAppMessagesInNewTab",tn:"openCardsInNewTab",en:"openNewsFeedCardsInNewTab",Lh:"requireExplicitInAppMessageDismissal",Mo:"doNotLoadFontAwesome",Uo:"deviceId",Bo:"sdkFlavor"},Ve=new class{constructor(){this.rn="",this.Wo="",this.Vo=void 0,this.zo=null,this.on=null,this.qt=null,this.zi=null,this.yt=null,this.ri=null,this.u=null,this.wt=null,this.Go="",this.Ko=!1,this.$o=!1,this.qo=new _.Z,this.Jo=new _.Z,this.options={},this.Yo=[],this.Ho=[],this._e=[],this.Wo="5.3.1"}Xo(Ge){this.qo.It(Ge)}Sh(Ge){this.Jo.It(Ge)}initialize(Ge,W){if(this.so())return S.Z.info("Braze has already been initialized with an API key."),!0;this.options=W||{};let Y=this.nn(lr.So);const Q=(0,ar.L)(xr.SD.Un());if(Q&&Q.brazeLogging==="true"&&(Y=!0),S.Z.init(Y),S.Z.info(`Initialization Options: ${JSON.stringify(this.options,null,2)}`),Ge==null||Ge===""||typeof Ge!="string")return S.Z.error("Braze requires a valid API key to be initialized."),!1;this.rn=Ge;let re=this.nn(lr._o);if(re==null||re===""||typeof re!="string")return S.Z.error("Braze requires a valid baseUrl to be initialized."),!1;/^https?:/.test(re)===!1&&(re=`https://${re}`);const pe=re;if(re=document.createElement("a"),re.href=pe,re.pathname==="/"&&(re=`${re}api/v3`),this.Go=re.toString(),b.Z.Zo&&!this.nn(lr.Eo))return S.Z.info("Ignoring activity from crawler bot "+navigator.userAgent),this.$o=!0,!1;const le=this.nn(lr.Io)||!1;if(this.u=ye.Qo(Ge,le),le&&this.u.Wh(Ge),new c.Z.ee(null,!0).br(c.I.se))return S.Z.info("Ignoring all activity due to previous opt out"),this.$o=!0,!1;for(const cr of(0,g.XP)(this.options))(0,g.VO)(or).indexOf(cr)===-1&&S.Z.warn(`Ignoring unknown initialization option '${cr}'.`);const Ee=["mparticle","wordpress","tealium"];if(this.nn(lr.Bo)!=null){const cr=this.nn(lr.Bo);Ee.indexOf(cr)!==-1?this.Vo=cr:S.Z.error("Invalid sdk flavor passed: "+cr)}let fe=this.nn(or.Ao);if(fe!=null)if((0,g.kJ)(fe)){const cr=[];for(let de=0;de<fe.length;de++)(0,g.fk)(m,fe[de],"devicePropertyAllowlist contained an invalid value.","DeviceProperties")&&cr.push(fe[de]);fe=cr}else S.Z.error("devicePropertyAllowlist must be an array. Defaulting to all properties."),fe=null;const Pe=this.nn(lr.Uo);if(Pe){const cr=new p.Z(Pe);this.u.uu(c.I.iu.Uo,cr)}this.on=new R(this.u,fe),this.yt=new oe(this.u),this.wt=new nr(this.yt,this.u),this.ri=new _e(this.u,this.wt,this.yt,this.nn(lr.Po));const ur=new _.Z;return this.zo=new w(this.u,this.nn(lr.No),ur),this.$t(ur),this.qt=new G(this.on,this.u,this.zo,this.wt,this.ri,this.yt,this.rn,this.Go,this.Wo,this.Vo||"",this.nn(lr.Ro),this.nn(lr.Lo)),this.zi=new V(this.rn,this.Go,this.ri,this.on,this.wt,this.yt,this.u,(cr=>{if(this.so())for(const de of this.gr())de.Ns(cr)}),this.zo,this.qt),this.zi.initialize(),le||this.u.Vh(),S.Z.info(`Initialized for the Braze backend at "${this.nn(lr._o)}" with API key "${this.rn}".`),ge.n.o(),this.yt.ji((()=>{var cr;this.Ko&&(!((cr=this.yt)===null||cr===void 0)&&cr.ci())&&f.e(787).then(f.bind(f,9787)).then((de=>{this.Ko&&(0,de.default)()}))})),this.zi.mr((()=>{var cr;this.Ko&&(!((cr=this.yt)===null||cr===void 0)&&cr.ci())&&f.e(787).then(f.bind(f,9787)).then((de=>{this.Ko&&(0,de.default)(void 0,void 0,!0)}))})),this.qo.Dt(this.options),this.Ko=!0,!0}destroy(Ge){if(S.Z.destroy(),this.so()){this.Jo.Dt(),this.Jo.removeAllSubscriptions();for(const W of this.Yo)W.destroy();this.Yo=[];for(const W of this.Ho)W.clearData(!1);this.Ho=[],this.removeAllSubscriptions(),this._e=[],this.zi!=null&&this.zi.destroy(),this.zi=null,this.zo=null,this.on=null,this.qt=null,this.yt=null,this.ri=null,this.wt=null,this.options={},this.Vo=void 0,this.Ko=!1,this.$o=!1,Ge&&(this.u=null)}}X(){return!(this.Kh()||!this.so()&&(console.warn(B.Go),1))}ba(){return this.rn}Sr(){return this.zo}Hs(){return this.Go}te(){return this.on}nr(){return this.qt}nn(Ge){return this.options[Ge]}gr(){return this.Ho}cr(){return this.zi}ir(){return this.yt}zr(){return this.ri}l(){return this.u}pr(){if(this.wt&&this.zi)return new He.Z(this.wt,this.zi)}er(){return this.wt}tr(){return this.nn(lr.Do)===!0}g(Ge){let W=!1;for(const Y of this.Yo)Y===Ge&&(W=!0);W||this.Yo.push(Ge)}ar(Ge){let W=!1;for(const Y of this.Ho)Y.constructor===Ge.constructor&&(W=!0);Ge instanceof T.Z&&!W&&this.Ho.push(Ge)}$t(Ge){Ge instanceof _.Z&&this._e.push(Ge)}removeAllSubscriptions(){if(this.X())for(const Ge of this._e)Ge.removeAllSubscriptions()}removeSubscription(Ge){if(this.X())for(const W of this._e)W.removeSubscription(Ge)}oe(Ge){this.$o=Ge}so(){return this.Ko}Kh(){return this.$o}Ds(){return this.Wo}}},5966:(d,h,f)=>{f.d(h,{I:()=>m,Z:()=>p});var c=f(7559),_=f(2308),E=f(2893),S=f(2730),w=f(335),T=f(7615),b=f(3695),I=f(8031);const m={iu:{su:"ab.storage.userId",Uo:"ab.storage.deviceId",El:"ab.storage.sessionId"},C:{ec:"ab.test",tE:"ab.storage.events",eE:"ab.storage.attributes",sE:"ab.storage.attributes.anonymous_user",Ca:"ab.storage.device",Yh:"ab.storage.sdk_metadata",Jh:"ab.storage.session_id_for_cached_metadata",In:"ab.storage.pushToken",Ui:"ab.storage.newsFeed",ki:"ab.storage.lastNewsFeedRefresh",J:"ab.storage.cardImpressions",ul:"ab.storage.serverConfig",rE:"ab.storage.triggers",oE:"ab.storage.triggers.ts",Nl:"ab.storage.messagingSessionStart",ws:"ab.storage.cc",gs:"ab.storage.ccLastFullSync",ys:"ab.storage.ccLastCardUpdated",nE:"ab.storage.ccRateLimitCurrentTokenCount",au:"ab.storage.globalRateLimitCurrentTokenCount",vu:"ab.storage.dynamicRateLimitCurrentTokenCount",v:"ab.storage.ccClicks",H:"ab.storage.ccImpressions",A:"ab.storage.ccDismissals",aE:"ab.storage.lastDisplayedTriggerTimesById",iE:"ab.storage.lastDisplayedTriggerTime",EE:"ab.storage.triggerFireInstancesById",wh:"ab.storage.signature",As:"ab.storage.brazeSyncRetryCount",Ss:"ab.storage.sdkVersion",gi:"ab.storage.ff",vi:"ab.storage.ffImpressions",xi:"ab.storage.ffLastRefreshAt",Di:"ab.storage.ff.sessionId",lE:"ab.storage.lastReqToEndpoint",SE:"ab.storage.requestAttempts",Cr:"ab.storage.deferredIam",Qa:"ab.storage.lastSdkReq",_E:"ab.storage.alias"},se:"ab.optOut"};class p{constructor(g,x){this.uE=g,this.TE=x,this.uE=g,this.TE=x}Wh(g){const x=(0,E.XP)(m.iu),R=new p.ee(g);for(const O of x)R.remove(m.iu[O])}uu(g,x){let R=null;x!=null&&x instanceof _.Z&&(R=x.Y()),this.uE.store(g,R)}cE(g){const x=this.tu(g);x!=null&&(x.Wl=new Date().valueOf(),this.uu(g,x))}tu(g){const x=this.uE.br(g),R=(j=>{let k;try{k=JSON.parse(j)}catch{k=null}return k})(x);let O;if(R)O=_.Z.qn(R)||null,O&&this.uu(g,O);else{const j=_.Z.hE(x);O=_.Z.qn(j)||null,j!==x&&O&&this.uu(g,O)}return O}Al(g){this.uE.remove(g)}Vh(){const g=(0,E.XP)(m.iu);let x;for(const R of g)x=this.tu(m.iu[R]),x!=null&&this.uu(m.iu[R],x)}xo(g){let x;if(g==null||g.length===0)return!1;x=(0,E.kJ)(g)?g:[g];let R=this.TE.br(m.C.tE);R!=null&&(0,E.kJ)(R)||(R=[]);for(let O=0;O<x.length;O++)R.push(x[O].Y());return this.TE.store(m.C.tE,R)}kl(g){return g!=null&&this.xo([g])}AE(){let g=this.TE.br(m.C.tE);this.TE.remove(m.C.tE),g==null&&(g=[]);const x=[];let R=!1,O=null;if((0,E.kJ)(g))for(let j=0;j<g.length;j++)c.Z.RE(g[j])?x.push(c.Z.qn(g[j])):O=j;else R=!0;if(R||O!=null){let j="Stored events could not be deserialized as Events";R&&(j+=", was "+Object.prototype.toString.call(g)+" not an array"),O!=null&&(j+=", value at index "+O+" does not look like an event"),j+=", serialized values were of type "+typeof g+": "+JSON.stringify(g),x.push(new c.Z(null,S.G.qs,new Date().valueOf(),null,{e:j}))}return x}k(g,x){return!!(0,E.fk)(m.C,g,"StorageManager cannot store object.","STORAGE_KEYS.OBJECTS")&&this.TE.store(g,x)}j(g){return!!(0,E.fk)(m.C,g,"StorageManager cannot retrieve object.","STORAGE_KEYS.OBJECTS")&&this.TE.br(g)}ti(g){return!!(0,E.fk)(m.C,g,"StorageManager cannot remove object.","STORAGE_KEYS.OBJECTS")&&(this.TE.remove(g),!0)}clearData(){const g=(0,E.XP)(m.iu),x=(0,E.XP)(m.C);for(let R=0;R<g.length;R++){const O=g[R];this.uE.remove(m.iu[O])}for(let R=0;R<x.length;R++){const O=x[R];this.TE.remove(m.C[O])}}gE(g){return g||m.C.sE}La(g){let x=this.TE.br(m.C.eE);x==null&&(x={});const R=this.gE(g[T.Z.Yn]),O=x[R];for(const j in g)j!==T.Z.Yn&&(x[R]==null||O&&O[j]==null)&&this.mu(g[T.Z.Yn],j,g[j])}mu(g,x,R){let O=this.TE.br(m.C.eE);O==null&&(O={});const j=this.gE(g);let k=O[j];if(k==null&&(k={},g!=null&&(k[T.Z.Yn]=g)),x===T.Z.lu){k[x]==null&&(k[x]={});for(const N in R)k[x][N]=R[N]}else k[x]=R;return O[j]=k,this.TE.store(m.C.eE,O)}OE(){const g=this.TE.br(m.C.eE);this.TE.remove(m.C.eE);const x=[];for(const R in g)g[R]!=null&&x.push(g[R]);return x}ru(g){const x=this.TE.br(m.C.eE);if(x!=null){const k=this.gE(null),N=x[k];N!=null&&(x[k]=void 0,this.TE.store(m.C.eE,x),N[T.Z.Yn]=g,this.La(N))}const R=this.tu(m.iu.El);let O=null;R!=null&&(O=R.eu);const j=this.AE();if(j!=null)for(let k=0;k<j.length;k++){const N=j[k];N.userId==null&&N.sessionId==O&&(N.userId=g),this.kl(N)}}dE(){return this.TE.fE}}p.rc=class{constructor(y){this.rn=y,this.rn=y,this.fE=b.Z.IE()?3:10}bE(y){return y+"."+this.rn}store(y,g){const x={v:g};try{return localStorage.setItem(this.bE(y),JSON.stringify(x)),!0}catch(R){return w.Z.info("Storage failure: "+(0,I.e)(R)),!1}}br(y){try{let g=null;const x=localStorage.getItem(this.bE(y));return x!=null&&(g=JSON.parse(x)),g==null?null:g.v}catch(g){return w.Z.info("Storage retrieval failure: "+(0,I.e)(g)),null}}remove(y){try{localStorage.removeItem(this.bE(y))}catch(g){return w.Z.info("Storage removal failure: "+(0,I.e)(g)),!1}}},p.ac=class{constructor(){this.mE={},this.KE=5242880,this.fE=3}store(y,g){const x={value:g},R=this.YE(g);return R>this.KE?(w.Z.info("Storage failure: object is ≈"+R+" bytes which is greater than the max of "+this.KE),!1):(this.mE[y]=x,!0)}YE(y){const g=[],x=[y];let R=0;for(;x.length;){const O=x.pop();if(typeof O=="boolean")R+=4;else if(typeof O=="string")R+=2*O.length;else if(typeof O=="number")R+=8;else if(typeof O=="object"&&g.indexOf(O)===-1){let j,k;g.push(O);for(const N in O)k=O,j=N,x.push(k[j])}}return R}br(y){const g=this.mE[y];return g==null?null:g.value}remove(y){this.mE[y]=null}},p.ee=class{constructor(y,g){this.rn=y,this.NE=g,this.rn=y,this.CE=this.GE(),this.DE=576e3,this.NE=!!g}bE(y){return this.rn!=null?y+"."+this.rn:y}GE(){let y=0,g=document.location.hostname;const x=g.split("."),R="ab._gd";for(;y<x.length-1&&document.cookie.indexOf(R+"="+R)===-1;)y++,g="."+x.slice(-1-y).join("."),document.cookie=R+"="+R+";domain="+g+";";return document.cookie=R+"=;expires="+new Date(0).toUTCString()+";domain="+g+";",g}ne(){const y=new Date;return y.setTime(y.getTime()+60*this.DE*1e3),y.getFullYear()}ME(){const y=(0,E.VO)(m.iu),g=document.cookie.split(";");for(let x=0;x<g.length;x++){let R=g[x];for(;R.charAt(0)===" ";)R=R.substring(1);let O=!1;for(let j=0;j<y.length;j++)if(R.indexOf(y[j])===0){O=!0;break}if(O){const j=R.split("=")[0];j.indexOf("."+this.rn)===-1&&this.pE(j)}}}store(y,g){this.ME();const x=new Date;x.setTime(x.getTime()+60*this.DE*1e3);const R="expires="+x.toUTCString(),O="domain="+this.CE;let j;j=this.NE?g:encodeURIComponent(g);const k=this.bE(y)+"="+j+";"+R+";"+O+";path=/";return k.length>=4093?(w.Z.info("Storage failure: string is "+k.length+" chars which is too large to store as a cookie."),!1):(document.cookie=k,!0)}br(y){const g=[],x=this.bE(y)+"=",R=document.cookie.split(";");for(let O=0;O<R.length;O++){let j=R[O];for(;j.charAt(0)===" ";)j=j.substring(1);if(j.indexOf(x)===0)try{let k;k=this.NE?j.substring(x.length,j.length):decodeURIComponent(j.substring(x.length,j.length)),g.push(k)}catch(k){return w.Z.info("Storage retrieval failure: "+(0,I.e)(k)),this.remove(y),null}}return g.length>0?g[g.length-1]:null}remove(y){this.pE(this.bE(y))}pE(y){const g=y+"=;expires="+new Date(0).toUTCString();document.cookie=g,document.cookie=g+";path=/";const x=g+";domain="+this.CE;document.cookie=x,document.cookie=x+";path=/"}},p.tc=class{constructor(y,g,x){this.rn=y,this.vE=[],g&&this.vE.push(new p.ee(y)),x&&this.vE.push(new p.rc(y)),this.vE.push(new p.ac)}store(y,g){let x=!0;for(let R=0;R<this.vE.length;R++)x=this.vE[R].store(y,g)&&x;return x}br(y){for(let g=0;g<this.vE.length;g++){const x=this.vE[g].br(y);if(x!=null)return x}return null}remove(y){new p.ee(this.rn).remove(y);for(let g=0;g<this.vE.length;g++)this.vE[g].remove(y)}}},4663:(d,h,f)=>{f.d(h,{Z:()=>_});var c=f(7070);class _{constructor(){this._e={}}It(S){if(typeof S!="function")return null;const w=c.Z.W();return this._e[w]=S,w}removeSubscription(S){delete this._e[S]}removeAllSubscriptions(){this._e={}}ic(){return Object.keys(this._e).length}Dt(S){const w=[];for(const T in this._e){const b=this._e[T];w.push(b(S))}return w}}},8982:(d,h,f)=>{f.d(h,{q:()=>_});var c=f(5966);function _(E){const S=E==null?void 0:E.j(c.I.C._E);let w;return S&&(w={label:S.l,name:S.a}),w}},3826:(d,h,f)=>{f.d(h,{Z:()=>c});const c={qa:"invalid_api_key",Aa:"blacklisted",Ba:"no_device_identifier",Ra:"invalid_json_response",Zh:"empty_response",__:"sdk_auth_error"}},7559:(d,h,f)=>{f.d(h,{Z:()=>w});var c=f(5825),_=f(8982),E=f(2893),S=f(7750);class w{constructor(b,I,m,p,y){this.userId=b,this.type=I,this.time=m,this.sessionId=p,this.data=y,this.userId=b,this.type=I,this.time=(0,S._0)(m),this.sessionId=p,this.data=y}Ir(){var b;const I={name:this.type,time:(0,S.FX)(this.time),data:this.data||{},session_id:this.sessionId};this.userId!=null&&(I.user_id=this.userId);const m=((b=c.ZP.Sr())===null||b===void 0?void 0:b.Fh())||!1;if(!I.user_id&&!m){const p=(0,_.q)(c.ZP.l());p&&(I.alias=p)}return I}Y(){return{u:this.userId,t:this.type,ts:this.time,s:this.sessionId,d:this.data}}static fromJson(b){return new w(b.user_id,b.name,b.time,b.session_id,b.data)}static RE(b){return b!=null&&(0,E.Kn)(b)&&b.t!=null&&b.t!==""}static qn(b){return new w(b.u,b.t,b.ts,b.s,b.d)}}},2308:(d,h,f)=>{f.d(h,{Z:()=>w});var c=f(7070),_=f(335),E=f(2893),S=f(8031);class w{constructor(b,I,m){this.eu=b,b==null&&(b=c.Z.W()),!m||isNaN(m)?this.Dl=new Date().valueOf():this.Dl=m,this.eu=b,this.Wl=new Date().valueOf(),this.Hl=I}Y(){return`g:${encodeURIComponent(this.eu)}|e:${this.Hl}|c:${this.Dl}|l:${this.Wl}`}static hE(b){if(typeof b!="string")return null;const I=b.lastIndexOf("|e:"),m=b.substring(0,I),p=m.split("g:")[1];let y;return y=/[|:]/.test(p)?encodeURIComponent(p):p,b.replace(m,`g:${y}`)}static qn(b){let I;if(typeof b=="string")try{const m=b.split("|");if(!(0,E.kJ)(m)||m.length!==4)return null;const p=g=>g.split(":")[1],y=g=>{const x=parseInt(p(g));if(!isNaN(x))return x};I=new w(decodeURIComponent(p(m[0])),y(m[1]),y(m[2])),I.Wl=y(m[3])}catch(m){_.Z.info(`Unable to parse cookie string ${b}, failed with error: ${(0,S.e)(m)}`)}else{if(b==null||b.g==null)return null;I=new w(b.g,b.e,b.c),I.Wl=b.l}return I}}},3552:(d,h,f)=>{f.d(h,{Z:()=>_});var c=f(7750);class _{constructor(S,w,T,b,I){this.endpoint=S,this.Vn=w,this.publicKey=T,this.Vl=b,this.cl=I,this.endpoint=S||null,this.Vn=w||null,this.publicKey=T||null,this.Vl=b||null,this.cl=I||null}Y(){return{e:this.endpoint,c:this.Vn,p:this.publicKey,u:this.Vl,v:this.cl}}static qn(S){return new _(S.e,(0,c.Rd)(S.c),S.p,S.u,S.v)}}},4673:(d,h,f)=>{f.d(h,{Z:()=>c});class c{constructor(E=!1,S=[]){this.L=E,this.ge=S,this.L=E,this.ge=S}P(E){this.L=this.L&&E.L,this.ge.push(...E.ge)}}},4365:(d,h,f)=>{f.d(h,{Z:()=>c});const c={OPEN:"open",Rr:"purchase",vr:"push_click",ue:"custom_event",Qr:"iam_click",kt:"test"}},2246:(d,h,f)=>{f.d(h,{Z:()=>O});var c=f(7750),_=f(335);class E{constructor(k){this.Bl=k,this.Bl=k}Jl(k){return this.Bl==null||this.Bl===k[0]}static fromJson(k){return new E(k?k.event_name:null)}Y(){return this.Bl}}var S=f(2893);class w{constructor(k,N,D,U){this.Tl=k,this._l=N,this.comparator=D,this.Ll=U,this.Tl=k,this._l=N,this.comparator=D,this.Ll=U,this._l===w.Ol.Il&&this.comparator!==w.Ql.Ul&&this.comparator!==w.Ql.Xl&&this.comparator!==w.Ql.Fl&&this.comparator!==w.Ql.Kl&&(this.Ll=(0,c.X2)(this.Ll))}Jl(k){let N=null;switch(k!=null&&(N=k[this.Tl]),this.comparator){case w.Ql.Pl:return N!=null&&N.valueOf()===this.Ll.valueOf();case w.Ql.Yl:return N==null||N.valueOf()!==this.Ll.valueOf();case w.Ql.Zl:return N!=null&&typeof N==typeof this.Ll&&N>this.Ll;case w.Ql.Ul:return this._l===w.Ol.Il?N!=null&&(0,S.J_)(N)&&(0,c.$N)(N)<=this.Ll.valueOf():N!=null&&typeof N==typeof this.Ll&&N>=this.Ll;case w.Ql.$l:return N!=null&&typeof N==typeof this.Ll&&N<this.Ll;case w.Ql.Xl:return this._l===w.Ol.Il?N!=null&&(0,S.J_)(N)&&(0,c.$N)(N)>=this.Ll.valueOf():N!=null&&typeof N==typeof this.Ll&&N<=this.Ll;case w.Ql.Hu:return N!=null&&typeof N=="string"&&typeof N==typeof this.Ll&&N.match(this.Ll)!=null;case w.Ql.Qu:return N!=null;case w.Ql.Xu:return N==null;case w.Ql.Fl:return N!=null&&(0,S.J_)(N)&&(0,c.yo)(N)<this.Ll;case w.Ql.Kl:return N!=null&&(0,S.J_)(N)&&(0,c.yo)(N)>this.Ll;case w.Ql.Gu:return N==null||typeof N!=typeof this.Ll||typeof N!="string"||N.match(this.Ll)==null}return!1}static fromJson(k){return new w(k.property_key,k.property_type,k.comparator,k.property_value)}Y(){let k=this.Ll;return(0,S.J_)(this.Ll)&&(k=(0,c.FX)(k.valueOf())),{k:this.Tl,t:this._l,c:this.comparator,v:k}}static qn(k){return new w(k.k,k.t,k.c,k.v)}}w.Ol={Vu:"boolean",Wu:"number",Yu:"string",Il:"date"},w.Ql={Pl:1,Yl:2,Zl:3,Ul:4,$l:5,Xl:6,Hu:10,Qu:11,Xu:12,Fl:15,Kl:16,Gu:17};class T{constructor(k){this.filters=k,this.filters=k}Jl(k){let N=!0;for(let D=0;D<this.filters.length;D++){const U=this.filters[D];let B=!1;for(let H=0;H<U.length;H++)if(U[H].Jl(k)){B=!0;break}if(!B){N=!1;break}}return N}static fromJson(k){if(k==null||!(0,S.kJ)(k))return null;const N=[];for(let D=0;D<k.length;D++){const U=[],B=k[D];for(let H=0;H<B.length;H++)U.push(w.fromJson(B[H]));N.push(U)}return new T(N)}Y(){const k=[];for(let N=0;N<this.filters.length;N++){const D=this.filters[N],U=[];for(let B=0;B<D.length;B++)U.push(D[B].Y());k.push(U)}return k}static qn(k){const N=[];for(let D=0;D<k.length;D++){const U=[],B=k[D];for(let H=0;H<B.length;H++)U.push(w.qn(B[H]));N.push(U)}return new T(N)}}class b{constructor(k,N){this.Bl=k,this.Ml=N,this.Bl=k,this.Ml=N}Jl(k){if(this.Bl==null||this.Ml==null)return!1;const N=k[0],D=k[1];return N===this.Bl&&this.Ml.Jl(D)}static fromJson(k){return new b(k?k.event_name:null,k?T.fromJson(k.property_filters):null)}Y(){return{e:this.Bl,pf:this.Ml?this.Ml.Y():null}}}class I{constructor(k,N){this.Zu=k,this.tf=N,this.Zu=k,this.tf=N}Jl(k){if(this.Zu==null)return!1;const N=R.if(k[0],this.Zu);if(!N)return!1;let D=this.tf==null||this.tf.length===0;if(this.tf!=null){for(let U=0;U<this.tf.length;U++)if(this.tf[U]===k[1]){D=!0;break}}return N&&D}static fromJson(k){return new I(k?k.id:null,k?k.buttons:null)}Y(){return this.Zu}}class m{constructor(k){this.productId=k,this.productId=k}Jl(k){return this.productId==null||k[0]===this.productId}static fromJson(k){return new m(k?k.product_id:null)}Y(){return this.productId}}class p{constructor(k,N){this.productId=k,this.Ml=N,this.productId=k,this.Ml=N}Jl(k){if(this.productId==null||this.Ml==null)return!1;const N=k[0],D=k[1];return N===this.productId&&this.Ml.Jl(D)}static fromJson(k){return new p(k?k.product_id:null,k?T.fromJson(k.property_filters):null)}Y(){return{id:this.productId,pf:this.Ml?this.Ml.Y():null}}}class y{constructor(k){this.Zu=k,this.Zu=k}Jl(k){return this.Zu==null||R.if(k[0],this.Zu)}static fromJson(k){return new y(k?k.campaign_id:null)}Y(){return this.Zu}}var g=f(4365),x=f(8031);class R{constructor(k,N){this.type=k,this.data=N,this.type=k,this.data=N}sc(k,N){return R.cc[this.type]===k&&(this.data==null||this.data.Jl(N))}static if(k,N){let D=null;try{D=window.atob(k)}catch(U){return _.Z.info("Failed to unencode analytics id "+k+": "+(0,x.e)(U)),!1}return N===D.split("_")[0]}static fromJson(k){const N=k.type;let D=null;switch(N){case R._r.OPEN:case R._r.kt:break;case R._r.Rr:D=m.fromJson(k.data);break;case R._r.nc:D=p.fromJson(k.data);break;case R._r.vr:D=y.fromJson(k.data);break;case R._r.ue:D=E.fromJson(k.data);break;case R._r.lc:D=b.fromJson(k.data);break;case R._r.Qr:D=I.fromJson(k.data)}return new R(N,D)}Y(){return{t:this.type,d:this.data?this.data.Y():null}}static qn(k){let N,D=null;switch(k.t){case R._r.OPEN:case R._r.kt:break;case R._r.Rr:D=new m(k.d);break;case R._r.nc:N=k.d||{},D=new p(N.id,T.qn(N.pf||[]));break;case R._r.vr:D=new y(k.d);break;case R._r.ue:D=new E(k.d);break;case R._r.lc:N=k.d||{},D=new b(N.e,T.qn(N.pf||[]));break;case R._r.Qr:D=new I(k.d)}return new R(k.t,D)}}R._r={OPEN:"open",Rr:"purchase",nc:"purchase_property",vr:"push_click",ue:"custom_event",lc:"custom_event_property",Qr:"iam_click",kt:"test"},R.cc={},R.cc[R._r.OPEN]=g.Z.OPEN,R.cc[R._r.Rr]=g.Z.Rr,R.cc[R._r.nc]=g.Z.Rr,R.cc[R._r.vr]=g.Z.vr,R.cc[R._r.ue]=g.Z.ue,R.cc[R._r.lc]=g.Z.ue,R.cc[R._r.Qr]=g.Z.Qr,R.cc[R._r.kt]=g.Z.kt;class O{constructor(k,N=[],D,U,B=0,H,G,$=0,M=O.td,L,F,V){this.id=k,this.sd=N,this.startTime=D,this.endTime=U,this.priority=B,this.type=H,this.data=G,this.ed=$,this.rd=M,this.Nr=L,this.hd=F,this.od=V,this.id=k,this.sd=N||[],D===void 0&&(D=null),this.startTime=D,U===void 0&&(U=null),this.endTime=U,this.priority=B||0,this.type=H,this.ed=$||0,L==null&&(L=1e3*(this.ed+30)),this.Nr=L,this.data=G,M!=null&&(this.rd=M),this.hd=F,this.od=V||null}nd(k){return this.od==null||this.rd!==O.td&&k-this.od>=1e3*this.rd}ad(k){this.od=k}ud(k){const N=k+1e3*this.ed;return Math.max(N-new Date().valueOf(),0)}dd(k){const N=new Date().valueOf()-k,D=k==null||isNaN(N)||this.Nr==null||N<this.Nr;return D||_.Z.info(`Trigger action ${this.type} is no longer eligible for display - fired ${N}ms ago and has a timeout of ${this.Nr}ms.`),!D}static fromJson(k){const N=k.id,D=[];for(let ae=0;ae<k.trigger_condition.length;ae++)D.push(R.fromJson(k.trigger_condition[ae]));const U=(0,c.X2)(k.start_time),B=(0,c.X2)(k.end_time),H=k.priority,G=k.type,$=k.delay,M=k.re_eligibility,L=k.timeout,F=k.data,V=k.min_seconds_since_last_trigger;return(0,S.fk)(O._r,G,"Could not construct Trigger from server data","Trigger.Types")?new O(N,D,U,B,H,G,F,$,M,L,V):null}Y(){const k=[];for(let N=0;N<this.sd.length;N++)k.push(this.sd[N].Y());return{i:this.id,c:k,s:this.startTime,e:this.endTime,p:this.priority,t:this.type,da:this.data,d:this.ed,r:this.rd,tm:this.Nr,ss:this.hd,ld:this.od}}static qn(k){const N=[],D=k.c||[];for(let U=0;U<D.length;U++)N.push(R.qn(D[U]));return new O(k.i,N,(0,c.Rd)(k.s),(0,c.Rd)(k.e),k.p,k.t,k.da,k.d,k.r,k.tm,k.ss,k.ld)}}O._r={Br:"inapp",md:"templated_iam"},O.td=-1},9342:(d,h,f)=>{f.d(h,{n:()=>x});var c=f(1087),_=f(5825),E=f(158),S=f(3340),w=f(7559),T=f(2893),b=f(5966);class I{constructor(O,j,k,N,D){this.triggerId=O,this.Er=j,this.Tr=k,this.Gr=N,this.Nr=D,this.triggerId=O,this.Er=j,this.Tr=k,this.Gr=N,this.Nr=D}static fromJson(O,j,k,N,D){return O==null||O.trigger_id==null?null:new I(O.trigger_id,j,k,N,D)}}var m=f(2246),p=f(4365),y=f(335);class g extends E.Z{constructor(O,j,k,N,D){super(),this.tg=O,this.Jt=j,this.u=k,this.zi=N,this.ig=D,this.tg=O,this.Jt=j,this.u=k,this.zi=N,this.ig=D,this.sg=[],this.eg=[],this.hg=null,this.ng={},this.og={},this.triggers=[],this.lg=0,this.ag(),this.gg()}fg(){if(this.u){this.hg=this.u.j(b.I.C.iE)||this.hg,this.ng=this.u.j(b.I.C.EE)||this.ng,this.og=this.u.j(b.I.C.aE)||this.og;for(let O=0;O<this.triggers.length;O++){const j=this.triggers[O];j.id&&this.og[j.id]!=null&&j.ad(this.og[j.id])}}}ag(){if(!this.u)return;this.lg=this.u.j(b.I.C.oE)||0;const O=this.u.j(b.I.C.rE)||[],j=[];for(let k=0;k<O.length;k++)j.push(m.Z.qn(O[k]));this.triggers=j,this.fg()}gg(){const O=this,j=function(D,U,B,H,G){return function(){O.cg(D,U,B,H,G)}},k={};for(const D of this.triggers)D.id&&(k[D.id]=D);let N=!1;for(let D=0;D<this.triggers.length;D++){const U=this.triggers[D];if(U.id&&this.ng[U.id]!=null){const B=this.ng[U.id],H=[];for(let G=0;G<B.length;G++){const $=B[G],M=U.ud($.Gr||0);if(M>0){let L,F;H.push($),$.ug!=null&&(L=$.ug),$.dg!=null&&w.Z.RE($.dg)&&(F=w.Z.qn($.dg));const V=[];if($.pg&&(0,T.kJ)($.pg))for(let ae=0;ae<$.pg.length;ae++){const oe=k[$.pg[ae]];oe!=null&&V.push(oe)}this.eg.push(window.setTimeout(j(U,$.Gr||0,L,F,V),M))}}this.ng[U.id].length>H.length&&(this.ng[U.id]=H,N=!0,this.ng[U.id].length===0&&delete this.ng[U.id])}}N&&this.u&&this.u.k(b.I.C.EE,this.ng)}mg(){if(!this.u)return;const O=[];for(let j=0;j<this.triggers.length;j++)O.push(this.triggers[j].Y());this.lg=new Date().valueOf(),this.u.k(b.I.C.rE,O),this.u.k(b.I.C.oE,this.lg)}bg(){this.u&&((this.u.j(b.I.C.oE)||0)>this.lg?this.ag():this.fg())}Ns(O){let j=!1;if(O!=null&&O.triggers){this.ig.Lr(),this.fg();const k={},N={};this.triggers=[];for(let B=0;B<O.triggers.length;B++){const H=m.Z.fromJson(O.triggers[B]);if(H){H.id&&this.og[H.id]!=null&&(H.ad(this.og[H.id]),k[H.id]=this.og[H.id]),H.id&&this.ng[H.id]!=null&&(N[H.id]=this.ng[H.id]);for(let G=0;G<H.sd.length;G++)if(H.sd[G].sc(p.Z.kt,null)){j=!0;break}this.triggers.push(H)}}(0,T.Xy)(this.og,k)||(this.og=k,this.u&&this.u.k(b.I.C.aE,this.og)),(0,T.Xy)(this.ng,N)||(this.ng=N,this.u&&this.u.k(b.I.C.EE,this.ng)),this.mg(),j&&(y.Z.info("Trigger with test condition found, firing test."),this.fe(p.Z.kt)),this.fe(p.Z.OPEN);const D=this.sg;let U;this.sg=[];for(let B=0;B<D.length;B++)U=Array.prototype.slice.call(D[B]),this.fe(...U)}}cg(O,j,k,N,D){const U=M=>{this.fg();const L=new Date().valueOf();O.dd(j)||(navigator.onLine===!1&&O.type===m.Z._r.Br&&M.imageUrl?y.Z.info(`Not showing ${O.type} trigger action ${O.id} due to offline state.`):O.nd(L)&&this.wg(O,L,k)?this.Jt.ic()===0?y.Z.info(`Not displaying trigger ${O.id} because neither automaticallyShowInAppMessages() nor subscribeToInAppMessage() were called.`):(this.Jt.Dt([M]),this.yg(O,L)):y.Z.info(`Not displaying trigger ${O.id} because display time fell outside of the acceptable time window.`))},B=()=>{this.fg();const M=D.pop();if(M!=null)if(this.Tg(M,j,k,N,D),M.dd(j)){let L=`Server aborted in-app message display, but the timeout on fallback trigger ${M.id} has already elapsed.`;D.length>0&&(L+=" Continuing to fall back."),y.Z.info(L),B()}else{y.Z.info(`Server aborted in-app message display. Falling back to lower priority ${M.type} trigger action ${O.id}.`);const L=1e3*M.ed-(new Date().valueOf()-j);L>0?this.eg.push(window.setTimeout((()=>{this.cg(M,j,k,N,D)}),L)):this.cg(M,j,k,N,D)}};let H,G,$;switch(O.type){case m.Z._r.Br:if(H=(0,S.q)(O.data),H==null){y.Z.error(`Could not parse trigger data for trigger ${O.id}, ignoring.`);break}if(G=this.ig.Li(H),G){y.Z.error(G),B();break}U(H);break;case m.Z._r.md:if($=I.fromJson(O.data,U,B,j,O.Nr||0),$==null){y.Z.error(`Could not parse trigger data for trigger ${O.id}, ignoring.`);break}this.ig.Yi($,k,N);break;default:y.Z.error(`Trigger ${O.id} was of unexpected type ${O.type}, ignoring.`)}}fe(O,j=null,k){if(!(0,T.fk)(p.Z,O,"Cannot fire trigger action.","TriggerEvents"))return;if(this.zi&&this.zi.Nu())return y.Z.info("Trigger sync is currently in progress, awaiting sync completion before firing trigger event."),void this.sg.push(arguments);this.bg();const N=new Date().valueOf(),D=N-(this.hg||0);let U=!0,B=!0;const H=[];for(let $=0;$<this.triggers.length;$++){const M=this.triggers[$],L=N+1e3*M.ed;if(M.nd(L)&&(M.startTime==null||M.startTime.valueOf()<=N)&&(M.endTime==null||M.endTime.valueOf()>=N)){let F=!1;for(let V=0;V<M.sd.length;V++)if(M.sd[V].sc(O,j)){F=!0;break}F&&(U=!1,this.wg(M,L,O)&&(B=!1,H.push(M)))}}if(U)return void y.Z.info(`Trigger event ${O} did not match any trigger conditions.`);if(B)return void y.Z.info(`Ignoring ${O} trigger event because a trigger was displayed ${D/1e3}s ago.`);H.sort((($,M)=>$.priority-M.priority));const G=H.pop();G!=null&&(y.Z.info(`Firing ${G.type} trigger action ${G.id} from trigger event ${O}.`),this.Tg(G,N,O,k,H),G.ed===0?this.cg(G,N,O,k,H):this.eg.push(window.setTimeout((()=>{this.cg(G,N,O,k,H)}),1e3*G.ed)))}changeUser(O=!1){if(this.triggers=[],this.u&&this.u.ti(b.I.C.rE),!O){this.sg=[],this.hg=null,this.og={},this.ng={};for(let j=0;j<this.eg.length;j++)clearTimeout(this.eg[j]);this.eg=[],this.u&&(this.u.ti(b.I.C.iE),this.u.ti(b.I.C.aE),this.u.ti(b.I.C.EE))}}clearData(){this.triggers=[],this.hg=null,this.og={},this.ng={};for(let O=0;O<this.eg.length;O++)clearTimeout(this.eg[O]);this.eg=[]}wg(O,j,k){if(this.hg==null)return!0;if(k===p.Z.kt)return y.Z.info("Ignoring minimum interval between trigger because it is a test type."),!0;let N=O.hd;return N==null&&(N=this.tg),j-this.hg>=1e3*N}Tg(O,j,k,N,D){this.fg(),O.id&&(this.ng[O.id]=this.ng[O.id]||[]);const U={};let B;U.Gr=j,U.ug=k,N!=null&&(B=N.Y()),U.dg=B;const H=[];for(const G of D)G.id&&H.push(G.id);U.pg=H,O.id&&this.ng[O.id].push(U),this.u&&this.u.k(b.I.C.EE,this.ng)}yg(O,j){this.fg(),O.ad(j),this.hg=j,O.id&&(this.og[O.id]=j),this.u&&(this.u.k(b.I.C.iE,j),this.u.k(b.I.C.aE,this.og))}}const x={t:!1,provider:null,rr:()=>(x.o(),x.provider||x.rg(),x.provider),rg:()=>{if(!x.provider){const R=_.ZP.nn(_.JY.Oo);x.provider=new g(R??30,c.Z.m().Mi(),_.ZP.l(),_.ZP.cr(),c.Z.m()),_.ZP.ar(x.provider)}},o:()=>{x.t||(x.rg(),_.ZP.g(x),x.t=!0)},destroy:()=>{x.provider=null,x.t=!1}}},5333:(d,h,f)=>{f.d(h,{e:()=>_});var c=f(5825);function _(E,S,w){const T=E||document.querySelector("head"),b=`ab-${S}-css-definitions-${"5.3.1".replace(/\./g,"-")}`;if(!T)return;const I=T.ownerDocument||document;if(I.getElementById(b)==null){const m=I.createElement("style");m.innerHTML=w||"",m.id=b;const p=c.ZP.nn(c.JY.bo);p!=null&&m.setAttribute("nonce",p),T.appendChild(m)}}},6959:(d,h,f)=>{f.d(h,{B:()=>E});var c=f(5333),_=f(6524);function E(){(0,c.e)(void 0,"feed","body>.ab-feed{position:fixed;top:0;right:0;bottom:0;width:421px;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}body>.ab-feed .ab-feed-body{position:absolute;top:0;left:0;right:0;border:none;border-left:1px solid #d0d0d0;padding-top:70px;min-height:100%}body>.ab-feed .ab-initial-spinner{float:none}body>.ab-feed .ab-no-cards-message{position:absolute;width:100%;margin-left:-20px;top:40%}.ab-feed{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 1px 7px 1px rgba(66,82,113,.15);-moz-box-shadow:0 1px 7px 1px rgba(66,82,113,.15);box-shadow:0 1px 7px 1px rgba(66,82,113,.15);width:402px;background-color:#eee;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-size:13px;line-height:130%;letter-spacing:normal;overflow-y:auto;overflow-x:visible;z-index:9011;-webkit-overflow-scrolling:touch}.ab-feed :focus,.ab-feed:focus{outline:0}.ab-feed .ab-feed-body{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;border:1px solid #d0d0d0;border-top:none;padding:20px 20px 0 20px}.ab-feed.ab-effect-slide{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px);-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-feed.ab-effect-slide.ab-show{-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.ab-feed.ab-effect-slide.ab-hide{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px)}.ab-feed .ab-card{position:relative;-webkit-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-moz-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;width:100%;border:1px solid #d0d0d0;margin-bottom:20px;overflow:hidden;background-color:#fff;-webkit-transition:height .4s ease-in-out,margin .4s ease-in-out;-moz-transition:height .4s ease-in-out,margin .4s ease-in-out;-o-transition:height .4s ease-in-out,margin .4s ease-in-out;transition:height .4s ease-in-out,margin .4s ease-in-out}.ab-feed .ab-card .ab-pinned-indicator{position:absolute;right:0;top:0;margin-right:-1px;width:0;height:0;border-style:solid;border-width:0 24px 24px 0;border-color:transparent #1676d0 transparent transparent}.ab-feed .ab-card .ab-pinned-indicator .fa-star{position:absolute;right:-21px;top:2px;font-size:9px;color:#fff}.ab-feed .ab-card.ab-effect-card.ab-hide{-webkit-transition:all .5s ease-in-out;-moz-transition:all .5s ease-in-out;-o-transition:all .5s ease-in-out;transition:all .5s ease-in-out}.ab-feed .ab-card.ab-effect-card.ab-hide.ab-swiped-left{-webkit-transform:translateX(-450px);-moz-transform:translateX(-450px);-ms-transform:translateX(-450px);transform:translateX(-450px)}.ab-feed .ab-card.ab-effect-card.ab-hide.ab-swiped-right{-webkit-transform:translateX(450px);-moz-transform:translateX(450px);-ms-transform:translateX(450px);transform:translateX(450px)}.ab-feed .ab-card.ab-effect-card.ab-hide:not(.ab-swiped-left):not(.ab-swiped-right){opacity:0}.ab-feed .ab-card .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;right:0;top:0;z-index:9021;opacity:0;-webkit-transition:.5s;-moz-transition:.5s;-o-transition:.5s;transition:.5s}.ab-feed .ab-card .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-feed .ab-card .ab-close-button svg.ab-chevron{display:none}.ab-feed .ab-card .ab-close-button:active{background-color:transparent}.ab-feed .ab-card .ab-close-button:focus{background-color:transparent}.ab-feed .ab-card .ab-close-button:hover{background-color:transparent}.ab-feed .ab-card .ab-close-button:hover svg{fill-opacity:.8}.ab-feed .ab-card .ab-close-button:hover{opacity:1}.ab-feed .ab-card .ab-close-button:focus{opacity:1}.ab-feed .ab-card a{float:none;color:inherit;text-decoration:none}.ab-feed .ab-card a:hover{text-decoration:underline}.ab-feed .ab-card .ab-image-area{float:none;display:inline-block;vertical-align:top;line-height:0;overflow:hidden;width:100%;-webkit-box-sizing:initial;-moz-box-sizing:initial;box-sizing:initial}.ab-feed .ab-card .ab-image-area img{float:none;height:auto;width:100%}.ab-feed .ab-card.ab-image-only .ab-card-body{display:none}.ab-feed .ab-card .ab-card-body{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:inline-block;width:100%;position:relative}.ab-feed .ab-card .ab-unread-indicator{position:absolute;bottom:0;margin-right:-1px;width:100%;height:5px;background-color:#1676d0}.ab-feed .ab-card .ab-unread-indicator.read{background-color:transparent}.ab-feed .ab-card .ab-title{float:none;letter-spacing:0;margin:0;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;display:block;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;font-size:18px;line-height:130%;padding:20px 25px 0 25px}.ab-feed .ab-card .ab-description{float:none;color:#545454;padding:15px 25px 20px 25px;word-wrap:break-word;white-space:pre-wrap}.ab-feed .ab-card .ab-description.ab-no-title{padding-top:20px}.ab-feed .ab-card .ab-url-area{float:none;color:#1676d0;margin-top:12px;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif}.ab-feed .ab-card.ab-classic-card .ab-card-body{min-height:40px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.ab-feed .ab-card.ab-classic-card.with-image .ab-card-body{min-height:100px;padding-left:72px}.ab-feed .ab-card.ab-classic-card.with-image .ab-image-area{width:60px;height:60px;padding:20px 0 25px 25px;position:absolute}.ab-feed .ab-card.ab-classic-card.with-image .ab-image-area img{-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;max-width:100%;max-height:100%;width:auto;height:auto}.ab-feed .ab-card.ab-classic-card.with-image .ab-title{background-color:transparent;font-size:16px}.ab-feed .ab-card.ab-classic-card.with-image .ab-description{padding-top:10px}.ab-feed .ab-card.ab-control-card{height:0;width:0;margin:0;border:0}.ab-feed .ab-feed-buttons-wrapper{float:none;position:relative;background-color:#282828;height:50px;-webkit-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);-moz-box-shadow:0 2px 3px 0 rgba(178,178,178,.5);box-shadow:0 2px 3px 0 rgba(178,178,178,.5);z-index:1}.ab-feed .ab-feed-buttons-wrapper .ab-close-button,.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button{float:none;cursor:pointer;color:#fff;font-size:18px;padding:16px;-webkit-transition:.2s;-moz-transition:.2s;-o-transition:.2s;transition:.2s}.ab-feed .ab-feed-buttons-wrapper .ab-close-button:hover,.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button:hover{font-size:22px}.ab-feed .ab-feed-buttons-wrapper .ab-close-button{float:right}.ab-feed .ab-feed-buttons-wrapper .ab-close-button:hover{padding-top:12px;padding-right:14px}.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button{padding-left:17px}.ab-feed .ab-feed-buttons-wrapper .ab-refresh-button:hover{padding-top:13px;padding-left:14px}.ab-feed .ab-no-cards-message{text-align:center;margin-bottom:20px}@media (max-width:600px){body>.ab-feed{width:100%}}"),(0,_.N)()}},6524:(d,h,f)=>{f.d(h,{N:()=>_});var c=f(5825);function _(){if(c.ZP.nn(c.JY.Mo))return;const E="https://use.fontawesome.com/7f85a56ba4.css";if(document.querySelector('link[rel=stylesheet][href="'+E+'"]')===null){const S=document.createElement("link");S.setAttribute("rel","stylesheet"),S.setAttribute("href",E),document.getElementsByTagName("head")[0].appendChild(S)}}},3046:(d,h,f)=>{f.d(h,{A9:()=>w,OL:()=>I,Tu:()=>b,je:()=>p,yi:()=>T,zA:()=>y});var c=f(335),_=f(8031),E=f(8548),S=f(3905);const w={types:{ro:"container",logCustomEvent:"logCustomEvent",setEmailNotificationSubscriptionType:"setEmailNotificationSubscriptionType",setPushNotificationSubscriptionType:"setPushNotificationSubscriptionType",setCustomUserAttribute:"setCustomUserAttribute",requestPushPermission:"requestPushPermission",addToSubscriptionGroup:"addToSubscriptionGroup",removeFromSubscriptionGroup:"removeFromSubscriptionGroup",addToCustomAttributeArray:"addToCustomAttributeArray",removeFromCustomAttributeArray:"removeFromCustomAttributeArray",no:"openLink",ao:"openLinkInWebView"},properties:{type:"type",oo:"steps",eo:"args"}},T={Qi:"unknownBrazeAction",Wi:"noPushPrompt"},b=(g,x)=>{switch(g){case T.Qi:return`${x} contains an unknown braze action type and will not be displayed.`;case T.Wi:return`${x} contains a push prompt braze action, but is not eligible for a push prompt. Ignoring.`;default:return""}};function I(g){try{const x=g.match(S.y9),R=x?x[0].length:null,O=R?g.substring(R):null;if(R==null||R>g.length-1||!O)return void c.Z.error(`Did not find base64 encoded brazeAction in url to process : ${g}`);const j=(0,E.T)(O);return j?JSON.parse(j):void c.Z.error(`Failed to decode base64 encoded brazeAction: ${O}`)}catch(x){return void c.Z.error(`Failed to process brazeAction URL ${g} : ${(0,_.e)(x)}`)}}function m(g,x){let R=!1;if(x){for(const O of x)if(R=R||g(O),R)return!0}return!1}function p(g){const x=w.properties.type,R=w.properties.oo;try{if(g==null)return!0;const O=g[x];return O===w.types.ro?m(p,g[R]):!(0,S.OM)(O)}catch{return!0}}function y(g){if(!g||!(0,S.zR)(g))return!1;const x=w.properties.type,R=w.properties.oo,O=g[x];return O===w.types.ro?m(y,g[R]):O===w.types.requestPushPermission}},3695:(d,h,f)=>{f.d(h,{Z:()=>b});var c=f(2893);class _{constructor(){}ef(){}rf(){}Ta(m){}static sf(m,p){if(m&&p){if(m=m.toLowerCase(),(0,c.kJ)(p.ff)){for(let y=0;y<p.ff.length;y++)if(m.indexOf(p.ff[y].toLowerCase())!==-1)return p.identity}else if(m.indexOf(p.ff.toLowerCase())!==-1)return p.identity}}}var E=f(5806);class S extends _{constructor(){if(super(),this.userAgentData=navigator.userAgentData,this.browser=null,this.version=null,this.userAgentData){const m=this.hc();this.browser=m.browser||"Unknown Browser",this.version=m.version||"Unknown Version"}this.OS=null}ef(){return this.browser}rf(){return this.version}Ta(m){if(this.OS)return Promise.resolve(this.OS);const p=y=>{for(let g=0;g<m.length;g++){const x=S.sf(y,m[g]);if(x)return this.OS=x,this.OS}return y};return this.userAgentData.platform?Promise.resolve(p(this.userAgentData.platform)):this.getHighEntropyValues().then((y=>y.platform?p(y.platform):navigator.platform)).catch((()=>navigator.platform))}hc(){const m={},p=this.userAgentData.brands;if(p&&p.length)for(const y of p){const g=this.uc(E.s),x=y.brand.match(g);if(x&&x.length>0){m.browser=x[0],m.version=y.version;break}}return m}uc(m){const p=[];for(const y in m){const g=y;p.push(m[g])}return new RegExp("("+p.join("|")+")","i")}getHighEntropyValues(){return this.userAgentData.getHighEntropyValues?this.userAgentData.getHighEntropyValues(["platform"]):Promise.reject()}}class w extends _{constructor(){super(),this.fd=w.hc(navigator.userAgent||"")}ef(){return this.fd[0]||"Unknown Browser"}rf(){return this.fd[1]||"Unknown Version"}Ta(m){for(let p=0;p<m.length;p++){const y=m[p].string;let g=w.sf(y,m[p]);if(g)return g===E.T.Pg&&navigator.maxTouchPoints>1&&(g=E.T.io),Promise.resolve(g)}return Promise.resolve(navigator.platform)}static hc(m){let p,y=m.match(/(samsungbrowser|tizen|roku|konqueror|icab|crios|opera|ucbrowser|chrome|safari|firefox|camino|msie|trident(?=\/))\/?\s*(\.?\d+(\.\d+)*)/i)||[];if(m.indexOf("(Web0S; Linux/SmartTV)")!==-1)return["LG Smart TV",null];if(m.indexOf("CrKey")!==-1)return["Chromecast",null];if(m.indexOf("BRAVIA")!==-1||m.indexOf("SonyCEBrowser")!==-1||m.indexOf("SonyDTV")!==-1)return["Sony Smart TV",null];if(m.indexOf("PhilipsTV")!==-1)return["Philips Smart TV",null];if(m.match(/\b(Roku)\b/))return["Roku",null];if(m.match(/\bAFTM\b/))return["Amazon Fire Stick",null];if(y[1]===E.s.rO&&(p=m.match(/\b(OPR|Edge|EdgA|Edg|UCBrowser)\/(\.?\d+(\.\d+)*)/),p!=null))return p=p.slice(1),p[0]=p[0].replace("OPR",E.s.oO),p[0]=p[0].replace("EdgA",E.s.eO),p[0]==="Edg"&&(p[0]=E.s.eO),[p[0],p[1]];if(y[1]===E.s.Bg&&(p=m.match(/\b(EdgiOS)\/(\.?\d+(\.\d+)*)/),p!=null))return p=p.slice(1),p[0]=p[0].replace("EdgiOS",E.s.eO),[p[0],p[1]];if(y=y[2]?[y[1],y[2]]:[null,null],y[0]===E.s.Bg&&(p=m.match(/version\/(\.?\d+(\.\d+)*)/i))!=null&&y.splice(1,1,p[1]),(p=m.match(/\b(UCBrowser)\/(\.?\d+(\.\d+)*)/))!=null&&y.splice(1,1,p[2]),y[0]===E.s.oO&&(p=m.match(/mini\/(\.?\d+(\.\d+)*)/i))!=null)return["Opera Mini",p[1]||""];if(y[0]){const g=y[0].toLowerCase();g==="crios"&&(y[0]=E.s.rO),g==="tizen"&&(y[0]="Samsung Smart TV",y[1]=null),g==="samsungbrowser"&&(y[0]="Samsung Browser")}return y}}class T{constructor(){const m=navigator.userAgentData?S:w;this.Sg=new m,this.userAgent=navigator.userAgent,this.browser=this.Sg.ef(),this.version=this.Sg.rf(),this.OS=null,this.Ta().then((y=>this.OS=y));const p=navigator;this.language=(p.userLanguage||p.language||p.browserLanguage||p.systemLanguage||"").toLowerCase(),this.Zo=T.vg(this.userAgent)}IE(){return this.browser===E.s.Bg}Oa(){return this.OS||null}Ta(){return this.OS?Promise.resolve(this.OS):this.Sg.Ta(T.kg).then((m=>(this.OS=m,m)))}static vg(m){m=m.toLowerCase();const p=["googlebot","bingbot","slurp","duckduckbot","baiduspider","yandex","facebookexternalhit","sogou","ia_archiver","https://github.com/prerender/prerender","aolbuild","bingpreview","msnbot","adsbot","mediapartners-google","teoma","taiko"];for(let y=0;y<p.length;y++)if(m.indexOf(p[y])!==-1)return!0;return!1}}T.kg=[{string:navigator.platform,ff:"Win",identity:E.T.Og},{string:navigator.platform,ff:"Mac",identity:E.T.Pg},{string:navigator.platform,ff:"BlackBerry",identity:"BlackBerry"},{string:navigator.platform,ff:"FreeBSD",identity:"FreeBSD"},{string:navigator.platform,ff:"OpenBSD",identity:"OpenBSD"},{string:navigator.platform,ff:"Nintendo",identity:"Nintendo"},{string:navigator.platform,ff:"SunOS",identity:"SunOS"},{string:navigator.platform,ff:"PlayStation",identity:"PlayStation"},{string:navigator.platform,ff:"X11",identity:"X11"},{string:navigator.userAgent,ff:["iPhone","iPad","iPod"],identity:E.T.io},{string:navigator.platform,ff:"Pike v",identity:E.T.io},{string:navigator.userAgent,ff:["Web0S"],identity:"WebOS"},{string:navigator.platform,ff:["Linux armv7l","Android"],identity:E.T.xg},{string:navigator.userAgent,ff:["Android"],identity:E.T.xg},{string:navigator.platform,ff:"Linux",identity:"Linux"}];const b=new T},2893:(d,h,f)=>{f.d(h,{J_:()=>w,Kn:()=>T,VO:()=>_,XP:()=>I,Xy:()=>m,fk:()=>E,jV:()=>b,kJ:()=>S});var c=f(335);function _(p){const y=[];let g;for(const x in p)g=x,Object.prototype.hasOwnProperty.call(p,g)&&p[g]!==void 0&&y.push(p[g]);return y}function E(p,y,g,x){const R=_(p);return R.indexOf(y)!==-1||(c.Z.error(`${g} Valid values from ${x} are "${R.join('"/"')}".`),!1)}function S(p){return Array.isArray?Array.isArray(p):Object.prototype.toString.call(p)==="[object Array]"}function w(p){return Object.prototype.toString.call(p)==="[object Date]"}function T(p){return Object.prototype.toString.call(p)==="[object Object]"}function b(p,...y){p==null&&(p=[]);const g=[],x=arguments.length;for(let R=0,O=p.length;R<O;R++){const j=p[R];if(g.indexOf(j)!==-1)continue;let k=1;for(k=1;k<x&&arguments[k].indexOf(j)!==-1;k++);k===x&&g.push(j)}return g}function I(p){const y=[];for(const g in p)Object.prototype.hasOwnProperty.call(p,g)&&y.push(g);return y}function m(p,y){if(p===y)return p!==0||1/p==1/y;if(p==null||y==null)return p===y;const g=p.toString();if(g!==y.toString())return!1;switch(g){case"[object RegExp]":case"[object String]":return""+p==""+y;case"[object Number]":return+p!=+p?+y!=+y:+p==0?1/+p==1/y:+p==+y;case"[object Date]":case"[object Boolean]":return+p==+y}const x=g==="[object Array]";if(!x){if(typeof p!="object"||typeof y!="object")return!1;const k=p.constructor,N=y.constructor;if(k!==N&&!(typeof k=="function"&&k instanceof k&&typeof N=="function"&&N instanceof N)&&"constructor"in p&&"constructor"in y)return!1}const R=[],O=[];let j=R.length;for(;j--;)if(R[j]===p)return O[j]===y;if(R.push(p),O.push(y),x){if(j=p.length,j!==y.length)return!1;for(;j--;)if(!m(p[j],y[j]))return!1}else{const k=I(p);let N;if(j=k.length,I(y).length!==j)return!1;for(;j--;)if(N=k[j],!Object.prototype.hasOwnProperty.call(y,N)||!m(p[N],y[N]))return!1}return R.pop(),O.pop(),!0}},5242:(d,h,f)=>{f.d(h,{B:()=>E});var c=f(1507),_=f(7429);function E(S,w,T){const b=document.createElement("button");b.setAttribute("aria-label",S),b.setAttribute("tabindex","0"),b.setAttribute("role","button"),(0,c.lj)(b,"touchstart"),b.className="ab-close-button";const I=(0,c.MK)("0 0 15 15","M15 1.5L13.5 0l-6 6-6-6L0 1.5l6 6-6 6L1.5 15l6-6 6 6 1.5-1.5-6-6 6-6z",w);return b.appendChild(I),b.addEventListener("keydown",(m=>{m.keyCode!==_.m.Fo&&m.keyCode!==_.m.To||(T(),m.stopPropagation())})),b.onclick=m=>{T(),m.stopPropagation()},b}},7750:(d,h,f)=>{f.d(h,{$N:()=>I,BT:()=>w,FX:()=>_,Pn:()=>E,Rd:()=>T,X2:()=>S,_0:()=>b,yo:()=>m});var c=f(2893);function _(p,y=!1){let g=p/1e3;return y&&(g=Math.floor(g)),g}function E(p){return 1e3*p}function S(p){if(p==null)return null;const y=parseInt(p.toString());return isNaN(y)?null:new Date(1e3*y)}function w(p){return p!=null&&(0,c.J_)(p)?p.toISOString().replace(/\.[0-9]{3}Z$/,""):p}function T(p){return p==null||p===""?null:new Date(p)}function b(p){return p==null||p===""?new Date().valueOf():p}function I(p){return(new Date().valueOf()-p.valueOf())/1e3}function m(p){return(p.valueOf()-new Date().valueOf())/1e3}},5806:(d,h,f)=>{f.d(h,{T:()=>_,s:()=>c});const c={rO:"Chrome",eO:"Edge",oO:"Opera",Bg:"Safari",OO:"Firefox"},_={xg:"Android",io:"iOS",Pg:"Mac",Og:"Windows"}},1507:(d,h,f)=>{f.d(h,{$j:()=>m,FZ:()=>p,Fr:()=>I,MK:()=>y,QZ:()=>w,lP:()=>E,lj:()=>T,mQ:()=>S,rJ:()=>b});var c=f(335),_=f(8031);const E={dc:null,po:function(g,x=!1,R=!1,O=!1){if(g==null)return!1;x=x||!1,R=R||!1;const j=g.getBoundingClientRect();return j!=null&&(j.top>=0&&j.top<=(window.innerHeight||document.documentElement.clientHeight)||!x)&&(j.left>=0||!O)&&(j.bottom>=0&&j.bottom<=(window.innerHeight||document.documentElement.clientHeight)||!R)&&(j.right<=(window.innerWidth||document.documentElement.clientWidth)||!O)}},S={Re:"up",Se:"down",U:"left",V:"right"};function w(){if(E.dc==null){E.dc=!1;try{const g=Object.defineProperty({},"passive",{get:()=>{E.dc=!0}});window.addEventListener("testPassive",(()=>{}),g),window.removeEventListener("testPassive",(()=>{}),g)}catch(g){c.Z.error((0,_.e)(g))}}return E.dc}function T(g,x,R=(()=>{})){g.addEventListener(x,R,!!w()&&{passive:!0})}function b(g){return E.po(g,!0,!1,!1)}function I(g){return E.po(g,!1,!0,!1)}function m(g){if(g.onclick){const x=document.createEvent("MouseEvents");x.initEvent("click",!0,!0),g.onclick.apply(g,[x])}}function p(g,x,R){let O=null,j=null;T(g,"touchstart",(k=>{O=k.touches[0].clientX,j=k.touches[0].clientY})),T(g,"touchmove",(k=>{if(O==null||j==null)return;const N=O-k.touches[0].clientX,D=j-k.touches[0].clientY;Math.abs(N)>Math.abs(D)&&Math.abs(N)>=25?((N>0&&x===S.U||N<0&&x===S.V)&&R(k),O=null,j=null):Math.abs(D)>=25&&((D>0&&x===S.Re&&g.scrollTop===g.scrollHeight-g.offsetHeight||D<0&&x===S.Se&&g.scrollTop===0)&&R(k),O=null,j=null)}))}function y(g,x,R){const O="http://www.w3.org/2000/svg",j=document.createElementNS(O,"svg");j.setAttribute("viewBox",g),j.setAttribute("xmlns",O);const k=document.createElementNS(O,"path");return k.setAttribute("d",x),R!=null&&k.setAttribute("fill",R),j.appendChild(k),j}},8031:(d,h,f)=>{f.d(h,{e:()=>c});const c=_=>_ instanceof Error?_.message:String(_)},7429:(d,h,f)=>{f.d(h,{m:()=>c});const c={Fo:32,lo:9,To:13,mh:27}},6504:(d,h,f)=>{f.d(h,{R:()=>c});const c=(_,E)=>(_=Math.ceil(_),E=Math.floor(E),Math.floor(Math.random()*(E-_+1))+_)},1843:(d,h,f)=>{f.d(h,{D:()=>S,Z:()=>w});var c=f(335),_=f(3826),E=f(8031);const S=T=>{const b={},I=T.toString().split(`\r
|
|
57
|
+
`);if(!I)return b;let m,p;for(const y of I)y&&(m=y.slice(0,y.indexOf(":")).toLowerCase().trim(),p=y.slice(y.indexOf(":")+1).trim(),b[m]=p);return b},w={Gs:T=>{let b,I;try{const m=()=>{c.Z.error("This browser does not have any supported ajax options!")};let p=!1;if(window.XMLHttpRequest&&(p=!0),!p)return void m();b=new XMLHttpRequest;const y=()=>{typeof T.error=="function"&&T.error(b.status),typeof T.Ws=="function"&&T.Ws(!1)};b.onload=()=>{let x=!1;if(b.readyState===4)if(x=b.status>=200&&b.status<300||b.status===304,x){if(typeof T.L=="function"){let R,O;try{R=JSON.parse(b.responseText),O=b.getAllResponseHeaders()}catch{const k={error:b.responseText===""?_.Z.Zh:_.Z.Ra,response:b.responseText};(0,T.L)(k,O)}R&&T.L(R,O)}typeof T.Ws=="function"&&T.Ws(!0)}else y()},b.onerror=()=>{y()},b.ontimeout=()=>{y()},I=JSON.stringify(T.data),b.open("POST",T.url,!0),b.setRequestHeader("Content-type","application/json"),b.setRequestHeader("X-Requested-With","XMLHttpRequest");const g=T.headers||[];for(const x of g)b.setRequestHeader(x[0],x[1]);b.send(I)}catch(m){c.Z.error(`Network request error: ${(0,E.e)(m)}`)}}}},6870:(d,h,f)=>{f.d(h,{Z:()=>S});var c=f(7671),_=f(5966);const E={Ps:{$a:"data",Bs:"content_cards/sync",bi:"feature_flags/sync",Mr:"template"},qu:w=>w==null?void 0:w.j(_.I.C.lE),sm:w=>w==null?void 0:w.j(_.I.C.SE),nm:(w,T)=>{w==null||w.k(_.I.C.lE,T)},um:(w,T)=>{w==null||w.k(_.I.C.SE,T)},Pa:(w,T)=>{if(!w||!T)return-1;const b=E.qu(w);if(b==null)return-1;const I=b[T];return I==null||isNaN(I)?-1:I},Ua:(w,T)=>{let b=c.S6;if(!w||!T)return b;const I=E.sm(w);return I==null?b:(b=I[T],b==null||isNaN(b)?c.S6:b)},_s:(w,T,b)=>{if(!w||!T)return;let I=E.qu(w);I==null&&(I={}),I[T]=b,E.nm(w,I)},Qs:(w,T,b)=>{if(!w||!T)return;let I=E.sm(w);I==null&&(I={}),I[T]=b,E.um(w,I)},Ys:(w,T)=>{if(!w||!T)return;const b=E.Ua(w,T);E.Qs(w,T,b+1)}},S=E},8548:(d,h,f)=>{f.d(h,{E:()=>_,T:()=>E});var c=f(335);function _(S){let w=S.length;for(let T=S.length-1;T>=0;T--){const b=S.charCodeAt(T);b>127&&b<=2047?w++:b>2047&&b<=65535&&(w+=2),b>=56320&&b<=57343&&T--}return w}function E(S){try{S=S.replace(/-/g,"+").replace(/_/g,"/");const w=window.atob(S),T=new Uint8Array(w.length);for(let I=0;I<w.length;I++)T[I]=w.charCodeAt(I);const b=new Uint16Array(T.buffer);return String.fromCharCode(...b)}catch(w){return c.Z.error("Unable to decode Base64: "+w),null}}},1148:(d,h,f)=>{function c(E){E==null&&(E="");const S=E.split("?").slice(1).join("?"),w={};if(S!=null){const T=S.split("&");for(let b=0;b<T.length;b++){const I=T[b].split("=");I[0]!==""&&(w[I[0]]=I[1])}}return w}function _(E){return!(!E||(E=E.toString().toLowerCase()).lastIndexOf("javascript:",0)!==0&&E.lastIndexOf("data:",0)!==0)}f.d(h,{L:()=>c,o:()=>_})},3905:(d,h,f)=>{f.d(h,{$g:()=>D,OM:()=>H,UO:()=>R,bj:()=>x,lg:()=>N,ro:()=>k,vV:()=>U,y9:()=>y,zM:()=>g,zR:()=>B});var c=f(2893),_=f(8548),E=f(335),S=f(7750),w=f(3046),T=f(7671);const b=/^[^\x00-\x1F\x22]+$/,I=/[$.]/,m=["$add","$update","$remove","$identifier_key","$identifier_value","$new_object","$time","$google_ad_personalization","$google_ad_user_data"],p=new RegExp(/^.+@.+\..+$/),y=/^brazeActions:\/\/v\d+\//;function g(G,$,M){const L=G!=null&&typeof G=="string"&&(G===""||G.match(b)!=null);return L||E.Z.error(`Cannot ${$} because ${M} "${G}" is invalid.`),L}function x(G){return G!=null&&G.match(I)&&m.indexOf(G)===-1&&E.Z.warn("Custom attribute keys cannot contain '$' or '.'"),g(G,"set custom user attribute","the given key")}function R(G){const $=typeof G;return G==null||$==="number"||$==="boolean"||(0,c.J_)(G)||$==="string"}function O(G,$,M){const L=M!==-1;if(L&&M>50)return E.Z.error("Nested attributes cannot be more than 50 levels deep."),!1;const F=L?M+1:-1;if((0,c.kJ)(G)&&(0,c.kJ)($)){for(let V=0;V<G.length&&V<$.length;V++)if((0,c.J_)(G[V])&&($[V]=(0,S.BT)(G[V])),!O(G[V],$[V],F))return!1}else{if(!(0,c.Kn)(G))return R(G);for(const V of(0,c.XP)(G)){const ae=G[V];if(L&&!x(V)||((0,c.J_)(ae)&&($[V]=(0,S.BT)(ae)),!O(ae,$[V],F)))return!1}}return!0}function j(G,$,M,L,F){let V;return V=(0,c.Kn)(G)||(0,c.kJ)(G)?O(G,$,F?1:-1):R(G),V||E.Z.error(`Cannot ${M} because ${L} "${G}" is invalid.`),V}function k(G,$,M,L=!1){const F=typeof G=="string"||G===null&&L;return F||E.Z.error(`Cannot ${$} because ${M} "${G}" is invalid.`),F}function N(G,$,M,L,F){if(G==null&&(G={}),typeof G!="object"||(0,c.kJ)(G))return E.Z.error(`${$} requires that ${M} be an object. Ignoring ${F}.`),[!1,null];let V,ae;$===T.db?(V=76800,ae="75KB"):(V=51200,ae="50KB");const oe=JSON.stringify(G);if((0,_.E)(oe)>V)return E.Z.error(`Could not ${L} because ${M} was greater than the max size of ${ae}.`),[!1,null];let _e;try{_e=JSON.parse(oe)}catch{return E.Z.error(`Could not ${L} because ${M} did not contain valid JSON.`),[!1,null]}for(const he in G){if($===T.db&&!x(he))return[!1,null];if(!g(he,L,`the ${F} property name`))return[!1,null];const ye=G[he];if($===T.db||ye!=null){if((0,c.J_)(ye)&&(_e[he]=(0,S.BT)(ye)),!j(ye,_e[he],L,`the ${F} property "${he}"`,$===T.db))return[!1,null]}else delete G[he],delete _e[he]}return[!0,_e]}function D(G,$){let M=!1,L=!1;const F=()=>{E.Z.error("Custom attribute arrays must be either string arrays or object arrays.")};for(const V of $)if(typeof V=="string"){if(L)return F(),[!1,!1];if(!g(V,`set custom user attribute "${G}"`,"the element in the given array"))return[!1,!1];M=!0}else{if(!(0,c.Kn)(V))return F(),[!1,!1];if(M)return F(),[!1,!1];if(!N(V,T.db,"attribute value",`set custom user attribute "${G}"`,"custom user attribute"))return[!1,!1];L=!0}return[M,L]}function U(G){return typeof G=="string"&&G.toLowerCase().match(p)!=null}function B(G){if(!(w.A9.properties.type in G))return!1;switch(G[w.A9.properties.type]){case w.A9.types.ro:if(w.A9.properties.oo in G)return!0;break;case w.A9.types.logCustomEvent:case w.A9.types.setEmailNotificationSubscriptionType:case w.A9.types.setPushNotificationSubscriptionType:case w.A9.types.setCustomUserAttribute:case w.A9.types.addToSubscriptionGroup:case w.A9.types.removeFromSubscriptionGroup:case w.A9.types.addToCustomAttributeArray:case w.A9.types.removeFromCustomAttributeArray:case w.A9.types.no:case w.A9.types.ao:if(w.A9.properties.eo in G)return!0;break;case w.A9.types.requestPushPermission:return!0;default:return!1}return!1}function H(G){let $=!1;return Object.keys(w.A9.types).forEach((M=>{w.A9.types[M]!==G.toString()||($=!0)})),$}},5319:(d,h,f)=>{f.d(h,{SD:()=>_,eh:()=>c});const c={PORTRAIT:0,LANDSCAPE:1},_={openUri:function(E,S,w){E&&(S||w!=null&&w.metaKey?window.open(E):window.location=E)},fo:function(){return screen.width<=600},co:function(){if("orientation"in window)return Math.abs(window.orientation)===90||window.orientation===270?c.LANDSCAPE:c.PORTRAIT;const E=window;if("screen"in E){let S=E.screen.orientation||screen.mozOrientation||screen.msOrientation;return S!=null&&typeof S=="object"&&(S=S.type),S==="landscape-primary"||S==="landscape-secondary"?c.LANDSCAPE:c.PORTRAIT}return c.PORTRAIT},Un:function(){return window.location.href}}}},s={};function u(d){var h=s[d];if(h!==void 0)return h.exports;var f=s[d]={exports:{}};return o[d](f,f.exports,u),f.exports}u.m=o,u.n=d=>{var h=d&&d.__esModule?()=>d.default:()=>d;return u.d(h,{a:h}),h},u.d=(d,h)=>{for(var f in h)u.o(h,f)&&!u.o(d,f)&&Object.defineProperty(d,f,{enumerable:!0,get:h[f]})},u.f={},u.e=d=>Promise.all(Object.keys(u.f).reduce(((h,f)=>(u.f[f](d,h),h)),[])),u.u=d=>d+".js",u.o=(d,h)=>Object.prototype.hasOwnProperty.call(d,h),t={},a="@clickview/braze-client:",u.l=(d,h,f,c)=>{if(t[d])t[d].push(h);else{var _,E;if(f!==void 0)for(var S=document.getElementsByTagName("script"),w=0;w<S.length;w++){var T=S[w];if(T.getAttribute("src")==d||T.getAttribute("data-webpack")==a+f){_=T;break}}_||(E=!0,(_=document.createElement("script")).charset="utf-8",_.timeout=120,u.nc&&_.setAttribute("nonce",u.nc),_.setAttribute("data-webpack",a+f),_.src=d),t[d]=[h];var b=(m,p)=>{_.onerror=_.onload=null,clearTimeout(I);var y=t[d];if(delete t[d],_.parentNode&&_.parentNode.removeChild(_),y&&y.forEach((g=>g(p))),m)return m(p)},I=setTimeout(b.bind(null,void 0,{type:"timeout",target:_}),12e4);_.onerror=b.bind(null,_.onerror),_.onload=b.bind(null,_.onload),E&&document.head.appendChild(_)}},u.r=d=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(d,"__esModule",{value:!0})},u.p="",(()=>{var d={143:0};u.f.j=(c,_)=>{var E=u.o(d,c)?d[c]:void 0;if(E!==0)if(E)_.push(E[2]);else{var S=new Promise(((b,I)=>E=d[c]=[b,I]));_.push(E[2]=S);var w=u.p+u.u(c),T=new Error;u.l(w,(b=>{if(u.o(d,c)&&((E=d[c])!==0&&(d[c]=void 0),E)){var I=b&&(b.type==="load"?"missing":b.type),m=b&&b.target&&b.target.src;T.message="Loading chunk "+c+` failed.
|
|
58
|
+
(`+I+": "+m+")",T.name="ChunkLoadError",T.type=I,T.request=m,E[1](T)}}),"chunk-"+c,c)}};var h=(c,_)=>{var E,S,[w,T,b]=_,I=0;if(w.some((m=>d[m]!==0))){for(E in T)u.o(T,E)&&(u.m[E]=T[E]);b&&b(u)}for(c&&c(_);I<w.length;I++)S=w[I],u.o(d,S)&&d[S]&&d[S][0](),d[S]=0},f=self.webpackChunk_clickview_braze_client=self.webpackChunk_clickview_braze_client||[];f.forEach(h.bind(null,0)),f.push=h.bind(null,f.push.bind(f))})();var v={};return(()=>{u.r(v),u.d(v,{BrazeClient:()=>nd,ClassHookMarketingFormEvent:()=>mu,CountryCode:()=>vu,CustomUserAttributes:()=>en,DefaultUserAttributes:()=>si,EventUserAttributes:()=>bn,MarketingFormEvent:()=>Ki,MarketingUserEvent:()=>gu,PageEvent:()=>pu,ProductEvent:()=>yu,ProductFormEvent:()=>Yi,StreamableFormEvent:()=>Ei,StreamableMarketingFormEvent:()=>Ji,getInstance:()=>Oo});var d=u(5825),h=u(1087),f=u(5333),c=u(6524);function _(){(0,f.e)(void 0,"iam",".ab-pause-scrolling,body.ab-pause-scrolling,html.ab-pause-scrolling{overflow:hidden;touch-action:none}.ab-iam-root.v3{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:9011;-webkit-tap-highlight-color:transparent}.ab-iam-root.v3:focus{outline:0}.ab-iam-root.v3.ab-effect-fullscreen,.ab-iam-root.v3.ab-effect-html,.ab-iam-root.v3.ab-effect-modal{opacity:0}.ab-iam-root.v3.ab-effect-fullscreen.ab-show,.ab-iam-root.v3.ab-effect-html.ab-show,.ab-iam-root.v3.ab-effect-modal.ab-show{opacity:1}.ab-iam-root.v3.ab-effect-fullscreen.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-html.ab-show.ab-animate-in,.ab-iam-root.v3.ab-effect-modal.ab-show.ab-animate-in{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-iam-root.v3.ab-effect-fullscreen.ab-hide,.ab-iam-root.v3.ab-effect-html.ab-hide,.ab-iam-root.v3.ab-effect-modal.ab-hide{opacity:0}.ab-iam-root.v3.ab-effect-fullscreen.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-html.ab-hide.ab-animate-out,.ab-iam-root.v3.ab-effect-modal.ab-hide.ab-animate-out{-webkit-transition:opacity .5s;-moz-transition:opacity .5s;-o-transition:opacity .5s;transition:opacity .5s}.ab-iam-root.v3.ab-effect-slide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-iam-root.v3.ab-effect-slide.ab-show .ab-in-app-message{-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.ab-iam-root.v3.ab-effect-slide.ab-show.ab-animate-in .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message{-webkit-transform:translateX(535px);-moz-transform:translateX(535px);-ms-transform:translateX(535px);transform:translateX(535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-left{-webkit-transform:translateX(-535px);-moz-transform:translateX(-535px);-ms-transform:translateX(-535px);transform:translateX(-535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-up{-webkit-transform:translateY(-535px);-moz-transform:translateY(-535px);-ms-transform:translateY(-535px);transform:translateY(-535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide .ab-in-app-message.ab-swiped-down{-webkit-transform:translateY(535px);-moz-transform:translateY(535px);-ms-transform:translateY(535px);transform:translateY(535px)}.ab-iam-root.v3.ab-effect-slide.ab-hide.ab-animate-out .ab-in-app-message{-webkit-transition:transform .5s ease-in-out;-moz-transition:transform .5s ease-in-out;-o-transition:transform .5s ease-in-out;transition:transform .5s ease-in-out}.ab-iam-root.v3 .ab-ios-scroll-wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;pointer-events:all;touch-action:auto;-webkit-overflow-scrolling:touch}.ab-iam-root.v3 .ab-in-app-message{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:fixed;text-align:center;-webkit-box-shadow:0 0 4px rgba(0,0,0,.3);-moz-box-shadow:0 0 4px rgba(0,0,0,.3);box-shadow:0 0 4px rgba(0,0,0,.3);line-height:normal;letter-spacing:normal;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;z-index:9011;max-width:100%;overflow:hidden;display:inline-block;pointer-events:all;color:#333;color-scheme:normal}.ab-iam-root.v3 .ab-in-app-message.ab-no-shadow{-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.ab-iam-root.v3 .ab-in-app-message :focus,.ab-iam-root.v3 .ab-in-app-message:focus{outline:0}.ab-iam-root.v3 .ab-in-app-message.ab-clickable{cursor:pointer}.ab-iam-root.v3 .ab-in-app-message.ab-background{background-color:#fff}.ab-iam-root.v3 .ab-in-app-message .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;right:0;top:0;z-index:9021}.ab-iam-root.v3 .ab-in-app-message .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message .ab-close-button svg.ab-chevron{display:none}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:active{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:focus{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-close-button:hover svg{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message .ab-message-text{float:none;line-height:1.5;margin:20px 25px;max-width:100%;overflow:hidden;overflow-y:auto;vertical-align:text-bottom;word-wrap:break-word;white-space:pre-wrap;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.start-aligned{text-align:start}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.end-aligned{text-align:end}.ab-iam-root.v3 .ab-in-app-message .ab-message-text.center-aligned{text-align:center}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar{-webkit-appearance:none;width:14px}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-thumb{-webkit-appearance:none;border:4px solid transparent;background-clip:padding-box;-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px;background-color:rgba(0,0,0,.2)}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-button{width:0;height:0;display:none}.ab-iam-root.v3 .ab-in-app-message .ab-message-text::-webkit-scrollbar-corner{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-message-header{float:none;letter-spacing:0;margin:0;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;display:block;font-size:20px;margin-bottom:10px;line-height:1.3}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.start-aligned{text-align:start}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.end-aligned{text-align:end}.ab-iam-root.v3 .ab-in-app-message .ab-message-header.center-aligned{text-align:center}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal,.ab-iam-root.v3 .ab-in-app-message.ab-slideup{-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;cursor:pointer;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;font-size:14px;font-weight:700;margin:20px;margin-top:calc(constant(safe-area-inset-top,0) + 20px);margin-right:calc(constant(safe-area-inset-right,0) + 20px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 20px);margin-left:calc(constant(safe-area-inset-left,0) + 20px);margin-top:calc(env(safe-area-inset-top,0) + 20px);margin-right:calc(env(safe-area-inset-right,0) + 20px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 20px);margin-left:calc(env(safe-area-inset-left,0) + 20px);max-height:150px;padding:10px;right:0;background-color:#efefef}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone{max-height:66px;margin:10px;margin-top:calc(constant(safe-area-inset-top,0) + 10px);margin-right:calc(constant(safe-area-inset-right,0) + 10px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 10px);margin-left:calc(constant(safe-area-inset-left,0) + 10px);margin-top:calc(env(safe-area-inset-top,0) + 10px);margin-right:calc(env(safe-area-inset-right,0) + 10px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 10px);margin-left:calc(env(safe-area-inset-left,0) + 10px);max-width:90%;max-width:calc(100% - 40px);min-width:90%;min-width:calc(100% - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-close-button svg:not(.ab-chevron){display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button{display:block;height:20px;padding:0 20px 0 18px;pointer-events:none;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:12px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone.ab-clickable .ab-message-text{border-right-width:40px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text{max-width:100%;border-right-width:10px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text span{max-height:66px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-message-text.ab-with-image{max-width:80%;max-width:calc(100% - 50px - 5px - 10px - 25px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area{width:50px;height:50px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.simulate-phone .ab-image-area img{max-width:100%;max-height:100%;width:auto;height:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:active .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-message-text{opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:active .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:focus .ab-close-button svg.ab-chevron,.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable:hover .ab-close-button svg.ab-chevron{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 25px 5px 10px;max-width:430px;vertical-align:middle;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{display:block;max-height:150px;overflow:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image{max-width:365px;border-top:0;border-bottom:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;background-color:transparent;background-size:15px;border:none;width:15px;min-width:15px;height:15px;cursor:pointer;display:block;font-size:15px;line-height:0;padding-top:15px;padding-right:15px;padding-left:15px;padding-bottom:15px;position:absolute;right:0;top:0;z-index:9021}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;fill:#9b9b9b;height:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg.ab-chevron{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:active{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:focus{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover{background-color:transparent}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button:hover svg{fill-opacity:.8}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{float:none;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:table-cell;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;vertical-align:top;width:60px;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area.ab-icon-area{width:auto}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{float:none;width:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message.ab-modal{font-size:14px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{float:none;position:relative;display:block;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area .ab-center-cropped-img,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area .ab-center-cropped-img{background-size:cover;background-repeat:no-repeat;background-position:50% 50%;position:absolute;top:0;right:0;bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-icon,.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-icon{margin-top:20px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{padding:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-text,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-text{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-message-buttons{bottom:0;left:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{float:none;height:auto;margin:0}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area img,.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{display:block;top:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none}.ab-iam-root.v3 .ab-in-app-message.ab-modal{padding-top:20px;width:450px;max-width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone{max-width:91%;max-width:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal.simulate-phone.graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text{max-height:660px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-image{max-height:524.82758621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-icon{max-height:610px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons{margin-bottom:93px;max-height:587px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-image{max-height:451.82758621px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-message-text.ab-with-buttons.ab-with-icon{max-height:537px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area{margin-top:-20px;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area img{max-width:100%;max-height:155.17241379px}.ab-iam-root.v3 .ab-in-app-message.ab-modal .ab-image-area.ab-icon-area{height:auto}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic{width:auto;overflow:hidden}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-modal.graphic .ab-image-area img{width:auto;max-height:720px;max-width:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen{width:450px;max-height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape{width:720px;max-height:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-image-area{height:225px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape.graphic .ab-image-area{height:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape .ab-message-text{max-height:112px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text{max-height:247px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-message-text.ab-with-buttons{margin-bottom:93px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area{height:360px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.graphic .ab-image-area{height:720px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone{-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.simulate-phone.graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-html-message{background-color:transparent;border:none;height:100%;overflow:auto;position:relative;touch-action:auto;width:100%}.ab-iam-root.v3 .ab-in-app-message .ab-message-buttons{position:absolute;bottom:0;width:100%;padding:17px 25px 30px 25px;z-index:inherit;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.ab-iam-root.v3 .ab-in-app-message .ab-message-button{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;cursor:pointer;display:inline-block;font-size:14px;font-weight:700;font-family:'Helvetica Neue Light','Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;height:44px;line-height:normal;letter-spacing:normal;margin:0;max-width:100%;min-width:80px;padding:0 12px;position:relative;text-transform:none;width:48%;width:calc(50% - 5px);border:1px solid #1b78cf;-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease;overflow:hidden;word-wrap:break-word;text-overflow:ellipsis;word-wrap:normal;white-space:nowrap}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type{float:left;background-color:#fff;color:#1b78cf}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:last-of-type{float:right;background-color:#1b78cf;color:#fff}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:first-of-type:last-of-type{float:none;width:auto}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:transparent}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:after{-webkit-transition:.2s ease;-moz-transition:.2s ease;-o-transition:.2s ease;transition:.2s ease}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:hover{opacity:.8}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:active:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.08)}.ab-iam-root.v3 .ab-in-app-message .ab-message-button:focus:after{content:'';position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.15)}.ab-iam-root.v3 .ab-in-app-message .ab-message-button a{color:inherit;text-decoration:inherit}.ab-iam-root.v3 .ab-in-app-message img{float:none;display:inline-block}.ab-iam-root.v3 .ab-in-app-message .ab-icon{float:none;display:inline-block;padding:10px;-webkit-border-radius:8px;-moz-border-radius:8px;border-radius:8px}.ab-iam-root.v3 .ab-in-app-message .ab-icon .fa{float:none;font-size:30px;width:30px}.ab-iam-root.v3 .ab-start-hidden{visibility:hidden}.ab-iam-root.v3 .ab-centered{margin:auto;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-moz-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ab-iam-root.v3{-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.ab-iam-root.v3 .ab-page-blocker{position:fixed;top:0;left:0;width:100%;height:100%;z-index:9001;pointer-events:all;background-color:rgba(51,51,51,.75)}@media (max-width:600px){.ab-iam-root.v3 .ab-in-app-message.ab-slideup{max-height:66px;margin:10px;margin-top:calc(constant(safe-area-inset-top,0) + 10px);margin-right:calc(constant(safe-area-inset-right,0) + 10px);margin-bottom:calc(constant(safe-area-inset-bottom,0) + 10px);margin-left:calc(constant(safe-area-inset-left,0) + 10px);margin-top:calc(env(safe-area-inset-top,0) + 10px);margin-right:calc(env(safe-area-inset-right,0) + 10px);margin-bottom:calc(env(safe-area-inset-bottom,0) + 10px);margin-left:calc(env(safe-area-inset-left,0) + 10px);max-width:90%;max-width:calc(100% - 40px);min-width:90%;min-width:calc(100% - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button{display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-close-button svg:not(.ab-chevron){display:none}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button{display:block;height:20px;padding:0 20px 0 18px;pointer-events:none;top:50%;-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);transform:translateY(-50%);width:12px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-close-button svg.ab-chevron{display:inline}.ab-iam-root.v3 .ab-in-app-message.ab-slideup.ab-clickable .ab-message-text{border-right-width:40px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text{max-width:100%;border-right-width:10px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text span{max-height:66px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-icon,.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-message-text.ab-with-image{max-width:80%;max-width:calc(100% - 50px - 5px - 10px - 25px)}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area{width:50px;height:50px}.ab-iam-root.v3 .ab-in-app-message.ab-slideup .ab-image-area img{max-width:100%;max-height:100%;width:auto;height:auto}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape{-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-close-button,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-message-text,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape .ab-message-text.ab-with-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape:not(.graphic),.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen:not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape:not(.graphic) .ab-message-buttons,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen:not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic{display:block}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic .ab-image-area,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.graphic .ab-message-button,.ab-iam-root.v3 .ab-in-app-message:not(.force-desktop).ab-fullscreen.landscape.graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-width:480px){.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-width:91%;max-width:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img{max-width:91vw;max-width:calc(100vw - 30px)}}@media (max-height:750px){.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop){max-height:91%;max-height:calc(100% - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop).graphic .ab-image-area img{max-height:91vh;max-height:calc(100vh - 30px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text{max-height:65vh;max-height:calc(100vh - 30px - 60px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-image{max-height:45vh;max-height:calc(100vh - 30px - 155.17241379310346px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-icon{max-height:45vh;max-height:calc(100vh - 30px - 70px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons{max-height:50vh;max-height:calc(100vh - 30px - 93px - 40px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-image{max-height:30vh;max-height:calc(100vh - 30px - 155.17241379310346px - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-modal:not(.force-desktop) .ab-message-text.ab-with-buttons.ab-with-icon{max-height:30vh;max-height:calc(100vh - 30px - 70px - 93px - 20px)}}@media (min-width:601px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen .ab-image-area img{max-height:100%;max-width:100%}}@media (max-height:750px) and (min-width:601px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important;width:450px}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen:not(.landscape):not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-height:480px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}@media (max-width:750px){.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop){-webkit-transition:top none;-moz-transition:top none;-o-transition:top none;transition:top none;top:0;right:0;bottom:0;left:0;height:100%;width:100%;max-height:none;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none;height:auto!important}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-close-button{margin-right:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-right:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0));margin-left:calc(constant(safe-area-inset-bottom,0) + constant(safe-area-inset-top,0));margin-left:calc(env(safe-area-inset-bottom,0) + env(safe-area-inset-top,0))}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-image-area,.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-image-area{height:50%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text{max-height:48%;max-height:calc(50% - 20px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop) .ab-message-text.ab-with-buttons{margin-bottom:20px;max-height:30%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).landscape .ab-message-text.ab-with-buttons{max-height:20%;max-height:calc(50% - 93px - 20px)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic){padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom,0);padding-bottom:env(safe-area-inset-bottom,0)}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop):not(.graphic) .ab-message-buttons{padding-top:0;position:relative}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic{display:block}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-image-area{height:100%}.ab-iam-root.v3 .ab-in-app-message.ab-fullscreen.landscape:not(.force-desktop).graphic .ab-message-button{margin-bottom:0;margin-bottom:constant(safe-area-inset-bottom,0);margin-bottom:env(safe-area-inset-bottom,0)}}"),(0,c.N)()}var E=u(8376),S=u(1090),w=u(1792),T=u(6616),b=u(4410),I=u(3811),m=u(1507),p=u(5242);function y(z,Z){return z==null?"":(z=parseInt(z.toString()),isNaN(z)?"":(Z&&!isNaN(parseFloat(Z.toString()))||(Z=1),"rgba("+[(16711680&(z>>>=0))>>>16,(65280&z)>>>8,255&z,((4278190080&z)>>>24)/255*Z].join(",")+")"))}var g=u(7671),x=u(335),R=u(2730);function O(z){if(!d.ZP.X())return!1;if(!(z instanceof w.Z||z instanceof E.Z))return x.Z.error(g.De),!1;const Z=z instanceof E.Z?R.G.mo:R.G.Oi;return h.Z.m().q(z,Z).L}var j=u(4365),k=u(9342);function N(z){if(!d.ZP.X())return!1;if(!(z instanceof w.Z))return x.Z.error(g.De),!1;const Z=h.Z.m().q(z,R.G.Ei);if(Z){z.Ur()||O(z);for(let X=0;X<Z.ge.length;X++)k.n.rr().fe(j.Z.Qr,[z.triggerId],Z.ge[X])}return Z.L}var D=u(420),U=u(3695);function B(z,Z,X){if(!d.ZP.X())return!1;if(!(z instanceof S.Z))return x.Z.error("inAppMessage argument to logInAppMessageHtmlClick must be an HtmlMessage object."),!1;let te=R.G.Ei;Z!=null&&(te=R.G.Gi);const J=h.Z.m().q(z,te,Z,X);if(J.L)for(let ne=0;ne<J.ge.length;ne++)k.n.rr().fe(j.Z.Qr,[z.triggerId,Z],J.ge[ne]);return J.L}var H=u(6243),G=u(2893),$=u(5806),M=u(1148),L=u(5319),F=u(7048),V=u(4072);function ae(z,Z){var X;if(!d.ZP.X())return!1;if(!(z instanceof V.Z))return x.Z.error("button must be an InAppMessageButton object"),!1;if(!(Z instanceof w.Z))return x.Z.error(g.De),!1;const te=h.Z.m().Hi(z,Z);if(te.L)for(let J=0;J<te.ge.length;J++)k.n.rr().fe(j.Z.Qr,[Z.triggerId,(X=z.id)===null||X===void 0?void 0:X.toString()],te.ge[J]);return te.L}var oe=u(7429);const _e=z=>{const Z=z.querySelectorAll(".ab-close-button, .ab-message-text, .ab-message-button");let X;for(let te=0;te<Z.length;te++)X=Z[te],X.tabIndex=0;if(Z.length>0){const te=Z[0],J=Z[Z.length-1];z.addEventListener("keydown",(ne=>{const ce=document.activeElement;ne.keyCode===oe.m.lo&&(ne.shiftKey||ce!==J&&ce!==z?!ne.shiftKey||ce!==te&&ce!==z||(ne.preventDefault(),J.focus()):(ne.preventDefault(),te.focus()))}))}},he=(z,Z)=>{Z.setAttribute("role","dialog"),Z.setAttribute("aria-modal","true"),Z.setAttribute("aria-label","Modal Message"),z&&Z.setAttribute("aria-labelledby",z)},ye=(z,Z,X,te)=>{if(z.buttons&&z.buttons.length>0){const J=document.createElement("div");J.className="ab-message-buttons",X.appendChild(J);const ne=X.getElementsByClassName("ab-message-text")[0];ne!=null&&(ne.className+=" ab-with-buttons");const ce=ve=>Ie=>(z.Ae(X,(()=>{ae(ve,z),ve.clickAction===w.Z.ClickAction.URI?(0,D.S)(ve.uri||"",te||z.openTarget===w.Z.OpenTarget.BLANK,Ie):ve.clickAction===w.Z.ClickAction.NEWS_FEED&&Z()})),Ie.stopPropagation(),!1);for(let ve=0;ve<z.buttons.length;ve++){const Ie=z.buttons[ve],ke=document.createElement("button");ke.className="ab-message-button",ke.setAttribute("type","button"),(0,m.lj)(ke,"touchstart");let sr=Ie.text;Ie.text===""&&(sr=" "),ke.appendChild(document.createTextNode(sr)),z.Ce()||(ke.style.backgroundColor=y(Ie.backgroundColor),ke.style.color=y(Ie.textColor),ke.style.borderColor=y(Ie.borderColor)),ke.onclick=ce(Ie),J.appendChild(ke)}}};var ge=u(7070);function Re(z,Z,X){if(!d.ZP.X())return;if(_(),z==null)return!1;if(z instanceof E.Z)return x.Z.info("User received control for a multivariate test, logging to Braze servers."),O(z),!0;if(!(z instanceof w.Z)||z.constructor===w.Z)return!1;z.Nh();const te=z instanceof S.Z;if(te&&!z.trusted&&!d.ZP.tr())return x.Z.error('HTML in-app messages are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these messages.'),!1;if(Z==null&&(Z=document.body),z.ze()&&Z.querySelectorAll(".ab-modal-interactions").length>0)return x.Z.info(`Cannot show in-app message ${z.message} because another message is being shown.`),!1;if(L.SD.fo()){const ve=L.SD.co();if(ve===L.eh.PORTRAIT&&z.orientation===w.Z.Orientation.LANDSCAPE||ve===L.eh.LANDSCAPE&&z.orientation===w.Z.Orientation.PORTRAIT){const Ie=ve===L.eh.PORTRAIT?"portrait":"landscape",ke=z.orientation===w.Z.Orientation.PORTRAIT?"portrait":"landscape";return x.Z.info(`Not showing ${ke} in-app message ${z.message} because the screen is currently ${Ie}`),!1}}if(!d.ZP.tr()){let ve=!1;if(z.buttons&&z.buttons.length>0){const Ie=z.buttons;for(let ke=0;ke<Ie.length;ke++)if(Ie[ke].clickAction===w.Z.ClickAction.URI){const sr=Ie[ke].uri;ve=(0,M.o)(sr)}}else z.clickAction===w.Z.ClickAction.URI&&(ve=(0,M.o)(z.uri));if(ve)return x.Z.error('Javascript click actions are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable these actions.'),!1}const J=document.createElement("div");if(J.className="ab-iam-root v3",J.className+=(function(ve){let Ie="";return ve.animateIn&&(Ie+=" ab-animate-in"),ve.animateOut&&(Ie+=" ab-animate-out"),ve instanceof b.Z?Ie+=" ab-effect-fullscreen":ve instanceof S.Z?Ie+=" ab-effect-html":ve instanceof I.Z?Ie+=" ab-effect-modal":ve instanceof T.Z&&(Ie+=" ab-effect-slide"),Ie})(z),J.setAttribute("role","complementary"),z.xe()&&(J.id=z.htmlId),d.ZP.nn(d.JY.jo)&&(J.style.zIndex=(d.ZP.nn(d.JY.jo)+1).toString()),Z.appendChild(J),z.Ce()){const ve=document.createElement("style");ve.innerHTML=z.css,ve.id=z.ve(),d.ZP.nn(d.JY.bo)!=null&&ve.setAttribute("nonce",d.ZP.nn(d.JY.bo)),document.getElementsByTagName("head")[0].appendChild(ve)}const ne=z instanceof T.Z,ce=(function(ve,Ie,ke,sr,jr,wr,Lr,Ar=document.body){if(ve.ke=document.activeElement,ve instanceof S.Z)return(function(Le,ot,rn,Ft,fi,Bt){const ft=document.createElement("iframe");ft.setAttribute("title","Modal Message"),fi&&(ft.style.zIndex=(fi+1).toString());const Ln=st=>{const gt=st.getAttribute("href"),_n=st.onclick;return dn=>{if(_n!=null&&typeof _n=="function"&&_n.bind(st)(dn)===!1)return;let tt=(0,M.L)(gt).abButtonId;if(tt!=null&&tt!==""||(tt=st.getAttribute("id")||void 0),gt!=null&>!==""&>.indexOf("#")!==0){const tn=(st.getAttribute("target")||"").toLowerCase().replace("_","")==="blank",Ye=Ft||Le.openTarget===w.Z.OpenTarget.BLANK||tn,Fe=()=>{B(Le,tt,gt),L.SD.openUri(gt,Ye,dn)};Ye?Fe():Le.Ae(ft,Fe)}else B(Le,tt,gt||void 0);return dn.stopPropagation(),!1}},Yr=(st,gt,_n)=>{const dn=`([\\w]+)\\s*=\\s*document.createElement\\(['"]${_n}['"]\\)`,tt=st.match(new RegExp(dn));if(tt){const tn=`${tt[1]}.setAttribute("nonce", "${gt}")`;return`${st.slice(0,tt.index+tt[0].length)};${tn};${st.slice(tt.index+tt[0].length)}`}return null};if(ft.onload=()=>{let st=null;if(Bt!=null){st=document.createElement("html"),st.innerHTML=Le.message||"";const Pr=st.getElementsByTagName("style");for(let Ct=0;Ct<Pr.length;Ct++)Pr[Ct].setAttribute("nonce",Bt);const Jr=st.getElementsByTagName("script");for(let Ct=0;Ct<Jr.length;Ct++){Jr[Ct].setAttribute("nonce",Bt),Jr[Ct].innerHTML=Jr[Ct].innerHTML.replace(/<style>/g,`<style nonce='${Bt}'>`);const Fl=Yr(Jr[Ct].innerHTML,Bt,"script");Fl&&(Jr[Ct].innerHTML=Fl);const Bl=Yr(Jr[Ct].innerHTML,Bt,"style");Bl&&(Jr[Ct].innerHTML=Bl)}}const gt=ft.contentWindow;gt.focus();const _n=gt.document.querySelector("html");_n&&(_n.innerHTML=st?st.innerHTML:Le.message||"",(0,F.E)(_n));const dn=gt.document.getElementsByTagName("head")[0];if(dn!=null){if(Le.Ce()){const Jr=document.createElement("style");Jr.innerHTML=Le.css||"",Jr.id=Le.ve()||"",Bt!=null&&Jr.setAttribute("nonce",Bt),dn.appendChild(Jr)}const Pr=gt.document.createElement("base");Pr!=null&&(Pr.setAttribute("target","_parent"),dn.appendChild(Pr))}const tt=gt.document.getElementsByTagName("title");tt&&tt.length>0&&ft.setAttribute("title",tt[0].textContent||"");const tn={closeMessage:function(){Le.Ae(ft)},logClick:function(){B(Le,...arguments)},display:{},web:{}},Ye=function(){return function(){const Pr=arguments;Promise.resolve().then(u.bind(u,2261)).then((Jr=>{d.ZP.so()?Jr.requestPushPermission(...Array.prototype.slice.call(Pr)):x.Z.error(g.Go)}))}},Fe={requestImmediateDataFlush:function(){const Pr=arguments;Promise.resolve().then(u.bind(u,4650)).then((({requestImmediateDataFlush:Jr})=>{d.ZP.so()?Jr(...Array.prototype.slice.call(Pr)):x.Z.error(g.Go)}))},logCustomEvent:function(){const Pr=arguments;Promise.resolve().then(u.bind(u,1454)).then((({logCustomEvent:Jr})=>{d.ZP.so()?Jr(...Array.prototype.slice.call(Pr)):x.Z.error(g.Go)}))},logPurchase:function(){const Pr=arguments;u.e(364).then(u.bind(u,1364)).then((({logPurchase:Jr})=>{d.ZP.so()?Jr(...Array.prototype.slice.call(Pr)):x.Z.error(g.Go)}))},unregisterPush:function(){const Pr=arguments;Promise.resolve().then(u.bind(u,7824)).then((({unregisterPush:Jr})=>{d.ZP.so()?Jr(...Array.prototype.slice.call(Pr)):x.Z.error(g.Go)}))},requestPushPermission:Ye(),changeUser:function(){const Pr=arguments;Promise.resolve().then(u.bind(u,4790)).then((({changeUser:Jr})=>{d.ZP.so()?Jr(...Array.prototype.slice.call(Pr)):x.Z.error(g.Go)}))}},Ue=function(Pr){return function(){Fe[Pr](...Array.prototype.slice.call(arguments))}};for(const Pr of(0,G.XP)(Fe))tn[Pr]=Ue(Pr);const _r=["setFirstName","setLastName","setEmail","setGender","setDateOfBirth","setCountry","setHomeCity","setEmailNotificationSubscriptionType","setLanguage","addAlias","setPushNotificationSubscriptionType","setPhoneNumber","setCustomUserAttribute","addToCustomAttributeArray","removeFromCustomAttributeArray","incrementCustomUserAttribute","setCustomLocationAttribute","addToSubscriptionGroup","removeFromSubscriptionGroup"],Cr=function(Pr){return function(){const Jr=(0,H.P)();Jr&&Jr[Pr](...Array.prototype.slice.call(arguments))}},nt={};for(let Pr=0;Pr<_r.length;Pr++)nt[_r[Pr]]=Cr(_r[Pr]);tn.getUser=function(){return nt};const Ot={showFeed:ot},Sn=function(Pr){return function(){const Jr=arguments;Le.Ae(ft,(function(){Ot[Pr](...Array.prototype.slice.call(Jr))}))}},wn=tn.display;for(const Pr of(0,G.XP)(Ot))wn[Pr]=Sn(Pr);const ga={registerAppboyPushMessages:Ye()},Ai=function(Pr){return function(){ga[Pr](...Array.prototype.slice.call(arguments))}},Wa=tn.web;for(const Pr of(0,G.XP)(ga))Wa[Pr]=Ai(Pr);if(gt.appboyBridge=tn,gt.brazeBridge=tn,Le.we!==w.Z.qe.$e){const Pr=gt.document.getElementsByTagName("a");for(let Ct=0;Ct<Pr.length;Ct++)Pr[Ct].onclick=Ln(Pr[Ct]);const Jr=gt.document.getElementsByTagName("button");for(let Ct=0;Ct<Jr.length;Ct++)Jr[Ct].onclick=Ln(Jr[Ct])}const Su=gt.document.body;if(Su!=null){Le.xe()&&(Su.id=Le.htmlId||"");const Pr=document.createElement("hidden");Pr.onclick=tn.closeMessage,Pr.className="ab-programmatic-close-button",Su.appendChild(Pr)}gt.dispatchEvent(new CustomEvent("ab.BridgeReady")),ft.className.indexOf("ab-start-hidden")!==-1&&(ft.className=ft.className.replace("ab-start-hidden",""),rn(ft)),document.activeElement!==ft&&ft.focus()},ft.className="ab-in-app-message ab-start-hidden ab-html-message ab-modal-interactions",U.Z.OS===$.T.io){const st=document.createElement("div");return st.className="ab-ios-scroll-wrapper",st.appendChild(ft),Le.Me=st,st}return Le.Me=ft,ft})(ve,Ie,ke,jr,wr,Lr);const br=(function(Le,ot,rn,Ft,fi,Bt,ft=document.body){let Ln=null;const Yr=document.createElement("div");var st;Yr.className="ab-in-app-message ab-start-hidden ab-background",Bt&&(Yr.style.zIndex=(Bt+1).toString()),Le.ze()&&(Yr.className+=" ab-modal-interactions",Yr.setAttribute("tabindex","-1")),Le.Ce()||(Yr.style.color=y(Le.textColor),Yr.style.backgroundColor=y(Le.backgroundColor),(st=Le.backgroundColor)!=null&&(st=parseInt(st.toString()),!isNaN(st)&&(4278190080&st)>>>24==0)&&(Yr.className+=" ab-no-shadow"));const gt=()=>{Yr.className.indexOf("ab-start-hidden")!==-1&&(Yr.className=Yr.className.replace("ab-start-hidden",""),document.querySelectorAll(".ab-iam-img-loading").length>0?Ft(`Cannot show in-app message ${Le.message} because another message is being shown.`,w.Z.Be.Le):rn(Yr))},_n=(Ue=!0)=>{let _r=document.querySelectorAll(".ab-iam-root");_r&&_r.length!==0||(_r=ft.querySelectorAll(".ab-iam-root")),_r&&_r.length>0&&(_r[0].classList.remove("ab-iam-img-loading"),Ln&&(clearTimeout(Ln),Ln=null),Ue?gt():x.Z.error(`Cannot show in-app message ${Le.message} because the image failed to load.`))};Le.imageStyle===w.Z.ImageStyle.GRAPHIC&&(Yr.className+=" graphic"),Le.orientation===w.Z.Orientation.LANDSCAPE&&(Yr.className+=" landscape"),Le.buttons!=null&&Le.buttons.length===0&&(Le.clickAction!==w.Z.ClickAction.NONE&&(Yr.className+=" ab-clickable"),Yr.onclick=Ue=>(Le.Ae(Yr,(()=>{N(Le),Le.clickAction===w.Z.ClickAction.URI?(0,D.S)(Le.uri||"",fi||Le.openTarget===w.Z.OpenTarget.BLANK,Ue):Le.clickAction===w.Z.ClickAction.NEWS_FEED&&ot()})),Ue.stopPropagation(),!1));const dn=(0,p.B)("Close Message",Le.Ce()?void 0:y(Le.closeButtonColor),(()=>{Le.Ae(Yr)}));Yr.appendChild(dn),Bt&&(dn.style.zIndex=(Bt+2).toString());const tt=document.createElement("div");tt.className="ab-message-text";const tn=(Le.messageAlignment||Le.De).toLowerCase();tt.className+=" "+tn+"-aligned";let Ye=!1;const Fe=document.createElement("div");if(Fe.className="ab-image-area",Le.imageUrl){if(Le.cropType===w.Z.CropType.CENTER_CROP){const Ue=document.createElement("span");Ue.className="ab-center-cropped-img",Ue.style.backgroundImage="url("+Le.imageUrl+")",Ue.setAttribute("role","img"),Ue.setAttribute("aria-label","Modal Image"),Le.Ge(Ue),Fe.appendChild(Ue)}else{const Ue=document.createElement("img");if(Ue.setAttribute("src",Le.imageUrl),Le.Ge(Ue),document.querySelectorAll(".ab-iam-img-loading").length===0){Ye=!0;const _r=document.querySelectorAll(".ab-iam-root");_r&&_r.length>0&&_r[0].classList.add("ab-iam-img-loading"),Ln=window.setTimeout((()=>{_n(!1)}),6e4),Ue.onload=()=>{_n()},Ue.onerror=()=>{_n(!1)}}Fe.appendChild(Ue)}Yr.appendChild(Fe),tt.className+=" ab-with-image"}else if(Le.icon){Fe.className+=" ab-icon-area";const Ue=document.createElement("span");Ue.className="ab-icon",Le.Ce()||(Ue.style.backgroundColor=y(Le.iconBackgroundColor),Ue.style.color=y(Le.iconColor));const _r=document.createElement("i");_r.className="fa",_r.appendChild(document.createTextNode(Le.icon)),_r.setAttribute("aria-hidden","true"),Ue.appendChild(_r),Fe.appendChild(Ue),Yr.appendChild(Fe),tt.className+=" ab-with-icon"}if((0,m.lj)(tt,"touchstart"),Le.header&&Le.header.length>0){const Ue=document.createElement("h1");Ue.className="ab-message-header",Le.He=ge.Z.W(),Ue.id=Le.He;const _r=(Le.headerAlignment||w.Z.TextAlignment.CENTER).toLowerCase();Ue.className+=" "+_r+"-aligned",Le.Ce()||(Ue.style.color=y(Le.headerTextColor)),Ue.appendChild(document.createTextNode(Le.header)),tt.appendChild(Ue)}return tt.appendChild(Le.Je()),Yr.appendChild(tt),Ye||gt(),Le.Me=Yr,Yr})(ve,Ie,ke,sr,jr,wr,Ar);if(ve instanceof b.Z||ve instanceof I.Z){const Le=ve instanceof b.Z?"ab-fullscreen":"ab-modal";br.className+=` ${Le} ab-centered`,ye(ve,Ie,br,jr),_e(br),he(ve.He,br)}else if(ve instanceof T.Z){br.className+=" ab-slideup";const Le=br.getElementsByClassName("ab-close-button")[0];if(Le!=null){const Ft=(0,m.MK)("0 0 11.38 19.44","M11.38 9.72l-9.33 9.72L0 17.3l7.27-7.58L0 2.14 2.05 0l9.33 9.72z",ve.Ce()?void 0:y(ve.closeButtonColor));Ft.setAttribute("class","ab-chevron"),Le.appendChild(Ft)}let ot,rn;(0,m.FZ)(br,m.mQ.U,(Ft=>{br.className+=" ab-swiped-left",Le!=null&&Le.onclick!=null&&Le.onclick(Ft)})),(0,m.FZ)(br,m.mQ.V,(Ft=>{br.className+=" ab-swiped-right",Le!=null&&Le.onclick!=null&&Le.onclick(Ft)})),ve.slideFrom===w.Z.SlideFrom.TOP?(ot=m.mQ.Re,rn=" ab-swiped-up"):(ot=m.mQ.Se,rn=" ab-swiped-down"),(0,m.FZ)(br,ot,(Ft=>{br.className+=rn,Le!=null&&Le.onclick!=null&&Le.onclick(Ft)}))}return br})(z,(()=>{u.e(864).then(u.bind(u,4864)).then((ve=>{d.ZP.so()?ve.showFeed():x.Z.error(g.Go)}))}),(ve=>{if(z.ze()&&z.do()){const Ie=document.createElement("div");if(Ie.className="ab-page-blocker",z.Ce()||(Ie.style.backgroundColor=y(z.frameColor)),d.ZP.nn(d.JY.jo)&&(Ie.style.zIndex=d.ZP.nn(d.JY.jo).toString()),J.appendChild(Ie),!d.ZP.nn(d.JY.Lh)){const ke=new Date().valueOf();Ie.onclick=sr=>{new Date().valueOf()-ke>w.Z.fh&&(z.Ae(ve),sr.stopPropagation())}}J.appendChild(ve),ve.focus(),z.Oh(J)}else if(ne){const Ie=document.querySelectorAll(".ab-slideup");let ke=null;for(let sr=Ie.length-1;sr>=0;sr--)if(Ie[sr]!==ve){ke=Ie[sr];break}if(z.slideFrom===w.Z.SlideFrom.TOP){let sr=0;ke!=null&&(sr=ke.offsetTop+ke.offsetHeight),ve.style.top=Math.max(sr,0)+"px"}else{let sr=0;ke!=null&&(sr=(window.innerHeight||document.documentElement.clientHeight)-ke.offsetTop),ve.style.bottom=Math.max(sr,0)+"px"}}else if(te&&!d.ZP.nn(d.JY.Lh)){const Ie=z;(0,F.f)(ve)&&ve.contentWindow&&ve.contentWindow.addEventListener("keydown",(function(ke){ke.keyCode===oe.m.mh&&Ie.closeMessage()}))}O(z),z.dismissType===w.Z.DismissType.AUTO_DISMISS&&setTimeout((()=>{J.contains(ve)&&z.Ae(ve)}),z.duration),typeof X=="function"&&X()}),(ve=>{x.Z.info(ve)}),d.ZP.nn(d.JY.ho),d.ZP.nn(d.JY.jo),d.ZP.nn(d.JY.bo),Z);return(te||ne)&&(J.appendChild(ce),z.Oh(J)),!0}function We(z){if(d.ZP.X())return typeof z!="function"?null:h.Z.m()._i((function(Z){return z(Z[0]),Z.slice(1)}))}var He=u(5522),nr=u(1454),ar=u(2261),xr=u(7824),or=u(4790),lr=u(4650),Ve=u(1843),Ge=u(158),W=u(67),Y=u(1066),Q=u(1280);function re(z,Z){if(d.ZP.X())return Oe.rr().xs(z,Z)}class pe extends W.Z{constructor(Z,X){super(Z,X)}getUnviewedCardCount(){return super.getUnreadCardCount()}logCardImpressions(Z){(0,Y.p)(Z,!0)}logCardClick(Z){return(0,Q.d)(Z,!0)}sr(){re()}dr(){return!0}}pe.ur=6e4;var le=u(7750),Ee=u(5899),fe=u(5966),Pe=u(4663),ur=u(9179),cr=u(6870),de=u(6504);class Ae extends Ge.Z{constructor(Z,X,te,J,ne){super(),this.wt=Z,this.u=X,this.yt=te,this.Ft=J,this.qt=ne,this.wt=Z,this.u=X,this.yt=te,this.Ft=J,this.qt=ne,this.Jt=new Pe.Z,d.ZP.$t(this.Jt),this.Bt=0,this.Ht=0,this.cards=[],this.Kt();const ce=He.Z.Yt.Qt;new He.Z(ce,x.Z).Zt(ce.ss.ts,(ve=>{this.es(ve)})),this.hs=null,this.rs=null,this.ns=null,this.os=null,this.ls=null,this.us=10,this.cs=0}fs(){return this.hs}ds(Z){this.hs=Z}ps(){return this.rs}vs(Z){this.rs=Z}Kt(){if(!this.u)return;const Z=this.u.j(fe.I.C.ws)||[],X=[];for(let te=0;te<Z.length;te++){const J=(0,Ee.rN)(Z[te]);J!=null&&X.push(J)}this.cards=this.Cs(this.bs(X,!1)),this.Bt=this.u.j(fe.I.C.gs)||this.Bt,this.Ht=this.u.j(fe.I.C.ys)||this.Ht}js(Z,X=!1,te=0,J=0){let ne;if(X){ne=[];for(const ce of this.cards)ce.test&&ne.push(ce)}else ne=this.cards.slice();for(let ce=0;ce<Z.length;ce++){const ve=Z[ce];let Ie=null;for(let ke=0;ke<this.cards.length;ke++)if(ve.id===this.cards[ke].id){Ie=this.cards[ke];break}if(X){const ke=(0,Ee.xA)(ve);Ie!=null&&Ie.viewed&&ke&&(ke.viewed=!0),ke!=null&&ne.push(ke)}else if(Ie==null){const ke=(0,Ee.xA)(ve);ke!=null&&ne.push(ke)}else if(!Ie.Ct(ve)){for(let ke=0;ke<ne.length;ke++)if(ve.id===ne[ke].id){ne.splice(ke,1);break}}}this.cards=this.Cs(this.bs(ne,X)),this.Rs(),this.Bt=te,this.Ht=J,this.u&&(this.u.k(fe.I.C.gs,this.Bt),this.u.k(fe.I.C.ys,this.Ht))}Ns(Z){if(this.Ts()&&Z!=null&&Z.cards){this.u&&this.u.k(fe.I.C.Ss,d.ZP.Ds());const X=Z.full_sync;X||this.Kt(),this.js(Z.cards,X,Z.last_full_sync_at,Z.last_card_updated_at),this.Jt.Dt(this.Us(!0))}}ks(Z){this.u&&this.u.k(fe.I.C.As,Z)}Fs(Z,X,te){const J=()=>{this.xs(X,te,!0)},ne=Z?(0,Ve.D)(Z):null;let ce;if(this.zs(),!ne||!ne["retry-after"])return void this.ks(0);const ve=ne["retry-after"];if(isNaN(ve)&&!isNaN(Date.parse(ve)))ce=Date.parse(ve)-new Date().getTime(),ce<0&&J();else{if(isNaN(parseFloat(ve.toString())))return ur.Z.q(R.G.qs,{e:"Received unexpected value for retry-after header in /sync response"+": "+ve}),void this.ks(0);ce=1e3*parseFloat(ve.toString())}this.ns=window.setTimeout((()=>{J()}),ce);let Ie=0;this.u&&(Ie=this.u.j(fe.I.C.As)),(Ie==null||isNaN(parseInt(Ie.toString())))&&(Ie=0),this.ks(parseInt(Ie.toString())+1)}es(Z){var X;if(!this.Ts())return;this.Kt();const te=this.cards.slice();let J=null;J=(X=this.wt)===null||X===void 0?void 0:X.getUserId();for(let ne=0;ne<Z.length;ne++)if(J===Z[ne].userId||J==null&&Z[ne].userId==null){const ce=Z[ne].card;let ve=null;for(let Ie=0;Ie<this.cards.length;Ie++)if(ce.id===this.cards[Ie].id){ve=this.cards[Ie];break}if(ve==null){const Ie=(0,Ee.xA)(ce);Ie!=null&&te.push(Ie)}else if(!ve.Ct(ce)){for(let Ie=0;Ie<te.length;Ie++)if(ce.id===te[Ie].id){te.splice(Ie,1);break}}}this.cards=this.Cs(this.bs(te,!1)),this.Rs(),this.Jt.Dt(this.Us(!0))}bs(Z,X){let te={},J={},ne={};this.u&&(te=this.u.j(fe.I.C.v)||{},J=this.u.j(fe.I.C.H)||{},ne=this.u.j(fe.I.C.A)||{});const ce={},ve={},Ie={};for(let ke=0;ke<Z.length;ke++){const sr=Z[ke].id;sr&&(te[sr]&&(Z[ke].clicked=!0,ce[sr]=!0),J[sr]&&(Z[ke].viewed=!0,ve[sr]=!0),ne[sr]&&(Z[ke].dismissed=!0,Ie[sr]=!0))}return X&&this.u&&(this.u.k(fe.I.C.v,ce),this.u.k(fe.I.C.H,ve),this.u.k(fe.I.C.A,Ie)),Z}Cs(Z){const X=[],te=new Date;let J={};this.u&&(J=this.u.j(fe.I.C.A)||{});let ne=!1;for(let ce=0;ce<Z.length;ce++){const ve=Z[ce].url;if(!this.Ft&&ve&&(0,M.o)(ve)){x.Z.error(`Card with url ${ve} will not be displayed because Javascript URLs are disabled. Use the "allowUserSuppliedJavascript" option for braze.initialize to enable this card.`);continue}const Ie=Z[ce].expiresAt;let ke=!0;if(Ie!=null&&(ke=Ie>=te),ke=ke&&!Z[ce].dismissed,ke)X.push(Z[ce]);else{const sr=Z[ce].id;sr&&(J[sr]=!0),ne=!0}}return ne&&this.u&&this.u.k(fe.I.C.A,J),X}Rs(){var Z;const X=[];for(let te=0;te<this.cards.length;te++)X.push(this.cards[te].Y());(Z=this.u)===null||Z===void 0||Z.k(fe.I.C.ws,X)}zs(){this.ns&&(clearTimeout(this.ns),this.ns=null)}Es(){this.os!=null&&(clearTimeout(this.os),this.os=null)}Ls(Z=1e3*this.us,X,te){this.Es(),this.os=window.setTimeout((()=>{this.xs(X,te,!0)}),Z),this.ls=Z}xs(Z,X,te=!1,J=!0){var ne;const ce=this.qt,ve=this.u;if(!ce||!ve)return void(typeof X=="function"&&X());if(!te&&(this.zs(),this.ks(0)),!this.Ts())return void((ne=this.yt)===null||ne===void 0||ne.Is((()=>{this.xs(Z,X)})));J&&this.Es();const Ie=ce.Js({},!0);ve.j(fe.I.C.Ss)!==d.ZP.Ds()&&this.Ms(),Ie.last_full_sync_at=this.Bt,Ie.last_card_updated_at=this.Ht;const ke=ce.$s(Ie,cr.Z.Ps.Bs,te);let sr=!1;ce.Xs(Ie,((jr=-1)=>{if(this.u){const wr=new Date().valueOf();cr.Z._s(this.u,cr.Z.Ps.Bs,wr)}jr!==-1&&ke.push(["X-Braze-Req-Tokens-Remaining",jr.toString()]),Ve.Z.Gs({url:`${ce.Hs()}/content_cards/sync`,data:Ie,headers:ke,L:(wr,Lr)=>{if(!ce.Ks(Ie,wr,ke))return sr=!0,void(typeof X=="function"&&X());ce.Os(),this.Fs(Lr,Z,X),this.Ns(wr),sr=!1,cr.Z.Qs(this.u,cr.Z.Ps.Bs,1),typeof Z=="function"&&Z()},error:wr=>{ce.Vs(wr,"retrieving content cards"),sr=!0,typeof X=="function"&&X()},Ws:()=>{if(sr&&J&&!this.os&&this.cs+1<g.Tt){cr.Z.Ys(this.u,cr.Z.Ps.Bs);let wr=this.ls;(wr==null||wr<1e3*this.us)&&(wr=1e3*this.us),this.Ls(Math.min(3e5,(0,de.R)(1e3*this.us,3*wr)),Z,X),this.cs=this.cs+1}}})}),cr.Z.Ps.Bs,X)}Us(Z){Z||this.Kt();const X=this.Cs(this.cards);X.sort(((J,ne)=>J.pinned&&!ne.pinned?-1:ne.pinned&&!J.pinned?1:J.updated&&ne.updated&&J.updated>ne.updated?-1:J.updated&&ne.updated&&ne.updated>J.updated?1:0));let te=Math.max(this.Ht||0,this.Bt||0);return te===0&&(te=void 0),this.u&&this.u.j(fe.I.C.ys)===this.Ht&&te===void 0&&(te=this.Ht),new pe(X,(0,le.X2)(te))}Zs(Z){return this.Jt.It(Z)}Ms(){this.Bt=0,this.Ht=0,this.u&&(this.u.ti(fe.I.C.gs),this.u.ti(fe.I.C.ys))}changeUser(Z){Z||(this.cards=[],this.Jt.Dt(new pe(this.cards.slice(),null)),this.u&&(this.u.ti(fe.I.C.ws),this.u.ti(fe.I.C.v),this.u.ti(fe.I.C.H),this.u.ti(fe.I.C.A))),this.Ms()}clearData(Z){this.Bt=0,this.Ht=0,this.cards=[],this.Jt.Dt(new pe(this.cards.slice(),null)),Z&&this.u&&(this.u.ti(fe.I.C.ws),this.u.ti(fe.I.C.v),this.u.ti(fe.I.C.H),this.u.ti(fe.I.C.A),this.u.ti(fe.I.C.gs),this.u.ti(fe.I.C.ys))}Ts(){return!(!this.yt||!this.yt.si()&&(this.yt.ii()!==0&&this.ei(),1))}ei(){this.Jt.Dt(new pe([],new Date)),this.u&&this.u.ti(fe.I.C.ws)}}const Ne={t:!1,provider:null,rr:()=>(Ne.o(),Ne.provider||(Ne.provider=new Ae(d.ZP.er(),d.ZP.l(),d.ZP.ir(),d.ZP.tr(),d.ZP.nr()),d.ZP.ar(Ne.provider)),Ne.provider),o:()=>{Ne.t||(d.ZP.g(Ne),Ne.t=!0)},destroy:()=>{Ne.provider=null,Ne.t=!1}},Oe=Ne;function De(z){if(!d.ZP.X())return;const Z=Oe.rr(),X=Z.Zs(z);if(!Z.ps()){const te=d.ZP.cr();if(te){const J=te.mr((()=>{Z.xs()}));J&&Z.vs(J)}}return X}var Te=u(1311),vr=u(5608),$r=u(6959);function Me(z,Z){if(!d.ZP.X())return;(0,$r.B)();let X=!1;z==null&&(z=document.body,X=!0);const te=d.ZP.nn(d.JY.tn)||d.ZP.nn(d.JY.en)||!1,J=Oe.rr().Us(!1);typeof Z=="function"&&(0,Te.Of)(J,Z(J.cards.slice()),J.lastUpdated,null,te);const ne=(0,Te.Yz)(J,te,X),ce=Oe.rr(),ve=ce.fs();(J.lastUpdated==null||new Date().valueOf()-J.lastUpdated.valueOf()>pe.ur)&&(ve==null||new Date().valueOf()-ve>pe.ur)&&(x.Z.info(`Cached content cards were older than max TTL of ${pe.ur} ms, requesting an update from the server.`),(0,Te.cV)(J,ne),ce.ds(new Date().valueOf()));const Ie=new Date().valueOf(),ke=De((function(wr){const Lr=ne.querySelectorAll(".ab-refresh-button")[0];if(Lr!=null){let br=500,Le=br-=new Date().valueOf()-Ie;const ot=ne.getAttribute(Te.cP);ot&&(Le=parseInt(ot),isNaN(Le)||(br-=new Date().valueOf()-Le)),setTimeout((function(){Lr.className=Lr.className.replace(/fa-spin/g,"")}),Math.max(br,0))}let Ar=wr.cards;typeof Z=="function"&&(Ar=Z(Ar.slice())),(0,Te.Of)(J,Ar,wr.lastUpdated,ne,te)}));(0,Te.GB)(ke,ne);const sr=function(wr){const Lr=wr.querySelectorAll(".ab-feed");let Ar=null;for(let br=0;br<Lr.length;br++)Lr[br].parentNode===wr&&(Ar=Lr[br]);Ar!=null?((0,Te.tQ)(Ar),Ar.parentNode!=null&&Ar.parentNode.replaceChild(ne,Ar)):wr.appendChild(ne),setTimeout((function(){ne.className=ne.className.replace("ab-hide","ab-show")}),0),X&&ne.focus(),(0,Te.cz)(J,ne),(0,vr.CG)(J.cards,wr)};var jr;z!=null?sr(z):window.onload=(jr=window.onload,function(){typeof jr=="function"&&jr(new Event("oldLoad")),sr(document.body)})}var rr=u(2080);function Xe(z,Z){(Z==null||Z>z.length)&&(Z=z.length);for(var X=0,te=Array(Z);X<Z;X++)te[X]=z[X];return te}var Qe={get screenWidth(){return window.screen.width},get screenHeight(){return window.screen.height},get queryString(){return window.location.search},get queryParams(){var z,Z=Qe.queryString,X=new URLSearchParams(Z),te={},J=(function(ve,Ie){var ke=typeof Symbol<"u"&&ve[Symbol.iterator]||ve["@@iterator"];if(!ke){if(Array.isArray(ve)||(ke=(function(br,Le){if(br){if(typeof br=="string")return Xe(br,Le);var ot={}.toString.call(br).slice(8,-1);return ot==="Object"&&br.constructor&&(ot=br.constructor.name),ot==="Map"||ot==="Set"?Array.from(br):ot==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ot)?Xe(br,Le):void 0}})(ve))||Ie){ke&&(ve=ke);var sr=0,jr=function(){};return{s:jr,n:function(){return sr>=ve.length?{done:!0}:{done:!1,value:ve[sr++]}},e:function(br){throw br},f:jr}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
59
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var wr,Lr=!0,Ar=!1;return{s:function(){ke=ke.call(ve)},n:function(){var br=ke.next();return Lr=br.done,br},e:function(br){Ar=!0,wr=br},f:function(){try{Lr||ke.return==null||ke.return()}finally{if(Ar)throw wr}}}})(X.keys());try{for(J.s();!(z=J.n()).done;){var ne=z.value;if(!(ne in te)){var ce=X.getAll(ne);ce.length>1?te[ne]=ce:te[ne]=ce[0]}}}catch(ve){J.e(ve)}finally{J.f()}return te&&Object.keys(te).length?JSON.stringify(te):Z},get referrer(){return window.document.referrer},get title(){return window.document.title},get pathname(){return window.location.pathname},get hostname(){return window.location.hostname},get requestUrl(){return Qe.hostname+Qe.pathname},decodeURIComponent:function(z){return window.decodeURIComponent(z)}},hr=Qe,gr={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i},Kr="Unknown";function et(z,Z,X){if(!Z)return{name:z,version:Kr};var te=Z.exec(X);return{name:z,version:te&&te.length?te[0].trim():Kr}}var St=function(){var z=window.navigator.userAgent;return gr.mobileDevice.test(z)?gr.iphone.test(z)?"iPhone":gr.ipad.test(z)?"iPad":gr.android.test(z)?"Android":gr.blackberry.test(z)?"Blackberry":gr.windowsPhone.test(z)?"Windows Phone":Kr:"Desktop"},Gt={getEventDataPayload:function(z,Z){var X={product:this.getProductData(Z),client:this.getClientData(),request:this.getRequestData()};z.data&&Object.keys(z.data).length&&(X.data=z.data),z.actionType&&(X.action_type=z.actionType);var te=hr.requestUrl;return te&&(X.request_url=te),X},getProductData:function(z){var Z={name:z.name,version:z.version};return z.locale&&(Z.locale=z.locale),Z},getClientData:function(){return{os:(z=window.navigator.userAgent,gr.android.test(z)?et("Android",gr.androidVersion,z):gr.iphone.test(z)||gr.ipad.test(z)?et("iOS",gr.iosVersion,z):gr.linux.test(z)?et("Linux",null,z):gr.unix.test(z)?et("Unix",null,z):gr.mac.test(z)?et("Macintosh",gr.osxVersion,z):gr.windows.test(z)?(function(Z,X){var te={name:"Windows",version:null};return gr.win2000.test(X)&&(te.version="2000"),gr.winXP.test(X)&&(te.version="XP"),gr.winVista.test(X)&&(te.version="Vista"),gr.win7.test(X)&&(te.version="7"),gr.win8.test(X)&&(te.version="8"),gr.win81.test(X)&&(te.version="8.1"),gr.win10.test(X)&&(te.version="10"),te.version||(te.version=Kr),te})(0,z):gr.blackberry.test(z)?et("BlackBerry",gr.blackberryVersion,z):gr.windowsPhone.test(z)?et("Windows Phone",gr.windowsPhoneVersion,z):{name:Kr,version:Kr}),device:{type:St(),resolution:"".concat(hr.screenWidth,"x").concat(hr.screenHeight)}};var z},getRequestData:function(){var z=hr.queryParams,Z=hr.referrer,X=(function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"&",ne=hr.queryString;if(ne.length){var ce=hr.decodeURIComponent(ne.substring(1)),ve=new RegExp("((utm_[^=]+)=([^\\"+J+"]+))","gi"),Ie=ce.match(ve);if(Ie&&Ie.length){var ke=Ie.reduce((function(sr,jr){var wr=jr.split("=");return sr[wr[0].split("_")[1]]=wr[1],sr}),{});if(Object.keys(ke).length)return ke}}})(),te={page_name:hr.title,host_name:hr.hostname,path_name:hr.pathname};return z.length&&(te.query_params=z),Z.length&&(te.referrer=Z),X&&(te.utms=X),te}},it=function(z){throw new Error(z)},cn=function(z){for(var Z=arguments.length,X=new Array(Z>1?Z-1:0),te=1;te<Z;te++)X[te-1]=arguments[te];console.error(z,X)};function Za(z,Z){(Z==null||Z>z.length)&&(Z=z.length);for(var X=0,te=Array(Z);X<Z;X++)te[X]=z[X];return te}function va(z){return va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},va(z)}var Qn=new RegExp(`[A-Za-z0-9 _.,!"'/$]*`),ea=new RegExp("^[a-z]+(?:_[a-z]+)*$"),ii=["productName","productVersion","apiKey","baseUrl"],Mt={clientUserAttributeValue:function(z){return typeof z=="boolean"?!0:!(!z||typeof z=="string"&&(!z.length||!(z.length<=255)||z[0]==="$"||!Qn.test(z)))},isSnakeCase:function(z){return ea.test(z)},additionalData:function(z){if(va(z)!=="object"||z===null)return!0;if(Array.isArray(z)){var Z,X=(function(ce,ve){var Ie=typeof Symbol<"u"&&ce[Symbol.iterator]||ce["@@iterator"];if(!Ie){if(Array.isArray(ce)||(Ie=(function(Ar,br){if(Ar){if(typeof Ar=="string")return Za(Ar,br);var Le={}.toString.call(Ar).slice(8,-1);return Le==="Object"&&Ar.constructor&&(Le=Ar.constructor.name),Le==="Map"||Le==="Set"?Array.from(Ar):Le==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Le)?Za(Ar,br):void 0}})(ce))||ve){Ie&&(ce=Ie);var ke=0,sr=function(){};return{s:sr,n:function(){return ke>=ce.length?{done:!0}:{done:!1,value:ce[ke++]}},e:function(Ar){throw Ar},f:sr}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
60
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var jr,wr=!0,Lr=!1;return{s:function(){Ie=Ie.call(ce)},n:function(){var Ar=Ie.next();return wr=Ar.done,Ar},e:function(Ar){Lr=!0,jr=Ar},f:function(){try{wr||Ie.return==null||Ie.return()}finally{if(Lr)throw jr}}}})(z);try{for(X.s();!(Z=X.n()).done;){var te=Z.value;if(!Mt.additionalData(te))return!1}}catch(ce){X.e(ce)}finally{X.f()}}else for(var J in z){if(!Mt.isSnakeCase(J))return cn("'".concat(J,"' in additional data provided does not follow 'snake_case' naming convention.")),!1;var ne=z[J];if(va(ne)==="object"&&ne!==null&&!Mt.additionalData(ne))return!1}return!0},accountAddress:function(z){if(!z||va(z)!=="object")return!1;var Z=Object.keys(z);return!(Z.length===0||Z.length>2||Z.length===1&&!Z.includes("country_code")||Z.length===2&&!Z.includes("country_code")&&!Z.includes("province")||typeof z.country_code!="string"||Z.includes("province")&&typeof z.province!="string")},brazeClientOptions:function(z){z||it("No Client options provided."),ii.forEach((function(Z){z.hasOwnProperty(Z)||it('Cannot find the required "'.concat(Z,'" attribute in client options.'))}))}};function Ut(z){return Ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},Ut(z)}function Ha(){Ha=function(){return Z};var z,Z={},X=Object.prototype,te=X.hasOwnProperty,J=Object.defineProperty||function(Ye,Fe,Ue){Ye[Fe]=Ue.value},ne=typeof Symbol=="function"?Symbol:{},ce=ne.iterator||"@@iterator",ve=ne.asyncIterator||"@@asyncIterator",Ie=ne.toStringTag||"@@toStringTag";function ke(Ye,Fe,Ue){return Object.defineProperty(Ye,Fe,{value:Ue,enumerable:!0,configurable:!0,writable:!0}),Ye[Fe]}try{ke({},"")}catch{ke=function(Fe,Ue,_r){return Fe[Ue]=_r}}function sr(Ye,Fe,Ue,_r){var Cr=Fe&&Fe.prototype instanceof Le?Fe:Le,nt=Object.create(Cr.prototype),Ot=new tt(_r||[]);return J(nt,"_invoke",{value:st(Ye,Ue,Ot)}),nt}function jr(Ye,Fe,Ue){try{return{type:"normal",arg:Ye.call(Fe,Ue)}}catch(_r){return{type:"throw",arg:_r}}}Z.wrap=sr;var wr="suspendedStart",Lr="executing",Ar="completed",br={};function Le(){}function ot(){}function rn(){}var Ft={};ke(Ft,ce,(function(){return this}));var fi=Object.getPrototypeOf,Bt=fi&&fi(fi(tn([])));Bt&&Bt!==X&&te.call(Bt,ce)&&(Ft=Bt);var ft=rn.prototype=Le.prototype=Object.create(Ft);function Ln(Ye){["next","throw","return"].forEach((function(Fe){ke(Ye,Fe,(function(Ue){return this._invoke(Fe,Ue)}))}))}function Yr(Ye,Fe){function Ue(Cr,nt,Ot,Sn){var wn=jr(Ye[Cr],Ye,nt);if(wn.type!=="throw"){var ga=wn.arg,Ai=ga.value;return Ai&&Ut(Ai)=="object"&&te.call(Ai,"__await")?Fe.resolve(Ai.__await).then((function(Wa){Ue("next",Wa,Ot,Sn)}),(function(Wa){Ue("throw",Wa,Ot,Sn)})):Fe.resolve(Ai).then((function(Wa){ga.value=Wa,Ot(ga)}),(function(Wa){return Ue("throw",Wa,Ot,Sn)}))}Sn(wn.arg)}var _r;J(this,"_invoke",{value:function(Cr,nt){function Ot(){return new Fe((function(Sn,wn){Ue(Cr,nt,Sn,wn)}))}return _r=_r?_r.then(Ot,Ot):Ot()}})}function st(Ye,Fe,Ue){var _r=wr;return function(Cr,nt){if(_r===Lr)throw Error("Generator is already running");if(_r===Ar){if(Cr==="throw")throw nt;return{value:z,done:!0}}for(Ue.method=Cr,Ue.arg=nt;;){var Ot=Ue.delegate;if(Ot){var Sn=gt(Ot,Ue);if(Sn){if(Sn===br)continue;return Sn}}if(Ue.method==="next")Ue.sent=Ue._sent=Ue.arg;else if(Ue.method==="throw"){if(_r===wr)throw _r=Ar,Ue.arg;Ue.dispatchException(Ue.arg)}else Ue.method==="return"&&Ue.abrupt("return",Ue.arg);_r=Lr;var wn=jr(Ye,Fe,Ue);if(wn.type==="normal"){if(_r=Ue.done?Ar:"suspendedYield",wn.arg===br)continue;return{value:wn.arg,done:Ue.done}}wn.type==="throw"&&(_r=Ar,Ue.method="throw",Ue.arg=wn.arg)}}}function gt(Ye,Fe){var Ue=Fe.method,_r=Ye.iterator[Ue];if(_r===z)return Fe.delegate=null,Ue==="throw"&&Ye.iterator.return&&(Fe.method="return",Fe.arg=z,gt(Ye,Fe),Fe.method==="throw")||Ue!=="return"&&(Fe.method="throw",Fe.arg=new TypeError("The iterator does not provide a '"+Ue+"' method")),br;var Cr=jr(_r,Ye.iterator,Fe.arg);if(Cr.type==="throw")return Fe.method="throw",Fe.arg=Cr.arg,Fe.delegate=null,br;var nt=Cr.arg;return nt?nt.done?(Fe[Ye.resultName]=nt.value,Fe.next=Ye.nextLoc,Fe.method!=="return"&&(Fe.method="next",Fe.arg=z),Fe.delegate=null,br):nt:(Fe.method="throw",Fe.arg=new TypeError("iterator result is not an object"),Fe.delegate=null,br)}function _n(Ye){var Fe={tryLoc:Ye[0]};1 in Ye&&(Fe.catchLoc=Ye[1]),2 in Ye&&(Fe.finallyLoc=Ye[2],Fe.afterLoc=Ye[3]),this.tryEntries.push(Fe)}function dn(Ye){var Fe=Ye.completion||{};Fe.type="normal",delete Fe.arg,Ye.completion=Fe}function tt(Ye){this.tryEntries=[{tryLoc:"root"}],Ye.forEach(_n,this),this.reset(!0)}function tn(Ye){if(Ye||Ye===""){var Fe=Ye[ce];if(Fe)return Fe.call(Ye);if(typeof Ye.next=="function")return Ye;if(!isNaN(Ye.length)){var Ue=-1,_r=function Cr(){for(;++Ue<Ye.length;)if(te.call(Ye,Ue))return Cr.value=Ye[Ue],Cr.done=!1,Cr;return Cr.value=z,Cr.done=!0,Cr};return _r.next=_r}}throw new TypeError(Ut(Ye)+" is not iterable")}return ot.prototype=rn,J(ft,"constructor",{value:rn,configurable:!0}),J(rn,"constructor",{value:ot,configurable:!0}),ot.displayName=ke(rn,Ie,"GeneratorFunction"),Z.isGeneratorFunction=function(Ye){var Fe=typeof Ye=="function"&&Ye.constructor;return!!Fe&&(Fe===ot||(Fe.displayName||Fe.name)==="GeneratorFunction")},Z.mark=function(Ye){return Object.setPrototypeOf?Object.setPrototypeOf(Ye,rn):(Ye.__proto__=rn,ke(Ye,Ie,"GeneratorFunction")),Ye.prototype=Object.create(ft),Ye},Z.awrap=function(Ye){return{__await:Ye}},Ln(Yr.prototype),ke(Yr.prototype,ve,(function(){return this})),Z.AsyncIterator=Yr,Z.async=function(Ye,Fe,Ue,_r,Cr){Cr===void 0&&(Cr=Promise);var nt=new Yr(sr(Ye,Fe,Ue,_r),Cr);return Z.isGeneratorFunction(Fe)?nt:nt.next().then((function(Ot){return Ot.done?Ot.value:nt.next()}))},Ln(ft),ke(ft,Ie,"Generator"),ke(ft,ce,(function(){return this})),ke(ft,"toString",(function(){return"[object Generator]"})),Z.keys=function(Ye){var Fe=Object(Ye),Ue=[];for(var _r in Fe)Ue.push(_r);return Ue.reverse(),function Cr(){for(;Ue.length;){var nt=Ue.pop();if(nt in Fe)return Cr.value=nt,Cr.done=!1,Cr}return Cr.done=!0,Cr}},Z.values=tn,tt.prototype={constructor:tt,reset:function(Ye){if(this.prev=0,this.next=0,this.sent=this._sent=z,this.done=!1,this.delegate=null,this.method="next",this.arg=z,this.tryEntries.forEach(dn),!Ye)for(var Fe in this)Fe.charAt(0)==="t"&&te.call(this,Fe)&&!isNaN(+Fe.slice(1))&&(this[Fe]=z)},stop:function(){this.done=!0;var Ye=this.tryEntries[0].completion;if(Ye.type==="throw")throw Ye.arg;return this.rval},dispatchException:function(Ye){if(this.done)throw Ye;var Fe=this;function Ue(wn,ga){return nt.type="throw",nt.arg=Ye,Fe.next=wn,ga&&(Fe.method="next",Fe.arg=z),!!ga}for(var _r=this.tryEntries.length-1;_r>=0;--_r){var Cr=this.tryEntries[_r],nt=Cr.completion;if(Cr.tryLoc==="root")return Ue("end");if(Cr.tryLoc<=this.prev){var Ot=te.call(Cr,"catchLoc"),Sn=te.call(Cr,"finallyLoc");if(Ot&&Sn){if(this.prev<Cr.catchLoc)return Ue(Cr.catchLoc,!0);if(this.prev<Cr.finallyLoc)return Ue(Cr.finallyLoc)}else if(Ot){if(this.prev<Cr.catchLoc)return Ue(Cr.catchLoc,!0)}else{if(!Sn)throw Error("try statement without catch or finally");if(this.prev<Cr.finallyLoc)return Ue(Cr.finallyLoc)}}}},abrupt:function(Ye,Fe){for(var Ue=this.tryEntries.length-1;Ue>=0;--Ue){var _r=this.tryEntries[Ue];if(_r.tryLoc<=this.prev&&te.call(_r,"finallyLoc")&&this.prev<_r.finallyLoc){var Cr=_r;break}}Cr&&(Ye==="break"||Ye==="continue")&&Cr.tryLoc<=Fe&&Fe<=Cr.finallyLoc&&(Cr=null);var nt=Cr?Cr.completion:{};return nt.type=Ye,nt.arg=Fe,Cr?(this.method="next",this.next=Cr.finallyLoc,br):this.complete(nt)},complete:function(Ye,Fe){if(Ye.type==="throw")throw Ye.arg;return Ye.type==="break"||Ye.type==="continue"?this.next=Ye.arg:Ye.type==="return"?(this.rval=this.arg=Ye.arg,this.method="return",this.next="end"):Ye.type==="normal"&&Fe&&(this.next=Fe),br},finish:function(Ye){for(var Fe=this.tryEntries.length-1;Fe>=0;--Fe){var Ue=this.tryEntries[Fe];if(Ue.finallyLoc===Ye)return this.complete(Ue.completion,Ue.afterLoc),dn(Ue),br}},catch:function(Ye){for(var Fe=this.tryEntries.length-1;Fe>=0;--Fe){var Ue=this.tryEntries[Fe];if(Ue.tryLoc===Ye){var _r=Ue.completion;if(_r.type==="throw"){var Cr=_r.arg;dn(Ue)}return Cr}}throw Error("illegal catch attempt")},delegateYield:function(Ye,Fe,Ue){return this.delegate={iterator:tn(Ye),resultName:Fe,nextLoc:Ue},this.method==="next"&&(this.arg=z),br}},Z}function Va(z,Z){for(var X=0;X<Z.length;X++){var te=Z[X];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(z,Qt(te.key),te)}}function Qt(z){var Z=(function(X,te){if(Ut(X)!="object"||!X)return X;var J=X[Symbol.toPrimitive];if(J!==void 0){var ne=J.call(X,"string");if(Ut(ne)!="object")return ne;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(X)})(z);return Ut(Z)=="symbol"?Z:Z+""}var yn=(function(){function z(J){(function(ne,ce){if(!(ne instanceof ce))throw new TypeError("Cannot call a class as a function")})(this,z),Mt.brazeClientOptions(J),this.options=J,this.initialize()}var Z,X,te;return Z=z,X=[{key:"initialize",value:function(){var J,ne;J=this.options.apiKey,ne={baseUrl:this.options.baseUrl,enableLogging:this.options.enableLogging,allowUserSuppliedJavascript:this.options.allowUserSuppliedJavascript,minimumIntervalBetweenTriggerActionsInSeconds:this.options.minimumIntervalBetweenTriggerActionsInSeconds,doNotLoadFontAwesome:!0},d.ZP.initialize(J,ne)||it('Cannot initialize client. Please make sure your "apiKey" and "baseUrl" is valid.'),this.options.automaticallyShowInAppMessages&&(function(){if(!d.ZP.X())return;_();const ce=h.Z.m();if(ce.Pi()==null){const ve=We((Ie=>Re(Ie)));ce.$i(ve)}ce.Pi()})()}},{key:"openSession",value:function(){(function(){if(!d.ZP.X())return;const J=d.ZP.cr();if(!J)return;J.openSession();const ne=He.Z.Yt.Qt,ce=new He.Z(ne,x.Z);ce.jr(ne.ss.hr,((ve,Ie)=>{const ke=Ie.lastClick,sr=Ie.trackingString;x.Z.info(`Firing push click trigger from ${sr} push click at ${ke}`);const jr=J.kr(ke,sr),wr=function(){k.n.rr().fe(j.Z.vr,[sr],jr)};J.$r(wr,wr),ce.re(ne.ss.hr,ve)})),ce.Zt(ne.ss.wr,(function(ve){J.yr(ve)}))})()}},{key:"logEvent",value:function(J){var ne,ce=Gt.getEventDataPayload(J,{name:this.options.productName,version:this.options.productVersion,locale:(ne=this.options)===null||ne===void 0?void 0:ne.locale});return nr.logCustomEvent(J.type,ce)}},{key:"getUserId",value:function(){return this.getBrazeUser().getUserId()}},{key:"setCustomUserAttribute",value:function(J,ne){var ce=this.getBrazeUser();return Mt.clientUserAttributeValue(ne)||it("Invalid custom user attribute value: '".concat(ne,"' for key: '").concat(J,"'")),ce.setCustomUserAttribute(J,ne)}},{key:"bulkSetCustomUserAttributes",value:function(J){var ne=this;Object.keys(J).length||it("Cannot bulk set emptry object for custom user attributes"),Object.keys(J).forEach((function(ce){var ve=J[ce];ne.setCustomUserAttribute(ce,ve)}))}},{key:"requestPushPermission",value:function(J,ne){ar.requestPushPermission(J,ne)}},{key:"unregisterPush",value:function(J,ne){xr.unregisterPush(J,ne)}},{key:"setAlias",value:function(J,ne){this.getBrazeUser().addAlias(ne,J)}},{key:"setUser",value:function(J){or.changeUser(J)}},{key:"setUserFirstName",value:function(J){this.getBrazeUser().setFirstName(J)}},{key:"setUserLastName",value:function(J){this.getBrazeUser().setLastName(J)}},{key:"setUserEmail",value:function(J){this.getBrazeUser().setEmail(J)}},{key:"setUserCountry",value:function(J){this.getBrazeUser().setCountry(J)}},{key:"setUserPhone",value:function(J){this.getBrazeUser().setPhoneNumber(J)}},{key:"setUserGender",value:function(J){this.getBrazeUser().setGender(J)}},{key:"setUserEmailNotificationSubscriptionType",value:function(J){return this.getBrazeUser().setEmailNotificationSubscriptionType(J)}},{key:"sendData",value:function(J){J&&typeof J=="function"?lr.requestImmediateDataFlush(J):lr.requestImmediateDataFlush()}},{key:"hasUser",value:function(){try{if(this.getBrazeUser())return!0}catch{return!1}finally{return!1}}},{key:"getBrazeUser",value:function(){var J=H.P();return J||it("No valid user found!"),J}},{key:"getContentCardsV2",value:function(){return(function(){if(d.ZP.X())return Oe.rr().Us(!1)})()}},{key:"showContentCards",value:function(J,ne){return Me(J,ne)}},{key:"getContentCards",value:function(){return J=this,ne=void 0,ce=void 0,ve=Ha().mark((function Ie(){return Ha().wrap((function(ke){for(;;)switch(ke.prev=ke.next){case 0:return ke.abrupt("return",new Promise((function(sr,jr){Me(null,(function(wr){return wr?sr(wr):jr(new Error("No content cards found.")),wr}))})));case 1:case"end":return ke.stop()}}),Ie)})),new(ce||(ce=Promise))((function(Ie,ke){function sr(Lr){try{wr(ve.next(Lr))}catch(Ar){ke(Ar)}}function jr(Lr){try{wr(ve.throw(Lr))}catch(Ar){ke(Ar)}}function wr(Lr){var Ar;Lr.done?Ie(Lr.value):(Ar=Lr.value,Ar instanceof ce?Ar:new ce((function(br){br(Ar)}))).then(sr,jr)}wr((ve=ve.apply(J,ne||[])).next())}));var J,ne,ce,ve}},{key:"hideCards",value:function(J){(function(ne){if(!d.ZP.X())return;const ce=document.querySelectorAll(".ab-feed");for(let ve=0;ve<ce.length;ve++)(ne==null||ne!=null&&ce[ve].parentNode===ne)&&(0,Te.tQ)(ce[ve])})(J)}},{key:"logContentCardDismissal",value:function(J){J||it('No "card" provided in "logContentCardDismissal"'),rr.K(J)}},{key:"logContentCardClick",value:function(J){J||it('No "card" provided in "logContentCardClick"'),Q.d(J,!0)}},{key:"logContentCardImpressions",value:function(J){var ne;J&&J.length||it('No "cards" provided in "logContentCardImpressions"'),ne=J,(0,Y.p)(ne,!0)}},{key:"requestContentCardRefresh",value:function(J,ne){return re(J,ne)}},{key:"subscribeToContentCardUpdate",value:function(J){return J||it('No "subscriber" provided in "subscribeToContentCardUpdate"'),De(J)}},{key:"subscribeToInAppMessage",value:function(J){return J||it('No "callback" provided in "subscribeToInAppMessage".'),We(J)}},{key:"showInAppMessage",value:function(J,ne,ce){return J||it('Invalid "inAppMessage" provided in "showInAppMessage".'),Re(J,ne,ce)}},{key:"logInAppMessageClick",value:function(J){return J||it('Invalid "inAppMessage" provided in "logInAppMessageClick".'),N(J)}},{key:"logInAppMessageButtonClick",value:function(J,ne){return J&&ne||it('Invalid params supplied in "logInAppMessageButtonClick".'),ae(J,ne)}},{key:"logInAppMessageHtmlClick",value:function(J,ne,ce){return J||it('Invalid "inAppMessage" provided in "logInAppMessageHtmlClick".'),B(J,ne,ce)}},{key:"logInAppMessageImpression",value:function(J){return J||it('Invalid "inAppMessage" provided in "logInAppMessageImpression".'),O(J)}}],te=[{key:"getInstance",value:function(J){return this._instance||(this._instance=new this(J))}}],X&&Va(Z.prototype,X),te&&Va(Z,te),Object.defineProperty(Z,"prototype",{writable:!1}),z})();function qn(z){return qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},qn(z)}function To(z,Z){for(var X=0;X<Z.length;X++){var te=Z[X];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(z,Ce(te.key),te)}}function Ce(z){var Z=(function(X,te){if(qn(X)!="object"||!X)return X;var J=X[Symbol.toPrimitive];if(J!==void 0){var ne=J.call(X,"string");if(qn(ne)!="object")return ne;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(X)})(z);return qn(Z)=="symbol"?Z:Z+""}var Ke=(function(){function z(te){(function(J,ne){if(!(J instanceof ne))throw new TypeError("Cannot call a class as a function")})(this,z),this.options=te,this.apiClient=te.apiClient}var Z,X;return Z=z,(X=[{key:"safelyExecute",value:function(te){try{return te()}catch(J){J instanceof Error&&cn(J.message),typeof J=="string"&&cn(J)}}}])&&To(Z.prototype,X),Object.defineProperty(Z,"prototype",{writable:!1}),z})();function xe(z){return xe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},xe(z)}function me(z,Z){for(var X=0;X<Z.length;X++){var te=Z[X];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(z,Be(te.key),te)}}function Be(z){var Z=(function(X,te){if(xe(X)!="object"||!X)return X;var J=X[Symbol.toPrimitive];if(J!==void 0){var ne=J.call(X,"string");if(xe(ne)!="object")return ne;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(X)})(z);return xe(Z)=="symbol"?Z:Z+""}function kr(z,Z){return kr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(X,te){return X.__proto__=te,X},kr(z,Z)}function mr(z){var Z=Fr();return function(){var X,te=Rt(z);if(Z){var J=Rt(this).constructor;X=Reflect.construct(te,arguments,J)}else X=te.apply(this,arguments);return wt(this,X)}}function wt(z,Z){if(Z&&(xe(Z)=="object"||typeof Z=="function"))return Z;if(Z!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(X){if(X===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X})(z)}function Fr(){try{var z=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(Fr=function(){return!!z})()}function Rt(z){return Rt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},Rt(z)}var fn=(function(z){(function(ne,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(ce&&ce.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),ce&&kr(ne,ce)})(J,z);var Z,X,te=mr(J);function J(ne){return(function(ce,ve){if(!(ce instanceof ve))throw new TypeError("Cannot call a class as a function")})(this,J),te.call(this,ne)}return Z=J,(X=[{key:"getAll",value:function(){return this.apiClient.getContentCardsV2()}},{key:"getContentCards",value:function(){return this.apiClient.getContentCards()}},{key:"show",value:function(ne,ce){return this.apiClient.showContentCards(ne,ce)}},{key:"hide",value:function(ne){return this.apiClient.hideCards(ne)}},{key:"logDismissal",value:function(ne){return this.apiClient.logContentCardDismissal(ne)}},{key:"logClick",value:function(ne){return this.apiClient.logContentCardClick(ne)}},{key:"logImpressions",value:function(ne){return this.apiClient.logContentCardImpressions(ne)}},{key:"requestRefresh",value:function(ne,ce){return this.apiClient.requestContentCardRefresh(ne,ce)}},{key:"subscribe",value:function(ne){return this.apiClient.subscribeToContentCardUpdate(ne)}}])&&me(Z.prototype,X),Object.defineProperty(Z,"prototype",{writable:!1}),J})(Ke);function ze(z){return ze=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},ze(z)}function Et(z,Z){for(var X=0;X<Z.length;X++){var te=Z[X];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(z,pa(te.key),te)}}function pa(z){var Z=(function(X,te){if(ze(X)!="object"||!X)return X;var J=X[Symbol.toPrimitive];if(J!==void 0){var ne=J.call(X,"string");if(ze(ne)!="object")return ne;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(X)})(z);return ze(Z)=="symbol"?Z:Z+""}function oi(z,Z){return oi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(X,te){return X.__proto__=te,X},oi(z,Z)}function wi(z){var Z=Wi();return function(){var X,te=Dn(z);if(Z){var J=Dn(this).constructor;X=Reflect.construct(te,arguments,J)}else X=te.apply(this,arguments);return Vn(this,X)}}function Vn(z,Z){if(Z&&(ze(Z)=="object"||typeof Z=="function"))return Z;if(Z!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(X){if(X===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X})(z)}function Wi(){try{var z=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(Wi=function(){return!!z})()}function Dn(z){return Dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},Dn(z)}var vu,pu,gu,Ki,Yi,Ei,Ji,mu,yu,Ro,si,en,bn,ql,bu=(function(z){(function(ne,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(ce&&ce.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),ce&&oi(ne,ce)})(J,z);var Z,X,te=wi(J);function J(ne){return(function(ce,ve){if(!(ce instanceof ve))throw new TypeError("Cannot call a class as a function")})(this,J),te.call(this,ne)}return Z=J,(X=[{key:"show",value:function(ne,ce,ve){return this.apiClient.showInAppMessage(ne,ce,ve)}},{key:"logMessageClick",value:function(ne){return this.apiClient.logInAppMessageClick(ne)}},{key:"logButtonClick",value:function(ne,ce){return this.apiClient.logInAppMessageButtonClick(ne,ce)}},{key:"logHtmlMessageClick",value:function(ne,ce,ve){return this.apiClient.logInAppMessageHtmlClick(ne,ce,ve)}},{key:"logImpression",value:function(ne){return this.apiClient.logInAppMessageImpression(ne)}},{key:"subscribe",value:function(ne){return this.apiClient.subscribeToInAppMessage(ne)}}])&&Et(Z.prototype,X),Object.defineProperty(Z,"prototype",{writable:!1}),J})(Ke),ct={all:["streamable","clickview"],cv:["clickview"],sl:["streamable"],none:[]};(function(z){z.AU="au",z.NZ="nz",z.UK="uk",z.US="us"})(vu||(vu={})),(function(z){z.PageView="page_view"})(pu||(pu={})),(function(z){z.ButtonClick="marketing_button_click",z.LinkClick="marketing_link_click"})(gu||(gu={})),(function(z){z.FreeTrialSignup="marketing_free_trial_signup",z.DemoSignup="marketing_demo_signup",z.PostFreeTrialSubmission="marketing_post_free_trial_submission",z.FormSubmission="marketing_form_submission",z.ContactFormSubmission="marketing_contact_us_submission",z.CallBooked="marketing_call_booked",z.NewsletterSignup="cv_marketing_newsletter_sign_up",z.MarketingTradeshowSubmission="marketing_tradeshow_submission",z.LandingPageFormSubmission="cv_marketing_lp_form_submission"})(Ki||(Ki={})),(function(z){z.ProductTrailRequested="product_trial_requested",z.FormSubmission="product_form_submission",z.TrialUpgradeRequested="product_trial_upgrade_requested",z.OlympicsOfferSubmission="product_olympics_offer_submission",z.BdmTrialRequested="cv_product_bdm_trial_requested"})(Yi||(Yi={})),(function(z){z.ContactUsFormSubmit="streamable_contact_us_submission",z.LivestreamBookingFormSubmit="streamable_livestream_booking_submission"})(Ei||(Ei={})),(function(z){z.TrialRequested="sl_marketing_trial_requested",z.HalloweenFormSubmission="sl_marketing_halloween_submission",z.NewsletterSignup="sl_marketing_newsletter_sign_up",z.RequestPricing="sl_marketing_pricing_requested",z.LandingPageFormSubmission="sl_marketing_lp_form_submission",z.ContactUsFormSubmit="sl_marketing_contact_us_submission"})(Ji||(Ji={})),(function(z){z.ContactUsFormSubmit="ch_marketing_contact_us_submission"})(mu||(mu={})),(function(z){z.ExploreTopics="product_explore_topics",z.Stream="product_stream",z.Search="product_search",z.SearchClickthrough="product_search_clickthrough",z.ClickBookACall="product_book_a_call_clicked",z.Share="product_share",z.DownloadResource="product_download_resource",z.Invite="product_invite_send",z.PlayerDeviceCta="product_player_devices_cta",z.SettingsIntegrations="product_settings_integrations"})(yu||(yu={})),(function(z){z.AddToSubscriptionGroups="add_to_subscription_groups"})(Ro||(Ro={})),(function(z){z.FirstName="first_name",z.LastName="last_name",z.Email="email",z.Phone="phone_number"})(si||(si={})),(function(z){z.CrmId="cvc_id",z.JobTitle="job_title",z.AccountOwner="account_owner",z.Department="department",z.AccountName="account_name",z.AccountType="account_type",z.OrgType="organisation_type",z.OrgSubType="organisation_sub_type",z.SyncToCrm="sync_to_crm",z.MasterId="master_id",z.AccountAddress="account_address",z.Topic="topic",z.Source="source"})(en||(en={})),(function(z){z.AccountCity="account_city",z.AccountState="account_state",z.AccountPostCode="account_post_code",z.AccountCountry="account_country",z.HowCanWeHelp="how_can_we_help",z.ReasonForInterest="reason_for_interest",z.EventTopic="event_topic",z.ContactUsComment="contact_us_comment"})(bn||(bn={})),(function(z){z.Marketing="marketing_id",z.Product="master_id",z.Email="email"})(ql||(ql={}));function Ci(z){return Ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},Ci(z)}function Dl(z,Z){for(var X=0;X<Z.length;X++){var te=Z[X];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(z,_u(te.key),te)}}function _u(z){var Z=(function(X,te){if(Ci(X)!="object"||!X)return X;var J=X[Symbol.toPrimitive];if(J!==void 0){var ne=J.call(X,"string");if(Ci(ne)!="object")return ne;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(X)})(z);return Ci(Z)=="symbol"?Z:Z+""}function ms(z,Z){return ms=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(X,te){return X.__proto__=te,X},ms(z,Z)}function Ll(z){var Z=ys();return function(){var X,te=xi(z);if(Z){var J=xi(this).constructor;X=Reflect.construct(te,arguments,J)}else X=te.apply(this,arguments);return Ml(this,X)}}function Ml(z,Z){if(Z&&(Ci(Z)=="object"||typeof Z=="function"))return Z;if(Z!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return(function(X){if(X===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X})(z)}function ys(){try{var z=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch{}return(ys=function(){return!!z})()}function xi(z){return xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},xi(z)}var ui=(function(z){(function(ne,ce){if(typeof ce!="function"&&ce!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(ce&&ce.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),Object.defineProperty(ne,"prototype",{writable:!1}),ce&&ms(ne,ce)})(J,z);var Z,X,te=Ll(J);function J(ne){return(function(ce,ve){if(!(ce instanceof ve))throw new TypeError("Cannot call a class as a function")})(this,J),te.call(this,ne)}return Z=J,X=[{key:"logForm",value:function(ne){var ce;this.log(ne),(function(ve){var Ie;switch((Ie=ve==null?void 0:ve.internalOptions)===null||Ie===void 0?void 0:Ie.subscriptionGroups){case"all":case"cv":case"sl":return!0;default:return!1}})(ne)&&this.logInternal({eventType:Ro.AddToSubscriptionGroups,additionalData:{products:ct[(ce=ne.internalOptions)===null||ce===void 0?void 0:ce.subscriptionGroups]}})}},{key:"logAnalytics",value:function(ne){this.log(ne,!1)}},{key:"logInternal",value:function(ne){var ce=ne.eventType,ve=ne.additionalData,Ie={type:ce,data:{}};Mt.additionalData(ve)&&(Ie.data=Object.assign({},ve)),this.apiClient.logEvent(Ie),this.apiClient.sendData()}},{key:"log",value:function(ne){var ce=ne.eventType,ve=ne.actionType,Ie=ne.additionalData,ke=ne.callback,sr=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],jr=this.options.getPayload();Mt.additionalData(Ie)&&(jr=Object.assign(Object.assign({},jr),Ie));var wr={type:ce,data:jr};ve&&(wr.actionType=ve);var Lr=this.apiClient.logEvent(wr);sr?this.apiClient.sendData(ke):typeof ke!="function"||ke(Lr)}}],X&&Dl(Z.prototype,X),Object.defineProperty(Z,"prototype",{writable:!1}),J})(Ke),li=u(8322),ci=u.n(li);function Ra(z){return Ra=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},Ra(z)}function Xi(z,Z){return(function(X){if(Array.isArray(X))return X})(z)||(function(X,te){var J=X==null?null:typeof Symbol<"u"&&X[Symbol.iterator]||X["@@iterator"];if(J!=null){var ne,ce,ve,Ie,ke=[],sr=!0,jr=!1;try{if(ve=(J=J.call(X)).next,te!==0)for(;!(sr=(ne=ve.call(J)).done)&&(ke.push(ne.value),ke.length!==te);sr=!0);}catch(wr){jr=!0,ce=wr}finally{try{if(!sr&&J.return!=null&&(Ie=J.return(),Object(Ie)!==Ie))return}finally{if(jr)throw ce}}return ke}})(z,Z)||(function(X,te){if(X){if(typeof X=="string")return Ga(X,te);var J={}.toString.call(X).slice(8,-1);return J==="Object"&&X.constructor&&(J=X.constructor.name),J==="Map"||J==="Set"?Array.from(X):J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J)?Ga(X,te):void 0}})(z,Z)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
61
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function Ga(z,Z){(Z==null||Z>z.length)&&(Z=z.length);for(var X=0,te=Array(Z);X<Z;X++)te[X]=z[X];return te}var Qi={removeEmptyKeys:function(z){var Z=this;if(Array.isArray(z))return z;var X=Object.assign({},z);return Object.entries(X).filter((function(te){var J=Xi(te,2)[1];return!(J==null||typeof J=="string"&&!J.length||Ra(J)==="object"&&Object.keys(J).length===0)})).reduce((function(te,J){var ne,ce,ve,Ie=Xi(J,2),ke=Ie[0],sr=Ie[1];return Object.assign(Object.assign({},te),(ne={},ce=ke,ve=sr===Object(sr)?Z.removeEmptyKeys(sr):sr,(ce=(function(jr){var wr=(function(Lr,Ar){if(Ra(Lr)!="object"||!Lr)return Lr;var br=Lr[Symbol.toPrimitive];if(br!==void 0){var Le=br.call(Lr,"string");if(Ra(Le)!="object")return Le;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(Lr)})(jr);return Ra(wr)=="symbol"?wr:wr+""})(ce))in ne?Object.defineProperty(ne,ce,{value:ve,enumerable:!0,configurable:!0,writable:!0}):ne[ce]=ve,ne))}),{})}};function Ii(z){return Ii=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},Ii(z)}function pt(z,Z,X){return(Z=(function(te){var J=(function(ne,ce){if(Ii(ne)!="object"||!ne)return ne;var ve=ne[Symbol.toPrimitive];if(ve!==void 0){var Ie=ve.call(ne,"string");if(Ii(Ie)!="object")return Ie;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(ne)})(te);return Ii(J)=="symbol"?J:J+""})(Z))in z?Object.defineProperty(z,Z,{value:X,enumerable:!0,configurable:!0,writable:!0}):z[Z]=X,z}var Oa={getDefaultUserAttributes:function(z){var Z;return Qi.removeEmptyKeys((pt(Z={},si.Email,z.email),pt(Z,si.FirstName,z==null?void 0:z.firstName),pt(Z,si.LastName,z==null?void 0:z.lastName),pt(Z,si.Phone,z==null?void 0:z.phone),Z))},getCustomUserAttributesWithoutSource:function(z){var Z,X,te,J,ne,ce,ve,Ie,ke,sr,jr,wr,Lr,Ar,br,Le=Qi.removeEmptyKeys({province:(te=(X=z==null?void 0:z.custom)===null||X===void 0?void 0:X.accountAddress)===null||te===void 0?void 0:te.province,country_code:(ne=(J=z==null?void 0:z.custom)===null||J===void 0?void 0:J.accountAddress)===null||ne===void 0?void 0:ne.countryCode}),ot=(pt(Z={},en.AccountName,(ce=z==null?void 0:z.custom)===null||ce===void 0?void 0:ce.accountName),pt(Z,en.AccountType,(ve=z==null?void 0:z.custom)===null||ve===void 0?void 0:ve.accountType),pt(Z,en.CrmId,(Ie=z==null?void 0:z.custom)===null||Ie===void 0?void 0:Ie.crmId),pt(Z,en.Department,(ke=z==null?void 0:z.custom)===null||ke===void 0?void 0:ke.department),pt(Z,en.JobTitle,(sr=z==null?void 0:z.custom)===null||sr===void 0?void 0:sr.jobTitle),pt(Z,en.MasterId,(jr=z==null?void 0:z.custom)===null||jr===void 0?void 0:jr.masterId),pt(Z,en.OrgSubType,(wr=z==null?void 0:z.custom)===null||wr===void 0?void 0:wr.orgSubType),pt(Z,en.OrgType,(Lr=z==null?void 0:z.custom)===null||Lr===void 0?void 0:Lr.orgType),pt(Z,en.SyncToCrm,(Ar=z==null?void 0:z.custom)===null||Ar===void 0?void 0:Ar.syncToCrm),pt(Z,en.Topic,(br=z==null?void 0:z.custom)===null||br===void 0?void 0:br.topic),Z);return Mt.accountAddress(Le)&&(ot[en.AccountAddress]=Le),Qi.removeEmptyKeys(ot)},getCustomUserAttributes:function(z){var Z=Oa.getCustomUserAttributesWithoutSource(z),X=Qi.removeEmptyKeys(Object.assign(Object.assign({},Z),pt({},en.Source,(function(te){var J;if(!((J=te.custom)===null||J===void 0)&&J.source&&te.custom.source.length){var ne=Object.keys(Oa.getDefaultUserAttributes(te)),ce=Object.keys(Oa.getCustomUserAttributesWithoutSource(te));return{$add:[{name:te.custom.source,attributes:[].concat(ne,ce)}]}}it("No source provided for braze user.")})(z))));return X},getEventUserAttributes:function(z){var Z,X,te,J,ne,ce,ve,Ie,ke;return Qi.removeEmptyKeys((pt(Z={},bn.AccountCity,(X=z==null?void 0:z.event)===null||X===void 0?void 0:X.accountCity),pt(Z,bn.AccountCountry,(te=z==null?void 0:z.event)===null||te===void 0?void 0:te.accountCity),pt(Z,bn.AccountPostCode,(J=z==null?void 0:z.event)===null||J===void 0?void 0:J.accountPostCode),pt(Z,bn.AccountState,(ne=z==null?void 0:z.event)===null||ne===void 0?void 0:ne.accountState),pt(Z,bn.ContactUsComment,(ce=z==null?void 0:z.event)===null||ce===void 0?void 0:ce.contactUsComment),pt(Z,bn.EventTopic,(ve=z==null?void 0:z.event)===null||ve===void 0?void 0:ve.eventTopic),pt(Z,bn.HowCanWeHelp,(Ie=z==null?void 0:z.event)===null||Ie===void 0?void 0:Ie.howCanWeHelp),pt(Z,bn.ReasonForInterest,(ke=z==null?void 0:z.event)===null||ke===void 0?void 0:ke.reasonForInterest),Z))},getExtraUserAttributes:function(z){return Ii(z.extra)!=="object"?{}:Qi.removeEmptyKeys(z.extra)},getPayload:function(z){if(!z)return{};var Z=Oa.getDefaultUserAttributes(z),X=Oa.getCustomUserAttributes(z),te=Oa.getEventUserAttributes(z),J=Oa.getExtraUserAttributes(z),ne=Mt.additionalData(J),ce=Object.assign(Object.assign(Object.assign({},Z),X),te);return ne?Object.assign(Object.assign({},ce),J):ce},getEmailHash:function(z){var Z=z.trim().toLowerCase();return ci().hash(Z)}};function eo(z){return eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},eo(z)}function bs(z,Z){for(var X=0;X<Z.length;X++){var te=Z[X];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(z,Ul(te.key),te)}}function Ul(z){var Z=(function(X,te){if(eo(X)!="object"||!X)return X;var J=X[Symbol.toPrimitive];if(J!==void 0){var ne=J.call(X,"string");if(eo(ne)!="object")return ne;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(X)})(z);return eo(Z)=="symbol"?Z:Z+""}var nd=(function(){function z(te){var J=te.apiOptions,ne=te.shouldInitialize,ce=ne===void 0||ne,ve=te.allowAnonymous,Ie=ve!==void 0&&ve,ke=te.subscriptions;(function(sr,jr){if(!(sr instanceof jr))throw new TypeError("Cannot call a class as a function")})(this,z),this.initialized=!1,this.apiOptions=J,this.subscriptions=ke,this.allowAnonymous=Ie,ce&&this.initialize()}var Z,X;return Z=z,(X=[{key:"initialize",value:function(){var te=this;this.isInitialized()?(function(J){for(var ne=arguments.length,ce=new Array(ne>1?ne-1:0),ve=1;ve<ne;ve++)ce[ve-1]=arguments[ve];console.warn(J,ce)})("BrazeClient has already been initialized!"):(this.apiClient=yn.getInstance(this.apiOptions),this.cardsModule=new fn({apiClient:this.apiClient}),this.bamModule=new bu({apiClient:this.apiClient}),this.eventModule=new ui({apiClient:this.apiClient,getPayload:function(){return Oa.getPayload(te.user)}}),this.initialized=!0)}},{key:"isInitialized",value:function(){return this.initialized}},{key:"getUser",value:function(){return this.isInitialized()?this.validateUser()?this.user:null:(cn("BrazeClient has not been initialized."),null)}},{key:"card",get:function(){return this.isInitialized()?this.cardsModule:(cn("BrazeClient has not been initialized."),null)}},{key:"bam",get:function(){return this.isInitialized()?this.bamModule:(cn("BrazeClient has not been initialized."),null)}},{key:"event",get:function(){return this.isInitialized()?this.allowAnonymous||this.validateUser()?this.eventModule:(cn("Anon events are disabled! Please invoke `setUser` before logging events!"),null):(cn("BrazeClient has not been initialized."),null)}},{key:"setUser",value:function(te){this.isInitialized()?(this.user=te,this.startSession(),this.logUserAttributes()):cn("Trying to `setUser` but the client has not been initialized")}},{key:"setUserInit",value:function(te){this.isInitialized()||this.initialize(),this.setUser(te)}},{key:"allowAnonymousSessions",value:function(){this.allowAnonymous=!0}},{key:"api",value:function(){return this.isInitialized()?this.apiClient:null}},{key:"setEmailNotificationSubscriptionType",value:function(te){return this.isInitialized()&&this.validateUser()?this.apiClient.setUserEmailNotificationSubscriptionType(te):null}},{key:"validateUser",value:function(){return!!this.user||(cn("No user has been set!"),!1)}},{key:"startSession",value:function(){this.allowAnonymous||this.validateUser()?(this.enableSubscriptions(),this.user?(this.apiClient.setUser(Oa.getEmailHash(this.user.email)),this.apiClient.openSession()):this.apiClient.openSession()):cn("No user provided and cannot start anonymous sessions!")}},{key:"enableSubscriptions",value:function(){var te,J;!((te=this.subscriptions)===null||te===void 0)&&te.subscribeToInAppMessage&&typeof this.subscriptions.subscribeToInAppMessage=="function"&&this.apiClient.subscribeToInAppMessage(this.subscriptions.subscribeToInAppMessage),!((J=this.subscriptions)===null||J===void 0)&&J.subscribeToContentCards&&typeof this.subscriptions.subscribeToContentCards=="function"&&this.apiClient.subscribeToContentCardUpdate(this.subscriptions.subscribeToContentCards)}},{key:"logUserAttributes",value:function(){if(this.validateUser()){this.apiClient.setUserEmail(this.user.email),this.user.firstName&&this.apiClient.setUserFirstName(this.user.firstName),this.user.lastName&&this.apiClient.setUserLastName(this.user.lastName),this.user.phone&&this.apiClient.setUserPhone(this.user.phone),this.user.country&&this.apiClient.setUserCountry(this.user.country);var te=Oa.getCustomUserAttributes(this.user);this.apiClient.bulkSetCustomUserAttributes(te)}}}])&&bs(Z.prototype,X),Object.defineProperty(Z,"prototype",{writable:!1}),z})();function Oo(z){return yn.getInstance(z)}})(),v})()))})(qb)),qb.exports}var Nl=qre();function Dre(e){Nr.useEffect(()=>{const r=Lre(e==null?void 0:e.additionalData);r!=null&&r.attributionData&&_i.setAttributionData(r.attributionData),r!=null&&r.utms&&fs.setUtmParameters(r.utms)},[])}function Lre(e){var r;if(!((r=e==null?void 0:e.attribution)!=null&&r.length))return null;try{const{r:t,utms:a}=JSON.parse(e.attribution);return{attributionData:_i.decodeRValue(t),utms:a}}catch(t){const a=t instanceof Error?t.message:t==null?void 0:t.toString();console.error(a)}}var Ma=(e=>(e.Lite="lite",e.Auth="auth",e))(Ma||{});function Mre(e){return{productName:Ma.Auth,prospectStatus:r=>`${e}/v1/prospects/${r}/trial-status`,createTrial:"/ajax/trials/new",searchProspect:`${e}/v1/search/prospects`,createProspect:"/ajax/trials/prospects",prospectLookups:r=>`${e}/v1/prospects/${r}/lookups`,joinRequest:"/ajax/trials/join-request"}}const eB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function iL(e,r,t,a){let o,s,u;const v=r||[0],d=(t=t||0)>>>3,h=a===-1?3:0;for(o=0;o<e.length;o+=1)u=o+d,s=u>>>2,v.length<=s&&v.push(0),v[s]|=e[o]<<8*(h+a*(u%4));return{value:v,binLen:8*e.length+t}}function Db(e,r,t){switch(r){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e){case"HEX":return function(a,o,s){return(function(u,v,d,h){let f,c,_,E;if(u.length%2!=0)throw new Error("String of HEX type must be in byte increments");const S=v||[0],w=(d=d||0)>>>3,T=h===-1?3:0;for(f=0;f<u.length;f+=2){if(c=parseInt(u.substr(f,2),16),isNaN(c))throw new Error("String of HEX type contains invalid characters");for(E=(f>>>1)+w,_=E>>>2;S.length<=_;)S.push(0);S[_]|=c<<8*(T+h*(E%4))}return{value:S,binLen:4*u.length+d}})(a,o,s,t)};case"TEXT":return function(a,o,s){return(function(u,v,d,h,f){let c,_,E,S,w,T,b,I,m=0;const p=d||[0],y=(h=h||0)>>>3;if(v==="UTF8")for(b=f===-1?3:0,E=0;E<u.length;E+=1)for(c=u.charCodeAt(E),_=[],128>c?_.push(c):2048>c?(_.push(192|c>>>6),_.push(128|63&c)):55296>c||57344<=c?_.push(224|c>>>12,128|c>>>6&63,128|63&c):(E+=1,c=65536+((1023&c)<<10|1023&u.charCodeAt(E)),_.push(240|c>>>18,128|c>>>12&63,128|c>>>6&63,128|63&c)),S=0;S<_.length;S+=1){for(T=m+y,w=T>>>2;p.length<=w;)p.push(0);p[w]|=_[S]<<8*(b+f*(T%4)),m+=1}else for(b=f===-1?2:0,I=v==="UTF16LE"&&f!==1||v!=="UTF16LE"&&f===1,E=0;E<u.length;E+=1){for(c=u.charCodeAt(E),I===!0&&(S=255&c,c=S<<8|c>>>8),T=m+y,w=T>>>2;p.length<=w;)p.push(0);p[w]|=c<<8*(b+f*(T%4)),m+=2}return{value:p,binLen:8*m+h}})(a,r,o,s,t)};case"B64":return function(a,o,s){return(function(u,v,d,h){let f,c,_,E,S,w,T,b=0;const I=v||[0],m=(d=d||0)>>>3,p=h===-1?3:0,y=u.indexOf("=");if(u.search(/^[a-zA-Z0-9=+/]+$/)===-1)throw new Error("Invalid character in base-64 string");if(u=u.replace(/=/g,""),y!==-1&&y<u.length)throw new Error("Invalid '=' found in base-64 string");for(c=0;c<u.length;c+=4){for(S=u.substr(c,4),E=0,_=0;_<S.length;_+=1)f=eB.indexOf(S.charAt(_)),E|=f<<18-6*_;for(_=0;_<S.length-1;_+=1){for(T=b+m,w=T>>>2;I.length<=w;)I.push(0);I[w]|=(E>>>16-8*_&255)<<8*(p+h*(T%4)),b+=1}}return{value:I,binLen:8*b+d}})(a,o,s,t)};case"BYTES":return function(a,o,s){return(function(u,v,d,h){let f,c,_,E;const S=v||[0],w=(d=d||0)>>>3,T=h===-1?3:0;for(c=0;c<u.length;c+=1)f=u.charCodeAt(c),E=c+w,_=E>>>2,S.length<=_&&S.push(0),S[_]|=f<<8*(T+h*(E%4));return{value:S,binLen:8*u.length+d}})(a,o,s,t)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch{throw new Error("ARRAYBUFFER not supported by this environment")}return function(a,o,s){return(function(u,v,d,h){return iL(new Uint8Array(u),v,d,h)})(a,o,s,t)};case"UINT8ARRAY":try{new Uint8Array(0)}catch{throw new Error("UINT8ARRAY not supported by this environment")}return function(a,o,s){return iL(a,o,s,t)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function oL(e,r,t,a){switch(e){case"HEX":return function(o){return(function(s,u,v,d){let h,f,c="";const _=u/8,E=v===-1?3:0;for(h=0;h<_;h+=1)f=s[h>>>2]>>>8*(E+v*(h%4)),c+="0123456789abcdef".charAt(f>>>4&15)+"0123456789abcdef".charAt(15&f);return d.outputUpper?c.toUpperCase():c})(o,r,t,a)};case"B64":return function(o){return(function(s,u,v,d){let h,f,c,_,E,S="";const w=u/8,T=v===-1?3:0;for(h=0;h<w;h+=3)for(_=h+1<w?s[h+1>>>2]:0,E=h+2<w?s[h+2>>>2]:0,c=(s[h>>>2]>>>8*(T+v*(h%4))&255)<<16|(_>>>8*(T+v*((h+1)%4))&255)<<8|E>>>8*(T+v*((h+2)%4))&255,f=0;f<4;f+=1)S+=8*h+6*f<=u?eB.charAt(c>>>6*(3-f)&63):d.b64Pad;return S})(o,r,t,a)};case"BYTES":return function(o){return(function(s,u,v){let d,h,f="";const c=u/8,_=v===-1?3:0;for(d=0;d<c;d+=1)h=s[d>>>2]>>>8*(_+v*(d%4))&255,f+=String.fromCharCode(h);return f})(o,r,t)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch{throw new Error("ARRAYBUFFER not supported by this environment")}return function(o){return(function(s,u,v){let d;const h=u/8,f=new ArrayBuffer(h),c=new Uint8Array(f),_=v===-1?3:0;for(d=0;d<h;d+=1)c[d]=s[d>>>2]>>>8*(_+v*(d%4))&255;return f})(o,r,t)};case"UINT8ARRAY":try{new Uint8Array(0)}catch{throw new Error("UINT8ARRAY not supported by this environment")}return function(o){return(function(s,u,v){let d;const h=u/8,f=v===-1?3:0,c=new Uint8Array(h);for(d=0;d<h;d+=1)c[d]=s[d>>>2]>>>8*(f+v*(d%4))&255;return c})(o,r,t)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function sL(e){const r={outputUpper:!1,b64Pad:"=",outputLen:-1},t=e||{},a="Output length must be a multiple of 8";if(r.outputUpper=t.outputUpper||!1,t.b64Pad&&(r.b64Pad=t.b64Pad),t.outputLen){if(t.outputLen%8!=0)throw new Error(a);r.outputLen=t.outputLen}else if(t.shakeLen){if(t.shakeLen%8!=0)throw new Error(a);r.outputLen=t.shakeLen}if(typeof r.outputUpper!="boolean")throw new Error("Invalid outputUpper formatting option");if(typeof r.b64Pad!="string")throw new Error("Invalid b64Pad formatting option");return r}function Fs(e,r){return e<<r|e>>>32-r}function uL(e,r,t){return e^r^t}function Ure(e,r,t){return e&r^e&t^r&t}function Xu(e,r){const t=(65535&e)+(65535&r);return(65535&(e>>>16)+(r>>>16)+(t>>>16))<<16|65535&t}function Uc(e,r,t,a,o){const s=(65535&e)+(65535&r)+(65535&t)+(65535&a)+(65535&o);return(65535&(e>>>16)+(r>>>16)+(t>>>16)+(a>>>16)+(o>>>16)+(s>>>16))<<16|65535&s}function Fre(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function rB(e,r){let t,a,o,s,u,v,d;const h=[];for(t=r[0],a=r[1],o=r[2],s=r[3],u=r[4],d=0;d<80;d+=1)h[d]=d<16?e[d]:Fs(h[d-3]^h[d-8]^h[d-14]^h[d-16],1),v=d<20?Uc(Fs(t,5),(f=a)&o^~f&s,u,1518500249,h[d]):d<40?Uc(Fs(t,5),uL(a,o,s),u,1859775393,h[d]):d<60?Uc(Fs(t,5),Ure(a,o,s),u,2400959708,h[d]):Uc(Fs(t,5),uL(a,o,s),u,3395469782,h[d]),u=s,s=o,o=Fs(a,30),a=t,t=v;var f;return r[0]=Xu(t,r[0]),r[1]=Xu(a,r[1]),r[2]=Xu(o,r[2]),r[3]=Xu(s,r[3]),r[4]=Xu(u,r[4]),r}function Bre(e,r,t,a){let o;const s=15+(r+65>>>9<<4),u=r+t;for(;e.length<=s;)e.push(0);for(e[r>>>5]|=128<<24-r%32,e[s]=4294967295&u,e[s-1]=u/4294967296|0,o=0;o<e.length;o+=16)a=rB(e.slice(o,o+16),a);return a}class $re extends class{constructor(r,t,a){const o=a||{};if(this.t=t,this.i=o.encoding||"UTF8",this.numRounds=o.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.s=r,this.o=[],this.h=0,this.u=!1,this.l=0,this.A=!1,this.p=[],this.R=[]}update(r){let t,a=0;const o=this.U>>>5,s=this.T(r,this.o,this.h),u=s.binLen,v=s.value,d=u>>>5;for(t=0;t<d;t+=o)a+this.U<=u&&(this.F=this.m(v.slice(t,t+o),this.F),a+=this.U);this.l+=a,this.o=v.slice(a>>>5),this.h=u%this.U,this.u=!0}getHash(r,t){let a,o,s=this.g;const u=sL(t);if(this.B){if(u.outputLen===-1)throw new Error("Output length must be specified in options");s=u.outputLen}const v=oL(r,s,this.v,u);if(this.A&&this.Y)return v(this.Y(u));for(o=this.H(this.o.slice(),this.h,this.l,this.C(this.F),s),a=1;a<this.numRounds;a+=1)this.B&&s%32!=0&&(o[o.length-1]&=16777215>>>24-s%32),o=this.H(o,s,0,this.I(this.s),s);return v(o)}setHMACKey(r,t,a){if(!this.L)throw new Error("Variant does not support HMAC");if(this.u)throw new Error("Cannot set MAC key after calling update");const o=Db(t,(a||{}).encoding||"UTF8",this.v);this.M(o(r))}M(r){const t=this.U>>>3,a=t/4-1;let o;if(this.numRounds!==1)throw new Error("Cannot set numRounds with MAC");if(this.A)throw new Error("MAC key already set");for(t<r.binLen/8&&(r.value=this.H(r.value,r.binLen,0,this.I(this.s),this.g));r.value.length<=a;)r.value.push(0);for(o=0;o<=a;o+=1)this.p[o]=909522486^r.value[o],this.R[o]=1549556828^r.value[o];this.F=this.m(this.p,this.F),this.l=this.U,this.A=!0}getHMAC(r,t){const a=sL(t);return oL(r,this.g,this.v,a)(this.N())}N(){let r;if(!this.A)throw new Error("Cannot call getHMAC without first setting MAC key");const t=this.H(this.o.slice(),this.h,this.l,this.C(this.F),this.g);return r=this.m(this.R,this.I(this.s)),r=this.H(t,this.g,this.U,r,this.g),r}}{constructor(r,t,a){if(r!=="SHA-1")throw new Error("Chosen SHA variant is not supported");super(r,t,a);const o=a||{};this.L=!0,this.Y=this.N,this.v=-1,this.T=Db(this.t,this.i,this.v),this.m=rB,this.C=function(s){return s.slice()},this.I=Fre,this.H=Bre,this.F=[1732584193,4023233417,2562383102,271733878,3285377520],this.U=512,this.g=160,this.B=!1,o.hmacKey&&this.M((function(s,u,v,d){const h=s+" must include a value and format";if(!u)throw new Error(h);if(u.value===void 0||!u.format)throw new Error(h);return Db(u.format,u.encoding||"UTF8",v)(u.value)})("hmacKey",o.hmacKey,this.v))}}var pn=(e=>(e.CvApSoutheast1="cv-ap-southeast-1",e.CvApSoutheast2="cv-ap-southeast-2",e.CvEuWest1="cv-eu-west-1",e.CvNaWest1="cv-na-west-1",e))(pn||{});const zre={systemName:pn.CvApSoutheast1},Zre={systemName:pn.CvApSoutheast2},Hre={systemName:pn.CvEuWest1},Vre={systemName:pn.CvNaWest1},Gre={CvApSoutheast1:zre,CvApSoutheast2:Zre,CvEuWest1:Hre,CvNaWest1:Vre};var tB=(e=>(e.Staff="Staff",e.Learner="Learner",e.Unknown="Unknown",e.System="System",e))(tB||{});const lL=3,Wre=5e3,Kre=6,Lb={};class Yre{constructor(r){this.key=r.toString()}getCount(){return Lb[this.key]||0}increment(){Lb[this.key]=this.getCount()+1}reset(){delete Lb[this.key]}shouldBreak(){return this.getCount()>=Kre}}class Jre{constructor(){this.attempt=0}async wait(){await new Promise(r=>setTimeout(r,Wre*Math.pow(2,this.attempt))),this.attempt++}}async function Xre(e,r){const t=new Jre,a=new Yre(e);async function o(){const s=await fetch(e,r);if(s.status>=500&&!a.shouldBreak())throw new Error(`Server error: ${s.status}`);return s.ok&&a.reset(),s}for(let s=1;s<=lL;s++)try{return await o()}catch(u){if(s>=lL||a.shouldBreak())throw u;a.increment(),await t.wait()}}var Fc,Qre=new Uint8Array(16);function ete(){if(!Fc&&(Fc=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Fc))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Fc(Qre)}const rte=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function IS(e){return typeof e=="string"&&rte.test(e)}var xn=[];for(var Mb=0;Mb<256;++Mb)xn.push((Mb+256).toString(16).substr(1));function tte(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(xn[e[r+0]]+xn[e[r+1]]+xn[e[r+2]]+xn[e[r+3]]+"-"+xn[e[r+4]]+xn[e[r+5]]+"-"+xn[e[r+6]]+xn[e[r+7]]+"-"+xn[e[r+8]]+xn[e[r+9]]+"-"+xn[e[r+10]]+xn[e[r+11]]+xn[e[r+12]]+xn[e[r+13]]+xn[e[r+14]]+xn[e[r+15]]).toLowerCase();if(!IS(t))throw TypeError("Stringified UUID is invalid");return t}function nte(e,r,t){e=e||{};var a=e.random||(e.rng||ete)();return a[6]=a[6]&15|64,a[8]=a[8]&63|128,tte(a)}function ate(e){if(!IS(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const Bc="cv:session:",mo="cv:window:v2:",Qu=1e3*60*30,ite=4;function Xf(e){if(e===Kn.LocalStorage)return Tn.isAvailable()?Tn:O3;if(e===Kn.SessionStorage)return R3.isAvailable()?R3:O3}function nB(e){return new Date().getTime()+e}function ote(){return nte()}function Qf(e,r){return e+(r||"0")}function ste(e){return new Date().getTime()>e}function ute(e){return!(typeof e!="object"||typeof(e==null?void 0:e.id)!="string"||!IS(e.id)||ate(e.id)!==ite||typeof(e==null?void 0:e.ttl)!="number"||(e==null?void 0:e.ttl)<=0||isNaN(e==null?void 0:e.ttl))}function $c(e,r,t){const a=Xf(t),o=Qf(e,r),s=a.get(o);return!ute(s)||ste(s==null?void 0:s.ttl)?null:s}function cL(e,r,t,a){const o=Xf(t),s=Qf(e,r),u={id:ote(),ttl:nB(a)};return o.set(s,u),u}function zc(e,r,t,a,o){const s=Xf(t),u=Qf(e,r);s.set(u,{id:a.id,ttl:nB(o)})}function fL(e,r,t){const a=Xf(t);if(!(a!=null&&a.isAvailable()))return;const o=Qf(e,r);a.remove(o)}let Zc=null;const dL={getClientSessionData(e){let r=$c(Bc,e,Kn.LocalStorage);r?zc(Bc,e,Kn.LocalStorage,r,Qu):r=cL(Bc,e,Kn.LocalStorage,Qu);let t=$c(mo,e,Kn.SessionStorage);return t?Zc===null&&zc(mo,e,Kn.SessionStorage,t,Qu):t=cL(mo,e,Kn.SessionStorage,Zc??Qu),{id:r.id,windowId:t.id}},resetClientSession(e){fL(Bc,e,Kn.LocalStorage),fL(mo,e,Kn.SessionStorage)},lockWindowSession(e,r){Zc=r;const t=$c(mo,e,Kn.SessionStorage);t&&zc(mo,e,Kn.SessionStorage,t,r)},unlockWindowSession(e){Zc=null;const r=$c(mo,e,Kn.SessionStorage);r&&zc(mo,e,Kn.SessionStorage,r,Qu)}},Hc={isObject(e){const r=typeof e;return r==="function"||r==="object"&&!!e},isFunction(e){return typeof e=="function"}},hL={safeUrlConcat(e,r){if(!e)return;let t=e;return e.endsWith("/")||(t+="/"),r&&(t+=r.startsWith("/")?r.slice(1):r),t}},Zr={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 6.3/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/^(?!.*Edge).*Chrome/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i},Li="Unknown";function Bs(e,r,t){const a=r.exec(t)||[];let[o]=a;return o||(o=Li),{name:e,version:o}}function zo(e,r,t){if(!r)return{name:e,version:Li};const a=r.exec(t),o=a&&a.length?a[0].trim():Li;return{name:e,version:o}}function lte(e,r){const t={name:e,version:null};return Zr.win2000.test(r)&&(t.version="2000"),Zr.winXP.test(r)&&(t.version="XP"),Zr.winVista.test(r)&&(t.version="Vista"),Zr.win7.test(r)&&(t.version="7"),Zr.win8.test(r)&&(t.version="8"),Zr.win81.test(r)&&(t.version="8.1"),Zr.win10.test(r)&&(t.version="10"),t.version||(t.version=Li),t}const vL={getDeviceType(){const e=window.navigator.userAgent;return Zr.mobileDevice.test(e)?Zr.iphone.test(e)?"iPhone":Zr.ipad.test(e)?"iPad":Zr.android.test(e)?"Android":Zr.blackberry.test(e)?"Blackberry":Zr.windowsPhone.test(e)?"Windows Phone":Li:"Desktop"},getOperatingSystem(){const e=window.navigator.userAgent;return Zr.android.test(e)?zo("Android",Zr.androidVersion,e):Zr.iphone.test(e)||Zr.ipad.test(e)?zo("iOS",Zr.iosVersion,e):Zr.linux.test(e)?zo("Linux",null,e):Zr.unix.test(e)?zo("Unix",null,e):Zr.mac.test(e)?zo("Macintosh",Zr.osxVersion,e):Zr.windows.test(e)?lte("Windows",e):Zr.blackberry.test(e)?zo("BlackBerry",Zr.blackberryVersion,e):Zr.windowsPhone.test(e)?zo("Windows Phone",Zr.windowsPhoneVersion,e):{name:Li,version:Li}},getBrowser(){const e=window.navigator.userAgent;return Zr.chrome.test(e)?Bs("Chrome",Zr.generalVersion,e):Zr.firefox.test(e)?Bs("Firefox",Zr.generalVersion,e):Zr.safari.test(e)?Bs("Safari",Zr.generalVersion,e):Zr.ie.test(e)?Bs("Internet Explorer",Zr.ieVersion,e):Zr.edge.test(e)?Bs("Edge",Zr.edgeVersion,e):Zr.opera.test(e)?Bs("Opera",Zr.operaVersion,e):{name:Li,version:Li}},isTouchScreen(){return!!("ontouchstart"in window||navigator.maxTouchPoints)}},cte="2.3.0",fte={version:cte},dte="zXJL9nOHxzDlMUDjiP41",pL="unknown";class hte{constructor(r){this.options=r,this.initialize()}initialize(){this.validateOptions(),this.options.logUtmParameters&&(this.utmParameters=fs.getUtmParameters()),this.options.logAttributionData&&(this.attributionData=_i.getDecodedAttributionData())}get name(){return"CollectionApiClient"}async log(r){if(Array.isArray(r))return this.logBulk(r);this.shouldLog(r)&&(this.validateEvent(r),await this.postData(await this.formatData(r)))}async logBulk(r){const t=r.filter(o=>this.shouldLog(o));if(!t.length)return;t.forEach(o=>this.validateEvent(o));const a=await Promise.all(t.map(o=>this.formatData(o)));await this.postData(a)}validateOptions(){if(!Hc.isFunction(this.options.getUser))throw new Error("getUser option is required.")}shouldLog(r){return Hc.isFunction(this.options.shouldLog)?this.options.shouldLog(r):!0}async postData(r){const t=await this.getRegionalUrl(this.options.collectionApiUrls),a=JSON.stringify(r),o={"Content-Type":"application/json",...this.getSignatureHeader(a)};let s=hL.safeUrlConcat(t,"/v1/ingest");Array.isArray(r)&&(s=hL.safeUrlConcat(s,"/bulk"));try{const u=await Xre(s,{method:"POST",mode:"cors",headers:o,body:a});u.ok||this.logError(new Error(`CollectionApiClient failed to log event. Status: ${u.status} ${u.statusText}`),!1,this.getResponseAsObject(u))}catch(u){this.logError(u)}}getResponseAsObject(r){return{headers:r.headers,ok:r.ok,redirected:r.redirected,status:r.status,statusText:r.statusText,type:r.type,url:r.url,body:r.text()}}getSignatureHeader(r){const t=new $re("SHA-1","TEXT",{hmacKey:{value:dte,format:"TEXT",encoding:"UTF8"}});return t.update(r),{"cv-analytics-signature":`${this.options.collectionApiClientId}.${t.getHash("B64")}`}}async getRegionalUrl(r){switch((await this.getRegion()).systemName){case pn.CvEuWest1:return r.cvEuWest1;case pn.CvApSoutheast2:return r.cvApSoutheast2;case pn.CvNaWest1:return r.cvNaWest1;case pn.CvApSoutheast1:default:return r.cvApSoutheast1}}validateEvent(r){typeof r.type!="string"&&this.logError(new Error("Event type is required."),!0),Hc.isObject(r.actionContext)||this.logError(new Error("Event actionContext is required."),!0),r.actionContext.entity||this.logError(new Error("Event actionContext entity is required."),!0)}async formatData(r){return{type:r.type,data:await this.getEventData(r),metadata:this.getEventMetadata(r)}}async getEventData(r){const t=r.actionContext,a=this.getPlatformMetadata(),o=await this.getUserData(),s=await this.getSessionData(),u={name:this.options.productName,version:this.options.productVersion};this.options.productVariant&&(u.variant=this.options.productVariant);const v={user:o,action:t,platform:a,product:u,session:s};this.utmParameters&&(v.utm=this.utmParameters);const d=this.extractData(r),h=Object.keys(v).map(c=>c.toLowerCase()),f=Object.keys(d).map(c=>c.toLowerCase());return h.forEach(c=>{f.includes(c)&&this.logError(new Error(`${c} is a reserved key.`),!0)}),{...v,...d}}extractData(r){return Hc.isFunction(this.options.formatData)?this.options.formatData(r):{[r.actionContext.entity]:r.data}}async getUserData(){var t,a,o;let r;try{r=await((a=(t=this.options).getProfileId)==null?void 0:a.call(t))}catch(s){this.logError(s)}try{const s=await this.options.getUser();return s!=null&&s.id?{id:s.id,role:((o=s.role)==null?void 0:o.toLowerCase())||pL,userGroup:(s.userGroup??tB.Unknown).toLowerCase(),yearGroup:this.normalizeYearGroup(s.yearGroup),profileId:r,customer:{id:s.customerId,name:s.customerName,customerGuid:s.customerGuid,crmId:s.crmId,country:s.countryCode,region:await this.getRegion(),openCustomer:!1,accessPolicy:s.accessPolicy}}:r?{profileId:r}:void 0}catch(s){this.logError(s)}}async getRegion(){let r=this.options.regionName;try{const t=await this.options.getUser();t!=null&&t.instanceRegion&&(r=t.instanceRegion)}catch(t){this.logError(t)}return r||this.logError(new Error("RegionName is not set."),!0),this.getRegionByName(r.toLowerCase())}async getSessionData(){try{const r=await this.options.getUser();return{...dL.getClientSessionData(r==null?void 0:r.id),authSessionId:r==null?void 0:r.sessionId}}catch(r){return console.error(r),dL.getClientSessionData(null)}}getPlatformMetadata(){var t,a;const r={url:window.location.href,referrer:document.referrer};return(t=this.attributionData)!=null&&t.internalReferrer&&(r.internalReferrer=this.attributionData.internalReferrer),(a=this.attributionData)!=null&&a.originalReferrer&&(r.originalReferrer=this.attributionData.originalReferrer),{browser:vL.getBrowser(),os:vL.getOperatingSystem(),request:r,screenResolution:`${window.screen.width}x${window.screen.height}`,viewportResolution:`${window.innerWidth}x${window.innerHeight}`}}getEventMetadata(r){return{client:{name:`${this.name}.ts`,version:fte.version,region:this.getRegionByName(this.options.regionName)},timestamp:new Date().toISOString(),eventVersion:r.eventVersion}}getRegionByName(r){let t;return Object.values(Gre).forEach(a=>{a.systemName===r&&(t=a)}),t}normalizeYearGroup(r){return r?r.toLowerCase().split(" ").join("_"):pL}logError(r,t,...a){if(this.options.logError&&this.options.logError(r,...a),t)throw r}}var sn=(e=>(e.Stream="cv_product_stream",e.WebPlayerStream="cv_product_webplayer_stream",e.StreamProgress="cv_product_stream_progress",e.PreviewStreamProgress="cv_product_preview_stream_progress",e.StreamBuffering="cv_product_stream_buffering",e.Login="cv_product_login",e.LoginSsoRedirect="cv_product_login_sso_redirect",e.LoginFailed="cv_product_login_failed",e.Search="cv_product_search",e.InstantSearch="cv_product_instant_search",e.SearchEmptyResult="cv_product_search_empty_result",e.Filter="cv_product_search_filter",e.SearchLanding="cv_product_search_landing",e.Share="cv_product_share",e.Unshare="cv_product_unshare",e.WorkspaceAdd="cv_product_tv_add",e.Rename="cv_product_rename",e.Move="cv_product_move",e.Sort="cv_product_sort",e.Create="cv_product_create",e.Delete="cv_product_delete",e.Associate="cv_product_associate",e.Dissociate="cv_product_dissociate",e.Edit="cv_product_edit",e.Approve="cv_product_approve",e.Reject="cv_product_reject",e.Disable="cv_product_disable",e.Upload="cv_product_upload",e.Download="cv_product_download",e.Navigate="cv_product_navigate",e.Click="cv_product_click",e.Suggest="cv_product_suggest",e.EditAssoc="cv_product_edit_assoc",e.Play="cv_product_play",e.Favourite="cv_product_favourite",e.Follow="cv_product_follow",e.Prefer="cv_product_prefer",e.Print="cv_product_print",e.Copy="cv_product_copy",e.Activate="cv_product_activate",e.VerifyEmail="cv_product_verify_email",e.ChangePassword="cv_product_change_password",e.ManageGroup="cv_product_manage_group",e.Export="cv_product_export",e.SendEmail="cv_product_send_email",e.Publish="cv_product_publish",e.Submit="cv_product_submit",e.Complete="cv_product_complete",e.Archive="cv_product_archive",e.Promote="cv_product_promote",e.Demote="cv_product_demote",e.BulkAction="cv_product_bulk_action",e.Remove="cv_product_remove",e.Dismiss="cv_product_dismiss",e.Open="cv_product_open",e.Hide="cv_product_hide",e.PageView="cv_product_page_view",e.Select="cv_product_select",e.SwitchCustomer="cv_product_switch_customer",e.Focus="cv_product_focus",e.Blur="cv_product_blur",e.Hover="cv_product_hover",e.Unhover="cv_product_unhover",e.SetAccess="cv_product_set_access",e.AddToLocalCache="cv_product_add_to_lc",e.ResolveWarning="cv_product_resolve_warning",e.DismissWarning="cv_product_dismiss_warning",e))(sn||{}),aB=(e=>(e.Folder="folder",e.Video="video",e.Rating="rating",e.Series="series",e.Library="library",e.Resource="resource",e.Tag="tag",e.Subtitle="subtitle",e.Chapter="chapter",e.Resolution="resolution",e.PlaybackSpeed="playback_speed",e.Device="device",e.Restriction="restriction",e.Interactive="interactive",e.Interaction="interaction",e.PDF="pdf",e.CustomerSetting="customer_setting",e.UserSetting="user_setting",e.LibraryRequest="staff_request",e.Logo="logo",e.Pagination="pagination",e.Thumbnail="thumbnail",e.Banner="banner",e.Link="link",e.Playlist="playlist",e.Playlists="playlists",e.Person="person",e.Company="company",e.Classroom="classroom",e.ClassroomGroup="classroom_group",e.Classification="classification",e.ShareLink="share_link",e.DirectShare="direct_share",e.Upload="upload",e.SearchResults="search_results",e.SearchSuggestion="search_suggestion",e.Audience="audience",e.User="user",e.Clip="clip",e.UserChannel="user_channel",e.Widget="widget",e.Url="url",e.SocialShare="social_share",e.Presentation="presentation",e.BatchJob="batch_job",e.DeepLink="deep_link",e.Feedback="feedback",e.AppLink="app_link",e.SignUp="sign_up",e.FileGeneratorJob="file_generator_job",e.ExportLibraries="export_libraries",e.Product="product",e.Customer="customer",e.SpecialEvent="special_event",e.Region="region",e.ProductTip="product_tip",e.Livestream="livestream",e.DevicesCta="devices_cta",e.Integration="integration",e.Faq="faq",e.MixedMedia="mixed_media",e.TableOfContents="table_of_contents",e.Author="author",e.Glance="glance",e.Filter="filter",e.NotificationSetting="notification_setting",e.Transcript="transcript",e.CurriculumCode="curriculum_code",e.Assign="assign",e.PartnerProfile="partner_profile",e))(aB||{}),iB=(e=>(e.TopNav="top_nav",e.LeftNav="left_nav",e.Footer="footer",e.Popup="popup",e.Banner="banner",e.VideoList="video_list",e.VideoListItem="video_list_item",e.VideoListHeader="video_header",e.VideoThumbnail="video_thumbnail",e.ExpandableVideoThumbnail="expandable_video_thumbnail",e.VideoItemPreview="video_item_preview",e.InteractiveItemPreview="interactive_item_preview",e.ClipItemPreview="clip_item_preview",e.VideoDetails="video_details",e.InteractiveDetails="interactive_details",e.ClipDetails="clip_details",e.VideoDetailsHeader="video_details_header",e.EditVideoDetails="edit_video_details",e.EditInteractiveVideoDetails="edit_interactive_video_details",e.EditClipDetails="edit_clip_details",e.EditVideoChapters="edit_video_chapters",e.EditVideoResources="edit_video_resources",e.PreviewVideoResources="preview_video_resources",e.VideoUpload="video_upload",e.VideoRequest="video_request",e.Pagination="pagination",e.LibraryHeader="library_header",e.LibraryTiles="library_tiles",e.LibraryRequestDetails="staff_request_details",e.Libraries="libraries",e.SubFolderList="sub_folder_list",e.AwaitingReviewVideoListHeader="awaiting_review_video_list_header",e.AwaitingReviewVideoItem="awaiting_review_video_item",e.PastReleasesHeader="past_releases_header",e.MigrationWarnings="migration_warnings",e.PlaylistListHeader="playlist_list_header",e.PlaylistListItem="playlist_list_item",e.SeriesListItem="series_list_item",e.SeriesWithVideos="series_with_videos",e.PlaylistWithVideos="playlist_with_videos",e.Dropdown="dropdown",e.ViewCurriculumLinks="view_curriculum_links",e.SearchBar="search_bar",e.InstantSearch="instant_search",e.SearchFilters="search_filters",e.FeaturedSeriesSearchResult="featured_series_search_result",e.ExchangeSearchGroupItem="exchange_search_group_item",e.StaffManager="staff_manager",e.StaffManagerListItem="staff_manager_list_item",e.StudentManager="student_manager",e.ViewStudentVideos="view_student_videos",e.StudentManagerListItem="student_manager_list_item",e.EditUser="edit_user",e.UserAuditLog="user_audit_log",e.BulkUserActionsWizard="bulk_user_actions_wizard",e.BulkUserUploadWizard="bulk_user_upload_wizard",e.Classroom="classroom",e.ClassroomsList="classrooms_list",e.ClassroomsListItem="classrooms_list_item",e.ManageClassroomStudents="manage_classroom_students",e.ManageClassroomStudentListItem="manage_classroom_student_list_item",e.ManageClassroomGroups="manage_classroom_groups",e.ManageClassroomGroupListItem="manage_classroom_group_list_item",e.ManageClassroomTeachers="manage_classroom_teachers",e.ManageClassroomTeacherListItem="manage_classroom_teachers_list_item",e.ArchivedClassrooms="archived_classrooms",e.PreviewInteractive="preview_interactive",e.PreviewSharedInteractive="preview_shared_interactive",e.PreviewInteractiveQuestions="preview_interactive_questions",e.EditInteractive="edit_interactive",e.EditInteractiveDetails="edit_interactive_details",e.PlaySharedInteractive="play_shared_interactive",e.PlayInteractive="play_interactive",e.InteractiveListItem="interactive_list_item",e.DeleteInteractive="delete_interactive",e.NewInteractive="new_interactive",e.CopyInteractive="copy_interactive",e.UnpublishInteractive="unpublish_interactive",e.ShareInteractive="share_interactive",e.PlayPage="play_page",e.Player="player",e.FloatingPlayer="floating_player",e.InteractivePlayer="interactive_player",e.EmbeddedPlayer="embedded_player",e.CreateClipPlayer="create_clip_player",e.PlayClip="play_clip",e.PlaySharedClip="play_shared_clip",e.ClipListItem="clip_list_item",e.ContentUpdatesBanner="content_updates_banner",e.ContentUpdatesClassificationBanner="content_updates_classification_banner",e.PreferencesSettings="preferences_settings",e.NotificationSettings="notification_settings",e.TopicsOnboarding="topics_onboarding",e.MyUploads="my_uploads",e.MyVideos="my_videos",e.Playlists="playlists",e.SlidingList="sliding_list",e.HeroBannerItem="hero_banner_item",e.SlidingListItem="sliding_list_item",e.ClassificationListItem="classification_list_item",e.ClassificationComingSoon="classification_coming_soon",e.ClassificationHero="classification_hero",e.ClassificationFooter="classification_footer",e.Classification="classification",e.PresentationClassifications="presentation_classifications",e.Dashboard="dashboard",e.DiscoverFooter="discover_footer",e.ProductBanner="product_banner",e.UserOptions="user_options",e.MagicTabs="magic_tabs",e.Settings="settings",e.StudentFeed="student_feed",e.MyShares="my_shares",e.SharedByMe="shared_by_me",e.SharedWithMe="shared_with_me",e.Insights="insights",e.Error="error_view",e.UpgradeForm="upgrade_form",e.ClassroomGuide="classroom_guide",e.TeachingResources="teaching_resources",e.ResourcesGuidancePopup="resources_guidance_popup",e.InteractivesGuidancePopup="interactives_guidance_popup",e.CurriculumGuidancePopup="curriculum_guidance_popup",e.TopVideos="top_videos",e.VideoViewsList="video_views_list",e.VideoOverview="video_overview",e.StudentReachPopup="student_reach_popup",e.VideoHighlight="video_highlight",e.ClassroomViewsPopup="classroom_views_popup",e.GiveFeedbackPopup="give_feedback_popup",e.LibraryRequestSettings="library_request_settings",e.OpenInAppPrompt="open_in_app_prompt",e.UseAppButton="use_app_button",e.Launchpad="launchpad",e.EditableSubjectPreferencesWidget="editable_subject_preferences_widget",e.ThumbnailHeroMediaWidget="thumbnail_hero_media_widget",e.ThumbnailFixedListMediaLargeWidget="thumbnail_fixed_list_media_large",e.FilterSlidingPillListSmallWidget="filter_sliding_pill_list_small",e.CircleLogoSlidingListWidget="circle_logo_sliding_list_widget",e.RectangularLogoSlidingListWidget="rectangular_logo_sliding_list_widget",e.HeroBannerSmallWidget="hero_banner_small",e.EventIconSlidingListWidget="event_icon_sliding_list_widget",e.FaqQuestionWidget="faq_question_widget",e.FaqQuestionAccordionWidget="faq_question_accordion_widget",e.SubjectStatsWidgetItem="subject_stats_widget_item",e.AuthorReviewerWidget="author_reviewer_widget",e.ThumbnailFixedListMediaSmallWidget="thumbnail_fixed_list_media_small_widget",e.ThumbnailFixedListFolderSmallWidget="thumbnail_fixed_list_folder_small_widget",e.ThumbnailVerticalListWidget="thumbnail_vertical_list_widget",e.ThumbnailFixedListSmallWidget="thumbnail_fixed_list_small_widget",e.PosterFixedListLargeWidget="poster_fixed_list_large_widget",e.CurriculumResourcesAccordionWidget="curriculum_resources_accordion_widget",e.SearchCurriculumCodeWidget="search_curriculum_code_widget",e.ExchangeLinksWidget="exchange_links_widget",e.TableOfContents="table_of_contents",e.SignUpPopup="sign_up_popup",e.SignUpPage="sign_up_page",e.TrialBanner="trial_banner",e.InviteColleaguePopup="invite_colleague_popup",e.AuthProspectSelect="auth_prospect_select",e.GatedBanner="gated_banner",e.GatedEmptyState="gated_empty_state",e.GatedPopup="gated_popup",e.WelcomePopup="welcome_popup",e.WatchHistoryLanding="watch_history_landing",e.MyFavouritesLanding="my_favourites_landing",e.MyVideoLanding="my_videos_landing",e.PlaylistsLanding="playlists_landing",e.MySharesLanding="myshares_landing",e.PremiumFeatures="premium_features",e.NotificationsDropdown="notifications_dropdown",e.CalendarNav="calendar_nav",e.CalendarDay="calendar_day",e.CalendarPopup="calendar_popup",e.RegionMap="region_map",e.OnboardingSelectRoleScreen="onboarding_select_role_screen",e.OnboardingSchoolLevelScreen="onboarding_school_level_screen",e.OnboardingAudiencePreferencesScreen="onboarding_audience_preferences_screen",e.OnboardingSelectCurriculumScreen="onboarding_select_curriculum_screen",e.OnboardingSubjectsScreen="onboarding_subjects_screen",e.ProductTips="product_tips",e.LivestreamBookingForm="booking_form",e.DateRangeFilter="date_range_selector",e.AudienceFilter="audience_filter",e.AssignFlowView="assign_flow_view",e.ContentPartnerDashboard="content_partner_dashboard",e.ContentPartnerDashboardVideoBanner="content_partner_dashboard_video_banner",e.Global="global",e))(iB||{}),Fa=(e=>(e.Start="start",e.Complete="complete",e.Save="save",e.Discard="discard",e.Next="next",e.Back="back",e))(Fa||{}),Yt=(e=>(e.SignIn="sign_in",e.SignUp="sign_up",e.SignOut="sign_out",e.SwitchAccount="switch_account",e.TopNavButton="top_nav_button",e.Educator="educator",e.Student="student",e.TermsAndConditions="terms_and_conditions",e.PrivacyPolicy="privacy_policy",e.EnterEmail="enter_email",e.ClosePopup="close_popup",e.Back="back",e.UseMyLocation="use_my_location",e.TrialCreated="trial_created",e.TrialRequested="trial_requested",e.DeadEnd="dead_end",e.CantFindSchool="cant_find_school",e.ResendEmail="resend_email",e.ContactUs="contact_us",e.InviteColleague="invite_colleague",e.PremiumFeatures="premium_features",e.Upgrade="upgrade",e.FindSchool="find_school",e.AddToBraze="add_to_braze",e.RequestAccess="request_access",e.AutoJoin="auto_join",e.WrongEmail="wrong_email",e.RequestBdmTrial="request_bdm_trial",e.SkipIdpSelect="skip_idp_select",e))(Yt||{}),oB=(e=>(e[e.V1=1]="V1",e[e.V2=2]="V2",e[e.V3=3]="V3",e[e.V4=4]="V4",e[e.V5=5]="V5",e))(oB||{});const vte={first(e){return il(e)},firstFew(e,r){return il(e,r)},last(e){return Xb(e)},lastFew(e,r){return Xb(e,r)},max(e,r){return ES(e,r)},cloneAndReplaceAtIdx(e,r,t,a=null){let o=e&&e.length?e.slice():[];return r+1>o.length&&(o=[...o,...Array(r+1-o.length).fill(a)]),o.splice(r,1,t),o},moveItem(e,r,t){const a=e.slice();return a.splice(t,0,a.splice(r,1)[0]),a},isEmpty(e){return e&&!e.length},findIndex(e,r){return Yf(e,r)},findWhere(e,r){return jF(e,r)},where(e,r){return DF(e,r)},groupBy(e,r){return BF(e,r)},countBy(e,r){return $F(e,r)},flatten(e,r){return Qb(e,r)},flatMap(e,r){return Qb(e.map(r),!0)},intersection(...e){return VF(...e)},addOrRemove(e,r){const t=e.indexOf(r);return t===-1?e.push(r):e.splice(t,1),e},addOrRemoveImmutable(e,r){const t=e.indexOf(r),a=ll.deepClone(e);return t===-1?[...a,r]:[...a.slice(0,t),...a.slice(t+1)]},sortBy(e,r){return FF(e,r)},chunk(e,r){return GF(e,r)},uniq(e,r){return rf(e,r)},toObject(e,r){return e.reduce((t,a)=>Object.assign(t,ll.isObject(a)?{[a[r]]:a}:{[r]:a}),{})},findIndexById(e,r){return e.findIndex(t=>t.id===r.id)},removeItem(e,r){const t=this.findIndex(e,r);return t===-1?e:this.removeItemFromIndex(e,t)},removeItemFromIndex(e,r){return[...e.slice(0,r),...e.slice(r+1)]},findMatchedIdIndex(e,r){return e.findIndex(t=>{var a;return((a=t.id)==null?void 0:a.toString())===r.toString()})},shuffle(e){return UF(e)},findLast(e,r){for(let t=e.length-1;t>=0;t--)if(r(e[t]))return e[t]},findLastIndex(e,r){for(let t=e.length-1;t>=0;t--)if(r(e[t]))return t;return-1}},nl="OTHER";function gL(e,r){return r.includes(e)?e:e?nl:""}function pte(e){const{error:r,onChange:t,countryCode:a,isTertiary:o}=e,s=yU({countryCode:a,isTertiary:o}),u=gL(e.initialValue,s),[v,d]=je.useState(u),[h,f]=je.useState(u===nl?e.initialValue:"");je.useEffect(()=>{d(gL(e.initialValue,s))},[e.initialValue]);function c(S){d(S.target.value),f(""),t(S.target.value===nl?"":S.target.value)}function _(S){f(S.target.value),t(S.target.value)}const E=v===nl;return A.jsxs("div",{className:"form-group",children:[A.jsxs("label",{htmlFor:e.id,className:e.labelClassName,children:["Job title",e.required&&A.jsx("span",{className:"text-danger",children:"*"})]}),A.jsxs("div",{className:"mb-2",children:[A.jsxs("select",{id:e.id,name:e.id,className:`form-select ${e.size==="lg"?"form-select-lg":""} ${v.length?"text-dark":"text-secondary"} ${!!r&&"is-invalid"}`,value:v,placeholder:"Role",onChange:c,children:[A.jsx("option",{value:"",disabled:!0,className:"text-secondary",children:e.placeholder?e.placeholder:A.jsx(A.Fragment,{children:"What do you do?"})}),s.map((S,w)=>A.jsx("option",{value:S,className:"text-dark",children:S},w)),A.jsx("option",{value:nl,className:"text-dark",children:"Other"})]}),!!r&&!E&&A.jsx(Ht,{name:e.id,children:r})]}),E&&A.jsxs("div",{className:"mb-3",children:[A.jsx("input",{className:`form-control ${e.size==="lg"?"form-select-lg":""} ${!!r&&"is-invalid"}`,type:"text",value:h,placeholder:"What do you do?",autoFocus:!0,onChange:_}),!!r&&A.jsx(Ht,{name:e.id,children:r})]})]})}var $s=(e=>(e.AU="cv-ap-southeast-1",e.NZ="cv-ap-southeast-2",e.UK="cv-eu-west-1",e.US="cv-na-west-1",e))($s||{});const gte=["uk","gb","gg","im","je","ie"],mL={au:Ze.AU,nz:Ze.NZ,us:Ze.US,uk:Ze.UK,ca:Ze.CA,gb:Ze.UK,gg:Ze.UK,im:Ze.UK,je:Ze.UK,ie:Ze.UK,al:Ze.UK,ad:Ze.UK,am:Ze.UK,at:Ze.UK,az:Ze.UK,by:Ze.UK,be:Ze.UK,ba:Ze.UK,bg:Ze.UK,hr:Ze.UK,cy:Ze.UK,cz:Ze.UK,dk:Ze.UK,ee:Ze.UK,fi:Ze.UK,fr:Ze.UK,de:Ze.UK,ge:Ze.UK,gr:Ze.UK,hu:Ze.UK,is:Ze.UK,it:Ze.UK,lv:Ze.UK,li:Ze.UK,lt:Ze.UK,lu:Ze.UK,mt:Ze.UK,md:Ze.UK,mc:Ze.UK,me:Ze.UK,nl:Ze.UK,mk:Ze.UK,no:Ze.UK,pl:Ze.UK,pt:Ze.UK,ro:Ze.UK,ru:Ze.UK,sm:Ze.UK,rs:Ze.UK,sk:Ze.UK,si:Ze.UK,es:Ze.UK,se:Ze.UK,ch:Ze.UK,tr:Ze.UK,ua:Ze.UK,va:Ze.UK},mte={au:pn.CvApSoutheast1,uk:pn.CvEuWest1,us:pn.CvNaWest1,nz:pn.CvApSoutheast2,ca:pn.CvNaWest1},yte={au:$s.AU,uk:$s.UK,us:$s.US,nz:$s.NZ,ca:$s.US},Zt={getRegionName(e){const r=Zt.getCountryCode(e);return mte[r]},getInstanceRegion(e){const r=Zt.getCountryCode(e);return yte[r]},getCountryCode(e){const r=mL[e==null?void 0:e.toLowerCase()];return r||Ze.US},isCountryCodeUK(e){return gte.includes(e.toLowerCase())},isCountryCodeAU(e){return(e==null?void 0:e.toLowerCase())===Ze.AU},isCountryCodeUS(e){return(e==null?void 0:e.toLowerCase())===Ze.US},isCountryCodeNZ(e){return(e==null?void 0:e.toLowerCase())===Ze.NZ},isSupportedCountryCode(e){return Object.keys(mL).includes(e==null?void 0:e.toLowerCase())},getLocalizedLocalityPlaceholderPhrase(e){if(e){if(Zt.isCountryCodeUK(e))return"E.g. CR0 3RL or 36 Factory Lane";if(Zt.isCountryCodeAU(e)||Zt.isCountryCodeNZ(e))return"E.g. 2212 or Revesby";if(Zt.isCountryCodeUS(e))return"E.g. 95826 or Sacramento"}},getLocalizedLocalityPlaceholderText(e){if(!e)return;const r=Zt.getLocalizedLocalityPlaceholderPhrase(e);if(r)return r}};function AS(e){if(!e)return{firstName:"",surname:""};const[r,...t]=e.split(" ").filter(a=>a.length);return{firstName:r,surname:t==null?void 0:t.join(" ")}}var Ub={exports:{}};/*!
|
|
62
|
+
Copyright (c) 2018 Jed Watson.
|
|
63
|
+
Licensed under the MIT License (MIT), see
|
|
64
|
+
http://jedwatson.github.io/classnames
|
|
65
|
+
*/var yL;function bte(){return yL||(yL=1,(function(e){(function(){var r={}.hasOwnProperty;function t(){for(var s="",u=0;u<arguments.length;u++){var v=arguments[u];v&&(s=o(s,a(v)))}return s}function a(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return t.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var u="";for(var v in s)r.call(s,v)&&s[v]&&(u=o(u,v));return u}function o(s,u){return u?s?s+" "+u:s+u:s}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(Ub)),Ub.exports}var _te=bte();const sB=Ws(_te),Ste=["xxl","xl","lg","md","sm","xs"],wte="xs",uB=Nr.createContext({prefixes:{},breakpoints:Ste,minBreakpoint:wte}),{Consumer:sie,Provider:uie}=uB;function lB(e,r){const{prefixes:t}=Nr.useContext(uB);return e||t[r]||r}const Ete=["as","disabled"];function Cte(e,r){if(e==null)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(r.indexOf(a)>=0)continue;t[a]=e[a]}return t}function xte(e){return!e||e.trim()==="#"}function cB({tagName:e,disabled:r,href:t,target:a,rel:o,role:s,onClick:u,tabIndex:v=0,type:d}){e||(t!=null||a!=null||o!=null?e="a":e="button");const h={tagName:e};if(e==="button")return[{type:d||"button",disabled:r},h];const f=_=>{if((r||e==="a"&&xte(t))&&_.preventDefault(),r){_.stopPropagation();return}u==null||u(_)},c=_=>{_.key===" "&&(_.preventDefault(),f(_))};return e==="a"&&(t||(t="#"),r&&(t=void 0)),[{role:s??"button",disabled:void 0,tabIndex:r?void 0:v,href:t,target:e==="a"?a:void 0,"aria-disabled":r||void 0,rel:e==="a"?o:void 0,onClick:f,onKeyDown:c},h]}const Ite=Nr.forwardRef((e,r)=>{let{as:t,disabled:a}=e,o=Cte(e,Ete);const[s,{tagName:u}]=cB(Object.assign({tagName:t,disabled:a},o));return A.jsx(u,Object.assign({},o,s,{ref:r}))});Ite.displayName="Button";const fB=Nr.forwardRef(({as:e,bsPrefix:r,variant:t="primary",size:a,active:o=!1,disabled:s=!1,className:u,...v},d)=>{const h=lB(r,"btn"),[f,{tagName:c}]=cB({tagName:e,disabled:s,...v}),_=c;return A.jsx(_,{...f,...v,ref:d,disabled:s,className:sB(u,h,o&&"active",t&&`${h}-${t}`,a&&`${h}-${a}`,v.href&&s&&"disabled")})});fB.displayName="Button";const TS=Nr.forwardRef(({bsPrefix:e,variant:r,animation:t="border",size:a,as:o="div",className:s,...u},v)=>{e=lB(e,"spinner");const d=`${e}-${t}`;return A.jsx(o,{ref:v,...u,className:sB(s,d,a&&`${d}-${a}`,r&&`text-${r}`)})});TS.displayName="Spinner";function ed(e){const{showSpinner:r,children:t,style:a,spinnerText:o,...s}=e,u=Nr.useRef(null),[{width:v,height:d},h]=Nr.useState({}),[f,c]=Nr.useState(r);Nr.useEffect(()=>{if(!r){h({});return}const E=u.current,S=E.offsetHeight,w=E.offsetWidth;!S||!w||h({width:w,height:S})},[r]),Nr.useLayoutEffect(()=>{c(r)},[r]);const _={...a};return v&&(_.width=`${v+1}px`),d&&(_.height=`${d+1}px`),A.jsx(fB,{ref:u,disabled:r,style:_,...s,children:f?A.jsxs(A.Fragment,{children:[A.jsx(TS,{as:"span",animation:"border",role:"status",size:"sm"}),!!o&&A.jsx("span",{className:"ps-1",children:o})]}):t})}const Vc=/\$+[\w\s]?/,Ate=/^\+?\d{4,255}$/,Gc=255;function dB(e){var E,S,w,T;const[r,t]=je.useState({fullname:"",jobTitle:"",phone:""});function a(b){b==null||b.preventDefault(),c(r)&&e.handleSubmitForm(r)}function o(b){b.preventDefault(),h("fullname",b.target.value),f("fullname"),f("submission")}function s(b){b.preventDefault(),h("phone",b.target.value.trim()),f("phone"),f("submission")}function u(b){h("jobTitle",b),f("jobTitle"),f("submission")}function v(){h("fullname",""),f("fullname"),f("submission")}function d(){h("phone",""),f("phone"),f("submission")}function h(b,I){t(m=>({...m,[b]:I}))}function f(b){if(!Object.keys(e.errors).length||!e.errors[b])return;const I={...e.errors};delete I[b],e.setErrors(I)}function c(b){const{fullname:I,jobTitle:m,phone:p}=b,{firstName:y,surname:g}=AS(I),x={};return(!y||!g)&&(x.fullname="Please enter your full name."),(Vc.test(y)||Vc.test(g))&&(x.fullname="Please enter your full name."),I.length>Gc&&(x.fullname=`Full name cannot exceed max length of ${Gc} characters.`),m!=null&&m.length||(x.jobTitle="Please enter your job title."),Vc.test(m)&&(x.jobTitle="Please enter a valid job title."),m.length>Gc&&(x.jobTitle=`Job title cannot exceed max length of ${Gc} characters.`),p!=null&&p.length||(x.phone="Please enter your phone number."),(Vc.test(p)||!Ate.test(p))&&(x.phone="Please enter a valid phone number."),e.setErrors(x),!Object.keys(x).length}function _(){const{fullname:b,jobTitle:I,phone:m}=r;return!(!b.length||!I.length||!m.length||Object.keys(e.errors).length)}return A.jsxs("div",{className:"text-center",children:[A.jsx("h1",{className:"text-center h4",children:"A little more about you"}),A.jsx("p",{children:"Please enter your details."}),A.jsxs("form",{onSubmit:a,"aria-errormessage":"brazeFormError",children:[A.jsxs("div",{className:"form-group text-start",children:[A.jsx("label",{className:"d-block fw-bold mb-1",htmlFor:"fullname-input",children:"Full name"}),A.jsx(Hs,{value:r.fullname,onChange:o,name:"fullname-input",id:"fullname-input",type:"text",className:`form-control form-control-lg ${(E=e.errors.fullname)!=null&&E.length?"is-invalid":""}`,placeholder:"Enter your name",onClickClear:v,autoFocus:!0,"aria-errormessage":"fullname-inputError"}),e.errors.fullname&&A.jsx(Ht,{name:"fullname-input",children:e.errors.fullname})]}),A.jsxs("div",{className:"form-group text-start",children:[A.jsx("label",{className:"d-block fw-bold mb-1",htmlFor:"phone-input",children:"Contact number"}),A.jsx(Hs,{value:r.phone,onChange:s,name:"phone-input",id:"phone-input",type:"tel",className:`form-control form-control-lg ${(S=e.errors.phone)!=null&&S.length?"is-invalid":""}`,placeholder:"Enter your phone number",onClickClear:d,"aria-errormessage":"phone-inputError"}),e.errors.phone&&A.jsx(Ht,{name:"phone-input",children:e.errors.phone})]}),A.jsxs("div",{className:"form-group text-start",children:[A.jsx("label",{className:"d-block fw-bold mb-1",htmlFor:"jobTitle-select",children:"Job title"}),A.jsx(pte,{id:"jobTitle-select",countryCode:Zt.getCountryCode(e.country),onChange:u,error:(w=e.errors)==null?void 0:w.jobTitle,size:"lg",labelClassName:"d-none",isTertiary:e.isTertiary})]}),!!((T=e.errors)!=null&&T.submission)&&A.jsx(Ht,{name:"brazeForm",className:"form-group",children:e.errors.submission}),A.jsx("div",{className:"form-group mb-1",children:A.jsx(ed,{className:"btn-lg w-100",variant:"dark",onClick:()=>a(),showSpinner:e.loading,disabled:e.loading||!_(),children:"Submit"})})]})]})}var Dr=(e=>(e.Unavailable="unavailable",e.Expired="expired",e.Active="active",e.NotRequired="not-required",e.Available="available",e.Unsupported="unsupported",e.UserAutoJoinAllowed="user-auto-join-allowed",e.UserJoinApprovalRequired="user-join-approval-required",e.InvalidEmail="invalid-email",e.BdmTrialAvailable="bdm-trial-available",e))(Dr||{}),In=(e=>(e.Staff="staff",e.Learner="learner",e))(In||{}),Fb={exports:{}},bL;function Tte(){return bL||(bL=1,(function(e,r){(function(t){e.exports=t()})(function(t){var a=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function o(b,I){var m=b[0],p=b[1],y=b[2],g=b[3];m+=(p&y|~p&g)+I[0]-680876936|0,m=(m<<7|m>>>25)+p|0,g+=(m&p|~m&y)+I[1]-389564586|0,g=(g<<12|g>>>20)+m|0,y+=(g&m|~g&p)+I[2]+606105819|0,y=(y<<17|y>>>15)+g|0,p+=(y&g|~y&m)+I[3]-1044525330|0,p=(p<<22|p>>>10)+y|0,m+=(p&y|~p&g)+I[4]-176418897|0,m=(m<<7|m>>>25)+p|0,g+=(m&p|~m&y)+I[5]+1200080426|0,g=(g<<12|g>>>20)+m|0,y+=(g&m|~g&p)+I[6]-1473231341|0,y=(y<<17|y>>>15)+g|0,p+=(y&g|~y&m)+I[7]-45705983|0,p=(p<<22|p>>>10)+y|0,m+=(p&y|~p&g)+I[8]+1770035416|0,m=(m<<7|m>>>25)+p|0,g+=(m&p|~m&y)+I[9]-1958414417|0,g=(g<<12|g>>>20)+m|0,y+=(g&m|~g&p)+I[10]-42063|0,y=(y<<17|y>>>15)+g|0,p+=(y&g|~y&m)+I[11]-1990404162|0,p=(p<<22|p>>>10)+y|0,m+=(p&y|~p&g)+I[12]+1804603682|0,m=(m<<7|m>>>25)+p|0,g+=(m&p|~m&y)+I[13]-40341101|0,g=(g<<12|g>>>20)+m|0,y+=(g&m|~g&p)+I[14]-1502002290|0,y=(y<<17|y>>>15)+g|0,p+=(y&g|~y&m)+I[15]+1236535329|0,p=(p<<22|p>>>10)+y|0,m+=(p&g|y&~g)+I[1]-165796510|0,m=(m<<5|m>>>27)+p|0,g+=(m&y|p&~y)+I[6]-1069501632|0,g=(g<<9|g>>>23)+m|0,y+=(g&p|m&~p)+I[11]+643717713|0,y=(y<<14|y>>>18)+g|0,p+=(y&m|g&~m)+I[0]-373897302|0,p=(p<<20|p>>>12)+y|0,m+=(p&g|y&~g)+I[5]-701558691|0,m=(m<<5|m>>>27)+p|0,g+=(m&y|p&~y)+I[10]+38016083|0,g=(g<<9|g>>>23)+m|0,y+=(g&p|m&~p)+I[15]-660478335|0,y=(y<<14|y>>>18)+g|0,p+=(y&m|g&~m)+I[4]-405537848|0,p=(p<<20|p>>>12)+y|0,m+=(p&g|y&~g)+I[9]+568446438|0,m=(m<<5|m>>>27)+p|0,g+=(m&y|p&~y)+I[14]-1019803690|0,g=(g<<9|g>>>23)+m|0,y+=(g&p|m&~p)+I[3]-187363961|0,y=(y<<14|y>>>18)+g|0,p+=(y&m|g&~m)+I[8]+1163531501|0,p=(p<<20|p>>>12)+y|0,m+=(p&g|y&~g)+I[13]-1444681467|0,m=(m<<5|m>>>27)+p|0,g+=(m&y|p&~y)+I[2]-51403784|0,g=(g<<9|g>>>23)+m|0,y+=(g&p|m&~p)+I[7]+1735328473|0,y=(y<<14|y>>>18)+g|0,p+=(y&m|g&~m)+I[12]-1926607734|0,p=(p<<20|p>>>12)+y|0,m+=(p^y^g)+I[5]-378558|0,m=(m<<4|m>>>28)+p|0,g+=(m^p^y)+I[8]-2022574463|0,g=(g<<11|g>>>21)+m|0,y+=(g^m^p)+I[11]+1839030562|0,y=(y<<16|y>>>16)+g|0,p+=(y^g^m)+I[14]-35309556|0,p=(p<<23|p>>>9)+y|0,m+=(p^y^g)+I[1]-1530992060|0,m=(m<<4|m>>>28)+p|0,g+=(m^p^y)+I[4]+1272893353|0,g=(g<<11|g>>>21)+m|0,y+=(g^m^p)+I[7]-155497632|0,y=(y<<16|y>>>16)+g|0,p+=(y^g^m)+I[10]-1094730640|0,p=(p<<23|p>>>9)+y|0,m+=(p^y^g)+I[13]+681279174|0,m=(m<<4|m>>>28)+p|0,g+=(m^p^y)+I[0]-358537222|0,g=(g<<11|g>>>21)+m|0,y+=(g^m^p)+I[3]-722521979|0,y=(y<<16|y>>>16)+g|0,p+=(y^g^m)+I[6]+76029189|0,p=(p<<23|p>>>9)+y|0,m+=(p^y^g)+I[9]-640364487|0,m=(m<<4|m>>>28)+p|0,g+=(m^p^y)+I[12]-421815835|0,g=(g<<11|g>>>21)+m|0,y+=(g^m^p)+I[15]+530742520|0,y=(y<<16|y>>>16)+g|0,p+=(y^g^m)+I[2]-995338651|0,p=(p<<23|p>>>9)+y|0,m+=(y^(p|~g))+I[0]-198630844|0,m=(m<<6|m>>>26)+p|0,g+=(p^(m|~y))+I[7]+1126891415|0,g=(g<<10|g>>>22)+m|0,y+=(m^(g|~p))+I[14]-1416354905|0,y=(y<<15|y>>>17)+g|0,p+=(g^(y|~m))+I[5]-57434055|0,p=(p<<21|p>>>11)+y|0,m+=(y^(p|~g))+I[12]+1700485571|0,m=(m<<6|m>>>26)+p|0,g+=(p^(m|~y))+I[3]-1894986606|0,g=(g<<10|g>>>22)+m|0,y+=(m^(g|~p))+I[10]-1051523|0,y=(y<<15|y>>>17)+g|0,p+=(g^(y|~m))+I[1]-2054922799|0,p=(p<<21|p>>>11)+y|0,m+=(y^(p|~g))+I[8]+1873313359|0,m=(m<<6|m>>>26)+p|0,g+=(p^(m|~y))+I[15]-30611744|0,g=(g<<10|g>>>22)+m|0,y+=(m^(g|~p))+I[6]-1560198380|0,y=(y<<15|y>>>17)+g|0,p+=(g^(y|~m))+I[13]+1309151649|0,p=(p<<21|p>>>11)+y|0,m+=(y^(p|~g))+I[4]-145523070|0,m=(m<<6|m>>>26)+p|0,g+=(p^(m|~y))+I[11]-1120210379|0,g=(g<<10|g>>>22)+m|0,y+=(m^(g|~p))+I[2]+718787259|0,y=(y<<15|y>>>17)+g|0,p+=(g^(y|~m))+I[9]-343485551|0,p=(p<<21|p>>>11)+y|0,b[0]=m+b[0]|0,b[1]=p+b[1]|0,b[2]=y+b[2]|0,b[3]=g+b[3]|0}function s(b){var I=[],m;for(m=0;m<64;m+=4)I[m>>2]=b.charCodeAt(m)+(b.charCodeAt(m+1)<<8)+(b.charCodeAt(m+2)<<16)+(b.charCodeAt(m+3)<<24);return I}function u(b){var I=[],m;for(m=0;m<64;m+=4)I[m>>2]=b[m]+(b[m+1]<<8)+(b[m+2]<<16)+(b[m+3]<<24);return I}function v(b){var I=b.length,m=[1732584193,-271733879,-1732584194,271733878],p,y,g,x,R,O;for(p=64;p<=I;p+=64)o(m,s(b.substring(p-64,p)));for(b=b.substring(p-64),y=b.length,g=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],p=0;p<y;p+=1)g[p>>2]|=b.charCodeAt(p)<<(p%4<<3);if(g[p>>2]|=128<<(p%4<<3),p>55)for(o(m,g),p=0;p<16;p+=1)g[p]=0;return x=I*8,x=x.toString(16).match(/(.*?)(.{0,8})$/),R=parseInt(x[2],16),O=parseInt(x[1],16)||0,g[14]=R,g[15]=O,o(m,g),m}function d(b){var I=b.length,m=[1732584193,-271733879,-1732584194,271733878],p,y,g,x,R,O;for(p=64;p<=I;p+=64)o(m,u(b.subarray(p-64,p)));for(b=p-64<I?b.subarray(p-64):new Uint8Array(0),y=b.length,g=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],p=0;p<y;p+=1)g[p>>2]|=b[p]<<(p%4<<3);if(g[p>>2]|=128<<(p%4<<3),p>55)for(o(m,g),p=0;p<16;p+=1)g[p]=0;return x=I*8,x=x.toString(16).match(/(.*?)(.{0,8})$/),R=parseInt(x[2],16),O=parseInt(x[1],16)||0,g[14]=R,g[15]=O,o(m,g),m}function h(b){var I="",m;for(m=0;m<4;m+=1)I+=a[b>>m*8+4&15]+a[b>>m*8&15];return I}function f(b){var I;for(I=0;I<b.length;I+=1)b[I]=h(b[I]);return b.join("")}f(v("hello")),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&(function(){function b(I,m){return I=I|0||0,I<0?Math.max(I+m,0):Math.min(I,m)}ArrayBuffer.prototype.slice=function(I,m){var p=this.byteLength,y=b(I,p),g=p,x,R,O,j;return m!==t&&(g=b(m,p)),y>g?new ArrayBuffer(0):(x=g-y,R=new ArrayBuffer(x),O=new Uint8Array(R),j=new Uint8Array(this,y,x),O.set(j),R)}})();function c(b){return/[\u0080-\uFFFF]/.test(b)&&(b=unescape(encodeURIComponent(b))),b}function _(b,I){var m=b.length,p=new ArrayBuffer(m),y=new Uint8Array(p),g;for(g=0;g<m;g+=1)y[g]=b.charCodeAt(g);return I?y:p}function E(b){return String.fromCharCode.apply(null,new Uint8Array(b))}function S(b,I,m){var p=new Uint8Array(b.byteLength+I.byteLength);return p.set(new Uint8Array(b)),p.set(new Uint8Array(I),b.byteLength),p}function w(b){var I=[],m=b.length,p;for(p=0;p<m-1;p+=2)I.push(parseInt(b.substr(p,2),16));return String.fromCharCode.apply(String,I)}function T(){this.reset()}return T.prototype.append=function(b){return this.appendBinary(c(b)),this},T.prototype.appendBinary=function(b){this._buff+=b,this._length+=b.length;var I=this._buff.length,m;for(m=64;m<=I;m+=64)o(this._hash,s(this._buff.substring(m-64,m)));return this._buff=this._buff.substring(m-64),this},T.prototype.end=function(b){var I=this._buff,m=I.length,p,y=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],g;for(p=0;p<m;p+=1)y[p>>2]|=I.charCodeAt(p)<<(p%4<<3);return this._finish(y,m),g=f(this._hash),b&&(g=w(g)),this.reset(),g},T.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},T.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},T.prototype.setState=function(b){return this._buff=b.buff,this._length=b.length,this._hash=b.hash,this},T.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},T.prototype._finish=function(b,I){var m=I,p,y,g;if(b[m>>2]|=128<<(m%4<<3),m>55)for(o(this._hash,b),m=0;m<16;m+=1)b[m]=0;p=this._length*8,p=p.toString(16).match(/(.*?)(.{0,8})$/),y=parseInt(p[2],16),g=parseInt(p[1],16)||0,b[14]=y,b[15]=g,o(this._hash,b)},T.hash=function(b,I){return T.hashBinary(c(b),I)},T.hashBinary=function(b,I){var m=v(b),p=f(m);return I?w(p):p},T.ArrayBuffer=function(){this.reset()},T.ArrayBuffer.prototype.append=function(b){var I=S(this._buff.buffer,b),m=I.length,p;for(this._length+=b.byteLength,p=64;p<=m;p+=64)o(this._hash,u(I.subarray(p-64,p)));return this._buff=p-64<m?new Uint8Array(I.buffer.slice(p-64)):new Uint8Array(0),this},T.ArrayBuffer.prototype.end=function(b){var I=this._buff,m=I.length,p=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],y,g;for(y=0;y<m;y+=1)p[y>>2]|=I[y]<<(y%4<<3);return this._finish(p,m),g=f(this._hash),b&&(g=w(g)),this.reset(),g},T.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},T.ArrayBuffer.prototype.getState=function(){var b=T.prototype.getState.call(this);return b.buff=E(b.buff),b},T.ArrayBuffer.prototype.setState=function(b){return b.buff=_(b.buff,!0),T.prototype.setState.call(this,b)},T.ArrayBuffer.prototype.destroy=T.prototype.destroy,T.ArrayBuffer.prototype._finish=T.prototype._finish,T.ArrayBuffer.hash=function(b,I){var m=d(new Uint8Array(b)),p=f(m);return I?w(p):p},T})})(Fb)),Fb.exports}var Rte=Tte();const Ote=Ws(Rte),_L={secondary:{label:"Secondary",isTertiary:!1},"primary & secondary":{label:"Primary & Secondary",isTertiary:!1},k12:{label:"Primary & Secondary",isTertiary:!1},primary:{label:"Primary",isTertiary:!1},special:{label:"Special",isTertiary:!1},university:{label:"University",isTertiary:!0},middle:{label:"Middle",isTertiary:!1},"fe college":{label:"FE College",isTertiary:!0},"high school":{label:"Secondary",isTertiary:!1},elementary:{label:"Primary",isTertiary:!1},"middle school":{label:"Middle",isTertiary:!1},tafe:{label:"TAFE",isTertiary:!0},college:{label:"FE College",isTertiary:!0},"sixth form college":{label:"Sixth Form College",isTertiary:!0}},kte={england:"ENG",scotland:"SCT",wales:"WLS","northern ireland":"NIR"},Kt={hashedEmail(e){const r=e.trim().toLowerCase();return Ote.hash(r)},removeEmptyKeys(e){if(Array.isArray(e))return e;const r={...e};return Object.entries(r).filter(([,t])=>!(t==null||typeof t=="string"&&!t.length)).reduce((t,[a,o])=>({...t,[a]:o===Object(o)?Kt.removeEmptyKeys(o):o}),{})},EVENT_TOPIC:"Free Trial Request",BDM_EVENT_TOPIC:"Requested free trial (Streamable Customer)",SOURCE:"cv_product_trial_requested",BDM_SOURCE:"cv_product_bdm_trial_requested",TRIAL_UPGRADE_SOURCE:"cv_product_trial_upgrade_requested",getSchoolType(e){var a;if(!e)return;const r=e.toLowerCase();if(["unknown","other"].includes(r))return;const t=(a=_L[r])==null?void 0:a.label;return t||e},isTertiarySchool(e){var r;return((r=_L[e==null?void 0:e.toLowerCase()])==null?void 0:r.isTertiary)||!1},parseProvince(e){return e.length?kte[e.toLowerCase()]||e:""}};function Pte(e){var h;const[r,t]=je.useState(!1),[a,o]=je.useState({});je.useEffect(()=>{e.userType===In.Learner&&e.complete({completionStep:"trial-status",trialCreated:!1,trialStatus:Dr.Unsupported})},[]);function s(f){if(bU(f.jobTitle)){d();return}u(f)}async function u(f){if(r)return;if(e.userType===In.Learner){o({...a,submission:"Something went wrong! Please try again later."});return}e.logUserAction({},{actionType:sn.Click,workflowPhase:Fa.Next,descriptor:Yt.AddToBraze}),t(!0);const{firstName:c,surname:_}=AS(f.fullname),E=await e.getCrmIdForProspect(e.prospectId);try{const S={email:e.email,firstName:c,lastName:_,phone:f.phone,custom:{crmId:E,orgSubType:Kt.getSchoolType(e==null?void 0:e.schoolType),accountName:e==null?void 0:e.schoolName,jobTitle:f.jobTitle,accountAddress:{countryCode:e==null?void 0:e.country,province:Kt.parseProvince((e==null?void 0:e.province)||"")},syncToCrm:!0,source:Kt.SOURCE},event:{accountCountry:e==null?void 0:e.country,accountPostCode:e==null?void 0:e.schoolPostCode,eventTopic:Kt.EVENT_TOPIC}},w={prospect_id:e==null?void 0:e.prospectId};e.logBrazeEvent({user:S,event:{eventType:Nl.ProductFormEvent.ProductTrailRequested,additionalData:w,callback:v}})}catch{o({...a,submission:"Something went wrong! Please try again later."})}Object.keys(a).length||d()}function v(f){o(f?{}:{...a,submission:"Something went wrong! Please try again later."}),t(!1)}function d(){e.complete({completionStep:"added-to-braze",trialCreated:!1,trialStatus:null})}return A.jsx(dB,{loading:r,errors:a,setErrors:o,country:e.country||((h=e.geoLocation)==null?void 0:h.countryCode),logUserAction:e.logUserAction,handleSubmitForm:s,isTertiary:Kt.isTertiarySchool(e.schoolType)})}const hB={getRandomInt(e=1e4){return Math.floor(Math.random()*Math.floor(e))}};var Nte=function e(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var a,o,s;if(Array.isArray(r)){if(a=r.length,a!=t.length)return!1;for(o=a;o--!==0;)if(!e(r[o],t[o]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===t.toString();if(s=Object.keys(r),a=s.length,a!==Object.keys(t).length)return!1;for(o=a;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[o]))return!1;for(o=a;o--!==0;){var u=s[o];if(!e(r[u],t[u]))return!1}return!0}return r!==r&&t!==t};const SL="__googleMapsScriptId";var zs;(function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"})(zs||(zs={}));class Go{constructor({apiKey:r,authReferrerPolicy:t,channel:a,client:o,id:s=SL,language:u,libraries:v=[],mapIds:d,nonce:h,region:f,retries:c=3,url:_="https://maps.googleapis.com/maps/api/js",version:E}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=r,this.authReferrerPolicy=t,this.channel=a,this.client=o,this.id=s||SL,this.language=u,this.libraries=v,this.mapIds=d,this.nonce=h,this.region=f,this.retries=c,this.url=_,this.version=E,Go.instance){if(!Nte(this.options,Go.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(Go.instance.options)}`);return Go.instance}Go.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?zs.FAILURE:this.done?zs.SUCCESS:this.loading?zs.LOADING:zs.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let r=this.url;return r+=`?callback=${this.CALLBACK}`,this.apiKey&&(r+=`&key=${this.apiKey}`),this.channel&&(r+=`&channel=${this.channel}`),this.client&&(r+=`&client=${this.client}`),this.libraries.length>0&&(r+=`&libraries=${this.libraries.join(",")}`),this.language&&(r+=`&language=${this.language}`),this.region&&(r+=`®ion=${this.region}`),this.version&&(r+=`&v=${this.version}`),this.mapIds&&(r+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(r+=`&auth_referrer_policy=${this.authReferrerPolicy}`),r}deleteScript(){const r=document.getElementById(this.id);r&&r.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((r,t)=>{this.loadCallback(a=>{a?t(a.error):r(window.google)})})}loadCallback(r){this.callbacks.push(r),this.execute()}setScript(){if(document.getElementById(this.id)){this.callback();return}const r=this.createUrl(),t=document.createElement("script");t.id=this.id,t.type="text/javascript",t.src=r,t.onerror=this.loadErrorCallback.bind(this),t.defer=!0,t.async=!0,this.nonce&&(t.nonce=this.nonce),document.head.appendChild(t)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(r){if(this.errors.push(r),this.errors.length<=this.retries){const t=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${t} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},t)}else this.onerrorEvent=r,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(r=>{r(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}}function wL(e){return new Go({apiKey:e.apiKey,version:"weekly",libraries:e.libraries,retries:3})}function vB(e){const r={apiKey:e.apiKey,libraries:e.libraries||["places"]},[t,a]=je.useState(!1),[o,s]=je.useState(wL(r));je.useEffect(()=>{u()},[]);function u(v,d){if(!o){s(wL(r));return}o.loadCallback(h=>{if(h){a(!1),d&&d(h);return}a(!0),v&&v()})}return{loader:o,scriptLoaded:t,onGoogleApiReady:u}}function pB(e){const{scriptLoaded:r}=vB({apiKey:e.googleApiKey}),[t,a]=je.useState();return je.useEffect(()=>{r&&a(new google.maps.places.AutocompleteService)},[r]),t}const EL="us",gB="country:placeholder:text";function jte(e){const r=Zt.getLocalizedLocalityPlaceholderText(e==null?void 0:e.countryCode);if(r)return r;const t=Tn.cacheGet(`${gB}:${e==null?void 0:e.countryCode}`);if(t)return t}function qte(){return String.fromCharCode(96+hB.getRandomInt(26))}function Dte({apiKey:e,geoLocation:r,makeRequest:t=!0,template:a="E.g. [placeholder]",templateKey:o="[placeholder]"}){const s=pB({googleApiKey:e}),[u,v]=je.useState(()=>jte(r));je.useEffect(()=>{if(u||!s||!t)return;const f=(r==null?void 0:r.countryCode)||EL,_={input:qte(),types:["(cities)"],region:f,componentRestrictions:{country:f}};s.getPlacePredictions(_,(E,S)=>h(E,S,f))},[u,s,r,t]);function d(f,c){Tn.cacheSet(`${gB}:${c}`,f,86400),v(f)}function h(f,c,_){if(c!==google.maps.places.PlacesServiceStatus.OK||!f){d(Zt.getLocalizedLocalityPlaceholderText(EL),_);return}const E=hB.getRandomInt(f.length),S=f[E].description;d(a.replace(o,S),_)}return u}const mB={getPlaceDetails(e){let r,t,a,o;const s=e.formatted_address;for(const u of e.address_components)for(const v of u.types)v==="locality"&&(r=u.short_name),v==="administrative_area_level_1"&&(t=u.short_name),v==="postal_code"&&(o=u.short_name),v==="country"&&(a=u.short_name);return{locality:s,country:a,postalCode:o,city:r,province:t}}},Lte={1:"geocoderPermissionDenied",2:"geocoderUnavailable",3:"geocoderTimeout"};function Mte(e){const[r,t]=je.useState({}),{onGoogleApiReady:a}=vB(e);function o(){a(()=>{window.navigator.geolocation.getCurrentPosition(s,u)})}function s(v){const{latitude:d,longitude:h}=v.coords,f=new google.maps.LatLng(d,h);new google.maps.Geocoder().geocode({location:f},(_,E)=>{if(E!==google.maps.GeocoderStatus.OK)return;const S=_.find(T=>T.types.includes("locality")||T.types.includes("administrative_area_level_2")),w=mB.getPlaceDetails(S);t({...w,longitude:h,latitude:d})})}function u(v){Lte[v.code],e.onPositionError("We are unable to access your location. Please try again later.")}return{placeDetails:r,onClickGetCurrentLocation:o}}const yB=(e,r)=>{const[t,a]=je.useState(e);return je.useEffect(()=>{const o=setTimeout(()=>a(e),r);return()=>clearTimeout(o)},[e,r]),t};function Ute({search:e,makePredicition:r,geoLocation:t,apiKey:a}){const o=pB({googleApiKey:a}),s=yB(e,300),[u,v]=je.useState();je.useEffect(()=>{if(!o)return;if((s==null?void 0:s.length)===0||!r){v(void 0);return}const f=(t==null?void 0:t.countryCode)||"us";o.getPlacePredictions({input:s,componentRestrictions:t!=null&&t.isFallback?void 0:{country:f},region:f,types:["locality","sublocality","postal_code"]},d)},[s,r,o]);function d(f,c){if(c!==google.maps.places.PlacesServiceStatus.OK||!f){v(void 0);return}v(f)}function h(f,c,_){new google.maps.places.PlacesService(c.current).getDetails({placeId:f.place_id,fields:["geometry","address_components","formatted_address"],region:t.countryCode},(S,w)=>{if(w!==google.maps.places.PlacesServiceStatus.OK)return;const T=S.geometry.location.lng(),b=S.geometry.location.lat(),{locality:I,country:m,postalCode:p,city:y,province:g}=mB.getPlaceDetails(S);_({longitude:T,latitude:b,locality:I,country:m,city:y,postalCode:p,province:g})})}return{localityPredicitions:u,getPlaceInfo:h}}function CL(){return A.jsx("svg",{viewBox:"0 0 24 24",children:A.jsx("path",{d:"m12.00559,20.40189c4.60881,0 8.37242,-3.78424 8.37242,-8.40189c0,-4.61764 -3.76361,-8.40187 -8.37242,-8.40187c-4.62002,0 -8.38365,3.78422 -8.38365,8.40187c0,4.61765 3.76364,8.40189 8.38365,8.40189zm0,-1.65557c-3.75235,0 -6.67085,-2.96208 -6.67085,-6.74632c0,-3.7842 2.91851,-6.74625 6.67085,-6.74625c3.74105,0 6.67084,2.96206 6.67084,6.74625c0,3.78424 -2.92978,6.74632 -6.67084,6.74632zm-10.14151,-6.02552l6.01731,0c0.40566,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208l-6.01731,0c-0.40566,0 -0.72117,0.31536 -0.72117,0.7208c0,0.40544 0.31551,0.7208 0.72118,0.7208l-0.00001,0zm14.25442,0l6.0174,0c0.40565,0 0.72118,-0.31536 0.72118,-0.7208c0,-0.40544 -0.31553,-0.7208 -0.72118,-0.7208l-6.0174,0c-0.40565,0 -0.72118,0.31536 -0.72118,0.7208c0,0.40544 0.31553,0.7208 0.72118,0.7208zm-4.12417,-4.1221c0.40566,0 0.72118,-0.31534 0.72118,-0.70952l0,-6.02547c0,-0.40544 -0.31552,-0.7208 -0.72118,-0.7208c-0.3944,0 -0.7099,0.31536 -0.7099,0.7208l0,6.02547c0,0.39418 0.31551,0.70952 0.7099,0.70952zm0,14.25838c0.40566,0 0.72118,-0.3154 0.72118,-0.72077l0,-6.02541c0,-0.39425 -0.31552,-0.70965 -0.72118,-0.70965c-0.3944,0 -0.7099,0.3154 -0.7099,0.70965l0,6.02541c0,0.40538 0.31551,0.72077 0.7099,0.72077z"})})}const Fte="_baseText_bmazz_1",Bte="_dropdown_bmazz_4",$te="_suggestionContainer_bmazz_7",zte="_suggestionContainerInner_bmazz_13",Zte="_suggestionItem_bmazz_18",Hte="_suggestionLoading_bmazz_18",Vte="_noSuggestion_bmazz_18",Gte="_large_bmazz_22",Wte="_selected_bmazz_32",Kte="_useMyLocation_bmazz_36",zt={baseText:Fte,dropdown:Bte,suggestionContainer:$te,suggestionContainerInner:zte,suggestionItem:Zte,suggestionLoading:Hte,noSuggestion:Vte,large:Gte,selected:Wte,useMyLocation:Kte};function Yte(e){const{predictions:r,getPlaceInfo:t,selectedIndex:a}=e;return A.jsx(A.Fragment,{children:r.map((o,s)=>A.jsx(Wo,{className:`${zt.suggestionItem} ${a-1===s?zt.selected:""}`,onKeyDown:u=>u.key==="Enter"&&t(o),onMouseDown:()=>t(o),onClick:()=>t(o),children:o.description},o.place_id))})}function bB(e){var H,G,$,M,L;const r=je.useRef(null),[t,a]=je.useState(((H=e.data)==null?void 0:H.schoolLocality)||""),[o,s]=je.useState(!1),u=Dte({apiKey:e.googleMapsApiKey,geoLocation:e.geoLocation}),{localityPredicitions:v,getPlaceInfo:d}=Ute({search:t,makePredicition:o,geoLocation:e.geoLocation,apiKey:e.googleMapsApiKey}),{placeDetails:h,onClickGetCurrentLocation:f}=Mte({apiKey:e.googleMapsApiKey,onPositionError:p}),c=window.navigator.geolocation?1:0,{selectedIndex:_,onKeyDown:E,containerRef:S,hide:w,onBlur:T,onFocus:b}=W_({onSelected:x,itemCount:((v==null?void 0:v.length)??0)+c,hideOnBlur:e.hideOnBlur}),[I,m]=je.useState();je.useEffect(()=>{R(h)},[h]);function p(F){s(!0),m(F)}function y(F){var V,ae,oe;I&&m(void 0),o||s(!0),((V=e.data)!=null&&V.longitude||(ae=e.data)!=null&&ae.latitude||(oe=e.data)!=null&&oe.schoolLocality)&&e.clearData(),a(F)}function g(){y(""),r.current.focus()}function x(F){if(!v)return;if(F===v.length){j();return}const V=v[F];V&&O(V)}function R(F){e.setData({schoolLocality:F.locality,country:F.country,province:F.province,schoolPostCode:F.postalCode,longitude:F.longitude,latitude:F.latitude}),F.locality&&a(F.locality)}function O(F){o&&s(!1),d(F,r,R)}function j(F){var V;F==null||F.preventDefault(),s(!1),f(),(V=e.logUserAction)==null||V.call(e,{},{actionType:sn.Click,descriptor:Yt.UseMyLocation})}function k(){let F="form-control";return e.size==="lg"&&(F+=" form-control-lg"),F}const N=(v==null?void 0:v.length)&&!(($=(G=e.data)==null?void 0:G.schoolLocality)!=null&&$.length),D=window.navigator.geolocation&&!((L=(M=e.data)==null?void 0:M.schoolLocality)!=null&&L.length),U=e.labelClassName||`d-block text-center mb-3 fw-normal ${zt.baseText}`;let B="form-group position-relative";return e.size==="lg"&&(B+=` ${zt.large}`),A.jsxs("div",{className:B,children:[A.jsxs("label",{className:U,htmlFor:"locality-input",children:["ZIP code or city",e.required&&A.jsx("span",{className:"text-danger",children:"*"})]}),A.jsx(Hs,{type:"text",value:t,onChange:F=>y(F.currentTarget.value),id:"locality-input",className:k(),ref:r,autoComplete:"off",placeholder:u||"Loading...",disabled:e.disabled||!u,autoFocus:e==null?void 0:e.autoFocus,onClickClear:g,onKeyDown:E,onFocus:b,onBlur:T}),A.jsxs("div",{className:`position-absolute z-1 w-100 ${zt.dropdown} ${w?"d-none":""}`,children:[!!N&&A.jsx("div",{className:zt.suggestionContainer,children:A.jsxs("div",{className:zt.suggestionContainerInner,ref:S,children:[A.jsx(Yte,{predictions:v,getPlaceInfo:O,selectedIndex:_}),window.navigator.geolocation&&e.useGeoLocationApi&&A.jsx(Wo,{className:Ua(zt.suggestionItem,"px-1",_-1===v.length?zt.selected:""),onClick:j,children:A.jsxs("div",{className:"btn btn-link info-link btn-with-icon bg-transparent py-0 pe-1",children:[A.jsx(CL,{}),"Use my current location"]})})]})}),D&&!N&&e.useGeoLocationApi&&A.jsx("div",{className:`d-flex ${zt.useMyLocation}`,children:A.jsxs("button",{onClick:j,className:"btn btn-link info-link bg-white btn-with-icon",children:[A.jsx(CL,{}),"Use my current location"]})}),!!I&&A.jsx("div",{className:"text-danger p-2",children:I})]})]})}var Mi=(e=>(e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE",e))(Mi||{});class Jte extends Error{constructor(r,t="Error"){super(t),this.body=r}}const Xte={prepareQuery(e,r){let t=e;return Object.keys(r).forEach((a,o)=>{r[a]&&(o===0?t+="?":t+="&",t+=`${a}=${encodeURIComponent(r[a])}`)}),t}};function Bb(e){let r={method:Mi.GET,headers:{"Content-type":"application/json"}};e.method&&(r={...r,method:e.method}),e.init&&(r={...r,...e.init});let t=e.url;return r.method===Mi.GET&&e.data?t=Xte.prepareQuery(t,e.data):e.data&&(r={...r,body:JSON.stringify(e.data)}),{init:r,url:t}}const ti={async asyncFetch(e){const r=Bb(e),t=await fetch(r.url,r.init);if(!t.ok){const a=await t.json();throw new Jte(a)}if(t.status!==204)return await t.json()},async asyncFetchPlain(e){const r=Bb(e),t=await fetch(r.url,r.init);if(t.ok)return await t.text()},fetch(e){const r=Bb(e);return fetch(r.url,r.init).then(t=>{if(t.status!==204)return t.json()}).then(t=>(e.success&&e.success(t),t)).catch(t=>(e.error&&e.error(),t)).finally(()=>{e.always&&e.always()})}},rd={search(e,r,t,a,o){const s={longitude:r.longitude,latitude:r.latitude};r.query&&(s.query=r.query),ti.fetch({url:e,data:s,success:t,error:a,always:o})},async create(e,r){return ti.asyncFetch({url:e.createProspect,method:Mi.POST,data:r})},getLookups(e,r){return ti.asyncFetch({url:e.prospectLookups(r)})}},Qte=/\/$/,ene={urlBuilder(e,r){const a=Object.entries(r).map(([o,s])=>o&&Array.isArray(s)?s.map(v=>`${o}=${encodeURIComponent(v)}`).join("&"):o&&s!==void 0&&s!==null?`${o}=${encodeURIComponent(s)}`:"").reduce((o,s)=>s?o?`${o}&${s}`:s:o,"");return a?`${e}?${a}`:e},buildFilter(e){const r=[];if(e.limit&&r.push(`limit:${e.limit}`),e.cursor&&r.push(`page:${e.cursor}`),e.before&&r.push(`dateCreated:...${e.before}`),!!r.length)return r.join(",")},makeHttps(e){return typeof e!="string"||e.indexOf("http://")===-1||(e=e.replace("http://","https://")),e},safeUrlConcat(e,r){if(!e)return;let t=e;return e.endsWith("/")||(t+="/"),r&&(t+=r.startsWith("/")?r.slice(1):r),t},removeTrailingSlash(e){if(typeof e=="string")return e.replace(Qte,"")},getHostname(e){if(!e)return window.location.hostname;try{return new URL(e).hostname}catch{return null}},isValidUrl(e){try{return new URL(e),!0}catch{return!1}}},_o={checkTrialStatus(e,r){if(e.productName!==Ma.Lite)return Promise.reject();const t={email:r.email};return ti.asyncFetch({url:e.userStatus,data:t})},checkUserIdps(e,r){return e.productName!==Ma.Lite?Promise.reject():ti.asyncFetch({url:e.idps,data:{email:r}})},checkProspectTrialStatus(e,r,t,a,o){let s=e.prospectStatus(r.prospectId);s=ene.urlBuilder(s,{email:r.email}),ti.fetch({url:s,success:t,error:a,always:o})},createTrial(e,r){const t={prospectId:r.prospectId,email:r.email,userType:r.userType,appLink:r==null?void 0:r.appLink,attribution:r==null?void 0:r.attribution};return ti.asyncFetch({url:e.createTrial,method:Mi.POST,data:t})},resendTrialEmail(e,r,t){if(e.productName!==Ma.Lite)return Promise.reject();const a={email:t.email,appLink:t==null?void 0:t.appLink};return ti.asyncFetch({url:e.resendTrialEmail(r),method:Mi.POST,data:a})},createJoinRequest(e,r){const t=e.productName===Ma.Auth?e.joinRequest:e.joinRequest(r.customerId),a=e.productName===Ma.Auth?r:{email:r.email};return ti.asyncFetch({url:t,method:Mi.POST,data:a})},createAutoJoinRequest(e,r){return e.productName!==Ma.Lite?Promise.reject():ti.asyncFetch({url:e.autoJoin,method:Mi.POST,data:r})}},xL=["Primary","Secondary","K12","Special","TAFE","University"],rne=["Primary","Secondary","Primary & Secondary","Special","Sixth Form College","FE College","University","Other"],n_=["Elementary","Middle School","High School","College","Other"],tne={au:xL,nz:xL,uk:rne,us:n_,ca:n_};function nne(e){const r=Zt.getCountryCode(e),t=tne[r];return t||n_}var _B=(e=>(e.Published="Published",e.Draft="Draft",e))(_B||{});function ane(e){var T;const[r,t]=je.useState({prospectId:e.prospectId,schoolName:e.schoolName,schoolType:e.schoolType,schoolLocality:e.schoolLocality,country:e.country,province:e.province,city:e.city,longitude:e.longitude,latitude:e.latitude}),[a,o]=je.useState(),[s,u]=je.useState(!1),v=nne(r.country||((T=e.geoLocation)==null?void 0:T.countryCode));function d(){const{schoolName:b,schoolType:I,country:m}=r;return!!(b&&I&&m)}function h(b,I){t(m=>({...m,[b]:I}))}function f(b){const{longitude:I,latitude:m,schoolLocality:p,country:y,city:g,province:x}=b;I&&h("longitude",I),m&&h("latitude",m),y&&h("country",y),g&&h("city",g),x&&h("province",x),p&&h("schoolLocality",p)}function c(){h("schoolLocality",void 0),h("longitude",void 0),h("latitude",void 0),h("city",void 0),h("province",void 0),h("country",void 0),o("")}function _(b){const I=b.target.value;h("schoolType",I)}function E(b){h("schoolName",b.target.value)}async function S(b){const I={email:e.email,custom:{accountName:r==null?void 0:r.schoolName,accountAddress:{countryCode:r==null?void 0:r.country,province:Kt.parseProvince(r.province)},orgSubType:Kt.getSchoolType(r==null?void 0:r.schoolType),syncToCrm:!0,source:Kt.SOURCE},event:{accountCountry:r==null?void 0:r.country,accountPostCode:r==null?void 0:r.schoolPostCode,accountState:Kt.parseProvince(r.province)}},m={form_type:"trial-sign-up",prospect_id:r==null?void 0:r.prospectId};e.logBrazeEvent({user:I,event:{eventType:Nl.ProductFormEvent.FormSubmission,additionalData:m,callback:b}})}async function w(b){var m;if(b.preventDefault(),!d())return;e.logUserAction(r,{actionType:sn.Click,workflowPhase:Fa.Next,descriptor:Yt.CantFindSchool}),u(!0);let I;try{if(I=await rd.create(e.ajaxUrls,{name:r.schoolName,status:_B.Draft,countryCode:r.country,prospectType:r.schoolType,city:r.city,postCode:r.schoolPostCode,province:Kt.parseProvince(r.province)}),!I.id){u(!1),o("Error. Something went wrong.");return}}catch{u(!1),o("Error. Something went wrong.");return}if(e.userTrialStatus===Dr.BdmTrialAvailable){if(e.userType!==In.Staff){e.complete({completionStep:"added-to-braze",trialCreated:!1,trialStatus:null});return}e.nextStep({step:"request-bdm-trial",...r});return}try{const p={prospectId:I.id,email:e.email,userType:e.userType,appLink:e.pageAppLinkString,attribution:{..._i.getDecodedAttributionData(),utms:fs.getUtmParameters()}},y=await _o.createTrial(e.ajaxUrls,p);e.createOrUpdateProfile&&e.createOrUpdateProfile({masterId:y.id,email:e.email,countryCode:r==null?void 0:r.country});const g={completionStep:"trial-status",email:e.email,userId:y.id,prospectId:I.id,schoolName:r.schoolName,schoolLocality:r.schoolLocality,country:r.country,schoolType:r.schoolType,city:r.city,schoolPostCode:r.schoolPostCode,latitude:r.latitude,longitude:r.longitude,province:r.province,trialStatus:Dr.Available,trialCreated:!0,customerId:(m=y.data)==null?void 0:m.customerId};if((e==null?void 0:e.userType)===In.Staff){await S(x=>{x||console.error("Failed to submit create trial data to braze."),e.complete(g)});return}e.complete(g)}catch(p){if(!p.body){u(!1),o("Error. Something went wrong.");return}const y=p;if(y.body.status===400&&y.body.type==="trial-not-available"){e.nextStep({step:"add-to-braze",...r,prospectId:I.id,trialStatus:Dr.Unavailable});return}console.error(p)}}return A.jsxs(A.Fragment,{children:[A.jsxs("div",{className:"text-center",children:[A.jsx("h1",{className:"h4",children:"Tell us more about your school"}),A.jsx("p",{children:"Please enter your school details."})]}),A.jsxs("div",{className:"form-group",children:[A.jsx("label",{className:"d-block",htmlFor:"school-name-input",children:"Name of school"}),A.jsx("input",{type:"text",value:(r==null?void 0:r.schoolName)||"",onChange:E,id:"school-name-input",className:"form-control form-control-lg",autoComplete:"off",placeholder:"Enter name of school",autoFocus:!0})]}),A.jsxs("div",{className:"form-group",children:[A.jsx("label",{className:"d-block",htmlFor:"school-type-select",children:"Type of school"}),A.jsxs("select",{id:"school-type-select",className:`form-select form-select-lg ${r.schoolType?"":"text-secondary"}`,autoComplete:"off",value:r.schoolType||"none",onChange:_,children:[A.jsx("option",{value:"none",className:"text-secondary",disabled:!0,children:"Select type of school"}),v.map(b=>A.jsx("option",{value:b,className:"text-dark",children:b},b))]})]}),A.jsx(bB,{data:r,setData:f,clearData:c,disabled:!1,labelClassName:"d-block",geoLocation:e.geoLocation,logUserAction:e.logUserAction,googleMapsApiKey:e.googleMapsApiKey,autoFocus:!1,size:"lg",useGeoLocationApi:!0}),a&&A.jsx("div",{className:"text-danger mb-3",children:a}),d()&&A.jsx(ed,{className:"btn-lg w-100",variant:"dark",onClick:w,showSpinner:s,disabled:s,children:"Get started"})]})}function RS(e,r){return r?`${e} ${r}`:e}function ine(e){return A.jsx("h1",{className:RS("text-center mb-2 h4",e.className),children:e.children})}function one(e){return A.jsx("div",{className:RS("text-center text-sm px-2 px-lg-4",e.className),children:e.children})}function sne(e){return A.jsx("p",{className:RS("",e.className),children:e.children})}const rt={Heading:ine,Body:one,Message:sne};function jl(e){const r={[Dr.Available]:e.imageUrls.statusImages.available,[Dr.Active]:e.imageUrls.statusImages.active,[Dr.Expired]:e.imageUrls.statusImages.expired,[Dr.NotRequired]:e.imageUrls.statusImages.notRequired,[Dr.Unavailable]:e.imageUrls.statusImages.unavailable,[Dr.Unsupported]:e.imageUrls.statusImages.unsupported,[Dr.UserAutoJoinAllowed]:e.imageUrls.statusImages.notRequired,[Dr.UserJoinApprovalRequired]:e.imageUrls.statusImages.notRequired,[Dr.InvalidEmail]:"",[Dr.BdmTrialAvailable]:""};return A.jsx("div",{className:"d-flex justify-content-center my-4 px-2 px-lg-4",children:A.jsx("img",{src:r[e.trialStatus],className:"w-100 h-auto"})})}function une(e){return je.useEffect(()=>{e.logUserAction({},{actionType:sn.Create,descriptor:Yt.TrialRequested,workflowPhase:Fa.Complete})},[]),A.jsxs(A.Fragment,{children:[A.jsx(jl,{trialStatus:Dr.Available,imageUrls:e.imageUrls}),A.jsxs(rt.Body,{className:"mb-3",children:[A.jsx(rt.Heading,{children:"Submitted!"}),A.jsx(rt.Message,{children:"Thank you for your interest in trialing ClickView. We will be in touch with you as soon as possible."})]})]})}function lne(e){return A.jsxs(A.Fragment,{children:[A.jsx(jl,{trialStatus:Dr.Available,imageUrls:e.imageUrls}),A.jsxs(rt.Body,{className:"mb-3",children:[A.jsx(rt.Heading,{children:"You've requested access!"}),A.jsx(rt.Message,{children:"We've sent a request to your ClickView admin. Once your account is ready, you'll receive an email notification with instructions on how to get started with ClickView."})]})]})}const Wc={Marketing:{au:"https://www.clickvieweducation.com/en-au",us:"https://www.clickvieweducation.com",nz:"https://www.clickview.co.nz",uk:"https://www.clickview.co.uk",ca:"https://www.clickvieweducation.com/en-ca"},Support:{au:"https://www.clickviewsupport.com/hc/en-au",uk:"https://www.clickviewsupport.com/hc/en-au#gb",nz:"https://www.clickviewsupport.com/hc/en-au#nz",us:"https://www.clickviewsupport.com/hc/en-au#us",ca:"https://www.clickviewsupport.com/hc/en-au#ca"}},cne={[Ze.AU]:"/contact-us/sales",[Ze.US]:"/contact-us/sales",[Ze.NZ]:"/contact-us/",[Ze.UK]:"/contact-us/trial",[Ze.CA]:"/contact-us/sales"},fne={[Ze.AU]:"/resources/free-student-resources",[Ze.US]:"/resources/free-student-resources",[Ze.NZ]:"/free-student-resources/",[Ze.UK]:"/free-student-resources/",[Ze.CA]:"/resources/free-student-resources"},Ao={getMarketingUrlForGeoLocation(e){const r=Zt.getCountryCode(e==null?void 0:e.countryCode),t=Wc.Marketing[r];return t||Wc.Marketing.us},getMarketingSalesContactForGeoLocation(e){const r=Zt.getCountryCode(e==null?void 0:e.countryCode),t=Ao.getMarketingUrlForGeoLocation(e),a=cne[r];return`${t}${a}`},getFreeResourcesForGeoLocation(e){const r=Zt.getCountryCode(e==null?void 0:e.countryCode),t=this.getMarketingUrlForGeoLocation({countryCode:r}),a=fne[r];return`${t}${a}`},getTermsAndConditionsLink(){return this.getMarketingUrlForGeoLocation(Ze.US)+"/terms-and-conditions/"},getPrivacyPolicyLink(){return this.getMarketingUrlForGeoLocation(Ze.US)+"/privacy-policy/"},getSupportUrlForGeoLocation(e){const r=Zt.getCountryCode(e==null?void 0:e.countryCode),t=Wc.Support[r];return t||Wc.Support.us}};function Kc(e){const r=(e==null?void 0:e.previousStepIds)&&e.previousStepIds[e.previousStepIds.length-1]==="find-school",t=(e==null?void 0:e.schoolName)||"Your school";return A.jsxs(rt.Body,{className:"mb-3",children:[r?A.jsxs(A.Fragment,{children:[A.jsxs(rt.Heading,{children:[t,A.jsx("br",{}),"already has ClickView 🎉"]}),A.jsxs(rt.Message,{className:"mt-3",children:["If your school has SSO ",A.jsx("a",{href:e.getSignInUrl({email:e.email,customerId:e.customerId}),className:"info-link",children:"click here to sign in."})]}),A.jsx(rt.Message,{children:"Otherwise please contact your school admin for access."})]}):A.jsxs(A.Fragment,{children:[A.jsx(rt.Heading,{children:"Good News!"}),A.jsxs(rt.Message,{children:["An account already exists for:",A.jsx("br",{})," ",A.jsx("strong",{children:e.email})]}),A.jsx(rt.Message,{children:A.jsx("a",{href:e.getSignInUrl({email:e.email}),className:"btn btn-dark btn-lg w-100",children:"Sign into ClickView"})})]}),A.jsxs(rt.Message,{children:["Need Help? ",A.jsx("a",{href:Ao.getSupportUrlForGeoLocation(e.geoLocation),className:"info-link",target:"_blank",children:"Contact our Help Centre."})]})]})}function dne(e){const r=Ao.getMarketingSalesContactForGeoLocation(e.geoLocation),t=(e==null?void 0:e.previousStepIds)&&e.previousStepIds[e.previousStepIds.length-1]==="find-school",a=(e==null?void 0:e.schoolName)||"Your school";return A.jsxs(rt.Body,{children:[A.jsx(rt.Heading,{children:t?`${a} trial has expired`:"Your trial has expired"}),A.jsxs(rt.Message,{children:["Please contact our ",A.jsx("a",{href:r,className:"info-link",target:"_blank",children:"ClickView Sales Team"})]})]})}function hne(e){const r=Ao.getMarketingSalesContactForGeoLocation(e.geoLocation);return A.jsxs(rt.Body,{children:[A.jsxs(rt.Heading,{children:["Your school no longer",A.jsx("br",{})," has access to ClickView"]}),A.jsxs(rt.Message,{children:["Please contact our ",A.jsx("a",{href:r,className:"info-link",children:"ClickView Sales Team"})," for more information."]})]})}function vne(){return A.jsxs(rt.Body,{children:[A.jsxs(rt.Heading,{className:"px-2 px-lg-4",children:["ClickView isn't currently ",A.jsx("br",{})," available for your school"]}),A.jsx(rt.Message,{children:"We're working hard to get ClickView ready for more people."})]})}const pne=1;function gne(e){const[r,t]=je.useState(0),[a,o]=je.useState(!1);async function s(v){v==null||v.preventDefault();try{await _o.resendTrialEmail(e.ajaxUrls,e.userId,{email:e.email,appLink:e.pageAppLinkString}),t(r+1)}catch{o(!0)}e.logUserAction({},{actionType:sn.Click,descriptor:Yt.ResendEmail})}function u(v){v==null||v.preventDefault(),e.logUserAction({},{actionType:sn.Click,descriptor:Yt.WrongEmail}),e.nextStep({step:"enter-email",userType:e.userType})}if(e!=null&&e.email)return A.jsxs(rt.Body,{children:[A.jsx(rt.Heading,{children:"Check your inbox!"}),A.jsxs(rt.Message,{children:["An email has been sent to ",A.jsx("strong",{children:e.email}),"."]}),!!e.userId&&A.jsxs(A.Fragment,{children:[r<pne?A.jsx("button",{onClick:s,className:"btn btn-outline-dark btn-lg mb-3",children:"Resend verification email"}):A.jsx(rt.Message,{children:"✅ Email has been resent!"}),A.jsxs(rt.Message,{children:["Wrong email? ",A.jsx("button",{onClick:u,className:"btn info-link p-0 align-top border-0",children:"Update email address"})]}),a&&A.jsxs(rt.Message,{className:"mb-0 text-danger",children:["❌ There was a problem resending the email. Please try again later or contact our ",A.jsx("a",{href:Ao.getSupportUrlForGeoLocation(e.geoLocation),className:"info-link",children:"support"})]})]})]})}const mne={[Dr.Available]:gne,[Dr.Active]:Kc,[Dr.Expired]:dne,[Dr.NotRequired]:Kc,[Dr.Unavailable]:hne,[Dr.Unsupported]:vne,[Dr.UserAutoJoinAllowed]:Kc,[Dr.UserJoinApprovalRequired]:Kc,[Dr.InvalidEmail]:null,[Dr.BdmTrialAvailable]:null};function yne(e){const r=mne[e.trialStatus];return r?A.jsx(r,{...e}):A.jsx(A.Fragment,{})}function bne(e){return je.useEffect(()=>{const r={actionType:sn.Create,descriptor:Yt.DeadEnd,workflowPhase:Fa.Discard};e.trialCreated&&(r.descriptor=Yt.TrialCreated,r.workflowPhase=Fa.Complete),e.logUserAction({},r)},[]),A.jsxs(A.Fragment,{children:[A.jsx(jl,{trialStatus:e.trialStatus,imageUrls:e.imageUrls}),A.jsx(yne,{...e})]})}const _ne="young-student";function Sne(e){const r=Ao.getFreeResourcesForGeoLocation(e.geoLocation);return je.useEffect(()=>{Tn.set(_ne,!0)},[]),A.jsxs(A.Fragment,{children:[A.jsx(jl,{trialStatus:Dr.Active,imageUrls:e.imageUrls}),A.jsxs(rt.Body,{className:"mb-3",children:[A.jsx(rt.Heading,{children:"Discover our free content"}),A.jsx(rt.Message,{children:"Click the button below to explore our videos"}),A.jsx("a",{href:r,className:"btn btn-lg btn-dark w-100",target:"_blank",children:"Start watching now"})]})]})}const wne={"trial-status":bne,"added-to-braze":une,"young-student":Sne,"requested-access":lne};function Ene(e){const r=wne[e.completionStep];return A.jsx("div",{className:"d-flex justify-content-center flex-column mx-auto px-2",children:A.jsx(r,{...e})})}const Cne="_day_n6ysn_1",xne="_month_n6ysn_4",Ine="_year_n6ysn_7",$b={day:Cne,month:xne,year:Ine},Ane=120,Tne=16;function Rne(e,r,t){const a=new Date(SB(e,r,t));return!isNaN(+a)}function SB(e,r,t){return`${e.padStart(4,"0")}-${r.padStart(2,"0")}-${t.padStart(2,"0")}`}function One(e){const[r,t]=je.useState(""),[a,o]=je.useState(""),[s,u]=je.useState(""),[v,d]=je.useState(null);function h(p){t(p.target.value),d(null)}function f(p){o(p.target.value),d(null)}function c(p){u(p.target.value),d(null)}function _(){return!r||!a||!s?(d("Please enter your date of birth"),!1):Rne(s,a,r)?+s>S?(d("Please enter a date in the past"),!1):+s<S-Ane?(d("Please enter a realistic date of birth"),!1):!0:(d("Please enter a valid date"),!1)}function E(p){if(p.preventDefault(),!_())return;const y=new Date(SB(s,a,r)),g=S-Tne,x=new Date;if(x.setFullYear(g),y>x){e.complete({completionStep:"young-student",trialCreated:!1,trialStatus:null});return}e.nextStep({step:"enter-email",userType:e.userType})}const S=new Date().getFullYear(),w="mx-2 d-inline-block text-start",T=`form-control form-control-lg ${v?"is-invalid":""}`;let b="order-0",I="order-3";const m=Zt.isCountryCodeUS(e.geoLocation.countryCode);return m&&(b="order-3",I="order-0"),A.jsxs("form",{className:"text-center",onSubmit:E,noValidate:!0,children:[A.jsx("h1",{className:"h4",children:"Tell us a little about yourself"}),A.jsx("p",{children:"Please enter your date of birth"}),A.jsxs("div",{className:"my-4",children:[A.jsxs("fieldset",{className:"d-flex justify-content-center","aria-describedby":"dateOfBirthError",children:[A.jsxs("div",{className:`${w} ${b}`,children:[A.jsx("label",{className:"mb-0",htmlFor:"day",children:"Day"}),A.jsx("input",{id:"day",type:"number",className:`${T} ${$b.day}`,min:"1",max:"31",placeholder:"DD",value:r,onChange:h,autoFocus:!m,tabIndex:m?2:1})]}),A.jsx("span",{className:`h1 fw-normal mt-3 mb-0 order-1 ${v?"text-danger":""}`,children:"/"}),A.jsxs("div",{className:`${w} ${I}`,children:[A.jsx("label",{className:"mb-0",htmlFor:"month",children:"Month"}),A.jsx("input",{id:"month",type:"number",className:`${T} ${$b.month}`,min:"1",max:"12",placeholder:"MM",value:a,onChange:f,autoFocus:m,tabIndex:m?1:2})]}),A.jsx("span",{className:`h1 fw-normal mt-3 mb-0 order-4 ${v?"text-danger":""}`,children:"/"}),A.jsxs("div",{className:`${w} order-5`,children:[A.jsx("label",{className:"mb-0",htmlFor:"year",children:"Year"}),A.jsx("input",{id:"year",name:"year",type:"number",className:`${T} ${$b.year}`,min:S-120,max:S,placeholder:"YYYY",value:s,onChange:c,tabIndex:3})]})]}),!!v&&A.jsx(Ht,{name:"dateofBirth",children:v})]}),A.jsx("button",{type:"submit",className:"btn btn-lg btn-dark w-100",children:"Continue"})]})}function kne(e){return A.jsxs(A.Fragment,{children:["Have a ClickView account already?",A.jsx("a",{href:e.link,className:"info-link ms-1",onClick:e.onClick,children:"Sign in"})]})}function Pne(){const e={},r=_i.getEncodedAttributionData();r&&(e.r=r);const t=fs.getUtmParameters();return t&&(e.utms=t),JSON.stringify(e)}const Nne=new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/),IL={[Ze.AU]:"valerie.frizzle@school.edu.au",[Ze.UK]:"valerie.frizzle@school.gov.uk",[Ze.US]:"valerie.frizzle@school.gov",[Ze.NZ]:"valerie.frizzle@school.nz",[Ze.CA]:"valerie.frizzle@school.ca"},jne={[Ze.AU]:"/contact-us/support",[Ze.US]:"/contact-us/support",[Ze.NZ]:"/contact-us/",[Ze.UK]:"/contact-us/technical/",[Ze.CA]:"/contact-us/support"};function qne(e){const r=Ao.getMarketingUrlForGeoLocation(e),t=Zt.getCountryCode(e==null?void 0:e.countryCode),a=jne[t];return`${r}${a}`}function Dne(e){const r=IL[Zt.getCountryCode(e.countryCode)];return r||IL.us}const Lne=[Dr.Expired,Dr.NotRequired,Dr.Unavailable,Dr.Unsupported,Dr.Active];function Mne(e){const[r,t]=je.useState(!1),[a,o]=je.useState((e==null?void 0:e.email)||""),[s,u]=je.useState(),v=qne(e.geoLocation);async function d(){u("");let S;try{S=await _o.checkTrialStatus(e.ajaxUrls,{email:a})}catch{u("Something went wrong! Please try again later.");return}if(S.status===Dr.InvalidEmail){u("Please use your school email address.");return}if(e.logUserAction({},{actionType:sn.Click,workflowPhase:Fa.Next,descriptor:Yt.EnterEmail}),Lne.includes(S.status)){e.complete({completionStep:"trial-status",email:a,trialStatus:S.status,trialCreated:!1});return}try{const w=await _o.checkUserIdps(e.ajaxUrls,a);if(w.length){e.nextStep({step:"select-idp",email:a,userTrialStatus:S.status,idps:w});return}}catch{u("Something went wrong! Please try again later.");return}e.nextStep({step:"find-school",email:a,userTrialStatus:S.status})}function h(){e.logUserAction({},{actionType:sn.Click,descriptor:Yt.ContactUs})}function f(){return a.length?Nne.test(a)?!0:(u("Please use your school email address."),!1):(u("Please enter your school email address."),!1)}function c(){e.logUserAction({},{actionType:sn.Click,descriptor:Yt.SignIn})}function _(S){S.preventDefault(),o(S.target.value),u("")}async function E(S){S==null||S.preventDefault(),f()&&(t(!0),await d(),t(!1))}return A.jsxs(A.Fragment,{children:[A.jsxs("div",{className:"text-center",children:[A.jsx("h1",{className:"h4",children:"Let's set up your account"}),A.jsx("p",{children:"Enter your school email address"})]}),A.jsxs("form",{onSubmit:E,noValidate:!0,children:[A.jsxs("div",{className:"form-group mb-3",children:[A.jsx(Hs,{value:a,onChange:_,name:"email-input",id:"email-input",type:"email",className:`form-control form-control-lg ${s?"is-invalid":""}`,placeholder:Dne(e.geoLocation),autoComplete:"false",autoCorrect:"false",autoFocus:!0,onClickClear:()=>o(""),"aria-errormessage":"email-inputError"}),s&&A.jsxs(A.Fragment,{children:[A.jsx(Ht,{name:"error-input",children:s}),A.jsxs("small",{children:["Having an issue with your email?",A.jsx("a",{href:v,className:"info-link ps-1",target:"_blank",onClick:h,children:"Contact our team"})]})]})]}),A.jsx(ed,{showSpinner:r,variant:"dark",className:"btn-lg mb-3 w-100",disabled:r,onClick:E,children:"Continue"})]}),e.userType===In.Staff&&A.jsx(H_,{idps:e.globalIdps,className:"mt-n3",attribution:Pne()}),A.jsx("div",{className:"text-center",children:A.jsx(kne,{link:e.getSignInUrl({email:a}),onClick:c})})]})}function Une(e){var r;switch((r=e==null?void 0:e.body)==null?void 0:r.type){case"user-type-not-supported":return"Students may not request to join schools.";case"join-request-already-pending":return"Your request is awaiting administrator approval.";case"join-request-already-denied":return"Your request has been denied by an administrator.";case"join-request-not-allowed":case"user-email-domain-not-approved":case"user-email-invalid":case"create-join-request-failed":case"join-not-required":default:return"Something went wrong."}}var td=(e=>(e.MasterId="master_id",e.CrmId="crm_id",e.SalesforceId="salesforce_id",e))(td||{});function Fne(e){const[r,t]=je.useState(null);async function a(){var o;try{const u=(o=(await rd.getLookups(e.ajaxUrls,e.prospectId)).find(v=>v.type===td.MasterId))==null?void 0:o.externalId;if(!u){t("Something went wrong.");return}await _o.createJoinRequest(e.ajaxUrls,{customerId:u,email:e.email}),e.logUserAction({},{actionType:sn.Click,descriptor:Yt.RequestAccess}),e.complete({completionStep:"requested-access",trialCreated:!1,trialStatus:Dr.UserJoinApprovalRequired})}catch(s){t(Une(s))}}return A.jsxs(A.Fragment,{children:[A.jsx(jl,{trialStatus:Dr.UserJoinApprovalRequired,imageUrls:e.imageUrls}),A.jsx(rt.Body,{className:"mb-3",children:A.jsxs(rt.Heading,{children:[e.schoolName,A.jsx("br",{}),"already has ClickView 🎉"]})}),A.jsx("button",{className:"btn btn-lg btn-dark w-100 mb-3",onClick:a,children:"Request access"}),r&&A.jsx("p",{className:"text-danger text-center mb-2",children:r}),A.jsxs(rt.Message,{className:"text-center",children:["Need Help? ",A.jsx("a",{href:Ao.getSupportUrlForGeoLocation(e.geoLocation),className:"info-link",target:"_blank",children:"Contact our Help Centre."})]})]})}const Bne={checkEmail(e,r,t){return e.productName!==Ma.Lite?Promise.reject():ti.asyncFetch({url:e.brazeCheckEmail,method:Mi.POST,data:{email:r,instanceRegion:t}})}};function $ne(e){var f;const[r,t]=je.useState(!1),[a,o]=je.useState({});function s(c){if(bU(c.jobTitle)){h();return}v(c)}function u(){var _;const c=Zt.getCountryCode(e.country||((_=e.geoLocation)==null?void 0:_.countryCode));return Zt.getInstanceRegion(c)}async function v(c){var S;if(r)return;if(e.userType===In.Learner){o({...a,submission:"Something went wrong! Please try again later."});return}e.logUserAction({},{actionType:sn.Click,workflowPhase:Fa.Next,descriptor:Yt.RequestBdmTrial}),t(!0);const{firstName:_,surname:E}=AS(c.fullname);try{const w=await Bne.checkEmail(e.ajaxUrls,e.email,u()),T={email:e.email,firstName:_,lastName:E,phone:c.phone,custom:{orgSubType:Kt.getSchoolType(e==null?void 0:e.schoolType),accountName:e==null?void 0:e.schoolName,jobTitle:c.jobTitle,accountAddress:{countryCode:e==null?void 0:e.country,province:Kt.parseProvince((e==null?void 0:e.province)||"")},syncToCrm:((S=w.users)==null?void 0:S.length)===0?!0:void 0,source:Kt.BDM_SOURCE},event:{eventTopic:Kt.BDM_EVENT_TOPIC}},b={prospect_id:e==null?void 0:e.prospectId};e.logBrazeEvent({user:T,event:{eventType:Nl.ProductFormEvent.BdmTrialRequested,additionalData:b,callback:d}})}catch{o({...a,submission:"Something went wrong! Please try again later."})}Object.keys(a).length||h()}function d(c){o(c?{}:{...a,submission:"Something went wrong! Please try again later."}),t(!1)}function h(){e.complete({completionStep:"added-to-braze",trialCreated:!1,trialStatus:null})}return A.jsx(dB,{loading:r,errors:a,setErrors:o,country:e.country||((f=e.geoLocation)==null?void 0:f.countryCode),logUserAction:e.logUserAction,handleSubmitForm:s,isTertiary:Kt.isTertiarySchool(e.schoolType)})}function zne(e){const{loading:r,canSubmitForm:t,setSubmissionError:a,prospectStatus:o,userType:s,logStepEvent:u,logUserAction:v,nextStep:d,data:h,productName:f,ajaxUrls:c,complete:_,setLoadingState:E,email:S,userTrialStatus:w,pageAppLinkString:T,setProperty:b,logBrazeEvent:I,createOrUpdateProfile:m}=e;function p(){d({step:"add-to-braze",trialStatus:o,...h}),u()}function y(){if(u(),s!==In.Staff){_({completionStep:"added-to-braze",trialCreated:!1,trialStatus:null});return}d({step:"request-bdm-trial",...h})}function g(){d({step:"request-access",...h}),u()}async function x(){try{await _o.createAutoJoinRequest(c,{prospectId:h.prospectId,email:S}),v({},{actionType:sn.Click,descriptor:Yt.AutoJoin}),_({completionStep:"trial-status",trialCreated:!0,trialStatus:Dr.Available,...h})}catch{a("Something went wrong! Please try again later."),E(!1);return}}async function R(){var D;let N;h!=null&&h.prospectId&&o===Dr.NotRequired&&(N=(D=(await rd.getLookups(c,h.prospectId)).find(B=>B.type===td.MasterId))==null?void 0:D.externalId),_({completionStep:"trial-status",trialStatus:o,trialCreated:!1,customerId:N,...h}),u()}function O(){return o===Dr.Active||o===Dr.Available?!0:o===Dr.UserAutoJoinAllowed?f===Ma.Auth:!1}async function j(){if(s!==In.Staff)return;const N={email:S,custom:{accountName:h==null?void 0:h.schoolName,accountAddress:{countryCode:h==null?void 0:h.country,province:Kt.parseProvince(h.province)},orgSubType:Kt.getSchoolType(h==null?void 0:h.schoolType),syncToCrm:!0,source:Kt.SOURCE},event:{accountCountry:h==null?void 0:h.country,accountPostCode:h==null?void 0:h.schoolPostCode,accountState:Kt.parseProvince(h.province)}},D={form_type:"trial-sign-up",prospect_id:h==null?void 0:h.prospectId};I({user:N,event:{eventType:Nl.ProductFormEvent.FormSubmission,additionalData:D}})}async function k(){var D;E(!0);let N;try{N=await _o.createTrial(c,{userType:s,email:S,prospectId:h==null?void 0:h.prospectId,appLink:T,attribution:{..._i.getDecodedAttributionData(),utms:fs.getUtmParameters()}})}catch{a("Something went wrong! Please try again later."),E(!1);return}o===Dr.UserAutoJoinAllowed&&v({},{actionType:sn.Click,descriptor:Yt.AutoJoin}),b("userId",N.id),_({completionStep:"trial-status",userId:N.id,trialCreated:!0,trialStatus:Dr.Available,customerId:(D=N.data)==null?void 0:D.customerId,...h}),j(),m&&m({masterId:N.id,email:S,countryCode:h==null?void 0:h.country}),u()}return async function(){if(!r){if(!t()){a("Something went wrong! Please try again later.");return}if(w===Dr.BdmTrialAvailable)return y();if(s===In.Staff){if(o===Dr.Unsupported)return p();if(o===Dr.UserJoinApprovalRequired)return g();if(o===Dr.UserAutoJoinAllowed&&f===Ma.Lite)return await x()}return O()?await k():await R()}}}const AL=50;function Zne(e){return e.toLowerCase().split(" ").map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join(" ")}function Hne(e){const r=[];return e.city&&r.push(Zne(e.city)),e.province&&r.push(e.province),e.postCode&&r.push(e.postCode),r.join(" ")}function Vne(e){const{filteredSchoolsList:r,getSchoolName:t,onSchoolSuggestionClick:a,selectedIndex:o}=e;return A.jsx(A.Fragment,{children:r.map((s,u)=>A.jsxs(Wo,{className:`${zt.suggestionItem} ${o-1===u?zt.selected:""}`,onKeyDown:v=>v.key==="Enter"&&a(s),onMouseDown:()=>a(s),onClick:()=>a(s),children:[t(s)," ",A.jsx("br",{}),A.jsx("small",{className:"text-secondary",children:Hne(s)})]},s.id))})}function Gne(e){return A.jsx("div",{className:`info-link ${zt.suggestionItem} ${zt.noSuggestion} ${e.selected?zt.selected:""}`,onKeyDown:r=>r.key==="Enter"&&e.handleNoSuggestion(),onMouseDown:e.handleNoSuggestion,onClick:e.handleNoSuggestion,children:"Can't find your school?"})}function Wne(e){var D;const r=je.useRef(null),[t,a]=je.useState(!0),[o,s]=je.useState(e.data.schoolName&&e.data.schoolPostCode?e.data.schoolName+", "+e.data.schoolPostCode:e.data.schoolName?e.data.schoolName:""),[u,v]=je.useState(),d=yB(o,250),{selectedIndex:h,onKeyDown:f,containerRef:c,hide:_,onBlur:E,onFocus:S}=W_({onSelected:w,itemCount:((u==null?void 0:u.length)??0)+1,hideOnBlur:e.hideOnBlur});function w(U){if(!u&&!U)return;if(U===u.length){e.onClickNoSuggestions(o);return}const B=u[U];B&&x(B)}const T=!!((D=e.data)!=null&&D.prospectId),b=t&&!T,I=!t&&!T&&(u==null?void 0:u.length)<AL,m=(u==null?void 0:u.length)&&!T;je.useEffect(()=>{if(!T){if(!d.length){g();return}if(!T&&d.length>1&&d===o){g(d);return}}},[d,T]);function p(U){(e.data.schoolName||e.data.prospectId)&&e.clearData(),U!==o&&s(U)}function y(){p(""),r.current.focus()}function g(U){if(!e.data.latitude&&!e.data.longitude){a(!1);return}a(!0);const B={latitude:e.data.latitude,longitude:e.data.longitude};U&&U.length&&(B.query=U),rd.search(e.searchUrl,B,H=>v(H),null,()=>a(!1))}function x(U){s(R(U)),e.setData({prospectId:U.id,schoolName:U.name,schoolPostCode:U.postCode,schoolType:U.prospectType,province:U.province,city:U.city,country:U.countryCode})}function R(U){return U.name}const O=(m||b||I)&&!e.disabled&&!_,j=!b&&!I&&(u==null?void 0:u.length)>=AL;let k="form-control",N="form-group position-relative";return e.size==="lg"&&(k+=" form-control-lg",N+=` ${zt.large}`),A.jsxs("div",{className:N,children:[A.jsxs("label",{className:e.labelClassName,htmlFor:"school-input",children:["School",e.required&&A.jsx("span",{className:"text-danger",children:"*"})]}),A.jsx(Hs,{id:"school-input",value:o,onChange:U=>p(U.currentTarget.value),ref:r,className:k,type:"text",autoComplete:"off",placeholder:e.placeholder||"Search for your school",disabled:e.disabled,autoFocus:!0,onClickClear:y,onKeyDown:f,onFocus:S,onBlur:E}),A.jsx("div",{className:`position-absolute z-1 w-100 ${zt.dropdown} ${_?"d-none":""}`,children:A.jsx("div",{className:`${zt.suggestionContainer} ${O?"":"d-none"}`,children:A.jsxs("div",{className:zt.suggestionContainerInner,ref:c,children:[m?A.jsx(Vne,{filteredSchoolsList:u,onSchoolSuggestionClick:x,getSchoolName:R,selectedIndex:h}):b&&A.jsx("div",{className:`${zt.suggestionLoading} py-4 d-flex justify-content-center`,children:A.jsx(TS,{animation:"border"})}),j&&A.jsxs(A.Fragment,{children:[A.jsx("hr",{className:"my-0"}),A.jsx("div",{className:`${zt.suggestionItem} ${zt.noSuggestion} text-secondary text-center`,children:A.jsxs("small",{children:["Can't find your school? ",A.jsx("br",{})," Try searching to narrow the results"]})})]}),!b&&I&&A.jsx(Gne,{selected:h===u.length+1,handleNoSuggestion:()=>{e.onClickNoSuggestions(o)}})]})})})]})}function Kne(e){return(e==null?void 0:e.toLowerCase())==="au"?"Enter your school postcode or suburb":(e==null?void 0:e.toLowerCase())==="us"?"Enter your school ZIP code or city":(e==null?void 0:e.toLowerCase())==="ca"?"Enter your school postal code or city":"Enter your school postcode or city"}function Yne(e){var j;const{email:r,userType:t}=e,[a,o]=je.useState({schoolLocality:e.schoolLocality,country:e.country,longitude:e.longitude,latitude:e.latitude,city:e.city,province:e.province,prospectId:e.prospectId,schoolName:e.schoolName,schoolType:e.schoolType,schoolPostCode:e.schoolPostCode}),[s,u]=je.useState(e.trialStatus),[v,d]=je.useState(),[h,f]=je.useState(!1),[c,_]=je.useState(!1),[E,S]=je.useState(!1),w=zne({...e,prospectStatus:s,loading:h,data:a,canSubmitForm:b,setSubmissionError:d,logStepEvent:I,setLoadingState:m,setProperty:p});function T(){return!!(a&&a.schoolLocality&&a.longitude&&a.latitude)}function b(){if(!a||!r||!t)return!1;const{prospectId:k}=a;return!!(r&&t&&k)}function I(){const k={actionType:sn.Click,descriptor:Yt.FindSchool,workflowPhase:Fa.Next};e.logUserAction(a||{},k)}function m(k){_(k),S(k),f(k)}function p(k,N){k==="prospectId"&&N&&(f(!0),_o.checkProspectTrialStatus(e.ajaxUrls,{prospectId:N.toString(),email:e.email},D=>{u(D.status)},()=>{console.log("error")},()=>{f(!1)})),o(D=>({...D,[k]:N}))}function y(){p("schoolLocality",void 0),p("longitude",void 0),p("latitude",void 0),p("city",void 0),p("province",void 0),p("country",void 0),g()}function g(){p("prospectId",void 0),p("schoolName",""),p("schoolPostCode",void 0),d(void 0)}function x(k){e.nextStep({step:"cant-find-school",prospectId:a.prospectId,schoolName:k,schoolLocality:a.schoolLocality,longitude:a.longitude,latitude:a.latitude,country:a.country,city:a.city,province:a.province}),e.logUserAction({},{actionType:sn.Click,descriptor:Yt.CantFindSchool,workflowPhase:Fa.Next})}function R(k){p("prospectId",k.prospectId),p("schoolName",k.schoolName),p("schoolPostCode",k.schoolPostCode),p("schoolType",k.schoolType),p("province",k.province),p("city",k.city),p("country",k.country)}function O(k){const{longitude:N,latitude:D,schoolLocality:U,country:B,city:H,province:G}=k;N&&p("longitude",N),D&&p("latitude",D),B&&p("country",B),H&&p("city",H),G&&p("province",G),U&&p("schoolLocality",U)}return A.jsxs(A.Fragment,{children:[A.jsxs("div",{className:"text-center",children:[A.jsx("h1",{className:"h4",children:"Let's find your school"}),A.jsx("p",{children:Kne((j=e.geoLocation)==null?void 0:j.countryCode)})]}),A.jsx(bB,{data:a,setData:O,clearData:y,disabled:c,geoLocation:e.geoLocation,labelClassName:"d-none",logUserAction:e.logUserAction,googleMapsApiKey:e.googleMapsApiKey,autoFocus:!0,size:"lg",useGeoLocationApi:!0}),T()&&A.jsx(Wne,{data:a,setData:R,clearData:g,disabled:E,searchUrl:e.ajaxUrls.searchProspect,onClickNoSuggestions:x,size:"lg",labelClassName:"d-none"}),v&&A.jsx("p",{className:"text-danger mb-2",children:v}),b()&&A.jsx(ed,{className:"btn-lg w-100",variant:"dark",onClick:w,showSpinner:c||E||h,disabled:c||E||h,children:"Get started"})]})}const TL=["38A2E8","7A76E8","40BCC3","F7847B"];function Jne(e){const[r,t]=je.useState(null);function a(s){if(!s)return;const u=window.location.pathname+window.location.search;window.location.href=`/challenge?idp=${s.id}&redirectUrl=`+encodeURIComponent(u)}function o(){e.logUserAction({},{actionType:sn.Click,workflowPhase:Fa.Next,descriptor:Yt.SkipIdpSelect}),e.nextStep({step:"find-school",email:e.email,userTrialStatus:e.userTrialStatus})}return A.jsxs(A.Fragment,{children:[A.jsxs("div",{className:"text-center",children:[A.jsx("h1",{className:"h4",children:"Does your school already have ClickView?"}),A.jsx("p",{children:"Find your school from the list below"})]}),e.idps.length>4?A.jsxs(A.Fragment,{children:[A.jsx(Il,{id:"idp",item:r,items:e.idps,onSelect:t,getName:s=>s.name,clearData:()=>t(null),placeholder:"Select a school",size:"lg"}),A.jsx("button",{className:"btn btn-lg btn-dark w-100 mb-3",disabled:!r,onClick:()=>a(r),children:"Continue"})]}):e.idps.map((s,u)=>A.jsx("button",{className:"btn btn-lg w-100 mb-3",onClick:()=>a(s),style:{backgroundColor:`#${TL[u%TL.length]}`,color:"#FFF"},children:s.name},u)),A.jsx("button",{className:"btn btn-link text-info w-100 no-sso-link",onClick:o,children:"My school does not have ClickView"})]})}const Xne="_userTypeOption_egazo_1",Qne="_selected_egazo_8",eae="_mobileButtons_egazo_13",zb={userTypeOption:Xne,selected:Qne,mobileButtons:eae};function RL(e){return A.jsxs(A.Fragment,{children:[A.jsxs(Wo,{className:`
|
|
66
|
+
d-flex
|
|
67
|
+
flex-column
|
|
68
|
+
justify-content-between
|
|
69
|
+
h-100
|
|
70
|
+
p-3
|
|
71
|
+
border
|
|
72
|
+
rounded
|
|
73
|
+
rounded-3
|
|
74
|
+
mx-auto
|
|
75
|
+
d-md-block
|
|
76
|
+
d-none
|
|
77
|
+
${zb.userTypeOption} ${e.selected?zb.selected:""}`,onClick:()=>e.onClick(e.type),children:[A.jsx("img",{src:e.imageSrc,className:"rounded-top mx-auto pb-2 w-100"}),A.jsx("div",{className:"py-2",children:A.jsx("span",{className:"h4",children:e.buttonText})})]}),A.jsx(Wo,{className:`btn btn-lg btn-outline-dark w-100 d-md-none d-block mx-auto ${zb.mobileButtons}`,onClick:()=>e.onClick(e.type),children:e.buttonText})]})}function rae(e){function r(t){if(e.logUserAction({userType:t},{actionType:sn.Click,workflowPhase:Fa.Next,descriptor:t===In.Staff?Yt.Educator:Yt.Student}),t===In.Staff){e.nextStep({step:"enter-email",userType:t});return}e.nextStep({step:"enter-age",userType:t})}return A.jsxs("div",{className:"text-center",children:[A.jsx("h1",{className:"h4",children:"Access educational videos at your fingertips"}),A.jsx("p",{className:"mb-3",children:"Sign up for instant access to class-ready videos and worksheets."}),A.jsxs("div",{className:"row",children:[A.jsx("div",{className:"col-lg-6 mb-3",children:A.jsx(RL,{type:In.Staff,buttonText:"I'm an educator",imageSrc:e.imageUrls.educator,onClick:r,selected:e.userType===In.Staff})}),A.jsx("div",{className:"col-lg-6 mb-3",children:A.jsx(RL,{type:In.Learner,buttonText:"I'm a student",imageSrc:e.imageUrls.student,onClick:r,selected:e.userType===In.Learner})})]})]})}const tae={"select-type":rae,"enter-email":Mne,"find-school":Yne,"cant-find-school":ane,completed:Ene,"add-to-braze":Pte,"enter-age":One,"request-access":Fne,"request-bdm-trial":$ne,"select-idp":Jne};function nae(e){const{state:r,geoLocation:t,layout:a,hasPreviousStep:o,googleMapsApiKey:s,pageAppLinkString:u,back:v,nextStep:d,complete:h,logUserAction:f,logBrazeEvent:c,imageUrls:_,ajaxUrls:E,productName:S,getSignInUrl:w,globalIdps:T,createOrUpdateProfile:b,getCrmIdForProspect:I}=e,m=tae[r.currentStepId],p={...r,geoLocation:t,googleMapsApiKey:s,pageAppLinkString:u,back:v,nextStep:d,complete:h,logUserAction:f,imageUrls:_,ajaxUrls:E,productName:S,getSignInUrl:w,logBrazeEvent:c,globalIdps:T,createOrUpdateProfile:b,getCrmIdForProspect:I},y=a;if(!y)return A.jsx(m,{...p});const g=vte.last(e.state.previousStepIds)==="completed";return A.jsx(y,{geoLocation:e.geoLocation,currentStep:r.currentStepId,previousStep:v,closeApp:e.close,logUserAction:f,hasPreviousStep:o,showBackButton:!g,imageUrls:e.imageUrls,getSignInUrl:w,children:A.jsx(m,{...p})})}const aae=["email","longitude","latitude","trialCreated","idps"],iae={filterBlacklistedKeys(e){const r={...e};return aae.forEach(t=>delete r[t]),r}};function oae(e){const r=[...e.previousStepIds],t=r.pop();return{...e,previousStepIds:r,currentStepId:t}}function sae(e){return Object.entries(e).filter(([,r])=>r!==null).reduce((r,[t,a])=>({...r,[t]:a}),{})}function uae(e,r){const t={...e,previousStepIds:[...e.previousStepIds,e.currentStepId],currentStepId:r.step};if(r.step==="select-type")return{...t};if(r.step==="enter-email"||r.step==="enter-age")return{...t,userType:r.userType};if(r.step==="select-idp")return{...t,email:r.email,userTrialStatus:r.userTrialStatus,idps:r.idps};if(r.step==="find-school")return{...t,email:r.email,userTrialStatus:r.userTrialStatus};if(r.step==="cant-find-school")return{...t,prospectId:r.prospectId,schoolName:r.schoolName,schoolLocality:r.schoolLocality,country:r.country,longitude:r.longitude,latitude:r.latitude,city:r.city,province:r.province};if(r.step==="add-to-braze"||r.step==="completed"||r.step==="request-access"||r.step==="request-bdm-trial"){let a={...r};return delete a.type,delete a.step,a=sae(a),{...t,...a}}}function lae(e,r){switch(r.type){case"nextStep":return uae(e,r);case"back":return oae(e)}}const cae=({location:e,initialValues:r,entryPage:t,onStepUpdate:a,externalLogUserAction:o})=>{const s=Kt.removeEmptyKeys(r),u={currentStepId:"select-type",previousStepIds:[],...s},[v,d]=je.useReducer(lae,u);je.useEffect(()=>{a==null||a(v)},[v.currentStepId]);function h(){d({type:"back"})}function f(E){d({type:"nextStep",...E})}function c(E){d({type:"nextStep",step:"completed",...E})}function _(E,S){const w={...v,...E},T=iae.filterBlacklistedKeys(w),b={currentStepId:v.currentStepId,...T};t&&(b.entryPage=t);const I=Object.entries(b).filter(([,m])=>m!==void 0).reduce((m,[p,y])=>({...m,[p]:y}),{});o(I,{entity:aB.SignUp,location:e,...S})}return{state:v,back:h,nextStep:f,complete:c,hasPreviousStep:!!v.previousStepIds.length,logUserAction:_}},fae={statusImages:{available:"/images/sign-up/available-v2.png",active:"/images/sign-up/active-v2.png",expired:"/images/sign-up/expired-v2.png",notRequired:"/images/sign-up/active-v2.png",unavailable:"/images/sign-up/unavailable-v2.png",unsupported:"/images/sign-up/unavailable-v2.png",autoJoin:"/images/sign-up/active-v2.png",requestAccess:"/images/sign-up/active-v2.png"}};function dae(e){var T;const r={currentStepId:"find-school",previousStepIds:[],email:e.email,userType:In.Staff},t=(T=e.geoLocation)!=null&&T.countryCode?e.geoLocation:{countryCode:Ze.US,isFallback:!0},{complete:a,...o}=cae({location:iB.AuthProspectSelect,initialValues:r,externalLogUserAction:c}),[s,u]=je.useState(null);je.useEffect(()=>{dt.get("/ajax/config").then(b=>u(b))},[]);const v=Mre(s==null?void 0:s.gatewayApi),d=je.useMemo(()=>{if(!s)return null;const b={cvApSoutheast1:s.analytics[pn.CvApSoutheast1].collectionApi,cvApSoutheast2:s.analytics[pn.CvApSoutheast2].collectionApi,cvEuWest1:s.analytics[pn.CvEuWest1].collectionApi,cvNaWest1:s.analytics[pn.CvNaWest1].collectionApi};return new hte({productName:"auth.web",productVersion:s.version,regionName:Zt.getRegionName(t==null?void 0:t.countryCode),collectionApiUrls:b,collectionApiClientId:"cv_auth",getUser:()=>null,logAttributionData:!0,logUtmParameters:!0})},[s]),h=je.useMemo(()=>{if(!(s!=null&&s.braze))return null;const b=s.braze[Zt.getRegionName(t==null?void 0:t.countryCode)];return new Nl.BrazeClient({apiOptions:{apiKey:b.apiKey,baseUrl:b.url,productName:"auth.web",productVersion:s.version,allowUserSuppliedJavascript:!1,automaticallyShowInAppMessages:!1}})},[s]);Dre({additionalData:e.additionalData});function f(b){var y;if(!h)return;const I=_i.getDecodedAttributionData(),m=((y=b.event)==null?void 0:y.additionalData)||{};I!=null&&I.originalReferrer&&(m.original_referrer=I.originalReferrer),I!=null&&I.internalReferrer&&(m.internal_referrer=I.internalReferrer);const p={...b.event,additionalData:m};h.setUserInit(b.user),h.event.log(p)}function c(b,I){d==null||d.log({type:I.actionType,data:b,actionContext:{productArea:"prospect_select",entity:I.entity,location:I.location,descriptor:I.descriptor,workflowPhase:I.workflowPhase},eventVersion:I.eventVersion||oB.V1})}function _(b){if(!b.trialCreated){a(b);return}dt.post("/ajax/login/select-customer",{customerId:b.customerId,returnUrl:e.returnUrl}).then(I=>Pt(I,e))}function E(){e.navigate({step:e.backStep,backStep:null})}async function S(b){var I;try{return(I=(await dt.get(v.prospectLookups(b))).find(p=>p.type===td.CrmId))==null?void 0:I.externalId}catch{return}}if(!s)return A.jsx(A.Fragment,{});const w={...o,complete:_,googleMapsApiKey:s.googleMapsApiKey,ajaxUrls:v,imageUrls:fae,geoLocation:t,productName:Ma.Auth,getSignInUrl:()=>"",logBrazeEvent:f,getCrmIdForProspect:S};return A.jsxs(A.Fragment,{children:[A.jsx(yt,{theme:e.theme,onClickBack:!!e.backStep&&E}),A.jsx(nae,{...w})]})}function hae(e){return A.jsxs("div",{className:"text-center",children:[A.jsx(yt,{theme:e.theme}),A.jsx("img",{className:"img-fluid mb-4",alt:"error",src:"/images/errors/email-not-allowed-v2.png"}),A.jsx("h1",{className:"h2 mb-3",children:"Oops! Make sure to use your school email address"}),A.jsx("p",{className:"mb-3",children:"This includes the email you use to sign in to Google or Microsoft."}),A.jsx("a",{href:e.liteUrl+"sign-up",className:"btn btn-lg btn-dark w-100 text-decoration-none",children:"Try again"})]})}const wB={username:mK,"username-input":uY,"username-or-guest":lY,"guest-selection":OY,password:qY,"select-idp":DY,error:nJ,"verify-email":UY,"verify-email-check-code":HY,"verify-email-link-success":VY,"verify-email-skip-reason":sJ,"forgot-password":GY,"forgot-password-check-code":WY,"reset-password":YY,"change-password":JY,"self-activation":XY,"self-activation-check-code":QY,"verify-email-link-email-in-use":iJ,"verify-email-code-email-in-use":oJ,logout:uJ,loggedout:lJ,"activate-user":Ree,"select-customer":Mee,"trial-expired":$ee,"link-account":Ire,"link-account-code":Are,invite:kre,"invite-success":Pre,"select-user-type":jre,"prospect-select":dae,"email-not-allowed":hae,"organisation-select-customer":cJ,"contact-support":tJ};function vae(e,r){if(r.type!=="navigate")return e;const t=Object.keys(r.data).reduce((a,o)=>{if(o!=="bannerType")return r.data[o]!==void 0&&(a={...a,[o]:r.data[o]}),a},{});return r.data.clearUsername&&(t.username=void 0,t.clearUsername=void 0),{...e,...t}}function pae(e,r){return r.type!=="setBanner"?e:{...e,bannerType:r.data.bannerType}}function gae(e,r){switch(r.type){case"navigate":return vae(e,r);case"setBanner":return pae(e,r)}}const mae="_footer_psbd8_1",yae={footer:mae};function bae(e){return A.jsx("div",{className:"text-center p-2 text-secondary small",children:A.jsxs("ul",{className:"d-flex flex-wrap list-unstyled justify-content-center",children:[A.jsx("li",{children:A.jsxs("span",{children:["2003 - ",new Date().getFullYear()," © ClickView Pty Limited"]})})," | ",A.jsx("li",{children:A.jsx("a",{href:e.privacyPolicyUrl,className:"text-secondary",children:A.jsx("strong",{children:"Privacy Policy"})})})," | ",A.jsx("li",{children:A.jsx("a",{href:e.termsAndConditionsUrl,className:"text-secondary",children:A.jsx("strong",{children:"Terms and Conditions"})})})," | ",A.jsx("li",{children:A.jsx("span",{children:e.version})})]})})}function _ae(e){return A.jsx("footer",{className:yae.footer,children:A.jsx(bae,{...e})})}function Sae(){return A.jsx("svg",{viewBox:"0 0 434 71",children:A.jsxs("g",{children:[A.jsx("path",{fill:"#000000",d:"M114.44 56.57l3.5 3.5a32.87 32.87 0 0 1-25.16 11.26c-19.63 0-33.62-15.54-33.62-35.16C59.16 16.55 73.16 1 92.78 1a32.31 32.31 0 0 1 24.19 10.4l-3.6 3.3a27.32 27.32 0 0 0-20.59-8.74c-16.91 0-28.39 13.5-28.39 30.21s11.48 30.21 28.39 30.21a28.08 28.08 0 0 0 21.66-9.81zM126.64 1h4.55v70.22h-4.73L126.64 1zm17.3 10.6a3.7 3.7 0 1 1 0 7.4 3.7 3.7 0 0 1 0-7.4zm-2.41 15.07h4.81v44.56h-4.81V26.67zm48 33.15l3.33 3.15a21.8 21.8 0 0 1-17.31 8.61c-12.59 0-21.76-10-21.76-22.22 0-12.22 9.17-22.22 21.76-22.22a21.84 21.84 0 0 1 16.85 8l-3.43 3.06a17.15 17.15 0 0 0-13.42-6.3c-10.09 0-16.76 8.15-16.76 17.5s6.67 17.5 16.76 17.5a17.38 17.38 0 0 0 13.98-7.08zm14.99-9.33v20.74h-4.73V1.01h4.73v47.75l20.74-19.02h6.64l-21.56 19.84L234 71.23h-7.01l-22.47-20.74z"}),A.jsx("path",{fill:"#F8981D",d:"M304.09 19.4a5.56 5.56 0 1 1 0-11.12 5.56 5.56 0 0 1 0 11.12zm-5.56 7.27h11.11v44.56h-11.11V26.67zm61.42 22.15c0 .81 0 2.42-.09 4h-31.75c.8 3.77 5.2 8.61 11.93 8.61a17.11 17.11 0 0 0 11.66-4.31l5.38 8.16a27.23 27.23 0 0 1-17 6.1c-12.92 0-22.88-9.87-22.88-22.34s9.06-22.33 21.35-22.33c11.62-.04 21.4 9.02 21.4 22.11zm-10.77-3.76c-.18-3.68-3.58-8.62-10.67-8.62-6.91 0-10.05 4.85-10.4 8.62h21.07zM385.92 71h-6.42l-19.64-44.37h13.97l9.16 23.98 9.72-23.98h8.31l9.63 23.98 9.16-23.98h13.97L414.24 71h-6.52l-10.85-23.7L385.92 71zm-120.22.35h-6L226.11 1.01h17.01l19.42 44.18 18.08-44.18h16.91L265.7 71.35zM0 1l41 35L0 71V1z"})]})})}var Vo=(e=>(e[e.Audience=1]="Audience",e[e.Category=2]="Category",e[e.Channel=3]="Channel",e[e.Chapter=4]="Chapter",e[e.Comment=5]="Comment",e[e.OwnerComment=6]="OwnerComment",e[e.Image=7]="Image",e[e.Thumbnail=8]="Thumbnail",e[e.Avatar=9]="Avatar",e[e.Banner=10]="Banner",e[e.Video=11]="Video",e[e.Trailer=12]="Trailer",e[e.Rating=13]="Rating",e[e.Topic=14]="Topic",e[e.Series=15]="Series",e[e.Season=16]="Season",e[e.HostedMediaObjectCollection=17]="HostedMediaObjectCollection",e[e.ExchangeCollection=18]="ExchangeCollection",e[e.CustomMediaObjectCollection=19]="CustomMediaObjectCollection",e[e.Playlist=20]="Playlist",e[e.ClickViewTvCollection=21]="ClickViewTvCollection",e[e.ClickViewProductionsCollection=22]="ClickViewProductionsCollection",e[e.User=23]="User",e[e.SystemUser=24]="SystemUser",e[e.Customer=25]="Customer",e[e.Country=26]="Country",e[e.Organisation=28]="Organisation",e[e.SystemOrganisation=29]="SystemOrganisation",e[e.Group=30]="Group",e[e.SystemGroup=31]="SystemGroup",e[e.FlagReason=32]="FlagReason",e[e.Library=33]="Library",e[e.Interactive=34]="Interactive",e[e.WorkspaceCollection=35]="WorkspaceCollection",e[e.Conversation=36]="Conversation",e[e.Message=37]="Message",e[e.Notification=38]="Notification",e[e.Clip=39]="Clip",e[e.Link=40]="Link",e[e.UserChannel=41]="UserChannel",e[e.Resource=42]="Resource",e[e.VideoStream=43]="VideoStream",e[e.AudioStream=44]="AudioStream",e[e.Tag=45]="Tag",e[e.Subtitle=46]="Subtitle",e[e.LicencedContentCollection=47]="LicencedContentCollection",e[e.PublicCollection=48]="PublicCollection",e[e.CategoryTree=49]="CategoryTree",e[e.Logo=50]="Logo",e[e.Permission=51]="Permission",e[e.Subject=52]="Subject",e[e.Field=53]="Field",e[e.Company=54]="Company",e[e.Person=55]="Person",e[e.Cover=56]="Cover",e[e.Poster=57]="Poster",e[e.SubjectAudience=58]="SubjectAudience",e[e.TallPoster=60]="TallPoster",e[e.Classroom=67]="Classroom",e[e.ClassroomGroup=68]="ClassroomGroup",e[e.UserProfile=74]="UserProfile",e[e.PartnerProfile=78]="PartnerProfile",e[e.LearningLevel=79]="LearningLevel",e))(Vo||{});const wae="_left_1r3w0_1",Eae="_leftWithImage_1r3w0_10",Cae="_bgCover_1r3w0_14",xae="_bgFull_1r3w0_17",Iae="_right_1r3w0_20",Aae="_rightContent_1r3w0_28",Tae="_narrowContent_1r3w0_34",Rae="_logo_1r3w0_37",Oae="_buttonContainer_1r3w0_43",kae="_blur_1r3w0_53",Pae="_imageContainer_1r3w0_65",Nae="_imagePosition_1r3w0_73",jae="_image_1r3w0_65",qae="_thumbnail_1r3w0_87",Dae="_tallposter_1r3w0_90",Lae="_cover_1r3w0_96",Mae="_contentBody_1r3w0_102",Uae="_contentBodyBase_1r3w0_106",Dt={left:wae,leftWithImage:Eae,bgCover:Cae,bgFull:xae,right:Iae,rightContent:Aae,narrowContent:Tae,logo:Rae,buttonContainer:Oae,blur:kae,imageContainer:Pae,imagePosition:Nae,image:jae,thumbnail:qae,tallposter:Dae,cover:Lae,contentBody:Mae,contentBodyBase:Uae};function Fae(e){switch(e){case Vo.Video:case Vo.Interactive:case Vo.Clip:return Dt.thumbnail;case Vo.Subject:case Vo.Playlist:return Dt.cover;case Vo.Series:return Dt.tallposter;default:return""}}function An(e){return A.jsx("div",{className:"d-flex",children:e.children})}function Bae(e){return A.jsx("div",{className:`${Dt.left} ${e.className?e.className:""}`,children:e.children})}function $ae(e){const[r,t]=je.useState(!1),[a,o]=je.useState("");return je.useEffect(()=>{if(!e.imageUrl){const u=e.fallbackImages[Math.floor(Math.random()*e.fallbackImages.length)];o(u.bgUrl);return}const s=new Image;return s.onload=()=>t(!0),s.src=e.imageUrl,()=>s.onload=null},[e.imageUrl]),A.jsx("div",{className:`${Dt.left} ${Dt.leftWithImage} ${Dt.bgCover} bg-light`,style:{backgroundImage:a?`url('${a}')`:""},children:r&&A.jsxs(A.Fragment,{children:[A.jsx("div",{className:Dt.blur,style:{backgroundImage:`url('${e.imageUrl}')`}}),A.jsx("div",{className:`${Dt.imageContainer} ${Fae(e.objectType)}`,children:A.jsx("div",{className:Dt.imagePosition,children:A.jsx("img",{className:Dt.image,src:e.imageUrl,alt:e.title})})})]})})}function zae(e){const[r,t]=je.useState("");return je.useEffect(()=>{const a=e.images[Math.floor(Math.random()*e.images.length)];t(a.bgUrl)},[]),A.jsx("div",{className:`${Dt.left} bg-blue d-flex align-items-center`,children:r&&A.jsx("img",{className:"img-fluid",src:r,draggable:!1})})}const Zae={cover:Dt.bgCover,full:Dt.bgFull};function Hae(e){const r={backgroundImage:e.imageUrl?`url("${e.imageUrl}")`:""};return e.backgroundColor&&(r.backgroundColor=e.backgroundColor),A.jsx("div",{className:`${Dt.left} ${Dt.leftWithImage} ${Zae[e.imageSize||"cover"]} d-flex align-items-center`,style:r,title:e.title})}function Vae(e){return A.jsx("div",{className:`${Dt.right} ${e.className?e.className:""}`,children:e.children})}function Gae(e){var t;const r=(e==null?void 0:e.logoComponent)||Sae;return A.jsxs("div",{className:"position-relative",children:[!!e.bannerComponent&&e.bannerComponent,A.jsx("div",{className:Ua(Dt.logo,"position-absolute",(t=e.className)==null?void 0:t.logoContainer),children:A.jsx(r,{})}),e.children]})}function Wae(e){return A.jsx("div",{className:Ua(Dt.rightContent,"d-flex flex-column justify-content-center h-100",e==null?void 0:e.className),children:e.children})}const Kae={base:Dt.contentBodyBase,full:""};function Yae(e){const r=Kae[e.width||"base"];return A.jsx("div",{className:Ua(Dt.contentBody,r,"m-auto p-3",e.className),children:e.children})}An.NarrowContent=Jae;function Jae(e){return A.jsx("div",{className:`${Dt.narrowContent} mx-auto w-100 ${e.className?e.className:""}`,children:e.children})}function Xae(e){return A.jsx("div",{className:Ua("position-fixed bg-white d-flex align-items-center",Dt.buttonContainer,e==null?void 0:e.className),children:e.children})}An.Left=Bae;An.LeftImage=$ae;An.LeftProductImage=zae;An.LeftImageWithBackground=Hae;An.Right=Vae;An.Header=Gae;An.Content=Wae;An.ContentBody=Yae;An.Buttons=Xae;function Qae(){function e(t){t.key==="Tab"&&(document.body.classList.add("user-is-tabbing"),window.removeEventListener("keydown",e),window.addEventListener("mousedown",r))}function r(){document.body.classList.remove("user-is-tabbing"),window.removeEventListener("mousedown",r),window.addEventListener("keydown",e)}Nr.useEffect(()=>(window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)),[])}const eie="_full_vw1kz_1",rie="_themeBannerClearance_vw1kz_9",OL={full:eie,themeBannerClearance:rie};function tie(e){return e.imageType==="background"?A.jsx(An.LeftImageWithBackground,{imageUrl:e.imageUrl}):e.imageType==="image"?A.jsx(An.LeftImageWithBackground,{imageUrl:e.imageUrl,imageSize:"full",backgroundColor:e.backgroundColor,title:e.title}):A.jsx(A.Fragment,{})}function nie(e){var I,m;const{children:r,footer:t,bannerType:a,theme:o}=e,[s,u]=Nr.useState(null);Qae();const{imageUrls:v,imageType:d,backgroundColor:h,banner:f,title:c,logoComponent:_,bannerSpacer:E}=za.getDefinition(o),S=v[(m=(I=e.geoLocation)==null?void 0:I.countryCode)==null?void 0:m.toLowerCase()]||v.default;Nr.useEffect(()=>{const p=Math.floor(Math.random()*S.length);u(S[p])},[]);const w=d!=="none",T=!!a,b=["plugin"].includes(a);return A.jsxs(An,{children:[w&&A.jsx(tie,{title:c,imageUrl:s,imageType:d,backgroundColor:h}),A.jsxs(An.Right,{className:Ua(!w&&OL.full),children:[A.jsx(An.Header,{bannerComponent:!!f&&A.jsx(A3,{bannerType:f}),logoComponent:_,className:{logoContainer:!!f&&OL.themeBannerClearance}}),A.jsxs(An.Content,{className:Ua(!w&&"px-0 w-100","pb-0"),children:[!b&&A.jsx(A3,{bannerType:a}),A.jsxs(An.ContentBody,{children:[r,!b&&T&&A.jsx(E,{})]}),A.jsx(_ae,{...t})]})]})]})}function aie(e){const{step:r,returnUrl:t,data:a={},footer:o,geoLocation:s,theme:u,additionalData:v}=e,[d,h]=Nr.useReducer(gae,{step:r,returnUrl:t,geoLocation:s,theme:u,additionalData:v,...a});function f(_){h({type:"navigate",data:_})}const c=wB[d.step];return c||Pt({step:r,data:a},null),A.jsxs(A.Fragment,{children:[A.jsx(nie,{footer:{...o,...d},bannerType:d.bannerType,step:r,theme:u,geoLocation:s,children:!!c&&A.jsx(c,{navigate:f,dispatch:h,...d})}),!1]})}function iie(e){var c;const{id:r,returnUrl:t,footer:a,region:o,config:s,theme:u,additionalData:v}=e,d=e.currentStep||{},h=document.getElementById(r);vK.createRoot(h).render(A.jsx(aie,{returnUrl:t,step:d.step,data:{...s,...d.data},footer:a,geoLocation:o,theme:((c=d.data)==null?void 0:c.theme)||u,additionalData:v}))}window.cvauth={start:iie};
|
|
78
|
+
//# sourceMappingURL=index-CYMe75aH.js.map
|