authhero 4.107.0 → 4.109.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/u/js/client.js +1 -1
- package/dist/assets/u/widget/index.esm.js +1 -1
- package/dist/authhero.cjs +377 -171
- package/dist/authhero.d.ts +2929 -851
- package/dist/authhero.mjs +16138 -13365
- package/dist/client.js +1 -1
- package/dist/stats.html +1 -1
- package/package.json +5 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
var et={Stringify:1},I=(e,t)=>{const r=new String(e);return r.isEscaped=!0,r.callbacks=t,r},tt=/[&<>'"]/,rt=async(e,t)=>{let r="";t||=[];const n=await Promise.all(e);for(let a=n.length-1;r+=n[a],a--,!(a<0);a--){let i=n[a];typeof i=="object"&&t.push(...i.callbacks||[]);const o=i.isEscaped;if(i=await(typeof i=="object"?i.toString():i),typeof i=="object"&&t.push(...i.callbacks||[]),i.isEscaped??o)r+=i;else{const l=[r];L(i,l),r=l[0]}}return I(r,t)},L=(e,t)=>{const r=e.search(tt);if(r===-1){t[0]+=e;return}let n,a,i=0;for(a=r;a<e.length;a++){switch(e.charCodeAt(a)){case 34:n=""";break;case 39:n="'";break;case 38:n="&";break;case 60:n="<";break;case 62:n=">";break;default:continue}t[0]+=e.substring(i,a)+n,i=a+1}t[0]+=e.substring(i,a)},nt=e=>{const t=e.callbacks;if(!t?.length)return e;const r=[e],n={};return t.forEach(a=>a({phase:et.Stringify,buffer:r,context:n})),r[0]},se=Symbol("RENDERER"),ne=Symbol("ERROR_HANDLER"),y=Symbol("STASH"),Oe=Symbol("INTERNAL"),at=Symbol("MEMO"),Z=Symbol("PERMALINK"),ge=e=>(e[Oe]=!0,e),$e=e=>({value:t,children:r})=>{if(!r)return;const n={children:[{tag:ge(()=>{e.push(t)}),props:{}}]};Array.isArray(r)?n.children.push(...r.flat()):n.children.push(r),n.children.push({tag:ge(()=>{e.pop()}),props:{}});const a={tag:"",props:n,type:""};return a[ne]=i=>{throw e.pop(),i},a},Re=e=>{const t=[e],r=$e(t);return r.values=t,r.Provider=r,x.push(r),r},x=[],Be=e=>{const t=[e],r=(n=>{t.push(n.value);let a;try{a=n.children?(Array.isArray(n.children)?new Ke("",{},n.children):n.children).toString():""}catch(i){throw t.pop(),i}return a instanceof Promise?a.finally(()=>t.pop()).then(i=>I(i,i.callbacks)):(t.pop(),I(a))});return r.values=t,r.Provider=r,r[se]=$e(t),x.push(r),r},O=e=>e.values.at(-1),X={title:[],script:["src"],style:["data-href"],link:["href"],meta:["name","httpEquiv","charset","itemProp"]},ae={},D="data-precedence",_e=e=>e.rel==="stylesheet"&&"precedence"in e,qe=(e,t)=>e==="link"?t:X[e].length>0,F=e=>Array.isArray(e)?e:[e],ye=new WeakMap,Ee=(e,t,r,n)=>({buffer:a,context:i})=>{if(!a)return;const o=ye.get(i)||{};ye.set(i,o);const l=o[e]||=[];let v=!1;const c=X[e],s=qe(e,n!==void 0);if(s){e:for(const[,u]of l)if(!(e==="link"&&!(u.rel==="stylesheet"&&u[D]!==void 0))){for(const f of c)if((u?.[f]??null)===r?.[f]){v=!0;break e}}}if(v?a[0]=a[0].replaceAll(t,""):s||e==="link"?l.push([t,r,n]):l.unshift([t,r,n]),a[0].indexOf("</head>")!==-1){let u;if(e==="link"||n!==void 0){const f=[];u=l.map(([d,,h],E)=>{if(h===void 0)return[d,Number.MAX_SAFE_INTEGER,E];let p=f.indexOf(h);return p===-1&&(f.push(h),p=f.length-1),[d,p,E]}).sort((d,h)=>d[1]-h[1]||d[2]-h[2]).map(([d])=>d)}else u=l.map(([f])=>f);u.forEach(f=>{a[0]=a[0].replaceAll(f,"")}),a[0]=a[0].replace(/(?=<\/head>)/,u.join(""))}},H=(e,t,r)=>I(new k(e,r,F(t??[])).toString()),j=(e,t,r,n)=>{if("itemProp"in r)return H(e,t,r);let{precedence:a,blocking:i,...o}=r;a=n?a??"":void 0,n&&(o[D]=a);const l=new k(e,o,F(t||[])).toString();return l instanceof Promise?l.then(v=>I(l,[...v.callbacks||[],Ee(e,v,o,a)])):I(l,[Ee(e,l,o,a)])},it=({children:e,...t})=>{const r=le();if(r){const n=O(r);if(n==="svg"||n==="head")return new k("title",t,F(e??[]))}return j("title",e,t,!1)},ot=({children:e,...t})=>{const r=le();return["src","async"].some(n=>!t[n])||r&&O(r)==="head"?H("script",e,t):j("script",e,t,!1)},st=({children:e,...t})=>["href","precedence"].every(r=>r in t)?(t["data-href"]=t.href,delete t.href,j("style",e,t,!0)):H("style",e,t),lt=({children:e,...t})=>["onLoad","onError"].some(r=>r in t)||t.rel==="stylesheet"&&(!("precedence"in t)||"disabled"in t)?H("link",e,t):j("link",e,t,_e(t)),ct=({children:e,...t})=>{const r=le();return r&&O(r)==="head"?H("meta",e,t):j("meta",e,t,!1)},Fe=(e,{children:t,...r})=>new k(e,r,F(t??[])),ut=e=>(typeof e.action=="function"&&(e.action=Z in e.action?e.action[Z]:void 0),Fe("form",e)),He=(e,t)=>(typeof t.formAction=="function"&&(t.formAction=Z in t.formAction?t.formAction[Z]:void 0),Fe(e,t)),ft=e=>He("input",e),vt=e=>He("button",e);const Q=Object.freeze(Object.defineProperty({__proto__:null,button:vt,form:ut,input:ft,link:lt,meta:ct,script:ot,style:st,title:it},Symbol.toStringTag,{value:"Module"}));var dt=new Map([["className","class"],["htmlFor","for"],["crossOrigin","crossorigin"],["httpEquiv","http-equiv"],["itemProp","itemprop"],["fetchPriority","fetchpriority"],["noModule","nomodule"],["formAction","formaction"]]),G=e=>dt.get(e)||e,ht=/[\s"'<>/=`\\\x00-\x1f\x7f-\x9f]/,pt=e=>{const t=e.length;if(t===0)return!1;for(let r=0;r<t;r++){const n=e.charCodeAt(r);if(!(n>=97&&n<=122||n>=65&&n<=90||n>=48&&n<=57||n===45||n===95||n===46||n===58))return!ht.test(e)}return!0},je=(e,t)=>{for(const[r,n]of Object.entries(e)){const a=r[0]==="-"||!/[A-Z]/.test(r)?r:r.replace(/[A-Z]/g,i=>`-${i.toLowerCase()}`);t(a,n==null?null:typeof n=="number"?a.match(/^(?:a|border-im|column(?:-c|s)|flex(?:$|-[^b])|grid-(?:ar|[^a])|font-w|li|or|sca|st|ta|wido|z)|ty$/)?`${n}`:`${n}px`:n)}},_=void 0,le=()=>_,mt=e=>/[A-Z]/.test(e)&&e.match(/^(?:al|basel|clip(?:Path|Rule)$|co|do|fill|fl|fo|gl|let|lig|i|marker[EMS]|o|pai|pointe|sh|st[or]|text[^L]|tr|u|ve|w)/)?e.replace(/([A-Z])/g,"-$1").toLowerCase():e,gt=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],yt=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],ce=(e,t)=>{for(let r=0,n=e.length;r<n;r++){const a=e[r];if(typeof a=="string")L(a,t);else{if(typeof a=="boolean"||a===null||a===void 0)continue;a instanceof k?a.toStringToBuffer(t):typeof a=="number"||a.isEscaped?t[0]+=a:a instanceof Promise?t.unshift("",a):ce(a,t)}}},k=class{tag;props;key;children;isEscaped=!0;localContexts;constructor(e,t,r){this.tag=e,this.props=t,this.children=r}get type(){return this.tag}get ref(){return this.props.ref||null}toString(){const e=[""];this.localContexts?.forEach(([t,r])=>{t.values.push(r)});try{this.toStringToBuffer(e)}finally{this.localContexts?.forEach(([t])=>{t.values.pop()})}return e.length===1?"callbacks"in e?nt(I(e[0],e.callbacks)).toString():e[0]:rt(e,e.callbacks)}toStringToBuffer(e){const t=this.tag,r=this.props;let{children:n}=this;e[0]+=`<${t}`;const a=_&&O(_)==="svg"?i=>mt(G(i)):i=>G(i);for(let[i,o]of Object.entries(r))if(i=a(i),!!pt(i)&&i!=="children"){if(i==="style"&&typeof o=="object"){let l="";je(o,(v,c)=>{c!=null&&(l+=`${l?";":""}${v}:${c}`)}),e[0]+=' style="',L(l,e),e[0]+='"'}else if(typeof o=="string")e[0]+=` ${i}="`,L(o,e),e[0]+='"';else if(o!=null)if(typeof o=="number"||o.isEscaped)e[0]+=` ${i}="${o}"`;else if(typeof o=="boolean"&&yt.includes(i))o&&(e[0]+=` ${i}=""`);else if(i==="dangerouslySetInnerHTML"){if(n.length>0)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");n=[I(o.__html)]}else if(o instanceof Promise)e[0]+=` ${i}="`,e.unshift('"',o);else if(typeof o=="function"){if(!i.startsWith("on")&&i!=="ref")throw new Error(`Invalid prop '${i}' of type 'function' supplied to '${t}'.`)}else e[0]+=` ${i}="`,L(o.toString(),e),e[0]+='"'}if(gt.includes(t)&&n.length===0){e[0]+="/>";return}e[0]+=">",ce(n,e),e[0]+=`</${t}>`}},Y=class extends k{toStringToBuffer(e){const{children:t}=this,r={...this.props};t.length&&(r.children=t.length===1?t[0]:t);const n=this.tag.call(null,r);if(!(typeof n=="boolean"||n==null))if(n instanceof Promise)if(x.length===0)e.unshift("",n);else{const a=x.map(i=>[i,i.values.at(-1)]);e.unshift("",n.then(i=>(i instanceof k&&(i.localContexts=a),i)))}else n instanceof k?n.toStringToBuffer(e):typeof n=="number"||n.isEscaped?(e[0]+=n,n.callbacks&&(e.callbacks||=[],e.callbacks.push(...n.callbacks))):L(n,e)}},Ke=class extends k{toStringToBuffer(e){ce(this.children,e)}},be=!1,ee=(e,t,r)=>{if(!be){for(const n in ae)Q[n][se]=ae[n];be=!0}return typeof e=="function"?new Y(e,t,r):Q[e]?new Y(Q[e],t,r):e==="svg"||e==="head"?(_||=Be(""),new k(e,t,[new Y(_,{value:e},r)])):new k(e,t,r)},Et=({children:e})=>new Ke("",{children:e},Array.isArray(e)?e:e?[e]:[]);function V(e,t,r){let n;if(!t||!("children"in t))n=ee(e,t,[]);else{const a=t.children;n=Array.isArray(a)?ee(e,t,a):ee(e,t,[a])}return n.key=r,n}var q="_hp",bt={Change:"Input",DoubleClick:"DblClick"},wt={svg:"2000/svg",math:"1998/Math/MathML"},M=[],ie=new WeakMap,N=void 0,St=()=>N,P=e=>"t"in e,te={onClick:["click",!1]},we=e=>{if(!e.startsWith("on"))return;if(te[e])return te[e];const t=e.match(/^on([A-Z][a-zA-Z]+?(?:PointerCapture)?)(Capture)?$/);if(t){const[,r,n]=t;return te[e]=[(bt[r]||r).toLowerCase(),!!n]}},Se=(e,t)=>N&&e instanceof SVGElement&&/[A-Z]/.test(t)&&(t in e.style||t.match(/^(?:o|pai|str|u|ve)/))?t.replace(/([A-Z])/g,"-$1").toLowerCase():t,Ve=e=>e==null||e===!1?null:e,At=(e,t)=>{"value"in t&&(e.value=Ve(t.value),!e.multiple&&e.selectedIndex===-1&&(e.selectedIndex=0))},Ae=e=>e instanceof DOMException&&e.name==="InvalidCharacterError",kt=(e,t,r)=>{t||={};for(let n in t){const a=t[n];if(n!=="children"&&(!r||r[n]!==a)){n=G(n);const i=we(n);if(i){if(r?.[n]!==a&&(r&&e.removeEventListener(i[0],r[n],i[1]),a!=null)){if(typeof a!="function")throw new Error(`Event handler for "${n}" is not a function`);e.addEventListener(i[0],a,i[1])}}else if(n==="dangerouslySetInnerHTML"&&a)e.innerHTML=a.__html;else if(n==="ref"){let o;typeof a=="function"?o=a(e)||(()=>a(null)):a&&"current"in a&&(a.current=e,o=()=>a.current=null),ie.set(e,o)}else if(n==="style"){const o=e.style;typeof a=="string"?o.cssText=a:(o.cssText="",a!=null&&je(a,o.setProperty.bind(o)))}else{if(n==="value"){const l=e.nodeName;if(l==="SELECT")continue;if((l==="INPUT"||l==="TEXTAREA")&&(e.value=Ve(a),l==="TEXTAREA")){e.textContent=a;continue}}else(n==="checked"&&e.nodeName==="INPUT"||n==="selected"&&e.nodeName==="OPTION")&&(e[n]=a);const o=Se(e,n);try{a==null||a===!1?e.removeAttribute(o):a===!0?e.setAttribute(o,""):typeof a=="string"||typeof a=="number"?e.setAttribute(o,a):e.setAttribute(o,a.toString())}catch(l){if(!Ae(l))throw l}}}}if(r)for(let n in r){const a=r[n];if(n!=="children"&&!(n in t)){n=G(n);const i=we(n);if(i)e.removeEventListener(i[0],a,i[1]);else if(n==="ref")ie.get(e)?.();else try{e.removeAttribute(Se(e,n))}catch(o){if(!Ae(o))throw o}}}},Ct=(e,t)=>{t[y][0]=0,M.push([e,t]);const r=t.tag[se]||t.tag,n=r.defaultProps?{...r.defaultProps,...t.props}:t.props;try{return[r.call(null,n)]}finally{M.pop()}},We=(e,t,r,n,a)=>{e.vR?.length&&(n.push(...e.vR),delete e.vR),typeof e.tag=="function"&&e[y][1][fe]?.forEach(i=>a.push(i)),e.vC.forEach(i=>{if(P(i))r.push(i);else if(typeof i.tag=="function"||i.tag===""){i.c=t;const o=r.length;if(We(i,t,r,n,a),i.s){for(let l=o;l<r.length;l++)r[l].s=!0;i.s=!1}}else r.push(i),i.vR?.length&&(n.push(...i.vR),delete i.vR)})},Pt=e=>{for(;e&&(e.tag===q||!e.e);)e=e.tag===q||!e.vC?.[0]?e.nN:e.vC[0];return e?.e},Ue=e=>{P(e)||(e[y]?.[1][fe]?.forEach(t=>t[2]?.()),ie.get(e.e)?.(),e.p===2&&e.vC?.forEach(t=>t.p=2),e.vC?.forEach(Ue)),e.p||(e.e?.remove(),delete e.e),typeof e.tag=="function"&&(B.delete(e),W.delete(e),delete e[y][3],e.a=!0)},ue=(e,t,r)=>{e.c=t,ze(e,t,r)},ke=(e,t)=>{if(t){for(let r=0,n=e.length;r<n;r++)if(e[r]===t)return r}},Ce=Symbol(),ze=(e,t,r)=>{const n=[],a=[],i=[];We(e,t,n,a,i),a.forEach(Ue);const o=r?void 0:t.childNodes;let l,v=null;if(r)l=-1;else if(!o.length)l=0;else{const c=ke(o,Pt(e.nN));c!==void 0?(v=o[c],l=c):l=ke(o,n.find(s=>s.tag!==q&&s.e)?.e)??-1,l===-1&&(r=!0)}for(let c=0,s=n.length;c<s;c++,l++){const u=n[c];let f;if(u.s&&u.e)f=u.e,u.s=!1;else{const d=r||!u.e;P(u)?(u.e&&u.d&&(u.e.textContent=u.t),u.d=!1,f=u.e||=document.createTextNode(u.t)):(f=u.e||=u.n?document.createElementNS(u.n,u.tag):document.createElement(u.tag),kt(f,u.props,u.pP),ze(u,f,d),u.tag==="select"&&At(f,u.props))}u.tag===q?l--:r?f.parentNode||t.appendChild(f):o[l]!==f&&o[l-1]!==f&&(o[l+1]===f?t.appendChild(o[l]):t.insertBefore(f,v||o[l]||null))}if(e.pP&&(e.pP=void 0),i.length){const c=[],s=[];i.forEach(([,u,,f,d])=>{u&&c.push(u),f&&s.push(f),d?.()}),c.forEach(u=>u()),s.length&&requestAnimationFrame(()=>{s.forEach(u=>u())})}},It=(e,t)=>!!(e&&e.length===t.length&&e.every((r,n)=>r[1]===t[n][1])),W=new WeakMap,J=(e,t,r)=>{const n=!r&&t.pC;r&&(t.pC||=t.vC);let a;try{r||=typeof t.tag=="function"?Ct(e,t):F(t.props.children),r[0]?.tag===""&&r[0][ne]&&(a=r[0][ne],e[5].push([e,a,t]));const i=n?[...t.pC]:t.vC?[...t.vC]:void 0,o=[];let l;for(let v=0;v<r.length;v++){if(Array.isArray(r[v])){r.splice(v,1,...r[v].flat(1/0)),v--;continue}let c=Ze(r[v]);if(c){typeof c.tag=="function"&&!c.tag[Oe]&&(x.length>0&&(c[y][2]=x.map(u=>[u,u.values.at(-1)])),e[5]?.length&&(c[y][3]=e[5].at(-1)));let s;if(i&&i.length){const u=i.findIndex(P(c)?f=>P(f):c.key!==void 0?f=>f.key===c.key&&f.tag===c.tag:f=>f.tag===c.tag);u!==-1&&(s=i[u],i.splice(u,1))}if(s)if(P(c))s.t!==c.t&&(s.t=c.t,s.d=!0),c=s;else{const u=s.pP=s.props;if(s.props=c.props,s.f||=c.f||t.f,typeof c.tag=="function"){const f=s[y][2];s[y][2]=c[y][2]||[],s[y][3]=c[y][3],!s.f&&((s.o||s)===c.o||s.tag[at]?.(u,s.props))&&It(f,s[y][2])&&(s.s=!0)}c=s}else if(!P(c)&&N){const u=O(N);u&&(c.n=u)}if(!P(c)&&!c.s&&(J(e,c),delete c.f),o.push(c),l&&!l.s&&!c.s)for(let u=l;u&&!P(u);u=u.vC?.at(-1))u.nN=c;l=c}}t.vR=n?[...t.vC,...i||[]]:i||[],t.vC=o,n&&delete t.pC}catch(i){if(t.f=!0,i===Ce){if(a)return;throw i}const[o,l,v]=t[y]?.[3]||[];if(l){const c=()=>U([0,!1,e[2]],v),s=W.get(v)||[];s.push(c),W.set(v,s);const u=l(i,()=>{const f=W.get(v);if(f){const d=f.indexOf(c);if(d!==-1)return f.splice(d,1),c()}});if(u){if(e[0]===1)e[1]=!0;else if(J(e,v,[u]),(l.length===1||e!==o)&&v.c){ue(v,v.c,!1);return}throw Ce}}throw i}finally{a&&e[5].pop()}},Ze=e=>{if(!(e==null||typeof e=="boolean")){if(typeof e=="string"||typeof e=="number")return{t:e.toString(),d:!0};if("vR"in e&&(e={tag:e.tag,props:e.props,key:e.key,f:e.f,type:e.tag,ref:e.props.ref,o:e.o||e}),typeof e.tag=="function")e[y]=[0,[]];else{const t=wt[e.tag];t&&(N||=Re(""),e.props.children=[{tag:N,props:{value:e.n=`http://www.w3.org/${t}`,children:e.props.children}}])}return e}},Xe=(e,t,r)=>{e.c===t&&(e.c=r,e.vC.forEach(n=>Xe(n,t,r)))},Pe=(e,t)=>{t[y][2]?.forEach(([r,n])=>{r.values.push(n)});try{J(e,t,void 0)}catch{return}if(t.a){delete t.a;return}t[y][2]?.forEach(([r])=>{r.values.pop()}),(e[0]!==1||!e[1])&&ue(t,t.c,!1)},B=new WeakMap,Ie=[],U=async(e,t)=>{e[5]||=[];const r=B.get(t);r&&r[0](void 0);let n;const a=new Promise(i=>n=i);if(B.set(t,[n,()=>{e[2]?e[2](e,t,i=>{Pe(i,t)}).then(()=>n(t)):(Pe(e,t),n(t))}]),Ie.length)Ie.at(-1).add(t);else{await Promise.resolve();const i=B.get(t);i&&(B.delete(t),i[1]())}return a},Tt=(e,t)=>{const r=[];r[5]=[],r[4]=!0,J(r,e,void 0),r[4]=!1;const n=document.createDocumentFragment();ue(e,n,!0),Xe(e,n,t),t.replaceChildren(n)},Dt=(e,t,r)=>({tag:q,props:{children:e},key:r,e:t,p:1}),Lt=0,fe=1,xt=2,Mt=3,re=new WeakMap,ve=(e,t)=>!e||!t||e.length!==t.length||t.some((r,n)=>r!==e[n]),Nt=void 0,Te=[],Ge=e=>{const t=()=>typeof e=="function"?e():e,r=M.at(-1);if(!r)return[t(),()=>{}];const[,n]=r,a=n[y][1][Lt]||=[],i=n[y][0]++;return a[i]||=[t(),o=>{const l=Nt,v=a[i];if(typeof o=="function"&&(o=o(v[0])),!Object.is(o,v[0]))if(v[0]=o,Te.length){const[c,s]=Te.at(-1);Promise.all([c===3?n:U([c,!1,l],n),s]).then(([u])=>{if(!u||!(c===2||c===3))return;const f=u.vC;requestAnimationFrame(()=>{setTimeout(()=>{f===u.vC&&U([c===3?1:0,!1,l],u)})})})}else U([0,!1,l],n)}]},Ot=(e,t,r)=>{const n=M.at(-1);if(!n)return;const[,a]=n,i=a[y][1][fe]||=[],o=a[y][0]++,[l,,v]=i[o]||=[];if(ve(l,r)){v&&v();const c=()=>{s[e]=void 0,s[2]=t()},s=[r,void 0,void 0,void 0,void 0];s[e]=c,i[o]=s}},Je=(e,t)=>Ot(3,e,t),de=(e,t)=>{const r=M.at(-1);if(!r)return e;const[,n]=r,a=n[y][1][xt]||=[],i=n[y][0]++,o=a[i];return ve(o?.[1],t)?a[i]=[e,t]:e=a[i][0],e},$t=e=>{const t=re.get(e);if(t){if(t.length===2)throw t[1];return t[0]}throw e.then(r=>re.set(e,[r]),r=>re.set(e,[void 0,r])),e},Rt=(e,t)=>{const r=M.at(-1);if(!r)return e();const[,n]=r,a=n[y][1][Mt]||=[],i=n[y][0]++,o=a[i];return ve(o?.[1],t)&&(a[i]=[e(),t]),a[i][0]},Bt=Re({pending:!1,data:null,method:null,action:null}),De=new Set,_t=e=>{De.add(e),e.finally(()=>De.delete(e))},he=(e,t)=>Rt(()=>r=>{let n;e&&(typeof e=="function"?n=e(r)||(()=>{e(null)}):e&&"current"in e&&(e.current=r,n=()=>{e.current=null}));const a=t(r);return()=>{a?.(),n?.()}},[e]),Le=Object.create(null),xe=Object.create(null),K=(e,t,r,n,a)=>{if(t?.itemProp)return{tag:e,props:t,type:e,ref:t.ref};const i=document.head;let{onLoad:o,onError:l,precedence:v,blocking:c,...s}=t,u=null,f=!1;const d=X[e],h=qe(e,n),E=g=>g.getAttribute("rel")==="stylesheet"&&g.getAttribute(D)!==null;let p;if(h){const g=i.querySelectorAll(e);e:for(const b of g)if(!(e==="link"&&!E(b))){for(const m of d)if(b.getAttribute(m)===t[m]){u=b;break e}}if(!u){const b=d.reduce((m,w)=>t[w]===void 0?m:`${m}-${w}-${t[w]}`,e);f=!xe[b],u=xe[b]||=(()=>{const m=document.createElement(e);for(const w of d)t[w]!==void 0&&m.setAttribute(w,t[w]);return t.rel&&m.setAttribute("rel",t.rel),m})()}}else p=i.querySelectorAll(e);v=n?v??"":void 0,n&&(s[D]=v);const A=de(g=>{if(h){if(e==="link"&&v!==void 0){let m=!1;for(const w of i.querySelectorAll(e)){const T=w.getAttribute(D);if(T===null){i.insertBefore(g,w);return}if(m&&T!==v){i.insertBefore(g,w);return}T===v&&(m=!0)}i.appendChild(g);return}let b=!1;for(const m of i.querySelectorAll(e)){if(b&&m.getAttribute(D)!==v){i.insertBefore(g,m);return}m.getAttribute(D)===v&&(b=!0)}i.appendChild(g)}else if(e==="link")i.contains(g)||i.appendChild(g);else if(p){let b=!1;for(const m of p)if(m===g){b=!0;break}b||i.insertBefore(g,i.contains(p[0])?p[0]:i.querySelector(e)),p=void 0}},[h,v,e]),C=he(t.ref,g=>{const b=d[0];if(r===2&&(g.innerHTML=""),(f||p)&&A(g),!l&&!o||!b)return;let m=Le[g.getAttribute(b)]||=new Promise((w,T)=>{g.addEventListener("load",w),g.addEventListener("error",T)});o&&(m=m.then(o)),l&&(m=m.catch(l)),m.catch(()=>{})});if(a&&c==="render"){const g=X[e][0];if(g&&t[g]){const b=t[g],m=Le[b]||=new Promise((w,T)=>{A(u),u.addEventListener("load",w),u.addEventListener("error",T)});$t(m)}}const S={tag:e,type:e,props:{...s,ref:C},ref:C};return S.p=r,u&&(S.e=u),Dt(S,i)},qt=e=>{const t=St();return(t&&O(t))?.endsWith("svg")?{tag:"title",props:e,type:"title",ref:e.ref}:K("title",e,void 0,!1,!1)},Ft=e=>!e||["src","async"].some(t=>!e[t])?{tag:"script",props:e,type:"script",ref:e.ref}:K("script",e,1,!1,!0),Ht=e=>!e||!["href","precedence"].every(t=>t in e)?{tag:"style",props:e,type:"style",ref:e.ref}:(e["data-href"]=e.href,delete e.href,K("style",e,2,!0,!0)),jt=e=>!e||["onLoad","onError"].some(t=>t in e)||e.rel==="stylesheet"&&(!("precedence"in e)||"disabled"in e)?{tag:"link",props:e,type:"link",ref:e.ref}:K("link",e,1,_e(e),!0),Kt=e=>K("meta",e,void 0,!1,!1),Qe=Symbol(),Vt=e=>{const{action:t,...r}=e;typeof t!="function"&&(r.action=t);const[n,a]=Ge([null,!1]),i=de(async c=>{const s=c.isTrusted?t:c.detail[Qe];if(typeof s!="function")return;c.preventDefault();const u=new FormData(c.target);a([u,!0]);const f=s(u);f instanceof Promise&&(_t(f),await f),a([null,!0])},[]),o=he(e.ref,c=>(c.addEventListener("submit",i),()=>{c.removeEventListener("submit",i)})),[l,v]=n;return n[1]=!1,{tag:Bt,props:{value:{pending:l!==null,data:l,method:l?"post":null,action:l?t:null},children:{tag:"form",props:{...r,ref:o},type:"form",ref:o}},f:v}},Ye=(e,{formAction:t,...r})=>{if(typeof t=="function"){const n=de(a=>{a.preventDefault(),a.currentTarget.form.dispatchEvent(new CustomEvent("submit",{detail:{[Qe]:t}}))},[]);r.ref=he(r.ref,a=>(a.addEventListener("click",n),()=>{a.removeEventListener("click",n)}))}return{tag:e,props:r,type:e,ref:r.ref}},Wt=e=>Ye("input",e),Ut=e=>Ye("button",e);Object.assign(ae,{title:qt,script:Ft,style:Ht,link:jt,meta:Kt,form:Vt,input:Wt,button:Ut});Be(null);new TextEncoder;var zt=(e,t={})=>{let r;return Object.keys(t).length>0&&console.warn("createRoot options are not supported yet"),{render(n){if(r===null)throw new Error("Cannot update an unmounted root");r?r(n):Tt(Ze({tag:()=>{const[a,i]=Ge(n);return r=i,a},props:{}}),e)},unmount(){r?.(null),r=null}}},Zt=(e,t,r={})=>{const n=zt(e,r);return n.render(t),n};function Xt(){return Je(()=>{const e=document.querySelectorAll("form"),t=[];return e.forEach(r=>{const n=i=>{if(i.defaultPrevented)return;const o=i.submitter;o&&o.type==="submit"&&(o.classList.add("is-loading"),o.disabled=!0)};r.addEventListener("submit",n);const a=i=>{i.persisted&&r.querySelectorAll("button[type=submit]").forEach(l=>{l.classList.remove("is-loading"),l.disabled=!1})};window.addEventListener("pageshow",a),t.push(()=>{r.removeEventListener("submit",n),window.removeEventListener("pageshow",a)})}),()=>{t.forEach(r=>r())}},[]),null}function Gt(){return Je(()=>{const e=document.querySelectorAll("[data-password-toggle]"),t=[];return e.forEach(r=>{const n=r.querySelector("input[type='password'], input[data-password-input]"),a=r.querySelector("[data-password-toggle-btn]"),i=a?.querySelector("[data-show-icon]"),o=a?.querySelector("[data-hide-icon]");if(!n||!a||!i||!o)return;const l=c=>{c?(n.type="text",n.setAttribute("data-password-input","text"),i.classList.add("hidden"),o.classList.remove("hidden")):(n.type="password",n.setAttribute("data-password-input","password"),o.classList.add("hidden"),i.classList.remove("hidden"))},v=c=>{c.preventDefault();const s=n.type==="password";l(s)};a.addEventListener("click",v),t.push(()=>{a.removeEventListener("click",v)})}),()=>{t.forEach(r=>r())}},[]),null}function Jt(){return document.querySelectorAll("[data-input-otp-container]").forEach(t=>{const r=Array.from(t.querySelectorAll("[data-input-otp-slot]"));if(!r.length)return;const n=t.closest("form");let a=null;if(n&&r.length>0){const l=r[0]?.getAttribute("name");l&&(a=n.querySelector(`input[name="${l}"][type="hidden"]`),a||(a=document.createElement("input"),a.type="hidden",a.name=l,n.appendChild(a)),r.forEach(v=>v.removeAttribute("name")))}const i=()=>{if(a){const o=r.map(l=>l.value).join("");a.value=o,o.length===r.length&&n&&setTimeout(()=>{n.requestSubmit()},100)}};r.forEach((o,l)=>{o.addEventListener("input",v=>{const c=v.target;let s=c.value;s=s.replace(/[^0-9]/g,""),s.length>1&&(s=s.charAt(0)),c.value=s,s&&l<r.length-1&&r[l+1]?.focus(),i()}),o.addEventListener("paste",v=>{v.preventDefault();const s=(v.clipboardData?.getData("text")||"").replace(/[^0-9]/g,"");for(let f=0;f<Math.min(s.length,r.length-l);f++){const d=r[l+f],h=s.charAt(f);d&&h&&(d.value=h)}const u=r.findIndex((f,d)=>d>=l&&!f.value);u!==-1?r[u]?.focus():r[Math.min(l+s.length,r.length-1)]?.focus(),i()}),o.addEventListener("keydown",v=>{if(v.key==="Backspace"){const c=v.target;if(!c.value&&l>0){v.preventDefault();const s=r[l-1];s&&(s.value="",s.focus()),i()}else c.value&&setTimeout(()=>i(),0)}else v.key==="ArrowLeft"&&l>0?(v.preventDefault(),r[l-1]?.focus()):v.key==="ArrowRight"&&l<r.length-1&&(v.preventDefault(),r[l+1]?.focus())}),o.addEventListener("focus",()=>{o.select()})}),i()}),null}var oe={d:(e,t)=>{for(var r in t)oe.o(t,r)&&!oe.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},pe={};oe.d(pe,{A:()=>Qt,k:()=>me});var $=function(e,t,r,n){return new(r||(r=Promise))(function(a,i){function o(c){try{v(n.next(c))}catch(s){i(s)}}function l(c){try{v(n.throw(c))}catch(s){i(s)}}function v(c){var s;c.done?a(c.value):(s=c.value,s instanceof r?s:new r(function(u){u(s)})).then(o,l)}v((n=n.apply(e,[])).next())})},R=function(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(v){return function(c){return(function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&s[0]?n.return:s[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,s[1])).done)return a;switch(n=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!((a=a.length>0&&a[a.length-1])||s[0]!==6&&s[0]!==2)){o=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(s[0]===6&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(u){s=[6,u],n=0}finally{r=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}})([v,c])}}};function me(){return $(this,void 0,Promise,function(){return R(this,function(e){switch(e.label){case 0:return[4,new Promise(function(t,r){var n="Unknown",a=!1;function i(f){a||(a=!0,t({isPrivate:f,browserName:n}))}function o(){var f=0,d=parseInt("-1");try{d.toFixed(d)}catch(h){f=h.message.length}return f}function l(){return $(this,void 0,void 0,function(){var f,d;return R(this,function(h){switch(h.label){case 0:return h.trys.push([0,2,,3]),[4,navigator.storage.getDirectory()];case 1:return h.sent(),i(!1),[3,3];case 2:return f=h.sent(),d=f instanceof Error&&typeof f.message=="string"?f.message:String(f),i(d.includes("unknown transient reason")),[3,3];case 3:return[2]}})})}function v(){var f;return $(this,void 0,Promise,function(){return R(this,function(d){switch(d.label){case 0:return typeof((f=navigator.storage)===null||f===void 0?void 0:f.getDirectory)!="function"?[3,2]:[4,l()];case 1:return d.sent(),[3,3];case 2:navigator.maxTouchPoints!==void 0?(function(){var h=String(Math.random());try{var E=indexedDB.open(h,1);E.onupgradeneeded=function(p){var A=p.target.result,C=function(S){i(S)};try{A.createObjectStore("t",{autoIncrement:!0}).put(new Blob),C(!1)}catch(S){(S instanceof Error&&typeof S.message=="string"?S.message:String(S)).includes("are not yet supported")?C(!0):C(!1)}finally{A.close(),indexedDB.deleteDatabase(h)}},E.onerror=function(){return i(!1)}}catch{i(!1)}})():(function(){var h=window.openDatabase,E=window.localStorage;try{h(null,null,null,null)}catch{return void i(!0)}try{E.setItem("test","1"),E.removeItem("test")}catch{return void i(!0)}i(!1)})(),d.label=3;case 3:return[2]}})})}function c(){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(f,d){var h=Math.round(d/1048576),E=2*Math.round((function(){var p,A,C,S=window;return(C=(A=(p=S?.performance)===null||p===void 0?void 0:p.memory)===null||A===void 0?void 0:A.jsHeapSizeLimit)!==null&&C!==void 0?C:1073741824})()/1048576);i(h<E)},function(f){r(new Error("detectIncognito somehow failed to query storage quota: "+f.message))})}function s(){self.Promise!==void 0&&self.Promise.allSettled!==void 0?c():(0,window.webkitRequestFileSystem)(0,1,function(){i(!1)},function(){i(!0)})}function u(){var f;return $(this,void 0,Promise,function(){var d,h,E;return R(this,function(p){switch(p.label){case 0:if(typeof((f=navigator.storage)===null||f===void 0?void 0:f.getDirectory)!="function")return[3,5];p.label=1;case 1:return p.trys.push([1,3,,4]),[4,navigator.storage.getDirectory()];case 2:return p.sent(),i(!1),[3,4];case 3:return d=p.sent(),h=d instanceof Error&&typeof d.message=="string"?d.message:String(d),i(h.includes("Security error")),[2];case 4:return[3,6];case 5:(E=indexedDB.open("inPrivate")).onerror=function(A){E.error&&E.error.name==="InvalidStateError"&&A.preventDefault(),i(!0)},E.onsuccess=function(){indexedDB.deleteDatabase("inPrivate"),i(!1)},p.label=6;case 6:return[2]}})})}(function(){return $(this,void 0,Promise,function(){return R(this,function(f){switch(f.label){case 0:return o()!==44&&o()!==43?[3,2]:(n="Safari",[4,v()]);case 1:return f.sent(),[3,6];case 2:return o()!==51?[3,3]:(d=navigator.userAgent,n=d.match(/Chrome/)?navigator.brave!==void 0?"Brave":d.match(/Edg/)?"Edge":d.match(/OPR/)?"Opera":"Chrome":"Chromium",s(),[3,6]);case 3:return o()!==25?[3,5]:(n="Firefox",[4,u()]);case 4:return f.sent(),[3,6];case 5:navigator.msSaveBlob!==void 0?(n="Internet Explorer",i(window.indexedDB===void 0)):r(new Error("detectIncognito cannot determine the browser")),f.label=6;case 6:return[2]}var d})})})().catch(r)})];case 1:return[2,e.sent()]}})})}typeof window<"u"&&(window.detectIncognito=me);const Qt=me;pe.A;const Yt=pe.k,z="authhero_incognito_mode";function er(){try{const e=sessionStorage.getItem(z);return e===null?void 0:e==="true"}catch{return}}async function tr(){try{const e=sessionStorage.getItem(z);if(e!==null)return e==="true";const{isPrivate:t}=await Yt();return sessionStorage.setItem(z,t.toString()),t}catch{try{sessionStorage.setItem(z,"false")}catch{}return!1}}const rr=()=>{const e=er();if(e!==void 0){e&&Me();return}tr().then(t=>{t&&Me()}).catch(()=>{})};function Me(){const e=document.getElementById("incognito-warning-container");e&&e.classList.remove("hidden")}rr();const Ne=document.getElementById("client-root");Ne&&Zt(Ne,V(Et,{children:[V(Xt,{}),V(Gt,{}),V(Jt,{})]}));
|
|
1
|
+
var at={Stringify:1},I=(e,t)=>{const r=new String(e);return r.isEscaped=!0,r.callbacks=t,r},it=/[&<>'"]/,ot=async(e,t)=>{let r="";t||=[];const n=await Promise.all(e);for(let a=n.length-1;r+=n[a],a--,!(a<0);a--){let i=n[a];typeof i=="object"&&t.push(...i.callbacks||[]);const o=i.isEscaped;if(i=await(typeof i=="object"?i.toString():i),typeof i=="object"&&t.push(...i.callbacks||[]),i.isEscaped??o)r+=i;else{const l=[r];x(i,l),r=l[0]}}return I(r,t)},x=(e,t)=>{const r=e.search(it);if(r===-1){t[0]+=e;return}let n,a,i=0;for(a=r;a<e.length;a++){switch(e.charCodeAt(a)){case 34:n=""";break;case 39:n="'";break;case 38:n="&";break;case 60:n="<";break;case 62:n=">";break;default:continue}t[0]+=e.substring(i,a)+n,i=a+1}t[0]+=e.substring(i,a)},st=e=>{const t=e.callbacks;if(!t?.length)return e;const r=[e],n={};return t.forEach(a=>a({phase:at.Stringify,buffer:r,context:n})),r[0]},ce=Symbol("RENDERER"),ae=Symbol("ERROR_HANDLER"),y=Symbol("STASH"),_e=Symbol("INTERNAL"),lt=Symbol("MEMO"),X=Symbol("PERMALINK"),Ee=e=>(e[_e]=!0,e),qe=e=>({value:t,children:r})=>{if(!r)return;const n={children:[{tag:Ee(()=>{e.push(t)}),props:{}}]};Array.isArray(r)?n.children.push(...r.flat()):n.children.push(r),n.children.push({tag:Ee(()=>{e.pop()}),props:{}});const a={tag:"",props:n,type:""};return a[ae]=i=>{throw e.pop(),i},a},Fe=e=>{const t=[e],r=qe(t);return r.values=t,r.Provider=r,L.push(r),r},L=[],He=e=>{const t=[e],r=(n=>{t.push(n.value);let a;try{a=n.children?(Array.isArray(n.children)?new ze("",{},n.children):n.children).toString():""}catch(i){throw t.pop(),i}return a instanceof Promise?a.finally(()=>t.pop()).then(i=>I(i,i.callbacks)):(t.pop(),I(a))});return r.values=t,r.Provider=r,r[ce]=qe(t),L.push(r),r},$=e=>e.values.at(-1),Z={title:[],script:["src"],style:["data-href"],link:["href"],meta:["name","httpEquiv","charset","itemProp"]},ie={},D="data-precedence",je=e=>e.rel==="stylesheet"&&"precedence"in e,Ke=(e,t)=>e==="link"?t:Z[e].length>0,F=e=>Array.isArray(e)?e:[e],be=new WeakMap,we=(e,t,r,n)=>({buffer:a,context:i})=>{if(!a)return;const o=be.get(i)||{};be.set(i,o);const l=o[e]||=[];let v=!1;const c=Z[e],s=Ke(e,n!==void 0);if(s){e:for(const[,u]of l)if(!(e==="link"&&!(u.rel==="stylesheet"&&u[D]!==void 0))){for(const f of c)if((u?.[f]??null)===r?.[f]){v=!0;break e}}}if(v?a[0]=a[0].replaceAll(t,""):s||e==="link"?l.push([t,r,n]):l.unshift([t,r,n]),a[0].indexOf("</head>")!==-1){let u;if(e==="link"||n!==void 0){const f=[];u=l.map(([d,,h],E)=>{if(h===void 0)return[d,Number.MAX_SAFE_INTEGER,E];let p=f.indexOf(h);return p===-1&&(f.push(h),p=f.length-1),[d,p,E]}).sort((d,h)=>d[1]-h[1]||d[2]-h[2]).map(([d])=>d)}else u=l.map(([f])=>f);u.forEach(f=>{a[0]=a[0].replaceAll(f,"")}),a[0]=a[0].replace(/(?=<\/head>)/,u.join(""))}},H=(e,t,r)=>I(new k(e,r,F(t??[])).toString()),j=(e,t,r,n)=>{if("itemProp"in r)return H(e,t,r);let{precedence:a,blocking:i,...o}=r;a=n?a??"":void 0,n&&(o[D]=a);const l=new k(e,o,F(t||[])).toString();return l instanceof Promise?l.then(v=>I(l,[...v.callbacks||[],we(e,v,o,a)])):I(l,[we(e,l,o,a)])},ct=({children:e,...t})=>{const r=ue();if(r){const n=$(r);if(n==="svg"||n==="head")return new k("title",t,F(e??[]))}return j("title",e,t,!1)},ut=({children:e,...t})=>{const r=ue();return["src","async"].some(n=>!t[n])||r&&$(r)==="head"?H("script",e,t):j("script",e,t,!1)},ft=({children:e,...t})=>["href","precedence"].every(r=>r in t)?(t["data-href"]=t.href,delete t.href,j("style",e,t,!0)):H("style",e,t),vt=({children:e,...t})=>["onLoad","onError"].some(r=>r in t)||t.rel==="stylesheet"&&(!("precedence"in t)||"disabled"in t)?H("link",e,t):j("link",e,t,je(t)),dt=({children:e,...t})=>{const r=ue();return r&&$(r)==="head"?H("meta",e,t):j("meta",e,t,!1)},Ve=(e,{children:t,...r})=>new k(e,r,F(t??[])),ht=e=>(typeof e.action=="function"&&(e.action=X in e.action?e.action[X]:void 0),Ve("form",e)),We=(e,t)=>(typeof t.formAction=="function"&&(t.formAction=X in t.formAction?t.formAction[X]:void 0),Ve(e,t)),pt=e=>We("input",e),mt=e=>We("button",e);const Q=Object.freeze(Object.defineProperty({__proto__:null,button:mt,form:ht,input:pt,link:vt,meta:dt,script:ut,style:ft,title:ct},Symbol.toStringTag,{value:"Module"}));var gt=new Map([["className","class"],["htmlFor","for"],["crossOrigin","crossorigin"],["httpEquiv","http-equiv"],["itemProp","itemprop"],["fetchPriority","fetchpriority"],["noModule","nomodule"],["formAction","formaction"]]),J=e=>gt.get(e)||e,yt=/[\s"'<>/=`\\\x00-\x1f\x7f-\x9f]/,Y=new Set,Se=1024,Et=/^[!?]|[\s"'<>/=`\\\x00-\x1f\x7f-\x9f]/,Ae=new Set,bt=256,oe=(e,t,r)=>{e.size>=t&&e.clear(),e.add(r)},wt=e=>Ae.has(e)?!0:typeof e!="string"?!1:e.length===0?!0:Et.test(e)?!1:(oe(Ae,bt,e),!0),St=e=>{if(Y.has(e))return!0;const t=e.length;if(t===0)return!1;for(let r=0;r<t;r++){const n=e.charCodeAt(r);if(!(n>=97&&n<=122||n>=65&&n<=90||n>=48&&n<=57||n===45||n===95||n===46||n===58))return yt.test(e)?!1:(oe(Y,Se,e),!0)}return oe(Y,Se,e),!0},Ue=(e,t)=>{for(const[r,n]of Object.entries(e)){const a=r[0]==="-"||!/[A-Z]/.test(r)?r:r.replace(/[A-Z]/g,i=>`-${i.toLowerCase()}`);t(a,n==null?null:typeof n=="number"?a.match(/^(?:a|border-im|column(?:-c|s)|flex(?:$|-[^b])|grid-(?:ar|[^a])|font-w|li|or|sca|st|ta|wido|z)|ty$/)?`${n}`:`${n}px`:n)}},_=void 0,ue=()=>_,At=e=>/[A-Z]/.test(e)&&e.match(/^(?:al|basel|clip(?:Path|Rule)$|co|do|fill|fl|fo|gl|let|lig|i|marker[EMS]|o|pai|pointe|sh|st[or]|text[^L]|tr|u|ve|w)/)?e.replace(/([A-Z])/g,"-$1").toLowerCase():e,kt=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Ct=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","download","formnovalidate","hidden","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"],fe=(e,t)=>{for(let r=0,n=e.length;r<n;r++){const a=e[r];if(typeof a=="string")x(a,t);else{if(typeof a=="boolean"||a===null||a===void 0)continue;a instanceof k?a.toStringToBuffer(t):typeof a=="number"||a.isEscaped?t[0]+=a:a instanceof Promise?t.unshift("",a):fe(a,t)}}},k=class{tag;props;key;children;isEscaped=!0;localContexts;constructor(e,t,r){if(typeof e!="function"&&!wt(e))throw new Error(`Invalid JSX tag name: ${e}`);this.tag=e,this.props=t,this.children=r}get type(){return this.tag}get ref(){return this.props.ref||null}toString(){const e=[""];this.localContexts?.forEach(([t,r])=>{t.values.push(r)});try{this.toStringToBuffer(e)}finally{this.localContexts?.forEach(([t])=>{t.values.pop()})}return e.length===1?"callbacks"in e?st(I(e[0],e.callbacks)).toString():e[0]:ot(e,e.callbacks)}toStringToBuffer(e){const t=this.tag,r=this.props;let{children:n}=this;e[0]+=`<${t}`;const a=t==="svg"||_&&$(_)==="svg"?i=>At(J(i)):i=>J(i);for(let[i,o]of Object.entries(r))if(i=a(i),!!St(i)&&i!=="children"){if(i==="style"&&typeof o=="object"){let l="";Ue(o,(v,c)=>{c!=null&&(l+=`${l?";":""}${v}:${c}`)}),e[0]+=' style="',x(l,e),e[0]+='"'}else if(typeof o=="string")e[0]+=` ${i}="`,x(o,e),e[0]+='"';else if(o!=null)if(typeof o=="number"||o.isEscaped)e[0]+=` ${i}="${o}"`;else if(typeof o=="boolean"&&Ct.includes(i))o&&(e[0]+=` ${i}=""`);else if(i==="dangerouslySetInnerHTML"){if(n.length>0)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");n=[I(o.__html)]}else if(o instanceof Promise)e[0]+=` ${i}="`,e.unshift('"',o);else if(typeof o=="function"){if(!i.startsWith("on")&&i!=="ref")throw new Error(`Invalid prop '${i}' of type 'function' supplied to '${t}'.`)}else e[0]+=` ${i}="`,x(o.toString(),e),e[0]+='"'}if(kt.includes(t)&&n.length===0){e[0]+="/>";return}e[0]+=">",fe(n,e),e[0]+=`</${t}>`}},ee=class extends k{toStringToBuffer(e){const{children:t}=this,r={...this.props};t.length&&(r.children=t.length===1?t[0]:t);const n=this.tag.call(null,r);if(!(typeof n=="boolean"||n==null))if(n instanceof Promise)if(L.length===0)e.unshift("",n);else{const a=L.map(i=>[i,i.values.at(-1)]);e.unshift("",n.then(i=>(i instanceof k&&(i.localContexts=a),i)))}else n instanceof k?n.toStringToBuffer(e):typeof n=="number"||n.isEscaped?(e[0]+=n,n.callbacks&&(e.callbacks||=[],e.callbacks.push(...n.callbacks))):x(n,e)}},ze=class extends k{toStringToBuffer(e){fe(this.children,e)}},ke=!1,te=(e,t,r)=>{if(!ke){for(const n in ie)Q[n][ce]=ie[n];ke=!0}return typeof e=="function"?new ee(e,t,r):Q[e]?new ee(Q[e],t,r):e==="svg"||e==="head"?(_||=He(""),new k(e,t,[new ee(_,{value:e},r)])):new k(e,t,r)},Pt=({children:e})=>new ze("",{children:e},Array.isArray(e)?e:e?[e]:[]);function V(e,t,r){let n;if(!t||!("children"in t))n=te(e,t,[]);else{const a=t.children;n=Array.isArray(a)?te(e,t,a):te(e,t,[a])}return n.key=r,n}var q="_hp",It={Change:"Input",DoubleClick:"DblClick"},Tt={svg:"2000/svg",math:"1998/Math/MathML"},N=[],se=new WeakMap,M=void 0,Dt=()=>M,P=e=>"t"in e,re={onClick:["click",!1]},Ce=e=>{if(!e.startsWith("on"))return;if(re[e])return re[e];const t=e.match(/^on([A-Z][a-zA-Z]+?(?:PointerCapture)?)(Capture)?$/);if(t){const[,r,n]=t;return re[e]=[(It[r]||r).toLowerCase(),!!n]}},Pe=(e,t)=>M&&e instanceof SVGElement&&/[A-Z]/.test(t)&&(t in e.style||t.match(/^(?:o|pai|str|u|ve)/))?t.replace(/([A-Z])/g,"-$1").toLowerCase():t,Xe=e=>e==null||e===!1?null:e,xt=(e,t)=>{"value"in t&&(e.value=Xe(t.value),!e.multiple&&e.selectedIndex===-1&&(e.selectedIndex=0))},Ie=e=>e instanceof DOMException&&e.name==="InvalidCharacterError",Lt=(e,t,r)=>{t||={};for(let n in t){const a=t[n];if(n!=="children"&&(!r||r[n]!==a)){n=J(n);const i=Ce(n);if(i){if(r?.[n]!==a&&(r&&e.removeEventListener(i[0],r[n],i[1]),a!=null)){if(typeof a!="function")throw new Error(`Event handler for "${n}" is not a function`);e.addEventListener(i[0],a,i[1])}}else if(n==="dangerouslySetInnerHTML"&&a)e.innerHTML=a.__html;else if(n==="ref"){let o;typeof a=="function"?o=a(e)||(()=>a(null)):a&&"current"in a&&(a.current=e,o=()=>a.current=null),se.set(e,o)}else if(n==="style"){const o=e.style;typeof a=="string"?o.cssText=a:(o.cssText="",a!=null&&Ue(a,o.setProperty.bind(o)))}else{if(n==="value"){const l=e.nodeName;if(l==="SELECT")continue;if((l==="INPUT"||l==="TEXTAREA")&&(e.value=Xe(a),l==="TEXTAREA")){e.textContent=a;continue}}else(n==="checked"&&e.nodeName==="INPUT"||n==="selected"&&e.nodeName==="OPTION")&&(e[n]=a);const o=Pe(e,n);try{a==null||a===!1?e.removeAttribute(o):a===!0?e.setAttribute(o,""):typeof a=="string"||typeof a=="number"?e.setAttribute(o,a):e.setAttribute(o,a.toString())}catch(l){if(!Ie(l))throw l}}}}if(r)for(let n in r){const a=r[n];if(n!=="children"&&!(n in t)){n=J(n);const i=Ce(n);if(i)e.removeEventListener(i[0],a,i[1]);else if(n==="ref")se.get(e)?.();else try{e.removeAttribute(Pe(e,n))}catch(o){if(!Ie(o))throw o}}}},Nt=(e,t)=>{t[y][0]=0,N.push([e,t]);const r=t.tag[ce]||t.tag,n=r.defaultProps?{...r.defaultProps,...t.props}:t.props;try{return[r.call(null,n)]}finally{N.pop()}},Ze=(e,t,r,n,a)=>{e.vR?.length&&(n.push(...e.vR),delete e.vR),typeof e.tag=="function"&&e[y][1][de]?.forEach(i=>a.push(i)),e.vC.forEach(i=>{if(P(i))r.push(i);else if(typeof i.tag=="function"||i.tag===""){i.c=t;const o=r.length;if(Ze(i,t,r,n,a),i.s){for(let l=o;l<r.length;l++)r[l].s=!0;i.s=!1}}else r.push(i),i.vR?.length&&(n.push(...i.vR),delete i.vR)})},Mt=e=>{for(;e&&(e.tag===q||!e.e);)e=e.tag===q||!e.vC?.[0]?e.nN:e.vC[0];return e?.e},Je=e=>{P(e)||(e[y]?.[1][de]?.forEach(t=>t[2]?.()),se.get(e.e)?.(),e.p===2&&e.vC?.forEach(t=>t.p=2),e.vC?.forEach(Je)),e.p||(e.e?.remove(),delete e.e),typeof e.tag=="function"&&(B.delete(e),W.delete(e),delete e[y][3],e.a=!0)},ve=(e,t,r)=>{e.c=t,Ge(e,t,r)},Te=(e,t)=>{if(t){for(let r=0,n=e.length;r<n;r++)if(e[r]===t)return r}},De=Symbol(),Ge=(e,t,r)=>{const n=[],a=[],i=[];Ze(e,t,n,a,i),a.forEach(Je);const o=r?void 0:t.childNodes;let l,v=null;if(r)l=-1;else if(!o.length)l=0;else{const c=Te(o,Mt(e.nN));c!==void 0?(v=o[c],l=c):l=Te(o,n.find(s=>s.tag!==q&&s.e)?.e)??-1,l===-1&&(r=!0)}for(let c=0,s=n.length;c<s;c++,l++){const u=n[c];let f;if(u.s&&u.e)f=u.e,u.s=!1;else{const d=r||!u.e;P(u)?(u.e&&u.d&&(u.e.textContent=u.t),u.d=!1,f=u.e||=document.createTextNode(u.t)):(f=u.e||=u.n?document.createElementNS(u.n,u.tag):document.createElement(u.tag),Lt(f,u.props,u.pP),Ge(u,f,d),u.tag==="select"&&xt(f,u.props))}u.tag===q?l--:r?f.parentNode||t.appendChild(f):o[l]!==f&&o[l-1]!==f&&(o[l+1]===f?t.appendChild(o[l]):t.insertBefore(f,v||o[l]||null))}if(e.pP&&(e.pP=void 0),i.length){const c=[],s=[];i.forEach(([,u,,f,d])=>{u&&c.push(u),f&&s.push(f),d?.()}),c.forEach(u=>u()),s.length&&requestAnimationFrame(()=>{s.forEach(u=>u())})}},$t=(e,t)=>!!(e&&e.length===t.length&&e.every((r,n)=>r[1]===t[n][1])),W=new WeakMap,G=(e,t,r)=>{const n=!r&&t.pC;r&&(t.pC||=t.vC);let a;try{r||=typeof t.tag=="function"?Nt(e,t):F(t.props.children),r[0]?.tag===""&&r[0][ae]&&(a=r[0][ae],e[5].push([e,a,t]));const i=n?[...t.pC]:t.vC?[...t.vC]:void 0,o=[];let l;for(let v=0;v<r.length;v++){if(Array.isArray(r[v])){r.splice(v,1,...r[v].flat(1/0)),v--;continue}let c=Qe(r[v]);if(c){typeof c.tag=="function"&&!c.tag[_e]&&(L.length>0&&(c[y][2]=L.map(u=>[u,u.values.at(-1)])),e[5]?.length&&(c[y][3]=e[5].at(-1)));let s;if(i&&i.length){const u=i.findIndex(P(c)?f=>P(f):c.key!==void 0?f=>f.key===c.key&&f.tag===c.tag:f=>f.tag===c.tag);u!==-1&&(s=i[u],i.splice(u,1))}if(s)if(P(c))s.t!==c.t&&(s.t=c.t,s.d=!0),c=s;else{const u=s.pP=s.props;if(s.props=c.props,s.f||=c.f||t.f,typeof c.tag=="function"){const f=s[y][2];s[y][2]=c[y][2]||[],s[y][3]=c[y][3],!s.f&&((s.o||s)===c.o||s.tag[lt]?.(u,s.props))&&$t(f,s[y][2])&&(s.s=!0)}c=s}else if(!P(c)&&M){const u=$(M);u&&(c.n=u)}if(!P(c)&&!c.s&&(G(e,c),delete c.f),o.push(c),l&&!l.s&&!c.s)for(let u=l;u&&!P(u);u=u.vC?.at(-1))u.nN=c;l=c}}t.vR=n?[...t.vC,...i||[]]:i||[],t.vC=o,n&&delete t.pC}catch(i){if(t.f=!0,i===De){if(a)return;throw i}const[o,l,v]=t[y]?.[3]||[];if(l){const c=()=>U([0,!1,e[2]],v),s=W.get(v)||[];s.push(c),W.set(v,s);const u=l(i,()=>{const f=W.get(v);if(f){const d=f.indexOf(c);if(d!==-1)return f.splice(d,1),c()}});if(u){if(e[0]===1)e[1]=!0;else if(G(e,v,[u]),(l.length===1||e!==o)&&v.c){ve(v,v.c,!1);return}throw De}}throw i}finally{a&&e[5].pop()}},Qe=e=>{if(!(e==null||typeof e=="boolean")){if(typeof e=="string"||typeof e=="number")return{t:e.toString(),d:!0};if("vR"in e&&(e={tag:e.tag,props:e.props,key:e.key,f:e.f,type:e.tag,ref:e.props.ref,o:e.o||e}),typeof e.tag=="function")e[y]=[0,[]];else{const t=Tt[e.tag];t&&(M||=Fe(""),e.props.children=[{tag:M,props:{value:e.n=`http://www.w3.org/${t}`,children:e.props.children}}])}return e}},Ye=(e,t,r)=>{e.c===t&&(e.c=r,e.vC.forEach(n=>Ye(n,t,r)))},xe=(e,t)=>{t[y][2]?.forEach(([r,n])=>{r.values.push(n)});try{G(e,t,void 0)}catch{return}if(t.a){delete t.a;return}t[y][2]?.forEach(([r])=>{r.values.pop()}),(e[0]!==1||!e[1])&&ve(t,t.c,!1)},B=new WeakMap,Le=[],U=async(e,t)=>{e[5]||=[];const r=B.get(t);r&&r[0](void 0);let n;const a=new Promise(i=>n=i);if(B.set(t,[n,()=>{e[2]?e[2](e,t,i=>{xe(i,t)}).then(()=>n(t)):(xe(e,t),n(t))}]),Le.length)Le.at(-1).add(t);else{await Promise.resolve();const i=B.get(t);i&&(B.delete(t),i[1]())}return a},Ot=(e,t)=>{const r=[];r[5]=[],r[4]=!0,G(r,e,void 0),r[4]=!1;const n=document.createDocumentFragment();ve(e,n,!0),Ye(e,n,t),t.replaceChildren(n)},Rt=(e,t,r)=>({tag:q,props:{children:e},key:r,e:t,p:1}),Bt=0,de=1,_t=2,qt=3,ne=new WeakMap,he=(e,t)=>!e||!t||e.length!==t.length||t.some((r,n)=>r!==e[n]),Ft=void 0,Ne=[],et=e=>{const t=()=>typeof e=="function"?e():e,r=N.at(-1);if(!r)return[t(),()=>{}];const[,n]=r,a=n[y][1][Bt]||=[],i=n[y][0]++;return a[i]||=[t(),o=>{const l=Ft,v=a[i];if(typeof o=="function"&&(o=o(v[0])),!Object.is(o,v[0]))if(v[0]=o,Ne.length){const[c,s]=Ne.at(-1);Promise.all([c===3?n:U([c,!1,l],n),s]).then(([u])=>{if(!u||!(c===2||c===3))return;const f=u.vC;requestAnimationFrame(()=>{setTimeout(()=>{f===u.vC&&U([c===3?1:0,!1,l],u)})})})}else U([0,!1,l],n)}]},Ht=(e,t,r)=>{const n=N.at(-1);if(!n)return;const[,a]=n,i=a[y][1][de]||=[],o=a[y][0]++,[l,,v]=i[o]||=[];if(he(l,r)){v&&v();const c=()=>{s[e]=void 0,s[2]=t()},s=[r,void 0,void 0,void 0,void 0];s[e]=c,i[o]=s}},tt=(e,t)=>Ht(3,e,t),pe=(e,t)=>{const r=N.at(-1);if(!r)return e;const[,n]=r,a=n[y][1][_t]||=[],i=n[y][0]++,o=a[i];return he(o?.[1],t)?a[i]=[e,t]:e=a[i][0],e},jt=e=>{const t=ne.get(e);if(t){if(t.length===2)throw t[1];return t[0]}throw e.then(r=>ne.set(e,[r]),r=>ne.set(e,[void 0,r])),e},Kt=(e,t)=>{const r=N.at(-1);if(!r)return e();const[,n]=r,a=n[y][1][qt]||=[],i=n[y][0]++,o=a[i];return he(o?.[1],t)&&(a[i]=[e(),t]),a[i][0]},Vt=Fe({pending:!1,data:null,method:null,action:null}),Me=new Set,Wt=e=>{Me.add(e),e.finally(()=>Me.delete(e))},me=(e,t)=>Kt(()=>r=>{let n;e&&(typeof e=="function"?n=e(r)||(()=>{e(null)}):e&&"current"in e&&(e.current=r,n=()=>{e.current=null}));const a=t(r);return()=>{a?.(),n?.()}},[e]),$e=Object.create(null),Oe=Object.create(null),K=(e,t,r,n,a)=>{if(t?.itemProp)return{tag:e,props:t,type:e,ref:t.ref};const i=document.head;let{onLoad:o,onError:l,precedence:v,blocking:c,...s}=t,u=null,f=!1;const d=Z[e],h=Ke(e,n),E=g=>g.getAttribute("rel")==="stylesheet"&&g.getAttribute(D)!==null;let p;if(h){const g=i.querySelectorAll(e);e:for(const b of g)if(!(e==="link"&&!E(b))){for(const m of d)if(b.getAttribute(m)===t[m]){u=b;break e}}if(!u){const b=d.reduce((m,w)=>t[w]===void 0?m:`${m}-${w}-${t[w]}`,e);f=!Oe[b],u=Oe[b]||=(()=>{const m=document.createElement(e);for(const w of d)t[w]!==void 0&&m.setAttribute(w,t[w]);return t.rel&&m.setAttribute("rel",t.rel),m})()}}else p=i.querySelectorAll(e);v=n?v??"":void 0,n&&(s[D]=v);const A=pe(g=>{if(h){if(e==="link"&&v!==void 0){let m=!1;for(const w of i.querySelectorAll(e)){const T=w.getAttribute(D);if(T===null){i.insertBefore(g,w);return}if(m&&T!==v){i.insertBefore(g,w);return}T===v&&(m=!0)}i.appendChild(g);return}let b=!1;for(const m of i.querySelectorAll(e)){if(b&&m.getAttribute(D)!==v){i.insertBefore(g,m);return}m.getAttribute(D)===v&&(b=!0)}i.appendChild(g)}else if(e==="link")i.contains(g)||i.appendChild(g);else if(p){let b=!1;for(const m of p)if(m===g){b=!0;break}b||i.insertBefore(g,i.contains(p[0])?p[0]:i.querySelector(e)),p=void 0}},[h,v,e]),C=me(t.ref,g=>{const b=d[0];if(r===2&&(g.innerHTML=""),(f||p)&&A(g),!l&&!o||!b)return;let m=$e[g.getAttribute(b)]||=new Promise((w,T)=>{g.addEventListener("load",w),g.addEventListener("error",T)});o&&(m=m.then(o)),l&&(m=m.catch(l)),m.catch(()=>{})});if(a&&c==="render"){const g=Z[e][0];if(g&&t[g]){const b=t[g],m=$e[b]||=new Promise((w,T)=>{A(u),u.addEventListener("load",w),u.addEventListener("error",T)});jt(m)}}const S={tag:e,type:e,props:{...s,ref:C},ref:C};return S.p=r,u&&(S.e=u),Rt(S,i)},Ut=e=>{const t=Dt();return(t&&$(t))?.endsWith("svg")?{tag:"title",props:e,type:"title",ref:e.ref}:K("title",e,void 0,!1,!1)},zt=e=>!e||["src","async"].some(t=>!e[t])?{tag:"script",props:e,type:"script",ref:e.ref}:K("script",e,1,!1,!0),Xt=e=>!e||!["href","precedence"].every(t=>t in e)?{tag:"style",props:e,type:"style",ref:e.ref}:(e["data-href"]=e.href,delete e.href,K("style",e,2,!0,!0)),Zt=e=>!e||["onLoad","onError"].some(t=>t in e)||e.rel==="stylesheet"&&(!("precedence"in e)||"disabled"in e)?{tag:"link",props:e,type:"link",ref:e.ref}:K("link",e,1,je(e),!0),Jt=e=>K("meta",e,void 0,!1,!1),rt=Symbol(),Gt=e=>{const{action:t,...r}=e;typeof t!="function"&&(r.action=t);const[n,a]=et([null,!1]),i=pe(async c=>{const s=c.isTrusted?t:c.detail[rt];if(typeof s!="function")return;c.preventDefault();const u=new FormData(c.target);a([u,!0]);const f=s(u);f instanceof Promise&&(Wt(f),await f),a([null,!0])},[]),o=me(e.ref,c=>(c.addEventListener("submit",i),()=>{c.removeEventListener("submit",i)})),[l,v]=n;return n[1]=!1,{tag:Vt,props:{value:{pending:l!==null,data:l,method:l?"post":null,action:l?t:null},children:{tag:"form",props:{...r,ref:o},type:"form",ref:o}},f:v}},nt=(e,{formAction:t,...r})=>{if(typeof t=="function"){const n=pe(a=>{a.preventDefault(),a.currentTarget.form.dispatchEvent(new CustomEvent("submit",{detail:{[rt]:t}}))},[]);r.ref=me(r.ref,a=>(a.addEventListener("click",n),()=>{a.removeEventListener("click",n)}))}return{tag:e,props:r,type:e,ref:r.ref}},Qt=e=>nt("input",e),Yt=e=>nt("button",e);Object.assign(ie,{title:Ut,script:zt,style:Xt,link:Zt,meta:Jt,form:Gt,input:Qt,button:Yt});He(null);new TextEncoder;var er=(e,t={})=>{let r;return Object.keys(t).length>0&&console.warn("createRoot options are not supported yet"),{render(n){if(r===null)throw new Error("Cannot update an unmounted root");r?r(n):Ot(Qe({tag:()=>{const[a,i]=et(n);return r=i,a},props:{}}),e)},unmount(){r?.(null),r=null}}},tr=(e,t,r={})=>{const n=er(e,r);return n.render(t),n};function rr(){return tt(()=>{const e=document.querySelectorAll("form"),t=[];return e.forEach(r=>{const n=i=>{if(i.defaultPrevented)return;const o=i.submitter;o&&o.type==="submit"&&(o.classList.add("is-loading"),o.disabled=!0)};r.addEventListener("submit",n);const a=i=>{i.persisted&&r.querySelectorAll("button[type=submit]").forEach(l=>{l.classList.remove("is-loading"),l.disabled=!1})};window.addEventListener("pageshow",a),t.push(()=>{r.removeEventListener("submit",n),window.removeEventListener("pageshow",a)})}),()=>{t.forEach(r=>r())}},[]),null}function nr(){return tt(()=>{const e=document.querySelectorAll("[data-password-toggle]"),t=[];return e.forEach(r=>{const n=r.querySelector("input[type='password'], input[data-password-input]"),a=r.querySelector("[data-password-toggle-btn]"),i=a?.querySelector("[data-show-icon]"),o=a?.querySelector("[data-hide-icon]");if(!n||!a||!i||!o)return;const l=c=>{c?(n.type="text",n.setAttribute("data-password-input","text"),i.classList.add("hidden"),o.classList.remove("hidden")):(n.type="password",n.setAttribute("data-password-input","password"),o.classList.add("hidden"),i.classList.remove("hidden"))},v=c=>{c.preventDefault();const s=n.type==="password";l(s)};a.addEventListener("click",v),t.push(()=>{a.removeEventListener("click",v)})}),()=>{t.forEach(r=>r())}},[]),null}function ar(){return document.querySelectorAll("[data-input-otp-container]").forEach(t=>{const r=Array.from(t.querySelectorAll("[data-input-otp-slot]"));if(!r.length)return;const n=t.closest("form");let a=null;if(n&&r.length>0){const l=r[0]?.getAttribute("name");l&&(a=n.querySelector(`input[name="${l}"][type="hidden"]`),a||(a=document.createElement("input"),a.type="hidden",a.name=l,n.appendChild(a)),r.forEach(v=>v.removeAttribute("name")))}const i=()=>{if(a){const o=r.map(l=>l.value).join("");a.value=o,o.length===r.length&&n&&setTimeout(()=>{n.requestSubmit()},100)}};r.forEach((o,l)=>{o.addEventListener("input",v=>{const c=v.target;let s=c.value;s=s.replace(/[^0-9]/g,""),s.length>1&&(s=s.charAt(0)),c.value=s,s&&l<r.length-1&&r[l+1]?.focus(),i()}),o.addEventListener("paste",v=>{v.preventDefault();const s=(v.clipboardData?.getData("text")||"").replace(/[^0-9]/g,"");for(let f=0;f<Math.min(s.length,r.length-l);f++){const d=r[l+f],h=s.charAt(f);d&&h&&(d.value=h)}const u=r.findIndex((f,d)=>d>=l&&!f.value);u!==-1?r[u]?.focus():r[Math.min(l+s.length,r.length-1)]?.focus(),i()}),o.addEventListener("keydown",v=>{if(v.key==="Backspace"){const c=v.target;if(!c.value&&l>0){v.preventDefault();const s=r[l-1];s&&(s.value="",s.focus()),i()}else c.value&&setTimeout(()=>i(),0)}else v.key==="ArrowLeft"&&l>0?(v.preventDefault(),r[l-1]?.focus()):v.key==="ArrowRight"&&l<r.length-1&&(v.preventDefault(),r[l+1]?.focus())}),o.addEventListener("focus",()=>{o.select()})}),i()}),null}var le={d:(e,t)=>{for(var r in t)le.o(t,r)&&!le.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},ge={};le.d(ge,{A:()=>ir,k:()=>ye});var O=function(e,t,r,n){return new(r||(r=Promise))(function(a,i){function o(c){try{v(n.next(c))}catch(s){i(s)}}function l(c){try{v(n.throw(c))}catch(s){i(s)}}function v(c){var s;c.done?a(c.value):(s=c.value,s instanceof r?s:new r(function(u){u(s)})).then(o,l)}v((n=n.apply(e,[])).next())})},R=function(e,t){var r,n,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function l(v){return function(c){return(function(s){if(r)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(a=2&s[0]?n.return:s[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,s[1])).done)return a;switch(n=0,a&&(s=[2&s[0],a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!((a=a.length>0&&a[a.length-1])||s[0]!==6&&s[0]!==2)){o=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(s[0]===6&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(u){s=[6,u],n=0}finally{r=a=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}})([v,c])}}};function ye(){return O(this,void 0,Promise,function(){return R(this,function(e){switch(e.label){case 0:return[4,new Promise(function(t,r){var n="Unknown",a=!1;function i(f){a||(a=!0,t({isPrivate:f,browserName:n}))}function o(){var f=0,d=parseInt("-1");try{d.toFixed(d)}catch(h){f=h.message.length}return f}function l(){return O(this,void 0,void 0,function(){var f,d;return R(this,function(h){switch(h.label){case 0:return h.trys.push([0,2,,3]),[4,navigator.storage.getDirectory()];case 1:return h.sent(),i(!1),[3,3];case 2:return f=h.sent(),d=f instanceof Error&&typeof f.message=="string"?f.message:String(f),i(d.includes("unknown transient reason")),[3,3];case 3:return[2]}})})}function v(){var f;return O(this,void 0,Promise,function(){return R(this,function(d){switch(d.label){case 0:return typeof((f=navigator.storage)===null||f===void 0?void 0:f.getDirectory)!="function"?[3,2]:[4,l()];case 1:return d.sent(),[3,3];case 2:navigator.maxTouchPoints!==void 0?(function(){var h=String(Math.random());try{var E=indexedDB.open(h,1);E.onupgradeneeded=function(p){var A=p.target.result,C=function(S){i(S)};try{A.createObjectStore("t",{autoIncrement:!0}).put(new Blob),C(!1)}catch(S){(S instanceof Error&&typeof S.message=="string"?S.message:String(S)).includes("are not yet supported")?C(!0):C(!1)}finally{A.close(),indexedDB.deleteDatabase(h)}},E.onerror=function(){return i(!1)}}catch{i(!1)}})():(function(){var h=window.openDatabase,E=window.localStorage;try{h(null,null,null,null)}catch{return void i(!0)}try{E.setItem("test","1"),E.removeItem("test")}catch{return void i(!0)}i(!1)})(),d.label=3;case 3:return[2]}})})}function c(){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(f,d){var h=Math.round(d/1048576),E=2*Math.round((function(){var p,A,C,S=window;return(C=(A=(p=S?.performance)===null||p===void 0?void 0:p.memory)===null||A===void 0?void 0:A.jsHeapSizeLimit)!==null&&C!==void 0?C:1073741824})()/1048576);i(h<E)},function(f){r(new Error("detectIncognito somehow failed to query storage quota: "+f.message))})}function s(){self.Promise!==void 0&&self.Promise.allSettled!==void 0?c():(0,window.webkitRequestFileSystem)(0,1,function(){i(!1)},function(){i(!0)})}function u(){var f;return O(this,void 0,Promise,function(){var d,h,E;return R(this,function(p){switch(p.label){case 0:if(typeof((f=navigator.storage)===null||f===void 0?void 0:f.getDirectory)!="function")return[3,5];p.label=1;case 1:return p.trys.push([1,3,,4]),[4,navigator.storage.getDirectory()];case 2:return p.sent(),i(!1),[3,4];case 3:return d=p.sent(),h=d instanceof Error&&typeof d.message=="string"?d.message:String(d),i(h.includes("Security error")),[2];case 4:return[3,6];case 5:(E=indexedDB.open("inPrivate")).onerror=function(A){E.error&&E.error.name==="InvalidStateError"&&A.preventDefault(),i(!0)},E.onsuccess=function(){indexedDB.deleteDatabase("inPrivate"),i(!1)},p.label=6;case 6:return[2]}})})}(function(){return O(this,void 0,Promise,function(){return R(this,function(f){switch(f.label){case 0:return o()!==44&&o()!==43?[3,2]:(n="Safari",[4,v()]);case 1:return f.sent(),[3,6];case 2:return o()!==51?[3,3]:(d=navigator.userAgent,n=d.match(/Chrome/)?navigator.brave!==void 0?"Brave":d.match(/Edg/)?"Edge":d.match(/OPR/)?"Opera":"Chrome":"Chromium",s(),[3,6]);case 3:return o()!==25?[3,5]:(n="Firefox",[4,u()]);case 4:return f.sent(),[3,6];case 5:navigator.msSaveBlob!==void 0?(n="Internet Explorer",i(window.indexedDB===void 0)):r(new Error("detectIncognito cannot determine the browser")),f.label=6;case 6:return[2]}var d})})})().catch(r)})];case 1:return[2,e.sent()]}})})}typeof window<"u"&&(window.detectIncognito=ye);const ir=ye;ge.A;const or=ge.k,z="authhero_incognito_mode";function sr(){try{const e=sessionStorage.getItem(z);return e===null?void 0:e==="true"}catch{return}}async function lr(){try{const e=sessionStorage.getItem(z);if(e!==null)return e==="true";const{isPrivate:t}=await or();return sessionStorage.setItem(z,t.toString()),t}catch{try{sessionStorage.setItem(z,"false")}catch{}return!1}}const cr=()=>{const e=sr();if(e!==void 0){e&&Re();return}lr().then(t=>{t&&Re()}).catch(()=>{})};function Re(){const e=document.getElementById("incognito-warning-container");e&&e.classList.remove("hidden")}cr();const Be=document.getElementById("client-root");Be&&tr(Be,V(Pt,{children:[V(rr,{}),V(nr,{}),V(ar,{})]}));
|