@forgerock/login-widget 0.0.0-beta-20260330171021
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/LICENSE +21 -0
- package/README.md +517 -0
- package/dist/core/component.store.d.ts +40 -0
- package/dist/core/interfaces.d.ts +12 -0
- package/dist/core/journey/config.store.d.ts +114 -0
- package/dist/core/journey/journey.interfaces.d.ts +83 -0
- package/dist/core/links.store.d.ts +34 -0
- package/dist/core/locale.store.d.ts +966 -0
- package/dist/core/oauth/oauth.store.d.ts +38 -0
- package/dist/core/sdk.config.d.ts +257 -0
- package/dist/core/style.store.d.ts +184 -0
- package/dist/core/user/user.store.d.ts +37 -0
- package/dist/index.d.ts +54 -0
- package/dist/index.js +11726 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces.d.ts +61 -0
- package/dist/types.d.ts +79 -0
- package/dist/widget.css +1 -0
- package/dist/widget.iife.js +32 -0
- package/dist/widget.iife.js.map +1 -0
- package/package.json +75 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var ForgeRockLoginWidget=function(gn){"use strict";"use strict";var QE=Object.defineProperty;var Sg=gn=>{throw TypeError(gn)};var eS=(gn,kn,on)=>kn in gn?QE(gn,kn,{enumerable:!0,configurable:!0,writable:!0,value:on}):gn[kn]=on;var di=(gn,kn,on)=>eS(gn,typeof kn!="symbol"?kn+"":kn,on),Ic=(gn,kn,on)=>kn.has(gn)||Sg("Cannot "+on);var ge=(gn,kn,on)=>(Ic(gn,kn,"read from private field"),on?on.call(gn):kn.get(gn)),nn=(gn,kn,on)=>kn.has(gn)?Sg("Cannot add the same private member more than once"):kn instanceof WeakSet?kn.add(gn):kn.set(gn,on),qt=(gn,kn,on,Oi)=>(Ic(gn,kn,"write to private field"),Oi?Oi.call(gn,on):kn.set(gn,on),on),Bn=(gn,kn,on)=>(Ic(gn,kn,"access private method"),on);var hg,ga,Ss,Ga,ks,Cs,Is,pa,Si,Ts,vr,Tc,Ac,Oc,Pc,Mr,Eo,ki,Wa,yr,Ci,Rr,li,ji,qa,ma,As,Os,Ps,zi,Dl,Nn,kg,Cg,Ig,xc,Bl,Vl,Lc,gg,Gi,Kr,pg,ui,Ii,Dr,Ka,So,ko,Nl;function kn(n,e){for(var t=0;t<e.length;t++){const a=e[t];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in n)){const r=Object.getOwnPropertyDescriptor(a,s);r&&Object.defineProperty(n,s,r.get?r:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}const on=2,Oi=4,ba=8,Hl=1<<24,qi=16,Yr=32,wa=64,jl=128,Nr=512,qn=1024,Xn=2048,Ur=4096,rr=8192,fi=16384,Ea=32768,Sa=65536,Mc=1<<17,Og=1<<18,Xa=1<<19,Rc=1<<20,hi=1<<25,ka=65536,zl=1<<21,Gl=1<<22,Ki=1<<23,Yi=Symbol("$state"),Wl=Symbol("legacy props"),Pg=Symbol(""),Ca=new class extends Error{constructor(){super(...arguments);di(this,"name","StaleReactionError");di(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},Dc=!!((hg=globalThis.document)!=null&&hg.contentType)&&globalThis.document.contentType.includes("xml"),Us=3,$a=8,ql=!1;var Nc=Array.isArray,xg=Array.prototype.indexOf,Qa=Array.prototype.includes,Mo=Array.from,Kl=Object.defineProperty,Pi=Object.getOwnPropertyDescriptor,Uc=Object.getOwnPropertyDescriptors,Lg=Object.prototype,Mg=Array.prototype,Yl=Object.getPrototypeOf,Fc=Object.isExtensible;function Fs(n){return typeof n=="function"}const xi=()=>{};function Rg(n){return n()}function Ro(n){for(var e=0;e<n.length;e++)n[e]()}function Bc(){var n,e,t=new Promise((a,s)=>{n=a,e=s});return{promise:t,resolve:n,reject:e}}function Vc(n){return n===this.v}function Hc(n,e){return n!=n?e==e:n!==e||n!==null&&typeof n=="object"||typeof n=="function"}function jc(n){return!Hc(n,this.v)}function zc(n){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Dg(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ng(n,e,t){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Ug(n){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Fg(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Bg(n){throw new Error("https://svelte.dev/e/effect_orphan")}function Vg(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Hg(){throw new Error("https://svelte.dev/e/hydration_failed")}function jg(n){throw new Error("https://svelte.dev/e/lifecycle_legacy_only")}function zg(n){throw new Error("https://svelte.dev/e/props_invalid_value")}function Gg(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Wg(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function qg(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Kg(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}let es=!1,Yg=!1;function Zg(){es=!0}const Jg=1,Xg=2,Gc=4,$g=8,Qg=16,ep=1,tp=2,np=4,rp=8,ip=16,ap=1,sp=2,Zl="[",Jl="[!",Wc="[?",Xl="]",Ia={},$n=Symbol(),qc="http://www.w3.org/1999/xhtml",op="http://www.w3.org/2000/svg",lp="http://www.w3.org/1998/Math/MathML";let bn=null;function ts(n){bn=n}function et(n,e=!1,t){bn={p:bn,i:!1,c:null,e:null,s:n,x:null,l:es&&!e?{s:null,u:null,$:[]}:null}}function tt(n){var e=bn,t=e.e;if(t!==null){e.e=null;for(var a of t)Cd(a)}return n!==void 0&&(e.x=n),e.i=!0,bn=e.p,n??{}}function ns(){return!es||bn!==null&&bn.l===null}let Ta=[];function Kc(){var n=Ta;Ta=[],Ro(n)}function gi(n){if(Ta.length===0&&!Hs){var e=Ta;queueMicrotask(()=>{e===Ta&&Kc()})}Ta.push(n)}function up(){for(;Ta.length>0;)Kc()}function Bs(n){console.warn("https://svelte.dev/e/hydration_mismatch")}function cp(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}let Gt=!1;function Zr(n){Gt=n}let Bt;function Qn(n){if(n===null)throw Bs(),Ia;return Bt=n}function Li(){return Qn(Jr(Bt))}function pe(n){if(Gt){if(Jr(Bt)!==null)throw Bs(),Ia;Bt=n}}function An(n=1){if(Gt){for(var e=n,t=Bt;e--;)t=Jr(t);Bt=t}}function Vs(n=!0){for(var e=0,t=Bt;;){if(t.nodeType===$a){var a=t.data;if(a===Xl){if(e===0)return t;e-=1}else(a===Zl||a===Jl||a[0]==="["&&!isNaN(Number(a.slice(1))))&&(e+=1)}var s=Jr(t);n&&t.remove(),t=s}}function $l(n){if(!n||n.nodeType!==$a)throw Bs(),Ia;return n.data}function rs(n){if(typeof n!="object"||n===null||Yi in n)return n;const e=Yl(n);if(e!==Lg&&e!==Mg)return n;var t=new Map,a=Nc(n),s=Qi(0),r=Pa,i=o=>{if(Pa===r)return o();var l=rn,u=Pa;Br(null),yd(r);var c=o();return Br(l),yd(u),c};return a&&t.set("length",Qi(n.length)),new Proxy(n,{defineProperty(o,l,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Gg();var c=t.get(l);return c===void 0?i(()=>{var d=Qi(u.value);return t.set(l,d),d}):ee(c,u.value,!0),!0},deleteProperty(o,l){var u=t.get(l);if(u===void 0){if(l in o){const c=i(()=>Qi($n));t.set(l,c),zs(s)}}else ee(u,$n),zs(s);return!0},get(o,l,u){var h;if(l===Yi)return n;var c=t.get(l),d=l in o;if(c===void 0&&(!d||(h=Pi(o,l))!=null&&h.writable)&&(c=i(()=>{var p=rs(d?o[l]:$n),m=Qi(p);return m}),t.set(l,c)),c!==void 0){var f=_(c);return f===$n?void 0:f}return Reflect.get(o,l,u)},getOwnPropertyDescriptor(o,l){var u=Reflect.getOwnPropertyDescriptor(o,l);if(u&&"value"in u){var c=t.get(l);c&&(u.value=_(c))}else if(u===void 0){var d=t.get(l),f=d==null?void 0:d.v;if(d!==void 0&&f!==$n)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return u},has(o,l){var f;if(l===Yi)return!0;var u=t.get(l),c=u!==void 0&&u.v!==$n||Reflect.has(o,l);if(u!==void 0||ln!==null&&(!c||(f=Pi(o,l))!=null&&f.writable)){u===void 0&&(u=i(()=>{var h=c?rs(o[l]):$n,p=Qi(h);return p}),t.set(l,u));var d=_(u);if(d===$n)return!1}return c},set(o,l,u,c){var y;var d=t.get(l),f=l in o;if(a&&l==="length")for(var h=u;h<d.v;h+=1){var p=t.get(h+"");p!==void 0?ee(p,$n):h in o&&(p=i(()=>Qi($n)),t.set(h+"",p))}if(d===void 0)(!f||(y=Pi(o,l))!=null&&y.writable)&&(d=i(()=>Qi(void 0)),ee(d,rs(u)),t.set(l,d));else{f=d.v!==$n;var m=i(()=>rs(u));ee(d,m)}var w=Reflect.getOwnPropertyDescriptor(o,l);if(w!=null&&w.set&&w.set.call(c,u),!f){if(a&&typeof l=="string"){var E=t.get("length"),v=Number(l);Number.isInteger(v)&&v>=E.v&&ee(E,v+1)}zs(s)}return!0},ownKeys(o){_(s);var l=Reflect.ownKeys(o).filter(d=>{var f=t.get(d);return f===void 0||f.v!==$n});for(var[u,c]of t)c.v!==$n&&!(u in o)&&l.push(u);return l},setPrototypeOf(){Wg()}})}var Yc,Zc,Jc,Xc;function Ql(){if(Yc===void 0){Yc=window,Zc=/Firefox/.test(navigator.userAgent);var n=Element.prototype,e=Node.prototype,t=Text.prototype;Jc=Pi(e,"firstChild").get,Xc=Pi(e,"nextSibling").get,Fc(n)&&(n.__click=void 0,n.__className=void 0,n.__attributes=null,n.__style=void 0,n.__e=void 0),Fc(t)&&(t.__t=void 0)}}function cr(n=""){return document.createTextNode(n)}function Fr(n){return Jc.call(n)}function Jr(n){return Xc.call(n)}function _e(n,e){if(!Gt)return Fr(n);var t=Fr(Bt);if(t===null)t=Bt.appendChild(cr());else if(e&&t.nodeType!==Us){var a=cr();return t==null||t.before(a),Qn(a),a}return e&&Do(t),Qn(t),t}function lt(n,e=!1){if(!Gt){var t=Fr(n);return t instanceof Comment&&t.data===""?Jr(t):t}if(e){if((Bt==null?void 0:Bt.nodeType)!==Us){var a=cr();return Bt==null||Bt.before(a),Qn(a),a}Do(Bt)}return Bt}function ke(n,e=1,t=!1){let a=Gt?Bt:n;for(var s;e--;)s=a,a=Jr(a);if(!Gt)return a;if(t){if((a==null?void 0:a.nodeType)!==Us){var r=cr();return a===null?s==null||s.after(r):a.before(r),Qn(r),r}Do(a)}return Qn(a),a}function $c(n){n.textContent=""}function Qc(){return!1}function ed(n,e,t){return document.createElementNS(e??qc,n,void 0)}function Do(n){if(n.nodeValue.length<65536)return;let e=n.nextSibling;for(;e!==null&&e.nodeType===Us;)e.remove(),n.nodeValue+=e.nodeValue,e=n.nextSibling}function td(n){var e=ln;if(e===null)return rn.f|=Ki,n;if(!(e.f&Ea)&&!(e.f&Oi))throw n;Zi(n,e)}function Zi(n,e){for(;e!==null;){if(e.f&jl){if(!(e.f&Ea))throw n;try{e.b.error(n);return}catch(t){n=t}}e=e.parent}throw n}const dp=-7169;function Dn(n,e){n.f=n.f&dp|e}function eu(n){n.f&Nr||n.deps===null?Dn(n,qn):Dn(n,Ur)}function nd(n){if(n!==null)for(const e of n)!(e.f&on)||!(e.f&ka)||(e.f^=ka,nd(e.deps))}function rd(n,e,t){n.f&Xn?e.add(n):n.f&Ur&&t.add(n),nd(n.deps),Dn(n,qn)}const No=new Set;let Yt=null,tu=null,er=null,dr=[],Uo=null,Hs=!1,is=null,fp=1;const wc=class wc{constructor(){nn(this,vr);di(this,"id",fp++);di(this,"current",new Map);di(this,"previous",new Map);nn(this,ga,new Set);nn(this,Ss,new Set);nn(this,Ga,0);nn(this,ks,0);nn(this,Cs,null);nn(this,Is,new Set);nn(this,pa,new Set);nn(this,Si,new Map);di(this,"is_fork",!1);nn(this,Ts,!1)}skip_effect(e){ge(this,Si).has(e)||ge(this,Si).set(e,{d:[],m:[]})}unskip_effect(e){var t=ge(this,Si).get(e);if(t){ge(this,Si).delete(e);for(var a of t.d)Dn(a,Xn),pi(a);for(a of t.m)Dn(a,Ur),pi(a)}}process(e){var s;dr=[],this.apply();var t=is=[],a=[];for(const r of e)Bn(this,vr,Ac).call(this,r,t,a);if(is=null,Bn(this,vr,Tc).call(this)){Bn(this,vr,Oc).call(this,a),Bn(this,vr,Oc).call(this,t);for(const[r,i]of ge(this,Si))ld(r,i)}else{tu=this,Yt=null;for(const r of ge(this,ga))r(this);ge(this,ga).clear(),ge(this,Ga)===0&&Bn(this,vr,Pc).call(this),ad(a),ad(t),ge(this,Is).clear(),ge(this,pa).clear(),tu=null,(s=ge(this,Cs))==null||s.resolve()}er=null}capture(e,t){t!==$n&&!this.previous.has(e)&&this.previous.set(e,t),e.f&Ki||(this.current.set(e,e.v),er==null||er.set(e,e.v))}activate(){Yt=this,this.apply()}deactivate(){Yt===this&&(Yt=null,er=null)}flush(){var e;if(dr.length>0)Yt=this,id();else if(ge(this,Ga)===0&&!this.is_fork){for(const t of ge(this,ga))t(this);ge(this,ga).clear(),Bn(this,vr,Pc).call(this),(e=ge(this,Cs))==null||e.resolve()}this.deactivate()}discard(){for(const e of ge(this,Ss))e(this);ge(this,Ss).clear()}increment(e){qt(this,Ga,ge(this,Ga)+1),e&&qt(this,ks,ge(this,ks)+1)}decrement(e){qt(this,Ga,ge(this,Ga)-1),e&&qt(this,ks,ge(this,ks)-1),!ge(this,Ts)&&(qt(this,Ts,!0),gi(()=>{qt(this,Ts,!1),Bn(this,vr,Tc).call(this)?dr.length>0&&this.flush():this.revive()}))}revive(){for(const e of ge(this,Is))ge(this,pa).delete(e),Dn(e,Xn),pi(e);for(const e of ge(this,pa))Dn(e,Ur),pi(e);this.flush()}oncommit(e){ge(this,ga).add(e)}ondiscard(e){ge(this,Ss).add(e)}settled(){return(ge(this,Cs)??qt(this,Cs,Bc())).promise}static ensure(){if(Yt===null){const e=Yt=new wc;No.add(Yt),Hs||gi(()=>{Yt===e&&e.flush()})}return Yt}apply(){}};ga=new WeakMap,Ss=new WeakMap,Ga=new WeakMap,ks=new WeakMap,Cs=new WeakMap,Is=new WeakMap,pa=new WeakMap,Si=new WeakMap,Ts=new WeakMap,vr=new WeakSet,Tc=function(){return this.is_fork||ge(this,ks)>0},Ac=function(e,t,a){e.f^=qn;for(var s=e.first;s!==null;){var r=s.f,i=(r&(Yr|wa))!==0,o=i&&(r&qn)!==0,l=(r&rr)!==0,u=o||ge(this,Si).has(s);if(!u&&s.fn!==null){i?l||(s.f^=qn):r&Oi?t.push(s):r&(ba|Hl)&&l?a.push(s):ss(s)&&(xa(s),r&qi&&(ge(this,pa).add(s),l&&Dn(s,Xn)));var c=s.first;if(c!==null){s=c;continue}}for(;s!==null;){var d=s.next;if(d!==null){s=d;break}s=s.parent}}},Oc=function(e){for(var t=0;t<e.length;t+=1)rd(e[t],ge(this,Is),ge(this,pa))},Pc=function(){var r;if(No.size>1){this.previous.clear();var e=Yt,t=er,a=!0;for(const i of No){if(i===this){a=!1;continue}const o=[];for(const[u,c]of this.current){if(i.current.has(u))if(a&&c!==i.current.get(u))i.current.set(u,c);else continue;o.push(u)}if(o.length===0)continue;const l=[...i.current.keys()].filter(u=>!this.current.has(u));if(l.length>0){var s=dr;dr=[];const u=new Set,c=new Map;for(const d of o)sd(d,l,u,c);if(dr.length>0){Yt=i,i.apply();for(const d of dr)Bn(r=i,vr,Ac).call(r,d,[],[]);i.deactivate()}dr=s}}Yt=e,er=t}ge(this,Si).clear(),No.delete(this)};let Ji=wc;function L(n){var e=Hs;Hs=!0;try{for(var t;;){if(up(),dr.length===0&&(Yt==null||Yt.flush(),dr.length===0))return Uo=null,t;id()}}finally{Hs=e}}function id(){var n=null;try{for(var e=0;dr.length>0;){var t=Ji.ensure();if(e++>1e3){var a,s;hp()}t.process(dr),$i.clear()}}finally{dr=[],Uo=null,is=null}}function hp(){try{Vg()}catch(n){Zi(n,Uo)}}let Xr=null;function ad(n){var e=n.length;if(e!==0){for(var t=0;t<e;){var a=n[t++];if(!(a.f&(fi|rr))&&ss(a)&&(Xr=new Set,xa(a),a.deps===null&&a.first===null&&a.nodes===null&&a.teardown===null&&a.ac===null&&Ad(a),(Xr==null?void 0:Xr.size)>0)){$i.clear();for(const s of Xr){if(s.f&(fi|rr))continue;const r=[s];let i=s.parent;for(;i!==null;)Xr.has(i)&&(Xr.delete(i),r.push(i)),i=i.parent;for(let o=r.length-1;o>=0;o--){const l=r[o];l.f&(fi|rr)||xa(l)}}Xr.clear()}}Xr=null}}function sd(n,e,t,a){if(!t.has(n)&&(t.add(n),n.reactions!==null))for(const s of n.reactions){const r=s.f;r&on?sd(s,e,t,a):r&(Gl|qi)&&!(r&Xn)&&od(s,e,a)&&(Dn(s,Xn),pi(s))}}function od(n,e,t){const a=t.get(n);if(a!==void 0)return a;if(n.deps!==null)for(const s of n.deps){if(Qa.call(e,s))return!0;if(s.f&on&&od(s,e,t))return t.set(s,!0),!0}return t.set(n,!1),!1}function pi(n){var e=Uo=n,t=e.b;if(t!=null&&t.is_pending&&n.f&(Oi|ba|Hl)&&!(n.f&Ea)){t.defer_effect(n);return}for(;e.parent!==null;){e=e.parent;var a=e.f;if(is!==null&&e===ln&&!(n.f&ba))return;if(a&(wa|Yr)){if(!(a&qn))return;e.f^=qn}}dr.push(e)}function ld(n,e){if(!(n.f&Yr&&n.f&qn)){n.f&Xn?e.d.push(n):n.f&Ur&&e.m.push(n),Dn(n,qn);for(var t=n.first;t!==null;)ld(t,e),t=t.next}}function gp(n){let e=0,t=Aa(0),a;return()=>{su()&&(_(t),Ws(()=>(e===0&&(a=Q(()=>n(()=>zs(t)))),e+=1,()=>{gi(()=>{e-=1,e===0&&(a==null||a(),a=void 0,zs(t))})})))}}var pp=Sa|Xa;function mp(n,e,t,a){new vp(n,e,t,a)}class vp{constructor(e,t,a,s){nn(this,Nn);di(this,"parent");di(this,"is_pending",!1);di(this,"transform_error");nn(this,Mr);nn(this,Eo,Gt?Bt:null);nn(this,ki);nn(this,Wa);nn(this,yr);nn(this,Ci,null);nn(this,Rr,null);nn(this,li,null);nn(this,ji,null);nn(this,qa,0);nn(this,ma,0);nn(this,As,!1);nn(this,Os,new Set);nn(this,Ps,new Set);nn(this,zi,null);nn(this,Dl,gp(()=>(qt(this,zi,Aa(ge(this,qa))),()=>{qt(this,zi,null)})));var r;qt(this,Mr,e),qt(this,ki,t),qt(this,Wa,i=>{var o=ln;o.b=this,o.f|=jl,a(i)}),this.parent=ln.b,this.transform_error=s??((r=this.parent)==null?void 0:r.transform_error)??(i=>i),qt(this,yr,qs(()=>{if(Gt){const i=ge(this,Eo);Li();const o=i.data===Jl;if(i.data.startsWith(Wc)){const u=JSON.parse(i.data.slice(Wc.length));Bn(this,Nn,Cg).call(this,u)}else o?Bn(this,Nn,Ig).call(this):Bn(this,Nn,kg).call(this)}else Bn(this,Nn,xc).call(this)},pp)),Gt&&qt(this,Mr,Bt)}defer_effect(e){rd(e,ge(this,Os),ge(this,Ps))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!ge(this,ki).pending}update_pending_count(e){Bn(this,Nn,Lc).call(this,e),qt(this,qa,ge(this,qa)+e),!(!ge(this,zi)||ge(this,As))&&(qt(this,As,!0),gi(()=>{qt(this,As,!1),ge(this,zi)&&as(ge(this,zi),ge(this,qa))}))}get_effect_pending(){return ge(this,Dl).call(this),_(ge(this,zi))}error(e){var t=ge(this,ki).onerror;let a=ge(this,ki).failed;if(!t&&!a)throw e;ge(this,Ci)&&(hr(ge(this,Ci)),qt(this,Ci,null)),ge(this,Rr)&&(hr(ge(this,Rr)),qt(this,Rr,null)),ge(this,li)&&(hr(ge(this,li)),qt(this,li,null)),Gt&&(Qn(ge(this,Eo)),An(),Qn(Vs()));var s=!1,r=!1;const i=()=>{if(s){cp();return}s=!0,r&&Kg(),ge(this,li)!==null&&La(ge(this,li),()=>{qt(this,li,null)}),Bn(this,Nn,Vl).call(this,()=>{Ji.ensure(),Bn(this,Nn,xc).call(this)})},o=l=>{try{r=!0,t==null||t(l,i),r=!1}catch(u){Zi(u,ge(this,yr)&&ge(this,yr).parent)}a&&qt(this,li,Bn(this,Nn,Vl).call(this,()=>{Ji.ensure();try{return jr(()=>{var u=ln;u.b=this,u.f|=jl,a(ge(this,Mr),()=>l,()=>i)})}catch(u){return Zi(u,ge(this,yr).parent),null}}))};gi(()=>{var l;try{l=this.transform_error(e)}catch(u){Zi(u,ge(this,yr)&&ge(this,yr).parent);return}l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(o,u=>Zi(u,ge(this,yr)&&ge(this,yr).parent)):o(l)})}}Mr=new WeakMap,Eo=new WeakMap,ki=new WeakMap,Wa=new WeakMap,yr=new WeakMap,Ci=new WeakMap,Rr=new WeakMap,li=new WeakMap,ji=new WeakMap,qa=new WeakMap,ma=new WeakMap,As=new WeakMap,Os=new WeakMap,Ps=new WeakMap,zi=new WeakMap,Dl=new WeakMap,Nn=new WeakSet,kg=function(){try{qt(this,Ci,jr(()=>ge(this,Wa).call(this,ge(this,Mr))))}catch(e){this.error(e)}},Cg=function(e){const t=ge(this,ki).failed;t&&qt(this,li,jr(()=>{t(ge(this,Mr),()=>e,()=>()=>{})}))},Ig=function(){const e=ge(this,ki).pending;e&&(this.is_pending=!0,qt(this,Rr,jr(()=>e(ge(this,Mr)))),gi(()=>{var t=qt(this,ji,document.createDocumentFragment()),a=cr();t.append(a),qt(this,Ci,Bn(this,Nn,Vl).call(this,()=>(Ji.ensure(),jr(()=>ge(this,Wa).call(this,a))))),ge(this,ma)===0&&(ge(this,Mr).before(t),qt(this,ji,null),La(ge(this,Rr),()=>{qt(this,Rr,null)}),Bn(this,Nn,Bl).call(this))}))},xc=function(){try{if(this.is_pending=this.has_pending_snippet(),qt(this,ma,0),qt(this,qa,0),qt(this,Ci,jr(()=>{ge(this,Wa).call(this,ge(this,Mr))})),ge(this,ma)>0){var e=qt(this,ji,document.createDocumentFragment());cu(ge(this,Ci),e);const t=ge(this,ki).pending;qt(this,Rr,jr(()=>t(ge(this,Mr))))}else Bn(this,Nn,Bl).call(this)}catch(t){this.error(t)}},Bl=function(){this.is_pending=!1;for(const e of ge(this,Os))Dn(e,Xn),pi(e);for(const e of ge(this,Ps))Dn(e,Ur),pi(e);ge(this,Os).clear(),ge(this,Ps).clear()},Vl=function(e){var t=ln,a=rn,s=bn;mi(ge(this,yr)),Br(ge(this,yr)),ts(ge(this,yr).ctx);try{return e()}catch(r){return td(r),null}finally{mi(t),Br(a),ts(s)}},Lc=function(e){var t;if(!this.has_pending_snippet()){this.parent&&Bn(t=this.parent,Nn,Lc).call(t,e);return}qt(this,ma,ge(this,ma)+e),ge(this,ma)===0&&(Bn(this,Nn,Bl).call(this),ge(this,Rr)&&La(ge(this,Rr),()=>{qt(this,Rr,null)}),ge(this,ji)&&(ge(this,Mr).before(ge(this,ji)),qt(this,ji,null)))};function yp(n,e,t,a){const s=ns()?js:Te;var r=n.filter(d=>!d.settled);if(t.length===0&&r.length===0){a(e.map(s));return}var i=ln,o=_p(),l=r.length===1?r[0].promise:r.length>1?Promise.all(r.map(d=>d.promise)):null;function u(d){o();try{a(d)}catch(f){i.f&fi||Zi(f,i)}nu()}if(t.length===0){l.then(()=>u(e.map(s)));return}function c(){o(),Promise.all(t.map(d=>wp(d))).then(d=>u([...e.map(s),...d])).catch(d=>Zi(d,i))}l?l.then(c):c()}function _p(){var n=ln,e=rn,t=bn,a=Yt;return function(r=!0){mi(n),Br(e),ts(t),r&&(a==null||a.activate())}}function nu(n=!0){mi(null),Br(null),ts(null),n&&(Yt==null||Yt.deactivate())}function bp(){var n=ln.b,e=Yt,t=n.is_rendered();return n.update_pending_count(1),e.increment(t),()=>{n.update_pending_count(-1),e.decrement(t)}}function js(n){var e=on|Xn,t=rn!==null&&rn.f&on?rn:null;return ln!==null&&(ln.f|=Xa),{ctx:bn,deps:null,effects:null,equals:Vc,f:e,fn:n,reactions:null,rv:0,v:$n,wv:0,parent:t??ln,ac:null}}function wp(n,e,t){ln===null&&Dg();var s=void 0,r=Aa($n),i=!rn,o=new Map;return Rp(()=>{var f;var l=Bc();s=l.promise;try{Promise.resolve(n()).then(l.resolve,l.reject).finally(nu)}catch(h){l.reject(h),nu()}var u=Yt;if(i){var c=bp();(f=o.get(u))==null||f.reject(Ca),o.delete(u),o.set(u,l)}const d=(h,p=void 0)=>{if(u.activate(),p)p!==Ca&&(r.f|=Ki,as(r,p));else{r.f&Ki&&(r.f^=Ki),as(r,h);for(const[m,w]of o){if(o.delete(m),m===u)break;w.reject(Ca)}}c&&c()};l.promise.then(d,h=>d(null,h||"unknown"))}),Vo(()=>{for(const l of o.values())l.reject(Ca)}),new Promise(l=>{function u(c){function d(){c===s?l(r):u(s)}c.then(d,d)}u(s)})}function Xi(n){const e=js(n);return md(e),e}function Te(n){const e=js(n);return e.equals=jc,e}function Ep(n){var e=n.effects;if(e!==null){n.effects=null;for(var t=0;t<e.length;t+=1)hr(e[t])}}function Sp(n){for(var e=n.parent;e!==null;){if(!(e.f&on))return e.f&fi?null:e;e=e.parent}return null}function ru(n){var e,t=ln;mi(Sp(n));try{n.f&=~ka,Ep(n),e=wd(n)}finally{mi(t)}return e}function ud(n){var e=ru(n);if(!n.equals(e)&&(n.wv=_d(),(!(Yt!=null&&Yt.is_fork)||n.deps===null)&&(n.v=e,n.deps===null))){Dn(n,qn);return}ea||(er!==null?(su()||Yt!=null&&Yt.is_fork)&&er.set(n,e):eu(n))}function kp(n){var e,t;if(n.effects!==null)for(const a of n.effects)(a.teardown||a.ac)&&((e=a.teardown)==null||e.call(a),(t=a.ac)==null||t.abort(Ca),a.teardown=xi,a.ac=null,Gs(a,0),lu(a))}function cd(n){if(n.effects!==null)for(const e of n.effects)e.teardown&&xa(e)}let iu=new Set;const $i=new Map;let dd=!1;function Aa(n,e){var t={f:0,v:n,reactions:null,equals:Vc,rv:0,wv:0};return t}function Qi(n,e){const t=Aa(n);return md(t),t}function ue(n,e=!1,t=!0){var s;const a=Aa(n);return e||(a.equals=jc),es&&t&&bn!==null&&bn.l!==null&&((s=bn.l).s??(s.s=[])).push(a),a}function ee(n,e,t=!1){rn!==null&&(!$r||rn.f&Mc)&&ns()&&rn.f&(on|qi|Gl|Mc)&&(Vr===null||!Qa.call(Vr,n))&&qg();let a=t?rs(e):e;return as(n,a)}function as(n,e){if(!n.equals(e)){var t=n.v;ea?$i.set(n,e):$i.set(n,t),n.v=e;var a=Ji.ensure();if(a.capture(n,t),n.f&on){const s=n;n.f&Xn&&ru(s),eu(s)}n.wv=_d(),fd(n,Xn),ns()&&ln!==null&&ln.f&qn&&!(ln.f&(Yr|wa))&&(Hr===null?Tp([n]):Hr.push(n)),!a.is_fork&&iu.size>0&&!dd&&Cp()}return e}function Cp(){dd=!1;for(const n of iu)n.f&qn&&Dn(n,Ur),ss(n)&&xa(n);iu.clear()}function zs(n){ee(n,n.v+1)}function fd(n,e){var t=n.reactions;if(t!==null)for(var a=ns(),s=t.length,r=0;r<s;r++){var i=t[r],o=i.f;if(!(!a&&i===ln)){var l=(o&Xn)===0;if(l&&Dn(i,e),o&on){var u=i;er==null||er.delete(u),o&ka||(o&Nr&&(i.f|=ka),fd(u,Ur))}else l&&(o&qi&&Xr!==null&&Xr.add(i),pi(i))}}}let hd=!1;function gd(){hd||(hd=!0,document.addEventListener("reset",n=>{Promise.resolve().then(()=>{var e;if(!n.defaultPrevented)for(const t of n.target.elements)(e=t.__on_r)==null||e.call(t)})},{capture:!0}))}function Fo(n){var e=rn,t=ln;Br(null),mi(null);try{return n()}finally{Br(e),mi(t)}}function Ip(n,e,t,a=t){n.addEventListener(e,()=>Fo(t));const s=n.__on_r;s?n.__on_r=()=>{s(),a(!0)}:n.__on_r=()=>a(!0),gd()}let Bo=!1,ea=!1;function pd(n){ea=n}let rn=null,$r=!1;function Br(n){rn=n}let ln=null;function mi(n){ln=n}let Vr=null;function md(n){rn!==null&&(Vr===null?Vr=[n]:Vr.push(n))}let fr=null,Ir=0,Hr=null;function Tp(n){Hr=n}let vd=1,Oa=0,Pa=Oa;function yd(n){Pa=n}function _d(){return++vd}function ss(n){var e=n.f;if(e&Xn)return!0;if(e&on&&(n.f&=~ka),e&Ur){for(var t=n.deps,a=t.length,s=0;s<a;s++){var r=t[s];if(ss(r)&&ud(r),r.wv>n.wv)return!0}e&Nr&&er===null&&Dn(n,qn)}return!1}function bd(n,e,t=!0){var a=n.reactions;if(a!==null&&!(Vr!==null&&Qa.call(Vr,n)))for(var s=0;s<a.length;s++){var r=a[s];r.f&on?bd(r,e,!1):e===r&&(t?Dn(r,Xn):r.f&qn&&Dn(r,Ur),pi(r))}}function wd(n){var m;var e=fr,t=Ir,a=Hr,s=rn,r=Vr,i=bn,o=$r,l=Pa,u=n.f;fr=null,Ir=0,Hr=null,rn=u&(Yr|wa)?null:n,Vr=null,ts(n.ctx),$r=!1,Pa=++Oa,n.ac!==null&&(Fo(()=>{n.ac.abort(Ca)}),n.ac=null);try{n.f|=zl;var c=n.fn,d=c();n.f|=Ea;var f=n.deps,h=Yt==null?void 0:Yt.is_fork;if(fr!==null){var p;if(h||Gs(n,Ir),f!==null&&Ir>0)for(f.length=Ir+fr.length,p=0;p<fr.length;p++)f[Ir+p]=fr[p];else n.deps=f=fr;if(su()&&n.f&Nr)for(p=Ir;p<f.length;p++)((m=f[p]).reactions??(m.reactions=[])).push(n)}else!h&&f!==null&&Ir<f.length&&(Gs(n,Ir),f.length=Ir);if(ns()&&Hr!==null&&!$r&&f!==null&&!(n.f&(on|Ur|Xn)))for(p=0;p<Hr.length;p++)bd(Hr[p],n);if(s!==null&&s!==n){if(Oa++,s.deps!==null)for(let w=0;w<t;w+=1)s.deps[w].rv=Oa;if(e!==null)for(const w of e)w.rv=Oa;Hr!==null&&(a===null?a=Hr:a.push(...Hr))}return n.f&Ki&&(n.f^=Ki),d}catch(w){return td(w)}finally{n.f^=zl,fr=e,Ir=t,Hr=a,rn=s,Vr=r,ts(i),$r=o,Pa=l}}function Ap(n,e){let t=e.reactions;if(t!==null){var a=xg.call(t,n);if(a!==-1){var s=t.length-1;s===0?t=e.reactions=null:(t[a]=t[s],t.pop())}}if(t===null&&e.f&on&&(fr===null||!Qa.call(fr,e))){var r=e;r.f&Nr&&(r.f^=Nr,r.f&=~ka),eu(r),kp(r),Gs(r,0)}}function Gs(n,e){var t=n.deps;if(t!==null)for(var a=e;a<t.length;a++)Ap(n,t[a])}function xa(n){var e=n.f;if(!(e&fi)){Dn(n,qn);var t=ln,a=Bo;ln=n,Bo=!0;try{e&(qi|Hl)?Dp(n):lu(n),Id(n);var s=wd(n);n.teardown=typeof s=="function"?s:null,n.wv=vd;var r;ql&&Yg&&n.f&Xn&&n.deps}finally{Bo=a,ln=t}}}async function Op(){await Promise.resolve(),L()}function _(n){var e=n.f,t=(e&on)!==0;if(rn!==null&&!$r){var a=ln!==null&&(ln.f&fi)!==0;if(!a&&(Vr===null||!Qa.call(Vr,n))){var s=rn.deps;if(rn.f&zl)n.rv<Oa&&(n.rv=Oa,fr===null&&s!==null&&s[Ir]===n?Ir++:fr===null?fr=[n]:fr.push(n));else{(rn.deps??(rn.deps=[])).push(n);var r=n.reactions;r===null?n.reactions=[rn]:Qa.call(r,rn)||r.push(rn)}}}if(ea&&$i.has(n))return $i.get(n);if(t){var i=n;if(ea){var o=i.v;return(!(i.f&qn)&&i.reactions!==null||Sd(i))&&(o=ru(i)),$i.set(i,o),o}var l=(i.f&Nr)===0&&!$r&&rn!==null&&(Bo||(rn.f&Nr)!==0),u=(i.f&Ea)===0;ss(i)&&(l&&(i.f|=Nr),ud(i)),l&&!u&&(cd(i),Ed(i))}if(er!=null&&er.has(n))return er.get(n);if(n.f&Ki)throw n.v;return n.v}function Ed(n){if(n.f|=Nr,n.deps!==null)for(const e of n.deps)(e.reactions??(e.reactions=[])).push(n),e.f&on&&!(e.f&Nr)&&(cd(e),Ed(e))}function Sd(n){if(n.v===$n)return!0;if(n.deps===null)return!1;for(const e of n.deps)if($i.has(e)||e.f&on&&Sd(e))return!0;return!1}function Q(n){var e=$r;try{return $r=!0,n()}finally{$r=e}}function G(n){if(!(typeof n!="object"||!n||n instanceof EventTarget)){if(Yi in n)au(n);else if(!Array.isArray(n))for(let e in n){const t=n[e];typeof t=="object"&&t&&Yi in t&&au(t)}}}function au(n,e=new Set){if(typeof n=="object"&&n!==null&&!(n instanceof EventTarget)&&!e.has(n)){e.add(n),n instanceof Date&&n.getTime();for(let a in n)try{au(n[a],e)}catch{}const t=Yl(n);if(t!==Object.prototype&&t!==Array.prototype&&t!==Map.prototype&&t!==Set.prototype&&t!==Date.prototype){const a=Uc(t);for(let s in a){const r=a[s].get;if(r)try{r.call(n)}catch{}}}}}function kd(n){ln===null&&(rn===null&&Bg(),Fg()),ea&&Ug()}function Pp(n,e){var t=e.last;t===null?e.last=e.first=n:(t.next=n,n.prev=t,e.last=n)}function vi(n,e){var t=ln;t!==null&&t.f&rr&&(n|=rr);var a={ctx:bn,deps:null,nodes:null,f:n|Xn|Nr,first:null,fn:e,last:null,next:null,parent:t,b:t&&t.b,prev:null,teardown:null,wv:0,ac:null},s=a;if(n&Oi)is!==null?is.push(a):pi(a);else if(e!==null){try{xa(a)}catch(i){throw hr(a),i}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&!(s.f&Xa)&&(s=s.first,n&qi&&n&Sa&&s!==null&&(s.f|=Sa))}if(s!==null&&(s.parent=t,t!==null&&Pp(s,t),rn!==null&&rn.f&on&&!(n&wa))){var r=rn;(r.effects??(r.effects=[])).push(s)}return a}function su(){return rn!==null&&!$r}function Vo(n){const e=vi(ba,null);return Dn(e,qn),e.teardown=n,e}function ou(n){kd();var e=ln.f,t=!rn&&(e&Yr)!==0&&(e&Ea)===0;if(t){var a=bn;(a.e??(a.e=[])).push(n)}else return Cd(n)}function Cd(n){return vi(Oi|Rc,n)}function xp(n){return kd(),vi(ba|Rc,n)}function Lp(n){Ji.ensure();const e=vi(wa|Xa,n);return(t={})=>new Promise(a=>{t.outro?La(e,()=>{hr(e),a(void 0)}):(hr(e),a(void 0))})}function Mp(n){return vi(Oi,n)}function an(n,e){var t=bn,a={effect:null,ran:!1,deps:n};t.l.$.push(a),a.effect=Ws(()=>{n(),!a.ran&&(a.ran=!0,Q(e))})}function un(){var n=bn;Ws(()=>{for(var e of n.l.$){e.deps();var t=e.effect;t.f&qn&&t.deps!==null&&Dn(t,Ur),ss(t)&&xa(t),e.ran=!1}})}function Rp(n){return vi(Gl|Xa,n)}function Ws(n,e=0){return vi(ba|e,n)}function Je(n,e=[],t=[],a=[]){yp(a,e,t,s=>{vi(ba,()=>n(...s.map(_)))})}function qs(n,e=0){var t=vi(qi|e,n);return t}function jr(n){return vi(Yr|Xa,n)}function Id(n){var e=n.teardown;if(e!==null){const t=ea,a=rn;pd(!0),Br(null);try{e.call(null)}finally{pd(t),Br(a)}}}function lu(n,e=!1){var t=n.first;for(n.first=n.last=null;t!==null;){const s=t.ac;s!==null&&Fo(()=>{s.abort(Ca)});var a=t.next;t.f&wa?t.parent=null:hr(t,e),t=a}}function Dp(n){for(var e=n.first;e!==null;){var t=e.next;e.f&Yr||hr(e),e=t}}function hr(n,e=!0){var t=!1;(e||n.f&Og)&&n.nodes!==null&&n.nodes.end!==null&&(Td(n.nodes.start,n.nodes.end),t=!0),lu(n,e&&!t),Gs(n,0),Dn(n,fi);var a=n.nodes&&n.nodes.t;if(a!==null)for(const r of a)r.stop();Id(n);var s=n.parent;s!==null&&s.first!==null&&Ad(n),n.next=n.prev=n.teardown=n.ctx=n.deps=n.fn=n.nodes=n.ac=null}function Td(n,e){for(;n!==null;){var t=n===e?null:Jr(n);n.remove(),n=t}}function Ad(n){var e=n.parent,t=n.prev,a=n.next;t!==null&&(t.next=a),a!==null&&(a.prev=t),e!==null&&(e.first===n&&(e.first=a),e.last===n&&(e.last=t))}function La(n,e,t=!0){var a=[];Od(n,a,!0);var s=()=>{t&&hr(n),e&&e()},r=a.length;if(r>0){var i=()=>--r||s();for(var o of a)o.out(i)}else s()}function Od(n,e,t){if(!(n.f&rr)){n.f^=rr;var a=n.nodes&&n.nodes.t;if(a!==null)for(const o of a)(o.is_global||t)&&e.push(o);for(var s=n.first;s!==null;){var r=s.next,i=(s.f&Sa)!==0||(s.f&Yr)!==0&&(n.f&qi)!==0;Od(s,e,i?t:!1),s=r}}}function uu(n){Pd(n,!0)}function Pd(n,e){if(n.f&rr){n.f^=rr;for(var t=n.first;t!==null;){var a=t.next,s=(t.f&Sa)!==0||(t.f&Yr)!==0;Pd(t,s?e:!1),t=a}var r=n.nodes&&n.nodes.t;if(r!==null)for(const i of r)(i.is_global||e)&&i.in()}}function cu(n,e){if(n.nodes)for(var t=n.nodes.start,a=n.nodes.end;t!==null;){var s=t===a?null:Jr(t);e.append(t),t=s}}const Ho=Symbol("events"),Np=new Set,xd=new Set;function Up(n,e,t,a={}){function s(r){if(a.capture||du.call(e,r),!r.cancelBubble)return Fo(()=>t==null?void 0:t.call(this,r))}return n.startsWith("pointer")||n.startsWith("touch")||n==="wheel"?gi(()=>{e.addEventListener(n,s,a)}):e.addEventListener(n,s,a),s}function Vn(n,e,t,a,s){var r={capture:a,passive:s},i=Up(n,e,t,r);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Vo(()=>{e.removeEventListener(n,i,r)})}let Ld=null;function du(n){var w,E;var e=this,t=e.ownerDocument,a=n.type,s=((w=n.composedPath)==null?void 0:w.call(n))||[],r=s[0]||n.target;Ld=n;var i=0,o=Ld===n&&n[Ho];if(o){var l=s.indexOf(o);if(l!==-1&&(e===document||e===window)){n[Ho]=e;return}var u=s.indexOf(e);if(u===-1)return;l<=u&&(i=l)}if(r=s[i]||n.target,r!==e){Kl(n,"currentTarget",{configurable:!0,get(){return r||t}});var c=rn,d=ln;Br(null),mi(null);try{for(var f,h=[];r!==null;){var p=r.assignedSlot||r.parentNode||r.host||null;try{var m=(E=r[Ho])==null?void 0:E[a];m!=null&&(!r.disabled||n.target===r)&&m.call(r,n)}catch(v){f?h.push(v):f=v}if(n.cancelBubble||p===e||p===null)break;r=p}if(f){for(let v of h)queueMicrotask(()=>{throw v});throw f}}finally{n[Ho]=e,delete n.currentTarget,Br(c),mi(d)}}}const fu=((gg=globalThis==null?void 0:globalThis.window)==null?void 0:gg.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:n=>n});function Fp(n){return(fu==null?void 0:fu.createHTML(n))??n}function Md(n){var e=ed("template");return e.innerHTML=Fp(n.replaceAll("<!>","<!---->")),e.content}function zr(n,e){var t=ln;t.nodes===null&&(t.nodes={start:n,end:e,a:null,t:null})}function ze(n,e){var t=(e&ap)!==0,a=(e&sp)!==0,s,r=!n.startsWith("<!>");return()=>{if(Gt)return zr(Bt,null),Bt;s===void 0&&(s=Md(r?n:"<!>"+n),t||(s=Fr(s)));var i=a||Zc?document.importNode(s,!0):s.cloneNode(!0);if(t){var o=Fr(i),l=i.lastChild;zr(o,l)}else zr(i,i);return i}}function Bp(n,e,t="svg"){var a=!n.startsWith("<!>"),s=`<${t}>${a?n:"<!>"+n}</${t}>`,r;return()=>{if(Gt)return zr(Bt,null),Bt;if(!r){var i=Md(s),o=Fr(i);r=Fr(o)}var l=r.cloneNode(!0);return zr(l,l),l}}function Kn(n,e){return Bp(n,e,"svg")}function Cn(n=""){if(!Gt){var e=cr(n+"");return zr(e,e),e}var t=Bt;return t.nodeType!==Us?(t.before(t=cr()),Qn(t)):Do(t),zr(t,t),t}function Wt(){if(Gt)return zr(Bt,null),Bt;var n=document.createDocumentFragment(),e=document.createComment(""),t=cr();return n.append(e,t),zr(e,t),n}function oe(n,e){if(Gt){var t=ln;(!(t.f&Ea)||t.nodes.end===null)&&(t.nodes.end=Bt),Li();return}n!==null&&n.before(e)}const Vp=["touchstart","touchmove"];function Hp(n){return Vp.includes(n)}function $t(n,e){var t=e==null?"":typeof e=="object"?`${e}`:e;t!==(n.__t??(n.__t=n.nodeValue))&&(n.__t=t,n.nodeValue=`${t}`)}function Rd(n,e){return Dd(n,e)}function jp(n,e){Ql(),e.intro=e.intro??!1;const t=e.target,a=Gt,s=Bt;try{for(var r=Fr(t);r&&(r.nodeType!==$a||r.data!==Zl);)r=Jr(r);if(!r)throw Ia;Zr(!0),Qn(r);const i=Dd(n,{...e,anchor:r});return Zr(!1),i}catch(i){if(i instanceof Error&&i.message.split(`
|
|
2
|
+
`).some(o=>o.startsWith("https://svelte.dev/e/")))throw i;return i!==Ia&&console.warn("Failed to hydrate: ",i),e.recover===!1&&Hg(),Ql(),$c(t),Zr(!1),Rd(n,e)}finally{Zr(a),Qn(s)}}const jo=new Map;function Dd(n,{target:e,anchor:t,props:a={},events:s,context:r,intro:i=!0,transformError:o}){Ql();var l=void 0,u=Lp(()=>{var c=t??e.appendChild(cr());mp(c,{pending:()=>{}},h=>{et({});var p=bn;if(r&&(p.c=r),s&&(a.$$events=s),Gt&&zr(h,null),l=n(h,a)||{},Gt&&(ln.nodes.end=Bt,Bt===null||Bt.nodeType!==$a||Bt.data!==Xl))throw Bs(),Ia;tt()},o);var d=new Set,f=h=>{for(var p=0;p<h.length;p++){var m=h[p];if(!d.has(m)){d.add(m);var w=Hp(m);for(const y of[e,document]){var E=jo.get(y);E===void 0&&(E=new Map,jo.set(y,E));var v=E.get(m);v===void 0?(y.addEventListener(m,du,{passive:w}),E.set(m,1)):E.set(m,v+1)}}}};return f(Mo(Np)),xd.add(f),()=>{var w;for(var h of d)for(const E of[e,document]){var p=jo.get(E),m=p.get(h);--m==0?(E.removeEventListener(h,du),p.delete(h),p.size===0&&jo.delete(E)):p.set(h,m)}xd.delete(f),c!==t&&((w=c.parentNode)==null||w.removeChild(c))}});return hu.set(l,u),l}let hu=new WeakMap;function zp(n,e){const t=hu.get(n);return t?(hu.delete(n),t(e)):Promise.resolve()}function zo(n){return function(...e){var t=e[0];return t.preventDefault(),n==null?void 0:n.apply(this,e)}}function nt(n){return new Gp(n)}class Gp{constructor(e){nn(this,Gi);nn(this,Kr);var r;var t=new Map,a=(i,o)=>{var l=ue(o,!1,!1);return t.set(i,l),l};const s=new Proxy({...e.props||{},$$events:{}},{get(i,o){return _(t.get(o)??a(o,Reflect.get(i,o)))},has(i,o){return o===Wl?!0:(_(t.get(o)??a(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,l){return ee(t.get(o)??a(o,l),l),Reflect.set(i,o,l)}});qt(this,Kr,(e.hydrate?jp:Rd)(e.component,{target:e.target,anchor:e.anchor,props:s,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError})),(!((r=e==null?void 0:e.props)!=null&&r.$$host)||e.sync===!1)&&L(),qt(this,Gi,s.$$events);for(const i of Object.keys(ge(this,Kr)))i==="$set"||i==="$destroy"||i==="$on"||Kl(this,i,{get(){return ge(this,Kr)[i]},set(o){ge(this,Kr)[i]=o},enumerable:!0});ge(this,Kr).$set=i=>{Object.assign(s,i)},ge(this,Kr).$destroy=()=>{zp(ge(this,Kr))}}$set(e){ge(this,Kr).$set(e)}$on(e,t){ge(this,Gi)[e]=ge(this,Gi)[e]||[];const a=(...s)=>t.call(this,...s);return ge(this,Gi)[e].push(a),()=>{ge(this,Gi)[e]=ge(this,Gi)[e].filter(s=>s!==a)}}$destroy(){ge(this,Kr).$destroy()}}Gi=new WeakMap,Kr=new WeakMap;const Wp="5";typeof window<"u"&&((pg=window.__svelte??(window.__svelte={})).v??(pg.v=new Set)).add(Wp),Zg();const gu=5e3,qp=3e4,Kp="FR-SDK";function os(n,{type:e,payload:t}){const a=Object.freeze({type:e,payload:t});return s=>{if(!Array.isArray(s))return n;const r=s.map(o=>o);function i(){const o=r.shift();return o&&o(n,a,i),n}return i()}}function Ks(n,e=gu){const t=e||gu,a=new Promise((s,r)=>setTimeout(()=>r(new Error("Timeout")),t));return Promise.race([n,a])}var Tr=(n=>(n.Authenticate="AUTHENTICATE",n.Authorize="AUTHORIZE",n.EndSession="END_SESSION",n.Logout="LOGOUT",n.ExchangeToken="EXCHANGE_TOKEN",n.RefreshToken="REFRESH_TOKEN",n.ResumeAuthenticate="RESUME_AUTHENTICATE",n.RevokeToken="REVOKE_TOKEN",n.StartAuthenticate="START_AUTHENTICATE",n.UserInfo="USER_INFO",n.WellKnown="WELL_KNOWN",n))(Tr||{});function Yp(n,e){if(!n.authorization_endpoint)throw new Error("Wellknown endpoint did not return `authorization_endpoint`");const t=new URL(n.authorization_endpoint).origin;let a,s;n.issuer.includes("/am/")?(a=`${n.issuer.replace("oauth2","json")}/authenticate`,s=`${n.issuer.replace("oauth2","json")}/sessions`):n.issuer.includes("/as/");const r={...a?{authenticate:new URL(a).pathname}:{},authorize:new URL(n.authorization_endpoint).pathname,accessToken:new URL(n.token_endpoint).pathname,endSession:new URL(n.ping_end_idp_session_endpoint||n.end_session_endpoint).pathname,userInfo:new URL(n.userinfo_endpoint).pathname,revoke:new URL(n.revocation_endpoint).pathname,...s?{sessions:new URL(s).pathname}:{}};return{baseUrl:t,paths:r}}async function Zp(n){var t;if(!n.serverConfig.wellknown)throw new Error("wellknown URL is missing in options");const e=os({url:new URL((t=n.serverConfig)==null?void 0:t.wellknown),init:{method:"GET"}},{type:Tr.WellKnown,payload:{}})(n.middleware);return await(await Ks(fetch(e.url.toString(),e.init),n.serverConfig.timeout)).json()}function Jp(n){return{...n,oauthThreshold:n.oauthThreshold||qp,logLevel:n.logLevel||"none",platformHeader:n.platformHeader||!1,prefix:n.prefix||Kp}}let _n=class{static set(e){if(!this.isValid(e))throw new Error("Configuration is invalid");e.serverConfig&&this.validateServerConfig(e.serverConfig),this.options={...Jp(e)}}static async setAsync(e){if(!e.serverConfig.wellknown)throw new Error("Missing well-known property. Use `Config.set` method if not using well-known endpoint.");e.serverConfig.baseUrl&&console.warn("The baseUrl property passed in will be ignored, and replaced with well-known origin.");const t=await Zp(e),a=Yp(t);delete e.serverConfig.wellknown;const s=e;s.serverConfig=a,this.set(s)}static get(e){if(!this.options&&!e)throw new Error("Configuration has not been set");const t={...this.options,...e};if(!t.serverConfig||!t.serverConfig.baseUrl)throw new Error("Server configuration has not been set");return t}static isValid(e){return!!(e&&e.serverConfig)}static validateServerConfig(e){e.timeout||(e.timeout=gu);const t=e.baseUrl;t&&t.charAt(t.length-1)!=="/"&&(e.baseUrl=t+"/")}};const Nd="forgerock-sdk",ta="javascript";function Xp(n){const e=(n||"").split("/").map(t=>t.trim()).filter(t=>t!=="");return e[0]!=="root"&&e.unshift("root"),e.map(t=>`realms/${t}`).join("/")}function Ud(n){const e=n.protocol==="http:"&&["","80"].indexOf(n.port)===-1||n.protocol==="https:"&&["","443"].indexOf(n.port)===-1?`:${n.port}`:"";return`${n.protocol}//${n.hostname}${e}`}function Go(n,e,t){const a=Xp(e),s={authenticate:`json/${a}/authenticate`,authorize:`oauth2/${a}/authorize`,accessToken:`oauth2/${a}/access_token`,endSession:`oauth2/${a}/connect/endSession`,userInfo:`oauth2/${a}/userinfo`,revoke:`oauth2/${a}/token/revoke`,sessions:`json/${a}/sessions/`};return t&&t[n]?t[n]:s[n]}function Wo(n,e){const t=new URL(n);if(e.startsWith("/"))return`${Ud(t)}${e}`;const a=t.pathname.split("/"),s=e.split("/").filter(i=>!!i),r=[...a.slice(0,-1),...s].join("/");return`${Ud(t)}${r}`}function $p(n){const e=new URL(n),t={};return e.searchParams.forEach((a,s)=>t[s]=a),t}function Ys(n){const e=[];for(const t in n)n[t]&&e.push(t+"="+encodeURIComponent(n[t]));return e.join("&")}let Qp=class{static async next(e,t){const{middleware:a,platformHeader:s,realmPath:r,serverConfig:i,tree:o,type:l}=_n.get(t),u=t?t.query:{},c=this.constructUrl(i,r,o,u),d=os({url:new URL(c),init:this.configureRequest(e)},{type:e?Tr.Authenticate:Tr.StartAuthenticate,payload:{tree:o,type:l||"service"}})(a);s&&(d.init.headers instanceof Headers?d.init.headers.set("X-Requested-Platform",ta):Array.isArray(d.init.headers)?d.init.headers.push(["X-Requested-Platform",ta]):d.init.headers?d.init.headers["X-Requested-Platform"]=ta:d.init.headers={"X-Requested-Platform":ta});const f=await Ks(fetch(d.url.toString(),d.init),i.timeout);return await this.getResponseJson(f)}static constructUrl(e,t,a,s){const r={...s,...a?{authIndexType:"service",authIndexValue:a}:void 0},i=Object.keys(r).length>0?`?${Ys(r)}`:"",o=Go("authenticate",t,e.paths);return Wo(e.baseUrl,`${o}${i}`)}static configureRequest(e){return{body:e?JSON.stringify(e):void 0,credentials:"include",headers:new Headers({Accept:"application/json","Accept-API-Version":"protocol=1.0,resource=2.1","Content-Type":"application/json","X-Requested-With":Nd}),method:"POST"}}static async getResponseJson(e){const t=e.headers.get("content-type"),a=t&&t.indexOf("application/json")>-1?await e.json():{};return a.status=e.status,a.ok=e.ok,a}};var he=(n=>(n.BooleanAttributeInputCallback="BooleanAttributeInputCallback",n.ChoiceCallback="ChoiceCallback",n.ConfirmationCallback="ConfirmationCallback",n.DeviceProfileCallback="DeviceProfileCallback",n.HiddenValueCallback="HiddenValueCallback",n.KbaCreateCallback="KbaCreateCallback",n.MetadataCallback="MetadataCallback",n.NameCallback="NameCallback",n.NumberAttributeInputCallback="NumberAttributeInputCallback",n.PasswordCallback="PasswordCallback",n.PingOneProtectEvaluationCallback="PingOneProtectEvaluationCallback",n.PingOneProtectInitializeCallback="PingOneProtectInitializeCallback",n.PollingWaitCallback="PollingWaitCallback",n.ReCaptchaCallback="ReCaptchaCallback",n.ReCaptchaEnterpriseCallback="ReCaptchaEnterpriseCallback",n.RedirectCallback="RedirectCallback",n.SelectIdPCallback="SelectIdPCallback",n.StringAttributeInputCallback="StringAttributeInputCallback",n.SuspendedTextOutputCallback="SuspendedTextOutputCallback",n.TermsAndConditionsCallback="TermsAndConditionsCallback",n.TextInputCallback="TextInputCallback",n.TextOutputCallback="TextOutputCallback",n.ValidatedCreatePasswordCallback="ValidatedCreatePasswordCallback",n.ValidatedCreateUsernameCallback="ValidatedCreateUsernameCallback",n))(he||{}),On=(n=>(n.CannotContainCharacters="CANNOT_CONTAIN_CHARACTERS",n.CannotContainDuplicates="CANNOT_CONTAIN_DUPLICATES",n.CannotContainOthers="CANNOT_CONTAIN_OTHERS",n.LeastCapitalLetters="AT_LEAST_X_CAPITAL_LETTERS",n.LeastNumbers="AT_LEAST_X_NUMBERS",n.MatchRegexp="MATCH_REGEXP",n.MaximumLength="MAX_LENGTH",n.MaximumNumber="MAXIMUM_NUMBER_VALUE",n.MinimumLength="MIN_LENGTH",n.MinimumNumber="MINIMUM_NUMBER_VALUE",n.Required="REQUIRED",n.Unique="UNIQUE",n.UnknownPolicy="UNKNOWN_POLICY",n.ValidArrayItems="VALID_ARRAY_ITEMS",n.ValidDate="VALID_DATE",n.ValidEmailAddress="VALID_EMAIL_ADDRESS_FORMAT",n.ValidNameFormat="VALID_NAME_FORMAT",n.ValidNumber="VALID_NUMBER",n.ValidPhoneFormat="VALID_PHONE_FORMAT",n.ValidQueryFilter="VALID_QUERY_FILTER",n.ValidType="VALID_TYPE",n))(On||{});function qo(n,e,t){return n===1?e:t!==void 0?t:e+"s"}function na(n,e,t){return!n||n[e]===void 0?t:n[e]}const Fd={[On.CannotContainCharacters]:(n,e)=>{const t=na(e,"forbiddenChars","");return`${n} must not contain following characters: "${t}"`},[On.CannotContainDuplicates]:(n,e)=>{const t=na(e,"duplicateValue","");return`${n} must not contain duplicates: "${t}"`},[On.CannotContainOthers]:(n,e)=>{const t=na(e,"disallowedFields","");return`${n} must not contain: "${t}"`},[On.LeastCapitalLetters]:(n,e)=>{const t=na(e,"numCaps",0);return`${n} must contain at least ${t} capital ${qo(t,"letter")}`},[On.LeastNumbers]:(n,e)=>{const t=na(e,"numNums",0);return`${n} must contain at least ${t} numeric ${qo(t,"value")}`},[On.MatchRegexp]:n=>`${n} has failed the "MATCH_REGEXP" policy`,[On.MaximumLength]:(n,e)=>{const t=na(e,"maxLength",0);return`${n} must be at most ${t} ${qo(t,"character")}`},[On.MaximumNumber]:n=>`${n} has failed the "MAXIMUM_NUMBER_VALUE" policy`,[On.MinimumLength]:(n,e)=>{const t=na(e,"minLength",0);return`${n} must be at least ${t} ${qo(t,"character")}`},[On.MinimumNumber]:n=>`${n} has failed the "MINIMUM_NUMBER_VALUE" policy`,[On.Required]:n=>`${n} is required`,[On.Unique]:n=>`${n} must be unique`,[On.UnknownPolicy]:(n,e)=>{const t=na(e,"policyRequirement","Unknown");return`${n}: Unknown policy requirement "${t}"`},[On.ValidArrayItems]:n=>`${n} has failed the "VALID_ARRAY_ITEMS" policy`,[On.ValidDate]:n=>`${n} has an invalid date`,[On.ValidEmailAddress]:n=>`${n} has an invalid email address`,[On.ValidNameFormat]:n=>`${n} has an invalid name format`,[On.ValidNumber]:n=>`${n} has an invalid number`,[On.ValidPhoneFormat]:n=>`${n} has an invalid phone number`,[On.ValidQueryFilter]:n=>`${n} has failed the "VALID_QUERY_FILTER" policy`,[On.ValidType]:n=>`${n} has failed the "VALID_TYPE" policy`};class em{static parseErrors(e,t){const a=[];return e.detail&&e.detail.failedPolicyRequirements&&e.detail.failedPolicyRequirements.map(s=>{a.push.apply(a,[{detail:s,messages:this.parseFailedPolicyRequirement(s,t)}])}),a}static parseFailedPolicyRequirement(e,t){const a=[];return e.policyRequirements.map(s=>{a.push(this.parsePolicyRequirement(e.property,s,t))}),a}static parsePolicyRequirement(e,t,a={}){const s=typeof t=="string"?JSON.parse(t):{...t},r=s.policyRequirement,i=a[r]||Fd[r]||Fd[On.UnknownPolicy],o=s.params?{...s.params,policyRequirement:r}:{policyRequirement:r};return i(e,o)}}var ir=(n=>(n.LoginFailure="LoginFailure",n.LoginSuccess="LoginSuccess",n.Step="Step",n))(ir||{});let pu=class{constructor(e){this.payload=e,this.type=ir.LoginFailure}getCode(){return Number(this.payload.code)}getDetail(){return this.payload.detail}getMessage(){return this.payload.message}getProcessedMessage(e){return em.parseErrors(this.payload,e)}getReason(){return this.payload.reason}},tm=class{constructor(e){this.payload=e,this.type=ir.LoginSuccess}getRealm(){return this.payload.realm}getSessionToken(){return this.payload.tokenId}getSuccessUrl(){return this.payload.successUrl}},Pn=class{constructor(e){this.payload=e}getType(){return this.payload.type}getInputValue(e=0){return this.getArrayElement(this.payload.input,e).value}setInputValue(e,t=0){this.getArrayElement(this.payload.input,t).value=e}getOutputValue(e=0){return this.getArrayElement(this.payload.output,e).value}getOutputByName(e,t){const a=this.payload.output.find(s=>s.name===e);return a?a.value:t}getArrayElement(e,t=0){if(e===void 0)throw new Error(`No NameValue array was provided to search (selector ${t})`);if(typeof t=="number"){if(t<0||t>e.length-1)throw new Error(`Selector index ${t} is out of range`);return e[t]}if(typeof t=="string"){const a=e.find(s=>s.name===t);if(!a)throw new Error(`Missing callback input entry "${t}"`);return a}if(typeof t=="object"&&t.test&&t.exec){const a=e.find(s=>t.test(s.name));if(!a)throw new Error(`Missing callback input entry "${t}"`);return a}throw new Error("Invalid selector value type")}},mu=class extends Pn{constructor(e){super(e),this.payload=e}getName(){return this.getOutputByName("name","")}getPrompt(){return this.getOutputByName("prompt","")}isRequired(){return this.getOutputByName("required",!1)}getFailedPolicies(){const e=this.getOutputByName("failedPolicies",[]);try{return e.map(t=>JSON.parse(t))}catch{throw new Error('Unable to parse "failed policies" from the ForgeRock server. The JSON within `AttributeInputCallback` was either malformed or missing.')}}getPolicies(){return this.getOutputByName("policies",{})}setValidateOnly(e){this.setInputValue(e,/validateOnly/)}setValue(e){this.setInputValue(e)}};class nm extends Pn{constructor(e){super(e),this.payload=e}getPrompt(){return this.getOutputByName("prompt","")}getDefaultChoice(){return this.getOutputByName("defaultChoice",0)}getChoices(){return this.getOutputByName("choices",[])}setChoiceIndex(e){const t=this.getChoices().length;if(e<0||e>t-1)throw new Error(`${e} is out of bounds`);this.setInputValue(e)}setChoiceValue(e){const t=this.getChoices().indexOf(e);if(t===-1)throw new Error(`"${e}" is not a valid choice`);this.setInputValue(t)}}let rm=class extends Pn{constructor(e){super(e),this.payload=e}getDefaultOption(){return Number(this.getOutputByName("defaultOption",0))}getMessageType(){return Number(this.getOutputByName("messageType",0))}getOptions(){return this.getOutputByName("options",[])}getOptionType(){return Number(this.getOutputByName("optionType",0))}getPrompt(){return this.getOutputByName("prompt","")}setOptionIndex(e){if(e!==0&&e!==1)throw new Error(`"${e}" is not a valid choice`);this.setInputValue(e)}setOptionValue(e){const t=this.getOptions().indexOf(e);if(t===-1)throw new Error(`"${e}" is not a valid choice`);this.setInputValue(t)}},im=class extends Pn{constructor(e){super(e),this.payload=e}getMessage(){return this.getOutputByName("message","")}isMetadataRequired(){return this.getOutputByName("metadata",!1)}isLocationRequired(){return this.getOutputByName("location",!1)}setProfile(e){this.setInputValue(JSON.stringify(e))}},am=class extends Pn{constructor(e){super(e),this.payload=e}},sm=class extends Pn{constructor(e){super(e),this.payload=e}getPrompt(){return this.getOutputByName("prompt","")}getPredefinedQuestions(){return this.getOutputByName("predefinedQuestions",[])}isAllowedUserDefinedQuestions(){return this.getOutputByName("allowUserDefinedQuestions",!1)}setQuestion(e){this.setValue("question",e)}setAnswer(e){this.setValue("answer",e)}setValue(e,t){if(!this.payload.input)throw new Error("KBA payload is missing input");const a=this.payload.input.find(s=>s.name.endsWith(e));if(!a)throw new Error(`No input has name ending in "${e}"`);a.value=t}},om=class extends Pn{constructor(e){super(e),this.payload=e}getData(){return this.getOutputByName("data",{})}},lm=class extends Pn{constructor(e){super(e),this.payload=e}getPrompt(){return this.getOutputByName("prompt","")}setName(e){this.setInputValue(e)}},um=class extends Pn{constructor(e){super(e),this.payload=e}getFailedPolicies(){return this.getOutputByName("failedPolicies",[])}getPolicies(){return this.getOutputByName("policies",[])}getPrompt(){return this.getOutputByName("prompt","")}setPassword(e){this.setInputValue(e)}},cm=class extends Pn{constructor(e){super(e),this.payload=e}getPauseBehavioralData(){return this.getOutputByName("pauseBehavioralData",!1)}setData(e){this.setInputValue(e,/signals/)}setClientError(e){this.setInputValue(e,/clientError/)}},dm=class extends Pn{constructor(e){super(e),this.payload=e}getConfig(){const e=this.getOutputByName("agentIdentification",void 0),t=this.getOutputByName("agentTimeout",void 0),a=this.getOutputByName("agentPort",void 0);return{envId:this.getOutputByName("envId",""),...e!==void 0?{agentIdentification:e}:{},...t!==void 0?{agentTimeout:t}:{},...a!==void 0?{agentPort:a}:{},behavioralDataCollection:this.getOutputByName("behavioralDataCollection",!0),disableTags:this.getOutputByName("disableTags",!1),universalDeviceIdentification:this.getOutputByName("universalDeviceIdentification",!1),consoleLogEnabled:this.getOutputByName("consoleLogEnabled",!1),deviceAttributesToIgnore:this.getOutputByName("deviceAttributesToIgnore",[]),customHost:this.getOutputByName("customHost",""),lazyMetadata:this.getOutputByName("lazyMetadata",!1),deviceKeyRsyncIntervals:this.getOutputByName("deviceKeyRsyncIntervals",14),enableTrust:this.getOutputByName("enableTrust",!1),disableHub:this.getOutputByName("disableHub",!1)}}setClientError(e){this.setInputValue(e,/clientError/)}},fm=class extends Pn{constructor(e){super(e),this.payload=e}getMessage(){return this.getOutputByName("message","")}getWaitTime(){return Number(this.getOutputByName("waitTime",0))}},hm=class extends Pn{constructor(e){super(e),this.payload=e}getSiteKey(){return this.getOutputByName("recaptchaSiteKey","")}setResult(e){this.setInputValue(e)}},gm=class extends Pn{constructor(e){super(e),this.payload=e}getSiteKey(){return this.getOutputByName("recaptchaSiteKey","")}getApiUrl(){return this.getOutputByName("captchaApiUri","")}getElementClass(){return this.getOutputByName("captchaDivClass","")}setResult(e){this.setInputValue(e)}setClientError(e){this.setInputValue(e,"IDToken1clientError")}setPayload(e){this.setInputValue(e,"IDToken1payload")}setAction(e){this.setInputValue(e,"IDToken1action")}},pm=class extends Pn{constructor(e){super(e),this.payload=e}getRedirectUrl(){return this.getOutputByName("redirectUrl","")}},mm=class extends Pn{constructor(e){super(e),this.payload=e}getProviders(){return this.getOutputByName("providers",[])}setProvider(e){const t=this.getProviders().find(a=>a.provider===e);if(!t)throw new Error(`"${e}" is not a valid choice`);this.setInputValue(t.provider)}},Bd=class extends Pn{constructor(e){super(e),this.payload=e}getMessage(){return this.getOutputByName("message","")}getMessageType(){return this.getOutputByName("messageType","")}},vm=class extends Bd{constructor(e){super(e),this.payload=e}},ym=class extends Pn{constructor(e){super(e),this.payload=e}getTerms(){return this.getOutputByName("terms","")}getVersion(){return this.getOutputByName("version","")}getCreateDate(){const e=this.getOutputByName("createDate","");return new Date(e)}setAccepted(e=!0){this.setInputValue(e)}},_m=class extends Pn{constructor(e){super(e),this.payload=e}getPrompt(){return this.getOutputByName("prompt","")}setInput(e){this.setInputValue(e)}},bm=class extends Pn{constructor(e){super(e),this.payload=e}getFailedPolicies(){const e=this.getOutputByName("failedPolicies",[]);try{return e.map(t=>JSON.parse(t))}catch{throw new Error('Unable to parse "failed policies" from the ForgeRock server. The JSON within `ValidatedCreatePasswordCallback` was either malformed or missing.')}}getPolicies(){return this.getOutputByName("policies",{})}getPrompt(){return this.getOutputByName("prompt","")}isRequired(){return this.getOutputByName("required",!1)}setPassword(e){this.setInputValue(e)}setValidateOnly(e){this.setInputValue(e,/validateOnly/)}},wm=class extends Pn{constructor(e){super(e),this.payload=e}getPrompt(){return this.getOutputByName("prompt","")}getFailedPolicies(){const e=this.getOutputByName("failedPolicies",[]);try{return e.map(t=>JSON.parse(t))}catch{throw new Error('Unable to parse "failed policies" from the ForgeRock server. The JSON within `ValidatedCreateUsernameCallback` was either malformed or missing.')}}getPolicies(){return this.getOutputByName("policies",{})}isRequired(){return this.getOutputByName("required",!1)}setName(e){this.setInputValue(e)}setValidateOnly(e){this.setInputValue(e,/validateOnly/)}};function Vd(n){switch(n.type){case he.BooleanAttributeInputCallback:return new mu(n);case he.ChoiceCallback:return new nm(n);case he.ConfirmationCallback:return new rm(n);case he.DeviceProfileCallback:return new im(n);case he.HiddenValueCallback:return new am(n);case he.KbaCreateCallback:return new sm(n);case he.MetadataCallback:return new om(n);case he.NameCallback:return new lm(n);case he.NumberAttributeInputCallback:return new mu(n);case he.PasswordCallback:return new um(n);case he.PingOneProtectEvaluationCallback:return new cm(n);case he.PingOneProtectInitializeCallback:return new dm(n);case he.PollingWaitCallback:return new fm(n);case he.ReCaptchaCallback:return new hm(n);case he.ReCaptchaEnterpriseCallback:return new gm(n);case he.RedirectCallback:return new pm(n);case he.SelectIdPCallback:return new mm(n);case he.StringAttributeInputCallback:return new mu(n);case he.SuspendedTextOutputCallback:return new vm(n);case he.TermsAndConditionsCallback:return new ym(n);case he.TextInputCallback:return new _m(n);case he.TextOutputCallback:return new Bd(n);case he.ValidatedCreatePasswordCallback:return new bm(n);case he.ValidatedCreateUsernameCallback:return new wm(n);default:return new Pn(n)}}let Hd=class{constructor(e,t){this.payload=e,this.type=ir.Step,this.callbacks=[],e.callbacks&&(this.callbacks=this.convertCallbacks(e.callbacks,t))}getCallbackOfType(e){const t=this.getCallbacksOfType(e);if(t.length!==1)throw new Error(`Expected 1 callback of type "${e}", but found ${t.length}`);return t[0]}getCallbacksOfType(e){return this.callbacks.filter(t=>t.getType()===e)}setCallbackValue(e,t){const a=this.getCallbacksOfType(e);if(a.length!==1)throw new Error(`Expected 1 callback of type "${e}", but found ${a.length}`);a[0].setInputValue(t)}getDescription(){return this.payload.description}getHeader(){return this.payload.header}getStage(){return this.payload.stage}convertCallbacks(e,t){return e.map(a=>(t||Vd)(a)||Vd(a))}},ra=class Tg{static get previousStepKey(){return`${_n.get().prefix}-PreviousStep`}static async next(e,t){const a=await Qp.next(e?e.payload:void 0,t);if(a.authId){const s=t?t.callbackFactory:void 0;return new Hd(a,s)}return!a.authId&&a.ok?new tm(a):new pu(a)}static redirect(e){const t=e.getCallbackOfType(he.RedirectCallback).getRedirectUrl();localStorage.setItem(this.previousStepKey,JSON.stringify(e)),location.assign(t)}static async resume(e,t){const a=new URL(e),s=a.searchParams.get("code"),r=a.searchParams.get("error"),i=a.searchParams.get("errorCode"),o=a.searchParams.get("errorMessage"),l=a.searchParams.get("form_post_entry"),u=a.searchParams.get("nonce"),c=a.searchParams.get("RelayState"),d=a.searchParams.get("responsekey"),f=a.searchParams.get("scope"),h=a.searchParams.get("state"),p=a.searchParams.get("suspendedId"),m=a.searchParams.get("authIndexValue")??void 0;let w;function E(){return s&&h||l||d}if(E()){const y=localStorage.getItem(this.previousStepKey);if(!y)throw new Error("Error: could not retrieve original redirect information.");try{w=JSON.parse(y)}catch{throw new Error("Error: could not parse redirect params or step information")}localStorage.removeItem(this.previousStepKey)}const v={...t,query:{...s&&{code:s},...r&&{error:r},...i&&{errorCode:i},...o&&{errorMessage:o},...l&&{form_post_entry:l},...u&&{nonce:u},...c&&{RelayState:c},...d&&{responsekey:d},...f&&{scope:f},...h&&{state:h},...p&&{suspendedId:p},...t&&t.query},...((t==null?void 0:t.tree)??m)&&{tree:(t==null?void 0:t.tree)??m}};return await this.next(w,v)}static async start(e){return await Tg.next(void 0,e)}};const Em=["userAgent","appName","appCodeName","appVersion","appMinorVersion","buildID","product","productSub","vendor","vendorSub","browserLanguage"],Sm=["fontNames","displayProps","browserProps","hardwareProps","platformProps"],km=3e4,Cm={mac:["Macintosh","MacIntel","MacPPC","Mac68K"],windows:["Win32","Win64","Windows","WinCE"],ios:["iPhone","iPad","iPod"]},Im=["width","height","pixelDepth","orientation.angle"],Tm=["cursive","monospace","serif","sans-serif","fantasy","Arial","Arial Black","Arial Narrow","Arial Rounded MT Bold","Bookman Old Style","Bradley Hand ITC","Century","Century Gothic","Comic Sans MS","Courier","Courier New","Georgia","Gentium","Impact","King","Lucida Console","Lalit","Modena","Monotype Corsiva","Papyrus","Tahoma","TeX","Times","Times New Roman","Trebuchet MS","Verdana","Verona"],Am=["cpuClass","deviceMemory","hardwareConcurrency","maxTouchPoints","oscpu"],Om=["language","platform","userLanguage","systemLanguage"];let Pm=class{reduceToObject(e,t){return e.reduce((a,s)=>{if(s.includes(".")){const r=s.split("."),i=r[0],o=r[1],l=t[i]&&t[i][o];a[o]=l??""}else a[s]=t[s]!=null?t[s]:null;return a},{})}reduceToString(e,t){return e.reduce((a,s)=>(a=`${a}${t[s].filename};`,a),"")}},In=class{static enabled(){const{logLevel:e}=_n.get();return{none:0,error:25,warn:50,info:75,debug:100}[e]}static info(...e){const{logger:t}=_n.get();this.enabled()>=50&&(t&&t.info?t.info(...e):console.info(...e))}static warn(...e){const{logger:t}=_n.get();this.enabled()>=50&&(t&&t.warn?t.warn(...e):console.warn(...e))}static error(...e){const{logger:t}=_n.get();this.enabled()>=25&&(t&&t.error?t.error(...e):console.error(...e))}static log(...e){const{logger:t}=_n.get();this.enabled()>=75&&(t&&t.log?t.log(...e):console.log(...e))}},xm=class extends Pm{constructor(e){super(),this.config={fontNames:Tm,devicePlatforms:Cm,displayProps:Im,browserProps:Em,hardwareProps:Am,platformProps:Om},e&&Object.keys(e).forEach(t=>{if(!Sm.includes(t))throw new Error("Device profile configuration category does not exist.");this.config[t]=e[t]})}getBrowserMeta(){return typeof navigator>"u"?(In.warn("Cannot collect browser metadata. navigator is not defined."),{}):this.reduceToObject(this.config.browserProps,navigator)}getBrowserPluginsNames(){return typeof navigator<"u"&&navigator.plugins?this.reduceToString(Object.keys(navigator.plugins),navigator.plugins):(In.warn("Cannot collect browser plugin information. navigator.plugins is not defined."),"")}getDeviceName(){if(typeof navigator>"u")return In.warn("Cannot collect device name. navigator is not defined."),"";const e=navigator.userAgent,t=navigator.platform;switch(!0){case this.config.devicePlatforms.mac.includes(t):return"Mac (Browser)";case this.config.devicePlatforms.ios.includes(t):return`${t} (Browser)`;case this.config.devicePlatforms.windows.includes(t):return"Windows (Browser)";case(/Android/.test(t)||/Android/.test(e)):return"Android (Browser)";case(/CrOS/.test(e)||/Chromebook/.test(e)):return"Chrome OS (Browser)";case/Linux/.test(t):return"Linux (Browser)";default:return`${t||"Unknown"} (Browser)`}}getDisplayMeta(){return typeof screen>"u"?(In.warn("Cannot collect screen information. screen is not defined."),{}):this.reduceToObject(this.config.displayProps,screen)}getHardwareMeta(){return typeof navigator>"u"?(In.warn("Cannot collect OS metadata. Navigator is not defined."),{}):this.reduceToObject(this.config.hardwareProps,navigator)}getIdentifier(){const e=`${_n.get().prefix}-DeviceID`;if(!(typeof globalThis.crypto<"u"&&globalThis.crypto.getRandomValues))return In.warn("Cannot generate profile ID. Crypto and/or getRandomValues is not supported."),"";if(!localStorage)return In.warn("Cannot store profile ID. localStorage is not supported."),"";let t=localStorage.getItem(e);return t||(t=globalThis.crypto.getRandomValues(new Uint32Array(3)).join("-"),localStorage.setItem(e,t)),t}getInstalledFonts(){if(typeof document>"u")return In.warn("Cannot collect font data. Global document object is undefined."),"";const e=document.createElement("canvas");if(!e)return In.warn("Cannot collect font data. Browser does not support canvas element"),"";const t=e.getContext&&e.getContext("2d");if(!t)return In.warn("Cannot collect font data. Browser does not support 2d canvas context"),"";const a="abcdefghi0123456789";t.font="72px Comic Sans";const s=t.measureText(a).width;return this.config.fontNames.reduce((r,i)=>(t.font=`72px ${i}, Comic Sans`,t.measureText(a).width!==s&&(r=`${r}${i};`),r),"")}async getLocationCoordinates(){return typeof navigator<"u"&&navigator.geolocation?new Promise(async e=>{navigator.geolocation.getCurrentPosition(t=>e({latitude:t.coords.latitude,longitude:t.coords.longitude}),t=>{In.warn("Cannot collect geolocation information. "+t.code+": "+t.message),e({})},{enableHighAccuracy:!0,timeout:km,maximumAge:0})}):(In.warn("Cannot collect geolocation information. navigator.geolocation is not defined."),Promise.resolve({}))}getOSMeta(){return typeof navigator>"u"?(In.warn("Cannot collect OS metadata. navigator is not defined."),{}):this.reduceToObject(this.config.platformProps,navigator)}async getProfile({location:e,metadata:t}){const a={identifier:this.getIdentifier()};return t&&(a.metadata={hardware:{...this.getHardwareMeta(),display:this.getDisplayMeta()},browser:{...this.getBrowserMeta(),plugins:this.getBrowserPluginsNames()},platform:{...this.getOSMeta(),deviceName:this.getDeviceName(),fonts:this.getInstalledFonts(),timezone:this.getTimezoneOffset()}}),e&&(a.location=await this.getLocationCoordinates()),a}getTimezoneOffset(){try{return new Date().getTimezoneOffset()}catch{return In.warn("Cannot collect timezone information. getTimezoneOffset is not defined."),null}}},jd=class{static isQRCodeStep(e){const t=e.getCallbacksOfType(he.HiddenValueCallback);return t.length===0?!1:!!this.getQRCodeURICb(t)}static getQRCodeData(e){const t=e.getCallbacksOfType(he.HiddenValueCallback);if(t.length===0)throw new Error("QR Code step must contain a HiddenValueCallback. Use `FRQRCode.isQRCodeStep` to guard.");const a=this.getQRCodeURICb(t),s=a?a.getOutputValue("value"):"",r=typeof s=="string"&&s.includes("otpauth://")?"otp":"push",i=e.getCallbacksOfType(he.TextOutputCallback).find(o=>o.getMessageType()!=="4");return{message:i?i.getMessage():"",use:r,uri:typeof s=="string"?s:""}}static getQRCodeURICb(e){return e.find(t=>{const a=t.getOutputValue("value");return typeof a=="string"?(a==null?void 0:a.includes("otpauth://"))||(a==null?void 0:a.includes("pushauth://")):!1})}};function Lm(n){const e=n.match(/\s[\w\W]"([\w]*)\\/g);return Array.isArray(e)&&e.map(t=>{const a=t.match(/"([\w]*)\\/);return Array.isArray(a)?a[1]:""})||[]}function Mm(n){var e,t,a;return((a=(t=(e=n==null?void 0:n.match(/<em\s*.*>\s*.*<\/em>/g))==null?void 0:e[0])==null?void 0:t.replace("<em>",""))==null?void 0:a.replace("</em>",""))??"New Security Key"}let vu=class{static getDeviceName(e){var a;const t=((a=this.getDisplayCallback(e))==null?void 0:a.getOutputByName("message",""))??"";return Mm(t)}static getCodes(e){var a;const t=(a=this.getDisplayCallback(e))==null?void 0:a.getOutputByName("message","");return Lm(t||"")}static isDisplayStep(e){return!!this.getDisplayCallback(e)}static getDisplayCallback(e){return e.getCallbacksOfType(he.TextOutputCallback).find(t=>{const a=t.getOutputByName("message",void 0);return a&&(a.includes("Recovery Codes")||a.includes("recovery codes"))})}};class ls{static async get(e){const t=localStorage.getItem(`${_n.get().prefix}-${e}`);if(t)try{return JSON.parse(t||"")}catch{throw new Error("Could not parse token object from localStorage")}}static async set(e,t){const a=JSON.stringify(t);localStorage.setItem(`${_n.get().prefix}-${e}`,a)}static async remove(e){localStorage.removeItem(`${_n.get().prefix}-${e}`)}}let yu=class{static async get(e){const t=sessionStorage.getItem(`${_n.get().prefix}-${e}`);if(t)try{return JSON.parse(t||"")}catch{throw new Error("Could not parse token from sessionStorage")}}static async set(e,t){const a=JSON.stringify(t);sessionStorage.setItem(`${_n.get().prefix}-${e}`,a)}static async remove(e){sessionStorage.removeItem(`${_n.get().prefix}-${e}`)}},Mi=class{static async get(){const{clientId:e,tokenStore:t}=this.getClientConfig();if(t==="sessionStorage")return await yu.get(e);if(t==="localStorage")return await ls.get(e);if(t==="indexedDB")In.warn("IndexedDB is not supported in this version.");else if(t&&t.get)return await t.get(e);return await ls.get(e)}static async set(e){const{clientId:t,tokenStore:a}=this.getClientConfig();if(a==="sessionStorage")return await yu.set(t,e);if(a==="localStorage")return await ls.set(t,e);if(a==="indexedDB")In.warn("IndexedDB is not supported in this version.");else if(a&&a.set)return await a.set(t,e);return await ls.set(t,e)}static async remove(){const{clientId:e,tokenStore:t}=this.getClientConfig();if(t==="sessionStorage")return await yu.remove(e);if(t==="localStorage")return await ls.remove(e);if(t==="indexedDB")In.warn("IndexedDB is not supported in this version.");else if(t&&t.remove)return await t.remove(e);return await ls.remove(e)}static getClientConfig(){const{clientId:e="unconfiguredClient",tokenStore:t="localStorage"}=_n.get();return{clientId:e,tokenStore:t}}};function _u(n){return n.ok||Math.floor(n.status/100)===4}let bu=class{static createState(){return this.createRandomString(16)}static createVerifier(){return this.createRandomString(32)}static async createChallenge(e){const t=await this.sha256(e);return this.base64UrlEncode(t)}static base64UrlEncode(e){const t=Array.prototype.slice.call(e);return btoa(String.fromCharCode.apply(null,t)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}static async sha256(e){const t=new TextEncoder().encode(e),a=await crypto.subtle.digest("SHA-256",t);return new Uint8Array(a)}static createRandomString(e=32){const t=new Uint8Array(e);return crypto.getRandomValues(t),btoa(t.join("")).replace(/[^a-zA-Z0-9]+/,"")}};const Qr={AuthenticationConsentRequired:"Authentication or consent required",AuthenticationIsRequired:"Authentication is required.",AuthorizationTimeout:"Authorization timed out",FailedToFetch:"Failed to fetch",NetworkError:"NetworkError when attempting to fetch resource.",CORSError:"Cross-origin redirection",InteractionNotAllowed:"The request requires some interaction that is not allowed.",LoginRequired:"User authentication is required",RequestRequiresConsent:"The request requires consent."};let Ri=class{static async createAuthorizeUrl(e){const{clientId:t,middleware:a,redirectUri:s,scope:r}=_n.get(e),i={...e.query,client_id:t,redirect_uri:s,response_type:e.responseType,scope:r,state:e.state,...e.prompt?{prompt:e.prompt}:{}};if(e.verifier){const u=await bu.createChallenge(e.verifier);i.code_challenge=u,i.code_challenge_method="S256"}const o=os({url:new URL(this.getUrl("authorize",i,e)),init:{}},{type:Tr.Authorize}),{url:l}=o(a);return l.toString()}static async getAuthCodeByIframe(e){const t=await this.createAuthorizeUrl({...e,prompt:"none"}),{serverConfig:a}=_n.get(e);return new Promise((s,r)=>{const i=document.createElement("iframe"),o=()=>{};let l=o,u=o,c=0;u=()=>{clearTimeout(c),i.removeEventListener("load",l),i.remove()},l=()=>{if(i.contentWindow){const d=i.contentWindow.location.href;(this.containsAuthCode(d)||this.containsAuthError(d))&&(u(),s(d))}},c=setTimeout(()=>{u(),r(new Error(Qr.AuthorizationTimeout))},a.timeout),i.style.display="none",i.addEventListener("load",l),document.body.appendChild(i),i.src=t})}static async getOAuth2Tokens(e){const{clientId:t,redirectUri:a}=_n.get(e),s={client_id:t,code:e.authorizationCode,grant_type:"authorization_code",redirect_uri:a};e.verifier&&(s.code_verifier=e.verifier);const r=Ys(s),i={body:r,headers:new Headers({"Content-Length":r.length.toString(),"Content-Type":"application/x-www-form-urlencoded"}),method:"POST"},o=await this.request("accessToken",void 0,!1,i,e),l=await this.getBody(o);if(o.status!==200){const d=typeof l=="string"?`Expected 200, received ${o.status}`:this.parseError(l);throw new Error(d)}const u=l;if(!u.access_token)throw new Error("Access token not found in response");let c;return u.expires_in&&(c=Date.now()+u.expires_in*1e3),{accessToken:u.access_token,idToken:u.id_token,refreshToken:u.refresh_token,tokenExpiry:c}}static async getUserInfo(e){const t=await this.request("userInfo",void 0,!0,void 0,e);if(t.status!==200)throw new Error(`Failed to get user info; received ${t.status}`);return await t.json()}static async endSession(e){const t={...e};delete t.redirect,delete t.logoutRedirectUri;const a={},s=await Mi.get();a.id_token_hint=s&&s.idToken||(e&&"idToken"in e?e.idToken:"");const r=await this.request("endSession",a,!0,void 0,t,{redirect:e==null?void 0:e.redirect,logoutRedirectUri:e==null?void 0:e.logoutRedirectUri});if(!_u(r))throw new Error(`Failed to end session; received ${r.status}`);return r}static async revokeToken(e){const{clientId:t}=_n.get(e),a=await Mi.get(),s=a&&a.accessToken,r={client_id:t};s&&(r.token=s);const i={body:Ys(r),credentials:"include",headers:new Headers({"Content-Type":"application/x-www-form-urlencoded"}),method:"POST"},o=await this.request("revoke",void 0,!1,i,e);if(!_u(o))throw new Error(`Failed to revoke token; received ${o.status}`);return o}static async request(e,t,a,s,r,i){const{redirectUri:o,middleware:l,serverConfig:u}=_n.get(r),c=i!=null&&i.logoutRedirectUri?i.logoutRedirectUri:o,d=this.getUrl(e,t,r),f=p=>{switch(p){case"accessToken":return Tr.ExchangeToken;case"endSession":return Tr.EndSession;case"revoke":return Tr.RevokeToken;default:return Tr.UserInfo}};if(s=s||{},s.headers=s.headers||new Headers,s.headers.set("Accept","application/json"),a){const p=await Mi.get(),m=p&&p.accessToken;s.credentials="include",s.headers.set("Authorization",`Bearer ${m}`)}const h=os({url:new URL(d),init:s},{type:f(e)})(l);return f(e)===Tr.EndSession&&(i==null?void 0:i.redirect)===!0?(h.url.searchParams.append("post_logout_redirect_uri",c||""),window.location.assign(h.url.toString()),new Response):f(e)===Tr.EndSession&&(i==null?void 0:i.redirect)!==!1&&(i!=null&&i.logoutRedirectUri||this.getUrl("endSession").includes("/as/signoff"))?(h.url.searchParams.append("post_logout_redirect_uri",c||""),window.location.assign(h.url.toString()),new Response):await Ks(fetch(h.url.toString(),h.init),u.timeout)}static containsAuthCode(e){return!!e&&/code=([^&]+)/.test(e)}static containsAuthError(e){return!!e&&/error=([^&]+)/.test(e)}static async getBody(e){const t=e.headers.get("Content-Type");return t&&t.indexOf("application/json")>-1?await e.json():await e.text()}static parseError(e){if(e){if(e.error&&e.error_description)return`${e.error}: ${e.error_description}`;if(e.code&&e.message)return`${e.code}: ${e.message}`}}static getUrl(e,t,a){const{realmPath:s,serverConfig:r}=_n.get(a),i=Go(e,s,r.paths);let o=Wo(r.baseUrl,i);return t&&(o+=`?${Ys(t)}`),o}};class zd{static async logout(e){const{middleware:t,platformHeader:a,realmPath:s,serverConfig:r}=_n.get(e),i={credentials:"include",headers:new Headers({"Accept-API-Version":"protocol=1.0,resource=2.0","X-Requested-With":Nd}),method:"POST"},o=`${Go("sessions",s,r.paths)}?_action=logout`,l=Wo(r.baseUrl,o),u=os({url:new URL(l),init:i},{type:Tr.Logout})(t);a&&(u.init.headers instanceof Headers?u.init.headers.set("X-Requested-Platform",ta):Array.isArray(u.init.headers)?u.init.headers.push(["X-Requested-Platform",ta]):u.init.headers?u.init.headers["X-Requested-Platform"]=ta:u.init.headers={"X-Requested-Platform":ta});const c=await Ks(fetch(u.url.toString(),u.init),r.timeout);if(!_u(c))throw new Error(`Failed to log out; received ${c.status}`);return c}}function Gd(n,e){return`${e||"FR-SDK"}-authflow-${n}`}function Rm(n){const e=bu.createVerifier(),t=bu.createState(),a=Gd(n.clientId,n.prefix),s={...n,state:t,verifier:e};return[s,()=>sessionStorage.setItem(a,JSON.stringify(s))]}function Dm(n,e){const t=Gd(n,e),a=sessionStorage.getItem(t);sessionStorage.removeItem(t);try{return JSON.parse(a)}catch{throw new Error("Stored values for Auth URL could not be parsed")}}function Nm(n,e){return n&&e?e-n<Date.now():!1}var Wd=(n=>(n.Code="code",n.Token="token",n))(Wd||{});let wu=class Ag{static async getTokens(e){var c,d,f;const{clientId:t,oauthThreshold:a,prefix:s}=_n.get(e);if(!t)throw new Error("Client ID is required");const r=await Mi.get();if(r&&!(e!=null&&e.forceRenew)&&!((c=e==null?void 0:e.query)!=null&&c.code)&&!Nm(a,r.tokenExpiry))return r;if(r)try{await Ri.revokeToken(e),await Ag.deleteTokens()}catch(h){In.warn("Existing tokens could not be revoked or deleted",h)}if((d=e==null?void 0:e.query)!=null&&d.code&&((f=e==null?void 0:e.query)!=null&&f.state)){const{state:h,verifier:p}=Dm(t,s);if(h===void 0||p===void 0)throw new Error("`state` and/or `verifier` not found in sessionStorage. Debugging: sessionStorage is not accessible in separate tabs.");return await this.tokenExchange(e,{state:h,verifier:p})}const i=Object.assign({},e);delete i.forceRenew;const[o,l]=Rm({...i,clientId:t,prefix:s,responseType:Wd.Code});if(e||(e={}),e.skipBackgroundRequest!==!0){try{const h=new URL(await Ri.getAuthCodeByIframe(o));if(h.searchParams.get("error"))throw Error(`${h.searchParams.get("error_description")}`);if(!h.searchParams.get("code"))throw Error(Qr.AuthenticationConsentRequired);const p=$p(h.toString());e.query=p}catch(h){if(!(h instanceof Error)||(e==null?void 0:e.login)!=="redirect"||Qr.AuthenticationIsRequired!==h.message&&Qr.AuthenticationConsentRequired!==h.message&&Qr.AuthorizationTimeout!==h.message&&Qr.FailedToFetch!==h.message&&Qr.NetworkError!==h.message&&Qr.InteractionNotAllowed!==h.message&&Qr.RequestRequiresConsent!==h.message&&!h.message.includes(Qr.LoginRequired)&&!h.message.includes(Qr.CORSError))throw h;const p=await Ri.createAuthorizeUrl(o);return l(),location.assign(p)}return await this.tokenExchange(e,{state:o.state,verifier:o.verifier})}const u=await Ri.createAuthorizeUrl(o);return l(),location.assign(u)}static async deleteTokens(){await Mi.remove()}static async tokenExchange(e,t){var o,l,u,c;if(((o=e.query)==null?void 0:o.state)!==t.state)throw new Error("State mismatch");if(!((l=e.query)!=null&&l.code)||Array.isArray((u=e.query)==null?void 0:u.code))throw new Error("Failed to acquire authorization code");const a=(c=e.query)==null?void 0:c.code,s=t.verifier,r={...e,authorizationCode:a,verifier:s},i=await Ri.getOAuth2Tokens(r);if(!i||!i.accessToken)throw new Error("Unable to exchange authorization for tokens");try{await Mi.set(i)}catch(d){In.error("Failed to store tokens",d)}return i}};class Um{static async login(e,t){throw In.info(e,t),new Error("FRUser.login() not implemented")}static async logout(e){const t={...e};delete t.redirect;const{serverConfig:a}=_n.get(t);if(!a.paths||a.paths&&"sessions"in a.paths)try{await zd.logout(t)}catch{In.warn("Session logout was not successful")}if((e==null?void 0:e.redirect)===!1)try{await Ri.endSession({...e})}catch{In.warn("OAuth endSession was not successful")}try{await Ri.revokeToken(t)}catch{In.warn("OAuth revokeToken was not successful")}const s=await Mi.get(),{idToken:r=""}=s||{};if(await wu.deleteTokens(),(e==null?void 0:e.redirect)!==!1)try{await Ri.endSession({...e,idToken:r})}catch{In.warn("OAuth endSession was not successful")}}}var Ma=(n=>(n.Error="ERROR",n.Unsupported="unsupported",n))(Ma||{}),gr=(n=>(n.AbortError="AbortError",n.DataError="DataError",n.ConstraintError="ConstraintError",n.EncodingError="EncodingError",n.InvalidError="InvalidError",n.NetworkError="NetworkError",n.NotAllowedError="NotAllowedError",n.NotSupportedError="NotSupportedError",n.SecurityError="SecurityError",n.TimeoutError="TimeoutError",n.UnknownError="UnknownError",n))(gr||{}),Gr=(n=>(n[n.None=0]="None",n[n.Authentication=1]="Authentication",n[n.Registration=2]="Registration",n))(Gr||{});function Eu(n){return n||[]}function Su(n){const e=new Uint8Array(n);return new TextDecoder().decode(e)}function Gn(n){return n?n[1]:""}function ku(n){try{return n.split("}").filter(e=>!!e&&e!=="]").map(e=>{const t=Fm(e);return{id:new Int8Array(t).buffer,type:"public-key"}})}catch{const e=new Error("Transforming credential object to string failed");throw e.name=gr.EncodingError,e}}function Fm(n){const e=/new Int8Array\((.+)\)/.exec(n);return e===null||e.length<2?[]:JSON.parse(e[1])}function qd(n){if(Array.isArray(n))return n;if(typeof n=="string")return n&&n[0]==="["?JSON.parse(n):(n=n.replace(/(\w+):/g,'"$1":'),JSON.parse(`[${n}]`))}function Kd(n){return n.includes("rpId")?n.replace(/rpId: "(.+)",/,"$1"):n.replace(/id: "(.+)",/,"$1")}function Bm(n){const e=new TextEncoder,t=Gn(n.match(/attestation"{0,}:\s{0,}"(\w+)"/)),a=Number(Gn(n.match(/timeout"{0,}:\s{0,}(\d+)/))),s=Gn(n.match(/userVerification"{0,}:\s{0,}"(\w+)"/)),r=Gn(n.match(/requireResidentKey"{0,}:\s{0,}(\w+)/)),i=Gn(n.match(/authenticatorAttachment"{0,}:\s{0,}"([\w-]+)/)),o=Gn(n.match(/rp"{0,}:\s{0,}{([^}]+)}/)).trim(),l=Gn(o.match(/id"{0,}:\s{0,}"([^"]*)"/)),u=Gn(o.match(/name"{0,}:\s{0,}"([^"]*)"/)),c=Gn(n.match(/user"{0,}:\s{0,}{([^]{0,})},/)).trim(),d=Gn(c.match(/id"{0,}:\s{0,}Uint8Array.from\("([^"]+)"/)),f=Gn(c.match(/name"{0,}:\s{0,}"([\d\w._-]+)"/)),h=Gn(c.match(/displayName"{0,}:\s{0,}"([\d\w\s.@_-]+)"/)),p=Gn(n.match(/pubKeyCredParams"*:\s*\[([^]+\d\s*})\s*]/)).trim(),m=qd(p);if(!m){const S=new Error("Missing pubKeyCredParams property from registration options");throw S.name=gr.DataError,S}const w=Gn(n.match(/excludeCredentials"{0,}:\s{0,}\[([^]+)\s{0,}]/)).trim(),E=ku(w),v=Eu(n.match(/challenge"{0,}:\s{0,}new\s{0,}(Uint|Int)8Array\(([^\)]+)/)),y=JSON.parse(v[2]),b=new Int8Array(y).buffer;return{attestation:t,authenticatorSelection:{userVerification:s,...i&&{authenticatorAttachment:i},...r==="true"&&{requireResidentKey:!!r}},challenge:b,...E.length&&{excludeCredentials:E},pubKeyCredParams:m,rp:{name:u,...l&&{id:l}},timeout:a,user:{displayName:h,id:e.encode(d),name:f}}}function Vm(n){let e,t;n.includes("acceptableCredentials")?t=Gn(n.match(/acceptableCredentials"*\s*=\s*\[([^]+)\s*]/)).trim():t=Gn(n.match(/allowCredentials"{0,}:\s{0,}\[([^]+)\s{0,}]/)).trim();const a=Gn(n.match(/userVerification"{0,}:\s{0,}"(\w+)"/));t&&(e=(t.split("},")||[t]).map(u=>{const c=Gn(u.match(/type"{0,}:\s{0,}"([\w-]+)"/)),d=Eu(u.match(/id"{0,}:\s{0,}new\s{0,}(Uint|Int)8Array\(([^\)]+)/)),f=JSON.parse(d[2]),h=new Int8Array(f).buffer;return{type:c,id:h}}));const s=Number(Gn(n.match(/timeout"{0,}:\s{0,}(\d+)/))),r=Eu(n.match(/challenge"{0,}:\s{0,}new\s{0,}(Uint|Int)8Array\(([^\)]+)/)),i=JSON.parse(r[2]),o=new Int8Array(i).buffer,l=Gn(n.match(/rpId"{0,}:\s{0,}\\{0,}"([^"\\]*)/));return{challenge:o,timeout:s,...e&&{allowCredentials:e},...a&&{userVerification:a},...l&&{rpId:l}}}let Ko=class{static getWebAuthnStepType(e){var r;const t=this.getOutcomeCallback(e),a=this.getMetadataCallback(e),s=this.getTextOutputCallback(e);return t&&a?(r=a.getOutputValue("data"))!=null&&r.pubKeyCredParams?Gr.Registration:Gr.Authentication:t&&s?s.getMessage().includes("pubKeyCredParams")?Gr.Registration:Gr.Authentication:Gr.None}static async authenticate(e){var r;const{hiddenCallback:t,metadataCallback:a,textOutputCallback:s}=this.getCallbacks(e);if(t&&(a||s)){let i,o=null;try{let l;if(a){const u=a.getOutputValue("data");l=this.createAuthenticationPublicKey(u),o=await this.getAuthenticationCredential(l),i=this.getAuthenticationOutcome(o)}else if(s)l=Vm(s.getMessage()),o=await this.getAuthenticationCredential(l),i=this.getAuthenticationOutcome(o);else throw new Error("No Credential found from Public Key")}catch(l){throw l instanceof Error?l.name===gr.NotSupportedError?(t.setInputValue(Ma.Unsupported),l):(t.setInputValue(`${Ma.Error}::${l.name}:${l.message}`),l):l}return a&&((r=a.getOutputValue("data"))!=null&&r.supportsJsonResponse)&&o&&"authenticatorAttachment"in o?(t.setInputValue(JSON.stringify({authenticatorAttachment:o.authenticatorAttachment,legacyData:i})),e):(t.setInputValue(i),e)}else{const i=new Error("Incorrect callbacks for WebAuthn authentication");throw i.name=gr.DataError,t==null||t.setInputValue(`${Ma.Error}::${i.name}:${i.message}`),i}}static async register(e,t){var i;const{hiddenCallback:a,metadataCallback:s,textOutputCallback:r}=this.getCallbacks(e);if(a&&(s||r)){let o,l=null;try{let u;if(s){const c=s.getOutputValue("data");u=this.createRegistrationPublicKey(c),l=await this.getRegistrationCredential(u),o=this.getRegistrationOutcome(l)}else if(r)u=Bm(r.getMessage()),l=await this.getRegistrationCredential(u),o=this.getRegistrationOutcome(l);else throw new Error("No Credential found from Public Key")}catch(u){throw u instanceof Error?u.name===gr.NotSupportedError?(a.setInputValue(Ma.Unsupported),u):(a.setInputValue(`${Ma.Error}::${u.name}:${u.message}`),u):u}return s&&((i=s.getOutputValue("data"))!=null&&i.supportsJsonResponse)&&l&&"authenticatorAttachment"in l?(a.setInputValue(JSON.stringify({authenticatorAttachment:l.authenticatorAttachment,legacyData:t&&t.length>0?`${o}::${t}`:o})),e):(a.setInputValue(t&&t.length>0?`${o}::${t}`:o),e)}else{const o=new Error("Incorrect callbacks for WebAuthn registration");throw o.name=gr.DataError,a==null||a.setInputValue(`${Ma.Error}::${o.name}:${o.message}`),o}}static getCallbacks(e){const t=this.getOutcomeCallback(e),a=this.getMetadataCallback(e),s=this.getTextOutputCallback(e),r={hiddenCallback:t};return a?r.metadataCallback=a:s&&(r.textOutputCallback=s),r}static getMetadataCallback(e){return e.getCallbacksOfType(he.MetadataCallback).find(t=>{const a=t.getOutputByName("data",void 0);return a&&a.hasOwnProperty("relyingPartyId")})}static getOutcomeCallback(e){return e.getCallbacksOfType(he.HiddenValueCallback).find(t=>t.getOutputByName("id","")==="webAuthnOutcome")}static getTextOutputCallback(e){return e.getCallbacksOfType(he.TextOutputCallback).find(t=>{const a=t.getOutputByName("message",void 0);return a&&a.includes("webAuthnOutcome")})}static async getAuthenticationCredential(e){if(!window.PublicKeyCredential){const t=new Error("PublicKeyCredential not supported by this browser");throw t.name=gr.NotSupportedError,t}return await navigator.credentials.get({publicKey:e})}static getAuthenticationOutcome(e){if(e===null){const t=new Error("No credential generated from authentication");throw t.name=gr.UnknownError,t}try{const t=Su(e.response.clientDataJSON),a=e.response,s=new Int8Array(a.authenticatorData).toString(),r=new Int8Array(a.signature).toString(),i=Su(e.response.userHandle);let o=`${t}::${s}::${r}::${e.id}`;return i&&(o=`${o}::${i}`),o}catch{const t=new Error("Transforming credential object to string failed");throw t.name=gr.EncodingError,t}}static async getRegistrationCredential(e){if(!window.PublicKeyCredential){const t=new Error("PublicKeyCredential not supported by this browser");throw t.name=gr.NotSupportedError,t}return await navigator.credentials.create({publicKey:e})}static getRegistrationOutcome(e){if(e===null){const t=new Error("No credential generated from registration");throw t.name=gr.UnknownError,t}try{const t=Su(e.response.clientDataJSON),a=e.response,s=new Int8Array(a.attestationObject).toString();return`${t}::${s}::${e.id}`}catch{const t=new Error("Transforming credential object to string failed");throw t.name=gr.EncodingError,t}}static createAuthenticationPublicKey(e){const{acceptableCredentials:t,allowCredentials:a,challenge:s,relyingPartyId:r,timeout:i,userVerification:o}=e,l=Kd(r),u=ku(a||t||"");return{challenge:Uint8Array.from(atob(s),c=>c.charCodeAt(0)).buffer,timeout:i,...u&&{allowCredentials:u},...o&&{userVerification:o},...l&&{rpId:l}}}static createRegistrationPublicKey(e){const{pubKeyCredParams:t}=e,a=qd(t);if(!a){const w=new Error("Missing pubKeyCredParams property from registration options");throw w.name=gr.DataError,w}const s=ku(e.excludeCredentials),{attestationPreference:r,authenticatorSelection:i,challenge:o,relyingPartyId:l,relyingPartyName:u,timeout:c,userId:d,userName:f,displayName:h}=e,p=Kd(l),m={name:u,...p&&{id:p}};return{attestation:r,authenticatorSelection:JSON.parse(i),challenge:Uint8Array.from(atob(o),w=>w.charCodeAt(0)).buffer,...s.length&&{excludeCredentials:s},pubKeyCredParams:a,rp:m,timeout:c,user:{displayName:h||f,id:Int8Array.from(d.split("").map(w=>w.charCodeAt(0))),name:h||f}}}};function Hm(n,e,t){const a=new Headers(n.headers);return e.AuthenticateToServiceConditionAdvice?a.set("X-Tree",e.AuthenticateToServiceConditionAdvice[0]):e.TransactionConditionAdvice&&a.set("X-TxID",e.TransactionConditionAdvice[0]),t&&t.idToken&&a.set("X-IdToken",t.idToken),a}function jm(n,e,t){const a=new URL(n);if(e.TransactionConditionAdvice){const s=e.TransactionConditionAdvice[0];a.searchParams.append("_txid",s)}return t&&t.idToken&&a.searchParams.append("_idtoken",t.idToken),a.toString()}function zm(n,e,t,a,s){const r=n.advices&&n.advices.AuthenticateToServiceConditionAdvice,i=n.advices&&n.advices.TransactionConditionAdvice;let o="",l="";r?(o=r.reduce((m,w)=>{const E=m&&` ${m}`;return m=`${w}${E}`,m},""),l="AuthenticateToServiceConditionAdvice"):i&&(o=i.reduce((m,w)=>{const E=m&&` ${m}`;return m=`${w}${E}`,m},""),l="TransactionConditionAdvice");const u="<Advices><AttributeValuePair>",c=`<Attribute name="${l}"/>`,d=`<Value>${o}</Value>`,f=`${u}${c}${d}</AttributeValuePair></Advices>`,h=Go("authenticate",a,s),p={authIndexType:"composite_advice",authIndexValue:f};return{init:{method:"POST",credentials:"include",headers:new Headers({"Accept-API-Version":"resource=2.0, protocol=1.0"})},timeout:t,url:Wo(e,`${h}?${Ys(p)}`)}}function Gm(n){return(n.headers.get("Content-Type")||"").includes("html")&&n.url.includes("composite_advice")}function Wm(n){return(n.get("WWW-Authenticate")||"").includes("advices")}async function qm(n){return!!(await n.clone().json()).advices}function Yd(n){const e=new URL(n).searchParams.get("authIndexValue")||"",t=new DOMParser,a=decodeURIComponent(e),s=t.parseFromString(a,"application/xml").querySelector("Value");return s?s.innerHTML:""}function Km(n){const e=(n.split(",")||[]).find(a=>a.includes("advices"))||"";let t;try{const a=e.match(/"(\S+)"/),s=a?a[1]:"",r=atob(s);return t=JSON.parse(r),t}catch{In.error("Could not parse advices value from WWW-Authenticate header")}return{}}function Ym(n){return n.advices&&n.advices.AuthenticateToServiceConditionAdvice?Array.isArray(n.advices.AuthenticateToServiceConditionAdvice)&&n.advices.AuthenticateToServiceConditionAdvice.length>0:n.advices&&n.advices.TransactionConditionAdvice?Array.isArray(n.advices.TransactionConditionAdvice)&&n.advices.TransactionConditionAdvice.length>0:!1}async function Zm(n){return!!(await n.clone().json()).callbacks}function Jm(n,e){return typeof e=="function"?e(n):n.status===401}function Xm(n){const e={};return n.url.includes("AuthenticateToServiceConditionAdvice")?e.AuthenticateToServiceConditionAdvice=[Yd(n.url)]:e.TransactionConditionAdvice=[Yd(n.url)],{resource:"",actions:{},attributes:{},advices:e,ttl:0}}function $m(n){const e=n.headers.get("WWW-Authenticate")||"",t=Km(e);return{resource:"",actions:{},attributes:{},advices:t,ttl:0}}async function Qm(n){return await n.json()}class Zd{static async request(e){let t=await this._request(e,!1),a,s=!1;if(Jm(t,e.requiresNewToken)&&(t=await this._request(e,!0)),e.authorization&&e.authorization.handleStep)if(t.status===401&&Wm(t.headers)?(s=!0,a=$m(t)):t.redirected&&Gm(t)?(s=!0,a=Xm(t)):await qm(t)&&(a=await Qm(t)),a&&a.advices){const{middleware:r,realmPath:i,serverConfig:o}=_n.get(e.authorization.config),l=zm(a,o.baseUrl,e.timeout,i,o.paths),u=new URL(l.url),c=u.searchParams.get("authIndexType"),d=u.searchParams.get("authIndexValue"),f=os({url:new URL(l.url),init:l.init},{type:Tr.StartAuthenticate,payload:{type:c,tree:d}}),{url:h,init:p}=f(r);l.url=h.toString(),l.init=p;const m=await this._request(l,!1);if(!await Zm(m))throw new Error('Error: Initial response from auth server not a "step".');if(!Ym(a))throw new Error("Error: Transactional or Service Advice is empty.");await this.stepIterator(m,e.authorization.handleStep);const w=await Mi.get();s?e.url=jm(e.url,a.advices,w):e.init.headers=Hm(e.init,a.advices,w),t=await this._request(e,!1)}else throw new Error("Error: Unable to process advice");return t}static async setAuthHeaders(e,t){let a=await Mi.get();return a&&a.accessToken&&(a=await wu.getTokens({forceRenew:t}),a&&a.accessToken&&e.set("Authorization",`Bearer ${a.accessToken}`)),e}static async stepIterator(e,t){const a=await e.json(),s=new Hd(a);return new Promise(async(r,i)=>{async function o(l){const u=await t(l),c=await ra.next(u,{tree:"",type:""});c.type===ir.LoginSuccess?r():c.type===ir.LoginFailure?i("Authentication tree failure."):o(c)}o(s)})}static async _request(e,t){const{url:a,init:s,timeout:r}=e;let i=new Headers(s.headers||{});return e.authorization&&i.set("x-authenticate-response","header"),e.bypassAuthentication||(i=await this.setAuthHeaders(i,t)),s.headers=i,Ks(fetch(a,s),r)}}class ev{static getCurrentUser(e){return Ri.getUserInfo(e)}}class Cu{constructor(e,t=!0){di(this,"anchor");nn(this,ui,new Map);nn(this,Ii,new Map);nn(this,Dr,new Map);nn(this,Ka,new Set);nn(this,So,!0);nn(this,ko,e=>{if(ge(this,ui).has(e)){var t=ge(this,ui).get(e),a=ge(this,Ii).get(t);if(a)uu(a),ge(this,Ka).delete(t);else{var s=ge(this,Dr).get(t);s&&!(s.effect.f&rr)&&(ge(this,Ii).set(t,s.effect),ge(this,Dr).delete(t),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),a=s.effect)}for(const[r,i]of ge(this,ui)){if(ge(this,ui).delete(r),r===e)break;const o=ge(this,Dr).get(i);o&&(hr(o.effect),ge(this,Dr).delete(i))}for(const[r,i]of ge(this,Ii)){if(r===t||ge(this,Ka).has(r)||i.f&rr)continue;const o=()=>{if(Array.from(ge(this,ui).values()).includes(r)){var u=document.createDocumentFragment();cu(i,u),u.append(cr()),ge(this,Dr).set(r,{effect:i,fragment:u})}else hr(i);ge(this,Ka).delete(r),ge(this,Ii).delete(r)};ge(this,So)||!a?(ge(this,Ka).add(r),La(i,o,!1)):o()}}});nn(this,Nl,e=>{ge(this,ui).delete(e);const t=Array.from(ge(this,ui).values());for(const[a,s]of ge(this,Dr))t.includes(a)||(hr(s.effect),ge(this,Dr).delete(a))});this.anchor=e,qt(this,So,t)}ensure(e,t){var a=Yt,s=Qc();if(t&&!ge(this,Ii).has(e)&&!ge(this,Dr).has(e))if(s){var r=document.createDocumentFragment(),i=cr();r.append(i),ge(this,Dr).set(e,{effect:jr(()=>t(i)),fragment:r})}else ge(this,Ii).set(e,jr(()=>t(this.anchor)));if(ge(this,ui).set(a,e),s){for(const[o,l]of ge(this,Ii))o===e?a.unskip_effect(l):a.skip_effect(l);for(const[o,l]of ge(this,Dr))o===e?a.unskip_effect(l.effect):a.skip_effect(l.effect);a.oncommit(ge(this,ko)),a.ondiscard(ge(this,Nl))}else Gt&&(this.anchor=Bt),ge(this,ko).call(this,a)}}ui=new WeakMap,Ii=new WeakMap,Dr=new WeakMap,Ka=new WeakMap,So=new WeakMap,ko=new WeakMap,Nl=new WeakMap;function ht(n,e,t=!1){var a;Gt&&(a=Bt,Li());var s=new Cu(n),r=t?Sa:0;function i(o,l){if(Gt){var u=$l(a);if(o!==parseInt(u.substring(1))){var c=Vs();Qn(c),s.anchor=c,Zr(!1),s.ensure(o,l),Zr(!0);return}}s.ensure(o,l)}qs(()=>{var o=!1;e((l,u=0)=>{o=!0,i(u,l)}),o||i(-1,null)},r)}const tv=Symbol("NaN");function Ra(n,e,t){Gt&&Li();var a=new Cu(n),s=!ns();qs(()=>{var r=e();r!==r&&(r=tv),s&&r!==null&&typeof r=="object"&&(r={}),a.ensure(r,t)})}function pr(n,e){return e}function nv(n,e,t){for(var a=[],s=e.length,r,i=e.length,o=0;o<s;o++){let d=e[o];La(d,()=>{if(r){if(r.pending.delete(d),r.done.add(d),r.pending.size===0){var f=n.outrogroups;Iu(n,Mo(r.done)),f.delete(r),f.size===0&&(n.outrogroups=null)}}else i-=1},!1)}if(i===0){var l=a.length===0&&t!==null;if(l){var u=t,c=u.parentNode;$c(c),c.append(u),n.items.clear()}Iu(n,e,!l)}else r={pending:new Set(e),done:new Set},(n.outrogroups??(n.outrogroups=new Set)).add(r)}function Iu(n,e,t=!0){var a;if(n.pending.size>0){a=new Set;for(const i of n.pending.values())for(const o of i)a.add(n.items.get(o).e)}for(var s=0;s<e.length;s++){var r=e[s];if(a!=null&&a.has(r)){r.f|=hi;const i=document.createDocumentFragment();cu(r,i)}else hr(e[s],t)}}var Jd;function mr(n,e,t,a,s,r=null){var i=n,o=new Map,l=(e&Gc)!==0;if(l){var u=n;i=Gt?Qn(Fr(u)):u.appendChild(cr())}Gt&&Li();var c=null,d=Te(()=>{var y=t();return Nc(y)?y:y==null?[]:Mo(y)}),f,h=new Map,p=!0;function m(y){v.effect.f&fi||(v.pending.delete(y),v.fallback=c,rv(v,f,i,e,a),c!==null&&(f.length===0?c.f&hi?(c.f^=hi,Js(c,null,i)):uu(c):La(c,()=>{c=null})))}function w(y){v.pending.delete(y)}var E=qs(()=>{f=_(d);var y=f.length;let b=!1;if(Gt){var S=$l(i)===Jl;S!==(y===0)&&(i=Vs(),Qn(i),Zr(!1),b=!0)}for(var I=new Set,C=Yt,k=Qc(),M=0;M<y;M+=1){Gt&&Bt.nodeType===$a&&Bt.data===Xl&&(i=Bt,b=!0,Zr(!1));var P=f[M],D=a(P,M),V=p?null:o.get(D);V?(V.v&&as(V.v,P),V.i&&as(V.i,M),k&&C.unskip_effect(V.e)):(V=iv(o,p?i:Jd??(Jd=cr()),P,D,M,s,e,t),p||(V.e.f|=hi),o.set(D,V)),I.add(D)}if(y===0&&r&&!c&&(p?c=jr(()=>r(i)):(c=jr(()=>r(Jd??(Jd=cr()))),c.f|=hi)),y>I.size&&Ng(),Gt&&y>0&&Qn(Vs()),!p)if(h.set(C,I),k){for(const[B,Y]of o)I.has(B)||C.skip_effect(Y.e);C.oncommit(m),C.ondiscard(w)}else m(C);b&&Zr(!0),_(d)}),v={effect:E,items:o,pending:h,outrogroups:null,fallback:c};p=!1,Gt&&(i=Bt)}function Zs(n){for(;n!==null&&!(n.f&Yr);)n=n.next;return n}function rv(n,e,t,a,s){var P,D,V,B,Y,Z,te,$,H;var r=(a&$g)!==0,i=e.length,o=n.items,l=Zs(n.effect.first),u,c=null,d,f=[],h=[],p,m,w,E;if(r)for(E=0;E<i;E+=1)p=e[E],m=s(p,E),w=o.get(m).e,w.f&hi||((D=(P=w.nodes)==null?void 0:P.a)==null||D.measure(),(d??(d=new Set)).add(w));for(E=0;E<i;E+=1){if(p=e[E],m=s(p,E),w=o.get(m).e,n.outrogroups!==null)for(const A of n.outrogroups)A.pending.delete(w),A.done.delete(w);if(w.f&hi)if(w.f^=hi,w===l)Js(w,null,t);else{var v=c?c.next:l;w===n.effect.last&&(n.effect.last=w.prev),w.prev&&(w.prev.next=w.next),w.next&&(w.next.prev=w.prev),ia(n,c,w),ia(n,w,v),Js(w,v,t),c=w,f=[],h=[],l=Zs(c.next);continue}if(w.f&rr&&(uu(w),r&&((B=(V=w.nodes)==null?void 0:V.a)==null||B.unfix(),(d??(d=new Set)).delete(w))),w!==l){if(u!==void 0&&u.has(w)){if(f.length<h.length){var y=h[0],b;c=y.prev;var S=f[0],I=f[f.length-1];for(b=0;b<f.length;b+=1)Js(f[b],y,t);for(b=0;b<h.length;b+=1)u.delete(h[b]);ia(n,S.prev,I.next),ia(n,c,S),ia(n,I,y),l=y,c=I,E-=1,f=[],h=[]}else u.delete(w),Js(w,l,t),ia(n,w.prev,w.next),ia(n,w,c===null?n.effect.first:c.next),ia(n,c,w),c=w;continue}for(f=[],h=[];l!==null&&l!==w;)(u??(u=new Set)).add(l),h.push(l),l=Zs(l.next);if(l===null)continue}w.f&hi||f.push(w),c=w,l=Zs(w.next)}if(n.outrogroups!==null){for(const A of n.outrogroups)A.pending.size===0&&(Iu(n,Mo(A.done)),(Y=n.outrogroups)==null||Y.delete(A));n.outrogroups.size===0&&(n.outrogroups=null)}if(l!==null||u!==void 0){var C=[];if(u!==void 0)for(w of u)w.f&rr||C.push(w);for(;l!==null;)!(l.f&rr)&&l!==n.fallback&&C.push(l),l=Zs(l.next);var k=C.length;if(k>0){var M=a&Gc&&i===0?t:null;if(r){for(E=0;E<k;E+=1)(te=(Z=C[E].nodes)==null?void 0:Z.a)==null||te.measure();for(E=0;E<k;E+=1)(H=($=C[E].nodes)==null?void 0:$.a)==null||H.fix()}nv(n,C,M)}}r&&gi(()=>{var A,N;if(d!==void 0)for(w of d)(N=(A=w.nodes)==null?void 0:A.a)==null||N.apply()})}function iv(n,e,t,a,s,r,i,o){var l=i&Jg?i&Qg?Aa(t):ue(t,!1,!1):null,u=i&Xg?Aa(s):null;return{v:l,i:u,e:jr(()=>(r(e,l??t,u??s,o),()=>{n.delete(a)}))}}function Js(n,e,t){if(n.nodes)for(var a=n.nodes.start,s=n.nodes.end,r=e&&!(e.f&hi)?e.nodes.start:t;a!==null;){var i=Jr(a);if(r.before(a),a===s)return;a=i}}function ia(n,e,t){e===null?n.effect.first=t:e.next=t,t===null?n.effect.last=e:t.prev=e}function Yo(n,e,t=!1,a=!1,s=!1){var r=n,i="";Je(()=>{var o=ln;if(i===(i=e()??"")){Gt&&Li();return}if(o.nodes!==null&&(Td(o.nodes.start,o.nodes.end),o.nodes=null),i!==""){if(Gt){Bt.data;for(var l=Li(),u=l;l!==null&&(l.nodeType!==$a||l.data!=="");)u=l,l=Jr(l);if(l===null)throw Bs(),Ia;zr(Bt,u),r=Qn(l);return}var c=t?op:a?lp:void 0,d=ed(t?"svg":a?"math":"template",c);d.innerHTML=i;var f=t||a?d:d.content;if(zr(Fr(f),f.lastChild),t||a)for(;Fr(f);)r.before(Fr(f));else r.before(f)}})}function cn(n,e,t,a,s){var o;Gt&&Li();var r=(o=e.$$slots)==null?void 0:o[t],i=!1;r===!0&&(r=e[t==="default"?"children":t],i=!0),r===void 0?s!==null&&s(n):r(n,i?()=>a:a)}function av(n,e,t){var a;Gt&&(a=Bt,Li());var s=new Cu(n);qs(()=>{var r=e()??null;if(Gt){var i=$l(a),o=i===Zl,l=r!==null;if(o!==l){var u=Vs();Qn(u),s.anchor=u,Zr(!1),s.ensure(r,r&&(c=>t(c,r))),Zr(!0);return}}s.ensure(r,r&&(c=>t(c,r)))},Sa)}function Xd(n){var e,t,a="";if(typeof n=="string"||typeof n=="number")a+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(e=0;e<s;e++)n[e]&&(t=Xd(n[e]))&&(a&&(a+=" "),a+=t)}else for(t in n)n[t]&&(a&&(a+=" "),a+=t);return a}function sv(){for(var n,e,t=0,a="",s=arguments.length;t<s;t++)(n=arguments[t])&&(e=Xd(n))&&(a&&(a+=" "),a+=e);return a}function Yn(n){return typeof n=="object"?sv(n):n??""}function ov(n,e,t){var a=n==null?"":""+n;return a===""?null:a}function lv(n,e){return n==null?null:String(n)}function Qt(n,e,t,a,s,r){var i=n.__className;if(Gt||i!==t||i===void 0){var o=ov(t);(!Gt||o!==n.getAttribute("class"))&&(o==null?n.removeAttribute("class"):e?n.className=o:n.setAttribute("class",o)),n.__className=t}return r}function $d(n,e,t,a){var s=n.__style;if(Gt||s!==e){var r=lv(e);(!Gt||r!==n.getAttribute("style"))&&(r==null?n.removeAttribute("style"):n.style.cssText=r),n.__style=e}return a}const uv=Symbol("is custom element"),cv=Symbol("is html"),dv=Dc?"link":"LINK",fv=Dc?"progress":"PROGRESS";function ei(n){if(Gt){var e=!1,t=()=>{if(!e){if(e=!0,n.hasAttribute("value")){var a=n.value;Fe(n,"value",null),n.value=a}if(n.hasAttribute("checked")){var s=n.checked;Fe(n,"checked",null),n.checked=s}}};n.__on_r=t,gi(t),gd()}}function Tu(n,e){var t=Au(n);t.value===(t.value=e??void 0)||n.value===e&&(e!==0||n.nodeName!==fv)||(n.value=e??"")}function Zo(n,e){var t=Au(n);t.checked!==(t.checked=e??void 0)&&(n.checked=e)}function hv(n,e){e?n.hasAttribute("selected")||n.setAttribute("selected",""):n.removeAttribute("selected")}function Fe(n,e,t,a){var s=Au(n);Gt&&(s[e]=n.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&n.nodeName===dv)||s[e]!==(s[e]=t)&&(e==="loading"&&(n[Pg]=t),t==null?n.removeAttribute(e):typeof t!="string"&&gv(n).includes(e)?n[e]=t:n.setAttribute(e,t))}function Au(n){return n.__attributes??(n.__attributes={[uv]:n.nodeName.includes("-"),[cv]:n.namespaceURI===qc})}var Qd=new Map;function gv(n){var e=n.getAttribute("is")||n.nodeName,t=Qd.get(e);if(t)return t;Qd.set(e,t=[]);for(var a,s=n,r=Element.prototype;r!==s;){a=Uc(s);for(var i in a)a[i].set&&t.push(i);s=Yl(s)}return t}function us(n,e,t=e){var a=new WeakSet;Ip(n,"input",async s=>{var r=s?n.defaultValue:n.value;if(r=Ou(n)?Pu(r):r,t(r),Yt!==null&&a.add(Yt),await Op(),r!==(r=e())){var i=n.selectionStart,o=n.selectionEnd,l=n.value.length;if(n.value=r??"",o!==null){var u=n.value.length;i===o&&o===l&&u>l?(n.selectionStart=u,n.selectionEnd=u):(n.selectionStart=i,n.selectionEnd=Math.min(o,u))}}}),(Gt&&n.defaultValue!==n.value||Q(e)==null&&n.value)&&(t(Ou(n)?Pu(n.value):n.value),Yt!==null&&a.add(Yt)),Ws(()=>{var s=e();if(n===document.activeElement){var r=tu??Yt;if(a.has(r))return}Ou(n)&&s===Pu(n.value)||n.type==="date"&&!s&&!n.value||s!==n.value&&(n.value=s??"")})}function Ou(n){var e=n.type;return e==="number"||e==="range"}function Pu(n){return n===""?null:+n}function Ot(n,e,t){var a=Pi(n,e);a&&a.set&&(n[e]=t,Vo(()=>{n[e]=null}))}function ef(n,e){return n===e||(n==null?void 0:n[Yi])===e}function Hn(n={},e,t,a){return Mp(()=>{var s,r;return Ws(()=>{s=r,r=[],Q(()=>{n!==t(...r)&&(e(n,...r),s&&ef(t(...s),n)&&e(null,...s))})}),()=>{gi(()=>{r&&ef(t(...r),n)&&e(null,...r)})}}),n}function xt(n=!1){const e=bn,t=e.l.u;if(!t)return;let a=()=>G(e.s);if(n){let s=0,r={};const i=js(()=>{let o=!1;const l=e.s;for(const u in l)l[u]!==r[u]&&(r[u]=l[u],o=!0);return o&&s++,s});a=()=>_(i)}t.b.length&&xp(()=>{tf(e,a),Ro(t.b)}),ou(()=>{const s=Q(()=>t.m.map(Rg));return()=>{for(const r of s)typeof r=="function"&&r()}}),t.a.length&&ou(()=>{tf(e,a),Ro(t.a)})}function tf(n,e){if(n.l.s)for(const t of n.l.s)_(t);e()}function rt(n,e,t){var a;n.$$events||(n.$$events={}),(a=n.$$events)[e]||(a[e]=[]),n.$$events[e].push(t)}function it(n){for(var e in n)e in this&&(this[e]=n[e])}let Xs=!1,xu=Symbol();function Ar(n,e,t){const a=t[e]??(t[e]={store:null,source:ue(void 0),unsubscribe:xi});if(a.store!==n&&!(xu in t))if(a.unsubscribe(),a.store=n??null,n==null)a.source.v=void 0,a.unsubscribe=xi;else{var s=!0;a.unsubscribe=Lu(n,r=>{s?a.source.v=r:ee(a.source,r)}),s=!1}return n&&xu in t?ds(n):_(a.source)}function pv(n,e){return n.set(e),e}function Wr(){const n={};function e(){Vo(()=>{for(var t in n)n[t].unsubscribe();Kl(n,xu,{enumerable:!1,value:!0})})}return[n,e]}function mv(){Xs=!0}function vv(n){var e=Xs;try{return Xs=!1,[n(),Xs]}finally{Xs=e}}const yv={get(n,e){let t=n.props.length;for(;t--;){let a=n.props[t];if(Fs(a)&&(a=a()),typeof a=="object"&&a!==null&&e in a)return a[e]}},set(n,e,t){let a=n.props.length;for(;a--;){let s=n.props[a];Fs(s)&&(s=s());const r=Pi(s,e);if(r&&r.set)return r.set(t),!0}return!1},getOwnPropertyDescriptor(n,e){let t=n.props.length;for(;t--;){let a=n.props[t];if(Fs(a)&&(a=a()),typeof a=="object"&&a!==null&&e in a){const s=Pi(a,e);return s&&!s.configurable&&(s.configurable=!0),s}}},has(n,e){if(e===Yi||e===Wl)return!1;for(let t of n.props)if(Fs(t)&&(t=t()),t!=null&&e in t)return!0;return!1},ownKeys(n){const e=[];for(let t of n.props)if(Fs(t)&&(t=t()),!!t){for(const a in t)e.includes(a)||e.push(a);for(const a of Object.getOwnPropertySymbols(t))e.includes(a)||e.push(a)}return e}};function Tn(...n){return new Proxy({props:n},yv)}function R(n,e,t,a){var y;var s=!es||(t&tp)!==0,r=(t&rp)!==0,i=(t&ip)!==0,o=a,l=!0,u=()=>(l&&(l=!1,o=i?Q(a):a),o),c;if(r){var d=Yi in n||Wl in n;c=((y=Pi(n,e))==null?void 0:y.set)??(d&&e in n?b=>n[e]=b:void 0)}var f,h=!1;r?[f,h]=vv(()=>n[e]):f=n[e],f===void 0&&a!==void 0&&(f=u(),c&&(s&&zg(),c(f)));var p;if(s?p=()=>{var b=n[e];return b===void 0?u():(l=!0,b)}:p=()=>{var b=n[e];return b!==void 0&&(o=void 0),b===void 0?o:b},s&&!(t&np))return p;if(c){var m=n.$$legacy;return function(b,S){return arguments.length>0?((!s||!S||m||h)&&c(S?p():b),b):p()}}var w=!1,E=(t&ep?js:Te)(()=>(w=!1,p()));r&&_(E);var v=ln;return function(b,S){if(arguments.length>0){const I=S?_(E):s&&r?rs(b):b;return ee(E,I),w=!0,o!==void 0&&(o=I),b}return ea&&w||v.f&fi?E.v:_(E)}}function Di(n){bn===null&&zc(),es&&bn.l!==null?nf(bn).m.push(n):ou(()=>{const e=Q(n);if(typeof e=="function")return e})}function ar(n){bn===null&&zc(),bn.l===null&&jg(),nf(bn).a.push(n)}function nf(n){var e=n.l;return e.u??(e.u={a:[],b:[],m:[]})}function Lu(n,e,t){if(n==null)return e(void 0),t&&t(void 0),xi;const a=Q(()=>n.subscribe(e,t));return a.unsubscribe?()=>a.unsubscribe():a}const cs=[];function _v(n,e){return{subscribe:ti(n,e).subscribe}}function ti(n,e=xi){let t=null;const a=new Set;function s(o){if(Hc(n,o)&&(n=o,t)){const l=!cs.length;for(const u of a)u[1](),cs.push(u,n);if(l){for(let u=0;u<cs.length;u+=2)cs[u][0](cs[u+1]);cs.length=0}}}function r(o){s(o(n))}function i(o,l=xi){const u=[o,l];return a.add(u),a.size===1&&(t=e(s,r)||xi),o(n),()=>{a.delete(u),a.size===0&&t&&(t(),t=null)}}return{set:s,update:r,subscribe:i}}function rf(n,e,t){const a=!Array.isArray(n),s=a?[n]:n;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const r=e.length<2;return _v(t,(i,o)=>{let l=!1;const u=[];let c=0,d=xi;const f=()=>{if(c)return;d();const p=e(a?u[0]:u,i,o);r?i(p):d=typeof p=="function"?p:xi},h=s.map((p,m)=>Lu(p,w=>{u[m]=w,c&=~(1<<m),l&&f()},()=>{c|=1<<m}));return l=!0,f(),function(){Ro(h),d(),l=!1}})}function ds(n){let e;return Lu(n,t=>e=t)(),e}class Or{static async getData(){return await window._pingOneSignals.getData()}static async start(e){try{await Promise.resolve().then(()=>ab)}catch(t){console.error("error loading ping signals",t)}await window._pingOneSignals.init(e),e.behavioralDataCollection===!0&&window._pingOneSignals.resumeBehavioralData()}static pauseBehavioralData(){window._pingOneSignals.pauseBehavioralData()}static resumeBehavioralData(){window._pingOneSignals.resumeBehavioralData()}static getPauseBehavioralData(e){try{const r=e.getCallbackOfType(he.PingOneProtectEvaluationCallback);return(r==null?void 0:r.getPauseBehavioralData())||!1}catch{}const t=e.getCallbacksOfType(he.MetadataCallback);if(!t.length)return!1;const a=t.find(r=>r.getData()._type==="PingOneProtect");if(!a)return!1;const s=a.getData();return s._action==="protect_risk_evaluation"?!1:!!s.behavioralDataCollection}static getNodeConfig(e){try{const s=e.getCallbackOfType(he.PingOneProtectInitializeCallback);return s==null?void 0:s.getConfig()}catch{}const t=e.getCallbacksOfType(he.MetadataCallback);if(!t.length)return;const a=t.find(s=>s.getData()._action==="protect_initialize");return a?a.getData():void 0}static getPingProtectType(e){const t=e.getCallbacksOfType(he.MetadataCallback);if(!t.length)return"none";const a=t.find(s=>s.getData()._type==="PingOneProtect");return a?a.getData()._action==="protect_initialize"?"initialize":"evaluate":"none"}static setNodeClientError(e,t){const a=e.getCallbacksOfType(he.PingOneProtectEvaluationCallback),s=e.getCallbacksOfType(he.PingOneProtectInitializeCallback),r=[...a,...s];if(r.length){r[0].setClientError(t);return}const i=e.getCallbacksOfType(he.HiddenValueCallback);if(!i.length)return;const o=i.find(l=>l.getOutputByName("id","")==="clientError");o&&o.setInputValue(t)}static setNodeInputValue(e,t){try{const r=e.getCallbackOfType(he.PingOneProtectEvaluationCallback);r==null||r.setData(t);return}catch{}const a=e.getCallbacksOfType(he.HiddenValueCallback);if(!a.length)return;const s=a.find(r=>r.getOutputByName("id","")==="pingone_risk_evaluation_signals");s&&s.setInputValue(t)}}function $s(n){if(n==="missingStores"){const e="Error: missing configuration.";throw console.error(e),console.error("Please configure Widget by importing `configuration` and calling `set` with your settings."),new Error(e)}else if(n==="missingBaseUrl"){const e="Error: missing `serverConfig.baseUrl`.";throw console.error(e),console.error("Please configure Widget by importing `configuration` and calling `set` with your ForgeRock server URL."),new Error(e)}}var mn;(function(n){n.assertEqual=s=>s;function e(s){}n.assertIs=e;function t(s){throw new Error}n.assertNever=t,n.arrayToEnum=s=>{const r={};for(const i of s)r[i]=i;return r},n.getValidEnumValues=s=>{const r=n.objectKeys(s).filter(o=>typeof s[s[o]]!="number"),i={};for(const o of r)i[o]=s[o];return n.objectValues(i)},n.objectValues=s=>n.objectKeys(s).map(function(r){return s[r]}),n.objectKeys=typeof Object.keys=="function"?s=>Object.keys(s):s=>{const r=[];for(const i in s)Object.prototype.hasOwnProperty.call(s,i)&&r.push(i);return r},n.find=(s,r)=>{for(const i of s)if(r(i))return i},n.isInteger=typeof Number.isInteger=="function"?s=>Number.isInteger(s):s=>typeof s=="number"&&isFinite(s)&&Math.floor(s)===s;function a(s,r=" | "){return s.map(i=>typeof i=="string"?`'${i}'`:i).join(r)}n.joinValues=a,n.jsonStringifyReplacer=(s,r)=>typeof r=="bigint"?r.toString():r})(mn||(mn={}));var Mu;(function(n){n.mergeShapes=(e,t)=>({...e,...t})})(Mu||(Mu={}));const gt=mn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),aa=n=>{switch(typeof n){case"undefined":return gt.undefined;case"string":return gt.string;case"number":return isNaN(n)?gt.nan:gt.number;case"boolean":return gt.boolean;case"function":return gt.function;case"bigint":return gt.bigint;case"symbol":return gt.symbol;case"object":return Array.isArray(n)?gt.array:n===null?gt.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?gt.promise:typeof Map<"u"&&n instanceof Map?gt.map:typeof Set<"u"&&n instanceof Set?gt.set:typeof Date<"u"&&n instanceof Date?gt.date:gt.object;default:return gt.unknown}},Ze=mn.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),bv=n=>JSON.stringify(n,null,2).replace(/"([^"]+)":/g,"$1:");class ni extends Error{constructor(e){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};const t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}get errors(){return this.issues}format(e){const t=e||function(r){return r.message},a={_errors:[]},s=r=>{for(const i of r.issues)if(i.code==="invalid_union")i.unionErrors.map(s);else if(i.code==="invalid_return_type")s(i.returnTypeError);else if(i.code==="invalid_arguments")s(i.argumentsError);else if(i.path.length===0)a._errors.push(t(i));else{let o=a,l=0;for(;l<i.path.length;){const u=i.path[l];l===i.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(t(i))):o[u]=o[u]||{_errors:[]},o=o[u],l++}}};return s(this),a}toString(){return this.message}get message(){return JSON.stringify(this.issues,mn.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(e=t=>t.message){const t={},a=[];for(const s of this.issues)s.path.length>0?(t[s.path[0]]=t[s.path[0]]||[],t[s.path[0]].push(e(s))):a.push(e(s));return{formErrors:a,fieldErrors:t}}get formErrors(){return this.flatten()}}ni.create=n=>new ni(n);const Qs=(n,e)=>{let t;switch(n.code){case Ze.invalid_type:n.received===gt.undefined?t="Required":t=`Expected ${n.expected}, received ${n.received}`;break;case Ze.invalid_literal:t=`Invalid literal value, expected ${JSON.stringify(n.expected,mn.jsonStringifyReplacer)}`;break;case Ze.unrecognized_keys:t=`Unrecognized key(s) in object: ${mn.joinValues(n.keys,", ")}`;break;case Ze.invalid_union:t="Invalid input";break;case Ze.invalid_union_discriminator:t=`Invalid discriminator value. Expected ${mn.joinValues(n.options)}`;break;case Ze.invalid_enum_value:t=`Invalid enum value. Expected ${mn.joinValues(n.options)}, received '${n.received}'`;break;case Ze.invalid_arguments:t="Invalid function arguments";break;case Ze.invalid_return_type:t="Invalid function return type";break;case Ze.invalid_date:t="Invalid date";break;case Ze.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(t=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(t=`${t} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?t=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?t=`Invalid input: must end with "${n.validation.endsWith}"`:mn.assertNever(n.validation):n.validation!=="regex"?t=`Invalid ${n.validation}`:t="Invalid";break;case Ze.too_small:n.type==="array"?t=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?t=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?t=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?t=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:t="Invalid input";break;case Ze.too_big:n.type==="array"?t=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?t=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?t=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?t=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?t=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:t="Invalid input";break;case Ze.custom:t="Invalid input";break;case Ze.invalid_intersection_types:t="Intersection results could not be merged";break;case Ze.not_multiple_of:t=`Number must be a multiple of ${n.multipleOf}`;break;case Ze.not_finite:t="Number must be finite";break;default:t=e.defaultError,mn.assertNever(n)}return{message:t}};let af=Qs;function wv(n){af=n}function Jo(){return af}const Xo=n=>{const{data:e,path:t,errorMaps:a,issueData:s}=n,r=[...t,...s.path||[]],i={...s,path:r};let o="";const l=a.filter(u=>!!u).slice().reverse();for(const u of l)o=u(i,{data:e,defaultError:o}).message;return{...s,path:r,message:s.message||o}},Ev=[];function mt(n,e){const t=Xo({issueData:e,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Jo(),Qs].filter(a=>!!a)});n.common.issues.push(t)}class tr{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(e,t){const a=[];for(const s of t){if(s.status==="aborted")return Ft;s.status==="dirty"&&e.dirty(),a.push(s.value)}return{status:e.value,value:a}}static async mergeObjectAsync(e,t){const a=[];for(const s of t)a.push({key:await s.key,value:await s.value});return tr.mergeObjectSync(e,a)}static mergeObjectSync(e,t){const a={};for(const s of t){const{key:r,value:i}=s;if(r.status==="aborted"||i.status==="aborted")return Ft;r.status==="dirty"&&e.dirty(),i.status==="dirty"&&e.dirty(),r.value!=="__proto__"&&(typeof i.value<"u"||s.alwaysSet)&&(a[r.value]=i.value)}return{status:e.value,value:a}}}const Ft=Object.freeze({status:"aborted"}),sf=n=>({status:"dirty",value:n}),sr=n=>({status:"valid",value:n}),Ru=n=>n.status==="aborted",Du=n=>n.status==="dirty",eo=n=>n.status==="valid",$o=n=>typeof Promise<"u"&&n instanceof Promise;var At;(function(n){n.errToObj=e=>typeof e=="string"?{message:e}:e||{},n.toString=e=>typeof e=="string"?e:e==null?void 0:e.message})(At||(At={}));class yi{constructor(e,t,a,s){this._cachedPath=[],this.parent=e,this.data=t,this._path=a,this._key=s}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const of=(n,e)=>{if(eo(e))return{success:!0,data:e.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const t=new ni(n.common.issues);return this._error=t,this._error}}};function Vt(n){if(!n)return{};const{errorMap:e,invalid_type_error:t,required_error:a,description:s}=n;if(e&&(t||a))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return e?{errorMap:e,description:s}:{errorMap:(i,o)=>i.code!=="invalid_type"?{message:o.defaultError}:typeof o.data>"u"?{message:a??o.defaultError}:{message:t??o.defaultError},description:s}}class Kt{constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this)}get description(){return this._def.description}_getType(e){return aa(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:aa(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new tr,ctx:{common:e.parent.common,data:e.data,parsedType:aa(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){const t=this._parse(e);if($o(t))throw new Error("Synchronous parse encountered promise.");return t}_parseAsync(e){const t=this._parse(e);return Promise.resolve(t)}parse(e,t){const a=this.safeParse(e,t);if(a.success)return a.data;throw a.error}safeParse(e,t){var a;const s={common:{issues:[],async:(a=t==null?void 0:t.async)!==null&&a!==void 0?a:!1,contextualErrorMap:t==null?void 0:t.errorMap},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:aa(e)},r=this._parseSync({data:e,path:s.path,parent:s});return of(s,r)}async parseAsync(e,t){const a=await this.safeParseAsync(e,t);if(a.success)return a.data;throw a.error}async safeParseAsync(e,t){const a={common:{issues:[],contextualErrorMap:t==null?void 0:t.errorMap,async:!0},path:(t==null?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:aa(e)},s=this._parse({data:e,path:a.path,parent:a}),r=await($o(s)?s:Promise.resolve(s));return of(a,r)}refine(e,t){const a=s=>typeof t=="string"||typeof t>"u"?{message:t}:typeof t=="function"?t(s):t;return this._refinement((s,r)=>{const i=e(s),o=()=>r.addIssue({code:Ze.custom,...a(s)});return typeof Promise<"u"&&i instanceof Promise?i.then(l=>l?!0:(o(),!1)):i?!0:(o(),!1)})}refinement(e,t){return this._refinement((a,s)=>e(a)?!0:(s.addIssue(typeof t=="function"?t(a,s):t),!1))}_refinement(e){return new ai({schema:this,typeName:Mt.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}optional(){return Ui.create(this,this._def)}nullable(){return Fa.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ii.create(this,this._def)}promise(){return ps.create(this,this._def)}or(e){return io.create([this,e],this._def)}and(e){return ao.create(this,e,this._def)}transform(e){return new ai({...Vt(this._def),schema:this,typeName:Mt.ZodEffects,effect:{type:"transform",transform:e}})}default(e){const t=typeof e=="function"?e:()=>e;return new co({...Vt(this._def),innerType:this,defaultValue:t,typeName:Mt.ZodDefault})}brand(){return new uf({typeName:Mt.ZodBranded,type:this,...Vt(this._def)})}catch(e){const t=typeof e=="function"?e:()=>e;return new il({...Vt(this._def),innerType:this,catchValue:t,typeName:Mt.ZodCatch})}describe(e){const t=this.constructor;return new t({...this._def,description:e})}pipe(e){return fo.create(this,e)}readonly(){return sl.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const Sv=/^c[^\s-]{8,}$/i,kv=/^[a-z][a-z0-9]*$/,Cv=/^[0-9A-HJKMNP-TV-Z]{26}$/,Iv=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Tv=/^(?!\.)(?!.*\.\.)([A-Z0-9_+-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,Av="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Nu;const Ov=/^(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))$/,Pv=/^(([a-f0-9]{1,4}:){7}|::([a-f0-9]{1,4}:){0,6}|([a-f0-9]{1,4}:){1}:([a-f0-9]{1,4}:){0,5}|([a-f0-9]{1,4}:){2}:([a-f0-9]{1,4}:){0,4}|([a-f0-9]{1,4}:){3}:([a-f0-9]{1,4}:){0,3}|([a-f0-9]{1,4}:){4}:([a-f0-9]{1,4}:){0,2}|([a-f0-9]{1,4}:){5}:([a-f0-9]{1,4}:){0,1})([a-f0-9]{1,4}|(((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2}))\.){3}((25[0-5])|(2[0-4][0-9])|(1[0-9]{2})|([0-9]{1,2})))$/,xv=n=>n.precision?n.offset?new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${n.precision}}(([+-]\\d{2}(:?\\d{2})?)|Z)$`):new RegExp(`^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}\\.\\d{${n.precision}}Z$`):n.precision===0?n.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}Z$"):n.offset?new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?(([+-]\\d{2}(:?\\d{2})?)|Z)$"):new RegExp("^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?Z$");function Lv(n,e){return!!((e==="v4"||!e)&&Ov.test(n)||(e==="v6"||!e)&&Pv.test(n))}class ri extends Kt{_parse(e){if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==gt.string){const r=this._getOrReturnCtx(e);return mt(r,{code:Ze.invalid_type,expected:gt.string,received:r.parsedType}),Ft}const a=new tr;let s;for(const r of this._def.checks)if(r.kind==="min")e.data.length<r.value&&(s=this._getOrReturnCtx(e,s),mt(s,{code:Ze.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),a.dirty());else if(r.kind==="max")e.data.length>r.value&&(s=this._getOrReturnCtx(e,s),mt(s,{code:Ze.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),a.dirty());else if(r.kind==="length"){const i=e.data.length>r.value,o=e.data.length<r.value;(i||o)&&(s=this._getOrReturnCtx(e,s),i?mt(s,{code:Ze.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}):o&&mt(s,{code:Ze.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}),a.dirty())}else if(r.kind==="email")Tv.test(e.data)||(s=this._getOrReturnCtx(e,s),mt(s,{validation:"email",code:Ze.invalid_string,message:r.message}),a.dirty());else if(r.kind==="emoji")Nu||(Nu=new RegExp(Av,"u")),Nu.test(e.data)||(s=this._getOrReturnCtx(e,s),mt(s,{validation:"emoji",code:Ze.invalid_string,message:r.message}),a.dirty());else if(r.kind==="uuid")Iv.test(e.data)||(s=this._getOrReturnCtx(e,s),mt(s,{validation:"uuid",code:Ze.invalid_string,message:r.message}),a.dirty());else if(r.kind==="cuid")Sv.test(e.data)||(s=this._getOrReturnCtx(e,s),mt(s,{validation:"cuid",code:Ze.invalid_string,message:r.message}),a.dirty());else if(r.kind==="cuid2")kv.test(e.data)||(s=this._getOrReturnCtx(e,s),mt(s,{validation:"cuid2",code:Ze.invalid_string,message:r.message}),a.dirty());else if(r.kind==="ulid")Cv.test(e.data)||(s=this._getOrReturnCtx(e,s),mt(s,{validation:"ulid",code:Ze.invalid_string,message:r.message}),a.dirty());else if(r.kind==="url")try{new URL(e.data)}catch{s=this._getOrReturnCtx(e,s),mt(s,{validation:"url",code:Ze.invalid_string,message:r.message}),a.dirty()}else r.kind==="regex"?(r.regex.lastIndex=0,r.regex.test(e.data)||(s=this._getOrReturnCtx(e,s),mt(s,{validation:"regex",code:Ze.invalid_string,message:r.message}),a.dirty())):r.kind==="trim"?e.data=e.data.trim():r.kind==="includes"?e.data.includes(r.value,r.position)||(s=this._getOrReturnCtx(e,s),mt(s,{code:Ze.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),a.dirty()):r.kind==="toLowerCase"?e.data=e.data.toLowerCase():r.kind==="toUpperCase"?e.data=e.data.toUpperCase():r.kind==="startsWith"?e.data.startsWith(r.value)||(s=this._getOrReturnCtx(e,s),mt(s,{code:Ze.invalid_string,validation:{startsWith:r.value},message:r.message}),a.dirty()):r.kind==="endsWith"?e.data.endsWith(r.value)||(s=this._getOrReturnCtx(e,s),mt(s,{code:Ze.invalid_string,validation:{endsWith:r.value},message:r.message}),a.dirty()):r.kind==="datetime"?xv(r).test(e.data)||(s=this._getOrReturnCtx(e,s),mt(s,{code:Ze.invalid_string,validation:"datetime",message:r.message}),a.dirty()):r.kind==="ip"?Lv(e.data,r.version)||(s=this._getOrReturnCtx(e,s),mt(s,{validation:"ip",code:Ze.invalid_string,message:r.message}),a.dirty()):mn.assertNever(r);return{status:a.value,value:e.data}}_regex(e,t,a){return this.refinement(s=>e.test(s),{validation:t,code:Ze.invalid_string,...At.errToObj(a)})}_addCheck(e){return new ri({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...At.errToObj(e)})}url(e){return this._addCheck({kind:"url",...At.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...At.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...At.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...At.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...At.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...At.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...At.errToObj(e)})}datetime(e){var t;return typeof e=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,message:e}):this._addCheck({kind:"datetime",precision:typeof(e==null?void 0:e.precision)>"u"?null:e==null?void 0:e.precision,offset:(t=e==null?void 0:e.offset)!==null&&t!==void 0?t:!1,...At.errToObj(e==null?void 0:e.message)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...At.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t==null?void 0:t.position,...At.errToObj(t==null?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...At.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...At.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...At.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...At.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...At.errToObj(t)})}nonempty(e){return this.min(1,At.errToObj(e))}trim(){return new ri({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new ri({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new ri({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>e.kind==="datetime")}get isEmail(){return!!this._def.checks.find(e=>e.kind==="email")}get isURL(){return!!this._def.checks.find(e=>e.kind==="url")}get isEmoji(){return!!this._def.checks.find(e=>e.kind==="emoji")}get isUUID(){return!!this._def.checks.find(e=>e.kind==="uuid")}get isCUID(){return!!this._def.checks.find(e=>e.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(e=>e.kind==="cuid2")}get isULID(){return!!this._def.checks.find(e=>e.kind==="ulid")}get isIP(){return!!this._def.checks.find(e=>e.kind==="ip")}get minLength(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}ri.create=n=>{var e;return new ri({checks:[],typeName:Mt.ZodString,coerce:(e=n==null?void 0:n.coerce)!==null&&e!==void 0?e:!1,...Vt(n)})};function Mv(n,e){const t=(n.toString().split(".")[1]||"").length,a=(e.toString().split(".")[1]||"").length,s=t>a?t:a,r=parseInt(n.toFixed(s).replace(".","")),i=parseInt(e.toFixed(s).replace(".",""));return r%i/Math.pow(10,s)}class sa extends Kt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==gt.number){const r=this._getOrReturnCtx(e);return mt(r,{code:Ze.invalid_type,expected:gt.number,received:r.parsedType}),Ft}let a;const s=new tr;for(const r of this._def.checks)r.kind==="int"?mn.isInteger(e.data)||(a=this._getOrReturnCtx(e,a),mt(a,{code:Ze.invalid_type,expected:"integer",received:"float",message:r.message}),s.dirty()):r.kind==="min"?(r.inclusive?e.data<r.value:e.data<=r.value)&&(a=this._getOrReturnCtx(e,a),mt(a,{code:Ze.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),s.dirty()):r.kind==="max"?(r.inclusive?e.data>r.value:e.data>=r.value)&&(a=this._getOrReturnCtx(e,a),mt(a,{code:Ze.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),s.dirty()):r.kind==="multipleOf"?Mv(e.data,r.value)!==0&&(a=this._getOrReturnCtx(e,a),mt(a,{code:Ze.not_multiple_of,multipleOf:r.value,message:r.message}),s.dirty()):r.kind==="finite"?Number.isFinite(e.data)||(a=this._getOrReturnCtx(e,a),mt(a,{code:Ze.not_finite,message:r.message}),s.dirty()):mn.assertNever(r);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,At.toString(t))}gt(e,t){return this.setLimit("min",e,!1,At.toString(t))}lte(e,t){return this.setLimit("max",e,!0,At.toString(t))}lt(e,t){return this.setLimit("max",e,!1,At.toString(t))}setLimit(e,t,a,s){return new sa({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:a,message:At.toString(s)}]})}_addCheck(e){return new sa({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:At.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:At.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:At.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:At.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:At.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:At.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:At.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:At.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:At.toString(e)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>e.kind==="int"||e.kind==="multipleOf"&&mn.isInteger(e.value))}get isFinite(){let e=null,t=null;for(const a of this._def.checks){if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf")return!0;a.kind==="min"?(t===null||a.value>t)&&(t=a.value):a.kind==="max"&&(e===null||a.value<e)&&(e=a.value)}return Number.isFinite(t)&&Number.isFinite(e)}}sa.create=n=>new sa({checks:[],typeName:Mt.ZodNumber,coerce:(n==null?void 0:n.coerce)||!1,...Vt(n)});class oa extends Kt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){if(this._def.coerce&&(e.data=BigInt(e.data)),this._getType(e)!==gt.bigint){const r=this._getOrReturnCtx(e);return mt(r,{code:Ze.invalid_type,expected:gt.bigint,received:r.parsedType}),Ft}let a;const s=new tr;for(const r of this._def.checks)r.kind==="min"?(r.inclusive?e.data<r.value:e.data<=r.value)&&(a=this._getOrReturnCtx(e,a),mt(a,{code:Ze.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),s.dirty()):r.kind==="max"?(r.inclusive?e.data>r.value:e.data>=r.value)&&(a=this._getOrReturnCtx(e,a),mt(a,{code:Ze.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),s.dirty()):r.kind==="multipleOf"?e.data%r.value!==BigInt(0)&&(a=this._getOrReturnCtx(e,a),mt(a,{code:Ze.not_multiple_of,multipleOf:r.value,message:r.message}),s.dirty()):mn.assertNever(r);return{status:s.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,At.toString(t))}gt(e,t){return this.setLimit("min",e,!1,At.toString(t))}lte(e,t){return this.setLimit("max",e,!0,At.toString(t))}lt(e,t){return this.setLimit("max",e,!1,At.toString(t))}setLimit(e,t,a,s){return new oa({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:a,message:At.toString(s)}]})}_addCheck(e){return new oa({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:At.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:At.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:At.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:At.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:At.toString(t)})}get minValue(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e}}oa.create=n=>{var e;return new oa({checks:[],typeName:Mt.ZodBigInt,coerce:(e=n==null?void 0:n.coerce)!==null&&e!==void 0?e:!1,...Vt(n)})};class to extends Kt{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==gt.boolean){const a=this._getOrReturnCtx(e);return mt(a,{code:Ze.invalid_type,expected:gt.boolean,received:a.parsedType}),Ft}return sr(e.data)}}to.create=n=>new to({typeName:Mt.ZodBoolean,coerce:(n==null?void 0:n.coerce)||!1,...Vt(n)});class Da extends Kt{_parse(e){if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==gt.date){const r=this._getOrReturnCtx(e);return mt(r,{code:Ze.invalid_type,expected:gt.date,received:r.parsedType}),Ft}if(isNaN(e.data.getTime())){const r=this._getOrReturnCtx(e);return mt(r,{code:Ze.invalid_date}),Ft}const a=new tr;let s;for(const r of this._def.checks)r.kind==="min"?e.data.getTime()<r.value&&(s=this._getOrReturnCtx(e,s),mt(s,{code:Ze.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),a.dirty()):r.kind==="max"?e.data.getTime()>r.value&&(s=this._getOrReturnCtx(e,s),mt(s,{code:Ze.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),a.dirty()):mn.assertNever(r);return{status:a.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Da({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:At.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:At.toString(t)})}get minDate(){let e=null;for(const t of this._def.checks)t.kind==="min"&&(e===null||t.value>e)&&(e=t.value);return e!=null?new Date(e):null}get maxDate(){let e=null;for(const t of this._def.checks)t.kind==="max"&&(e===null||t.value<e)&&(e=t.value);return e!=null?new Date(e):null}}Da.create=n=>new Da({checks:[],coerce:(n==null?void 0:n.coerce)||!1,typeName:Mt.ZodDate,...Vt(n)});class Qo extends Kt{_parse(e){if(this._getType(e)!==gt.symbol){const a=this._getOrReturnCtx(e);return mt(a,{code:Ze.invalid_type,expected:gt.symbol,received:a.parsedType}),Ft}return sr(e.data)}}Qo.create=n=>new Qo({typeName:Mt.ZodSymbol,...Vt(n)});class no extends Kt{_parse(e){if(this._getType(e)!==gt.undefined){const a=this._getOrReturnCtx(e);return mt(a,{code:Ze.invalid_type,expected:gt.undefined,received:a.parsedType}),Ft}return sr(e.data)}}no.create=n=>new no({typeName:Mt.ZodUndefined,...Vt(n)});class ro extends Kt{_parse(e){if(this._getType(e)!==gt.null){const a=this._getOrReturnCtx(e);return mt(a,{code:Ze.invalid_type,expected:gt.null,received:a.parsedType}),Ft}return sr(e.data)}}ro.create=n=>new ro({typeName:Mt.ZodNull,...Vt(n)});class fs extends Kt{constructor(){super(...arguments),this._any=!0}_parse(e){return sr(e.data)}}fs.create=n=>new fs({typeName:Mt.ZodAny,...Vt(n)});class Na extends Kt{constructor(){super(...arguments),this._unknown=!0}_parse(e){return sr(e.data)}}Na.create=n=>new Na({typeName:Mt.ZodUnknown,...Vt(n)});class Ni extends Kt{_parse(e){const t=this._getOrReturnCtx(e);return mt(t,{code:Ze.invalid_type,expected:gt.never,received:t.parsedType}),Ft}}Ni.create=n=>new Ni({typeName:Mt.ZodNever,...Vt(n)});class el extends Kt{_parse(e){if(this._getType(e)!==gt.undefined){const a=this._getOrReturnCtx(e);return mt(a,{code:Ze.invalid_type,expected:gt.void,received:a.parsedType}),Ft}return sr(e.data)}}el.create=n=>new el({typeName:Mt.ZodVoid,...Vt(n)});class ii extends Kt{_parse(e){const{ctx:t,status:a}=this._processInputParams(e),s=this._def;if(t.parsedType!==gt.array)return mt(t,{code:Ze.invalid_type,expected:gt.array,received:t.parsedType}),Ft;if(s.exactLength!==null){const i=t.data.length>s.exactLength.value,o=t.data.length<s.exactLength.value;(i||o)&&(mt(t,{code:i?Ze.too_big:Ze.too_small,minimum:o?s.exactLength.value:void 0,maximum:i?s.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:s.exactLength.message}),a.dirty())}if(s.minLength!==null&&t.data.length<s.minLength.value&&(mt(t,{code:Ze.too_small,minimum:s.minLength.value,type:"array",inclusive:!0,exact:!1,message:s.minLength.message}),a.dirty()),s.maxLength!==null&&t.data.length>s.maxLength.value&&(mt(t,{code:Ze.too_big,maximum:s.maxLength.value,type:"array",inclusive:!0,exact:!1,message:s.maxLength.message}),a.dirty()),t.common.async)return Promise.all([...t.data].map((i,o)=>s.type._parseAsync(new yi(t,i,t.path,o)))).then(i=>tr.mergeArray(a,i));const r=[...t.data].map((i,o)=>s.type._parseSync(new yi(t,i,t.path,o)));return tr.mergeArray(a,r)}get element(){return this._def.type}min(e,t){return new ii({...this._def,minLength:{value:e,message:At.toString(t)}})}max(e,t){return new ii({...this._def,maxLength:{value:e,message:At.toString(t)}})}length(e,t){return new ii({...this._def,exactLength:{value:e,message:At.toString(t)}})}nonempty(e){return this.min(1,e)}}ii.create=(n,e)=>new ii({type:n,minLength:null,maxLength:null,exactLength:null,typeName:Mt.ZodArray,...Vt(e)});function hs(n){if(n instanceof xn){const e={};for(const t in n.shape){const a=n.shape[t];e[t]=Ui.create(hs(a))}return new xn({...n._def,shape:()=>e})}else return n instanceof ii?new ii({...n._def,type:hs(n.element)}):n instanceof Ui?Ui.create(hs(n.unwrap())):n instanceof Fa?Fa.create(hs(n.unwrap())):n instanceof _i?_i.create(n.items.map(e=>hs(e))):n}class xn extends Kt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const e=this._def.shape(),t=mn.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==gt.object){const u=this._getOrReturnCtx(e);return mt(u,{code:Ze.invalid_type,expected:gt.object,received:u.parsedType}),Ft}const{status:a,ctx:s}=this._processInputParams(e),{shape:r,keys:i}=this._getCached(),o=[];if(!(this._def.catchall instanceof Ni&&this._def.unknownKeys==="strip"))for(const u in s.data)i.includes(u)||o.push(u);const l=[];for(const u of i){const c=r[u],d=s.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new yi(s,d,s.path,u)),alwaysSet:u in s.data})}if(this._def.catchall instanceof Ni){const u=this._def.unknownKeys;if(u==="passthrough")for(const c of o)l.push({key:{status:"valid",value:c},value:{status:"valid",value:s.data[c]}});else if(u==="strict")o.length>0&&(mt(s,{code:Ze.unrecognized_keys,keys:o}),a.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const c of o){const d=s.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new yi(s,d,s.path,c)),alwaysSet:c in s.data})}}return s.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const d=await c.key;u.push({key:d,value:await c.value,alwaysSet:c.alwaysSet})}return u}).then(u=>tr.mergeObjectSync(a,u)):tr.mergeObjectSync(a,l)}get shape(){return this._def.shape()}strict(e){return At.errToObj,new xn({...this._def,unknownKeys:"strict",...e!==void 0?{errorMap:(t,a)=>{var s,r,i,o;const l=(i=(r=(s=this._def).errorMap)===null||r===void 0?void 0:r.call(s,t,a).message)!==null&&i!==void 0?i:a.defaultError;return t.code==="unrecognized_keys"?{message:(o=At.errToObj(e).message)!==null&&o!==void 0?o:l}:{message:l}}}:{}})}strip(){return new xn({...this._def,unknownKeys:"strip"})}passthrough(){return new xn({...this._def,unknownKeys:"passthrough"})}extend(e){return new xn({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new xn({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:Mt.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new xn({...this._def,catchall:e})}pick(e){const t={};return mn.objectKeys(e).forEach(a=>{e[a]&&this.shape[a]&&(t[a]=this.shape[a])}),new xn({...this._def,shape:()=>t})}omit(e){const t={};return mn.objectKeys(this.shape).forEach(a=>{e[a]||(t[a]=this.shape[a])}),new xn({...this._def,shape:()=>t})}deepPartial(){return hs(this)}partial(e){const t={};return mn.objectKeys(this.shape).forEach(a=>{const s=this.shape[a];e&&!e[a]?t[a]=s:t[a]=s.optional()}),new xn({...this._def,shape:()=>t})}required(e){const t={};return mn.objectKeys(this.shape).forEach(a=>{if(e&&!e[a])t[a]=this.shape[a];else{let r=this.shape[a];for(;r instanceof Ui;)r=r._def.innerType;t[a]=r}}),new xn({...this._def,shape:()=>t})}keyof(){return lf(mn.objectKeys(this.shape))}}xn.create=(n,e)=>new xn({shape:()=>n,unknownKeys:"strip",catchall:Ni.create(),typeName:Mt.ZodObject,...Vt(e)}),xn.strictCreate=(n,e)=>new xn({shape:()=>n,unknownKeys:"strict",catchall:Ni.create(),typeName:Mt.ZodObject,...Vt(e)}),xn.lazycreate=(n,e)=>new xn({shape:n,unknownKeys:"strip",catchall:Ni.create(),typeName:Mt.ZodObject,...Vt(e)});class io extends Kt{_parse(e){const{ctx:t}=this._processInputParams(e),a=this._def.options;function s(r){for(const o of r)if(o.result.status==="valid")return o.result;for(const o of r)if(o.result.status==="dirty")return t.common.issues.push(...o.ctx.common.issues),o.result;const i=r.map(o=>new ni(o.ctx.common.issues));return mt(t,{code:Ze.invalid_union,unionErrors:i}),Ft}if(t.common.async)return Promise.all(a.map(async r=>{const i={...t,common:{...t.common,issues:[]},parent:null};return{result:await r._parseAsync({data:t.data,path:t.path,parent:i}),ctx:i}})).then(s);{let r;const i=[];for(const l of a){const u={...t,common:{...t.common,issues:[]},parent:null},c=l._parseSync({data:t.data,path:t.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!r&&(r={result:c,ctx:u}),u.common.issues.length&&i.push(u.common.issues)}if(r)return t.common.issues.push(...r.ctx.common.issues),r.result;const o=i.map(l=>new ni(l));return mt(t,{code:Ze.invalid_union,unionErrors:o}),Ft}}get options(){return this._def.options}}io.create=(n,e)=>new io({options:n,typeName:Mt.ZodUnion,...Vt(e)});const tl=n=>n instanceof oo?tl(n.schema):n instanceof ai?tl(n.innerType()):n instanceof lo?[n.value]:n instanceof la?n.options:n instanceof uo?Object.keys(n.enum):n instanceof co?tl(n._def.innerType):n instanceof no?[void 0]:n instanceof ro?[null]:null;class nl extends Kt{_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==gt.object)return mt(t,{code:Ze.invalid_type,expected:gt.object,received:t.parsedType}),Ft;const a=this.discriminator,s=t.data[a],r=this.optionsMap.get(s);return r?t.common.async?r._parseAsync({data:t.data,path:t.path,parent:t}):r._parseSync({data:t.data,path:t.path,parent:t}):(mt(t,{code:Ze.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[a]}),Ft)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,a){const s=new Map;for(const r of t){const i=tl(r.shape[e]);if(!i)throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(const o of i){if(s.has(o))throw new Error(`Discriminator property ${String(e)} has duplicate value ${String(o)}`);s.set(o,r)}}return new nl({typeName:Mt.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:s,...Vt(a)})}}function Uu(n,e){const t=aa(n),a=aa(e);if(n===e)return{valid:!0,data:n};if(t===gt.object&&a===gt.object){const s=mn.objectKeys(e),r=mn.objectKeys(n).filter(o=>s.indexOf(o)!==-1),i={...n,...e};for(const o of r){const l=Uu(n[o],e[o]);if(!l.valid)return{valid:!1};i[o]=l.data}return{valid:!0,data:i}}else if(t===gt.array&&a===gt.array){if(n.length!==e.length)return{valid:!1};const s=[];for(let r=0;r<n.length;r++){const i=n[r],o=e[r],l=Uu(i,o);if(!l.valid)return{valid:!1};s.push(l.data)}return{valid:!0,data:s}}else return t===gt.date&&a===gt.date&&+n==+e?{valid:!0,data:n}:{valid:!1}}class ao extends Kt{_parse(e){const{status:t,ctx:a}=this._processInputParams(e),s=(r,i)=>{if(Ru(r)||Ru(i))return Ft;const o=Uu(r.value,i.value);return o.valid?((Du(r)||Du(i))&&t.dirty(),{status:t.value,value:o.data}):(mt(a,{code:Ze.invalid_intersection_types}),Ft)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([r,i])=>s(r,i)):s(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}ao.create=(n,e,t)=>new ao({left:n,right:e,typeName:Mt.ZodIntersection,...Vt(t)});class _i extends Kt{_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==gt.array)return mt(a,{code:Ze.invalid_type,expected:gt.array,received:a.parsedType}),Ft;if(a.data.length<this._def.items.length)return mt(a,{code:Ze.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ft;!this._def.rest&&a.data.length>this._def.items.length&&(mt(a,{code:Ze.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());const r=[...a.data].map((i,o)=>{const l=this._def.items[o]||this._def.rest;return l?l._parse(new yi(a,i,a.path,o)):null}).filter(i=>!!i);return a.common.async?Promise.all(r).then(i=>tr.mergeArray(t,i)):tr.mergeArray(t,r)}get items(){return this._def.items}rest(e){return new _i({...this._def,rest:e})}}_i.create=(n,e)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new _i({items:n,typeName:Mt.ZodTuple,rest:null,...Vt(e)})};class so extends Kt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==gt.object)return mt(a,{code:Ze.invalid_type,expected:gt.object,received:a.parsedType}),Ft;const s=[],r=this._def.keyType,i=this._def.valueType;for(const o in a.data)s.push({key:r._parse(new yi(a,o,a.path,o)),value:i._parse(new yi(a,a.data[o],a.path,o))});return a.common.async?tr.mergeObjectAsync(t,s):tr.mergeObjectSync(t,s)}get element(){return this._def.valueType}static create(e,t,a){return t instanceof Kt?new so({keyType:e,valueType:t,typeName:Mt.ZodRecord,...Vt(a)}):new so({keyType:ri.create(),valueType:e,typeName:Mt.ZodRecord,...Vt(t)})}}class rl extends Kt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==gt.map)return mt(a,{code:Ze.invalid_type,expected:gt.map,received:a.parsedType}),Ft;const s=this._def.keyType,r=this._def.valueType,i=[...a.data.entries()].map(([o,l],u)=>({key:s._parse(new yi(a,o,a.path,[u,"key"])),value:r._parse(new yi(a,l,a.path,[u,"value"]))}));if(a.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const l of i){const u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return Ft;(u.status==="dirty"||c.status==="dirty")&&t.dirty(),o.set(u.value,c.value)}return{status:t.value,value:o}})}else{const o=new Map;for(const l of i){const u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return Ft;(u.status==="dirty"||c.status==="dirty")&&t.dirty(),o.set(u.value,c.value)}return{status:t.value,value:o}}}}rl.create=(n,e,t)=>new rl({valueType:e,keyType:n,typeName:Mt.ZodMap,...Vt(t)});class Ua extends Kt{_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.parsedType!==gt.set)return mt(a,{code:Ze.invalid_type,expected:gt.set,received:a.parsedType}),Ft;const s=this._def;s.minSize!==null&&a.data.size<s.minSize.value&&(mt(a,{code:Ze.too_small,minimum:s.minSize.value,type:"set",inclusive:!0,exact:!1,message:s.minSize.message}),t.dirty()),s.maxSize!==null&&a.data.size>s.maxSize.value&&(mt(a,{code:Ze.too_big,maximum:s.maxSize.value,type:"set",inclusive:!0,exact:!1,message:s.maxSize.message}),t.dirty());const r=this._def.valueType;function i(l){const u=new Set;for(const c of l){if(c.status==="aborted")return Ft;c.status==="dirty"&&t.dirty(),u.add(c.value)}return{status:t.value,value:u}}const o=[...a.data.values()].map((l,u)=>r._parse(new yi(a,l,a.path,u)));return a.common.async?Promise.all(o).then(l=>i(l)):i(o)}min(e,t){return new Ua({...this._def,minSize:{value:e,message:At.toString(t)}})}max(e,t){return new Ua({...this._def,maxSize:{value:e,message:At.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}Ua.create=(n,e)=>new Ua({valueType:n,minSize:null,maxSize:null,typeName:Mt.ZodSet,...Vt(e)});class gs extends Kt{constructor(){super(...arguments),this.validate=this.implement}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==gt.function)return mt(t,{code:Ze.invalid_type,expected:gt.function,received:t.parsedType}),Ft;function a(o,l){return Xo({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Jo(),Qs].filter(u=>!!u),issueData:{code:Ze.invalid_arguments,argumentsError:l}})}function s(o,l){return Xo({data:o,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,Jo(),Qs].filter(u=>!!u),issueData:{code:Ze.invalid_return_type,returnTypeError:l}})}const r={errorMap:t.common.contextualErrorMap},i=t.data;if(this._def.returns instanceof ps){const o=this;return sr(async function(...l){const u=new ni([]),c=await o._def.args.parseAsync(l,r).catch(h=>{throw u.addIssue(a(l,h)),u}),d=await Reflect.apply(i,this,c);return await o._def.returns._def.type.parseAsync(d,r).catch(h=>{throw u.addIssue(s(d,h)),u})})}else{const o=this;return sr(function(...l){const u=o._def.args.safeParse(l,r);if(!u.success)throw new ni([a(l,u.error)]);const c=Reflect.apply(i,this,u.data),d=o._def.returns.safeParse(c,r);if(!d.success)throw new ni([s(c,d.error)]);return d.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new gs({...this._def,args:_i.create(e).rest(Na.create())})}returns(e){return new gs({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,a){return new gs({args:e||_i.create([]).rest(Na.create()),returns:t||Na.create(),typeName:Mt.ZodFunction,...Vt(a)})}}class oo extends Kt{get schema(){return this._def.getter()}_parse(e){const{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}oo.create=(n,e)=>new oo({getter:n,typeName:Mt.ZodLazy,...Vt(e)});class lo extends Kt{_parse(e){if(e.data!==this._def.value){const t=this._getOrReturnCtx(e);return mt(t,{received:t.data,code:Ze.invalid_literal,expected:this._def.value}),Ft}return{status:"valid",value:e.data}}get value(){return this._def.value}}lo.create=(n,e)=>new lo({value:n,typeName:Mt.ZodLiteral,...Vt(e)});function lf(n,e){return new la({values:n,typeName:Mt.ZodEnum,...Vt(e)})}class la extends Kt{_parse(e){if(typeof e.data!="string"){const t=this._getOrReturnCtx(e),a=this._def.values;return mt(t,{expected:mn.joinValues(a),received:t.parsedType,code:Ze.invalid_type}),Ft}if(this._def.values.indexOf(e.data)===-1){const t=this._getOrReturnCtx(e),a=this._def.values;return mt(t,{received:t.data,code:Ze.invalid_enum_value,options:a}),Ft}return sr(e.data)}get options(){return this._def.values}get enum(){const e={};for(const t of this._def.values)e[t]=t;return e}get Values(){const e={};for(const t of this._def.values)e[t]=t;return e}get Enum(){const e={};for(const t of this._def.values)e[t]=t;return e}extract(e){return la.create(e)}exclude(e){return la.create(this.options.filter(t=>!e.includes(t)))}}la.create=lf;class uo extends Kt{_parse(e){const t=mn.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(e);if(a.parsedType!==gt.string&&a.parsedType!==gt.number){const s=mn.objectValues(t);return mt(a,{expected:mn.joinValues(s),received:a.parsedType,code:Ze.invalid_type}),Ft}if(t.indexOf(e.data)===-1){const s=mn.objectValues(t);return mt(a,{received:a.data,code:Ze.invalid_enum_value,options:s}),Ft}return sr(e.data)}get enum(){return this._def.values}}uo.create=(n,e)=>new uo({values:n,typeName:Mt.ZodNativeEnum,...Vt(e)});class ps extends Kt{unwrap(){return this._def.type}_parse(e){const{ctx:t}=this._processInputParams(e);if(t.parsedType!==gt.promise&&t.common.async===!1)return mt(t,{code:Ze.invalid_type,expected:gt.promise,received:t.parsedType}),Ft;const a=t.parsedType===gt.promise?t.data:Promise.resolve(t.data);return sr(a.then(s=>this._def.type.parseAsync(s,{path:t.path,errorMap:t.common.contextualErrorMap})))}}ps.create=(n,e)=>new ps({type:n,typeName:Mt.ZodPromise,...Vt(e)});class ai extends Kt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Mt.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){const{status:t,ctx:a}=this._processInputParams(e),s=this._def.effect||null,r={addIssue:i=>{mt(a,i),i.fatal?t.abort():t.dirty()},get path(){return a.path}};if(r.addIssue=r.addIssue.bind(r),s.type==="preprocess"){const i=s.transform(a.data,r);return a.common.issues.length?{status:"dirty",value:a.data}:a.common.async?Promise.resolve(i).then(o=>this._def.schema._parseAsync({data:o,path:a.path,parent:a})):this._def.schema._parseSync({data:i,path:a.path,parent:a})}if(s.type==="refinement"){const i=o=>{const l=s.refinement(o,r);if(a.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(a.common.async===!1){const o=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return o.status==="aborted"?Ft:(o.status==="dirty"&&t.dirty(),i(o.value),{status:t.value,value:o.value})}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(o=>o.status==="aborted"?Ft:(o.status==="dirty"&&t.dirty(),i(o.value).then(()=>({status:t.value,value:o.value}))))}if(s.type==="transform")if(a.common.async===!1){const i=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!eo(i))return i;const o=s.transform(i.value,r);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:o}}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(i=>eo(i)?Promise.resolve(s.transform(i.value,r)).then(o=>({status:t.value,value:o})):i);mn.assertNever(s)}}ai.create=(n,e,t)=>new ai({schema:n,typeName:Mt.ZodEffects,effect:e,...Vt(t)}),ai.createWithPreprocess=(n,e,t)=>new ai({schema:e,effect:{type:"preprocess",transform:n},typeName:Mt.ZodEffects,...Vt(t)});class Ui extends Kt{_parse(e){return this._getType(e)===gt.undefined?sr(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Ui.create=(n,e)=>new Ui({innerType:n,typeName:Mt.ZodOptional,...Vt(e)});class Fa extends Kt{_parse(e){return this._getType(e)===gt.null?sr(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}Fa.create=(n,e)=>new Fa({innerType:n,typeName:Mt.ZodNullable,...Vt(e)});class co extends Kt{_parse(e){const{ctx:t}=this._processInputParams(e);let a=t.data;return t.parsedType===gt.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}co.create=(n,e)=>new co({innerType:n,typeName:Mt.ZodDefault,defaultValue:typeof e.default=="function"?e.default:()=>e.default,...Vt(e)});class il extends Kt{_parse(e){const{ctx:t}=this._processInputParams(e),a={...t,common:{...t.common,issues:[]}},s=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return $o(s)?s.then(r=>({status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new ni(a.common.issues)},input:a.data})})):{status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new ni(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}il.create=(n,e)=>new il({innerType:n,typeName:Mt.ZodCatch,catchValue:typeof e.catch=="function"?e.catch:()=>e.catch,...Vt(e)});class al extends Kt{_parse(e){if(this._getType(e)!==gt.nan){const a=this._getOrReturnCtx(e);return mt(a,{code:Ze.invalid_type,expected:gt.nan,received:a.parsedType}),Ft}return{status:"valid",value:e.data}}}al.create=n=>new al({typeName:Mt.ZodNaN,...Vt(n)});const Rv=Symbol("zod_brand");class uf extends Kt{_parse(e){const{ctx:t}=this._processInputParams(e),a=t.data;return this._def.type._parse({data:a,path:t.path,parent:t})}unwrap(){return this._def.type}}class fo extends Kt{_parse(e){const{status:t,ctx:a}=this._processInputParams(e);if(a.common.async)return(async()=>{const r=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return r.status==="aborted"?Ft:r.status==="dirty"?(t.dirty(),sf(r.value)):this._def.out._parseAsync({data:r.value,path:a.path,parent:a})})();{const s=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return s.status==="aborted"?Ft:s.status==="dirty"?(t.dirty(),{status:"dirty",value:s.value}):this._def.out._parseSync({data:s.value,path:a.path,parent:a})}}static create(e,t){return new fo({in:e,out:t,typeName:Mt.ZodPipeline})}}class sl extends Kt{_parse(e){const t=this._def.innerType._parse(e);return eo(t)&&(t.value=Object.freeze(t.value)),t}}sl.create=(n,e)=>new sl({innerType:n,typeName:Mt.ZodReadonly,...Vt(e)});const cf=(n,e={},t)=>n?fs.create().superRefine((a,s)=>{var r,i;if(!n(a)){const o=typeof e=="function"?e(a):typeof e=="string"?{message:e}:e,l=(i=(r=o.fatal)!==null&&r!==void 0?r:t)!==null&&i!==void 0?i:!0,u=typeof o=="string"?{message:o}:o;s.addIssue({code:"custom",...u,fatal:l})}}):fs.create(),Dv={object:xn.lazycreate};var Mt;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(Mt||(Mt={}));const Nv=(n,e={message:`Input not instance of ${n.name}`})=>cf(t=>t instanceof n,e),df=ri.create,ff=sa.create,Uv=al.create,Fv=oa.create,hf=to.create,Bv=Da.create,Vv=Qo.create,Hv=no.create,jv=ro.create,zv=fs.create,Gv=Na.create,Wv=Ni.create,qv=el.create,Kv=ii.create,Yv=xn.create,Zv=xn.strictCreate,Jv=io.create,Xv=nl.create,$v=ao.create,Qv=_i.create,ey=so.create,ty=rl.create,ny=Ua.create,ry=gs.create,iy=oo.create,ay=lo.create,sy=la.create,oy=uo.create,ly=ps.create,gf=ai.create,uy=Ui.create,cy=Fa.create,dy=ai.createWithPreprocess,fy=fo.create;var ne=Object.freeze({__proto__:null,defaultErrorMap:Qs,setErrorMap:wv,getErrorMap:Jo,makeIssue:Xo,EMPTY_PATH:Ev,addIssueToContext:mt,ParseStatus:tr,INVALID:Ft,DIRTY:sf,OK:sr,isAborted:Ru,isDirty:Du,isValid:eo,isAsync:$o,get util(){return mn},get objectUtil(){return Mu},ZodParsedType:gt,getParsedType:aa,ZodType:Kt,ZodString:ri,ZodNumber:sa,ZodBigInt:oa,ZodBoolean:to,ZodDate:Da,ZodSymbol:Qo,ZodUndefined:no,ZodNull:ro,ZodAny:fs,ZodUnknown:Na,ZodNever:Ni,ZodVoid:el,ZodArray:ii,ZodObject:xn,ZodUnion:io,ZodDiscriminatedUnion:nl,ZodIntersection:ao,ZodTuple:_i,ZodRecord:so,ZodMap:rl,ZodSet:Ua,ZodFunction:gs,ZodLazy:oo,ZodLiteral:lo,ZodEnum:la,ZodNativeEnum:uo,ZodPromise:ps,ZodEffects:ai,ZodTransformer:ai,ZodOptional:Ui,ZodNullable:Fa,ZodDefault:co,ZodCatch:il,ZodNaN:al,BRAND:Rv,ZodBranded:uf,ZodPipeline:fo,ZodReadonly:sl,custom:cf,Schema:Kt,ZodSchema:Kt,late:Dv,get ZodFirstPartyTypeKind(){return Mt},coerce:{string:n=>ri.create({...n,coerce:!0}),number:n=>sa.create({...n,coerce:!0}),boolean:n=>to.create({...n,coerce:!0}),bigint:n=>oa.create({...n,coerce:!0}),date:n=>Da.create({...n,coerce:!0})},any:zv,array:Kv,bigint:Fv,boolean:hf,date:Bv,discriminatedUnion:Xv,effect:gf,enum:sy,function:ry,instanceof:Nv,intersection:$v,lazy:iy,literal:ay,map:ty,nan:Uv,nativeEnum:oy,never:Wv,null:jv,nullable:cy,number:ff,object:Yv,oboolean:()=>hf().optional(),onumber:()=>ff().optional(),optional:uy,ostring:()=>df().optional(),pipeline:fy,preprocess:dy,promise:ly,record:ey,set:ny,strictObject:Zv,string:df,symbol:Vv,transformer:gf,tuple:Qv,undefined:Hv,union:Jv,unknown:Gv,void:qv,NEVER:Ft,ZodIssueCode:Ze,quotelessJson:bv,ZodError:ni});const pf=ne.object({callbackFactory:ne.function().args(ne.object({_id:ne.number().optional(),input:ne.array(ne.object({name:ne.string(),value:ne.unknown()})).optional(),output:ne.array(ne.object({name:ne.string(),value:ne.unknown()})),type:ne.nativeEnum(he)})).returns(ne.instanceof(Pn)).optional(),clientId:ne.string().optional(),logLevel:ne.union([ne.literal("none"),ne.literal("error"),ne.literal("warn"),ne.literal("info"),ne.literal("debug")]).optional(),middleware:ne.array(ne.function()).optional(),realmPath:ne.string(),redirectUri:ne.string().optional(),scope:ne.string().optional(),serverConfig:ne.object({baseUrl:ne.string({invalid_type_error:"`serverConfig.baseUrl` is a required URL string (this is generated by the Zod library).",required_error:"Setting the `serverConfig.baseUrl` is required (this is generated by the Zod library)."}).url({message:"`serverConfig.baseUrl` must be a full URL (this is generated by the Zod library)."}),paths:ne.object({authenticate:ne.string().optional(),authorize:ne.string().optional(),accessToken:ne.string().optional(),endSession:ne.string().optional(),userInfo:ne.string().optional(),revoke:ne.string().optional(),sessions:ne.string().optional()}).strict().optional(),timeout:ne.number({invalid_type_error:"`serverConfig.timeout` is a required number and in milliseconds (this is generated by the Zod library)."}).optional()}).strict(),support:ne.union([ne.literal("legacy"),ne.literal("modern")]).optional(),tokenStore:ne.union([ne.object({get:ne.function().args(ne.string()).returns(ne.promise(ne.object({accessToken:ne.string(),idToken:ne.string().optional(),refreshToken:ne.string().optional(),tokenExpiry:ne.number().optional()}))),set:ne.function().args(ne.string()).returns(ne.promise(ne.void())),remove:ne.function().args(ne.string()).returns(ne.promise(ne.void()))}).strict(),ne.literal("sessionStorage"),ne.literal("localStorage")]).optional(),tree:ne.string().optional(),type:ne.string().optional(),oauthThreshold:ne.number().optional()}).strict();pf.partial();function mf(n){pf.parse(n),_n.set(n)}const ho=ti({lastAction:null,error:null,modal:null,mounted:!1,open:null,reason:null,type:null});function vf(n,e){ho.update(t=>{var a;return t.type==="inline"?(console.warn('Component type of "inline" has no `close` method'),t):(a=t.modal)!=null&&a.component?(e&&t.modal.component.closeDialog(),{...t,lastAction:"close",open:!1,reason:(n==null?void 0:n.reason)||null}):(console.warn("Modal component is not mounted. Please instantiate the Widget before use."),t)})}function hy(n,e){ho.update(t=>({...t,lastAction:"mount",modal:{...n&&{component:n,element:e}},mounted:!0,type:n?"modal":"inline",reason:null}))}const ol=ne.object({journey:ne.string().optional(),match:ne.string().regex(/^(#\/service|\?journey)/,{message:"HREF string must start with `?journey` or `#/service`"}).array()}).optional(),yf=ne.object({forgotPassword:ol,forgotUsername:ol,login:ol,register:ol}),ll={forgotPassword:{journey:"ResetPassword",match:["#/service/ResetPassword","?journey=ResetPassword"]},forgotUsername:{journey:"ForgottenUsername",match:["#/service/ForgottenUsername","?journey=ForgottenUsername"]},login:{journey:"Login",match:["#/service/Login","?journey","?journey=Login"]},register:{journey:"Registration",match:["#/service/Registration","?journey=Registration"]}};yf.parse(ll);const _f=Object.keys(ll).map(n=>({...ll[n],key:n})),go=ti(_f);function bf(n){if(n){yf.parse(n);const e={...ll,...n},t=Object.keys(e);go.set(t.map(a=>({...e[a],key:a})))}else go.set(_f);return go}function gy(n){if(typeof document!="object")return null;const e=document.createElement("div");return e.innerHTML=n,e.childNodes.length===0?"":e.childNodes[0].nodeValue}function py(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Fu={exports:{}},Ln={},Bu={exports:{}},Ba={};function wf(){var n={};return n["align-content"]=!1,n["align-items"]=!1,n["align-self"]=!1,n["alignment-adjust"]=!1,n["alignment-baseline"]=!1,n.all=!1,n["anchor-point"]=!1,n.animation=!1,n["animation-delay"]=!1,n["animation-direction"]=!1,n["animation-duration"]=!1,n["animation-fill-mode"]=!1,n["animation-iteration-count"]=!1,n["animation-name"]=!1,n["animation-play-state"]=!1,n["animation-timing-function"]=!1,n.azimuth=!1,n["backface-visibility"]=!1,n.background=!0,n["background-attachment"]=!0,n["background-clip"]=!0,n["background-color"]=!0,n["background-image"]=!0,n["background-origin"]=!0,n["background-position"]=!0,n["background-repeat"]=!0,n["background-size"]=!0,n["baseline-shift"]=!1,n.binding=!1,n.bleed=!1,n["bookmark-label"]=!1,n["bookmark-level"]=!1,n["bookmark-state"]=!1,n.border=!0,n["border-bottom"]=!0,n["border-bottom-color"]=!0,n["border-bottom-left-radius"]=!0,n["border-bottom-right-radius"]=!0,n["border-bottom-style"]=!0,n["border-bottom-width"]=!0,n["border-collapse"]=!0,n["border-color"]=!0,n["border-image"]=!0,n["border-image-outset"]=!0,n["border-image-repeat"]=!0,n["border-image-slice"]=!0,n["border-image-source"]=!0,n["border-image-width"]=!0,n["border-left"]=!0,n["border-left-color"]=!0,n["border-left-style"]=!0,n["border-left-width"]=!0,n["border-radius"]=!0,n["border-right"]=!0,n["border-right-color"]=!0,n["border-right-style"]=!0,n["border-right-width"]=!0,n["border-spacing"]=!0,n["border-style"]=!0,n["border-top"]=!0,n["border-top-color"]=!0,n["border-top-left-radius"]=!0,n["border-top-right-radius"]=!0,n["border-top-style"]=!0,n["border-top-width"]=!0,n["border-width"]=!0,n.bottom=!1,n["box-decoration-break"]=!0,n["box-shadow"]=!0,n["box-sizing"]=!0,n["box-snap"]=!0,n["box-suppress"]=!0,n["break-after"]=!0,n["break-before"]=!0,n["break-inside"]=!0,n["caption-side"]=!1,n.chains=!1,n.clear=!0,n.clip=!1,n["clip-path"]=!1,n["clip-rule"]=!1,n.color=!0,n["color-interpolation-filters"]=!0,n["column-count"]=!1,n["column-fill"]=!1,n["column-gap"]=!1,n["column-rule"]=!1,n["column-rule-color"]=!1,n["column-rule-style"]=!1,n["column-rule-width"]=!1,n["column-span"]=!1,n["column-width"]=!1,n.columns=!1,n.contain=!1,n.content=!1,n["counter-increment"]=!1,n["counter-reset"]=!1,n["counter-set"]=!1,n.crop=!1,n.cue=!1,n["cue-after"]=!1,n["cue-before"]=!1,n.cursor=!1,n.direction=!1,n.display=!0,n["display-inside"]=!0,n["display-list"]=!0,n["display-outside"]=!0,n["dominant-baseline"]=!1,n.elevation=!1,n["empty-cells"]=!1,n.filter=!1,n.flex=!1,n["flex-basis"]=!1,n["flex-direction"]=!1,n["flex-flow"]=!1,n["flex-grow"]=!1,n["flex-shrink"]=!1,n["flex-wrap"]=!1,n.float=!1,n["float-offset"]=!1,n["flood-color"]=!1,n["flood-opacity"]=!1,n["flow-from"]=!1,n["flow-into"]=!1,n.font=!0,n["font-family"]=!0,n["font-feature-settings"]=!0,n["font-kerning"]=!0,n["font-language-override"]=!0,n["font-size"]=!0,n["font-size-adjust"]=!0,n["font-stretch"]=!0,n["font-style"]=!0,n["font-synthesis"]=!0,n["font-variant"]=!0,n["font-variant-alternates"]=!0,n["font-variant-caps"]=!0,n["font-variant-east-asian"]=!0,n["font-variant-ligatures"]=!0,n["font-variant-numeric"]=!0,n["font-variant-position"]=!0,n["font-weight"]=!0,n.grid=!1,n["grid-area"]=!1,n["grid-auto-columns"]=!1,n["grid-auto-flow"]=!1,n["grid-auto-rows"]=!1,n["grid-column"]=!1,n["grid-column-end"]=!1,n["grid-column-start"]=!1,n["grid-row"]=!1,n["grid-row-end"]=!1,n["grid-row-start"]=!1,n["grid-template"]=!1,n["grid-template-areas"]=!1,n["grid-template-columns"]=!1,n["grid-template-rows"]=!1,n["hanging-punctuation"]=!1,n.height=!0,n.hyphens=!1,n.icon=!1,n["image-orientation"]=!1,n["image-resolution"]=!1,n["ime-mode"]=!1,n["initial-letters"]=!1,n["inline-box-align"]=!1,n["justify-content"]=!1,n["justify-items"]=!1,n["justify-self"]=!1,n.left=!1,n["letter-spacing"]=!0,n["lighting-color"]=!0,n["line-box-contain"]=!1,n["line-break"]=!1,n["line-grid"]=!1,n["line-height"]=!1,n["line-snap"]=!1,n["line-stacking"]=!1,n["line-stacking-ruby"]=!1,n["line-stacking-shift"]=!1,n["line-stacking-strategy"]=!1,n["list-style"]=!0,n["list-style-image"]=!0,n["list-style-position"]=!0,n["list-style-type"]=!0,n.margin=!0,n["margin-bottom"]=!0,n["margin-left"]=!0,n["margin-right"]=!0,n["margin-top"]=!0,n["marker-offset"]=!1,n["marker-side"]=!1,n.marks=!1,n.mask=!1,n["mask-box"]=!1,n["mask-box-outset"]=!1,n["mask-box-repeat"]=!1,n["mask-box-slice"]=!1,n["mask-box-source"]=!1,n["mask-box-width"]=!1,n["mask-clip"]=!1,n["mask-image"]=!1,n["mask-origin"]=!1,n["mask-position"]=!1,n["mask-repeat"]=!1,n["mask-size"]=!1,n["mask-source-type"]=!1,n["mask-type"]=!1,n["max-height"]=!0,n["max-lines"]=!1,n["max-width"]=!0,n["min-height"]=!0,n["min-width"]=!0,n["move-to"]=!1,n["nav-down"]=!1,n["nav-index"]=!1,n["nav-left"]=!1,n["nav-right"]=!1,n["nav-up"]=!1,n["object-fit"]=!1,n["object-position"]=!1,n.opacity=!1,n.order=!1,n.orphans=!1,n.outline=!1,n["outline-color"]=!1,n["outline-offset"]=!1,n["outline-style"]=!1,n["outline-width"]=!1,n.overflow=!1,n["overflow-wrap"]=!1,n["overflow-x"]=!1,n["overflow-y"]=!1,n.padding=!0,n["padding-bottom"]=!0,n["padding-left"]=!0,n["padding-right"]=!0,n["padding-top"]=!0,n.page=!1,n["page-break-after"]=!1,n["page-break-before"]=!1,n["page-break-inside"]=!1,n["page-policy"]=!1,n.pause=!1,n["pause-after"]=!1,n["pause-before"]=!1,n.perspective=!1,n["perspective-origin"]=!1,n.pitch=!1,n["pitch-range"]=!1,n["play-during"]=!1,n.position=!1,n["presentation-level"]=!1,n.quotes=!1,n["region-fragment"]=!1,n.resize=!1,n.rest=!1,n["rest-after"]=!1,n["rest-before"]=!1,n.richness=!1,n.right=!1,n.rotation=!1,n["rotation-point"]=!1,n["ruby-align"]=!1,n["ruby-merge"]=!1,n["ruby-position"]=!1,n["shape-image-threshold"]=!1,n["shape-outside"]=!1,n["shape-margin"]=!1,n.size=!1,n.speak=!1,n["speak-as"]=!1,n["speak-header"]=!1,n["speak-numeral"]=!1,n["speak-punctuation"]=!1,n["speech-rate"]=!1,n.stress=!1,n["string-set"]=!1,n["tab-size"]=!1,n["table-layout"]=!1,n["text-align"]=!0,n["text-align-last"]=!0,n["text-combine-upright"]=!0,n["text-decoration"]=!0,n["text-decoration-color"]=!0,n["text-decoration-line"]=!0,n["text-decoration-skip"]=!0,n["text-decoration-style"]=!0,n["text-emphasis"]=!0,n["text-emphasis-color"]=!0,n["text-emphasis-position"]=!0,n["text-emphasis-style"]=!0,n["text-height"]=!0,n["text-indent"]=!0,n["text-justify"]=!0,n["text-orientation"]=!0,n["text-overflow"]=!0,n["text-shadow"]=!0,n["text-space-collapse"]=!0,n["text-transform"]=!0,n["text-underline-position"]=!0,n["text-wrap"]=!0,n.top=!1,n.transform=!1,n["transform-origin"]=!1,n["transform-style"]=!1,n.transition=!1,n["transition-delay"]=!1,n["transition-duration"]=!1,n["transition-property"]=!1,n["transition-timing-function"]=!1,n["unicode-bidi"]=!1,n["vertical-align"]=!1,n.visibility=!1,n["voice-balance"]=!1,n["voice-duration"]=!1,n["voice-family"]=!1,n["voice-pitch"]=!1,n["voice-range"]=!1,n["voice-rate"]=!1,n["voice-stress"]=!1,n["voice-volume"]=!1,n.volume=!1,n["white-space"]=!1,n.widows=!1,n.width=!0,n["will-change"]=!1,n["word-break"]=!0,n["word-spacing"]=!0,n["word-wrap"]=!0,n["wrap-flow"]=!1,n["wrap-through"]=!1,n["writing-mode"]=!1,n["z-index"]=!1,n}function my(n,e,t){}function vy(n,e,t){}var yy=/javascript\s*\:/img;function _y(n,e){return yy.test(e)?"":e}Ba.whiteList=wf(),Ba.getDefaultWhiteList=wf,Ba.onAttr=my,Ba.onIgnoreAttr=vy,Ba.safeAttrValue=_y;var by={indexOf:function(n,e){var t,a;if(Array.prototype.indexOf)return n.indexOf(e);for(t=0,a=n.length;t<a;t++)if(n[t]===e)return t;return-1},forEach:function(n,e,t){var a,s;if(Array.prototype.forEach)return n.forEach(e,t);for(a=0,s=n.length;a<s;a++)e.call(t,n[a],a,n)},trim:function(n){return String.prototype.trim?n.trim():n.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(n){return String.prototype.trimRight?n.trimRight():n.replace(/(\s*$)/g,"")}},po=by;function wy(n,e){n=po.trimRight(n),n[n.length-1]!==";"&&(n+=";");var t=n.length,a=!1,s=0,r=0,i="";function o(){if(!a){var c=po.trim(n.slice(s,r)),d=c.indexOf(":");if(d!==-1){var f=po.trim(c.slice(0,d)),h=po.trim(c.slice(d+1));if(f){var p=e(s,i.length,f,h,c);p&&(i+=p+"; ")}}}s=r+1}for(;r<t;r++){var l=n[r];if(l==="/"&&n[r+1]==="*"){var u=n.indexOf("*/",r+2);if(u===-1)break;r=u+1,s=r+1,a=!1}else l==="("?a=!0:l===")"?a=!1:l===";"?a||o():l===`
|
|
3
|
+
`&&o()}return po.trim(i)}var Ey=wy,ul=Ba,Sy=Ey;function Ef(n){return n==null}function ky(n){var e={};for(var t in n)e[t]=n[t];return e}function Sf(n){n=ky(n||{}),n.whiteList=n.whiteList||ul.whiteList,n.onAttr=n.onAttr||ul.onAttr,n.onIgnoreAttr=n.onIgnoreAttr||ul.onIgnoreAttr,n.safeAttrValue=n.safeAttrValue||ul.safeAttrValue,this.options=n}Sf.prototype.process=function(n){if(n=n||"",n=n.toString(),!n)return"";var e=this,t=e.options,a=t.whiteList,s=t.onAttr,r=t.onIgnoreAttr,i=t.safeAttrValue,o=Sy(n,function(l,u,c,d,f){var h=a[c],p=!1;if(h===!0?p=h:typeof h=="function"?p=h(d):h instanceof RegExp&&(p=h.test(d)),p!==!0&&(p=!1),d=i(c,d),!!d){var m={position:u,sourcePosition:l,source:f,isWhite:p};if(p){var w=s(c,d,m);return Ef(w)?c+":"+d:w}else{var w=r(c,d,m);if(!Ef(w))return w}}});return o};var Cy=Sf;(function(n,e){var t=Ba,a=Cy;function s(i,o){var l=new a(o);return l.process(i)}e=n.exports=s,e.FilterCSS=a;for(var r in t)e[r]=t[r];typeof window<"u"&&(window.filterCSS=n.exports)})(Bu,Bu.exports);var Vu=Bu.exports,Hu={indexOf:function(n,e){var t,a;if(Array.prototype.indexOf)return n.indexOf(e);for(t=0,a=n.length;t<a;t++)if(n[t]===e)return t;return-1},forEach:function(n,e,t){var a,s;if(Array.prototype.forEach)return n.forEach(e,t);for(a=0,s=n.length;a<s;a++)e.call(t,n[a],a,n)},trim:function(n){return String.prototype.trim?n.trim():n.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(n){var e=/\s|\n|\t/,t=e.exec(n);return t?t.index:-1}},Iy=Vu.FilterCSS,Ty=Vu.getDefaultWhiteList,cl=Hu;function kf(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var Cf=new Iy;function Ay(n,e,t){}function Oy(n,e,t){}function Py(n,e,t){}function xy(n,e,t){}function If(n){return n.replace(My,"<").replace(Ry,">")}function Ly(n,e,t,a){if(t=Rf(t),e==="href"||e==="src"){if(t=cl.trim(t),t==="#")return"#";if(!(t.substr(0,7)==="http://"||t.substr(0,8)==="https://"||t.substr(0,7)==="mailto:"||t.substr(0,4)==="tel:"||t.substr(0,11)==="data:image/"||t.substr(0,6)==="ftp://"||t.substr(0,2)==="./"||t.substr(0,3)==="../"||t[0]==="#"||t[0]==="/"))return""}else if(e==="background"){if(dl.lastIndex=0,dl.test(t))return""}else if(e==="style"){if(Tf.lastIndex=0,Tf.test(t)||(Af.lastIndex=0,Af.test(t)&&(dl.lastIndex=0,dl.test(t))))return"";a!==!1&&(a=a||Cf,t=a.process(t))}return t=Df(t),t}var My=/</g,Ry=/>/g,Dy=/"/g,Ny=/"/g,Uy=/&#([a-zA-Z0-9]*);?/gim,Fy=/:?/gim,By=/&newline;?/gim,dl=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,Tf=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Af=/u\s*r\s*l\s*\(.*/gi;function Of(n){return n.replace(Dy,""")}function Pf(n){return n.replace(Ny,'"')}function xf(n){return n.replace(Uy,function(t,a){return a[0]==="x"||a[0]==="X"?String.fromCharCode(parseInt(a.substr(1),16)):String.fromCharCode(parseInt(a,10))})}function Lf(n){return n.replace(Fy,":").replace(By," ")}function Mf(n){for(var e="",t=0,a=n.length;t<a;t++)e+=n.charCodeAt(t)<32?" ":n.charAt(t);return cl.trim(e)}function Rf(n){return n=Pf(n),n=xf(n),n=Lf(n),n=Mf(n),n}function Df(n){return n=Of(n),n=If(n),n}function Vy(){return""}function Hy(n,e){typeof e!="function"&&(e=function(){});var t=!Array.isArray(n);function a(i){return t?!0:cl.indexOf(n,i)!==-1}var s=[],r=!1;return{onIgnoreTag:function(i,o,l){if(a(i))if(l.isClosing){var u="[/removed]",c=l.position+u.length;return s.push([r!==!1?r:l.position,c]),r=!1,u}else return r||(r=l.position),"[removed]";else return e(i,o,l)},remove:function(i){var o="",l=0;return cl.forEach(s,function(u){o+=i.slice(l,u[0]),l=u[1]}),o+=i.slice(l),o}}}function jy(n){for(var e="",t=0;t<n.length;){var a=n.indexOf("<!--",t);if(a===-1){e+=n.slice(t);break}e+=n.slice(t,a);var s=n.indexOf("-->",a);if(s===-1)break;t=s+3}return e}function zy(n){var e=n.split("");return e=e.filter(function(t){var a=t.charCodeAt(0);return a===127?!1:a<=31?a===10||a===13:!0}),e.join("")}Ln.whiteList=kf(),Ln.getDefaultWhiteList=kf,Ln.onTag=Ay,Ln.onIgnoreTag=Oy,Ln.onTagAttr=Py,Ln.onIgnoreTagAttr=xy,Ln.safeAttrValue=Ly,Ln.escapeHtml=If,Ln.escapeQuote=Of,Ln.unescapeQuote=Pf,Ln.escapeHtmlEntities=xf,Ln.escapeDangerHtml5Entities=Lf,Ln.clearNonPrintableCharacter=Mf,Ln.friendlyAttrValue=Rf,Ln.escapeAttrValue=Df,Ln.onIgnoreTagStripAll=Vy,Ln.StripTagBody=Hy,Ln.stripCommentTag=jy,Ln.stripBlankChar=zy,Ln.cssFilter=Cf,Ln.getDefaultCSSWhiteList=Ty;var fl={},ua=Hu;function Gy(n){var e=ua.spaceIndex(n),t;return e===-1?t=n.slice(1,-1):t=n.slice(1,e+1),t=ua.trim(t).toLowerCase(),t.slice(0,1)==="/"&&(t=t.slice(1)),t.slice(-1)==="/"&&(t=t.slice(0,-1)),t}function Wy(n){return n.slice(0,2)==="</"}function qy(n,e,t){var a="",s=0,r=!1,i=!1,o=0,l=n.length,u="",c="";e:for(o=0;o<l;o++){var d=n.charAt(o);if(r===!1){if(d==="<"){r=o;continue}}else if(i===!1){if(d==="<"){a+=t(n.slice(s,o)),r=o,s=o;continue}if(d===">"||o===l-1){a+=t(n.slice(s,r)),c=n.slice(r,o+1),u=Gy(c),a+=e(r,a.length,u,c,Wy(c)),s=o+1,r=!1;continue}if(d==='"'||d==="'")for(var f=1,h=n.charAt(o-f);h.trim()===""||h==="=";){if(h==="="){i=d;continue e}h=n.charAt(o-++f)}}else if(d===i){i=!1;continue}}return s<l&&(a+=t(n.substr(s))),a}var Ky=/[^a-zA-Z0-9\\_:.-]/gim;function Yy(n,e){var t=0,a=0,s=[],r=!1,i=n.length;function o(f,h){if(f=ua.trim(f),f=f.replace(Ky,"").toLowerCase(),!(f.length<1)){var p=e(f,h||"");p&&s.push(p)}}for(var l=0;l<i;l++){var u=n.charAt(l),c,d;if(r===!1&&u==="="){r=n.slice(t,l),t=l+1,a=n.charAt(t)==='"'||n.charAt(t)==="'"?t:Jy(n,l+1);continue}if(r!==!1&&l===a){if(d=n.indexOf(u,l+1),d===-1)break;c=ua.trim(n.slice(a+1,d)),o(r,c),r=!1,l=d,t=l+1;continue}if(/\s|\n|\t/.test(u))if(n=n.replace(/\s|\n|\t/g," "),r===!1)if(d=Zy(n,l),d===-1){c=ua.trim(n.slice(t,l)),o(c),r=!1,t=l+1;continue}else{l=d-1;continue}else if(d=Xy(n,l-1),d===-1){c=ua.trim(n.slice(t,l)),c=Nf(c),o(r,c),r=!1,t=l+1;continue}else continue}return t<n.length&&(r===!1?o(n.slice(t)):o(r,Nf(ua.trim(n.slice(t))))),ua.trim(s.join(" "))}function Zy(n,e){for(;e<n.length;e++){var t=n[e];if(t!==" ")return t==="="?e:-1}}function Jy(n,e){for(;e<n.length;e++){var t=n[e];if(t!==" ")return t==="'"||t==='"'?e:-1}}function Xy(n,e){for(;e>0;e--){var t=n[e];if(t!==" ")return t==="="?e:-1}}function $y(n){return n[0]==='"'&&n[n.length-1]==='"'||n[0]==="'"&&n[n.length-1]==="'"}function Nf(n){return $y(n)?n.substr(1,n.length-2):n}fl.parseTag=qy,fl.parseAttr=Yy;var Qy=Vu.FilterCSS,si=Ln,Uf=fl,e_=Uf.parseTag,t_=Uf.parseAttr,hl=Hu;function gl(n){return n==null}function n_(n){var e=hl.spaceIndex(n);if(e===-1)return{html:"",closing:n[n.length-2]==="/"};n=hl.trim(n.slice(e+1,-1));var t=n[n.length-1]==="/";return t&&(n=hl.trim(n.slice(0,-1))),{html:n,closing:t}}function r_(n){var e={};for(var t in n)e[t]=n[t];return e}function i_(n){var e={};for(var t in n)Array.isArray(n[t])?e[t.toLowerCase()]=n[t].map(function(a){return a.toLowerCase()}):e[t.toLowerCase()]=n[t];return e}function Ff(n){n=r_(n||{}),n.stripIgnoreTag&&(n.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),n.onIgnoreTag=si.onIgnoreTagStripAll),n.whiteList||n.allowList?n.whiteList=i_(n.whiteList||n.allowList):n.whiteList=si.whiteList,n.onTag=n.onTag||si.onTag,n.onTagAttr=n.onTagAttr||si.onTagAttr,n.onIgnoreTag=n.onIgnoreTag||si.onIgnoreTag,n.onIgnoreTagAttr=n.onIgnoreTagAttr||si.onIgnoreTagAttr,n.safeAttrValue=n.safeAttrValue||si.safeAttrValue,n.escapeHtml=n.escapeHtml||si.escapeHtml,this.options=n,n.css===!1?this.cssFilter=!1:(n.css=n.css||{},this.cssFilter=new Qy(n.css))}Ff.prototype.process=function(n){if(n=n||"",n=n.toString(),!n)return"";var e=this,t=e.options,a=t.whiteList,s=t.onTag,r=t.onIgnoreTag,i=t.onTagAttr,o=t.onIgnoreTagAttr,l=t.safeAttrValue,u=t.escapeHtml,c=e.cssFilter;t.stripBlankChar&&(n=si.stripBlankChar(n)),t.allowCommentTag||(n=si.stripCommentTag(n));var d=!1;t.stripIgnoreTagBody&&(d=si.StripTagBody(t.stripIgnoreTagBody,r),r=d.onIgnoreTag);var f=e_(n,function(h,p,m,w,E){var v={sourcePosition:h,position:p,isClosing:E,isWhite:Object.prototype.hasOwnProperty.call(a,m)},y=s(m,w,v);if(!gl(y))return y;if(v.isWhite){if(v.isClosing)return"</"+m+">";var b=n_(w),S=a[m],I=t_(b.html,function(C,k){var M=hl.indexOf(S,C)!==-1,P=i(m,C,k,M);return gl(P)?M?(k=l(m,C,k,c),k?C+'="'+k+'"':C):(P=o(m,C,k,M),gl(P)?void 0:P):P});return w="<"+m,I&&(w+=" "+I),b.closing&&(w+=" /"),w+=">",w}else return y=r(m,w,v),gl(y)?u(w):y},u);return d&&(f=d.remove(f)),f};var a_=Ff;(function(n,e){var t=Ln,a=fl,s=a_;function r(o,l){var u=new s(l);return u.process(o)}e=n.exports=r,e.filterXSS=r,e.FilterXSS=s,function(){for(var o in t)e[o]=t[o];for(var l in a)e[l]=a[l]}(),typeof window<"u"&&(window.filterXSS=n.exports);function i(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}i()&&(self.filterXSS=n.exports)})(Fu,Fu.exports);var s_=Fu.exports;const Va=py(s_),ju={alreadyHaveAnAccount:"Already have an account? <a href='?journey'>Sign in here!</a>",backToDefault:"Back to Sign In",backToLogin:"Back to Sign In",closeModal:"Close",charactersCannotRepeatMoreThan:"A character cannot repeat more than {max} times",charactersCannotRepeatMoreThanCaseInsensitive:"A character cannot repeat more than {max} times (case insensitive)",checkYourEmail:"Check your email",chooseDifferentUsername:"Please choose a different username.",chooseYourDeviceForIdentityVerification:"Choose your device for identity verification.",confirmPassword:"Confirm password",constraintViolationForPassword:"Password does not meet the requirements.",constraintViolationForValue:"Value does not meet the requirements.",continueWith:"Continue with ",copyAndPasteUrlBelow:"Or, copy and paste the URL below into your authenticator app.",copyUrl:"Copy URL",customSecurityQuestion:"Custom security question",deviceName:"Device name",doesNotMeetMinimumCharacterLength:"At least {min} character(s)",dontGetLockedOut:"Don't get locked out of your account!",dontHaveAnAccount:"No account? <a href='?journey=Registration'>Register here!</a>",ensurePasswordIsMoreThan:"Password must contain at least {minPasswordLength} character(s).",ensurePasswordHasOne:"Password must contain at least 1 capital letter, 1 number, and 1 special character.",enterVerificationCode:"Enter verification code",exceedsMaximumCharacterLength:"Exceeds maximum of {max} characters",fieldCanNotContainFollowingCharacters:"Cannot contain these character(s): {chars}",fieldCanNotContainFollowingValues:"Cannot contain these value(s): {fields}",forgotPassword:"Forgot password?",forgotUsername:"Forgot username?",givenName:"First name",inputRequiredError:"Value is required",loading:"Loading ...",loginButton:"Sign in",loginFailure:"Sign in failed",loginHeader:"Sign in",loginSuccess:"Sign in successful!",mail:"Email address",minimumNumberOfNumbers:"At least {num} number(s)",minimumNumberOfLowercase:"At least {num} lowercase letter(s)",minimumNumberOfUppercase:"At least {num} uppercase letter(s)",minimumNumberOfSymbols:"At least {num} symbol(s)",nameCallback:"Username",nameYourDevice:"Name your device",next:"Next",nextButton:"Next",notToExceedMaximumCharacterLength:"No more than {max} characters",noLessThanMinimumCharacterLength:"At least {min} character(s)",onMobileOpenInAuthenticator:"On mobile? Open link in Authenticator.",optionallyNameDevice:"Optionally name your device",passwordCallback:"Password",passwordCannotContainCommonPasswords:"Password cannot contain common passwords",passwordCannotContainCommonPasswordsOrBeReversible:"Password cannot contain common passwords or reversible text",passwordCannotContainCommonPasswordsOrBeReversibleStringsLessThan:"Password cannot contain common passwords or reversible text less than {min} characters",passwordRequirements:"Password requirements:",pleaseCheckValue:"Please check this value",pleaseConfirm:"Please confirm",preferencesMarketing:"Send me special offers and services",preferencesUpdates:"Send me news and updates",provideCustomQuestion:"Provide custom security question",qrCodeNotWorking:"Not working or need an alternative method?",qrCodeFailedToRender:"QR Code failed to render. Please notify your support administrator. You are welcome to use the alternative methods below.",qrCodeImportFailure:"We are unable to render your QR Code. Please use one of the alternative methods below.",redirectingTo:"Redirecting you to",registerButton:"Register",registerHeader:"Register",registerSuccess:"Registration successful!",requiredField:"Value is required",registerYourDevice:"Register {name}",scanQrCodeWithAuthenticator:"Scan the QR code image below with the ForgeRock Authenticator app to register your device with your login.",securityAnswer:"Security answer",securityQuestions:"Security question(s)",securityQuestionsPrompt:"Provide security question(s) and answer(s):",shouldContainANumber:"Should contain a number",shouldContainAnUppercase:"Should contain an uppercase letter",shouldContainALowercase:"Should contain a lowercase letter",shouldContainASymbol:"Should contain a symbol",showPassword:"Show password",signalsEvaluation:"Evaluating device information.",skipButton:"Skip",sn:"Last name",submit:"Submit",submitButton:"Submit",successMessage:"Success!",termsAndConditions:"Please accept our Terms & Conditions",termsAndConditionsLinkText:"View full Terms & Conditions",tryAgain:"Please try again",twoFactorAuthentication:"Two factor authentication",useThisNewMfaToHelpVerifyYourIdentity:"Use this new device or Multi-Factor Authentication method to help verify your identity.",useValidEmail:"Please use a valid email address.",unrecoverableError:"There was an error in the form submission.",unknownLoginError:"Unknown login failure has occurred.",unknownNetworkError:"Unknown network request failure has occurred.",url:"URL:",useDeviceForIdentityVerification:"Use your device for identity verification.",useOneOfTheseCodes:"Use one of these codes to authenticate if you lose your device, which has been named: <em>{name}</em>",userName:"Username",usernameRequirements:"Username requirements:",useTheAuthenticatorAppOnYourPhone:"Find the verification code using the authenticator app on your phone.",validatedCreatePasswordCallback:"Password",validatedCreateUsernameCallback:"Username",valueRequirements:"Value requirements:",verifyYourIdentity:"Verify your identity",yourDevice:"Your device",yourMultiFactorAuthIsEnabled:"Your new device or MFA is enabled",yourRecoveryCodesToAccessAccountForLostDevice:"If you lose your device, or don’t have it with you, a recovery code is the only way to sign in to your account with 2-step verification enabled. It’s strongly recommended that you print and store these codes in a safe place. <b>Each code can only be used once</b>."},zu=ne.object({alreadyHaveAnAccount:ne.string(),backToDefault:ne.string(),backToLogin:ne.string(),dontHaveAnAccount:ne.string(),closeModal:ne.string(),charactersCannotRepeatMoreThan:ne.string(),charactersCannotRepeatMoreThanCaseInsensitive:ne.string(),checkYourEmail:ne.string(),chooseDifferentUsername:ne.string(),chooseYourDeviceForIdentityVerification:ne.string(),confirmPassword:ne.string(),constraintViolationForPassword:ne.string(),constraintViolationForValue:ne.string(),continueWith:ne.string(),copyUrl:ne.string(),copyAndPasteUrlBelow:ne.string(),customSecurityQuestion:ne.string(),dontGetLockedOut:ne.string(),doesNotMeetMinimumCharacterLength:ne.string(),deviceName:ne.string(),ensurePasswordIsMoreThan:ne.string(),ensurePasswordHasOne:ne.string(),enterVerificationCode:ne.string(),exceedsMaximumCharacterLength:ne.string(),fieldCanNotContainFollowingCharacters:ne.string(),fieldCanNotContainFollowingValues:ne.string(),forgotPassword:ne.string(),forgotUsername:ne.string(),givenName:ne.string(),inputRequiredError:ne.string(),loading:ne.string(),loginButton:ne.string(),loginFailure:ne.string(),loginHeader:ne.string(),loginSuccess:ne.string(),mail:ne.string(),minimumNumberOfNumbers:ne.string(),minimumNumberOfLowercase:ne.string(),minimumNumberOfUppercase:ne.string(),minimumNumberOfSymbols:ne.string(),nameCallback:ne.string(),nameYourDevice:ne.string(),next:ne.string(),nextButton:ne.string(),notToExceedMaximumCharacterLength:ne.string(),noLessThanMinimumCharacterLength:ne.string(),useOneOfTheseCodes:ne.string(),onMobileOpenInAuthenticator:ne.string(),optionallyNameDevice:ne.string(),passwordCallback:ne.string(),passwordCannotContainCommonPasswords:ne.string(),passwordCannotContainCommonPasswordsOrBeReversible:ne.string(),passwordCannotContainCommonPasswordsOrBeReversibleStringsLessThan:ne.string(),passwordRequirements:ne.string(),pleaseCheckValue:ne.string(),pleaseConfirm:ne.string(),preferencesMarketing:ne.string(),preferencesUpdates:ne.string(),provideCustomQuestion:ne.string(),qrCodeNotWorking:ne.string(),qrCodeFailedToRender:ne.string(),qrCodeImportFailure:ne.string(),redirectingTo:ne.string(),registerButton:ne.string(),registerHeader:ne.string(),registerSuccess:ne.string(),registerYourDevice:ne.string(),requiredField:ne.string(),securityAnswer:ne.string(),scanQrCodeWithAuthenticator:ne.string(),securityQuestions:ne.string(),securityQuestionsPrompt:ne.string(),shouldContainANumber:ne.string(),shouldContainAnUppercase:ne.string(),shouldContainALowercase:ne.string(),shouldContainASymbol:ne.string(),showPassword:ne.string(),signalsEvaluation:ne.string(),skipButton:ne.string(),sn:ne.string(),submit:ne.string(),submitButton:ne.string(),successMessage:ne.string(),termsAndConditions:ne.string(),termsAndConditionsLinkText:ne.string(),tryAgain:ne.string(),twoFactorAuthentication:ne.string(),useThisNewMfaToHelpVerifyYourIdentity:ne.string(),useValidEmail:ne.string(),unrecoverableError:ne.string(),unknownLoginError:ne.string(),unknownNetworkError:ne.string(),url:ne.string(),useDeviceForIdentityVerification:ne.string(),userName:ne.string(),usernameRequirements:ne.string(),useTheAuthenticatorAppOnYourPhone:ne.string(),validatedCreatePasswordCallback:ne.string(),validatedCreateUsernameCallback:ne.string(),valueRequirements:ne.string(),verifyYourIdentity:ne.string(),yourDevice:ne.string(),yourMultiFactorAuthIsEnabled:ne.string(),yourRecoveryCodesToAccessAccountForLostDevice:ne.string()}).strict();zu.partial(),zu.parse(ju);const Gu=ti(null);function Bf(n){return n?Gu.set({...ju,...n}):Gu.set(ju),zu}const o_=ne.record(ne.string().regex(/^[^<>]*$/)).optional();function Ge(n,e,t){if(!n)throw new Error("No key provided to t()");const a=ds(Gu),s=a&&a[n]||"";let r="";if(e?(o_.parse(e),Object.keys(e).map(o=>{const l=new RegExp(`{${o}}`,"g");r=s.replace(l,e[o])})):r=s,!r&&!t){const o=n.replace(/([A-Z])/g," $1");r=o.charAt(0).toUpperCase()+o.slice(1)}else!r&&t&&(r=t);return Va(r,{onTagAttr:function(o,l,u){if(o=="a"&&l=="href"&&u.substr(0,1)==="?")return`${l}="${u}"`}})}function Pr(n){if(typeof n!="string"&&typeof n!="number")throw new Error("Parameter for textToKey function needs to be of type string or number");if(typeof n=="number"&&(n=String(n)),n.match(/^([A-Z]+)$/))return n.toLowerCase();if(n.match(/^([A-Z]+[\W]*)$/))return n.replace(/\W/g,"").toLowerCase();const e=n.replace(/(\W)([\w\d])/g,(t,a,s)=>a.match(/['’"”]/)&&s.match(/[a-z]/)?s:a.match(/\W/)&&s.match(/[a-z]/)?s.toUpperCase():(a.match(/\W/)&&s.match(/\d/),s)).replace(/(\W)/g,"");return e.charAt(0).toLowerCase()+e.slice(1)}const Vf="110",l_="constraint violation";function Ha(n){if(!n)return"";if(n.toLocaleLowerCase().includes("constraint violation"))return console.error("Delta Sierra error has occurred. Please communicate this to your system administrator."),n.toLocaleLowerCase().includes("password")?"constraintViolationForPassword":"constraintViolationForValue";const e=(s,r)=>`${r.toLowerCase()}`;return n.replace(/^([A-Z])/g,e).replace(/\s([a-z])/g,(s,r)=>`${r.toUpperCase()}`).replace(/\W/g,"")}function Hf(){let n=!1;return function(t){return t.getOutputByName("failedPolicies",[]).length&&!n?(n=!0,!0):!1}}function jf(n){return n.getCallbacksOfType(he.RedirectCallback).length>0}function u_(n,e,t,a){var i;if(!Array.isArray(e)||t.type!==ir.Step||a!==1)return!1;const s=n.payload.detail,r=(i=n.payload.message)==null?void 0:i.toLowerCase();return!!((s==null?void 0:s.errorCode)===Vf||r!=null&&r.includes(l_))}const c_=[he.ConfirmationCallback,he.DeviceProfileCallback,he.PollingWaitCallback,he.SelectIdPCallback,he.PingOneProtectInitializeCallback,he.PingOneProtectEvaluationCallback],d_=[he.BooleanAttributeInputCallback,he.ChoiceCallback,he.ConfirmationCallback,he.KbaCreateCallback,he.NameCallback,he.NumberAttributeInputCallback,he.PasswordCallback,he.ReCaptchaCallback,he.SelectIdPCallback,he.StringAttributeInputCallback,he.TermsAndConditionsCallback,he.TextInputCallback,he.ValidatedCreatePasswordCallback,he.ValidatedCreateUsernameCallback],f_={SelectIdPCallback:n=>!!n.getProviders().find(t=>t.provider==="localAuthentication")};function h_(n){return n.getType()===he.ConfirmationCallback&&n.getOptions().length===1}function g_(n){const e=f_[n.getType()];return e?e(n):!1}function p_(n){return c_.includes(n.getType())}function m_(n,e){return e?!0:!n.filter(a=>a.derived.isUserInputRequired&&!a.derived.isSelfSubmitting).length}function v_(n){return n.getType()===he.SelectIdPCallback||n.getType()===he.ConfirmationCallback&&n.getOptions().length===1?!1:d_.includes(n.getType())}function y_(n,e,t){const a=(s,r)=>(r.derived.canForceUserInputOptionality&&e>0&&(s=!0),s);return n.reduce(a,!1)}function zf(n,e,t){const a={};return n==null?void 0:n.callbacks.map((s,r)=>{const o=s.getType();let l;return a[o]?a[o]=a[o]+1:a[o]=1,t&&t[o]&&(l=t[o][a[o]-1]),{derived:{canForceUserInputOptionality:g_(s),isFirstInvalidInput:e(s),isReadyForSubmission:h_(s),isSelfSubmitting:p_(s),isUserInputRequired:v_(s)},idx:r,...l&&{platform:{...l}}}})}function Gf(n,e,t){const a=n.filter(i=>!!i.derived.isUserInputRequired).length,s=y_(n,a);let r;return e&&(r=Object.keys(e).reduce((i,o)=>(typeof e[o]!="object"&&(i[o]=e[o]),i),{})),{derived:{isStepSelfSubmittable:()=>m_(n,s),isUserInputOptional:s,numOfCallbacks:n.length,numOfSelfSubmittableCbs:n.filter(i=>!!i.derived.isSelfSubmitting).length,numOfUserInputCbs:a},...r&&{platform:{...r}},...t&&{platform:{stageName:t}}}}function __(n){const e=[],{update:t,set:a,subscribe:s}=ti(e);return pl={latest:async()=>new Promise(r=>{s(i=>{const o=i[i.length-1];r(o)})()}),pop:async()=>new Promise(r=>{t(i=>{let o;return i.length?o=i.slice(0,-1):o=i,r([...o]),o})}),push:async r=>new Promise(i=>{t(o=>{var u;let l;return o.length?r&&(r==null?void 0:r.tree)!==((u=o[o.length-1])==null?void 0:u.tree)?l=[...o,r]:l=o:l=[{...r}],i([...l]),l})}),reset:()=>{a([])},subscribe:s},pl}const bi=ti({completed:!1,error:null,loading:!1,metadata:null,step:null,successful:!1,response:null,recaptchaAction:null});function Wf(n){const e=__();let t=0;async function a(u,c,d){var w,E,v,y,b;(w=_n.get().serverConfig)!=null&&w.baseUrl||$s("missingBaseUrl");const f={...n,...c};let h;u&&u.type===ir.Step&&(h=u==null?void 0:u.callbacks);const p=u==null?void 0:u.payload;let m;bi.set({completed:!1,error:null,loading:!0,metadata:ds(bi).metadata,step:u,successful:!1,response:null,recaptchaAction:c==null?void 0:c.recaptchaAction});try{d?(f.tree=void 0,m=await ra.resume(d,f)):u?(f.tree=void 0,m=await ra.next(u,f)):m=await ra.start(f)}catch(S){console.error(`Next step request | ${S}`),m=new pu({message:Ge("unknownNetworkError")})}if(m.type===ir.Step){const S=m.getStage();let I=null,C=null;if(S&&S.includes("{"))try{I=JSON.parse(S)}catch{console.warn("Stage attribute value was not parsable")}else S&&(C=S);const k=zf(m,Hf(),I),M=Gf(k,I,C);t=t+1,bi.set({completed:!1,error:null,loading:!1,metadata:{callbacks:k,step:M},step:m,successful:!1,response:null,recaptchaAction:c==null?void 0:c.recaptchaAction})}else if(m.type===ir.LoginSuccess)e.reset(),bi.set({completed:!0,error:null,loading:!1,metadata:null,step:null,successful:!0,response:m.payload,recaptchaAction:c==null?void 0:c.recaptchaAction});else if(m.type===ir.LoginFailure){const S=gy(m.payload.message||"Unknown login error");let I=null;try{const C=await e.latest();I=await ra.next(void 0,C)}catch(C){console.error(`Restart failed step request | ${C}`),I=new pu({message:Ge("unknownNetworkError")})}if(u_(m,h,I,t)){I=I,I.callbacks=h,I.payload={...p,authId:I.payload.authId};const C=m.payload.detail;(C==null?void 0:C.errorCode)===Vf&&(I=await ra.next(I,f))}if(I.type===ir.Step){const C=I.getStage();let k=null,M=null;if(C&&C.includes("{"))try{k=JSON.parse(C)}catch{console.warn("Stage attribute value was not parsable")}else C&&(M=C);const P=zf(I,Hf(),k),D=Gf(P,k,M);bi.set({completed:!1,error:{code:m.getCode(),message:S,stage:(E=u==null?void 0:u.payload)==null?void 0:E.stage,troubleshoot:null,detail:(v=m.payload)==null?void 0:v.detail},loading:!1,metadata:{callbacks:P,step:D},step:I,successful:!1,response:null,recaptchaAction:null})}else I.type===ir.LoginSuccess?bi.set({completed:!0,error:null,loading:!1,metadata:null,step:null,successful:!0,response:I.payload,recaptchaAction:null}):bi.set({completed:!0,error:{code:m.getCode(),message:S,stage:(y=u==null?void 0:u.payload)==null?void 0:y.stage,troubleshoot:null,detail:(b=m.payload)==null?void 0:b.detail},loading:!1,metadata:null,step:null,successful:!1,response:I.payload,recaptchaAction:null})}}async function s(){l();const u=await e.pop(),c=u[u.length-1];await o(c)}async function r(u){l(),await e.push(u),await o(u)}async function i(u,c){await a(void 0,c,u)}async function o(u){const c=_n.get().tree;!(u!=null&&u.tree)&&c&&(u?u.tree=c:u={tree:c}),!(u!=null&&u.recaptchaAction)&&(u!=null&&u.tree)&&(u.recaptchaAction=u.tree),await e.push(u),await a(void 0,u)}function l(){bi.set({completed:!1,error:null,loading:!1,metadata:null,step:null,successful:!1,response:null,recaptchaAction:null})}return{next:a,pop:s,push:r,reset:l,resume:i,start:o,subscribe:bi.subscribe}}let pl;const qf=ne.object({termsAndConditions:ne.string()}).strict();qf.partial();const ml=ti();function Kf(n){return n?(qf.parse(n),ml.set(n)):ml.set(void 0),ml}const b_="Authorization timed out",w_="The request requires some interaction that is not allowed.",E_="Timeouts are likely an issue with OAuth client misconfiguration. If you are getting a 4xx error in the network tab, copy the full `/authorize` URL and paste it directly into your browsers URL field to directly visit the page. The error should be displayed on the page.",S_=`The user either doesn't have a valid session, the cookie is not being sent due to third-party cookies being disabled, or the user is needing to provide consent as the OAuth client setting does not have "implied consent" enabled.`,mo=ti({completed:!1,error:null,loading:!1,successful:!1,response:null});function k_(n){switch(n){case w_:return S_;case b_:return E_;default:return""}}function Yf(n){async function e(a){const s={query:{prompt:"none"},...n,...a};let r;mo.set({completed:!1,error:null,loading:!0,successful:!1,response:null});try{r=await wu.getTokens(s)}catch(i){i instanceof Error&&mo.set({completed:!0,error:{message:i.message,troubleshoot:k_(i.message)},loading:!1,successful:!1,response:null});return}mo.set({completed:!0,error:null,loading:!1,successful:!0,response:r})}function t(){mo.set({completed:!1,error:null,loading:!1,successful:!1,response:null})}return{get:e,reset:t,subscribe:mo.subscribe}}const vo=ti({completed:!1,error:null,loading:!1,successful:!1,response:null});function Zf(n){async function e(a){const s={...n,...a};vo.set({completed:!1,error:null,loading:!0,successful:!1,response:null});try{const r=await ev.getCurrentUser(s);vo.set({completed:!0,error:null,loading:!1,successful:!0,response:r})}catch(r){r instanceof Error&&vo.set({completed:!0,error:{message:r.message,troubleshoot:null},loading:!1,successful:!1,response:null})}}function t(){vo.set({completed:!1,error:null,loading:!1,successful:!1,response:null})}return{get:e,reset:t,subscribe:vo.subscribe}}const C_=ne.object({dark:ne.string().optional(),height:ne.number().optional(),light:ne.string().optional(),width:ne.number().optional()}).strict();ne.object({checksAndRadios:ne.union([ne.literal("animated"),ne.literal("standard")]).optional(),labels:ne.union([ne.literal("floating").optional(),ne.literal("stacked")]).optional(),showPassword:ne.union([ne.literal("none"),ne.literal("button"),ne.literal("checkbox")]).optional(),logo:C_.optional(),sections:ne.object({header:ne.boolean().optional()}).strict().optional(),stage:ne.object({icon:ne.boolean().optional()}).strict().optional()}).strict().partial();const Wu={checksAndRadios:"animated",labels:"floating",showPassword:"button",logo:void 0,sections:void 0,stage:void 0},oi=ti(Wu);function Jf(n){if(n){const e=a=>n[a],t=Object.keys(n).reduce((a,s)=>e(s)===void 0||e(s)===null?a:{...a,[s]:e(s)},Wu);oi.set(t)}else oi.set(Wu);return oi}function I_(n){let e,t,a;function s(){return{journeyStore:e,oauthStore:t,userStore:a}}function r(){e.reset(),t.reset(),a.reset()}const i=u=>(u!=null&&u.forgerock&&mf({clientId:"WebLoginWidgetClient",realmPath:"alpha",redirectUri:typeof window=="object"?`${window.location.origin}${window.location.pathname}`:"https://localhost:3000/callback",scope:"openid email",...u==null?void 0:u.forgerock,support:"legacy"}),e=Wf(u==null?void 0:u.forgerock),t=Yf(u==null?void 0:u.forgerock),a=Zf(u==null?void 0:u.forgerock),Bf(u==null?void 0:u.content),bf(u==null?void 0:u.journeys),Kf(u==null?void 0:u.links),Jf(u==null?void 0:u.style),{set(c){c!=null&&c.forgerock&&mf({clientId:"WebLoginWidgetClient",realmPath:"alpha",redirectUri:typeof window=="object"?window.location.href:"https://localhost:3000/callback",scope:"openid email",...c==null?void 0:c.forgerock,support:"legacy"}),e=Wf(c==null?void 0:c.forgerock),t=Yf(c==null?void 0:c.forgerock),a=Zf(c==null?void 0:c.forgerock),Bf(c==null?void 0:c.content),bf(c==null?void 0:c.journeys),Kf(c==null?void 0:c.links),Jf(c==null?void 0:c.style)}}),o=u=>{(!e||!t||!a)&&$s("missingStores");const c=(u==null?void 0:u.oauth)??!0,d=(u==null?void 0:u.user)??!0,{subscribe:f}=rf([e,t,a],([w,E,v],y)=>{y({journey:w,oauth:E,user:v}),(E.error||v.error)&&h==="modal"&&n.close({reason:"auto"}),w.successful&&E.successful&&v.completed?h==="modal"&&n.close({reason:"auto"}):w.successful&&E.successful?d&&v.loading===!1&&v.completed===!1?a.get():d||h==="modal"&&n.close({reason:"auto"}):w.successful&&(c&&E.loading===!1&&E.completed===!1?t.get():c||h==="modal"&&n.close({reason:"auto"}))});let h=null;function p(w){return m(w)}function m(w){return t.reset(),a.reset(),h=ds(ho).type,w!=null&&w.resumeUrl?e.resume(w.resumeUrl):e.start({recaptchaAction:w==null?void 0:w.recaptchaAction,...w==null?void 0:w.forgerock,...(w==null?void 0:w.journey)&&{tree:w==null?void 0:w.journey}}),new Promise((E,v)=>{const y=f(b=>{(b.oauth.error||b.user.error)&&(v(b),y()),b.journey.successful&&b.oauth.successful&&b.user.completed?(E(b),y()):b.journey.successful&&b.oauth.successful?d||(E(b),y()):b.journey.successful&&(c||(E(b),y()))})})}return{change:p,start:m,subscribe:f}},l={info(){(!e||!t||!a)&&$s("missingStores");const{get:u,subscribe:c}=a;function d(f){return u(f),new Promise((h,p)=>{const m=a.subscribe(w=>{w.successful?(h(w),m()):w.error&&(p(w),m())})})}return{get:d,subscribe:c}},async logout(){(!e||!t||!a)&&$s("missingStores");const{clientId:u}=_n.get();let c;u?c=Um:c=zd;try{await c.logout(),r()}catch(d){throw r(),d}},tokens(){(!e||!t||!a)&&$s("missingStores");const{get:u,subscribe:c}=t;function d(f){return u(f),new Promise((h,p)=>{const m=t.subscribe(w=>{w.successful?(h(w),m()):w.error&&(p(w),m())})})}return{get:d,subscribe:c}}};return{component:n,configuration:i,getStores:s,journey:o,protect:{start:Or.start.bind(Or),getData:Or.getData.bind(Or),pauseBehavioralData:Or.pauseBehavioralData.bind(Or),resumeBehavioralData:Or.resumeBehavioralData.bind(Or)},request:Zd.request.bind(Zd),user:l}}const Xf=()=>{const{update:n}=ho,{subscribe:e}=rf([ho],([t],a)=>{a({error:t.error,lastAction:t.lastAction,mounted:t.mounted,open:t.open,reason:t.reason})});return{close:t=>{vf(t,!0)},open:()=>{n(t=>{var a;return t.type==="inline"?(console.warn('Component type of "inline" has no `open` method'),t):(a=t.modal)!=null&&a.component?(t.modal.element.showModal(),{...t,lastAction:"open",open:!0,reason:null}):(console.warn("Modal component is not mounted. Please instantiate the Widget before use."),t)})},subscribe:e}};function Lt(n,e){if(new.target)return nt({component:Lt,...n});et(e,!1);let t=R(e,"html",12,!1),a=R(e,"key",12),s=R(e,"values",12,void 0),r=ue();an(()=>(G(a()),G(s())),()=>{ee(r,Ge(a(),s()))}),un();var i={get html(){return t()},set html(d){t(d),L()},get key(){return a()},set key(d){a(d),L()},get values(){return s()},set values(d){s(d),L()},$set:it,$on:(d,f)=>rt(e,d,f)};xt();var o=Wt(),l=lt(o);{var u=d=>{var f=Wt(),h=lt(f);cn(h,e,"default",{},p=>{var m=Wt(),w=lt(m);Yo(w,()=>_(r)),oe(p,m)}),oe(d,f)},c=d=>{var f=Wt(),h=lt(f);cn(h,e,"default",{},p=>{var m=Cn();Je(()=>$t(m,_(r))),oe(p,m)}),oe(d,f)};ht(l,d=>{t()?d(u):d(c,-1)})}return oe(n,o),tt(i)}var T_=Kn('<svg viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><path d="M 7 4 C 6.744125 4 6.4879687 4.0974687 6.2929688 4.2929688 L 4.2929688 6.2929688 C 3.9019687 6.6839688 3.9019687 7.3170313 4.2929688 7.7070312 L 11.585938 15 L 4.2929688 22.292969 C 3.9019687 22.683969 3.9019687 23.317031 4.2929688 23.707031 L 6.2929688 25.707031 C 6.6839688 26.098031 7.3170313 26.098031 7.7070312 25.707031 L 15 18.414062 L 22.292969 25.707031 C 22.682969 26.098031 23.317031 26.098031 23.707031 25.707031 L 25.707031 23.707031 C 26.098031 23.316031 26.098031 22.682969 25.707031 22.292969 L 18.414062 15 L 25.707031 7.7070312 C 26.098031 7.3170312 26.098031 6.6829688 25.707031 6.2929688 L 23.707031 4.2929688 C 23.316031 3.9019687 22.682969 3.9019687 22.292969 4.2929688 L 15 11.585938 L 7.7070312 4.2929688 C 7.5115312 4.0974687 7.255875 4 7 4 z"></path><title><!></title></svg>');function qu(n,e){if(new.target)return nt({component:qu,...n});et(e,!1);let t=R(e,"classes",12,""),a=R(e,"size",12,"24px");var s={get classes(){return t()},set classes(l){t(l),L()},get size(){return a()},set size(l){a(l),L()},$set:it,$on:(l,u)=>rt(e,l,u)},r=T_(),i=ke(_e(r)),o=_e(i);return cn(o,e,"default",{},null),pe(i),pe(r),Je(()=>{Qt(r,0,Yn(t())),Fe(r,"height",a()),Fe(r,"width",a())}),oe(n,r),tt(s)}var A_=ze('<div class="tw_dialog-header dark:tw_dialog-header_dark"><div class="tw_dialog-logo dark:tw_dialog-logo_dark"></div> <button class="tw_dialog-x md:tw_dialog-x_medium tw_focusable-element dark:tw_focusable-element_dark" aria-label="Close"><!></button></div>'),O_=ze('<div class="tw_dialog-logo dark:tw_dialog-logo_dark"></div>'),P_=ze('<div><button class="tw_dialog-x md:tw_dialog-x_medium tw_focusable-element dark:tw_focusable-element_dark"><!></button> <!></div>'),x_=ze('<dialog><!> <div class="tw_dialog-body"><!></div></dialog>');function $f(n,e){if(new.target)return nt({component:$f,...n});et(e,!1);const t=()=>Ar(oi,"$styleStore",a),[a,s]=Wr();let r=R(e,"dialogEl",12,null),i=R(e,"dialogId",12),o=R(e,"forceOpen",12,!1),l=R(e,"withHeader",12,!1);function u(v){var S,I,C;function y(){var k,M;(k=r())==null||k.close(),(M=r())==null||M.classList.remove("tw_dialog-closing"),vf({reason:v})}const b=setTimeout(y,500);(S=r())==null||S.addEventListener("animationstart",()=>{clearTimeout(b)},{once:!0}),(I=r())==null||I.addEventListener("animationend",y,{once:!0}),(C=r())==null||C.classList.add("tw_dialog-closing")}var c={closeDialog:u,get dialogEl(){return r()},set dialogEl(v){r(v),L()},get dialogId(){return i()},set dialogId(v){i(v),L()},get forceOpen(){return o()},set forceOpen(v){o(v),L()},get withHeader(){return l()},set withHeader(v){l(v),L()},$set:it,$on:(v,y)=>rt(e,v,y)};xt();var d=x_(),f=_e(d);{var h=v=>{var y=A_(),b=_e(y),S=ke(b,2),I=_e(S);qu(I,{classes:"tw_inline-block tw_fill-current tw_text-secondary-dark dark:tw_text-secondary-light",children:(C,k)=>{Lt(C,{key:"closeModal"})},$$slots:{default:!0}}),pe(S),pe(y),Je(()=>{$d(b,(t(),Q(()=>{var C,k,M,P,D,V,B,Y,Z,te;return`--logo-dark: url("${(k=(C=t())==null?void 0:C.logo)==null?void 0:k.dark}"); --logo-light: url("${(P=(M=t())==null?void 0:M.logo)==null?void 0:P.light}"); ${(V=(D=t())==null?void 0:D.logo)!=null&&V.height?`height: ${(B=t())==null?void 0:B.logo.height}px;`:""} ${(Z=(Y=t())==null?void 0:Y.logo)!=null&&Z.width?`width: ${(te=t())==null?void 0:te.logo.width}px;`:""}`}))),Fe(S,"aria-controls",i())}),Vn("click",S,()=>u("user")),oe(v,y)},p=v=>{var y=P_(),b=_e(y),S=_e(b);qu(S,{classes:"tw_inline-block tw_fill-current tw_text-secondary-dark dark:tw_text-secondary-light",children:(k,M)=>{Lt(k,{key:"closeModal"})},$$slots:{default:!0}}),pe(b);var I=ke(b,2);{var C=k=>{var M=O_();Je(()=>$d(M,(t(),Q(()=>{var P,D,V,B;return`--logo-dark: url("${(D=(P=t())==null?void 0:P.logo)==null?void 0:D.dark}"); --logo-light: url("${(B=(V=t())==null?void 0:V.logo)==null?void 0:B.light}")`})))),oe(k,M)};ht(I,k=>{t(),Q(()=>{var M;return(M=t())==null?void 0:M.logo})&&k(C)})}pe(y),Je(()=>{Qt(y,1,(t(),Q(()=>{var k;return`tw_pt-10 md:tw_pt-10 tw_text-right ${(k=t())!=null&&k.logo?"tw_h-32 md:tw_h-36 tw_pb-6":""}`}))),Fe(b,"aria-controls",i())}),Vn("click",b,()=>u("user")),oe(v,y)};ht(f,v=>{l()?v(h):v(p,-1)})}var m=ke(f,2),w=_e(m);cn(w,e,"default",{},null),pe(m),pe(d),Hn(d,v=>r(v),()=>r()),Je(()=>{Fe(d,"id",i()),Qt(d,1,`tw_dialog-box dark:tw_dialog-box_dark md:tw_dialog-box_medium ${o()?"":"tw_dialog-box_animate"}`),d.open=o()}),oe(n,d),Ot(e,"closeDialog",u);var E=tt(c);return s(),E}var L_=Kn('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"></path><title><!></title></svg>');function Qf(n,e){if(new.target)return nt({component:Qf,...n});et(e,!1);let t=R(e,"classes",12,""),a=R(e,"size",12,"24px");var s={get classes(){return t()},set classes(l){t(l),L()},get size(){return a()},set size(l){a(l),L()},$set:it,$on:(l,u)=>rt(e,l,u)},r=L_(),i=ke(_e(r)),o=_e(i);return cn(o,e,"default",{},null),pe(i),pe(r),Je(()=>{Qt(r,0,Yn(t())),Fe(r,"height",a()),Fe(r,"width",a())}),oe(n,r),tt(s)}var M_=Kn('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"></path><title><!></title></svg>');function eh(n,e){if(new.target)return nt({component:eh,...n});et(e,!1);let t=R(e,"classes",12,""),a=R(e,"size",12,"24px");var s={get classes(){return t()},set classes(l){t(l),L()},get size(){return a()},set size(l){a(l),L()},$set:it,$on:(l,u)=>rt(e,l,u)},r=M_(),i=ke(_e(r)),o=_e(i);return cn(o,e,"default",{},null),pe(i),pe(r),Je(()=>{Qt(r,0,Yn(t())),Fe(r,"height",a()),Fe(r,"width",a())}),oe(n,r),tt(s)}var R_=Kn('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8 4a.905.905 0 0 0-.9.995l.35 3.507a.552.552 0 0 0 1.1 0l.35-3.507A.905.905 0 0 0 8 4zm.002 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"></path><title><!></title></svg>');function th(n,e){if(new.target)return nt({component:th,...n});et(e,!1);let t=R(e,"classes",12,""),a=R(e,"size",12,"24px");var s={get classes(){return t()},set classes(l){t(l),L()},get size(){return a()},set size(l){a(l),L()},$set:it,$on:(l,u)=>rt(e,l,u)},r=R_(),i=ke(_e(r)),o=_e(i);return cn(o,e,"default",{},null),pe(i),pe(r),Je(()=>{Qt(r,0,Yn(t())),Fe(r,"height",a()),Fe(r,"width",a())}),oe(n,r),tt(s)}var D_=ze('<div tabindex="-1"><p class="tw_grid tw_grid-cols-[2em_1fr]"><!> <span><!></span></p></div>');function wi(n,e){if(new.target)return nt({component:wi,...n});et(e,!1);let t=R(e,"id",12),a=R(e,"needsFocus",12,!1),s=R(e,"type",12,""),r=ue();function i(...w){return w.reduce((E,v)=>{switch(v){case"error":return`${E} tw_alert-error dark:tw_alert-error_dark`;case"info":return`${E} tw_alert-info dark:tw_alert-info_dark`;case"success":return`${E} tw_alert-success dark:tw_alert-success_dark`;case"warning":return`${E} tw_alert-warning dark:tw_alert-warning_dark`;default:return E}},"")}an(()=>(G(a()),_(r)),()=>{a()&&_(r)&&_(r).focus()}),un();var o={get id(){return t()},set id(w){t(w),L()},get needsFocus(){return a()},set needsFocus(w){a(w),L()},get type(){return s()},set type(w){s(w),L()},$set:it,$on:(w,E)=>rt(e,w,E)},l=D_(),u=_e(l),c=_e(u);{var d=w=>{Qf(w,{})},f=w=>{th(w,{})},h=w=>{eh(w,{})};ht(c,w=>{s()==="error"?w(d):s()==="warning"?w(f,1):w(h,-1)})}var p=ke(c,2),m=_e(p);return cn(m,e,"default",{},null),pe(p),pe(u),pe(l),Hn(l,w=>ee(r,w),()=>_(r)),Je(w=>{Qt(l,1,w),Fe(l,"id",t()),Fe(l,"role",s()==="error"?"alert":"")},[()=>(G(s()),Q(()=>`${i(s())} tw_alert dark:tw_alert_dark tw_input-spacing tw_outline-none`))]),oe(n,l),tt(o)}var N_=ze('<div role="status"><span class="tw_sr-only"><!></span></div> <!>',1);function xr(n,e){if(new.target)return nt({component:xr,...n});et(e,!1);let t=R(e,"colorClass",12),a=R(e,"layoutClasses",12);var s={get colorClass(){return t()},set colorClass(c){t(c),L()},get layoutClasses(){return a()},set layoutClasses(c){a(c),L()},$set:it,$on:(c,d)=>rt(e,c,d)},r=N_(),i=lt(r),o=_e(i),l=_e(o);Lt(l,{key:"loading"}),pe(o),pe(i);var u=ke(i,2);return cn(u,e,"default",{},null),Je(()=>Qt(i,1,`tw_spinner tw_animate-spin tw_border-4 tw_inline-block tw_rounded-full ${t()} ${a()}`)),oe(n,r),tt(s)}var U_=ze("<button><!> <!></button>");function nr(n,e){if(new.target)return nt({component:nr,...n});et(e,!1);let t=R(e,"busy",12,!1),a=R(e,"classes",12,""),s=R(e,"onClick",12,()=>{}),r=R(e,"style",12,"outline"),i=R(e,"type",12,null),o=R(e,"width",12,"auto");function l(...p){return p.reduce((m,w)=>{switch(w){case"primary":return`${m} tw_button-primary dark:tw_button-primary_dark`;case"secondary":return`${m} tw_button-secondary dark:tw_button-secondary_dark`;case"outline":return`${m} tw_button-outline dark:tw_button-outline_dark`;case"auto":return`${m} tw_w-auto`;case"full":return`${m} tw_w-full`;default:return m}},"")}var u={get busy(){return t()},set busy(p){t(p),L()},get classes(){return a()},set classes(p){a(p),L()},get onClick(){return s()},set onClick(p){s(p),L()},get style(){return r()},set style(p){r(p),L()},get type(){return i()},set type(p){i(p),L()},get width(){return o()},set width(p){o(p),L()},$set:it,$on:(p,m)=>rt(e,p,m)},c=U_(),d=_e(c);{var f=p=>{xr(p,{colorClass:"white",layoutClasses:"tw_h-4 tw_w-4 tw_mr-2"})};ht(d,p=>{t()&&p(f)})}var h=ke(d,2);return cn(h,e,"default",{},p=>{var m=Cn("Submit");oe(p,m)}),pe(c),Je(p=>{Qt(c,1,p),Fe(c,"type",i())},[()=>(G(r()),G(o()),G(a()),Q(()=>`${l(r(),o())} tw_button-base tw_focusable-element dark:tw_focusable-element_dark width-${o()} ${a()}`))]),Vn("click",c,function(...p){var m;(m=s())==null||m.apply(this,p)}),oe(n,c),tt(u)}var F_=ze('<form novalidate="" tabindex="-1"><!></form>');function Fi(n,e){if(new.target)return nt({component:Fi,...n});et(e,!1);let t=R(e,"ariaDescribedBy",12),a=R(e,"formEl",12,null),s=R(e,"id",12,"formId"),r=R(e,"needsFocus",12,!1),i=R(e,"onSubmitWhenValid",12,void 0),o=ue(!1);function l(f){const h=f.target;let p=null;ee(o,!1),Array.from(h.children).forEach((m,w)=>{const E=m.querySelectorAll("input, select, textarea");E!=null&&E.length&&Array.from(E).forEach(v=>{const y=v.checkValidity()&&v.dataset.forceValidityFailure!=="true",b=v.getAttribute("aria-describedby")||"",S=document.getElementById(b),I=S==null?void 0:S.querySelector(".__input-message");y?(v.setAttribute("aria-invalid","false"),I==null||I.classList.remove("tw_isInvalid"),I==null||I.classList.add("tw_hidden")):(v.setAttribute("aria-invalid","true"),b&&(I==null||I.classList.add("tw_isInvalid"),I==null||I.classList.remove("tw_hidden")),p===null&&(v.focus(),p=w))})}),p===null&&(ee(o,!0),i()&&i()(f,_(o)))}an(()=>(G(r()),G(a())),()=>{r()&&a()&&a().focus()}),un();var u={get ariaDescribedBy(){return t()},set ariaDescribedBy(f){t(f),L()},get formEl(){return a()},set formEl(f){a(f),L()},get id(){return s()},set id(f){s(f),L()},get needsFocus(){return r()},set needsFocus(f){r(f),L()},get onSubmitWhenValid(){return i()},set onSubmitWhenValid(f){i(f),L()},$set:it,$on:(f,h)=>rt(e,f,h)};xt();var c=F_(),d=_e(c);return cn(d,e,"default",{},null),pe(c),Hn(c,f=>a(f),()=>a()),Je(()=>{Fe(c,"aria-describedby",t()),Fe(c,"id",s()),Qt(c,1,`tw_form-base ${_(o)?"tw_form-valid":"tw_form-invalid"} tw_outline-none`)}),Vn("submit",c,zo(l)),oe(n,c),tt(u)}function vl(n,e){if(new.target)return nt({component:vl,...n});et(e,!1);let t=R(e,"html",12,!1),a=R(e,"string",12),s=ue();an(()=>G(a()),()=>{ee(s,Va(a()))}),un();var r={get html(){return t()},set html(c){t(c),L()},get string(){return a()},set string(c){a(c),L()},$set:it,$on:(c,d)=>rt(e,c,d)};xt();var i=Wt(),o=lt(i);{var l=c=>{var d=Wt(),f=lt(d);cn(f,e,"default",{},h=>{var p=Wt(),m=lt(p);Yo(m,()=>_(s)),oe(h,p)}),oe(c,d)},u=c=>{var d=Wt(),f=lt(d);cn(f,e,"default",{},h=>{var p=Cn();Je(()=>$t(p,_(s))),oe(h,p)}),oe(c,d)};ht(o,c=>{t()?c(l):c(u,-1)})}return oe(n,i),tt(r)}var B_=Kn('<svg viewBox="-2 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8 0c-.69 0-1.843.265-2.928.56-1.11.3-2.229.655-2.887.87a1.54 1.54 0 0 0-1.044 1.262c-.596 4.477.787 7.795 2.465 9.99a11.777 11.777 0 0 0 2.517 2.453c.386.273.744.482 1.048.625.28.132.581.24.829.24s.548-.108.829-.24a7.159 7.159 0 0 0 1.048-.625 11.775 11.775 0 0 0 2.517-2.453c1.678-2.195 3.061-5.513 2.465-9.99a1.541 1.541 0 0 0-1.044-1.263 62.467 62.467 0 0 0-2.887-.87C9.843.266 8.69 0 8 0zm0 5a1.5 1.5 0 0 1 .5 2.915l.385 1.99a.5.5 0 0 1-.491.595h-.788a.5.5 0 0 1-.49-.595l.384-1.99A1.5 1.5 0 0 1 8 5z"></path><title><!></title></svg>');function nh(n,e){if(new.target)return nt({component:nh,...n});et(e,!1);let t=R(e,"classes",12,""),a=R(e,"size",12,"24px");var s={get classes(){return t()},set classes(l){t(l),L()},get size(){return a()},set size(l){a(l),L()},$set:it,$on:(l,u)=>rt(e,l,u)},r=B_(),i=ke(_e(r)),o=_e(i);return cn(o,e,"default",{},null),pe(i),pe(r),Je(()=>{Qt(r,0,Yn(t())),Fe(r,"height",a()),Fe(r,"width",a())}),oe(n,r),tt(s)}var V_=ze('<p class=" tw_my-4 tw_text-base tw_text-center tw_text-link-dark dark:tw_text-link-light"><button> </button></p>');function Ku(n,e){if(new.target)return nt({component:Ku,...n});et(e,!1);const t=()=>Ar(go,"$configuredJourneysStore",s),a=()=>Ar(o,"$stack",s),[s,r]=Wr();let i=R(e,"journey",12),o=i().stack,l=ue("");function u(){const m=t().find(v=>{var y;return v.journey===((y=a()[a().length-2])==null?void 0:y.tree)}),w=m==null?void 0:m.key;return`backTo${(typeof w=="string"?w.replace(/([a-z])/,(v,y)=>`${y.toUpperCase()}`):w)||"Default"}`}an(()=>{},()=>{ee(l,u())}),un();var c={get journey(){return i()},set journey(m){i(m),L()},$set:it,$on:(m,w)=>rt(e,m,w)};xt();var d=Wt(),f=lt(d);{var h=m=>{var w=V_(),E=_e(w),v=_e(E,!0);pe(E),pe(w),Je(y=>$t(v,y),[()=>(G(Ge),_(l),Q(()=>Ge(_(l))))]),Vn("click",E,zo(()=>{var y;(y=i())==null||y.pop()})),oe(m,w)};ht(f,m=>{a(),Q(()=>a().length>1)&&m(h)})}oe(n,d);var p=tt(c);return r(),p}function yl(n,e){const t=ds(go),a=ds(e.stack);n.addEventListener("click",s=>{const r=s.target,i=r.hasAttribute("href")&&r.getAttribute("href"),{action:o,journey:l}=H_(i,t,a);o&&(s.preventDefault(),o==="push"?e.push({tree:l}):o==="pop"&&e.pop())})}function H_(n,e,t){if(n){const a=e.find(s=>s.match.find(r=>n===r));if(a){const s=t[t.length-2];return!s||s.tree!==a.journey?{action:"push",journey:a.journey}:{action:"pop"}}else return{action:null}}else return{action:null}}function j_(n){const e=n==null?void 0:n.value;if(typeof e!="object")return"text";const t=e==null?void 0:e.policyRequirements;return Array.isArray(t)?t.includes("VALID_EMAIL_ADDRESS_FORMAT")?"email":(t.includes("VALID_USERNAME"),"text"):"text"}function z_(n){if((n==null?void 0:n.policyRequirement)==="DICTIONARY"){const e=n.params,t=(e==null?void 0:e["min-substring-length"])||0,a=[];return e!=null&&e["check-substrings"]&&(e!=null&&e["test-reversed-password"])?a.push({length:t,message:Ge("passwordCannotContainCommonPasswordsOrBeReversibleStringsLessThan",{min:String(t)}),rule:"reversibleSubstrings"}):e!=null&&e["test-reversed-password"]?a.push({length:null,message:Ge("passwordCannotContainCommonPasswordsOrBeReversible"),rule:"reversibleSubstrings"}):a.push({length:null,message:Ge("passwordCannotContainCommonPasswords"),rule:"reversibleSubstrings"}),a}else if((n==null?void 0:n.policyRequirement)==="CHARACTER_SET"){const e=n.params;return e==null?void 0:e["character-sets"].map(W_)}else if((n==null?void 0:n.policyRequirement)==="LENGTH_BASED"){const e=n.params,t=(e==null?void 0:e["min-password-length"])||0,a=(e==null?void 0:e["max-password-length"])||null,s=[];return a&&s.push({length:a,message:Ge("exceedsMaximumCharacterLength",{max:String(a)}),rule:"maximumLength"}),t&&s.push({length:t,message:Ge("doesNotMeetMinimumCharacterLength",{min:String(t)}),rule:"minimumLength"}),s}else if((n==null?void 0:n.policyRequirement)==="REPEATED_CHARACTERS"){const e=n.params,t=e["max-consecutive-length"]||0,a=[];return e["case-sensitive-validation"]?a.push({length:t,message:Ge("charactersCannotRepeatMoreThan",{max:String(t)}),rule:"repeatedCharacters"}):a.push({length:t,message:Ge("charactersCannotRepeatMoreThanCaseInsensitive",{max:String(t)}),rule:"repeatedCharactersCaseInsensitive"}),a}else return(n==null?void 0:n.policyRequirement)==="VALID_USERNAME"?[{length:null,message:Ge("chooseDifferentUsername"),rule:"validUsername"}]:(n==null?void 0:n.policyRequirement)==="VALID_EMAIL_ADDRESS_FORMAT"?[{length:null,message:Ge("invalidEmailAddress"),rule:"validEmailAddress"}]:[{length:null,message:Ge("pleaseCheckValue"),rule:"unknown"}]}function G_(n){var e;switch(n==null?void 0:n.policyId){case"at-least-X-capitals":{const t=n==null?void 0:n.params,a=t==null?void 0:t.numCaps;return Ge("minimumNumberOfUppercase",{num:String(a)})}case"at-least-X-numbers":{const t=n==null?void 0:n.params,a=t==null?void 0:t.numNums;return Ge("minimumNumberOfNumbers",{num:String(a)})}case"cannot-contain-characters":{const t=n==null?void 0:n.params;let a="";return typeof t!="object"?"":(Array.isArray(t.forbiddenChars)?a=t.forbiddenChars.reduce((s,r)=>(s=`${s?`${s}, `:`${s}`} ${r}`,s),""):typeof t.forbiddenChars=="string"&&(a=t.forbiddenChars),Ge("fieldCanNotContainFollowingCharacters",{chars:a}))}case"cannot-contain-others":{const t=n==null?void 0:n.params;let a="";return typeof t!="object"?"":(Array.isArray(t.disallowedFields)?a=(e=t.disallowedFields)==null?void 0:e.reduce((s,r)=>(s=`${s?`${s}, `:`${s}`} ${Ge(r)}`,s),""):typeof t.disallowedFields=="string"&&(a=t.disallowedFields),Ge("fieldCanNotContainFollowingValues",{fields:a}))}case"maximum-length":{const t=n==null?void 0:n.params,a=t==null?void 0:t.maxLength;return a>100?"":Ge("notToExceedMaximumCharacterLength",{max:String(a)})}case"minimum-length":{const t=n==null?void 0:n.params,a=t==null?void 0:t.minLength;return a===1?"":Ge("noLessThanMinimumCharacterLength",{min:String(a)})}case"not-empty":return"";case"required":return"";case"valid-username":return"";case"valid-email-address-format":return"";case"valid-type":return"";default:return""}}function ca(n,e){const t=n.getFailedPolicies&&n.getFailedPolicies();return q_(t,e).map(s=>({params:s==null?void 0:s.params,policyRequirement:(s==null?void 0:s.policyRequirement)||"",restructured:z_(s)}))}function Yu(n){if(typeof n!="object"&&!n)return[];const e=n==null?void 0:n.policies;return Array.isArray(e)?e.map(t=>({message:G_(t),...(t==null?void 0:t.params)&&{params:t==null?void 0:t.params},...(t==null?void 0:t.policyId)&&{policyId:t==null?void 0:t.policyId}})).filter(t=>!!t.message):[]}function Zu(n){const e=n.getPolicies&&n.getPolicies();let t=!1;return e!=null&&e.policyRequirements?t=e.policyRequirements.includes("REQUIRED"):n.isRequired&&(t=n.isRequired()),t}function W_(n){const e=n.split(":"),t=e[0],a=e[1];return a==="0123456789"?t==="0"?{length:null,message:Ge("shouldContainANumber"),rule:"numbers"}:{length:Number(t),message:Ge("minimumNumberOfNumbers",{num:String(t)}),rule:"numbers"}:a==="ABCDEFGHIJKLMNOPQRSTUVWXYZ"?t==="0"?{length:null,message:Ge("shouldContainAnUppercase"),rule:"uppercase"}:{length:Number(t),message:Ge("minimumNumberOfUppercase",{num:String(t)}),rule:"uppercase"}:a==="abcdefghijklmnopqrstuvwxyz"?t==="0"?{length:null,message:Ge("shouldContainALowercase"),rule:"lowercase"}:{length:Number(t),message:Ge("minimumNumberOfLowercase",{num:String(t)}),rule:"lowercase"}:a.includes("@")||a.includes("!")||a.includes("*")||a.includes("#")?t==="0"?{length:null,message:Ge("shouldContainASymbol"),rule:"symbols"}:{length:Number(t),message:Ge("minimumNumberOfSymbols",{num:String(t)}),rule:"symbols"}:{length:null,message:Ge("pleaseCheckValue"),rule:"unknown"}}function q_(n,e){return n.map(t=>{if(typeof t=="string")try{return JSON.parse(t)}catch{console.error(`Parsing failure for ${e}`)}else return t})}function rh(n){return(n.getFailedPolicies&&n.getFailedPolicies()).reduce((t,a)=>{switch(a.policyRequirement){default:t=`${t}${Ge("pleaseCheckValue")}`}return t},"")}var K_=ze("<p><!></p>");function Bi(n,e){if(new.target)return nt({component:Bi,...n});et(e,!1);let t=R(e,"classes",12,""),a=R(e,"dirtyMessage",12),s=R(e,"key",12,void 0),r=R(e,"showMessage",12,!0),i=R(e,"type",12,"info"),o=ue(Va(a()));function l(...h){return h.reduce((p,m)=>{switch(m){case"error":return`${p} tw_input-error-message dark:tw_input-error-message_dark`;default:return`${p} tw_input-info-message dark:tw_input-info-message_dark`}},"")}an(()=>G(a()),()=>{ee(o,Va(a()))}),un();var u={get classes(){return t()},set classes(h){t(h),L()},get dirtyMessage(){return a()},set dirtyMessage(h){a(h),L()},get key(){return s()},set key(h){s(h),L()},get showMessage(){return r()},set showMessage(h){r(h),L()},get type(){return i()},set type(h){i(h),L()},$set:it,$on:(h,p)=>rt(e,h,p)};xt();var c=Wt(),d=lt(c);{var f=h=>{var p=K_(),m=_e(p);Yo(m,()=>_(o)),pe(p),Je(w=>{Qt(p,1,w),Fe(p,"id",`${s()?`${s()}-message`:""}`)},[()=>(G(t()),G(r()),G(i()),Q(()=>`${t()} __input-message ${r()?"":"tw_hidden"} ${l(i())}`))]),oe(h,p)};ht(d,h=>{a()&&h(f)})}return oe(n,c),tt(u)}var Y_=ze("<label><!></label>");function Vi(n,e){if(new.target)return nt({component:Vi,...n});et(e,!1);let t=R(e,"key",12),a=R(e,"classes",12,"");var s={get key(){return t()},set key(o){t(o),L()},get classes(){return a()},set classes(o){a(o),L()},$set:it,$on:(o,l)=>rt(e,o,l)},r=Y_(),i=_e(r);return cn(i,e,"default",{},null),pe(r),Je(()=>{Fe(r,"for",t()),Qt(r,1,`${a()} tw_input-label dark:tw_input-label_dark`)}),oe(n,r),tt(s)}var Z_=ze('<span class="tw_animated-check dark:tw_animated-check_dark"></span> <!>',1),J_=ze('<div class="tw_input-spacing"><input class="tw_checkbox-input_animated dark:tw_checkbox-input_animated_dark tw_sr-only" type="checkbox"/> <!> <div class="tw_ml-10"><!></div></div>');function _l(n,e){if(new.target)return nt({component:_l,...n});et(e,!1);let t=R(e,"checkValidity",12,null),a=R(e,"message",12,""),s=R(e,"isFirstInvalidInput",12),r=R(e,"isRequired",12,!1),i=R(e,"isInvalid",12,!1),o=R(e,"key",12),l=R(e,"onChange",12),u=R(e,"showMessage",12,void 0),c=R(e,"value",12),d=ue();function f(y){t()&&i(!t()(y)),l()(y)}ar(()=>{s()&&_(d).focus()});var h={get checkValidity(){return t()},set checkValidity(y){t(y),L()},get message(){return a()},set message(y){a(y),L()},get isFirstInvalidInput(){return s()},set isFirstInvalidInput(y){s(y),L()},get isRequired(){return r()},set isRequired(y){r(y),L()},get isInvalid(){return i()},set isInvalid(y){i(y),L()},get key(){return o()},set key(y){o(y),L()},get onChange(){return l()},set onChange(y){l(y),L()},get showMessage(){return u()},set showMessage(y){u(y),L()},get value(){return c()},set value(y){c(y),L()},$set:it,$on:(y,b)=>rt(e,y,b)};xt();var p=J_(),m=_e(p);ei(m),Hn(m,y=>ee(d,y),()=>_(d));var w=ke(m,2);Vi(w,{get key(){return o()},classes:"tw_grid tw_grid-cols-[2.5em_1fr] tw_relative",children:(y,b)=>{var S=Z_(),I=ke(lt(S),2);cn(I,e,"default",{},null),oe(y,S)},$$slots:{default:!0}});var E=ke(w,2),v=_e(E);{let y=Te(()=>i()?"error":"info");Bi(v,{get dirtyMessage(){return a()},get showMessage(){return u()},get type(){return _(y)}})}return pe(E),pe(p),Je(()=>{Fe(m,"aria-describedby",`${o()}-message`),Fe(m,"aria-invalid",i()),Zo(m,c()),Fe(m,"id",o()),m.required=r(),Fe(E,"id",`${o()}-message`)}),Vn("change",m,f),oe(n,p),tt(h)}var X_=ze('<input class="tw_checkbox-input dark:tw_checkbox-input_dark tw_focusable-element dark:tw_focusable-element_dark" type="checkbox"/> <!>',1);function bl(n,e){if(new.target)return nt({component:bl,...n});et(e,!1);let t=R(e,"isFirstInvalidInput",12),a=R(e,"isRequired",12,!1),s=R(e,"isInvalid",12,!1),r=R(e,"key",12),i=R(e,"onChange",12),o=R(e,"value",12),l=ue();ar(()=>{t()&&_(l).focus()});var u={get isFirstInvalidInput(){return t()},set isFirstInvalidInput(h){t(h),L()},get isRequired(){return a()},set isRequired(h){a(h),L()},get isInvalid(){return s()},set isInvalid(h){s(h),L()},get key(){return r()},set key(h){r(h),L()},get onChange(){return i()},set onChange(h){i(h),L()},get value(){return o()},set value(h){o(h),L()},$set:it,$on:(h,p)=>rt(e,h,p)};xt();var c=X_(),d=lt(c);ei(d),Hn(d,h=>ee(l,h),()=>_(l));var f=ke(d,2);return Vi(f,{get key(){return r()},children:(h,p)=>{var m=Wt(),w=lt(m);cn(w,e,"default",{},null),oe(h,m)},$$slots:{default:!0}}),Je(()=>{Fe(d,"aria-describedby",`${r()}-message`),Fe(d,"aria-invalid",s()),Zo(d,o()),Fe(d,"id",r()),d.required=a()}),Vn("change",d,function(...h){var p;(p=i())==null||p.apply(this,h)}),oe(n,c),tt(u)}var $_=ze('<div class="tw_input-spacing tw_grid tw_grid-cols-[1.5em_1fr]"><!> <span class="tw_col-start-2 tw_row-start-2"><!></span></div>');function wl(n,e){if(new.target)return nt({component:wl,...n});et(e,!1);let t=R(e,"checkValidity",12,null),a=R(e,"message",12,""),s=R(e,"isFirstInvalidInput",12),r=R(e,"isRequired",12,!1),i=R(e,"isInvalid",12,!1),o=R(e,"key",12),l=R(e,"onChange",12),u=R(e,"showMessage",12,void 0),c=R(e,"value",12);function d(E){t()&&i(!t()(E)),l()(E)}var f={get checkValidity(){return t()},set checkValidity(E){t(E),L()},get message(){return a()},set message(E){a(E),L()},get isFirstInvalidInput(){return s()},set isFirstInvalidInput(E){s(E),L()},get isRequired(){return r()},set isRequired(E){r(E),L()},get isInvalid(){return i()},set isInvalid(E){i(E),L()},get key(){return o()},set key(E){o(E),L()},get onChange(){return l()},set onChange(E){l(E),L()},get showMessage(){return u()},set showMessage(E){u(E),L()},get value(){return c()},set value(E){c(E),L()},$set:it,$on:(E,v)=>rt(e,E,v)};xt();var h=$_(),p=_e(h);bl(p,{get isFirstInvalidInput(){return s()},get isRequired(){return r()},get isInvalid(){return i()},get key(){return o()},onChange:d,get value(){return c()},children:(E,v)=>{var y=Wt(),b=lt(y);cn(b,e,"default",{},null),oe(E,y)},$$slots:{default:!0}});var m=ke(p,2),w=_e(m);{let E=Te(()=>i()?"error":"info");Bi(w,{get dirtyMessage(){return a()},get showMessage(){return u()},get type(){return _(E)}})}return pe(m),pe(h),Je(()=>Fe(m,"id",`${o()}-message`)),oe(n,h),tt(f)}function ih(n,e){if(new.target)return nt({component:ih,...n});et(e,!1);const t=null,a=null;let s=R(e,"callback",12),r=R(e,"callbackMetadata",12),i=R(e,"style",28,()=>({}));const o=i().checksAndRadios==="standard"?wl:_l;let l=ue(),u=ue(),c=ue(),d=ue(),f=ue();function h(E){s().setInputValue(E.target.checked)}an(()=>(G(s()),G(r()),rh),()=>{var E,v,y,b;ee(l,((y=(v=(E=s())==null?void 0:E.payload)==null?void 0:v.input)==null?void 0:y[0].name)||`boolean-attr-${(b=r())==null?void 0:b.idx}`),ee(u,s().getOutputByName("name","")),ee(c,s().getInputValue()),ee(d,s().getPrompt()),ee(f,rh(s()))}),un();var p={stepMetadata:t,selfSubmitFunction:a,get callback(){return s()},set callback(E){s(E),L()},get callbackMetadata(){return r()},set callbackMetadata(E){r(E),L()},get style(){return i()},set style(E){i(E),L()},$set:it,$on:(E,v)=>rt(e,E,v)};xt();var m=Wt(),w=lt(m);return Ra(w,s,E=>{{let v=Te(()=>(G(r()),Q(()=>{var b;return((b=r())==null?void 0:b.derived.isFirstInvalidInput)||!1}))),y=Te(()=>!!_(f));o(E,{get isFirstInvalidInput(){return _(v)},get isInvalid(){return _(y)},get key(){return _(l)},get message(){return _(f)},onChange:h,get value(){return _(c)},children:(b,S)=>{An();var I=Cn();Je(C=>$t(I,C),[()=>(G(Ge),G(Pr),_(u),_(d),Q(()=>Ge(Pr(_(u)),null,_(d))))]),oe(b,I)},$$slots:{default:!0}})}}),oe(n,m),Ot(e,"stepMetadata",t),Ot(e,"selfSubmitFunction",a),tt(p)}var Q_=ze('<span class="tw_animated-radio dark:tw_animated-radio_dark"></span> ',1),e1=ze('<div class="tw_input-spacing"><input class="tw_radio-input_animated dark:tw_radio-input_animated_dark tw_sr-only" type="radio"/> <!></div>'),t1=ze('<fieldset><legend class="tw_input-label dark:tw_input-label_dark tw_font-bold tw_mb-4"> </legend> <div><!> <span class="tw_col-start-2 tw_row-start-2"><!></span></div></fieldset>');function ah(n,e){if(new.target)return nt({component:ah,...n});et(e,!1);let t=R(e,"defaultOption",12,null),a=R(e,"message",12,""),s=R(e,"groupLabel",12,""),r=R(e,"isFirstInvalidInput",12),i=R(e,"isRequired",12,!1),o=R(e,"isInvalid",12,!1),l=R(e,"key",12),u=R(e,"name",12),c=R(e,"onChange",12),d=R(e,"options",12),f=R(e,"showMessage",12,void 0),h=ue();ar(()=>{r()&&_(h).focus()});var p={get defaultOption(){return t()},set defaultOption(I){t(I),L()},get message(){return a()},set message(I){a(I),L()},get groupLabel(){return s()},set groupLabel(I){s(I),L()},get isFirstInvalidInput(){return r()},set isFirstInvalidInput(I){r(I),L()},get isRequired(){return i()},set isRequired(I){i(I),L()},get isInvalid(){return o()},set isInvalid(I){o(I),L()},get key(){return l()},set key(I){l(I),L()},get name(){return u()},set name(I){u(I),L()},get onChange(){return c()},set onChange(I){c(I),L()},get options(){return d()},set options(I){d(I),L()},get showMessage(){return f()},set showMessage(I){f(I),L()},$set:it,$on:(I,C)=>rt(e,I,C)};xt();var m=t1(),w=_e(m),E=_e(w,!0);pe(w);var v=ke(w,2),y=_e(v);mr(y,1,d,pr,(I,C)=>{var k=e1(),M=_e(k);ei(M),Hn(M,D=>ee(h,D),()=>_(h));var P=ke(M,2);{let D=Te(()=>(G(l()),_(C),Q(()=>`${l()}-${_(C).value}`)));Vi(P,{get key(){return _(D)},classes:"tw_input-spacing tw_grid tw_grid-cols-[2.5em_1fr] tw_relative",children:(V,B)=>{var Y=Q_(),Z=ke(lt(Y));Je(()=>$t(Z,` ${_(C),Q(()=>_(C).text)??""}`)),oe(V,Y)},$$slots:{default:!0}})}pe(k),Je(()=>{Zo(M,(G(t()),_(C),Q(()=>t()===_(C).value))),Fe(M,"id",(G(l()),_(C),Q(()=>`${l()}-${_(C).value}`))),Fe(M,"name",u()),M.required=i(),Tu(M,(_(C),Q(()=>_(C).value)))}),Vn("change",M,function(...D){var V;(V=c())==null||V.apply(this,D)}),oe(I,k)});var b=ke(y,2),S=_e(b);{let I=Te(()=>o()?"error":"info");Bi(S,{get dirtyMessage(){return a()},get key(){return l()},get showMessage(){return f()},get type(){return _(I)}})}return pe(b),pe(v),pe(m),Je(()=>$t(E,s())),oe(n,m),tt(p)}var n1=ze('<input class="tw_checkbox-input dark:tw_checkbox-input_dark tw_focusable-element dark:tw_focusable-element_dark" type="radio"/> <!>',1);function sh(n,e){if(new.target)return nt({component:sh,...n});et(e,!1);let t=R(e,"checked",12,!1),a=R(e,"isFirstInvalidInput",12),s=R(e,"isRequired",12,!1),r=R(e,"key",12),i=R(e,"name",12),o=R(e,"onChange",12),l=R(e,"value",12),u=ue();ar(()=>{a()&&_(u).focus()});var c={get checked(){return t()},set checked(p){t(p),L()},get isFirstInvalidInput(){return a()},set isFirstInvalidInput(p){a(p),L()},get isRequired(){return s()},set isRequired(p){s(p),L()},get key(){return r()},set key(p){r(p),L()},get name(){return i()},set name(p){i(p),L()},get onChange(){return o()},set onChange(p){o(p),L()},get value(){return l()},set value(p){l(p),L()},$set:it,$on:(p,m)=>rt(e,p,m)};xt();var d=n1(),f=lt(d);ei(f),Hn(f,p=>ee(u,p),()=>_(u));var h=ke(f,2);return Vi(h,{get key(){return r()},children:(p,m)=>{var w=Wt(),E=lt(w);cn(E,e,"default",{},null),oe(p,w)},$$slots:{default:!0}}),Je(()=>{Fe(f,"aria-describedby",`${r()}-message`),Zo(f,t()),Fe(f,"id",r()),Fe(f,"name",i()),f.required=s(),Tu(f,l())}),Vn("change",f,function(...p){var m;(m=o())==null||m.apply(this,p)}),oe(n,d),tt(c)}var r1=ze('<div class="tw_input-spacing tw_grid tw_grid-cols-[1.5em_1fr]"><!></div>'),i1=ze('<fieldset><legend class="tw_input-label dark:tw_input-label_dark tw_font-bold tw_mb-4"> </legend> <!> <span class="tw_col-start-2 tw_row-start-2"><!></span></fieldset>');function oh(n,e){if(new.target)return nt({component:oh,...n});et(e,!1);let t=R(e,"defaultOption",12,null),a=R(e,"message",12,""),s=R(e,"groupLabel",12,""),r=R(e,"isFirstInvalidInput",12),i=R(e,"isRequired",12,!1),o=R(e,"isInvalid",12,!1),l=R(e,"key",12),u=R(e,"name",12),c=R(e,"onChange",12),d=R(e,"options",12),f=R(e,"showMessage",12,void 0);var h={get defaultOption(){return t()},set defaultOption(b){t(b),L()},get message(){return a()},set message(b){a(b),L()},get groupLabel(){return s()},set groupLabel(b){s(b),L()},get isFirstInvalidInput(){return r()},set isFirstInvalidInput(b){r(b),L()},get isRequired(){return i()},set isRequired(b){i(b),L()},get isInvalid(){return o()},set isInvalid(b){o(b),L()},get key(){return l()},set key(b){l(b),L()},get name(){return u()},set name(b){u(b),L()},get onChange(){return c()},set onChange(b){c(b),L()},get options(){return d()},set options(b){d(b),L()},get showMessage(){return f()},set showMessage(b){f(b),L()},$set:it,$on:(b,S)=>rt(e,b,S)},p=i1(),m=_e(p),w=_e(m,!0);pe(m);var E=ke(m,2);mr(E,1,d,pr,(b,S)=>{var I=r1(),C=_e(I);{let k=Te(()=>(G(t()),_(S),Q(()=>t()===_(S).value))),M=Te(()=>(G(l()),_(S),Q(()=>`${l()}-${_(S).value}`)));sh(C,{get checked(){return _(k)},get isFirstInvalidInput(){return r()},get isRequired(){return i()},get key(){return _(M)},get name(){return u()},get onChange(){return c()},get value(){return _(S),Q(()=>_(S).value)},children:(P,D)=>{An();var V=Cn();Je(()=>$t(V,(_(S),Q(()=>_(S).text)))),oe(P,V)},$$slots:{default:!0}})}pe(I),oe(b,I)});var v=ke(E,2),y=_e(v);{let b=Te(()=>o()?"error":"info");Bi(y,{get dirtyMessage(){return a()},get key(){return l()},get showMessage(){return f()},get type(){return _(b)}})}return pe(v),pe(p),Je(()=>$t(w,s())),oe(n,p),tt(h)}var a1=ze("<option> </option>"),s1=ze("<!> <select></select> <!>",1);function Ju(n,e){if(new.target)return nt({component:Ju,...n});et(e,!1);let t=R(e,"selectClasses",12,""),a=R(e,"defaultOption",12,null),s=R(e,"isFirstInvalidInput",12),r=R(e,"isRequired",12,!1),i=R(e,"isInvalid",12,!1),o=R(e,"key",12),l=R(e,"label",12),u=R(e,"labelClasses",12,""),c=R(e,"labelOrder",12,"first"),d=R(e,"onChange",12),f=R(e,"options",12),h=ue(),p=ue(!0);a()===null&&f()[0].text===l()&&ee(p,!1),ar(()=>{s()&&_(h).focus()});function m(C){const k=C.target.value,M=f().find(P=>String(P.value)===k);ee(p,l()!==(M==null?void 0:M.text)),d()(C)}var w={get selectClasses(){return t()},set selectClasses(C){t(C),L()},get defaultOption(){return a()},set defaultOption(C){a(C),L()},get isFirstInvalidInput(){return s()},set isFirstInvalidInput(C){s(C),L()},get isRequired(){return r()},set isRequired(C){r(C),L()},get isInvalid(){return i()},set isInvalid(C){i(C),L()},get key(){return o()},set key(C){o(C),L()},get label(){return l()},set label(C){l(C),L()},get labelClasses(){return u()},set labelClasses(C){u(C),L()},get labelOrder(){return c()},set labelOrder(C){c(C),L()},get onChange(){return d()},set onChange(C){d(C),L()},get options(){return f()},set options(C){f(C),L()},$set:it,$on:(C,k)=>rt(e,C,k)};xt();var E=s1(),v=lt(E);{var y=C=>{{let k=Te(()=>`${u()}`);Vi(C,{get key(){return o()},get classes(){return _(k)},children:(M,P)=>{An();var D=Cn();Je(()=>$t(D,l())),oe(M,D)},$$slots:{default:!0}})}};ht(v,C=>{c()==="first"&&C(y)})}var b=ke(v,2);mr(b,5,f,pr,(C,k)=>{var M=a1(),P=_e(M,!0);pe(M);var D={};Je(()=>{hv(M,(_(k),G(a()),Q(()=>_(k).value===a()))),$t(P,(_(k),Q(()=>_(k).text))),D!==(D=(_(k),Q(()=>_(k).value)))&&(M.value=(M.__value=(_(k),Q(()=>_(k).value)))??"")}),oe(C,M)}),pe(b),Hn(b,C=>ee(h,C),()=>_(h));var S=ke(b,2);{var I=C=>{{let k=Te(()=>`${_(p)?u():"tw_sr-only"}`);Vi(C,{get key(){return o()},get classes(){return _(k)},children:(M,P)=>{An();var D=Cn();Je(()=>$t(D,l())),oe(M,D)},$$slots:{default:!0}})}};ht(S,C=>{c()==="last"&&C(I)})}return Je(()=>{Fe(b,"aria-describedby",`${o()}-message`),Fe(b,"aria-invalid",i()),Qt(b,1,`${_(p)?t():""} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_select-base dark:tw_select-base_dark tw_w-full`),Fe(b,"id",o()),b.required=r()}),Vn("change",b,m),oe(n,E),tt(w)}var o1=ze('<div class="tw_input-spacing tw_relative"><!> <!></div>');function El(n,e){if(new.target)return nt({component:El,...n});et(e,!1);let t=R(e,"checkValidity",12,null),a=R(e,"defaultOption",12,null),s=R(e,"message",12,""),r=R(e,"isFirstInvalidInput",12),i=R(e,"isRequired",12,!1),o=R(e,"isInvalid",12,!1),l=R(e,"key",12),u=R(e,"label",12),c=R(e,"onChange",12),d=R(e,"options",12),f=R(e,"showMessage",12,void 0);function h(v){t()&&o(!t()(v)),c()(v)}var p={get checkValidity(){return t()},set checkValidity(v){t(v),L()},get defaultOption(){return a()},set defaultOption(v){a(v),L()},get message(){return s()},set message(v){s(v),L()},get isFirstInvalidInput(){return r()},set isFirstInvalidInput(v){r(v),L()},get isRequired(){return i()},set isRequired(v){i(v),L()},get isInvalid(){return o()},set isInvalid(v){o(v),L()},get key(){return l()},set key(v){l(v),L()},get label(){return u()},set label(v){u(v),L()},get onChange(){return c()},set onChange(v){c(v),L()},get options(){return d()},set options(v){d(v),L()},get showMessage(){return f()},set showMessage(v){f(v),L()},$set:it,$on:(v,y)=>rt(e,v,y)};xt();var m=o1(),w=_e(m);Ju(w,{get defaultOption(){return a()},get isFirstInvalidInput(){return r()},get isRequired(){return i()},get isInvalid(){return o()},get key(){return l()},get label(){return u()},labelClasses:"tw_absolute tw_input-floating-label tw_select-floating-label",labelOrder:"last",onChange:h,get options(){return d()},selectClasses:"tw_select-floating"});var E=ke(w,2);{let v=Te(()=>o()?"error":"info");Bi(E,{get dirtyMessage(){return s()},get key(){return l()},get showMessage(){return f()},get type(){return _(v)}})}return pe(m),oe(n,m),tt(p)}var l1=ze('<div class="tw_input-spacing"><!> <!></div>');function Xu(n,e){if(new.target)return nt({component:Xu,...n});et(e,!1);let t=R(e,"checkValidity",12,null),a=R(e,"defaultOption",12,null),s=R(e,"message",12,""),r=R(e,"isFirstInvalidInput",12),i=R(e,"isRequired",12,!1),o=R(e,"isInvalid",12,!1),l=R(e,"key",12),u=R(e,"label",12),c=R(e,"onChange",12),d=R(e,"options",12),f=R(e,"showMessage",12,void 0);function h(v){t()&&o(!t()(v)),c()(v)}var p={get checkValidity(){return t()},set checkValidity(v){t(v),L()},get defaultOption(){return a()},set defaultOption(v){a(v),L()},get message(){return s()},set message(v){s(v),L()},get isFirstInvalidInput(){return r()},set isFirstInvalidInput(v){r(v),L()},get isRequired(){return i()},set isRequired(v){i(v),L()},get isInvalid(){return o()},set isInvalid(v){o(v),L()},get key(){return l()},set key(v){l(v),L()},get label(){return u()},set label(v){u(v),L()},get onChange(){return c()},set onChange(v){c(v),L()},get options(){return d()},set options(v){d(v),L()},get showMessage(){return f()},set showMessage(v){f(v),L()},$set:it,$on:(v,y)=>rt(e,v,y)};xt();var m=l1(),w=_e(m);Ju(w,{get defaultOption(){return a()},get isFirstInvalidInput(){return r()},get isRequired(){return i()},get isInvalid(){return o()},get key(){return l()},get label(){return u()},labelClasses:"tw_input-stacked-label",labelOrder:"first",onChange:h,get options(){return d()}});var E=ke(w,2);{let v=Te(()=>o()?"error":"info");Bi(E,{get dirtyMessage(){return s()},get key(){return l()},get showMessage(){return f()},get type(){return _(v)}})}return pe(m),oe(n,m),tt(p)}function lh(n,e){if(new.target)return nt({component:lh,...n});et(e,!1);const t=null,a=null;let s=R(e,"callback",12),r=R(e,"callbackMetadata",12),i=R(e,"style",28,()=>({}));const o=i().checksAndRadios==="standard"?oh:ah,l=i().labels==="stacked"?Xu:El;let u=ue(),c=ue(),d=ue(),f=ue(),h=ue();function p(b){s().setChoiceIndex(Number(b.target.value))}an(()=>(G(s()),G(r()),_(f)),()=>{var b,S,I,C,k;ee(u,(b=s().getChoices())==null?void 0:b.map((M,P)=>({text:Ge(Pr(M),null,M),value:`${P}`}))),ee(h,`${s().getDefaultChoice()}`||null),ee(c,((C=(I=(S=s())==null?void 0:S.payload)==null?void 0:I.input)==null?void 0:C[0].name)||`choice-${(k=r())==null?void 0:k.idx}`),ee(f,s().getPrompt()),ee(d,Ge(Pr(_(f)),null,_(f)))}),un();var m={selfSubmitFunction:t,stepMetadata:a,get callback(){return s()},set callback(b){s(b),L()},get callbackMetadata(){return r()},set callbackMetadata(b){r(b),L()},get style(){return i()},set style(b){i(b),L()},$set:it,$on:(b,S)=>rt(e,b,S)};xt();var w=Wt(),E=lt(w);{var v=b=>{{let S=Te(()=>(G(r()),Q(()=>{var I;return((I=r())==null?void 0:I.derived.isFirstInvalidInput)||!1})));o(b,{get isFirstInvalidInput(){return _(S)},get defaultOption(){return _(h)},isRequired:!1,get key(){return _(c)},get groupLabel(){return _(f)},onChange:p,get name(){return _(c)},get options(){return _(u)}})}},y=b=>{{let S=Te(()=>(G(r()),Q(()=>{var I;return((I=r())==null?void 0:I.derived.isFirstInvalidInput)||!1})));l(b,{get isFirstInvalidInput(){return _(S)},get defaultOption(){return _(h)},isRequired:!1,get key(){return _(c)},get label(){return _(d)},onChange:p,get options(){return _(u)}})}};ht(E,b=>{G(r()),Q(()=>{var S,I;return((I=(S=r())==null?void 0:S.platform)==null?void 0:I.displayType)==="radio"})?b(v):b(y,-1)})}return oe(n,w),Ot(e,"selfSubmitFunction",t),Ot(e,"stepMetadata",a),tt(m)}var u1=ze("<div><!></div>");function Sl(n,e){if(new.target)return nt({component:Sl,...n});et(e,!1);let t=R(e,"num",12,2);function a(...o){return o.reduce((l,u)=>{switch(u){case 4:return`${l} md:tw_grid-cols-4`;case 3:return`${l} md:tw_grid-cols-3`;case 2:return`${l} md:tw_grid-cols-2`;default:return`${l} md:tw_grid-cols-1`}},"")}var s={get num(){return t()},set num(o){t(o),L()},$set:it,$on:(o,l)=>rt(e,o,l)},r=u1(),i=_e(r);return cn(i,e,"default",{},null),pe(r),Je(o=>Qt(r,1,o),[()=>(G(t()),Q(()=>`${a(t())} tw_gap-4 tw_grid tw_grid-cols-1 tw_input-spacing`))]),oe(n,r),tt(s)}function uh(n,e){if(new.target)return nt({component:uh,...n});et(e,!1);const t={};let a=R(e,"callback",12),s=R(e,"callbackMetadata",12),r=R(e,"selfSubmitFunction",12,null),i=R(e,"stepMetadata",12);const o=t.checksAndRadios==="standard"?wl:_l;let l=ue(),u=ue(a().getDefaultOption()),c=ue(),d=ue(),f=ue();function h(I){a().setOptionIndex(I),s()&&s(s().derived.isReadyForSubmission=!0,!0),r()&&r()()}function p(I){a().setOptionIndex(Number(I.target.value))}function m(I){I.target.checked?a().setOptionIndex(0):a().setOptionIndex(_(u))}a().getInputValue()===0&&a().setOptionIndex(_(u)),an(()=>(G(a()),G(s()),_(f),_(d),G(i())),()=>{var I,C,k,M,P,D,V;ee(c,((k=(C=(I=a())==null?void 0:I.payload)==null?void 0:C.input)==null?void 0:k[0].name)||`confirmation-${(M=s())==null?void 0:M.idx}`),ee(f,a().getOptions().map((B,Y)=>({value:`${Y}`,text:B}))),ee(u,a().getDefaultOption()),ee(d,Ge(Pr("pleaseConfirm"),null,"Please Confirm")),(D=(P=s())==null?void 0:P.platform)!=null&&D.showOnlyPositiveAnswer&&ee(f,_(f).slice(0,1)),!((V=i())!=null&&V.derived.isStepSelfSubmittable())&&_(f).length>1?_(f).unshift({value:"",text:_(d)}):_(f).length===1?ee(l,"outline"):ee(l,"secondary")}),un();var w={style:t,get callback(){return a()},set callback(I){a(I),L()},get callbackMetadata(){return s()},set callbackMetadata(I){s(I),L()},get selfSubmitFunction(){return r()},set selfSubmitFunction(I){r(I),L()},get stepMetadata(){return i()},set stepMetadata(I){i(I),L()},$set:it,$on:(I,C)=>rt(e,I,C)};xt();var E=Wt(),v=lt(E);{var y=I=>{var C=Wt(),k=lt(C);{var M=D=>{{let V=Te(()=>(G(s()),Q(()=>{var B;return((B=s())==null?void 0:B.derived.isFirstInvalidInput)||!1})));El(D,{get isFirstInvalidInput(){return _(V)},isRequired:!1,get key(){return _(c)},get label(){return _(d)},onChange:p,get options(){return _(f)}})}},P=D=>{{let V=Te(()=>(G(s()),Q(()=>{var B;return((B=s())==null?void 0:B.derived.isFirstInvalidInput)||!1})));o(D,{get isFirstInvalidInput(){return _(V)},isInvalid:!1,get key(){return _(c)},onChange:m,value:!1,children:(B,Y)=>{An();var Z=Cn();Je(()=>$t(Z,(_(f),Q(()=>_(f)[0].text)))),oe(B,Z)},$$slots:{default:!0}})}};ht(k,D=>{_(f),Q(()=>_(f).length>1)?D(M):D(P,-1)})}oe(I,C)},b=Xi(()=>(G(i()),Q(()=>{var I;return!((I=i())!=null&&I.derived.isStepSelfSubmittable())}))),S=I=>{{let C=Te(()=>(_(f),Q(()=>_(f).length>=2?2:1)));Sl(I,{get num(){return _(C)},children:(k,M)=>{var P=Wt(),D=lt(P);mr(D,1,()=>_(f),pr,(V,B)=>{{let Y=Te(()=>(_(f),_(u),_(B),_(l),Q(()=>_(f).length>1&&_(u)===Number(_(B).value)?"primary":_(l))));nr(V,{get style(){return _(Y)},type:"button",width:"auto",onClick:()=>h(Number(_(B).value)),children:(Z,te)=>{An();var $=Cn();Je(()=>$t($,(_(B),Q(()=>_(B).text)))),oe(Z,$)},$$slots:{default:!0}})}}),oe(k,P)},$$slots:{default:!0}})}};ht(v,I=>{_(b)?I(y):I(S,-1)})}return oe(n,E),Ot(e,"style",t),tt(w)}function ch(n,e){if(new.target)return nt({component:ch,...n});et(e,!1);const t=null,a=null,s=null,r=null,i={};var o={callback:t,callbackMetadata:a,selfSubmitFunction:s,stepMetadata:r,style:i,$set:it,$on:(l,u)=>rt(e,l,u)};return Ot(e,"callback",t),Ot(e,"callbackMetadata",a),Ot(e,"selfSubmitFunction",s),Ot(e,"stepMetadata",r),Ot(e,"style",i),tt(o)}var c1=ze('<input type="date"/>'),d1=ze('<input type="email"/>'),f1=ze('<input type="number"/>'),h1=ze('<input type="password"/>'),g1=ze('<input type="phone"/>'),p1=ze('<input type="text"/>'),m1=ze("<!> <!> <!> <!> <!> <!> <!> <!>",1);function $u(n,e){if(new.target)return nt({component:$u,...n});et(e,!1);let t=R(e,"forceValidityFailure",12,!1),a=R(e,"isFirstInvalidInput",12),s=R(e,"inputClasses",12,""),r=R(e,"key",12),i=R(e,"label",12),o=R(e,"labelClasses",12,""),l=R(e,"labelOrder",12,"first"),u=R(e,"onChange",12),c=R(e,"placeholder",12," "),d=R(e,"isRequired",12,!1),f=R(e,"isInvalid",12,null),h=R(e,"type",12,"text"),p=R(e,"value",12,""),m=ue();ar(()=>{a()&&_(m).focus()});var w={get forceValidityFailure(){return t()},set forceValidityFailure(H){t(H),L()},get isFirstInvalidInput(){return a()},set isFirstInvalidInput(H){a(H),L()},get inputClasses(){return s()},set inputClasses(H){s(H),L()},get key(){return r()},set key(H){r(H),L()},get label(){return i()},set label(H){i(H),L()},get labelClasses(){return o()},set labelClasses(H){o(H),L()},get labelOrder(){return l()},set labelOrder(H){l(H),L()},get onChange(){return u()},set onChange(H){u(H),L()},get placeholder(){return c()},set placeholder(H){c(H),L()},get isRequired(){return d()},set isRequired(H){d(H),L()},get isInvalid(){return f()},set isInvalid(H){f(H),L()},get type(){return h()},set type(H){h(H),L()},get value(){return p()},set value(H){p(H),L()},$set:it,$on:(H,A)=>rt(e,H,A)};xt();var E=m1(),v=lt(E);{var y=H=>{{let A=Te(()=>`${o()} tw_w-full tw_ml-1`);Vi(H,{get key(){return r()},get classes(){return _(A)},children:(N,le)=>{An();var K=Cn();Je(()=>$t(K,i())),oe(N,K)},$$slots:{default:!0}})}};ht(v,H=>{l()==="first"&&H(y)})}var b=ke(v,2);{var S=H=>{var A=c1();ei(A),Hn(A,N=>ee(m,N),()=>_(m)),Je(()=>{Fe(A,"aria-describedby",`${r()}-message`),Fe(A,"aria-invalid",f()),Qt(A,1,`${s()} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),Fe(A,"data-force-validity-failure",t()),Fe(A,"id",r()),Fe(A,"placeholder",c()),A.required=d()}),Vn("change",A,function(...N){var le;(le=u())==null||le.apply(this,N)}),us(A,p),oe(H,A)};ht(b,H=>{h()==="date"&&H(S)})}var I=ke(b,2);{var C=H=>{var A=d1();ei(A),Hn(A,N=>ee(m,N),()=>_(m)),Je(()=>{Fe(A,"aria-describedby",`${r()}-message`),Fe(A,"aria-invalid",f()),Qt(A,1,`${s()} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),Fe(A,"data-force-validity-failure",t()),Fe(A,"id",r()),Fe(A,"placeholder",c()),A.required=d()}),Vn("change",A,function(...N){var le;(le=u())==null||le.apply(this,N)}),us(A,p),oe(H,A)};ht(I,H=>{h()==="email"&&H(C)})}var k=ke(I,2);{var M=H=>{var A=f1();ei(A),Hn(A,N=>ee(m,N),()=>_(m)),Je(()=>{Fe(A,"aria-describedby",`${r()}-message`),Fe(A,"aria-invalid",f()),Qt(A,1,`${s()} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),Fe(A,"data-force-validity-failure",t()),Fe(A,"id",r()),Fe(A,"placeholder",c()),A.required=d()}),Vn("change",A,function(...N){var le;(le=u())==null||le.apply(this,N)}),us(A,p),oe(H,A)};ht(k,H=>{h()==="number"&&H(M)})}var P=ke(k,2);{var D=H=>{var A=h1();ei(A),Hn(A,N=>ee(m,N),()=>_(m)),Je(()=>{Fe(A,"aria-describedby",`${r()}-message`),Fe(A,"aria-invalid",f()),Qt(A,1,`${s()} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),Fe(A,"data-force-validity-failure",t()),Fe(A,"id",r()),Fe(A,"placeholder",c()),A.required=d()}),Vn("change",A,function(...N){var le;(le=u())==null||le.apply(this,N)}),us(A,p),oe(H,A)};ht(P,H=>{h()==="password"&&H(D)})}var V=ke(P,2);{var B=H=>{var A=g1();ei(A),Hn(A,N=>ee(m,N),()=>_(m)),Je(()=>{Fe(A,"aria-describedby",`${r()}-message`),Fe(A,"aria-invalid",f()),Qt(A,1,`${s()} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),Fe(A,"data-force-validity-failure",t()),Fe(A,"id",r()),Fe(A,"placeholder",c()),A.required=d()}),Vn("change",A,function(...N){var le;(le=u())==null||le.apply(this,N)}),us(A,p),oe(H,A)};ht(V,H=>{h()==="phone"&&H(B)})}var Y=ke(V,2);{var Z=H=>{var A=p1();ei(A),Hn(A,N=>ee(m,N),()=>_(m)),Je(()=>{Fe(A,"aria-describedby",`${r()}-message`),Fe(A,"aria-invalid",f()),Qt(A,1,`${s()} tw_input-base dark:tw_input-base_dark tw_focusable-element dark:tw_focusable-element_dark tw_flex-1 tw_w-full`),Fe(A,"data-force-validity-failure",t()),Fe(A,"id",r()),Fe(A,"placeholder",c()),A.required=d()}),Vn("change",A,function(...N){var le;(le=u())==null||le.apply(this,N)}),us(A,p),oe(H,A)};ht(Y,H=>{h()==="text"&&H(Z)})}var te=ke(Y,2);{var $=H=>{{let A=Te(()=>`${o()}`);Vi(H,{get key(){return r()},get classes(){return _(A)},children:(N,le)=>{An();var K=Cn();Je(()=>$t(K,i())),oe(N,K)},$$slots:{default:!0}})}};ht(te,H=>{l()==="last"&&H($)})}return oe(n,E),tt(w)}var v1=ze('<div class="tw_justify-items-stretch tw_flex tw_input-spacing tw_relative tw_flex-wrap"><!> <!> <div class="tw_w-full"><!> <!></div></div>');function Hi(n,e){if(new.target)return nt({component:Hi,...n});et(e,!1);let t=R(e,"checkValidity",12,null),a=R(e,"forceValidityFailure",12,!1),s=R(e,"message",12,""),r=R(e,"isFirstInvalidInput",12),i=R(e,"hasRightIcon",12,!1),o=R(e,"isRequired",12,!1),l=R(e,"isInvalid",12,!1),u=R(e,"key",12),c=R(e,"label",12),d=R(e,"onChange",12),f=R(e,"showMessage",12,void 0),h=R(e,"type",12,"text"),p=R(e,"value",12,"");function m(C){t()&&l(!t()(C)),d()(C)}var w={get checkValidity(){return t()},set checkValidity(C){t(C),L()},get forceValidityFailure(){return a()},set forceValidityFailure(C){a(C),L()},get message(){return s()},set message(C){s(C),L()},get isFirstInvalidInput(){return r()},set isFirstInvalidInput(C){r(C),L()},get hasRightIcon(){return i()},set hasRightIcon(C){i(C),L()},get isRequired(){return o()},set isRequired(C){o(C),L()},get isInvalid(){return l()},set isInvalid(C){l(C),L()},get key(){return u()},set key(C){u(C),L()},get label(){return c()},set label(C){c(C),L()},get onChange(){return d()},set onChange(C){d(C),L()},get showMessage(){return f()},set showMessage(C){f(C),L()},get type(){return h()},set type(C){h(C),L()},get value(){return p()},set value(C){p(C),L()},$set:it,$on:(C,k)=>rt(e,C,k)};xt();var E=v1(),v=_e(E);{let C=Te(()=>`tw_input-floating dark:tw_input-floating_dark ${i()?"!tw_border-r-0 !tw_rounded-r-none":""}`);$u(v,{get forceValidityFailure(){return a()},get isFirstInvalidInput(){return r()},get inputClasses(){return _(C)},get key(){return u()},onChange:m,get label(){return c()},labelClasses:"tw_absolute tw_border tw_border-transparent tw_input-floating-label",labelOrder:"last",get isRequired(){return o()},get isInvalid(){return l()},get type(){return h()},get value(){return p()},set value(k){p(k)},$$legacy:!0})}var y=ke(v,2);cn(y,e,"input-button",{},null);var b=ke(y,2),S=_e(b);{let C=Te(()=>l()?"error":"info");Bi(S,{get dirtyMessage(){return s()},get showMessage(){return f()},get type(){return _(C)}})}var I=ke(S,2);return cn(I,e,"default",{},null),pe(b),pe(E),Je(()=>Fe(b,"id",`${u()}-message`)),oe(n,E),tt(w)}var y1=ze('<div class="tw_input-spacing tw_flex tw_flex-wrap"><!> <!> <div class="tw_w-full"><!> <!></div></div>');function da(n,e){if(new.target)return nt({component:da,...n});et(e,!1);let t=R(e,"checkValidity",12,null),a=R(e,"forceValidityFailure",12,!1),s=R(e,"isFirstInvalidInput",12),r=R(e,"hasRightIcon",12,!1),i=R(e,"message",12,""),o=R(e,"isRequired",12,!1),l=R(e,"isInvalid",12,!1),u=R(e,"key",12),c=R(e,"label",12),d=R(e,"onChange",12),f=R(e,"placeholder",12,void 0),h=R(e,"showMessage",12,void 0),p=R(e,"type",12,"text"),m=R(e,"value",12,"");function w(k){t()&&l(!t()(k)),d()(k)}var E={get checkValidity(){return t()},set checkValidity(k){t(k),L()},get forceValidityFailure(){return a()},set forceValidityFailure(k){a(k),L()},get isFirstInvalidInput(){return s()},set isFirstInvalidInput(k){s(k),L()},get hasRightIcon(){return r()},set hasRightIcon(k){r(k),L()},get message(){return i()},set message(k){i(k),L()},get isRequired(){return o()},set isRequired(k){o(k),L()},get isInvalid(){return l()},set isInvalid(k){l(k),L()},get key(){return u()},set key(k){u(k),L()},get label(){return c()},set label(k){c(k),L()},get onChange(){return d()},set onChange(k){d(k),L()},get placeholder(){return f()},set placeholder(k){f(k),L()},get showMessage(){return h()},set showMessage(k){h(k),L()},get type(){return p()},set type(k){p(k),L()},get value(){return m()},set value(k){m(k),L()},$set:it,$on:(k,M)=>rt(e,k,M)};xt();var v=y1(),y=_e(v);{let k=Te(()=>`${r()?"!tw_border-r-0 !tw_rounded-r-none":""}`);$u(y,{get forceValidityFailure(){return a()},get isFirstInvalidInput(){return s()},get inputClasses(){return _(k)},get key(){return u()},onChange:w,get label(){return c()},labelClasses:"tw_input-stacked-label",labelOrder:"first",get placeholder(){return f()},get isRequired(){return o()},get isInvalid(){return l()},get type(){return p()},get value(){return m()},set value(M){m(M)},$$legacy:!0})}var b=ke(y,2);cn(b,e,"input-button",{},null);var S=ke(b,2),I=_e(S);{let k=Te(()=>l()?"error":"info");Bi(I,{get key(){return u()},get dirtyMessage(){return i()},get showMessage(){return h()},get type(){return _(k)}})}var C=ke(I,2);return cn(C,e,"default",{},null),pe(S),pe(v),Je(()=>Fe(S,"id",`${u()}-message`)),oe(n,v),tt(E)}var _1=Kn('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"></path><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z"></path><title><!></title></svg>');function dh(n,e){if(new.target)return nt({component:dh,...n});et(e,!1);let t=R(e,"classes",12,""),a=R(e,"size",12,"24px");var s={get classes(){return t()},set classes(l){t(l),L()},get size(){return a()},set size(l){a(l),L()},$set:it,$on:(l,u)=>rt(e,l,u)},r=_1(),i=ke(_e(r),2),o=_e(i);return cn(o,e,"default",{},null),pe(i),pe(r),Je(()=>{Qt(r,0,Yn(t())),Fe(r,"height",a()),Fe(r,"width",a())}),oe(n,r),tt(s)}var b1=ze('<fieldset class="tw_kba-fieldset tw_input-spacing dark:tw_kba-fieldset_dark"><legend class="tw_sr-only"><!></legend> <h2 class="dark:tw_secondary-header_dark tw_font-semibold tw_mb-4"><!></h2> <span class="tw_kba-lock-icon dark:tw_kba-lock-icon_dark"><!></span> <!> <!> <!></fieldset>');function fh(n,e){if(new.target)return nt({component:fh,...n});et(e,!1);const t=()=>Ar(S,"$value",a),[a,s]=Wr(),r=null,i=null;let o=R(e,"callback",12),l=R(e,"callbackMetadata",12),u=R(e,"style",28,()=>({}));const c=u().labels==="stacked"?da:Hi,d=u().labels==="stacked"?Xu:El;let f=ue(null),h=ue(!1),p=ue(),m=ue(),w=ue(),E=ue(),v=ue(),y=ue(),b=ue(),S=ti("");try{ee(b,o().getOutputValue("allowUserDefinedQuestions"))}catch{console.error("`allowUserDefinedQuestions` property is missing in callback `KbaCreateCallback`")}function I(K){o().setAnswer(K.target.value)}function C(K){const ae=K.target.value;ae===_(f)?(ee(h,!0),S.set(""),o().setAnswer("")):(ee(h,!1),o().setQuestion(ae))}function k(K){const ae=K.target.value;o().setQuestion(ae)}an(()=>(_(p),G(o()),_(m),G(l()),_(v),_(y),_(b),_(f),Ge),()=>{var K,ae,ve,Le,Oe,Ne,Re;ee(p,(ae=(K=o())==null?void 0:K.payload)==null?void 0:ae.input),ee(m,((Oe=(Le=(ve=o())==null?void 0:ve.payload)==null?void 0:Le.input)==null?void 0:Oe[0].name)||`kba-${(Ne=l())==null?void 0:Ne.idx}`),ee(w,_(m)),ee(E,Array.isArray(_(p))&&_(p)[1].name),ee(v,o().getPrompt()),ee(y,(Re=o().getPredefinedQuestions())==null?void 0:Re.map((He,De)=>({text:He,value:`${De}`})));try{ee(b,o().getOutputValue("allowUserDefinedQuestions"))}catch{console.error("`allowUserDefinedQuestions` property is missing in callback `KbaCreateCallback`")}_(y).unshift({text:_(v),value:""}),_(b)&&(ee(f,`${_(y).length-1}`),_(y).push({text:Ge("provideCustomQuestion"),value:_(f)}))}),un();var M={selfSubmitFunction:r,stepMetadata:i,get callback(){return o()},set callback(K){o(K),L()},get callbackMetadata(){return l()},set callbackMetadata(K){l(K),L()},get style(){return u()},set style(K){u(K),L()},$set:it,$on:(K,ae)=>rt(e,K,ae)};xt();var P=b1(),D=_e(P),V=_e(D);Lt(V,{key:"securityQuestions"}),pe(D);var B=ke(D,2),Y=_e(B);Lt(Y,{key:"securityQuestionsPrompt"}),pe(B);var Z=ke(B,2),te=_e(Z);dh(te,{size:"18"}),pe(Z);var $=ke(Z,2);d($,{isFirstInvalidInput:!1,isRequired:!0,get key(){return _(w)},get label(){return _(v)},onChange:C,get options(){return _(y)}});var H=ke($,2);{var A=K=>{{let ae=Te(()=>(G(l()),Q(()=>{var Oe;return`kba-custom-question-${(Oe=l())==null?void 0:Oe.idx}`}))),ve=Te(()=>(G(Ge),Q(()=>Ge("customSecurityQuestion")))),Le=Te(()=>(G(Ge),Q(()=>Ge("inputRequiredError"))));c(K,{isFirstInvalidInput:!1,isRequired:!0,get key(){return _(ae)},get label(){return _(ve)},showMessage:!1,get message(){return _(Le)},onChange:k,type:"text"})}};ht(H,K=>{_(h)&&K(A)})}var N=ke(H,2);{let K=Te(()=>(G(l()),Q(()=>{var Oe;return((Oe=l())==null?void 0:Oe.derived.isFirstInvalidInput)||!1}))),ae=Te(()=>(_(E),G(l()),Q(()=>{var Oe;return _(E)||`kba-answer-${(Oe=l())==null?void 0:Oe.idx}`}))),ve=Te(()=>(G(Ge),Q(()=>Ge("securityAnswer")))),Le=Te(()=>(G(Ge),Q(()=>Ge("inputRequiredError"))));c(N,{get isFirstInvalidInput(){return _(K)},isRequired:!0,get key(){return _(ae)},get label(){return _(ve)},showMessage:!1,get message(){return _(Le)},onChange:I,type:"text",get value(){return mv(),t()},set value(Oe){pv(S,Oe)},$$legacy:!0})}pe(P),oe(n,P),Ot(e,"selfSubmitFunction",r),Ot(e,"stepMetadata",i);var le=tt(M);return s(),le}function hh(n,e){if(new.target)return nt({component:hh,...n});et(e,!1);const t=null,a=null;let s=R(e,"callback",12),r=R(e,"callbackMetadata",12),i=R(e,"style",28,()=>({}));const o=i().labels==="stacked"?da:Hi;let l=ue(),u=ue(),c=ue(),d=ue();function f(w){s().setInputValue(w.target.value)}an(()=>(G(s()),G(r())),()=>{var w,E,v,y,b;ee(l,s().getType()),ee(u,((v=(E=(w=s())==null?void 0:w.payload)==null?void 0:E.input)==null?void 0:v[0].name)||`name-${(y=r())==null?void 0:y.idx}`),ee(c,s().getPrompt()),ee(d,(b=s())==null?void 0:b.getInputValue())}),un();var h={selfSubmitFunction:t,stepMetadata:a,get callback(){return s()},set callback(w){s(w),L()},get callbackMetadata(){return r()},set callbackMetadata(w){r(w),L()},get style(){return i()},set style(w){i(w),L()},$set:it,$on:(w,E)=>rt(e,w,E)};xt();var p=Wt(),m=lt(p);return Ra(m,s,w=>{{let E=Te(()=>(G(r()),Q(()=>{var b;return((b=r())==null?void 0:b.derived.isFirstInvalidInput)||!1}))),v=Te(()=>(G(Ge),G(Pr),_(c),_(l),Q(()=>Ge(Pr(_(c)||_(l)),null,_(c))))),y=Te(()=>typeof _(d)=="string"?_(d):"");o(w,{get isFirstInvalidInput(){return _(E)},get key(){return _(u)},get label(){return _(v)},onChange:f,type:"text",showMessage:!1,get value(){return _(y)}})}}),oe(n,p),Ot(e,"selfSubmitFunction",t),Ot(e,"stepMetadata",a),tt(h)}var w1=Kn('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"></path><path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"></path><title><!></title></svg>'),E1=Kn('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0zm0 0h24v24H0z" fill="none"></path><path d="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"></path><title><!></title></svg>');function Qu(n,e){if(new.target)return nt({component:Qu,...n});et(e,!1);let t=R(e,"classes",12,""),a=R(e,"size",12,"24px"),s=R(e,"visible",12,!1);var r={get classes(){return t()},set classes(c){t(c),L()},get size(){return a()},set size(c){a(c),L()},get visible(){return s()},set visible(c){s(c),L()},$set:it,$on:(c,d)=>rt(e,c,d)},i=Wt(),o=lt(i);{var l=c=>{var d=w1(),f=ke(_e(d),2),h=_e(f);cn(h,e,"default",{},null),pe(f),pe(d),Je(()=>{Qt(d,0,Yn(t())),Fe(d,"height",a()),Fe(d,"width",a())}),oe(c,d)},u=c=>{var d=E1(),f=ke(_e(d),2),h=_e(f);cn(h,e,"default",{},null),pe(f),pe(d),Je(()=>{Qt(d,0,Yn(t())),Fe(d,"height",a()),Fe(d,"width",a())}),oe(c,d)};ht(o,c=>{s()?c(u,-1):c(l)})}return oe(n,i),tt(r)}var S1=ze('<button class="tw_password-button dark:tw_password-button_dark tw_focusable-element tw_input-base dark:tw_input-base_dark" type="button"><!></button>'),k1=ze('<div class="tw_w-full tw_input-spacing"><!></div>'),C1=ze("<!> <!>",1);function gh(n,e){if(new.target)return nt({component:gh,...n});et(e,!1);let t=R(e,"forceValidityFailure",12,!1),a=R(e,"passwordsDoNotMatch",12,!1),s=R(e,"isRequired",12,!1),r=R(e,"key",12),i=R(e,"onChange",12),o=R(e,"resetValue",12),l=R(e,"style",28,()=>({})),u=R(e,"isFirstInvalidInput",12);const c=l().labels==="stacked"?da:Hi,d=l().showPassword;let f=R(e,"showMessage",12,void 0),h=ue(!1),p=ue("password"),m=ue(),w=ue("");function E(k){var M;ee(m,(M=k.target)==null?void 0:M.value),i()(typeof _(m)=="string"?_(m):void 0)}function v(){ee(h,!_(h)),ee(p,_(h)?"text":"password")}an(()=>(G(o()),_(m),G(i()),G(a()),G(s())),()=>{o()&&(ee(m,void 0),i()(_(m))),a()?ee(w,Ge("passwordConfirmationError",null,"Passwords do not match")):s()?ee(w,Ge("requiredField",null,"This field is required")):ee(w,"")}),un();var y={get forceValidityFailure(){return t()},set forceValidityFailure(k){t(k),L()},get passwordsDoNotMatch(){return a()},set passwordsDoNotMatch(k){a(k),L()},get isRequired(){return s()},set isRequired(k){s(k),L()},get key(){return r()},set key(k){r(k),L()},get onChange(){return i()},set onChange(k){i(k),L()},get resetValue(){return o()},set resetValue(k){o(k),L()},get style(){return l()},set style(k){l(k),L()},get isFirstInvalidInput(){return u()},set isFirstInvalidInput(k){u(k),L()},get showMessage(){return f()},set showMessage(k){f(k),L()},$set:it,$on:(k,M)=>rt(e,k,M)};xt();var b=C1(),S=lt(b);{let k=Te(()=>(G(l()),Q(()=>l().showPassword==="button"))),M=Te(()=>`${r()}-confirm`),P=Te(()=>(G(Ge),Q(()=>Ge("confirmPassword",null,"Confirm Password")))),D=Te(()=>typeof _(m)=="string"?_(m):"");c(S,{get forceValidityFailure(){return t()},isFirstInvalidInput:!1,get hasRightIcon(){return _(k)},get key(){return _(M)},get label(){return _(P)},get message(){return _(w)},onChange:E,get isInvalid(){return a()},get isRequired(){return s()},get showMessage(){return f()},get type(){return _(p)},get value(){return _(D)},children:(V,B)=>{var Y=Wt(),Z=lt(Y);cn(Z,e,"default",{},null),oe(V,Y)},$$slots:{"input-button":(V,B)=>{var Y=Wt(),Z=lt(Y);{var te=$=>{var H=S1(),A=_e(H);Qu(A,{classes:"tw_password-icon dark:tw_password-icon_dark",get visible(){return _(h)},children:(N,le)=>{Lt(N,{key:"showPassword"})},$$slots:{default:!0}}),pe(H),Vn("click",H,v),oe($,H)};ht(Z,$=>{d==="button"&&$(te)})}oe(V,Y)},default:!0}})}var I=ke(S,2);{var C=k=>{var M=k1(),P=_e(M);{let D=Te(()=>(G(r()),G(l()),Q(()=>r()+l().showPassword)));bl(P,{get isFirstInvalidInput(){return u()},isInvalid:!1,get key(){return _(D)},onChange:v,value:!1,children:(V,B)=>{An();var Y=Cn("Show Password");oe(V,Y)},$$slots:{default:!0}})}pe(M),oe(k,M)};ht(I,k=>{d==="checkbox"&&k(C)})}return oe(n,b),tt(y)}var I1=ze('<button class="tw_password-button dark:tw_password-button_dark tw_focusable-element tw_input-base dark:tw_input-base_dark" type="button"><!></button>'),T1=ze('<div class="tw_w-full tw_input-spacing"><!></div>'),A1=ze("<!> <!> <!>",1);function ec(n,e){if(new.target)return nt({component:ec,...n});et(e,!1);let t=R(e,"callback",12),a=R(e,"callbackMetadata",12),s=R(e,"key",12),r=R(e,"isInvalid",12,!1),i=R(e,"isRequired",12,!1),o=R(e,"style",28,()=>({}));const l=o().labels==="stacked"?da:Hi,u=o().showPassword;let c=R(e,"showMessage",12,void 0),d=R(e,"validationFailure",12,""),f=ue(),h=ue(),p=ue(),m=ue(!1),w=ue(!1),E=ue(""),v=ue(),y=ue("password"),b=ue();function S(D){ee(f,D)}function I(D){ee(b,D.target.value),t().setInputValue(_(b)),ee(E,String(_(b)))}function C(){ee(m,!_(m)),ee(y,_(m)?"text":"password")}an(()=>(G(t()),G(a()),_(b),_(E),_(f)),()=>{var D,V,B,Y,Z;ee(h,t().getType()),s(((B=(V=(D=t())==null?void 0:D.payload)==null?void 0:V.input)==null?void 0:B[0].name)||`password-${(Y=a())==null?void 0:Y.idx}`),ee(v,t().getPrompt()),ee(b,(Z=t())==null?void 0:Z.getInputValue()),ee(w,!!_(E)&&_(b)===""),ee(p,_(f)!==void 0?_(f)===_(b):void 0)}),un();var k={get callback(){return t()},set callback(D){t(D),L()},get callbackMetadata(){return a()},set callbackMetadata(D){a(D),L()},get key(){return s()},set key(D){s(D),L()},get isInvalid(){return r()},set isInvalid(D){r(D),L()},get isRequired(){return i()},set isRequired(D){i(D),L()},get style(){return o()},set style(D){o(D),L()},get showMessage(){return c()},set showMessage(D){c(D),L()},get validationFailure(){return d()},set validationFailure(D){d(D),L()},$set:it,$on:(D,V)=>rt(e,D,V)};xt();var M=Wt(),P=lt(M);return Ra(P,t,D=>{var V=A1(),B=lt(V);{let H=Te(()=>(G(a()),Q(()=>{var ae;return((ae=a())==null?void 0:ae.derived.isFirstInvalidInput)||!1}))),A=Te(()=>(G(o()),Q(()=>o().showPassword==="button"))),N=Te(()=>(G(Ge),G(Pr),_(h),_(v),Q(()=>Ge(Pr(_(h)),null,_(v))))),le=Te(()=>(G(d()),G(i()),G(Ge),Q(()=>d()||(i()?Ge("inputRequiredError"):void 0)))),K=Te(()=>typeof _(b)=="string"?_(b):"");l(B,{get isFirstInvalidInput(){return _(H)},get hasRightIcon(){return _(A)},get key(){return s()},get label(){return _(N)},get message(){return _(le)},onChange:I,get isInvalid(){return r()},get isRequired(){return i()},get showMessage(){return c()},get type(){return _(y)},get value(){return _(K)},children:(ae,ve)=>{var Le=Wt(),Oe=lt(Le);cn(Oe,e,"default",{},null),oe(ae,Le)},$$slots:{default:!0,"input-button":(ae,ve)=>{var Le=Wt(),Oe=lt(Le);{var Ne=Re=>{var He=I1(),De=_e(He);Qu(De,{classes:"tw_password-icon dark:tw_password-icon_dark",get visible(){return _(m)},children:(at,Pt)=>{Lt(at,{key:"showPassword"})},$$slots:{default:!0}}),pe(He),Vn("click",He,C),oe(Re,He)};ht(Oe,Re=>{u==="button"&&Re(Ne)})}oe(ae,Le)}}})}var Y=ke(B,2);{var Z=H=>{var A=T1(),N=_e(A);{let le=Te(()=>(G(a()),Q(()=>{var ae;return((ae=a())==null?void 0:ae.derived.isFirstInvalidInput)||!1}))),K=Te(()=>(G(s()),G(o()),Q(()=>s()+o().showPassword)));bl(N,{get isFirstInvalidInput(){return _(le)},isInvalid:!1,get key(){return _(K)},onChange:C,value:!1,children:(ae,ve)=>{An();var Le=Cn("Show Password");oe(ae,Le)},$$slots:{default:!0}})}pe(A),oe(H,A)};ht(Y,H=>{u==="checkbox"&&H(Z)})}var te=ke(Y,2);{var $=H=>{{let A=Te(()=>_(p)===!1),N=Te(()=>_(p)===!1),le=Te(()=>(_(b),Q(()=>_(b).length>0))),K=Te(()=>_(p)===!1),ae=Te(()=>(G(a()),Q(()=>{var ve;return((ve=a())==null?void 0:ve.derived.isFirstInvalidInput)||!1})));gh(H,{get forceValidityFailure(){return _(A)},get passwordsDoNotMatch(){return _(N)},get key(){return s()},get isRequired(){return _(le)},onChange:S,get resetValue(){return _(w)},get showMessage(){return _(K)},get style(){return o()},get isFirstInvalidInput(){return _(ae)}})}};ht(te,H=>{G(a()),Q(()=>{var A,N;return(N=(A=a())==null?void 0:A.platform)==null?void 0:N.confirmPassword})&&H($)})}oe(D,V)}),oe(n,M),tt(k)}function ph(n,e){if(new.target)return nt({component:ph,...n});et(e,!1);const t=null,a=null;let s=R(e,"callback",12),r=R(e,"callbackMetadata",12),i=R(e,"style",28,()=>({})),o=ue();an(()=>(G(s()),G(r())),()=>{var u,c,d,f;s(s()),ee(o,((d=(c=(u=s())==null?void 0:u.payload)==null?void 0:c.input)==null?void 0:d[0].name)||`password-${(f=r())==null?void 0:f.idx}`)}),un();var l={selfSubmitFunction:t,stepMetadata:a,get callback(){return s()},set callback(u){s(u),L()},get callbackMetadata(){return r()},set callbackMetadata(u){r(u),L()},get style(){return i()},set style(u){i(u),L()},$set:it,$on:(u,c)=>rt(e,u,c)};return xt(),ec(n,{get callback(){return s()},get callbackMetadata(){return r()},get style(){return i()},get key(){return _(o)}}),Ot(e,"selfSubmitFunction",t),Ot(e,"stepMetadata",a),tt(l)}var O1=ze("<p><!></p>");function ms(n,e){if(new.target)return nt({component:ms,...n});et(e,!1);let t=R(e,"classes",12,"");var a={get classes(){return t()},set classes(i){t(i),L()},$set:it,$on:(i,o)=>rt(e,i,o)},s=O1(),r=_e(s);return cn(r,e,"default",{},null),pe(s),Je(()=>Qt(s,1,`${t()} tw_text-base tw_text-secondary-dark dark:tw_text-secondary-light tw_input-spacing`)),oe(n,s),tt(a)}var P1=ze("<!> <span> </span>",1),x1=ze("<!> <!>",1),L1=ze('<div class="tw_text-center"><!></div>');function tc(n,e){if(new.target)return nt({component:tc,...n});et(e,!1);const t={},a=null;let s=R(e,"callback",12),r=R(e,"callbackMetadata",12),i=R(e,"selfSubmitFunction",12,null),o=R(e,"options",12,null),l=ue(),u=ue();an(()=>(G(s()),_(u),G(r()),G(i())),()=>{s(s()),ee(l,s().getMessage()),clearTimeout(_(u)),ee(u,setTimeout(()=>{r()&&r(r().derived.isReadyForSubmission=!0,!0),i()&&i()()},s().getWaitTime()))}),un();var c={style:t,stepMetadata:a,get callback(){return s()},set callback(m){s(m),L()},get callbackMetadata(){return r()},set callbackMetadata(m){r(m),L()},get selfSubmitFunction(){return i()},set selfSubmitFunction(m){i(m),L()},get options(){return o()},set options(m){o(m),L()},$set:it,$on:(m,w)=>rt(e,m,w)};xt();var d=L1(),f=_e(d);{var h=m=>{ms(m,{children:(w,E)=>{var v=P1(),y=lt(v);xr(y,{colorClass:"white",layoutClasses:"tw_h-4 tw_w-4 tw_mr-2"});var b=ke(y,2),S=_e(b,!0);pe(b),Je(()=>$t(S,_(l))),oe(w,v)},$$slots:{default:!0}})},p=m=>{var w=x1(),E=lt(w);xr(E,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_mb-6 tw_w-24"});var v=ke(E,2);ms(v,{children:(y,b)=>{An();var S=Cn();Je(()=>$t(S,_(l))),oe(y,S)},$$slots:{default:!0}}),oe(m,w)};ht(f,m=>{G(o()),Q(()=>{var w;return(w=o())==null?void 0:w.inline})?m(h):m(p,-1)})}return pe(d),oe(n,d),Ot(e,"style",t),Ot(e,"stepMetadata",a),tt(c)}var M1=ze('<div class="tw_text-center" aria-live="assertive"><!> <!></div>');function mh(n,e){if(new.target)return nt({component:mh,...n});et(e,!1);const t=null,a=null,s=null,r={};let i=R(e,"callback",12),o=ue();an(()=>G(i()),()=>{ee(o,`${Ge("redirectingTo")} ${new URL(i().getRedirectUrl()).hostname}`)}),un();var l={callbackMetadata:t,selfSubmitFunction:a,stepMetadata:s,style:r,get callback(){return i()},set callback(f){i(f),L()},$set:it,$on:(f,h)=>rt(e,f,h)};xt();var u=M1(),c=_e(u);xr(c,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_mb-6 tw_w-24"});var d=ke(c,2);return ms(d,{children:(f,h)=>{An();var p=Cn();Je(()=>$t(p,_(o))),oe(f,p)},$$slots:{default:!0}}),pe(u),oe(n,u),Ot(e,"callbackMetadata",t),Ot(e,"selfSubmitFunction",a),Ot(e,"stepMetadata",s),Ot(e,"style",r),tt(l)}var R1=Kn('<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 18"><path d="M11.182.008C11.148-.03 9.923.023 8.857 1.18c-1.066 1.156-.902 2.482-.878 2.516.024.034 1.52.087 2.475-1.258.955-1.345.762-2.391.728-2.43Zm3.314 11.733c-.048-.096-2.325-1.234-2.113-3.422.212-2.189 1.675-2.789 1.698-2.854.023-.065-.597-.79-1.254-1.157a3.692 3.692 0 0 0-1.563-.434c-.108-.003-.483-.095-1.254.116-.508.139-1.653.589-1.968.607-.316.018-1.256-.522-2.267-.665-.647-.125-1.333.131-1.824.328-.49.196-1.422.754-2.074 2.237-.652 1.482-.311 3.83-.067 4.56.244.729.625 1.924 1.273 2.796.576.984 1.34 1.667 1.659 1.899.319.232 1.219.386 1.843.067.502-.308 1.408-.485 1.766-.472.357.013 1.061.154 1.782.539.571.197 1.111.115 1.652-.105.541-.221 1.324-1.059 2.238-2.758.347-.79.505-1.217.473-1.282Z"></path><path d="M11.182.008C11.148-.03 9.923.023 8.857 1.18c-1.066 1.156-.902 2.482-.878 2.516.024.034 1.52.087 2.475-1.258.955-1.345.762-2.391.728-2.43Zm3.314 11.733c-.048-.096-2.325-1.234-2.113-3.422.212-2.189 1.675-2.789 1.698-2.854.023-.065-.597-.79-1.254-1.157a3.692 3.692 0 0 0-1.563-.434c-.108-.003-.483-.095-1.254.116-.508.139-1.653.589-1.968.607-.316.018-1.256-.522-2.267-.665-.647-.125-1.333.131-1.824.328-.49.196-1.422.754-2.074 2.237-.652 1.482-.311 3.83-.067 4.56.244.729.625 1.924 1.273 2.796.576.984 1.34 1.667 1.659 1.899.319.232 1.219.386 1.843.067.502-.308 1.408-.485 1.766-.472.357.013 1.061.154 1.782.539.571.197 1.111.115 1.652-.105.541-.221 1.324-1.059 2.238-2.758.347-.79.505-1.217.473-1.282Z"></path></svg>');function vh(n,e){if(new.target)return nt({component:vh,...n});et(e,!1);let t=R(e,"classes",12,""),a=R(e,"size",12,"24px");var s={get classes(){return t()},set classes(i){t(i),L()},get size(){return a()},set size(i){a(i),L()},$set:it,$on:(i,o)=>rt(e,i,o)},r=R1();return Je(()=>{Fe(r,"height",a()),Fe(r,"width",a()),Qt(r,0,Yn(t()))}),oe(n,r),tt(s)}var D1=Kn('<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 18 18"><path d="M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951z"></path></svg>');function yh(n,e){if(new.target)return nt({component:yh,...n});et(e,!1);let t=R(e,"classes",12,""),a=R(e,"size",12,"24px");var s={get classes(){return t()},set classes(i){t(i),L()},get size(){return a()},set size(i){a(i),L()},$set:it,$on:(i,o)=>rt(e,i,o)},r=D1();return Je(()=>{Fe(r,"width",a()),Fe(r,"height",a()),Qt(r,0,Yn(t()))}),oe(n,r),tt(s)}var N1=Kn('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 56 56"><g><path fill="#EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"></path><path fill="#4285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"></path><path fill="#FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"></path><path fill="#34A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"></path><path fill="none" d="M0 0h48v48H0z"></path></g></svg>');function _h(n,e){if(new.target)return nt({component:_h,...n});et(e,!1);let t=R(e,"classes",12,""),a=R(e,"size",12,"24px");var s={get classes(){return t()},set classes(i){t(i),L()},get size(){return a()},set size(i){a(i),L()},$set:it,$on:(i,o)=>rt(e,i,o)},r=N1();return Je(()=>{Fe(r,"height",a()),Fe(r,"width",a()),Qt(r,0,Yn(t()))}),oe(n,r),tt(s)}var U1=ze("<!> <!> ",1),F1=ze("<!> <!> ",1),B1=ze("<!> <!> ",1),V1=ze('<hr class="tw_border-0 tw_border-b tw_border-secondary-light dark:tw_border-secondary-dark"/>'),H1=ze("<!> <!>",1);function bh(n,e){if(new.target)return nt({component:bh,...n});et(e,!1);const t={};let a=R(e,"callback",12),s=R(e,"callbackMetadata",12),r=R(e,"selfSubmitFunction",12,null),i=R(e,"stepMetadata",12),o=ue();function l(p){a().setProvider(p),s()&&s(s().derived.isReadyForSubmission=!0,!0),r()&&r()()}an(()=>G(a()),()=>{const p=a().getProviders().filter(w=>w.provider==="localAuthentication"),m=a().getProviders().filter(w=>w.provider!=="localAuthentication");p.length>0&&a().setProvider("localAuthentication"),ee(o,m.map(w=>({value:w.provider,text:w.uiConfig.buttonDisplayName})))}),un();var u={style:t,get callback(){return a()},set callback(p){a(p),L()},get callbackMetadata(){return s()},set callbackMetadata(p){s(p),L()},get selfSubmitFunction(){return r()},set selfSubmitFunction(p){r(p),L()},get stepMetadata(){return i()},set stepMetadata(p){i(p),L()},$set:it,$on:(p,m)=>rt(e,p,m)};xt();var c=H1(),d=lt(c);mr(d,1,()=>_(o),pr,(p,m)=>{Sl(p,{num:1,children:(w,E)=>{var v=Wt(),y=lt(v);{var b=P=>{nr(P,{classes:"tw_button-apple dark:tw_button-apple_dark",type:"button",width:"auto",onClick:()=>l(_(m).value),children:(D,V)=>{var B=U1(),Y=lt(B);vh(Y,{classes:"tw_inline-block tw_fill-current"});var Z=ke(Y,2);Lt(Z,{key:"continueWith"});var te=ke(Z);Je(()=>$t(te,` ${_(m),Q(()=>_(m).text)??""}`)),oe(D,B)},$$slots:{default:!0}})},S=Xi(()=>(_(m),Q(()=>_(m).text.toUpperCase().includes("APPLE")))),I=P=>{nr(P,{classes:"tw_button-facebook dark:tw_button-facebook_dark",type:"button",width:"auto",onClick:()=>l(_(m).value),children:(D,V)=>{var B=F1(),Y=lt(B);yh(Y,{classes:"tw_inline-block tw_fill-current"});var Z=ke(Y,2);Lt(Z,{key:"continueWith"});var te=ke(Z);Je(()=>$t(te,` ${_(m),Q(()=>_(m).text)??""}`)),oe(D,B)},$$slots:{default:!0}})},C=Xi(()=>(_(m),Q(()=>_(m).text.toUpperCase().includes("FACEBOOK")))),k=P=>{nr(P,{classes:"tw_button-google dark:tw_button-google_dark",type:"button",width:"auto",onClick:()=>l(_(m).value),children:(D,V)=>{var B=B1(),Y=lt(B);_h(Y,{classes:"tw_inline-block tw_fill-current"});var Z=ke(Y,2);Lt(Z,{key:"continueWith"});var te=ke(Z);Je(()=>$t(te,` ${_(m),Q(()=>_(m).text)??""}`)),oe(D,B)},$$slots:{default:!0}})},M=Xi(()=>(_(m),Q(()=>_(m).text.toUpperCase().includes("GOOGLE"))));ht(y,P=>{_(S)?P(b):_(C)?P(I,1):_(M)&&P(k,2)})}oe(w,v)},$$slots:{default:!0}})});var f=ke(d,2);{var h=p=>{Sl(p,{num:1,children:(m,w)=>{var E=V1();oe(m,E)},$$slots:{default:!0}})};ht(f,p=>{G(i()),Q(()=>i()&&i().derived.numOfCallbacks>1)&&p(h)})}return oe(n,c),Ot(e,"style",t),tt(u)}var j1=ze('<li class="tw_list-disc"> </li>'),z1=ze('<div class="tw_input-policies tw_w-full"><p class="tw_text-error-dark dark:tw_text-error-light tw_w-full"><!></p> <ul class="tw_text-error-dark dark:tw_text-error-light tw_w-full"></ul></div>'),G1=ze('<li class="tw_list-disc"> </li>'),W1=ze('<div class="tw_input-policies tw_w-full"><p class="tw_text-secondary-dark dark:tw_text-secondary-light tw_w-full"><!></p> <ul class="tw_text-secondary-dark dark:tw_text-secondary-light tw_w-full"></ul></div>');function kl(n,e){if(new.target)return nt({component:kl,...n});et(e,!1);let t=R(e,"callback",12),a=R(e,"key",12,void 0),s=R(e,"label",12),r=R(e,"messageKey",12),i=R(e,"showPolicies",12,!1),o=ue(ca(t(),s())),l=ue(Yu(t().getPolicies())),u=ue(_(o).reduce((m,w)=>(m=m.concat(w.restructured),m),[]));an(()=>(_(o),G(t()),G(s()),Yu),()=>{ee(o,ca(t(),s())),ee(l,Yu(t().getPolicies())),ee(u,_(o).reduce((m,w)=>(m=m.concat(w.restructured),m),[]))}),un();var c={get callback(){return t()},set callback(m){t(m),L()},get key(){return a()},set key(m){a(m),L()},get label(){return s()},set label(m){s(m),L()},get messageKey(){return r()},set messageKey(m){r(m),L()},get showPolicies(){return i()},set showPolicies(m){i(m),L()},$set:it,$on:(m,w)=>rt(e,m,w)};xt();var d=Wt(),f=lt(d);{var h=m=>{var w=z1(),E=_e(w),v=_e(E);Lt(v,{get key(){return r()}}),pe(E);var y=ke(E,2);mr(y,5,()=>_(u),pr,(b,S)=>{var I=j1(),C=_e(I,!0);pe(I),Je(()=>$t(C,(_(S),Q(()=>_(S).message)))),oe(b,I)}),pe(y),pe(w),Je(()=>Fe(w,"id",`${a()?`${a()}-message`:""}`)),oe(m,w)},p=m=>{var w=W1(),E=_e(w),v=_e(E);Lt(v,{get key(){return r()}}),pe(E);var y=ke(E,2);mr(y,5,()=>_(l),pr,(b,S)=>{var I=G1(),C=_e(I,!0);pe(I),Je(()=>$t(C,(_(S),Q(()=>_(S).message)))),oe(b,I)}),pe(y),pe(w),Je(()=>Fe(w,"id",`${a()?`${a()}-message`:""}`)),oe(m,w)};ht(f,m=>{_(u),Q(()=>_(u).length)?m(h):(G(i()),_(l),Q(()=>i()&&_(l).length)&&m(p,1))})}return oe(n,d),tt(c)}function wh(n,e){if(new.target)return nt({component:wh,...n});et(e,!1);const t=null,a=null;let s=R(e,"callback",12),r=R(e,"callbackMetadata",12),i=R(e,"style",28,()=>({}));const o=i().labels==="stacked"?da:Hi;let l=ue(),u=ue(),c=ue(),d=ue(),f=ue(),h=ue(),p=ue(),m=ue(),w=ue();function E(S){s().setInputValue(S.target.value)}an(()=>(G(s()),G(r()),_(d),_(h),_(m),ca),()=>{var S,I,C,k,M;ee(l,((C=(I=(S=s())==null?void 0:S.payload)==null?void 0:I.input)==null?void 0:C[0].name)||`password-${(k=r())==null?void 0:k.idx}`),ee(u,Zu(s())),ee(c,s().getOutputByName("name","")),ee(d,s().getPolicies()),ee(f,(M=s())==null?void 0:M.getInputValue()),ee(h,s().getPrompt()),ee(p,j_(_(d))),ee(m,ca(s(),_(h))),ee(w,!!_(m).length)}),un();var v={selfSubmitFunction:t,stepMetadata:a,get callback(){return s()},set callback(S){s(S),L()},get callbackMetadata(){return r()},set callbackMetadata(S){r(S),L()},get style(){return i()},set style(S){i(S),L()},$set:it,$on:(S,I)=>rt(e,S,I)};xt();var y=Wt(),b=lt(y);return Ra(b,s,S=>{{let I=Te(()=>(G(r()),Q(()=>{var P;return((P=r())==null?void 0:P.derived.isFirstInvalidInput)||!1}))),C=Te(()=>(G(Ge),_(c),_(h),Q(()=>Ge(_(c),null,_(h))))),k=Te(()=>(_(u),G(Ge),Q(()=>_(u)?Ge("inputRequiredError"):void 0))),M=Te(()=>!!_(w));o(S,{get isFirstInvalidInput(){return _(I)},get key(){return _(l)},get label(){return _(C)},get message(){return _(k)},onChange:E,get isRequired(){return _(u)},get isInvalid(){return _(w)},get type(){return _(p)},get showMessage(){return _(M)},get value(){return _(f)},children:(P,D)=>{kl(P,{get callback(){return s()},get key(){return _(l)},get label(){return _(h)},messageKey:"valueRequirements"})},$$slots:{default:!0}})}}),oe(n,y),Ot(e,"selfSubmitFunction",t),Ot(e,"stepMetadata",a),tt(v)}var q1=ze("<a><!></a>");function nc(n,e){if(new.target)return nt({component:nc,...n});et(e,!1);let t=R(e,"classes",12,""),a=R(e,"href",12),s=R(e,"target",12,"_self");var r={get classes(){return t()},set classes(l){t(l),L()},get href(){return a()},set href(l){a(l),L()},get target(){return s()},set target(l){s(l),L()},$set:it,$on:(l,u)=>rt(e,l,u)},i=q1(),o=_e(i);return cn(o,e,"default",{},null),pe(i),Je(()=>{Qt(i,1,`${t()} tw_link dark:tw_link_dark`),Fe(i,"href",a()),Fe(i,"target",s())}),oe(n,i),tt(r)}var K1=ze("<!> <!>",1),Y1=ze('<p class=" tw_text-error-dark dark:tw_text-error-light tw_input-spacing">Error: Configuration is missing <code>termsAndConditions</code> URL.</p>');function Eh(n,e){if(new.target)return nt({component:Eh,...n});et(e,!1);const t=()=>Ar(ml,"$linksStore",a),[a,s]=Wr(),r=null,i=null;let o=R(e,"style",28,()=>({})),l=R(e,"callback",12),u=R(e,"callbackMetadata",12);const c=o().checksAndRadios==="standard"?wl:_l;let d=ue();function f(y){l().setAccepted(y.target.checked)}an(()=>(G(l()),G(u())),()=>{var y,b,S,I;ee(d,((S=(b=(y=l())==null?void 0:y.payload)==null?void 0:b.input)==null?void 0:S[0].name)||`terms-${(I=u())==null?void 0:I.idx}`)}),un();var h={selfSubmitFunction:r,stepMetadata:i,get style(){return o()},set style(y){o(y),L()},get callback(){return l()},set callback(y){l(y),L()},get callbackMetadata(){return u()},set callbackMetadata(y){u(y),L()},$set:it,$on:(y,b)=>rt(e,y,b)};xt();var p=Wt(),m=lt(p);{var w=y=>{var b=K1(),S=lt(b);{let C=Te(()=>(t(),Q(()=>{var k;return(k=t())==null?void 0:k.termsAndConditions})));nc(S,{classes:"tw_block tw_mb-4",get href(){return _(C)},target:"_blank",children:(k,M)=>{An();var P=Cn();Je(D=>$t(P,D),[()=>(G(Ge),Q(()=>Ge("termsAndConditionsLinkText")))]),oe(k,P)},$$slots:{default:!0}})}var I=ke(S,2);{let C=Te(()=>(G(u()),Q(()=>{var k;return((k=u())==null?void 0:k.derived.isFirstInvalidInput)||!1})));c(I,{get isFirstInvalidInput(){return _(C)},get key(){return _(d)},onChange:f,value:!1,children:(k,M)=>{Lt(k,{key:"termsAndConditions"})},$$slots:{default:!0}})}oe(y,b)},E=y=>{var b=Y1();oe(y,b)};ht(m,y=>{t(),Q(()=>{var b;return(b=t())==null?void 0:b.termsAndConditions})?y(w):y(E,-1)})}oe(n,p),Ot(e,"selfSubmitFunction",r),Ot(e,"stepMetadata",i);var v=tt(h);return s(),v}function Sh(n,e){if(new.target)return nt({component:Sh,...n});et(e,!1);const t=null,a=null;let s=R(e,"callback",12),r=R(e,"callbackMetadata",12),i=R(e,"style",28,()=>({}));const o=i().labels==="stacked"?da:Hi;let l=ue(),u=ue(),c=ue(),d=ue();function f(w){s().setInput(w.target.value)}an(()=>(G(s()),G(r())),()=>{var w,E,v,y,b;ee(l,s().getType()),ee(u,((v=(E=(w=s())==null?void 0:w.payload)==null?void 0:E.input)==null?void 0:v[0].name)||`text-input-${(y=r())==null?void 0:y.idx}`),ee(c,s().getPrompt()),ee(d,(b=s())==null?void 0:b.getInputValue())}),un();var h={selfSubmitFunction:t,stepMetadata:a,get callback(){return s()},set callback(w){s(w),L()},get callbackMetadata(){return r()},set callbackMetadata(w){r(w),L()},get style(){return i()},set style(w){i(w),L()},$set:it,$on:(w,E)=>rt(e,w,E)};xt();var p=Wt(),m=lt(p);return Ra(m,s,w=>{{let E=Te(()=>(G(r()),Q(()=>{var b;return((b=r())==null?void 0:b.derived.isFirstInvalidInput)||!1}))),v=Te(()=>(G(Ge),G(Pr),_(c),_(l),Q(()=>Ge(Pr(_(c)||_(l)),null,_(c))))),y=Te(()=>typeof _(d)=="string"?_(d):"");o(w,{get isFirstInvalidInput(){return _(E)},get key(){return _(u)},get label(){return _(v)},onChange:f,type:"text",showMessage:!1,get value(){return _(y)}})}}),oe(n,p),Ot(e,"selfSubmitFunction",t),Ot(e,"stepMetadata",a),tt(h)}function rc(n,e){if(new.target)return nt({component:rc,...n});et(e,!1);const t=null,a=null,s=null,r={};let i=R(e,"callback",12),o=ue(i().getMessage()),l=ue(Va(_(o))),u=ue("info");function c(w){switch(w){case"0":return"info";case"1":return"warning";case"2":return"error";default:return"info"}}an(()=>(_(o),G(i()),Va),()=>{ee(o,i().getMessage()),ee(l,Va(_(o))),ee(u,c(i().getMessageType()))}),un();var d={callbackMetadata:t,selfSubmitFunction:a,stepMetadata:s,style:r,get callback(){return i()},set callback(w){i(w),L()},$set:it,$on:(w,E)=>rt(e,w,E)};xt();var f=Wt(),h=lt(f);{var p=w=>{{let E=Te(()=>(_(l),Q(()=>_(l).length<100?"tw_font-bold tw_mt-6":"tw_mt-6")));ms(w,{get classes(){return _(E)},children:(v,y)=>{var b=Wt(),S=lt(b);Yo(S,()=>_(l)),oe(v,b)},$$slots:{default:!0}})}},m=w=>{wi(w,{id:"",needsFocus:!1,get type(){return _(u)},children:(E,v)=>{An();var y=Cn();Je(()=>$t(y,_(l))),oe(E,y)},$$slots:{default:!0}})};ht(h,w=>{_(u)==="info"?w(p):w(m,-1)})}return oe(n,f),Ot(e,"callbackMetadata",t),Ot(e,"selfSubmitFunction",a),Ot(e,"stepMetadata",s),Ot(e,"style",r),tt(d)}var Z1=ze('<p class="tw_text-base tw_text-secondary-dark dark:tw_text-secondary-light tw_input-spacing"> </p>');function kh(n,e){if(new.target)return nt({component:kh,...n});et(e,!1);const t=null,a=null,s=null,r={};let i=R(e,"callback",12);const o=i().getType();var l={callbackMetadata:t,selfSubmitFunction:a,stepMetadata:s,style:r,get callback(){return i()},set callback(d){i(d),L()},$set:it,$on:(d,f)=>rt(e,d,f)};xt();var u=Z1(),c=_e(u);return pe(u),Je(()=>$t(c,`Unknown callback encountered: ${o??""}. Please contact support.`)),oe(n,u),Ot(e,"callbackMetadata",t),Ot(e,"selfSubmitFunction",a),Ot(e,"stepMetadata",s),Ot(e,"style",r),tt(l)}function Ch(n,e){if(new.target)return nt({component:Ch,...n});et(e,!1);const t=null,a=null;let s=R(e,"callback",12),r=R(e,"callbackMetadata",12),i=R(e,"style",28,()=>({}));const o=Zu(s());let l=ue(),u=ue(),c=ue(),d=ue();an(()=>(G(s()),G(r()),_(c),_(d),ca),()=>{var m,w,E,v;ee(l,((E=(w=(m=s())==null?void 0:m.payload)==null?void 0:w.input)==null?void 0:E[0].name)||`password-${(v=r())==null?void 0:v.idx}`),ee(c,s().getPrompt()),ee(d,ca(s(),_(c))),ee(u,!!_(d).length)}),un();var f={selfSubmitFunction:t,stepMetadata:a,get callback(){return s()},set callback(m){s(m),L()},get callbackMetadata(){return r()},set callbackMetadata(m){r(m),L()},get style(){return i()},set style(m){i(m),L()},$set:it,$on:(m,w)=>rt(e,m,w)};xt();var h=Wt(),p=lt(h);return Ra(p,s,m=>{ec(m,{get callback(){return s()},get callbackMetadata(){return r()},get isInvalid(){return _(u)},get isRequired(){return o},get key(){return _(l)},get showMessage(){return _(u)},get style(){return i()},children:(w,E)=>{kl(w,{get callback(){return s()},get label(){return _(c)},messageKey:"passwordRequirements",showPolicies:!0})},$$slots:{default:!0}})}),oe(n,h),Ot(e,"selfSubmitFunction",t),Ot(e,"stepMetadata",a),tt(f)}function Ih(n,e){if(new.target)return nt({component:Ih,...n});et(e,!1);const t=null,a=null;let s=R(e,"callback",12),r=R(e,"callbackMetadata",12),i=R(e,"style",28,()=>({}));const o=i().labels==="stacked"?da:Hi;let l=ue(),u=ue(),c=ue(),d=ue(),f=ue(),h=ue(),p=ue();function m(y){s().setInputValue(y.target.value)}an(()=>(G(s()),G(r()),_(f),_(p),ca),()=>{var y,b,S,I,C;ee(l,s().getType()),ee(u,((S=(b=(y=s())==null?void 0:y.payload)==null?void 0:b.input)==null?void 0:S[0].name)||`validated-name=${(I=r())==null?void 0:I.idx}`),ee(d,Zu(s())),ee(f,s().getPrompt()),ee(h,(C=s())==null?void 0:C.getInputValue()),ee(p,ca(s(),_(f))),ee(c,!!_(p).length)}),un();var w={selfSubmitFunction:t,stepMetadata:a,get callback(){return s()},set callback(y){s(y),L()},get callbackMetadata(){return r()},set callbackMetadata(y){r(y),L()},get style(){return i()},set style(y){i(y),L()},$set:it,$on:(y,b)=>rt(e,y,b)};xt();var E=Wt(),v=lt(E);return Ra(v,s,y=>{{let b=Te(()=>(G(r()),Q(()=>{var k;return((k=r())==null?void 0:k.derived.isFirstInvalidInput)||!1}))),S=Te(()=>(G(Ge),G(Pr),_(l),_(f),Q(()=>Ge(Pr(_(l)),null,_(f))))),I=Te(()=>(_(d),G(Ge),Q(()=>_(d)?Ge("inputRequiredError"):void 0))),C=Te(()=>typeof _(h)=="string"?_(h):"");o(y,{get isFirstInvalidInput(){return _(b)},get isRequired(){return _(d)},get isInvalid(){return _(c)},get key(){return _(u)},get label(){return _(S)},get message(){return _(I)},onChange:m,showMessage:!1,type:"text",get value(){return _(C)},children:(k,M)=>{kl(k,{get callback(){return s()},get key(){return _(u)},get label(){return _(f)},messageKey:"usernameRequirements"})},$$slots:{default:!0}})}}),oe(n,E),Ot(e,"selfSubmitFunction",t),Ot(e,"stepMetadata",a),tt(w)}var J1=ze('<div class="tw_text-center tw_w-full tw_py-4"><!> <!></div>');function Th(n,e){if(new.target)return nt({component:Th,...n});et(e,!1);let t=R(e,"callback",12),a=R(e,"callbackMetadata",12,null),s=R(e,"stepMetadata",12,null),r=R(e,"selfSubmitFunction",12);const i=new xm({});let o=t().getMessage();async function l(){var w,E;const h=((w=t())==null?void 0:w.isLocationRequired())??!1,p=((E=t())==null?void 0:E.isMetadataRequired())??!1,m=await i.getProfile({location:h,metadata:p});return t().setProfile(m),a()&&a(a().derived.isReadyForSubmission=!0,!0),r()&&r()()}l();var u={get callback(){return t()},set callback(h){t(h),L()},get callbackMetadata(){return a()},set callbackMetadata(h){a(h),L()},get stepMetadata(){return s()},set stepMetadata(h){s(h),L()},get selfSubmitFunction(){return r()},set selfSubmitFunction(h){r(h),L()},$set:it,$on:(h,p)=>rt(e,h,p)};xt();var c=Wt(),d=lt(c);{var f=h=>{var p=J1(),m=_e(p);xr(m,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_mb-6 tw_w-24"});var w=ke(m,2);ms(w,{children:(E,v)=>{An();var y=Cn();Je(()=>$t(y,o)),oe(E,y)},$$slots:{default:!0}}),pe(p),oe(h,p)};ht(d,h=>{G(s()),Q(()=>{var p;return((p=s())==null?void 0:p.derived.numOfCallbacks)===1})&&h(f)})}return oe(n,c),tt(u)}function X1(n){return n.match("h-captcha")}function Cl({nameOfCaptcha:n,siteKey:e}){if(n==="hcaptcha"&&window.hcaptcha)return window.hcaptcha.render("fr-recaptcha",{sitekey:e,callback:"frHandleCaptcha","expired-callback":"frHandleExpiredCallback","chalexpired-callback":"frHandleExpiredCallback","error-callback":"frHandleErrorCallback"});if(n==="grecaptcha"&&window.grecaptcha)return window.grecaptcha.render("fr-recaptcha",{sitekey:e,callback:window.frHandleCaptcha,"expired-callback":window.frHandleExpiredCallback})}function $1(n){const e=(n==null?void 0:n.getSiteKey())??"",t=(n==null?void 0:n.getOutputByName("captchaDivClass","h-captcha"))??"h-captcha";return X1(t)?()=>Cl({nameOfCaptcha:"hcaptcha",siteKey:e}):()=>Cl({nameOfCaptcha:"grecaptcha",siteKey:e})}function Q1(n){return e=>{n==null||n.setResult(e)}}var e0=ze('<div id="fr-recaptcha" data-expired-callback="frHandleExpiredCallback" data-chalexpired-callback="frHandleExpiredCallback" data-error-callback="frHandleErrorCallback" data-callback="frHandleCaptcha"></div>');function Ah(n,e){var m,w,E;if(new.target)return nt({component:Ah,...n});et(e,!1);let t=R(e,"callback",12);const a=null,s=null,r={};let i=ue("");const o=((m=t())==null?void 0:m.getSiteKey())??"";let l=(w=t())==null?void 0:w.getOutputByName("reCaptchaV3",!1);const u=((E=t())==null?void 0:E.getOutputByName("captchaDivClass","h-captcha"))??"h-captcha";Di(()=>{l||t()&&(window.frHandleCaptchaError=$1(t()),window.frHandleCaptcha=Q1(t()),window.frHandleExpiredCallback=function(){var y;(y=t())==null||y.setResult(""),Cl({nameOfCaptcha:"hcaptcha",siteKey:o})},Cl({nameOfCaptcha:u==="g-recaptcha"?"grecaptcha":"hcaptcha",siteKey:o}))});function c(){if(l&&_(i).length)try{window.grecaptcha.ready(async function(){var y;const v=await window.grecaptcha.execute(o,{action:_(i)});(y=t())==null||y.setResult(v)})}catch(v){throw new Error(`Error executing recaptcha. Please make sure you have passed a siteKey and you have loaded the google recaptcha script in your app prior to this Error: ${v}`)}}bi.subscribe(v=>{ee(i,(v==null?void 0:v.recaptchaAction)??"")}),an(()=>_(i),()=>{_(i).length&&c()}),un();var d={selfSubmitFunction:a,stepMetadata:s,style:r,get callback(){return t()},set callback(v){t(v),L()},$set:it,$on:(v,y)=>rt(e,v,y)};xt();var f=Wt(),h=lt(f);{var p=v=>{var y=e0();Je(()=>{Qt(y,1,`${u} tw_flex-1 tw_w-full tw_input-spacing`),Fe(y,"data-sitekey",o)}),oe(v,y)};ht(h,v=>{l===!1&&v(p)})}return oe(n,f),Ot(e,"selfSubmitFunction",a),Ot(e,"stepMetadata",s),Ot(e,"style",r),tt(d)}function Oh(n,e){if(new.target)return nt({component:Oh,...n});et(e,!1);const t=null,a=null,s=null,r=null,i={};var o={callback:t,callbackMetadata:a,selfSubmitFunction:s,stepMetadata:r,style:i,$set:it,$on:(l,u)=>rt(e,l,u)};return Ot(e,"callback",t),Ot(e,"callbackMetadata",a),Ot(e,"selfSubmitFunction",s),Ot(e,"stepMetadata",r),Ot(e,"style",i),tt(o)}var t0=ze("<p><!></p>"),n0=ze('<div class="tw_text-center tw_w-full tw_py-4"><!></div>');function Ph(n,e){if(new.target)return nt({component:Ph,...n});et(e,!1);let t=R(e,"callback",12),a=R(e,"selfSubmitFunction",12,null),s=R(e,"pingProtect",28,()=>({envId:""})),r=ue(!1);Di(()=>{async function u(){try{await Or.getData()}catch(c){c instanceof Error?t().setClientError(c.message):t().setClientError("An error occurred while initializing PingProtect")}return a()&&a()()}u()}),an(()=>(_(r),G(s()),Or),()=>{var u;ee(r,((u=s())==null?void 0:u.behavioralDataCollection)??!1),typeof window<"u"&&(_(r)===!0?Or.pauseBehavioralData():Or.resumeBehavioralData())}),un();var i={get callback(){return t()},set callback(u){t(u),L()},get selfSubmitFunction(){return a()},set selfSubmitFunction(u){a(u),L()},get pingProtect(){return s()},set pingProtect(u){s(u),L()},$set:it,$on:(u,c)=>rt(e,u,c)};xt();var o=n0(),l=_e(o);return xr(l,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_mb-6 tw_w-24",children:(u,c)=>{var d=t0(),f=_e(d);Lt(f,{key:"signalsEvaluation"}),pe(d),oe(u,d)},$$slots:{default:!0}}),pe(o),oe(n,o),tt(i)}var r0=ze("<div><!></div>");function xh(n,e){if(new.target)return nt({component:xh,...n});et(e,!1);const t={},a=null;let s=R(e,"callback",12),r=R(e,"selfSubmitFunction",12,null),i=ue(!1);Di(()=>{async function d(){const f=s().getConfig();try{await Or.start(f),ee(i,!0)}catch(h){h instanceof Error?s().setClientError(h.message):s().setClientError("An error occurred while initializing PingProtect")}return r()&&r()()}d()});var o={style:t,stepMetadata:a,get callback(){return s()},set callback(d){s(d),L()},get selfSubmitFunction(){return r()},set selfSubmitFunction(d){r(d),L()},$set:it,$on:(d,f)=>rt(e,d,f)};xt();var l=r0(),u=_e(l);{var c=d=>{xr(d,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_mb-6 tw_w-24"})};ht(u,d=>{_(i)||d(c)})}return pe(l),oe(n,l),Ot(e,"style",t),Ot(e,"stepMetadata",a),tt(o)}function ja(n,e){if(new.target)return nt({component:ja,...n});et(e,!1);let t=R(e,"props",12),a=ue(),s=ue(),r=ue(),i=ue(),o=ue(),l=ue(),u=ue(),c=ue(),d=ue(),f=ue(),h=ue(),p=ue(),m=ue(),w=ue(),E=ue(),v=ue(),y=ue(),b=ue(),S=ue(),I=ue(),C=ue(),k=ue(),M=ue(),P=ue();an(()=>(_(a),G(t()),he),()=>{switch(ee(a,t().callback.getType()),_(a)){case he.BooleanAttributeInputCallback:ee(s,t().callback);break;case he.ChoiceCallback:ee(r,t().callback);break;case he.ConfirmationCallback:ee(i,t().callback);break;case he.HiddenValueCallback:ee(o,t().callback);break;case he.KbaCreateCallback:ee(l,t().callback);break;case he.NameCallback:ee(u,t().callback);break;case he.ReCaptchaCallback:ee(C,t().callback);break;case he.PasswordCallback:ee(c,t().callback);break;case he.PollingWaitCallback:ee(d,t().callback);break;case he.RedirectCallback:ee(f,t().callback);break;case he.SelectIdPCallback:ee(h,t().callback);break;case he.StringAttributeInputCallback:ee(p,t().callback);break;case he.ValidatedCreatePasswordCallback:ee(m,t().callback);break;case he.ValidatedCreateUsernameCallback:ee(w,t().callback);break;case he.TermsAndConditionsCallback:ee(E,t().callback);break;case he.TextInputCallback:ee(v,t().callback);break;case he.TextOutputCallback:ee(y,t().callback);break;case he.SuspendedTextOutputCallback:ee(b,t().callback);break;case he.DeviceProfileCallback:ee(I,t().callback);break;case he.MetadataCallback:ee(S,t().callback);break;case he.PingOneProtectEvaluationCallback:ee(k,t().callback);break;case he.PingOneProtectInitializeCallback:ee(M,t().callback);break;default:ee(P,t().callback)}}),un();var D={get props(){return t()},set props(Me){t(Me),L()},$set:it,$on:(Me,g)=>rt(e,Me,g)};xt();var V=Wt(),B=lt(V);{var Y=Me=>{const g=Te(()=>(G(t()),_(s),Q(()=>({...t(),callback:_(s)}))));ih(Me,Tn(()=>_(g)))},Z=Me=>{const g=Te(()=>(G(t()),_(r),Q(()=>({...t(),callback:_(r)}))));lh(Me,Tn(()=>_(g)))},te=Me=>{const g=Te(()=>(G(t()),_(i),Q(()=>({...t(),callback:_(i)}))));uh(Me,Tn(()=>_(g)))},$=Me=>{const g=Te(()=>(G(t()),_(o),Q(()=>({...t(),callback:_(o)}))));ch(Me,Tn(()=>_(g)))},H=Me=>{const g=Te(()=>(G(t()),_(l),Q(()=>({...t(),callback:_(l)}))));fh(Me,Tn(()=>_(g)))},A=Me=>{const g=Te(()=>(G(t()),_(u),Q(()=>({...t(),callback:_(u)}))));hh(Me,Tn(()=>_(g)))},N=Me=>{const g=Te(()=>(G(t()),_(c),Q(()=>({...t(),callback:_(c)}))));ph(Me,Tn(()=>_(g)))},le=Me=>{const g=Te(()=>(G(t()),_(d),Q(()=>({...t(),callback:_(d)}))));tc(Me,Tn(()=>_(g)))},K=Me=>{const g=Te(()=>(G(t()),_(f),Q(()=>({...t(),callback:_(f)}))));mh(Me,Tn(()=>_(g)))},ae=Me=>{const g=Te(()=>(G(t()),_(h),Q(()=>({...t(),callback:_(h)}))));bh(Me,Tn(()=>_(g)))},ve=Me=>{const g=Te(()=>(G(t()),_(p),Q(()=>({...t(),callback:_(p)}))));wh(Me,Tn(()=>_(g)))},Le=Me=>{const g=Te(()=>(G(t()),_(m),Q(()=>({...t(),callback:_(m)}))));Ch(Me,Tn(()=>_(g)))},Oe=Me=>{const g=Te(()=>(G(t()),_(w),Q(()=>({...t(),callback:_(w)}))));Ih(Me,Tn(()=>_(g)))},Ne=Me=>{const g=Te(()=>(G(t()),_(E),Q(()=>({...t(),callback:_(E)}))));Eh(Me,Tn(()=>_(g)))},Re=Me=>{const g=Te(()=>(G(t()),_(v),Q(()=>({...t(),callback:_(v)}))));Sh(Me,Tn(()=>_(g)))},He=Me=>{const g=Te(()=>(G(t()),_(y),Q(()=>({...t(),callback:_(y)}))));rc(Me,Tn(()=>_(g)))},De=Me=>{const g=Te(()=>(G(t()),_(b),Q(()=>({...t(),callback:_(b)}))));rc(Me,Tn(()=>_(g)))},at=Me=>{const g=Te(()=>(G(t()),_(I),Q(()=>({...t(),callback:_(I)}))));Th(Me,Tn(()=>_(g)))},Pt=Me=>{const g=Te(()=>(G(t()),_(S),Q(()=>({...t(),callback:_(S)}))));Oh(Me,Tn(()=>_(g)))},wt=Me=>{const g=Te(()=>(G(t()),_(C),Q(()=>({...t(),callback:_(C)}))));Ah(Me,Tn(()=>_(g)))},Tt=Me=>{const g=Te(()=>(G(t()),_(k),Q(()=>({...t(),callback:_(k)}))));Ph(Me,Tn(()=>_(g)))},en=Me=>{const g=Te(()=>(G(t()),_(M),Q(()=>({...t(),callback:_(M)}))));xh(Me,Tn(()=>_(g)))},Ut=Me=>{const g=Te(()=>(G(t()),_(P),Q(()=>({...t(),callback:_(P)}))));kh(Me,Tn(()=>_(g)))};ht(B,Me=>{_(a),G(he),Q(()=>_(a)===he.BooleanAttributeInputCallback)?Me(Y):(_(a),G(he),Q(()=>_(a)===he.ChoiceCallback)?Me(Z,1):(_(a),G(he),Q(()=>_(a)===he.ConfirmationCallback)?Me(te,2):(_(a),G(he),Q(()=>_(a)===he.HiddenValueCallback)?Me($,3):(_(a),G(he),Q(()=>_(a)===he.KbaCreateCallback)?Me(H,4):(_(a),G(he),Q(()=>_(a)===he.NameCallback)?Me(A,5):(_(a),G(he),Q(()=>_(a)===he.PasswordCallback)?Me(N,6):(_(a),G(he),Q(()=>_(a)===he.PollingWaitCallback)?Me(le,7):(_(a),G(he),Q(()=>_(a)===he.RedirectCallback)?Me(K,8):(_(a),G(he),Q(()=>_(a)===he.SelectIdPCallback)?Me(ae,9):(_(a),G(he),Q(()=>_(a)===he.StringAttributeInputCallback)?Me(ve,10):(_(a),G(he),Q(()=>_(a)===he.ValidatedCreatePasswordCallback)?Me(Le,11):(_(a),G(he),Q(()=>_(a)===he.ValidatedCreateUsernameCallback)?Me(Oe,12):(_(a),G(he),Q(()=>_(a)===he.TermsAndConditionsCallback)?Me(Ne,13):(_(a),G(he),Q(()=>_(a)===he.TextInputCallback)?Me(Re,14):(_(a),G(he),Q(()=>_(a)===he.TextOutputCallback)?Me(He,15):(_(a),G(he),Q(()=>_(a)===he.SuspendedTextOutputCallback)?Me(De,16):(_(a),G(he),Q(()=>_(a)===he.DeviceProfileCallback)?Me(at,17):(_(a),G(he),Q(()=>_(a)===he.MetadataCallback)?Me(Pt,18):(_(a),G(he),Q(()=>_(a)===he.ReCaptchaCallback)?Me(wt,19):(_(a),G(he),Q(()=>_(a)===he.PingOneProtectEvaluationCallback)?Me(Tt,20):(_(a),G(he),Q(()=>_(a)===he.PingOneProtectInitializeCallback)?Me(en,21):Me(Ut,-1))))))))))))))))))))))})}return oe(n,V),tt(D)}var i0=ze('<div class="tw_flex tw_justify-center"><!></div>'),a0=ze('<!> <header><h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_text-center tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p></header> <!> <!> <!> <!>',1);function ic(n,e){if(new.target)return nt({component:ic,...n});et(e,!1);const t=()=>Ar(oi,"$styleStore",a),[a,s]=Wr();let r=R(e,"componentStyle",12),i=R(e,"form",12),o=R(e,"formEl",12,null),l=R(e,"journey",12),u=R(e,"metadata",12),c=R(e,"step",12);const d="genericStepFailureMessage",f="genericStepHeader",h="genericStepForm";let p=ue(!1),m=ue(""),w=ue("genericStepHeader"),E=ue(!1),v=ue();function y(){var C,k;(k=(C=u())==null?void 0:C.step)!=null&&k.derived.isStepSelfSubmittable()&&b()}function b(){var C;ee(p,!1),ee(E,!1),(C=i())==null||C.submit()}ar(()=>{var C;(C=i())!=null&&C.message?(ee(w,d),ee(p,!0),ee(E,!1)):(ee(w,f),ee(p,!1),ee(E,!0))}),Di(()=>yl(_(v),l())),an(()=>(G(c()),G(i())),()=>{var C;jf(c())&&ra.redirect(c()),ee(m,Ha((C=i())==null?void 0:C.message))}),un();var S={get componentStyle(){return r()},set componentStyle(C){r(C),L()},get form(){return i()},set form(C){i(C),L()},get formEl(){return o()},set formEl(C){o(C),L()},get journey(){return l()},set journey(C){l(C),L()},get metadata(){return u()},set metadata(C){u(C),L()},get step(){return c()},set step(C){c(C),L()},$set:it,$on:(C,k)=>rt(e,C,k)};xt(),Fi(n,{get ariaDescribedBy(){return _(w)},id:h,get needsFocus(){return _(E)},onSubmitWhenValid:b,get formEl(){return o()},set formEl(C){o(C)},children:(C,k)=>{var M=a0(),P=lt(M);{var D=Oe=>{var Ne=i0(),Re=_e(Ne);nh(Re,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),pe(Ne),oe(Oe,Ne)};ht(P,Oe=>{G(i()),G(r()),Q(()=>{var Ne;return((Ne=i())==null?void 0:Ne.icon)&&r()!=="inline"})&&Oe(D)})}var V=ke(P,2);Fe(V,"id",f);var B=_e(V),Y=_e(B);{let Oe=Te(()=>(G(c()),Q(()=>{var Ne;return((Ne=c())==null?void 0:Ne.getHeader())||""})));vl(Y,{html:!0,get string(){return _(Oe)}})}pe(B);var Z=ke(B,2),te=_e(Z);{let Oe=Te(()=>(G(c()),Q(()=>{var Ne;return((Ne=c())==null?void 0:Ne.getDescription())||""})));vl(te,{html:!0,get string(){return _(Oe)}})}pe(Z),pe(V),Hn(V,Oe=>ee(v,Oe),()=>_(v));var $=ke(V,2);{var H=Oe=>{wi(Oe,{id:d,get needsFocus(){return _(p)},type:"error",children:(Ne,Re)=>{An();var He=Cn();Je(De=>$t(He,De),[()=>(G(Ge),_(m),G(i()),Q(()=>{var De;return Ge(_(m),null,(De=i())==null?void 0:De.message)}))]),oe(Ne,He)},$$slots:{default:!0}})};ht($,Oe=>{G(i()),Q(()=>{var Ne;return(Ne=i())==null?void 0:Ne.message})&&Oe(H)})}var A=ke($,2);mr(A,1,()=>(G(c()),Q(()=>{var Oe;return(Oe=c())==null?void 0:Oe.callbacks})),pr,(Oe,Ne,Re)=>{{let He=Te(()=>(_(Ne),G(u()),t(),Q(()=>{var De,at;return{callback:_(Ne),callbackMetadata:(De=u())==null?void 0:De.callbacks[Re],selfSubmitFunction:y,stepMetadata:((at=u())==null?void 0:at.step)&&{...u().step},style:t()}})));ja(Oe,{get props(){return _(He)}})}});var N=ke(A,2);{var le=Oe=>{{let Ne=Te(()=>(G(l()),Q(()=>{var Re;return(Re=l())==null?void 0:Re.loading})));nr(Oe,{get busy(){return _(Ne)},style:"primary",type:"submit",width:"full",children:(Re,He)=>{Lt(Re,{key:"nextButton"})},$$slots:{default:!0}})}},K=Xi(()=>(G(u()),Q(()=>{var Oe,Ne;return!((Ne=(Oe=u())==null?void 0:Oe.step)!=null&&Ne.derived.isStepSelfSubmittable())}))),ae=Oe=>{{let Ne=Te(()=>(G(l()),Q(()=>{var Re;return(Re=l())==null?void 0:Re.loading})));nr(Oe,{get busy(){return _(Ne)},style:"primary",type:"submit",width:"full",children:(Re,He)=>{Lt(Re,{key:"nextButton"})},$$slots:{default:!0}})}},ve=Oe=>{{let Ne=Te(()=>(G(l()),Q(()=>{var Re;return(Re=l())==null?void 0:Re.loading})));nr(Oe,{get busy(){return _(Ne)},style:"primary",type:"submit",width:"full",children:(Re,He)=>{Lt(Re,{key:"nextButton"})},$$slots:{default:!0}})}};ht(N,Oe=>{_(K)?Oe(le):(G(u()),Q(()=>{var Ne,Re;return(Re=(Ne=u())==null?void 0:Ne.step)==null?void 0:Re.derived.isUserInputOptional})?Oe(ae,1):(G(u()),Q(()=>{var Ne,Re;return!((Re=(Ne=u())==null?void 0:Ne.step)!=null&&Re.derived.numOfSelfSubmittableCbs)})&&Oe(ve,2)))})}var Le=ke(N,2);Ku(Le,{get journey(){return l()}}),oe(C,M)},$$slots:{default:!0},$$legacy:!0});var I=tt(S);return s(),I}var s0=Kn('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"></path><path d="M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"></path><title><!></title></svg>');function ac(n,e){if(new.target)return nt({component:ac,...n});et(e,!1);let t=R(e,"classes",12,""),a=R(e,"size",12,"24px");var s={get classes(){return t()},set classes(l){t(l),L()},get size(){return a()},set size(l){a(l),L()},$set:it,$on:(l,u)=>rt(e,l,u)},r=s0(),i=ke(_e(r),2),o=_e(i);return cn(o,e,"default",{},null),pe(i),pe(r),Je(()=>{Qt(r,0,Yn(t())),Fe(r,"height",a()),Fe(r,"width",a())}),oe(n,r),tt(s)}var o0=ze('<div class="tw_flex tw_justify-center"><!></div>'),l0=ze('<!> <h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_text-center tw_text-sm tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p>',1),u0=ze("<!> <!> <!> <!>",1);function Lh(n,e){if(new.target)return nt({component:Lh,...n});et(e,!1);const t=()=>Ar(oi,"$style",a),[a,s]=Wr();let r=R(e,"componentStyle",12),i=R(e,"form",12),o=R(e,"formEl",12,null),l=R(e,"journey",12),u=R(e,"metadata",12),c=R(e,"step",12),d=ue(!1),f=ue(),h=ue(""),p=ue([]);function m(){var v,y,b;(y=(v=u())==null?void 0:v.step)!=null&&y.derived.isStepSelfSubmittable()&&((b=i())==null||b.submit())}ar(()=>{var v;ee(d,!!((v=i())!=null&&v.message))}),an(()=>(G(i()),G(c()),he),()=>{var y;ee(h,Ha((y=i())==null?void 0:y.message));const v=c().getCallbacksOfType(he.ConfirmationCallback);if(v.length){const b=v[0];ee(f,b.getOptions().map((S,I)=>({value:`${I}`,text:S})))}ee(p,c().callbacks.filter(b=>b.getType()!==he.ConfirmationCallback))}),un();var w={get componentStyle(){return r()},set componentStyle(v){r(v),L()},get form(){return i()},set form(v){i(v),L()},get formEl(){return o()},set formEl(v){o(v),L()},get journey(){return l()},set journey(v){l(v),L()},get metadata(){return u()},set metadata(v){u(v),L()},get step(){return c()},set step(v){c(v),L()},$set:it,$on:(v,y)=>rt(e,v,y)};xt();{let v=Te(()=>(G(i()),Q(()=>{var y;return(y=i())==null?void 0:y.submit})));Fi(n,{ariaDescribedBy:"formFailureMessageAlert",get onSubmitWhenValid(){return _(v)},get formEl(){return o()},set formEl(y){o(y)},children:(y,b)=>{var S=u0(),I=lt(S);{var C=Z=>{var te=l0(),$=lt(te);{var H=ae=>{var ve=o0(),Le=_e(ve);ac(Le,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),pe(ve),oe(ae,ve)};ht($,ae=>{G(i()),Q(()=>{var ve;return(ve=i())==null?void 0:ve.icon})&&ae(H)})}var A=ke($,2),N=_e(A);Lt(N,{key:"twoFactorAuthentication"}),pe(A);var le=ke(A,2),K=_e(le);Lt(K,{key:"useTheAuthenticatorAppOnYourPhone"}),pe(le),oe(Z,te)};ht(I,Z=>{r()!=="inline"&&Z(C)})}var k=ke(I,2);{var M=Z=>{wi(Z,{id:"formFailureMessageAlert",get needsFocus(){return _(d)},type:"error",children:(te,$)=>{An();var H=Cn();Je(A=>$t(H,A),[()=>(G(Ge),_(h),G(i()),Q(()=>{var A;return Ge(_(h),null,(A=i())==null?void 0:A.message)}))]),oe(te,H)},$$slots:{default:!0}})};ht(k,Z=>{G(i()),Q(()=>{var te;return(te=i())==null?void 0:te.message})&&Z(M)})}var P=ke(k,2);mr(P,1,()=>_(p),pr,(Z,te,$)=>{{let H=Te(()=>(_(te),G(u()),t(),Q(()=>{var A,N;return{callback:_(te),callbackMetadata:(A=u())==null?void 0:A.callbacks[$],selfSubmitFunction:m,stepMetadata:((N=u())==null?void 0:N.step)&&{...u().step},style:t()}})));ja(Z,{get props(){return _(H)}})}});var D=ke(P,2);{var V=Z=>{{let te=Te(()=>(G(l()),Q(()=>{var $;return($=l())==null?void 0:$.loading})));nr(Z,{get busy(){return _(te)},style:"primary",type:"submit",width:"full",children:($,H)=>{Lt($,{get key(){return _(f),Q(()=>_(f)[0].text)}})},$$slots:{default:!0}})}},B=Z=>{{let te=Te(()=>(G(l()),Q(()=>{var $;return($=l())==null?void 0:$.loading})));nr(Z,{get busy(){return _(te)},style:"primary",type:"submit",width:"full",children:($,H)=>{Lt($,{key:"loginButton"})},$$slots:{default:!0}})}},Y=Xi(()=>(G(u()),Q(()=>{var Z,te,$,H;return((te=(Z=u())==null?void 0:Z.step)==null?void 0:te.derived.isUserInputOptional)||!((H=($=u())==null?void 0:$.step)!=null&&H.derived.isStepSelfSubmittable())})));ht(D,Z=>{_(f),Q(()=>{var te;return(te=_(f))==null?void 0:te.length})?Z(V):_(Y)&&Z(B,1)})}oe(y,S)},$$slots:{default:!0},$$legacy:!0})}var E=tt(w);return s(),E}var c0=Kn('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"></path><path d="M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"></path><title><!></title></svg>');function Mh(n,e){if(new.target)return nt({component:Mh,...n});et(e,!1);let t=R(e,"classes",12,""),a=R(e,"size",12,"24px");var s={get classes(){return t()},set classes(l){t(l),L()},get size(){return a()},set size(l){a(l),L()},$set:it,$on:(l,u)=>rt(e,l,u)},r=c0(),i=ke(_e(r),2),o=_e(i);return cn(o,e,"default",{},null),pe(i),pe(r),Je(()=>{Qt(r,0,Yn(t())),Fe(r,"height",a()),Fe(r,"width",a())}),oe(n,r),tt(s)}var d0=ze('<div class="tw_flex tw_justify-center"><!></div>'),f0=ze('<!> <h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_text-base tw_text-center tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p>',1),h0=ze("<!> <!> <!> <!>",1);function Rh(n,e){if(new.target)return nt({component:Rh,...n});et(e,!1);const t=()=>Ar(oi,"$styleStore",a),[a,s]=Wr();let r=R(e,"componentStyle",12),i=R(e,"form",12),o=R(e,"formEl",12,null),l=R(e,"journey",12),u=R(e,"metadata",12),c=R(e,"step",12),d=ue(!1),f=ue(""),h=ue();function p(){var E,v,y;(v=(E=u())==null?void 0:E.step)!=null&&v.derived.isStepSelfSubmittable()&&((y=i())==null||y.submit())}ar(()=>{var E;ee(d,!!((E=i())!=null&&E.message))}),Di(()=>{r()==="modal"&&yl(_(h),l())}),an(()=>G(i()),()=>{var E;ee(f,Ha((E=i())==null?void 0:E.message))}),un();var m={get componentStyle(){return r()},set componentStyle(E){r(E),L()},get form(){return i()},set form(E){i(E),L()},get formEl(){return o()},set formEl(E){o(E),L()},get journey(){return l()},set journey(E){l(E),L()},get metadata(){return u()},set metadata(E){u(E),L()},get step(){return c()},set step(E){c(E),L()},$set:it,$on:(E,v)=>rt(e,E,v)};xt();{let E=Te(()=>(G(i()),Q(()=>{var v;return(v=i())==null?void 0:v.submit})));Fi(n,{ariaDescribedBy:"formFailureMessageAlert",get onSubmitWhenValid(){return _(E)},get formEl(){return o()},set formEl(v){o(v)},children:(v,y)=>{var b=h0(),S=lt(b);{var I=B=>{var Y=f0(),Z=lt(Y);{var te=le=>{var K=d0(),ae=_e(K);Mh(ae,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),pe(K),oe(le,K)};ht(Z,le=>{G(i()),Q(()=>{var K;return(K=i())==null?void 0:K.icon})&&le(te)})}var $=ke(Z,2),H=_e($);Lt(H,{key:"registerHeader"}),pe($);var A=ke($,2),N=_e(A);Lt(N,{key:"alreadyHaveAnAccount",html:!0}),pe(A),Hn(A,le=>ee(h,le),()=>_(h)),oe(B,Y)};ht(S,B=>{r()!=="inline"&&B(I)})}var C=ke(S,2);{var k=B=>{wi(B,{id:"formFailureMessageAlert",get needsFocus(){return _(d)},type:"error",children:(Y,Z)=>{An();var te=Cn();Je($=>$t(te,$),[()=>(G(Ge),_(f),G(i()),Q(()=>{var $;return Ge(_(f),null,($=i())==null?void 0:$.message)}))]),oe(Y,te)},$$slots:{default:!0}})};ht(C,B=>{G(i()),Q(()=>i().message)&&B(k)})}var M=ke(C,2);mr(M,1,()=>(G(c()),Q(()=>{var B;return(B=c())==null?void 0:B.callbacks})),pr,(B,Y,Z)=>{{let te=Te(()=>(_(Y),G(u()),t(),Q(()=>{var $,H;return{callback:_(Y),callbackMetadata:($=u())==null?void 0:$.callbacks[Z],selfSubmitFunction:p,stepMetadata:((H=u())==null?void 0:H.step)&&{...u().step},style:t()}})));ja(B,{get props(){return _(te)}})}});var P=ke(M,2);{var D=B=>{{let Y=Te(()=>(G(l()),Q(()=>{var Z;return(Z=l())==null?void 0:Z.loading})));nr(B,{get busy(){return _(Y)},style:"primary",type:"submit",width:"full",children:(Z,te)=>{Lt(Z,{key:"registerButton"})},$$slots:{default:!0}})}},V=Xi(()=>(G(u()),Q(()=>{var B,Y,Z,te;return((Y=(B=u())==null?void 0:B.step)==null?void 0:Y.derived.isUserInputOptional)||!((te=(Z=u())==null?void 0:Z.step)!=null&&te.derived.isStepSelfSubmittable())})));ht(P,B=>{_(V)&&B(D)})}oe(v,b)},$$slots:{default:!0},$$legacy:!0})}var w=tt(m);return s(),w}var g0=ze('<div class="tw_flex tw_justify-center"><!></div>'),p0=ze('<!> <h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1>',1),m0=ze('<p class=" tw_my-4 tw_text-base tw_text-center tw_text-link-dark dark:tw_text-link-light"><button> </button> <button> </button></p> <hr class="tw_border-0 tw_border-b tw_border-secondary-light dark:tw_border-secondary-dark"/> <p class="tw_text-base tw_text-center tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p>',1),v0=ze("<!> <!> <!> <!> <!>",1);function Dh(n,e){if(new.target)return nt({component:Dh,...n});et(e,!1);const t=()=>Ar(oi,"$styleStore",a),[a,s]=Wr();let r=R(e,"componentStyle",12),i=R(e,"form",12),o=R(e,"formEl",12,null),l=R(e,"journey",12),u=R(e,"metadata",12),c=R(e,"step",12),d=ue(!1),f=ue(""),h=ue();function p(){var E,v,y;(v=(E=u())==null?void 0:E.step)!=null&&v.derived.isStepSelfSubmittable()&&((y=i())==null||y.submit())}ar(()=>{var E;ee(d,!!((E=i())!=null&&E.message))}),Di(()=>{r()==="modal"&&yl(_(h),l())}),an(()=>G(i()),()=>{var E;ee(f,Ha((E=i())==null?void 0:E.message))}),un();var m={get componentStyle(){return r()},set componentStyle(E){r(E),L()},get form(){return i()},set form(E){i(E),L()},get formEl(){return o()},set formEl(E){o(E),L()},get journey(){return l()},set journey(E){l(E),L()},get metadata(){return u()},set metadata(E){u(E),L()},get step(){return c()},set step(E){c(E),L()},$set:it,$on:(E,v)=>rt(e,E,v)};xt();{let E=Te(()=>(G(i()),Q(()=>{var v;return(v=i())==null?void 0:v.submit})));Fi(n,{ariaDescribedBy:"formFailureMessageAlert",get onSubmitWhenValid(){return _(E)},get formEl(){return o()},set formEl(v){o(v)},children:(v,y)=>{var b=v0(),S=lt(b);{var I=Z=>{var te=p0(),$=lt(te);{var H=le=>{var K=g0(),ae=_e(K);ac(ae,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),pe(K),oe(le,K)};ht($,le=>{G(i()),Q(()=>{var K;return(K=i())==null?void 0:K.icon})&&le(H)})}var A=ke($,2),N=_e(A);Lt(N,{key:"loginHeader"}),pe(A),oe(Z,te)};ht(S,Z=>{r()!=="inline"&&Z(I)})}var C=ke(S,2);{var k=Z=>{wi(Z,{id:"formFailureMessageAlert",get needsFocus(){return _(d)},type:"error",children:(te,$)=>{An();var H=Cn();Je(A=>$t(H,A),[()=>(G(Ge),_(f),G(i()),Q(()=>{var A;return Ge(_(f),null,(A=i())==null?void 0:A.message)}))]),oe(te,H)},$$slots:{default:!0}})};ht(C,Z=>{G(i()),Q(()=>{var te;return(te=i())==null?void 0:te.message})&&Z(k)})}var M=ke(C,2);mr(M,1,()=>(G(c()),Q(()=>{var Z;return(Z=c())==null?void 0:Z.callbacks})),pr,(Z,te,$)=>{{let H=Te(()=>(_(te),G(u()),t(),Q(()=>{var A,N;return{callback:_(te),callbackMetadata:(A=u())==null?void 0:A.callbacks[$],selfSubmitFunction:p,stepMetadata:((N=u())==null?void 0:N.step)&&{...u().step},style:t()}})));ja(Z,{get props(){return _(H)}})}});var P=ke(M,2);{var D=Z=>{{let te=Te(()=>(G(l()),Q(()=>{var $;return($=l())==null?void 0:$.loading})));nr(Z,{get busy(){return _(te)},style:"primary",type:"submit",width:"full",children:($,H)=>{Lt($,{key:"loginButton"})},$$slots:{default:!0}})}},V=Xi(()=>(G(u()),Q(()=>{var Z,te,$,H;return((te=(Z=u())==null?void 0:Z.step)==null?void 0:te.derived.isUserInputOptional)||!((H=($=u())==null?void 0:$.step)!=null&&H.derived.isStepSelfSubmittable())})));ht(P,Z=>{_(V)&&Z(D)})}var B=ke(P,2);{var Y=Z=>{var te=m0(),$=lt(te),H=_e($),A=_e(H,!0);pe(H);var N=ke(H,2),le=_e(N,!0);pe(N),pe($);var K=ke($,4),ae=_e(K);Lt(ae,{key:"dontHaveAnAccount",html:!0}),pe(K),Hn(K,ve=>ee(h,ve),()=>_(h)),Je((ve,Le)=>{$t(A,ve),$t(le,Le)},[()=>(G(Ge),Q(()=>Ge("forgotPassword",null,"Forgot Password?"))),()=>(G(Ge),Q(()=>Ge("forgotUsername",null,"Forgot Username?")))]),Vn("click",H,zo(()=>{l().push({tree:"ResetPassword"})})),Vn("click",N,zo(()=>{l().push({tree:"ForgottenUsername"})})),oe(Z,te)};ht(B,Z=>{r()!=="inline"&&Z(Y)})}oe(v,b)},$$slots:{default:!0},$$legacy:!0})}var w=tt(m);return s(),w}var y0=Kn('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M8.06 6.5a.5.5 0 0 1 .5.5v.776a11.5 11.5 0 0 1-.552 3.519l-1.331 4.14a.5.5 0 0 1-.952-.305l1.33-4.141a10.5 10.5 0 0 0 .504-3.213V7a.5.5 0 0 1 .5-.5Z"></path><path d="M6.06 7a2 2 0 1 1 4 0 .5.5 0 1 1-1 0 1 1 0 1 0-2 0v.332c0 .409-.022.816-.066 1.221A.5.5 0 0 1 6 8.447c.04-.37.06-.742.06-1.115V7Zm3.509 1a.5.5 0 0 1 .487.513 11.5 11.5 0 0 1-.587 3.339l-1.266 3.8a.5.5 0 0 1-.949-.317l1.267-3.8a10.5 10.5 0 0 0 .535-3.048A.5.5 0 0 1 9.569 8Zm-3.356 2.115a.5.5 0 0 1 .33.626L5.24 14.939a.5.5 0 1 1-.955-.296l1.303-4.199a.5.5 0 0 1 .625-.329Z"></path><path d="M4.759 5.833A3.501 3.501 0 0 1 11.559 7a.5.5 0 0 1-1 0 2.5 2.5 0 0 0-4.857-.833.5.5 0 1 1-.943-.334Zm.3 1.67a.5.5 0 0 1 .449.546 10.72 10.72 0 0 1-.4 2.031l-1.222 4.072a.5.5 0 1 1-.958-.287L4.15 9.793a9.72 9.72 0 0 0 .363-1.842.5.5 0 0 1 .546-.449Zm6 .647a.5.5 0 0 1 .5.5c0 1.28-.213 2.552-.632 3.762l-1.09 3.145a.5.5 0 0 1-.944-.327l1.089-3.145c.382-1.105.578-2.266.578-3.435a.5.5 0 0 1 .5-.5Z"></path><path d="M3.902 4.222a4.996 4.996 0 0 1 5.202-2.113.5.5 0 0 1-.208.979 3.996 3.996 0 0 0-4.163 1.69.5.5 0 0 1-.831-.556Zm6.72-.955a.5.5 0 0 1 .705-.052A4.99 4.99 0 0 1 13.059 7v1.5a.5.5 0 1 1-1 0V7a3.99 3.99 0 0 0-1.386-3.028.5.5 0 0 1-.051-.705ZM3.68 5.842a.5.5 0 0 1 .422.568c-.029.192-.044.39-.044.59 0 .71-.1 1.417-.298 2.1l-1.14 3.923a.5.5 0 1 1-.96-.279L2.8 8.821A6.531 6.531 0 0 0 3.058 7c0-.25.019-.496.054-.736a.5.5 0 0 1 .568-.422Zm8.882 3.66a.5.5 0 0 1 .456.54c-.084 1-.298 1.986-.64 2.934l-.744 2.068a.5.5 0 0 1-.941-.338l.745-2.07a10.51 10.51 0 0 0 .584-2.678.5.5 0 0 1 .54-.456Z"></path><path d="M4.81 1.37A6.5 6.5 0 0 1 14.56 7a.5.5 0 1 1-1 0 5.5 5.5 0 0 0-8.25-4.765.5.5 0 0 1-.5-.865Zm-.89 1.257a.5.5 0 0 1 .04.706A5.478 5.478 0 0 0 2.56 7a.5.5 0 0 1-1 0c0-1.664.626-3.184 1.655-4.333a.5.5 0 0 1 .706-.04ZM1.915 8.02a.5.5 0 0 1 .346.616l-.779 2.767a.5.5 0 1 1-.962-.27l.778-2.767a.5.5 0 0 1 .617-.346Zm12.15.481a.5.5 0 0 1 .49.51c-.03 1.499-.161 3.025-.727 4.533l-.07.187a.5.5 0 0 1-.936-.351l.07-.187c.506-1.35.634-2.74.663-4.202a.5.5 0 0 1 .51-.49Z"></path></svg>');function Nh(n,e){if(new.target)return nt({component:Nh,...n});et(e,!1);let t=R(e,"classes",12,""),a=R(e,"size",12,"24px");var s={get classes(){return t()},set classes(i){t(i),L()},get size(){return a()},set size(i){a(i),L()},$set:it,$on:(i,o)=>rt(e,i,o)},r=y0();return Je(()=>{Qt(r,0,Yn(t())),Fe(r,"height",a()),Fe(r,"width",a())}),oe(n,r),tt(s)}var _0=ze('<div class="tw_flex tw_justify-center"><!></div>'),b0=ze('<div class="tw_text-center tw_w-full tw_py-4"><!></div>'),w0=ze('<header><div class="tw_text-center tw_w-full tw_py-4"><!></div> <h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_text-center tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p></header>'),E0=ze('<h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <!> <!>',1),S0=ze('<h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_text-center tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p>',1),k0=ze('<header class="tw_input-spacing"><!></header>'),C0=ze("<!> <!> <!> <!>",1);function Uh(n,e){if(new.target)return nt({component:Uh,...n});et(e,!1);let t=R(e,"allowWebAuthn",12,!0),a=R(e,"componentStyle",12),s=R(e,"form",12),r=R(e,"formEl",12,null),i=R(e,"step",12);const o="genericStepFailureMessage",l="genericStepHeader",u="genericStepForm";let c=ue(!1),d=ue(""),f=ue(!1),h=ue(""),p=ue("genericStepHeader"),m=ue(!1),w=ue(!0),E=ue(!1),v=ue(!1),y=Ko.getWebAuthnStepType(i());function b(C){const k=C.target;ee(d,k.value)}ar(()=>{var C;(C=s())!=null&&C.message?(ee(p,o),ee(c,!0),ee(m,!1)):(ee(p,l),ee(c,!1),ee(m,!0))});async function S(){try{switch(y){case Gr.Registration:{try{await Ko.register(i(),_(d)),ee(f,!0)}catch{}break}case Gr.Authentication:{await Ko.authenticate(i());break}default:break}}catch{}s().submit()}an(()=>G(s()),()=>{var C;ee(h,Ha((C=s())==null?void 0:C.message))}),an(()=>(G(t()),_(f),_(v),_(w)),()=>{t()&&!_(f)&&!_(v)&&(Gr.Registration===y&&!_(w)||Gr.Authentication===y)&&(ee(v,!0),S())}),un();var I={get allowWebAuthn(){return t()},set allowWebAuthn(C){t(C),L()},get componentStyle(){return a()},set componentStyle(C){a(C),L()},get form(){return s()},set form(C){s(C),L()},get formEl(){return r()},set formEl(C){r(C),L()},get step(){return i()},set step(C){i(C),L()},$set:it,$on:(C,k)=>rt(e,C,k)};return xt(),Fi(n,{get ariaDescribedBy(){return _(p)},id:u,get needsFocus(){return _(m)},get formEl(){return r()},set formEl(C){r(C)},children:(C,k)=>{var M=C0(),P=lt(M);{var D=A=>{var N=_0(),le=_e(N);Nh(le,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),pe(N),oe(A,N)};ht(P,A=>{G(s()),G(a()),Q(()=>{var N;return((N=s())==null?void 0:N.icon)&&a()!=="inline"})&&A(D)})}var V=ke(P,2);{var B=A=>{var N=b0(),le=_e(N);xr(le,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-28 tw_w-28"}),pe(N),oe(A,N)};ht(V,A=>{_(E)&&A(B)})}var Y=ke(V,2);{var Z=A=>{wi(A,{id:o,get needsFocus(){return _(c)},type:"error",children:(N,le)=>{An();var K=Cn();Je(ae=>$t(K,ae),[()=>(G(Ge),_(h),G(s()),Q(()=>{var ae;return Ge(_(h),null,(ae=s())==null?void 0:ae.message)}))]),oe(N,K)},$$slots:{default:!0}})};ht(Y,A=>{G(s()),Q(()=>{var N;return(N=s())==null?void 0:N.message})&&A(Z)})}var te=ke(Y,2);{var $=A=>{var N=w0();Fe(N,"id",l);var le=_e(N),K=_e(le);xr(K,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-28 tw_w-28"}),pe(le);var ae=ke(le,2),ve=_e(ae);Lt(ve,{key:"verifyYourIdentity"}),pe(ae);var Le=ke(ae,2),Oe=_e(Le);Lt(Oe,{key:"useDeviceForIdentityVerification"}),pe(Le),pe(N),oe(A,N)},H=A=>{var N=k0();Fe(N,"id",l);var le=_e(N);{var K=ve=>{var Le=E0(),Oe=lt(Le),Ne=_e(Oe);Lt(Ne,{key:"nameYourDevice"}),pe(Oe);var Re=ke(Oe,2);{let De=Te(()=>(G(Ge),Q(()=>Ge("optionallyNameDevice"))));Hi(Re,{type:"text",isRequired:!1,isFirstInvalidInput:!1,key:"devicename",onChange:b,get label(){return _(De)}})}var He=ke(Re,2);nr(He,{style:"primary",type:"submit",width:"full",onClick:()=>{ee(w,!1),ee(E,!0)},children:(De,at)=>{Lt(De,{key:"nextButton"})},$$slots:{default:!0}}),oe(ve,Le)},ae=ve=>{var Le=S0(),Oe=lt(Le),Ne=_e(Oe);{let De=Te(()=>(_(d),G(Ge),Q(()=>({name:_(d).length>0?_(d):Ge("yourDevice")}))));Lt(Ne,{key:"registerYourDevice",get values(){return _(De)}})}pe(Oe);var Re=ke(Oe,2),He=_e(Re);Lt(He,{key:"chooseYourDeviceForIdentityVerification"}),pe(Re),oe(ve,Le)};ht(le,ve=>{_(w)?ve(K):ve(ae,-1)})}pe(N),oe(A,N)};ht(te,A=>{G(Gr),Q(()=>y===Gr.Authentication)?A($):A(H,-1)})}oe(C,M)},$$slots:{default:!0},$$legacy:!0}),tt(I)}var I0=Kn('<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" viewBox="0 0 16 18"><path fill-rule="evenodd" d="M8 0c-.69 0-1.843.265-2.928.56-1.11.3-2.229.655-2.887.87a1.54 1.54 0 0 0-1.044 1.262c-.596 4.477.787 7.795 2.465 9.99a11.777 11.777 0 0 0 2.517 2.453c.386.273.744.482 1.048.625.28.132.581.24.829.24s.548-.108.829-.24a7.159 7.159 0 0 0 1.048-.625 11.775 11.775 0 0 0 2.517-2.453c1.678-2.195 3.061-5.513 2.465-9.99a1.541 1.541 0 0 0-1.044-1.263 62.467 62.467 0 0 0-2.887-.87C9.843.266 8.69 0 8 0zm2.146 5.146a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7.5 7.793l2.646-2.647z"></path></svg>');function Fh(n,e){if(new.target)return nt({component:Fh,...n});et(e,!1);let t=R(e,"classes",12,""),a=R(e,"size",12,"24px");var s={get classes(){return t()},set classes(i){t(i),L()},get size(){return a()},set size(i){a(i),L()},$set:it,$on:(i,o)=>rt(e,i,o)},r=I0();return Je(()=>{Fe(r,"height",a()),Fe(r,"width",a()),Qt(r,0,Yn(t()))}),oe(n,r),tt(s)}var T0=ze('<div class="tw_flex tw_justify-center"><!></div>'),A0=ze('<li class="tw_text-center"><span class="tw_text-secondary-dark dark:tw_text-secondary-light"> </span></li>'),O0=ze('<!> <header><h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_-mt-5 tw_mb-2 tw_py-4 tw_text-sm tw_text-secondary-dark dark:tw_text-secondary-light"><!></p></header> <hr class="tw_border-collapse tw_border-secondary-light dark:tw_border-secondary-dark tw_mb-8"/> <h2 class="tw_secondary-header dark:tw_secondary-header_dark tw_text-lg"><!></h2> <p class="tw_text-sm tw_text-secondary-dark dark:tw_text-secondary-light tw_my-6"><!></p> <ol class="tw_font-mono tw_border tw_border-secondary-light dark:tw_border-secondary-dark tw_bg-white dark:tw_bg-body-dark tw_list-decimal tw_text-secondary-light dark:tw_text-secondary-light tw_py-4 tw_list-inside tw_rounded-md tw_mb-4 tw_columns-2"></ol> <p class="tw_text-sm tw_text-secondary-dark dark:tw_text-secondary-light tw_my-6"><!></p> <!>',1);function Bh(n,e){if(new.target)return nt({component:Bh,...n});et(e,!1);let t=R(e,"componentStyle",12),a=R(e,"form",12),s=R(e,"formEl",12,null),r=R(e,"journey",12),i=R(e,"step",12);const o="genericStepFailureMessage",l="genericStepHeader",u="genericStepForm";let c=ue("genericStepHeader"),d=ue(!1),f=ue([]),h=ue("New Security Key");ar(()=>{var m;(m=a())!=null&&m.message?(ee(c,o),ee(d,!1)):(ee(c,l),ee(d,!0))}),an(()=>G(i()),()=>{ee(f,vu.getCodes(i())),ee(h,vu.getDeviceName(i()))}),un();var p={get componentStyle(){return t()},set componentStyle(m){t(m),L()},get form(){return a()},set form(m){a(m),L()},get formEl(){return s()},set formEl(m){s(m),L()},get journey(){return r()},set journey(m){r(m),L()},get step(){return i()},set step(m){i(m),L()},$set:it,$on:(m,w)=>rt(e,m,w)};return xt(),Fi(n,{get ariaDescribedBy(){return _(c)},id:u,get needsFocus(){return _(d)},onSubmitWhenValid:()=>a().submit(),get formEl(){return s()},set formEl(m){s(m)},children:(m,w)=>{var E=O0(),v=lt(E);{var y=$=>{var H=T0(),A=_e(H);Fh(A,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),pe(H),oe($,H)};ht(v,$=>{G(a()),G(t()),Q(()=>{var H;return((H=a())==null?void 0:H.icon)&&t()!=="inline"})&&$(y)})}var b=ke(v,2);Fe(b,"id",l);var S=_e(b),I=_e(S);Lt(I,{key:"yourMultiFactorAuthIsEnabled"}),pe(S);var C=ke(S,2),k=_e(C);Lt(k,{key:"useThisNewMfaToHelpVerifyYourIdentity"}),pe(C),pe(b);var M=ke(b,4),P=_e(M);Lt(P,{key:"dontGetLockedOut"}),pe(M);var D=ke(M,2),V=_e(D);Lt(V,{html:!0,key:"yourRecoveryCodesToAccessAccountForLostDevice"}),pe(D);var B=ke(D,2);mr(B,5,()=>_(f),pr,($,H)=>{var A=A0(),N=_e(A),le=_e(N,!0);pe(N),pe(A),Je(()=>$t(le,_(H))),oe($,A)}),pe(B);var Y=ke(B,2),Z=_e(Y);{let $=Te(()=>({name:_(h)}));Lt(Z,{html:!0,key:"useOneOfTheseCodes",get values(){return _($)}})}pe(Y);var te=ke(Y,2);{let $=Te(()=>(G(r()),Q(()=>{var H;return(H=r())==null?void 0:H.loading})));nr(te,{get busy(){return _($)},style:"primary",type:"submit",width:"full",children:(H,A)=>{Lt(H,{key:"nextButton"})},$$slots:{default:!0}})}oe(m,E)},$$slots:{default:!0},$$legacy:!0}),tt(p)}var P0=Kn('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M10 1.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1Zm-5 0A1.5 1.5 0 0 1 6.5 0h3A1.5 1.5 0 0 1 11 1.5v1A1.5 1.5 0 0 1 9.5 4h-3A1.5 1.5 0 0 1 5 2.5v-1Zm-2 0h1v1A2.5 2.5 0 0 0 6.5 5h3A2.5 2.5 0 0 0 12 2.5v-1h1a2 2 0 0 1 2 2V14a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3.5a2 2 0 0 1 2-2Z"></path><title><!></title></svg>');function Vh(n,e){if(new.target)return nt({component:Vh,...n});et(e,!1);let t=R(e,"classes",12,""),a=R(e,"size",12,"24px");var s={get classes(){return t()},set classes(l){t(l),L()},get size(){return a()},set size(l){a(l),L()},$set:it,$on:(l,u)=>rt(e,l,u)},r=P0(),i=ke(_e(r)),o=_e(i);return cn(o,e,"default",{},null),pe(i),pe(r),Je(()=>{Qt(r,0,Yn(t())),Fe(r,"width",a()),Fe(r,"height",a())}),oe(n,r),tt(s)}var x0=Kn('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M3 2a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V2zm6 11a1 1 0 1 0-2 0 1 1 0 0 0 2 0z"></path></svg>');function Hh(n,e){if(new.target)return nt({component:Hh,...n});et(e,!1);let t=R(e,"classes",12,""),a=R(e,"size",12,"24px");var s={get classes(){return t()},set classes(i){t(i),L()},get size(){return a()},set size(i){a(i),L()},$set:it,$on:(i,o)=>rt(e,i,o)},r=x0();return Je(()=>{Qt(r,0,Yn(t())),Fe(r,"height",a()),Fe(r,"width",a())}),oe(n,r),tt(s)}var L0=ze('<div class="tw_flex tw_justify-center tw_mb-6"><!></div>'),M0=ze('<!> <h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1> <p class="tw_text-center tw_text-sm tw_-mt-5 tw_mb-2 tw_py-4 tw_text-secondary-dark dark:tw_text-secondary-light"><!></p>',1),R0=ze('<div class="tw_text-center"><!> <p class="tw_text-secondary-dark dark:tw_text-secondary-light"><!></p></div>'),D0=ze('<!> <!> <!> <canvas class="tw_m-auto tw_mb-6" data-testid="qr-code-canvas"></canvas> <!> <!> <details class="tw_my-6 tw_text-secondary-dark dark:tw_text-secondary-light"><summary><!></summary> <div class="tw_overflow-hidden"><!> <p class="tw_text-base tw_my-6"><!></p> <div class="tw_relative tw_overflow-hidden"><label for="mfa-registration-url"><!></label> <button class="tw_absolute tw_h-4 tw_bg-background-dark tw_right-1 tw_top-1 tw_shadow-[0_0_1rem_2rem_black] tw_shadow-background-light dark:tw_shadow-background-dark tw_text-secondary-dark dark:tw_text-secondary-light"><!></button> <input class="tw_bg-transparent tw_border-none focus-visible:tw_outline-none tw_font-mono tw_w-full" id="mfa-registration-url"/></div></div></details> <!>',1);function jh(n,e){if(new.target)return nt({component:jh,...n});et(e,!1);const t=()=>Ar(oi,"$style",a),[a,s]=Wr();let r=R(e,"componentStyle",12),i=R(e,"form",12),o=R(e,"formEl",12,null),l=R(e,"journey",12),u=R(e,"metadata",12),c=R(e,"step",12),d=ue(!1),f=ue(),h=ue(""),p=ue([]),m=ue(!1),w=ue(),E=ue(),v=ue(),y=ue(""),b=ue();function S(){var M,P,D;(P=(M=u())==null?void 0:M.step)!=null&&P.derived.isStepSelfSubmittable()&&((D=i())==null||D.submit())}async function I(){_(b).select(),document.execCommand("copy")}ar(()=>{var M;ee(d,!!((M=i())!=null&&M.message))}),Di(()=>{async function M(){try{const P=await Promise.resolve().then(()=>Qb);ee(m,!0),ee(y,jd.getQRCodeData(c()).uri),P.toCanvas(_(v),_(y),{errorCorrectionLevel:"L",version:20,width:400},function(D){D&&(i(i().message=Ge("qrCodeFailedToRender"),!0),console.error(D))})}catch{i(i().message=Ge("qrCodeImportFailure"),!0),console.error("Failed to import QR Code library")}}M()}),an(()=>(G(u()),G(c()),G(i())),()=>{var P;u()&&u(u().step.derived.stageName="QRCode",!0);const M=c().getCallbacksOfType(he.ConfirmationCallback);if(M.length){const D=M[0];ee(f,D.getOptions().map((V,B)=>({value:`${B}`,text:V})))}c().callbacks.forEach((D,V)=>{D.getType()===he.PollingWaitCallback&&(ee(w,D),ee(E,V))}),ee(h,Ha((P=i())==null?void 0:P.message)),ee(p,c().callbacks.filter(D=>D.getType()===he.TextOutputCallback||D.getType()===he.ConfirmationCallback?!1:D.getType()!==he.PollingWaitCallback))}),un();var C={get componentStyle(){return r()},set componentStyle(M){r(M),L()},get form(){return i()},set form(M){i(M),L()},get formEl(){return o()},set formEl(M){o(M),L()},get journey(){return l()},set journey(M){l(M),L()},get metadata(){return u()},set metadata(M){u(M),L()},get step(){return c()},set step(M){c(M),L()},$set:it,$on:(M,P)=>rt(e,M,P)};xt();{let M=Te(()=>(G(i()),Q(()=>{var P;return(P=i())==null?void 0:P.submit})));Fi(n,{ariaDescribedBy:"formFailureMessageAlert",get onSubmitWhenValid(){return _(M)},get formEl(){return o()},set formEl(P){o(P)},children:(P,D)=>{var V=D0(),B=lt(V);{var Y=g=>{var F=M0(),W=lt(F);{var T=st=>{var $e=L0(),Rt=_e($e);Hh(Rt,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),pe($e),oe(st,$e)};ht(W,st=>{G(i()),Q(()=>{var $e;return($e=i())==null?void 0:$e.icon})&&st(T)})}var re=ke(W,2),Ce=_e(re);Lt(Ce,{key:"twoFactorAuthentication"}),pe(re);var xe=ke(re,2),be=_e(xe);Lt(be,{key:"scanQrCodeWithAuthenticator"}),pe(xe),oe(g,F)};ht(B,g=>{r()!=="inline"&&g(Y)})}var Z=ke(B,2);{var te=g=>{wi(g,{id:"formFailureMessageAlert",get needsFocus(){return _(d)},type:"error",children:(F,W)=>{An();var T=Cn();Je(re=>$t(T,re),[()=>(G(Ge),_(h),G(i()),Q(()=>{var re;return Ge(_(h),null,(re=i())==null?void 0:re.message)}))]),oe(F,T)},$$slots:{default:!0}})};ht(Z,g=>{G(i()),Q(()=>{var F;return(F=i())==null?void 0:F.message})&&g(te)})}var $=ke(Z,2);{var H=g=>{var F=R0(),W=_e(F);xr(W,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-24 tw_my-6 tw_w-24"});var T=ke(W,2),re=_e(T);Lt(re,{key:"loading"}),pe(T),pe(F),oe(g,F)};ht($,g=>{_(m)||g(H)})}var A=ke($,2);Hn(A,g=>ee(v,g),()=>_(v));var N=ke(A,2);mr(N,1,()=>_(p),pr,(g,F,W)=>{{let T=Te(()=>(_(F),G(u()),t(),Q(()=>{var re,Ce;return{callback:_(F),callbackMetadata:(re=u())==null?void 0:re.callbacks[W],selfSubmitFunction:S,stepMetadata:((Ce=u())==null?void 0:Ce.step)&&{...u().step},style:t()}})));ja(g,{get props(){return _(T)}})}});var le=ke(N,2);{var K=g=>{const F=Te(()=>(_(w),G(u()),_(E),t(),Q(()=>{var W;return{callback:_(w),callbackMetadata:(W=u())==null?void 0:W.callbacks[_(E)],options:{inline:!0},selfSubmitFunction:S,style:t()}})));tc(g,Tn(()=>_(F)))};ht(le,g=>{_(w)&&g(K)})}var ae=ke(le,2),ve=_e(ae),Le=_e(ve);Lt(Le,{key:"qrCodeNotWorking"}),pe(ve);var Oe=ke(ve,2),Ne=_e(Oe);nc(Ne,{get href(){return _(y)},classes:"tw_block tw_my-6",target:"_self",children:(g,F)=>{Lt(g,{key:"onMobileOpenInAuthenticator"})},$$slots:{default:!0}});var Re=ke(Ne,2),He=_e(Re);Lt(He,{key:"copyAndPasteUrlBelow"}),pe(Re);var De=ke(Re,2),at=_e(De),Pt=_e(at);Lt(Pt,{key:"url"}),pe(at);var wt=ke(at,2),Tt=_e(wt);Vh(Tt,{classes:"tw_fill-current tw_inline-block tw_align-top",size:"16",children:(g,F)=>{Lt(g,{key:"copyUrl"})},$$slots:{default:!0}}),pe(wt);var en=ke(wt,2);ei(en),Hn(en,g=>ee(b,g),()=>_(b)),pe(De),pe(Oe),pe(ae);var Ut=ke(ae,2);{var Me=g=>{{let F=Te(()=>(G(l()),Q(()=>{var W;return(W=l())==null?void 0:W.loading})));nr(g,{get busy(){return _(F)},style:"primary",type:"submit",width:"full",children:(W,T)=>{Lt(W,{get key(){return _(f),Q(()=>_(f)[0].text)}})},$$slots:{default:!0}})}};ht(Ut,g=>{_(f),Q(()=>{var F;return(F=_(f))==null?void 0:F.length})&&g(Me)})}Je(()=>Tu(en,_(y))),Vn("click",wt,I),oe(P,V)},$$slots:{default:!0},$$legacy:!0})}var k=tt(C);return s(),k}var N0=Kn('<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697ZM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757Zm3.436-.586L16 11.801V4.697l-5.803 3.546Z"></path></svg>');function zh(n,e){if(new.target)return nt({component:zh,...n});et(e,!1);let t=R(e,"classes",12,""),a=R(e,"size",12,"24px");var s={get classes(){return t()},set classes(i){t(i),L()},get size(){return a()},set size(i){a(i),L()},$set:it,$on:(i,o)=>rt(e,i,o)},r=N0();return Je(()=>{Qt(r,0,Yn(t())),Fe(r,"height",a()),Fe(r,"width",a())}),oe(n,r),tt(s)}var U0=ze('<div class="tw_flex tw_justify-center"><!></div>'),F0=ze('<!> <header><h1 class="tw_primary-header dark:tw_primary-header_dark"><!></h1></header> <!> <!> <!>',1);function Gh(n,e){if(new.target)return nt({component:Gh,...n});et(e,!1);const t=()=>Ar(oi,"$styleStore",a),[a,s]=Wr();let r=R(e,"componentStyle",12),i=R(e,"form",12),o=R(e,"formEl",12,null),l=R(e,"journey",12),u=R(e,"metadata",12),c=R(e,"step",12);const d="genericStepFailureMessage",f="genericStepHeader",h="genericStepForm";let p=ue(!1),m=ue(""),w=ue("genericStepHeader"),E=ue(!1),v=ue();function y(){var C,k;(k=(C=u())==null?void 0:C.step)!=null&&k.derived.isStepSelfSubmittable()&&b()}function b(){var C;ee(p,!1),ee(E,!1),(C=i())==null||C.submit()}ar(()=>{var C;(C=i())!=null&&C.message?(ee(w,d),ee(p,!0),ee(E,!1)):(ee(w,f),ee(p,!1),ee(E,!0))}),Di(()=>yl(_(v),l())),an(()=>(G(c()),G(i())),()=>{var C;jf(c())&&ra.redirect(c()),ee(m,Ha((C=i())==null?void 0:C.message))}),un();var S={get componentStyle(){return r()},set componentStyle(C){r(C),L()},get form(){return i()},set form(C){i(C),L()},get formEl(){return o()},set formEl(C){o(C),L()},get journey(){return l()},set journey(C){l(C),L()},get metadata(){return u()},set metadata(C){u(C),L()},get step(){return c()},set step(C){c(C),L()},$set:it,$on:(C,k)=>rt(e,C,k)};xt(),Fi(n,{get ariaDescribedBy(){return _(w)},id:h,get needsFocus(){return _(E)},onSubmitWhenValid:b,get formEl(){return o()},set formEl(C){o(C)},children:(C,k)=>{var M=F0(),P=lt(M);{var D=A=>{var N=U0(),le=_e(N);zh(le,{classes:"tw_text-gray-400 tw_fill-current",size:"72px"}),pe(N),oe(A,N)};ht(P,A=>{G(i()),G(r()),Q(()=>{var N;return((N=i())==null?void 0:N.icon)&&r()!=="inline"})&&A(D)})}var V=ke(P,2);Fe(V,"id",f);var B=_e(V),Y=_e(B);{let A=Te(()=>(G(c()),G(Ge),Q(()=>{var N;return((N=c())==null?void 0:N.getHeader())||Ge("checkYourEmail")})));vl(Y,{html:!0,get string(){return _(A)}})}pe(B),pe(V),Hn(V,A=>ee(v,A),()=>_(v));var Z=ke(V,2);{var te=A=>{wi(A,{id:d,get needsFocus(){return _(p)},type:"error",children:(N,le)=>{An();var K=Cn();Je(ae=>$t(K,ae),[()=>(G(Ge),_(m),G(i()),Q(()=>{var ae;return Ge(_(m),null,(ae=i())==null?void 0:ae.message)}))]),oe(N,K)},$$slots:{default:!0}})};ht(Z,A=>{G(i()),Q(()=>{var N;return(N=i())==null?void 0:N.message})&&A(te)})}var $=ke(Z,2);mr($,1,()=>(G(c()),Q(()=>{var A;return(A=c())==null?void 0:A.callbacks})),pr,(A,N,le)=>{{let K=Te(()=>(_(N),G(u()),t(),Q(()=>{var ae,ve;return{callback:_(N),callbackMetadata:(ae=u())==null?void 0:ae.callbacks[le],selfSubmitFunction:y,stepMetadata:((ve=u())==null?void 0:ve.step)&&{...u().step},style:t()}})));ja(A,{get props(){return _(K)}})}});var H=ke($,2);Ku(H,{get journey(){return l()}}),oe(C,M)},$$slots:{default:!0},$$legacy:!0});var I=tt(S);return s(),I}function B0(n){if(!n||n.type!=="Step")return ic;switch((n==null?void 0:n.getStage)&&n.getStage()){case"OneTimePassword":return Lh;case"DefaultRegistration":return Rh;case"DefaultLogin":return Dh}return Ko.getWebAuthnStepType(n)?Uh:vu.isDisplayStep(n)?Bh:jd.isQRCodeStep(n)?jh:n.getCallbacksOfType(he.SuspendedTextOutputCallback).length>0?Gh:ic}var V0=ze('<div class="tw_text-center tw_w-full tw_py-4"><!></div>'),H0=ze('<div class="tw_text-center tw_w-full tw_py-4"><!></div>'),j0=ze("<!> <!>",1);function sc(n,e){if(new.target)return nt({component:sc,...n});et(e,!1);const t=()=>Ar(l(),"$journeyStore",a),[a,s]=Wr();let r=R(e,"componentStyle",12),i=R(e,"displayIcon",12),o=R(e,"formEl",12,null),l=R(e,"journeyStore",12);t()||console.error("Widget missing configuration. Import and call `configuration()`, then use `set()` to configure.");let u=ue(!1);function c(){var y;(y=l())==null||y.next(t().step)}function d(){var y,b;(y=l())==null||y.reset(),(b=l())==null||b.next()}ar(()=>{ee(u,t()&&!t().successful)});var f={get componentStyle(){return r()},set componentStyle(y){r(y),L()},get displayIcon(){return i()},set displayIcon(y){i(y),L()},get formEl(){return o()},set formEl(y){o(y),L()},get journeyStore(){return l()},set journeyStore(y){l(y),L()},$set:it,$on:(y,b)=>rt(e,y,b)};xt();var h=Wt(),p=lt(h);{var m=y=>{var b=Wt(),S=lt(b);{var I=k=>{var M=V0(),P=_e(M);xr(P,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-28 tw_w-28"}),pe(M),oe(k,M)},C=k=>{var M=Wt(),P=lt(M);{let D=Te(()=>(G(i()),t(),Q(()=>{var B,Y;return{icon:i(),message:((B=t().error)==null?void 0:B.message)||"",status:(Y=t().error)!=null&&Y.code?"error":"ok",submit:c}}))),V=Te(()=>(t(),G(l()),G(pl),Q(()=>({loading:t().loading,pop:l().pop,push:l().push,stack:pl}))));av(P,()=>B0(t().step),(B,Y)=>{Y(B,{get componentStyle(){return r()},get form(){return _(D)},get journey(){return _(V)},get metadata(){return t(),Q(()=>t().metadata)},get step(){return t(),Q(()=>t().step)},get formEl(){return o()},set formEl(Z){o(Z)},$$legacy:!0})})}oe(k,M)};ht(S,k=>{t(),Q(()=>t()&&!t().step)?k(I):(t(),G(ir),Q(()=>{var M;return((M=t().step)==null?void 0:M.type)===ir.Step})&&k(C,1))})}oe(y,b)},w=y=>{var b=H0(),S=_e(b);xr(S,{colorClass:"tw_text-primary-light",layoutClasses:"tw_h-28 tw_w-28"}),pe(b),oe(y,b)},E=y=>{var b=j0(),S=lt(b);wi(S,{id:"unrecoverableStepError",get needsFocus(){return _(u)},type:"error",children:(C,k)=>{Lt(C,{html:!0,key:"unrecoverableError"})},$$slots:{default:!0}});var I=ke(S,2);nr(I,{style:"secondary",onClick:d,children:(C,k)=>{Lt(C,{key:"tryAgain"})},$$slots:{default:!0}}),oe(y,b)};ht(p,y=>{t(),Q(()=>t()&&!t().completed)?y(m):(t(),Q(()=>t()&&t().successful)?y(w,1):y(E,-1))})}oe(n,h);var v=tt(f);return s(),v}const vs=I_(Xf()),z0=vs.configuration,G0=vs.journey,W0=Xf,q0=vs.request,K0=vs.user,Y0=vs.protect;var Z0=ze('<div class="fr_widget-root"><!></div>'),J0=ze('<div class="fr_widget-root"><!></div>');function Wh(n,e){if(new.target)return nt({component:Wh,...n});et(e,!1);const t=()=>Ar(oi,"$styleStore",a),[a,s]=Wr();let r=R(e,"type",12,"modal");const{journeyStore:i}=vs.getStores();let o=ue(),l=ue(),u=ue();Di(()=>{hy(_(o),_(l))});var c={get type(){return r()},set type(w){r(w),L()},$set:it,$on:(w,E)=>rt(e,w,E)};xt();var d=Wt(),f=lt(d);{var h=w=>{var E=Z0(),v=_e(E);{let y=Te(()=>(t(),Q(()=>{var b,S;return(S=(b=t())==null?void 0:b.sections)==null?void 0:S.header})));Hn($f(v,{dialogId:"sampleDialog",get withHeader(){return _(y)},get dialogEl(){return _(l)},set dialogEl(b){ee(l,b)},children:(b,S)=>{{let I=Te(()=>(t(),Q(()=>{var C,k,M;return((k=(C=t())==null?void 0:C.stage)==null?void 0:k.icon)??!((M=t())!=null&&M.logo)})));sc(b,{componentStyle:"modal",get displayIcon(){return _(I)},get journeyStore(){return i},get formEl(){return _(u)},set formEl(C){ee(u,C)},$$legacy:!0})}},$$slots:{default:!0},$$legacy:!0}),b=>ee(o,b),()=>_(o))}pe(E),oe(w,E)},p=w=>{var E=J0(),v=_e(E);{let y=Te(()=>(t(),Q(()=>{var b,S;return((S=(b=t())==null?void 0:b.stage)==null?void 0:S.icon)??!0})));sc(v,{componentStyle:"inline",get displayIcon(){return _(y)},get journeyStore(){return i},get formEl(){return _(u)},set formEl(b){ee(u,b)},$$legacy:!0})}pe(E),oe(w,E)};ht(f,w=>{r()==="modal"?w(h):w(p,-1)})}oe(n,d);var m=tt(c);return s(),m}function Il(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var qh={};if(typeof window<"u"){let n=function(t,a){var s=e();return(n=function(r,i){return s[r-=477]})(t,a)},e=function(){var t=["concat","_selenium","WEBGLVENDORANDRENDERER","serial","result","HAS_TOUCH","Modernizr.on Failed with feature ","srcdoc","DEVICE_CATEGORY","UNMASKED_VENDOR_WEBGL","code"," failed","localStorage","page intentionally left blank","broJsFingerprint","find","TypeError"," [native code]","matchmedia","IS_BOT","serializedDeviceAttributes","Geolocation retrieval failed: Location information is unavailable.","floc","LIES","dateTimeLocale","getWebglData","isMobile","DOCUMENT_ELEMENT_WEBDRIVER","Metadata","Other","get","Geolocation retrieval failed: Location permission denied by the user.","HAS_SPEAKERS","htmlGeoLocation_ErrorCode","dataforseobot","chrome_runtime_functions_invalid","opera","background-sync","calculated workstation device attributes.","permissions_api","dataview","__webdriver_evaluate","configurable","NAVIGATOR_PRODUCT","JS_CHALLENGE","target","label","connect","selenium_in_navigator","failed to get headless results","atanh","customprotocolhandler","function","maxVertexAttribs","systemLanguage","message_channel","BroprintJS","matchMedia","unknown","browserInfo","sessionData","navigator.languages_blank","getOwnPropertyNames","batteryDischargingTime","WEBGL_MAXCOMBINEDTEXTUREIMAGEUNITS","hardwareConcurrency","webdriverCommand","OS_CPU","message","createInvisibleElement","function () {","_WEBDRIVER_ELEM_CACHE","geo_location","NAVIGATOR_VIBRATE","appendChild","devicePixelRatio","Ops : ","heading","Siemens","localAgentJwt","clipboard-read","maxRenderbufferSize","createDataChannel","webGlStatus","toLowerCase","driver","ie8compat","cosh","NAVIGATOR_POINTER_ENABLED","Failed to add ","DEVICE_MODEL","isWebGl","browserVersion","getSerializedDeviceAttributes","collectWebRtc","Chrome","permission","webkitRTCPeerConnection","__webdriver_script_func","function query() { [native code] }","performance","info","href","origin","videoInputDevices","Rotor","http://127.0.0.1","NAVIGATOR_LANGUAGES","RTCPeerConnection","fonts","_FAILED","NuVision","android","metadataQueue","shadingLanguageVersion","Battery ","keyboard","MAX_VERTEX_UNIFORM_VECTORS","productSub","accessibility-events","internationalization","safeAddMetadata","iphone","detectIncognitoInternal","isInvalidStackTraceSize",'video/mp4;; codecs = "avc1.42E01E"',"consistent_plugins_prototype","propertyDescriptors","opr","reducedTransparency","__lastWatirAlert","seleniumSequentum","resolve","getDevicePayload","canPlayType","PREFERS_COLOR_SCHEME","diffbot","detectChromium","NAVIGATOR_WEB_DRIVER","getParameter","onupgradeneeded","page_visibility","35866TVtBjV","cookieStore","hasEvent","expm1","custom_protocol_handler","getAttribute","ambient-light-sensor","getAllLies","email","fingerPrintComponents","onicecandidate","pagevisibility","NAVIGATOR_PLUGINS_LENGTH","add","lastCalculatedMetadata","seleniumInNavigator","NAVIGATOR_SERIAL_SUPPORTED","duration","ai2bot","intl","pow","ACCELEROMETER_SUPPORTED","matches","rtt","maxVertexTextureImageUnits","HAS_CHROME_LOADTIMES","signal","kind","NAVIGATOR_KEYBOARD_SUPPORTED","selenium_in_window","addStealthTest","round","Geolocation permission state is '","_pingOneSignalsPingResult","batteryInit","iframeWindow","height","SCREEN_FRAME","function toString() { [native code] }","messagechannel","closed","WEBGL_MAXVARYINGVECTORS","failed to add properties descriptor","googleother-image","seleniumInDocument","videoCard","HAS_MICROPHONE","Essential","experimental-webgl","blob_constructor","name","OS_NAME","SeleniumProperties","hasMicrophone","library","proximity","getFrequencyResponse","createOffer","Security error","vendorFlavors","AUDIO","deviceId","__driver_unwrapped","pointerevents","AGENT_BASE_URL","anthropic-ai","Dell","gamepads","getHasLiedBrowser","string","__lastWatirConfirm","Battery not supported!","NAVIGATOR_LANGUAGE","scrapy","promiseTimeout","__nightmare","forEach","iframe_window","addPropertyDescriptorInfo","function ","calledSelenium","random","BLUTOOTH_SUPPORTED","49TVcSOF","deviceMemory","ipod","clipboard-write","BATTERY_LEVEL","() {","MQ_SCREEN","agentIdentificationEnabled","unknown transient reason","spawn","persistent-storage","navigator.plugins_empty","getExtension","flatAndAddMetadata","push","maxFragmentUniformVectors","calculateDeviceMetadata","getCurrentBrowserFingerPrint","trustTokenOperationError","blank page","universalTrustEnabled","you","metadataBlackList","battery","MAX_COMBINED_TEXTURE_IMAGE_UNITS","domBlockers","getUndefinedValueLie","fingerPrintComponentKeys","Geolocation API is not supported by this browser.","electron","ligatures","game_pads","hasWebcam","invertedColors","set","canvas","engine","WEBGL_MAXTEXTURESIZE","mozRTCPeerConnection","NAVIGATOR_USER_AGENT","perplexitybot","assign","' in browser '","cookieEnabled","quota detection failed: ","interestCohort","permissions_api_overriden","webkitRequestFileSystem","getLies","openDatabase","getFingerPrint","memory","browserMajor","ZTE","isBot","debug","WEBGL_VERSION","fmget_targets","stringify","innerHeight","20030107","statusText","apply","custom_event","mediaplayer","MAX_VERTEX_TEXTURE_IMAGE_UNITS","addIframeData","sessionStorage.length","filename","allSettled","NOTIFICATION_PERMISSION","tablet","onLine","enumerateDevices","rad.io","HAS_CHROME_APP","documentElement","enumerateDevicesEnabled","calculated browser device attributes.","applePay","failed to get fingerprint info","Brave","longitude","charging","__selenium_unwrapped","hasOwnProperty","document","availHeight","deleteDatabase","coords","lieTypes","getWebglCanvas","getOwnPropertyDescriptors","indexeddbblob","462291Onrrdu","stack","iframe","function get ","659461WYWsqS","MEMORY_HEAP_SIZE_LIMIT","chargingTime","websockets","DetectHeadless","open","speed","Geolocation retrieval failed: Unknown geolocation error occurred.","availWidth","function () { [native code] }","race","NAVIGATOR_APP_VERSION","cant","all","Windows","PERMISSIONS","data_view","refreshDeviceAttributes","DOCUMENT_ELEMENT_SELENIUM","ondeviceproximity","sin","isBatterySupported","indexeddb","BLINK","media","query","DOM_BLOCKERS","CPU_ARCHITECTURE","html","getGeoSessionData","numberOfAudioDevices","Verizon","NAVIGATOR_CONNECTION_RTT","sent","caller","timpibot","PromiseQueue","INCOMPATIBLE_BROWSER","audiooutput","freeze","NAVIGATOR_CLIENT_HINTS_PLATFORM","referrer","getRandomValues","media_source","Promise","application/json","type","window_geb","__driver_evaluate","IS_TOUCH_DEVICE","getPermissionsMetadata","isWebGlSupported","agentPort","batteryChargingTime","queryselector","exif_orientation","plugins","webdriver","BROWSER_TYPE","architecture","RunPerfTest","failed to add iframe data","audioinput","__fxdriver_unwrapped","youbot","ccbot","IS_AIBot","failed to add client hints","floc_version","Volvo","function get contentWindow() { [native code] }","MAX_VERTEX_ATTRIBS","htmlGeoLocation_timestamp","WEB_RTC_SRFLX_IP","latitude","agentTimeout","batteryCharging","AiaSignals","driver-evaluate","history","enumerateDevices() not supported.","trim","audio/aac","getHeadlessResults","Slack","Yahoo! Japan","DeviceOrientationEvent","custom_elements","() { [native code] }","getMediaCodec","getOps","browser","isPrivateMode","ambient_light","HAS_CAMERA","ignore","force_touch","remove","tan","cors","substr","googleother-video","contentWindow","BROWSER_ENGINE_NAME","WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN","getLineDash","maxVaryingVectors","omgilibot","BROWSER_NAME","createObjectStore","browserName","toUpperCase","indexedDB","NAVIGATOR_PLATFORM","userLanguage","FONT_PREFERENCES","searchLies","audioIntVideoInit","webGlBasics","disabledStorage","externalIdentifiers","webgl","match","__$webdriverAsyncExecutor","outerHeight","numberOfVideoDevices","onerror","Voice","HAS_CHROME_RUNTIME","setTrustToken","isAIBot","Sequentum","external","gptbot","error_code","userAgentData","callPhantom","TIMEOUT","GYROSCOPE_SUPPORTED","Invalid geoData JSON in session storage:","inIframe","LOG2E","Util","Failed to get FingerPrint ","window.chrome_missing","enumerateDevices failed"," headless test was failed","AGENT_DEVICE_URL","callSelenium","constructor","getSupportedExtensions","deviceType","Notification","cos","Xq7tSbjB517mhZwt","includes","VIDEO_INPUT_DEVICES","force_touch.webkit_force_at_mouse_down","hide","Geolocation retrieval failed: Location request timed out.","maxCombinedTextureImageUnits","RCA","htmlGeoLocation_accuracy","addClientHints","htmlGeoLocation","getPrototypeInFunctionLie","acos","MEMORY_USED_HEAP_SIZE","getSensorsMetadata","getIdentificationMetadata","documentLie","WEBGL_MAXFRAGMENTUNIFORMVECTORS","cros","hasSpeakers","ondevicemotion","Incognito","pdfViewerEnabled","PingOne Signals deviceId: ","engineName","host","IS_WEB_GLSTATUS","toString","__phantomas","domAutomationController","dataPoints","put","FingerPrint failed","loadTimes","batteryLevel","accuracy","HASLIEDLANGUAGES","tanh","Dragon Touch","cbrt","AUDIO_INPUT_DEVICES","FINGER_PRINT","detect","vertical","claude-web","isElectronFamily","crawler","selenium-evaluate","fingerprintTimeoutMillis","GPS_SUPPORTED","getDirectory","aiaSignals","languages","request_animation_frame","create","components","NextBook","applebot","getRTCPeerConnection","failed to get lies results","ARCHITECTURE","Logger","webglVersion","length","getAiaSignals","horizontal","_Selenium_IDE_Recorder","prompt","filter","geb","webgl2","htmlGeoLocation_longitude","LvTel","contrast","failed to get deviceId info","WEBGL_MAXRENDERBUFFERSIZE","audioOutputDevices","additionalMediaCodecs","accelerometer","pointerlock","gyroscope","MEDIA_CODEC_X_M4A","setLocalDescription","NAVIGATOR_DEVICE_MEMORY","platform","left","service_worker","microphone","timestamp","AT&T","app","toSource","NAVIGATOR_PRESENTATION_SUPPORTED","IS_MOBILE","msMaxTouchPoints","geolocation","semrushbot-ocob","denied","metadataParams","ChromeDriverw","audioInputDevices","version","fingerPrint","permissions","__assign","isIAFDetectionEnabled","lieTests","msPointerEnabled","deviceCreatedAt","split","iOS","test","...","IS_ELECTRON_FAMILY","4ciBhSC","domAutomation","createElement","monochrome","navigator","context_menu","[[IsRevoked]]","getIoMetadata","getStealthResult","visitorId","Flip Player","continue","payment-handler","AUDIO_FINGERPRINT","fetcher","MEDIA_CODEC_AAC","SHADING_LANGUAGE_VERSION","level","contextmenu","video","getContext","camera","mimeTypes","call","connection","colorGamut","text","getLocalAgentJwt","facebookbot","Envizen","Failed to fetch the Workstation data. Request timed out after ","cpuClass","aiSignalsResult","SDKBP_FINGERPRINT","innerWidth","sinh","isFunction","HASLIEDOS","error","safeModernizrOn","forcedColors","omgili","notifications","localAgentJwtRequestCount","eventlistener","getHasLiedOs","ambientlight","ops","exec","localAgentAccessor","Error during detection of aiasignals:","__webdriver_script_fn","next","serviceworker","appName","__fxdriver_evaluate","isIphoneOrIPad","_POSignalsMetadata","gpsSupported","forcetouch","osCpu","mediaDevices","trustToken","77962nplGEe","isWebGl2","indexOf","maxTouchPoints","full_screen","40tAfuey","mac","NAVIGATOR_APP_CODE_NAME","WebGLMetadata","htmlGeoLocation_ErrorMessage","audioBaseLatency","Neither WebGL 2.0 nor WebGL 1.0 is supported.","undefined","evaluateModernizr","floc_id","json","MEMORY_TOTAL_HEAP_SIZE","fingerprint","DetectLies","[[Handler]]","Linux","Opera","trys","WEBGL2VENDORANDRENDERER","arguments","speechSynthesis","htmlGeoLocation_heading","trident","FingerprintJS","extensions","body","setItem","__proto__","167168BPQvBl","index_chrome_too_high","calculatedDevToolsOpen","__selenium_evaluate","timezone","1278549CGIQXB","win","propertyBlackList","getDeviceAttributes","webkitTemporaryStorage","Firefox","log10","audio/x-m4a","hid","webRtcUrl","dart","Function","headlessTests","pop","googleother","toFixed","copyFromChannel","LN2","ipad","stealth test ","window_html_webdriver","WEBKIT_FORCE_AT_MOUSE_DOWN","SQRT2","iframe.contentWindow","webzio-extended","ontouchstart","screenResolution","midi","chrome","MAX_FRAGMENT_UNIFORM_VECTORS","join","fullscreen","meta-externalagent","headlessResults","Unknown","__webdriver_unwrapped","oai-searchbot","webdriver-evaluate-response","pike","delay","jsHeapSizeLimit","MEDIA_CODEC_","getElementsByTagName","downlinkMax","failed ","DetectStealth","vendor","RESOLUTION","PERMISSION_DENIED","candidate","36fvgLzH","Windows Phone","done","msSaveBlob","NAVIGATOR_CLIENT_HINTS_BRAND_","usedJSHeapSize","value","GET","MAX_RENDERBUFFER_SIZE","deviceVendor","getGeoLocationData","product","_POSignalsUtils","prototype","HASLIEDBROWSER","number","cpuArchitecture","UAParserHelperMetadata","totalJSHeapSize","linux","window_RunPerfTest","WEBGL_MAXVERTEXTEXTUREIMAGEUNITS","isChromeFamily","NAVIGATOR_VENDOR","screen","renderer","getNewObjectToStringTypeErrorLie","audio","firefox","RENDERER","PingOne Signals deviceCreatedAt: ","isCanvasSupported","StackTraceTester","dischargingTime","vibrate","POSITION_UNAVAILABLE","Modernizr","warn","userAgent","notification","MediaSource","getClientRects","width","NAVIGATOR_HARDWARE_CONCURRENCY","browserType","prefixed","getOwnPropertyDescriptor","BROWSER_VERSION","brand","return","BROWSER_TAB_HISTORY_LENGTH","cookiesEnabled","HAS_CHROME_CSI","IS_ACCEPT_COOKIES","catch","WEBGL_EXTENSIONS","osVersion","touchevents","Safari","navigator.webdriver_present","colorDepth","__awaiter","state","getHasLiedResolution","sendMessage","94375WvHsBB","blobconstructor","IS_WEBGL","brands","OPS","Barnes & Noble","emit","getOwnPropertyLie","window_fmget_targets","WEBGL_MAXVERTEXATTRIBS","dark","mobile","typedarrays","MAX_VARYING_VECTORS","keys","storage","typed_arrays","BATTERY_DISCHARGING_TIME","has","NAVIGATOR_MAX_TOUCH_POINTS","isPrivateModeV2","getBattery","engineVersion","safari","AbortError","then","osName","Android","PUSH_NOTIFICATIONS_SUPPORTED","selenium_sequentum","outerWidth","slice","getTime","LIES.","runtime","abort","cryptography","throw","cli","quota_management","WEB_RTC_ENABLED","supported","Internet Explorer","NAVIGATOR_MIME_TYPES_LENGTH","NETWORK_TYPE","appVersion","_phantom","Mac","__webdriver_script_function","screenFrame","hdr","webRtcIps","initDeviceIdentity","sessionStorage"];return(e=function(){return t})()};var me;(function(t,a){typeof t.CustomEvent!="function"&&(t.CustomEvent=function(){return function(s,r){r=r||{bubbles:!1,cancelable:!1,detail:null};var i=document.createEvent("CustomEvent");return i.initCustomEvent(s,r.bubbles,r.cancelable,r.detail),i}}())})(window),function(){var t="st-ping-div";function a(l){document.readyState!=="loading"?l():document.addEventListener("DOMContentLoaded",l)}function s(l){a(function(){var u;l&&((u=document.getElementById(t))||((u=document.createElement("div")).style.border="none",u.style.position="absolute",u.style.top="-999px",u.style.left="-999px",u.style.width="0",u.style.height="0",u.style.visibility="hidden",u.style.overflow="hidden",u.id=t,document.body.appendChild(u)),u=u,window._pingOneSignalsToken=getComputedStyle(u,"::after").content.replace(/['"]+/g,""),document.dispatchEvent(new CustomEvent("PingOneSignalsTokenReadyEvent"))),u="Finished - "+(l?"success":"failure"),window["enable-logs-pingOneSignals"]&&console.log(u)})}var r,i,o=document.querySelector("script[data-pingOneSignalsSkipToken]");o&&o.getAttribute("data-pingOneSignalsSkipToken")==="true"?(window._pingOneSignalsToken="skipped_token_"+new Date().getTime(),a(function(){document.dispatchEvent(new CustomEvent("PingOneSignalsTokenSkippedEvent"))})):(window._pingOneSignalsToken||(window._pingOneSignalsToken="uninitialized_token_"+new Date().getTime()),o=window._pingOneSignalsCustomHost||"apps.pingone.com",r={sdkVersion:"5.6.4w",platform:navigator.platform||""},r=encodeURIComponent(function(l){var u,c,d,f,h,p,m="",w=0,E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";for(l=function(v){v=v.replace(/\r\n/g,`
|
|
4
|
+
`);for(var y="",b=0;b<v.length;b++){var S=v.charCodeAt(b);S<128?y+=String.fromCharCode(S):y=127<S&&S<2048?(y+=String.fromCharCode(S>>6|192))+String.fromCharCode(63&S|128):(y=(y+=String.fromCharCode(S>>12|224))+String.fromCharCode(S>>6&63|128))+String.fromCharCode(63&S|128)}return y}(l);w<l.length;)d=(u=l.charCodeAt(w++))>>2,f=(3&u)<<4|(u=l.charCodeAt(w++))>>4,h=(15&u)<<2|(c=l.charCodeAt(w++))>>6,p=63&c,isNaN(u)?h=p=64:isNaN(c)&&(p=64),m=m+E.charAt(d)+E.charAt(f)+E.charAt(h)+E.charAt(p);return m}(function(l,u){for(var c=[],d=0;d<l.length;d++){var f=l.charCodeAt(d)^u.charCodeAt(d%u.length);c.push(String.fromCharCode(f))}return c.join("")}(JSON.stringify(r),"dkiBm42"))),(i=document.createElement("link")).type="text/css",i.rel="stylesheet",i.href="https://"+o+"/signals/sdk/pong.css?body="+r+"&e=2",(document.head||document.getElementsByTagName("head")[0]).appendChild(i),i.onload=function(){s(!0)},i.onerror=function(){s(!1)})}(),function(t){t._POSignalsEntities||(t._POSignalsEntities={}),t._pingOneSignals&&console.warn("PingOne Signals script was imported multiple times")}(window),function(t){function a(h){var p=this.constructor;return this.then(function(m){return p.resolve(h()).then(function(){return m})},function(m){return p.resolve(h()).then(function(){return p.reject(m)})})}var s=setTimeout;function r(h){return!!(h&&h.length!==void 0)}function i(){}function o(h){if(!(this instanceof o))throw new TypeError("Promises must be constructed via new");if(typeof h!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],f(h,this)}function l(h,p){for(;h._state===3;)h=h._value;h._state!==0?(h._handled=!0,o._immediateFn(function(){var m=h._state===1?p.onFulfilled:p.onRejected;if(m!==null){var w;try{w=m(h._value)}catch(E){return void c(p.promise,E)}u(p.promise,w)}else(h._state===1?u:c)(p.promise,h._value)})):h._deferreds.push(p)}function u(h,p){try{if(p===h)throw new TypeError("A promise cannot be resolved with itself.");if(p&&(typeof p=="object"||typeof p=="function")){var m=p.then;if(p instanceof o)return h._state=3,h._value=p,void d(h);if(typeof m=="function")return void f((w=m,E=p,function(){w.apply(E,arguments)}),h)}h._state=1,h._value=p,d(h)}catch(v){c(h,v)}var w,E}function c(h,p){h._state=2,h._value=p,d(h)}function d(h){h._state===2&&h._deferreds.length===0&&o._immediateFn(function(){h._handled||o._unhandledRejectionFn(h._value)});for(var p=0,m=h._deferreds.length;p<m;p++)l(h,h._deferreds[p]);h._deferreds=null}function f(h,p){var m=!1;try{h(function(w){m||(m=!0,u(p,w))},function(w){m||(m=!0,c(p,w))})}catch(w){if(m)return;m=!0,c(p,w)}}o.prototype.catch=function(h){return this.then(null,h)},o.prototype.then=function(h,p){var m=new this.constructor(i);return l(this,new function(w,E,v){this.onFulfilled=typeof w=="function"?w:null,this.onRejected=typeof E=="function"?E:null,this.promise=v}(h,p,m)),m},o.prototype.finally=a,o.all=function(h){return new o(function(p,m){if(!r(h))return m(new TypeError("Promise.all accepts an array"));var w=Array.prototype.slice.call(h);if(w.length===0)return p([]);var E=w.length;function v(b,S){try{if(S&&(typeof S=="object"||typeof S=="function")){var I=S.then;if(typeof I=="function")return void I.call(S,function(C){v(b,C)},m)}w[b]=S,--E==0&&p(w)}catch(C){m(C)}}for(var y=0;y<w.length;y++)v(y,w[y])})},o.resolve=function(h){return h&&typeof h=="object"&&h.constructor===o?h:new o(function(p){p(h)})},o.reject=function(h){return new o(function(p,m){m(h)})},o.race=function(h){return new o(function(p,m){if(!r(h))return m(new TypeError("Promise.race accepts an array"));for(var w=0,E=h.length;w<E;w++)o.resolve(h[w]).then(p,m)})},o._immediateFn=typeof setImmediate=="function"&&function(h){setImmediate(h)}||function(h){s(h,0)},o._unhandledRejectionFn=function(h){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",h)},typeof t.Promise!="function"?t.Promise=o:t.Promise.prototype.finally||(t.Promise.prototype.finally=a)}(window),function(t,a){(me||(me={})).PromiseQueue=function(){var s=function(){};function r(i,o,l){this.options=l=l||{},this.pendingPromises=0,this.maxPendingPromises=i!==void 0?i:1/0,this.maxQueuedPromises=o!==void 0?o:1/0,this.queue=[]}return r.prototype.add=function(i){var o=this;return new Promise(function(l,u,c){o.queue.length>=o.maxQueuedPromises?u(new Error("Queue limit reached")):(o.queue.push({promiseGenerator:i,resolve:l,reject:u,notify:c||s}),o._dequeue())})},r.prototype.getPendingLength=function(){return this.pendingPromises},r.prototype.getQueueLength=function(){return this.queue.length},r.prototype._dequeue=function(){var i=this;if(this.pendingPromises>=this.maxPendingPromises)return!1;var o,l=this.queue.shift();if(!l)return this.options.onEmpty&&this.options.onEmpty(),!1;try{this.pendingPromises++,(o=l.promiseGenerator(),o&&typeof o.then=="function"?o:new Promise(function(u){u(o)})).then(function(u){i.pendingPromises--,l.resolve(u),i._dequeue()},function(u){i.pendingPromises--,l.reject(u),i._dequeue()},function(u){l.notify(u)})}catch(u){i.pendingPromises--,l.reject(u),i._dequeue()}return!0},r}()}(),function(t){var a="input is invalid type",s=!t.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",r="0123456789abcdef".split(""),i=[-2147483648,8388608,32768,128],o=[24,16,8,0],l=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],u=["hex","array","digest","arrayBuffer"],c=[];!t.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(v){return Object.prototype.toString.call(v)==="[object Array]"}),!s||!t.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(v){return typeof v=="object"&&v.buffer&&v.buffer.constructor===ArrayBuffer});var d=function(v,y){return function(b){return new m(y,!0).update(b)[v]()}},f=function(v){var y=d("hex",v);y.create=function(){return new m(v)},y.update=function(I){return y.create().update(I)};for(var b=0;b<u.length;++b){var S=u[b];y[S]=d(S,v)}return y},h=function(v,y){return function(b,S){return new w(b,y,!0).update(S)[v]()}},p=function(v){var y=h("hex",v);y.create=function(I){return new w(I,v)},y.update=function(I,C){return y.create(I).update(C)};for(var b=0;b<u.length;++b){var S=u[b];y[S]=h(S,v)}return y};function m(v,y){y?(c[0]=c[16]=c[1]=c[2]=c[3]=c[4]=c[5]=c[6]=c[7]=c[8]=c[9]=c[10]=c[11]=c[12]=c[13]=c[14]=c[15]=0,this.blocks=c):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],v?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=v}function w(v,y,b){var S,I=typeof v;if(I==="string"){var C,k=[],M=v.length,P=0;for(S=0;S<M;++S)(C=v.charCodeAt(S))<128?k[P++]=C:C<2048?(k[P++]=192|C>>6,k[P++]=128|63&C):C<55296||C>=57344?(k[P++]=224|C>>12,k[P++]=128|C>>6&63,k[P++]=128|63&C):(C=65536+((1023&C)<<10|1023&v.charCodeAt(++S)),k[P++]=240|C>>18,k[P++]=128|C>>12&63,k[P++]=128|C>>6&63,k[P++]=128|63&C);v=k}else{if(I!=="object")throw new Error(a);if(v===null)throw new Error(a);if(s&&v.constructor===ArrayBuffer)v=new Uint8Array(v);else if(!(Array.isArray(v)||s&&ArrayBuffer.isView(v)))throw new Error(a)}v.length>64&&(v=new m(y,!0).update(v).array());var D=[],V=[];for(S=0;S<64;++S){var B=v[S]||0;D[S]=92^B,V[S]=54^B}m.call(this,y,b),this.update(V),this.oKeyPad=D,this.inner=!0,this.sharedMemory=b}m.prototype.update=function(v){if(!this.finalized){var y,b=typeof v;if(b!=="string"){if(b!=="object")throw new Error(a);if(v===null)throw new Error(a);if(s&&v.constructor===ArrayBuffer)v=new Uint8Array(v);else if(!(Array.isArray(v)||s&&ArrayBuffer.isView(v)))throw new Error(a);y=!0}for(var S,I,C=0,k=v.length,M=this.blocks;C<k;){if(this.hashed&&(this.hashed=!1,M[0]=this.block,M[16]=M[1]=M[2]=M[3]=M[4]=M[5]=M[6]=M[7]=M[8]=M[9]=M[10]=M[11]=M[12]=M[13]=M[14]=M[15]=0),y)for(I=this.start;C<k&&I<64;++C)M[I>>2]|=v[C]<<o[3&I++];else for(I=this.start;C<k&&I<64;++C)(S=v.charCodeAt(C))<128?M[I>>2]|=S<<o[3&I++]:S<2048?(M[I>>2]|=(192|S>>6)<<o[3&I++],M[I>>2]|=(128|63&S)<<o[3&I++]):S<55296||S>=57344?(M[I>>2]|=(224|S>>12)<<o[3&I++],M[I>>2]|=(128|S>>6&63)<<o[3&I++],M[I>>2]|=(128|63&S)<<o[3&I++]):(S=65536+((1023&S)<<10|1023&v.charCodeAt(++C)),M[I>>2]|=(240|S>>18)<<o[3&I++],M[I>>2]|=(128|S>>12&63)<<o[3&I++],M[I>>2]|=(128|S>>6&63)<<o[3&I++],M[I>>2]|=(128|63&S)<<o[3&I++]);this.lastByteIndex=I,this.bytes+=I-this.start,I>=64?(this.block=M[16],this.start=I-64,this.hash(),this.hashed=!0):this.start=I}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},m.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var v=this.blocks,y=this.lastByteIndex;v[16]=this.block,v[y>>2]|=i[3&y],this.block=v[16],y>=56&&(this.hashed||this.hash(),v[0]=this.block,v[16]=v[1]=v[2]=v[3]=v[4]=v[5]=v[6]=v[7]=v[8]=v[9]=v[10]=v[11]=v[12]=v[13]=v[14]=v[15]=0),v[14]=this.hBytes<<3|this.bytes>>>29,v[15]=this.bytes<<3,this.hash()}},m.prototype.hash=function(){var v,y,b,S,I,C,k,M,P,D=this.h0,V=this.h1,B=this.h2,Y=this.h3,Z=this.h4,te=this.h5,$=this.h6,H=this.h7,A=this.blocks;for(v=16;v<64;++v)y=((I=A[v-15])>>>7|I<<25)^(I>>>18|I<<14)^I>>>3,b=((I=A[v-2])>>>17|I<<15)^(I>>>19|I<<13)^I>>>10,A[v]=A[v-16]+y+A[v-7]+b<<0;for(P=V&B,v=0;v<64;v+=4)this.first?(this.is224?(C=300032,H=(I=A[0]-1413257819)-150054599<<0,Y=I+24177077<<0):(C=704751109,H=(I=A[0]-210244248)-1521486534<<0,Y=I+143694565<<0),this.first=!1):(y=(D>>>2|D<<30)^(D>>>13|D<<19)^(D>>>22|D<<10),S=(C=D&V)^D&B^P,H=Y+(I=H+(b=(Z>>>6|Z<<26)^(Z>>>11|Z<<21)^(Z>>>25|Z<<7))+(Z&te^~Z&$)+l[v]+A[v])<<0,Y=I+(y+S)<<0),y=(Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10),S=(k=Y&D)^Y&V^C,$=B+(I=$+(b=(H>>>6|H<<26)^(H>>>11|H<<21)^(H>>>25|H<<7))+(H&Z^~H&te)+l[v+1]+A[v+1])<<0,y=((B=I+(y+S)<<0)>>>2|B<<30)^(B>>>13|B<<19)^(B>>>22|B<<10),S=(M=B&Y)^B&D^k,te=V+(I=te+(b=($>>>6|$<<26)^($>>>11|$<<21)^($>>>25|$<<7))+($&H^~$&Z)+l[v+2]+A[v+2])<<0,y=((V=I+(y+S)<<0)>>>2|V<<30)^(V>>>13|V<<19)^(V>>>22|V<<10),S=(P=V&B)^V&Y^M,Z=D+(I=Z+(b=(te>>>6|te<<26)^(te>>>11|te<<21)^(te>>>25|te<<7))+(te&$^~te&H)+l[v+3]+A[v+3])<<0,D=I+(y+S)<<0;this.h0=this.h0+D<<0,this.h1=this.h1+V<<0,this.h2=this.h2+B<<0,this.h3=this.h3+Y<<0,this.h4=this.h4+Z<<0,this.h5=this.h5+te<<0,this.h6=this.h6+$<<0,this.h7=this.h7+H<<0},m.prototype.hex=function(){this.finalize();var v=this.h0,y=this.h1,b=this.h2,S=this.h3,I=this.h4,C=this.h5,k=this.h6,M=this.h7,P=r[v>>28&15]+r[v>>24&15]+r[v>>20&15]+r[v>>16&15]+r[v>>12&15]+r[v>>8&15]+r[v>>4&15]+r[15&v]+r[y>>28&15]+r[y>>24&15]+r[y>>20&15]+r[y>>16&15]+r[y>>12&15]+r[y>>8&15]+r[y>>4&15]+r[15&y]+r[b>>28&15]+r[b>>24&15]+r[b>>20&15]+r[b>>16&15]+r[b>>12&15]+r[b>>8&15]+r[b>>4&15]+r[15&b]+r[S>>28&15]+r[S>>24&15]+r[S>>20&15]+r[S>>16&15]+r[S>>12&15]+r[S>>8&15]+r[S>>4&15]+r[15&S]+r[I>>28&15]+r[I>>24&15]+r[I>>20&15]+r[I>>16&15]+r[I>>12&15]+r[I>>8&15]+r[I>>4&15]+r[15&I]+r[C>>28&15]+r[C>>24&15]+r[C>>20&15]+r[C>>16&15]+r[C>>12&15]+r[C>>8&15]+r[C>>4&15]+r[15&C]+r[k>>28&15]+r[k>>24&15]+r[k>>20&15]+r[k>>16&15]+r[k>>12&15]+r[k>>8&15]+r[k>>4&15]+r[15&k];return this.is224||(P+=r[M>>28&15]+r[M>>24&15]+r[M>>20&15]+r[M>>16&15]+r[M>>12&15]+r[M>>8&15]+r[M>>4&15]+r[15&M]),P},m.prototype.toString=m.prototype.hex,m.prototype.digest=function(){this.finalize();var v=this.h0,y=this.h1,b=this.h2,S=this.h3,I=this.h4,C=this.h5,k=this.h6,M=this.h7,P=[v>>24&255,v>>16&255,v>>8&255,255&v,y>>24&255,y>>16&255,y>>8&255,255&y,b>>24&255,b>>16&255,b>>8&255,255&b,S>>24&255,S>>16&255,S>>8&255,255&S,I>>24&255,I>>16&255,I>>8&255,255&I,C>>24&255,C>>16&255,C>>8&255,255&C,k>>24&255,k>>16&255,k>>8&255,255&k];return this.is224||P.push(M>>24&255,M>>16&255,M>>8&255,255&M),P},m.prototype.array=m.prototype.digest,m.prototype.arrayBuffer=function(){this.finalize();var v=new ArrayBuffer(this.is224?28:32),y=new DataView(v);return y.setUint32(0,this.h0),y.setUint32(4,this.h1),y.setUint32(8,this.h2),y.setUint32(12,this.h3),y.setUint32(16,this.h4),y.setUint32(20,this.h5),y.setUint32(24,this.h6),this.is224||y.setUint32(28,this.h7),v},w.prototype=new m,w.prototype.finalize=function(){if(m.prototype.finalize.call(this),this.inner){this.inner=!1;var v=this.array();m.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(v),m.prototype.finalize.call(this)}};var E=f();E.sha256=E,E.sha224=f(!0),E.sha256.hmac=p(),E.sha224.hmac=p(!0),t.sha256=E.sha256,t.sha224=E.sha224}(me||(me={})),(me||(me={})).FingerprintJS=function(t){var a=function(){return(a=Object.assign||function(O){for(var U,j=1,q=arguments.length;j<q;j++)for(var ie in U=arguments[j])Object.prototype.hasOwnProperty.call(U,ie)&&(O[ie]=U[ie]);return O}).apply(this,arguments)};function s(O,U,j,q){return new(j||(j=Promise))(function(ie,Ee){function Ie(fe){try{X(q.next(fe))}catch(ye){Ee(ye)}}function de(fe){try{X(q.throw(fe))}catch(ye){Ee(ye)}}function X(fe){var ye;fe.done?ie(fe.value):(ye=fe.value,ye instanceof j?ye:new j(function(Se){Se(ye)})).then(Ie,de)}X((q=q.apply(O,[])).next())})}function r(O,U){var j,q,ie,Ee,Ie={label:0,sent:function(){if(1&ie[0])throw ie[1];return ie[1]},trys:[],ops:[]};return Ee={next:de(0),throw:de(1),return:de(2)},typeof Symbol=="function"&&(Ee[Symbol.iterator]=function(){return this}),Ee;function de(X){return function(fe){return function(ye){if(j)throw new TypeError("Generator is already executing.");for(;Ee&&(Ee=0,ye[0]&&(Ie=0)),Ie;)try{if(j=1,q&&(ie=2&ye[0]?q.return:ye[0]?q.throw||((ie=q.return)&&ie.call(q),0):q.next)&&!(ie=ie.call(q,ye[1])).done)return ie;switch(q=0,ie&&(ye=[2&ye[0],ie.value]),ye[0]){case 0:case 1:ie=ye;break;case 4:return Ie.label++,{value:ye[1],done:!1};case 5:Ie.label++,q=ye[1],ye=[0];continue;case 7:ye=Ie.ops.pop(),Ie.trys.pop();continue;default:if(!(ie=(ie=Ie.trys).length>0&&ie[ie.length-1])&&(ye[0]===6||ye[0]===2)){Ie=0;continue}if(ye[0]===3&&(!ie||ye[1]>ie[0]&&ye[1]<ie[3])){Ie.label=ye[1];break}if(ye[0]===6&&Ie.label<ie[1]){Ie.label=ie[1],ie=ye;break}if(ie&&Ie.label<ie[2]){Ie.label=ie[2],Ie.ops.push(ye);break}ie[2]&&Ie.ops.pop(),Ie.trys.pop();continue}ye=U.call(O,Ie)}catch(Se){ye=[6,Se],q=0}finally{j=ie=0}if(5&ye[0])throw ye[1];return{value:ye[0]?ye[1]:void 0,done:!0}}([X,fe])}}}function i(O,U,j){for(var q,ie=0,Ee=U.length;ie<Ee;ie++)!q&&ie in U||(q||(q=Array.prototype.slice.call(U,0,ie)),q[ie]=U[ie]);return O.concat(q||Array.prototype.slice.call(U))}var o="4.6.1";function l(O,U){return new Promise(function(j){return setTimeout(j,O,U)})}function u(O){return!!O&&typeof O.then=="function"}function c(O,U){try{var j=O();u(j)?j.then(function(q){return U(!0,q)},function(q){return U(!1,q)}):U(!0,j)}catch(q){U(!1,q)}}function d(O,U,j){return j===void 0&&(j=16),s(this,void 0,void 0,function(){var q,ie,Ee,Ie;return r(this,function(de){switch(de.label){case 0:q=Array(O.length),ie=Date.now(),Ee=0,de.label=1;case 1:return Ee<O.length?(q[Ee]=U(O[Ee],Ee),(Ie=Date.now())>=ie+j?(ie=Ie,[4,new Promise(function(X){var fe=new MessageChannel;fe.port1.onmessage=function(){return X()},fe.port2.postMessage(null)})]):[3,3]):[3,4];case 2:de.sent(),de.label=3;case 3:return++Ee,[3,1];case 4:return[2,q]}})})}function f(O){return O.then(void 0,function(){}),O}function h(O){return parseInt(O)}function p(O){return parseFloat(O)}function m(O,U){return typeof O=="number"&&isNaN(O)?U:O}function w(O){return O.reduce(function(U,j){return U+(j?1:0)},0)}function E(O,U){if(U===void 0&&(U=1),Math.abs(U)>=1)return Math.round(O/U)*U;var j=1/U;return Math.round(O*j)/j}function v(O,U){var j=O[0]>>>16,q=65535&O[0],ie=O[1]>>>16,Ee=65535&O[1],Ie=U[0]>>>16,de=65535&U[0],X=U[1]>>>16,fe=0,ye=0,Se=0,Pe=0;Se+=(Pe+=Ee+(65535&U[1]))>>>16,Pe&=65535,ye+=(Se+=ie+X)>>>16,Se&=65535,fe+=(ye+=q+de)>>>16,ye&=65535,fe+=j+Ie,fe&=65535,O[0]=fe<<16|ye,O[1]=Se<<16|Pe}function y(O,U){var j=O[0]>>>16,q=65535&O[0],ie=O[1]>>>16,Ee=65535&O[1],Ie=U[0]>>>16,de=65535&U[0],X=U[1]>>>16,fe=65535&U[1],ye=0,Se=0,Pe=0,Xe=0;Pe+=(Xe+=Ee*fe)>>>16,Xe&=65535,Se+=(Pe+=ie*fe)>>>16,Pe&=65535,Se+=(Pe+=Ee*X)>>>16,Pe&=65535,ye+=(Se+=q*fe)>>>16,Se&=65535,ye+=(Se+=ie*X)>>>16,Se&=65535,ye+=(Se+=Ee*de)>>>16,Se&=65535,ye+=j*fe+q*X+ie*de+Ee*Ie,ye&=65535,O[0]=ye<<16|Se,O[1]=Pe<<16|Xe}function b(O,U){var j=O[0];(U%=64)==32?(O[0]=O[1],O[1]=j):U<32?(O[0]=j<<U|O[1]>>>32-U,O[1]=O[1]<<U|j>>>32-U):(U-=32,O[0]=O[1]<<U|j>>>32-U,O[1]=j<<U|O[1]>>>32-U)}function S(O,U){(U%=64)!=0&&(U<32?(O[0]=O[1]>>>32-U,O[1]=O[1]<<U):(O[0]=O[1]<<U-32,O[1]=0))}function I(O,U){O[0]^=U[0],O[1]^=U[1]}var C=[4283543511,3981806797],k=[3301882366,444984403];function M(O){var U=[0,O[0]>>>1];I(O,U),y(O,C),U[1]=O[0]>>>1,I(O,U),y(O,k),U[1]=O[0]>>>1,I(O,U)}var P=[2277735313,289559509],D=[1291169091,658871167],V=[0,5],B=[0,1390208809],Y=[0,944331445];function Z(O,U){var j=function(Pe){for(var Xe=new Uint8Array(Pe.length),ct=0;ct<Pe.length;ct++){var bt=Pe.charCodeAt(ct);if(bt>127)return new TextEncoder().encode(Pe);Xe[ct]=bt}return Xe}(O);U=U||0;var q,ie=[0,j.length],Ee=ie[1]%16,Ie=ie[1]-Ee,de=[0,U],X=[0,U],fe=[0,0],ye=[0,0];for(q=0;q<Ie;q+=16)fe[0]=j[q+4]|j[q+5]<<8|j[q+6]<<16|j[q+7]<<24,fe[1]=j[q]|j[q+1]<<8|j[q+2]<<16|j[q+3]<<24,ye[0]=j[q+12]|j[q+13]<<8|j[q+14]<<16|j[q+15]<<24,ye[1]=j[q+8]|j[q+9]<<8|j[q+10]<<16|j[q+11]<<24,y(fe,P),b(fe,31),y(fe,D),I(de,fe),b(de,27),v(de,X),y(de,V),v(de,B),y(ye,D),b(ye,33),y(ye,P),I(X,ye),b(X,31),v(X,de),y(X,V),v(X,Y);fe[0]=0,fe[1]=0,ye[0]=0,ye[1]=0;var Se=[0,0];switch(Ee){case 15:Se[1]=j[q+14],S(Se,48),I(ye,Se);case 14:Se[1]=j[q+13],S(Se,40),I(ye,Se);case 13:Se[1]=j[q+12],S(Se,32),I(ye,Se);case 12:Se[1]=j[q+11],S(Se,24),I(ye,Se);case 11:Se[1]=j[q+10],S(Se,16),I(ye,Se);case 10:Se[1]=j[q+9],S(Se,8),I(ye,Se);case 9:Se[1]=j[q+8],I(ye,Se),y(ye,D),b(ye,33),y(ye,P),I(X,ye);case 8:Se[1]=j[q+7],S(Se,56),I(fe,Se);case 7:Se[1]=j[q+6],S(Se,48),I(fe,Se);case 6:Se[1]=j[q+5],S(Se,40),I(fe,Se);case 5:Se[1]=j[q+4],S(Se,32),I(fe,Se);case 4:Se[1]=j[q+3],S(Se,24),I(fe,Se);case 3:Se[1]=j[q+2],S(Se,16),I(fe,Se);case 2:Se[1]=j[q+1],S(Se,8),I(fe,Se);case 1:Se[1]=j[q],I(fe,Se),y(fe,P),b(fe,31),y(fe,D),I(de,fe)}return I(de,ie),I(X,ie),v(de,X),v(X,de),M(de),M(X),v(de,X),v(X,de),("00000000"+(de[0]>>>0).toString(16)).slice(-8)+("00000000"+(de[1]>>>0).toString(16)).slice(-8)+("00000000"+(X[0]>>>0).toString(16)).slice(-8)+("00000000"+(X[1]>>>0).toString(16)).slice(-8)}function te(O){return typeof O!="function"}function $(O,U,j,q){var ie=Object.keys(O).filter(function(Ie){return!function(de,X){for(var fe=0,ye=de.length;fe<ye;++fe)if(de[fe]===X)return!0;return!1}(j,Ie)}),Ee=f(d(ie,function(Ie){return function(de,X){var fe=f(new Promise(function(ye){var Se=Date.now();c(de.bind(null,X),function(){for(var Pe=[],Xe=0;Xe<arguments.length;Xe++)Pe[Xe]=arguments[Xe];var ct=Date.now()-Se;if(!Pe[0])return ye(function(){return{error:Pe[1],duration:ct}});var bt=Pe[1];if(te(bt))return ye(function(){return{value:bt,duration:ct}});ye(function(){return new Promise(function(Qe){var _t=Date.now();c(bt,function(){for(var Ve=[],tn=0;tn<arguments.length;tn++)Ve[tn]=arguments[tn];var Jt=ct+Date.now()-_t;if(!Ve[0])return Qe({error:Ve[1],duration:Jt});Qe({value:Ve[1],duration:Jt})})})})})}));return function(){return fe.then(function(ye){return ye()})}}(O[Ie],U)},q));return function(){return s(this,void 0,void 0,function(){var Ie,de,X,fe;return r(this,function(ye){switch(ye.label){case 0:return[4,Ee];case 1:return[4,d(ye.sent(),function(Se){return f(Se())},q)];case 2:return Ie=ye.sent(),[4,Promise.all(Ie)];case 3:for(de=ye.sent(),X={},fe=0;fe<ie.length;++fe)X[ie[fe]]=de[fe];return[2,X]}})})}}function H(){var O=window,U=navigator;return w(["MSCSSMatrix"in O,"msSetImmediate"in O,"msIndexedDB"in O,"msMaxTouchPoints"in U,"msPointerEnabled"in U])>=4}function A(){var O=window,U=navigator;return w(["msWriteProfilerMark"in O,"MSStream"in O,"msLaunchUri"in U,"msSaveBlob"in U])>=3&&!H()}function N(){var O=window,U=navigator;return w(["webkitPersistentStorage"in U,"webkitTemporaryStorage"in U,(U.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in O,"BatteryManager"in O,"webkitMediaStream"in O,"webkitSpeechGrammar"in O])>=5}function le(){var O=window;return w(["ApplePayError"in O,"CSSPrimitiveValue"in O,"Counter"in O,navigator.vendor.indexOf("Apple")===0,"RGBColor"in O,"WebKitMediaKeys"in O])>=4}function K(){var O=window,U=O.HTMLElement,j=O.Document;return w(["safari"in O,!("ongestureend"in O),!("TouchEvent"in O),!("orientation"in O),U&&!("autocapitalize"in U.prototype),j&&"pointerLockElement"in j.prototype])>=4}function ae(){var O,U=window;return O=U.print,/^function\s.*?\{\s*\[native code]\s*}$/.test(String(O))&&String(U.browser)==="[object WebPageNamespace]"}function ve(){var O,U,j=window;return w(["buildID"in navigator,"MozAppearance"in((U=(O=document.documentElement)===null||O===void 0?void 0:O.style)!==null&&U!==void 0?U:{}),"onmozfullscreenchange"in j,"mozInnerScreenX"in j,"CSSMozDocumentRule"in j,"CanvasCaptureMediaStream"in j])>=4}function Le(){var O=window,U=navigator,j=O.CSS,q=O.HTMLButtonElement;return w([!("getStorageUpdates"in U),q&&"popover"in q.prototype,"CSSCounterStyleRule"in O,j.supports("font-size-adjust: ex-height 0.5"),j.supports("text-transform: full-width")])>=4}function Oe(){var O=document;return O.fullscreenElement||O.msFullscreenElement||O.mozFullScreenElement||O.webkitFullscreenElement||null}function Ne(){var O=N(),U=ve(),j=window,q=navigator,ie="connection";return O?w([!("SharedWorker"in j),q[ie]&&"ontypechange"in q[ie],!("sinkId"in new Audio)])>=2:!!U&&w(["onorientationchange"in j,"orientation"in j,/android/i.test(q.appVersion)])>=2}function Re(){var O=navigator,U=window,j=Audio.prototype,q=U.visualViewport;return w(["srLatency"in j,"srChannelCount"in j,"devicePosture"in O,q&&"segments"in q,"getTextInformation"in Image.prototype])>=3}function He(){var O=window,U=O.OfflineAudioContext||O.webkitOfflineAudioContext;if(!U)return-2;if(function(){return le()&&!K()&&!(w(["DOMRectList"in(fe=window),"RTCPeerConnectionIceEvent"in fe,"SVGGeometryElement"in fe,"ontransitioncancel"in fe])>=3);var fe}())return-1;var j=new U(1,5e3,44100),q=j.createOscillator();q.type="triangle",q.frequency.value=1e4;var ie=j.createDynamicsCompressor();ie.threshold.value=-50,ie.knee.value=40,ie.ratio.value=12,ie.attack.value=0,ie.release.value=.25,q.connect(ie),ie.connect(j.destination),q.start(0);var Ee=function(fe){var ye=function(){};return[new Promise(function(Se,Pe){var Xe=!1,ct=0,bt=0;fe.oncomplete=function(Ve){return Se(Ve.renderedBuffer)};var Qe=function(){setTimeout(function(){return Pe(De("timeout"))},Math.min(500,bt+5e3-Date.now()))},_t=function(){try{var Ve=fe.startRendering();switch(u(Ve)&&f(Ve),fe.state){case"running":bt=Date.now(),Xe&&Qe();break;case"suspended":document.hidden||ct++,Xe&&ct>=3?Pe(De("suspended")):setTimeout(_t,500)}}catch(tn){Pe(tn)}};_t(),ye=function(){Xe||(Xe=!0,bt>0&&Qe())}}),ye]}(j),Ie=Ee[0],de=Ee[1],X=f(Ie.then(function(fe){return function(ye){for(var Se=0,Pe=0;Pe<ye.length;++Pe)Se+=Math.abs(ye[Pe]);return Se}(fe.getChannelData(0).subarray(4500))},function(fe){if(fe.name==="timeout"||fe.name==="suspended")return-3;throw fe}));return function(){return de(),X}}function De(O){var U=new Error(O);return U.name=O,U}function at(O,U,j){var q,ie,Ee;return j===void 0&&(j=50),s(this,void 0,void 0,function(){var Ie,de;return r(this,function(X){switch(X.label){case 0:Ie=document,X.label=1;case 1:return Ie.body?[3,3]:[4,l(j)];case 2:return X.sent(),[3,1];case 3:de=Ie.createElement("iframe"),X.label=4;case 4:return X.trys.push([4,,10,11]),[4,new Promise(function(fe,ye){var Se=!1,Pe=function(){Se=!0,fe()};de.onload=Pe,de.onerror=function(bt){Se=!0,ye(bt)};var Xe=de.style;Xe.setProperty("display","block","important"),Xe.position="absolute",Xe.top="0",Xe.left="0",Xe.visibility="hidden",U&&"srcdoc"in de?de.srcdoc=U:de.src="about:blank",Ie.body.appendChild(de);var ct=function(){var bt,Qe;Se||(((Qe=(bt=de.contentWindow)===null||bt===void 0?void 0:bt.document)===null||Qe===void 0?void 0:Qe.readyState)==="complete"?Pe():setTimeout(ct,10))};ct()})];case 5:X.sent(),X.label=6;case 6:return!((ie=(q=de.contentWindow)===null||q===void 0?void 0:q.document)===null||ie===void 0)&&ie.body?[3,8]:[4,l(j)];case 7:return X.sent(),[3,6];case 8:return[4,O(de,de.contentWindow)];case 9:return[2,X.sent()];case 10:return(Ee=de.parentNode)===null||Ee===void 0||Ee.removeChild(de),[7];case 11:return[2]}})})}function Pt(O){for(var U=function(fe){for(var ye,Se,Pe="Unexpected syntax '".concat(fe,"'"),Xe=/^\s*([a-z-]*)(.*)$/i.exec(fe),ct=Xe[1]||void 0,bt={},Qe=/([.:#][\w-]+|\[.+?\])/gi,_t=function(jt,zt){bt[jt]=bt[jt]||[],bt[jt].push(zt)};;){var Ve=Qe.exec(Xe[2]);if(!Ve)break;var tn=Ve[0];switch(tn[0]){case".":_t("class",tn.slice(1));break;case"#":_t("id",tn.slice(1));break;case"[":var Jt=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(tn);if(!Jt)throw new Error(Pe);_t(Jt[1],(Se=(ye=Jt[4])!==null&&ye!==void 0?ye:Jt[5])!==null&&Se!==void 0?Se:"");break;default:throw new Error(Pe)}}return[ct,bt]}(O),j=U[0],q=U[1],ie=document.createElement(j??"div"),Ee=0,Ie=Object.keys(q);Ee<Ie.length;Ee++){var de=Ie[Ee],X=q[de].join(" ");de==="style"?wt(ie.style,X):ie.setAttribute(de,X)}return ie}function wt(O,U){for(var j=0,q=U.split(";");j<q.length;j++){var ie=q[j],Ee=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(ie);if(Ee){var Ie=Ee[1],de=Ee[2],X=Ee[4];O.setProperty(Ie,de,X||"")}}}var Tt="mmMwWLliI0O&1",en="48px",Ut=["monospace","sans-serif","serif"],Me=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function g(O){var U,j,q,ie=!1,Ee=function(){var X=document.createElement("canvas");return X.width=1,X.height=1,[X,X.getContext("2d")]}(),Ie=Ee[0],de=Ee[1];return function(X,fe){return!(!fe||!X.toDataURL)}(Ie,de)?(ie=function(X){return X.rect(0,0,10,10),X.rect(2,2,6,6),!X.isPointInPath(5,5,"evenodd")}(de),O?j=q="skipped":(j=(U=function(X,fe){(function(Pe,Xe){Pe.width=240,Pe.height=60,Xe.textBaseline="alphabetic",Xe.fillStyle="#f60",Xe.fillRect(100,1,62,20),Xe.fillStyle="#069",Xe.font='11pt "Times New Roman"';var ct="Cwm fjordbank gly ".concat("😃");Xe.fillText(ct,2,15),Xe.fillStyle="rgba(102, 204, 0, 0.2)",Xe.font="18pt Arial",Xe.fillText(ct,4,45)})(X,fe);var ye=F(X),Se=F(X);return ye!==Se?["unstable","unstable"]:(function(Pe,Xe){Pe.width=122,Pe.height=110,Xe.globalCompositeOperation="multiply";for(var ct=0,bt=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];ct<bt.length;ct++){var Qe=bt[ct],_t=Qe[0],Ve=Qe[1],tn=Qe[2];Xe.fillStyle=_t,Xe.beginPath(),Xe.arc(Ve,tn,40,0,2*Math.PI,!0),Xe.closePath(),Xe.fill()}Xe.fillStyle="#f9c",Xe.arc(60,60,60,0,2*Math.PI,!0),Xe.arc(60,60,20,0,2*Math.PI,!0),Xe.fill("evenodd")}(X,fe),[F(X),ye])}(Ie,de))[0],q=U[1])):j=q="unsupported",{winding:ie,geometry:j,text:q}}function F(O){return O.toDataURL()}function W(){var O=screen,U=function(q){return m(h(q),null)},j=[U(O.width),U(O.height)];return j.sort().reverse(),j}var T,re,Ce=2500,xe=10;function be(){var O=this;return function(){if(re===void 0){var U=function(){var j=st();$e(j)?re=setTimeout(U,Ce):(T=j,re=void 0)};U()}}(),function(){return s(O,void 0,void 0,function(){var U;return r(this,function(j){switch(j.label){case 0:return $e(U=st())?T?[2,i([],T)]:Oe()?[4,(q=document,(q.exitFullscreen||q.msExitFullscreen||q.mozCancelFullScreen||q.webkitExitFullscreen).call(q))]:[3,2]:[3,2];case 1:j.sent(),U=st(),j.label=2;case 2:return $e(U)||(T=U),[2,U]}var q})})}}function st(){var O=screen;return[m(p(O.availTop),null),m(p(O.width)-p(O.availWidth)-m(p(O.availLeft),0),null),m(p(O.height)-p(O.availHeight)-m(p(O.availTop),0),null),m(p(O.availLeft),null)]}function $e(O){for(var U=0;U<4;++U)if(O[U])return!1;return!0}function Rt(O){O.style.setProperty("visibility","hidden","important"),O.style.setProperty("display","block","important")}function dn(O){return matchMedia("(inverted-colors: ".concat(O,")")).matches}function Un(O){return matchMedia("(forced-colors: ".concat(O,")")).matches}var wn=100;function En(O){return matchMedia("(prefers-contrast: ".concat(O,")")).matches}function Ht(O){return matchMedia("(prefers-reduced-motion: ".concat(O,")")).matches}function We(O){return matchMedia("(prefers-reduced-transparency: ".concat(O,")")).matches}function ut(O){return matchMedia("(dynamic-range: ".concat(O,")")).matches}var Ue=Math,Et=function(){return 0},Ke="mmMwWLliI0fiflO&1",Ct={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]},Zt=function(){for(var O=window;;){var U=O.parent;if(!U||U===O)return!1;try{if(U.location.origin!==O.location.origin)return!0}catch(j){if(j instanceof Error&&j.name==="SecurityError")return!0;throw j}O=U}},Dt=-1,Nt=-2,vn=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),or=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),_r=["FRAGMENT_SHADER","VERTEX_SHADER"],fn=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],jn="WEBGL_debug_renderer_info",Be="WEBGL_polygon_mode";function Ae(O){if(O.webgl)return O.webgl.context;var U,j=document.createElement("canvas");j.addEventListener("webglCreateContextError",function(){return U=void 0});for(var q=0,ie=["webgl","experimental-webgl"];q<ie.length;q++){var Ee=ie[q];try{U=j.getContext(Ee)}catch{}if(U)break}return O.webgl={context:U},U}function pn(O,U,j){var q=O.getShaderPrecisionFormat(O[U],O[j]);return q?[q.rangeMin,q.rangeMax,q.precision]:[]}function Sn(O){return Object.keys(O.__proto__).filter(St)}function St(O){return typeof O=="string"&&!O.match(/[^A-Z0-9_x]/)}function br(){return ve()}function xs(O){return typeof O.getParameter=="function"}var yt={fonts:function(){var O=this;return at(function(U,j){var q=j.document;return s(O,void 0,void 0,function(){var ie,Ee,Ie,de,X,fe,ye,Se,Pe,Xe,ct;return r(this,function(bt){for((ie=q.body).style.fontSize=en,(Ee=q.createElement("div")).style.setProperty("visibility","hidden","important"),Ie={},de={},X=function(Qe){var _t=q.createElement("span"),Ve=_t.style;return Ve.position="absolute",Ve.top="0",Ve.left="0",Ve.fontFamily=Qe,_t.textContent=Tt,Ee.appendChild(_t),_t},fe=function(Qe,_t){return X("'".concat(Qe,"',").concat(_t))},ye=function(){for(var Qe={},_t=function(Jt){Qe[Jt]=Ut.map(function(jt){return fe(Jt,jt)})},Ve=0,tn=Me;Ve<tn.length;Ve++)_t(tn[Ve]);return Qe},Se=function(Qe){return Ut.some(function(_t,Ve){return Qe[Ve].offsetWidth!==Ie[_t]||Qe[Ve].offsetHeight!==de[_t]})},Pe=Ut.map(X),Xe=ye(),ie.appendChild(Ee),ct=0;ct<Ut.length;ct++)Ie[Ut[ct]]=Pe[ct].offsetWidth,de[Ut[ct]]=Pe[ct].offsetHeight;return[2,Me.filter(function(Qe){return Se(Xe[Qe])})]})})})},domBlockers:function(O){var U=(O===void 0?{}:O).debug;return s(this,void 0,void 0,function(){var j,q,ie,Ee,Ie;return r(this,function(de){switch(de.label){case 0:return le()||Ne()?(X=atob,j={abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',X("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",X("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",X("LnNwb25zb3JpdA=="),".ylamainos",X("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),X("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",X("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",X("LmhlYWRlci1ibG9ja2VkLWFk"),X("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",X("I2FkXzMwMFgyNTA="),X("I2Jhbm5lcmZsb2F0MjI="),X("I2NhbXBhaWduLWJhbm5lcg=="),X("I0FkLUNvbnRlbnQ=")],adGuardChinese:[X("LlppX2FkX2FfSA=="),X("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",X("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),X("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",X("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",X("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",X("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),X("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),X("LmFkZ29vZ2xl"),X("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[X("YW1wLWF1dG8tYWRz"),X("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",X("I2FkX2ludmlld19hcmVh")],adGuardRussian:[X("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),X("LnJlY2xhbWE="),'div[id^="smi2adblock"]',X("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[X("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),X("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",X("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),X("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),X("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",X("I3Jla2xhbWk="),X("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),X("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),X("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[X("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",X("LndpZGdldF9wb19hZHNfd2lkZ2V0"),X("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",X("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[X("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),X("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",X("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",X("I3Jla2xhbW5pLWJveA=="),X("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",X("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[X("I2FkdmVydGVudGll"),X("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",X("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",X("LnNwb25zb3JsaW5rZ3J1ZW4="),X("I3dlcmJ1bmdza3k="),X("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),X("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[X("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",X("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),X("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),X("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[X("LnJla2xhbW9zX3RhcnBhcw=="),X("LnJla2xhbW9zX251b3JvZG9z"),X("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),X("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),X("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[X("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[X("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),X("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",X("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[X("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),X("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),X("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",X("LmFkX19tYWlu"),X("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[X("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[X("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),X("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[X("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),X("I2xpdmVyZUFkV3JhcHBlcg=="),X("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),X("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[X("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",X("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),X("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),X("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[X("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),X("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),X("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",X("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),X("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),X("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),X("ZGl2I3NrYXBpZWNfYWQ=")],ro:[X("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),X("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),X("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),X("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[X("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),X("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),X("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",X("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),X("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",X("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]},q=Object.keys(j),[4,function(fe){var ye;return s(this,void 0,void 0,function(){var Se,Pe,Xe,ct,bt,Qe,_t;return r(this,function(Ve){switch(Ve.label){case 0:for(Se=document,Pe=Se.createElement("div"),Xe=new Array(fe.length),ct={},Rt(Pe),_t=0;_t<fe.length;++_t)(bt=Pt(fe[_t])).tagName==="DIALOG"&&bt.show(),Rt(Qe=Se.createElement("div")),Qe.appendChild(bt),Pe.appendChild(Qe),Xe[_t]=bt;Ve.label=1;case 1:return Se.body?[3,3]:[4,l(50)];case 2:return Ve.sent(),[3,1];case 3:Se.body.appendChild(Pe);try{for(_t=0;_t<fe.length;++_t)Xe[_t].offsetParent||(ct[fe[_t]]=!0)}finally{(ye=Pe.parentNode)===null||ye===void 0||ye.removeChild(Pe)}return[2,ct]}})})}((Ie=[]).concat.apply(Ie,q.map(function(fe){return j[fe]})))]):[2,void 0];case 1:return ie=de.sent(),U&&function(fe,ye){for(var Se="DOM blockers debug:\n```",Pe=0,Xe=Object.keys(fe);Pe<Xe.length;Pe++){var ct=Xe[Pe];Se+=`
|
|
5
|
+
`.concat(ct,":");for(var bt=0,Qe=fe[ct];bt<Qe.length;bt++){var _t=Qe[bt];Se+=`
|
|
6
|
+
`.concat(ye[_t]?"🚫":"âž¡ï¸"," ").concat(_t)}}console.log("".concat(Se,"\n```"))}(j,ie),(Ee=q.filter(function(fe){var ye=j[fe];return w(ye.map(function(Se){return ie[Se]}))>.6*ye.length})).sort(),[2,Ee]}var X})})},fontPreferences:function(){return O=function(j,q){for(var ie={},Ee={},Ie=0,de=Object.keys(Ct);Ie<de.length;Ie++){var X=de[Ie],fe=Ct[X],ye=fe[0],Se=ye===void 0?{}:ye,Pe=fe[1],Xe=Pe===void 0?Ke:Pe,ct=j.createElement("span");ct.textContent=Xe,ct.style.whiteSpace="nowrap";for(var bt=0,Qe=Object.keys(Se);bt<Qe.length;bt++){var _t=Qe[bt],Ve=Se[_t];Ve!==void 0&&(ct.style[_t]=Ve)}ie[X]=ct,q.append(j.createElement("br"),ct)}for(var tn=0,Jt=Object.keys(Ct);tn<Jt.length;tn++)Ee[X=Jt[tn]]=ie[X].getBoundingClientRect().width;return Ee},U===void 0&&(U=4e3),at(function(j,q){var ie=q.document,Ee=ie.body,Ie=Ee.style;Ie.width="".concat(U,"px"),Ie.webkitTextSizeAdjust=Ie.textSizeAdjust="none",N()?Ee.style.zoom="".concat(1/q.devicePixelRatio):le()&&(Ee.style.zoom="reset");var de=ie.createElement("div");return de.textContent=i([],Array(U/20<<0)).map(function(){return"word"}).join(" "),Ee.appendChild(de),O(ie,Ee)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">');var O,U},audio:function(){return le()&&Le()&&ae()||N()&&Re()&&(O=window,U=O.URLPattern,w(["union"in Set.prototype,"Iterator"in O,U&&"hasRegExpGroups"in U.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3)?-4:He();var O,U},screenFrame:function(){var O=this;if(le()&&Le()&&ae())return function(){return Promise.resolve(void 0)};var U=be();return function(){return s(O,void 0,void 0,function(){var j,q;return r(this,function(ie){switch(ie.label){case 0:return[4,U()];case 1:return j=ie.sent(),[2,[(q=function(Ee){return Ee===null?null:E(Ee,xe)})(j[0]),q(j[1]),q(j[2]),q(j[3])]]}})})}},canvas:function(){return g(le()&&Le()&&ae())},osCpu:function(){return navigator.oscpu},languages:function(){var O,U=navigator,j=[],q=U.language||U.userLanguage||U.browserLanguage||U.systemLanguage;if(q!==void 0&&j.push([q]),Array.isArray(U.languages))N()&&w([!("MediaSettingsRange"in(O=window)),"RTCEncodedAudioFrame"in O,""+O.Intl=="[object Intl]",""+O.Reflect=="[object Reflect]"])>=3||j.push(U.languages);else if(typeof U.languages=="string"){var ie=U.languages;ie&&j.push(ie.split(","))}return j},colorDepth:function(){return window.screen.colorDepth},deviceMemory:function(){return m(p(navigator.deviceMemory),void 0)},screenResolution:function(){if(!(le()&&Le()&&ae()))return W()},hardwareConcurrency:function(){return m(h(navigator.hardwareConcurrency),void 0)},timezone:function(){var O,U=(O=window.Intl)===null||O===void 0?void 0:O.DateTimeFormat;if(U){var j=new U().resolvedOptions().timeZone;if(j)return j}var q,ie=(q=new Date().getFullYear(),-Math.max(p(new Date(q,0,1).getTimezoneOffset()),p(new Date(q,6,1).getTimezoneOffset())));return"UTC".concat(ie>=0?"+":"").concat(ie)},sessionStorage:function(){try{return!!window.sessionStorage}catch{return!0}},localStorage:function(){try{return!!window.localStorage}catch{return!0}},indexedDB:function(){if(!H()&&!A())try{return!!window.indexedDB}catch{return!0}},openDatabase:function(){return!!window.openDatabase},cpuClass:function(){return navigator.cpuClass},platform:function(){var O=navigator.platform;return O==="MacIntel"&&le()&&!K()?function(){if(navigator.platform==="iPad")return!0;var U=screen,j=U.width/U.height;return w(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,j>.65&&j<1.53])>=2}()?"iPad":"iPhone":O},plugins:function(){var O=navigator.plugins;if(O){for(var U=[],j=0;j<O.length;++j){var q=O[j];if(q){for(var ie=[],Ee=0;Ee<q.length;++Ee){var Ie=q[Ee];ie.push({type:Ie.type,suffixes:Ie.suffixes})}U.push({name:q.name,description:q.description,mimeTypes:ie})}}return U}},touchSupport:function(){var O,U=navigator,j=0;U.maxTouchPoints!==void 0?j=h(U.maxTouchPoints):U.msMaxTouchPoints!==void 0&&(j=U.msMaxTouchPoints);try{document.createEvent("TouchEvent"),O=!0}catch{O=!1}return{maxTouchPoints:j,touchEvent:O,touchStart:"ontouchstart"in window}},vendor:function(){return navigator.vendor||""},vendorFlavors:function(){for(var O=[],U=0,j=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];U<j.length;U++){var q=j[U],ie=window[q];ie&&typeof ie=="object"&&O.push(q)}return O.sort()},cookiesEnabled:function(){var O=document;try{O.cookie="cookietest=1; SameSite=Strict;";var U=O.cookie.indexOf("cookietest=")!==-1;return O.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",U}catch{return!1}},colorGamut:function(){for(var O=0,U=["rec2020","p3","srgb"];O<U.length;O++){var j=U[O];if(matchMedia("(color-gamut: ".concat(j,")")).matches)return j}},invertedColors:function(){return!!dn("inverted")||!dn("none")&&void 0},forcedColors:function(){return!!Un("active")||!Un("none")&&void 0},monochrome:function(){if(matchMedia("(min-monochrome: 0)").matches){for(var O=0;O<=wn;++O)if(matchMedia("(max-monochrome: ".concat(O,")")).matches)return O;throw new Error("Too high value")}},contrast:function(){return En("no-preference")?0:En("high")||En("more")?1:En("low")||En("less")?-1:En("forced")?10:void 0},reducedMotion:function(){return!!Ht("reduce")||!Ht("no-preference")&&void 0},reducedTransparency:function(){return!!We("reduce")||!We("no-preference")&&void 0},hdr:function(){return!!ut("high")||!ut("standard")&&void 0},math:function(){var O,U=Ue.acos||Et,j=Ue.acosh||Et,q=Ue.asin||Et,ie=Ue.asinh||Et,Ee=Ue.atanh||Et,Ie=Ue.atan||Et,de=Ue.sin||Et,X=Ue.sinh||Et,fe=Ue.cos||Et,ye=Ue.cosh||Et,Se=Ue.tan||Et,Pe=Ue.tanh||Et,Xe=Ue.exp||Et,ct=Ue.expm1||Et,bt=Ue.log1p||Et;return{acos:U(.12312423423423424),acosh:j(1e308),acoshPf:(O=1e154,Ue.log(O+Ue.sqrt(O*O-1))),asin:q(.12312423423423424),asinh:ie(1),asinhPf:function(Qe){return Ue.log(Qe+Ue.sqrt(Qe*Qe+1))}(1),atanh:Ee(.5),atanhPf:function(Qe){return Ue.log((1+Qe)/(1-Qe))/2}(.5),atan:Ie(.5),sin:de(-1e300),sinh:X(1),sinhPf:function(Qe){return Ue.exp(Qe)-1/Ue.exp(Qe)/2}(1),cos:fe(10.000000000123),cosh:ye(1),coshPf:function(Qe){return(Ue.exp(Qe)+1/Ue.exp(Qe))/2}(1),tan:Se(-1e300),tanh:Pe(1),tanhPf:function(Qe){return(Ue.exp(2*Qe)-1)/(Ue.exp(2*Qe)+1)}(1),exp:Xe(1),expm1:ct(1),expm1Pf:function(Qe){return Ue.exp(Qe)-1}(1),log1p:bt(10),log1pPf:function(Qe){return Ue.log(1+Qe)}(10),powPI:function(Qe){return Ue.pow(Ue.PI,Qe)}(-100)}},pdfViewerEnabled:function(){return navigator.pdfViewerEnabled},architecture:function(){var O=new Float32Array(1),U=new Uint8Array(O.buffer);return O[0]=1/0,O[0]=O[0]-O[0],U[3]},applePay:function(){var O=window.ApplePaySession;if(typeof(O==null?void 0:O.canMakePayments)!="function")return-1;if(Zt())return-3;try{return O.canMakePayments()?1:0}catch(U){return function(j){if(j instanceof Error&&j.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(j.message))return-2;throw j}(U)}},privateClickMeasurement:function(){var O,U=document.createElement("a"),j=(O=U.attributionSourceId)!==null&&O!==void 0?O:U.attributionsourceid;return j===void 0?void 0:String(j)},audioBaseLatency:function(){var O;return Ne()||le()?window.AudioContext&&(O=new AudioContext().baseLatency)!==null&&O!==void 0?O:-1:-2},dateTimeLocale:function(){if(!window.Intl)return-1;var O=window.Intl.DateTimeFormat;if(!O)return-2;var U=O().resolvedOptions().locale;return U||U===""?U:-3},webGlBasics:function(O){var U,j,q,ie,Ee,Ie,de=Ae(O.cache);if(!de)return Dt;if(!xs(de))return Nt;var X=br()?null:de.getExtension(jn);return{version:((U=de.getParameter(de.VERSION))===null||U===void 0?void 0:U.toString())||"",vendor:((j=de.getParameter(de.VENDOR))===null||j===void 0?void 0:j.toString())||"",vendorUnmasked:X?(q=de.getParameter(X.UNMASKED_VENDOR_WEBGL))===null||q===void 0?void 0:q.toString():"",renderer:((ie=de.getParameter(de.RENDERER))===null||ie===void 0?void 0:ie.toString())||"",rendererUnmasked:X?(Ee=de.getParameter(X.UNMASKED_RENDERER_WEBGL))===null||Ee===void 0?void 0:Ee.toString():"",shadingLanguageVersion:((Ie=de.getParameter(de.SHADING_LANGUAGE_VERSION))===null||Ie===void 0?void 0:Ie.toString())||""}},webGlExtensions:function(O){var U=Ae(O.cache);if(!U)return Dt;if(!xs(U))return Nt;var j=U.getSupportedExtensions(),q=U.getContextAttributes(),ie=[],Ee=[],Ie=[],de=[],X=[];if(q)for(var fe=0,ye=Object.keys(q);fe<ye.length;fe++){var Se=ye[fe];Ee.push("".concat(Se,"=").concat(q[Se]))}for(var Pe=0,Xe=Sn(U);Pe<Xe.length;Pe++){var ct=U[jt=Xe[Pe]];Ie.push("".concat(jt,"=").concat(ct).concat(vn.has(ct)?"=".concat(U.getParameter(ct)):""))}if(j)for(var bt=0,Qe=j;bt<Qe.length;bt++){var _t=Qe[bt];if(!(_t===jn&&br()||_t===Be&&(N()||le()))){var Ve=U.getExtension(_t);if(Ve)for(var tn=0,Jt=Sn(Ve);tn<Jt.length;tn++){var jt;ct=Ve[jt=Jt[tn]],de.push("".concat(jt,"=").concat(ct).concat(or.has(ct)?"=".concat(U.getParameter(ct)):""))}else ie.push(_t)}}for(var zt=0,wr=_r;zt<wr.length;zt++)for(var ci=wr[zt],Er=0,lr=fn;Er<lr.length;Er++){var ur=lr[Er],Ti=pn(U,ci,ur);X.push("".concat(ci,".").concat(ur,"=").concat(Ti.join(",")))}return de.sort(),Ie.sort(),{contextAttributes:Ee,parameters:Ie,shaderPrecisions:X,extensions:j,extensionParameters:de,unsupportedExtensions:ie}}},hn="$ if upgrade to Pro: https://fpjs.dev/pro";function se(O){var U=function(q){if(Ne())return .4;if(le())return!K()||Le()&&ae()?.3:.5;var ie="value"in q.platform?q.platform.value:"";return/^Win/.test(ie)?.6:/^Mac/.test(ie)?.5:.7}(O),j=function(q){return E(.99+.01*q,1e-4)}(U);return{score:U,comment:hn.replace(/\$/g,"".concat(j))}}function qe(O){return JSON.stringify(O,function(U,j){return j instanceof Error?a({name:(q=j).name,message:q.message,stack:(ie=q.stack)===null||ie===void 0?void 0:ie.split(`
|
|
7
|
+
`)},q):j;var q,ie},2)}function z(O){return Z(function(U){for(var j="",q=0,ie=Object.keys(U).sort();q<ie.length;q++){var Ee=ie[q],Ie=U[Ee],de="error"in Ie?"error":JSON.stringify(Ie.value);j+="".concat(j?"|":"").concat(Ee.replace(/([:|\\])/g,"\\$1"),":").concat(de)}return j}(O))}function ot(O){return O===void 0&&(O=50),function(U,j){j===void 0&&(j=1/0);var q=window.requestIdleCallback;return q?new Promise(function(ie){return q.call(window,function(){return ie()},{timeout:j})}):l(Math.min(U,j))}(O,2*O)}function ce(O,U){var j=Date.now();return{get:function(q){return s(this,void 0,void 0,function(){var ie,Ee,Ie;return r(this,function(de){switch(de.label){case 0:return ie=Date.now(),[4,O()];case 1:return Ee=de.sent(),Ie=function(X){var fe,ye=se(X);return{get visitorId(){return fe===void 0&&(fe=z(this.components)),fe},set visitorId(Se){fe=Se},confidence:ye,components:X,version:o}}(Ee),(U||q!=null&&q.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(Ie.version,`
|
|
8
|
+
userAgent: `).concat(navigator.userAgent,`
|
|
9
|
+
timeBetweenLoadAndGet: `).concat(ie-j,`
|
|
10
|
+
visitorId: `).concat(Ie.visitorId,`
|
|
11
|
+
components: `).concat(qe(Ee),"\n```")),[2,Ie]}})})}}}function je(O){var U;return O===void 0&&(O={}),s(this,void 0,void 0,function(){var j,q;return r(this,function(ie){switch(ie.label){case 0:return((U=O.monitoring)===null||U===void 0||U)&&function(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var Ee=new XMLHttpRequest;Ee.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(o,"/npm-monitoring"),!0),Ee.send()}catch(Ie){console.error(Ie)}}(),j=O.delayFallback,q=O.debug,[4,ot(j)];case 1:return ie.sent(),[2,ce(function(Ee){return $(yt,Ee,[])}({cache:{},debug:q}),q)]}})})}var Ye={load:je,hashComponents:z,componentsToDebugString:qe},vt=Z;return t.componentsToDebugString=qe,t.default=Ye,t.getFullscreenElement=Oe,t.getUnstableAudioFingerprint=He,t.getUnstableCanvasFingerprint=g,t.getUnstableScreenFrame=be,t.getUnstableScreenResolution=W,t.getWebGLContext=Ae,t.hashComponents=z,t.isAndroid=Ne,t.isChromium=N,t.isDesktopWebKit=K,t.isEdgeHTML=A,t.isGecko=ve,t.isSamsungInternet=Re,t.isTrident=H,t.isWebKit=le,t.load=je,t.loadSources=$,t.murmurX64Hash128=vt,t.prepareForSources=ot,t.sources=yt,t.transformSource=function(O,U){var j=function(q){return te(q)?U(q):function(){var ie=q();return u(ie)?ie.then(U):U(ie)}};return function(q){var ie=O(q);return u(ie)?ie.then(j):j(ie)}},t.withIframe=at,Object.defineProperty(t,"__esModule",{value:!0}),t}({}),(me||(me={})).BroprintJS=function(t){const a=function(i,o=0){let l=3735928559^o,u=1103547991^o;for(let c,d=0;d<i.length;d++)c=i.charCodeAt(d),l=Math.imul(l^c,2654435761),u=Math.imul(u^c,1597334677);return l=Math.imul(l^l>>>16,2246822507)^Math.imul(u^u>>>13,3266489909),4294967296*(2097151&(u=Math.imul(u^u>>>16,2246822507)^Math.imul(l^l>>>13,3266489909)))+(l>>>0)},s=()=>{if(!(()=>{const u=document.createElement("canvas");return!(!u.getContext||!u.getContext("2d"))})())return"canvas not supported";var i=document.createElement("canvas"),o=i.getContext("2d"),l="BroPrint.65@345876";return o.textBaseline="top",o.font="14px 'Arial'",o.textBaseline="alphabetic",o.fillStyle="#f60",o.fillRect(125,1,62,20),o.fillStyle="#069",o.fillText(l,2,15),o.fillStyle="rgba(102, 204, 0, 0.7)",o.fillText(l,4,17),i.toDataURL()},r=function(){let i=null,o=null,l=null,u=null,c=null,d=null;function f(p,m){u[p]!==void 0&&typeof u[p].setValueAtTime=="function"&&u[p].setValueAtTime(m,i.currentTime)}function h(p){(function(m){let w=null;for(var E=4500;5e3>E;E++){var v=m.renderedBuffer.getChannelData(0)[E];w+=Math.abs(v)}c=w.toString(),typeof d=="function"&&d(c)})(p),u.disconnect()}return{run:function(p,m=!1){d=p;try{(function(){let w=window.OfflineAudioContext||window.webkitOfflineAudioContext;i=new w(1,44100,44100)})(),o=i.currentTime,(l=i.createOscillator()).type="triangle",l.frequency.setValueAtTime(1e4,o),u=i.createDynamicsCompressor(),f("threshold",-50),f("knee",40),f("ratio",12),f("reduction",-20),f("attack",0),f("release",.25),l.connect(u),u.connect(i.destination),l.start(0),i.startRendering(),i.oncomplete=h}catch(w){if(m)throw w}}}}();return t.getCurrentBrowserFingerPrint=function(){const i=new Promise((o,l)=>{r.run(function(u){o(u)})});return new Promise((o,l)=>{i.then(async u=>{let c="";navigator.brave&&await navigator.brave.isBrave(),c=window.btoa(u)+s(),o(a(c,0))}).catch(()=>{try{o(a(s()).toString())}catch{l("Failed to generate the finger print of this browser")}})})},Object.defineProperty(t,"__esModule",{value:!0}),t}({}),function(t){var a,s,r=function(P,D){var V=typeof Symbol=="function"&&P[Symbol.iterator];if(!V)return P;var B,Y,Z=V.call(P),te=[];try{for(;(D===void 0||D-- >0)&&!(B=Z.next()).done;)te.push(B.value)}catch($){Y={error:$}}finally{try{B&&!B.done&&(V=Z.return)&&V.call(Z)}finally{if(Y)throw Y.error}}return te},i=function(P,D,V){if(arguments.length===2)for(var B,Y=0,Z=D.length;Y<Z;Y++)!B&&Y in D||(B||(B=Array.prototype.slice.call(D,0,Y)),B[Y]=D[Y]);return P.concat(B||Array.prototype.slice.call(D))},o=new WeakMap,l=new WeakMap,u=new WeakMap,c=new WeakMap,d=new WeakMap,f={get:function(P,D,V){if(P instanceof IDBTransaction){if(D==="done")return l.get(P);if(D==="objectStoreNames")return P.objectStoreNames||u.get(P);if(D==="store")return V.objectStoreNames[1]?void 0:V.objectStore(V.objectStoreNames[0])}return m(P[D])},set:function(P,D,V){return P[D]=V,!0},has:function(P,D){return P instanceof IDBTransaction&&(D==="done"||D==="store")||D in P}};function h(P){return P!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(s||(s=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(P)?function(){for(var D=[],V=0;V<arguments.length;V++)D[V]=arguments[V];return P.apply(w(this),D),m(o.get(this))}:function(){for(var D=[],V=0;V<arguments.length;V++)D[V]=arguments[V];return m(P.apply(w(this),D))}:function(D){for(var V=[],B=1;B<arguments.length;B++)V[B-1]=arguments[B];var Y=P.call.apply(P,i([w(this),D],r(V),!1));return u.set(Y,D.sort?D.sort():[D]),m(Y)}}function p(P){return typeof P=="function"?h(P):(P instanceof IDBTransaction&&function(V){if(!l.has(V)){var B=new Promise(function(Y,Z){var te=function(){V.removeEventListener("complete",$),V.removeEventListener("error",H),V.removeEventListener("abort",H)},$=function(){Y(),te()},H=function(){Z(V.error||new DOMException("AbortError","AbortError")),te()};V.addEventListener("complete",$),V.addEventListener("error",H),V.addEventListener("abort",H)});l.set(V,B)}}(P),D=P,(a||(a=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some(function(V){return D instanceof V})?new Proxy(P,f):P);var D}function m(P){if(P instanceof IDBRequest)return D=P,(V=new Promise(function(Y,Z){var te=function(){D.removeEventListener("success",$),D.removeEventListener("error",H)},$=function(){Y(m(D.result)),te()},H=function(){Z(D.error),te()};D.addEventListener("success",$),D.addEventListener("error",H)})).then(function(Y){Y instanceof IDBCursor&&o.set(Y,D)}).catch(function(){}),d.set(V,D),V;var D,V;if(c.has(P))return c.get(P);var B=p(P);return B!==P&&(c.set(P,B),d.set(B,P)),B}var w=function(P){return d.get(P)},E=function(){return(E=Object.assign||function(P){for(var D,V=1,B=arguments.length;V<B;V++)for(var Y in D=arguments[V])Object.prototype.hasOwnProperty.call(D,Y)&&(P[Y]=D[Y]);return P}).apply(this,arguments)},v=function(P,D,V,B){return new(V||(V=Promise))(function(Y,Z){function te(A){try{H(B.next(A))}catch(N){Z(N)}}function $(A){try{H(B.throw(A))}catch(N){Z(N)}}function H(A){var N;A.done?Y(A.value):(N=A.value,N instanceof V?N:new V(function(le){le(N)})).then(te,$)}H((B=B.apply(P,[])).next())})},y=function(P,D){var V,B,Y,Z,te={label:0,sent:function(){if(1&Y[0])throw Y[1];return Y[1]},trys:[],ops:[]};return Z={next:$(0),throw:$(1),return:$(2)},typeof Symbol=="function"&&(Z[Symbol.iterator]=function(){return this}),Z;function $(H){return function(A){return function(N){if(V)throw new TypeError("Generator is already executing.");for(;te;)try{if(V=1,B&&(Y=2&N[0]?B.return:N[0]?B.throw||((Y=B.return)&&Y.call(B),0):B.next)&&!(Y=Y.call(B,N[1])).done)return Y;switch(B=0,Y&&(N=[2&N[0],Y.value]),N[0]){case 0:case 1:Y=N;break;case 4:return te.label++,{value:N[1],done:!1};case 5:te.label++,B=N[1],N=[0];continue;case 7:N=te.ops.pop(),te.trys.pop();continue;default:if(!((Y=(Y=te.trys).length>0&&Y[Y.length-1])||N[0]!==6&&N[0]!==2)){te=0;continue}if(N[0]===3&&(!Y||N[1]>Y[0]&&N[1]<Y[3])){te.label=N[1];break}if(N[0]===6&&te.label<Y[1]){te.label=Y[1],Y=N;break}if(Y&&te.label<Y[2]){te.label=Y[2],te.ops.push(N);break}Y[2]&&te.ops.pop(),te.trys.pop();continue}N=D.call(P,te)}catch(le){N=[6,le],B=0}finally{V=Y=0}if(5&N[0])throw N[1];return{value:N[0]?N[1]:void 0,done:!0}}([H,A])}}},b=function(P,D){var V=typeof Symbol=="function"&&P[Symbol.iterator];if(!V)return P;var B,Y,Z=V.call(P),te=[];try{for(;(D===void 0||D-- >0)&&!(B=Z.next()).done;)te.push(B.value)}catch($){Y={error:$}}finally{try{B&&!B.done&&(V=Z.return)&&V.call(Z)}finally{if(Y)throw Y.error}}return te},S=function(P,D,V){if(arguments.length===2)for(var B,Y=0,Z=D.length;Y<Z;Y++)!B&&Y in D||(B||(B=Array.prototype.slice.call(D,0,Y)),B[Y]=D[Y]);return P.concat(B||Array.prototype.slice.call(D))},I=["get","getKey","getAll","getAllKeys","count"],C=["put","add","delete","clear"],k=new Map;function M(P,D){if(P instanceof IDBDatabase&&!(D in P)&&typeof D=="string"){if(k.get(D))return k.get(D);var V=D.replace(/FromIndex$/,""),B=D!==V,Y=C.includes(V);if(V in(B?IDBIndex:IDBObjectStore).prototype&&(Y||I.includes(V))){var Z=function(te){for(var $=[],H=1;H<arguments.length;H++)$[H-1]=arguments[H];return v(this,void 0,void 0,function(){var A,N,le;return y(this,function(K){switch(K.label){case 0:return A=this.transaction(te,Y?"readwrite":"readonly"),N=A.store,B&&(N=N.index($.shift())),[4,Promise.all([(le=N)[V].apply(le,S([],b($),!1)),Y&&A.done])];case 1:return[2,K.sent()[0]]}})})};return k.set(D,Z),Z}}}f=function(P){return E(E({},P),{get:function(D,V,B){return M(D,V)||P.get(D,V,B)},has:function(D,V){return!!M(D,V)||P.has(D,V)}})}(f),t.deleteDB=function(P,D){var V=(D===void 0?{}:D).blocked,B=indexedDB.deleteDatabase(P);return V&&B.addEventListener("blocked",function(Y){return V(Y.oldVersion,Y)}),m(B).then(function(){})},t.openDB=function(P,D,V){var B=V===void 0?{}:V,Y=B.blocked,Z=B.upgrade,te=B.blocking,$=B.terminated,H=indexedDB.open(P,D),A=m(H);return Z&&H.addEventListener("upgradeneeded",function(N){Z(m(H.result),N.oldVersion,N.newVersion,m(H.transaction),N)}),Y&&H.addEventListener("blocked",function(N){return Y(N.oldVersion,N.newVersion,N)}),A.then(function(N){$&&N.addEventListener("close",function(){return $()}),te&&N.addEventListener("versionchange",function(le){return te(le.oldVersion,le.newVersion,le)})}).catch(function(){}),A},t.unwrap=w,t.wrap=m}(me||(me={})),function(t){function a(s,r){var i;r=r||{},this._id=a._generateUUID(),this._promise=r.promise||Promise,this._frameId=r.frameId||"CrossStorageClient-"+this._id,this._origin=a._getOrigin(s),this._requests={},this._connected=!1,this._closed=!1,this._count=0,this._timeout=r.timeout||5e3,this._listener=null,this._installListener(),r.frameId&&(i=document.getElementById(r.frameId)),i&&this._poll(),i=i||this._createFrame(s),this._hub=i.contentWindow}a.frameStyle={width:0,height:0,border:"none",display:"none",position:"absolute",top:"-999px",left:"-999px"},a._getOrigin=function(s){var r;return(r=document.createElement("a")).href=s,r.host||(r=window.location),((r.protocol&&r.protocol!==":"?r.protocol:window.location.protocol)+"//"+r.host).replace(/:80$|:443$/,"")},a._generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(s){var r=16*Math.random()|0;return(s=="x"?r:3&r|8).toString(16)})},a.prototype.onConnect=function(){var s=this;return this._connected?this._promise.resolve():this._closed?this._promise.reject(new Error("CrossStorageClient has closed")):(this._requests.connect||(this._requests.connect=[]),new this._promise(function(r,i){var o=setTimeout(function(){i(new Error("CrossStorageClient could not connect"))},s._timeout);s._requests.connect.push(function(l){if(clearTimeout(o),l)return i(l);r()})}))},a.prototype.set=function(s,r){return this._request("set",{key:s,value:r})},a.prototype.getSignedPayload=function(s,r){return this._request("getSignedData",{payload:s,deviceId:r})},a.prototype.getDeviceDetails=function(s){return this._request("getDeviceDetails",{deviceName:s})},a.prototype.setDeviceDetails=function(s,r){return this._request("setDeviceDetails",{deviceName:s,deviceId:r})},a.prototype.get=function(s){var r=Array.prototype.slice.call(arguments);return this._request("get",{keys:r})},a.prototype.del=function(){var s=Array.prototype.slice.call(arguments);return this._request("del",{keys:s})},a.prototype.clear=function(){return this._request("clear")},a.prototype.getKeys=function(){return this._request("getKeys")},a.prototype.close=function(s){const r=this._frameId,i=this;this._request("close").catch(function(o){}).finally(function(){try{var o=document.getElementById(r);o&&!s&&o.parentNode.removeChild(o),window.removeEventListener?window.removeEventListener("message",i._listener,!1):window.detachEvent("onmessage",i._listener),i._connected=!1,i._closed=!0}catch{}})},a.prototype._installListener=function(){var s=this;this._listener=function(r){var i,o,l;if(!s._closed&&r.data&&typeof r.data=="string"&&(r.origin==="null"?"file://":r.origin)===s._origin)if(r.data!=="cross-storage:unavailable"){if(r.data.indexOf("cross-storage:")!==-1&&!s._connected){if(s._connected=!0,!s._requests.connect)return;for(i=0;i<s._requests.connect.length;i++)s._requests.connect[i](o);delete s._requests.connect}if(r.data!=="cross-storage:ready"){try{l=JSON.parse(r.data)}catch{return}l.id&&s._requests[l.id]&&s._requests[l.id](l.error,l.result)}}else{if(s._closed||s.close(),!s._requests.connect)return;for(o=new Error("Closing client. Could not access localStorage in hub."),i=0;i<s._requests.connect.length;i++)s._requests.connect[i](o)}},window.addEventListener?window.addEventListener("message",this._listener,!1):window.attachEvent("onmessage",this._listener)},a.prototype._poll=function(){var s,r,i;i=(s=this)._origin==="file://"?"*":s._origin,r=setInterval(function(){if(s._connected)return clearInterval(r);s._hub&&s._hub.postMessage("cross-storage:poll",i)},1e3)},a.prototype._createFrame=function(s){var r,i;for(i in(r=window.document.createElement("iframe")).id=this._frameId,a.frameStyle)a.frameStyle.hasOwnProperty(i)&&(r.style[i]=a.frameStyle[i]);return window.document.body.appendChild(r),r.src=s,r},a.prototype._request=function(s,r){var i,o;return this._closed?this._promise.reject(new Error("CrossStorageClient has closed")):((o=this)._count++,i={id:this._id+":"+o._count,method:"cross-storage:"+s,params:r},new this._promise(function(l,u){var c,d,f;c=setTimeout(function(){o._requests[i.id]&&(delete o._requests[i.id],u(new Error("Timeout: could not perform "+i.method)))},o._timeout),o._requests[i.id]=function(h,p){if(clearTimeout(c),delete o._requests[i.id],h)return u(new Error(h));l(p)},Array.prototype.toJSON&&(d=Array.prototype.toJSON,Array.prototype.toJSON=null),f=o._origin==="file://"?"*":o._origin,o._hub.postMessage(JSON.stringify(i),f),d&&(Array.prototype.toJSON=d)}))},t.CrossStorageClient=a}(me||(me={})),function(){typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(t,a){if(t==null)throw new TypeError("Cannot convert undefined or null to object");for(var s=Object(t),r=1;r<arguments.length;r++){var i=arguments[r];if(i!=null)for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(s[o]=i[o])}return s},writable:!0,configurable:!0})}(),Array.from||(Array.from=function(){var t=Object.prototype.toString,a=function(i){return typeof i=="function"||t.call(i)==="[object Function]"},s=Math.pow(2,53)-1,r=function(i){var o=function(l){var u=Number(l);return isNaN(u)?0:u!==0&&isFinite(u)?(u>0?1:-1)*Math.floor(Math.abs(u)):u}(i);return Math.min(Math.max(o,0),s)};return function(i){var o=Object(i);if(i==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");var l,u=arguments.length>1?arguments[1]:void 0;if(u!==void 0){if(!a(u))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(l=arguments[2])}for(var c,d=r(o.length),f=a(this)?Object(new this(d)):new Array(d),h=0;h<d;)c=o[h],f[h]=u?l===void 0?u(c,h):u.call(l,c,h):c,h+=1;return f.length=d,f}}()),function(){String.prototype.endsWith||(String.prototype.endsWith=function(t,a){return(a===void 0||a>this.length)&&(a=this.length),this.substring(a-t.length,a)===t})}(),function(){Promise.allSettled=Promise.allSettled||function(t){return Promise.all(t.map(function(a){return a.then(function(s){return{status:"fulfilled",value:s}}).catch(function(s){return{status:"rejected",reason:s}})}))}}(),function(t,a){var s,r=500,i="user-agent",o="",l="function",u="undefined",c="object",d="string",f="browser",h="cpu",p="device",m="engine",w="os",E="result",v="name",y="type",b="vendor",S="version",I="architecture",C="major",k="model",M="mobile",P="tablet",D="smarttv",V="brands",B="formFactors",Y="fullVersionList",Z="platform",te="platformVersion",$="bitness",H="sec-ch-ua",A=H+"-full-version-list",N=H+"-arch",le=H+"-"+$,K=H+"-form-factors",ae=H+"-"+M,ve=H+"-"+k,Le=H+"-"+Z,Oe=Le+"-version",Ne=[V,Y,M,k,Z,te,I,B,$],Re="Chromium",He="Windows",De=typeof window!==u&&window.navigator?window.navigator:a,at=De&&De.userAgentData?De.userAgentData:a,Pt=function(We,ut){var Ue={},Et=ut;if(!en(ut))for(var Ke in Et={},ut)for(var Ct in ut[Ke])Et[Ct]=ut[Ke][Ct].concat(Et[Ct]?Et[Ct]:[]);for(var Zt in We)Ue[Zt]=Et[Zt]&&Et[Zt].length%2==0?Et[Zt].concat(We[Zt]):We[Zt];return Ue},wt=function(We){for(var ut={},Ue=0;Ue<We.length;Ue++)ut[We[Ue].toUpperCase()]=We[Ue];return ut},Tt=function(We,ut){if(typeof We===c&&We.length>0){for(var Ue in We)if(g(We[Ue])==g(ut))return!0;return!1}return!!Ut(We)&&g(ut).indexOf(g(We))!==-1},en=function(We,ut){for(var Ue in We)return/^(browser|cpu|device|engine|os)$/.test(Ue)||!!ut&&en(We[Ue])},Ut=function(We){return typeof We===d},Me=function(We){if(!We)return a;for(var ut=[],Ue=T(/\\?\"/g,We).split(","),Et=0;Et<Ue.length;Et++)if(Ue[Et].indexOf(";")>-1){var Ke=Ce(Ue[Et]).split(";v=");ut[Et]={brand:Ke[0],version:Ke[1]}}else ut[Et]=Ce(Ue[Et]);return ut},g=function(We){return Ut(We)?We.toLowerCase():We},F=function(We){return Ut(We)?T(/[^\d\.]/g,We).split(".")[0]:a},W=function(We){for(var ut in We){var Ue=We[ut];typeof Ue==c&&Ue.length==2?this[Ue[0]]=Ue[1]:this[Ue]=a}return this},T=function(We,ut){return Ut(ut)?ut.replace(We,o):ut},re=function(We){return T(/\\?\"/g,We)},Ce=function(We,ut){if(Ut(We))return We=T(/^\s\s*/,We),typeof ut===u?We:We.substring(0,r)},xe=function(We,ut){if(We&&ut)for(var Ue,Et,Ke,Ct,Zt,Dt,Nt=0;Nt<ut.length&&!Zt;){var vn=ut[Nt],or=ut[Nt+1];for(Ue=Et=0;Ue<vn.length&&!Zt&&vn[Ue];)if(Zt=vn[Ue++].exec(We))for(Ke=0;Ke<or.length;Ke++)Dt=Zt[++Et],typeof(Ct=or[Ke])===c&&Ct.length>0?Ct.length===2?typeof Ct[1]==l?this[Ct[0]]=Ct[1].call(this,Dt):this[Ct[0]]=Ct[1]:Ct.length===3?typeof Ct[1]!==l||Ct[1].exec&&Ct[1].test?this[Ct[0]]=Dt?Dt.replace(Ct[1],Ct[2]):a:this[Ct[0]]=Dt?Ct[1].call(this,Dt,Ct[2]):a:Ct.length===4&&(this[Ct[0]]=Dt?Ct[3].call(this,Dt.replace(Ct[1],Ct[2])):a):this[Ct]=Dt||a;Nt+=2}},be=function(We,ut){for(var Ue in ut)if(typeof ut[Ue]===c&&ut[Ue].length>0){for(var Et=0;Et<ut[Ue].length;Et++)if(Tt(ut[Ue][Et],We))return Ue==="?"?a:Ue}else if(Tt(ut[Ue],We))return Ue==="?"?a:Ue;return ut.hasOwnProperty("*")?ut["*"]:We},st={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},$e={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":a},Rt={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[S,[v,"Mobile Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[S,[v,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[v,S],[/opios[\/ ]+([\w\.]+)/i],[S,[v,"Opera Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[S,[v,"Opera GX"]],[/\bopr\/([\w\.]+)/i],[S,[v,"Opera"]],[/\bb[a]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[S,[v,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[S,[v,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[v,S],[/quark(?:pc)?\/([-\w\.]+)/i],[S,[v,"Quark"]],[/\bddg\/([\w\.]+)/i],[S,[v,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[S,[v,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[S,[v,"WeChat"]],[/konqueror\/([\w\.]+)/i],[S,[v,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[S,[v,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[S,[v,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[S,[v,"Smart Lenovo Browser"]],[/(avast|avg)\/([\w\.]+)/i],[[v,/(.+)/,"$1 Secure Browser"],S],[/\bfocus\/([\w\.]+)/i],[S,[v,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[S,[v,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[S,[v,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[S,[v,"Dolphin"]],[/coast\/([\w\.]+)/i],[S,[v,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[S,[v,"MIUI Browser"]],[/fxios\/([\w\.-]+)/i],[S,[v,"Mobile Firefox"]],[/\bqihoobrowser\/?([\w\.]*)/i],[S,[v,"360"]],[/\b(qq)\/([\w\.]+)/i],[[v,/(.+)/,"$1Browser"],S],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[v,/(.+)/,"$1 Browser"],S],[/samsungbrowser\/([\w\.]+)/i],[S,[v,"Samsung Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[S,[v,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[v,"Sogou Mobile"],S],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[v,S],[/(lbbrowser|rekonq)/i],[v],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[S,v],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[v,"Facebook"],S,[y,"inapp"]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[v,S,[y,"inapp"]],[/\bgsa\/([\w\.]+) .*safari\//i],[S,[v,"GSA"],[y,"inapp"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[S,[v,"TikTok"],[y,"inapp"]],[/\[(linkedin)app\]/i],[v,[y,"inapp"]],[/(chromium)[\/ ]([-\w\.]+)/i],[v,S],[/headlesschrome(?:\/([\w\.]+)| )/i],[S,[v,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[v,"Chrome WebView"],S],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[S,[v,"Android Browser"]],[/chrome\/([\w\.]+) mobile/i],[S,[v,"Mobile Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[v,S],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[S,[v,"Mobile Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[v,"Mobile Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[S,v],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[v,[S,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[v,S],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[v,"Mobile Firefox"],S],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[v,"Netscape"],S],[/(wolvic|librewolf)\/([\w\.]+)/i],[v,S],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[S,[v,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[v,[S,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[v,[S,/[^\d\.]+./,o]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[I,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[I,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[I,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[I,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[I,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[I,/ower/,o,g]],[/ sun4\w[;\)]/i],[[I,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[I,g]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[k,[b,"Samsung"],[y,P]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[k,[b,"Samsung"],[y,M]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[k,[b,"Apple"],[y,M]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[k,[b,"Apple"],[y,P]],[/(macintosh);/i],[k,[b,"Apple"]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[k,[b,"Sharp"],[y,M]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[k,[b,"Honor"],[y,P]],[/honor([-\w ]+)[;\)]/i],[k,[b,"Honor"],[y,M]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[k,[b,"Huawei"],[y,P]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[k,[b,"Huawei"],[y,M]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[k,/_/g," "],[b,"Xiaomi"],[y,P]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[k,/_/g," "],[b,"Xiaomi"],[y,M]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[k,[b,"OPPO"],[y,M]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[k,[b,be,{OnePlus:["304","403","203"],"*":"OPPO"}],[y,P]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[k,[b,"Vivo"],[y,M]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[k,[b,"Realme"],[y,M]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[k,[b,"Motorola"],[y,M]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[k,[b,"Motorola"],[y,P]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[k,[b,"LG"],[y,P]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[k,[b,"LG"],[y,M]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[k,[b,"Lenovo"],[y,P]],[/(nokia) (t[12][01])/i],[b,k,[y,P]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[k,/_/g," "],[y,M],[b,"Nokia"]],[/(pixel (c|tablet))\b/i],[k,[b,"Google"],[y,P]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[k,[b,"Google"],[y,M]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[k,[b,"Sony"],[y,M]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[k,"Xperia Tablet"],[b,"Sony"],[y,P]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[k,[b,"OnePlus"],[y,M]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[k,[b,"Amazon"],[y,P]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[k,/(.+)/g,"Fire Phone $1"],[b,"Amazon"],[y,M]],[/(playbook);[-\w\),; ]+(rim)/i],[k,b,[y,P]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[k,[b,"BlackBerry"],[y,M]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[k,[b,"ASUS"],[y,P]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[k,[b,"ASUS"],[y,M]],[/(nexus 9)/i],[k,[b,"HTC"],[y,P]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[b,[k,/_/g," "],[y,M]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[k,[b,"TCL"],[y,P]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[k,[b,"TCL"],[y,M]],[/(itel) ((\w+))/i],[[b,g],k,[y,be,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[k,[b,"Acer"],[y,P]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[k,[b,"Meizu"],[y,M]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[k,[b,"Ulefone"],[y,M]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[k,[b,"Energizer"],[y,M]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[k,[b,"Cat"],[y,M]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[k,[b,"Smartfren"],[y,M]],[/droid.+; (a(?:015|06[35]|142p?))/i],[k,[b,"Nothing"],[y,M]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[b,k,[y,P]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[b,k,[y,M]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[b,k,[y,P]],[/(surface duo)/i],[k,[b,"Microsoft"],[y,P]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[k,[b,"Fairphone"],[y,M]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[k,[b,"Nvidia"],[y,P]],[/(sprint) (\w+)/i],[b,k,[y,M]],[/(kin\.[onetw]{3})/i],[[k,/\./g," "],[b,"Microsoft"],[y,M]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[k,[b,"Zebra"],[y,P]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[k,[b,"Zebra"],[y,M]],[/smart-tv.+(samsung)/i],[b,[y,D]],[/hbbtv.+maple;(\d+)/i],[[k,/^/,"SmartTV"],[b,"Samsung"],[y,D]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[b,"LG"],[y,D]],[/(apple) ?tv/i],[b,[k,"Apple TV"],[y,D]],[/crkey.*devicetype\/chromecast/i],[[k,"Chromecast Third Generation"],[b,"Google"],[y,D]],[/crkey.*devicetype\/([^/]*)/i],[[k,/^/,"Chromecast "],[b,"Google"],[y,D]],[/fuchsia.*crkey/i],[[k,"Chromecast Nest Hub"],[b,"Google"],[y,D]],[/crkey/i],[[k,"Chromecast"],[b,"Google"],[y,D]],[/droid.+aft(\w+)( bui|\))/i],[k,[b,"Amazon"],[y,D]],[/(shield \w+ tv)/i],[k,[b,"Nvidia"],[y,D]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[k,[b,"Sharp"],[y,D]],[/(bravia[\w ]+)( bui|\))/i],[k,[b,"Sony"],[y,D]],[/(mi(tv|box)-?\w+) bui/i],[k,[b,"Xiaomi"],[y,D]],[/Hbbtv.*(technisat) (.*);/i],[b,k,[y,D]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[b,Ce],[k,Ce],[y,D]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[k,[y,D]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[y,D]],[/(ouya)/i,/(nintendo) (\w+)/i],[b,k,[y,"console"]],[/droid.+; (shield)( bui|\))/i],[k,[b,"Nvidia"],[y,"console"]],[/(playstation \w+)/i],[k,[b,"Sony"],[y,"console"]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[k,[b,"Microsoft"],[y,"console"]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[k,[b,"Samsung"],[y,"wearable"]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[b,k,[y,"wearable"]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[k,[b,"OPPO"],[y,"wearable"]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[k,[b,"Apple"],[y,"wearable"]],[/(opwwe\d{3})/i],[k,[b,"OnePlus"],[y,"wearable"]],[/(moto 360)/i],[k,[b,"Motorola"],[y,"wearable"]],[/(smartwatch 3)/i],[k,[b,"Sony"],[y,"wearable"]],[/(g watch r)/i],[k,[b,"LG"],[y,"wearable"]],[/droid.+; (wt63?0{2,3})\)/i],[k,[b,"Zebra"],[y,"wearable"]],[/droid.+; (glass) \d/i],[k,[b,"Google"],[y,"xr"]],[/(pico) (4|neo3(?: link|pro)?)/i],[b,k,[y,"xr"]],[/; (quest( \d| pro)?)/i],[k,[b,"Facebook"],[y,"xr"]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[b,[y,"embedded"]],[/(aeobc)\b/i],[k,[b,"Amazon"],[y,"embedded"]],[/(homepod).+mac os/i],[k,[b,"Apple"],[y,"embedded"]],[/windows iot/i],[[y,"embedded"]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[k,[y,be,{mobile:"Mobile",xr:"VR","*":P}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[y,P]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[y,M]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[k,[b,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[S,[v,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[v,S],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[S,[v,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[v,S],[/ladybird\//i],[[v,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[S,v]],os:[[/microsoft (windows) (vista|xp)/i],[v,S],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[v,[S,be,st]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[S,be,st],[v,He]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[S,/_/g,"."],[v,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[v,"macOS"],[S,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[S,[v,"Chromecast Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[S,[v,"Chromecast Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[S,[v,"Chromecast SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[S,[v,"Chromecast Linux"]],[/crkey\/([\d\.]+)/i],[S,[v,"Chromecast"]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[S,v],[/(ubuntu) ([\w\.]+) like android/i],[[v,/(.+)/,"$1 Touch"],S],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[v,S],[/\(bb(10);/i],[S,[v,"BlackBerry"]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[S,[v,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[S,[v,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[S,[v,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[S,[v,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[v,"Chrome OS"],S],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[v,S],[/(sunos) ?([\w\.\d]*)/i],[[v,"Solaris"],S],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[v,S]]},dn=(s={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}},W.call(s.init,[[f,[v,S,C,y]],[h,[I]],[p,[y,k,b]],[m,[v,S]],[w,[v,S]]]),W.call(s.isIgnore,[[f,[S,C]],[m,[S]],[w,[S]]]),W.call(s.isIgnoreRgx,[[f,/ ?browser$/i],[w,/ ?os$/i]]),W.call(s.toString,[[f,[v,S]],[h,[I]],[p,[b,k]],[m,[v,S]],[w,[v,S]]]),s),Un=function(We,ut){var Ue=dn.init[ut],Et=dn.isIgnore[ut]||0,Ke=dn.isIgnoreRgx[ut]||0,Ct=dn.toString[ut]||0;function Zt(){W.call(this,Ue)}return Zt.prototype.getItem=function(){return We},Zt.prototype.withClientHints=function(){return at?at.getHighEntropyValues(Ne).then(function(Dt){return We.setCH(new wn(Dt,!1)).parseCH().get()}):We.parseCH().get()},Zt.prototype.withFeatureCheck=function(){return We.detectFeature().get()},ut!=E&&(Zt.prototype.is=function(Dt){var Nt=!1;for(var vn in this)if(this.hasOwnProperty(vn)&&!Tt(Et,vn)&&g(Ke?T(Ke,this[vn]):this[vn])==g(Ke?T(Ke,Dt):Dt)){if(Nt=!0,Dt!=u)break}else if(Dt==u&&Nt){Nt=!Nt;break}return Nt},Zt.prototype.toString=function(){var Dt=o;for(var Nt in Ct)typeof this[Ct[Nt]]!==u&&(Dt+=(Dt?" ":o)+this[Ct[Nt]]);return Dt||u}),at||(Zt.prototype.then=function(Dt){var Nt=this,vn=function(){for(var _r in Nt)Nt.hasOwnProperty(_r)&&(this[_r]=Nt[_r])};vn.prototype={is:Zt.prototype.is,toString:Zt.prototype.toString};var or=new vn;return Dt(or),or}),new Zt};function wn(We,ut){if(We=We||{},W.call(this,Ne),ut)W.call(this,[[V,Me(We[H])],[Y,Me(We[A])],[M,/\?1/.test(We[ae])],[k,re(We[ve])],[Z,re(We[Le])],[te,re(We[Oe])],[I,re(We[N])],[B,Me(We[K])],[$,re(We[le])]]);else for(var Ue in We)this.hasOwnProperty(Ue)&&typeof We[Ue]!==u&&(this[Ue]=We[Ue])}function En(We,ut,Ue,Et){return this.get=function(Ke){return Ke?this.data.hasOwnProperty(Ke)?this.data[Ke]:a:this.data},this.set=function(Ke,Ct){return this.data[Ke]=Ct,this},this.setCH=function(Ke){return this.uaCH=Ke,this},this.detectFeature=function(){if(De&&De.userAgent==this.ua)switch(this.itemType){case f:De.brave&&typeof De.brave.isBrave==l&&this.set(v,"Brave");break;case p:!this.get(y)&&at&&at[M]&&this.set(y,M),this.get(k)=="Macintosh"&&De&&typeof De.standalone!==u&&De.maxTouchPoints&&De.maxTouchPoints>2&&this.set(k,"iPad").set(y,P);break;case w:!this.get(v)&&at&&at[Z]&&this.set(v,at[Z]);break;case E:var Ke=this.data,Ct=function(Zt){return Ke[Zt].getItem().detectFeature().get()};this.set(f,Ct(f)).set(h,Ct(h)).set(p,Ct(p)).set(m,Ct(m)).set(w,Ct(w))}return this},this.parseUA=function(){return this.itemType!=E&&xe.call(this.data,this.ua,this.rgxMap),this.itemType==f&&this.set(C,F(this.get(S))),this},this.parseCH=function(){var Ke=this.uaCH,Ct=this.rgxMap;switch(this.itemType){case f:case m:var Zt,Dt=Ke[Y]||Ke[V];if(Dt)for(var Nt in Dt){var vn=Dt[Nt].brand||Dt[Nt],or=Dt[Nt].version;this.itemType!=f||/not.a.brand/i.test(vn)||Zt&&(!/chrom/i.test(Zt)||vn==Re)||(vn=be(vn,{Chrome:"Google Chrome",Edge:"Microsoft Edge","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome"}),this.set(v,vn).set(S,or).set(C,F(or)),Zt=vn),this.itemType==m&&vn==Re&&this.set(S,or)}break;case h:var _r=Ke[I];_r&&(_r&&Ke[$]=="64"&&(_r+="64"),xe.call(this.data,_r+";",Ct));break;case p:if(Ke[M]&&this.set(y,M),Ke[k]&&(this.set(k,Ke[k]),!this.get(y)||!this.get(b))){var fn={};xe.call(fn,"droid 9; "+Ke[k]+")",Ct),!this.get(y)&&fn.type&&this.set(y,fn.type),!this.get(b)&&fn.vendor&&this.set(b,fn.vendor)}if(Ke[B]){var jn;if(typeof Ke[B]!="string")for(var Be=0;!jn&&Be<Ke[B].length;)jn=be(Ke[B][Be++],$e);else jn=be(Ke[B],$e);this.set(y,jn)}break;case w:var Ae=Ke[Z];if(Ae){var pn=Ke[te];Ae==He&&(pn=parseInt(F(pn),10)>=13?"11":"10"),this.set(v,Ae).set(S,pn)}this.get(v)==He&&Ke[k]=="Xbox"&&this.set(v,"Xbox").set(S,a);break;case E:var Sn=this.data,St=function(br){return Sn[br].getItem().setCH(Ke).parseCH().get()};this.set(f,St(f)).set(h,St(h)).set(p,St(p)).set(m,St(m)).set(w,St(w))}return this},W.call(this,[["itemType",We],["ua",ut],["uaCH",Et],["rgxMap",Ue],["data",Un(this,We)]]),this}function Ht(We,ut,Ue){if(typeof We===c?(en(We,!0)?(typeof ut===c&&(Ue=ut),ut=We):(Ue=We,ut=a),We=a):typeof We!==d||en(ut,!0)||(Ue=ut,ut=a),Ue&&typeof Ue.append===l){var Et={};Ue.forEach(function(Nt,vn){Et[vn]=Nt}),Ue=Et}if(!(this instanceof Ht))return new Ht(We,ut,Ue).getResult();var Ke=typeof We===d?We:Ue&&Ue[i]?Ue[i]:De&&De.userAgent?De.userAgent:o,Ct=new wn(Ue,!0),Zt=ut?Pt(Rt,ut):Rt,Dt=function(Nt){return Nt==E?function(){return new En(Nt,Ke,Zt,Ct).set("ua",Ke).set(f,this.getBrowser()).set(h,this.getCPU()).set(p,this.getDevice()).set(m,this.getEngine()).set(w,this.getOS()).get()}:function(){return new En(Nt,Ke,Zt[Nt],Ct).parseUA().get()}};return W.call(this,[["getBrowser",Dt(f)],["getCPU",Dt(h)],["getDevice",Dt(p)],["getEngine",Dt(m)],["getOS",Dt(w)],["getResult",Dt(E)],["getUA",function(){return Ke}],["setUA",function(Nt){return Ut(Nt)&&(Ke=Nt.length>r?Ce(Nt,r):Nt),this}]]).setUA(Ke),this}Ht.VERSION="2.0.2",Ht.BROWSER=wt([v,S,C,y]),Ht.CPU=wt([I]),Ht.DEVICE=wt([k,b,y,"console",M,D,P,"wearable","embedded"]),Ht.ENGINE=Ht.OS=wt([v,S]),t.UAParser=Ht}(me||(me={})),(me||(me={})).evaluateModernizr=function(){(function(t,a,s,r){function i(K,ae){return typeof K===ae}function o(){return typeof s.createElement!="function"?s.createElement(arguments[0]):C?s.createElementNS.call(s,"http://www.w3.org/2000/svg",arguments[0]):s.createElement.apply(s,arguments)}function l(K,ae){return!!~(""+K).indexOf(ae)}function u(K,ae,ve,Le){var Oe,Ne,Re,He,De="modernizr",at=o("div"),Pt=function(){var wt=s.body;return wt||((wt=o(C?"svg":"body")).fake=!0),wt}();if(parseInt(ve,10))for(;ve--;)(Re=o("div")).id=De+(ve+1),at.appendChild(Re);return(Oe=o("style")).type="text/css",Oe.id="s"+De,(Pt.fake?Pt:at).appendChild(Oe),Pt.appendChild(at),Oe.styleSheet?Oe.styleSheet.cssText=K:Oe.appendChild(s.createTextNode(K)),at.id=De,Pt.fake&&(Pt.style.background="",Pt.style.overflow="hidden",He=I.style.overflow,I.style.overflow="hidden",I.appendChild(Pt)),Ne=ae(at,K),Pt.fake&&Pt.parentNode?(Pt.parentNode.removeChild(Pt),I.style.overflow=He,I.offsetHeight):at.parentNode.removeChild(at),!!Ne}function c(K){return K.replace(/([A-Z])/g,function(ae,ve){return"-"+ve.toLowerCase()}).replace(/^ms-/,"-ms-")}function d(K,ae,ve){var Le;if("getComputedStyle"in a){Le=getComputedStyle.call(a,K,ae);var Oe=a.console;Le!==null?Le=Le.getPropertyValue(ve):Oe&&Oe[Oe.error?"error":"log"].call(Oe,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}else Le=K.currentStyle&&K.currentStyle[ve];return Le}function f(K,ae){var ve=K.length;if(a&&a.CSS&&"supports"in a.CSS){for(;ve--;)if(a.CSS.supports(c(K[ve]),ae))return!0;return!1}if("CSSSupportsRule"in a){for(var Le=[];ve--;)Le.push("("+c(K[ve])+":"+ae+")");return u("@supports ("+(Le=Le.join(" or "))+") { #modernizr { position: absolute; } }",function(Oe){return d(Oe,null,"position")==="absolute"})}return r}function h(K){return K.replace(/([a-z])-([a-z])/g,function(ae,ve,Le){return ve+Le.toUpperCase()}).replace(/^-/,"")}function p(K,ae,ve,Le){function Oe(){Re&&(delete V.style,delete V.modElem)}if(Le=!i(Le,"undefined")&&Le,!i(ve,"undefined")){var Ne=f(K,ve);if(!i(Ne,"undefined"))return Ne}for(var Re,He,De,at,Pt,wt=["modernizr","tspan","samp"];!V.style&&wt.length;)Re=!0,V.modElem=o(wt.shift()),V.style=V.modElem.style;for(De=K.length,He=0;He<De;He++)if(at=K[He],Pt=V.style[at],l(at,"-")&&(at=h(at)),V.style[at]!==r){if(Le||i(ve,"undefined"))return Oe(),ae!=="pfx"||at;try{V.style[at]=ve}catch{}if(V.style[at]!==Pt)return Oe(),ae!=="pfx"||at}return Oe(),!1}function m(K,ae){return function(){return K.apply(ae,arguments)}}function w(K,ae,ve,Le,Oe){var Ne=K.charAt(0).toUpperCase()+K.slice(1),Re=(K+" "+P.join(Ne+" ")+Ne).split(" ");return i(ae,"string")||i(ae,"undefined")?p(Re,ae,Le,Oe):function(He,De,at){var Pt;for(var wt in He)if(He[wt]in De)return at===!1?He[wt]:i(Pt=De[He[wt]],"function")?m(Pt,at||De):Pt;return!1}(Re=(K+" "+B.join(Ne+" ")+Ne).split(" "),ae,ve)}function E(K,ae,ve){return w(K,r,r,ae,ve)}var v=[],y={_version:"3.13.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(K,ae){var ve=this;setTimeout(function(){ae(ve[K])},0)},addTest:function(K,ae,ve){v.push({name:K,fn:ae,options:ve})},addAsyncTest:function(K){v.push({name:null,fn:K})}},b=function(){};b.prototype=y,b=new b;var S=[],I=s.documentElement,C=I.nodeName.toLowerCase()==="svg",k=function(){var K=!("onblur"in I);return function(ae,ve){var Le;return!!ae&&(ve&&typeof ve!="string"||(ve=o(ve||"div")),!(Le=(ae="on"+ae)in ve)&&K&&(ve.setAttribute||(ve=o("div")),ve.setAttribute(ae,""),Le=typeof ve[ae]=="function",ve[ae]!==r&&(ve[ae]=r),ve.removeAttribute(ae)),Le)}}();y.hasEvent=k,b.addTest("ambientlight",k("devicelight",a)),b.addTest("applicationcache","applicationCache"in a),function(){var K=o("audio");b.addTest("audio",function(){var ae=!1;try{(ae=!!K.canPlayType)&&(ae=new Boolean(ae))}catch{}return ae});try{K.canPlayType&&(b.addTest("audio.ogg",K.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,"")),b.addTest("audio.mp3",K.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/,"")),b.addTest("audio.opus",K.canPlayType('audio/ogg; codecs="opus"')||K.canPlayType('audio/webm; codecs="opus"').replace(/^no$/,"")),b.addTest("audio.wav",K.canPlayType('audio/wav; codecs="1"').replace(/^no$/,"")),b.addTest("audio.m4a",(K.canPlayType("audio/x-m4a;")||K.canPlayType("audio/aac;")).replace(/^no$/,"")))}catch{}}();var M="Moz O ms Webkit",P=y._config.usePrefixes?M.split(" "):[];y._cssomPrefixes=P;var D={elem:o("modernizr")};b._q.push(function(){delete D.elem});var V={style:D.elem.style};b._q.unshift(function(){delete V.style});var B=y._config.usePrefixes?M.toLowerCase().split(" "):[];y._domPrefixes=B,y.testAllProps=w;var Y=function(K){var ae,ve=H.length,Le=a.CSSRule;if(Le===void 0)return r;if(!K)return!1;if((ae=(K=K.replace(/^@/,"")).replace(/-/g,"_").toUpperCase()+"_RULE")in Le)return"@"+K;for(var Oe=0;Oe<ve;Oe++){var Ne=H[Oe];if(Ne.toUpperCase()+"_"+ae in Le)return"@-"+Ne.toLowerCase()+"-"+K}return!1};y.atRule=Y;var Z=y.prefixed=function(K,ae,ve){return K.indexOf("@")===0?Y(K):(K.indexOf("-")!==-1&&(K=h(K)),ae?w(K,ae,ve):w(K,"pfx"))};b.addTest("batteryapi",!!Z("battery",navigator)||!!Z("getBattery",navigator),{aliases:["battery-api"]}),b.addTest("blobconstructor",function(){try{return!!new Blob}catch{return!1}},{aliases:["blob-constructor"]}),b.addTest("contextmenu","contextMenu"in I&&"HTMLMenuItemElement"in a),b.addTest("cors","XMLHttpRequest"in a&&"withCredentials"in new XMLHttpRequest);var te=Z("crypto",a);b.addTest("crypto",!!Z("subtle",te)),b.addTest("customelements","customElements"in a),b.addTest("customprotocolhandler",function(){if(!navigator.registerProtocolHandler)return!1;try{navigator.registerProtocolHandler("thisShouldFail")}catch(K){return K instanceof TypeError}return!1}),b.addTest("customevent","CustomEvent"in a&&typeof a.CustomEvent=="function"),b.addTest("dart",!!Z("startDart",navigator)),b.addTest("dataview",typeof DataView<"u"&&"getFloat64"in DataView.prototype),b.addTest("eventlistener","addEventListener"in a),b.addTest("forcetouch",function(){return!!k(Z("mouseforcewillbegin",a,!1),a)&&MouseEvent.WEBKIT_FORCE_AT_MOUSE_DOWN&&MouseEvent.WEBKIT_FORCE_AT_FORCE_MOUSE_DOWN}),b.addTest("fullscreen",!(!Z("exitFullscreen",s,!1)&&!Z("cancelFullScreen",s,!1))),b.addTest("gamepads",!!Z("getGamepads",navigator)),b.addTest("geolocation","geolocation"in navigator),b.addTest("ie8compat",!a.addEventListener&&!!s.documentMode&&s.documentMode===7),b.addTest("intl",!!Z("Intl",a)),b.addTest("json","JSON"in a&&"parse"in JSON&&"stringify"in JSON),y.testAllProps=E,b.addTest("ligatures",E("fontFeatureSettings",'"liga" 1')),b.addTest("messagechannel","MessageChannel"in a),b.addTest("notification",function(){if(!a.Notification||!a.Notification.requestPermission)return!1;if(a.Notification.permission==="granted")return!0;try{new a.Notification("")}catch(K){if(K.name==="TypeError")return!1}return!0}),b.addTest("pagevisibility",!!Z("hidden",s,!1)),b.addTest("performance",!!Z("performance",a));var $=[""].concat(B);y._domPrefixesAll=$,b.addTest("pointerevents",function(){for(var K=0,ae=$.length;K<ae;K++)if(k($[K]+"pointerdown"))return!0;return!1}),b.addTest("pointerlock",!!Z("exitPointerLock",s)),b.addTest("queryselector","querySelector"in s&&"querySelectorAll"in s),b.addTest("quotamanagement",function(){var K=Z("temporaryStorage",navigator),ae=Z("persistentStorage",navigator);return!(!K||!ae)}),b.addTest("requestanimationframe",!!Z("requestAnimationFrame",a),{aliases:["raf"]}),b.addTest("serviceworker","serviceWorker"in navigator);var H=y._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];y._prefixes=H;var A=function(){var K=a.matchMedia||a.msMatchMedia;return K?function(ae){var ve=K(ae);return ve&&ve.matches||!1}:function(ae){var ve=!1;return u("@media "+ae+" { #modernizr { position: absolute; } }",function(Le){ve=d(Le,null,"position")==="absolute"}),ve}}();y.mq=A,b.addTest("touchevents",function(){if("ontouchstart"in a||a.TouchEvent||a.DocumentTouch&&s instanceof DocumentTouch)return!0;var K=["(",H.join("touch-enabled),("),"heartz",")"].join("");return A(K)}),b.addTest("typedarrays","ArrayBuffer"in a),b.addTest("vibrate",!!Z("vibrate",navigator)),function(){var K=o("video");b.addTest("video",function(){var ae=!1;try{(ae=!!K.canPlayType)&&(ae=new Boolean(ae))}catch{}return ae});try{K.canPlayType&&(b.addTest("video.ogg",K.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,"")),b.addTest("video.h264",K.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,"")),b.addTest("video.h265",K.canPlayType('video/mp4; codecs="hev1"').replace(/^no$/,"")),b.addTest("video.webm",K.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")),b.addTest("video.vp9",K.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,"")),b.addTest("video.hls",K.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,"")),b.addTest("video.av1",K.canPlayType('video/mp4; codecs="av01"').replace(/^no$/,"")))}catch{}}(),b.addTest("webgl",function(){return"WebGLRenderingContext"in a});var N=!1;try{N="WebSocket"in a&&a.WebSocket.CLOSING===2}catch{}b.addTest("websockets",N),b.addTest("xdomainrequest","XDomainRequest"in a),b.addTest("matchmedia",!!Z("matchMedia",a)),function(){var K,ae,ve,Le,Oe,Ne;for(var Re in v)if(v.hasOwnProperty(Re)){if(K=[],(ae=v[Re]).name&&(K.push(ae.name.toLowerCase()),ae.options&&ae.options.aliases&&ae.options.aliases.length))for(ve=0;ve<ae.options.aliases.length;ve++)K.push(ae.options.aliases[ve].toLowerCase());for(Le=i(ae.fn,"function")?ae.fn():ae.fn,Oe=0;Oe<K.length;Oe++)(Ne=K[Oe].split(".")).length===1?b[Ne[0]]=Le:(b[Ne[0]]&&(!b[Ne[0]]||b[Ne[0]]instanceof Boolean)||(b[Ne[0]]=new Boolean(b[Ne[0]])),b[Ne[0]][Ne[1]]=Le),S.push((Le?"":"no-")+Ne.join("-"))}}(),delete y.addTest,delete y.addAsyncTest;for(var le=0;le<b._q.length;le++)b._q[le]();t.Modernizr=b})(me||(me={}),window,document)},(me!==void 0?me:me={}).AiaSignals=function(t){var a=[{name:"IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",value:!1,error:null},{name:"FILE_INJECT_JS_FOUND",value:!1,error:null},{name:"FILE_CONTENT_JS_FOUND",value:!1,error:null},{name:"WINDOW_GLOBAL_KEY_FOUND",value:!1,error:null}],s={webAuthn:1e3,manus:5e3,anchor:5e3,skyvern:5e3,detect:1e4};function r(f){for(var h=0;h<a.length;h++)if(a[h].name===f)return a[h];return null}function i(f,h){var p=r(f);p&&(p.value=h,p.error=null)}function o(f,h,p){var m=r(f);m&&(m.value=h,m.error=p)}function l(){return new Promise(function(f){var h=s.webAuthn,p=setTimeout(function(){o("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",!1,1004),f(a)},h);try{window.PublicKeyCredential&&typeof PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable=="function"?PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable().then(function(m){clearTimeout(p),m?i("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",!0):o("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",!1,1001),f(a)}).catch(function(){clearTimeout(p),o("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",!1,1002),f(a)}):(clearTimeout(p),o("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",!1,1003),f(a))}catch{clearTimeout(p),o("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE",!1,1002),f(a)}})}function u(){return new Promise(function(f){var h,p=s.manus,m=document.createElement("script");m.src="chrome-extension://mljmkmodkfigdopcpgboaalildgijkoc/content.ts.js",m.onload=function(){clearTimeout(h),i("FILE_CONTENT_JS_FOUND",!0),f(a)},m.onerror=function(){clearTimeout(h),o("FILE_CONTENT_JS_FOUND",!1,2002),f(a)},document.getElementsByTagName("head")[0].appendChild(m),h=setTimeout(function(){o("FILE_CONTENT_JS_FOUND",!1,2001),f(a)},p)})}function c(){return new Promise(function(f){var h,p=s.anchor,m=document.createElement("script");m.src="chrome-extension://bppehibnhionalpjigdjdilknbljaeai/inject.js",m.onload=function(){clearTimeout(h),i("FILE_INJECT_JS_FOUND",!0),f(a)},m.onerror=function(){clearTimeout(h),o("FILE_INJECT_JS_FOUND",!1,4002),f(a)},document.getElementsByTagName("head")[0].appendChild(m),h=setTimeout(function(){o("FILE_INJECT_JS_FOUND",!1,4001),f(a)},p)})}function d(){return new Promise(function(f){var h=s.skyvern,p=1e3,m=0;function w(){if(window.globalDomDepthMap||window.GlobalEnableAllTextualElements||window.globalObserverForDOMIncrement||window.globalListnerFlag||window.globalDomDepthMap||window.globalOneTimeIncrementElements||window.globalHoverStylesMap||window.globalParsedElementCounter)return i("WINDOW_GLOBAL_KEY_FOUND",!0),void f(a);for(var E in window)if(typeof E=="string"&&E.toLowerCase().indexOf("skyvern")!==-1&&E!=="isSkyvern")return i("WINDOW_GLOBAL_KEY_FOUND",!0),void f(a);(m+=p)>=h?(o("WINDOW_GLOBAL_KEY_FOUND",!1,5002),f(a)):setTimeout(w,p)}document.readyState==="loading"?document.addEventListener("DOMContentLoaded",w):w()})}return t.detect=function(){return new Promise(function(f){var h=setTimeout(function(){f(a)},s.detect);l().then(function(p){var m=r("IS_USER_VERIFYING_PLATFORM_AUTHENTICATOR_AVAILABLE");if(m&&m.value)return clearTimeout(h),void f(a);for(var w=[u().then(function(b){return{key:"manus",result:b}}),c().then(function(b){return{key:"anchor",result:b}}),d().then(function(b){return{key:"skyvern",result:b}})],E=0,v=function(){++E===w.length&&(clearTimeout(h),f(a))},y=0;y<w.length;y++)w[y].then(v).catch(function(){v()})}).catch(function(){clearTimeout(h),f(a)})})},t.checkWebAuthnPlatformSupport=l,t.isManus=u,t.isAnchor=c,t.isSkyvern=d,Object.defineProperty(t,"__esModule",{value:!0}),t}({}),(me||(me={})).pako=function t(a,s,r){function i(u,c){if(!s[u]){if(!a[u]){var d=typeof Il=="function"&&Il;if(!c&&d)return d(u,!0);if(o)return o(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var h=s[u]={exports:{}};a[u][0].call(h.exports,function(p){var m=a[u][1][p];return i(m||p)},h,h.exports,t,a,s,r)}return s[u].exports}for(var o=typeof Il=="function"&&Il,l=0;l<r.length;l++)i(r[l]);return i}({1:[function(t,a,s){function r(u,c){return Object.prototype.hasOwnProperty.call(u,c)}var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";s.assign=function(u){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var d=c.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var f in d)r(d,f)&&(u[f]=d[f])}}return u},s.shrinkBuf=function(u,c){return u.length===c?u:u.subarray?u.subarray(0,c):(u.length=c,u)};var o={arraySet:function(u,c,d,f,h){if(c.subarray&&u.subarray)u.set(c.subarray(d,d+f),h);else for(var p=0;p<f;p++)u[h+p]=c[d+p]},flattenChunks:function(u){var c,d,f,h,p,m;for(f=0,c=0,d=u.length;c<d;c++)f+=u[c].length;for(m=new Uint8Array(f),h=0,c=0,d=u.length;c<d;c++)p=u[c],m.set(p,h),h+=p.length;return m}},l={arraySet:function(u,c,d,f,h){for(var p=0;p<f;p++)u[h+p]=c[d+p]},flattenChunks:function(u){return[].concat.apply([],u)}};s.setTyped=function(u){u?(s.Buf8=Uint8Array,s.Buf16=Uint16Array,s.Buf32=Int32Array,s.assign(s,o)):(s.Buf8=Array,s.Buf16=Array,s.Buf32=Array,s.assign(s,l))},s.setTyped(i)},{}],2:[function(t,a,s){function r(d,f){if(f<65537&&(d.subarray&&l||!d.subarray&&o))return String.fromCharCode.apply(null,i.shrinkBuf(d,f));for(var h="",p=0;p<f;p++)h+=String.fromCharCode(d[p]);return h}var i=t("./common"),o=!0,l=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{l=!1}for(var u=new i.Buf8(256),c=0;c<256;c++)u[c]=c>=252?6:c>=248?5:c>=240?4:c>=224?3:c>=192?2:1;u[254]=u[254]=1,s.string2buf=function(d){var f,h,p,m,w,E=d.length,v=0;for(m=0;m<E;m++)(64512&(h=d.charCodeAt(m)))==55296&&m+1<E&&(64512&(p=d.charCodeAt(m+1)))==56320&&(h=65536+(h-55296<<10)+(p-56320),m++),v+=h<128?1:h<2048?2:h<65536?3:4;for(f=new i.Buf8(v),w=0,m=0;w<v;m++)(64512&(h=d.charCodeAt(m)))==55296&&m+1<E&&(64512&(p=d.charCodeAt(m+1)))==56320&&(h=65536+(h-55296<<10)+(p-56320),m++),h<128?f[w++]=h:h<2048?(f[w++]=192|h>>>6,f[w++]=128|63&h):h<65536?(f[w++]=224|h>>>12,f[w++]=128|h>>>6&63,f[w++]=128|63&h):(f[w++]=240|h>>>18,f[w++]=128|h>>>12&63,f[w++]=128|h>>>6&63,f[w++]=128|63&h);return f},s.buf2binstring=function(d){return r(d,d.length)},s.binstring2buf=function(d){for(var f=new i.Buf8(d.length),h=0,p=f.length;h<p;h++)f[h]=d.charCodeAt(h);return f},s.buf2string=function(d,f){var h,p,m,w,E=f||d.length,v=new Array(2*E);for(p=0,h=0;h<E;)if((m=d[h++])<128)v[p++]=m;else if((w=u[m])>4)v[p++]=65533,h+=w-1;else{for(m&=w===2?31:w===3?15:7;w>1&&h<E;)m=m<<6|63&d[h++],w--;w>1?v[p++]=65533:m<65536?v[p++]=m:(m-=65536,v[p++]=55296|m>>10&1023,v[p++]=56320|1023&m)}return r(v,p)},s.utf8border=function(d,f){var h;for((f=f||d.length)>d.length&&(f=d.length),h=f-1;h>=0&&(192&d[h])==128;)h--;return h<0||h===0?f:h+u[d[h]]>f?h:f}},{"./common":1}],3:[function(t,a,s){a.exports=function(r,i,o,l){for(var u=65535&r|0,c=r>>>16&65535|0,d=0;o!==0;){o-=d=o>2e3?2e3:o;do c=c+(u=u+i[l++]|0)|0;while(--d);u%=65521,c%=65521}return u|c<<16|0}},{}],4:[function(t,a,s){var r=function(){for(var i,o=[],l=0;l<256;l++){i=l;for(var u=0;u<8;u++)i=1&i?3988292384^i>>>1:i>>>1;o[l]=i}return o}();a.exports=function(i,o,l,u){var c=r,d=u+l;i^=-1;for(var f=u;f<d;f++)i=i>>>8^c[255&(i^o[f])];return-1^i}},{}],5:[function(t,a,s){function r(g,F){return g.msg=B[F],F}function i(g){return(g<<1)-(g>4?9:0)}function o(g){for(var F=g.length;--F>=0;)g[F]=0}function l(g){var F=g.state,W=F.pending;W>g.avail_out&&(W=g.avail_out),W!==0&&(M.arraySet(g.output,F.pending_buf,F.pending_out,W,g.next_out),g.next_out+=W,F.pending_out+=W,g.total_out+=W,g.avail_out-=W,F.pending-=W,F.pending===0&&(F.pending_out=0))}function u(g,F){P._tr_flush_block(g,g.block_start>=0?g.block_start:-1,g.strstart-g.block_start,F),g.block_start=g.strstart,l(g.strm)}function c(g,F){g.pending_buf[g.pending++]=F}function d(g,F){g.pending_buf[g.pending++]=F>>>8&255,g.pending_buf[g.pending++]=255&F}function f(g,F,W,T){var re=g.avail_in;return re>T&&(re=T),re===0?0:(g.avail_in-=re,M.arraySet(F,g.input,g.next_in,re,W),g.state.wrap===1?g.adler=D(g.adler,F,re,W):g.state.wrap===2&&(g.adler=V(g.adler,F,re,W)),g.next_in+=re,g.total_in+=re,re)}function h(g,F){var W,T,re=g.max_chain_length,Ce=g.strstart,xe=g.prev_length,be=g.nice_match,st=g.strstart>g.w_size-at?g.strstart-(g.w_size-at):0,$e=g.window,Rt=g.w_mask,dn=g.prev,Un=g.strstart+De,wn=$e[Ce+xe-1],En=$e[Ce+xe];g.prev_length>=g.good_match&&(re>>=2),be>g.lookahead&&(be=g.lookahead);do if($e[(W=F)+xe]===En&&$e[W+xe-1]===wn&&$e[W]===$e[Ce]&&$e[++W]===$e[Ce+1]){Ce+=2,W++;do;while($e[++Ce]===$e[++W]&&$e[++Ce]===$e[++W]&&$e[++Ce]===$e[++W]&&$e[++Ce]===$e[++W]&&$e[++Ce]===$e[++W]&&$e[++Ce]===$e[++W]&&$e[++Ce]===$e[++W]&&$e[++Ce]===$e[++W]&&Ce<Un);if(T=De-(Un-Ce),Ce=Un-De,T>xe){if(g.match_start=F,xe=T,T>=be)break;wn=$e[Ce+xe-1],En=$e[Ce+xe]}}while((F=dn[F&Rt])>st&&--re!=0);return xe<=g.lookahead?xe:g.lookahead}function p(g){var F,W,T,re,Ce,xe=g.w_size;do{if(re=g.window_size-g.lookahead-g.strstart,g.strstart>=xe+(xe-at)){M.arraySet(g.window,g.window,xe,xe,0),g.match_start-=xe,g.strstart-=xe,g.block_start-=xe,F=W=g.hash_size;do T=g.head[--F],g.head[F]=T>=xe?T-xe:0;while(--W);F=W=xe;do T=g.prev[--F],g.prev[F]=T>=xe?T-xe:0;while(--W);re+=xe}if(g.strm.avail_in===0)break;if(W=f(g.strm,g.window,g.strstart+g.lookahead,re),g.lookahead+=W,g.lookahead+g.insert>=He)for(Ce=g.strstart-g.insert,g.ins_h=g.window[Ce],g.ins_h=(g.ins_h<<g.hash_shift^g.window[Ce+1])&g.hash_mask;g.insert&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[Ce+He-1])&g.hash_mask,g.prev[Ce&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=Ce,Ce++,g.insert--,!(g.lookahead+g.insert<He)););}while(g.lookahead<at&&g.strm.avail_in!==0)}function m(g,F){for(var W,T;;){if(g.lookahead<at){if(p(g),g.lookahead<at&&F===Y)return Tt;if(g.lookahead===0)break}if(W=0,g.lookahead>=He&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+He-1])&g.hash_mask,W=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart),W!==0&&g.strstart-W<=g.w_size-at&&(g.match_length=h(g,W)),g.match_length>=He)if(T=P._tr_tally(g,g.strstart-g.match_start,g.match_length-He),g.lookahead-=g.match_length,g.match_length<=g.max_lazy_match&&g.lookahead>=He){g.match_length--;do g.strstart++,g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+He-1])&g.hash_mask,W=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart;while(--g.match_length!=0);g.strstart++}else g.strstart+=g.match_length,g.match_length=0,g.ins_h=g.window[g.strstart],g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+1])&g.hash_mask;else T=P._tr_tally(g,0,g.window[g.strstart]),g.lookahead--,g.strstart++;if(T&&(u(g,!1),g.strm.avail_out===0))return Tt}return g.insert=g.strstart<He-1?g.strstart:He-1,F===Z?(u(g,!0),g.strm.avail_out===0?Ut:Me):g.last_lit&&(u(g,!1),g.strm.avail_out===0)?Tt:en}function w(g,F){for(var W,T,re;;){if(g.lookahead<at){if(p(g),g.lookahead<at&&F===Y)return Tt;if(g.lookahead===0)break}if(W=0,g.lookahead>=He&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+He-1])&g.hash_mask,W=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart),g.prev_length=g.match_length,g.prev_match=g.match_start,g.match_length=He-1,W!==0&&g.prev_length<g.max_lazy_match&&g.strstart-W<=g.w_size-at&&(g.match_length=h(g,W),g.match_length<=5&&(g.strategy===A||g.match_length===He&&g.strstart-g.match_start>4096)&&(g.match_length=He-1)),g.prev_length>=He&&g.match_length<=g.prev_length){re=g.strstart+g.lookahead-He,T=P._tr_tally(g,g.strstart-1-g.prev_match,g.prev_length-He),g.lookahead-=g.prev_length-1,g.prev_length-=2;do++g.strstart<=re&&(g.ins_h=(g.ins_h<<g.hash_shift^g.window[g.strstart+He-1])&g.hash_mask,W=g.prev[g.strstart&g.w_mask]=g.head[g.ins_h],g.head[g.ins_h]=g.strstart);while(--g.prev_length!=0);if(g.match_available=0,g.match_length=He-1,g.strstart++,T&&(u(g,!1),g.strm.avail_out===0))return Tt}else if(g.match_available){if((T=P._tr_tally(g,0,g.window[g.strstart-1]))&&u(g,!1),g.strstart++,g.lookahead--,g.strm.avail_out===0)return Tt}else g.match_available=1,g.strstart++,g.lookahead--}return g.match_available&&(T=P._tr_tally(g,0,g.window[g.strstart-1]),g.match_available=0),g.insert=g.strstart<He-1?g.strstart:He-1,F===Z?(u(g,!0),g.strm.avail_out===0?Ut:Me):g.last_lit&&(u(g,!1),g.strm.avail_out===0)?Tt:en}function E(g,F){for(var W,T,re,Ce,xe=g.window;;){if(g.lookahead<=De){if(p(g),g.lookahead<=De&&F===Y)return Tt;if(g.lookahead===0)break}if(g.match_length=0,g.lookahead>=He&&g.strstart>0&&(re=g.strstart-1,(T=xe[re])===xe[++re]&&T===xe[++re]&&T===xe[++re])){Ce=g.strstart+De;do;while(T===xe[++re]&&T===xe[++re]&&T===xe[++re]&&T===xe[++re]&&T===xe[++re]&&T===xe[++re]&&T===xe[++re]&&T===xe[++re]&&re<Ce);g.match_length=De-(Ce-re),g.match_length>g.lookahead&&(g.match_length=g.lookahead)}if(g.match_length>=He?(W=P._tr_tally(g,1,g.match_length-He),g.lookahead-=g.match_length,g.strstart+=g.match_length,g.match_length=0):(W=P._tr_tally(g,0,g.window[g.strstart]),g.lookahead--,g.strstart++),W&&(u(g,!1),g.strm.avail_out===0))return Tt}return g.insert=0,F===Z?(u(g,!0),g.strm.avail_out===0?Ut:Me):g.last_lit&&(u(g,!1),g.strm.avail_out===0)?Tt:en}function v(g,F){for(var W;;){if(g.lookahead===0&&(p(g),g.lookahead===0)){if(F===Y)return Tt;break}if(g.match_length=0,W=P._tr_tally(g,0,g.window[g.strstart]),g.lookahead--,g.strstart++,W&&(u(g,!1),g.strm.avail_out===0))return Tt}return g.insert=0,F===Z?(u(g,!0),g.strm.avail_out===0?Ut:Me):g.last_lit&&(u(g,!1),g.strm.avail_out===0)?Tt:en}function y(g,F,W,T,re){this.good_length=g,this.max_lazy=F,this.nice_length=W,this.max_chain=T,this.func=re}function b(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=K,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new M.Buf16(2*Ne),this.dyn_dtree=new M.Buf16(2*(2*Le+1)),this.bl_tree=new M.Buf16(2*(2*Oe+1)),o(this.dyn_ltree),o(this.dyn_dtree),o(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new M.Buf16(Re+1),this.heap=new M.Buf16(2*ve+1),o(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new M.Buf16(2*ve+1),o(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function S(g){var F;return g&&g.state?(g.total_in=g.total_out=0,g.data_type=le,(F=g.state).pending=0,F.pending_out=0,F.wrap<0&&(F.wrap=-F.wrap),F.status=F.wrap?Pt:wt,g.adler=F.wrap===2?0:1,F.last_flush=Y,P._tr_init(F),te):r(g,$)}function I(g){var F=S(g);return F===te&&function(W){W.window_size=2*W.w_size,o(W.head),W.max_lazy_match=k[W.level].max_lazy,W.good_match=k[W.level].good_length,W.nice_match=k[W.level].nice_length,W.max_chain_length=k[W.level].max_chain,W.strstart=0,W.block_start=0,W.lookahead=0,W.insert=0,W.match_length=W.prev_length=He-1,W.match_available=0,W.ins_h=0}(g.state),F}function C(g,F,W,T,re,Ce){if(!g)return $;var xe=1;if(F===H&&(F=6),T<0?(xe=0,T=-T):T>15&&(xe=2,T-=16),re<1||re>ae||W!==K||T<8||T>15||F<0||F>9||Ce<0||Ce>N)return r(g,$);T===8&&(T=9);var be=new b;return g.state=be,be.strm=g,be.wrap=xe,be.gzhead=null,be.w_bits=T,be.w_size=1<<be.w_bits,be.w_mask=be.w_size-1,be.hash_bits=re+7,be.hash_size=1<<be.hash_bits,be.hash_mask=be.hash_size-1,be.hash_shift=~~((be.hash_bits+He-1)/He),be.window=new M.Buf8(2*be.w_size),be.head=new M.Buf16(be.hash_size),be.prev=new M.Buf16(be.w_size),be.lit_bufsize=1<<re+6,be.pending_buf_size=4*be.lit_bufsize,be.pending_buf=new M.Buf8(be.pending_buf_size),be.d_buf=1*be.lit_bufsize,be.l_buf=3*be.lit_bufsize,be.level=F,be.strategy=Ce,be.method=W,I(g)}var k,M=t("../utils/common"),P=t("./trees"),D=t("./adler32"),V=t("./crc32"),B=t("./messages"),Y=0,Z=4,te=0,$=-2,H=-1,A=1,N=4,le=2,K=8,ae=9,ve=286,Le=30,Oe=19,Ne=2*ve+1,Re=15,He=3,De=258,at=De+He+1,Pt=42,wt=113,Tt=1,en=2,Ut=3,Me=4;k=[new y(0,0,0,0,function(g,F){var W=65535;for(W>g.pending_buf_size-5&&(W=g.pending_buf_size-5);;){if(g.lookahead<=1){if(p(g),g.lookahead===0&&F===Y)return Tt;if(g.lookahead===0)break}g.strstart+=g.lookahead,g.lookahead=0;var T=g.block_start+W;if((g.strstart===0||g.strstart>=T)&&(g.lookahead=g.strstart-T,g.strstart=T,u(g,!1),g.strm.avail_out===0)||g.strstart-g.block_start>=g.w_size-at&&(u(g,!1),g.strm.avail_out===0))return Tt}return g.insert=0,F===Z?(u(g,!0),g.strm.avail_out===0?Ut:Me):(g.strstart>g.block_start&&(u(g,!1),g.strm.avail_out),Tt)}),new y(4,4,8,4,m),new y(4,5,16,8,m),new y(4,6,32,32,m),new y(4,4,16,16,w),new y(8,16,32,32,w),new y(8,16,128,128,w),new y(8,32,128,256,w),new y(32,128,258,1024,w),new y(32,258,258,4096,w)],s.deflateInit=function(g,F){return C(g,F,K,15,8,0)},s.deflateInit2=C,s.deflateReset=I,s.deflateResetKeep=S,s.deflateSetHeader=function(g,F){return g&&g.state?g.state.wrap!==2?$:(g.state.gzhead=F,te):$},s.deflate=function(g,F){var W,T,re,Ce;if(!g||!g.state||F>5||F<0)return g?r(g,$):$;if(T=g.state,!g.output||!g.input&&g.avail_in!==0||T.status===666&&F!==Z)return r(g,g.avail_out===0?-5:$);if(T.strm=g,W=T.last_flush,T.last_flush=F,T.status===Pt)if(T.wrap===2)g.adler=0,c(T,31),c(T,139),c(T,8),T.gzhead?(c(T,(T.gzhead.text?1:0)+(T.gzhead.hcrc?2:0)+(T.gzhead.extra?4:0)+(T.gzhead.name?8:0)+(T.gzhead.comment?16:0)),c(T,255&T.gzhead.time),c(T,T.gzhead.time>>8&255),c(T,T.gzhead.time>>16&255),c(T,T.gzhead.time>>24&255),c(T,T.level===9?2:T.strategy>=2||T.level<2?4:0),c(T,255&T.gzhead.os),T.gzhead.extra&&T.gzhead.extra.length&&(c(T,255&T.gzhead.extra.length),c(T,T.gzhead.extra.length>>8&255)),T.gzhead.hcrc&&(g.adler=V(g.adler,T.pending_buf,T.pending,0)),T.gzindex=0,T.status=69):(c(T,0),c(T,0),c(T,0),c(T,0),c(T,0),c(T,T.level===9?2:T.strategy>=2||T.level<2?4:0),c(T,3),T.status=wt);else{var xe=K+(T.w_bits-8<<4)<<8;xe|=(T.strategy>=2||T.level<2?0:T.level<6?1:T.level===6?2:3)<<6,T.strstart!==0&&(xe|=32),xe+=31-xe%31,T.status=wt,d(T,xe),T.strstart!==0&&(d(T,g.adler>>>16),d(T,65535&g.adler)),g.adler=1}if(T.status===69)if(T.gzhead.extra){for(re=T.pending;T.gzindex<(65535&T.gzhead.extra.length)&&(T.pending!==T.pending_buf_size||(T.gzhead.hcrc&&T.pending>re&&(g.adler=V(g.adler,T.pending_buf,T.pending-re,re)),l(g),re=T.pending,T.pending!==T.pending_buf_size));)c(T,255&T.gzhead.extra[T.gzindex]),T.gzindex++;T.gzhead.hcrc&&T.pending>re&&(g.adler=V(g.adler,T.pending_buf,T.pending-re,re)),T.gzindex===T.gzhead.extra.length&&(T.gzindex=0,T.status=73)}else T.status=73;if(T.status===73)if(T.gzhead.name){re=T.pending;do{if(T.pending===T.pending_buf_size&&(T.gzhead.hcrc&&T.pending>re&&(g.adler=V(g.adler,T.pending_buf,T.pending-re,re)),l(g),re=T.pending,T.pending===T.pending_buf_size)){Ce=1;break}Ce=T.gzindex<T.gzhead.name.length?255&T.gzhead.name.charCodeAt(T.gzindex++):0,c(T,Ce)}while(Ce!==0);T.gzhead.hcrc&&T.pending>re&&(g.adler=V(g.adler,T.pending_buf,T.pending-re,re)),Ce===0&&(T.gzindex=0,T.status=91)}else T.status=91;if(T.status===91)if(T.gzhead.comment){re=T.pending;do{if(T.pending===T.pending_buf_size&&(T.gzhead.hcrc&&T.pending>re&&(g.adler=V(g.adler,T.pending_buf,T.pending-re,re)),l(g),re=T.pending,T.pending===T.pending_buf_size)){Ce=1;break}Ce=T.gzindex<T.gzhead.comment.length?255&T.gzhead.comment.charCodeAt(T.gzindex++):0,c(T,Ce)}while(Ce!==0);T.gzhead.hcrc&&T.pending>re&&(g.adler=V(g.adler,T.pending_buf,T.pending-re,re)),Ce===0&&(T.status=103)}else T.status=103;if(T.status===103&&(T.gzhead.hcrc?(T.pending+2>T.pending_buf_size&&l(g),T.pending+2<=T.pending_buf_size&&(c(T,255&g.adler),c(T,g.adler>>8&255),g.adler=0,T.status=wt)):T.status=wt),T.pending!==0){if(l(g),g.avail_out===0)return T.last_flush=-1,te}else if(g.avail_in===0&&i(F)<=i(W)&&F!==Z)return r(g,-5);if(T.status===666&&g.avail_in!==0)return r(g,-5);if(g.avail_in!==0||T.lookahead!==0||F!==Y&&T.status!==666){var be=T.strategy===2?v(T,F):T.strategy===3?E(T,F):k[T.level].func(T,F);if(be!==Ut&&be!==Me||(T.status=666),be===Tt||be===Ut)return g.avail_out===0&&(T.last_flush=-1),te;if(be===en&&(F===1?P._tr_align(T):F!==5&&(P._tr_stored_block(T,0,0,!1),F===3&&(o(T.head),T.lookahead===0&&(T.strstart=0,T.block_start=0,T.insert=0))),l(g),g.avail_out===0))return T.last_flush=-1,te}return F!==Z?te:T.wrap<=0?1:(T.wrap===2?(c(T,255&g.adler),c(T,g.adler>>8&255),c(T,g.adler>>16&255),c(T,g.adler>>24&255),c(T,255&g.total_in),c(T,g.total_in>>8&255),c(T,g.total_in>>16&255),c(T,g.total_in>>24&255)):(d(T,g.adler>>>16),d(T,65535&g.adler)),l(g),T.wrap>0&&(T.wrap=-T.wrap),T.pending!==0?te:1)},s.deflateEnd=function(g){var F;return g&&g.state?(F=g.state.status)!==Pt&&F!==69&&F!==73&&F!==91&&F!==103&&F!==wt&&F!==666?r(g,$):(g.state=null,F===wt?r(g,-3):te):$},s.deflateSetDictionary=function(g,F){var W,T,re,Ce,xe,be,st,$e,Rt=F.length;if(!g||!g.state||(W=g.state,(Ce=W.wrap)===2||Ce===1&&W.status!==Pt||W.lookahead))return $;for(Ce===1&&(g.adler=D(g.adler,F,Rt,0)),W.wrap=0,Rt>=W.w_size&&(Ce===0&&(o(W.head),W.strstart=0,W.block_start=0,W.insert=0),$e=new M.Buf8(W.w_size),M.arraySet($e,F,Rt-W.w_size,W.w_size,0),F=$e,Rt=W.w_size),xe=g.avail_in,be=g.next_in,st=g.input,g.avail_in=Rt,g.next_in=0,g.input=F,p(W);W.lookahead>=He;){T=W.strstart,re=W.lookahead-(He-1);do W.ins_h=(W.ins_h<<W.hash_shift^W.window[T+He-1])&W.hash_mask,W.prev[T&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=T,T++;while(--re);W.strstart=T,W.lookahead=He-1,p(W)}return W.strstart+=W.lookahead,W.block_start=W.strstart,W.insert=W.lookahead,W.lookahead=0,W.match_length=W.prev_length=He-1,W.match_available=0,g.next_in=be,g.input=st,g.avail_in=xe,W.wrap=Ce,te},s.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":4,"./messages":6,"./trees":7}],6:[function(t,a,s){a.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],7:[function(t,a,s){function r(g){for(var F=g.length;--F>=0;)g[F]=0}function i(g,F,W,T,re){this.static_tree=g,this.extra_bits=F,this.extra_base=W,this.elems=T,this.max_length=re,this.has_stree=g&&g.length}function o(g,F){this.dyn_tree=g,this.max_code=0,this.stat_desc=F}function l(g){return g<256?De[g]:De[256+(g>>>7)]}function u(g,F){g.pending_buf[g.pending++]=255&F,g.pending_buf[g.pending++]=F>>>8&255}function c(g,F,W){g.bi_valid>H-W?(g.bi_buf|=F<<g.bi_valid&65535,u(g,g.bi_buf),g.bi_buf=F>>H-g.bi_valid,g.bi_valid+=W-H):(g.bi_buf|=F<<g.bi_valid&65535,g.bi_valid+=W)}function d(g,F,W){c(g,W[2*F],W[2*F+1])}function f(g,F){var W=0;do W|=1&g,g>>>=1,W<<=1;while(--F>0);return W>>>1}function h(g,F,W){var T,re,Ce=new Array($+1),xe=0;for(T=1;T<=$;T++)Ce[T]=xe=xe+W[T-1]<<1;for(re=0;re<=F;re++){var be=g[2*re+1];be!==0&&(g[2*re]=f(Ce[be]++,be))}}function p(g){var F;for(F=0;F<B;F++)g.dyn_ltree[2*F]=0;for(F=0;F<Y;F++)g.dyn_dtree[2*F]=0;for(F=0;F<Z;F++)g.bl_tree[2*F]=0;g.dyn_ltree[2*N]=1,g.opt_len=g.static_len=0,g.last_lit=g.matches=0}function m(g){g.bi_valid>8?u(g,g.bi_buf):g.bi_valid>0&&(g.pending_buf[g.pending++]=g.bi_buf),g.bi_buf=0,g.bi_valid=0}function w(g,F,W,T){var re=2*F,Ce=2*W;return g[re]<g[Ce]||g[re]===g[Ce]&&T[F]<=T[W]}function E(g,F,W){for(var T=g.heap[W],re=W<<1;re<=g.heap_len&&(re<g.heap_len&&w(F,g.heap[re+1],g.heap[re],g.depth)&&re++,!w(F,T,g.heap[re],g.depth));)g.heap[W]=g.heap[re],W=re,re<<=1;g.heap[W]=T}function v(g,F,W){var T,re,Ce,xe,be=0;if(g.last_lit!==0)do T=g.pending_buf[g.d_buf+2*be]<<8|g.pending_buf[g.d_buf+2*be+1],re=g.pending_buf[g.l_buf+be],be++,T===0?d(g,re,F):(d(g,(Ce=at[re])+V+1,F),(xe=ve[Ce])!==0&&c(g,re-=Pt[Ce],xe),d(g,Ce=l(--T),W),(xe=Le[Ce])!==0&&c(g,T-=wt[Ce],xe));while(be<g.last_lit);d(g,N,F)}function y(g,F){var W,T,re,Ce=F.dyn_tree,xe=F.stat_desc.static_tree,be=F.stat_desc.has_stree,st=F.stat_desc.elems,$e=-1;for(g.heap_len=0,g.heap_max=te,W=0;W<st;W++)Ce[2*W]!==0?(g.heap[++g.heap_len]=$e=W,g.depth[W]=0):Ce[2*W+1]=0;for(;g.heap_len<2;)Ce[2*(re=g.heap[++g.heap_len]=$e<2?++$e:0)]=1,g.depth[re]=0,g.opt_len--,be&&(g.static_len-=xe[2*re+1]);for(F.max_code=$e,W=g.heap_len>>1;W>=1;W--)E(g,Ce,W);re=st;do W=g.heap[1],g.heap[1]=g.heap[g.heap_len--],E(g,Ce,1),T=g.heap[1],g.heap[--g.heap_max]=W,g.heap[--g.heap_max]=T,Ce[2*re]=Ce[2*W]+Ce[2*T],g.depth[re]=(g.depth[W]>=g.depth[T]?g.depth[W]:g.depth[T])+1,Ce[2*W+1]=Ce[2*T+1]=re,g.heap[1]=re++,E(g,Ce,1);while(g.heap_len>=2);g.heap[--g.heap_max]=g.heap[1],function(Rt,dn){var Un,wn,En,Ht,We,ut,Ue=dn.dyn_tree,Et=dn.max_code,Ke=dn.stat_desc.static_tree,Ct=dn.stat_desc.has_stree,Zt=dn.stat_desc.extra_bits,Dt=dn.stat_desc.extra_base,Nt=dn.stat_desc.max_length,vn=0;for(Ht=0;Ht<=$;Ht++)Rt.bl_count[Ht]=0;for(Ue[2*Rt.heap[Rt.heap_max]+1]=0,Un=Rt.heap_max+1;Un<te;Un++)(Ht=Ue[2*Ue[2*(wn=Rt.heap[Un])+1]+1]+1)>Nt&&(Ht=Nt,vn++),Ue[2*wn+1]=Ht,wn>Et||(Rt.bl_count[Ht]++,We=0,wn>=Dt&&(We=Zt[wn-Dt]),ut=Ue[2*wn],Rt.opt_len+=ut*(Ht+We),Ct&&(Rt.static_len+=ut*(Ke[2*wn+1]+We)));if(vn!==0){do{for(Ht=Nt-1;Rt.bl_count[Ht]===0;)Ht--;Rt.bl_count[Ht]--,Rt.bl_count[Ht+1]+=2,Rt.bl_count[Nt]--,vn-=2}while(vn>0);for(Ht=Nt;Ht!==0;Ht--)for(wn=Rt.bl_count[Ht];wn!==0;)(En=Rt.heap[--Un])>Et||(Ue[2*En+1]!==Ht&&(Rt.opt_len+=(Ht-Ue[2*En+1])*Ue[2*En],Ue[2*En+1]=Ht),wn--)}}(g,F),h(Ce,$e,g.bl_count)}function b(g,F,W){var T,re,Ce=-1,xe=F[1],be=0,st=7,$e=4;for(xe===0&&(st=138,$e=3),F[2*(W+1)+1]=65535,T=0;T<=W;T++)re=xe,xe=F[2*(T+1)+1],++be<st&&re===xe||(be<$e?g.bl_tree[2*re]+=be:re!==0?(re!==Ce&&g.bl_tree[2*re]++,g.bl_tree[2*le]++):be<=10?g.bl_tree[2*K]++:g.bl_tree[2*ae]++,be=0,Ce=re,xe===0?(st=138,$e=3):re===xe?(st=6,$e=3):(st=7,$e=4))}function S(g,F,W){var T,re,Ce=-1,xe=F[1],be=0,st=7,$e=4;for(xe===0&&(st=138,$e=3),T=0;T<=W;T++)if(re=xe,xe=F[2*(T+1)+1],!(++be<st&&re===xe)){if(be<$e)do d(g,re,g.bl_tree);while(--be!=0);else re!==0?(re!==Ce&&(d(g,re,g.bl_tree),be--),d(g,le,g.bl_tree),c(g,be-3,2)):be<=10?(d(g,K,g.bl_tree),c(g,be-3,3)):(d(g,ae,g.bl_tree),c(g,be-11,7));be=0,Ce=re,xe===0?(st=138,$e=3):re===xe?(st=6,$e=3):(st=7,$e=4)}}function I(g,F,W,T){c(g,(P<<1)+(T?1:0),3),function(re,Ce,xe,be){m(re),u(re,xe),u(re,~xe),C.arraySet(re.pending_buf,re.window,Ce,xe,re.pending),re.pending+=xe}(g,F,W)}var C=t("../utils/common"),k=0,M=1,P=0,D=29,V=256,B=V+1+D,Y=30,Z=19,te=2*B+1,$=15,H=16,A=7,N=256,le=16,K=17,ae=18,ve=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Le=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Oe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ne=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Re=new Array(2*(B+2));r(Re);var He=new Array(2*Y);r(He);var De=new Array(512);r(De);var at=new Array(256);r(at);var Pt=new Array(D);r(Pt);var wt=new Array(Y);r(wt);var Tt,en,Ut,Me=!1;s._tr_init=function(g){Me||(function(){var F,W,T,re,Ce,xe=new Array($+1);for(T=0,re=0;re<D-1;re++)for(Pt[re]=T,F=0;F<1<<ve[re];F++)at[T++]=re;for(at[T-1]=re,Ce=0,re=0;re<16;re++)for(wt[re]=Ce,F=0;F<1<<Le[re];F++)De[Ce++]=re;for(Ce>>=7;re<Y;re++)for(wt[re]=Ce<<7,F=0;F<1<<Le[re]-7;F++)De[256+Ce++]=re;for(W=0;W<=$;W++)xe[W]=0;for(F=0;F<=143;)Re[2*F+1]=8,F++,xe[8]++;for(;F<=255;)Re[2*F+1]=9,F++,xe[9]++;for(;F<=279;)Re[2*F+1]=7,F++,xe[7]++;for(;F<=287;)Re[2*F+1]=8,F++,xe[8]++;for(h(Re,B+1,xe),F=0;F<Y;F++)He[2*F+1]=5,He[2*F]=f(F,5);Tt=new i(Re,ve,V+1,B,$),en=new i(He,Le,0,Y,$),Ut=new i(new Array(0),Oe,0,Z,A)}(),Me=!0),g.l_desc=new o(g.dyn_ltree,Tt),g.d_desc=new o(g.dyn_dtree,en),g.bl_desc=new o(g.bl_tree,Ut),g.bi_buf=0,g.bi_valid=0,p(g)},s._tr_stored_block=I,s._tr_flush_block=function(g,F,W,T){var re,Ce,xe=0;g.level>0?(g.strm.data_type===2&&(g.strm.data_type=function(be){var st,$e=4093624447;for(st=0;st<=31;st++,$e>>>=1)if(1&$e&&be.dyn_ltree[2*st]!==0)return k;if(be.dyn_ltree[18]!==0||be.dyn_ltree[20]!==0||be.dyn_ltree[26]!==0)return M;for(st=32;st<V;st++)if(be.dyn_ltree[2*st]!==0)return M;return k}(g)),y(g,g.l_desc),y(g,g.d_desc),xe=function(be){var st;for(b(be,be.dyn_ltree,be.l_desc.max_code),b(be,be.dyn_dtree,be.d_desc.max_code),y(be,be.bl_desc),st=Z-1;st>=3&&be.bl_tree[2*Ne[st]+1]===0;st--);return be.opt_len+=3*(st+1)+5+5+4,st}(g),re=g.opt_len+3+7>>>3,(Ce=g.static_len+3+7>>>3)<=re&&(re=Ce)):re=Ce=W+5,W+4<=re&&F!==-1?I(g,F,W,T):g.strategy===4||Ce===re?(c(g,2+(T?1:0),3),v(g,Re,He)):(c(g,4+(T?1:0),3),function(be,st,$e,Rt){var dn;for(c(be,st-257,5),c(be,$e-1,5),c(be,Rt-4,4),dn=0;dn<Rt;dn++)c(be,be.bl_tree[2*Ne[dn]+1],3);S(be,be.dyn_ltree,st-1),S(be,be.dyn_dtree,$e-1)}(g,g.l_desc.max_code+1,g.d_desc.max_code+1,xe+1),v(g,g.dyn_ltree,g.dyn_dtree)),p(g),T&&m(g)},s._tr_tally=function(g,F,W){return g.pending_buf[g.d_buf+2*g.last_lit]=F>>>8&255,g.pending_buf[g.d_buf+2*g.last_lit+1]=255&F,g.pending_buf[g.l_buf+g.last_lit]=255&W,g.last_lit++,F===0?g.dyn_ltree[2*W]++:(g.matches++,F--,g.dyn_ltree[2*(at[W]+V+1)]++,g.dyn_dtree[2*l(F)]++),g.last_lit===g.lit_bufsize-1},s._tr_align=function(g){c(g,2,3),d(g,N,Re),function(F){F.bi_valid===16?(u(F,F.bi_buf),F.bi_buf=0,F.bi_valid=0):F.bi_valid>=8&&(F.pending_buf[F.pending++]=255&F.bi_buf,F.bi_buf>>=8,F.bi_valid-=8)}(g)}},{"../utils/common":1}],8:[function(t,a,s){a.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],"/lib/deflate.js":[function(t,a,s){function r(E){if(!(this instanceof r))return new r(E);this.options=l.assign({level:p,method:w,chunkSize:16384,windowBits:15,memLevel:8,strategy:m,to:""},E||{});var v=this.options;v.raw&&v.windowBits>0?v.windowBits=-v.windowBits:v.gzip&&v.windowBits>0&&v.windowBits<16&&(v.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var y=o.deflateInit2(this.strm,v.level,v.method,v.windowBits,v.memLevel,v.strategy);if(y!==h)throw new Error(c[y]);if(v.header&&o.deflateSetHeader(this.strm,v.header),v.dictionary){var b;if(b=typeof v.dictionary=="string"?u.string2buf(v.dictionary):f.call(v.dictionary)==="[object ArrayBuffer]"?new Uint8Array(v.dictionary):v.dictionary,(y=o.deflateSetDictionary(this.strm,b))!==h)throw new Error(c[y]);this._dict_set=!0}}function i(E,v){var y=new r(v);if(y.push(E,!0),y.err)throw y.msg||c[y.err];return y.result}var o=t("./zlib/deflate"),l=t("./utils/common"),u=t("./utils/strings"),c=t("./zlib/messages"),d=t("./zlib/zstream"),f=Object.prototype.toString,h=0,p=-1,m=0,w=8;r.prototype.push=function(E,v){var y,b,S=this.strm,I=this.options.chunkSize;if(this.ended)return!1;b=v===~~v?v:v===!0?4:0,typeof E=="string"?S.input=u.string2buf(E):f.call(E)==="[object ArrayBuffer]"?S.input=new Uint8Array(E):S.input=E,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new l.Buf8(I),S.next_out=0,S.avail_out=I),(y=o.deflate(S,b))!==1&&y!==h)return this.onEnd(y),this.ended=!0,!1;S.avail_out!==0&&(S.avail_in!==0||b!==4&&b!==2)||(this.options.to==="string"?this.onData(u.buf2binstring(l.shrinkBuf(S.output,S.next_out))):this.onData(l.shrinkBuf(S.output,S.next_out)))}while((S.avail_in>0||S.avail_out===0)&&y!==1);return b===4?(y=o.deflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===h):b!==2||(this.onEnd(h),S.avail_out=0,!0)},r.prototype.onData=function(E){this.chunks.push(E)},r.prototype.onEnd=function(E){E===h&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=l.flattenChunks(this.chunks)),this.chunks=[],this.err=E,this.msg=this.strm.msg},s.Deflate=r,s.deflate=i,s.deflateRaw=function(E,v){return(v=v||{}).raw=!0,i(E,v)},s.gzip=function(E,v){return(v=v||{}).gzip=!0,i(E,v)}},{"./utils/common":1,"./utils/strings":2,"./zlib/deflate":5,"./zlib/messages":6,"./zlib/zstream":8}]},{},[])("/lib/deflate.js");var dt=function(t,a,s,r){return new(s||(s=Promise))(function(i,o){function l(d){try{c(r.next(d))}catch(f){o(f)}}function u(d){try{c(r.throw(d))}catch(f){o(f)}}function c(d){var f;d.done?i(d.value):(f=d.value,f instanceof s?f:new s(function(h){h(f)})).then(l,u)}c((r=r.apply(t,a||[])).next())})},ft=function(t,a){var s,r,i,o,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(c){return function(d){return function(f){if(s)throw new TypeError("Generator is already executing.");for(;l;)try{if(s=1,r&&(i=2&f[0]?r.return:f[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,f[1])).done)return i;switch(r=0,i&&(f=[2&f[0],i.value]),f[0]){case 0:case 1:i=f;break;case 4:return l.label++,{value:f[1],done:!1};case 5:l.label++,r=f[1],f=[0];continue;case 7:f=l.ops.pop(),l.trys.pop();continue;default:if(!(i=(i=l.trys).length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){l=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){l.label=f[1];break}if(f[0]===6&&l.label<i[1]){l.label=i[1],i=f;break}if(i&&l.label<i[2]){l.label=i[2],l.ops.push(f);break}i[2]&&l.ops.pop(),l.trys.pop();continue}f=a.call(t,l)}catch(h){f=[6,h],r=0}finally{s=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([c,d])}}},Zn=function(){return(Zn=Object.assign||function(t){for(var a,s=1,r=arguments.length;s<r;s++)for(var i in a=arguments[s])Object.prototype.hasOwnProperty.call(a,i)&&(t[i]=a[i]);return t}).apply(this,arguments)};(function(t){(function(a){var s=function(){function r(){this._isIphoneOrIPad=!1,(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPod/i))&&(this._isIphoneOrIPad=!0),this.initUAParser()}return Object.defineProperty(r.prototype,"userAgentData",{get:function(){return this._userAgentData},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"deviceType",{get:function(){return this._deviceType||(a.Util.isMobile?this._deviceType=this.mobileType||this.desktopType||r.UNKNOWN_DEVICE_TYPE:this._deviceType=this.desktopType||this.mobileType||r.UNKNOWN_DEVICE_TYPE),this._deviceType},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isIphoneOrIPad",{get:function(){return this._isIphoneOrIPad},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"browserName",{get:function(){return this._userAgentData&&this._userAgentData.browser&&this._userAgentData.browser.name?this._userAgentData.browser.name.trim():""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"browserVersion",{get:function(){return this._userAgentData&&this._userAgentData.browser&&this._userAgentData.browser.version?this._userAgentData.browser.version.trim():""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"browserMajor",{get:function(){return this._userAgentData&&this._userAgentData.browser&&this._userAgentData.browser.major?this._userAgentData.browser.major.trim():""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"browserType",{get:function(){return this._userAgentData&&this._userAgentData.browser&&this._userAgentData.browser.type?this._userAgentData.browser.type.trim():""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"osName",{get:function(){return this._userAgentData&&this._userAgentData.os&&this._userAgentData.os.name?this._userAgentData.os.name.trim():""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"osVersion",{get:function(){return this._userAgentData&&this._userAgentData.os&&this._userAgentData.os.version?this._userAgentData.os.version.trim():""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"deviceCategory",{get:function(){return this._userAgentData&&this._userAgentData.device&&this._userAgentData.device.type?this._userAgentData.device.type.trim():""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"engineName",{get:function(){return this._userAgentData&&this._userAgentData.engine&&this._userAgentData.engine.name?this._userAgentData.engine.name.trim():""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"engineVersion",{get:function(){return this._userAgentData&&this._userAgentData.engine&&this._userAgentData.engine.version?this._userAgentData.engine.version.trim():""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"cpuArchitecture",{get:function(){return this._userAgentData&&this._userAgentData.cpu&&this._userAgentData.cpu.architecture?this._userAgentData.cpu.architecture.trim():""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"deviceModel",{get:function(){return this._userAgentData&&this._userAgentData.device&&this._userAgentData.device.model?this._userAgentData.device.model.trim():""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"deviceVendor",{get:function(){return this._userAgentData&&this._userAgentData.device&&this._userAgentData.device.vendor?this._userAgentData.device.vendor.trim():""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"desktopType",{get:function(){var i=this.browserName;this.browserVersion&&(i=i+"("+this.browserVersion+")");var o=this.osName;this.osVersion&&(o=o+"("+this.osVersion+")");var l=i&&o?i+"-"+o:i||o;return l?l.trim():""},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"mobileType",{get:function(){var i=this.deviceModel,o=this.deviceVendor,l=i&&o?i+" "+o:i||o;return l?l.trim():""},enumerable:!1,configurable:!0}),r.prototype.initUAParser=function(){try{var i=new t.UAParser;i.setUA(navigator.userAgent),this._userAgentData=i.getResult()}catch(o){a.Logger.warn("UAParser failure",o)}},r.UNKNOWN_DEVICE_TYPE="unknown",r}();a.BrowserInfo=s})(t._POSignalsUtils||(t._POSignalsUtils={}))})(me||(me={})),function(t){(function(a){var s=function(){function r(){}return Object.defineProperty(r,"CLIENT_VERSION",{get:function(){return"5.6.4w"},enumerable:!1,configurable:!0}),Object.defineProperty(r,"SALT",{get:function(){return"ST8irbd3bB"},enumerable:!1,configurable:!0}),Object.defineProperty(r,"TAB_UUID_KEY",{get:function(){return"pos_tid"},enumerable:!1,configurable:!0}),Object.defineProperty(r,"OPS_KEY",{get:function(){return"pos_ops"},enumerable:!1,configurable:!0}),Object.defineProperty(r,"DEVICE_ID_KEY",{get:function(){return"SecuredTouchDeviceId"},enumerable:!1,configurable:!0}),Object.defineProperty(r,"DEVICE_ID_CREATED_AT",{get:function(){return"pos_dca"},enumerable:!1,configurable:!0}),Object.defineProperty(r,"LAST_DEVICE_KEY_RESYNC",{get:function(){return"DeviceRefreshDate"},enumerable:!1,configurable:!0}),Object.defineProperty(r,"CAPTURED_KEYBOARD_INTERACTIONS",{get:function(){return"pos_cki"},enumerable:!1,configurable:!0}),Object.defineProperty(r,"CAPTURED_MOUSE_INTERACTIONS",{get:function(){return"pos_cmi"},enumerable:!1,configurable:!0}),Object.defineProperty(r,"CAPTURED_GESTURES",{get:function(){return"pos_cg"},enumerable:!1,configurable:!0}),Object.defineProperty(r,"CAPTURED_INDIRECT",{get:function(){return"pos_cie"},enumerable:!1,configurable:!0}),Object.defineProperty(r,"CAPTURED_TAGS",{get:function(){return"pos_ct"},enumerable:!1,configurable:!0}),Object.defineProperty(r,"CAPTURED_MOUSE_INTERACTIONS_SUMMARY",{get:function(){return"pos_mdp"},enumerable:!1,configurable:!0}),Object.defineProperty(r,"KEYBOARD_INTERACTIONS_COUNT",{get:function(){return"pos_kic"},enumerable:!1,configurable:!0}),Object.defineProperty(r,"MOUSE_INTERACTIONS_COUNT",{get:function(){return"pos_mic"},enumerable:!1,configurable:!0}),Object.defineProperty(r,"GESTURES_COUNT",{get:function(){return"pos_gc"},enumerable:!1,configurable:!0}),Object.defineProperty(r,"EVENT_COUNTERS",{get:function(){return"pos_ec"},enumerable:!1,configurable:!0}),Object.defineProperty(r,"PINGID_AGENT_DEFAULT_PORT",{get:function(){return 9400},enumerable:!1,configurable:!0}),Object.defineProperty(r,"PINGID_AGENT_DEFAULT_TIMEOUT",{get:function(){return 1e3},enumerable:!1,configurable:!0}),Object.defineProperty(r,"MOUSE_EVENT_COUNTERS",{get:function(){return"pos_mec"},enumerable:!1,configurable:!0}),Object.defineProperty(r,"KEYBOARD_EVENT_COUNTERS",{get:function(){return"pos_kec"},enumerable:!1,configurable:!0}),Object.defineProperty(r,"TOUCH_EVENT_COUNTERS",{get:function(){return"pos_tec"},enumerable:!1,configurable:!0}),Object.defineProperty(r,"INDIRECT_EVENT_COUNTERS",{get:function(){return"pos_iec"},enumerable:!1,configurable:!0}),Object.defineProperty(r,"GeoDataKey",{get:function(){return"pos_geo"},enumerable:!1,configurable:!0}),r}();a.Constants=s})(t._POSignalsUtils||(t._POSignalsUtils={}))}(me||(me={})),function(t){(function(a){var s=function(){function r(i,o,l){if(i===void 0&&(i="ECDSA"),o===void 0&&(o=["sign","verify"]),l===void 0&&(l="SHA-256"),this.signingKeyType=i,this.keyUsage=o,this.algorithm=l,this._crypto=window.crypto||window.msCrypto,!this._crypto||!this._crypto.subtle)throw new Error("Cryptography API not supported in this browser")}return r.prototype.generateKeys=function(){return dt(this,void 0,void 0,function(){return ft(this,function(i){return[2,this._crypto.subtle.generateKey({name:this.signingKeyType,namedCurve:"P-256"},!1,this.keyUsage)]})})},r.prototype.exportPublicKey=function(i){return dt(this,void 0,void 0,function(){var o,l,u,c;return ft(this,function(d){switch(d.label){case 0:return[4,this._crypto.subtle.exportKey("spki",i.publicKey)];case 1:return o=d.sent(),l=a.Util.ab2str(o),u=btoa(l),c=`-----BEGIN PUBLIC KEY-----
|
|
12
|
+
`+u+`
|
|
13
|
+
-----END PUBLIC KEY-----`,a.Logger.debug("Exported base64 pub key: ",c),[2,c]}})})},r.prototype.exportPublicKeyJwk=function(i){return dt(this,void 0,void 0,function(){return ft(this,function(o){switch(o.label){case 0:return[4,window.crypto.subtle.exportKey("jwk",i.publicKey)];case 1:return[2,o.sent()]}})})},r.prototype.exportPrivateKey=function(i){return dt(this,void 0,void 0,function(){var o,l,u,c;return ft(this,function(d){switch(d.label){case 0:return[4,this._crypto.subtle.exportKey("pkcs8",i.privateKey)];case 1:return o=d.sent(),l=a.Util.ab2str(o),u=btoa(l),c=`-----BEGIN PRIVATE KEY-----
|
|
14
|
+
`+u+`
|
|
15
|
+
-----END PRIVATE KEY-----`,a.Logger.debug("Exported base64 pem:",c),[2,c]}})})},r.prototype.signJWT=function(i,o,l,u,c){return dt(this,void 0,void 0,function(){var d,f,h,p,m,w,E,v,y;return ft(this,function(b){switch(b.label){case 0:return[4,this.exportPublicKeyJwk(o)];case 1:if(d=b.sent(),f={alg:"ES256",typ:"JWT",jwk:d,kid:c},h={deviceAttributesSerialized:i,iat:Math.floor(u/1e3)},!o.privateKey)throw new Error("Require key");if(f.alg!=="ES256"&&f.typ!=="JWT")throw new Error("jwt-encode only support the ES256 algorithm and the JWT type of hash");return p=a.Util.encode(f),m=a.Util.encode(h),w=p+"."+m,E=a.Util.string2buf(w),[4,this._crypto.subtle.sign({name:this.signingKeyType,hash:this.algorithm},o.privateKey,E)];case 2:return v=b.sent(),y=a.Util.base64url(btoa(a.Util.ab2str(v))),a.Logger.debug("Signed JWT: ",w+"."+y),[2,w+"."+y]}})})},r.prototype.verifyJwtToken=function(i,o){return dt(this,void 0,void 0,function(){var l,u,c,d,f,h,p;return ft(this,function(m){switch(m.label){case 0:if(l=i.split("."),u=l[0],c=l[1],d=l[2],(f=a.Util.parseJwt(u)).alg!=="ES256"&&f.typ!=="JWT")throw new Error("JWT header supports only ES256 algorithm and the JWT type of hash");return a.Util.parseJwt(c),h=Uint8Array.from(atob(d.replace(/-/g,"+").replace(/_/g,"/")),function(w){return w.charCodeAt(0)}),p=a.Util.string2buf(u+"."+c),[4,this._crypto.subtle.verify({name:this.signingKeyType,hash:this.algorithm},o,h,p)];case 1:return[2,m.sent()]}})})},r}();a.CryptoOperator=s})(t._POSignalsUtils||(t._POSignalsUtils={}))}(me||(me={})),function(t){(function(a){var s=function(){function r(){}return Object.defineProperty(r,"isLogEnabled",{get:function(){return this._isLogEnabled||window["enable-logs-pingOneSignals"]},set:function(i){this._isLogEnabled=i},enumerable:!1,configurable:!0}),r.debug=function(i){for(var o=[],l=1;l<arguments.length;l++)o[l-1]=arguments[l];i=r.TAG+" "+i,r.isLogEnabled&&(o&&o.length>0?console.debug?console.debug(i,o):console.log(i,o):console.debug?console.debug(i):console.log(i))},r.error=function(i){for(var o=[],l=1;l<arguments.length;l++)o[l-1]=arguments[l];i=r.TAG+" "+i,r.isLogEnabled&&(o&&o.length>0?console.error(i,o):console.error(i))},r.warn=function(i){for(var o=[],l=1;l<arguments.length;l++)o[l-1]=arguments[l];i=r.TAG+" "+i,r.isLogEnabled&&(o&&o.length>0?console.warn(i,o):console.warn(i))},r.info=function(i){for(var o=[],l=1;l<arguments.length;l++)o[l-1]=arguments[l];i=r.TAG+" "+i,r.isLogEnabled&&(o&&o.length>0?console.info(i,o):console.info(i))},r.TAG="[SignalsSDK]",r}();a.Logger=s})(t._POSignalsUtils||(t._POSignalsUtils={}))}(me||(me={})),function(t){(function(a){var s=function(){function r(){}return Object.defineProperty(r,"INITIALIZATION_ERROR",{get:function(){return"INITIALIZATION_ERROR"},enumerable:!1,configurable:!0}),Object.defineProperty(r,"UNEXPECTED_ERROR",{get:function(){return"UNEXPECTED_ERROR"},enumerable:!1,configurable:!0}),r}();a.POErrorCodes=s})(t._POSignalsUtils||(t._POSignalsUtils={}))}(me||(me={}));var X0={115:"115",2345:"2345",360:"360",ALIPAY:"Alipay",AMAYA:"Amaya",ANDROID:"Android Browser",ARORA:"Arora",AVANT:"Avant",AVAST:"Avast Secure Browser",AVG:"AVG Secure Browser",BAIDU:"Baidu Browser",BASILISK:"Basilisk",BLAZER:"Blazer",BOLT:"Bolt",BOWSER:"Bowser",BRAVE:"Brave",CAMINO:"Camino",CHIMERA:"Chimera",CHROME:"Chrome",CHROME_HEADLESS:"Chrome Headless",CHROME_MOBILE:"Mobile Chrome",CHROME_WEBVIEW:"Chrome WebView",CHROMIUM:"Chromium",COBALT:"Cobalt",COC_COC:"Coc Coc",CONKEROR:"Conkeror",DAUM:"Daum",DILLO:"Dillo",DOLPHIN:"Dolphin",DORIS:"Doris",DRAGON:"Dragon",DUCKDUCKGO:"DuckDuckGo",EDGE:"Edge",EPIPHANY:"Epiphany",FACEBOOK:"Facebook",FALKON:"Falkon",FIREBIRD:"Firebird",FIREFOX:"Firefox",FIREFOX_FOCUS:"Firefox Focus",FIREFOX_MOBILE:"Mobile Firefox",FIREFOX_REALITY:"Firefox Reality",FENNEC:"Fennec",FLOCK:"Flock",FLOW:"Flow",GO:"GoBrowser",GOOGLE_SEARCH:"GSA",HELIO:"Helio",HEYTAP:"HeyTap",HONOR:"Honor",HUAWEI:"Huawei Browser",ICAB:"iCab",ICE:"ICE Browser",ICEAPE:"IceApe",ICECAT:"IceCat",ICEDRAGON:"IceDragon",ICEWEASEL:"IceWeasel",IE:"IE",INSTAGRAM:"Instagram",IRIDIUM:"Iridium",IRON:"Iron",JASMINE:"Jasmine",KONQUEROR:"Konqueror",KAKAO:"KakaoTalk",KHTML:"KHTML",K_MELEON:"K-Meleon",KLAR:"Klar",KLARNA:"Klarna",KINDLE:"Kindle",LENOVO:"Smart Lenovo Browser",LADYBIRD:"Ladybird",LIBREWOLF:"LibreWolf",LIEBAO:"LBBROWSER",LINE:"Line",LINKEDIN:"LinkedIn",LINKS:"Links",LUNASCAPE:"Lunascape",LYNX:"Lynx",MAEMO:"Maemo Browser",MAXTHON:"Maxthon",MIDORI:"Midori",MINIMO:"Minimo",MIUI:"MIUI Browser",MOZILLA:"Mozilla",MOSAIC:"Mosaic",NAVER:"Naver",NETFRONT:"NetFront",NETSCAPE:"Netscape",NETSURF:"Netsurf",NOKIA:"Nokia Browser",OBIGO:"Obigo",OCULUS:"Oculus Browser",OMNIWEB:"OmniWeb",OPERA:"Opera",OPERA_COAST:"Opera Coast",OPERA_GX:"Opera GX",OPERA_MINI:"Opera Mini",OPERA_MOBI:"Opera Mobi",OPERA_TABLET:"Opera Tablet",OPERA_TOUCH:"Opera Touch",OVI:"OviBrowser",PALEMOON:"PaleMoon",PHANTOMJS:"PhantomJS",PHOENIX:"Phoenix",PICOBROWSER:"Pico Browser",POLARIS:"Polaris",PUFFIN:"Puffin",QQ:"QQBrowser",QQ_LITE:"QQBrowserLite",QUARK:"Quark",QUPZILLA:"QupZilla",REKONQ:"rekonq",ROCKMELT:"Rockmelt",SAFARI:"Safari",SAFARI_MOBILE:"Mobile Safari",SAILFISH:"Sailfish Browser",SAMSUNG:"Samsung Internet",SEAMONKEY:"SeaMonkey",SILK:"Silk",SKYFIRE:"Skyfire",SLEIPNIR:"Sleipnir",SLIMBOAT:"SlimBoat",SLIMBROWSER:"SlimBrowser",SLIMJET:"Slimjet",SNAPCHAT:"Snapchat",SOGOU_EXPLORER:"Sogou Explorer",SOGOU_MOBILE:"Sogou Mobile",SWIFTFOX:"Swiftfox",TESLA:"Tesla",TIKTOK:"TikTok",TIZEN:"Tizen Browser",TWITTER:"Twitter",UC:"UCBrowser",UP:"UP.Browser",VIVALDI:"Vivaldi",VIVO:"Vivo Browser",W3M:"w3m",WATERFOX:"Waterfox",WEBKIT:"WebKit",WECHAT:"WeChat",WEIBO:"Weibo",WHALE:"Whale",WOLVIC:"Wolvic",YANDEX:"Yandex"},$0={CRAWLER:"crawler",CLI:"cli",EMAIL:"email",FETCHER:"fetcher",INAPP:"inapp",MEDIAPLAYER:"mediaplayer",LIBRARY:"library"},Q0={"68K":"68k",ARM:"arm",ARM_64:"arm64",ARM_HF:"armhf",AVR:"avr",AVR_32:"avr32",IA64:"ia64",IRIX:"irix",IRIX_64:"irix64",MIPS:"mips",MIPS_64:"mips64",PA_RISC:"pa-risc",PPC:"ppc",SPARC:"sparc",SPARC_64:"sparc64",X86:"ia32",X86_64:"amd64"},eb={CONSOLE:"console",DESKTOP:"desktop",EMBEDDED:"embedded",MOBILE:"mobile",SMARTTV:"smarttv",TABLET:"tablet",WEARABLE:"wearable",XR:"xr"},tb={ACER:"Acer",ADVAN:"Advan",ALCATEL:"Alcatel",APPLE:"Apple",AMAZON:"Amazon",ARCHOS:"Archos",ASUS:"ASUS",ATT:"AT&T",BENQ:"BenQ",BLACKBERRY:"BlackBerry",CAT:"Cat",DELL:"Dell",ENERGIZER:"Energizer",ESSENTIAL:"Essential",FACEBOOK:"Facebook",FAIRPHONE:"Fairphone",GEEKSPHONE:"GeeksPhone",GENERIC:"Generic",GOOGLE:"Google",HMD:"HMD",HP:"HP",HTC:"HTC",HUAWEI:"Huawei",IMO:"IMO",INFINIX:"Infinix",ITEL:"itel",JOLLA:"Jolla",KOBO:"Kobo",LENOVO:"Lenovo",LG:"LG",MEIZU:"Meizu",MICROMAX:"Micromax",MICROSOFT:"Microsoft",MOTOROLA:"Motorola",NEXIAN:"Nexian",NINTENDO:"Nintendo",NOKIA:"Nokia",NOTHING:"Nothing",NVIDIA:"Nvidia",ONEPLUS:"OnePlus",OPPO:"OPPO",OUYA:"Ouya",PALM:"Palm",PANASONIC:"Panasonic",PEBBLE:"Pebble",PICO:"Pico",POLYTRON:"Polytron",REALME:"Realme",RIM:"RIM",ROKU:"Roku",SAMSUNG:"Samsung",SHARP:"Sharp",SIEMENS:"Siemens",SMARTFREN:"Smartfren",SONY:"Sony",SPRINT:"Sprint",TCL:"TCL",TECHNISAT:"TechniSAT",TECNO:"Tecno",TESLA:"Tesla",ULEFONE:"Ulefone",VIVO:"Vivo",VODAFONE:"Vodafone",XBOX:"Xbox",XIAOMI:"Xiaomi",ZEBRA:"Zebra",ZTE:"ZTE"},Kh={AMAYA:"Amaya",ARKWEB:"ArkWeb",BLINK:"Blink",EDGEHTML:"EdgeHTML",FLOW:"Flow",GECKO:"Gecko",GOANNA:"Goanna",ICAB:"iCab",KHTML:"KHTML",LIBWEB:"LibWeb",LINKS:"Links",LYNX:"Lynx",NETFRONT:"NetFront",NETSURF:"NetSurf",PRESTO:"Presto",SERVO:"Servo",TASMAN:"Tasman",TRIDENT:"Trident",W3M:"w3m",WEBKIT:"WebKit"},nb={AIX:"AIX",AMIGA_OS:"Amiga OS",ANDROID:"Android",ANDROID_X86:"Android-x86",ARCH:"Arch",BADA:"Bada",BEOS:"BeOS",BLACKBERRY:"BlackBerry",CENTOS:"CentOS",CHROME_OS:"Chrome OS",CHROMECAST:"Chromecast",CHROMECAST_ANDROID:"Chromecast Android",CHROMECAST_FUCHSIA:"Chromecast Fuchsia",CHROMECAST_LINUX:"Chromecast Linux",CHROMECAST_SMARTSPEAKER:"Chromecast SmartSpeaker",CONTIKI:"Contiki",DEBIAN:"Debian",DEEPIN:"Deepin",DRAGONFLY:"DragonFly",ELEMENTARY_OS:"elementary OS",FEDORA:"Fedora",FIREFOX_OS:"Firefox OS",FREEBSD:"FreeBSD",FUCHSIA:"Fuchsia",GENTOO:"Gentoo",GHOSTBSD:"GhostBSD",GNU:"GNU",HAIKU:"Haiku",HARMONYOS:"HarmonyOS",HP_UX:"HP-UX",HURD:"Hurd",IOS:"iOS",JOLI:"Joli",KAIOS:"KaiOS",KUBUNTU:"Kubuntu",LINPUS:"Linpus",LINSPIRE:"Linspire",LINUX:"Linux",MACOS:"macOS",MAEMO:"Maemo",MAGEIA:"Mageia",MANDRIVA:"Mandriva",MANJARO:"Manjaro",MEEGO:"MeeGo",MINIX:"Minix",MINT:"Mint",MORPH_OS:"Morph OS",NETBSD:"NetBSD",NETRANGE:"NetRange",NETTV:"NetTV",NINTENDO:"Nintendo",OPENHARMONY:"OpenHarmony",OPENBSD:"OpenBSD",OPENVMS:"OpenVMS",OS2:"OS/2",PALM:"Palm",PC_BSD:"PC-BSD",PCLINUXOS:"PCLinuxOS",PICO:"Pico",PLAN9:"Plan9",PLAYSTATION:"PlayStation",QNX:"QNX",RASPBIAN:"Raspbian",REDHAT:"RedHat",RIM_TABLET_OS:"RIM Tablet OS",RISC_OS:"RISC OS",SABAYON:"Sabayon",SAILFISH:"Sailfish",SERENITYOS:"SerenityOS",SERIES40:"Series40",SLACKWARE:"Slackware",SOLARIS:"Solaris",SUSE:"SUSE",SYMBIAN:"Symbian",TIZEN:"Tizen",UBUNTU:"Ubuntu",UBUNTU_TOUCH:"Ubuntu Touch",UNIX:"Unix",VECTORLINUX:"VectorLinux",WATCHOS:"watchOS",WEBOS:"WebOS",WINDOWS:"Windows",WINDOWS_IOT:"Windows IoT",WINDOWS_MOBILE:"Windows Mobile",WINDOWS_PHONE:"Windows Phone",XBOX:"Xbox",ZENWALK:"Zenwalk"};(function(t){(function(a){var s=function(){function r(){}return Object.defineProperty(r,"Browser",{get:function(){return X0},enumerable:!1,configurable:!0}),Object.defineProperty(r,"BrowserType",{get:function(){return $0},enumerable:!1,configurable:!0}),Object.defineProperty(r,"CPU",{get:function(){return Q0},enumerable:!1,configurable:!0}),Object.defineProperty(r,"Device",{get:function(){return eb},enumerable:!1,configurable:!0}),Object.defineProperty(r,"Vendor",{get:function(){return tb},enumerable:!1,configurable:!0}),Object.defineProperty(r,"Engine",{get:function(){return Kh},enumerable:!1,configurable:!0}),Object.defineProperty(r,"UAParserEnumOS",{get:function(){return nb},enumerable:!1,configurable:!0}),r}();a.UAParserEnums=s})(t._POSignalsUtils||(t._POSignalsUtils={}))})(me||(me={})),function(t){(function(a){var s=function(){function r(){}return Object.defineProperty(r,"isMobile",{get:function(){var i,o=!1;return i=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(i)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(i.substr(0,4)))&&(o=!0),o},enumerable:!1,configurable:!0}),r.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(i){var o=16*Math.random()|0;return(i==="x"?o:3&o|8).toString(16)})},r.ieFix=function(){(navigator.userAgent.indexOf("MSIE")!=-1?/MSIE (\d+\.\d+);/:/Trident.*rv[ :]*(\d+\.\d+)/).test(navigator.userAgent)&&(document.body.setAttribute("style","-ms-touch-action:none;"),document.body.style.touchAction="none",document.body.style.msTouchAction="none")},r.now=function(){var i=window.performance||{};return i.now=i.now||i.webkitNow||i.msNow||i.oNow||i.mozNow||function(){return new Date().getTime()},i.now()},r.base64Uint8Array=function(i){var o,l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=i.length,c="";for(o=0;o<u;o+=3)c+=l[i[o]>>2],c+=l[(3&i[o])<<4|i[o+1]>>4],c+=l[(15&i[o+1])<<2|i[o+2]>>6],c+=l[63&i[o+2]];return u%3==2?c=c.substring(0,c.length-1)+"=":u%3==1&&(c=c.substring(0,c.length-2)+"=="),c},r.string2buf=function(i){if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(i);var o,l,u,c,d,f=i.length,h=0;for(c=0;c<f;c++)(64512&(l=i.charCodeAt(c)))==55296&&c+1<f&&(64512&(u=i.charCodeAt(c+1)))==56320&&(l=65536+(l-55296<<10)+(u-56320),c++),h+=l<128?1:l<2048?2:l<65536?3:4;for(o=new Uint8Array(h),d=0,c=0;d<h;c++)(64512&(l=i.charCodeAt(c)))==55296&&c+1<f&&(64512&(u=i.charCodeAt(c+1)))==56320&&(l=65536+(l-55296<<10)+(u-56320),c++),l<128?o[d++]=l:l<2048?(o[d++]=192|l>>>6,o[d++]=128|63&l):l<65536?(o[d++]=224|l>>>12,o[d++]=128|l>>>6&63,o[d++]=128|63&l):(o[d++]=240|l>>>18,o[d++]=128|l>>>12&63,o[d++]=128|l>>>6&63,o[d++]=128|63&l);return o},r.utf8Encode=function(i){i=i.replace(/\r\n/g,`
|
|
16
|
+
`);for(var o="",l=0;l<i.length;l++){var u=i.charCodeAt(l);u<128?o+=String.fromCharCode(u):u>127&&u<2048?(o+=String.fromCharCode(u>>6|192),o+=String.fromCharCode(63&u|128)):(o+=String.fromCharCode(u>>12|224),o+=String.fromCharCode(u>>6&63|128),o+=String.fromCharCode(63&u|128))}return o},r.hash=function(i){var o=r.hashCache.get(i);return o||(o=t.sha256(i+a.Constants.SALT),r.hashCache.set(i,o)),o},r.hashMini=function(i){var o,l,u=""+JSON.stringify(i),c=2166136261;for(o=0,l=u.length;o<l;o++)c=Math.imul(31,c)+u.charCodeAt(o)|0;return("0000000"+(c>>>0).toString(16)).substr(-8)},r.hashCode=function(i){var o=0,l=i?i.length:0,u=0;if(l>0)for(;u<l;)o=(o<<5)-o+i.charCodeAt(u++)|0;return o},r.mod=function(i,o){return(r.hashCode(i)%o+o)%o},r.isEmail=function(i){try{return i&&/^(([^<>()\[\]\\.,;:\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,}))$/.test(i.toLowerCase())}catch(o){return a.Logger.warn("isEmail function failed to parse string",o),!1}},r.getEmailDomain=function(i){return r.isEmail(i)?i.substring(i.lastIndexOf("@")+1):""},r.extendPrimitiveValues=function(i,o,l){for(var u=r.allKeys(o),c=0;c<u.length;)r.isObject(o[u[c]])||l&&(!l||i[u[c]]!==void 0)||(i[u[c]]=o[u[c]]),c++;return i},r.flatten=function(i){var o={};return r.dive("",i,o),o},r.isFunction=function(i){return i&&typeof i=="function"},r.isPassiveSupported=function(){var i=!1,o=function(){};try{var l={get passive(){return i=!0,!0}};window.addEventListener("test",o,l),window.removeEventListener("test",o,!1)}catch{i=!1}return i},r.getAttribute=function(i,o){try{if(i&&typeof i.getAttribute=="function")return i.getAttribute(o)||""}catch{}return""},r.createInvisibleElement=function(i){try{var o=document.createElement(i);return o.style.display="none",o.style.border="none",o.style.position="absolute",o.style.top="-999px",o.style.left="-999px",o.style.width="0",o.style.height="0",o.style.visibility="hidden",o}catch(l){return a.Logger.warn("Failed to create element",l),null}},r.values=function(i){for(var o=r.allKeys(i),l=o.length,u=Array(l),c=0;c<l;c++)u[c]=i[o[c]];return u},r.getValuesOfMap=function(i){if(this.isFunction(i.values))return Array.from(i.values());var o=[];return i.forEach(function(l){return o.push(l)}),o},r.typesCounter=function(i){for(var o={epochTs:Date.now()},l=0,u=i;l<u.length;l++){var c=u[l];o[c.type]=(o[c.type]||0)+1}return o},r.modifiersKeys=function(i){var o=[];return i.getModifierState&&["Alt","AltGraph","CapsLock","Control","Fn","FnLock","Hyper","Meta","NumLock","OS","ScrollLock","Shift","Super","Symbol","SymbolLock"].forEach(function(l){i.getModifierState(l.toString())&&o.push(l)}),o},r.getElementText=function(i){var o,l;return i instanceof HTMLInputElement?["checkbox","radio"].indexOf(i.type)>=0?""+i.checked:i.value:i instanceof HTMLSelectElement?(l=(o=i.selectedOptions)===null||o===void 0?void 0:o[0])===null||l===void 0?void 0:l.innerText:i.innerText},r.getSrcElement=function(i){return i.srcElement||i.target},r.getObjectType=function(i){try{var o=/function (.{1,})\(/.exec(i.constructor.toString());return o&&o.length>1?o[1]:""}catch{return""}},r.isSelectorMatches=function(i,o,l){try{var u=Element.prototype,c=u.matches||u.webkitMatchesSelector||u.mozMatchesSelector||u.msMatchesSelector,d=0;do{if(c.call(i,o))return i;i=i.parentElement||i.parentNode}while(i!==null&&i.nodeType===1&&d++<l);return null}catch{return null}},r.anySelectorMatches=function(i,o,l){try{for(var u=0,c=o;u<c.length;u++){var d=c[u];if(this.isSelectorMatches(i,d,l))return!0}}catch(f){a.Logger.warn(f)}return!1},r.isArray=function(i){return Array.isArray?Array.isArray(i):Object.prototype.toString.call(i)==="[object Array]"},r.safeJsonParse=function(i){var o=null;try{i&&(o=JSON.parse(i))}catch(l){a.Logger.warn("Failed to parse object "+l),o=null}return o},r.getElementSelectionStart=function(i){var o;try{o=i.selectionStart}catch{o=""}return o},r.getElementSelectionEnd=function(i){var o;try{o=i.selectionEnd}catch{o=""}return o},r.isClickableInput=function(i){return i&&["button","checkbox","color","radio","range","image","submit","file","reset"].indexOf(i.type)>=0},r.isTextInput=function(i){return i&&["date","datetime-local","email","month","number","password","search","tel","text","time","url","week","datetime"].indexOf(i.type)>=0},r.getDeviceOrientation=function(){var i=screen.orientation||screen.mozOrientation||{},o=screen.msOrientation||i.type,l=i.angle;return{orientation:o==null?void 0:o.toString(),angle:l==null?void 0:l.toString()}},r.getDevToolsState=function(){var i,o,l=window.outerWidth-window.innerWidth>160,u=window.outerHeight-window.innerHeight>160,c=l?"vertical":"horizontal";return u&&l||!(!((o=(i=window.Firebug)===null||i===void 0?void 0:i.chrome)===null||o===void 0)&&o.isInitialized||l||u)?{open:!1,orientation:void 0}:{open:!0,orientation:c}},r.getCookie=function(i){var o=document.cookie.match("(^|;) ?"+i+"=([^;]*)(;|$)");return o?o[2]:null},r.setCookie=function(i,o,l){var u=new Date;u.setTime(u.getTime()+1e3*l),document.cookie=i+"="+o+";path=/;secure;SameSite=None;expires="+u.toUTCString()},r.deleteCookie=function(i){r.setCookie(i,"",-1)},r.delay=function(i){return new Promise(function(o){return setTimeout(o,i)})},r.getHostnameFromRegex=function(i){if(i){var o=i.match(/^https?\:\/\/([^\/?#]+)(?:[\/?#]|$)/i);return o&&o[1]}return null},r.inIframe=function(){try{return window.self!==window.top}catch{return!0}},r.promiseTimeout=function(i,o){var l=new Promise(function(u,c){var d=setTimeout(function(){clearTimeout(d),c(new Error("Timed out in "+i+"ms."))},i)});return Promise.race([o,l])},r.getProperty=function(i,o){return o.split(".").reduce(function(l,u){return l?l[u]:null},i)},r.filterReduce=function(i,o){return Object.keys(i).filter(function(l){return o(i[l])}).reduce(function(l,u){var c;return Zn(Zn({},l),((c={})[u]=i[u],c))},{})},r.dive=function(i,o,l){for(var u in o)if(o.hasOwnProperty(u)){var c=u,d=o[u];i.length>0&&(c=i+"."+u),r.isObject(d)?r.dive(c,d,l):l[c]=d}},r.isObject=function(i){var o=typeof i;return o==="function"||o==="object"&&!!i},r.allKeys=function(i){if(!r.isObject(i))return[];var o=[];for(var l in i)o.push(l);return o},r.encryptionString=function(i,o){for(var l=[],u=0;u<i.length;u++){var c=i.charCodeAt(u)^o.charCodeAt(u%o.length);l.push(String.fromCharCode(c))}return l.join("")},r.encryptionBytes=function(i,o){for(var l=new Uint8Array(i.length),u=0;u<i.length;u++)l[u]=i[u]^o.charCodeAt(u%o.length);return l},r.parseJwt=function(i){var o=i.replace(/-/g,"+").replace(/_/g,"/"),l=decodeURIComponent(window.atob(o).split("").map(function(u){return"%"+("00"+u.charCodeAt(0).toString(16)).slice(-2)}).join(""));return JSON.parse(l)},r.calculateMeanTimeDeltasBetweenEvents=function(i){var o=0;if((i==null?void 0:i.length)>1){for(var l=i[0].epochTs,u=1;u<i.length;u++)o+=i[u].epochTs-l,l=i[u].epochTs;o/=i.length-1}return o},r.sortEventsByTimestamp=function(i){return i.sort(function(o,l){return o.eventTs>l.eventTs?1:o.eventTs<l.eventTs?-1:o.epochTs>l.epochTs?1:o.epochTs<l.epochTs?-1:o.type==="click"?1:-1})},r.distanceBetweenPoints=function(i,o){return Math.sqrt(Math.pow(i.getX()-o.getX(),2)+Math.pow(i.getY()-o.getY(),2))},r.calculateMeanDistanceBetweenPoints=function(i){var o=0;if((i==null?void 0:i.length)>1){for(var l=1;l<i.length;l++)o+=r.distanceBetweenPoints(i[l-1],i[l]);o/=i.length-1}return o},r.filterArrayByLength=function(i,o){return i.length<=o?i:i.slice(0,o).concat(i[i.length-1])},r.keepFirstEventsWithDistance=function(i){var o=i.events,l=i.threshold,u=i.min,c=i.max;if(o.length<=u)return o;var d,f=o[0];for(d=1;d<o.length&&d<c&&!(Math.max(Math.abs(o[d].getX()-f.getX()),Math.abs(o[d].getY()-f.getY()))>=l);d++);return o.slice(0,Math.max(d+1,u))},r.ab2str=function(i){return String.fromCharCode.apply(null,new Uint8Array(i))},r.str2ab=function(i){for(var o=new ArrayBuffer(i.length),l=new Uint8Array(o),u=0,c=i.length;u<c;u++)l[u]=i.charCodeAt(u);return o},r.encode=function(i){var o=JSON.stringify(i),l=new TextEncoder().encode(o),u=r.base64Uint8Array(l);return r.base64url(u)},r.base64url=function(i){return i.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},r.hashCache=new Map,r.keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r}();a.Util=s})(t._POSignalsUtils||(t._POSignalsUtils={}))}(me||(me={})),dt=function(t,a,s,r){return new(s||(s=Promise))(function(i,o){function l(d){try{c(r.next(d))}catch(f){o(f)}}function u(d){try{c(r.throw(d))}catch(f){o(f)}}function c(d){var f;d.done?i(d.value):(f=d.value,f instanceof s?f:new s(function(h){h(f)})).then(l,u)}c((r=r.apply(t,a||[])).next())})},ft=function(t,a){var s,r,i,o,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(c){return function(d){return function(f){if(s)throw new TypeError("Generator is already executing.");for(;l;)try{if(s=1,r&&(i=2&f[0]?r.return:f[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,f[1])).done)return i;switch(r=0,i&&(f=[2&f[0],i.value]),f[0]){case 0:case 1:i=f;break;case 4:return l.label++,{value:f[1],done:!1};case 5:l.label++,r=f[1],f=[0];continue;case 7:f=l.ops.pop(),l.trys.pop();continue;default:if(!(i=(i=l.trys).length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){l=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){l.label=f[1];break}if(f[0]===6&&l.label<i[1]){l.label=i[1],i=f;break}if(i&&l.label<i[2]){l.label=i[2],l.ops.push(f);break}i[2]&&l.ops.pop(),l.trys.pop();continue}f=a.call(t,l)}catch(h){f=[6,h],r=0}finally{s=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([c,d])}}},function(t){var a=t.openDB;(function(s){var r=function(){function i(){}return i.initDB=function(){return dt(this,void 0,void 0,function(){var o,l=this;return ft(this,function(u){if(!(window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB))throw new Error("IndexedDB is not supported");return o=new i,[2,new Promise(function(c){return dt(l,void 0,void 0,function(){var d;return ft(this,function(f){switch(f.label){case 0:return d=o,[4,a(this._PingDBName,i._version,{upgrade:function(h,p,m,w,E){h.createObjectStore(i._storeDefaultName)}})];case 1:return d.indexedDatabase=f.sent(),c(o),[2]}})})})]})})},i.prototype.close=function(){this.indexedDatabase.close()},i.prototype.getValue=function(o){return this.indexedDatabase.get(i._storeDefaultName,o)},i.prototype.setValue=function(o,l){return this.indexedDatabase.put(i._storeDefaultName,l,o)},i._PingDBName="Ping",i._version=1,i._storeDefaultName="PING_ONE",i}();s.IndexedDBStorage=r})(t._POSignalsStorage||(t._POSignalsStorage={}))}(me||(me={})),function(t){(function(a){var s=function(){function i(o,l){this.crossStorageClient=new t.CrossStorageClient(o,l)}return i.prototype.get=function(o){var l=t._POSignalsUtils.Util.hash(o);return this.crossStorageClient.get(l)},i.prototype.del=function(o){return this.crossStorageClient.del(t._POSignalsUtils.Util.hash(o))},i.prototype.set=function(o,l,u){return this.crossStorageClient.set(t._POSignalsUtils.Util.hash(o),l,u)},i.prototype.onConnect=function(){return this.crossStorageClient.onConnect()},i.prototype.close=function(o){return this.crossStorageClient.close(o)},i.prototype.getSignedPayload=function(o,l){return this.crossStorageClient.getSignedPayload(o,l)},i.prototype.getDeviceDetails=function(o){var l=t._POSignalsUtils.Util.hash(o);return this.crossStorageClient.getDeviceDetails(l)},i.prototype.setDeviceDetails=function(o,l){var u=t._POSignalsUtils.Util.hash(o);return this.crossStorageClient.setDeviceDetails(u,l)},i}();a.CrossStorage=s;var r=function(){function i(o){this.storage=o}return i.prototype.get=function(o){return Promise.resolve(this.storage.getItem(o))},i.prototype.del=function(o){return this.storage.removeItem(o),Promise.resolve()},i.prototype.set=function(o,l){return this.storage.setItem(o,l),Promise.resolve()},i.prototype.onConnect=function(){return Promise.resolve()},i.prototype.close=function(o){return Promise.resolve()},i.prototype.getSignedPayload=function(o,l){return Promise.resolve([])},i.prototype.getDeviceDetails=function(o){return Promise.resolve([])},i.prototype.setDeviceDetails=function(o,l){return Promise.resolve([])},i}();a.CrossStorageFallback=r})(t._POSignalsStorage||(t._POSignalsStorage={}))}(me||(me={})),function(t){var a=function(){function s(r,i,o){this.deviceId=r,this.dbStorage=i,this.cryptoHandler=o}return s.prototype.getExportedPublicKey=function(){return dt(this,void 0,void 0,function(){var r,i;return ft(this,function(o){switch(o.label){case 0:return this.cachedPublicKey?[3,3]:[4,this.getDeviceKeys()];case 1:return(r=o.sent())?(i=this,[4,this.cryptoHandler.exportPublicKey(r)]):[3,3];case 2:i.cachedPublicKey=o.sent(),o.label=3;case 3:return t._POSignalsUtils.Logger.info("Exported public key:",this.cachedPublicKey),[2,this.cachedPublicKey]}})})},s.prototype.setDeviceKeys=function(r){return dt(this,void 0,void 0,function(){var i;return ft(this,function(o){switch(o.label){case 0:return[4,this.dbStorage.setValue(this.deviceId,r)];case 1:return i=o.sent(),this.cachedDeviceKey=r,[2,i]}})})},s.prototype.associateDeviceKeys=function(){return dt(this,void 0,void 0,function(){var r;return ft(this,function(i){switch(i.label){case 0:return[4,this.cryptoHandler.generateKeys()];case 1:return r=i.sent(),t._POSignalsUtils.Logger.info("Associating new device domain keys"),[4,this.setDeviceKeys(r)];case 2:return i.sent(),[2,r]}})})},s.prototype.getDeviceKeys=function(){return dt(this,void 0,void 0,function(){var r;return ft(this,function(i){switch(i.label){case 0:return this.cachedDeviceKey?[3,2]:(r=this,[4,this.dbStorage.getValue(this.deviceId)]);case 1:r.cachedDeviceKey=i.sent(),i.label=2;case 2:return[2,this.cachedDeviceKey]}})})},s.prototype.signDeviceAttributeWithJWT=function(r,i,o){return dt(this,void 0,void 0,function(){var l,u,c;return ft(this,function(d){switch(d.label){case 0:return u=(l=this.cryptoHandler).signJWT,c=[r],[4,this.getDeviceKeys()];case 1:return[4,u.apply(l,c.concat([d.sent(),s._default_salt,i,o]))];case 2:return[2,d.sent()]}})})},s.prototype.verifyJWT=function(r){return dt(this,void 0,void 0,function(){var i,o,l;return ft(this,function(u){switch(u.label){case 0:return o=(i=this.cryptoHandler).verifyJwtToken,l=[r],[4,this.getDeviceKeys()];case 1:return[2,o.apply(i,l.concat([u.sent().publicKey]))]}})})},s._default_salt=32,s}();t.DeviceKeys=a}(me||(me={})),function(t){(function(a){var s=function(){function r(){this._disabledStorage=[],this.assertionValues=["BROWSER_ENGINE_VERSION","NAVIGATOR_LANGUAGE","OS_NAME","OS_VERSION","NAVIGATOR_USER_AGENT","FINGER_PRINT","RESOLUTION","PUSH_NOTIFICATIONS_SUPPORTED","COOKIES_ENABLED","IS_INCOGNITO","IS_PRIVATE_MODE"];try{window.sessionStorage.setItem("_st_storage_enabled_check","test"),window.sessionStorage.removeItem("_st_storage_enabled_check"),this.signalsSessionStorage=window.sessionStorage}catch{t._POSignalsUtils.Logger.warn("session storage disabled"),this._disabledStorage.push("sessionStorage"),this.signalsSessionStorage=new a.StorageFallback}try{window.localStorage.setItem("_st_storage_enabled_check","test"),window.localStorage.removeItem("_st_storage_enabled_check"),this.signalsLocalStorage=new a.StorageWrapper(window.localStorage)}catch{t._POSignalsUtils.Logger.warn("local storage disabled"),this._disabledStorage.push("localStorage"),this.signalsLocalStorage=new a.StorageWrapper(new a.StorageFallback),this.crossStorage=new a.CrossStorageFallback(this.signalsLocalStorage)}}return r.prototype.setStorageConfig=function(i){this.disableHub=!0,this.hubUrl="",this.universalTrustEnabled=this.isConfigurationEnabled(i.universalDeviceIdentification),this.agentIdentificationEnabled=this.isConfigurationEnabled(i.agentIdentification),this.devEnv=i.devEnv,this.agentPort=i.agentPort,this.agentTimeout=i.agentTimeout,this.htmlGeoLocation=this.isConfigurationEnabled(i.htmlGeoLocation),this.isIAFDetectionEnabled=this.isConfigurationEnabled(i.isIAFDetectionEnabled)},Object.defineProperty(r,"instance",{get:function(){return r._instance||(r._instance=new r),r._instance},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tabUUID",{get:function(){var i=this.signalsSessionStorage.getItem(t._POSignalsUtils.Constants.TAB_UUID_KEY);return i||(i=t._POSignalsUtils.Util.newGuid(),this.signalsSessionStorage.setItem(t._POSignalsUtils.Constants.TAB_UUID_KEY,i)),i},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"ops",{get:function(){var i=Number(this.signalsSessionStorage.getItem(t._POSignalsUtils.Constants.OPS_KEY));return isNaN(i)?null:i},set:function(i){i?this.signalsSessionStorage.setItem(t._POSignalsUtils.Constants.OPS_KEY,i.toString()):this.signalsSessionStorage.removeItem(t._POSignalsUtils.Constants.OPS_KEY)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"disabledStorage",{get:function(){return this._disabledStorage},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sessionStorage",{get:function(){return this.signalsSessionStorage},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"localStorage",{get:function(){return this.signalsLocalStorage},enumerable:!1,configurable:!0}),r.prototype.initDeviceIdentity=function(){return dt(this,void 0,void 0,function(){var i,o,l,u;return ft(this,function(c){switch(c.label){case 0:return o=this.signalsLocalStorage.getItem(t._POSignalsUtils.Constants.DEVICE_ID_KEY),l=this.signalsLocalStorage.getItem(t._POSignalsUtils.Constants.DEVICE_ID_CREATED_AT),o&&(this.cachedDeviceId=o),this.universalTrustEnabled?(this.deviceTrust={attestation:{},dtts:new Date().getTime()},u=this,[4,a.IndexedDBStorage.initDB()]):[3,3];case 1:return u.indexedDBStorage=c.sent(),[4,this.loadLocalDeviceTrust()];case 2:i=c.sent(),c.label=3;case 3:return this.disableHub||o&&!this.shouldFallbackToP1Key(i)?[3,5]:[4,this.fallbackToCrossStorage(this.hubUrl)];case 4:return c.sent(),[3,6];case 5:this.crossStorage=new a.CrossStorageFallback(this.signalsLocalStorage),c.label=6;case 6:return this.getDeviceId()?[3,8]:[4,this.associateDeviceDetails(this.disableHub)];case 7:c.sent(),c.label=8;case 8:return l||this.signalsLocalStorage.setItem(t._POSignalsUtils.Constants.DEVICE_ID_CREATED_AT,Date.now()),!this.universalTrustEnabled||this.getDeviceId()&&i?[3,10]:[4,this.createDomainKeys(this.disableHub)];case 9:c.sent(),c.label=10;case 10:return[2,this.getDeviceId()]}})})},r.prototype.shouldFallbackToP1Key=function(i){return this.universalTrustEnabled&&!this.disableHub&&(!i||this.isRefreshRequired(this.deviceKeyRsyncIntervals))},r.prototype.isRefreshRequired=function(i){if(i===void 0&&(i=3),!this.deviceTrust.dtts)return!0;var o=this.signalsLocalStorage.getItem(t._POSignalsUtils.Constants.LAST_DEVICE_KEY_RESYNC);if(!o||isNaN(parseInt(o)))return!0;var l=this.deviceTrust.dtts-o>864e5*i;return l&&t._POSignalsUtils.Logger.debug("Refresh required"),l},r.prototype.loadLocalDeviceTrust=function(){return dt(this,void 0,void 0,function(){var i,o;return ft(this,function(l){switch(l.label){case 0:return l.trys.push([0,4,,5]),this.cachedDeviceId?this.cachedDeviceId?(this.domainDeviceKeys=new t.DeviceKeys(this.getDeviceId(),this.indexedDBStorage,new t._POSignalsUtils.CryptoOperator),[4,this.domainDeviceKeys.getDeviceKeys()]):[3,3]:(t._POSignalsUtils.Logger.debug("No device id found on customer domain"),[2,!1]);case 1:return l.sent()?(i=this.deviceTrust.attestation,[4,this.domainDeviceKeys.getExportedPublicKey()]):(t._POSignalsUtils.Logger.debug("No device keys found on customer domain"),[2,!1]);case 2:return i.deviceKey=l.sent(),this.crossStorage=new a.CrossStorageFallback(this.signalsLocalStorage),[2,!0];case 3:return[3,5];case 4:return o=l.sent(),t._POSignalsUtils.Logger.error("Domain PKI initialization failed",o),[2,!1];case 5:return[2]}})})},r.prototype.createDomainKeys=function(i){return dt(this,void 0,void 0,function(){var o,l;return ft(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),!i&&this._disabledStorage.lastIndexOf("hub")>-1?(t._POSignalsUtils.Logger.debug("Hub unavailable - skipping domain trust creation"),[2]):(this.domainDeviceKeys=new t.DeviceKeys(this.getDeviceId(),this.indexedDBStorage,new t._POSignalsUtils.CryptoOperator),[4,this.domainDeviceKeys.associateDeviceKeys()]);case 1:return u.sent(),o=this.deviceTrust.attestation,[4,this.domainDeviceKeys.getExportedPublicKey()];case 2:return o.deviceKey=u.sent(),[3,4];case 3:return l=u.sent(),t._POSignalsUtils.Logger.error("Domain PKI initialization failed",l),[3,4];case 4:return[2]}})})},r.prototype.getDeviceId=function(){return this.cachedDeviceId},r.prototype.getDeviceCreatedAt=function(){return this.signalsLocalStorage.getItem(t._POSignalsUtils.Constants.DEVICE_ID_CREATED_AT)},r.prototype.associateDeviceDetails=function(i){var o,l;return dt(this,void 0,void 0,function(){var u;return ft(this,function(c){switch(c.label){case 0:return t._POSignalsUtils.Logger.debug("Associating fresh device details"),this.cachedDeviceId="Id-"+t._POSignalsUtils.Util.newGuid(),this.signalsLocalStorage.setItem(t._POSignalsUtils.Constants.DEVICE_ID_KEY,this.cachedDeviceId),this.signalsLocalStorage.setItem(t._POSignalsUtils.Constants.DEVICE_ID_CREATED_AT,Date.now()),i?[3,4]:this.universalTrustEnabled?(u=this.deviceTrust.attestation,[4,this.crossStorage.setDeviceDetails(t._POSignalsUtils.Constants.DEVICE_ID_KEY,this.cachedDeviceId)]):[3,2];case 1:return u.fallbackDeviceKey=c.sent()[0],[3,4];case 2:return[4,this.crossStorage.set(t._POSignalsUtils.Constants.DEVICE_ID_KEY,this.cachedDeviceId)];case 3:c.sent(),c.label=4;case 4:return t._POSignalsUtils.Logger.debug("PingOne Signals deviceId: "+this.cachedDeviceId),[2,[this.cachedDeviceId,(l=(o=this.deviceTrust)===null||o===void 0?void 0:o.attestation)===null||l===void 0?void 0:l.fallbackDeviceKey]]}})})},r.prototype.closeTrustStore=function(){try{this.crossStorage.close(this.devEnv),this.indexedDBStorage&&this.indexedDBStorage.close()}catch(i){t._POSignalsUtils.Logger.info("Unable to close trust store:",i)}},r.prototype.fallbackToCrossStorage=function(i){return dt(this,void 0,void 0,function(){var o;return ft(this,function(l){switch(l.label){case 0:t._POSignalsUtils.Logger.debug("PingOne Signals cross storage is required, initializing"),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,this.initCrossStorage(i)];case 2:return l.sent(),t._POSignalsUtils.Logger.info("PingOne Signals cross storage initiated"),[3,4];case 3:return o=l.sent(),t._POSignalsUtils.Logger.warn("PingOne Signals Session crossStorage failed to connect "+o),this._disabledStorage.push("hub"),this.crossStorage=new a.CrossStorageFallback(this.signalsLocalStorage),[3,4];case 4:return[2]}})})},r.prototype.initCrossStorage=function(i){return dt(this,void 0,void 0,function(){var o,l,u,c,d;return ft(this,function(f){switch(f.label){case 0:return o=this.universalTrustEnabled?"1.0.7":"1.0.1",l="https://apps.pingone.com/signals/web-sdk/hub-"+o+"/hub.html",(u=((i==null?void 0:i.trim())||l).replace(/\/$/,"")).endsWith("html")||(u+="/hub.html"),this.crossStorage=new a.CrossStorage(u,{timeout:2e3}),[4,this.crossStorage.onConnect()];case 1:return f.sent(),this.universalTrustEnabled?[4,this.crossStorage.getDeviceDetails(t._POSignalsUtils.Constants.DEVICE_ID_KEY)]:[3,3];case 2:return c=f.sent(),this.cachedDeviceId=c[0],[3,5];case 3:return d=this,[4,this.crossStorage.get(t._POSignalsUtils.Constants.DEVICE_ID_KEY)];case 4:d.cachedDeviceId=f.sent(),f.label=5;case 5:return this.cachedDeviceId?this.signalsLocalStorage.setItem(t._POSignalsUtils.Constants.DEVICE_ID_KEY,this.cachedDeviceId):t._POSignalsUtils.Logger.info("no device id from hub"),this.universalTrustEnabled&&(c&&c[1]?(this.deviceTrust.attestation.fallbackDeviceKey=c[1],t._POSignalsUtils.Logger.info("Using fallback device keys from hub "+this.deviceTrust.attestation.fallbackDeviceKey)):t._POSignalsUtils.Logger.info("failed to use any device keys")),[2]}})})},r.prototype.isConfigurationEnabled=function(i){return i!=null&&(typeof i=="boolean"?i:typeof i=="string"&&i.toLowerCase()==="true")},r.prototype.signJWTChallenge=function(i,o,l){return dt(this,void 0,void 0,function(){return ft(this,function(u){return[2,this.domainDeviceKeys.signDeviceAttributeWithJWT(i,o,l)]})})},r.prototype.getGeoSessionData=function(){var i=this.signalsSessionStorage.getItem(t._POSignalsUtils.Constants.GeoDataKey);return i??null},r}();a.SessionStorage=s})(t._POSignalsStorage||(t._POSignalsStorage={}))}(me||(me={})),function(t){(function(a){var s=function(){function i(o){this.storage=o}return i.prototype.getItem=function(o){var l=t._POSignalsUtils.Util.hash(o),u=this.storage.getItem(l);return u||(u=this.storage.getItem(o))&&(this.storage.setItem(l,u),this.storage.removeItem(o)),u},i.prototype.removeItem=function(o){return this.storage.removeItem(t._POSignalsUtils.Util.hash(o))},i.prototype.setItem=function(o,l){return this.storage.setItem(t._POSignalsUtils.Util.hash(o),l)},i}();a.StorageWrapper=s;var r=function(){function i(){this.internalStorageMap=new Map}return i.prototype.getItem=function(o){return this.internalStorageMap.get(o)},i.prototype.removeItem=function(o){this.internalStorageMap.delete(o)},i.prototype.setItem=function(o,l){this.internalStorageMap.set(o,l)},i}();a.StorageFallback=r})(t._POSignalsStorage||(t._POSignalsStorage={}))}(me||(me={}));var qr=n;(function(t,a){for(var s=1064,r=803,i=1147,o=748,l=753,u=720,c=1245,d=n,f=e();;)try{if(-parseInt(d(s))/1+-parseInt(d(715))/2+-parseInt(d(1241))/3*(-parseInt(d(652))/4)+-parseInt(d(868))/5*(parseInt(d(r))/6)+parseInt(d(i))/7*(-parseInt(d(o))/8)+-parseInt(d(l))/9*(-parseInt(d(u))/10)+-parseInt(d(c))/11===328021)break;f.push(f.shift())}catch{f.push(f.shift())}})(),Zn=function(){var t=601,a=816,s=qr;return(Zn=Object[s(1188)]||function(r){for(var i,o=s,l=1,u=arguments[o(t)];l<u;l++)for(var c in i=arguments[l])Object[o(a)][o(1232)][o(675)](i,c)&&(r[c]=i[c]);return r})[s(1209)](this,arguments)},dt=function(t,a,s,r){var i={_0x17e08c:893};return new(s||(s=Promise))(function(o,l){var u=n;function c(h){var p=n;try{f(r[p(704)](h))}catch(m){l(m)}}function d(h){try{f(r.throw(h))}catch(p){l(p)}}function f(h){var p,m=n;h.done?o(h[m(809)]):(p=h.value,p instanceof s?p:new s(function(w){w(p)}))[m(i._0x17e08c)](c,d)}f((r=r[u(1209)](t,a||[]))[u(704)]())})},ft=function(t,a){var s,r,i,o,l={_0x180a2e:852,_0x654500:704,_0x35e1a5:675,_0x2178ca:968,_0x1d2c43:699,_0x23a91f:766,_0x1a8942:737,_0x585542:601,_0x846770:1161,_0x35b40c:737},u=qr,c={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:d(0),throw:d(1),return:d(2)},typeof Symbol===u(974)&&(o[Symbol.iterator]=function(){return this}),o;function d(f){return function(h){return function(p){var m=u;if(s)throw new TypeError("Generator is already executing.");for(;c;)try{if(s=1,r&&(i=2&p[0]?r.return:p[0]?r[m(905)]||((i=r[m(l._0x180a2e)])&&i.call(r),0):r[m(l._0x654500)])&&!(i=i[m(l._0x35e1a5)](r,p[1]))[m(805)])return i;switch(r=0,i&&(p=[2&p[0],i.value]),p[0]){case 0:case 1:i=p;break;case 4:return c[m(l._0x2178ca)]++,{value:p[1],done:!1};case 5:c[m(968)]++,r=p[1],p=[0];continue;case 7:p=c[m(l._0x1d2c43)][m(l._0x23a91f)](),c.trys[m(766)]();continue;default:if(!(i=(i=c[m(l._0x1a8942)])[m(l._0x585542)]>0&&i[i[m(601)]-1])&&(p[0]===6||p[0]===2)){c=0;continue}if(p[0]===3&&(!i||p[1]>i[0]&&p[1]<i[3])){c[m(968)]=p[1];break}if(p[0]===6&&c[m(968)]<i[1]){c[m(l._0x2178ca)]=i[1],i=p;break}if(i&&c[m(968)]<i[2]){c.label=i[2],c[m(699)][m(l._0x846770)](p);break}i[2]&&c[m(l._0x1d2c43)].pop(),c[m(l._0x35b40c)].pop();continue}p=a.call(t,c)}catch(w){p=[6,w],r=0}finally{s=i=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([f,h])}}};var yo=function(){for(var t=qr,a=0,s=0,r=arguments[t(601)];s<r;s++)a+=arguments[s].length;var i=Array(a),o=0;for(s=0;s<r;s++)for(var l=arguments[s],u=0,c=l[t(601)];u<c;u++,o++)i[o]=l[u];return i};(function(t){var a=709,s=816,r=756,i=816,o=813,l=1262,u=750,c=1163,d=1098,f=816,h=596,p=816,m=1197,w=547,E=816,v=1295,y=1334,b=659,S=816,I=1043,C=691,k=602,M=qr;(function(P){var D=900,V=1145,B=599,Y=815,Z=1043,te=886,$=526,H=991,A=929,N=745,le=996,K=1160,ae=1185,ve=1019,Le=776,Oe=1019,Ne=981,Re=708,He=982,De={_0x43ccf4:982,_0x168bc9:1125,_0x999568:646,_0x356ce9:572,_0x986a95:1321,_0x215d28:710,_0x3a661b:1174,_0xb9732d:1182,_0x688888:863,_0x2f97f2:611,_0x5cfaa9:854,_0x41c264:946,_0x121c2f:1148,_0x5ce79b:692,_0x630a2e:1180,_0x52c419:934,_0xe785b8:655,_0x28bde2:712,_0x3be455:1301,_0x3b90b6:917,_0x51ad63:921,_0x5134e2:502,_0xb56e9:1005,_0x5a9bc0:509,_0x29b917:1275,_0xa2e74:1026,_0x4254d:614,_0x44f51a:1078,_0x19272b:1035,_0x257ce9:1281},at=function(){var wt=550,Tt=525,en=1067,Ut=1265,Me=684,g=1078,F=589,W=1023,T=676,re=1160,Ce=1160,xe=1146,be=954,st=478,$e=1151,Rt=1160,dn=587,Un=927,wn=979,En=1086,Ht=878,We=815,ut=948,Ue=1117,Et=796,Ke=1160,Ct=851,Zt=1232,Dt=639,Nt=1160,vn=807,or=1085,_r=522,fn=778,jn=596,Be=1326,Ae=1074,pn=1004,Sn=1121,St=841,br=815,xs=526,yt=n;function hn(se,qe,z,ot){var ce=n;this[ce(De._0x43ccf4)]=se,this[ce(636)]=qe,this.externalIdentifiers=z,this[ce(701)]=ot,this[ce(De._0x168bc9)]=null,this[ce(De._0x999568)]=null,this[ce(1117)]=null,this[ce(557)]=null,this[ce(1179)]=null,this[ce(1266)]=null,this[ce(De._0x356ce9)]=null,this[ce(De._0x986a95)]=null,this[ce(1298)]=null,this[ce(985)]=null,this.headlessTests=new Map,this.lieTests={},this[ce(De._0x215d28)]=null,this[ce(De._0x3a661b)]=new Set([ce(1226),"architecture",ce(830),ce(725),ce(De._0xb9732d),ce(De._0x688888),ce(677),ce(De._0x2f97f2),ce(De._0x5cfaa9),ce(683),ce(De._0x41c264),ce(De._0x121c2f),ce(1172),"fontPreferences",ce(1031),ce(De._0x5ce79b),"hardwareConcurrency",ce(918),ce(496),ce(De._0x630a2e),ce(590),ce(De._0x52c419),ce(De._0xe785b8),"openDatabase",ce(De._0x28bde2),"pdfViewerEnabled",ce(622),ce(De._0x3be455),"privateClickMeasurement","reducedMotion",ce(1051),ce(De._0x3b90b6),ce(779),ce(De._0x51ad63),ce(752),"touchSupport",ce(799),ce(1123),ce(De._0x5134e2)]),this[ce(De._0xb56e9)]=-1,this[ce(De._0x5a9bc0)]=0,this[ce(De._0x29b917)]=0,this[ce(De._0xa2e74)]=[],this.audioInputDevices=[],this[ce(De._0x4254d)]=[],this[ce(919)]=new Map,this[ce(De._0x44f51a)]=null,this[ce(1001)]=null,this[ce(695)]=0,this[ce(De._0x19272b)]=new t[ce(De._0x257ce9)](1),this[ce(942)]=null,this[ce(684)]=null}return Object.defineProperty(hn[yt(816)],yt(872),{get:function(){var se=yt;if(!this.metadataParams[se(Ne)][se(Re)])return 0;var qe=this[se(982)][se(699)];return!qe&&(qe=this.getOps(),this[se(He)].ops=qe),qe},enumerable:!1,configurable:!0}),hn[yt(816)][yt(r)]=function(){var se=1035;return dt(this,void 0,void 0,function(){var qe=this;return ft(this,function(z){return[2,this[n(se)].add(function(){var ot=968,ce=1163,je=1023,Ye=1225,vt=599,O=1023,U=833,j=646,q=968,ie=601,Ee=818,Ie=1324,de=601,X=548,fe=813,ye=643,Se=602,Pe=1167,Xe=942,ct=1078;return dt(qe,void 0,void 0,function(){var bt,Qe;return ft(this,function(_t){var Ve=n;switch(_t[Ve(ot)]){case 0:return this.lastCalculatedMetadata?[3,2]:(bt=this,[4,this[Ve(ce)]()]);case 1:bt.lastCalculatedMetadata=_t[Ve(1278)](),t._POSignalsUtils.Logger[Ve(je)](Ve(Ye)),t[Ve(815)][Ve(vt)][Ve(O)](Ve(561)+this[Ve(1125)]),t[Ve(815)].Logger[Ve(1023)](Ve(U)+this[Ve(j)]),this[Ve(982)].closeTrustStore(),_t[Ve(q)]=2;case 2:return Qe=typeof window!==Ve(727)&&window[Ve(1324)]&&typeof window[Ve(1324)][Ve(ie)]===Ve(Ee)?window[Ve(Ie)][Ve(de)]:null,this[Ve(1078)]&&(this[Ve(1078)][Ve(853)]=Qe),this.sessionData&&this[Ve(982)][Ve(X)]?[4,this[Ve(fe)]()]:[3,4];case 3:_t[Ve(1278)](),_t.label=4;case 4:return[4,this.refreshDeviceAttributes()];case 5:return _t.sent(),this.sessionData&&this[Ve(982)][Ve(ye)]&&this[Ve(Se)](),this[Ve(982)][Ve(Pe)]&&(this[Ve(Xe)]=JSON.stringify(this[Ve(ct)])),[2,this.lastCalculatedMetadata]}})})})]})})},hn[yt(i)][yt(o)]=function(){var se,qe,z,ot,ce=1078,je=1006,Ye=539,vt=831,O=539,U=641,j=1270,q=1278,ie=865,Ee=801,Ie=982,de=1274,X=1078,fe=609,ye=1229,Se=768,Pe=1078,Xe=1251,ct=1078,bt=1317,Qe=626,_t=724,Ve=599,tn=865,Jt=1189;return dt(this,void 0,void 0,function(){var jt,zt,wr,ci,Er,lr,ur,Ti,Fn,Ya=953,Za=801,pt=943,Mn=543,Xt=521,Co=838,Io=899,Ls=1078,Sr=this;return ft(this,function(Wi){var kt=n;switch(Wi.label){case 0:return this[kt(ce)]=Zn(Zn({},this.lastCalculatedMetadata),{htmlGeoLocation_latitude:void 0,htmlGeoLocation_longitude:void 0,htmlGeoLocation_accuracy:void 0,htmlGeoLocation_speed:void 0,htmlGeoLocation_heading:void 0,htmlGeoLocation_timestamp:void 0,htmlGeoLocation_ErrorMessage:"",htmlGeoLocation_ErrorCode:""}),jt=function(kr,Wn){var Ai=kt;Wn===void 0&&(Wn="");var va=kr.length>255?kr[Ai(Io)](0,252)+Ai(650):kr;return Sr.lastCalculatedMetadata.htmlGeoLocation_ErrorMessage=va,Sr[Ai(Ls)].htmlGeoLocation_ErrorCode=Wn,{status:Ai(690),message:va}},zt=function(kr){var Wn=kt;switch(kr){case 1:return jt(Wn(Ya),Wn(Za));case 2:return jt(Wn(pt),Wn(838));case 3:return jt(Wn(Mn),Wn(Xt));default:return jt(Wn(1252),Wn(Co))}},navigator[kt(633)]?(wr=this[kt(1078)][kt(492)][kt(je)](),ci=wr[kt(Ye)](kt(vt)),Er=wr[kt(O)](kt(891)),lr=!1,[4,navigator[kt(U)][kt(j)]({name:kt(633)})]):[2,jt(kt(1175),kt(1282))];case 1:if(ur=Wi[kt(q)](),this[kt(ce)]["PERMISSIONS.geolocation"]=ur[kt(865)],ur[kt(865)]===kt(635))return[2,jt(kt(1096)+ur[kt(ie)]+" in browser '"+wr+"'.",kt(Ee))];if(Ti=this[kt(Ie)][kt(de)]())try{if((Fn=JSON.parse(Ti))&&Fn[kt(1319)]&&Fn.longitude)this[kt(X)].htmlGeoLocation_latitude=Fn.latitude?parseFloat(Fn[kt(1319)][kt(768)](2)):null,this[kt(X)][kt(fe)]=Fn[kt(1229)]?parseFloat(Fn[kt(ye)][kt(Se)](2)):null,this.lastCalculatedMetadata.htmlGeoLocation_accuracy=(se=Fn[kt(573)])!==null&&se!==void 0?se:null,this[kt(Pe)].htmlGeoLocation_speed=(qe=Fn[kt(Xe)])!==null&&qe!==void 0?qe:null,this[kt(ct)].htmlGeoLocation_heading=(z=Fn[kt(999)])!==null&&z!==void 0?z:null,this[kt(1078)][kt(bt)]=(ot=Fn[kt(Qe)])!==null&&ot!==void 0?ot:null,delete this[kt(Pe)][kt(_t)],delete this[kt(1078)].htmlGeoLocation_ErrorCode,lr=!0;else if(Fn&&Fn.error_code)return lr=!1,[2,zt(Fn[kt(518)])]}catch(kr){t[kt(815)][kt(Ve)][kt(840)](kt(523),kr)}return ur.state!=="granted"?[3,3]:[4,new Promise(function(kr){var Wn=932,Ai=1236,va=1319,Ms=999,we=1078,Rs=768,Ul=768,To=546,Ec=724,Sc={timeout:500},Ao=function(Oo){Oo===void 0&&(Oo=1),navigator.geolocation.getCurrentPosition(function(ya){var Po,zn=n,Ja=ya[zn(Ai)],Ds=Ja[zn(va)],Ns=Ja[zn(1229)],kc=Ja.accuracy,Cc=Ja.speed,xo=Ja[zn(Ms)];if((!Ds||!Ns||Ds===0||Ns===0)&&(ci||Er)&&Oo===1)return Ao(2);Sr[zn(we)].htmlGeoLocation_latitude=Ds?parseFloat(Ds[zn(Rs)](2)):void 0,Sr[zn(1078)][zn(609)]=Ns?parseFloat(Ns[zn(Ul)](2)):void 0,Sr[zn(1078)][zn(To)]=kc,Sr[zn(1078)].htmlGeoLocation_speed=Cc,Sr.lastCalculatedMetadata[zn(741)]=xo,Sr[zn(we)].htmlGeoLocation_timestamp=(Po=ya[zn(626)])!==null&&Po!==void 0?Po:null,delete Sr[zn(we)][zn(Ec)],delete Sr[zn(1078)][zn(955)],lr=!0,kr({status:"granted"})},function(ya){kr(zt(ya[n(Wn)])),lr=!1},Sc)};Ao()})];case 2:return[2,Wi[kt(1278)]()];case 3:return lr?[2]:[2,jt("Geolocation permission state is '"+ur[kt(tn)]+kt(Jt)+wr+"'",kt(838))]}})})},hn[yt(816)][yt(l)]=function(){return dt(this,void 0,void 0,function(){var se,qe=750,z=727,ot=1324,ce=1324;return ft(this,function(je){var Ye=n;switch(je.label){case 0:return[4,this[Ye(qe)]()];case 1:return je[Ye(1278)](),se=typeof window!==Ye(z)&&window[Ye(ot)]&&typeof window[Ye(ce)].length===Ye(818)?window[Ye(1324)][Ye(601)]:null,this[Ye(1078)]&&(this[Ye(1078)].BROWSER_TAB_HISTORY_LENGTH=se),[2]}})})},hn.prototype[yt(u)]=function(){return dt(this,void 0,void 0,function(){var se,qe,z,ot,ce=686,je=1206,Ye=603,vt=1078,O=1104,U=1078,j=980;return ft(this,function(q){var ie=n;return se=160,qe=window[ie(898)]-window[ie(ce)]>se,z=window[ie(508)]-window[ie(je)]>se,ot=ie(qe?581:Ye),this[ie(vt)].devToolsOpen=ie(qe||z?1250:O),this[ie(U)].devToolsOrientation=qe||z?ot:ie(j),[2]})})},hn[yt(816)][yt(679)]=function(){var se=1077;return dt(this,void 0,void 0,function(){var qe=this;return ft(this,function(z){var ot=n;return[2,this.metadataQueue[ot(se)](function(){var ce=968,je=1154,Ye=1001,vt=701,O=1278;return dt(qe,void 0,void 0,function(){var U;return ft(this,function(j){var q=n;switch(j[q(ce)]){case 0:return this.localAgentJwtRequestCount>=5?[2,this[q(1001)]]:this[q(982)][q(je)]?this[q(Ye)]?[3,2]:(U=this,[4,this[q(vt)][q(1055)]()]):[3,3];case 1:U[q(Ye)]=j[q(O)](),j.label=2;case 2:return this[q(695)]++,[2,this.localAgentJwt];case 3:return[2]}})})})]})})},hn.prototype.getObfsInfo=function(){return{identifier:"x1",key:yt(538)}},hn[yt(i)][yt(1015)]=function(){return this[yt(942)]},hn[yt(816)][yt(c)]=function(){var se=968,qe=633,z=636,ot=1169,ce=920,je=857,Ye=1197,vt=559,O=1337,U=1071,j=1125,q=888,ie=644,Ee=646,Ie=845,de=827,X=1100,fe=815,ye=1125,Se=646,Pe=636,Xe=1326,ct=504,bt=1025,Qe=1209,_t=552;return dt(this,void 0,void 0,function(){var Ve,tn,Jt,jt,zt,wr=599,ci=815;return ft(this,function(Er){var lr=840,ur=815,Ti=599,Fn=599,Ya=599,Za=1227,pt=n;switch(Er[pt(se)]){case 0:return this.gpsSupported=navigator[pt(qe)]!=null,Ve=this[pt(z)][pt(ot)],tn=[this[pt(982)][pt(ce)]()[pt(je)](function(Mn){var Xt=pt;t[Xt(ci)].Logger.warn(Xt(612),Mn)}),this[pt(Ye)](Ve).catch(function(Mn){var Xt=pt;t._POSignalsUtils[Xt(Ya)][Xt(840)](Xt(Za),Mn.message)}),this.getBroPrintFingerPrint().catch(function(Mn){var Xt=pt;t[Xt(815)][Xt(599)][Xt(840)]("failed to get broJsFingerprint info",Mn[Xt(990)])}),P[pt(vt)][pt(O)]().catch(function(Mn){var Xt=pt;return t[Xt(815)][Xt(Fn)].warn("failed to get private mode info",Mn)}),this[pt(1295)]()[pt(857)](function(Mn){var Xt=pt;return t[Xt(ur)][Xt(Ti)].warn("failed to get permissions info",Mn)}),new P.DetectHeadless(Ve).getHeadlessResults()[pt(je)](function(Mn){var Xt=pt;return t[Xt(815)][Xt(599)].warn(Xt(971),Mn)}),new P[pt(733)](Ve)[pt(U)]()[pt(857)](function(Mn){var Xt=pt;return t._POSignalsUtils[Xt(wr)][Xt(840)](Xt(597),Mn)}),this[pt(501)]()[pt(je)](function(Mn){var Xt=pt;return t[Xt(815)][Xt(599)][Xt(840)]("failed to get audio-video info",Mn)}),this[pt(1098)]().catch(function(Mn){var Xt=pt;return t[Xt(815)].Logger[Xt(lr)]("failed to get battery info",Mn)})],[4,Promise.all(tn)];case 1:return zt=Er[pt(1278)](),this[pt(j)]=zt[0],this[pt(640)]=zt[1],this.broJsFingerprint=zt[2],this[pt(q)]=zt[3],this[pt(641)]=zt[4],this[pt(765)]=zt[5],this[pt(ie)]=zt[6],this[pt(Ee)]=this.sessionData.getDeviceCreatedAt(),Jt={ops:this.OPS,devicePixelRatio:window[pt(997)],screenWidth:window.screen[pt(Ie)],screenHeight:window[pt(de)][pt(X)]},t[pt(fe)].Util.extendPrimitiveValues(Jt,screen,!1),jt=[{deviceId:this[pt(ye)],device_created_ts:this[pt(Se)],deviceType:this[pt(Pe)].browserInfo[pt(535)],osVersion:(this[pt(636)][pt(981)][pt(894)]+" "+this[pt(Pe)][pt(981)][pt(859)])[pt(Xe)]()||"",externalIdentifiers:this[pt(ct)],origin:location[pt(bt)],href:location[pt(1024)]}],[4,this[pt(553)](Ve)];case 2:return[2,Zn[pt(1209)](void 0,[Zn[pt(Qe)](void 0,[Zn[pt(Qe)](void 0,[Zn[pt(1209)](void 0,jt[pt(922)]([Er.sent()])),this.getIoMetadata()]),this[pt(_t)]()]),Jt])]}})})},hn.prototype[yt(d)]=function(){return dt(this,void 0,void 0,function(){var se,qe=1278,z=this;return ft(this,function(ot){var ce=815,je=599,Ye=815,vt=669,O=1298,U=836,j=n;switch(ot[j(968)]){case 0:return se=this,[4,t[j(815)][j(526)][j(1138)](50,new Promise(function(q,ie){var Ee=j;navigator[Ee(889)]?(z[Ee(1266)]=!0,navigator.getBattery()[Ee(893)](function(Ie){var de=Ee;Ie&&(se[de(572)]=Ie[de(vt)],se.batteryCharging=Ie[de(1230)],se[de(O)]=Ie[de(1247)],se[de(985)]=Ie[de(U)]),q()}).catch(function(Ie){var de=Ee;t[de(Ye)][de(599)][de(840)](de(1037)+Ie),q()})):(t[Ee(ce)][Ee(je)][Ee(1202)](Ee(1135)),q())}))];case 1:return ot[j(qe)](),[2]}})})},hn[yt(f)].enumerateDevicesEnabled=function(){var se=yt,qe=/^((?!chrome|android).)*safari/i[se(649)](navigator[se(St)]);return!t[se(br)][se(xs)][se(524)]()||!qe},hn.prototype[yt(h)]=function(){var se=yt,qe=window[se(1030)]||window[se(ae)]||window[se(ve)];if(!qe){var z=window[se(Le)];z&&(qe=z.RTCPeerConnection||z[se(1185)]||z[se(Oe)])}return qe},hn.prototype[yt(1016)]=function(){var se=700,qe=802,z=717,ot=563,ce=717,je=yt,Ye=this;try{var vt={},O=this[je(jn)](),U=new O({iceServers:[{urls:this[je(636)][je(762)][je(Be)]()}]},{optional:[{RtpDataChannels:!0}]});U[je(Ae)]=function(j){var q=je;if(j.candidate){var ie=/([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/[q(se)](j.candidate[q(qe)])[1];vt[ie]===void 0&&(j[q(802)].candidate[q(z)](q(ot))>0?Ye[q(919)][q(1181)]("WEB_RTC_HOST_IP",ie):j[q(qe)].candidate[q(ce)]("srflx")>0&&Ye.webRtcIps.set(q(1318),ie)),vt[ie]=!0}},U[je(pn)](""),U[je(Sn)](function(j){U[je(620)](j,function(){},function(){})},function(){})}catch{}},hn[yt(p)][yt(501)]=function(){return dt(this,void 0,void 0,function(){var se,qe=968,z=1138,ot=this;return ft(this,function(ce){var je=1224,Ye=1202,vt=815,O=599,U=1202,j=1325,q=713,ie=1140,Ee=n;switch(ce[Ee(qe)]){case 0:return se=this,[4,t._POSignalsUtils.Util[Ee(z)](50,new Promise(function(Ie,de){var X=815,fe=599,ye=840,Se=1117,Pe=1161,Xe=1091,ct=1179,bt=968,Qe=1283,_t=1161,Ve=Ee;return ot[Ve(je)]()?navigator.mediaDevices&&navigator[Ve(713)].enumerateDevices?void navigator[Ve(q)][Ve(1220)]()[Ve(893)](function(tn){var Jt=Ve;tn[Jt(ie)](function(jt){var zt=Jt;jt[zt(1091)]&&(jt[zt(1091)][zt(1006)]()==zt(1307)?(se[zt(Se)]=!0,se[zt(1275)]++,jt.label&&se[zt(638)][zt(Pe)](jt[zt(968)])):jt[zt(Xe)].toLowerCase()=="videoinput"?(se[zt(ct)]=!0,se.numberOfVideoDevices++,jt.label&&se[zt(1026)].push(jt[zt(bt)])):jt[zt(1091)][zt(1006)]()==zt(Qe)&&(se[zt(557)]=!0,se.numberOfAudioDevices++,jt[zt(968)]&&se.audioOutputDevices[zt(_t)](jt.label)))}),Ie()})[Ve(857)](function(tn){var Jt=Ve;t[Jt(X)][Jt(fe)][Jt(ye)](Jt(529),tn),Ie()}):(t[Ve(vt)][Ve(O)][Ve(U)](Ve(j)),void Ie()):(t[Ve(815)][Ve(599)][Ve(Ye)]("enumerateDevices() cannot run within safari iframe"),void Ie())}))];case 1:return ce.sent(),[2]}})})},hn.prototype[yt(m)]=function(se){var qe=732,z=1054,ot=1255,ce=1278;return dt(this,void 0,void 0,function(){var je,Ye,vt=this;return ft(this,function(O){var U=n;switch(O[U(968)]){case 0:return se[U(886)](U(qe))?[2,Promise[U(z)]("")]:(je=new Promise(function(j,q){return dt(vt,void 0,void 0,function(){var ie,Ee,Ie,de=1278,X=661,fe=599,ye=570;return ft(this,function(Se){var Pe=n;switch(Se[Pe(968)]){case 0:return Se.trys.push([0,3,,4]),[4,t[Pe(743)].load()];case 1:return[4,Se[Pe(de)]().get()];case 2:return ie=Se[Pe(1278)](),this[Pe(640)]=ie[Pe(X)],this[Pe(1073)]=ie[Pe(593)],j(ie[Pe(661)]),[3,4];case 3:return Ee=Se[Pe(1278)](),t._POSignalsUtils[Pe(fe)][Pe(840)](Pe(527)+Ee),Ie={err:Ee,message:Pe(ye)},q(Ie),[3,4];case 4:return[2]}})})}),Ye=new Promise(function(j,q){return dt(vt,void 0,void 0,function(){var ie=968,Ee=792,Ie=636,de=1278;return ft(this,function(X){var fe=n;switch(X[fe(ie)]){case 0:return[4,t._POSignalsUtils.Util[fe(Ee)](this[fe(Ie)][fe(586)])];case 1:return X[fe(de)](),q({message:"Fingerprint timeout"}),[2]}})})}),[4,Promise[U(ot)]([je,Ye])]);case 1:return[2,O[U(ce)]()]}})})},hn.prototype.getBroPrintFingerPrint=function(){return dt(this,void 0,void 0,function(){var se=857,qe=this;return ft(this,function(z){return[2,new Promise(function(ot,ce){var je=599,Ye=n;t[Ye(978)][Ye(1164)]().then(function(vt){qe[Ye(936)]=vt,ot(vt)})[Ye(se)](function(vt){var O=Ye;t[O(815)][O(je)].warn("Failed to get Fingerprint from getCurrentBrowserFingerPrint",vt),ce(vt)})})]})})},hn[yt(816)].getSensorsMetadata=function(){var se=yt,qe={};return this.flatAndAddMetadata(qe,"DEDVCE_LIGHT_SUPPORTED",function(){return"ondevicelight"in window}),this[se(1160)](qe,se(1294),function(){return se(fn)in window}),!window.DeviceMotionEvent&&this[se(1160)](qe,se(or),function(){return!1}),!window[se(1331)]&&this[se(1160)](qe,se(_r),function(){return!1}),this.flatAndAddMetadata(qe,"PROXIMITY_SUPPORTED",function(){return se(1264)in window}),qe},hn[yt(816)][yt(553)]=function(se){return dt(this,void 0,void 0,function(){var qe,z,ot,ce,je,Ye,vt,O,U,j,q,ie,Ee,Ie,de,X,fe,ye,Se,Pe,Xe,ct,bt=968,Qe=981,_t=1160,Ve=1115,tn=1160,Jt=636,jt=1160,zt=1012,wr=930,ci=487,Er=1160,lr=519,ur=1272,Ti=1160,Fn=1160,Ya=820,Za=1160,pt=651,Mn=1076,Xt=1160,Co=1136,Io=887,Ls=1160,Sr=1060,Wi=995,kt=722,kr=497,Wn=1160,Ai=1186,va=621,Ms=1278,we=1097,Rs=1160,Ul=966,To=1160,Ec=1160,Sc=1160,Ao=738,Oo=1160,ya=1160,Po=1160,zn=1160,Ja=824,Ds=877,Ns=1105,kc=555,Cc=574,xo=1160,ew=689,tw=817,nw=1073,rw=1073,iw=564,aw=1233,sw=566,ow=520,lw=1156,uw=1160,cw=945,dw=1160,fw=1124,hw=540,gw=578,pw=619,mw=667,vw=1022,yw=1198,mg=1160,_w=1160,bw=731,ww=1093,Ew=1160,Sw=1160,kw=1263,Cw=949,Iw=773,Tw=1292,Aw=823,Ow=876,Pw=1165,xw=714,Lw=1160,Mw=1214,Rw=982,Dw=503,vg=1140,Nw=919,Uw=1160,Fw=1153,Bw=536,Vw=1089,Hw=512,jw=1160,zw=1192,Gw=639,Ww=1232,qw=1142,Kw=1160,Yw=628,Zw=686,Jw=714,Xw=607,$w=1233,Qw=1022,e2=1022,t2=821,n2=1160,r2=794,i2=1047,a2=565,s2=638,o2=565,l2=601,u2=1161,c2=1114,d2=1301,f2=765,h2=947,g2=490,p2=947,m2=1003,v2=1036,y2=828,_2=799,b2=947,w2=828,E2=1013,S2=1087,k2=590,C2=498,I2=976,T2=519,A2=825,O2=636,P2=981,x2=519,L2=1183,M2=981,R2=519,D2=636,N2=981,U2=636,F2=494,B2=981,V2=819,H2=562,j2=812,z2=981,G2=640,sn=this;return ft(this,function(_a){var W2=925,q2=1038,yg=781,K2=571,Y2=781,Z2=1160,J2=1302,X2=1223,$2=1007,Q2=1069,eE=1223,tE=1302,nE=1116,rE=1190,iE=1334,aE=1327,sE=1026,oE=565,lE=509,uE=1286,cE=660,dE=1205,fE=644,hE=882,gE=1005,pE=888,mE=663,vE=1073,yE=1031,_E=1160,bE=1182,_g=1160,wE=809,bg=1160,EE=800,SE=1160,kE=830,CE=665,IE=989,TE=854,AE=1160,OE=917,PE=809,xE=1172,LE=1081,ME=560,wg=809,RE=601,DE=495,NE=809,UE=783,FE=809,BE=947,VE=947,HE=975,jE=947,zE=601,GE=600,WE=1219,qE=837,KE=645,Eg=674,YE=601,ZE=636,JE=981,XE=636,x=n;switch(_a[x(bt)]){case 0:return qe=this,z={},this.flatAndAddMetadata(z,x(579),function(){return sn[x(G2)]}),this[x(1160)](z,x(685),function(){return sn[x(936)]}),this[x(636)][x(Qe)].userAgentData&&(this[x(_t)](z,x(Ve),function(){var J=x;return sn.metadataParams[J(z2)][J(894)]}),this[x(tn)](z,"OS_VERSION",function(){var J=x;return sn[J(XE)].browserInfo[J(859)]})),this[x(Jt)][x(981)][x(519)]&&(this[x(jt)](z,x(zt),function(){var J=x;return sn[J(636)][J(981)].deviceModel}),this[x(jt)](z,"DEVICE_VENDOR",function(){var J=x;return sn[J(636)][J(981)][J(j2)]}),this[x(1160)](z,x(wr),function(){var J=x;return sn[J(636)][J(981)].deviceCategory})),this[x(Jt)][x(981)][x(519)]&&(this.flatAndAddMetadata(z,x(ci),function(){var J=x;return sn.metadataParams.browserInfo[J(H2)]}),this[x(Er)](z,"BROWSER_ENGINE_VERSION",function(){var J=x;return sn[J(636)][J(JE)][J(890)]})),this.metadataParams[x(981)][x(lr)]&&this[x(1160)](z,x(ur),function(){var J=x;return sn[J(636)][J(B2)][J(V2)]}),this[x(Jt)][x(981)][x(519)]&&(this[x(Ti)](z,x(492),function(){var J=x;return sn[J(U2)].browserInfo[J(F2)]}),this[x(Fn)](z,x(850),function(){var J=x;return sn[J(636)].browserInfo[J(1014)]}),this[x(1160)](z,"BROWSER_MAJOR",function(){var J=x;return sn[J(D2)][J(N2)][J(1199)]}),this[x(jt)](z,x(1303),function(){var J=x;return sn[J(ZE)][J(981)][J(847)]})),ot=new P[x(Ya)],this[x(jt)](z,x(1311),function(){var J=x;return ot[J(514)](sn[J(636)][J(981)][J(519)].ua)}),this[x(1160)](z,x(941),function(){var J=x;return ot[J(1201)](sn[J(636)][J(M2)][J(R2)].ua)}),this[x(Za)](z,"IS_CHROME_FAMILY",function(){var J=x;return ot[J(A2)](sn[J(O2)][J(P2)][J(x2)][J(L2)])}),this.flatAndAddMetadata(z,x(pt),function(){var J=x;return ot.isElectronFamily(sn[J(636)].browserInfo[J(T2)].ua)}),this[x(1160)](z,x(826),function(){return navigator[x(799)]}),this[x(1160)](z,x(Mn),function(){var J=x;return navigator.plugins?navigator[J(1301)][J(YE)]:null}),this.flatAndAddMetadata(z,x(911),function(){var J=x;return navigator[J(Eg)]?navigator[J(Eg)].length:null}),this[x(Xt)](z,x(Co),function(){var J=x;return navigator.language||navigator[J(C2)]||navigator.browserLanguage||navigator[J(I2)]}),this[x(1160)](z,x(1029),function(){return navigator[x(k2)]}),this.flatAndAddMetadata(z,x(Io),function(){return navigator[x(718)]||navigator.msMaxTouchPoints}),this[x(Ls)](z,x(1010),function(){var J=x;return navigator.pointerEnabled||navigator[J(KE)]}),this[x(Fn)](z,x(Sr),function(){return navigator.webdriver}),this.flatAndAddMetadata(z,x(846),function(){return navigator[x(987)]}),this[x(Ls)](z,x(Wi),function(){return navigator[x(qE)]!=null}),this.flatAndAddMetadata(z,x(896),function(){return"Notification"in window}),this[x(1160)](z,x(kt),function(){return navigator.appCodeName}),this[x(1160)](z,"NAVIGATOR_APP_NAME",function(){return navigator[x(706)]}),this[x(1160)](z,x(1256),function(){return navigator[x(913)]}),this[x(1160)](z,"NAVIGATOR_ON_LINE",function(){return navigator[x(WE)]}),this[x(Fn)](z,x(kr),function(){return navigator[x(622)]}),this[x(Wn)](z,x(965),function(){return navigator[x(814)]}),this.flatAndAddMetadata(z,x(Ai),function(){return navigator[x(841)]}),this[x(jt)](z,"NAVIGATOR_PDF_VIEWER_ENABLED",function(){return navigator.pdfViewerEnabled}),this[x(Wn)](z,x(va),function(){return navigator.deviceMemory}),this[x(1160)](z,x(1277),function(){var J=x;return navigator[J(676)]?navigator.connection[J(S2)]:null}),se[x(886)]("modernizr")?[3,2]:[4,this.safeAddModernizrFeatures(z)];case 1:_a[x(Ms)](),_a[x(bt)]=2;case 2:if((ce=window[x(we)]||window._ST_PING)?this[x(Rs)](z,x(Ul),function(){return ce}):this[x(_t)](z,x(Ul),function(){return x(980)}),this[x(To)](z,x(853),function(){var J=x;return typeof window!==J(727)&&window.history&&typeof window.history.length===J(818)?window.history.length:null}),je=new P.WebGLMetadata,this[x(Ec)](z,x(870),function(){return je[x(E2)]()}),this[x(Wn)](z,x(924),function(){var J=x;return je[J(947)]()[J(_2)]+"~"+je[J(b2)]()[J(w2)]}),this.flatAndAddMetadata(z,"IS_WEBGL2",function(){return je[x(716)]()}),je[x(716)]()?this[x(Sc)](z,x(Ao),function(){var J=x;return je[J(947)]().vendor+"~"+je.getWebglData()[J(y2)]}):this[x(1160)](z,x(Ao),function(){return""}),this[x(Oo)](z,x(1203),function(){var J=x;return je[J(947)]()[J(GE)]}),this[x(ya)](z,"WEBGL_SHADINGLANGUAGEVERSION",function(){var J=x;return je.getWebglData()[J(v2)]}),this.flatAndAddMetadata(z,x(858),function(){var J=x;return je.getWebglData()[J(744)][J(zE)]}),this[x(Po)](z,x(1184),function(){return je[x(947)]().maxTextureSize}),this[x(zn)](z,x(613),function(){var J=x;return je.getWebglData()[J(m2)]}),this.flatAndAddMetadata(z,"WEBGL_MAXTEXTUREIMAGEUNITS",function(){return je[x(947)]().maxTextureImageUnits}),this[x(1160)](z,x(Ja),function(){var J=x;return je[J(jE)]()[J(1088)]}),this[x(1160)](z,x(986),function(){var J=x;return je[J(p2)]()[J(544)]}),this[x(1160)](z,x(Ds),function(){var J=x;return je.getWebglData()[J(HE)]}),this[x(1160)](z,x(Ns),function(){var J=x;return je[J(h2)]()[J(g2)]}),this[x(Rs)](z,"WEBGL_MAXVERTEXUNIFORMVECTORS",function(){return je[x(VE)]().maxVertexUniformVectors}),this[x(1160)](z,x(kc),function(){var J=x;return je[J(BE)]()[J(1162)]}),this[x(1160)](z,x(Cc),function(){return je.getHasLiedLanguages()}),this.flatAndAddMetadata(z,"HASLIEDRESOLUTION",function(){return je.getHasLiedResolution()}),this[x(xo)](z,x(ew),function(){return je[x(697)]()}),this[x(1160)](z,x(tw),function(){return je[x(1132)]()}),this[x(nw)])for(O in Ye=function(J){var Rn=809,Jn=809,Fl=809,Lo=783,$E=783,It=x;if(!vt[It(1073)].hasOwnProperty(J))return It(mE);var yn=vt[It(vE)][J];J==It(yE)?vt[It(_E)](z,"JS_FONTS",function(){var Cr=It;return yn[Cr(809)][Cr(601)]}):J==It(bE)?vt[It(_g)](z,"IS_CANVAS",function(){return yn[It(809)]!=null}):J=="screenResolution"&&yn.value&&yn[It(wE)].length?vt[It(bg)](z,It(EE),function(){var Cr=It;return yn[Cr(809)][Cr($E)](",")}):J=="touchSupport"&&yn[It(809)]?vt[It(SE)](z,"TOUCH_SUPPORT",function(){return yn.value}):J==It(kE)&&yn.value?vt.flatAndAddMetadata(z,It(CE),function(){return yn[It(809)]}):J=="osCpu"&&yn[It(809)]?vt[It(1160)](z,It(IE),function(){return yn[It(809)]}):J==It(TE)&&yn.value?vt[It(AE)](z,"COOKIES_ENABLED",function(){return yn[It(FE)]}):J==It(OE)&&yn[It(809)]&&yn[It(PE)].length?vt.flatAndAddMetadata(z,It(1101),function(){var Cr=It;return yn[Cr(809)][Cr(Lo)](",")}):J==It(1304)&&yn[It(809)]?vt[It(1160)](z,It(598),function(){return yn.value}):J==It(xE)&&yn[It(LE)]?vt[It(1160)](z,It(1271),function(){return yn[It(1081)]}):J=="fontPreferences"&&yn[It(809)]?vt[It(bg)](z,It(499),function(){return yn[It(Fl)]}):J==It(ME)&&yn[It(809)]?vt[It(_g)](z,"PDF_VIEWER_ENABLED",function(){return yn[It(Jn)]}):J=="vendorFlavors"&&yn[It(wg)]&&yn.value[It(RE)]?vt.flatAndAddMetadata(z,"VENDOR_FLAVORS",function(){var Cr=It;return yn[Cr(809)][Cr(UE)](",")}):J==It(1109)&&yn[It(wg)]?vt.flatAndAddMetadata(z,"VIDEO_CARD",function(){var Cr=It;return yn[Cr(Rn)][Cr(828)]}):qe.fingerPrintComponentKeys[It(886)](J)&&J!=null&&vt[It(1160)](z,J[It(DE)](),function(){return yn[It(NE)]})},vt=this,this[x(rw)])Ye(O);for(Ee in this[x(1160)](z,"IS_PRIVATE_MODE",function(){return sn[x(pE)]}),this[x(1160)](z,x(iw),function(){return sn[x(gE)]}),U={selenium:navigator[x(1302)]||t[x(815)].Util.getAttribute(window[x(aw)].documentElement,"webdriver")||"",phantomjs:{_phantom:window._phantom||"",__phantomas:window[x(sw)]||"",callPhantom:window[x(ow)]||""},nodejs:{Buffer:window.Buffer||""},couchjs:{emit:window[x(874)]||""},rhino:{spawn:window[x(lw)]||""},chromium:{domAutomationController:window[x(567)]||"",domAutomation:window[x(653)]||""},outerWidth:window.outerWidth,outerHeight:window.outerHeight},this[x(Rs)](z,"HEADLESS",function(){return U}),this[x(uw)](z,"HEADLESS",function(){return sn[x(f2)]}),this.flatAndAddMetadata(z,x(cw),function(){var J=x,Rn={};for(var Jn in sn.lieTests)Rn[Jn]=JSON[J(dE)](sn[J(fE)][Jn]);return Object[J(hE)](Rn).length>0?Rn:null}),this[x(1160)](z,"STEALTH",function(){var J=x;return new P.DetectStealth(se)[J(cE)]()}),this[x(dw)](z,"REF_LINK",function(){return document[x(uE)]}),this.flatAndAddMetadata(z,"PLUGINS",function(){for(var J=x,Rn={length:navigator.plugins[J(601)],details:[]},Jn=0;Jn<Rn[J(l2)];Jn++)Rn.details[J(u2)]({length:navigator[J(1301)][Jn][J(601)],name:navigator.plugins[Jn][J(c2)],version:navigator[J(1301)][Jn].version,filename:navigator[J(d2)][Jn][J(1215)]});return Rn}),this.flatAndAddMetadata(z,x(fw),function(){return sn[x(1275)]}),this[x(ya)](z,"VIDEO",function(){return sn[x(lE)]}),this.flatAndAddMetadata(z,x(hw),function(){var J=x;return sn[J(sE)][J(oE)]()}),this.flatAndAddMetadata(z,x(gw),function(){var J=x;return sn[J(s2)][J(o2)]()}),this[x(xo)](z,"AUDIO_OUTPUT_DEVICES",function(){var J=x;return sn[J(614)][J(a2)]()}),this[x(1160)](z,"MEDIA_CODEC_MP4_AVC1",function(){var J=x;return sn.getMediaCodec(J(i2))}),this.flatAndAddMetadata(z,x(pw),function(){var J=x;return sn[J(1334)](J(760))}),this[x(1160)](z,x(mw),function(){var J=x;return sn[J(iE)](J(aE))}),j=this.metadataParams[x(615)],q=function(J){var Rn=1334,Jn=x;if(!j.hasOwnProperty(J))return Jn(663);ie[Jn(n2)](z,Jn(r2)+J,function(){return sn[Jn(Rn)](j[J])})},ie=this,j)q(Ee);window[x(vw)]&&window.performance[x(yw)]&&(this[x(mg)](z,x(1246),function(){return window[x(1022)].memory.jsHeapSizeLimit}),this[x(_w)](z,x(bw),function(){var J=x;return window[J(e2)].memory[J(t2)]}),this[x(To)](z,x(551),function(){var J=x;return window[J(Qw)][J(1198)][J(808)]})),this.flatAndAddMetadata(z,x(856),function(){return navigator[x(rE)]}),this[x(ya)](z,"selenium_in_document",function(){var J=x;return P[J(1116)][J(1108)]()}),this[x(1160)](z,x(ww),function(){return P.SeleniumProperties.seleniumInWindow()}),this[x(1160)](z,x(970),function(){return P[x(nE)].seleniumInNavigator()}),this[x(Ew)](z,x(897),function(){var J=x;return P.SeleniumProperties[J(1053)]()}),this[x(Sw)](z,x(kw),function(){var J=x;return t._POSignalsUtils.Util.getAttribute(window[J($w)].documentElement,"selenium")}),this[x(1160)](z,x(Cw),function(){var J=x;return t[J(815)].Util[J(Q2)](window[J(1233)][J(eE)],J(tE))}),this[x(1160)](z,"DOCUMENT_ELEMENT_DRIVER",function(){var J=x;return t[J(815)][J(526)][J(1069)](window[J(1233)][J(X2)],J($2))}),this.flatAndAddMetadata(z,x(Iw),function(){var J=x;return!!t[J(815)].Util[J(1069)](document[J(795)](J(1273))[0],J(J2))}),this[x(1160)](z,x(Tw),function(){return!!window[x(Xw)]}),this[x(1160)](z,"window_awesomium",function(){return!!window.awesomium}),this.flatAndAddMetadata(z,x(Aw),function(){return!!window[x(1305)]}),this[x(To)](z,x(Ow),function(){return!!window[x(1204)]}),this[x(jt)](z,"hasTrustToken",function(){return"hasTrustToken"in document}),this[x(1160)](z,x(Pw),function(){return"trustTokenOperationError"in XMLHttpRequest[x(816)]}),this[x(1160)](z,x(513),function(){var J=x;return J(513)in XMLHttpRequest[J(816)]}),this.flatAndAddMetadata(z,x(xw),function(){var J=x;return J(Jw)in HTMLIFrameElement[J(816)]}),this[x(_t)](z,"localStorage.length",function(){return localStorage[x(601)]}),this[x(Lw)](z,x(Mw),function(){return sessionStorage.length}),this[x(Rw)][x(Dw)][x(vg)](function(J){var Rn=x;sn[Rn(1160)](z,J[Rn(495)]()+Rn(1032),function(){return!0})}),this[x(mg)](z,x(908),function(){return!!sn[x(596)]()}),this[x(Jt)].webRtcUrl&&this[x(Jt)][x(762)][x(601)]>0&&(this[x(1016)](),this[x(Nw)][x(vg)](function(J,Rn){Rn!=null&&J!=null&&sn[x(Z2)](z,Rn,function(){return J})}),this.webRtcIps.clear()),window.matchMedia&&this[x(Uw)](z,x(Fw),function(){var J=x,Rn=window[J(979)]("(min-width: "+(window[J(Zw)]-1)+"px)");return{matches:Rn[J(1086)],media:Rn[J(1269)]}}),this[x(1213)](z,se),window[x(Bw)]&&this[x(1160)](z,x(1217),function(){var J=x;return window.Notification[J(1018)]}),this.flatAndAddMetadata(z,x(1222),function(){var J=x;return window.chrome&&J(Yw)in window.chrome}),this[x(1160)](z,x(855),function(){var J=x;return window[J(781)]&&"csi"in window[J(Y2)]}),this[x(1160)](z,x(Vw),function(){var J=x;return window[J(yg)]&&J(K2)in window[J(yg)]}),this[x(1160)](z,x(Hw),function(){return window.chrome&&"runtime"in window.chrome}),this.addClientHints(z),this[x(Rs)](z,x(1092),function(){return!!navigator[x(q2)]}),this[x(1160)](z,"NAVIGATOR_HID_SUPPORTED",function(){return!!navigator[x(761)]}),this[x(jw)](z,x(1080),function(){return!!navigator[x(W2)]}),this[x(1160)](z,x(630),function(){return!!navigator.presentation}),_a[x(968)]=3;case 3:return _a.trys[x(1161)]([3,6,,7]),se[x(886)](x(944))||!t[x(526)][x(688)](document[x(zw)])?[3,5]:[4,t.Util[x(1138)](100,document.interestCohort())];case 4:Ie=_a[x(1278)](),de=Ie.id,X=Ie[x(Gw)],this[x(xo)](z,x(729),function(){return de}),this.flatAndAddMetadata(z,x(1313),function(){return X}),_a[x(968)]=5;case 5:return[3,7];case 6:return _a[x(Ms)](),[3,7];case 7:for(Se in fe=function(J){var Rn=526,Jn=636,Fl=x;ye[Fl(Kw)](z,J,function(){var Lo=Fl;return t[Lo(815)][Lo(Rn)].getProperty(window,sn[Lo(Jn)].dataPoints[J])})},ye=this,this.metadataParams[x(568)])fe(Se);for(Xe in Pe=this[x(636)][x(1049)])Pe[x(Ww)](Xe)&&(ct=Xe==="window"?window:window[Xe])&&this[x(qw)](ct,Xe.toUpperCase()+"_PROPERTY_DESCRIPTOR",Pe[Xe],z);return[2,z]}})})},hn[yt(p)][yt(w)]=function(se){var qe=622,z=yt;try{var ot=navigator[z(519)];if(!ot)return;this.flatAndAddMetadata(se,z(1285),function(){return ot[z(qe)]}),this[z(Ke)](se,"NAVIGATOR_CLIENT_HINTS_MOBILE",function(){return ot[z(879)]});var ce=ot[z(871)];if(!ce)return;for(var je=function(O){var U=z;if(ce[O][U(1232)](U(Ct))&&ce[O][U(Zt)]("version")){var j=ce[O][U(851)]+":"+ce[O][U(Dt)];Ye[U(Nt)](se,U(vn)+O,function(){return j})}},Ye=this,vt=0;vt<ce[z(601)];vt++)je(vt)}catch(O){t[z(815)].Logger.warn(z(1312),O)}},hn.prototype.addPropertyDescriptorInfo=function(se,qe,z,ot){var ce=495,je=yt;try{for(var Ye=function(j){var q=816,ie=849,Ee=952,Ie=n;vt[Ie(1160)](ot,qe+"_"+j[Ie(ce)](),function(){var de=Ie,X=se[de(q)]?se[de(816)]:se,fe=Object[de(ie)](X,j);if(fe){var ye=fe.get?fe[de(Ee)][de(565)]():void 0;return JSON[de(1205)]({configurable:fe[de(964)],enumerable:fe.enumerable,value:fe[de(809)],writable:fe.writable,getter:ye!=null&&ye.length<100?ye:void 0})}return de(727)})},vt=this,O=0,U=z;O<U.length;O++)Ye(U[O])}catch(j){t[je(815)].Logger.warn(je(1106),j)}},hn[yt(816)][yt(1213)]=function(se,qe){var z=486,ot=845,ce=yt;if(!qe[ce(te)]("IFRAME_DATA"))try{var je=t._POSignalsUtils[ce($)][ce(H)](ce(1243));if(!je)return;je[ce(A)]=ce(1166),document[ce(N)][ce(le)](je),this.flatAndAddMetadata(se,"IFRAME_CHROME",function(){return typeof je.contentWindow.chrome}),this[ce(1160)](se,"IFRAME_WIDTH",function(){var Ye=ce;return je[Ye(z)][Ye(827)][Ye(ot)]}),this[ce(K)](se,"IFRAME_HEIGHT",function(){var Ye=ce;return je[Ye(486)].screen[Ye(1100)]}),je.remove()}catch(Ye){t[ce(815)].Logger.warn(ce(1306),Ye)}},hn[yt(E)][yt(v)]=function(){var se=1041,qe=1070,z=673,ot=633,ce=618,je=780,Ye=694,vt=664,O=1157,U=1161,j=815;return dt(this,void 0,void 0,function(){var q,ie,Ee,Ie,de,X;return ft(this,function(fe){var ye=1161,Se=865,Pe=n;switch(fe[Pe(968)]){case 0:if(q={},ie=[Pe(616),Pe(se),Pe(qe),Pe(959),Pe(z),Pe(1002),Pe(1150),Pe(ot),Pe(ce),"magnetometer",Pe(625),Pe(je),Pe(Ye),Pe(vt),Pe(O),"push"],Ee=[],navigator.permissions)for(de in Ie=function(Xe){var ct=Pe,bt=ie[Xe];Ee[ct(ye)](navigator[ct(641)].query({name:bt})[ct(893)](function(Qe){var _t=ct;q[bt]=Qe[_t(Se)]})[ct(857)](function(Qe){}))},ie)Ie(de);fe[Pe(968)]=1;case 1:return fe[Pe(737)][Pe(U)]([1,3,,4]),[4,Promise[Pe(1258)](Ee)];case 2:return fe[Pe(1278)](),[3,4];case 3:return X=fe[Pe(1278)](),t[Pe(j)][Pe(599)].warn(X),[3,4];case 4:return[2,q]}})})},hn.prototype[yt(y)]=function(se){var qe=yt,z=document.createElement(qe(671));if(z&&z[qe(1056)])return z[qe(1056)](se)},hn[yt(i)].safeAddModernizrFeatures=function(se){return dt(this,void 0,void 0,function(){var qe,z,ot,ce,je,Ye,vt=839,O=1066,U=1160,j=830,q=1113,ie=483,Ee=1332,Ie=1068,de=1210,X=1160,fe=1261,ye=480,Se=711,Pe=541,Xe=1278,ct=1288,bt=977,Qe=1160,_t=842,Ve=1160,tn=1063,Jt=624,jt=884,zt=1160,wr=940,ci=1248,Er=671,lr=860,ur=1075,Ti=842,Fn=1177,Ya=730,Za=1240,pt=633,Mn=784,Xt=488,Co=962,Io=973,Ls=904,Sr=830;return ft(this,function(Wi){var kt=940,kr=1299,Wn=843,Ai=774,va=670,Ms=698,we=n;switch(Wi[we(968)]){case 0:return t[we(728)](),qe=this,z=t[we(vt)],ot=z[we(848)],ce=z[we(O)],this.flatAndAddMetadata(se,we(477),function(){return z[we(Ms)]}),this[we(U)](se,"application_cache",function(){return z.applicationcache}),this[we(1160)](se,we(j),function(){return!!z[we(Sr)]}),z.audio&&this.flatAndAddMetadata(se,we(830),function(){return z.audio}),this[we(1160)](se,"battery_api",function(){return!!ot(we(1170),navigator)||!!ot("getBattery",navigator)}),this.flatAndAddMetadata(se,we(q),function(){return z[we(869)]}),this.flatAndAddMetadata(se,we(657),function(){return z[we(va)]}),this[we(U)](se,we(ie),function(){return z[we(483)]}),this[we(U)](se,we(904),function(){return z[we(Ls)]}),this[we(1160)](se,we(Ee),function(){return z.customelements}),this[we(1160)](se,we(Ie),function(){return z[we(Io)]}),this[we(U)](se,we(de),function(){return z.customevent}),this[we(X)](se,we(763),function(){return z[we(763)]}),this[we(X)](se,we(fe),function(){return z[we(Co)]}),this[we(U)](se,"event_listener",function(){return z[we(696)]}),[4,this[we(691)]("exiforientation")];case 1:return je=Wi[we(1278)](),qe[we(U)](se,we(1300),function(){return je}),this[we(U)](se,we(ye),function(){return z.forcetouch}),z[we(Se)]&&(this[we(1160)](se,"force_touch.mouse_force_will_begin",function(){return ce(ot("mouseforcewillbegin",window,!1),window)}),this[we(X)](se,we(Pe),function(){return MouseEvent[we(Ai)]}),this[we(1160)](se,"force_touch.webkit_force_at_force_mouse_down",function(){return MouseEvent[we(Xt)]})),this[we(X)](se,we(719),function(){return z[we(Mn)]}),this[we(U)](se,we(1178),function(){return z[we(1131)]}),this[we(1160)](se,we(994),function(){return z[we(pt)]}),this.flatAndAddMetadata(se,"ie8compat",function(){return z[we(1008)]}),[4,this[we(691)](we(1267))];case 2:return Ye=Wi[we(Xe)](),qe[we(1160)](se,"indexed_db",function(){return Ye}),this[we(1160)](se,"indexed_db_blob",function(){return z[we(Za)]}),this[we(X)](se,we(1042),function(){return z[we(1083)]}),this[we(1160)](se,we(730),function(){return z[we(Ya)]}),this.flatAndAddMetadata(se,we(1177),function(){return z[we(Fn)]}),this[we(X)](se,we(ct),function(){return we(Wn)in window}),this.flatAndAddMetadata(se,we(bt),function(){return z[we(1103)]}),this[we(Qe)](se,we(_t),function(){return z[we(Ti)]}),this[we(Ve)](se,we(tn),function(){return z[we(ur)]}),this.flatAndAddMetadata(se,we(1022),function(){return z.performance}),this[we(1160)](se,"pointer_events",function(){return z[we(1127)]}),this[we(1160)](se,"pointer_lock",function(){return z[we(617)]}),this[we(X)](se,we(1119),function(){return z[we(1119)]}),this[we(1160)](se,"query_selector",function(){return z[we(kr)]}),this[we(1160)](se,we(907),function(){return z.quotamanagement}),this[we(1160)](se,we(591),function(){return z.requestanimationframe}),this[we(1160)](se,we(Jt),function(){return z[we(705)]}),this.flatAndAddMetadata(se,"touch_events",function(){return z[we(lr)]}),this[we(1160)](se,we(jt),function(){return z[we(880)]}),this[we(Qe)](se,we(837),function(){return z[we(837)]}),this[we(X)](se,we(671),function(){return!!z[we(Er)]}),z[we(671)]&&this[we(1160)](se,we(671),function(){return z[we(671)]}),this[we(1160)](se,"web_gl",function(){return z[we(505)]}),this[we(1160)](se,"web_sockets",function(){return z[we(ci)]}),this[we(zt)](se,"x_domain_request",function(){return z.xdomainrequest}),this[we(1160)](se,we(wr),function(){return z[we(kt)]}),[2]}})})},hn[yt(816)][yt(b)]=function(){var se=1223,qe=710,z=1266,ot=557,ce=yt,je=this,Ye={},vt=navigator[ce(T)]||navigator.mozConnection||navigator.webkitConnection;return this[ce(re)](Ye,ce(912),function(){return vt?vt.type:null}),this[ce(re)](Ye,"NETWORK_DOWNLOAD_MAX",function(){return vt?vt[ce(Et)]:null}),this[ce(Ce)](Ye,ce(xe),function(){return!!navigator.bluetooth}),this[ce(1160)](Ye,ce(be),function(){return je[ce(ot)]}),this[ce(1160)](Ye,ce(1110),function(){return je[ce(Ue)]}),this[ce(1160)](Ye,ce(st),function(){return je[ce(1179)]}),this.flatAndAddMetadata(Ye,"BATTERY_SUPPORTED",function(){return je[ce(z)]}),this[ce(1160)](Ye,ce($e),function(){return je[ce(572)]}),this[ce(Rt)](Ye,"BATTERY_CHARGING",function(){return je[ce(1321)]}),this[ce(1160)](Ye,"BATTERY_CHARGING_TIME",function(){return je.batteryChargingTime}),this[ce(re)](Ye,ce(885),function(){return je.batteryDischargingTime}),this[ce(Rt)](Ye,ce(dn),function(){return je[ce(qe)]}),this.flatAndAddMetadata(Ye,ce(631),function(){var O=ce;return t[O(We)].Util[O(ut)]}),this[ce(1160)](Ye,ce(Un),function(){return"ontouchstart"in document[ce(se)]}),this[ce(Rt)](Ye,ce(1260),function(){return je[ce(641)]}),this[ce(Rt)](Ye,ce(1057),function(){var O=ce;return window[O(wn)]("(prefers-color-scheme: light)")[O(En)]?"light":window[O(979)]("(prefers-color-scheme: dark)").matches?O(Ht):void 0}),Ye},hn[yt(S)][yt(I)]=function(se,qe,z){var ot=yt;try{var ce=new Set(this.metadataParams[ot(1169)]||[]);qe!=null&&z!=null&&!ce.has(qe)&&(se[qe]=z)}catch(je){t[ot(815)].Logger.warn(ot(1011)+qe+" -> "+z+", "+je)}},hn[yt(816)][yt(C)]=function(se){var qe=1278;return dt(this,void 0,void 0,function(){var z,ot;return ft(this,function(ce){var je=599,Ye=n;switch(ce[Ye(968)]){case 0:return z=new Promise(function(vt){var O=Ye;try{t[O(839)].on(se,function(U){vt(U)})}catch(U){vt(null),t._POSignalsUtils[O(je)][O(840)](O(928)+se,U)}}),ot=t[Ye(815)].Util[Ye(792)](250).then(function(){return null}),[4,Promise[Ye(1255)]([z,ot])];case 1:return[2,ce[Ye(qe)]()]}})})},hn[yt(816)][yt(1160)]=function(se,qe,z){var ot=yt;try{var ce=new Set(this[ot(636)][ot(1169)]||[]);if(!qe||ce.has(qe))return;var je=z();if(typeof je=="object"&&je!==null){var Ye=t[ot(Y)][ot(526)].flatten(je);for(var vt in Ye)this[ot(Z)](se,qe+"."+vt,Ye[vt])}else this.safeAddMetadata(se,qe,je)}catch(O){t[ot(815)].Logger[ot(840)]("Failed to add "+qe,O)}},hn[yt(f)][yt(1335)]=function(){var se,qe=yt,z=new Date,ot=0;do ot++,se=new Date()[qe(D)]()-z[qe(900)](),Math.sqrt(ot*Math[qe(V)]());while(se<500);var ce=ot/se;return t[qe(815)][qe(B)][qe(1202)](qe(998)+ce),ce},hn[yt(816)][yt(k)]=function(){var se=yt,qe=this;!this[se(Me)]&&t[se(1322)][se(580)]().then(function(z){qe[se(684)]=z})[se(857)](function(z){var ot=se;t._POSignalsUtils.Logger[ot(W)](ot(702),z)}),this.aiSignalsResult&&(this[se(g)][se(F)]=this[se(684)])},hn[yt(1059)]=function(){var se=yt;return Math[se(wt)](.123)==1.4474840516030247&&Math.acosh(Math[se(775)])==.881373587019543&&Math.atan(2)==1.1071487177940904&&Math[se(972)](.5)==.5493061443340548&&Math[se(577)](Math.PI)==1.4645918875615231&&Math[se(537)](21*Math[se(770)])==-.4067775970251724&&Math[se(1009)](492*Math[se(Tt)])==9199870313877772e292&&Math[se(en)](1)==1.718281828459045&&Math.hypot(6*Math.PI,-100)==101.76102278593319&&Math[se(759)](Math.PI)==.4971498726941338&&Math[se(Ut)](Math.PI)==12246467991473532e-32&&Math[se(687)](Math.PI)==11.548739357257748&&Math[se(482)](10*Math[se(525)])==-3.3537128705376014&&Math[se(575)](.123)==.12238344189440875&&Math[se(1084)](Math.PI,-100)==19275814160560204e-66},hn}();P.Metadata=at;var Pt=function(){var wt=n;function Tt(en,Ut){var Me=n;this[Me(1297)]=en,this.agentTimeout=Ut,this[Me(1128)]=Me(1028),this[Me(531)]="/device"}return Tt[wt(s)][wt(1055)]=function(){return dt(this,void 0,void 0,function(){var en,Ut,Me,g,F,W,T,re=1128,Ce=1090,xe=1320,be=1161,st=810,$e=1290,Rt=815,dn=599,Un=1278,wn=1114,En=682,Ht=599,We=1023,ut=990,Ue=903;return ft(this,function(Et){var Ke=n;switch(Et.label){case 0:en=this[Ke(re)]+":"+this[Ke(1297)]+this[Ke(531)],Ut=new AbortController,Me=Ut[Ke(Ce)],g=setTimeout(function(){return Ut[Ke(Ue)]()},this[Ke(xe)]),Et.label=1;case 1:return Et[Ke(737)][Ke(be)]([1,4,5,6]),[4,fetch(en,{method:Ke(st),headers:{"Content-Type":Ke($e)},signal:Me})];case 2:return(F=Et[Ke(1278)]()).ok?[4,F[Ke(678)]()]:(t[Ke(Rt)][Ke(dn)][Ke(1023)]("Failed to fetch the Workstation data. Invalid network response: "+F[Ke(1208)]),[2,void 0]);case 3:return W=Et.sent(),t._POSignalsUtils[Ke(599)][Ke(1023)](Ke(960)),[2,W];case 4:return(T=Et[Ke(Un)]())[Ke(wn)]===Ke(892)?t[Ke(815)][Ke(599)][Ke(690)](Ke(En)+this.agentTimeout+"ms"):t._POSignalsUtils[Ke(Ht)][Ke(We)]("Failed to fetch the Workstation data: "+T[Ke(ut)]),[2,void 0];case 5:return clearTimeout(g),[7];case 6:return[2]}})})},Tt}();P.LocalAgentAccessor=Pt})(t[M(709)]||(t[M(a)]={}))})(me||(me={})),function(t){var a,s,r,i,o,l,u,c,d,f,h,p,m,w,E,v,y,b,S,I,C,k,M,P,D=1108,V=1079,B=qr;a=t._POSignalsMetadata||(t[B(709)]={}),s=963,r=1126,i=788,o=1231,l=1308,u=604,c=1144,d=993,f=637,h=1323,p=585,m=790,w=507,E=1052,v=1134,y=532,b=751,S=1020,I=707,C=1126,k=788,M=601,P=function(){var Y=516,Z=565,te=717,$=n;function H(){}return H[$(D)]=function(){for(var A=$,N=0,le=[A(963),A(b),A(916),A(S),A(703),A(I),A(C),A(k),A(1293),A(1231),"__fxdriver_unwrapped"];N<le[A(M)];N++)if(document[le[N]])return!0;return!1},H.seleniumInWindow=function(){for(var A=$,N=0,le=[A(914),A(1139),A(923),A(520),A(1144),A(y),A(604)];N<le[A(601)];N++)if(window[le[N]])return!0;return!1},H[$(V)]=function(){for(var A=$,N=0,le=["webdriver",A(1293),A(s),A(751),A(707),A(r),A(i),A(o),A(l),A(u),"_selenium",A(c),A(d),A(f),A(h),"webdriver-evaluate",A(p),A(988),A(m),"__webdriverFunc",A(703),A(w),A(E),A(v),"__lastWatirPrompt","$chrome_asyncScriptInfo","$cdc_asdjflasutopfhvcZLmcfl_"];N<le[A(601)];N++)if(navigator[le[N]])return!0;return!1},H.seleniumSequentum=function(){var A=$;return window[A(Y)]&&window[A(Y)].toString()&&window[A(516)][A(Z)]()[A(te)](A(515))!=-1},H}(),a.SeleniumProperties=P}(me||(me={})),function(t){var a,s,r,i,o,l,u,c,d,f,h,p,m,w,E,v,y,b,S,I=709,C=879,k=1218,M=906,P=1072,D=1211,V=1284,B=873,Y=1200,Z=511,te=1111,$=1284,H=1329,A=1330,N=662,le=1284,K=1336,ae=qr;a=t[ae(709)]||(t[ae(I)]={}),r=(s=n)(1114),i=s(1291),o=s(799),l=s(639),u=s(C),c=s(k),d=s(584),f=s(M),s(P),h=s(666),p=s(D),m=s(1118),w=Object[s(V)]({browser:[[/(wget|curl|lynx|elinks|httpie)[\/ ]\(?([\w\.-]+)/i],[r,l,[i,f]]]}),E=Object[s(1284)]({browser:[[/((?:ahrefs|amazon|bing|cc|dot|duckduck|exa|facebook|gpt|mj12|mojeek|oai-search|perplexity|semrush|seznam)bot)\/([\w\.-]+)/i,/(applebot(?:-extended)?)\/([\w\.]+)/i,/(baiduspider)[-imagevdonsfcpr]{0,6}\/([\w\.]+)/i,/(claude(?:bot|-web)|anthropic-ai)\/?([\w\.]*)/i,/(coccocbot-(?:image|web))\/([\w\.]+)/i,/(facebook(?:externalhit|catalog)|meta-externalagent)\/([\w\.]+)/i,/(google(?:bot|other|-inspectiontool)(?:-image|-video|-news)?|storebot-google)\/?([\w\.]*)/i,/(ia_archiver|archive\.org_bot)\/?([\w\.]*)/i,/((?:semrush|splitsignal)bot[-abcfimostw]*)\/([\w\.-]+)/i,/(sogou (?:pic|head|web|orion|news) spider)\/([\w\.]+)/i,/(y!?j-(?:asr|br[uw]|dscv|mmp|vsidx|wsc))\/([\w\.]+)/i,/(yandex(?:(?:mobile)?(?:accessibility|additional|renderresources|screenshot|sprav)?bot|image(?:s|resizer)|video(?:parser)?|blogs|adnet|favicons|fordomain|market|media|metrika|news|ontodb(?:api)?|pagechecker|partner|rca|tracker|turbo|vertis|webmaster|antivirus))\/([\w\.]+)/i,/(yeti)\/([\w\.]+)/i,/((?:aihit|diff|timpi|you)bot|omgili(?:bot)?|(?:magpie-|velenpublicweb)crawler|webzio-extended|(?:screaming frog seo |yisou)spider)\/?([\w\.]*)/i],[r,l,[i,d]],[/((?:adsbot|apis|mediapartners)-google(?:-mobile)?|google-?(?:other|cloudvertexbot|extended|safety))/i,/\b(360spider-?(?:image|video)?|bytespider|(?:ai2|aspiegel|dataforseo|imagesift|petal|turnitin)bot|teoma|(?=yahoo! )slurp)/i],[r,[i,d]]]}),Object[s(V)]({device:[[/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[o,"model",[i,c]],[/(u304aa)/i],["model",[o,s(627)],[i,u]],[/\bsie-(\w*)/i],["model",[o,s(1e3)],[i,u]],[/\b(rct\w+) b/i],["model",[o,s(545)],[i,c]],[/\b(venue[\d ]{2,7}) b/i],["model",[o,s(1130)],[i,c]],[/\b(q(?:mv|ta)\w+) b/i],["model",[o,s(1276)],[i,c]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],["model",[o,s(B)],[i,c]],[/\b(tm\d{3}\w+) b/i],["model",[o,s(1033)],[i,c]],[/\b(k88) b/i],["model",[o,s(Y)],[i,c]],[/\b(nx\d{3}j) b/i],["model",[o,s(1200)],[i,u]],[/\b(gen\d{3}) b.+49h/i],["model",[o,"Swiss"],[i,u]],[/\b(zur\d{3}) b/i],["model",[o,"Swiss"],[i,c]],[/^((zeki)?tb.*\b) b/i],["model",[o,"Zeki"],[i,c]],[/\b([yr]\d{2}) b/i,/\b(?:dragon[- ]+touch |dt)(\w{5}) b/i],["model",[o,s(576)],[i,c]],[/\b(ns-?\w{0,9}) b/i],["model",[o,"Insignia"],[i,c]],[/\b((nxa|next)-?\w{0,9}) b/i],["model",[o,s(594)],[i,c]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[o,s(Z)],"model",[i,u]],[/\b(lvtel\-)?(v1[12]) b/i],[[o,s(610)],"model",[i,u]],[/\b(ph-1) /i],["model",[o,s(te)],[i,u]],[/\b(v(100md|700na|7011|917g).*\b) b/i],["model",[o,s(681)],[i,c]],[/\b(trio[-\w\. ]+) b/i],["model",[o,"MachSpeed"],[i,c]],[/\btu_(1491) b/i],["model",[o,s(1027)],[i,c]]]}),v=Object[s(1284)]({browser:[[/(ahrefssiteaudit|bingpreview|chatgpt-user|mastodon|(?:discord|duckassist|linkedin|pinterest|reddit|roger|siteaudit|telegram|twitter|uptimero)bot|google-site-verification|meta-externalfetcher|y!?j-dlc|yandex(?:calendar|direct(?:dyn)?|searchshop)|yadirectfetcher)\/([\w\.]+)/i,/(bluesky) cardyb\/([\w\.]+)/i,/(slack(?:bot)?(?:-imgproxy|-linkexpanding)?) ([\w\.]+)/i,/(whatsapp)\/([\w\.]+)[\/ ][ianw]/i],[r,l,[i,h]],[/(cohere-ai|vercelbot|feedfetcher-google|google(?:-read-aloud|producer)|(?=bot; )snapchat|yandex(?:sitelinks|userproxy))/i],[r,[i,h]]]}),Object[s($)]({browser:[[/chatlyio\/([\d\.]+)/i],[l,s(H),[i,"inapp"]],[/jp\.co\.yahoo\.android\.yjtop\/([\d\.]+)/i],[l,s(A),[i,"inapp"]]]}),Object[s(1284)]({browser:[[/(apple(?:coremedia|tv))\/([\w\._]+)/i,/(coremedia) v([\w\._]+)/i,/(ares|clementine|music player daemon|nexplayer|ossproxy) ([\w\.-]+)/i,/^(aqualung|audacious|audimusicstream|amarok|bass|bsplayer|core|gnomemplayer|gvfs|irapp|lyssna|music on console|nero (?:home|scout)|nokia\d+|nsplayer|psp-internetradioplayer|quicktime|rma|radioapp|radioclientapplication|soundtap|stagefright|streamium|totem|videos|xbmc|xine|xmms)\/([\w\.-]+)/i,/(lg player|nexplayer) ([\d\.]+)/i,/player\/(nexplayer|lg player) ([\w\.-]+)/i,/(gstreamer) souphttpsrc.+libsoup\/([\w\.-]+)/i,/(htc streaming player) [\w_]+ \/ ([\d\.]+)/i,/(lavf)([\d\.]+)/i,/(mplayer)(?: |\/)(?:(?:sherpya-){0,1}svn)(?:-| )(r\d+(?:-\d+[\w\.-]+))/i,/ (songbird)\/([\w\.-]+)/i,/(winamp)(?:3 version|mpeg| ) ([\w\.-]+)/i,/(vlc)(?:\/| media player - version )([\w\.-]+)/i,/^(foobar2000|itunes|smp)\/([\d\.]+)/i,/com\.(riseupradioalarm)\/([\d\.]*)/i,/(mplayer)(?:\s|\/| unknown-)([\w\.\-]+)/i,/(windows)\/([\w\.-]+) upnp\/[\d\.]+ dlnadoc\/[\d\.]+ home media server/i],[r,l,[i,p]],[/(flrp)\/([\w\.-]+)/i],[[r,s(N)],l,[i,p]],[/(fstream|media player classic|inlight radio|mplayer|nativehost|nero showtime|ocms-bot|queryseekspider|tapinradio|tunein radio|winamp|yourmuze)/i],[r,[i,p]],[/(htc_one_s|windows-media-player|wmplayer)\/([\w\.-]+)/i],[[r,/[_-]/g," "],l,[i,p]],[/(rad.io|radio.(?:de|at|fr)) ([\d\.]+)/i],[[r,s(1221)],l,[i,p]]]}),y=Object.freeze({browser:[[/^(apache-httpclient|axios|(?:go|java)-http-client|got|guzzlehttp|java|libwww-perl|lua-resty-http|needle|node-(?:fetch|superagent)|okhttp|php-soap|postmanruntime|python-(?:urllib|requests)|scrapy)\/([\w\.]+)/i,/(jsdom|java)\/([\w\.]+)/i],[r,l,[i,m]]]}),Object[s(1284)]({device:[[/dilink.+(byd) auto/i],[o],[/(rivian) (r1t)/i],[o,"model"],[/vcc.+netfront/i],[[o,s(1314)]]]}),b=Object[s(le)]({browser:yo(w[s(K)],E[s(K)],v[s(K)],y[s(1336)])}),S=function(){var ve={_0x3f4902:825,_0x530840:583},Le={_0x423863:601,_0x1cec5f:649};return function(){var Oe=1129,Ne=582,Re=956,He=1058,De=767,at=1107,Pt=680,wt=517,Tt=789,en=1187,Ut=634,Me=693,g=491,F=n;this[F(514)]=function(W){var T=F;return[T(1082),"amazonbot",T(Oe),T(Ne),"claudebot",T(595),"applebot-extended","bytespider",T(1310),T(Re),T(He),T(De),T(at),T(485),"google-extended","imagesiftbot","petalbot",T(Pt),T(785),T(wt),T(Tt),T(en),T(Ut),T(1280),"velenpublicwebcrawler",T(Me),T(g),T(777),T(1309),T(1137)].some(function(re){var Ce=T;return W.toLowerCase()[Ce(539)](re)})},this.isBot=function(W){for(var T=F,re=W[T(1006)](),Ce=b[T(1336)],xe=0;xe<Ce[T(601)];xe+=2)for(var be=Ce[xe],st=0,$e=Array.isArray(be)?be:[be];st<$e[T(Le._0x423863)];st++){var Rt=$e[st];if(Rt instanceof RegExp&&Rt[T(Le._0x1cec5f)](re))return!0}return!1},this[F(ve._0x3f4902)]=function(W){var T=F;return W.name===Kh[T(1268)]},this[F(ve._0x530840)]=function(W){var T=F;return W[T(1006)]()[T(539)](T(1176))}}}(),a[s(820)]=S}(me||(me={})),function(t){var a,s,r,i,o,l,u,c,d,f,h,p,m,w,E,v,y,b,S,I,C,k,M,P,D,V,B,Y,Z,te,$,H,A,N,le,K,ae,ve,Le,Oe,Ne,Re,He,De,at,Pt,wt,Tt,en,Ut,Me,g,F,W,T,re,Ce=709,xe=723,be=qr;a=t[be(Ce)]||(t[be(Ce)]={}),s=816,r=816,i=1238,o=716,l=816,u=1006,c=1040,d=758,f=717,h=1050,p=736,m=1017,w=717,E=861,v=742,y=1207,b=565,S=601,I=736,C=629,k=841,M=1006,P=622,D=804,V=754,B=1259,Y=895,Z=717,te=648,$=721,H=718,A=648,N=951,le=717,K=717,ae=822,ve=717,Le=1034,Oe=771,Ne=1149,Re=717,He=717,De=1044,at=771,Pt=1259,wt=804,Tt=1296,en=1291,Ut=608,Me=1182,g=672,F=654,W=672,T=n,re=function(){var st=845,$e=1253,Rt=827,dn=1234,Un=484,wn=654,En=1182,Ht=1112,We=726,ut=726,Ue=931,Et=1061,Ke=832,Ct=811,Zt=1212,Dt=1061,Nt=1061,vn=881,or=1061,_r=1039,fn=n;function jn(){}return jn[fn(s)][fn(834)]=function(){var Be=fn,Ae=document[Be(F)](Be(1182));return!(!Ae[Be(W)]||!Ae[Be(W)]("2d"))},jn[fn(r)][fn(i)]=function(Be){var Ae=fn,pn=document[Ae(654)](Ae(Me)),Sn=null;try{Sn=Be==="webgl"?pn.getContext(Ae(505))||pn[Ae(672)]("experimental-webgl"):pn[Ae(g)]("webgl2")}catch{}return Sn},jn[fn(816)][fn(1296)]=function(){var Be=fn;if(!this[Be(834)]())return{supported:!1,type:null};var Ae=this.getWebglCanvas(Be(608));return Ae?{supported:!0,type:Be(608)}:(Ae=this.getWebglCanvas(Be(505)))?{supported:!0,type:Be(505)}:{supported:!1,type:null}},jn.prototype[fn(1013)]=function(){var Be=fn;return this[Be(1296)]()[Be(909)]},jn[fn(r)][fn(o)]=function(){var Be=fn,Ae=this[Be(Tt)](),pn=Ae.supported,Sn=Ae[Be(en)];return pn&&Sn===Be(Ut)},jn[fn(816)][fn(947)]=function(){var Be,Ae,pn,Sn,St=fn,br=document[St(wn)](St(En));try{!(Be=br[St(672)](St(608)))&&!(Be=br.getContext(St(505))||br.getContext(St(Ht)))&&console.log(St(We))}catch{console.log(St(ut))}try{Ae=Be[St(1159)]("WEBGL_debug_renderer_info"),pn=Be.getParameter(Ae[St(Ue)]),Sn=Be[St(Et)](Ae.UNMASKED_RENDERER_WEBGL)}catch{pn=Be.getParameter(Be.VENDOR),Sn=Be[St(1061)](Be[St(Ke)])}return{vendor:pn,renderer:Sn,webglVersion:Be[St(1061)](Be.VERSION),shadingLanguageVersion:Be[St(1061)](Be[St(668)]),extensions:Be[St(534)](),maxTextureSize:Be.getParameter(Be.MAX_TEXTURE_SIZE),maxRenderbufferSize:Be[St(Et)](Be[St(Ct)]),maxTextureImageUnits:Be[St(1061)](Be.MAX_TEXTURE_IMAGE_UNITS),maxVertexTextureImageUnits:Be[St(1061)](Be[St(Zt)]),maxCombinedTextureImageUnits:Be[St(Dt)](Be[St(1171)]),maxVertexAttribs:Be[St(Nt)](Be[St(1316)]),maxVaryingVectors:Be[St(Dt)](Be[St(vn)]),maxVertexUniformVectors:Be[St(or)](Be[St(_r)]),maxFragmentUniformVectors:Be.getParameter(Be[St(782)])}},jn.prototype.getHasLiedLanguages=function(){var Be=fn;if(navigator.languages!==void 0)try{if(navigator.languages[0][Be(Un)](0,2)!==navigator.language[Be(484)](0,2))return!0}catch{return!0}return!1},jn.prototype[fn(866)]=function(){var Be=fn;return window.screen[Be(st)]<window[Be(827)][Be($e)]||window[Be(827)][Be(1100)]<window[Be(Rt)][Be(dn)]},jn[fn(l)].getHasLiedOs=function(){var Be,Ae=fn,pn=navigator[Ae(k)][Ae(M)](),Sn=navigator.oscpu,St=navigator[Ae(P)].toLowerCase();return Be=pn[Ae(717)]("windows phone")>=0?Ae(D):pn[Ae(717)](Ae(V))>=0?Ae(B):pn[Ae(717)](Ae(1034))>=0?Ae(Y):pn[Ae(717)]("linux")>=0||pn.indexOf(Ae(556))>=0?Ae(735):pn[Ae(Z)](Ae(1044))>=0||pn[Ae(717)](Ae(771))>=0?Ae(te):pn.indexOf(Ae($))>=0?Ae(915):"Other",("ontouchstart"in window||navigator[Ae(H)]>0||navigator[Ae(632)]>0)&&Be!=="Windows Phone"&&Be!==Ae(895)&&Be!==Ae(A)&&Be!==Ae(N)||typeof Sn!==Ae(727)&&((Sn=Sn[Ae(1006)]())[Ae(le)]("win")>=0&&Be!==Ae(B)&&Be!==Ae(804)||Sn.indexOf("linux")>=0&&Be!==Ae(735)&&Be!==Ae(895)||Sn.indexOf(Ae(721))>=0&&Be!=="Mac"&&Be!==Ae(A)||(Sn[Ae(717)](Ae(754))===-1&&Sn[Ae(K)](Ae(822))===-1&&Sn[Ae(717)]("mac")===-1)!=(Be==="Other"))?!0:St[Ae(717)](Ae(754))>=0&&Be!==Ae(B)&&Be!==Ae(804)||(St.indexOf(Ae(ae))>=0||St[Ae(ve)](Ae(Le))>=0||St[Ae(Z)](Ae(791))>=0)&&Be!==Ae(735)&&Be!==Ae(895)||(St[Ae(717)](Ae($))>=0||St[Ae(717)](Ae(Oe))>=0||St.indexOf(Ae(Ne))>=0||St.indexOf(Ae(1044))>=0)&&Be!==Ae(915)&&Be!=="iOS"||(St[Ae(717)]("win")<0&&St[Ae(Re)]("linux")<0&&St[Ae(He)](Ae($))<0&&St[Ae(717)](Ae(De))<0&&St.indexOf(Ae(at))<0)!=(Be===Ae(N))||typeof navigator[Ae(1301)]===Ae(727)&&Be!==Ae(Pt)&&Be!==Ae(wt)},jn.prototype[fn(1132)]=function(){var Be,Ae=fn,pn=navigator.userAgent[Ae(u)](),Sn=navigator[Ae(c)];if(((Be=pn.indexOf("firefox")>=0?Ae(d):pn[Ae(f)](Ae(958))>=0||pn.indexOf(Ae(h))>=0?Ae(p):pn.indexOf("chrome")>=0?Ae(m):pn[Ae(w)]("safari")>=0?Ae(E):pn.indexOf(Ae(v))>=0?"Internet Explorer":Ae(951))===Ae(1017)||Be==="Safari"||Be==="Opera")&&Sn!==Ae(y))return!0;var St,br=eval[Ae(b)]()[Ae(S)];if(br===37&&Be!==Ae(E)&&Be!=="Firefox"&&Be!=="Other"||br===39&&Be!==Ae(910)&&Be!=="Other"||br===33&&Be!==Ae(m)&&Be!==Ae(I)&&Be!==Ae(951))return!0;try{throw"a"}catch(xs){try{xs[Ae(C)](),St=!0}catch{St=!1}}return St&&Be!=="Firefox"&&Be!==Ae(951)},jn}(),a[T(xe)]=re}(me||(me={})),function(t){var a,s,r,i,o=816,l=816,u=qr;a=t._POSignalsMetadata||(t[u(709)]={}),s={_0x5e45cd:755},r=n,i=function(){var c=n;function d(f){this[n(s._0x5e45cd)]=f}return d[c(816)][c(1328)]=function(){var f=786,h=1278,p=1141;return dt(this,void 0,void 0,function(){var m,w=this;return ft(this,function(E){var v=n;switch(E.label){case 0:return[4,this[v(f)](window)];case 1:return m=E[v(h)](),[4,this.test(m,v(p),function(){return dt(w,void 0,void 0,function(){var y,b,S=968,I=815,C=935,k=745,M=1239,P=486,D=565;return ft(this,function(V){var B=n;switch(V[B(S)]){case 0:return Object[B(1239)]&&(y=t[B(I)][B(526)].createInvisibleElement("iframe"))?(y[B(929)]=B(C),document[B(k)].appendChild(y),Object[B(M)](HTMLIFrameElement[B(816)])[B(P)][B(952)][B(D)]()!==B(1315)?[2,!0]:y.contentWindow===window?[2,!0]:[4,this.headlessResults(y.contentWindow)]):[2];case 1:return b=V[B(1278)](),y.remove(),[2,b]}})})})];case 2:return E[v(h)](),[2,m]}})})},d[c(o)].headlessResults=function(f){return dt(this,void 0,void 0,function(){var h,p,m=649,w=862,E=528,v=1161,y=649,b=983,S=1048,I=649,C=1278,k=this;return ft(this,function(M){var P=n;switch(M.label){case 0:return h=new Map,(p=[])[P(1161)](this[P(m)](h,"headless_chrome",function(){var D=649;return dt(k,void 0,void 0,function(){return ft(this,function(V){return[2,/HeadlessChrome/[n(D)](f.navigator.userAgent)]})})})),p[P(1161)](this[P(649)](h,P(w),function(){return dt(k,void 0,void 0,function(){return ft(this,function(D){var V=n;return[2,f[V(656)][V(1302)]]})})})),p.push(this.test(h,P(E),function(){var D=649;return dt(k,void 0,void 0,function(){return ft(this,function(V){var B=n;return[2,/Chrome/[B(D)](f.navigator[B(841)])&&!f[B(781)]]})})})),p[P(v)](this[P(649)](h,P(961),function(){return dt(k,void 0,void 0,function(){var D,V=968,B=641,Y=656,Z=1270,te=635;return ft(this,function($){var H=n;switch($[H(V)]){case 0:return f[H(656)][H(B)]&&f[H(536)]?[4,f[H(Y)][H(641)][H(Z)]({name:"notifications"})]:[3,2];case 1:return D=$.sent(),[2,f[H(536)].permission===H(te)&&D[H(865)]===H(605)];case 2:return[2]}})})})),p[P(1161)](this.test(h,P(1193),function(){return dt(k,void 0,void 0,function(){var D,V=1270,B=1021,Y=565,Z=565,te=565,$=1232,H=658;return ft(this,function(A){var N=n;return(D=f[N(656)][N(641)])?D[N(V)][N(565)]()!==N(B)?[2,!0]:D[N(1270)][N(Y)][N(Z)]()!==N(1102)?[2,!0]:D[N(1270)][N(565)][N(1232)](N(734))&&D[N(1270)][N(565)][N(1232)]("[[Target]]")&&D[N(1270)][N(te)][N($)](N(H))?[2,!0]:[2,D[N($)]("query")]:[2]})})})),p[P(v)](this[P(y)](h,P(1158),function(){var D=601;return dt(k,void 0,void 0,function(){return ft(this,function(V){var B=n;return[2,navigator[B(1301)][B(D)]===0]})})})),p[P(1161)](this[P(y)](h,P(b),function(){return dt(k,void 0,void 0,function(){var D=590;return ft(this,function(V){return[2,navigator[n(D)]===""]})})})),p[P(v)](this.test(h,P(S),function(){var D=1301,V=1301;return dt(k,void 0,void 0,function(){var B;return ft(this,function(Y){var Z=n;return B=PluginArray[Z(816)]===navigator[Z(D)][Z(747)],navigator[Z(1301)][Z(601)]>0&&(B=B&&Plugin[Z(816)]===navigator[Z(V)][0][Z(747)]),[2,B]})})})),p[P(v)](this[P(I)](h,"consistent_mimetypes_prototype",function(){return dt(k,void 0,void 0,function(){var D,V=816,B=674,Y=601;return ft(this,function(Z){var te=n;return D=MimeTypeArray[te(V)]===navigator[te(674)][te(747)],navigator[te(B)][te(Y)]>0&&(D=D&&MimeType.prototype===navigator[te(674)][0].__proto__),[2,D]})})})),[4,Promise.all(p)];case 1:return M[P(C)](),[2,h]}})})},d[c(l)][c(649)]=function(f,h,p){return dt(this,void 0,void 0,function(){var m,w,E=968,v=1161,y=815,b=840;return ft(this,function(S){var I=n;switch(S[I(E)]){case 0:return S[I(737)][I(v)]([0,3,,4]),this[I(755)][I(886)](h)?[3,2]:[4,t._POSignalsUtils.Util[I(1138)](100,p())];case 1:(m=S.sent())!=null&&(f[h]=m),S[I(E)]=2;case 2:return[3,4];case 3:return w=S[I(1278)](),t[I(y)][I(599)][I(b)](h+I(530),w),[3,4];case 4:return[2]}})})},d}(),a[r(1249)]=i}(me||(me={})),function(t){var a=qr;(function(s){(t[a(709)]||(t[a(709)]={})).detectIncognitoInternal=function(){var r=857,i={_0x4887ec:1196,_0x596187:649},o={_0x35d710:990};return new Promise(function(l,u){var c={_0x46452b:1095},d={_0x328475:926,_0x303829:569,_0x4e8668:539,_0x41dc0a:1235},f={_0x50ed0b:506,_0x1dbfcf:1228},h=n,p=h(787),m=!1;function w(I){m||(m=!0,l({isPrivate:I,browserName:p}))}function E(){var I=h,C=0,k=parseInt("-1");try{k[I(768)](k)}catch(M){C=M[I(o._0x35d710)].length}return C}function v(){return navigator[h(806)]!==void 0&&function(I){var C=h;try{return I===eval[C(565)]()[C(601)]}catch{return!1}}(39)}function y(){var I=883;return dt(this,void 0,void 0,function(){var C;return ft(this,function(k){var M=n;switch(k[M(968)]){case 0:return typeof((C=navigator[M(I)])===null||C===void 0?void 0:C[M(588)])!==M(974)?[3,2]:[4,function(){var P,D=1161,V=588,B=1278,Y=968,Z=1278,te=990,$=1155;return dt(this,void 0,void 0,function(){var H,A,N;return ft(this,function(le){var K=n;switch(le[K(968)]){case 0:return le[K(737)][K(D)]([0,4,,5]),typeof((H=navigator[K(883)])===null||H===void 0?void 0:H[K(V)])!==K(974)?[3,2]:[4,H[K(588)]()];case 1:return le[K(B)](),w(!1),[3,3];case 2:w(!1),le[K(Y)]=3;case 3:return[3,5];case 4:return A=le[K(Z)](),w(typeof(N=A instanceof Error&&(P=A[K(te)])!==null&&P!==void 0?P:A)===K(1133)&&N[K(539)](K($))),[3,5];case 5:return[2]}})})}()];case 1:return k[M(1278)](),[3,3];case 2:navigator[M(718)]!==void 0?function(){var P=h,D=String(Math.random());try{var V=indexedDB[P(1250)](D,1);V[P(1062)]=function(B){var Y=P,Z=B[Y(967)][Y(d._0x328475)];try{Z[Y(493)]("t",{autoIncrement:!0})[Y(d._0x303829)](new Blob),w(!1)}catch(te){w((te.message||"")[Y(d._0x4e8668)]("are not yet supported"))}finally{Z.close(),indexedDB[Y(d._0x41dc0a)](D)}},V[P(510)]=function(){return w(!1)}}catch{w(!1)}}():function(){var P=h;try{window[P(i._0x4887ec)](null,null,null,null)}catch{return w(!0)}try{localStorage[P(746)](P(649),"1"),localStorage.removeItem(P(i._0x596187))}catch{return w(!0)}w(!1)}(),k.label=3;case 3:return[2]}})})}function b(){var I=h;navigator[I(757)].queryUsageAndQuota(function(C,k){var M,P,D,V,B=I;w(Math.round(k/1048576)<2*Math[B(c._0x46452b)]((D=h,((V=(P=(M=performance)===null||M===void 0?void 0:M.memory)===null||P===void 0?void 0:P[D(793)])!==null&&V!==void 0?V:1073741824)/1048576)))},function(C){var k=I;u(new Error(k(1191)+C[k(990)]))})}function S(){var I=h;self[I(1289)]&&self[I(1289)][I(1216)]?b():(0,window[h(1194)])(0,1,function(){return w(!1)},function(){return w(!0)})}(function(){var I=910;return dt(this,void 0,void 0,function(){return ft(this,function(C){var k,M,P=n;switch(C[P(968)]){case 0:return E()!==44?[3,2]:(p="Safari",[4,y()]);case 1:return C[P(1278)](),[3,6];case 2:return E()!==51?[3,3]:(k=h,M=navigator[k(841)],p=M[k(f._0x50ed0b)](/Chrome/)?navigator.brave!==void 0?k(f._0x1dbfcf):M[k(506)](/Edg/)?"Edge":M.match(/OPR/)?k(736):k(1017):"Chromium",S(),[3,6]);case 3:return E()!==25?[3,5]:(p="Firefox",[4,function(){var D=588,V=737,B=1161,Y=1133,Z=1122;return dt(this,void 0,void 0,function(){var te,$,H;return ft(this,function(A){var N=n;switch(A.label){case 0:if(typeof((te=navigator[N(883)])===null||te===void 0?void 0:te[N(D)])!==N(974))return[3,5];A[N(968)]=1;case 1:return A[N(V)][N(B)]([1,3,,4]),[4,te[N(588)]()];case 2:return A.sent(),w(!1),[3,4];case 3:return $=A[N(1278)](),w(typeof(H=$ instanceof Error?$[N(990)]:String($))===N(Y)&&H[N(539)](N(Z))),[2];case 4:return[3,6];case 5:w(navigator.serviceWorker===void 0),A[N(968)]=6;case 6:return[2]}})})}()]);case 4:return C.sent(),[3,6];case 5:v()?(p=P(I),w(window[h(496)]===void 0)):u(new Error("Browser unknown")),C[P(968)]=6;case 6:return[2]}})})})()[h(r)](u)})}})()}(me||(me={})),function(t){var a,s,r,i,o,l,u,c,d,f,h,p,m,w,E,v=733,y=qr;a=t._POSignalsMetadata||(t[y(709)]={}),s=1071,r=816,i=829,o=899,l=781,u=950,c=1059,d=739,f=1279,h=816,p=974,m=882,w=n,E=function(){var b=816,S=764,I=816,C=565,k=899,M=727,P=849,D=886,V=901,B=875,Y=549,Z=1237,te=926,$=n;function H(A){this.propertyBlackList=A,this.result={}}return H[$(816)].documentLie=function(A,N){var le=$;if(N.lied)for(var K=0,ae=N[le(Z)];K<ae.length;K++){var ve=ae[K];!this[le(te)][ve]&&(this.result[ve]=[]),this[le(926)][ve][le(1161)](A)}},H[$(816)][$(1195)]=function(A,N,le){var K=1099,ae=$,ve=this;if(le===void 0&&(le=null),typeof A!=ae(p))return{lied:!1,lieTypes:[]};var Le=A.name.replace(/get\s/,""),Oe={undefined_properties:function(){return!!le&&H[ae(1173)](le,Le)},to_string:function(){var Re=ae;return H.getToStringLie(A,Le,ve[Re(K)])},prototype_in_function:function(){return H[ae(Y)](A)},own_property:function(){return H[ae(B)](A)},object_to_string_error:function(){return H[ae(829)](A)}},Ne=Object[ae(m)](Oe)[ae(606)](function(Re){var He=ae;return!ve.propertyBlackList[He(D)](He(V)+Re)&&!!Oe[Re]()});return{lied:Ne[ae(601)]>0,lieTypes:Ne}},H[$(816)][$(s)]=function(){return dt(this,void 0,void 0,function(){var A,N=755,le=945,K=815,ae=991,ve=1243,Le=745,Oe=996,Ne=1258,Re=500,He=769,De=500,at=623,Pt=844,wt=500,Tt=1220,en=500,Ut=1301,Me=1278,g=481,F=926;return ft(this,function(W){var T=n;switch(W.label){case 0:return this[T(N)].has(T(le))?[2,this.result]:(!this[T(755)].has("LIES_IFRAME")&&(A=t[T(K)].Util[T(ae)](T(ve)))&&(document[T(Le)][T(Oe)](A),this[T(1099)]=A),[4,Promise[T(Ne)]([this[T(Re)](function(){return AnalyserNode},{target:["minDecibels"]}),this[T(500)](function(){return AudioBuffer},{target:[T(He)]}),this[T(500)](function(){return BiquadFilterNode},{target:[T(1120)]}),this[T(Re)](function(){return CanvasRenderingContext2D},{target:["getLineDash"]}),this[T(500)](function(){return DOMRect},{target:[T(1100)]}),this[T(De)](function(){return DOMRectReadOnly},{target:[T(at)]}),this[T(500)](function(){return Element},{target:[T(Pt)]}),this[T(wt)](function(){return HTMLCanvasElement},{target:[T(1100)]}),this[T(wt)](function(){return Math},{target:[T(687)]}),this.searchLies(function(){return MediaDevices},{target:[T(Tt)]}),this[T(en)](function(){return Navigator},{target:[T(Ut)]}),this[T(Re)](function(){return OffscreenCanvasRenderingContext2D},{target:[T(489)]}),this[T(500)](function(){return SVGRect},{target:["x"]})])]);case 1:return W[T(Me)](),this[T(1099)][T(g)](),[2,this[T(F)]]}})})},H[$(r)][$(500)]=function(A,N){var le=816,K=1140,ae={_0x5c76d2:727},ve=$,Le=N===void 0?{}:N,Oe=Le.target,Ne=Oe===void 0?[]:Oe,Re=Le[ve(479)],He=Re===void 0?[]:Re;return dt(this,void 0,void 0,function(){var De=533,at=886,Pt=1114,wt=649,Tt=700,en=816,Ut=1195,Me=1195,g=599,F,W,T=this;return ft(this,function(re){var Ce,xe=n;try{if(F=A(),typeof(Ce=F)==n(ae._0x5c76d2)||!Ce)return[2]}catch{return[2]}return W=F[xe(le)]?F.prototype:F,Object[xe(984)](W)[xe(K)](function(be){var st=xe;if(!(be==st(De)||Ne.length&&!new Set(Ne)[st(at)](be)||He[st(601)]&&new Set(He).has(be))){var $e=/\s(.+)\]/,Rt=(F[st(Pt)]?F.name:$e[st(wt)](F)?$e[st(Tt)](F)[1]:void 0)+"."+be;try{var dn=F[st(en)]?F[st(816)]:F;try{if(typeof dn[be]=="function"){var Un=T[st(Ut)](dn[be],dn);return void T[st(554)](Rt,Un)}}catch{}var wn=Object[st(849)](dn,be)[st(952)],En=T[st(Me)](wn,dn,F);T[st(554)](Rt,En)}catch(Ht){t._POSignalsUtils[st(g)][st(840)](st(797)+be+" test execution",Ht)}}}),[2]})})},H[$(1173)]=function(A,N){var le=$,K=A[le(1114)],ae=window[K.charAt(0).toLowerCase()+K[le(k)](1)];return!!ae&&(typeof Object[le(849)](ae,N)!=le(M)||Reflect[le(P)](ae,N)!==void 0)},H.getToStringLie=function(A,N,le){var K,ae,ve=1244,Le=1143,Oe=1152,Ne=939,Re=$;try{K=le[Re(764)][Re(816)][Re(565)][Re(675)](A)}catch{}try{ae=le[Re(S)][Re(I)][Re(C)].call(A[Re(C)])}catch{}var He=K||A[Re(565)](),De=ae||A[Re(565)][Re(565)](),at=function(Pt){var wt,Tt=Re;return(wt={})[Tt(1143)+Pt+"() { [native code] }"]=!0,wt[Tt(ve)+Pt+Tt(1333)]=!0,wt[Tt(1254)]=!0,wt[Tt(Le)+Pt+Tt(Oe)+`
|
|
17
|
+
`+Tt(Ne)+`
|
|
18
|
+
}`]=!0,wt[Tt(1244)+Pt+`() {
|
|
19
|
+
`+Tt(939)+`
|
|
20
|
+
}`]=!0,wt[Tt(992)+`
|
|
21
|
+
[native code]
|
|
22
|
+
}`]=!0,wt};return!at(N)[He]||!at(Re(565))[De]},H[$(549)]=function(A){return $(b)in A},H[$(875)]=function(A){var N=$;return A[N(1232)](N(d))||A[N(1232)](N(f))||A.hasOwnProperty(N(h))||A.hasOwnProperty("toString")},H[$(i)]=function(A){var N=649,le=$;try{return Object[le(592)](A)[le(565)](),!0}catch(Ne){var K=Ne.stack[le(647)](`
|
|
23
|
+
`),ae=/at Object\.apply/,ve=!K[le(o)](1)[le(937)](function(Re){return ae[le(N)](Re)}),Le=Ne.constructor[le(1114)]=="TypeError"&&K[le(601)]>1,Oe=le(l)in window||a[le(u)][le(c)]();return!(!Le||!Oe||/at Function\.toString/[le(649)](K[1])&&ve)||!Le}},H}(),a[w(v)]=E}(me||(me={})),function(t){var a,s,r,i,o,l,u=798,c=1094,d=qr;a=t[d(709)]||(t[d(709)]={}),s=816,r=933,i={_0x3ea1cb:755},o=n,l=function(){var f=1168,h=542,p=647,m=649,w=938,E=781,v=950,y=1094,b=926,S=1046,I=565,C=1046,k=781,M=902,P=533,D=938,V=558,B=929,Y=n;function Z(te){var $=n;this[$(i._0x3ea1cb)]=te,this[$(926)]=new Map}return Z[Y(816)][Y(660)]=function(){var te=1243,$=815,H=526,A=Y;return this[A(y)]("srcdoc_throws_error",function(){var N=A;try{return!!document[N(654)](N(1243))[N(B)]}catch{return!0}}),this.addStealthTest("srcdoc_triggers_window_proxy",function(){var N=A,le=document[N(654)](N(te));return le.srcdoc=""+t[N($)][N(H)].hashMini(crypto[N(1287)](new Uint32Array(10))),!!le.contentWindow}),this.addStealthTest(A(749),function(){var N=A,le="cookieStore"in window?N(1065):N(558)in window?N(V):N(740),K=[];for(var ae in window)K[N(1161)](ae);return K.indexOf("chrome")>K[N(717)](le)}),this[A(1094)](A(957),function(){var N=A;if(!(N(k)in window&&N(902)in window.chrome))return!1;try{return N(816)in window[N(781)][N(M)][N(867)]||N(816)in window[N(781)][N(902)][N(969)]||(new window[N(k)][N(M)][N(867)],new window[N(k)][N(M)].connect,!0)}catch(le){return le[N(P)][N(1114)]!=N(D)}}),this[A(1094)]("Function_prototype_toString_invalid_typeError",function(){var N=A,le=new Z.StackTraceTester;return le[N(S)](Function.prototype[N(I)])||le[N(C)](function(){})}),this[A(b)]},Z[Y(816)][Y(c)]=function(te,$){var H=Y;if(!this.propertyBlackList[H(886)](te))try{this.result[te]=$()}catch(A){t._POSignalsUtils.Logger[H(840)](H(772)+te+H(r),A)}},Z[Y(835)]=function(){var te=Y;function $(){}return $[te(s)][te(1046)]=function(H){var A=te,N=this;try{return this[A(f)]=function(){var Le=A;return Object[Le(592)](H)[Le(565)]()},this.cant=function(){return N[A(1168)]()},this[A(h)]=function(){return N[A(1257)]()},this[A(542)](),!0}catch(Le){var le=Le[A(1242)][A(p)](`
|
|
24
|
+
`),K=!/at Object\.apply/[A(m)](le[1]),ae=Le[A(533)][A(1114)]==A(w)&&le.length>=5,ve=A(E)in window||a[A(v)][A(1059)]();return!(!ae||!ve||K&&/at Function\.toString/[A(649)](le[1])&&/\.you/.test(le[2])&&/\.cant/[A(649)](le[3])&&/\.hide/.test(le[4]))||!ae}},$}(),Z}(),a[o(u)]=l}(me||(me={})),function(t){var a,s,r,i,o,l=qr;a=t[l(709)]||(t[l(709)]={}),s=1045,r=893,i=n,o=function(){var u=n;function c(){}return c[u(1337)]=function(){var d=u;return t[d(709)][d(s)]()[d(r)](function(f){return f.isPrivate})[d(857)](function(){return!1})},c}(),a[i(559)]=o}(me||(me={}));var za=function(){var t=function(a,s){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])})(a,s)};return function(a,s){function r(){this.constructor=a}t(a,s),a.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}}();dt=function(t,a,s,r){return new(s||(s=Promise))(function(i,o){function l(d){try{c(r.next(d))}catch(f){o(f)}}function u(d){try{c(r.throw(d))}catch(f){o(f)}}function c(d){var f;d.done?i(d.value):(f=d.value,f instanceof s?f:new s(function(h){h(f)})).then(l,u)}c((r=r.apply(t,a||[])).next())})},ft=function(t,a){var s,r,i,o,l={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(c){return function(d){return function(f){if(s)throw new TypeError("Generator is already executing.");for(;l;)try{if(s=1,r&&(i=2&f[0]?r.return:f[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,f[1])).done)return i;switch(r=0,i&&(f=[2&f[0],i.value]),f[0]){case 0:case 1:i=f;break;case 4:return l.label++,{value:f[1],done:!1};case 5:l.label++,r=f[1],f=[0];continue;case 7:f=l.ops.pop(),l.trys.pop();continue;default:if(!(i=(i=l.trys).length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){l=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){l.label=f[1];break}if(f[0]===6&&l.label<i[1]){l.label=i[1],i=f;break}if(i&&l.label<i[2]){l.label=i[2],l.ops.push(f);break}i[2]&&l.ops.pop(),l.trys.pop();continue}f=a.call(t,l)}catch(h){f=[6,h],r=0}finally{s=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([c,d])}}},Zn=function(){return(Zn=Object.assign||function(t){for(var a,s=1,r=arguments.length;s<r;s++)for(var i in a=arguments[s])Object.prototype.hasOwnProperty.call(a,i)&&(t[i]=a[i]);return t}).apply(this,arguments)},yo=function(){for(var t=0,a=0,s=arguments.length;a<s;a++)t+=arguments[a].length;var r=Array(t),i=0;for(a=0;a<s;a++)for(var o=arguments[a],l=0,u=o.length;l<u;l++,i++)r[i]=o[l];return r},function(t){(function(a){a[a.Unknown=0]="Unknown",a[a.FlingRight=1]="FlingRight",a[a.FlingLeft=2]="FlingLeft",a[a.FlingUp=3]="FlingUp",a[a.FlingDown=4]="FlingDown",a[a.Diagonal=5]="Diagonal",a[a.ScrollRight=6]="ScrollRight",a[a.ScrollLeft=7]="ScrollLeft",a[a.ScrollUp=8]="ScrollUp",a[a.ScrollDown=9]="ScrollDown",a[a.Tap=10]="Tap",a[a.DoubleTap=11]="DoubleTap"})(t.GestureType||(t.GestureType={}))}(me||(me={})),function(t){var a=function(){function h(p,m){this.handler=p,this.isOnce=m,this.isExecuted=!1}return h.prototype.execute=function(p,m,w){if(!this.isOnce||!this.isExecuted){this.isExecuted=!0;var E=this.handler;p?setTimeout(function(){E.apply(m,w)},1):E.apply(m,w)}},h}(),s=function(){function h(){this._wrap=new l(this),this._subscriptions=new Array}return h.prototype.subscribe=function(p){p&&this._subscriptions.push(new a(p,!1))},h.prototype.sub=function(p){this.subscribe(p)},h.prototype.one=function(p){p&&this._subscriptions.push(new a(p,!0))},h.prototype.has=function(p){if(p){for(var m=0,w=this._subscriptions;m<w.length;m++)if(w[m].handler==p)return!0}return!1},h.prototype.unsubscribe=function(p){if(p){for(var m=0;m<this._subscriptions.length;m++)if(this._subscriptions[m].handler==p){this._subscriptions.splice(m,1);break}}},h.prototype.unsub=function(p){this.unsubscribe(p)},h.prototype._dispatch=function(p,m,w){for(var E=0;E<this._subscriptions.length;E++){var v=this._subscriptions[E];if(v.isOnce){if(v.isExecuted===!0)continue;this._subscriptions.splice(E,1),E--}v.execute(p,m,w)}},h.prototype.asEvent=function(){return this._wrap},h}();t.DispatcherBase=s;var r=function(h){function p(){return h!==null&&h.apply(this,arguments)||this}return za(p,h),p.prototype.dispatch=function(m,w){this._dispatch(!1,this,arguments)},p.prototype.dispatchAsync=function(m,w){this._dispatch(!0,this,arguments)},p}(s);t.EventDispatcher=r;var i=function(h){function p(){return h!==null&&h.apply(this,arguments)||this}return za(p,h),p.prototype.dispatch=function(m){this._dispatch(!1,this,arguments)},p.prototype.dispatchAsync=function(m){this._dispatch(!0,this,arguments)},p}(s),o=function(h){function p(){return h!==null&&h.apply(this,arguments)||this}return za(p,h),p.prototype.dispatch=function(){this._dispatch(!1,this,arguments)},p.prototype.dispatchAsync=function(){this._dispatch(!0,this,arguments)},p}(s),l=function(){function h(p){this._subscribe=function(m){return p.subscribe(m)},this._unsubscribe=function(m){return p.unsubscribe(m)},this._one=function(m){return p.one(m)},this._has=function(m){return p.has(m)}}return h.prototype.subscribe=function(p){this._subscribe(p)},h.prototype.sub=function(p){this.subscribe(p)},h.prototype.unsubscribe=function(p){this._unsubscribe(p)},h.prototype.unsub=function(p){this.unsubscribe(p)},h.prototype.one=function(p){this._one(p)},h.prototype.has=function(p){return this._has(p)},h}(),u=function(){function h(){this._events={}}return h.prototype.get=function(p){var m=this._events[p];return m||(m=this.createDispatcher(),this._events[p]=m,m)},h.prototype.remove=function(p){this._events[p]=null},h}(),c=function(h){function p(){return h!==null&&h.apply(this,arguments)||this}return za(p,h),p.prototype.createDispatcher=function(){return new r},p}(u),d=function(h){function p(){return h!==null&&h.apply(this,arguments)||this}return za(p,h),p.prototype.createDispatcher=function(){return new i},p}(u),f=function(h){function p(){return h!==null&&h.apply(this,arguments)||this}return za(p,h),p.prototype.createDispatcher=function(){return new o},p}(u);(function(){function h(){this._events=new c}Object.defineProperty(h.prototype,"events",{get:function(){return this._events},enumerable:!1,configurable:!0}),h.prototype.subscribe=function(p,m){this._events.get(p).subscribe(m)},h.prototype.sub=function(p,m){this.subscribe(p,m)},h.prototype.unsubscribe=function(p,m){this._events.get(p).unsubscribe(m)},h.prototype.unsub=function(p,m){this.unsubscribe(p,m)},h.prototype.one=function(p,m){this._events.get(p).one(m)},h.prototype.has=function(p,m){return this._events.get(p).has(m)}})(),function(){function h(){this._events=new d}Object.defineProperty(h.prototype,"events",{get:function(){return this._events},enumerable:!1,configurable:!0}),h.prototype.subscribe=function(p,m){this._events.get(p).subscribe(m)},h.prototype.sub=function(p,m){this.subscribe(p,m)},h.prototype.one=function(p,m){this._events.get(p).one(m)},h.prototype.has=function(p,m){return this._events.get(p).has(m)},h.prototype.unsubscribe=function(p,m){this._events.get(p).unsubscribe(m)},h.prototype.unsub=function(p,m){this.unsubscribe(p,m)}}(),function(){function h(){this._events=new f}Object.defineProperty(h.prototype,"events",{get:function(){return this._events},enumerable:!1,configurable:!0}),h.prototype.one=function(p,m){this._events.get(p).one(m)},h.prototype.has=function(p,m){return this._events.get(p).has(m)},h.prototype.subscribe=function(p,m){this._events.get(p).subscribe(m)},h.prototype.sub=function(p,m){this.subscribe(p,m)},h.prototype.unsubscribe=function(p,m){this._events.get(p).unsubscribe(m)},h.prototype.unsub=function(p,m){this.unsubscribe(p,m)}}()}(me||(me={})),function(t){var a=function(){function s(r){this._isStarted=!1,this._isEventsStarted=!1,this._gestureTimestamps=[],this._maxSensorSamples=0,this._sensorsTimestampDeltaInMillis=0,this._accelerometerList=[],this._gyroscopeList=[],this._linearAccelerometerList=[],this._rotationList=[],this.orientationImplementationFix=1,this.delegate=r,window.navigator.userAgent.match(/^.*(iPhone|iPad).*(OS\s[0-9]).*(CriOS|Version)\/[.0-9]*\sMobile.*$/i)&&(this.orientationImplementationFix=-1),this.accelerometerUpdateHandle=this.accelerometerUpdate.bind(this),this.orientationUpdateHandle=this.orientationUpdate.bind(this)}return Object.defineProperty(s.prototype,"LAST_GESTURE_SENSOR_TIMEOUT_MILI_SECONDS",{get:function(){return 3e3},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"accX",{get:function(){return this._accX},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"accY",{get:function(){return this._accY},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"accZ",{get:function(){return this._accZ},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"lienarAccX",{get:function(){return this._lienarAccX},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"lienarAccY",{get:function(){return this._lienarAccY},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"lienarAccZ",{get:function(){return this._lienarAccZ},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isStarted",{get:function(){return this._isStarted},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"rotX",{get:function(){return this._rotX},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"rotY",{get:function(){return this._rotY},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"rotZ",{get:function(){return this._rotZ},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"maxSensorSamples",{get:function(){return this._maxSensorSamples},set:function(r){this._maxSensorSamples=r},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"sensorsTimestampDeltaInMillis",{get:function(){return this._sensorsTimestampDeltaInMillis},set:function(r){this._sensorsTimestampDeltaInMillis=r},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"accelerometerList",{get:function(){return this.getRelevantSensorSamples(this._accelerometerList)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"gyroscopeList",{get:function(){return this.getRelevantSensorSamples(this._gyroscopeList)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"linearAccelerometerList",{get:function(){return this.getRelevantSensorSamples(this._linearAccelerometerList)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"rotationList",{get:function(){return this._rotationList},enumerable:!1,configurable:!0}),s.prototype.start=function(){this._isStarted||(this._isStarted=!0,t._POSignalsUtils.Logger.debug("Sensor events started..."))},s.prototype.getRotationListCopy=function(){return this._rotationList?Array.from(this._rotationList):[]},s.prototype.stop=function(){this._isStarted&&(window.DeviceMotionEvent!=null&&window.removeEventListener("devicemotion",this.accelerometerUpdateHandle,!0),window.DeviceOrientationEvent&&window.removeEventListener("deviceorientation",this.orientationUpdateHandle,!0),this._isStarted=!1,t._POSignalsUtils.Logger.debug("Sensor events stopped"))},s.prototype.getRelevantSensorSamples=function(r){if(r.length==0||this._sensorsTimestampDeltaInMillis<1||this._gestureTimestamps.length==0)return r;for(var i=new Map,o=null,l=0,u=0;u<r.length;u++)for(var c=0;c<this._gestureTimestamps.length;c++)(l=r[u].timestamp)>=(o=this._gestureTimestamps[c]).start-this._sensorsTimestampDeltaInMillis&&l<=o.end+this._sensorsTimestampDeltaInMillis&&i.set(r[u].timestamp,r[u]);return t._POSignalsUtils.Util.getValuesOfMap(i)},s.prototype.stopEvents=function(){this._isEventsStarted&&(window.DeviceMotionEvent!=null&&window.removeEventListener("devicemotion",this.accelerometerUpdateHandle,!0),window.DeviceOrientationEvent&&window.removeEventListener("deviceorientation",this.orientationUpdateHandle,!0),this._isEventsStarted=!1,t._POSignalsUtils.Logger.debug("Sensor events stopped listening"))},s.prototype.startEvents=function(){this._isEventsStarted||(window.DeviceMotionEvent!=null?this.delegate.addEventListener(window,"devicemotion",this.accelerometerUpdateHandle,!0):t._POSignalsUtils.Logger.warn("DeviceMotion not supported!"),window.DeviceOrientationEvent?this.delegate.addEventListener(window,"deviceorientation",this.orientationUpdateHandle,!0):t._POSignalsUtils.Logger.warn("DeviceOrientation not supported!"),t._POSignalsUtils.Logger.debug("Sensor events start listening..."),this._isEventsStarted=!0)},s.prototype.reset=function(){this._accelerometerList=[],this._gyroscopeList=[],this._linearAccelerometerList=[],this._rotationList=[],this._gestureTimestamps.length>0?this._gestureTimestamps=[this._gestureTimestamps[this._gestureTimestamps.length-1]]:this._gestureTimestamps=[],this._accX=0,this._accY=0,this._accZ=0,this._rotX=0,this._rotY=0,this._rotZ=0},s.prototype.onGesture=function(r){this._isEventsStarted||this.startEvents(),r.events.length>1&&this._gestureTimestamps.push({start:r.events[0].eventTs,end:r.events[r.events.length-1].eventTs})},s.prototype.puaseSensorsCollectionIfNoActivity=function(r){return(this._gestureTimestamps.length>0?this._gestureTimestamps[this._gestureTimestamps.length-1].end:0)>0?Math.abs(r-this._gestureTimestamps[this._gestureTimestamps.length-1].end)>this.LAST_GESTURE_SENSOR_TIMEOUT_MILI_SECONDS&&(this.stopEvents(),!0):(this.stopEvents(),!0)},s.prototype.getDeviceAcceleration=function(r){return r&&r.x!=null&&r.y!=null&&r.z!=null?r:null},s.prototype.accelerometerUpdate=function(r){try{if(!this.delegate.collectBehavioralData()||this.puaseSensorsCollectionIfNoActivity(t._POSignalsUtils.Util.now()))return;var i=this.getDeviceAcceleration(r.accelerationIncludingGravity);i&&(this._accX=i.x*this.orientationImplementationFix,this._accY=i.y*this.orientationImplementationFix,this._accZ=i.z,this.safeAddSensorSample({x:this._accX,y:this._accY,z:this._accX,timestamp:t._POSignalsUtils.Util.now()},this._accelerometerList));var o=this.getDeviceAcceleration(r.acceleration);o&&(this._lienarAccX=o.x*this.orientationImplementationFix,this._lienarAccY=o.y*this.orientationImplementationFix,this._lienarAccZ=o.z,this.safeAddSensorSample({x:this._lienarAccX,y:this._lienarAccY,z:this._lienarAccZ,timestamp:t._POSignalsUtils.Util.now()},this._linearAccelerometerList)),r.rotationRate&&r.rotationRate.alpha!=null&&r.rotationRate.beta!=null&&r.rotationRate.gamma!=null&&(this._rotX=r.rotationRate.alpha,this._rotY=r.rotationRate.beta,this._rotZ=r.rotationRate.gamma,this.safeAddSensorSample({x:this._rotX,y:this._rotY,z:this._rotZ,timestamp:t._POSignalsUtils.Util.now()},this._gyroscopeList))}catch(l){t._POSignalsUtils.Logger.warn("error in accelerometer handler",l)}},s.prototype.orientationUpdate=function(r){try{if(!this.delegate.collectBehavioralData()||this.puaseSensorsCollectionIfNoActivity(t._POSignalsUtils.Util.now()))return;r.alpha!=null&&r.beta!=null&&r.gamma!=null&&this.safeAddSensorSample({x:r.alpha,y:r.beta,z:r.gamma,timestamp:t._POSignalsUtils.Util.now()},this._rotationList)}catch(i){t._POSignalsUtils.Logger.warn("error in orientation handler",i)}},s.prototype.safeAddSensorSample=function(r,i){this.maxSensorSamples>i.length&&i.push(r)},s}();t.Sensors=a}(me||(me={})),function(t){var a=function(){function s(){this._pointerParams=new t.PointerParams}return Object.defineProperty(s,"instance",{get:function(){return s._instance||(s._instance=new s),s._instance},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"pointerParams",{get:function(){return this._pointerParams},enumerable:!1,configurable:!0}),s}();t.PointerConfig=a}(me||(me={})),function(t){var a;(function(r){r[r.Up=1]="Up",r[r.Down=2]="Down",r[r.Left=3]="Left",r[r.Right=4]="Right"})(a||(a={}));var s=function(){function r(i,o){this.BEHAVIORAL_TYPE="gestures",this._isStarted=!1,this._onGesture=new t.EventDispatcher,this.touchSnapshotsMap=new Map,this.snapshotStartTime=new Map,this.delegate=i,this.sensors=o,this.touchStartHandler=this.touchStart.bind(this),this.touchMoveHandler=this.touchMove.bind(this),this.touchEndHandler=this.touchEnd.bind(this),this.touchCancelHandler=this.touchCancel.bind(this)}return Object.defineProperty(r.prototype,"onGesture",{get:function(){return this._onGesture.asEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isStarted",{get:function(){return this._isStarted},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"SCROLL_MIN_DURATION",{get:function(){return 500},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"SWIPE_MAX_ANGLE",{get:function(){return 45},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"TAP_MOVEMENT_TRESHOLD",{get:function(){return 10},enumerable:!1,configurable:!0}),r.prototype.countEvents=function(i){for(var o={epochTs:Date.now()},l=0,u=i;l<u.length;l++){var c=u[l];o[c.type]=(o[c.type]||0)+1}return o},r.prototype.clearTouchSnapshots=function(i){this.touchSnapshotsMap.delete(i),this.snapshotStartTime.delete(i)},r.prototype.getTouchSnapshots=function(i){var o;return this.touchSnapshotsMap.has(i)?o=this.touchSnapshotsMap.get(i):(o=[],this.touchSnapshotsMap.set(i,o)),o},r.prototype.isEmpty=function(){return this.touchSnapshotsMap.size===0},r.prototype.start=function(){this._isStarted||(this.delegate.addEventListener(document,"touchstart",this.touchStartHandler),this.delegate.addEventListener(document,"touchmove",this.touchMoveHandler),this.delegate.addEventListener(document,"touchend",this.touchEndHandler),this.delegate.addEventListener(document,"touchcancel",this.touchCancelHandler),this._isStarted=!0)},r.prototype.stop=function(){this._isStarted&&(document.removeEventListener("touchstart",this.touchStartHandler),document.removeEventListener("touchmove",this.touchMoveHandler),document.removeEventListener("touchend",this.touchEndHandler),document.removeEventListener("touchcancel",this.touchCancelHandler),this._isStarted=!1)},r.prototype.touchStart=function(i){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||t.PointerConfig.instance.pointerParams.eventsToIgnore.has(i.type))return;t._POSignalsUtils.Logger.debug("touchstart("+i.changedTouches.length+")",i),i.changedTouches.length>0&&this.pushSnapshot(i)}catch(o){t._POSignalsUtils.Logger.warn("error in touchStart handler",o)}},r.prototype.touchMove=function(i){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||t.PointerConfig.instance.pointerParams.eventsToIgnore.has(i.type))return;t._POSignalsUtils.Logger.debug("touchmove("+i.changedTouches.length+")",i),i.changedTouches.length>0&&this.pushSnapshot(i)}catch(o){t._POSignalsUtils.Logger.warn("error in touchMove handler",o)}},r.prototype.touchEnd=function(i){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return void this._onGesture.dispatch(this,null);if(t.PointerConfig.instance.pointerParams.eventsToIgnore.has(i.type))return;t._POSignalsUtils.Logger.debug("touchend("+i.changedTouches.length+")",i),this.gestureEnd(i)}catch(o){t._POSignalsUtils.Logger.warn("error in touchEnd handler",o)}},r.prototype.touchCancel=function(i){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return void this._onGesture.dispatch(this,null);if(t.PointerConfig.instance.pointerParams.eventsToIgnore.has(i.type))return;t._POSignalsUtils.Logger.debug("touchcancel("+i.changedTouches.length+")",i),this.gestureEnd(i)}catch(o){t._POSignalsUtils.Logger.warn("error in touchCancel handler",o)}},r.prototype.gestureEnd=function(i){i.changedTouches.length>0&&this.pushSnapshot(i);for(var o=0;o<i.changedTouches.length;o++){var l=i.changedTouches.item(o),u=this.getTouchSnapshots(l.identifier);u.length>0&&(this.isTap(u)?this.dispatchGesture(t.GestureType.Tap,l.identifier):this.dispatchGesture(this.calcGestureType(u),l.identifier))}},r.prototype.calcGestureType=function(i){var o,l=this.getDirection(i);if(this.isFling(i))switch(l){case a.Up:o=t.GestureType.FlingUp;break;case a.Right:o=t.GestureType.FlingRight;break;case a.Down:o=t.GestureType.FlingDown;break;case a.Left:o=t.GestureType.FlingLeft}else if(this.isScroll(i))switch(l){case a.Up:o=t.GestureType.ScrollUp;break;case a.Right:o=t.GestureType.ScrollRight;break;case a.Down:o=t.GestureType.ScrollDown;break;case a.Left:o=t.GestureType.ScrollLeft}return o},r.prototype.pushSnapshot=function(i){if(i.changedTouches&&i.changedTouches.length>0)for(var o,l=function(){var d=i.changedTouches.item(c);o=d.radiusX&&d.radiusY?(d.radiusX+d.radiusY)/2:null,u.snapshotStartTime.has(d.identifier)||u.snapshotStartTime.set(d.identifier,Date.now());var f=u.getTouchSnapshots(d.identifier);f.length<t.PointerConfig.instance.pointerParams.maxSnapshotsCount&&f.push({type:i.type,eventTs:i.timeStamp,epochTs:Date.now(),relativeX:d.screenX,relativeY:d.screenY,x:d.clientX,y:d.clientY,pressure:d.force,size:o,xaccelerometer:u.sensors.accX,yaccelerometer:u.sensors.accY,zaccelerometer:u.sensors.accZ,xlinearaccelerometer:u.sensors.lienarAccX,ylinearaccelerometer:u.sensors.lienarAccY,zlinearaccelerometer:u.sensors.lienarAccZ,xrotation:u.sensors.rotX,yrotation:u.sensors.rotY,zrotation:u.sensors.rotZ,radiusX:d.radiusX,radiusY:d.radiusY,rotationAngle:d.rotationAngle,pageX:d.pageX,pageY:d.pageY,getX:function(){return d.screenX},getY:function(){return d.screenY}})},u=this,c=0;c<i.changedTouches.length;c++)l()},r.prototype.dispatchGesture=function(i,o){var l=this.touchSnapshotsMap.get(o)||[],u=l.filter(function(c){return c.type==="touchmove"});this._onGesture.dispatch(this,{epochTs:this.snapshotStartTime.get(o)||0,counter:this.delegate.gesturesCounter,type:i,events:l,eventCounters:this.countEvents(l),duration:this.delegate.getInteractionDuration(l),additionalData:this.delegate.additionalData,uiControl:void 0,timeProximity:t._POSignalsUtils.Util.calculateMeanTimeDeltasBetweenEvents(u),meanEuclidean:t._POSignalsUtils.Util.calculateMeanDistanceBetweenPoints(u),reduction:{},quality:""}),this.clearTouchSnapshots(o)},r.prototype.isTap=function(i){var o=Math.abs(i[0].x-i[1].x),l=Math.abs(i[0].y-i[1].y);return i.length==2&&o<this.TAP_MOVEMENT_TRESHOLD&&l<this.TAP_MOVEMENT_TRESHOLD},r.prototype.isFling=function(i){return i.length>1&&i[i.length-1].eventTs-i[0].eventTs<this.SCROLL_MIN_DURATION},r.prototype.isScroll=function(i){return i.length>1&&i[i.length-1].eventTs-i[0].eventTs>this.SCROLL_MIN_DURATION},r.prototype.getDirection=function(i){var o=this.calcAngle(i[0],i[i.length-1]);return o>90-this.SWIPE_MAX_ANGLE&&o<=90+this.SWIPE_MAX_ANGLE?a.Up:o>180-this.SWIPE_MAX_ANGLE&&o<=180+this.SWIPE_MAX_ANGLE?a.Right:o>270-this.SWIPE_MAX_ANGLE&&o<=270+this.SWIPE_MAX_ANGLE?a.Down:a.Left},r.prototype.calcAngle=function(i,o){return 180*Math.atan2(o.y-i.y,o.x-i.x)/Math.PI+180},r}();t.GestureEvents=s}(me||(me={})),function(t){var a=function(){function s(r){this.key=r,this.cache=this.loadFromStorage()}return s.prototype.loadFromStorage=function(){var r=s.sessionStorage.getItem(this.key);return r||(r=JSON.stringify([])),JSON.parse(r)},s.prototype.get=function(){return this.cache},Object.defineProperty(s.prototype,"length",{get:function(){return this.cache.length},enumerable:!1,configurable:!0}),s.prototype.push=function(r){var i=this.cache.push(r);return s.sessionStorage.setItem(this.key,JSON.stringify(this.cache)),i},s.prototype.set=function(r){this.cache=r,s.sessionStorage.setItem(this.key,JSON.stringify(this.cache))},s.prototype.remove=function(r){this.cache.splice(r,1),s.sessionStorage.setItem(this.key,JSON.stringify(this.cache))},s.prototype.concat=function(r){return this.cache.concat(r)},s.prototype.clear=function(){this.cache=[],s.sessionStorage.removeItem(this.key)},s.sessionStorage=t._POSignalsStorage.SessionStorage.instance.sessionStorage,s}();t.StorageArray=a}(me||(me={})),function(t){var a=function(){function s(){this.MAX_TAGS=10,this._tags=new t.StorageArray(t._POSignalsUtils.Constants.CAPTURED_TAGS)}return Object.defineProperty(s,"instance",{get:function(){return s._instance||(s._instance=new s),s._instance},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"tags",{get:function(){return this._tags.get()},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"disableTags",{set:function(r){this._disableTags=r},enumerable:!1,configurable:!0}),s.prototype.setTag=function(r,i){var o;if(!this._disableTags)if(t.PointerConfig.instance.pointerParams.enabled)if(r){var l=t.PointerConfig.instance.pointerParams.tagsBlacklistRegex;if(l&&(r.match(l)||typeof i=="string"&&i!=null&&i.match(l)))t._POSignalsUtils.Logger.info("Tag name or value is blacklisted");else if(!(this._tags.length>=this.MAX_TAGS)){typeof i!="number"?this._tags.push({name:r.trim(),value:((o=i==null?void 0:i.trim)===null||o===void 0?void 0:o.call(i))||void 0,epochTs:Date.now(),timestamp:Date.now()}):this._tags.push({name:r.trim(),value:i,epochTs:Date.now(),timestamp:Date.now()});var u=i?r+":"+i:r;t._POSignalsUtils.Logger.info("Add tag: "+u)}}else t._POSignalsUtils.Logger.info("Can't add tag, missing name");else t._POSignalsUtils.Logger.info("Can't add tag, PingOneSignals SDK is disabled")},s.prototype.reset=function(){this._tags.clear()},s}();t.Tags=a}(me||(me={})),function(t){var a=function(){function s(r){this.client=r}return s.prototype.calculateStrategyResult=function(r,i){return{shouldCollect:this.client.getBufferSize()<t.PointerConfig.instance.pointerParams.bufferSize}},s}();t.FirstInteractionsStrategy=a}(me||(me={})),function(t){var a;(function(r){r[r.RICH=3]="RICH",r[r.CLICK=2]="CLICK",r[r.MOVE=1]="MOVE",r[r.POOR=0]="POOR"})(a||(a={}));var s=function(){function r(i){this.client=i,this.MAX_INTERACTIONS_PER_TYPE=7,this.RICH_MOUSE_MOVES_AMOUNT=8,this.MIN_KEYBOARD_EVENTS=6,this.MIN_TOUCH_EVENTS=20}return r.prototype.isRichMouseInteraction=function(i){return i.mousemove>=this.RICH_MOUSE_MOVES_AMOUNT&&this.isClickInteraction(i)},r.prototype.isClickInteraction=function(i){return i.mousedown>0&&i.mouseup>0},r.prototype.isMoveInteraction=function(i){return i.mousemove>=this.RICH_MOUSE_MOVES_AMOUNT},r.prototype.classifyMouseInteraction=function(i){var o=t._POSignalsUtils.Util.typesCounter(i.events);return this.isRichMouseInteraction(o)?a.RICH:this.isClickInteraction(o)?a.CLICK:this.isMoveInteraction(o)?a.MOVE:a.POOR},r.prototype.classifyKeyboardInteraction=function(i){return i.events.length>=this.MIN_KEYBOARD_EVENTS?a.RICH:a.POOR},r.prototype.classifyTouchInteraction=function(i){return i.events.length>=this.MIN_TOUCH_EVENTS?a.RICH:a.POOR},r.prototype.handleMouseInteraction=function(i,o){var l=Date.now(),u=this.classifyMouseInteraction(i),c=this.getEnumKeyByValue(u);if(o.mouse.interactions.length<this.MAX_INTERACTIONS_PER_TYPE)return{shouldCollect:!0,quality:c};if(u===a.RICH){var d=this.findOldestInteractionWithLowestQuality(o.mouse.interactions);if(d!==-1)return{shouldCollect:!0,remove:{type:"mouse",index:d},quality:c}}var f=this.splitInteractionsByTime(o.mouse.interactions,l,18e4),h=f[0],p=f[1];return h.length<2?this.handleOlderInteractions(p,c):this.handleRecentInteractions(h,p,u,c)},r.prototype.splitInteractionsByTime=function(i,o,l){return i.reduce(function(u,c){return c.epochTs>=o-l?u[0].push(c):u[1].push(c),u},[[],[]])},r.prototype.handleOlderInteractions=function(i,o){var l=this.findOldestInteractionWithLowestQuality(i);return l!==-1?{shouldCollect:!0,remove:{type:"mouse",index:l},quality:o}:{shouldCollect:!1,quality:o}},r.prototype.handleRecentInteractions=function(i,o,l,u){var c=this.findOldestInteractionWithLowestQuality(i,l);if(c!==-1){var d=i[c],f=this.client.getBehavioralData().mouse.interactions.indexOf(d),h=this.findOldestInteractionWithLowestQuality(o,a[this.client.getBehavioralData().mouse.interactions[f].quality]);return h!==-1?{shouldCollect:!0,remove:{type:"mouse",index:h},quality:u}:{shouldCollect:!0,remove:{type:"mouse",index:f},quality:u}}return{shouldCollect:!1,quality:u}},r.prototype.handleKeyboardInteraction=function(i,o){var l=Date.now(),u=this.classifyKeyboardInteraction(i),c=this.getEnumKeyByValue(u);if(o.keyboard.interactions.length<this.MAX_INTERACTIONS_PER_TYPE)return{shouldCollect:!0,quality:c};if(u===a.RICH){var d=this.findOldestInteractionWithLowestQuality(o.keyboard.interactions);if(d!==-1)return{shouldCollect:!0,remove:{type:"keyboard",index:d},quality:c}}var f=this.splitInteractionsByTime(o.keyboard.interactions,l,18e4),h=f[0],p=f[1];return h.length<2?this.handleOlderInteractions(p,c):this.handleRecentInteractions(h,p,u,c)},r.prototype.handleTouchInteraction=function(i,o){var l=Date.now(),u=this.classifyTouchInteraction(i),c=this.getEnumKeyByValue(u);if(o.touch.interactions.length<this.MAX_INTERACTIONS_PER_TYPE)return{shouldCollect:!0,quality:c};if(u===a.RICH){var d=this.findOldestInteractionWithLowestQuality(o.touch.interactions);if(d!==-1)return{shouldCollect:!0,remove:{type:"touch",index:d},quality:c}}var f=this.splitInteractionsByTime(o.touch.interactions,l,18e4),h=f[0],p=f[1];return h.length<2?this.handleOlderInteractions(p,c):this.handleRecentInteractions(h,p,u,c)},r.prototype.calculateStrategyResult=function(i,o){var l=this.client.getBehavioralData();switch(o){case"mouse":return this.handleMouseInteraction(i,l);case"keyboard":return this.handleKeyboardInteraction(i,l);case"touch":return this.handleTouchInteraction(i,l);default:throw new Error("Unknown interaction type: "+o)}},r.prototype.getEnumKeyByValue=function(i){return Object.keys(a).find(function(o){return a[o]===i})},r.prototype.findOldestInteractionWithLowestQuality=function(i,o){for(var l=o??a.RICH,u=-1,c=Number.MAX_SAFE_INTEGER,d=0;d<i.length;d++){var f=a[i[d].quality];(f<l||f===l&&i[d].epochTs<c)&&(l=f,c=i[d].epochTs,u=d)}return u},r}();t.PriorityStrategy=s}(me||(me={})),function(t){var a;(function(r){r[r.FIRST_INTERACTIONS=0]="FIRST_INTERACTIONS",r[r.PRIORITY_INTERACTIONS=1]="PRIORITY_INTERACTIONS"})(a=t.BufferingStrategyType||(t.BufferingStrategyType={}));var s=function(){function r(){}return r.createBufferingStrategy=function(i,o){switch(i){case a.FIRST_INTERACTIONS:return new t.FirstInteractionsStrategy(o);case a.PRIORITY_INTERACTIONS:return new t.PriorityStrategy(o)}},r}();t.StrategyFactory=s}(me||(me={})),function(t){var a=function(){function s(r){this.sessionData=r,this.instanceUUID=t._POSignalsUtils.Util.newGuid(),this._isBehavioralDataPaused=!1,this.started=!1,this.initQueue=new t.PromiseQueue(1)}return s.instance=function(){if(!this._instance){var r=t._POSignalsStorage.SessionStorage.instance;if(!document.body)throw t._POSignalsUtils.Logger.error("PingOne Signals can be started only after DOM Ready!"),new Error("PingOne Signals can be started only after DOM Ready!");this._instance=new t.Client(r,t.BufferingStrategyType.PRIORITY_INTERACTIONS)}return this._instance},s.prototype.getData=function(){return dt(this,void 0,void 0,function(){return ft(this,function(r){switch(r.label){case 0:if(!this.startedPromise)throw new Error("SDK not initialized");return[4,this.startedPromise];case 1:return r.sent(),[4,this.dataHandler.getData(Date.now())];case 2:return[2,r.sent()]}})})},s.prototype.addTag=function(r,i){t.Tags.instance.setTag(r,i)},s.prototype.start=function(r){var i,o,l,u;return r===void 0&&(r={}),dt(this,void 0,void 0,function(){var c,d;return ft(this,function(f){switch(f.label){case 0:return(i=r.waitForWindowLoad)===null||i===void 0||i?[4,this.loadEventPromise()]:[3,2];case 1:f.sent(),f.label=2;case 2:if(this.initParams=r,this.validateStartParams(r),this.clientVersion=t._POSignalsUtils.Constants.CLIENT_VERSION,this.started)return t._POSignalsUtils.Logger.warn("SDK already initialized"),[2];this.browserInfo=new t._POSignalsUtils.BrowserInfo,t._POSignalsUtils.Logger.isLogEnabled=!!r.consoleLogEnabled||!!r.devEnv,t._POSignalsUtils.Logger.info("Starting Signals SDK..."),t.Tags.instance.disableTags=!!this.initParams.disableTags,this.sessionData.setStorageConfig(r),c=t.PointerConfig.instance.pointerParams,d={additionalMediaCodecs:c.additionalMediaCodecs,browserInfo:this.browserInfo,fingerprintTimeoutMillis:c.fingerprintTimeoutMillis,metadataBlackList:new Set(c.metadataBlackList.concat(r.deviceAttributesToIgnore)),propertyDescriptors:c.propertyDescriptors,webRtcUrl:c.webRtcUrl,dataPoints:c.metadataDataPoints},this.localAgentAccessor=new t._POSignalsMetadata.LocalAgentAccessor((o=r.agentPort)!==null&&o!==void 0?o:t._POSignalsUtils.Constants.PINGID_AGENT_DEFAULT_PORT,(l=r.agentTimeout)!==null&&l!==void 0?l:t._POSignalsUtils.Constants.PINGID_AGENT_DEFAULT_TIMEOUT),this.metadata=new t._POSignalsMetadata.Metadata(this.sessionData,d,r.externalIdentifiers,this.localAgentAccessor),this.dataHandler=new t.DataHandler(this.clientVersion,this.instanceUUID,this.initParams,this.metadata,this,this.sessionData),((u=this.initParams.behavioralDataCollection)===null||u===void 0||u)&&this.refreshListening(),r.lazyMetadata||(this.metadata.getDeviceAttributes(),this.metadata.getLocalAgentJwt()),this.started=!0;try{this.logInit(),this.addStartupTags()}catch(h){t._POSignalsUtils.Logger.warn("SDK post init failed",h)}return[2]}})})},s.prototype.logInit=function(){var r,i;t._POSignalsUtils.Logger.info("PingOne Signals initialized. "+JSON.stringify({timestamp:new Date().getTime(),sdkVersion:this.clientVersion,instanceUUID:this.instanceUUID,tabUUID:this.sessionData.tabUUID},null,2));var o=function(){return t._POSignalsUtils.Logger.info("Token Ready: "+window._pingOneSignalsToken)},l=function(){t._POSignalsUtils.Logger.info("Signals token fetch is disabled"),window._pingOneSignalsToken=void 0};((r=window._pingOneSignalsToken)===null||r===void 0?void 0:r.substring(0,7))==="skipped"?l():((i=window._pingOneSignalsToken)===null||i===void 0?void 0:i.substring(0,13))!=="uninitialized"&&o(),document.addEventListener("PingOneSignalsTokenReadyEvent",o),document.addEventListener("PingOneSignalsTokenSkippedEvent",l)},Object.defineProperty(s.prototype,"isBehavioralDataPaused",{get:function(){return this._isBehavioralDataPaused},enumerable:!1,configurable:!0}),s.prototype.getSignalsToken=function(){var r="";if(typeof window._pingOneSignalsToken=="string"&&0<=window._pingOneSignalsToken.indexOf(":")){var i=window._pingOneSignalsToken.match(/t:(.*?)(&|$)/g);i&&0<i.length&&(r=i[0].replace(/&s*$/,"").replace(/t:/,""))}else typeof window._pingOneSignalsToken=="string"&&(r=window._pingOneSignalsToken);return r},s.prototype.pauseBehavioralData=function(){this._isBehavioralDataPaused||(this._isBehavioralDataPaused=!0,this.addTag("SDK paused behaviorally"))},s.prototype.resumeBehavioralData=function(){this._isBehavioralDataPaused&&(this._isBehavioralDataPaused=!1,this.addTag("SDK resumed behaviorally"))},s.prototype.startSignals=function(r){return dt(this,void 0,void 0,function(){var i,o,l=this;return ft(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),this.startedPromise=this.initQueue.add(function(){return l.start(r)}),[4,this.startedPromise];case 1:return[2,u.sent()];case 2:throw i=u.sent(),o={id:t._POSignalsUtils.POErrorCodes.INITIALIZATION_ERROR,message:i.message,code:"SDK initialization failed."},new Error(JSON.stringify(o));case 3:return[2]}})})},s.prototype.validateStartParams=function(r){if(!document.body)throw t._POSignalsUtils.Logger.error("PingOne Signals can be started only after DOM Ready!"),new Error("PingOne Signals can be started only after DOM Ready!");r.externalIdentifiers=r.externalIdentifiers||{}},s.prototype.loadEventPromise=function(){return dt(this,void 0,void 0,function(){return ft(this,function(r){return[2,new Promise(function(i){document.readyState==="complete"?i():window.addEventListener("load",function(o){i()})})]})})},s.prototype.addStartupTags=function(){this.addTag("SDK started"),document.referrer&&this.addTag("referrer",document.referrer),this.addTag("location",window.location.href)},s}();t.ClientBase=a}(me||(me={})),function(t){var a=function(){function s(r){this.BEHAVIORAL_TYPE="indirect",this._isStarted=!1,this._onClipboardEvent=new t.EventDispatcher,this.delegate=r,this.onClipboardEventHandler=this.onEvent.bind(this)}return Object.defineProperty(s.prototype,"isStarted",{get:function(){return this._isStarted},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onClipboardEvent",{get:function(){return this._onClipboardEvent.asEvent()},enumerable:!1,configurable:!0}),s.prototype.onEvent=function(r){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;this._onClipboardEvent.dispatch(this,this.createClipboardEvent(r))}catch(i){t._POSignalsUtils.Logger.warn("error in clipboard handler",i)}},s.prototype.createClipboardEvent=function(r){var i=t._POSignalsUtils.Util.getSrcElement(r);return{category:"ClipboardEvent",type:r.type,eventTs:r.timeStamp,epochTs:new Date().getTime(),additionalData:{locationHref:location.href,stId:this.delegate.getElementsStID(i),elementId:i==null?void 0:i.id}}},s.prototype.start=function(){this._isStarted||(this._isStarted=!0,this.delegate.addEventListener(document,"cut",this.onClipboardEventHandler),this.delegate.addEventListener(document,"copy",this.onClipboardEventHandler),this.delegate.addEventListener(document,"paste",this.onClipboardEventHandler))},s.prototype.stop=function(){this._isStarted&&(this._isStarted=!1,document.removeEventListener("cut",this.onClipboardEventHandler),document.removeEventListener("copy",this.onClipboardEventHandler),document.removeEventListener("paste",this.onClipboardEventHandler))},s}();t.ClipboardEvents=a}(me||(me={})),function(t){var a=function(){function s(r){this.BEHAVIORAL_TYPE="indirect",this._isStarted=!1,this._onDragEvent=new t.EventDispatcher,this.delegate=r,this.onDragEventHandler=this.onEvent.bind(this)}return Object.defineProperty(s.prototype,"isStarted",{get:function(){return this._isStarted},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onDragEvent",{get:function(){return this._onDragEvent.asEvent()},enumerable:!1,configurable:!0}),s.prototype.createDragEvent=function(r){return{category:"DragEvent",type:r.type,eventTs:r.timeStamp,epochTs:new Date().getTime(),additionalData:{locationHref:location.href}}},s.prototype.onEvent=function(r){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;this._onDragEvent.dispatch(this,this.createDragEvent(r))}catch(i){t._POSignalsUtils.Logger.warn("error in drag handler",i)}},s.prototype.start=function(){this._isStarted||(this._isStarted=!0,this.delegate.addEventListener(document,"dragstart",this.onDragEventHandler),this.delegate.addEventListener(document,"dragexit",this.onDragEventHandler),this.delegate.addEventListener(document,"drop",this.onDragEventHandler),this.delegate.addEventListener(document,"dragend",this.onDragEventHandler))},s.prototype.stop=function(){this._isStarted&&(this._isStarted=!1,document.removeEventListener("dragstart",this.onDragEventHandler),document.removeEventListener("dragexit",this.onDragEventHandler),document.removeEventListener("drop",this.onDragEventHandler),document.removeEventListener("dragend",this.onDragEventHandler))},s}();t.DragEvents=a}(me||(me={})),function(t){var a=function(){function s(r){this.BEHAVIORAL_TYPE="indirect",this._isStarted=!1,this._onFocusEvent=new t.EventDispatcher,this.delegate=r,this.onFocusEventHandler=this.onEvent.bind(this)}return Object.defineProperty(s.prototype,"isStarted",{get:function(){return this._isStarted},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onFocusEvent",{get:function(){return this._onFocusEvent.asEvent()},enumerable:!1,configurable:!0}),s.prototype.getRelatedTarget=function(r){if(!r.relatedTarget)return{type:"",stId:"",elementId:""};var i={type:t._POSignalsUtils.Util.getObjectType(r.relatedTarget),stId:"",elementId:""};r.relatedTarget.id&&(i.elementId=r.relatedTarget.id);try{var o=r.relatedTarget;i.stId=this.delegate.getElementsStID(o)}catch{}return i},s.prototype.createFocusEvent=function(r){var i=t._POSignalsUtils.Util.getSrcElement(r),o=this.getRelatedTarget(r);return{category:"FocusEvent",type:r.type,eventTs:r.timeStamp,epochTs:new Date().getTime(),additionalData:{locationHref:location.href,stId:this.delegate.getElementsStID(i),elementId:i?i.id:"",relatedTarget:o}}},s.prototype.onEvent=function(r){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;this._onFocusEvent.dispatch(this,this.createFocusEvent(r))}catch(i){t._POSignalsUtils.Logger.warn("error in focus handler",i)}},s.prototype.start=function(){this._isStarted||(this._isStarted=!0,this.delegate.addEventListener(document,"DOMFocusIn",this.onFocusEventHandler),this.delegate.addEventListener(document,"DOMFocusOut",this.onFocusEventHandler),this.delegate.addEventListener(document,"focus",this.onFocusEventHandler),this.delegate.addEventListener(document,"focusin",this.onFocusEventHandler),this.delegate.addEventListener(document,"focusout",this.onFocusEventHandler))},s.prototype.stop=function(){this._isStarted&&(this._isStarted=!1,document.removeEventListener("DOMFocusIn",this.onFocusEventHandler),document.removeEventListener("DOMFocusOut",this.onFocusEventHandler),document.removeEventListener("focus",this.onFocusEventHandler),document.removeEventListener("focusin",this.onFocusEventHandler),document.removeEventListener("focusout",this.onFocusEventHandler))},s}();t.FocusEvents=a}(me||(me={})),function(t){var a=function(){function s(r){this.BEHAVIORAL_TYPE="indirect",this._isStarted=!1,this._onUIEvent=new t.EventDispatcher,this.delegate=r,this.onUIEventHandler=this.onEvent.bind(this)}return Object.defineProperty(s.prototype,"isStarted",{get:function(){return this._isStarted},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onUIEvent",{get:function(){return this._onUIEvent.asEvent()},enumerable:!1,configurable:!0}),s.prototype.createUIEvent=function(r){return{category:"UIEvent",type:r.type,eventTs:r.timeStamp,epochTs:new Date().getTime(),additionalData:{locationHref:location.href}}},s.prototype.onEvent=function(r){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;this._onUIEvent.dispatch(this,this.createUIEvent(r))}catch(i){t._POSignalsUtils.Logger.warn("error in UIEvent handler",i)}},s.prototype.start=function(){this._isStarted||(this._isStarted=!0,this.delegate.addEventListener(document,"resize",this.onUIEventHandler),this.delegate.addEventListener(document,"scroll",this.onUIEventHandler),this.delegate.addEventListener(document,"select",this.onUIEventHandler))},s.prototype.stop=function(){this._isStarted&&(this._isStarted=!1,document.removeEventListener("resize",this.onUIEventHandler),document.removeEventListener("scroll",this.onUIEventHandler),document.removeEventListener("select",this.onUIEventHandler))},s}();t.UIEvents=a}(me||(me={})),function(t){var a=function(){function s(r){this.BEHAVIORAL_TYPE="indirect",this.visibilityChangeEventName="visibilitychange",this.hiddenProperty="hidden",this._isStarted=!1,this._onGeneralEvent=new t.EventDispatcher,this.delegate=r,this.onGeneralEventHandler=this.onEvent.bind(this),this.onLangChangeHandler=this.onLangChangeEvent.bind(this),this.onOrientationChangeHandler=this.onOrientationChangeEvent.bind(this),this.onVisibilityChangeHandler=this.onVisibilityChangeEvent.bind(this),document.msHidden!==void 0?(this.hiddenProperty="msHidden",this.visibilityChangeEventName="msvisibilitychange"):document.webkitHidden!==void 0&&(this.hiddenProperty="webkitHidden",this.visibilityChangeEventName="webkitvisibilitychange")}return Object.defineProperty(s.prototype,"isStarted",{get:function(){return this._isStarted},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onGeneralEvent",{get:function(){return this._onGeneralEvent.asEvent()},enumerable:!1,configurable:!0}),s.prototype.onEvent=function(r){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;this._onGeneralEvent.dispatch(this,this.createGeneralEvent(r))}catch(i){t._POSignalsUtils.Logger.warn("error in general event handler",i)}},s.prototype.onLangChangeEvent=function(r){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;var i=this.createGeneralEvent(r);this._onGeneralEvent.dispatch(this,i)}catch(o){t._POSignalsUtils.Logger.warn("error in LangChange event handler",o)}},s.prototype.onOrientationChangeEvent=function(r){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;var i=this.createGeneralEvent(r),o=t._POSignalsUtils.Util.getDeviceOrientation();i.additionalData.deviceOrientation=o.orientation,i.additionalData.deviceAngle=o.angle,this._onGeneralEvent.dispatch(this,i)}catch(l){t._POSignalsUtils.Logger.warn("error in OrientationChange event handler",l)}},s.prototype.onVisibilityChangeEvent=function(r){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return;var i=this.createGeneralEvent(r);i.additionalData.hidden=!!document[this.hiddenProperty],document.visibilityState&&(i.additionalData.visibilityState=document.visibilityState.toString()),this._onGeneralEvent.dispatch(this,i)}catch(o){t._POSignalsUtils.Logger.warn("error in VisibilityChange event handler",o)}},s.prototype.createGeneralEvent=function(r){return{category:"Event",type:r.type,eventTs:r.timeStamp,epochTs:new Date().getTime(),additionalData:{locationHref:location.href}}},s.prototype.start=function(){this._isStarted||(this._isStarted=!0,this.delegate.addEventListener(document,this.visibilityChangeEventName,this.onVisibilityChangeHandler),this.delegate.addEventListener(document,"change",this.onGeneralEventHandler),this.delegate.addEventListener(document,"fullscreenchange",this.onGeneralEventHandler),this.delegate.addEventListener(document,"invalid",this.onGeneralEventHandler),this.delegate.addEventListener(window,"languagechange",this.onLangChangeHandler),this.delegate.addEventListener(window,"orientationchange",this.onOrientationChangeHandler),this.delegate.addEventListener(document,"seeked",this.onGeneralEventHandler),this.delegate.addEventListener(document,"seeking",this.onGeneralEventHandler),this.delegate.addEventListener(document,"selectstart",this.onGeneralEventHandler),this.delegate.addEventListener(document,"selectionchange",this.onGeneralEventHandler),this.delegate.addEventListener(document,"submit",this.onGeneralEventHandler),this.delegate.addEventListener(document,"volumechange",this.onGeneralEventHandler),this.delegate.addEventListener(document,"reset",this.onGeneralEventHandler),this.delegate.addEventListener(document,"textInput",this.onGeneralEventHandler))},s.prototype.stop=function(){this._isStarted&&(this._isStarted=!1,document.removeEventListener(this.visibilityChangeEventName,this.onVisibilityChangeHandler),document.removeEventListener("change",this.onGeneralEventHandler),document.removeEventListener("fullscreenchange",this.onGeneralEventHandler),document.removeEventListener("invalid",this.onGeneralEventHandler),window.removeEventListener("languagechange",this.onLangChangeHandler),window.removeEventListener("orientationchange",this.onOrientationChangeHandler),document.removeEventListener("seeked",this.onGeneralEventHandler),document.removeEventListener("seeking",this.onGeneralEventHandler),document.removeEventListener("selectstart",this.onGeneralEventHandler),document.removeEventListener("selectionchange",this.onGeneralEventHandler),document.removeEventListener("submit",this.onGeneralEventHandler),document.removeEventListener("volumechange",this.onGeneralEventHandler),document.removeEventListener("reset",this.onGeneralEventHandler),document.removeEventListener("textInput",this.onGeneralEventHandler))},s}();t.GeneralEvents=a}(me||(me={})),function(t){var a=function(){function s(r){this.DEFAULT_INDIRECT_IDLE_INTERVAL=1e3,this.MAX_INDIRECT_EVENTS=25,this._onIndirect=new t.EventDispatcher,this.indirectEvents=[],this.idleTimeInMillis=this.DEFAULT_INDIRECT_IDLE_INTERVAL,this.lastIndirectEventTimestamp=0,this._isStarted=!1,this.clipboardEvents=new t.ClipboardEvents(r),this.clipboardEvents.onClipboardEvent.subscribe(this.handleEvent.bind(this)),this.dragEvents=new t.DragEvents(r),this.dragEvents.onDragEvent.subscribe(this.handleEvent.bind(this)),this.focusEvents=new t.FocusEvents(r),this.focusEvents.onFocusEvent.subscribe(this.handleEvent.bind(this)),this.uiEvents=new t.UIEvents(r),this.uiEvents.onUIEvent.subscribe(this.handleEvent.bind(this)),this.generalEvents=new t.GeneralEvents(r),this.generalEvents.onGeneralEvent.subscribe(this.handleEvent.bind(this)),this.onTimeElapsedHandler=this.onTimeElapsed.bind(this)}return Object.defineProperty(s.prototype,"onIndirect",{get:function(){return this._onIndirect.asEvent()},enumerable:!1,configurable:!0}),s.prototype.onTimeElapsed=function(){return dt(this,void 0,void 0,function(){return ft(this,function(r){return this.indirectEvents.length>0&&new Date().getTime()-this.lastIndirectEventTimestamp>=this.idleTimeInMillis&&this.dispatch(),[2]})})},s.prototype.handleEvent=function(r,i){this.lastIndirectEventTimestamp=new Date().getTime(),this.pushEvent(i)},s.prototype.pushEvent=function(r){this.indirectEvents.push(r),this.indirectEvents.length>=this.MAX_INDIRECT_EVENTS&&this.dispatch()},s.prototype.clearBuffer=function(){var r={events:this.indirectEvents};return this.indirectEvents=[],r},s.prototype.dispatch=function(){try{clearInterval(this.updateIntervalHandle),this._onIndirect.dispatch(this,this.clearBuffer()),this.updateIntervalHandle=setInterval(this.onTimeElapsedHandler,t.PointerConfig.instance.pointerParams.indirectIntervalMillis)}catch(r){t._POSignalsUtils.Logger.warn("Failed to dispatch indirect events",r)}},Object.defineProperty(s.prototype,"isStarted",{get:function(){return this._isStarted},enumerable:!1,configurable:!0}),s.prototype.start=function(){this._isStarted||(this.updateIntervalHandle=setInterval(this.onTimeElapsedHandler,t.PointerConfig.instance.pointerParams.indirectIntervalMillis),this.clipboardEvents.start(),this.dragEvents.start(),this.focusEvents.start(),this.uiEvents.start(),this.generalEvents.start(),this._isStarted=!0)},s.prototype.stop=function(){this._isStarted&&(this.clipboardEvents.stop(),this.dragEvents.stop(),this.focusEvents.stop(),this.uiEvents.stop(),this.generalEvents.stop(),clearInterval(this.updateIntervalHandle),this.updateIntervalHandle=null,this._isStarted=!1)},s.prototype.unsubscribe=function(){this.clipboardEvents.onClipboardEvent.unsubscribe(this.handleEvent.bind(this)),this.dragEvents.onDragEvent.unsubscribe(this.handleEvent.bind(this)),this.focusEvents.onFocusEvent.unsubscribe(this.handleEvent.bind(this)),this.uiEvents.onUIEvent.unsubscribe(this.handleEvent.bind(this)),this.generalEvents.onGeneralEvent.unsubscribe(this.handleEvent.bind(this))},s}();t.IndirectClient=a}(me||(me={})),function(t){var a=function(){function s(){this.config={},this._cacheHash=0,this.cache=new Map}return s.prototype.refreshCssSelectors=function(r){try{if(!r)return;var i=t._POSignalsUtils.Util.hashCode(JSON.stringify(r));if(this._cacheHash===i)return;this.config=r,this._cacheHash=i,this.cache=new Map}catch(o){t._POSignalsUtils.Logger.warn("Failed to set css selectors",o)}},s.prototype.getIdentification=function(r,i){if(this.cache.get(r)===null)return null;if(this.cache.get(r)!==void 0)return this.cache.get(r);for(var o in this.config)try{if(!this.config.hasOwnProperty(o))continue;var l=this.config[o]||[];t._POSignalsUtils.Util.isArray(l)||(l=[].concat(l));for(var u=0,c=l;u<c.length;u++){var d=c[u];if(t._POSignalsUtils.Util.isSelectorMatches(r,d,i))return this.cache.set(r,o),o}}catch(f){t._POSignalsUtils.Logger.warn("Failed to find selector for "+o,f)}return this.cache.set(r,null),null},Object.defineProperty(s.prototype,"cacheHash",{get:function(){return this._cacheHash},enumerable:!1,configurable:!0}),s}();t.ElementsIdentifications=a}(me||(me={})),function(t){var a=function(){function s(r,i){this.BEHAVIORAL_TYPE="eventKeyboard",this._isStarted=!1,this._onInteraction=new t.EventDispatcher,this._onEnterPress=new t.EventDispatcher,this._onObfuscatedValue=new t.EventDispatcher,this.interactionsMap=new Map,this._fieldsIdentifications=new t.ElementsIdentifications,this.keyStrokeMap=new Map,this.delegate=r,this.uiControlManager=i,this.onKeyDownHandle=this.onKeyDown.bind(this),this.onKeyUpHandle=this.onKeyUp.bind(this),this.onFocusHandle=this.onFocus.bind(this),this.onBlurHandle=this.onBlur.bind(this)}return Object.defineProperty(s.prototype,"isStarted",{get:function(){return this._isStarted},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onInteraction",{get:function(){return this._onInteraction.asEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onEnterPress",{get:function(){return this._onEnterPress.asEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onObfuscatedValue",{get:function(){return this._onObfuscatedValue.asEvent()},enumerable:!1,configurable:!0}),s.prototype.refreshKeyboardCssSelectors=function(r){this._fieldsIdentifications.refreshCssSelectors(r)},Object.defineProperty(s.prototype,"modifiersKeys",{get:function(){return["Alt","AltGraph","CapsLock","Control","Fn","FnLock","Hyper","Meta","NumLock","OS","ScrollLock","Shift","Super","Symbol","SymbolLock"]},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"specialKeys",{get:function(){return["Tab","Shift","Backspace","Enter","CapsLock","Meta","Delete","Alt","ArrowDown","ArrowUp","Control","ArrowLeft","End","Unidentified","Home","ArrowRight","Insert","Pause","PageDown","PageUp","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","AltGraph","Escape"]},enumerable:!1,configurable:!0}),s.prototype.countEvent=function(r,i){i&&(i.eventCounters[r]=(i.eventCounters[r]||0)+1)},s.prototype.clearBuffer=function(){var r=t._POSignalsUtils.Util.getValuesOfMap(this.interactionsMap);return this.interactionsMap.clear(),r},s.prototype.start=function(){this._isStarted?t._POSignalsUtils.Logger.debug("Desktop Keyboard events already listening"):(this.delegate.addEventListener(document,"keydown",this.onKeyDownHandle),this.delegate.addEventListener(document,"keyup",this.onKeyUpHandle),this.delegate.addEventListener(document,"focus",this.onFocusHandle,!0),this.delegate.addEventListener(document,"blur",this.onBlurHandle,!0),this._isStarted=!0,t._POSignalsUtils.Logger.debug("Desktop Keyboard events start listening..."))},s.prototype.stop=function(){this._isStarted?(document.removeEventListener("keydown",this.onKeyDownHandle),document.removeEventListener("keyup",this.onKeyUpHandle),document.removeEventListener("focus",this.onFocusHandle,!0),document.removeEventListener("blur",this.onBlurHandle,!0),this._isStarted=!1,t._POSignalsUtils.Logger.debug("Desktop Keyboard events stop listening...")):t._POSignalsUtils.Logger.debug("Desktop Keyboard events already stopped")},s.prototype.getInteractionFromElement=function(r){var i,o=null,l=null,u=t._POSignalsUtils.Util.getSrcElement(r);if(u&&u instanceof HTMLInputElement&&!t._POSignalsUtils.Util.isClickableInput(u)&&t._POSignalsUtils.Util.isFunction(u.getAttribute)&&!(!((i=u.hasAttribute)===null||i===void 0)&&i.call(u,"data-st-ignore"))&&!t._POSignalsUtils.Util.anySelectorMatches(u,t.PointerConfig.instance.pointerParams.keyboardCssSelectorsBlacklist,0)){l=this.delegate.getElementsStID(u);for(var c=t.PointerConfig.instance.pointerParams.keyboardIdentifierAttributes,d=0;d<c.length&&!l;d++)l=u.getAttribute(c[d]);l&&!t.PointerConfig.instance.pointerParams.keyboardFieldBlackList.has(l)&&((o=this.interactionsMap.get(u))||(o={epochTs:Date.now(),stId:l,elementId:t._POSignalsUtils.Util.getAttribute(u,"id"),name:t._POSignalsUtils.Util.getAttribute(u,"name"),type:t._POSignalsUtils.Util.getAttribute(u,"type"),events:[],counter:this.delegate.keyboardCounter,eventCounters:{epochTs:Date.now()},duration:0,numOfDeletions:0,additionalData:this.delegate.additionalData,quality:""},this.interactionsMap.set(u,o)))}return o},s.prototype.getKeyCode=function(r){return r.keyCode?r.keyCode:r.which?r.which:r.code?t._POSignalsUtils.Util.hashCode(r.code):t._POSignalsUtils.Util.hashCode(r.key)+(r.location||0)},s.prototype.getKeyboardEvent=function(r){return r||window.event},s.prototype.getKeystrokeId=function(r,i){var o,l=this.getKeyCode(r);return i==="keyup"&&(this.keyStrokeMap.has(l)?(o=this.keyStrokeMap.get(l),this.keyStrokeMap.delete(l)):o=t._POSignalsUtils.Util.newGuid()),i==="keydown"&&(this.keyStrokeMap.has(l)&&r.repeat?o=this.keyStrokeMap.get(l):(o=t._POSignalsUtils.Util.newGuid(),this.keyStrokeMap.set(l,o))),o},s.prototype.createKeyboardInteractionEvent=function(r,i){var o=t._POSignalsUtils.Util.getSrcElement(i),l=o.value?o.value.toString().length:0;return{type:r,eventTs:i.timeStamp,epochTs:Date.now(),selectionStart:t._POSignalsUtils.Util.getElementSelectionStart(o),selectionEnd:t._POSignalsUtils.Util.getElementSelectionEnd(o),key:i.key,keystrokeId:null,currentLength:l}},s.prototype.enrichKeyboardEvent=function(r,i){(this.modifiersKeys.indexOf(r.key)>=0||this.specialKeys.indexOf(r.key)>=0)&&(i.key=r.key),i.keystrokeId=this.getKeystrokeId(r,i.type);var o=t._POSignalsUtils.Util.getSrcElement(r);i.currentLength=String(o.value).length},s.prototype.onFocus=function(r){var i,o;try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return void this._onInteraction.dispatch(this,null);r=this.getKeyboardEvent(r);var l=this.getInteractionFromElement(r);if(this.countEvent(r.type,l),t.PointerConfig.instance.pointerParams.eventsToIgnore.has(r.type))return;if(l){var u=this.createKeyboardInteractionEvent("focus",r);l.events.push(u);var c=this.uiControlManager.createUIControlData(r);c&&(l.uiControl={uiElement:c.uiElement,enrichedData:c.enrichedData},((o=(i=c.uiElement)===null||i===void 0?void 0:i.id)===null||o===void 0?void 0:o.length)>0&&t._POSignalsUtils.Logger.info("Typing in element with id '"+c.uiElement.id+"'"))}}catch(d){t._POSignalsUtils.Logger.warn("error in keyboard focus handler",d)}},s.prototype.onKeyUp=function(r){try{if((r=this.getKeyboardEvent(r)).keyCode!==13&&r.which!==13||this._onEnterPress.dispatch(this,t._POSignalsUtils.Util.getSrcElement(r)),!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return void this._onInteraction.dispatch(this,null);var i=this.getInteractionFromElement(r);if(this.countEvent(r.type,i),t.PointerConfig.instance.pointerParams.eventsToIgnore.has(r.type))return;if(i){var o=this.createKeyboardInteractionEvent("keyup",r);this.enrichKeyboardEvent(r,o),i.events.push(o)}else this.keyStrokeMap.delete(this.getKeyCode(r))}catch(l){t._POSignalsUtils.Logger.warn("error in keyUp handler",l)}},s.prototype.isEmpty=function(){return this.interactionsMap.size===0},s.prototype.onKeyDown=function(r){try{if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return void this._onInteraction.dispatch(this,null);r=this.getKeyboardEvent(r);var i=this.getInteractionFromElement(r);if(this.countEvent(r.type,i),t.PointerConfig.instance.pointerParams.eventsToIgnore.has(r.type))return;if(i){var o=this.createKeyboardInteractionEvent("keydown",r);this.enrichKeyboardEvent(r,o),i.events.push(o)}}catch(l){t._POSignalsUtils.Logger.warn("error in keyDown handler",l)}},s.prototype.onBlur=function(r){try{r=this.getKeyboardEvent(r);var i=this.getInteractionFromElement(r);if(!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE))return void this._onInteraction.dispatch(this,null);if(this.countEvent(r.type,i),t.PointerConfig.instance.pointerParams.eventsToIgnore.has(r.type))return;if(i){var o=this.createKeyboardInteractionEvent("blur",r);i.events.push(o),i.duration=this.delegate.getInteractionDuration(i.events),i.numOfDeletions=this.calculateNumOfDeletions(i.events);var l=t._POSignalsUtils.Util.getSrcElement(r);this.interactionsMap.delete(l),this._onInteraction.dispatch(this,i)}}catch(u){t._POSignalsUtils.Logger.warn("error in blur handler",u)}},s.prototype.calculateNumOfDeletions=function(r){if(!(r!=null&&r[0]))return 0;for(var i=0,o=r[0].currentLength,l=1;l<r.length;l++)r[l].currentLength<o&&i++,o=r[l].currentLength;return i},Object.defineProperty(s.prototype,"fieldsIdentifications",{get:function(){return this._fieldsIdentifications},enumerable:!1,configurable:!0}),s}();t.Keyboard=a}(me||(me={})),function(t){var a=function(){function s(r,i){var o,l=this,u=t.PointerConfig.instance.pointerParams.uiModelingElementFilters,c=t._POSignalsUtils.Util.getAttribute,d=(o=r.getBoundingClientRect)===null||o===void 0?void 0:o.call(r);this._htmlElement=r,this._data={location:this.getUIElementAttribute(u.location,function(){return window.location.href}),id:this.getUIElementAttribute(u.id,function(){return c(r,"id")}),aria_label:this.getUIElementAttribute(u.aria_label,function(){return c(r,"aria-label")}),data_st_field:this.getUIElementAttribute(u.data_st_field,function(){return i.getElementsStID(r)}),data_st_tag:this.getUIElementAttribute(u.data_st_tag,function(){return c(r,"data-st-tag")}),data_selenium:this.getUIElementAttribute(u.data_selenium,function(){return c(r,"data-selenium")}),data_selenium_id:this.getUIElementAttribute(u.data_selenium_id,function(){return c(r,"data-selenium-id")}),data_testid:this.getUIElementAttribute(u.data_testid,function(){return c(r,"data-testid")}),data_test_id:this.getUIElementAttribute(u.data_test_id,function(){return c(r,"data-test-id")}),data_qa_id:this.getUIElementAttribute(u.data_qa_id,function(){return c(r,"data-qa-id")}),data_id:this.getUIElementAttribute(u.data_id,function(){return c(r,"data-id")}),name:this.getUIElementAttribute(u.name,function(){return c(r,"name")}),placeholder:this.getUIElementAttribute(u.placeholder,function(){return c(r,"placeholder")}),role:this.getUIElementAttribute(u.role,function(){return c(r,"role")}),type:this.getUIElementAttribute(u.type,function(){return c(r,"type")}),nodeTypeInt:this.getUIElementAttribute(u.nodeTypeInt,function(){return r.nodeType}),nodeName:this.getUIElementAttribute(u.nodeName,function(){return r.nodeName}),cursorType:this.getUIElementAttribute(u.cursorType,function(){return window.getComputedStyle(r).cursor}),text:this.getUIElementAttribute(u.text,function(){return l.getElementText(r)}),textLength:this.getUIElementAttribute(u.textLength,function(){var f;return((f=l.getElementText(r))===null||f===void 0?void 0:f.length)||null}),bottom:this.getUIElementAttribute(u.bottom,function(){return d==null?void 0:d.bottom}),height:this.getUIElementAttribute(u.height,function(){return d==null?void 0:d.height}),left:this.getUIElementAttribute(u.left,function(){return d==null?void 0:d.left}),right:this.getUIElementAttribute(u.right,function(){return d==null?void 0:d.right}),top:this.getUIElementAttribute(u.top,function(){return d==null?void 0:d.top}),width:this.getUIElementAttribute(u.width,function(){return d==null?void 0:d.width}),x:this.getUIElementAttribute(u.x,function(){return d==null?void 0:d.x}),y:this.getUIElementAttribute(u.y,function(){return d==null?void 0:d.y})},this._data.elementId=this.getStrongestElementID()}return Object.defineProperty(s.prototype,"data",{get:function(){return t._POSignalsUtils.Util.filterReduce(this._data,function(r){return r!=null&&r!==""})},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"htmlElement",{get:function(){return this._htmlElement},enumerable:!1,configurable:!0}),s.prototype.getUIElementAttribute=function(r,i){var o;try{if((o=r==null?void 0:r.enabled)===null||o===void 0||o){var l=i();return typeof l=="string"&&(typeof(r==null?void 0:r.maxLength)=="number"&&l.length>r.maxLength&&(l=l.substring(0,r.maxLength)),r!=null&&r.filterRegex&&(l=l.replace(new RegExp(r.filterRegex,"g"),"*"))),l}}catch(u){t._POSignalsUtils.Logger.warn("Failed to add ui element attribute",u)}return null},s.prototype.getStrongestElementID=function(){return this._data.data_st_field||this._data.data_selenium_id||this._data.data_selenium||this._data.data_testid||this._data.data_test_id||this._data.data_qa_id||this._data.data_id||this._data.id||""},s.prototype.getElementText=function(r){return r instanceof HTMLInputElement&&!t._POSignalsUtils.Util.isClickableInput(r)?null:t._POSignalsUtils.Util.getElementText(r)},s.prototype.equals=function(r){return!!r&&!(r.location&&location.href.indexOf(r.location)<0)&&(!r.elementId||r.elementId===this._data.elementId)&&(!r.id||r.id===this._data.id)&&(!r.aria_label||r.aria_label===this._data.aria_label)&&(!r.data_st_field||r.data_st_field===this._data.data_st_field)&&(!r.data_st_tag||r.data_st_tag===this._data.data_st_tag)&&(!r.data_selenium||r.data_selenium===this._data.data_selenium)&&(!r.data_selenium_id||r.data_selenium_id===this._data.data_selenium_id)&&(!r.data_testid||r.data_testid===this._data.data_testid)&&(!r.data_test_id||r.data_test_id===this._data.data_test_id)&&(!r.data_qa_id||r.data_qa_id===this._data.data_qa_id)&&(!r.data_id||r.data_id===this._data.data_id)&&(!r.name||r.name===this._data.name)&&(!r.placeholder||r.placeholder===this._data.placeholder)&&(!r.role||r.role===this._data.role)&&(!r.type||r.type===this._data.type)&&(!r.nodeTypeInt||r.nodeTypeInt===this._data.nodeTypeInt)&&(!r.nodeName||r.nodeName===this._data.nodeName)&&(!r.cursorType||r.cursorType===this._data.cursorType)&&(!r.text||r.text===this._data.text)&&(!r.textLength||r.textLength===this._data.textLength)&&(!r.bottom||r.bottom===this._data.bottom)&&(!r.height||r.height===this._data.height)&&(!r.left||r.left===this._data.left)&&(!r.right||r.right===this._data.right)&&(!r.top||r.top===this._data.top)&&(!r.width||r.width===this._data.width)&&(!r.x||r.x===this._data.x)&&(!r.y||r.y===this._data.y)},s.createCssSelector=function(r){var i="";return r!=null&&r.nodeName&&(i+=r.nodeName.toLowerCase()),r!=null&&r.id&&(i+='[id="'+r.id+'"]'),r!=null&&r.aria_label&&(i+='[aria-label="'+r.aria_label+'"]'),r!=null&&r.data_st_field&&(i+='[data-st-field="'+r.data_st_field+'"]'),r!=null&&r.data_st_tag&&(i+='[data-st-tag="'+r.data_st_tag+'"]'),r!=null&&r.data_selenium&&(i+='[data-selenium="'+r.data_selenium+'"]'),r!=null&&r.data_selenium_id&&(i+='[data-selenium-id="'+r.data_selenium_id+'"]'),r!=null&&r.data_testid&&(i+='[data-testid="'+r.data_testid+'"]'),r!=null&&r.data_test_id&&(i+='[data-test-id="'+r.data_test_id+'"]'),r!=null&&r.data_qa_id&&(i+='[data-qa-id="'+r.data_qa_id+'"]'),r!=null&&r.data_id&&(i+='[data-id="'+r.data_id+'"]'),r!=null&&r.name&&(i+='[name="'+r.name+'"]'),r!=null&&r.placeholder&&(i+='[placeholder="'+r.placeholder+'"]'),r!=null&&r.role&&(i+='[role="'+r.role+'"]'),r!=null&&r.type&&(i+='[type="'+r.type+'"]'),i},s}();t.UiElement=a}(me||(me={})),function(t){var a=function(){function s(r){this._clientDelegate=r}return s.prototype.createUIControlData=function(r){var i=t._POSignalsUtils.Util.getSrcElement(r);if(!i)return null;var o=t.PointerConfig.instance.pointerParams.uiModelingBlacklistRegex;if(o&&window.location.href.match(o))return t._POSignalsUtils.Logger.debug("ui control data is disabled for this url"),null;var l=new t.UiElement(i,this._clientDelegate);return this.findMatchingUiControl(l)||{uiElement:l.data}},s.prototype.findMatchingUiControl=function(r,i){i===void 0&&(i=0);try{var o=t.PointerConfig.instance.pointerParams.uiControlsConfig;if(o.length===0||i>t.PointerConfig.instance.pointerParams.uiModelingMaxMatchingParents)return null;for(var l=!1,u=0,c=o;u<c.length;u++){var d=c[u];if((d.tagConfig||d.enrichedData)&&(l=!0,r.equals(d.uiElement)))return{uiElement:r.data,enrichedData:d.enrichedData,tagConfig:d.tagConfig}}if(!l)return null;var f=r.htmlElement.parentElement;if((f==null?void 0:f.nodeType)===Node.ELEMENT_NODE){var h=new t.UiElement(f,this._clientDelegate);return this.findMatchingUiControl(h,i+1)}}catch(p){t._POSignalsUtils.Logger.warn("failed to find matching ui control",p)}return null},s.prototype.convertToTagValueConfig=function(r){var i;return{context:(i=r==null?void 0:r.uiElement)===null||i===void 0?void 0:i.location,valueSelector:t.UiElement.createCssSelector(r==null?void 0:r.uiElement),operation:r==null?void 0:r.operation,valueMandatory:r==null?void 0:r.valueMandatory}},s}();t.UIControlManager=a}(me||(me={})),function(t){var a=function(){function s(r,i){this.BEHAVIORAL_TYPE="mouse",this._isStarted=!1,this._onInteraction=new t.EventDispatcher,this._onClickEvent=new t.EventDispatcher,this.lastMouseInteractionTimestamp=null,this.mouseEventsCounter=0,this.eventCounters={epochTs:Date.now()},this.delegate=r,this.uiControlManager=i,this.wheelOptions=!!t._POSignalsUtils.Util.isPassiveSupported()&&{passive:!0},this.onPointerHandle=this.onPointerEvent.bind(this),this.onClickHandle=this.onClick.bind(this),this.onDblclickHandle=this.onMouseClickEvent.bind(this),this.onMousedownHandle=this.onMouseClickEvent.bind(this),this.onMousemoveHandle=this.onMouseEvent.bind(this),this.onMouseoutHandle=this.onMouseout.bind(this),this.onMouseoverHandle=this.onMouseEvent.bind(this),this.onMouseupHandle=this.onMouseClickEvent.bind(this),this.onWheelHandle=this.onMouseEvent.bind(this),this.interactionUpdateHandle=this.interactionUpdate.bind(this)}return Object.defineProperty(s.prototype,"isStarted",{get:function(){return this._isStarted},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onInteraction",{get:function(){return this._onInteraction.asEvent()},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"onClickEvent",{get:function(){return this._onClickEvent.asEvent()},enumerable:!1,configurable:!0}),s.prototype.countEvent=function(r){this.eventCounters[r]=(this.eventCounters[r]||0)+1},s.prototype.interactionUpdate=function(){this.lastMouseInteraction?Date.now()-this.lastMouseInteractionTimestamp>=t.PointerConfig.instance.pointerParams.mouseIdleTimeoutMillis&&this.dispatch():!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)&&Date.now()-this.lastMouseInteractionTimestamp<=t.PointerConfig.instance.pointerParams.mouseIntervalMillis&&this.dispatch()},s.prototype.enrichLastInteraction=function(){var r;if(this.lastMouseInteraction){this.lastMouseInteraction.eventCounters=this.eventCounters,this.lastMouseInteraction.duration=this.delegate.getInteractionDuration(this.lastMouseInteraction.events);var i=(r=this.lastMouseInteraction.events)===null||r===void 0?void 0:r.filter(function(o){return o.type==="mousemove"});this.lastMouseInteraction.timeProximity=t._POSignalsUtils.Util.calculateMeanTimeDeltasBetweenEvents(i),this.lastMouseInteraction.meanEuclidean=t._POSignalsUtils.Util.calculateMeanDistanceBetweenPoints(i)}},s.prototype.dispatch=function(){try{this.enrichLastInteraction(),this._onInteraction.dispatch(this,this.lastMouseInteraction),this.eventCounters={epochTs:Date.now()},this.lastMouseInteraction=null,this.mouseEventsCounter=0}catch(r){t._POSignalsUtils.Logger.warn("Failed to dispatch mouse events",r)}},s.prototype.updateInteraction=function(r,i){this.lastMouseInteraction||(this.lastMouseInteraction={epochTs:Date.now(),events:[],counter:this.delegate.mouseCounter,additionalData:this.delegate.additionalData,eventCounters:{epochTs:Date.now()},duration:0,timeProximity:0,uiControl:void 0,meanEuclidean:0,reduction:{},quality:""}),this.lastMouseInteraction.events.push(r),this.mouseEventsCounter++,i&&(this.lastMouseInteraction.uiControl={uiElement:i.uiElement,enrichedData:i.enrichedData},this.delegate.addUiControlTags(i.tagConfig)),this.mouseEventsCounter>=t.PointerConfig.instance.pointerParams.maxMouseEvents&&this.dispatch()},s.prototype.start=function(){this._isStarted?t._POSignalsUtils.Logger.debug("Desktop Mouse events already listening"):(this.delegate.addEventListener(document,"click",this.onClickHandle,!0),this.delegate.addEventListener(document,"dblclick",this.onDblclickHandle),this.delegate.addEventListener(document,"mousedown",this.onMousedownHandle),this.delegate.addEventListener(document,"mousemove",this.onMousemoveHandle),this.delegate.addEventListener(document,"mouseout",this.onMouseoutHandle),this.delegate.addEventListener(document,"mouseover",this.onMouseoverHandle),this.delegate.addEventListener(document,"mouseup",this.onMouseupHandle),this.delegate.addEventListener(document,"wheel",this.onWheelHandle,this.wheelOptions),this.delegate.addEventListener(document,"pointerover",this.onPointerHandle),this.delegate.addEventListener(document,"pointerenter",this.onPointerHandle),this.delegate.addEventListener(document,"pointerdown",this.onPointerHandle),this.delegate.addEventListener(document,"pointermove",this.onPointerHandle),this.delegate.addEventListener(document,"pointerup",this.onPointerHandle),this.delegate.addEventListener(document,"pointercancel",this.onPointerHandle),this.delegate.addEventListener(document,"pointerout",this.onPointerHandle),this.delegate.addEventListener(document,"pointerleave",this.onPointerHandle),this.updateIntervalHandle=setInterval(this.interactionUpdateHandle,t.PointerConfig.instance.pointerParams.mouseIntervalMillis),this._isStarted=!0,t._POSignalsUtils.Logger.debug("Desktop Mouse events start listening..."))},s.prototype.stop=function(){this._isStarted?(document.removeEventListener("click",this.onClickHandle,!0),document.removeEventListener("dblclick",this.onDblclickHandle),document.removeEventListener("mousedown",this.onMousedownHandle),document.removeEventListener("mousemove",this.onMousemoveHandle),document.removeEventListener("mouseout",this.onMouseoutHandle),document.removeEventListener("mouseover",this.onMouseoverHandle),document.removeEventListener("mouseup",this.onMouseupHandle),document.removeEventListener("wheel",this.onWheelHandle,this.wheelOptions),document.removeEventListener("pointerover",this.onPointerHandle),document.removeEventListener("pointerenter",this.onPointerHandle),document.removeEventListener("pointerdown",this.onPointerHandle),document.removeEventListener("pointermove",this.onPointerHandle),document.removeEventListener("pointerup",this.onPointerHandle),document.removeEventListener("pointercancel",this.onPointerHandle),document.removeEventListener("pointerout",this.onPointerHandle),document.removeEventListener("pointerleave",this.onPointerHandle),clearInterval(this.updateIntervalHandle),this.updateIntervalHandle=null,this._isStarted=!1,t._POSignalsUtils.Logger.debug("Desktop Mouse events stop listening...")):t._POSignalsUtils.Logger.debug("Desktop Mouse events already stopped")},s.prototype.onClick=function(r){var i,o;try{this.lastMouseInteractionTimestamp=Date.now();var l=t._POSignalsUtils.Util.getSrcElement(r);if(this._onClickEvent.dispatch(this,l),!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||(this.countEvent(r.type),t.PointerConfig.instance.pointerParams.eventsToIgnore.has(r.type)))return;var u=this.uiControlManager.createUIControlData(r);this.updateInteraction(this.createMouseClickEvent(r.type,r),u),this.dispatch(),((o=(i=u==null?void 0:u.uiElement)===null||i===void 0?void 0:i.id)===null||o===void 0?void 0:o.length)>0&&t._POSignalsUtils.Logger.info("Tapped on element with id '"+u.uiElement.id+"'")}catch(c){t._POSignalsUtils.Logger.warn("error in "+r.type+" handler",c)}},s.prototype.onMouseout=function(r){try{this.onMouseEvent(r);var i=r.relatedTarget||r.toElement;i&&i.nodeName!=="HTML"||this.dispatch()}catch(o){t._POSignalsUtils.Logger.warn("error in "+r.type+" handler",o)}},s.prototype.onMouseEvent=function(r){try{if(r.type!=="wheel"&&(this.lastMouseInteractionTimestamp=Date.now()),!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||(this.countEvent(r.type),t.PointerConfig.instance.pointerParams.eventsToIgnore.has(r.type)))return;this.updateInteraction(this.createMouseEvent(r.type,r))}catch(i){t._POSignalsUtils.Logger.warn("error in "+r.type+" handler",i)}},s.prototype.onMouseClickEvent=function(r){try{if(this.lastMouseInteractionTimestamp=Date.now(),!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||(this.countEvent(r.type),t.PointerConfig.instance.pointerParams.eventsToIgnore.has(r.type)))return;this.updateInteraction(this.createMouseClickEvent(r.type,r))}catch(i){t._POSignalsUtils.Logger.warn("error in "+r.type+" handler",i)}},s.prototype.onPointerEvent=function(r){try{if(this.lastMouseInteractionTimestamp=Date.now(),!this.delegate.collectBehavioralData(this.BEHAVIORAL_TYPE)||(this.countEvent(r.type),t.PointerConfig.instance.pointerParams.eventsToIgnore.has(r.type)))return;this.updateInteraction(this.createPointerEvent(r.type,r))}catch(i){t._POSignalsUtils.Logger.warn("error in "+r.type+" handler",i)}},s.prototype.clearBuffer=function(){var r=null;return this.lastMouseInteraction&&(r=this.lastMouseInteraction),this.lastMouseInteraction=null,r},s.prototype.isEmpty=function(){return!this.lastMouseInteraction},s.prototype.createMouseEvent=function(r,i){return{type:r,eventTs:i.timeStamp,epochTs:Date.now(),button:i.button,offsetX:i.offsetX,offsetY:i.offsetY,pageX:i.pageX,pageY:i.pageY,screenX:i.screenX,screenY:i.screenY,getX:function(){return i.screenX},getY:function(){return i.screenY}}},s.prototype.createPointerEvent=function(r,i){var o=this.createMouseEvent(r,i);return Zn(Zn({},o),{pointerId:i.pointerId,width:i.width,height:i.height,pressure:i.pressure,tangentialPressure:i.tangentialPressure,tiltX:i.tiltX,tiltY:i.tiltY,twist:i.twist,pointerType:i.pointerType,isPrimary:i.isPrimary})},s.prototype.createMouseClickEvent=function(r,i){var o=this.createMouseEvent(r,i);if(i.target&&t._POSignalsUtils.Util.isFunction(i.target.getBoundingClientRect)){var l=i.target.getBoundingClientRect();o.targetBottom=l.bottom,o.targetHeight=l.height,o.targetLeft=l.left,o.targetRight=l.right,o.targetTop=l.top,o.targetWidth=l.width,o.targetX=l.x,o.targetY=l.y}return o},s}();t.Mouse=a}(me||(me={})),function(t){var a=function(){function s(r){this.counter=0,this.key=r,this.counter=this.loadFromStorage()}return s.prototype.loadFromStorage=function(){var r=s.sessionStorage.getItem(this.key);return Number(r)||0},s.prototype.get=function(){return this.counter},s.prototype.increment=function(r){r===void 0&&(r=1),this.counter+=r,s.sessionStorage.setItem(this.key,this.counter)},s.prototype.decrement=function(r){r===void 0&&(r=1),this.increment(-1*r)},s.prototype.reset=function(){this.counter=0,s.sessionStorage.removeItem(this.key)},s.sessionStorage=t._POSignalsStorage.SessionStorage.instance.sessionStorage,s}();t.StorageCounter=a}(me||(me={})),function(t){var a=function(){function s(r){this.mapKey=r,this.cache=this.loadFromStorage()}return s.prototype.loadFromStorage=function(){var r=s.sessionStorage.getItem(this.mapKey);return r||(r=JSON.stringify({})),JSON.parse(r)},s.prototype.asMap=function(){return this.cache},s.prototype.set=function(r,i,o){o===void 0&&(o=!0),this.cache[r]=i,o&&s.sessionStorage.setItem(this.mapKey,JSON.stringify(this.cache))},s.prototype.sync=function(){s.sessionStorage.setItem(this.mapKey,JSON.stringify(this.cache))},s.prototype.get=function(r){return this.cache[r]},s.prototype.delete=function(r){delete this.cache[r],s.sessionStorage.setItem(this.mapKey,JSON.stringify(this.cache))},s.prototype.values=function(){return t._POSignalsUtils.Util.values(this.cache)},s.prototype.clear=function(){this.cache={},s.sessionStorage.removeItem(this.mapKey)},s.prototype.forEach=function(r){for(var i in this.cache)this.cache.hasOwnProperty(i)&&r(this.cache[i],i)},s.sessionStorage=t._POSignalsStorage.SessionStorage.instance.sessionStorage,s}();t.StorageMap=a}(me||(me={})),function(t){var a=function(){function s(){this.config={},this._cacheHash=0,this.cache=new Map}return s.prototype.refreshConfig=function(r){try{if(!r)return;var i=t._POSignalsUtils.Util.hashCode(JSON.stringify(r));if(this._cacheHash===i)return;this.config=r,this._cacheHash=i,this.cache=new Map}catch(o){t._POSignalsUtils.Logger.warn("Failed to set css selectors",o)}},s.prototype.getMatchingTags=function(r,i){var o=this.cache.get(r);if(o)return o;var l={};for(var u in this.config)try{if(!this.config.hasOwnProperty(u))continue;var c=this.config[u].selector||[];t._POSignalsUtils.Util.isArray(c)||(c=[].concat(c));for(var d=0,f=c;d<f.length;d++){var h=f[d];t._POSignalsUtils.Util.isSelectorMatches(r,h,i)&&(l[u]=this.config[u])}}catch(p){t._POSignalsUtils.Logger.warn("Failed to get the config for "+u+" tag",p)}return this.cache.set(r,l),l},s.prototype.getValue=function(r,i){if(i&&r)switch(i=i.trim(),r){case"email_domain":return t._POSignalsUtils.Util.getEmailDomain(i);case"obfuscate":return""+t._POSignalsUtils.Util.mod(i,1e3);case"plain":return i;case"zip":return i.substr(0,3);case"length":return""+i.length}return""},Object.defineProperty(s.prototype,"cacheHash",{get:function(){return this._cacheHash},enumerable:!1,configurable:!0}),s}();t.TagsIdentifications=a}(me||(me={})),function(t){var a=function(){function s(){this._reduceFactorMap=null}return Object.defineProperty(s.prototype,"reduceFactorMap",{get:function(){return this._reduceFactorMap},set:function(r){this._reduceFactorMap=r},enumerable:!1,configurable:!0}),s.prototype.reduceEventsByFactor=function(r){var i=this;try{if(!r||r.length===0||!this.reduceFactorMap)return r;for(var o=new Map,l=[],u=0;u<r.length;u++)o.get(r[u].type)?o.get(r[u].type).push(u):o.set(r[u].type,[u]);o.forEach(function(d,f){var h=i.reduceFactorMap[f]?Number(i.reduceFactorMap[f]):0;i.reduceByFactor(h,d,function(p){l[d[p]]=!0})});var c=[];for(u=0;u<r.length;u++)l[u]&&c.push(r[u]);return r.length!==c.length&&t._POSignalsUtils.Logger.debug(r.length-c.length+" events reduced out of "+r.length),c}catch(d){return t._POSignalsUtils.Logger.warn("Failed to reduce events",d),r}},s.prototype.reduceByFactor=function(r,i,o){r=Math.min(r,1);for(var l=Math.round(Math.max(i.length*(1-r),2)),u=(i.length-1)/(l-1),c=Math.min(i.length,l),d=0;d<c;d++)o(Math.round(d*u))},s}();t.ReduceFactor=a}(me||(me={})),function(t){var a=function(){function s(r){this.algorithm=r}return s.prototype.reduce=function(r,i){if(s.TYPES_TO_REDUCE.indexOf(i)===-1)return{keptEvents:r,epsilon:0};if(r.length<=s.MIN_EVENTS_TO_REDUCE)return{keptEvents:r,epsilon:0};var o=r.length<50?.55:r.length<100?.35:.2,l=r.length<50?1:r.length<100?3:7,u=this.algorithm.reduceEvents(r,l),c=u.length/r.length;if(u.length>=10&&c>=o)return{keptEvents:u,epsilon:l};var d=r.length<50?.1:r.length<100?.3:.7,f=this.algorithm.reduceEvents(r,d),h=f.length/r.length;if(f.length<=s.MIN_EVENTS_TO_REDUCE||h<=o)return{keptEvents:f,epsilon:d};var p=(Math.min(l,Math.pow(l,c/o))*Math.abs(h-o)+d*Math.abs(c-o))/Math.abs(c-h);return(p<d||p>l)&&t._POSignalsUtils.Logger.warn("linear weighted average - calculated epsilon is out of range, lowEpsilon: "+d+", highEpsilon: "+l+", epsilon: "+p),{keptEvents:this.algorithm.reduceEvents(r,p),epsilon:p}},s.MIN_EVENTS_TO_REDUCE=18,s.TYPES_TO_REDUCE=["mousemove","touchmove"],s}();t.RDPEpsilonStrategy=a}(me||(me={})),function(t){var a=function(){function s(r){this.rdpStrategy=r}return s.prototype.reduceWithRPD=function(r){var i=this;if(!r||r.length===0)return{events:r,reductionInfo:{}};for(var o=new Map,l=[],u=0,c=r;u<c.length;u++){var d=c[u];o.get(d.type)?o.get(d.type).push(d):o.set(d.type,[d])}var f={};return o.forEach(function(h,p){var m=i.rdpStrategy.reduce(h,p),w=m.keptEvents,E=m.epsilon;E>0&&(f[p]={epsilon:E,originalLength:h.length,keptLength:w.length}),l=l.concat(w)}),{events:t._POSignalsUtils.Util.sortEventsByTimestamp(l),reductionInfo:f}},s}();t.ReduceRDP=a}(me||(me={})),function(t){var a=function(){function s(){}return s.prototype.getSqDist=function(r,i){var o=r.getX()-i.getX(),l=r.getY()-i.getY();return o*o+l*l},s.prototype.getSqSegDist=function(r,i,o){var l=i.getX(),u=i.getY(),c=o.getX()-l,d=o.getY()-u;if(c!==0||d!==0){var f=((r.getX()-l)*c+(r.getY()-u)*d)/(c*c+d*d);f>1?(l=o.getX(),u=o.getY()):f>0&&(l+=c*f,u+=d*f)}return(c=r.getX()-l)*c+(d=r.getY()-u)*d},s.prototype.simplifyRadialDist=function(r,i){for(var o,l=r[0],u=[l],c=1,d=r.length;c<d;c++)o=r[c],this.getSqDist(o,l)>i&&(u.push(o),l=o);return l!==o&&u.push(o),u},s.prototype.simplifyDPStep=function(r,i,o,l,u){for(var c,d=l,f=i+1;f<o;f++){var h=this.getSqSegDist(r[f],r[i],r[o]);h>d&&(c=f,d=h)}d>l&&(c-i>1&&this.simplifyDPStep(r,i,c,l,u),u.push(r[c]),o-c>1&&this.simplifyDPStep(r,c,o,l,u))},s.prototype.simplifyDouglasPeucker=function(r,i){var o=r.length-1,l=[r[0]];return this.simplifyDPStep(r,0,o,i,l),l.push(r[o]),l},s.prototype.simplify=function(r,i,o){if(r.length<=2)return r;var l=i!==void 0?i*i:1;return r=o?r:this.simplifyRadialDist(r,l),r=this.simplifyDouglasPeucker(r,l)},s.prototype.reduceEvents=function(r,i){return this.simplify(r,i)},s}();t.RDPReduction=a}(me||(me={})),function(t){var a=function(){function s(){}return s.prototype.filterMoveEvents=function(r,i){if(r.length<=18)return r;for(var o=r.filter(function(h){return h.type===i}),l=t._POSignalsUtils.Util.keepFirstEventsWithDistance({events:o,threshold:200,min:18,max:30}),u=-1,c={},d=0;d<r.length;d++){var f=r[d];f.type!==i&&(f.type!=="mousedown"?c[f.type]||(l.push(f),c[f.type]=!0):u=d)}return u>=0&&l.push(r[u]),t._POSignalsUtils.Util.sortEventsByTimestamp(l)},s}();t.EventsReduction=a}(me||(me={})),function(t){var a=function(){function s(){this.reduceFactor=new t.ReduceFactor,this.reduceRDP=new t.ReduceRDP(new t.RDPEpsilonStrategy(new t.RDPReduction)),this.eventsReduction=new t.EventsReduction}return Object.defineProperty(s.prototype,"reduceFactorMap",{set:function(r){this.reduceFactor.reduceFactorMap=r},enumerable:!1,configurable:!0}),s.prototype.reduceGesture=function(r){var i=this.reduceRDP.reduceWithRPD(r.events);r.events=this.eventsReduction.filterMoveEvents(i.events,"touchmove"),r.reduction=i.reductionInfo},s.prototype.reduceKeyboardInteraction=function(r){r.events=t._POSignalsUtils.Util.filterArrayByLength(r.events,50)},s.prototype.reduceMouseInteraction=function(r){var i=this.reduceRDP.reduceWithRPD(r.events);r.events=this.eventsReduction.filterMoveEvents(i.events,"mousemove"),r.reduction=i.reductionInfo},s}();t.ReductionManager=a}(me||(me={})),function(t){var a=function(s){function r(i,o){var l=s.call(this,i)||this;return l.tagsWithValueIdentifications=new t.TagsIdentifications,l.reductionManager=new t.ReductionManager,l.lastGestureTimestamp=0,l.currentBufferSize=0,l.MAX_EVENT_COUNTERS=20,l.bufferingStrategy=t.StrategyFactory.createBufferingStrategy(o,l),l.capturedKeyboardInteractions=new t.StorageArray(t._POSignalsUtils.Constants.CAPTURED_KEYBOARD_INTERACTIONS),l.keyboardInteractionsCount=new t.StorageCounter(t._POSignalsUtils.Constants.KEYBOARD_INTERACTIONS_COUNT),l.mouseInteractionsCount=new t.StorageCounter(t._POSignalsUtils.Constants.MOUSE_INTERACTIONS_COUNT),l.gesturesCount=new t.StorageCounter(t._POSignalsUtils.Constants.GESTURES_COUNT),l.mouseEventCounters=new t.StorageArray(t._POSignalsUtils.Constants.MOUSE_EVENT_COUNTERS),l.keyboardEventCounters=new t.StorageArray(t._POSignalsUtils.Constants.KEYBOARD_EVENT_COUNTERS),l.touchEventCounters=new t.StorageArray(t._POSignalsUtils.Constants.TOUCH_EVENT_COUNTERS),l.indirectEventCounters=new t.StorageArray(t._POSignalsUtils.Constants.INDIRECT_EVENT_COUNTERS),l.capturedMouseInteractions=new t.StorageArray(t._POSignalsUtils.Constants.CAPTURED_MOUSE_INTERACTIONS),l.capturedGestures=new t.StorageArray(t._POSignalsUtils.Constants.CAPTURED_GESTURES),l.capturedIndirectEvents=new t.StorageArray(t._POSignalsUtils.Constants.CAPTURED_INDIRECT),l.capturedMouseInteractionSummary=new t.StorageArray(t._POSignalsUtils.Constants.CAPTURED_MOUSE_INTERACTIONS_SUMMARY),l.currentBufferSize=l.capturedGestures.length+l.capturedMouseInteractions.length+l.capturedKeyboardInteractions.length,l.uiControlManager=new t.UIControlManager(l),l.keyboard=new t.Keyboard(l,l.uiControlManager),l.keyboard.onInteraction.subscribe(l.handleKeyboardInteraction.bind(l)),l.keyboard.onEnterPress.subscribe(l.handleStTagOnEnter.bind(l)),l.keyboard.onObfuscatedValue.subscribe(l.handleTagValueOnBlur.bind(l)),l.mouse=new t.Mouse(l,l.uiControlManager),l.mouse.onInteraction.subscribe(l.handleMouseInteraction.bind(l)),l.mouse.onClickEvent.subscribe(l.handleStTagOnClick.bind(l)),l.sensors=new t.Sensors(l),l.gesture=new t.GestureEvents(l,l.sensors),l.gesture.onGesture.subscribe(l.handleGesture.bind(l)),l.indirect=new t.IndirectClient(l),l.indirect.onIndirect.subscribe(l.handleIndirect.bind(l)),l.onUrlChangeHandler=l.onUrlChange.bind(l),l}return za(r,s),Object.defineProperty(r.prototype,"keyboardCounter",{get:function(){return this.keyboardInteractionsCount.get()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"mouseCounter",{get:function(){return this.mouseInteractionsCount.get()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"gesturesCounter",{get:function(){return this.gesturesCount.get()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"additionalData",{get:function(){var i=t._POSignalsUtils.Util.getDeviceOrientation();return{locationHref:location.href,devTools:t._POSignalsUtils.Util.getDevToolsState(),innerWidth:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,innerHeight:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,outerWidth:window.outerWidth,outerHeight:window.outerHeight,width:screen.width,height:screen.height,availWidth:screen.availWidth,availHeight:screen.availHeight,pixelRatio:window.devicePixelRatio,deviceOrientation:i.orientation,deviceAngle:i.angle}},enumerable:!1,configurable:!0}),r.prototype.getBehavioralData=function(){this.clearIndirectBuffer();var i=this.reduceEpochEventCounters();return{mouse:{count:this.mouseInteractionsCount.get(),interactions:this.capturedMouseInteractions.get()},keyboard:{count:this.keyboardInteractionsCount.get(),interactions:this.capturedKeyboardInteractions.get()},touch:{count:this.gesturesCount.get(),interactions:this.capturedGestures.get()},indirect:{events:this.capturedIndirectEvents.get()},mouseSummary:{events:this.capturedMouseInteractionSummary.get()},eventCounters:i}},r.prototype.getBufferSize=function(){return this.currentBufferSize},r.prototype.getInteractionDuration=function(i){return(i==null?void 0:i.length)>0?i[i.length-1].epochTs-i[0].epochTs:0},r.prototype.dispose=function(){return dt(this,void 0,void 0,function(){return ft(this,function(i){return this.stopListening(),this.keyboard.onInteraction.unsubscribe(this.handleKeyboardInteraction.bind(this)),this.keyboard.onEnterPress.unsubscribe(this.handleStTagOnEnter.bind(this)),this.keyboard.onObfuscatedValue.unsubscribe(this.handleTagValueOnBlur.bind(this)),this.mouse.onInteraction.unsubscribe(this.handleMouseInteraction.bind(this)),this.mouse.onClickEvent.unsubscribe(this.handleStTagOnClick.bind(this)),this.gesture.onGesture.unsubscribe(this.handleGesture.bind(this)),this.indirect.unsubscribe(),this.indirect.onIndirect.unsubscribe(this.handleIndirect.bind(this)),[2]})})},r.prototype.collectBehavioralData=function(i){if(this.isBehavioralDataPaused)return!1;var o=t.PointerConfig.instance.pointerParams.behavioralBlacklist;return!(i&&o&&o[i])||!window.location.href.match(o[i])},r.prototype.getElementsStID=function(i){try{return t._POSignalsUtils.Util.getAttribute(i,"data-st-field")||this.keyboard.fieldsIdentifications.getIdentification(i,0)||""}catch(o){return t._POSignalsUtils.Logger.warn("failed to get element stId",o),""}},r.prototype.addEventListener=function(i,o,l,u){t.PointerConfig.instance.pointerParams.eventsBlackList.has(o)||(i.addEventListener(o,this.onEventHandler,u),i.addEventListener(o,l,u))},r.prototype.addUiControlTags=function(i){if((i==null?void 0:i.length)>0)for(var o=!1,l=0,u=i;l<u.length;l++){var c=u[l];try{if(c!=null&&c.name){var d=this.uiControlManager.convertToTagValueConfig(c.value);o=this.addSingleTagWithValue(c.name,d)||o}}catch(f){t._POSignalsUtils.Logger.warn("failed to add tag config",f)}}},r.prototype.refreshListening=function(){var i=t.PointerConfig.instance;this.tagsWithValueIdentifications.refreshConfig(i.pointerParams.remoteTags),this.reductionManager.reduceFactorMap=i.pointerParams.eventsReduceFactorMap,this.keyboard.refreshKeyboardCssSelectors(i.pointerParams.keyboardCssSelectors),this.sensors.maxSensorSamples=i.pointerParams.maxSensorSamples,this.sensors.sensorsTimestampDeltaInMillis=i.pointerParams.sensorsDeltaInMillis,this.mouse.start(),this.keyboard.start(),this.gesture.start(),this.indirect.start(),i.pointerParams.maxSensorSamples==0?this.sensors.stop():this.sensors.start(),this.addEventListener(window,"_onlocationchange",this.onUrlChangeHandler),this.addEventListener(window,"popstate",this.onUrlChangeHandler)},r.prototype.addSingleTagWithValue=function(i,o){try{if(o!=null&&o.context&&!window.location.href.match(o.context))return!1;var l="";if(o!=null&&o.operation&&o!=null&&o.valueSelector){var u=document.querySelector(o.valueSelector);if(u){var c=t._POSignalsUtils.Util.getElementText(u);l=this.tagsWithValueIdentifications.getValue(o.operation,c)}}if(o!=null&&o.valueMandatory&&!l)return t._POSignalsUtils.Logger.warn("tag '"+i+"' wasn't added. value is missing"),!1;this.addTag(i,l)}catch(d){t._POSignalsUtils.Logger.warn("failed to add "+i+" tag",d)}return!1},r.prototype.addTagsWithValue=function(i){var o=!1;for(var l in i)i.hasOwnProperty(l)&&(o=this.addSingleTagWithValue(l,i[l])||o)},r.prototype.handleStTagOnEnter=function(i,o){o instanceof HTMLInputElement&&t._POSignalsUtils.Util.isTextInput(o)&&this.handleStTagElement(o)},r.prototype.handleTagValueOnBlur=function(i,o){o&&this.addTag(o.fieldKey,o.obfuscatedValue)},r.prototype.handleStTagOnClick=function(i,o){o instanceof HTMLInputElement&&!t._POSignalsUtils.Util.isClickableInput(o)||this.handleStTagElement(o)},r.prototype.handleMouseInteraction=function(i,o){if(o){this.incrementEventCounters(o.eventCounters,"mouse"),this.filterOldMouseEvents(),this.mouseInteractionsCount.increment(),this.reductionManager.reduceMouseInteraction(o);var l=this.bufferingStrategy.calculateStrategyResult(o,"mouse");o.quality=l.quality,this.handleMouseInteractionSummary(o),l.shouldCollect&&(l.remove&&this.removeInteraction(l.remove),this.capturedMouseInteractions.push(o),this.lastGestureTimestamp!==o.events[o.events.length-1].eventTs&&this.currentBufferSize++)}},r.prototype.handleMouseInteractionSummary=function(i){var o={epochTs:i.epochTs,duration:this.getInteractionDuration(i.events),quality:i.quality};this.capturedMouseInteractionSummary.push(o),this.capturedMouseInteractionSummary.length>10&&this.capturedMouseInteractionSummary.remove(0)},r.prototype.handleIndirect=function(i,o){this.filterOldIndirectEvents(),this.addIndirectEvents(o)},r.prototype.handleKeyboardInteraction=function(i,o){if(o){this.incrementEventCounters(o.eventCounters,"keyboard"),this.filterOldKeyboardEvents(),this.keyboardInteractionsCount.increment(),this.reductionManager.reduceKeyboardInteraction(o);var l=this.bufferingStrategy.calculateStrategyResult(o,"keyboard");l.shouldCollect&&(l.remove&&this.removeInteraction(l.remove),o.quality=l.quality,this.capturedKeyboardInteractions.push(o),this.currentBufferSize++)}},r.prototype.handleGesture=function(i,o){var l;if(this.isValidGesture(o)){this.incrementEventCounters(o.eventCounters,"touch"),this.filterOldGesturesEvents(),this.gesturesCount.increment(),this.reductionManager.reduceGesture(o);var u=this.bufferingStrategy.calculateStrategyResult(o,"touch");u.shouldCollect&&(u.remove&&this.removeInteraction(u.remove),o.quality=u.quality,this.sensors.onGesture(o),this.capturedGestures.push(o),this.currentBufferSize++,this.lastGestureTimestamp=(l=o.events[o.events.length-1])===null||l===void 0?void 0:l.eventTs)}},r.prototype.clearIndirectBuffer=function(){var i=this.indirect.clearBuffer();this.addIndirectEvents(i)},r.prototype.removeInteraction=function(i){switch(i.type){case"mouse":this.capturedMouseInteractions.remove(i.index);break;case"keyboard":this.capturedKeyboardInteractions.remove(i.index);break;case"touch":this.capturedGestures.remove(i.index)}},r.prototype.addIndirectEvents=function(i){var o;if(((o=i==null?void 0:i.events)===null||o===void 0?void 0:o.length)>0){for(var l=[],u=t._POSignalsUtils.Util.typesCounter(this.capturedIndirectEvents.get()),c=0,d=i.events;c<d.length;c++){var f=d[c];t.PointerConfig.instance.pointerParams.highPriorityIndirectEvents.has(f.type)&&this.capturedIndirectEvents.length+l.length<t.PointerConfig.instance.pointerParams.maxIndirectEvents&&l.push(f),u[f.type]>0||(l.push(f),u[f.type]=1)}this.incrementEventCounters(u,"indirect"),this.capturedIndirectEvents.set(this.capturedIndirectEvents.concat(l))}},r.prototype.onUrlChange=function(){this.addTag("location",window.location.href)},r.prototype.handleStTagElement=function(i){if(i){var o=t.PointerConfig.instance.pointerParams.maxSelectorChildren,l=this.tagsWithValueIdentifications.getMatchingTags(i,o);this.addTagsWithValue(l);var u=t._POSignalsUtils.Util.isSelectorMatches(i,"[data-st-tag]",o);if(u instanceof Element){var c=t._POSignalsUtils.Util.getAttribute(u,"data-st-tag"),d=t._POSignalsUtils.Util.getAttribute(u,"data-st-tag-value");c&&this.addTag(c,d)}}},r.prototype.stopListening=function(){this.keyboard.stop(),this.mouse.stop(),this.gesture.stop(),this.indirect.stop(),this.sensors.stop(),window.removeEventListener("_onlocationchange",this.onUrlChangeHandler),window.removeEventListener("popstate",this.onUrlChangeHandler)},r.prototype.clearBehavioralData=function(){this.capturedKeyboardInteractions.clear(),this.capturedMouseInteractions.clear(),this.capturedGestures.clear(),this.capturedIndirectEvents.clear(),this.sensors.reset(),t.Tags.instance.reset(),this.currentBufferSize=0,this.keyboardInteractionsCount.reset(),this.mouseInteractionsCount.reset(),this.gesturesCount.reset(),this.mouseEventCounters.clear(),this.mouseEventCounters.clear(),this.indirectEventCounters.clear(),this.keyboardEventCounters.clear(),this.touchEventCounters.clear(),this.eventCounters.clear()},r.prototype.isValidGesture=function(i){var o,l;return((o=i==null?void 0:i.events)===null||o===void 0?void 0:o.length)>0&&((l=i==null?void 0:i.events)===null||l===void 0?void 0:l.length)<t.PointerConfig.instance.pointerParams.maxSnapshotsCount},r.prototype.filterOldIndirectEvents=function(){var i=new Date().getTime();this.capturedIndirectEvents.set(this.capturedIndirectEvents.get().filter(function(o){return i-o.epochTs<=36e5}))},r.prototype.filterOldMouseEvents=function(){var i=new Date().getTime();this.capturedMouseInteractions.set(this.capturedMouseInteractions.get().filter(function(o){return i-o.epochTs<=36e5}))},r.prototype.filterOldKeyboardEvents=function(){var i=new Date().getTime();this.capturedKeyboardInteractions.set(this.capturedKeyboardInteractions.get().filter(function(o){return i-o.epochTs<=36e5}))},r.prototype.filterOldGesturesEvents=function(){var i=new Date().getTime();this.capturedGestures.set(this.capturedGestures.get().filter(function(o){return i-o.epochTs<=36e5}))},r.prototype.incrementEventCounters=function(i,o){var l,u=Date.now();switch(o){case"mouse":l=this.mouseEventCounters;break;case"keyboard":l=this.keyboardEventCounters;break;case"touch":l=this.touchEventCounters;break;case"indirect":l=this.indirectEventCounters}l.set(l.get().filter(function(c){return u-c.epochTs<=36e5})),l.length<this.MAX_EVENT_COUNTERS||l.remove(0),l.push(i)},r.prototype.reduceEpochEventCounters=function(){var i={epochTs:Date.now()};return yo(this.mouseEventCounters.get(),this.keyboardEventCounters.get(),this.touchEventCounters.get(),this.indirectEventCounters.get()).forEach(function(o){Object.keys(o).forEach(function(l){l!=="epochTs"&&(i[l]?i[l]+=o[l]:i[l]=o[l])})}),delete i.epochTs,i},r}(t.ClientBase);t.Client=a}(me||(me={}));var me,rb=function(){function t(){}return t.getData=function(){return me.ClientBase.instance().getData()},t.init=function(a){return me._POSignalsUtils.Util.ieFix(),me.ClientBase.instance().startSignals(a)},t.initSilent=function(a){return this.init(a)},t.pauseBehavioralData=function(){me.ClientBase.instance().pauseBehavioralData()},t.resumeBehavioralData=function(){me.ClientBase.instance().resumeBehavioralData()},t}(),ib=function(t){document.readyState!=="loading"?t():document.addEventListener("DOMContentLoaded",t)};ib(function(){if(!window._pingOneSignalsReady){var t=new CustomEvent("PingOneSignalsReadyEvent");document.dispatchEvent(t),window._pingOneSignalsReady=!0}}),function(t){var a;(function(r){r[r.RICH=3]="RICH",r[r.CLICK=2]="CLICK",r[r.MOVE=1]="MOVE",r[r.POOR=0]="POOR"})(a||(a={}));var s=function(){function r(i,o,l,u,c,d){this.clientVersion=i,this.instanceUUID=o,this.initParams=l,this.metadata=u,this.behavioralDataHandler=c,this.sessionData=d,this.Max_Mouse_Touch_Interactions=6}return r.prototype.getData=function(i){return dt(this,void 0,void 0,function(){var o,l;return ft(this,function(u){switch(u.label){case 0:return this.incrementGetData(),[4,this.getRiskData(i)];case 1:return o=u.sent(),(l=o.tags.findIndex(function(c){return c.name==="Get Data"}))!==-1?o.tags[l]=this._getDataCounter:o.tags.push(this._getDataCounter),[2,this.toString(o)]}})})},r.prototype.getRiskData=function(i){return dt(this,void 0,void 0,function(){var o,l,u,c,d,f,h;return ft(this,function(p){switch(p.label){case 0:return[4,Promise.all([this.metadata.getDeviceAttributes(),this.metadata.getLocalAgentJwt()])];case 1:return o=p.sent(),l=o[0],u=o[1],c=this.behavioralDataHandler.getBehavioralData(),[4,this.modifyBehavioralData(c)];case 2:return c=p.sent(),d={behavioral:c,tags:t.Tags.instance.tags,sdkConfig:this.initParams,epochTs:i,instanceUUID:this.instanceUUID,tabUUID:t._POSignalsStorage.SessionStorage.instance.tabUUID,sdkVersion:this.clientVersion,platform:"web",clientToken:window._pingOneSignalsToken},this.sessionData.universalTrustEnabled?(h={},[4,this.getJWTSignedPayload(i,l.deviceId)]):[3,4];case 3:return f=Zn.apply(void 0,[(h.jwtDeviceAttributes=p.sent(),h),d]),[3,5];case 4:f=Zn({deviceAttributes:l},d),p.label=5;case 5:return this.sessionData.agentIdentificationEnabled&&(f=Zn({jwtAgentPayload:u},f)),[2,f]}})})},r.prototype.toString=function(i){var o,l=this.metadata.getObfsInfo();try{o=t._POSignalsUtils.Util.string2buf(JSON.stringify(i))}catch(u){throw new Error("Failed to create data, "+u.message)}try{o=t.pako.gzip(o)}catch(u){throw new Error("Failed to compress data, "+u.message)}try{o=t._POSignalsUtils.Util.encryptionBytes(o,l.key)}catch(u){throw new Error("failed to obfuscate data, "+u.message)}try{return t._POSignalsUtils.Util.base64Uint8Array(o)+"."+btoa(l.identifier)}catch(u){throw new Error("failed to encode data, "+u.message)}},r.prototype.getJWTSignedPayload=function(i,o){return dt(this,void 0,void 0,function(){var l;return ft(this,function(u){return l=this.metadata.getSerializedDeviceAttributes(),[2,this.sessionData.signJWTChallenge(l,i,o)]})})},r.prototype.modifyBehavioralData=function(i){return dt(this,void 0,void 0,function(){return ft(this,function(o){return i.mouse.interactions=this.getBestMouseInteractions(i.mouse.interactions),i.touch.interactions=this.getBestTouchInteractions(i.touch.interactions,i.mouse.interactions),i.keyboard.interactions=this.getBestKeyboardInteractions(i.keyboard.interactions),[2,i]})})},r.prototype.getBestInteractions=function(i){var o=Date.now();t._POSignalsUtils.Logger.debug("total interactions:",i);var l=i.filter(function(f){return o-f.epochTs<=18e4}),u=this.sortInteractions(l).slice(0,2),c=i.filter(function(f){return!u.some(function(h){return h.epochTs===f.epochTs})}),d=this.sortInteractions(c).slice(0,5-u.length);return t._POSignalsUtils.Logger.debug("final interactions for getData:",yo(u,d)),yo(u,d).sort(function(f,h){return f.epochTs-h.epochTs})},r.prototype.getBestMouseInteractions=function(i){return this.getBestInteractions(i)},r.prototype.getBestKeyboardInteractions=function(i){return this.getBestInteractions(i)},r.prototype.getBestTouchInteractions=function(i,o){var l=this.Max_Mouse_Touch_Interactions-o.length;return this.getTouchBestInteraction(i,l)},r.prototype.incrementGetData=function(){this._getDataCounter?(this._getDataCounter.value++,this._getDataCounter.timestamp=Date.now()):this._getDataCounter={value:1,name:"Get Data",timestamp:Date.now(),epochTs:Date.now()}},r.prototype.getTouchBestInteraction=function(i,o){return(i=this.sortInteractions(i)).slice(0,o)},r.prototype.sortInteractions=function(i){return i.sort(function(o,l){var u=a[o.quality],c=a[l.quality];return u===c?l.epochTs-o.epochTs:c-u})},r}();t.DataHandler=s}(me||(me={})),function(t){var a=function(){function s(){this._configuration={enabled:s.ENABLED_DEFAULT,bufferSize:s.BUFFER_SIZE_DEFAULT,maxSnapshotsCount:s.MAX_SNAPSHOTS_COUNT_DEFAULT,sensors:s.SENSORS_DEFAULT,metadataBlacklist:s.METADATA_BLACK_LIST_DEFAULT,tagsBlacklistRegex:s.TAGS_BLACK_LIST_REGEX_DEFAULT,behavioralBlacklist:s.BEHAVIORAL_BLACK_LIST_DEFAULT,webRtcUrl:s.WEB_RTC_URL_DEFAULT,eventsBlackList:s.EVENTS_BLACK_LIST_DEFAULT,eventsToIgnore:s.EVENTS_TO_IGNORE_DEFAULT,highPriorityIndirectEvents:s.HIGH_PRIORITY_INDIRECT_EVENTS_DEFAULT,indirectIntervalMillis:s.INDIRECT_INTERVAL_MILLIS_DEFAULT,mouseIntervalMillis:s.MOUSE_INTERVAL_MILLIS_DEFAULT,mouseIdleTimeoutMillis:s.MOUSE_IDLE_TIMEOUT_MILLIS_DEFAULT,maxMouseEvents:s.MAX_MOUSE_EVENTS_DEFAULT,maxIndirectEvents:s.MAX_INDIRECT_EVENTS_DEFAULT,keyboardFieldBlackList:s.KEYBOARD_FIELD_BLACK_LIST_DEFAULT,keyboardCssSelectors:s.KEYBOARD_CSS_SELECTORS_DEFAULT,keyboardCssSelectorsBlacklist:s.KEYBOARD_CSS_SELECTORS_BLACKLIST_DEFAULT,keyboardIdentifierAttributes:s.KEYBOARD_IDENTIFIER_ATTRIBUTES_DEFAULT,remoteTags:s.REMOTE_TAGS_DEFAULT,maxSelectorChildren:s.MAX_SELECTOR_CHILDREN_DEFAULT,eventsReduceFactorMap:s.EVENTS_REDUCE_FACTOR_MAP_DEFAULT,propertyDescriptors:s.PROPERTY_DESCRIPTORS_DEFAULT,additionalMediaCodecs:s.ADDITIONAL_MEDIA_CODECS_DEFAULT,fingerprintTimeoutMillis:s.FINGER_PRINT_TIMEOUT_MILLIS_DEFAULT,metadataDataPoints:s.METADATA_DATA_POINTS_DEFAULT,uiModeling:s.UI_MODELING_CONFIG_DEFAULT,uiControl:s.UI_CONTROL_LIST_DEFAULT}}return s.prototype.updateParams=function(r){r&&(this._configuration=r)},Object.defineProperty(s.prototype,"enabled",{get:function(){return typeof this._configuration.enabled=="boolean"?this._configuration.enabled:s.ENABLED_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"bufferSize",{get:function(){return typeof this._configuration.bufferSize=="number"&&this._configuration.bufferSize>0?this._configuration.bufferSize:s.BUFFER_SIZE_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"maxSnapshotsCount",{get:function(){return typeof this._configuration.maxSnapshotsCount=="number"&&this._configuration.maxSnapshotsCount>=0?this._configuration.maxSnapshotsCount:s.MAX_SNAPSHOTS_COUNT_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"maxSensorSamples",{get:function(){var r=this._configuration.sensors;return r&&typeof r.maxSensorSamples=="number"&&r.maxSensorSamples>=0?r.maxSensorSamples:s.SENSORS_DEFAULT.maxSensorSamples},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"sensorsDeltaInMillis",{get:function(){var r=this._configuration.sensors;return r&&typeof r.sensorsDeltaInMillis=="number"&&r.sensorsDeltaInMillis>=0?r.sensorsDeltaInMillis:s.SENSORS_DEFAULT.sensorsDeltaInMillis},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"metadataBlackList",{get:function(){var r;return t._POSignalsUtils.Util.isArray(this._configuration.metadataBlacklist)&&((r=this._configuration.metadataBlacklist)===null||r===void 0?void 0:r.length)>0?this._configuration.metadataBlacklist:s.METADATA_BLACK_LIST_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"behavioralBlacklist",{get:function(){return this._configuration.behavioralBlacklist?this._configuration.behavioralBlacklist:s.BEHAVIORAL_BLACK_LIST_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"tagsBlacklistRegex",{get:function(){return typeof this._configuration.tagsBlacklistRegex=="string"?this._configuration.tagsBlacklistRegex:s.TAGS_BLACK_LIST_REGEX_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"webRtcUrl",{get:function(){return typeof this._configuration.webRtcUrl=="string"?this._configuration.webRtcUrl:s.WEB_RTC_URL_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"eventsBlackList",{get:function(){return t._POSignalsUtils.Util.isArray(this._configuration.eventsBlackList)&&(this._configuration.eventsBlackList=new Set(this._configuration.eventsBlackList)),this._configuration.eventsBlackList instanceof Set?this._configuration.eventsBlackList:s.EVENTS_BLACK_LIST_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"eventsToIgnore",{get:function(){return t._POSignalsUtils.Util.isArray(this._configuration.eventsToIgnore)&&(this._configuration.eventsToIgnore=new Set(this._configuration.eventsToIgnore)),this._configuration.eventsToIgnore instanceof Set?this._configuration.eventsToIgnore:s.EVENTS_TO_IGNORE_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"highPriorityIndirectEvents",{get:function(){return t._POSignalsUtils.Util.isArray(this._configuration.highPriorityIndirectEvents)&&(this._configuration.highPriorityIndirectEvents=new Set(this._configuration.highPriorityIndirectEvents)),this._configuration.highPriorityIndirectEvents instanceof Set?this._configuration.highPriorityIndirectEvents:s.HIGH_PRIORITY_INDIRECT_EVENTS_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"indirectIntervalMillis",{get:function(){return typeof this._configuration.indirectIntervalMillis=="number"&&this._configuration.indirectIntervalMillis>0?this._configuration.indirectIntervalMillis:s.INDIRECT_INTERVAL_MILLIS_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"mouseIntervalMillis",{get:function(){return typeof this._configuration.mouseIntervalMillis=="number"&&this._configuration.mouseIntervalMillis>0?this._configuration.mouseIntervalMillis:s.MOUSE_INTERVAL_MILLIS_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"mouseIdleTimeoutMillis",{get:function(){return typeof this._configuration.mouseIdleTimeoutMillis=="number"&&this._configuration.mouseIdleTimeoutMillis>0?this._configuration.mouseIdleTimeoutMillis:s.MOUSE_IDLE_TIMEOUT_MILLIS_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"maxMouseEvents",{get:function(){return typeof this._configuration.maxMouseEvents=="number"&&this._configuration.maxMouseEvents>=0?this._configuration.maxMouseEvents:s.MAX_MOUSE_EVENTS_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"maxIndirectEvents",{get:function(){return typeof this._configuration.maxIndirectEvents=="number"&&this._configuration.maxIndirectEvents>=0?this._configuration.maxIndirectEvents:s.MAX_INDIRECT_EVENTS_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"keyboardFieldBlackList",{get:function(){return t._POSignalsUtils.Util.isArray(this._configuration.keyboardFieldBlackList)&&(this._configuration.keyboardFieldBlackList=new Set(this._configuration.keyboardFieldBlackList)),this._configuration.keyboardFieldBlackList instanceof Set?this._configuration.keyboardFieldBlackList:s.KEYBOARD_FIELD_BLACK_LIST_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"keyboardCssSelectors",{get:function(){return this._configuration.keyboardCssSelectors?this._configuration.keyboardCssSelectors:s.KEYBOARD_CSS_SELECTORS_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"keyboardCssSelectorsBlacklist",{get:function(){return t._POSignalsUtils.Util.isArray(this._configuration.keyboardCssSelectorsBlacklist)?this._configuration.keyboardCssSelectorsBlacklist:s.KEYBOARD_CSS_SELECTORS_BLACKLIST_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"keyboardIdentifierAttributes",{get:function(){return t._POSignalsUtils.Util.isArray(this._configuration.keyboardIdentifierAttributes)?this._configuration.keyboardIdentifierAttributes:s.KEYBOARD_IDENTIFIER_ATTRIBUTES_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"remoteTags",{get:function(){return this._configuration.remoteTags?this._configuration.remoteTags:s.REMOTE_TAGS_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"maxSelectorChildren",{get:function(){return typeof this._configuration.maxSelectorChildren=="number"&&this._configuration.maxSelectorChildren>0?this._configuration.maxSelectorChildren:s.MAX_SELECTOR_CHILDREN_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"eventsReduceFactorMap",{get:function(){return this._configuration.eventsReduceFactorMap?this._configuration.eventsReduceFactorMap:s.EVENTS_REDUCE_FACTOR_MAP_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"propertyDescriptors",{get:function(){return this._configuration.propertyDescriptors?this._configuration.propertyDescriptors:s.PROPERTY_DESCRIPTORS_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"additionalMediaCodecs",{get:function(){return this._configuration.additionalMediaCodecs?this._configuration.additionalMediaCodecs:s.ADDITIONAL_MEDIA_CODECS_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"fingerprintTimeoutMillis",{get:function(){return typeof this._configuration.fingerprintTimeoutMillis=="number"&&this._configuration.fingerprintTimeoutMillis>0?this._configuration.fingerprintTimeoutMillis:s.FINGER_PRINT_TIMEOUT_MILLIS_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"metadataDataPoints",{get:function(){return this._configuration.metadataDataPoints?this._configuration.metadataDataPoints:s.METADATA_DATA_POINTS_DEFAULT},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"uiModelingBlacklistRegex",{get:function(){var r;return typeof((r=this._configuration.uiModeling)===null||r===void 0?void 0:r.blacklistRegex)=="string"?this._configuration.uiModeling.blacklistRegex:s.UI_MODELING_CONFIG_DEFAULT.blacklistRegex},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"uiModelingElementFilters",{get:function(){var r;return!((r=this._configuration.uiModeling)===null||r===void 0)&&r.uiElementFilters?this._configuration.uiModeling.uiElementFilters:s.UI_MODELING_CONFIG_DEFAULT.uiElementFilters},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"uiModelingMaxMatchingParents",{get:function(){var r;return typeof((r=this._configuration.uiModeling)===null||r===void 0?void 0:r.maxMatchingParents)=="number"?this._configuration.uiModeling.maxMatchingParents:s.UI_MODELING_CONFIG_DEFAULT.maxMatchingParents},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"uiControlsConfig",{get:function(){return t._POSignalsUtils.Util.isArray(this._configuration.uiControl)?this._configuration.uiControl:s.UI_CONTROL_LIST_DEFAULT},enumerable:!1,configurable:!0}),s.ENABLED_DEFAULT=!0,s.BUFFER_SIZE_DEFAULT=10,s.MAX_SNAPSHOTS_COUNT_DEFAULT=500,s.METADATA_BLACK_LIST_DEFAULT=[],s.TAGS_BLACK_LIST_REGEX_DEFAULT="",s.BEHAVIORAL_BLACK_LIST_DEFAULT={},s.WEB_RTC_URL_DEFAULT="",s.EVENTS_BLACK_LIST_DEFAULT=new Set,s.EVENTS_TO_IGNORE_DEFAULT=new Set(["pointerover","pointerenter","pointerdown","pointermove","pointerup","pointercancel","pointerout","pointerleave","dragstart","dragexit","drop","dragend"]),s.MAX_INDIRECT_EVENTS_DEFAULT=15,s.HIGH_PRIORITY_INDIRECT_EVENTS_DEFAULT=new Set(["copy","cut","paste","resize","orientationchange","languagechange","submit","select"]),s.INDIRECT_INTERVAL_MILLIS_DEFAULT=1e3,s.MOUSE_INTERVAL_MILLIS_DEFAULT=1e3,s.MOUSE_IDLE_TIMEOUT_MILLIS_DEFAULT=1e3,s.MAX_MOUSE_EVENTS_DEFAULT=500,s.KEYBOARD_FIELD_BLACK_LIST_DEFAULT=new Set,s.KEYBOARD_CSS_SELECTORS_DEFAULT={},s.KEYBOARD_CSS_SELECTORS_BLACKLIST_DEFAULT=[],s.KEYBOARD_IDENTIFIER_ATTRIBUTES_DEFAULT=["data-selenium","data-selenium-id","data-testid","data-test-id","data-qa-id","data-id","id"],s.REMOTE_TAGS_DEFAULT={dv_form_submit:{selector:'[data-skbuttontype="form-submit"]'},login_attempt_email_domain:{selector:'[data-st-tag="login.login_attempt"]',operation:"email_domain",valueSelector:'[data-st-field="username"]',valueMandatory:!0},login_attempt_hash:{selector:'[data-st-tag="login.login_attempt"]',operation:"obfuscate",valueSelector:'[data-st-field="username"]',valueMandatory:!0},login_attempt_length:{selector:'[data-st-tag="login.login_attempt"]',operation:"length",valueSelector:'[data-st-field="username"]',valueMandatory:!0},registration_attempt_email_domain:{selector:'[data-st-tag="registration.registration_attempt"]',operation:"email_domain",valueSelector:'[data-st-field="username"]',valueMandatory:!0},registration_attempt_hash:{selector:'[data-st-tag="registration.registration_attempt"]',operation:"obfuscate",valueSelector:'[data-st-field="username"]',valueMandatory:!0},registration_attempt_length:{selector:'[data-st-tag="registration.registration_attempt"]',operation:"length",valueSelector:'[data-st-field="username"]',valueMandatory:!0}},s.MAX_SELECTOR_CHILDREN_DEFAULT=2,s.EVENTS_REDUCE_FACTOR_MAP_DEFAULT={},s.PROPERTY_DESCRIPTORS_DEFAULT={chrome:["app","csi","loadtimes","runtime"],navigator:["webdriver"],Navigator:["languages","hardwareConcurrency"],window:["outerWidth","outerHeight"],Screen:["width","height"]},s.ADDITIONAL_MEDIA_CODECS_DEFAULT={},s.FINGER_PRINT_TIMEOUT_MILLIS_DEFAULT=3e3,s.METADATA_DATA_POINTS_DEFAULT={},s.UI_CONTROL_LIST_DEFAULT=[],s.UI_MODELING_CONFIG_DEFAULT={blacklistRegex:"",uiElementFilters:{text:{maxLength:25},placeholder:{maxLength:25}},maxMatchingParents:2},s.SENSORS_DEFAULT={maxSensorSamples:1,sensorsDeltaInMillis:0},s}();t.PointerParams=a}(me||(me={})),window._POSignalsEntities=me,window._pingOneSignals=rb}const ab=kn({__proto__:null,default:qh},[qh]);var ys={},sb=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Yh={},Lr={};let oc;const ob=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Lr.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17},Lr.getSymbolTotalCodewords=function(e){return ob[e]},Lr.getBCHDigit=function(n){let e=0;for(;n!==0;)e++,n>>>=1;return e},Lr.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');oc=e},Lr.isKanjiModeEnabled=function(){return typeof oc<"u"},Lr.toSJIS=function(e){return oc(e)};var Tl={};(function(n){n.L={bit:1},n.M={bit:0},n.Q={bit:3},n.H={bit:2};function e(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return n.L;case"m":case"medium":return n.M;case"q":case"quartile":return n.Q;case"h":case"high":return n.H;default:throw new Error("Unknown EC Level: "+t)}}n.isValid=function(a){return a&&typeof a.bit<"u"&&a.bit>=0&&a.bit<4},n.from=function(a,s){if(n.isValid(a))return a;try{return e(a)}catch{return s}}})(Tl);function Zh(){this.buffer=[],this.length=0}Zh.prototype={get:function(n){const e=Math.floor(n/8);return(this.buffer[e]>>>7-n%8&1)===1},put:function(n,e){for(let t=0;t<e;t++)this.putBit((n>>>e-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(n){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),n&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var lb=Zh;function _o(n){if(!n||n<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=n,this.data=new Uint8Array(n*n),this.reservedBit=new Uint8Array(n*n)}_o.prototype.set=function(n,e,t,a){const s=n*this.size+e;this.data[s]=t,a&&(this.reservedBit[s]=!0)},_o.prototype.get=function(n,e){return this.data[n*this.size+e]},_o.prototype.xor=function(n,e,t){this.data[n*this.size+e]^=t},_o.prototype.isReserved=function(n,e){return this.reservedBit[n*this.size+e]};var ub=_o,Jh={};(function(n){const e=Lr.getSymbolSize;n.getRowColCoords=function(a){if(a===1)return[];const s=Math.floor(a/7)+2,r=e(a),i=r===145?26:Math.ceil((r-13)/(2*s-2))*2,o=[r-7];for(let l=1;l<s-1;l++)o[l]=o[l-1]-i;return o.push(6),o.reverse()},n.getPositions=function(a){const s=[],r=n.getRowColCoords(a),i=r.length;for(let o=0;o<i;o++)for(let l=0;l<i;l++)o===0&&l===0||o===0&&l===i-1||o===i-1&&l===0||s.push([r[o],r[l]]);return s}})(Jh);var Xh={};const cb=Lr.getSymbolSize,$h=7;Xh.getPositions=function(e){const t=cb(e);return[[0,0],[t-$h,0],[0,t-$h]]};var Qh={};(function(n){n.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};n.isValid=function(s){return s!=null&&s!==""&&!isNaN(s)&&s>=0&&s<=7},n.from=function(s){return n.isValid(s)?parseInt(s,10):void 0},n.getPenaltyN1=function(s){const r=s.size;let i=0,o=0,l=0,u=null,c=null;for(let d=0;d<r;d++){o=l=0,u=c=null;for(let f=0;f<r;f++){let h=s.get(d,f);h===u?o++:(o>=5&&(i+=e.N1+(o-5)),u=h,o=1),h=s.get(f,d),h===c?l++:(l>=5&&(i+=e.N1+(l-5)),c=h,l=1)}o>=5&&(i+=e.N1+(o-5)),l>=5&&(i+=e.N1+(l-5))}return i},n.getPenaltyN2=function(s){const r=s.size;let i=0;for(let o=0;o<r-1;o++)for(let l=0;l<r-1;l++){const u=s.get(o,l)+s.get(o,l+1)+s.get(o+1,l)+s.get(o+1,l+1);(u===4||u===0)&&i++}return i*e.N2},n.getPenaltyN3=function(s){const r=s.size;let i=0,o=0,l=0;for(let u=0;u<r;u++){o=l=0;for(let c=0;c<r;c++)o=o<<1&2047|s.get(u,c),c>=10&&(o===1488||o===93)&&i++,l=l<<1&2047|s.get(c,u),c>=10&&(l===1488||l===93)&&i++}return i*e.N3},n.getPenaltyN4=function(s){let r=0;const i=s.data.length;for(let l=0;l<i;l++)r+=s.data[l];return Math.abs(Math.ceil(r*100/i/5)-10)*e.N4};function t(a,s,r){switch(a){case n.Patterns.PATTERN000:return(s+r)%2===0;case n.Patterns.PATTERN001:return s%2===0;case n.Patterns.PATTERN010:return r%3===0;case n.Patterns.PATTERN011:return(s+r)%3===0;case n.Patterns.PATTERN100:return(Math.floor(s/2)+Math.floor(r/3))%2===0;case n.Patterns.PATTERN101:return s*r%2+s*r%3===0;case n.Patterns.PATTERN110:return(s*r%2+s*r%3)%2===0;case n.Patterns.PATTERN111:return(s*r%3+(s+r)%2)%2===0;default:throw new Error("bad maskPattern:"+a)}}n.applyMask=function(s,r){const i=r.size;for(let o=0;o<i;o++)for(let l=0;l<i;l++)r.isReserved(l,o)||r.xor(l,o,t(s,l,o))},n.getBestMask=function(s,r){const i=Object.keys(n.Patterns).length;let o=0,l=1/0;for(let u=0;u<i;u++){r(u),n.applyMask(u,s);const c=n.getPenaltyN1(s)+n.getPenaltyN2(s)+n.getPenaltyN3(s)+n.getPenaltyN4(s);n.applyMask(u,s),c<l&&(l=c,o=u)}return o}})(Qh);var Al={};const fa=Tl,Ol=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Pl=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Al.getBlocksCount=function(e,t){switch(t){case fa.L:return Ol[(e-1)*4+0];case fa.M:return Ol[(e-1)*4+1];case fa.Q:return Ol[(e-1)*4+2];case fa.H:return Ol[(e-1)*4+3];default:return}},Al.getTotalCodewordsCount=function(e,t){switch(t){case fa.L:return Pl[(e-1)*4+0];case fa.M:return Pl[(e-1)*4+1];case fa.Q:return Pl[(e-1)*4+2];case fa.H:return Pl[(e-1)*4+3];default:return}};var eg={},xl={};const bo=new Uint8Array(512),Ll=new Uint8Array(256);(function(){let e=1;for(let t=0;t<255;t++)bo[t]=e,Ll[e]=t,e<<=1,e&256&&(e^=285);for(let t=255;t<512;t++)bo[t]=bo[t-255]})(),xl.log=function(e){if(e<1)throw new Error("log("+e+")");return Ll[e]},xl.exp=function(e){return bo[e]},xl.mul=function(e,t){return e===0||t===0?0:bo[Ll[e]+Ll[t]]},function(n){const e=xl;n.mul=function(a,s){const r=new Uint8Array(a.length+s.length-1);for(let i=0;i<a.length;i++)for(let o=0;o<s.length;o++)r[i+o]^=e.mul(a[i],s[o]);return r},n.mod=function(a,s){let r=new Uint8Array(a);for(;r.length-s.length>=0;){const i=r[0];for(let l=0;l<s.length;l++)r[l]^=e.mul(s[l],i);let o=0;for(;o<r.length&&r[o]===0;)o++;r=r.slice(o)}return r},n.generateECPolynomial=function(a){let s=new Uint8Array([1]);for(let r=0;r<a;r++)s=n.mul(s,new Uint8Array([1,e.exp(r)]));return s}}(eg);const tg=eg;function lc(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}lc.prototype.initialize=function(e){this.degree=e,this.genPoly=tg.generateECPolynomial(this.degree)},lc.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const a=tg.mod(t,this.genPoly),s=this.degree-a.length;if(s>0){const r=new Uint8Array(this.degree);return r.set(a,s),r}return a};var db=lc,ng={},ha={},uc={};uc.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var Ei={};const rg="[0-9]+",fb="[A-Z $%*+\\-./:]+";let wo="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";wo=wo.replace(/u/g,"\\u");const hb="(?:(?![A-Z0-9 $%*+\\-./:]|"+wo+`)(?:.|[\r
|
|
25
|
+
]))+`;Ei.KANJI=new RegExp(wo,"g"),Ei.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Ei.BYTE=new RegExp(hb,"g"),Ei.NUMERIC=new RegExp(rg,"g"),Ei.ALPHANUMERIC=new RegExp(fb,"g");const gb=new RegExp("^"+wo+"$"),pb=new RegExp("^"+rg+"$"),mb=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Ei.testKanji=function(e){return gb.test(e)},Ei.testNumeric=function(e){return pb.test(e)},Ei.testAlphanumeric=function(e){return mb.test(e)},function(n){const e=uc,t=Ei;n.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},n.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},n.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},n.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},n.MIXED={bit:-1},n.getCharCountIndicator=function(r,i){if(!r.ccBits)throw new Error("Invalid mode: "+r);if(!e.isValid(i))throw new Error("Invalid version: "+i);return i>=1&&i<10?r.ccBits[0]:i<27?r.ccBits[1]:r.ccBits[2]},n.getBestModeForData=function(r){return t.testNumeric(r)?n.NUMERIC:t.testAlphanumeric(r)?n.ALPHANUMERIC:t.testKanji(r)?n.KANJI:n.BYTE},n.toString=function(r){if(r&&r.id)return r.id;throw new Error("Invalid mode")},n.isValid=function(r){return r&&r.bit&&r.ccBits};function a(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"numeric":return n.NUMERIC;case"alphanumeric":return n.ALPHANUMERIC;case"kanji":return n.KANJI;case"byte":return n.BYTE;default:throw new Error("Unknown mode: "+s)}}n.from=function(r,i){if(n.isValid(r))return r;try{return a(r)}catch{return i}}}(ha),function(n){const e=Lr,t=Al,a=Tl,s=ha,r=uc,i=7973,o=e.getBCHDigit(i);function l(f,h,p){for(let m=1;m<=40;m++)if(h<=n.getCapacity(m,p,f))return m}function u(f,h){return s.getCharCountIndicator(f,h)+4}function c(f,h){let p=0;return f.forEach(function(m){const w=u(m.mode,h);p+=w+m.getBitsLength()}),p}function d(f,h){for(let p=1;p<=40;p++)if(c(f,p)<=n.getCapacity(p,h,s.MIXED))return p}n.from=function(h,p){return r.isValid(h)?parseInt(h,10):p},n.getCapacity=function(h,p,m){if(!r.isValid(h))throw new Error("Invalid QR Code version");typeof m>"u"&&(m=s.BYTE);const w=e.getSymbolTotalCodewords(h),E=t.getTotalCodewordsCount(h,p),v=(w-E)*8;if(m===s.MIXED)return v;const y=v-u(m,h);switch(m){case s.NUMERIC:return Math.floor(y/10*3);case s.ALPHANUMERIC:return Math.floor(y/11*2);case s.KANJI:return Math.floor(y/13);case s.BYTE:default:return Math.floor(y/8)}},n.getBestVersionForData=function(h,p){let m;const w=a.from(p,a.M);if(Array.isArray(h)){if(h.length>1)return d(h,w);if(h.length===0)return 1;m=h[0]}else m=h;return l(m.mode,m.getLength(),w)},n.getEncodedBits=function(h){if(!r.isValid(h)||h<7)throw new Error("Invalid QR Code version");let p=h<<12;for(;e.getBCHDigit(p)-o>=0;)p^=i<<e.getBCHDigit(p)-o;return h<<12|p}}(ng);var ig={};const cc=Lr,ag=1335,vb=21522,sg=cc.getBCHDigit(ag);ig.getEncodedBits=function(e,t){const a=e.bit<<3|t;let s=a<<10;for(;cc.getBCHDigit(s)-sg>=0;)s^=ag<<cc.getBCHDigit(s)-sg;return(a<<10|s)^vb};var og={};const yb=ha;function _s(n){this.mode=yb.NUMERIC,this.data=n.toString()}_s.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},_s.prototype.getLength=function(){return this.data.length},_s.prototype.getBitsLength=function(){return _s.getBitsLength(this.data.length)},_s.prototype.write=function(e){let t,a,s;for(t=0;t+3<=this.data.length;t+=3)a=this.data.substr(t,3),s=parseInt(a,10),e.put(s,10);const r=this.data.length-t;r>0&&(a=this.data.substr(t),s=parseInt(a,10),e.put(s,r*3+1))};var _b=_s;const bb=ha,dc=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function bs(n){this.mode=bb.ALPHANUMERIC,this.data=n}bs.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)},bs.prototype.getLength=function(){return this.data.length},bs.prototype.getBitsLength=function(){return bs.getBitsLength(this.data.length)},bs.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let a=dc.indexOf(this.data[t])*45;a+=dc.indexOf(this.data[t+1]),e.put(a,11)}this.data.length%2&&e.put(dc.indexOf(this.data[t]),6)};var wb=bs,Eb=function(e){for(var t=[],a=e.length,s=0;s<a;s++){var r=e.charCodeAt(s);if(r>=55296&&r<=56319&&a>s+1){var i=e.charCodeAt(s+1);i>=56320&&i<=57343&&(r=(r-55296)*1024+i-56320+65536,s+=1)}if(r<128){t.push(r);continue}if(r<2048){t.push(r>>6|192),t.push(r&63|128);continue}if(r<55296||r>=57344&&r<65536){t.push(r>>12|224),t.push(r>>6&63|128),t.push(r&63|128);continue}if(r>=65536&&r<=1114111){t.push(r>>18|240),t.push(r>>12&63|128),t.push(r>>6&63|128),t.push(r&63|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer};const Sb=Eb,kb=ha;function ws(n){this.mode=kb.BYTE,typeof n=="string"&&(n=Sb(n)),this.data=new Uint8Array(n)}ws.getBitsLength=function(e){return e*8},ws.prototype.getLength=function(){return this.data.length},ws.prototype.getBitsLength=function(){return ws.getBitsLength(this.data.length)},ws.prototype.write=function(n){for(let e=0,t=this.data.length;e<t;e++)n.put(this.data[e],8)};var Cb=ws;const Ib=ha,Tb=Lr;function Es(n){this.mode=Ib.KANJI,this.data=n}Es.getBitsLength=function(e){return e*13},Es.prototype.getLength=function(){return this.data.length},Es.prototype.getBitsLength=function(){return Es.getBitsLength(this.data.length)},Es.prototype.write=function(n){let e;for(e=0;e<this.data.length;e++){let t=Tb.toSJIS(this.data[e]);if(t>=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
|
|
26
|
+
Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),n.put(t,13)}};var Ab=Es,lg={exports:{}};(function(n){var e={single_source_shortest_paths:function(t,a,s){var r={},i={};i[a]=0;var o=e.PriorityQueue.make();o.push(a,0);for(var l,u,c,d,f,h,p,m,w;!o.empty();){l=o.pop(),u=l.value,d=l.cost,f=t[u]||{};for(c in f)f.hasOwnProperty(c)&&(h=f[c],p=d+h,m=i[c],w=typeof i[c]>"u",(w||m>p)&&(i[c]=p,o.push(c,p),r[c]=u))}if(typeof s<"u"&&typeof i[s]>"u"){var E=["Could not find a path from ",a," to ",s,"."].join("");throw new Error(E)}return r},extract_shortest_path_from_predecessor_list:function(t,a){for(var s=[],r=a;r;)s.push(r),t[r],r=t[r];return s.reverse(),s},find_path:function(t,a,s){var r=e.single_source_shortest_paths(t,a,s);return e.extract_shortest_path_from_predecessor_list(r,s)},PriorityQueue:{make:function(t){var a=e.PriorityQueue,s={},r;t=t||{};for(r in a)a.hasOwnProperty(r)&&(s[r]=a[r]);return s.queue=[],s.sorter=t.sorter||a.default_sorter,s},default_sorter:function(t,a){return t.cost-a.cost},push:function(t,a){var s={value:t,cost:a};this.queue.push(s),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};n.exports=e})(lg);var Ob=lg.exports;(function(n){const e=ha,t=_b,a=wb,s=Cb,r=Ab,i=Ei,o=Lr,l=Ob;function u(E){return unescape(encodeURIComponent(E)).length}function c(E,v,y){const b=[];let S;for(;(S=E.exec(y))!==null;)b.push({data:S[0],index:S.index,mode:v,length:S[0].length});return b}function d(E){const v=c(i.NUMERIC,e.NUMERIC,E),y=c(i.ALPHANUMERIC,e.ALPHANUMERIC,E);let b,S;return o.isKanjiModeEnabled()?(b=c(i.BYTE,e.BYTE,E),S=c(i.KANJI,e.KANJI,E)):(b=c(i.BYTE_KANJI,e.BYTE,E),S=[]),v.concat(y,b,S).sort(function(C,k){return C.index-k.index}).map(function(C){return{data:C.data,mode:C.mode,length:C.length}})}function f(E,v){switch(v){case e.NUMERIC:return t.getBitsLength(E);case e.ALPHANUMERIC:return a.getBitsLength(E);case e.KANJI:return r.getBitsLength(E);case e.BYTE:return s.getBitsLength(E)}}function h(E){return E.reduce(function(v,y){const b=v.length-1>=0?v[v.length-1]:null;return b&&b.mode===y.mode?(v[v.length-1].data+=y.data,v):(v.push(y),v)},[])}function p(E){const v=[];for(let y=0;y<E.length;y++){const b=E[y];switch(b.mode){case e.NUMERIC:v.push([b,{data:b.data,mode:e.ALPHANUMERIC,length:b.length},{data:b.data,mode:e.BYTE,length:b.length}]);break;case e.ALPHANUMERIC:v.push([b,{data:b.data,mode:e.BYTE,length:b.length}]);break;case e.KANJI:v.push([b,{data:b.data,mode:e.BYTE,length:u(b.data)}]);break;case e.BYTE:v.push([{data:b.data,mode:e.BYTE,length:u(b.data)}])}}return v}function m(E,v){const y={},b={start:{}};let S=["start"];for(let I=0;I<E.length;I++){const C=E[I],k=[];for(let M=0;M<C.length;M++){const P=C[M],D=""+I+M;k.push(D),y[D]={node:P,lastCount:0},b[D]={};for(let V=0;V<S.length;V++){const B=S[V];y[B]&&y[B].node.mode===P.mode?(b[B][D]=f(y[B].lastCount+P.length,P.mode)-f(y[B].lastCount,P.mode),y[B].lastCount+=P.length):(y[B]&&(y[B].lastCount=P.length),b[B][D]=f(P.length,P.mode)+4+e.getCharCountIndicator(P.mode,v))}}S=k}for(let I=0;I<S.length;I++)b[S[I]].end=0;return{map:b,table:y}}function w(E,v){let y;const b=e.getBestModeForData(E);if(y=e.from(v,b),y!==e.BYTE&&y.bit<b.bit)throw new Error('"'+E+'" cannot be encoded with mode '+e.toString(y)+`.
|
|
27
|
+
Suggested mode is: `+e.toString(b));switch(y===e.KANJI&&!o.isKanjiModeEnabled()&&(y=e.BYTE),y){case e.NUMERIC:return new t(E);case e.ALPHANUMERIC:return new a(E);case e.KANJI:return new r(E);case e.BYTE:return new s(E)}}n.fromArray=function(v){return v.reduce(function(y,b){return typeof b=="string"?y.push(w(b,null)):b.data&&y.push(w(b.data,b.mode)),y},[])},n.fromString=function(v,y){const b=d(v,o.isKanjiModeEnabled()),S=p(b),I=m(S,y),C=l.find_path(I.map,"start","end"),k=[];for(let M=1;M<C.length-1;M++)k.push(I.table[C[M]].node);return n.fromArray(h(k))},n.rawSplit=function(v){return n.fromArray(d(v,o.isKanjiModeEnabled()))}})(og);const Ml=Lr,fc=Tl,Pb=lb,xb=ub,Lb=Jh,Mb=Xh,hc=Qh,gc=Al,Rb=db,Rl=ng,Db=ig,Nb=ha,pc=og;function Ub(n,e){const t=n.size,a=Mb.getPositions(e);for(let s=0;s<a.length;s++){const r=a[s][0],i=a[s][1];for(let o=-1;o<=7;o++)if(!(r+o<=-1||t<=r+o))for(let l=-1;l<=7;l++)i+l<=-1||t<=i+l||(o>=0&&o<=6&&(l===0||l===6)||l>=0&&l<=6&&(o===0||o===6)||o>=2&&o<=4&&l>=2&&l<=4?n.set(r+o,i+l,!0,!0):n.set(r+o,i+l,!1,!0))}}function Fb(n){const e=n.size;for(let t=8;t<e-8;t++){const a=t%2===0;n.set(t,6,a,!0),n.set(6,t,a,!0)}}function Bb(n,e){const t=Lb.getPositions(e);for(let a=0;a<t.length;a++){const s=t[a][0],r=t[a][1];for(let i=-2;i<=2;i++)for(let o=-2;o<=2;o++)i===-2||i===2||o===-2||o===2||i===0&&o===0?n.set(s+i,r+o,!0,!0):n.set(s+i,r+o,!1,!0)}}function Vb(n,e){const t=n.size,a=Rl.getEncodedBits(e);let s,r,i;for(let o=0;o<18;o++)s=Math.floor(o/3),r=o%3+t-8-3,i=(a>>o&1)===1,n.set(s,r,i,!0),n.set(r,s,i,!0)}function mc(n,e,t){const a=n.size,s=Db.getEncodedBits(e,t);let r,i;for(r=0;r<15;r++)i=(s>>r&1)===1,r<6?n.set(r,8,i,!0):r<8?n.set(r+1,8,i,!0):n.set(a-15+r,8,i,!0),r<8?n.set(8,a-r-1,i,!0):r<9?n.set(8,15-r-1+1,i,!0):n.set(8,15-r-1,i,!0);n.set(a-8,8,1,!0)}function Hb(n,e){const t=n.size;let a=-1,s=t-1,r=7,i=0;for(let o=t-1;o>0;o-=2)for(o===6&&o--;;){for(let l=0;l<2;l++)if(!n.isReserved(s,o-l)){let u=!1;i<e.length&&(u=(e[i]>>>r&1)===1),n.set(s,o-l,u),r--,r===-1&&(i++,r=7)}if(s+=a,s<0||t<=s){s-=a,a=-a;break}}}function jb(n,e,t){const a=new Pb;t.forEach(function(l){a.put(l.mode.bit,4),a.put(l.getLength(),Nb.getCharCountIndicator(l.mode,n)),l.write(a)});const s=Ml.getSymbolTotalCodewords(n),r=gc.getTotalCodewordsCount(n,e),i=(s-r)*8;for(a.getLengthInBits()+4<=i&&a.put(0,4);a.getLengthInBits()%8!==0;)a.putBit(0);const o=(i-a.getLengthInBits())/8;for(let l=0;l<o;l++)a.put(l%2?17:236,8);return zb(a,n,e)}function zb(n,e,t){const a=Ml.getSymbolTotalCodewords(e),s=gc.getTotalCodewordsCount(e,t),r=a-s,i=gc.getBlocksCount(e,t),o=a%i,l=i-o,u=Math.floor(a/i),c=Math.floor(r/i),d=c+1,f=u-c,h=new Rb(f);let p=0;const m=new Array(i),w=new Array(i);let E=0;const v=new Uint8Array(n.buffer);for(let C=0;C<i;C++){const k=C<l?c:d;m[C]=v.slice(p,p+k),w[C]=h.encode(m[C]),p+=k,E=Math.max(E,k)}const y=new Uint8Array(a);let b=0,S,I;for(S=0;S<E;S++)for(I=0;I<i;I++)S<m[I].length&&(y[b++]=m[I][S]);for(S=0;S<f;S++)for(I=0;I<i;I++)y[b++]=w[I][S];return y}function Gb(n,e,t,a){let s;if(Array.isArray(n))s=pc.fromArray(n);else if(typeof n=="string"){let u=e;if(!u){const c=pc.rawSplit(n);u=Rl.getBestVersionForData(c,t)}s=pc.fromString(n,u||40)}else throw new Error("Invalid data");const r=Rl.getBestVersionForData(s,t);if(!r)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=r;else if(e<r)throw new Error(`
|
|
28
|
+
The chosen QR Code version cannot contain this amount of data.
|
|
29
|
+
Minimum version required to store current data is: `+r+`.
|
|
30
|
+
`);const i=jb(e,t,s),o=Ml.getSymbolSize(e),l=new xb(o);return Ub(l,e),Fb(l),Bb(l,e),mc(l,t,0),e>=7&&Vb(l,e),Hb(l,i),isNaN(a)&&(a=hc.getBestMask(l,mc.bind(null,l,t))),hc.applyMask(a,l),mc(l,t,a),{modules:l,version:e,errorCorrectionLevel:t,maskPattern:a,segments:s}}Yh.create=function(e,t){if(typeof e>"u"||e==="")throw new Error("No input text");let a=fc.M,s,r;return typeof t<"u"&&(a=fc.from(t.errorCorrectionLevel,fc.M),s=Rl.from(t.version),r=hc.from(t.maskPattern),t.toSJISFunc&&Ml.setToSJISFunction(t.toSJISFunc)),Gb(e,s,a,r)};var ug={},vc={};(function(n){function e(t){if(typeof t=="number"&&(t=t.toString()),typeof t!="string")throw new Error("Color should be defined as hex string");let a=t.slice().replace("#","").split("");if(a.length<3||a.length===5||a.length>8)throw new Error("Invalid hex color: "+t);(a.length===3||a.length===4)&&(a=Array.prototype.concat.apply([],a.map(function(r){return[r,r]}))),a.length===6&&a.push("F","F");const s=parseInt(a.join(""),16);return{r:s>>24&255,g:s>>16&255,b:s>>8&255,a:s&255,hex:"#"+a.slice(0,6).join("")}}n.getOptions=function(a){a||(a={}),a.color||(a.color={});const s=typeof a.margin>"u"||a.margin===null||a.margin<0?4:a.margin,r=a.width&&a.width>=21?a.width:void 0,i=a.scale||4;return{width:r,scale:r?4:i,margin:s,color:{dark:e(a.color.dark||"#000000ff"),light:e(a.color.light||"#ffffffff")},type:a.type,rendererOpts:a.rendererOpts||{}}},n.getScale=function(a,s){return s.width&&s.width>=a+s.margin*2?s.width/(a+s.margin*2):s.scale},n.getImageWidth=function(a,s){const r=n.getScale(a,s);return Math.floor((a+s.margin*2)*r)},n.qrToImageData=function(a,s,r){const i=s.modules.size,o=s.modules.data,l=n.getScale(i,r),u=Math.floor((i+r.margin*2)*l),c=r.margin*l,d=[r.color.light,r.color.dark];for(let f=0;f<u;f++)for(let h=0;h<u;h++){let p=(f*u+h)*4,m=r.color.light;if(f>=c&&h>=c&&f<u-c&&h<u-c){const w=Math.floor((f-c)/l),E=Math.floor((h-c)/l);m=d[o[w*i+E]?1:0]}a[p++]=m.r,a[p++]=m.g,a[p++]=m.b,a[p]=m.a}}})(vc),function(n){const e=vc;function t(s,r,i){s.clearRect(0,0,r.width,r.height),r.style||(r.style={}),r.height=i,r.width=i,r.style.height=i+"px",r.style.width=i+"px"}function a(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}n.render=function(r,i,o){let l=o,u=i;typeof l>"u"&&(!i||!i.getContext)&&(l=i,i=void 0),i||(u=a()),l=e.getOptions(l);const c=e.getImageWidth(r.modules.size,l),d=u.getContext("2d"),f=d.createImageData(c,c);return e.qrToImageData(f.data,r,l),t(d,u,c),d.putImageData(f,0,0),u},n.renderToDataURL=function(r,i,o){let l=o;typeof l>"u"&&(!i||!i.getContext)&&(l=i,i=void 0),l||(l={});const u=n.render(r,i,l),c=l.type||"image/png",d=l.rendererOpts||{};return u.toDataURL(c,d.quality)}}(ug);var cg={};const Wb=vc;function dg(n,e){const t=n.a/255,a=e+'="'+n.hex+'"';return t<1?a+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':a}function yc(n,e,t){let a=n+e;return typeof t<"u"&&(a+=" "+t),a}function qb(n,e,t){let a="",s=0,r=!1,i=0;for(let o=0;o<n.length;o++){const l=Math.floor(o%e),u=Math.floor(o/e);!l&&!r&&(r=!0),n[o]?(i++,o>0&&l>0&&n[o-1]||(a+=r?yc("M",l+t,.5+u+t):yc("m",s,0),s=0,r=!1),l+1<e&&n[o+1]||(a+=yc("h",i),i=0)):s++}return a}cg.render=function(e,t,a){const s=Wb.getOptions(t),r=e.modules.size,i=e.modules.data,o=r+s.margin*2,l=s.color.light.a?"<path "+dg(s.color.light,"fill")+' d="M0 0h'+o+"v"+o+'H0z"/>':"",u="<path "+dg(s.color.dark,"stroke")+' d="'+qb(i,r,s.margin)+'"/>',c='viewBox="0 0 '+o+" "+o+'"',f='<svg xmlns="http://www.w3.org/2000/svg" '+(s.width?'width="'+s.width+'" height="'+s.width+'" ':"")+c+' shape-rendering="crispEdges">'+l+u+`</svg>
|
|
31
|
+
`;return typeof a=="function"&&a(null,f),f};const Kb=sb,_c=Yh,fg=ug,Yb=cg;function bc(n,e,t,a,s){const r=[].slice.call(arguments,1),i=r.length,o=typeof r[i-1]=="function";if(!o&&!Kb())throw new Error("Callback required as last argument");if(o){if(i<2)throw new Error("Too few arguments provided");i===2?(s=t,t=e,e=a=void 0):i===3&&(e.getContext&&typeof s>"u"?(s=a,a=void 0):(s=a,a=t,t=e,e=void 0))}else{if(i<1)throw new Error("Too few arguments provided");return i===1?(t=e,e=a=void 0):i===2&&!e.getContext&&(a=t,t=e,e=void 0),new Promise(function(l,u){try{const c=_c.create(t,a);l(n(c,e,a))}catch(c){u(c)}})}try{const l=_c.create(t,a);s(null,n(l,e,a))}catch(l){s(l)}}var Zb=ys.create=_c.create,Jb=ys.toCanvas=bc.bind(null,fg.render),Xb=ys.toDataURL=bc.bind(null,fg.renderToDataURL),$b=ys.toString=bc.bind(null,function(n,e,t){return Yb.render(n,t)});const Qb=kn({__proto__:null,create:Zb,default:ys,toCanvas:Jb,toDataURL:Xb,toString:$b},[ys]);return gn.component=W0,gn.configuration=z0,gn.default=Wh,gn.journey=G0,gn.protect=Y0,gn.request=q0,gn.user=K0,Object.defineProperties(gn,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),gn}({});
|
|
32
|
+
//# sourceMappingURL=widget.iife.js.map
|