authhero 4.81.0 → 4.84.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/authhero-widget.esm.js +1 -1
- package/dist/assets/u/widget/index.esm.js +1 -1
- package/dist/assets/u/widget/p-5428e2e1.entry.js +1 -0
- package/dist/authhero.cjs +162 -151
- package/dist/authhero.d.ts +1229 -454
- package/dist/authhero.mjs +13944 -12775
- package/dist/client.js +1 -1
- package/dist/stats.html +1 -1
- package/package.json +5 -5
- package/dist/assets/u/widget/p-b9ae0275.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var Qe={Stringify:1},I=(e,t)=>{const r=new String(e);return r.isEscaped=!0,r.callbacks=t,r},Ye=/[&<>'"]/,et=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(Ye);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)},tt=e=>{const t=e.callbacks;if(!t?.length)return e;const r=[e],n={};return t.forEach(a=>a({phase:Qe.Stringify,buffer:r,context:n})),r[0]},se=Symbol("RENDERER"),ne=Symbol("ERROR_HANDLER"),y=Symbol("STASH"),xe=Symbol("INTERNAL"),rt=Symbol("MEMO"),z=Symbol("PERMALINK"),ge=e=>(e[xe]=!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},Oe=e=>{const t=[e],r=$e(t);return r.values=t,r.Provider=r,M.push(r),r},M=[],Be=e=>{const t=[e],r=(n=>{t.push(n.value);let a;try{a=n.children?(Array.isArray(n.children)?new je("",{},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),M.push(r),r},$=e=>e.values.at(-1),X={title:[],script:["src"],style:["data-href"],link:["href"],meta:["name","httpEquiv","charset","itemProp"]},ae={},D="data-precedence",Re=e=>e.rel==="stylesheet"&&"precedence"in e,_e=(e,t)=>e==="link"?t:X[e].length>0,H=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 d=!1;const c=X[e],s=_e(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]){d=!0;break e}}}if(d?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(([v,,h],E)=>{if(h===void 0)return[v,Number.MAX_SAFE_INTEGER,E];let p=f.indexOf(h);return p===-1&&(f.push(h),p=f.length-1),[v,p,E]}).sort((v,h)=>v[1]-h[1]||v[2]-h[2]).map(([v])=>v)}else u=l.map(([f])=>f);u.forEach(f=>{a[0]=a[0].replaceAll(f,"")}),a[0]=a[0].replace(/(?=<\/head>)/,u.join(""))}},F=(e,t,r)=>I(new k(e,r,H(t??[])).toString()),j=(e,t,r,n)=>{if("itemProp"in r)return F(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,H(t||[])).toString();return l instanceof Promise?l.then(d=>I(l,[...d.callbacks||[],Ee(e,d,o,a)])):I(l,[Ee(e,l,o,a)])},nt=({children:e,...t})=>{const r=le();if(r){const n=$(r);if(n==="svg"||n==="head")return new k("title",t,H(e??[]))}return j("title",e,t,!1)},at=({children:e,...t})=>{const r=le();return["src","async"].some(n=>!t[n])||r&&$(r)==="head"?F("script",e,t):j("script",e,t,!1)},it=({children:e,...t})=>["href","precedence"].every(r=>r in t)?(t["data-href"]=t.href,delete t.href,j("style",e,t,!0)):F("style",e,t),ot=({children:e,...t})=>["onLoad","onError"].some(r=>r in t)||t.rel==="stylesheet"&&(!("precedence"in t)||"disabled"in t)?F("link",e,t):j("link",e,t,Re(t)),st=({children:e,...t})=>{const r=le();return r&&$(r)==="head"?F("meta",e,t):j("meta",e,t,!1)},qe=(e,{children:t,...r})=>new k(e,r,H(t??[])),lt=e=>(typeof e.action=="function"&&(e.action=z in e.action?e.action[z]:void 0),qe("form",e)),He=(e,t)=>(typeof t.formAction=="function"&&(t.formAction=z in t.formAction?t.formAction[z]:void 0),qe(e,t)),ct=e=>He("input",e),ut=e=>He("button",e);const Q=Object.freeze(Object.defineProperty({__proto__:null,button:ut,form:lt,input:ct,link:ot,meta:st,script:at,style:it,title:nt},Symbol.toStringTag,{value:"Module"}));var ft=new Map([["className","class"],["htmlFor","for"],["crossOrigin","crossorigin"],["httpEquiv","http-equiv"],["itemProp","itemprop"],["fetchPriority","fetchpriority"],["noModule","nomodule"],["formAction","formaction"]]),G=e=>ft.get(e)||e,Fe=(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=()=>_,dt=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,vt=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ht=["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?tt(I(e[0],e.callbacks)).toString():e[0]:et(e,e.callbacks)}toStringToBuffer(e){const t=this.tag,r=this.props;let{children:n}=this;e[0]+=`<${t}`;const a=_&&$(_)==="svg"?i=>dt(G(i)):i=>G(i);for(let[i,o]of Object.entries(r))if(i=a(i),i!=="children"){if(i==="style"&&typeof o=="object"){let l="";Fe(o,(d,c)=>{c!=null&&(l+=`${l?";":""}${d}:${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"&&ht.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(vt.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(M.length===0)e.unshift("",n);else{const a=M.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)}},je=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)},pt=({children:e})=>new je("",{children:e},Array.isArray(e)?e:e?[e]:[]);function W(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",mt={Change:"Input",DoubleClick:"DblClick"},gt={svg:"2000/svg",math:"1998/Math/MathML"},N=[],ie=new WeakMap,x=void 0,yt=()=>x,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]=[(mt[r]||r).toLowerCase(),!!n]}},Se=(e,t)=>x&&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,Et=(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&&Fe(a,o.setProperty.bind(o)))}else{if(n==="value"){const l=e.nodeName;if(l==="INPUT"||l==="TEXTAREA"||l==="SELECT"){if(e.value=a==null||a===!1?null:a,l==="TEXTAREA"){e.textContent=a;continue}else if(l==="SELECT"){e.selectedIndex===-1&&(e.selectedIndex=0);continue}}}else(n==="checked"&&e.nodeName==="INPUT"||n==="selected"&&e.nodeName==="OPTION")&&(e[n]=a);const o=Se(e,n);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())}}}if(r)for(let n in r){const a=r[n];if(n!=="children"&&!(n in t)){n=G(n);const i=we(n);i?e.removeEventListener(i[0],a,i[1]):n==="ref"?ie.get(e)?.():e.removeAttribute(Se(e,n))}}},bt=(e,t)=>{t[y][0]=0,N.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{N.pop()}},Ke=(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(Ke(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)})},wt=e=>{for(;e&&(e.tag===q||!e.e);)e=e.tag===q||!e.vC?.[0]?e.nN:e.vC[0];return e?.e},We=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(We)),e.p||(e.e?.remove(),delete e.e),typeof e.tag=="function"&&(R.delete(e),U.delete(e),delete e[y][3],e.a=!0)},ue=(e,t,r)=>{e.c=t,Ue(e,t,r)},Ae=(e,t)=>{if(t){for(let r=0,n=e.length;r<n;r++)if(e[r]===t)return r}},ke=Symbol(),Ue=(e,t,r)=>{const n=[],a=[],i=[];Ke(e,t,n,a,i),a.forEach(We);const o=r?void 0:t.childNodes;let l,d=null;if(r)l=-1;else if(!o.length)l=0;else{const c=Ae(o,wt(e.nN));c!==void 0?(d=o[c],l=c):l=Ae(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 v=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),Et(f,u.props,u.pP),Ue(u,f,v))}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,d||o[l]||null))}if(e.pP&&(e.pP=void 0),i.length){const c=[],s=[];i.forEach(([,u,,f,v])=>{u&&c.push(u),f&&s.push(f),v?.()}),c.forEach(u=>u()),s.length&&requestAnimationFrame(()=>{s.forEach(u=>u())})}},St=(e,t)=>!!(e&&e.length===t.length&&e.every((r,n)=>r[1]===t[n][1])),U=new WeakMap,J=(e,t,r)=>{const n=!r&&t.pC;r&&(t.pC||=t.vC);let a;try{r||=typeof t.tag=="function"?bt(e,t):H(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 d=0;d<r.length;d++){if(Array.isArray(r[d])){r.splice(d,1,...r[d].flat(1/0)),d--;continue}let c=Ve(r[d]);if(c){typeof c.tag=="function"&&!c.tag[xe]&&(M.length>0&&(c[y][2]=M.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[rt]?.(u,s.props))&&St(f,s[y][2])&&(s.s=!0)}c=s}else if(!P(c)&&x){const u=$(x);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===ke){if(a)return;throw i}const[o,l,d]=t[y]?.[3]||[];if(l){const c=()=>V([0,!1,e[2]],d),s=U.get(d)||[];s.push(c),U.set(d,s);const u=l(i,()=>{const f=U.get(d);if(f){const v=f.indexOf(c);if(v!==-1)return f.splice(v,1),c()}});if(u){if(e[0]===1)e[1]=!0;else if(J(e,d,[u]),(l.length===1||e!==o)&&d.c){ue(d,d.c,!1);return}throw ke}}throw i}finally{a&&e[5].pop()}},Ve=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=gt[e.tag];t&&(x||=Oe(""),e.props.children=[{tag:x,props:{value:e.n=`http://www.w3.org/${t}`,children:e.props.children}}])}return e}},Ze=(e,t,r)=>{e.c===t&&(e.c=r,e.vC.forEach(n=>Ze(n,t,r)))},Ce=(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)},R=new WeakMap,Pe=[],V=async(e,t)=>{e[5]||=[];const r=R.get(t);r&&r[0](void 0);let n;const a=new Promise(i=>n=i);if(R.set(t,[n,()=>{e[2]?e[2](e,t,i=>{Ce(i,t)}).then(()=>n(t)):(Ce(e,t),n(t))}]),Pe.length)Pe.at(-1).add(t);else{await Promise.resolve();const i=R.get(t);i&&(R.delete(t),i[1]())}return a},At=(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),Ze(e,n,t),t.replaceChildren(n)},kt=(e,t,r)=>({tag:q,props:{children:e},key:r,e:t,p:1}),Ct=0,fe=1,Pt=2,It=3,re=new WeakMap,de=(e,t)=>!e||!t||e.length!==t.length||t.some((r,n)=>r!==e[n]),Tt=void 0,Ie=[],ze=e=>{const t=()=>typeof e=="function"?e():e,r=N.at(-1);if(!r)return[t(),()=>{}];const[,n]=r,a=n[y][1][Ct]||=[],i=n[y][0]++;return a[i]||=[t(),o=>{const l=Tt,d=a[i];if(typeof o=="function"&&(o=o(d[0])),!Object.is(o,d[0]))if(d[0]=o,Ie.length){const[c,s]=Ie.at(-1);Promise.all([c===3?n:V([c,!1,l],n),s]).then(([u])=>{if(!u||!(c===2||c===3))return;const f=u.vC;requestAnimationFrame(()=>{setTimeout(()=>{f===u.vC&&V([c===3?1:0,!1,l],u)})})})}else V([0,!1,l],n)}]},Dt=(e,t,r)=>{const n=N.at(-1);if(!n)return;const[,a]=n,i=a[y][1][fe]||=[],o=a[y][0]++,[l,,d]=i[o]||=[];if(de(l,r)){d&&d();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}},Xe=(e,t)=>Dt(3,e,t),ve=(e,t)=>{const r=N.at(-1);if(!r)return e;const[,n]=r,a=n[y][1][Pt]||=[],i=n[y][0]++,o=a[i];return de(o?.[1],t)?a[i]=[e,t]:e=a[i][0],e},Lt=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},Mt=(e,t)=>{const r=N.at(-1);if(!r)return e();const[,n]=r,a=n[y][1][It]||=[],i=n[y][0]++,o=a[i];return de(o?.[1],t)&&(a[i]=[e(),t]),a[i][0]},Nt=Oe({pending:!1,data:null,method:null,action:null}),Te=new Set,xt=e=>{Te.add(e),e.finally(()=>Te.delete(e))},he=(e,t)=>Mt(()=>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]),De=Object.create(null),Le=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:d,blocking:c,...s}=t,u=null,f=!1;const v=X[e],h=_e(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 v)if(b.getAttribute(m)===t[m]){u=b;break e}}if(!u){const b=v.reduce((m,w)=>t[w]===void 0?m:`${m}-${w}-${t[w]}`,e);f=!Le[b],u=Le[b]||=(()=>{const m=document.createElement(e);for(const w of v)t[w]!==void 0&&m.setAttribute(w,t[w]);return t.rel&&m.setAttribute("rel",t.rel),m})()}}else p=i.querySelectorAll(e);d=n?d??"":void 0,n&&(s[D]=d);const A=ve(g=>{if(h){if(e==="link"&&d!==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!==d){i.insertBefore(g,w);return}T===d&&(m=!0)}i.appendChild(g);return}let b=!1;for(const m of i.querySelectorAll(e)){if(b&&m.getAttribute(D)!==d){i.insertBefore(g,m);return}m.getAttribute(D)===d&&(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,d,e]),C=he(t.ref,g=>{const b=v[0];if(r===2&&(g.innerHTML=""),(f||p)&&A(g),!l&&!o||!b)return;let m=De[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=De[b]||=new Promise((w,T)=>{A(u),u.addEventListener("load",w),u.addEventListener("error",T)});Lt(m)}}const S={tag:e,type:e,props:{...s,ref:C},ref:C};return S.p=r,u&&(S.e=u),kt(S,i)},$t=e=>{const t=yt();return(t&&$(t))?.endsWith("svg")?{tag:"title",props:e,type:"title",ref:e.ref}:K("title",e,void 0,!1,!1)},Ot=e=>!e||["src","async"].some(t=>!e[t])?{tag:"script",props:e,type:"script",ref:e.ref}:K("script",e,1,!1,!0),Bt=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)),Rt=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,Re(e),!0),_t=e=>K("meta",e,void 0,!1,!1),Ge=Symbol(),qt=e=>{const{action:t,...r}=e;typeof t!="function"&&(r.action=t);const[n,a]=ze([null,!1]),i=ve(async c=>{const s=c.isTrusted?t:c.detail[Ge];if(typeof s!="function")return;c.preventDefault();const u=new FormData(c.target);a([u,!0]);const f=s(u);f instanceof Promise&&(xt(f),await f),a([null,!0])},[]),o=he(e.ref,c=>(c.addEventListener("submit",i),()=>{c.removeEventListener("submit",i)})),[l,d]=n;return n[1]=!1,{tag:Nt,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:d}},Je=(e,{formAction:t,...r})=>{if(typeof t=="function"){const n=ve(a=>{a.preventDefault(),a.currentTarget.form.dispatchEvent(new CustomEvent("submit",{detail:{[Ge]: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}},Ht=e=>Je("input",e),Ft=e=>Je("button",e);Object.assign(ae,{title:$t,script:Ot,style:Bt,link:Rt,meta:_t,form:qt,input:Ht,button:Ft});Be(null);new TextEncoder;var jt=(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):At(Ve({tag:()=>{const[a,i]=ze(n);return r=i,a},props:{}}),e)},unmount(){r?.(null),r=null}}},Kt=(e,t,r={})=>{const n=jt(e,r);return n.render(t),n};function Wt(){return Xe(()=>{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 Ut(){return Xe(()=>{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"))},d=c=>{c.preventDefault();const s=n.type==="password";l(s)};a.addEventListener("click",d),t.push(()=>{a.removeEventListener("click",d)})}),()=>{t.forEach(r=>r())}},[]),null}function Vt(){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(d=>d.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",d=>{const c=d.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",d=>{d.preventDefault();const s=(d.clipboardData?.getData("text")||"").replace(/[^0-9]/g,"");for(let f=0;f<Math.min(s.length,r.length-l);f++){const v=r[l+f],h=s.charAt(f);v&&h&&(v.value=h)}const u=r.findIndex((f,v)=>v>=l&&!f.value);u!==-1?r[u]?.focus():r[Math.min(l+s.length,r.length-1)]?.focus(),i()}),o.addEventListener("keydown",d=>{if(d.key==="Backspace"){const c=d.target;if(!c.value&&l>0){d.preventDefault();const s=r[l-1];s&&(s.value="",s.focus()),i()}else c.value&&setTimeout(()=>i(),0)}else d.key==="ArrowLeft"&&l>0?(d.preventDefault(),r[l-1]?.focus()):d.key==="ArrowRight"&&l<r.length-1&&(d.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:()=>Zt,k:()=>me});var O=function(e,t,r,n){return new(r||(r=Promise))(function(a,i){function o(c){try{d(n.next(c))}catch(s){i(s)}}function l(c){try{d(n.throw(c))}catch(s){i(s)}}function d(c){var s;c.done?a(c.value):(s=c.value,s instanceof r?s:new r(function(u){u(s)})).then(o,l)}d((n=n.apply(e,[])).next())})},B=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(d){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}})([d,c])}}};function me(){return O(this,void 0,Promise,function(){return B(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,v=parseInt("-1");try{v.toFixed(v)}catch(h){f=h.message.length}return f}function l(){return O(this,void 0,void 0,function(){var f,v;return B(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(),v=f instanceof Error&&typeof f.message=="string"?f.message:String(f),i(v.includes("unknown transient reason")),[3,3];case 3:return[2]}})})}function d(){var f;return O(this,void 0,Promise,function(){return B(this,function(v){switch(v.label){case 0:return typeof((f=navigator.storage)===null||f===void 0?void 0:f.getDirectory)!="function"?[3,2]:[4,l()];case 1:return v.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)})(),v.label=3;case 3:return[2]}})})}function c(){navigator.webkitTemporaryStorage.queryUsageAndQuota(function(f,v){var h=Math.round(v/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 v,h,E;return B(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 v=p.sent(),h=v instanceof Error&&typeof v.message=="string"?v.message:String(v),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 B(this,function(f){switch(f.label){case 0:return o()!==44&&o()!==43?[3,2]:(n="Safari",[4,d()]);case 1:return f.sent(),[3,6];case 2:return o()!==51?[3,3]:(v=navigator.userAgent,n=v.match(/Chrome/)?navigator.brave!==void 0?"Brave":v.match(/Edg/)?"Edge":v.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 v})})})().catch(r)})];case 1:return[2,e.sent()]}})})}typeof window<"u"&&(window.detectIncognito=me);const Zt=me;pe.A;const zt=pe.k,Z="authhero_incognito_mode";function Xt(){try{const e=sessionStorage.getItem(Z);return e===null?void 0:e==="true"}catch{return}}async function Gt(){try{const e=sessionStorage.getItem(Z);if(e!==null)return e==="true";const{isPrivate:t}=await zt();return sessionStorage.setItem(Z,t.toString()),t}catch{try{sessionStorage.setItem(Z,"false")}catch{}return!1}}const Jt=()=>{const e=Xt();if(e!==void 0){e&&Me();return}Gt().then(t=>{t&&Me()}).catch(()=>{})};function Me(){const e=document.getElementById("incognito-warning-container");e&&e.classList.remove("hidden")}Jt();const Ne=document.getElementById("client-root");Ne&&Kt(Ne,W(pt,{children:[W(Wt,{}),W(Ut,{}),W(Vt,{})]}));
|
|
1
|
+
var Ye={Stringify:1},I=(e,t)=>{const r=new String(e);return r.isEscaped=!0,r.callbacks=t,r},et=/[&<>'"]/,tt=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(et);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)},rt=e=>{const t=e.callbacks;if(!t?.length)return e;const r=[e],n={};return t.forEach(a=>a({phase:Ye.Stringify,buffer:r,context:n})),r[0]},se=Symbol("RENDERER"),ne=Symbol("ERROR_HANDLER"),y=Symbol("STASH"),xe=Symbol("INTERNAL"),nt=Symbol("MEMO"),Z=Symbol("PERMALINK"),ge=e=>(e[xe]=!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},Oe=e=>{const t=[e],r=$e(t);return r.values=t,r.Provider=r,M.push(r),r},M=[],Be=e=>{const t=[e],r=(n=>{t.push(n.value);let a;try{a=n.children?(Array.isArray(n.children)?new je("",{},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),M.push(r),r},$=e=>e.values.at(-1),X={title:[],script:["src"],style:["data-href"],link:["href"],meta:["name","httpEquiv","charset","itemProp"]},ae={},D="data-precedence",Re=e=>e.rel==="stylesheet"&&"precedence"in e,_e=(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=_e(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)])},at=({children:e,...t})=>{const r=le();if(r){const n=$(r);if(n==="svg"||n==="head")return new k("title",t,F(e??[]))}return j("title",e,t,!1)},it=({children:e,...t})=>{const r=le();return["src","async"].some(n=>!t[n])||r&&$(r)==="head"?H("script",e,t):j("script",e,t,!1)},ot=({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),st=({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,Re(t)),lt=({children:e,...t})=>{const r=le();return r&&$(r)==="head"?H("meta",e,t):j("meta",e,t,!1)},qe=(e,{children:t,...r})=>new k(e,r,F(t??[])),ct=e=>(typeof e.action=="function"&&(e.action=Z in e.action?e.action[Z]:void 0),qe("form",e)),Fe=(e,t)=>(typeof t.formAction=="function"&&(t.formAction=Z in t.formAction?t.formAction[Z]:void 0),qe(e,t)),ut=e=>Fe("input",e),ft=e=>Fe("button",e);const Q=Object.freeze(Object.defineProperty({__proto__:null,button:ft,form:ct,input:ut,link:st,meta:lt,script:it,style:ot,title:at},Symbol.toStringTag,{value:"Module"}));var vt=new Map([["className","class"],["htmlFor","for"],["crossOrigin","crossorigin"],["httpEquiv","http-equiv"],["itemProp","itemprop"],["fetchPriority","fetchpriority"],["noModule","nomodule"],["formAction","formaction"]]),G=e=>vt.get(e)||e,He=(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=()=>_,dt=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,ht=["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],pt=["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?rt(I(e[0],e.callbacks)).toString():e[0]:tt(e,e.callbacks)}toStringToBuffer(e){const t=this.tag,r=this.props;let{children:n}=this;e[0]+=`<${t}`;const a=_&&$(_)==="svg"?i=>dt(G(i)):i=>G(i);for(let[i,o]of Object.entries(r))if(i=a(i),i!=="children"){if(i==="style"&&typeof o=="object"){let l="";He(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"&&pt.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(ht.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(M.length===0)e.unshift("",n);else{const a=M.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)}},je=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)},mt=({children:e})=>new je("",{children:e},Array.isArray(e)?e:e?[e]:[]);function W(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",gt={Change:"Input",DoubleClick:"DblClick"},yt={svg:"2000/svg",math:"1998/Math/MathML"},N=[],ie=new WeakMap,x=void 0,Et=()=>x,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]=[(gt[r]||r).toLowerCase(),!!n]}},Se=(e,t)=>x&&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,Ke=e=>e==null||e===!1?null:e,bt=(e,t)=>{"value"in t&&(e.value=Ke(t.value),!e.multiple&&e.selectedIndex===-1&&(e.selectedIndex=0))},wt=(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&&He(a,o.setProperty.bind(o)))}else{if(n==="value"){const l=e.nodeName;if(l==="SELECT")continue;if((l==="INPUT"||l==="TEXTAREA")&&(e.value=Ke(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);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())}}}if(r)for(let n in r){const a=r[n];if(n!=="children"&&!(n in t)){n=G(n);const i=we(n);i?e.removeEventListener(i[0],a,i[1]):n==="ref"?ie.get(e)?.():e.removeAttribute(Se(e,n))}}},St=(e,t)=>{t[y][0]=0,N.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{N.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)})},At=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"&&(R.delete(e),U.delete(e),delete e[y][3],e.a=!0)},ue=(e,t,r)=>{e.c=t,Ve(e,t,r)},Ae=(e,t)=>{if(t){for(let r=0,n=e.length;r<n;r++)if(e[r]===t)return r}},ke=Symbol(),Ve=(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=Ae(o,At(e.nN));c!==void 0?(v=o[c],l=c):l=Ae(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),wt(f,u.props,u.pP),Ve(u,f,d),u.tag==="select"&&bt(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())})}},kt=(e,t)=>!!(e&&e.length===t.length&&e.every((r,n)=>r[1]===t[n][1])),U=new WeakMap,J=(e,t,r)=>{const n=!r&&t.pC;r&&(t.pC||=t.vC);let a;try{r||=typeof t.tag=="function"?St(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[xe]&&(M.length>0&&(c[y][2]=M.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[nt]?.(u,s.props))&&kt(f,s[y][2])&&(s.s=!0)}c=s}else if(!P(c)&&x){const u=$(x);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===ke){if(a)return;throw i}const[o,l,v]=t[y]?.[3]||[];if(l){const c=()=>V([0,!1,e[2]],v),s=U.get(v)||[];s.push(c),U.set(v,s);const u=l(i,()=>{const f=U.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 ke}}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=yt[e.tag];t&&(x||=Oe(""),e.props.children=[{tag:x,props:{value:e.n=`http://www.w3.org/${t}`,children:e.props.children}}])}return e}},Ze=(e,t,r)=>{e.c===t&&(e.c=r,e.vC.forEach(n=>Ze(n,t,r)))},Ce=(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)},R=new WeakMap,Pe=[],V=async(e,t)=>{e[5]||=[];const r=R.get(t);r&&r[0](void 0);let n;const a=new Promise(i=>n=i);if(R.set(t,[n,()=>{e[2]?e[2](e,t,i=>{Ce(i,t)}).then(()=>n(t)):(Ce(e,t),n(t))}]),Pe.length)Pe.at(-1).add(t);else{await Promise.resolve();const i=R.get(t);i&&(R.delete(t),i[1]())}return a},Ct=(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),Ze(e,n,t),t.replaceChildren(n)},Pt=(e,t,r)=>({tag:q,props:{children:e},key:r,e:t,p:1}),It=0,fe=1,Tt=2,Dt=3,re=new WeakMap,ve=(e,t)=>!e||!t||e.length!==t.length||t.some((r,n)=>r!==e[n]),Lt=void 0,Ie=[],Xe=e=>{const t=()=>typeof e=="function"?e():e,r=N.at(-1);if(!r)return[t(),()=>{}];const[,n]=r,a=n[y][1][It]||=[],i=n[y][0]++;return a[i]||=[t(),o=>{const l=Lt,v=a[i];if(typeof o=="function"&&(o=o(v[0])),!Object.is(o,v[0]))if(v[0]=o,Ie.length){const[c,s]=Ie.at(-1);Promise.all([c===3?n:V([c,!1,l],n),s]).then(([u])=>{if(!u||!(c===2||c===3))return;const f=u.vC;requestAnimationFrame(()=>{setTimeout(()=>{f===u.vC&&V([c===3?1:0,!1,l],u)})})})}else V([0,!1,l],n)}]},Mt=(e,t,r)=>{const n=N.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}},Ge=(e,t)=>Mt(3,e,t),de=(e,t)=>{const r=N.at(-1);if(!r)return e;const[,n]=r,a=n[y][1][Tt]||=[],i=n[y][0]++,o=a[i];return ve(o?.[1],t)?a[i]=[e,t]:e=a[i][0],e},Nt=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},xt=(e,t)=>{const r=N.at(-1);if(!r)return e();const[,n]=r,a=n[y][1][Dt]||=[],i=n[y][0]++,o=a[i];return ve(o?.[1],t)&&(a[i]=[e(),t]),a[i][0]},$t=Oe({pending:!1,data:null,method:null,action:null}),Te=new Set,Ot=e=>{Te.add(e),e.finally(()=>Te.delete(e))},he=(e,t)=>xt(()=>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]),De=Object.create(null),Le=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=_e(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=!Le[b],u=Le[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=De[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=De[b]||=new Promise((w,T)=>{A(u),u.addEventListener("load",w),u.addEventListener("error",T)});Nt(m)}}const S={tag:e,type:e,props:{...s,ref:C},ref:C};return S.p=r,u&&(S.e=u),Pt(S,i)},Bt=e=>{const t=Et();return(t&&$(t))?.endsWith("svg")?{tag:"title",props:e,type:"title",ref:e.ref}:K("title",e,void 0,!1,!1)},Rt=e=>!e||["src","async"].some(t=>!e[t])?{tag:"script",props:e,type:"script",ref:e.ref}:K("script",e,1,!1,!0),_t=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)),qt=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,Re(e),!0),Ft=e=>K("meta",e,void 0,!1,!1),Je=Symbol(),Ht=e=>{const{action:t,...r}=e;typeof t!="function"&&(r.action=t);const[n,a]=Xe([null,!1]),i=de(async c=>{const s=c.isTrusted?t:c.detail[Je];if(typeof s!="function")return;c.preventDefault();const u=new FormData(c.target);a([u,!0]);const f=s(u);f instanceof Promise&&(Ot(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:$t,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}},Qe=(e,{formAction:t,...r})=>{if(typeof t=="function"){const n=de(a=>{a.preventDefault(),a.currentTarget.form.dispatchEvent(new CustomEvent("submit",{detail:{[Je]: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}},jt=e=>Qe("input",e),Kt=e=>Qe("button",e);Object.assign(ae,{title:Bt,script:Rt,style:_t,link:qt,meta:Ft,form:Ht,input:jt,button:Kt});Be(null);new TextEncoder;var Wt=(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):Ct(ze({tag:()=>{const[a,i]=Xe(n);return r=i,a},props:{}}),e)},unmount(){r?.(null),r=null}}},Ut=(e,t,r={})=>{const n=Wt(e,r);return n.render(t),n};function Vt(){return Ge(()=>{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 zt(){return Ge(()=>{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 Zt(){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:()=>Xt,k:()=>me});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())})},B=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 O(this,void 0,Promise,function(){return B(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 B(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 B(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 B(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 B(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 Xt=me;pe.A;const Gt=pe.k,z="authhero_incognito_mode";function Jt(){try{const e=sessionStorage.getItem(z);return e===null?void 0:e==="true"}catch{return}}async function Qt(){try{const e=sessionStorage.getItem(z);if(e!==null)return e==="true";const{isPrivate:t}=await Gt();return sessionStorage.setItem(z,t.toString()),t}catch{try{sessionStorage.setItem(z,"false")}catch{}return!1}}const Yt=()=>{const e=Jt();if(e!==void 0){e&&Me();return}Qt().then(t=>{t&&Me()}).catch(()=>{})};function Me(){const e=document.getElementById("incognito-warning-container");e&&e.classList.remove("hidden")}Yt();const Ne=document.getElementById("client-root");Ne&&Ut(Ne,W(mt,{children:[W(Vt,{}),W(zt,{}),W(Zt,{})]}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as a}from"./p-BFP_5sHV.js";export{s as setNonce}from"./p-BFP_5sHV.js";import{g as t}from"./p-DQuL1Twl.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((async e=>(await t(),a([["p-8514f73f",[[513,"authhero-node",{component:[16],value:[1],disabled:[4],passwordVisible:[32],selectedCountry:[32],localPhoneNumber:[32],countryDropdownOpen:[32],telEmailMode:[32]},null,{component:[{componentChanged:0}],value:[{valueChanged:0}]}]]],["p-
|
|
1
|
+
import{p as e,b as a}from"./p-BFP_5sHV.js";export{s as setNonce}from"./p-BFP_5sHV.js";import{g as t}from"./p-DQuL1Twl.js";(()=>{const a=import.meta.url,t={};return""!==a&&(t.resourcesUrl=new URL(".",a).href),e(t)})().then((async e=>(await t(),a([["p-8514f73f",[[513,"authhero-node",{component:[16],value:[1],disabled:[4],passwordVisible:[32],selectedCountry:[32],localPhoneNumber:[32],countryDropdownOpen:[32],telEmailMode:[32]},null,{component:[{componentChanged:0}],value:[{valueChanged:0}]}]]],["p-5428e2e1",[[513,"authhero-widget",{screen:[1],apiUrl:[1,"api-url"],baseUrl:[1,"base-url"],state:[1025],screenId:[1025,"screen-id"],authParams:[1,"auth-params"],statePersistence:[1,"state-persistence"],storageKey:[1,"storage-key"],branding:[1],theme:[1],loading:[1028],autoSubmit:[4,"auto-submit"],autoNavigate:[4,"auto-navigate"],_screen:[32],_authParams:[32],_branding:[32],_theme:[32],formData:[32]},null,{screenId:[{watchScreenId:0}],screen:[{watchScreen:0}],branding:[{watchBranding:0}],theme:[{watchTheme:0}],authParams:[{watchAuthParams:0}]}]]]],e))));
|