authhero 4.109.0 → 4.110.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.
@@ -1 +1 @@
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="&quot;";break;case 39:n="&#39;";break;case 38:n="&amp;";break;case 60:n="&lt;";break;case 62:n="&gt;";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,{})]}));
1
+ var ot={Stringify:1},I=(e,t)=>{const r=new String(e);return r.isEscaped=!0,r.callbacks=t,r},st=/[&<>'"]/,lt=async(e,t)=>{let r="";t||=[];const n=await Promise.all(e);for(let i=n.length-1;r+=n[i],i--,!(i<0);i--){let a=n[i];typeof a=="object"&&t.push(...a.callbacks||[]);const o=a.isEscaped;if(a=await(typeof a=="object"?a.toString():a),typeof a=="object"&&t.push(...a.callbacks||[]),a.isEscaped??o)r+=a;else{const l=[r];N(a,l),r=l[0]}}return I(r,t)},N=(e,t)=>{const r=e.search(st);if(r===-1){t[0]+=e;return}let n,i,a=0;for(i=r;i<e.length;i++){switch(e.charCodeAt(i)){case 34:n="&quot;";break;case 39:n="&#39;";break;case 38:n="&amp;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;default:continue}t[0]+=e.substring(a,i)+n,a=i+1}t[0]+=e.substring(a,i)},ct=e=>{const t=e.callbacks;if(!t?.length)return e;const r=[e],n={};return t.forEach(i=>i({phase:ot.Stringify,buffer:r,context:n})),r[0]},ue=Symbol("RENDERER"),oe=Symbol("ERROR_HANDLER"),y=Symbol("STASH"),Fe=Symbol("INTERNAL"),ut=Symbol("MEMO"),Z=Symbol("PERMALINK"),be=e=>(e[Fe]=!0,e),He=e=>({value:t,children:r})=>{if(!r)return;const n={children:[{tag:be(()=>{e.push(t)}),props:{}}]};Array.isArray(r)?n.children.push(...r.flat()):n.children.push(r),n.children.push({tag:be(()=>{e.pop()}),props:{}});const i={tag:"",props:n,type:""};return i[oe]=a=>{throw e.pop(),a},i},je=e=>{const t=[e],r=He(t);return r.values=t,r.Provider=r,D.push(r),r},D=[],Ve=e=>{const t=[e],r=(n=>{t.push(n.value);let i;try{i=n.children?(Array.isArray(n.children)?new Ze("",{},n.children):n.children).toString():""}catch(a){throw t.pop(),a}return i instanceof Promise?i.finally(()=>t.pop()).then(a=>I(a,a.callbacks)):(t.pop(),I(i))});return r.values=t,r.Provider=r,r[ue]=He(t),D.push(r),r},R=e=>e.values.at(-1),J={title:[],script:["src"],style:["data-href"],link:["href"],meta:["name","httpEquiv","charset","itemProp"]},se={},x="data-precedence",Ke=e=>e.rel==="stylesheet"&&"precedence"in e,Ue=(e,t)=>e==="link"?t:J[e].length>0,H=e=>Array.isArray(e)?e:[e],we=new WeakMap,Se=(e,t,r,n)=>({buffer:i,context:a})=>{if(!i)return;const o=we.get(a)||{};we.set(a,o);const l=o[e]||=[];let v=!1;const c=J[e],s=Ue(e,n!==void 0);if(s){e:for(const[,u]of l)if(!(e==="link"&&!(u.rel==="stylesheet"&&u[x]!==void 0))){for(const f of c)if((u?.[f]??null)===r?.[f]){v=!0;break e}}}if(v?i[0]=i[0].replaceAll(t,""):s||e==="link"?l.push([t,r,n]):l.unshift([t,r,n]),i[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=>{i[0]=i[0].replaceAll(f,"")}),i[0]=i[0].replace(/(?=<\/head>)/,u.join(""))}},j=(e,t,r)=>I(new C(e,r,H(t??[])).toString()),V=(e,t,r,n)=>{if("itemProp"in r)return j(e,t,r);let{precedence:i,blocking:a,...o}=r;i=n?i??"":void 0,n&&(o[x]=i);const l=new C(e,o,H(t||[])).toString();return l instanceof Promise?l.then(v=>I(l,[...v.callbacks||[],Se(e,v,o,i)])):I(l,[Se(e,l,o,i)])},ft=({children:e,...t})=>{const r=fe();if(r){const n=R(r);if(n==="svg"||n==="head")return new C("title",t,H(e??[]))}return V("title",e,t,!1)},vt=({children:e,...t})=>{const r=fe();return["src","async"].some(n=>!t[n])||r&&R(r)==="head"?j("script",e,t):V("script",e,t,!1)},dt=({children:e,...t})=>["href","precedence"].every(r=>r in t)?(t["data-href"]=t.href,delete t.href,V("style",e,t,!0)):j("style",e,t),ht=({children:e,...t})=>["onLoad","onError"].some(r=>r in t)||t.rel==="stylesheet"&&(!("precedence"in t)||"disabled"in t)?j("link",e,t):V("link",e,t,Ke(t)),pt=({children:e,...t})=>{const r=fe();return r&&R(r)==="head"?j("meta",e,t):V("meta",e,t,!1)},We=(e,{children:t,...r})=>new C(e,r,H(t??[])),gt=e=>(typeof e.action=="function"&&(e.action=Z in e.action?e.action[Z]:void 0),We("form",e)),ze=(e,t)=>(typeof t.formAction=="function"&&(t.formAction=Z in t.formAction?t.formAction[Z]:void 0),We(e,t)),mt=e=>ze("input",e),yt=e=>ze("button",e);const Y=Object.freeze(Object.defineProperty({__proto__:null,button:yt,form:gt,input:mt,link:ht,meta:pt,script:vt,style:dt,title:ft},Symbol.toStringTag,{value:"Module"}));var Et=new Map([["className","class"],["htmlFor","for"],["crossOrigin","crossorigin"],["httpEquiv","http-equiv"],["itemProp","itemprop"],["fetchPriority","fetchpriority"],["noModule","nomodule"],["formAction","formaction"]]),G=e=>Et.get(e)||e,bt=/[\s"'<>/=`\\\x00-\x1f\x7f-\x9f]/,ee=new Set,Ae=1024,wt=/^[!?]|[\s"'<>/=`\\\x00-\x1f\x7f-\x9f]/,Ce=new Set,St=256,_=(e,t,r)=>{e.size>=t&&e.clear(),e.add(r)},At=e=>Ce.has(e)?!0:typeof e!="string"?!1:e.length===0?!0:wt.test(e)?!1:(_(Ce,St,e),!0),Ct=e=>{if(ee.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 bt.test(e)?!1:(_(ee,Ae,e),!0)}return _(ee,Ae,e),!0},kt=/[\s"'():;\\/\[\]{}\x00-\x1f\x7f-\x9f]/,te=new Set,ke=1024,Pt=e=>{if(te.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))return kt.test(e)?!1:(_(te,ke,e),!0)}return _(te,ke,e),!0},It=/[;"'\\/\[\](){}]/,Tt=e=>{if(!It.test(e))return!1;let t=0;const r=[];for(let n=0,i=e.length;n<i;n++){const a=e.charCodeAt(n);if(a===92){if(n===i-1)return!0;n++}else if(t!==0){if(a===10||a===12||a===13)return!0;a===t&&(t=0)}else if(a===47&&e.charCodeAt(n+1)===42){const o=e.indexOf("*/",n+2);if(o===-1)return!0;n=o+1}else if(a===34||a===39)t=a;else if(a===40)r.push(41);else if(a===91)r.push(93);else{if(a===123||a===125)return!0;if(a===41||a===93){if(r[r.length-1]!==a)return!0;r.pop()}else if(a===59&&r.length===0)return!0}}return t!==0||r.length!==0},Xe=(e,t)=>{for(const[r,n]of Object.entries(e)){const i=r[0]==="-"||!/[A-Z]/.test(r)?r:r.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);if(!Pt(i))continue;if(n==null){t(i,null);continue}let a;if(typeof n=="number")a=i.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`;else if(typeof n=="string"){if(Tt(n))continue;a=n}else continue;t(i,a)}},q=void 0,fe=()=>q,xt=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,Nt=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Dt=["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"],ve=(e,t)=>{for(let r=0,n=e.length;r<n;r++){const i=e[r];if(typeof i=="string")N(i,t);else{if(typeof i=="boolean"||i===null||i===void 0)continue;i instanceof C?i.toStringToBuffer(t):typeof i=="number"||i.isEscaped?t[0]+=i:i instanceof Promise?t.unshift("",i):ve(i,t)}}},C=class{tag;props;key;children;isEscaped=!0;localContexts;constructor(e,t,r){if(typeof e!="function"&&!At(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?ct(I(e[0],e.callbacks)).toString():e[0]:lt(e,e.callbacks)}toStringToBuffer(e){const t=this.tag,r=this.props;let{children:n}=this;e[0]+=`<${t}`;const i=t==="svg"||q&&R(q)==="svg"?a=>xt(G(a)):a=>G(a);for(let[a,o]of Object.entries(r))if(a=i(a),!!Ct(a)&&a!=="children"){if(a==="style"&&typeof o=="object"){let l="";Xe(o,(v,c)=>{c!=null&&(l+=`${l?";":""}${v}:${c}`)}),e[0]+=' style="',N(l,e),e[0]+='"'}else if(typeof o=="string")e[0]+=` ${a}="`,N(o,e),e[0]+='"';else if(o!=null)if(typeof o=="number"||o.isEscaped)e[0]+=` ${a}="${o}"`;else if(typeof o=="boolean"&&Dt.includes(a))o&&(e[0]+=` ${a}=""`);else if(a==="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]+=` ${a}="`,e.unshift('"',o);else if(typeof o=="function"){if(!a.startsWith("on")&&a!=="ref")throw new Error(`Invalid prop '${a}' of type 'function' supplied to '${t}'.`)}else e[0]+=` ${a}="`,N(o.toString(),e),e[0]+='"'}if(Nt.includes(t)&&n.length===0){e[0]+="/>";return}e[0]+=">",ve(n,e),e[0]+=`</${t}>`}},re=class extends C{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(D.length===0)e.unshift("",n);else{const i=D.map(a=>[a,a.values.at(-1)]);e.unshift("",n.then(a=>(a instanceof C&&(a.localContexts=i),a)))}else n instanceof C?n.toStringToBuffer(e):typeof n=="number"||n.isEscaped?(e[0]+=n,n.callbacks&&(e.callbacks||=[],e.callbacks.push(...n.callbacks))):N(n,e)}},Ze=class extends C{toStringToBuffer(e){ve(this.children,e)}},Pe=!1,ne=(e,t,r)=>{if(!Pe){for(const n in se)Y[n][ue]=se[n];Pe=!0}return typeof e=="function"?new re(e,t,r):Y[e]?new re(Y[e],t,r):e==="svg"||e==="head"?(q||=Ve(""),new C(e,t,[new re(q,{value:e},r)])):new C(e,t,r)},Lt=({children:e})=>new Ze("",{children:e},Array.isArray(e)?e:e?[e]:[]);function U(e,t,r){let n;if(!t||!("children"in t))n=ne(e,t,[]);else{const i=t.children;n=Array.isArray(i)?ne(e,t,i):ne(e,t,[i])}return n.key=r,n}var F="_hp",Mt={Change:"Input",DoubleClick:"DblClick"},Rt={svg:"2000/svg",math:"1998/Math/MathML"},L=[],le=new WeakMap,M=void 0,Ot=()=>M,P=e=>"t"in e,ae={onClick:["click",!1]},Ie=e=>{if(!e.startsWith("on"))return;if(ae[e])return ae[e];const t=e.match(/^on([A-Z][a-zA-Z]+?(?:PointerCapture)?)(Capture)?$/);if(t){const[,r,n]=t;return ae[e]=[(Mt[r]||r).toLowerCase(),!!n]}},Te=(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,Je=e=>e==null||e===!1?null:e,$t=(e,t)=>{"value"in t&&(e.value=Je(t.value),!e.multiple&&e.selectedIndex===-1&&(e.selectedIndex=0))},xe=e=>e instanceof DOMException&&e.name==="InvalidCharacterError",Bt=(e,t,r)=>{t||={};for(let n in t){const i=t[n];if(n!=="children"&&(!r||r[n]!==i)){n=G(n);const a=Ie(n);if(a){if(r?.[n]!==i&&(r&&e.removeEventListener(a[0],r[n],a[1]),i!=null)){if(typeof i!="function")throw new Error(`Event handler for "${n}" is not a function`);e.addEventListener(a[0],i,a[1])}}else if(n==="dangerouslySetInnerHTML"&&i)e.innerHTML=i.__html;else if(n==="ref"){let o;typeof i=="function"?o=i(e)||(()=>i(null)):i&&"current"in i&&(i.current=e,o=()=>i.current=null),le.set(e,o)}else if(n==="style"){const o=e.style;typeof i=="string"?o.cssText=i:(o.cssText="",i!=null&&Xe(i,o.setProperty.bind(o)))}else{if(n==="value"){const l=e.nodeName;if(l==="SELECT")continue;if((l==="INPUT"||l==="TEXTAREA")&&(e.value=Je(i),l==="TEXTAREA")){e.textContent=i;continue}}else(n==="checked"&&e.nodeName==="INPUT"||n==="selected"&&e.nodeName==="OPTION")&&(e[n]=i);const o=Te(e,n);try{i==null||i===!1?e.removeAttribute(o):i===!0?e.setAttribute(o,""):typeof i=="string"||typeof i=="number"?e.setAttribute(o,i):e.setAttribute(o,i.toString())}catch(l){if(!xe(l))throw l}}}}if(r)for(let n in r){const i=r[n];if(n!=="children"&&!(n in t)){n=G(n);const a=Ie(n);if(a)e.removeEventListener(a[0],i,a[1]);else if(n==="ref")le.get(e)?.();else try{e.removeAttribute(Te(e,n))}catch(o){if(!xe(o))throw o}}}},_t=(e,t)=>{t[y][0]=0,L.push([e,t]);const r=t.tag[ue]||t.tag,n=r.defaultProps?{...r.defaultProps,...t.props}:t.props;try{return[r.call(null,n)]}finally{L.pop()}},Ge=(e,t,r,n,i)=>{e.vR?.length&&(n.push(...e.vR),delete e.vR),typeof e.tag=="function"&&e[y][1][he]?.forEach(a=>i.push(a)),e.vC.forEach(a=>{if(P(a))r.push(a);else if(typeof a.tag=="function"||a.tag===""){a.c=t;const o=r.length;if(Ge(a,t,r,n,i),a.s){for(let l=o;l<r.length;l++)r[l].s=!0;a.s=!1}}else r.push(a),a.vR?.length&&(n.push(...a.vR),delete a.vR)})},qt=e=>{for(;e&&(e.tag===F||!e.e);)e=e.tag===F||!e.vC?.[0]?e.nN:e.vC[0];return e?.e},Qe=e=>{P(e)||(e[y]?.[1][he]?.forEach(t=>t[2]?.()),le.get(e.e)?.(),e.p===2&&e.vC?.forEach(t=>t.p=2),e.vC?.forEach(Qe)),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)},de=(e,t,r)=>{e.c=t,Ye(e,t,r)},Ne=(e,t)=>{if(t){for(let r=0,n=e.length;r<n;r++)if(e[r]===t)return r}},De=Symbol(),Ye=(e,t,r)=>{const n=[],i=[],a=[];Ge(e,t,n,i,a),i.forEach(Qe);const o=r?void 0:t.childNodes;let l,v=null;if(r)l=-1;else if(!o.length)l=0;else{const c=Ne(o,qt(e.nN));c!==void 0?(v=o[c],l=c):l=Ne(o,n.find(s=>s.tag!==F&&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),Bt(f,u.props,u.pP),Ye(u,f,d),u.tag==="select"&&$t(f,u.props))}u.tag===F?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),a.length){const c=[],s=[];a.forEach(([,u,,f,d])=>{u&&c.push(u),f&&s.push(f),d?.()}),c.forEach(u=>u()),s.length&&requestAnimationFrame(()=>{s.forEach(u=>u())})}},Ft=(e,t)=>!!(e&&e.length===t.length&&e.every((r,n)=>r[1]===t[n][1])),W=new WeakMap,Q=(e,t,r)=>{const n=!r&&t.pC;r&&(t.pC||=t.vC);let i;try{r||=typeof t.tag=="function"?_t(e,t):H(t.props.children),r[0]?.tag===""&&r[0][oe]&&(i=r[0][oe],e[5].push([e,i,t]));const a=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=et(r[v]);if(c){typeof c.tag=="function"&&!c.tag[Fe]&&(D.length>0&&(c[y][2]=D.map(u=>[u,u.values.at(-1)])),e[5]?.length&&(c[y][3]=e[5].at(-1)));let s;if(a&&a.length){const u=a.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=a[u],a.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[ut]?.(u,s.props))&&Ft(f,s[y][2])&&(s.s=!0)}c=s}else if(!P(c)&&M){const u=R(M);u&&(c.n=u)}if(!P(c)&&!c.s&&(Q(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,...a||[]]:a||[],t.vC=o,n&&delete t.pC}catch(a){if(t.f=!0,a===De){if(i)return;throw a}const[o,l,v]=t[y]?.[3]||[];if(l){const c=()=>z([0,!1,e[2]],v),s=W.get(v)||[];s.push(c),W.set(v,s);const u=l(a,()=>{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(Q(e,v,[u]),(l.length===1||e!==o)&&v.c){de(v,v.c,!1);return}throw De}}throw a}finally{i&&e[5].pop()}},et=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=Rt[e.tag];t&&(M||=je(""),e.props.children=[{tag:M,props:{value:e.n=`http://www.w3.org/${t}`,children:e.props.children}}])}return e}},tt=(e,t,r)=>{e.c===t&&(e.c=r,e.vC.forEach(n=>tt(n,t,r)))},Le=(e,t)=>{t[y][2]?.forEach(([r,n])=>{r.values.push(n)});try{Q(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])&&de(t,t.c,!1)},B=new WeakMap,Me=[],z=async(e,t)=>{e[5]||=[];const r=B.get(t);r&&r[0](void 0);let n;const i=new Promise(a=>n=a);if(B.set(t,[n,()=>{e[2]?e[2](e,t,a=>{Le(a,t)}).then(()=>n(t)):(Le(e,t),n(t))}]),Me.length)Me.at(-1).add(t);else{await Promise.resolve();const a=B.get(t);a&&(B.delete(t),a[1]())}return i},Ht=(e,t)=>{const r=[];r[5]=[],r[4]=!0,Q(r,e,void 0),r[4]=!1;const n=document.createDocumentFragment();de(e,n,!0),tt(e,n,t),t.replaceChildren(n)},jt=(e,t,r)=>({tag:F,props:{children:e},key:r,e:t,p:1}),Vt=0,he=1,Kt=2,Ut=3,ie=new WeakMap,pe=(e,t)=>!e||!t||e.length!==t.length||t.some((r,n)=>r!==e[n]),Wt=void 0,Re=[],rt=e=>{const t=()=>typeof e=="function"?e():e,r=L.at(-1);if(!r)return[t(),()=>{}];const[,n]=r,i=n[y][1][Vt]||=[],a=n[y][0]++;return i[a]||=[t(),o=>{const l=Wt,v=i[a];if(typeof o=="function"&&(o=o(v[0])),!Object.is(o,v[0]))if(v[0]=o,Re.length){const[c,s]=Re.at(-1);Promise.all([c===3?n:z([c,!1,l],n),s]).then(([u])=>{if(!u||!(c===2||c===3))return;const f=u.vC;requestAnimationFrame(()=>{setTimeout(()=>{f===u.vC&&z([c===3?1:0,!1,l],u)})})})}else z([0,!1,l],n)}]},zt=(e,t,r)=>{const n=L.at(-1);if(!n)return;const[,i]=n,a=i[y][1][he]||=[],o=i[y][0]++,[l,,v]=a[o]||=[];if(pe(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,a[o]=s}},nt=(e,t)=>zt(3,e,t),ge=(e,t)=>{const r=L.at(-1);if(!r)return e;const[,n]=r,i=n[y][1][Kt]||=[],a=n[y][0]++,o=i[a];return pe(o?.[1],t)?i[a]=[e,t]:e=i[a][0],e},Xt=e=>{const t=ie.get(e);if(t){if(t.length===2)throw t[1];return t[0]}throw e.then(r=>ie.set(e,[r]),r=>ie.set(e,[void 0,r])),e},Zt=(e,t)=>{const r=L.at(-1);if(!r)return e();const[,n]=r,i=n[y][1][Ut]||=[],a=n[y][0]++,o=i[a];return pe(o?.[1],t)&&(i[a]=[e(),t]),i[a][0]},Jt=je({pending:!1,data:null,method:null,action:null}),Oe=new Set,Gt=e=>{Oe.add(e),e.finally(()=>Oe.delete(e))},me=(e,t)=>Zt(()=>r=>{let n;e&&(typeof e=="function"?n=e(r)||(()=>{e(null)}):e&&"current"in e&&(e.current=r,n=()=>{e.current=null}));const i=t(r);return()=>{i?.(),n?.()}},[e]),$e=Object.create(null),Be=Object.create(null),K=(e,t,r,n,i)=>{if(t?.itemProp)return{tag:e,props:t,type:e,ref:t.ref};const a=document.head;let{onLoad:o,onError:l,precedence:v,blocking:c,...s}=t,u=null,f=!1;const d=J[e],h=Ue(e,n),E=m=>m.getAttribute("rel")==="stylesheet"&&m.getAttribute(x)!==null;let p;if(h){const m=a.querySelectorAll(e);e:for(const b of m)if(!(e==="link"&&!E(b))){for(const g of d)if(b.getAttribute(g)===t[g]){u=b;break e}}if(!u){const b=d.reduce((g,w)=>t[w]===void 0?g:`${g}-${w}-${t[w]}`,e);f=!Be[b],u=Be[b]||=(()=>{const g=document.createElement(e);for(const w of d)t[w]!==void 0&&g.setAttribute(w,t[w]);return t.rel&&g.setAttribute("rel",t.rel),g})()}}else p=a.querySelectorAll(e);v=n?v??"":void 0,n&&(s[x]=v);const A=ge(m=>{if(h){if(e==="link"&&v!==void 0){let g=!1;for(const w of a.querySelectorAll(e)){const T=w.getAttribute(x);if(T===null){a.insertBefore(m,w);return}if(g&&T!==v){a.insertBefore(m,w);return}T===v&&(g=!0)}a.appendChild(m);return}let b=!1;for(const g of a.querySelectorAll(e)){if(b&&g.getAttribute(x)!==v){a.insertBefore(m,g);return}g.getAttribute(x)===v&&(b=!0)}a.appendChild(m)}else if(e==="link")a.contains(m)||a.appendChild(m);else if(p){let b=!1;for(const g of p)if(g===m){b=!0;break}b||a.insertBefore(m,a.contains(p[0])?p[0]:a.querySelector(e)),p=void 0}},[h,v,e]),k=me(t.ref,m=>{const b=d[0];if(r===2&&(m.innerHTML=""),(f||p)&&A(m),!l&&!o||!b)return;let g=$e[m.getAttribute(b)]||=new Promise((w,T)=>{m.addEventListener("load",w),m.addEventListener("error",T)});o&&(g=g.then(o)),l&&(g=g.catch(l)),g.catch(()=>{})});if(i&&c==="render"){const m=J[e][0];if(m&&t[m]){const b=t[m],g=$e[b]||=new Promise((w,T)=>{A(u),u.addEventListener("load",w),u.addEventListener("error",T)});Xt(g)}}const S={tag:e,type:e,props:{...s,ref:k},ref:k};return S.p=r,u&&(S.e=u),jt(S,a)},Qt=e=>{const t=Ot();return(t&&R(t))?.endsWith("svg")?{tag:"title",props:e,type:"title",ref:e.ref}:K("title",e,void 0,!1,!1)},Yt=e=>!e||["src","async"].some(t=>!e[t])?{tag:"script",props:e,type:"script",ref:e.ref}:K("script",e,1,!1,!0),er=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)),tr=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,Ke(e),!0),rr=e=>K("meta",e,void 0,!1,!1),at=Symbol(),nr=e=>{const{action:t,...r}=e;typeof t!="function"&&(r.action=t);const[n,i]=rt([null,!1]),a=ge(async c=>{const s=c.isTrusted?t:c.detail[at];if(typeof s!="function")return;c.preventDefault();const u=new FormData(c.target);i([u,!0]);const f=s(u);f instanceof Promise&&(Gt(f),await f),i([null,!0])},[]),o=me(e.ref,c=>(c.addEventListener("submit",a),()=>{c.removeEventListener("submit",a)})),[l,v]=n;return n[1]=!1,{tag:Jt,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}},it=(e,{formAction:t,...r})=>{if(typeof t=="function"){const n=ge(i=>{i.preventDefault(),i.currentTarget.form.dispatchEvent(new CustomEvent("submit",{detail:{[at]:t}}))},[]);r.ref=me(r.ref,i=>(i.addEventListener("click",n),()=>{i.removeEventListener("click",n)}))}return{tag:e,props:r,type:e,ref:r.ref}},ar=e=>it("input",e),ir=e=>it("button",e);Object.assign(se,{title:Qt,script:Yt,style:er,link:tr,meta:rr,form:nr,input:ar,button:ir});Ve(null);new TextEncoder;var or=(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):Ht(et({tag:()=>{const[i,a]=rt(n);return r=a,i},props:{}}),e)},unmount(){r?.(null),r=null}}},sr=(e,t,r={})=>{const n=or(e,r);return n.render(t),n};function lr(){return nt(()=>{const e=document.querySelectorAll("form"),t=[];return e.forEach(r=>{const n=a=>{if(a.defaultPrevented)return;const o=a.submitter;o&&o.type==="submit"&&(o.classList.add("is-loading"),o.disabled=!0)};r.addEventListener("submit",n);const i=a=>{a.persisted&&r.querySelectorAll("button[type=submit]").forEach(l=>{l.classList.remove("is-loading"),l.disabled=!1})};window.addEventListener("pageshow",i),t.push(()=>{r.removeEventListener("submit",n),window.removeEventListener("pageshow",i)})}),()=>{t.forEach(r=>r())}},[]),null}function cr(){return nt(()=>{const e=document.querySelectorAll("[data-password-toggle]"),t=[];return e.forEach(r=>{const n=r.querySelector("input[type='password'], input[data-password-input]"),i=r.querySelector("[data-password-toggle-btn]"),a=i?.querySelector("[data-show-icon]"),o=i?.querySelector("[data-hide-icon]");if(!n||!i||!a||!o)return;const l=c=>{c?(n.type="text",n.setAttribute("data-password-input","text"),a.classList.add("hidden"),o.classList.remove("hidden")):(n.type="password",n.setAttribute("data-password-input","password"),o.classList.add("hidden"),a.classList.remove("hidden"))},v=c=>{c.preventDefault();const s=n.type==="password";l(s)};i.addEventListener("click",v),t.push(()=>{i.removeEventListener("click",v)})}),()=>{t.forEach(r=>r())}},[]),null}function ur(){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 i=null;if(n&&r.length>0){const l=r[0]?.getAttribute("name");l&&(i=n.querySelector(`input[name="${l}"][type="hidden"]`),i||(i=document.createElement("input"),i.type="hidden",i.name=l,n.appendChild(i)),r.forEach(v=>v.removeAttribute("name")))}const a=()=>{if(i){const o=r.map(l=>l.value).join("");i.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(),a()}),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(),a()}),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()),a()}else c.value&&setTimeout(()=>a(),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()})}),a()}),null}var ce={d:(e,t)=>{for(var r in t)ce.o(t,r)&&!ce.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},ye={};ce.d(ye,{A:()=>fr,k:()=>Ee});var O=function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function o(c){try{v(n.next(c))}catch(s){a(s)}}function l(c){try{v(n.throw(c))}catch(s){a(s)}}function v(c){var s;c.done?i(c.value):(s=c.value,s instanceof r?s:new r(function(u){u(s)})).then(o,l)}v((n=n.apply(e,[])).next())})},$=function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(v){return function(c){return(function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=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(i=o.trys,!((i=i.length>0&&i[i.length-1])||s[0]!==6&&s[0]!==2)){o=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(s[0]===6&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(u){s=[6,u],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}})([v,c])}}};function Ee(){return O(this,void 0,Promise,function(){return $(this,function(e){switch(e.label){case 0:return[4,new Promise(function(t,r){var n="Unknown",i=!1;function a(f){i||(i=!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 $(this,function(h){switch(h.label){case 0:return h.trys.push([0,2,,3]),[4,navigator.storage.getDirectory()];case 1:return h.sent(),a(!1),[3,3];case 2:return f=h.sent(),d=f instanceof Error&&typeof f.message=="string"?f.message:String(f),a(d.includes("unknown transient reason")),[3,3];case 3:return[2]}})})}function v(){var f;return O(this,void 0,Promise,function(){return $(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,k=function(S){a(S)};try{A.createObjectStore("t",{autoIncrement:!0}).put(new Blob),k(!1)}catch(S){(S instanceof Error&&typeof S.message=="string"?S.message:String(S)).includes("are not yet supported")?k(!0):k(!1)}finally{A.close(),indexedDB.deleteDatabase(h)}},E.onerror=function(){return a(!1)}}catch{a(!1)}})():(function(){var h=window.openDatabase,E=window.localStorage;try{h(null,null,null,null)}catch{return void a(!0)}try{E.setItem("test","1"),E.removeItem("test")}catch{return void a(!0)}a(!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,k,S=window;return(k=(A=(p=S?.performance)===null||p===void 0?void 0:p.memory)===null||A===void 0?void 0:A.jsHeapSizeLimit)!==null&&k!==void 0?k:1073741824})()/1048576);a(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(){a(!1)},function(){a(!0)})}function u(){var f;return O(this,void 0,Promise,function(){var d,h,E;return $(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(),a(!1),[3,4];case 3:return d=p.sent(),h=d instanceof Error&&typeof d.message=="string"?d.message:String(d),a(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(),a(!0)},E.onsuccess=function(){indexedDB.deleteDatabase("inPrivate"),a(!1)},p.label=6;case 6:return[2]}})})}(function(){return O(this,void 0,Promise,function(){return $(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",a(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=Ee);const fr=Ee;ye.A;const vr=ye.k,X="authhero_incognito_mode";function dr(){try{const e=sessionStorage.getItem(X);return e===null?void 0:e==="true"}catch{return}}async function hr(){try{const e=sessionStorage.getItem(X);if(e!==null)return e==="true";const{isPrivate:t}=await vr();return sessionStorage.setItem(X,t.toString()),t}catch{try{sessionStorage.setItem(X,"false")}catch{}return!1}}const pr=()=>{const e=dr();if(e!==void 0){e&&_e();return}hr().then(t=>{t&&_e()}).catch(()=>{})};function _e(){const e=document.getElementById("incognito-warning-container");e&&e.classList.remove("hidden")}pr();const qe=document.getElementById("client-root");qe&&sr(qe,U(Lt,{children:[U(lr,{}),U(cr,{}),U(ur,{})]}));