@tempoxyz/id 0.0.0-pr-212.sha-dca8bcf → 0.0.0-pr-210.sha-dfd6fc2

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.
Files changed (33) hide show
  1. package/dist/app/client/assets/{ccip-vaNdT_Ga.js → ccip-D3sAVeIt.js} +1 -1
  2. package/dist/app/client/assets/{index-Dd17MDXK.css → index-BGqXyEgd.css} +1 -1
  3. package/dist/app/client/assets/{index-CRiD2b4b.js → index-s_euKzrq.js} +42 -42
  4. package/dist/app/server/.vite/manifest.json +3 -3
  5. package/dist/app/server/assets/{_tanstack-start-manifest_v-DWbS5CJ8.js → _tanstack-start-manifest_v-OOGXxG7v.js} +1 -1
  6. package/dist/app/server/assets/router-Bp9HWhG2.css +1 -0
  7. package/dist/app/server/assets/router-DX0i0cOR.js +7 -0
  8. package/dist/app/server/assets/router-DX0i0cOR.js.map +1 -0
  9. package/dist/app/server/index.js +20 -20
  10. package/dist/app/server/index.js.map +1 -1
  11. package/dist/internal/ErrorResponse.d.ts +11 -0
  12. package/dist/internal/ErrorResponse.d.ts.map +1 -1
  13. package/dist/internal/ErrorResponse.js +22 -3
  14. package/dist/internal/ErrorResponse.js.map +1 -1
  15. package/dist/internal/KeyAuthorization.d.ts +2 -7
  16. package/dist/internal/KeyAuthorization.d.ts.map +1 -1
  17. package/dist/internal/KeyAuthorization.js +2 -26
  18. package/dist/internal/KeyAuthorization.js.map +1 -1
  19. package/dist/internal/RateLimit.d.ts +4 -4
  20. package/dist/internal/RateLimit.d.ts.map +1 -1
  21. package/dist/internal/RateLimit.js +6 -5
  22. package/dist/internal/RateLimit.js.map +1 -1
  23. package/package.json +1 -1
  24. package/src/app/components/Grant.tsx +5 -16
  25. package/src/app/routes/[_].flows.tsx +6 -127
  26. package/src/app/routes/login.tsx +12 -1
  27. package/src/app/screens/SignIn.tsx +2 -2
  28. package/src/internal/ErrorResponse.ts +28 -3
  29. package/src/internal/KeyAuthorization.ts +2 -28
  30. package/src/internal/RateLimit.ts +6 -5
  31. package/dist/app/server/assets/router-DHNhpddA.js +0 -7
  32. package/dist/app/server/assets/router-DHNhpddA.js.map +0 -1
  33. package/dist/app/server/assets/router-aoNinkjH.css +0 -1
@@ -0,0 +1,7 @@
1
+ import{a as e}from"./rolldown-runtime-B0Z9INg1.js";import{$t as t,An as n,Cn as r,Dn as i,Fn as a,Gn as o,Hn as s,Jt as c,Kt as l,Ln as u,Mn as d,Nn as f,On as p,Pn as m,Rn as h,Sn as g,Tn as _,Un as v,Xt as y,_n as b,an as x,cn as S,dn as C,en as w,fn as T,hn as E,i as D,kn as O,mt as k,n as A,nn as j,rn as M,sn as N,tn as P,vt as F,yn as I,yt as ee}from"./cookie-DUCG3JTy.js";function L(e,t,n,r){let i=b(e),a=[],o=[];for(let e of i)for(let t of Array.isArray(e.scripts)?e.scripts:[]){if(!t)continue;let{children:e,...i}=t;a.push({tag:`script`,attrs:{...i,...r,nonce:n},children:e})}if(t)for(let e of i)for(let r of t.routes[e.routeId]?.scripts??[])o.push({tag:`script`,attrs:{...r.attrs,nonce:n},children:r.children});return[a,o]}function te([e,t],n){return n?[...n.before,...e,...t,n.boundary]:[...e,...t]}var R=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(e){if(this.init=e=>{this.originalIndex=e,this._branch=void 0;let t=this.options,r=!t?.path&&!t?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=v:this.parentRoute||_();let a=r?v:t?.path;a&&a!==`/`&&(a=O(a));let o=t?.id||a,s=r?v:i((this.parentRoute.id===`__root__`?``:this.parentRoute.id)+`/`+(o??``));a===`__root__`&&(a=`/`);let c=s===`__root__`?`/`:a===void 0?this.parentRoute.fullPath:i(this.parentRoute.fullPath+`/`+a);this._path=a,this._id=s,this._fullPath=c,this._to=n(c)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e==`object`&&e&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>s({from:this.fullPath,...e}),this.options=e||{},this.isRoot=!e?.getParentRoute,e?.id&&e?.path)throw Error(`Route cannot have both an 'id' and a 'path' option.`)}},ne=class extends R{constructor(e){super(e)}};function re(e){return({search:t,next:n})=>{let{search:r,meta:i}=n(t,!0);if(e===!0){let e={...t,...r},n=i.removed,a=i.explicit;for(let r of n?.keys()||[])(a&&u.call(a,r)||d(t[r],n.get(r)))&&delete e[r];for(let t of i.removedAny||[])delete e[t];for(let n of i.defaulted?.keys()||[])n in t&&!i.removedAny?.has(n)&&!(i.removed?.has(n)&&(a&&u.call(a,n)||d(t[n],i.removed.get(n))))&&(e[n]=t[n]);return e}let a={...r},o=i.explicit;for(let n of e){let e=n;!(i.removedAny?.has(e)||i.removed?.has(e)&&(o&&u.call(o,e)||d(t[n],i.removed.get(e))))&&(!(n in a)||n in t&&i.defaulted?.has(e)&&d(a[n],i.defaulted.get(e)))&&(a[n]=t[n])}return a}}function ie({update:e,notify:t,unwatched:n}){return{link:r,unlink:i,propagate:a,checkDirty:o,shallowPropagate:s};function r(e,t,n){let r=t.depsTail;if(r!==void 0&&r.dep===e)return;let i=r===void 0?t.deps:r.nextDep;if(i!==void 0&&i.dep===e){i.version=n,t.depsTail=i;return}let a=e.subsTail;if(a!==void 0&&a.version===n&&a.sub===t)return;let o=t.depsTail=e.subsTail={version:n,dep:e,sub:t,prevDep:r,nextDep:i,prevSub:a,nextSub:void 0};i!==void 0&&(i.prevDep=o),r===void 0?t.deps=o:r.nextDep=o,a===void 0?e.subs=o:a.nextSub=o}function i(e,t=e.sub){let r=e.dep,i=e.prevDep,a=e.nextDep,o=e.nextSub,s=e.prevSub;return a===void 0?t.depsTail=i:a.prevDep=i,i===void 0?t.deps=a:i.nextDep=a,o===void 0?r.subsTail=s:o.prevSub=s,s===void 0?(r.subs=o)===void 0&&n(r):s.nextSub=o,a}function a(e){let n=e.nextSub,r;top:do{let i=e.sub,a=i.flags;if(a&60?a&12?a&4?!(a&48)&&c(e,i)?(i.flags=a|40,a&=1):a=0:i.flags=a&-9|32:a=0:i.flags=a|32,a&2&&t(i),a&1){let t=i.subs;if(t!==void 0){let i=(e=t).nextSub;i!==void 0&&(r={value:n,prev:r},n=i);continue}}if((e=n)!==void 0)n=e.nextSub;else{for(;r!==void 0;)if(e=r.value,r=r.prev,e!==void 0){n=e.nextSub;continue top}break}}while(1)}function o(t,n){let r,i=0,a=!1;top:do{let o=t.dep,c=o.flags;if(n.flags&16)a=!0;else if((c&17)==17){if(e(o)){let e=o.subs;e.nextSub!==void 0&&s(e),a=!0}}else if((c&33)==33){(t.nextSub!==void 0||t.prevSub!==void 0)&&(r={value:t,prev:r}),t=o.deps,n=o,++i;continue}if(!a){let e=t.nextDep;if(e!==void 0){t=e;continue}}for(;i--;){let i=n.subs,o=i.nextSub!==void 0;if(o?(t=r.value,r=r.prev):t=i,a){if(e(n)){o&&s(i),n=t.sub;continue}a=!1}else n.flags&=-33;n=t.sub;let c=t.nextDep;if(c!==void 0){t=c;continue top}}return a}while(1)}function s(e){do{let n=e.sub,r=n.flags;(r&48)==32&&(n.flags=r|16,(r&6)==2&&t(n))}while((e=e.nextSub)!==void 0)}function c(e,t){let n=t.depsTail;for(;n!==void 0;){if(n===e)return!0;n=n.prevDep}return!1}}var ae=[],{link:z,unlink:oe,propagate:se,checkDirty:ce,shallowPropagate:le}=ie({update(e){return e._update()},notify(e){ae[ue++]=e,e.flags&=-3},unwatched(e){e.depsTail!==void 0&&(e.depsTail=void 0,e.flags=17,de(e))}}),ue=0;function de(e){let t=e.depsTail,n=t===void 0?e.deps:t.nextDep;for(;n!==void 0;)n=oe(n,e)}var B=e(o(),1);function fe(e){let t=M(),n=B.useContext(e.from?P:j),r=e.from??n,i=t.stores.getMatchStore(r);{let t=i.get();if(!t){(e.shouldThrow??!0)&&_();return}return e.select?e.select(t):t}}function pe(e){return fe({from:e.from,strict:e.strict,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.loaderData):t.loaderData})}function me(e){let{select:t,...n}=e;return fe({...n,select:e=>t?t(e.loaderDeps):e.loaderDeps})}function he(e){return fe({from:e.from,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,strict:e.strict,select:t=>{let n=e.strict===!1?t.params:t._strictParams;return e.select?e.select(n):n}})}function ge(e){return fe({from:e.from,strict:e.strict,shouldThrow:e.shouldThrow,structuralSharing:e.structuralSharing,select:t=>e.select?e.select(t.search):t.search})}function _e(e){let t=M();return B.useCallback(n=>t.navigate({...n,from:n.from??e?.from}),[e?.from,t])}function ve(e){return fe({...e,select:t=>e.select?e.select(t.context):t.context})}var V=N();function ye(e,t){let n=typeof e==`string`&&a(e);if(n)return t.has(n)?e:null}function be(e,t,n,r,i){let a=p(e.pathname,r),o=p(t.pathname,r);return(n?.exact?a!==o:!a.startsWith(o)||a.length!==o.length&&a[o.length]!==`/`)||(n?.includeSearch??!0)&&!d(e.search,t.search,!n?.exact,n?.explicitUndefined)?!1:!n?.includeHash||i&&e.hash===t.hash}function xe(e,t,n){return De(M(),e,t,n)}var Se={},Ce={className:`active`},we=new Set([`to`,`params`,`search`,`hash`,`state`,`mask`,`from`,`unsafeRelative`,`_fromLocation`,`reloadDocument`,`preload`,`preloadDelay`,`preloadIntentProximity`,`hashScrollIntoView`,`replace`,`startTransition`,`resetScroll`,`viewTransition`,`ignoreBlocker`,`activeProps`,`inactiveProps`,`activeOptions`,`_asChild`]);function Te(e,t){let n={};for(let r in e)we.has(r)||r===`type`&&t!==void 0||r===`disabled`&&t===`a`||(n[r]=e[r]);return n}function Ee(e,t,n,r,i,a){let{activeProps:o,inactiveProps:s,className:c,style:l,target:u}=t,d=m(n?o:s,{})??(n?Ce:Se);Object.assign(e,d),e.href=r,a!==`a`&&(e.disabled=i),e.target=u;let f=d.style;(l||f)&&(e.style=l&&f?{...l,...f}:l||f);let p=d.className;return(c||p)&&(e.className=c?p?`${c} ${p}`:c:p),i&&(e.role=`link`,e[`aria-disabled`]=!0),n&&(e[`data-status`]=`active`,e[`aria-current`]=`page`),e}function De(e,t,n,r){let{to:i,disabled:o,activeOptions:s}=t,c=ye(i,e.protocolAllowlist),l=c===void 0?e.buildLocation(t):void 0,u=l?Oe(l,e,o):c??void 0,d=o||!u,f=c??(u&&a(u)?u:void 0),p=Te(t,r);return p.ref=n,f?(p.href=f,p):Ee(p,t,!!l&&!(!o&&!u)&&be(e.stores.location.get(),l,s,e.basepath,!1),u,d,r)}function Oe(e,t,n){if(n)return;let r=e.maskedLocation??e,i=r.external?r.publicHref:t.history.createHref(r.publicHref)||`/`;if(!r.external&&i===r.publicHref||!h(i,t.protocolAllowlist))return i}var ke=B.memo(B.forwardRef((e,t)=>{let n=e._asChild||`a`,r=xe(e,t,n),i=typeof e.children==`function`?e.children({isActive:r[`data-status`]===`active`}):e.children;return B.createElement(n,r,i)}),Ae);function Ae(e,t){let n=0;for(let r in t)if(n++,e[r]!==t[r]&&(!we.has(r)||!d(e[r],t[r],!1,!0)))return!1;for(let t in e)n--;return n===0}var je=class extends R{constructor(e){super(e),this.useMatch=e=>fe({...e,from:this.id}),this.useRouteContext=e=>ve({...e,from:this.id}),this.useSearch=e=>ge({...e,from:this.id}),this.useParams=e=>he({...e,from:this.id}),this.useLoaderDeps=e=>me({...e,from:this.id}),this.useLoaderData=e=>pe({...e,from:this.id}),this.useNavigate=()=>_e({from:this.fullPath}),this.Link=B.forwardRef((e,t)=>(0,V.jsx)(ke,{ref:t,from:this.fullPath,...e}))}};function Me(e){return new je(e)}var Ne=class extends ne{constructor(e){super(e),this.useMatch=e=>fe({...e,from:this.id}),this.useRouteContext=e=>ve({...e,from:this.id}),this.useSearch=e=>ge({...e,from:this.id}),this.useParams=e=>he({...e,from:this.id}),this.useLoaderDeps=e=>me({...e,from:this.id}),this.useLoaderData=e=>pe({...e,from:this.id}),this.useNavigate=()=>_e({from:this.fullPath}),this.Link=B.forwardRef((e,t)=>(0,V.jsx)(ke,{ref:t,from:this.fullPath,...e}))}};function Pe(e){return new Ne(e)}function Fe(e){return e=>{let t=Me(e);return t.isRoot=!1,t}}var Ie=e=>({createMutableStore:g,createReadonlyStore:r,batch:e=>e()}),Le=e=>new Re(e),Re=class extends I{constructor(e){super(e,Ie)}},ze=()=>{};function Be(e,t){if(t)for(let[n,r]of Object.entries(t))n!==`suppressHydrationWarning`&&r!==void 0&&r!==!1&&e.setAttribute(n,typeof r==`boolean`?``:String(r))}function Ve(e){let{attrs:t,children:n,nonce:r,preventScriptHoist:i}=e,a=B.useMemo(()=>n===void 0?void 0:{__html:n},[n]);switch(e.tag){case`title`:return(0,V.jsx)(`title`,{...t,suppressHydrationWarning:!0,children:n});case`meta`:return(0,V.jsx)(`meta`,{...t,suppressHydrationWarning:!0});case`link`:return(0,V.jsx)(`link`,{...t,precedence:t?.precedence??(t?.rel===`stylesheet`?`default`:void 0),nonce:r,suppressHydrationWarning:!0});case`style`:return e.inlineCss,(0,V.jsx)(`style`,{...t,dangerouslySetInnerHTML:a,nonce:r});case`script`:return(0,V.jsx)(He,{attrs:t,preventScriptHoist:i,children:n});default:return null}}function He({attrs:e,children:t,preventScriptHoist:n}){M(),x();let r=B.useMemo(()=>t===void 0?void 0:{__html:t},[t]),i=typeof e?.type==`string`&&e.type!==``&&e.type!==`text/javascript`&&e.type!==`module`;return B.useEffect(()=>{if(!i){if(e?.src){let t=document.createElement(`a`);t.href=e.src;let n=t.href;for(let e of document.scripts)if(e.src===n)return;let r=document.createElement(`script`);return Be(r,e),document.head.appendChild(r),()=>r.remove()}if(typeof t==`string`){let n=typeof e?.type==`string`?e.type:`text/javascript`,r=typeof e?.nonce==`string`?e.nonce:void 0;for(let e of document.scripts){if(e.hasAttribute(`src`))continue;let i=e.getAttribute(`type`)??`text/javascript`,a=e.getAttribute(`nonce`)??void 0;if(e.textContent===t&&i===n&&a===r)return}let i=document.createElement(`script`);return i.textContent=t,Be(i,e),document.head.appendChild(i),()=>i.remove()}}},[e,t,i]),e?.src?n?(0,V.jsx)(`script`,{...e,onLoad:ze,suppressHydrationWarning:!0}):(0,V.jsx)(`script`,{...e,suppressHydrationWarning:!0}):typeof t==`string`?(0,V.jsx)(`script`,{...e,dangerouslySetInnerHTML:r,suppressHydrationWarning:!0}):null}function Ue(e,t,n,r){n=b(n);let i=n.map(e=>e.meta).filter(e=>e!==void 0),a=[],o={},s;for(let e=i.length-1;e>=0;e--){let n=i[e];for(let e=n.length-1;e>=0;e--){let r=n[e];if(r){if(r.title)s||={tag:`title`,children:r.title};else if(`script:ld+json`in r)try{let e=JSON.stringify(r[`script:ld+json`]);a.push({tag:`script`,attrs:{type:`application/ld+json`},children:f(e)})}catch{}else{let e=r.name??r.property;if(e){if(o[e])continue;o[e]=!0}a.push({tag:`meta`,attrs:{...r,nonce:t}})}}}}s&&a.push(s),t&&a.push({tag:`meta`,attrs:{property:`csp-nonce`,content:t}}),a.reverse();let c=n.flatMap(e=>e.links??[]).filter(e=>e!==void 0).map(e=>({tag:`link`,attrs:{...e,nonce:t}})),l=e.ssr?.manifest,u=[];l&&(n.forEach(e=>{(l.routes[e.routeId]?.css)?.forEach(e=>{let n=E(e);u.push({tag:`link`,attrs:{rel:`stylesheet`,...n,crossOrigin:C(r,`stylesheet`)??n.crossOrigin,suppressHydrationWarning:!0,nonce:t}})})}),l.inlineStyle&&u.push({tag:`style`,attrs:{...l.inlineStyle.attrs,nonce:t},children:l.inlineStyle.children,inlineCss:!0}));let d=[];l&&n.forEach(e=>{l.routes[e.routeId]?.preloads?.forEach(e=>{d.push({tag:`link`,attrs:{...T(l,e,r),nonce:t}})})});let p=n.flatMap(e=>e.styles??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`style`,attrs:{...n,nonce:t},children:e})),m=n.flatMap(e=>e.headScripts??[]).filter(e=>e!==void 0).map(({children:e,...n})=>({tag:`script`,attrs:{...n,nonce:t},children:e})),h=[];return S(h,a),h.push(...d),S(h,c),h.push(...u),S(h,p),S(h,m),h}var We=e=>{let t=M(),n=t.options.ssr?.nonce;return Ue(t,n,t.stores.matches.get(),e)};function Ge(e){let t=We(e.assetCrossOrigin),n=M().options.ssr?.nonce;return(0,V.jsx)(V.Fragment,{children:t.map(e=>(0,B.createElement)(Ve,{...e,key:`tsr-meta-${JSON.stringify(e)}`,nonce:n}))})}var Ke={suppressHydrationWarning:!0},qe=()=>{let e=M(),t=e.options.ssr?.nonce;return Je(te((n=>{let r=L(n,e.ssr?.manifest,t,Ke);for(let e of r[1])if(typeof e.attrs?.src==`string`){let t=e;t.preventScriptHoist=!0}return r})(e.stores.matches.get()),e.serverSsr?.takeInitialHydrationScriptTags()))};function Je(e){return(0,V.jsx)(V.Fragment,{children:e.map((e,t)=>(0,B.createElement)(Ve,{...e,key:`tsr-scripts-${e.tag}-${t}`}))})}var Ye=()=>{let e=l().contextAfterGlobalMiddlewares;if(!e)throw Error(`Global context not set yet, you are calling getGlobalStartContext() before the global middlewares are applied.`);return e},Xe=B.createContext(void 0),Ze=e=>{let t=B.useContext(Xe);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Qe=({client:e,children:t})=>(B.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,V.jsx)(Xe.Provider,{value:e,children:t})),$e={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},et=new class{#e=$e;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function tt(e){setTimeout(e,0)}var nt=typeof window>`u`||`Deno`in globalThis;function rt(){}function it(e,t){return typeof e==`function`?e(t):e}function at(e){return typeof e==`number`&&e>=0&&e!==1/0}function ot(e,t){return Math.max(e+(t||0)-Date.now(),0)}function st(e,t){return typeof e==`function`?e(t):e}function ct(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==ut(o,t.options))return!1}else if(!ft(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function lt(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(dt(t.options.mutationKey)!==dt(a))return!1}else if(!ft(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function ut(e,t){return(t?.queryKeyHashFn||dt)(e)}function dt(e){return JSON.stringify(e,(e,t)=>_t(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function ft(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let n=0;n<t.length;n++)if(!ft(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!ft(e[r],t[r]))return!1;return!0}return!1}var pt=Object.prototype.hasOwnProperty;function mt(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=gt(e)&&gt(t);if(!r&&!(_t(e)&&_t(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:pt.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=mt(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function ht(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function gt(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function _t(e){if(!vt(e))return!1;let t=Object.getPrototypeOf(e),n=t?.constructor;if(n===void 0)return!0;if(typeof n!=`function`)return!1;let r=n.prototype;return!(!vt(r)||!r.hasOwnProperty(`isPrototypeOf`)||t!==Object.prototype)}function vt(e){return Object.prototype.toString.call(e)===`[object Object]`}function yt(e){return new Promise(t=>{et.setTimeout(t,e)})}function bt(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:mt(e,t)}function xt(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function St(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ct=Symbol();function wt(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Ct?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Tt(e,t){return typeof e==`function`?e(...t):!!e}function Et(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r||(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0})),i)}),e}var Dt=()=>nt,Ot=()=>Dt(),kt=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},At=new class extends kt{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},jt=tt;function Mt(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=jt,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var Nt=Mt(),Pt=new class extends kt{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function Ft(e){return Math.min(1e3*2**e,3e4)}function It(e){return(e??`online`)!==`online`||Pt.isOnline()}var Lt=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Rt(e){let t=!1,n=0,r,i=`pending`,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(rt);let c=()=>i!==`pending`,l=t=>{if(!c()){let n=new Lt(t);h(n),e.onCancel?.(n)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>At.isFocused()&&(e.networkMode===`always`||Pt.isOnline())&&e.canRun(),p=()=>It(e.networkMode)&&e.canRun(),m=e=>{c()||(r?.(),i=`resolved`,a(e))},h=e=>{c()||(r?.(),i=`rejected`,o(e))},g=()=>new Promise(t=>{r=e=>{(c()||f())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),_=()=>{if(c())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(m).catch(r=>{if(c())return;let i=e.retry??(Ot()?0:3),a=e.retryDelay??Ft,o=typeof a==`function`?a(n,r):a,s=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);t||!s?h(r):(n++,e.onFail?.(n,r),yt(o).then(()=>f()?void 0:g()).then(()=>{t?h(r):_()}))})};return{promise:s,status:()=>i,cancel:l,continue:()=>(r?.(),s),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?_():g().then(_),s)}}var zt=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),at(this.gcTime)&&(this.#e=et.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Ot()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(et.clearTimeout(this.#e),this.#e=void 0)}};function Bt(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Et(e,()=>t.signal,()=>n=!0)},u=wt(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?St:xt;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?Ht:Vt,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Vt(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function Vt(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Ht(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Ut=class extends zt{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Kt(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Kt(this.options);e.data!==void 0&&(this.setState(Gt(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=bt(this.state.data,e,this.options);return this.#c({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#c({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(rt).catch(rt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>st(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ct||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>st(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!ot(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){let t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(this.#a&&(this.#s||this.state.fetchStatus===`paused`&&this.state.status===`pending`?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#c({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=wt(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Bt(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#c({type:`fetch`,meta:a.fetchOptions?.meta});let o=this.#a=Rt({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Lt&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#c({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#c({type:`pause`})},onContinue:()=>{this.#c({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await o.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Lt){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#c({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.#a===o&&(this.#a=void 0),this.scheduleGc()}}#c(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Wt(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Gt(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),Nt.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Wt(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:It(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Gt(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Kt(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var qt=class extends zt{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Jt(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??(this.state.status===`pending`?this.execute(this.state.variables):Promise.resolve())}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},r=this.#r=Rt({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)}),i=this.state.status===`pending`,a=!r.canStart();try{if(i)t();else{this.#i({type:`pending`,variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:a})}let o=await r.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#i({type:`success`,data:o}),o}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#r===r&&(this.#r=void 0),this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),Nt.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Jt(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Yt=class extends kt{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new qt({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Xt(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Xt(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Xt(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=Xt(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){Nt.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>lt(t,e))}findAll(e={}){return this.getAll().filter(t=>lt(e,t))}notify(e){Nt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return Nt.batch(()=>Promise.all(e.map(e=>e.continue().catch(rt))))}};function Xt(e){return e.options.scope?.id}var Zt=class extends kt{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),ht(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&dt(t.mutationKey)!==dt(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onSubscribe(){this.listeners.size===1&&this.#n&&(this.#n.addObserver(this),this.#i())}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Jt();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){Nt.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},Qt=class extends kt{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??ut(r,t),a=this.get(i);return a||(a=new Ut({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){this.#e.get(e.queryHash)===e&&(e.destroy(),this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){Nt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>ct(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>ct(e,t)):t}notify(e){Nt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Nt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Nt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},$t=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Qt,this.#t=e.mutationCache||new Yt,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=At.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Pt.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(st(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=it(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return Nt.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;Nt.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return Nt.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=Nt.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(rt).catch(rt)}invalidateQueries(e,t={}){return Nt.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=Nt.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(rt)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(rt)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(st(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(st(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(rt).catch(rt)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(rt).catch(rt)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return Pt.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(dt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{ft(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(dt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{ft(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=ut(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===Ct&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}};function en(e,t){let n=Ze(t),[r]=B.useState(()=>new Zt(n,e));B.useEffect(()=>{r.setOptions(e)},[r,e]);let i=B.useSyncExternalStore(B.useCallback(e=>r.subscribe(Nt.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=B.useCallback((...e)=>{r.mutate(e[0],e[1]).catch(rt)},[r]);if(i.error&&Tt(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var tn=Object.freeze({dark:`z_scheme-dark`,light:`z_scheme-light`,"light dark":`z_scheme-light-dark`});Object.keys(tn).map(e=>`.${tn[e]}{color-scheme:${e};}`).join(`
2
+ `);function nn({className:e}){return(t=>{if(!t)return{className:e};let{className:n,style:r,vars:i}=t,a=i?{...i,...r}:r,o=e&&n?`${e} ${n}`:n||e;return a?{className:o,style:a}:{className:o}})}function rn(e){let t={class:e.className};if(e.style!==void 0){let n=[];for(let[t,r]of Object.entries(e.style)){if(r==null)continue;let e=t.startsWith(`--`)?t:t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).replace(/^ms-/,`-ms-`);n.push(`${e}:${r}`)}t.style=n.join(`;`)}for(let[n,r]of Object.entries(e))n.startsWith(`data-`)&&(t[n]=r);return t}var an=Symbol.for(`zyzz.composition.input.v1`);function on(e){return Object.defineProperty(rn(e),an,{value:e})}function sn(e){let t=nn({className:e.className}),n=Object.keys(e.axes).map(t=>({attribute:`data-${t}`,axis:t,fallback:Object.hasOwn(e.defaults,t)?e.defaults[t]:void 0}));return(r={})=>{let i=t(r);for(let e of n){let t=Object.hasOwn(r,e.axis)?r[e.axis]:void 0,n=t===void 0?e.fallback:t;n!=null&&(i[e.attribute]=String(n))}return e.html?rn(i):i}}function cn(e,t=!1,n=`set`,r){let i=Object.fromEntries(e);return(e={})=>{let a=e&&typeof e==`object`?e[n]??r:void 0;if(!e||typeof e!=`object`||Array.isArray(e)||!Object.hasOwn(e,n)&&r===void 0||typeof a!=`string`||!Object.hasOwn(i,a)||Object.keys(e).some(e=>e!==n&&e!==`colorScheme`)||e.colorScheme!==void 0&&![`light`,`dark`,`light dark`].includes(e.colorScheme))throw TypeError(`Invalid variable selection.`);let o=e.colorScheme,s={className:o?`${i[a]} ${tn[o]}`:i[a],...o?{style:{colorScheme:o}}:{}};return t?on(s):s}}function ln({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=B.useRef(e!==void 0),[a,o]=B.useState(t);return[i&&e!==void 0?e:a,B.useCallback(e=>{i||o(e)},[])]}var un={...B},dn={};function fn(e,t){let n=B.useRef(dn);return n.current===dn&&(n.current=e(t)),n}var pn=un.useInsertionEffect,mn=pn&&pn!==un.useLayoutEffect?pn:e=>e();function H(e){let t=fn(hn).current;return t.next=e,mn(t.effect),t.trampoline}function hn(){let e={next:void 0,callback:gn,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function gn(){}function _n(){}var vn=Object.freeze([]),yn=Object.freeze({}),U=typeof document<`u`?B.useLayoutEffect:()=>{},bn=B.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function xn(){return B.useContext(bn)}function Sn(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=H(i),[,o]=B.useState(!1),s=fn(wn).current,c=fn(Cn).current,l=B.useRef(0),u=B.useRef(!0),d=B.useRef(null),f=B.useRef(null),p=H(()=>{u.current||(u.current=!0,o(e=>!e))}),m=H((e,t)=>{c.set(e,t),p()}),h=H(e=>{c.delete(e),p()}),g=H(e=>{let t=new Map;return n.current.length=0,r&&(r.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),n.current[e.index]=e.element,r&&(r.current[e.index]=e.registration.label===void 0?e.registration.textRef?.current?.textContent??e.element.textContent:e.registration.label)}),l.current=n.current.length,t});function _(e){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!=`function`||e.length<2)return;let t=new MutationObserver(n=>{if(!Dn(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&On(r,n)>0){t.disconnect(),p();return}r=n}});f.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=En(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}let v=H(()=>{let[e,t]=Tn(c),n=g(e),r=d.current,i=!r||r.length!==e.length||e.some((e,t)=>{let n=r[t];return e.index!==n.index||e.element!==n.element||e.registration.index!==n.registration.index||e.registration.metadata!==n.registration.metadata});_(t),d.current=e,u.current=!1,i&&(s.forEach(e=>e(n)),a(n))});U(()=>(!u.current&&d.current&&g(d.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,g]),U(()=>{u.current&&v()}),U(()=>()=>{f.current?.disconnect(),u.current=!0},[]);let y=H(e=>(s.add(e),()=>{s.delete(e)})),b=B.useMemo(()=>({register:m,unregister:h,subscribeMapChange:y,nextIndexRef:l}),[m,h,y,l]);return(0,V.jsx)(bn.Provider,{value:b,children:t})}function Cn(){return new Map}function wn(){return new Set}function Tn(e){let t=new Set,n=[],r=[];e.forEach((e,i)=>{if(!i.isConnected)return;let a=e.index,o={index:a??-1,element:i,registration:e};a===null?r.push(o):a>=0&&(t.add(a),n.push(o))});let i=0;return r.sort((e,t)=>On(e.element,t.element)),r.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,n.push(e),i+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]}function En(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function Dn(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}function On(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function kn(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var An=kn(`https://base-ui.com/production-error`,`Base UI`);function jn(e,t,n,r){let i=fn(Nn).current;return Pn(i,e,t,n,r)&&In(i,[e,t,n,r]),i.callback}function Mn(e){let t=fn(Nn).current;return Fn(t,e)&&In(t,e),t.callback}function Nn(){return{callback:null,cleanup:null,refs:[]}}function Pn(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function Fn(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function In(e,t){e.refs=t,e.callback=t.every(e=>e==null)?null:n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}var Ln=19;function Rn(e){return Ln>=e}function zn(e){if(!B.isValidElement(e))return null;let t=e,n=t.props;return(Rn(19)?n?.ref:t.ref)??null}function Bn(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function Vn(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e)}else i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function Hn(e,t){return typeof e==`function`?e(t):e}function Un(e,t){return typeof e==`function`?e(t):e}var Wn={};function Gn(e,t,n,r,i){if(!n&&!r&&!i&&!e)return qn(t);let a=qn(e);return t&&(a=Jn(a,t)),n&&(a=Jn(a,n)),r&&(a=Jn(a,r)),i&&(a=Jn(a,i)),a}function Kn(e){if(e.length===0)return Wn;if(e.length===1)return qn(e[0]);let t=qn(e[0]);for(let n=1;n<e.length;n+=1)t=Jn(t,e[n]);return t}function qn(e){return Qn(e)?{...$n(e,Wn)}:Yn(e)}function Jn(e,t){return Qn(t)?$n(t,e):Xn(e,t)}function Yn(e){let t={...e};for(let e in t){let n=t[e];Zn(e,n)&&(t[e]=tr(n))}return t}function Xn(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=Bn(e.style,r);break;case`className`:e[n]=rr(e.className,r);break;default:e[n]=Zn(n,r)?er(e[n],r):r}}return e}function Zn(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function Qn(e){return typeof e==`function`}function $n(e,t){return Qn(e)?e(t):e??Wn}function er(e,t){return t?e?(...n)=>{let r=n[0];if(ir(r)){let i=r;nr(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:tr(t):e}function tr(e){return e&&((...t)=>{let n=t[0];return ir(n)&&nr(n),e(...t)})}function nr(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function rr(e,t){return t?e?t+` `+e:t:e}function ir(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function ar(e,t,n={}){let r=t.render;n.enabled!==!1&&(r=lr(r));let i=or(t,n,r);if(n.enabled===!1)return null;let a=n.state??yn;return ur(e,r,i,a)}function or(e,t,n){let{className:r,style:i}=e,{state:a=yn,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?Hn(r,a):void 0,d=l?Un(i,a):void 0,f=l?Vn(a,c):yn,p=l&&s?sr(s):void 0,m=l?Bn(f,p)??{}:yn;return typeof document<`u`&&(l?m.ref=Array.isArray(o)?Mn([m.ref,zn(n),...o]):jn(m.ref,zn(n),o):jn(null,null)),l?(u!==void 0&&(m.className=rr(m.className,u)),d!==void 0&&(m.style=Bn(m.style,d)),m):yn}function sr(e){return Array.isArray(e)?Kn(e):Gn(void 0,e)}var cr=Symbol.for(`react.lazy`);function lr(e){if(e?.$$typeof!==cr)return e;let t=B.Children.toArray(e)[0];return B.isValidElement(t)?t:e}function ur(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=Gn(n,t.props);return e.ref=n.ref,B.cloneElement(t,e)}if(e&&typeof e==`string`)return dr(e,n);throw Error(An(8))}function dr(e,t){return e===`button`?(0,B.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,B.createElement)(`img`,{alt:``,...t,key:t.key}):B.createElement(e,t)}var fr=0;function pr(e,t=`mui`){let[n,r]=B.useState(e),i=e||n;return B.useEffect(()=>{n??(fr+=1,r(`${t}-${fr}`))},[n,t]),i}var mr=un.useId;function hr(e,t){if(mr!==void 0){let n=mr();return e??(t?`${t}-${n}`:n)}return pr(e,t)}function gr(e){return hr(e,`base-ui`)}var _r=`none`,vr=`trigger-press`,yr=`trigger-hover`,br=`trigger-focus`,xr=`outside-press`,Sr=`input-change`,Cr=`input-clear`,wr=`input-paste`,Tr=`escape-key`,Er=`keyboard`,Dr=`disabled`,Or=`imperative-action`;function kr(e,t,n,r){let i=!1,a=!1,o=r??yn;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}function Ar(e,t,n){let r=n??yn;return{reason:e,event:t??new Event(`base-ui`),...r}}function jr(e){B.useEffect(e,vn)}var Mr=null;globalThis.requestAnimationFrame;var Nr=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||this.callbacks[t]!==null&&(this.callbacks[t]=null,--this.callbacksCount)}},Pr=class e{static create(){return new e}static request(e){return Nr.request(e)}static cancel(e){return Nr.cancel(e)}currentId=Mr;request(e){this.cancel(),this.currentId=Nr.request(()=>{this.currentId=Mr,e()})}cancel=()=>{this.currentId!==Mr&&(Nr.cancel(this.currentId),this.currentId=Mr)};disposeEffect=()=>this.cancel};function Fr(){let e=fn(Pr.create).current;return jr(e.disposeEffect),e}function Ir(e,t=!1,n=!1,r=!1){let[i,a]=B.useState(e&&t?`idle`:void 0),[o,s]=B.useState(e&&!r);return e&&!o&&(s(!0),a(`starting`)),!e&&o&&i!==`ending`&&!n&&a(`ending`),!e&&!o&&i===`ending`&&a(void 0),U(()=>{if(!e&&o&&i!==`ending`&&n){let e=Pr.request(()=>{a(`ending`)});return()=>{Pr.cancel(e)}}},[e,o,i,n]),U(()=>{if(!e||t)return;let n=Pr.request(()=>{a(void 0)});return()=>{Pr.cancel(n)}},[t,e]),U(()=>{if(!e||!t)return;e&&o&&i!==`idle`&&a(`starting`);let n=Pr.request(()=>{a(`idle`)});return()=>{Pr.cancel(n)}},[t,e,o,i]),{mounted:o,setMounted:s,transitionStatus:i}}function Lr(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=xn(),u=B.useRef(-1),[d,f]=B.useState(a==null&&t?()=>{if(u.current===-1){let e=l.current;l.current+=1,u.current=e}return u.current}:-1),p=a??d,m=B.useRef(null),h=B.useCallback(e=>{let t=m.current;t&&s(t),m.current=e,e&&o(e,{metadata:r??null,index:a??null,label:n,textRef:i})},[a,o,s,r,n,i]);return U(()=>{if(a==null)return c(e=>{let t=m.current?e.get(m.current)?.index:null;t!=null&&f(t)})},[a,c]),{ref:h,index:p}}var Rr=`data-starting-style`,zr=`data-ending-style`,Br={[Rr]:``},Vr={[zr]:``},Hr={transitionStatus(e){return e===`starting`?Br:e===`ending`?Vr:null}};function Ur(){return typeof window<`u`}function Wr(e){return qr(e)?(e.nodeName||``).toLowerCase():`#document`}function Gr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Kr(e){return((qr(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function qr(e){return Ur()?e instanceof Node||e instanceof Gr(e).Node:!1}function W(e){return Ur()?e instanceof Element||e instanceof Gr(e).Element:!1}function Jr(e){return Ur()?e instanceof HTMLElement||e instanceof Gr(e).HTMLElement:!1}function Yr(e){return!Ur()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Gr(e).ShadowRoot}function Xr(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=si(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Zr(e){return/^(table|td|th)$/.test(Wr(e))}function Qr(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var $r=/transform|translate|scale|rotate|perspective|filter/,ei=/paint|layout|strict|content/,ti=e=>!!e&&e!==`none`,ni;function ri(e){let t=W(e)?si(e):e;return ti(t.transform)||ti(t.translate)||ti(t.scale)||ti(t.rotate)||ti(t.perspective)||!ai()&&(ti(t.backdropFilter)||ti(t.filter))||$r.test(t.willChange||``)||ei.test(t.contain||``)}function ii(e){let t=li(e);for(;Jr(t)&&!oi(t);){if(ri(t))return t;if(Qr(t))return null;t=li(t)}return null}function ai(){return ni??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ni}function oi(e){return/^(html|body|#document)$/.test(Wr(e))}function si(e){return Gr(e).getComputedStyle(e)}function ci(e){return W(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function li(e){if(Wr(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Yr(e)&&e.host||Kr(e);return Yr(t)?t.host:t}function ui(e){let t=li(e);return oi(t)?(e.ownerDocument||e).body:Jr(t)&&Xr(t)?t:ui(t)}function di(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=ui(e),i=r===e.ownerDocument?.body,a=Gr(r);if(i){let e=fi(a);return t.concat(a,a.visualViewport||[],Xr(r)?r:[],e&&n?di(e):[])}return t.concat(r,di(r,[],n))}function fi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var pi=B.createContext(void 0);function mi(e=!1){let t=B.useContext(pi);if(t===void 0&&!e)throw Error(An(16));return t}function hi(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:B.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function gi(e){return e?.ownerDocument||document}function _i(e,t,{detail:n=0}={}){e.dispatchEvent(new(Gr(e)).PointerEvent(`click`,{bubbles:!0,cancelable:!0,composed:!0,detail:n,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function vi(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=B.useRef(null),s=mi(!0),c=a??s!==void 0,{props:l}=hi({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=B.useCallback(()=>{let e=o.current;yi(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return U(u,[u]),{getButtonProps:B.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return Gn({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(nr(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=yi(r),s=!i&&bi(r),l=n&&(i?a:!s),u=e.key===`Enter`,d=e.key===` `,f=r.getAttribute(`role`),p=f?.startsWith(`menuitem`)||f===`option`||f===`gridcell`;if(n&&c&&d){if(e.defaultPrevented&&p)return;e.preventDefault(),(!i||a)&&(e.preventBaseUIHandler(),_i(r,e))}else!l||i||!d&&!u?n&&s&&d&&e.preventDefault():e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),_i(r,e)))},onKeyUp(e){t||(nr(e),a?.(e),e.target===e.currentTarget&&i&&c&&yi(e.currentTarget)&&e.key===` `?e.preventDefault():e.baseUIHandlerPrevented||e.target===e.currentTarget&&!i&&!c&&!e.defaultPrevented&&e.key===` `&&(e.preventBaseUIHandler(),_i(e.currentTarget,e)))},onPointerDown(e){t?e.preventDefault():s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:H(e=>{o.current=e,u()})}}function yi(e){return Jr(e)&&e.tagName===`BUTTON`}function bi(e){return Jr(e)&&e.tagName===`A`&&!!e.href}function xi(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Si(e){let t=fn(Ci,e).current;return t.next=e,U(t.effect),t}function Ci(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function wi(e){return e==null?e:`current`in e?e.current:e}var Ti=e(c(),1),Ei=null;function Di(e){if(!Ei){let e=[];Ei=e,queueMicrotask(()=>{Ei=null,Ti.flushSync(()=>{for(let t of e)t()})})}Ei.push(e)}function Oi(e,t=!1,n=!1){let r=Fr();return H((i,a=null)=>{r.cancel();let o=wi(e);if(o==null)return;let s=o,c=()=>{n?Di(()=>{a?.aborted||i()}):Ti.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()},()=>{a?.aborted||(s.getAnimations().some(e=>e.pending||e.playState!==`finished`)?l():c())})}if(t){let e=Rr;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0})}else r.request(l)})}function ki(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=H(a),s=Oi(r,n,i);B.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}function Ai(e){return(0,V.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,V.jsx)(`path`,{d:`M11.9804 6.1464C12.1757 5.9514 12.4923 5.95122 12.6875 6.1464C12.8823 6.3416 12.8823 6.65827 12.6875 6.85343L8.82516 10.7157C8.36974 11.1709 7.63132 11.1707 7.17574 10.7157L3.31344 6.85343C3.11818 6.65816 3.11818 6.34166 3.31344 6.1464C3.50871 5.95124 3.82524 5.95117 4.02047 6.1464L7.88277 10.0087C7.94782 10.0731 8.05324 10.0734 8.11813 10.0087L11.9804 6.1464Z`,fill:`currentColor`})})}var{style:ji,variants:Mi,vars:Ni}={vars:cn([[`default`,`z-theme-tds_2f_web-theme`]],!1,`set`,`default`)};function Pi(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:Fi,platform:Ii,maxTouchPoints:Li}=Pi(),Ri=Fi.toLowerCase(),zi=Ii.toLowerCase(),Bi=/^i(os$|p)/.test(zi)||zi===`macintel`&&Li>1,Vi=`android`,Hi=zi===Vi||Ri.includes(Vi),Ui=!Bi&&zi.startsWith(`mac`);zi.startsWith(`win`),!Hi&&/^(linux|chrome os)/.test(zi);var Wi=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!Wi&&Ri.includes(`firefox`),!Wi&&Ri.includes(`chrom`);var Gi=/jsdom|happydom/.test(Ri),Ki=0,qi=class e{static create(){return new e}currentId=Ki;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Ki,t()},e)}isStarted(){return this.currentId!==Ki}clear=()=>{this.currentId!==Ki&&(clearTimeout(this.currentId),this.currentId=Ki)};disposeEffect=()=>this.clear};function Ji(){let e=fn(qi.create).current;return jr(e.disposeEffect),e}function Yi(e){e.preventDefault(),e.stopPropagation()}function Xi(e){return`nativeEvent`in e}function Zi(e){return e.pointerType===``&&e.isTrusted?!0:Hi&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Qi(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function $i(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function ea(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function ta(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Yr(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function na(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}var ra=`data-base-ui-focusable`,ia=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,aa=`data-open`,oa=`data-closed`,sa=`data-anchor-hidden`,ca={"data-popup-open":``},la={[aa]:``},ua={[oa]:``},da={[sa]:``},fa={open(e){return e?ca:null}},pa={open(e){return e?la:ua},anchorHidden(e){return e?da:null}},ma={...pa,...Hr},ha=`data-trigger-disabled`;function ga(e,t){if(!W(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(ha);for(let[,e]of t.entries())if(ta(e,n))return!e.hasAttribute(ha);return!1}function _a(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function va(e){return e.matches(`html,body`)}function ya(e){return Jr(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function ba(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${ia}`)!=null}function xa(e){if(!e||Gi)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Sa(e,t){return t!=null&&!Qi(t)?0:typeof e==`function`?e():e}function Ca(e,t,n){let r=Sa(e,n);return typeof r==`number`?r:r?.[t]}function wa(e){return typeof e==`function`?e():e}function Ta(e,t){return t||e===`click`||e===`mousedown`}function Ea(e){return e?.includes(`mouse`)&&e!==`mousedown`}var Da=B.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new qi,currentIdRef:{current:null},currentContextRef:{current:null}});function Oa(e,t){e.current=t.current}function ka(e){let{children:t,delay:n,timeoutMs:r=0}=e,i=B.useRef(n),a=B.useRef(n),o=B.useRef(null),s=B.useRef(null),c=Ji();return U(()=>{a.current=n,o.current?i.current={open:Ca(i.current,`open`),close:Ca(n,`close`)}:i.current=n},[n,o,i,a]),(0,V.jsx)(Da.Provider,{value:B.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:o,timeoutMs:r,currentContextRef:s,timeout:c}),[r,c]),children:t})}function Aa(e,t={open:!1}){let{open:n}=t,r=`rootStore`in e?e.rootStore:e,i=r.useState(`floatingId`),{currentIdRef:a,delayRef:o,timeoutMs:s,initialDelayRef:c,currentContextRef:l,hasProvider:u,timeout:d}=B.useContext(Da),[f,p]=B.useState(!1),m=B.useRef(n);return U(()=>{m.current=n},[n]),U(()=>{function e(){l.current?.setIsInstantPhase(!1),a.current=null,l.current=null,o.current=c.current,d.clear()}if(a.current&&!n&&a.current===i){if(p(!1),s){let t=i;return d.start(s,()=>{r.select(`open`)||a.current&&a.current!==t||e()}),()=>{(m.current||a.current!==t)&&d.clear()}}e()}},[n,i,a,o,s,c,l,d,r]),U(()=>{if(!n)return;let e=l.current,t=a.current;d.clear(),l.current={onOpenChange:r.setOpen,setIsInstantPhase:p},a.current=i,o.current={open:0,close:Ca(c.current,`close`)},t!==null&&t!==i?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,kr(_r))):(p(!1),e?.setIsInstantPhase(!1))},[n,i,r,a,o,c,l,d]),U(()=>()=>{if(a.current===i){if(l.current=null,!m.current)return;a.current=null,Oa(o,c),d.clear()}},[l,a,o,i,c,d]),B.useMemo(()=>({activeIdRef:a,hasProvider:u,delayRef:o,isInstantPhase:f}),[a,u,o,f])}function ja(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}var Ma={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Na={...Ma,position:`fixed`,top:0,left:0},Pa={...Ma,position:`absolute`},Fa=Math.min,Ia=Math.max,La=Math.round,Ra=Math.floor,za=e=>({x:e,y:e}),Ba={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Va(e,t,n){return Ia(e,Fa(t,n))}function Ha(e,t){return typeof e==`function`?e(t):e}function Ua(e){return e.split(`-`)[0]}function Wa(e){return e.split(`-`)[1]}function Ga(e){return e===`x`?`y`:`x`}function Ka(e){return e===`y`?`height`:`width`}function qa(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Ja(e){return Ga(qa(e))}function Ya(e,t,n){n===void 0&&(n=!1);let r=Wa(e),i=Ja(e),a=Ka(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=io(o)),[o,io(o)]}function Xa(e){let t=io(e);return[Za(e),t,Za(t)]}function Za(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Qa=[`left`,`right`],$a=[`right`,`left`],eo=[`top`,`bottom`],to=[`bottom`,`top`];function no(e,t,n){switch(e){case`top`:case`bottom`:return n?t?$a:Qa:t?Qa:$a;case`left`:case`right`:return t?eo:to;default:return[]}}function ro(e,t,n,r){let i=Wa(e),a=no(Ua(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Za)))),a}function io(e){let t=Ua(e);return Ba[t]+e.slice(t.length)}function ao(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function oo(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:ao(e)}function so(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function co(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...co(e,t.id,n)])}function lo(e){return`data-base-ui-${e}`}var uo={style:{transition:`none`}},fo={fallbackAxisSide:`end`},po=B.createContext(null),mo=()=>B.useContext(po),ho=lo(`portal`);function go(e={}){let{ref:t,container:n,componentProps:r=yn,elementProps:i}=e,a=hr(),o=mo()?.portalNode,[s,c]=B.useState(null),[l,u]=B.useState(null),d=H(e=>{e!==null&&u(e)}),f=B.useRef(null);U(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}let e=(n&&(qr(n)?n:n.current))??o??document.body;e==null?f.current&&(f.current=null,u(null),c(null)):f.current!==e&&(f.current=e,u(null),c(e))},[n,o]);let p=ar(`div`,r,{ref:[t,d],props:[{id:a,[ho]:``},i]}),m=s&&p?Ti.createPortal(p,s):null;return{node:l,nodeId:B.isValidElement(p)?p.props.id:void 0,subtree:m}}function _o(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var vo=B.createContext(null),yo=B.createContext(null),bo=()=>B.useContext(vo)?.id||null,xo=e=>{let t=B.useContext(yo);return e??t};function So(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function Co(e){return e!=null&&e.clientX!=null}function wo(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=`rootStore`in e?e.rootStore:e,a=i.useState(`open`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.context.dataRef,l=B.useRef(!1),u=B.useRef(null),[d,f]=B.useState(),[p,m]=B.useState([]),h=H(e=>{i.set(`positionReference`,e)}),g=H((e,t,n)=>{l.current||(!c.current.openEvent||Co(c.current.openEvent))&&i.set(`positionReference`,So(n??s,{x:e,y:t,axis:r,dataRef:c,pointerType:d}))}),_=H(e=>{a?u.current||(g(e.clientX,e.clientY,e.currentTarget),m([])):g(e.clientX,e.clientY,e.currentTarget)}),v=Qi(d)?o:a;B.useEffect(()=>{if(!n){h(s);return}if(!v)return;function e(){u.current?.(),u.current=null}let t=Gr(o);function r(t){let n=na(t);ta(o,n)?e():g(t.clientX,t.clientY)}return!c.current.openEvent||Co(c.current.openEvent)?u.current=xi(t,`mousemove`,r):h(s),e},[v,n,o,c,s,i,g,h,p]),B.useEffect(()=>()=>{i.set(`positionReference`,null)},[i]),B.useEffect(()=>{n&&!o&&(l.current=!1)},[n,o]),B.useEffect(()=>{!n&&a&&(l.current=!0)},[n,a]);let y=B.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:_,onMouseEnter:_}},[_]);return B.useMemo(()=>n?{reference:y,trigger:y}:{},[n,y])}function To(){return!1}function Eo(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Do(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=To,bubbles:s,externalTree:c}=t,l=`rootStore`in e?e.rootStore:e,u=l.useState(`open`),d=l.useState(`floatingElement`),{dataRef:f,events:p}=l.context,m=xo(c),h=H(typeof i==`function`?i:()=>!1),g=typeof i==`function`?h:i,_=g!==!1,v=H(()=>a),{escapeKey:y,outsidePress:b}=Eo(s),x=B.useRef(!1),S=B.useRef(!1),C=B.useRef(!1),w=B.useRef(!1),T=B.useRef(!1),E=B.useRef(``),D=B.useRef(null),O=Ji(),k=Ji(),A=H(()=>{k.clear(),f.current.insideReactTree=!1}),j=H(e=>{let t=f.current.floatingContext?.nodeId;return(m?co(m.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),M=H(e=>_a(e,l.select(`floatingElement`))||_a(e,l.select(`domReferenceElement`))),N=H(e=>{o()&&l.setOpen(!1,kr(vr,e.nativeEvent))}),P=H(e=>{if(!u||!n||!r||e.key!==`Escape`||T.current||!y&&j(`__escapeKeyBubbles`))return;let t=kr(Tr,Xi(e)?e.nativeEvent:e);l.setOpen(!1,t),t.isCanceled||e.preventDefault(),!y&&!t.isPropagationAllowed&&e.stopPropagation()}),F=H(()=>{f.current.insideReactTree=!0,k.start(0,A)}),I=H(e=>{if(!u||!n||e.button!==0)return;let t=na(e.nativeEvent);ta(l.select(`floatingElement`),t)&&(x.current||(x.current=!0,S.current=!1))}),ee=H(e=>{u&&n&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&x.current&&(S.current=!0)});B.useEffect(()=>{function e(e){e.open||(w.current=!1)}return p.on(`openchange`,e),()=>{p.off(`openchange`,e)}},[p]),B.useEffect(()=>{if(!u||!n)return u||(w.current=!1),A;f.current.__escapeKeyBubbles=y,f.current.__outsidePressBubbles=b;let e=new qi,t=new qi,i=gi(d);function a(){e.clear(),T.current=!0}function o(){e.start(Wi?5:0,()=>{T.current=!1})}function s(){C.current=!0,t.start(0,()=>{C.current=!1})}function c(){x.current=!1,S.current=!1}function p(){let e=E.current,t=e===`pen`||!e?`mouse`:e,n=v(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function h(e){let t=p();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function k(e){let t=f.current.floatingContext?.nodeId,n=m&&co(m.nodesRef.current,t).some(t=>_a(e,t.context?.elements.floating));return M(e)||n}function N(e){if(h(e)){e.type!==`click`&&!M(e)&&(t.clear(),C.current=!1),A();return}if(f.current.insideReactTree){A();return}let n=na(e),r=`[${lo(`inert`)}]`,i=W(n)?n.getRootNode():null,a=Array.from((Yr(i)?i:gi(l.select(`floatingElement`))).querySelectorAll(r)),o=l.context.triggerElements;if(n&&(o.hasElement(n)||o.hasMatchingElement(e=>ta(e,n))))return;let s=W(n)?n:null;for(;s&&!oi(s);){let e=li(s);if(oi(e)||!W(e))break;s=e}if(!(a.length&&W(n)&&!va(n)&&!ta(n,l.select(`floatingElement`))&&a.every(e=>!ta(s,e)))){if(Jr(n)&&!(`touches`in e)){let t=oi(n),r=si(n),i=/auto|scroll/,a=t||i.test(r.overflowX),o=t||i.test(r.overflowY),s=a&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,c=o&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,l=r.direction===`rtl`,u=c&&(l?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),d=s&&e.offsetY>n.clientHeight;if(u||d)return}if(!k(e)){if(p()===`intentional`){if(e.detail!==0&&!Zi(e)&&!w.current)return;if(C.current){t.clear(),C.current=!1;return}}(typeof g!=`function`||g(e))&&(j(`__outsidePressBubbles`)||(l.setOpen(!1,kr(xr,e)),A()))}}}function F(e){p()===`sloppy`&&e.pointerType!==`touch`&&l.select(`open`)&&n&&!M(e)&&N(e)}function I(e){if(p()!==`sloppy`||!l.select(`open`)||!n||M(e))return;let t=e.touches[0];t&&(D.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},O.start(1e3,()=>{D.current&&(D.current.dismissOnTouchEnd=!1,D.current.dismissOnMouseDown=!1)}))}function ee(e,t){let n=na(e);if(!n)return;let r=xi(n,e.type,()=>{t(e),r()})}function L(e){E.current=`touch`,ee(e,I)}function te(e){O.clear(),e.type===`pointerdown`&&(e.button===0&&(w.current=!0),E.current=e.pointerType),(e.type!==`mousedown`||!D.current||D.current.dismissOnMouseDown)&&ee(e,e=>{e.type===`pointerdown`?F(e):N(e)})}function R(e){if(e.type===`pointercancel`&&(w.current=!1),!x.current)return;let n=S.current;c(),p()===`intentional`&&(e.type===`pointercancel`?n&&s():k(e)||(n?s():(typeof g!=`function`||g(e))&&(t.clear(),C.current=!0,A())))}function ne(e){if(p()!==`sloppy`||!D.current||M(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-D.current.startX),r=Math.abs(t.clientY-D.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(D.current.dismissOnTouchEnd=!0),i>10&&(N(e),O.clear(),D.current=null)}function re(e){ee(e,ne)}function ie(e){p()===`sloppy`&&D.current&&!M(e)&&(D.current.dismissOnTouchEnd&&N(e),O.clear(),D.current=null)}function ae(e){ee(e,ie)}let z=ja(r&&ja(xi(i,`keydown`,P),xi(i,`compositionstart`,a),xi(i,`compositionend`,o)),_&&ja(xi(i,`click`,te,!0),xi(i,`pointerdown`,te,!0),xi(i,`pointerup`,R,!0),xi(i,`pointercancel`,R,!0),xi(i,`mousedown`,te,!0),xi(i,`mouseup`,R,!0),xi(i,`touchstart`,L,{capture:!0,passive:!0}),xi(i,`touchmove`,re,{capture:!0,passive:!0}),xi(i,`touchend`,ae,{capture:!0,passive:!0})));return()=>{z(),e.clear(),t.clear(),c(),C.current=!1,A()}},[f,d,r,_,g,u,n,y,b,P,A,v,j,M,m,l,O]);let L=B.useMemo(()=>({onKeyDown:P,onPointerDown:N,onClick:N}),[P,N]),te=B.useMemo(()=>({onKeyDown:P,onPointerDown:ee,onMouseDown:ee,onClickCapture:F,onMouseDownCapture(e){F(),I(e)},onPointerDownCapture(e){F(),I(e)},onMouseUpCapture:F,onTouchEndCapture:F,onTouchMoveCapture:F}),[P,F,I,ee]);return B.useMemo(()=>n?{reference:L,floating:te,trigger:L}:{},[n,L,te])}function Oo(e,t,n){let{reference:r,floating:i}=e,a=qa(t),o=Ja(t),s=Ka(o),c=Ua(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=Wa(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function ko(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Ha(t,e),p=oo(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=so(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=so(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Ao=50,jo=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:ko},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Oo(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Ao&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=Oo(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Mo=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Ha(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=Ua(r),_=qa(o),v=Ua(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[io(o)]:Xa(o)),x=p!==`none`;!d&&x&&b.push(...ro(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Ya(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===qa(t)||T.every(e=>qa(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=qa(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},No=new Set([`left`,`top`]);async function Po(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=Ua(n),s=Wa(n),c=qa(n)===`y`,l=No.has(o)?-1:1,u=a&&c?-1:1,d=Ha(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Fo=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Po(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Io=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Ha(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=qa(i),p=Ga(f),m=u[p],h=u[f],g=(e,t)=>Va(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Lo=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Ha(e,t),u={x:n,y:r},d=qa(i),f=Ga(d),p=u[f],m=u[d],h=Ha(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=No.has(Ua(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Ro=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Ha(e,t),c=await i.detectOverflow(t,s),l=Ua(n),u=Wa(n),d=qa(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Fa(p-c[m],g),y=Fa(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Ia(c.left,c.right):S=p-2*Ia(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function zo(e){let t=si(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Jr(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=La(n)!==a||La(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Bo(e){return W(e)?e:e.contextElement}function Vo(e){let t=Bo(e);if(!Jr(t))return za(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=zo(t),o=(a?La(n.width):n.width)/r,s=(a?La(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Ho=za(0);function Uo(e){let t=Gr(e);return!ai()||!t.visualViewport?Ho:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Wo(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Gr(e)}function Go(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Bo(e),o=za(1);t&&(r?W(r)&&(o=Vo(r)):o=Vo(e));let s=Wo(a,n,r)?Uo(a):za(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Gr(a),t=W(r)?Gr(r):r,n=e,i=fi(n);for(;i&&t!==n;){let e=Vo(i),t=i.getBoundingClientRect(),r=si(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Gr(i),i=fi(n)}}return so({width:u,height:d,x:c,y:l})}function Ko(e,t){let n=ci(e).scrollLeft;return t?t.left+n:Go(Kr(e)).left+n}function qo(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Ko(e,n),y:n.top+t.scrollTop}}function Jo(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Kr(r),s=t?Qr(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=za(1),u=za(0),d=Jr(r);if((d||!a)&&((Wr(r)!==`body`||Xr(o))&&(c=ci(r)),d)){let e=Go(r);l=Vo(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?qo(o,c):za(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Yo(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Xo(e){let t=ci(e),n=e.ownerDocument.body,r=Ia(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Ia(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+Ko(e),o=-t.scrollTop;return si(n).direction===`rtl`&&(a+=Ia(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Zo=25;function Qo(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Gr(e),a=Kr(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!ai()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Ko(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Zo&&(s-=o)}return{width:s,height:c,x:l,y:u}}function $o(e,t){let n=Go(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Vo(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function es(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Qo(e,n,t);else if(t===`document`)r=Xo(Kr(e));else if(W(t))r=$o(t,n);else{let n=Uo(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return so(r)}function ts(e,t){let n=t.get(e);if(n)return n;let r=di(e,[],!1).filter(e=>W(e)&&Wr(e)!==`body`),i=null,a=si(e).position===`fixed`,o=a?li(e):e;for(;W(o)&&!oi(o);){let e=si(o),t=ri(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=li(o)}return t.set(e,r),r}function ns(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Qr(t)?[]:ts(t,this._c):[].concat(n),r],o=es(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=es(t,a[e],i);s=Ia(n.top,s),c=Fa(n.right,c),l=Fa(n.bottom,l),u=Ia(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function rs(e){let{width:t,height:n}=zo(e);return{width:t,height:n}}function is(e,t,n){let r=Jr(t),i=Kr(t),a=n===`fixed`,o=Go(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=za(0);if((r||!a)&&((Wr(t)!==`body`||Xr(i))&&(s=ci(t)),r)){let e=Go(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=Ko(i));let l=i&&!r&&!a?qo(i,s):za(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function as(e){return si(e).position===`static`}function os(e,t){if(!Jr(e)||si(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Kr(e)===n&&(n=n.ownerDocument.body),n}function ss(e,t){let n=Gr(e);if(Qr(e))return n;if(!Jr(e)){let t=li(e);for(;t&&!oi(t);){if(W(t)&&!as(t))return t;t=li(t)}return n}let r=os(e,t);for(;r&&Zr(r)&&as(r);)r=os(r,t);return r&&oi(r)&&as(r)&&!ri(r)?n:r||ii(e)||n}var cs=async function(e){let t=this.getOffsetParent||ss,n=this.getDimensions,r=await n(e.floating);return{reference:is(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ls(e){return si(e).direction===`rtl`}var us={convertOffsetParentRelativeRectToViewportRelativeRect:Jo,getDocumentElement:Kr,getClippingRect:ns,getOffsetParent:ss,getElementRects:cs,getClientRects:Yo,getDimensions:rs,getScale:Vo,isElement:W,isRTL:ls};function ds(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function fs(e,t,n){let r=null,i,a=Kr(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Ra(d),h=Ra(a.clientWidth-(u+f)),g=Ra(a.clientHeight-(d+p)),_=Ra(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Ia(0,Fa(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!ds(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Gr(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function ps(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Bo(e),u=i||a?[...l?di(l):[],...t?di(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?fs(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Go(e):null;c&&g();function g(){let t=Go(e);h&&!ds(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var ms=Fo,hs=Io,gs=Mo,_s=Ro,vs=Lo,ys=(e,t,n)=>{let r=new Map,i=n??{},a={...us,...i.platform,_c:r};return jo(e,t,{...i,platform:a})},bs=typeof document<`u`?B.useLayoutEffect:function(){};function xs(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!xs(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!xs(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Ss(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Cs(e,t){let n=Ss(e);return Math.round(t*n)/n}function ws(e){let t=B.useRef(e);return bs(()=>{t.current=e}),t}function Ts(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=B.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=B.useState(r);xs(f,r)||p(r);let[m,h]=B.useState(null),[g,_]=B.useState(null),v=B.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=B.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=B.useRef(null),C=B.useRef(null),w=B.useRef(u),T=c!=null,E=ws(c),D=ws(i),O=ws(l),k=B.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),ys(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!xs(w.current,t)&&(w.current=t,Ti.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);bs(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=B.useRef(!1);bs(()=>(A.current=!0,()=>{A.current=!1}),[]),bs(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=B.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=B.useMemo(()=>({reference:b,floating:x}),[b,x]),N=B.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=Cs(M.floating,u.x),r=Cs(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Ss(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return B.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var Es=(e,t)=>{let n=ms(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ds=(e,t)=>{let n=hs(e);return{name:n.name,fn:n.fn,options:[e,t]}},Os=(e,t)=>({fn:vs(e).fn,options:[e,t]}),ks=(e,t)=>{let n=gs(e);return{name:n.name,fn:n.fn,options:[e,t]}},As=(e,t)=>{let n=_s(e);return{name:n.name,fn:n.fn,options:[e,t]}},js=[],Ms=void 0;function Ns(){return Ms}function Ps(e){js.push(e)}function Fs(e){let t=(t,n)=>{let r=fn(Ls).current,i;try{Ms=r;for(let e of js)e.before(r);i=e(t,n);for(let e of js)e.after(r);r.didInitialize=!0}finally{Ms=void 0}return i};return t.displayName=e.displayName||e.name,t}function Is(e){return B.forwardRef(Fs(e))}function Ls(){return{didInitialize:!1}}var Rs=w(),zs=t(),Bs=Rn(19)?Us:Ws;function Vs(e,t,n,r,i){return Bs(e,t,n,r,i)}function Hs(e,t,n,r,i){let a=B.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Rs.useSyncExternalStore)(e.subscribe,a,a)}Ps({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,Rs.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Us(e,t,n,r,i){let a=Ns();if(!a)return Hs(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function Ws(e,t,n,r,i){return(0,zs.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Gs=class{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return Vs(this,e,t,n,r)}},Ks=class extends Gs{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){B.useDebugValue(e);let n=this;U(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;U(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;U(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){B.useDebugValue(e);let n=this,r=t!==void 0;U(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return B.useDebugValue(e),Vs(this,this.selectors[e],t,n,r)}useContextCallback(e,t){B.useDebugValue(e);let n=H(t??_n);this.context[e]=n}useStateSetter(e){let t=B.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},qs={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},Js=class extends Ks{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:_o(),nested:n,triggerElements:i},qs),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&$i(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function Ys(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=t.context.triggerElements,d=o,f=B.useRef(null);r===void 0&&f.current===null&&(f.current=new Js({open:s,transitionStatus:void 0,referenceElement:c,floatingElement:l,triggerElements:u,onOpenChange:d,floatingId:i,syncOnly:!0,nested:a}));let p=r??f.current;return t.useSyncedValue(`floatingId`,i),U(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};W(c)&&(e.domReferenceElement=c),p.state.positionReference===p.state.referenceElement&&(e.positionReference=c),p.update(e)},[s,i,c,l,p]),p.context.onOpenChange=d,p.context.nested=a,p}var Xs={tabIndex:-1,[ra]:``};function Zs(e,t=!1){let n=hr(),r=bo()!=null,i=fn(()=>e(n,r)).current;return Ys({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function Qs({handle:e,store:t}){return U(()=>e.attachStore(t),[e,t]),null}function $s(e){let t=e.context.triggerElements.size;e.select(`open`)&&e.state.triggerCount!==t&&e.set(`triggerCount`,t)}function ec(e,t){let n=B.useRef(null);return H(r=>{let i=n.current;if(i!==null){if(i.element===r&&i.store===t&&i.id===e)return;n.current=null;let a=i.store;a.context.triggerElements.getById(i.id)===i.element&&(a.context.triggerElements.delete(i.id),$s(a))}r!==null&&e!==void 0&&(n.current={store:t,id:e,element:r},t.context.triggerElements.add(e,r),$s(t))})}function tc(e,t,n,r=!1){let i=e.preventUnmountingOnClose;t?i=!1:r&&(i=!0);let a=n?.id??null,o=e.activeTriggerId,s=e.activeTriggerElement;return(a||t)&&(o=a,s=n??null),{open:t,preventUnmountingOnClose:i,activeTriggerId:o,activeTriggerElement:s}}function nc(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function rc(e,t,n,r={}){let i=n.reason,a=i===yr,o=t&&i===`trigger-focus`,s=!t&&(i===`trigger-press`||i===`escape-key`),c=nc(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let l=()=>{let i=tc(e.state,t,n.trigger,c()),l={...r.extraState,...i};o?l.instantType=`focus`:s?l.instantType=`dismiss`:a&&(l.instantType=void 0),e.update(l)};a?Ti.flushSync(l):l()}function ic(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=ec(e,n),o=H(t=>{let i=n.select(`open`),a=n.select(`activeTriggerId`);if(a===e){let e={activeTriggerElement:t,...i?r:null};n.update(e)}else if(a==null&&i){let i={activeTriggerId:e??null,activeTriggerElement:t,...r};n.update(i)}}),s=H(e=>{a(e),e&&o(e)});return U(()=>(s(t.current),()=>s(null)),[s,t,n,e]),U(()=>{if(i){let e={activeTriggerElement:t.current,...r};n.update(e)}},[i,n,t,...Object.values(r)]),{registerTrigger:s,isMountedByThisTrigger:i}}function ac(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=B.useRef(null),i=e.useState(`open`);U(()=>{if(!i){r.current=null,e.state.triggerCount!==0&&e.set(`triggerCount`,0);return}let t=e.context.triggerElements.size,a={};e.state.triggerCount!==t&&(a.triggerCount=t);let o=e.select(`activeTriggerId`),s=null;if(o){let t=e.context.triggerElements.getById(o);if(t)r.current=o,t!==e.state.activeTriggerElement&&(a.activeTriggerElement=t);else{for(let[t,n]of e.context.triggerElements.entries())if(n===e.state.activeTriggerElement){a.activeTriggerId=t,a.activeTriggerElement=n,r.current=t;break}a.activeTriggerId===void 0&&(r.current===o?s=o:r.current=null)}}else r.current=null;if(!s&&!o&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;a.activeTriggerId=e,a.activeTriggerElement=n,r.current=e}}(a.triggerCount!==void 0||a.activeTriggerId!==void 0||a.activeTriggerElement!==void 0)&&e.update(a),s&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===s&&!e.context.triggerElements.getById(s)){let t=kr(_r);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,e.useState(`triggerCount`),e.useState(`activeTriggerId`),e.useState(`activeTriggerElement`),n])}function oc(e,t,n,r){let{mounted:i,setMounted:a,transitionStatus:o}=Ir(e,!1,!1,r),s=t.useState(`preventUnmountingOnClose`),c=!e&&s;t.useSyncedValues({mounted:i,transitionStatus:o,preventUnmountingOnClose:c});let l=H(()=>{a(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return ki({enabled:i&&!e&&!c,open:e,ref:t.context.popupRef,onComplete(){e||l()}}),{forceUnmount:l,transitionStatus:o}}function sc(e,t){e.useSyncedValues(t),U(()=>()=>{e.update({activeTriggerProps:yn,inactiveTriggerProps:yn,popupProps:yn})},[e])}var cc=class{constructor(){this.idMap=new Map}add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}};function lc(e,t,n=!1){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:new Js({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0}),floatingId:t,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:yn,inactiveTriggerProps:yn,popupProps:yn}}var uc=e=>e.triggerIdProp??e.activeTriggerId,dc=e=>e.openProp??e.open,fc=e=>(e.popupElement?.id??e.floatingId)||void 0;function pc(e,t){return t!==void 0&&dc(e)&&uc(e)===t}function mc(e,t){return pc(e,t)?!0:t!==void 0&&dc(e)&&uc(e)==null&&e.triggerCount===1}var hc={open:dc,mounted:e=>e.mounted,transitionStatus:e=>e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:uc,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:fc,isTriggerActive:(e,t)=>t!==void 0&&uc(e)===t,isOpenedByTrigger:(e,t)=>pc(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&uc(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>mc(e,t)?fc(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};function gc(e){let t=B.useCallback(t=>e===void 0?_n:e.subscribeStore(t),[e]),n=B.useCallback(()=>e===void 0?void 0:e.store,[e]);return(0,Rs.useSyncExternalStore)(t,n,()=>e?.serverStore)}function _c(e){return vc(e,e.rootContext)}function vc(e,t){let{nodeId:n,externalTree:r}=e,i=t.useState(`referenceElement`),a=t.useState(`floatingElement`),o=t.useState(`domReferenceElement`),s=t.useState(`open`),c=t.useState(`floatingId`),[l,u]=B.useState(null),[d,f]=B.useState(void 0),[p,m]=B.useState(void 0),h=B.useRef(null),g=xo(r),_=B.useMemo(()=>({reference:i,floating:a,domReference:o}),[i,a,o]),v=Ts({...e,elements:{..._,...l&&{reference:l}}}),y=W(d)?d:null,b=p===void 0?t.state.floatingElement:p;t.useSyncedValue(`referenceElement`,d??null),t.useSyncedValue(`domReferenceElement`,d===void 0?o:y),t.useSyncedValue(`floatingElement`,b);let x=B.useCallback(e=>{let t=W(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),v.refs.setReference(t)},[v.refs]),S=B.useCallback(e=>{(W(e)||e===null)&&(h.current=e,f(e)),(W(v.refs.reference.current)||v.refs.reference.current===null||e!==null&&!W(e))&&v.refs.setReference(e)},[v.refs,f]),C=B.useCallback(e=>{m(e),v.refs.setFloating(e)},[v.refs]),w=B.useMemo(()=>({...v.refs,setReference:S,setFloating:C,setPositionReference:x,domReference:h}),[v.refs,S,C,x]),T=B.useMemo(()=>({...v.elements,domReference:o}),[v.elements,o]),E=B.useMemo(()=>({...v,dataRef:t.context.dataRef,open:s,onOpenChange:t.setOpen,events:t.context.events,floatingId:c,refs:w,elements:T,nodeId:n,rootStore:t}),[v,w,T,n,t,s,c]);return U(()=>{o&&(h.current=o)},[o]),U(()=>{t.context.dataRef.current.floatingContext=E;let e=g?.nodesRef.current.find(e=>e.id===n);e&&(e.context=E)}),B.useMemo(()=>({...v,context:E,refs:w,elements:T,rootStore:t}),[v,w,T,E,t])}var yc=Ui&&Wi;function bc(e,t={}){let{enabled:n=!0,delay:r}=t,i=`rootStore`in e?e.rootStore:e,{events:a,dataRef:o}=i.context,s=B.useRef(!1),c=B.useRef(null),l=B.useRef(!0),u=Ji();B.useEffect(()=>{let e=i.select(`domReferenceElement`);if(!n)return;let t=Gr(e);function r(){let e=i.select(`domReferenceElement`);!i.select(`open`)&&Jr(e)&&e===ea(gi(e))&&(s.current=!0,c.current=e)}function a(){l.current=!0}function o(){l.current=!1}return ja(xi(t,`blur`,r),yc&&xi(t,`keydown`,a,!0),yc&&xi(t,`pointerdown`,o,!0))},[i,n]),B.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=i.select(`domReferenceElement`);W(e)&&(c.current=e,s.current=!0)}}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[a,n,i]);let d=B.useMemo(()=>{function e(){s.current=!1,c.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(s.current){if(c.current===n)return;e()}let a=na(t.nativeEvent);if(W(a)){if(yc&&!t.relatedTarget){if(!l.current&&!ya(a))return}else if(!xa(a))return}let o=ga(t.relatedTarget,i.context.triggerElements),{nativeEvent:d,currentTarget:f}=t,p=typeof r==`function`?r():r;i.select(`open`)&&o||p===0||p===void 0?i.setOpen(!0,kr(br,d,f)):u.start(p,()=>{s.current||i.setOpen(!0,kr(br,d,f))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,a=W(n)&&n.hasAttribute(lo(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;u.start(0,()=>{let e=i.select(`domReferenceElement`),t=ea(gi(e));(n||t!==e)&&(ta(o.current.floatingContext?.refs.floating.current,t)||ta(e,t)||a||ga(n??t,i.context.triggerElements)||i.setOpen(!1,kr(br,r)))})}}},[o,r,i,u]);return B.useMemo(()=>n?{reference:d,trigger:d}:{},[n,d])}var xc=class e{constructor(){this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new qi,this.restTimeout=new qi,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Sc=new WeakMap;function Cc(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Sc.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Sc.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function wc(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Sc.get(n);a&&a!==e&&Cc(a),Cc(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Sc.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function Tc(e){let t=e.context.dataRef.current,n=fn(()=>t.hoverInteractionState??xc.create()).current;return t.hoverInteractionState||=n,jr(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function Ec(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),{dataRef:l}=a.context,u=xo(),d=bo(),f=Tc(a),p=Ji(),m=H(()=>Ta(l.current.openEvent?.type,f.interactedInside)),h=H(()=>Ea(l.current.openEvent?.type)),g=H(()=>{Cc(f)});U(()=>{o||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,g())},[o,f,g]),B.useEffect(()=>g,[g]),U(()=>{if(n&&o&&f.handleCloseOptions?.blockPointerEvents&&h()&&W(c)&&s){let e=c,t=s,n=gi(s),r=u?.nodesRef.current.find(e=>e.id===d)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=f.pointerEventsScopeElement===t?null:f.pointerEventsScopeElement,a=r===t?null:r,o=f.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body;return wc(f,{scopeElement:o,referenceElement:e,floatingElement:t}),()=>{g()}}},[n,o,c,s,f,h,u,d,g]),B.useEffect(()=>{if(!n)return;function e(){return!!(u&&d&&co(u.nodesRef.current,d).length>0)}function t(e){let t=Ca(r,`close`,f.pointerType),n=()=>{a.setOpen(!1,kr(yr,e)),u?.events.emit(`floating.closed`,e)};t?f.openChangeTimeout.start(t,n):(f.openChangeTimeout.clear(),n())}function o(e){let t=na(e);ba(t)?f.interactedInside=t?.closest(`[aria-haspopup]`)!=null:f.interactedInside=!1}function c(){f.openChangeTimeout.clear(),p.clear(),u?.events.off(`floating.closed`,v),g()}function _(n){if(e()&&u){u.events.on(`floating.closed`,v);return}if(ga(n.relatedTarget,a.context.triggerElements))return;let r=l.current.floatingContext?.nodeId??i,o=n.relatedTarget;u&&r&&W(o)&&co(u.nodesRef.current,r,!1).some(e=>ta(e.context?.elements.floating,o))||(f.handler?f.handler(n):(g(),h()&&!m()&&t(n)))}function v(t){u&&d&&!e()&&p.start(0,()=>{u.events.off(`floating.closed`,v),a.setOpen(!1,kr(yr,t)),u.events.emit(`floating.closed`,t)})}let y=s;return ja(y&&xi(y,`mouseenter`,c),y&&xi(y,`mouseleave`,_),y&&xi(y,`pointerdown`,o,!0),()=>{u?.events.off(`floating.closed`,v)})},[n,s,a,l,r,i,h,m,g,f,u,d,p])}var Dc={current:null};function Oc(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=Dc,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p,guardStaleOpen:m=!1}=t,h=`rootStore`in e?e.rootStore:e,{dataRef:g,events:_}=h.context,v=xo(l),y=Tc(h),b=B.useRef(!1),x=Si(i),S=Si(r),C=Si(o),w=Si(n),T=Si(p),E=Si(f),D=H(()=>Ta(g.current.openEvent?.type,y.interactedInside)),O=H(()=>T.current?.()!==!1),k=H((e,t,n)=>{let r=h.context.triggerElements;if(r.hasElement(t))return!e||!ta(e,t);if(!W(n))return!1;let i=n;return r.hasMatchingElement(e=>ta(e,i))&&(!e||!ta(e,i))}),A=H(()=>{y.handler&&=(gi(h.select(`domReferenceElement`)).removeEventListener(`mousemove`,y.handler),void 0)}),j=H(()=>{Cc(y)});return u&&(y.handleCloseOptions=i?.__options),B.useEffect(()=>A,[A]),B.useEffect(()=>{if(!n)return;function e(e){e.open?b.current=!1:(b.current=e.reason===yr,A(),y.openChangeTimeout.clear(),y.restTimeout.clear(),y.blockMouseMove=!0,y.restTimeoutPending=!1)}return _.on(`openchange`,e),()=>{_.off(`openchange`,e)}},[n,_,y,A]),B.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=Ca(S.current,`close`,y.pointerType);n?y.openChangeTimeout.start(n,()=>{h.setOpen(!1,kr(yr,e)),v?.events.emit(`floating.closed`,e)}):t&&(y.openChangeTimeout.clear(),h.setOpen(!1,kr(yr,e)),v?.events.emit(`floating.closed`,e))}let t=c.current??(u?h.select(`domReferenceElement`):null);if(!W(t))return;function r(e){if(y.openChangeTimeout.clear(),y.blockMouseMove=!1,a&&!Qi(y.pointerType))return;let t=wa(C.current),n=Ca(S.current,`open`,y.pointerType),r=na(e),i=e.currentTarget??null,o=h.select(`domReferenceElement`),s=i;if(W(r)&&!h.context.triggerElements.hasElement(r)){for(let e of h.context.triggerElements.elements())if(ta(e,r)){s=e;break}}W(i)&&W(o)&&!h.context.triggerElements.hasElement(i)&&ta(i,o)&&(s=o);let c=s!=null&&k(o,s,r),l=h.select(`open`),u=E.current?.()??h.select(`transitionStatus`)===`ending`,d=!l&&u&&b.current,f=!c&&W(s)&&W(o)&&ta(o,s)&&d,p=t>0&&!n,m=c&&(l||d)||f,g=!l||c;m?O()&&h.setOpen(!0,kr(yr,e,s)):p||(n?y.openChangeTimeout.start(n,()=>{g&&O()&&h.setOpen(!0,kr(yr,e,s))}):g&&O()&&h.setOpen(!0,kr(yr,e,s)))}function i(t){if(D()){j();return}A();let n=gi(h.select(`domReferenceElement`));y.restTimeout.clear(),y.restTimeoutPending=!1;let r=g.current.floatingContext??d?.();if(!ga(t.relatedTarget,h.context.triggerElements)){if(x.current&&r){h.select(`open`)||y.openChangeTimeout.clear();let i=c.current;y.handler=x.current({...r,tree:v,x:t.clientX,y:t.clientY,onClose(){j(),A(),w.current&&!D()&&i===h.select(`domReferenceElement`)&&e(t,!0)}}),n.addEventListener(`mousemove`,y.handler),y.handler(t)}else(y.pointerType!==`touch`||!ta(h.select(`floatingElement`),t.relatedTarget))&&e(t)}}function o(e){ta(t,e.relatedTarget)||(y.openChangeTimeout.clear(),y.restTimeout.clear(),y.restTimeoutPending=!1)}let l=m?xi(t,`mouseout`,o):void 0;return s?ja(xi(t,`mousemove`,r,{once:!0}),xi(t,`mouseenter`,r),xi(t,`mouseleave`,i),l):ja(xi(t,`mouseenter`,r),xi(t,`mouseleave`,i),l)},[A,j,g,S,h,n,x,y,u,k,D,a,s,C,c,v,w,d,E,O,m]),B.useMemo(()=>{if(!n)return;function e(e){y.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=h.select(`domReferenceElement`),i=h.select(`open`),o=k(r,n,e.target);if(a&&!Qi(y.pointerType))return;if(i&&o&&y.handleCloseOptions?.blockPointerEvents){let e=h.select(`floatingElement`);if(e){let t=y.handleCloseOptions?.getScope?.()??n.ownerDocument.body;wc(y,{scopeElement:t,referenceElement:n,floatingElement:e})}}let s=wa(C.current);if(i&&!o||s===0||!o&&y.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;y.restTimeout.clear();function c(){if(y.restTimeoutPending=!1,D())return;let e=h.select(`open`);!y.blockMouseMove&&(!e||o)&&O()&&h.setOpen(!0,kr(yr,t,n))}y.pointerType===`touch`?Ti.flushSync(()=>{c()}):o&&i?c():(y.restTimeoutPending=!0,y.restTimeout.start(s,c))}}},[n,y,D,k,a,h,C,O])}var kc=.1,Ac=kc*kc,jc=.5;function Mc(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function Nc(e,t,n,r,i,a,o,s,c,l){let u=!1;return Mc(e,t,n,r,i,a)&&(u=!u),Mc(e,t,i,a,o,s)&&(u=!u),Mc(e,t,o,s,c,l)&&(u=!u),Mc(e,t,c,l,n,r)&&(u=!u),u}function Pc(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function Fc(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function Ic(e={}){let{blockPointerEvents:t=!1}=e,n=new qi,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*Ac;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=na(r),g=r.type===`mouseleave`,_=ta(u,h),v=ta(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&W(r.relatedTarget)&&ta(u,r.relatedTarget))return;function y(){return!!(s&&co(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let j=!1;switch(c){case`top`:j=Fc(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=Fc(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=Fc(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=Fc(d,f,x.right-1,A,S.left+1,k)}if(j)return;if(l&&!Pc(d,f,x)||!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?jc/2:jc*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+jc+1,o=C||T?S.bottom-jc:S.top,s=C?T?S.bottom-jc:S.top:S.bottom-jc;M=Nc(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?jc/2:jc*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-jc,o=C||T?S.top+jc:S.bottom,s=C?T?S.top+jc:S.bottom:S.top+jc;M=Nc(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?jc/2:jc*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+jc+1,o=w||E?S.right-jc:S.left,s=w?E?S.right-jc:S.left:S.right-jc;M=Nc(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?jc/2:jc*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-jc,o=w||E?S.left+jc:S.right,s=w?E?S.left+jc:S.right:S.left+jc;M=Nc(d,f,a,r,a,i,o,S.top,s,S.bottom);break}}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}function Lc(e,t){let n=B.useRef(e),r=H(t);U(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}function Rc(e){return(0,V.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,V.jsx)(`path`,{d:`M8 10C8.36804 10.0002 8.66602 10.2989 8.66602 10.667C8.66584 11.0349 8.36793 11.3328 8 11.333C7.63192 11.333 7.33318 11.035 7.33301 10.667C7.33301 10.2988 7.63181 10 8 10Z`,fill:`currentColor`}),(0,V.jsx)(`path`,{d:`M8 4.66699C8.27614 4.66699 8.5 4.89085 8.5 5.16699V8.16699C8.49974 8.44291 8.27598 8.66699 8 8.66699C7.72402 8.66699 7.50026 8.44291 7.5 8.16699V5.16699C7.5 4.89085 7.72386 4.66699 8 4.66699Z`,fill:`currentColor`}),(0,V.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8 1.33301C11.6817 1.33318 14.666 4.31919 14.666 8.00098C14.6656 11.6824 11.6815 14.6668 8 14.667C4.31837 14.667 1.33345 11.6825 1.33301 8.00098C1.33301 4.31908 4.3181 1.33301 8 1.33301ZM8 2.33398C4.87039 2.33398 2.33301 4.87136 2.33301 8.00098C2.33345 11.1302 4.87066 13.667 8 13.667C11.1292 13.6668 13.6656 11.1301 13.666 8.00098C13.666 4.87147 11.1295 2.33416 8 2.33398Z`,fill:`currentColor`})]})}function zc(e){return(0,V.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,V.jsx)(`path`,{d:`M8.13419 9.84684C8.43783 9.90902 8.66626 10.1782 8.66641 10.5002C8.66624 10.868 8.36817 11.1658 8.0004 11.1662C7.67814 11.1662 7.40915 10.9379 7.34708 10.634L7.3334 10.5002L7.34708 10.3654C7.40942 10.0618 7.67838 9.83317 8.0004 9.83317L8.13419 9.84684Z`,fill:`currentColor`}),(0,V.jsx)(`path`,{d:`M8.0004 6.00016C8.27636 6.00038 8.5004 6.22415 8.5004 6.50016V8.83317C8.5003 9.1091 8.2763 9.33296 8.0004 9.33317C7.72431 9.33317 7.50049 9.10923 7.5004 8.83317V6.50016C7.5004 6.22402 7.72425 6.00016 8.0004 6.00016Z`,fill:`currentColor`}),(0,V.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M6.99258 1.89665C7.44325 1.12731 8.55559 1.12731 9.00626 1.89665L14.6762 11.5773C15.1315 12.355 14.5707 13.3341 13.6693 13.3341H2.3295C1.42839 13.334 0.867483 12.3549 1.32266 11.5773L6.99258 1.89665ZM8.14297 2.40153C8.07849 2.29219 7.92033 2.29216 7.85587 2.40153L2.18497 12.0832C2.12071 12.1941 2.20113 12.334 2.3295 12.3341H13.6693C13.7979 12.3341 13.8784 12.1942 13.8139 12.0832L8.14297 2.40153Z`,fill:`currentColor`})]})}function Bc(e){return(0,V.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,V.jsx)(`path`,{d:`M6.3136 3.4798C6.50889 3.28488 6.82549 3.28465 7.02063 3.4798C7.2155 3.67497 7.21546 3.99163 7.02063 4.18683L3.70618 7.50031H13.5001C13.7762 7.50041 14.0001 7.72423 14.0001 8.00031C14 8.27625 13.7761 8.50021 13.5001 8.50031H3.70813L7.02063 11.8128C7.21561 12.0079 7.21535 12.3246 7.02063 12.5198C6.82541 12.7151 6.50887 12.715 6.3136 12.5198L2.14661 8.35382C1.9514 8.15862 1.95151 7.84207 2.14661 7.64679L6.3136 3.4798Z`,fill:`currentColor`})})}function Vc(e){return(0,V.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,V.jsx)(`path`,{d:`M9.9691 6.50791C10.1268 6.28127 10.4387 6.2253 10.6654 6.38291C10.8915 6.54061 10.9476 6.85173 10.7904 7.07822L8.1859 10.8253C8.10463 10.9422 7.97661 11.0189 7.83532 11.0362C7.69403 11.0533 7.5516 11.009 7.44469 10.9151L5.95641 9.60361C5.74921 9.42107 5.72894 9.10476 5.91149 8.89756C6.09407 8.69075 6.4095 8.67124 6.61657 8.85361L7.68395 9.79306L9.9691 6.50791Z`,fill:`currentColor`}),(0,V.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M7.67516 1.61826C8.13077 1.16265 8.86994 1.16265 9.32555 1.61826L10.7591 3.05185C10.7902 3.08262 10.8326 3.10058 10.8763 3.10068H12.7338C13.3779 3.10081 13.9006 3.62258 13.9007 4.2667V6.12412C13.9009 6.16817 13.9184 6.21112 13.9496 6.24228L15.3832 7.6749C15.8384 8.13047 15.8385 8.86977 15.3832 9.32529L13.9496 10.7589C13.9185 10.79 13.9008 10.8321 13.9007 10.8761V12.7335C13.9005 13.3776 13.3778 13.9004 12.7338 13.9005H10.8763C10.8323 13.9006 10.7903 13.9182 10.7591 13.9493L9.32555 15.3829C8.87002 15.8381 8.1307 15.8381 7.67516 15.3829L6.24254 13.9493C6.21134 13.9181 6.16849 13.9005 6.12438 13.9005H4.26696C3.6229 13.9003 3.10117 13.3775 3.10094 12.7335V10.8761C3.10084 10.8323 3.08288 10.79 3.05211 10.7589L1.61852 9.32529C1.16294 8.86971 1.163 8.13052 1.61852 7.6749L3.05211 6.24228C3.08324 6.21113 3.10083 6.16815 3.10094 6.12412V4.2667C3.1011 3.62259 3.62285 3.10084 4.26696 3.10068H6.12438C6.16843 3.10062 6.21135 3.08297 6.24254 3.05185L7.67516 1.61826ZM8.61852 2.32529C8.5535 2.26027 8.44827 2.26042 8.38317 2.32529L6.94957 3.75888C6.73085 3.97753 6.43365 4.10062 6.12438 4.10068H4.26696C4.17514 4.10084 4.1011 4.17488 4.10094 4.2667V6.12412C4.10083 6.43336 3.97781 6.73062 3.75914 6.94931L2.32555 8.38291C2.26077 8.44802 2.26056 8.55327 2.32555 8.61826L3.75914 10.0519C3.97744 10.2705 4.10084 10.5671 4.10094 10.8761V12.7335C4.10117 12.8253 4.17518 12.9003 4.26696 12.9005H6.12438C6.43371 12.9005 6.73084 13.0235 6.94957 13.2423L8.38317 14.6749C8.44825 14.7396 8.55353 14.7398 8.61852 14.6749L10.0521 13.2423C10.2708 13.0236 10.5671 12.9006 10.8763 12.9005H12.7338C12.8256 12.9004 12.9005 12.8253 12.9007 12.7335V10.8761C12.9008 10.5669 13.0239 10.2705 13.2425 10.0519L14.6752 8.61826C14.7401 8.55328 14.7399 8.44802 14.6752 8.38291L13.2425 6.94931C13.0239 6.73062 12.9009 6.43339 12.9007 6.12412V4.2667C12.9006 4.17486 12.8256 4.10081 12.7338 4.10068H10.8763C10.5674 4.10058 10.2708 3.97719 10.0521 3.75888L8.61852 2.32529Z`,fill:`currentColor`})]})}function Hc(e){return(0,V.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,V.jsx)(`path`,{d:`M12.4112 2.89832C12.5597 2.66559 12.8689 2.59669 13.1016 2.745C13.3344 2.89349 13.4024 3.20263 13.254 3.43543L7.08796 13.1024C6.90444 13.3901 6.49333 13.4133 6.27839 13.1483L2.77742 8.83289C2.60384 8.6186 2.63676 8.30373 2.85066 8.12976C3.06513 7.95582 3.38082 7.98853 3.55476 8.203L6.61726 11.9784L12.4112 2.89832Z`,fill:`currentColor`})})}function Uc(e){return(0,V.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,V.jsx)(`path`,{d:`M9.61328 6.0166C9.78817 5.80309 10.1037 5.77154 10.3174 5.94629C10.5306 6.12107 10.562 6.43583 10.3877 6.64941L7.3877 10.3164C7.2983 10.4257 7.16637 10.4919 7.02539 10.499C6.8843 10.5061 6.74637 10.4534 6.64648 10.3535L5.31348 9.01953C5.11845 8.82425 5.11829 8.50768 5.31348 8.3125C5.50869 8.11767 5.82534 8.11759 6.02051 8.3125L6.96191 9.25488L9.61328 6.0166Z`,fill:`currentColor`}),(0,V.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8 1.33301C11.6817 1.33318 14.666 4.31919 14.666 8.00098C14.6656 11.6824 11.6815 14.6668 8 14.667C4.31837 14.667 1.33345 11.6825 1.33301 8.00098C1.33301 4.31908 4.3181 1.33301 8 1.33301ZM8 2.33398C4.87039 2.33398 2.33301 4.87137 2.33301 8.00098C2.33345 11.1302 4.87066 13.667 8 13.667C11.1292 13.6668 13.6656 11.1301 13.666 8.00098C13.666 4.87147 11.1294 2.33416 8 2.33398Z`,fill:`currentColor`})]})}function Wc(e){return(0,V.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,V.jsx)(`path`,{d:`M6.1464 3.3135C6.34166 3.11824 6.65816 3.11824 6.85343 3.3135L10.7157 7.1758C11.1706 7.63138 11.1709 8.36981 10.7157 8.82522L6.85334 12.6875C6.6582 12.8824 6.34152 12.8823 6.14631 12.6875C5.95114 12.4923 5.95132 12.1758 6.14631 11.9805L10.0087 8.11819C10.0734 8.05331 10.0731 7.94789 10.0087 7.88284L6.1464 4.02053C5.95117 3.8253 5.95124 3.50877 6.1464 3.3135Z`,fill:`currentColor`})})}function Gc(e){return(0,V.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,V.jsx)(`path`,{d:`M8.00098 4.66602C8.27653 4.66645 8.50062 4.89045 8.50098 5.16602V7.79297L10.1875 9.47949C10.3825 9.67462 10.3823 9.99125 10.1875 10.1865C9.99226 10.3818 9.67574 10.3817 9.48047 10.1865L7.64746 8.35352C7.55377 8.25982 7.50106 8.13249 7.50098 8V5.16602C7.50133 4.89018 7.72505 4.66602 8.00098 4.66602Z`,fill:`currentColor`}),(0,V.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.00098 1.33301C11.6824 1.33345 14.6668 4.31853 14.667 8C14.6668 11.6815 11.6824 14.6656 8.00098 14.666C4.31919 14.666 1.33318 11.6817 1.33301 8C1.33319 4.31826 4.31919 1.33301 8.00098 1.33301ZM8.00098 2.33301C4.87148 2.33301 2.33417 4.87054 2.33398 8C2.33416 11.1294 4.87147 13.666 8.00098 13.666C11.1301 13.6656 13.6668 11.1292 13.667 8C13.6668 4.87082 11.1301 2.33345 8.00098 2.33301Z`,fill:`currentColor`})]})}function Kc(e){return(0,V.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,V.jsx)(`path`,{d:`M11.4804 3.8135C11.6757 3.6184 11.9922 3.61829 12.1874 3.8135C12.3822 4.00874 12.3824 4.32539 12.1874 4.52053L8.70694 8.00002L12.1874 11.4805C12.3821 11.6758 12.3825 11.9925 12.1874 12.1875C11.9923 12.3825 11.6757 12.3822 11.4804 12.1875L7.99991 8.70705L4.52042 12.1875C4.32527 12.3824 4.00859 12.3823 3.81339 12.1875C3.61821 11.9923 3.61839 11.6758 3.81339 11.4805L7.29288 8.00002L3.81339 4.52053C3.61816 4.3253 3.61823 4.00877 3.81339 3.8135C4.00865 3.61824 4.32516 3.61824 4.52042 3.8135L7.99991 7.29299L11.4804 3.8135Z`,fill:`currentColor`})})}function qc(e){return(0,V.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,V.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.5 3.16699C10.8819 3.16699 12.8301 5.01762 12.9883 7.35938C14.5922 7.55863 15.834 8.92613 15.834 10.584C15.8336 12.3785 14.3785 13.8338 12.584 13.834H5.16699C2.95808 13.834 1.16737 12.0428 1.16699 9.83398C1.16699 7.90307 2.53477 6.29168 4.35449 5.91602C5.03729 4.30133 6.63535 3.16712 8.5 3.16699ZM8.5 4.16699C6.96768 4.16713 5.66397 5.15244 5.19043 6.52539C5.1283 6.70485 4.96965 6.83427 4.78125 6.8584C3.30682 7.04738 2.16699 8.30803 2.16699 9.83398C2.16737 11.4905 3.51037 12.834 5.16699 12.834H12.584C13.8262 12.8338 14.8336 11.8262 14.834 10.584C14.834 9.34145 13.8265 8.33416 12.584 8.33398C12.5603 8.33398 12.5363 8.33423 12.5127 8.33496C12.374 8.33926 12.2393 8.28511 12.1416 8.18652C12.044 8.08793 11.9915 7.95303 11.9971 7.81445C11.9991 7.76574 12 7.71627 12 7.66699C12 5.734 10.433 4.16699 8.5 4.16699Z`,fill:`currentColor`})})}function Jc(e){return(0,V.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,V.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M9.83301 1.33301C10.2931 1.33301 10.6658 1.70688 10.666 2.16699V5.33398H13.833C14.2931 5.33398 14.6658 5.70688 14.666 6.16699V13.834C14.6658 14.294 14.2931 14.667 13.833 14.667H6.16602C5.70623 14.6666 5.33327 14.2937 5.33301 13.834V10.667H2.16602C1.70623 10.6666 1.33327 10.2937 1.33301 9.83398V2.16699C1.33318 1.70714 1.70621 1.33338 2.16602 1.33301H9.83301ZM6.33301 13.667H13.666V6.33398H6.33301V13.667ZM2.33301 9.66699H5.33301V6.16699C5.33318 5.70714 5.70621 5.33436 6.16602 5.33398H9.66602V2.33398H2.33301V9.66699Z`,fill:`currentColor`})})}function Yc(e){return(0,V.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,V.jsx)(`path`,{d:`M13.5 9.33398C13.7761 9.33398 14 9.55784 14 9.83398V12.834C13.9997 13.4781 13.4772 14.001 12.833 14.001H3.16699C2.52283 14.001 2.00026 13.4781 2 12.834V9.83398C2 9.55784 2.22386 9.33398 2.5 9.33398C2.77614 9.33398 3 9.55784 3 9.83398V12.834C3.00026 12.9258 3.0751 13.001 3.16699 13.001H12.833C12.9249 13.001 12.9997 12.9258 13 12.834V9.83398C13 9.55784 13.2239 9.33398 13.5 9.33398Z`,fill:`currentColor`}),(0,V.jsx)(`path`,{d:`M8 2C8.27614 2 8.5 2.22386 8.5 2.5V8.79199L9.98047 7.3125C10.1757 7.11779 10.4924 7.1175 10.6875 7.3125C10.8824 7.5076 10.8822 7.82428 10.6875 8.01953L8.35352 10.3525C8.15825 10.5478 7.84175 10.5478 7.64648 10.3525L5.31348 8.01953C5.1183 7.82426 5.11824 7.50773 5.31348 7.3125C5.50874 7.11763 5.82536 7.11744 6.02051 7.3125L7.5 8.79199V2.5C7.5 2.22386 7.72386 2 8 2Z`,fill:`currentColor`})]})}function Xc(e){return(0,V.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,V.jsx)(`path`,{d:`M8.00536 6.83496C8.2815 6.83496 8.50536 7.05882 8.50536 7.33496C8.50536 9.28777 8.18891 11.168 7.60399 12.9258C7.45356 13.3778 7.28517 13.8219 7.10008 14.2568C6.99198 14.5107 6.69876 14.6293 6.44481 14.5215C6.19099 14.4133 6.07219 14.1192 6.18016 13.8652C6.35475 13.4549 6.51387 13.0358 6.65575 12.6094C7.20715 10.9522 7.50536 9.17895 7.50536 7.33496C7.50536 7.05904 7.72952 6.83532 8.00536 6.83496Z`,fill:`currentColor`}),(0,V.jsx)(`path`,{d:`M10.52 10.4541C10.7913 10.5039 10.9707 10.7648 10.9214 11.0361C10.8278 11.5476 10.7154 12.0533 10.5845 12.5508C10.4402 13.0989 10.274 13.6388 10.0864 14.168C9.99408 14.4281 9.70794 14.5639 9.44774 14.4717C9.18753 14.3794 9.05079 14.0932 9.14305 13.833C9.32138 13.33 9.48054 12.8171 9.61766 12.2959L9.79051 11.5811C9.84391 11.3413 9.89349 11.0995 9.93797 10.8564C9.98787 10.5851 10.2485 10.4044 10.52 10.4541Z`,fill:`currentColor`}),(0,V.jsx)(`path`,{d:`M4.03172 11.7812C4.11987 11.5198 4.40295 11.3789 4.66454 11.4668C4.926 11.5548 5.06668 11.8381 4.97899 12.0996C4.86951 12.4252 4.74948 12.7464 4.61864 13.0615C4.51276 13.3164 4.22024 13.4367 3.96532 13.3311C3.71029 13.2251 3.5889 12.9328 3.69481 12.6777C3.81681 12.3839 3.92965 12.0848 4.03172 11.7812Z`,fill:`currentColor`}),(0,V.jsx)(`path`,{d:`M8.00633 1.33301C11.3211 1.33311 14.0083 4.02127 14.0083 7.33594C14.0083 8.78975 13.8748 10.2133 13.6186 11.5938C13.568 11.8648 13.3069 12.0443 13.0356 11.9941C12.7643 11.9438 12.5851 11.6825 12.6352 11.4111C12.8802 10.0906 13.0083 8.72825 13.0083 7.33594C13.0083 4.57356 10.7688 2.33409 8.00633 2.33398C7.2206 2.33403 6.47822 2.51504 5.81786 2.83691C5.56991 2.95753 5.27101 2.85411 5.14989 2.60645C5.0289 2.35823 5.13216 2.0585 5.38036 1.9375C6.17411 1.55068 7.06564 1.33305 8.00633 1.33301Z`,fill:`currentColor`}),(0,V.jsx)(`path`,{d:`M3.12938 3.83594C3.29057 3.61209 3.60255 3.5608 3.82665 3.72168C4.05084 3.88283 4.102 4.1957 3.9409 4.41992C3.35117 5.24055 3.0035 6.2465 3.0034 7.33496C3.0034 8.32841 2.88524 9.29522 2.66063 10.2207C2.5955 10.489 2.32447 10.654 2.05614 10.5889C1.78801 10.5236 1.623 10.2535 1.68797 9.98535C1.89406 9.13635 2.0034 8.2485 2.0034 7.33496C2.0035 6.03015 2.42142 4.821 3.12938 3.83594Z`,fill:`currentColor`}),(0,V.jsx)(`path`,{d:`M8.00536 4.08496C9.80058 4.08518 11.2563 5.54061 11.2563 7.33594C11.2563 7.77027 11.243 8.20225 11.2163 8.62988C11.1987 8.90495 10.9612 9.1146 10.686 9.09766C10.4107 9.08035 10.2014 8.84265 10.2182 8.56738C10.2437 8.16042 10.2563 7.7494 10.2563 7.33594C10.2563 6.0929 9.24829 5.08518 8.00536 5.08496C6.76239 5.08521 5.75438 6.09291 5.75438 7.33594C5.75435 8.18373 5.68419 9.01631 5.54833 9.82617C5.50227 10.0979 5.24403 10.2817 4.97215 10.2363C4.70008 10.1906 4.51657 9.93226 4.562 9.66016C4.68872 8.90477 4.75435 8.12803 4.75438 7.33594C4.75438 5.54063 6.2101 4.08521 8.00536 4.08496Z`,fill:`currentColor`})]})}function Zc(e){return(0,V.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,V.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8.00098 1.33301C11.6825 1.33345 14.667 4.31935 14.667 8.00098C14.6666 11.6822 11.6822 14.6666 8.00098 14.667C4.31935 14.667 1.33345 11.6825 1.33301 8.00098C1.33301 4.31908 4.31908 1.33301 8.00098 1.33301ZM5.84473 8.5C5.89806 9.89948 6.17134 11.138 6.57227 12.04C6.7965 12.5444 7.05078 12.9216 7.30762 13.166C7.5619 13.4079 7.79555 13.5 8.00098 13.5C8.20627 13.4998 8.44029 13.4078 8.69434 13.166C8.95104 12.9215 9.20558 12.5442 9.42969 12.04C9.83057 11.138 10.1021 9.89938 10.1553 8.5H5.84473ZM2.35645 8.5C2.5548 10.7688 4.08984 12.6525 6.16992 13.3623C5.97897 13.0907 5.80772 12.7817 5.6582 12.4453C5.19204 11.3963 4.89835 10.015 4.84473 8.5H2.35645ZM11.1553 8.5C11.1017 10.0149 10.8089 11.3963 10.3428 12.4453C10.1932 12.7818 10.0209 13.0906 9.83008 13.3623C11.9103 12.6527 13.4452 10.769 13.6436 8.5H11.1553ZM6.16992 2.63672C4.08987 3.34649 2.55505 5.23127 2.35645 7.5H4.84473C4.89835 5.98501 5.19204 4.6037 5.6582 3.55469C5.80784 3.21802 5.97879 2.90844 6.16992 2.63672ZM8.00098 2.5C7.79555 2.5 7.5619 2.59208 7.30762 2.83398C7.05078 3.07841 6.7965 3.45561 6.57227 3.95996C6.17134 4.86204 5.89806 6.10053 5.84473 7.5H10.1553C10.1021 6.10063 9.83057 4.86202 9.42969 3.95996C9.20558 3.45579 8.95104 3.07849 8.69434 2.83398C8.44029 2.59222 8.20627 2.50024 8.00098 2.5ZM9.83008 2.63672C10.0211 2.90858 10.1931 3.21792 10.3428 3.55469C10.8089 4.60369 11.1017 5.98506 11.1553 7.5H13.6436C13.445 5.23108 11.9102 3.34635 9.83008 2.63672Z`,fill:`currentColor`})})}function Qc(e){return(0,V.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,V.jsx)(`path`,{d:`M8 6.83398C8.27614 6.83398 8.5 7.05784 8.5 7.33398V10.834C8.49974 11.1099 8.27598 11.334 8 11.334C7.72417 11.3338 7.50026 11.1098 7.5 10.834V7.83398H7.16699C6.89101 7.83398 6.66726 7.6099 6.66699 7.33398C6.66699 7.05784 6.89085 6.83398 7.16699 6.83398H8Z`,fill:`currentColor`}),(0,V.jsx)(`path`,{d:`M8 4.83398C8.27601 4.83416 8.5 5.05795 8.5 5.33398C8.49956 5.60964 8.27574 5.83381 8 5.83398C7.72411 5.83398 7.50044 5.60975 7.5 5.33398C7.5 5.05784 7.72384 4.83398 8 4.83398Z`,fill:`currentColor`}),(0,V.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M8 1.33301C11.6817 1.33318 14.666 4.31919 14.666 8.00098C14.6656 11.6824 11.6815 14.6668 8 14.667C4.31837 14.667 1.33345 11.6825 1.33301 8.00098C1.33301 4.31908 4.3181 1.33301 8 1.33301ZM8 2.33398C4.87039 2.33398 2.33301 4.87137 2.33301 8.00098C2.33345 11.1302 4.87066 13.667 8 13.667C11.1292 13.6668 13.6656 11.1301 13.666 8.00098C13.666 4.87147 11.1294 2.33416 8 2.33398Z`,fill:`currentColor`})]})}function $c(e){return(0,V.jsx)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:(0,V.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M12.834 2C13.4779 2.00044 14 2.52293 14 3.16699V10.667H14.834C15.1098 10.6674 15.334 10.8911 15.334 11.167V12.833C15.334 13.4772 14.8111 13.9997 14.167 14H1.83398C1.18965 14 0.666016 13.4773 0.666016 12.833V11.167C0.666016 10.8909 0.89085 10.667 1.16699 10.667H2V3.16699C2 2.52266 2.52266 2 3.16699 2H12.834ZM1.66699 12.833C1.66699 12.9251 1.74194 13 1.83398 13H14.167C14.2588 12.9997 14.334 12.9249 14.334 12.833V11.667H1.66699V12.833ZM3.16699 3C3.07494 3 3 3.07494 3 3.16699V10.667H13V3.16699C13 3.07522 12.9257 3.00044 12.834 3H3.16699Z`,fill:`currentColor`})})}function el(e){return(0,V.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,V.jsx)(`path`,{d:`M10.0693 8.80616C11.3199 8.97992 12.4268 9.31057 13.2363 9.76222C14.0167 10.1977 14.6668 10.8347 14.667 11.6665C14.667 12.1908 14.4026 12.6417 14.0283 13.0005C13.6553 13.358 13.1419 13.6575 12.5488 13.898C11.3599 14.3799 9.75149 14.6664 8.00098 14.6665C6.25029 14.6665 4.64122 14.3799 3.45215 13.898C2.8591 13.6575 2.34566 13.3579 1.97266 13.0005C1.59839 12.6417 1.33303 12.1908 1.33301 11.6665C1.33316 10.8345 1.98414 10.1978 2.76465 9.76222C3.5742 9.31057 4.68102 8.97991 5.93164 8.80616C6.20498 8.76845 6.45812 8.95956 6.49609 9.23292C6.53371 9.50605 6.3424 9.75821 6.06934 9.7964C4.89651 9.95932 3.9196 10.2628 3.25195 10.6353C2.55551 11.0239 2.33415 11.4018 2.33398 11.6665C2.33401 11.8324 2.41535 12.0395 2.66504 12.2788C2.9161 12.5193 3.30576 12.7594 3.82812 12.9712C4.87088 13.3938 6.34642 13.6665 8.00098 13.6665C9.65529 13.6664 11.1303 13.3938 12.1729 12.9712C12.6953 12.7593 13.0859 12.5194 13.3369 12.2788C13.5863 12.0397 13.667 11.8323 13.667 11.6665C13.6668 11.4018 13.4452 11.0238 12.749 10.6353C12.0814 10.2628 11.1043 9.95934 9.93164 9.7964C9.65837 9.75831 9.4681 9.50621 9.50586 9.23292C9.54385 8.95943 9.79585 8.76822 10.0693 8.80616Z`,fill:`currentColor`}),(0,V.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M6.11426 2.11475C7.15559 1.07435 8.84294 1.07287 9.88477 2.11475C10.9263 3.15634 10.9267 4.84526 9.88477 5.88624C9.49213 6.2783 9.00732 6.52222 8.5 6.61866V11.4995C8.5 11.7757 8.27614 11.9995 8 11.9995C7.72386 11.9995 7.5 11.7757 7.5 11.4995V6.61866C6.99206 6.52234 6.50626 6.27863 6.11328 5.88526C5.07366 4.84407 5.07276 3.15585 6.11426 2.11475ZM9.17773 2.82179C8.52695 2.17094 7.47264 2.17121 6.82129 2.82179C6.17108 3.4718 6.17058 4.52781 6.82129 5.17921C7.47111 5.82948 8.52635 5.82864 9.17773 5.17823C9.82854 4.52804 9.82894 3.47304 9.17773 2.82179Z`,fill:`currentColor`})]})}function tl(e){return(0,V.jsxs)(`svg`,{width:`1em`,height:`1em`,viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":e[`aria-label`]||e[`aria-labelledby`]?void 0:!0,role:e[`aria-label`]||e[`aria-labelledby`]?`img`:void 0,...e,children:[(0,V.jsx)(`path`,{d:`M7.5 2C7.77614 2 8 2.22386 8 2.5C8 2.77614 7.77614 3 7.5 3H3.16699C3.07495 3 3 3.07495 3 3.16699V12.833C3 12.9251 3.07494 13 3.16699 13H7.5C7.77614 13 8 13.2239 8 13.5C8 13.7761 7.77614 14 7.5 14H3.16699C2.52267 14 2 13.4774 2 12.833V3.16699C2 2.52266 2.52266 2 3.16699 2H7.5Z`,fill:`currentColor`}),(0,V.jsx)(`path`,{d:`M10.1465 4.64648C10.3417 4.45122 10.6583 4.45122 10.8535 4.64648L13.8535 7.64648C14.0487 7.84175 14.0488 8.15827 13.8535 8.35352L10.8535 11.3535C10.6583 11.5488 10.3417 11.5487 10.1465 11.3535C9.95122 11.1583 9.95122 10.8417 10.1465 10.6465L12.293 8.5H6C5.72386 8.5 5.5 8.27614 5.5 8C5.5 7.72386 5.72386 7.5 6 7.5H12.293L10.1465 5.35352C9.95122 5.15825 9.95122 4.84175 10.1465 4.64648Z`,fill:`currentColor`})]})}var nl=B.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{getButtonProps:l,buttonRef:u}=vi({disabled:i,focusableWhenDisabled:a,native:o});return ar(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})});function rl(e){return ar(e.defaultTagName??`div`,e,e)}function il(e){return Array.isArray(e)?e.map(e=>il(e)).join(`,`):e==null?``:String(e)}var al=new Map;function ol(e,t){let n=JSON.stringify({locale:il(e),options:t}),r=al.get(n);if(r)return r;let i=new Intl.NumberFormat(e,t);return al.set(n,i),i}function sl(e,t,n){return e==null?``:ol(t,n).format(e)}function cl(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function ll(e,t,n){return(e-t)*100/(n-t)}var ul=B.createContext(void 0),dl=`data-complete`,fl=`data-indeterminate`,pl=`data-progressing`,ml={status(e){return e===`progressing`?{[pl]:``}:e===`complete`?{[dl]:``}:e===`indeterminate`?{[fl]:``}:null}},hl=B.forwardRef(function(e,t){let{format:n,getAriaValueText:r,locale:i,max:a=100,min:o=0,value:s,render:c,className:l,children:u,style:d,...f}=e,[p,m]=B.useState(),h=`indeterminate`,g=null,_=null,v=``,y=`indeterminate progress`;if(s!=null&&Number.isFinite(s)){let e=ll(s,o,a);g=cl(Number.isNaN(e)?0:e,0,100),_=cl(s,o,a),h=_===a?`complete`:`progressing`,v=n?sl(_,i,n):sl(g/100,i,{style:`percent`}),y=v}let b=B.useMemo(()=>({status:h}),[h]),x={"aria-labelledby":p,"aria-valuemax":a,"aria-valuemin":o,"aria-valuenow":_??void 0,"aria-valuetext":r?r(v,s):y,role:`progressbar`,children:(0,V.jsxs)(B.Fragment,{children:[u,(0,V.jsx)(`span`,{role:`presentation`,style:Na,children:`x`})]})},S=B.useMemo(()=>({formattedValue:v,percentageValue:g,setLabelId:m,state:b,value:s}),[v,g,m,b,s]),C=ar(`div`,e,{state:b,ref:t,props:[x,f],stateAttributesMapping:ml});return(0,V.jsx)(ul.Provider,{value:S,children:C})});function gl(e){let{className:t,size:n,vars:r,...i}=e;return(0,V.jsx)(hl,{"aria-label":`Loading`,...i,..._l.spinner({className:t,size:n,style:e.style,vars:r}),value:null,children:(0,V.jsxs)(`svg`,{"aria-hidden":`true`,..._l.glyph(),fill:`none`,viewBox:`0 0 16 16`,children:[(0,V.jsx)(`circle`,{cx:`8`,cy:`8`,r:`6`,stroke:`currentColor`,strokeOpacity:`0.16`,strokeWidth:`2`}),(0,V.jsx)(`path`,{d:`M14 8a6 6 0 0 0-6-6`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:`2`})]})})}var _l;(function(e){e.glyph=nn({className:`z-tds_2f_web-tds_2f_web_2f_spinner_2f_glyph-animation-0 z-tds_2f_web-tds_2f_web_2f_spinner_2f_glyph-h-1 z-tds_2f_web-tds_2f_web_2f_spinner_2f_glyph-w-2 z-tds_2f_web-tds_2f_web_2f_spinner_2f_glyph-animation-3`}),e.spinner=sn({axes:{size:[`large`,`medium`,`small`]},defaults:{size:`medium`},className:`z-tds_2f_web-tds_2f_web_2f_spinner-text-0 z-tds_2f_web-tds_2f_web_2f_spinner-display-1 z-tds_2f_web-tds_2f_web_2f_spinner-flex-shrink-2 z-tds_2f_web-tds_2f_web_2f_spinner-h-3 z-tds_2f_web-tds_2f_web_2f_spinner-w-4 z-tds_2f_web-tds_2f_web_2f_spinner-h-5 z-tds_2f_web-tds_2f_web_2f_spinner-w-6 z-tds_2f_web-tds_2f_web_2f_spinner-h-7 z-tds_2f_web-tds_2f_web_2f_spinner-w-8`})})(_l||={});function vl(e){let{children:t,className:n,disabled:r,loading:i=!1,shape:a,size:o,variant:s,vars:c,...l}=e;return(0,V.jsxs)(nl,{...l,...yl.button({className:n,shape:a,size:o,style:e.style,variant:s,vars:c}),"aria-busy":i||void 0,"data-loading":i||void 0,disabled:r||i,children:[(0,V.jsx)(`span`,{...yl.content({loading:i}),children:t}),i&&(0,V.jsx)(gl,{"aria-label":`Loading`,...yl.spinner()})]})}(function(e){function t(e){let{children:t,className:n,ref:r,render:i,shape:a,size:o,variant:s,vars:c,...l}=e;return rl({defaultTagName:`a`,props:{...l,...yl.button({className:n,shape:a,size:o,style:e.style,variant:s,vars:c}),children:(0,V.jsx)(`span`,{...yl.content({loading:!1}),children:t})},ref:r,render:i})}e.Link=t})(vl||={});var yl;(function(e){e.button=sn({axes:{shape:[`default`,`icon`],size:[`large`,`medium`,`small`],variant:[`negative`,`primary`,`secondary`,`text`]},defaults:{shape:`default`,size:`medium`,variant:`primary`},className:`z-tds_2f_web-tds_2f_web_2f_button-align-items-0 z-tds_2f_web-tds_2f_web_2f_button-border-1 z-tds_2f_web-tds_2f_web_2f_button-border-radius-2 z-tds_2f_web-tds_2f_web_2f_button-box-sizing-3 z-tds_2f_web-tds_2f_web_2f_button-column-gap-4 z-tds_2f_web-tds_2f_web_2f_button-cursor-5 z-tds_2f_web-tds_2f_web_2f_button-display-6 z-tds_2f_web-tds_2f_web_2f_button-justify-content-7 z-tds_2f_web-tds_2f_web_2f_button-outline-color-8 z-tds_2f_web-tds_2f_web_2f_button-outline-offset-9 z-tds_2f_web-tds_2f_web_2f_button-outline-style-10 z-tds_2f_web-tds_2f_web_2f_button-outline-width-11 z-tds_2f_web-tds_2f_web_2f_button-position-12 z-tds_2f_web-tds_2f_web_2f_button-text-decoration-13 z-tds_2f_web-tds_2f_web_2f_button-transition-duration-14 z-tds_2f_web-tds_2f_web_2f_button-transition-property-15 z-tds_2f_web-tds_2f_web_2f_button-transition-timing-function-16 z-tds_2f_web-tds_2f_web_2f_button-user-select-17 z-tds_2f_web-tds_2f_web_2f_button-white-space-18 z-tds_2f_web-tds_2f_web_2f_button-transform-19 z-tds_2f_web-tds_2f_web_2f_button-transition-duration-20 z-tds_2f_web-tds_2f_web_2f_button-cursor-21 z-tds_2f_web-tds_2f_web_2f_button-opacity-22 z-tds_2f_web-tds_2f_web_2f_button-outline-color-23 z-tds_2f_web-tds_2f_web_2f_button-opacity-24 z-tds_2f_web-tds_2f_web_2f_button-outline-style-25 z-tds_2f_web-tds_2f_web_2f_button-outline-style-26 z-tds_2f_web-tds_2f_web_2f_button-transition-property-27 z-tds_2f_web-tds_2f_web_2f_button-transform-28 z-tds_2f_web-tds_2f_web_2f_button-aspect-ratio-29 z-tds_2f_web-tds_2f_web_2f_button-font-weight-30 z-tds_2f_web-tds_2f_web_2f_button-h-31 z-tds_2f_web-tds_2f_web_2f_button-padding-inline-32 z-tds_2f_web-tds_2f_web_2f_button-font-family-33 z-tds_2f_web-tds_2f_web_2f_button-font-size-34 z-tds_2f_web-tds_2f_web_2f_button-letter-spacing-35 z-tds_2f_web-tds_2f_web_2f_button-line-height-36 z-tds_2f_web-tds_2f_web_2f_button-font-weight-37 z-tds_2f_web-tds_2f_web_2f_button-h-38 z-tds_2f_web-tds_2f_web_2f_button-padding-inline-39 z-tds_2f_web-tds_2f_web_2f_button-font-family-40 z-tds_2f_web-tds_2f_web_2f_button-font-size-41 z-tds_2f_web-tds_2f_web_2f_button-letter-spacing-42 z-tds_2f_web-tds_2f_web_2f_button-line-height-43 z-tds_2f_web-tds_2f_web_2f_button-font-weight-44 z-tds_2f_web-tds_2f_web_2f_button-h-45 z-tds_2f_web-tds_2f_web_2f_button-padding-inline-46 z-tds_2f_web-tds_2f_web_2f_button-font-family-47 z-tds_2f_web-tds_2f_web_2f_button-font-size-48 z-tds_2f_web-tds_2f_web_2f_button-letter-spacing-49 z-tds_2f_web-tds_2f_web_2f_button-line-height-50 z-tds_2f_web-tds_2f_web_2f_button-bg-51 z-tds_2f_web-tds_2f_web_2f_button-text-52 z-tds_2f_web-tds_2f_web_2f_button-bg-53 z-tds_2f_web-tds_2f_web_2f_button-bg-54 z-tds_2f_web-tds_2f_web_2f_button-background-image-55 z-tds_2f_web-tds_2f_web_2f_button-box-shadow-56 z-tds_2f_web-tds_2f_web_2f_button-text-57 z-tds_2f_web-tds_2f_web_2f_button-opacity-58 z-tds_2f_web-tds_2f_web_2f_button-bg-59 z-tds_2f_web-tds_2f_web_2f_button-text-60 z-tds_2f_web-tds_2f_web_2f_button-bg-61 z-tds_2f_web-tds_2f_web_2f_button-bg-62 z-tds_2f_web-tds_2f_web_2f_button-bg-63 z-tds_2f_web-tds_2f_web_2f_button-text-64 z-tds_2f_web-tds_2f_web_2f_button-bg-65 z-tds_2f_web-tds_2f_web_2f_button-padding-inline-66`}),e.content=sn({axes:{loading:[`false`,`true`]},defaults:{loading:`false`},className:`z-tds_2f_web-tds_2f_web_2f_button_2f_content-align-items-0 z-tds_2f_web-tds_2f_web_2f_button_2f_content-column-gap-1 z-tds_2f_web-tds_2f_web_2f_button-display-6 z-tds_2f_web-tds_2f_web_2f_button_2f_content-transition-duration-2 z-tds_2f_web-tds_2f_web_2f_button_2f_content-transition-property-3 z-tds_2f_web-tds_2f_web_2f_button-transition-timing-function-16 z-tds_2f_web-tds_2f_web_2f_button_2f_content-opacity-4 z-tds_2f_web-tds_2f_web_2f_button_2f_content-visibility-5`}),e.spinner=nn({className:`z-tds_2f_web-tds_2f_web_2f_button_2f_spinner-inset-block-start-0 z-tds_2f_web-tds_2f_web_2f_button_2f_spinner-inset-inline-start-1 z-tds_2f_web-tds_2f_web_2f_button_2f_spinner-position-2 z-tds_2f_web-tds_2f_web_2f_button_2f_spinner-translate-3`})})(yl||={});var bl=`data-valid`,xl=`data-invalid`,Sl={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Cl={disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},wl={valid(e){return e===null?null:e?{[bl]:``}:{[xl]:``}}},Tl={invalid:void 0,name:void 0,validityData:{state:Sl,errors:[],error:``,value:``,initialValue:null},setValidityData:_n,disabled:void 0,setTouched:_n,setDirty:_n,setFilled:_n,setFocused:_n,validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:Cl,registerFieldControl:_n,validation:{getValidationProps:(e,t=yn)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:_n,getInputControl:()=>null,commit:async()=>{},change:_n}},El=B.createContext(Tl);function Dl(e=!0){let t=B.useContext(El);if(t.setValidityData===_n&&!e)throw Error(An(28));return t}var Ol=B.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:_n,validationMode:`onSubmit`,submitCountRef:{current:0}});function kl(){return B.useContext(Ol)}var Al=B.createContext({controlId:void 0,registerControlId:_n,resetControlId:_n,labelId:void 0,setLabelId:_n,messageIds:[],setMessageIds:_n,getDescriptionProps:e=>e});function jl(){return B.useContext(Al)}function Ml(e,t,n,r=!0,i){let[a,o]=B.useState(),s=gr(i?`${i}-label`:void 0),c=e??t??a;return U(()=>{let i=e||t||!r?void 0:Nl(n.current,s);a!==i&&o(i)}),c}function Nl(e,t){let n=Pl(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function Pl(e){if(!e)return;let t=e.parentElement;if(t&&t.tagName===`LABEL`)return t;let n=e.id;if(n){let t=e.nextElementSibling;if(t&&t.htmlFor===n)return t}let r=e.labels;return r&&r[0]}function Fl(e={}){let{id:t,enabled:n=!0}=e,{controlId:r,registerControlId:i,resetControlId:a}=jl(),o=gr(),s=fn(()=>Symbol()),c=B.useRef(!1),l=B.useRef(!1),u=H(()=>{c.current&&i!==_n&&(c.current=!1,i(s.current,void 0))});return U(()=>{if(!n||i===_n){u();return}let e;if(t!==void 0)l.current=!0,e=t;else if(l.current)e=o;else{a();return}e===void 0?u():(c.current=!0,i(s.current,e))},[t,n,i,a,o,s,u]),U(()=>u,[u]),(n?r:void 0)??t??o}function Il(e,t,n,r,i=!0,a){let{registerFieldControl:o}=Dl(),s=fn(()=>Symbol());U(()=>{let c=s.current;i?o(c,{controlRef:e,getValue:r,id:t,name:a,value:n}):o(c,void 0)},[e,i,r,t,a,o,s,n]),U(()=>{let e=s.current;return()=>{o(e,void 0)}},[o,s])}var Ll=B.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:h,setTouched:g,setDirty:_,validityData:v,setFocused:y,setFilled:b,validationMode:x,validation:S}=Dl(),{clearErrors:C,elementRef:w,submitCountRef:T}=kl(),E=h||s,D=m??a,O={...p,disabled:E},{labelId:k}=jl(),A=Fl({id:i}),[j]=ln({controlled:o,default:l,name:`FieldControl`,state:`value`}),M=o!==void 0,N=M?j:void 0,P=N==null?void 0:String(N),F=H(()=>S.inputRef.current?.value);Il(S.inputRef,A,P,F,!E,a),U(()=>{let e=P??S.inputRef.current?.value;e!==void 0&&b(e!==``)},[P,S.inputRef,b]),Lc(P,()=>{P!==void 0&&(C(D),_(P!==(v.initialValue??``)),S.change(P))});let I=B.useRef(null),ee=Ji();return U(()=>{u&&I.current===ea(gi(I.current))&&y(!0)},[u,y]),ar(`input`,e,{ref:[t,I],state:O,props:[{id:A,disabled:E,name:D,ref:S.inputRef,"aria-labelledby":k,autoFocus:u,...M?{value:N}:{defaultValue:l},onChange(e){let t=e.currentTarget.value,n=kr(_r,e.nativeEvent);c?.(t,n),!M&&(_(t!==(v.initialValue??``)),b(t!==``),!e.nativeEvent.defaultPrevented&&!n.isCanceled&&(C(D),S.change(t)))},onFocus(){y(!0)},onBlur(e){if(g(!0),y(!1),x===`onBlur`){let t=e.currentTarget.value;S.commit(t),M&&queueMicrotask(()=>{let e=S.inputRef.current?.value;e!==void 0&&e!==t&&e!==(v.initialValue??``)&&S.commit(e)})}},onKeyDown(e){if(e.currentTarget.tagName===`INPUT`&&e.key===`Enter`){g(!0);let t=e.currentTarget.value,n=e.currentTarget.form;if(n&&n===w.current&&!e.defaultPrevented){let t=e.currentTarget,n=T.current;ee.start(0,()=>{T.current===n&&S.commit(t.value)})}else S.commit(t)}}},f,e=>S.getValidationProps(E,e)],stateAttributesMapping:wl})}),Rl=B.forwardRef(function(e,t){return(0,V.jsx)(Ll,{ref:t,...e})}),zl=(0,B.createContext)(void 0),Bl=(0,B.createContext)(void 0);function Vl(e){let t=(0,B.useRef)(void 0);(0,B.useLayoutEffect)(()=>{let n=e.current;if(!n)return;let r=n;function i(){let e=r.matches(`[data-invalid], [data-invalid] *, :has([aria-invalid="true"])`)?`invalid`:r.matches(`[data-success], [data-success] *`)?`success`:`none`,n=t.current;t.current=e,n!==void 0&&n!==e&&e!==`none`&&(r.removeAttribute(`data-entered`),r.offsetWidth,r.setAttribute(`data-entered`,e))}function a(e){e.target===r&&r.removeAttribute(`data-entered`)}i();let o=new MutationObserver(i);return o.observe(r,{attributeFilter:[`aria-invalid`,`data-invalid`,`data-success`],attributes:!0,subtree:!0}),r.addEventListener(`animationend`,a),()=>{o.disconnect(),r.removeEventListener(`animationend`,a)}})}var Hl;(function(e){e.group=sn({axes:{size:[`large`,`medium`,`small`],variant:[`card`,`default`,`search`]},defaults:{size:`medium`,variant:`default`},className:`z-tds_2f_web-tds_2f_web_2f_input_2f_group-align-items-0 z-tds_2f_web-tds_2f_web_2f_input_2f_group-bg-1 z-tds_2f_web-tds_2f_web_2f_input_2f_group-border-style-2 z-tds_2f_web-tds_2f_web_2f_input_2f_group-box-sizing-3 z-tds_2f_web-tds_2f_web_2f_input_2f_group-text-4 z-tds_2f_web-tds_2f_web_2f_input_2f_group-display-5 z-tds_2f_web-tds_2f_web_2f_input_2f_group-outline-color-6 z-tds_2f_web-tds_2f_web_2f_input_2f_group-outline-offset-7 z-tds_2f_web-tds_2f_web_2f_input_2f_group-outline-style-8 z-tds_2f_web-tds_2f_web_2f_input_2f_group-outline-width-9 z-tds_2f_web-tds_2f_web_2f_input_2f_group-position-10 z-tds_2f_web-tds_2f_web_2f_input_2f_group-transition-duration-11 z-tds_2f_web-tds_2f_web_2f_input_2f_group-transition-property-12 z-tds_2f_web-tds_2f_web_2f_input_2f_group-transition-timing-function-13 z-tds_2f_web-tds_2f_web_2f_input_2f_group-border-color-14 z-tds_2f_web-tds_2f_web_2f_input_2f_group-border-radius-15 z-tds_2f_web-tds_2f_web_2f_input_2f_group-border-style-16 z-tds_2f_web-tds_2f_web_2f_input_2f_group-border-width-17 z-tds_2f_web-tds_2f_web_2f_input_2f_group-box-sizing-18 z-tds_2f_web-tds_2f_web_2f_input_2f_group-content-19 z-tds_2f_web-tds_2f_web_2f_input_2f_group-inset-20 z-tds_2f_web-tds_2f_web_2f_input_2f_group-pointer-events-21 z-tds_2f_web-tds_2f_web_2f_input_2f_group-position-22 z-tds_2f_web-tds_2f_web_2f_input_2f_group-transition-duration-23 z-tds_2f_web-tds_2f_web_2f_input_2f_group-transition-property-24 z-tds_2f_web-tds_2f_web_2f_input_2f_group-transition-timing-function-25 z-tds_2f_web-tds_2f_web_2f_input_2f_group-cursor-26 z-tds_2f_web-tds_2f_web_2f_input_2f_group-padding-block-27 z-tds_2f_web-tds_2f_web_2f_input_2f_group-text-align-28 z-tds_2f_web-tds_2f_web_2f_input_2f_group-w-29 z-tds_2f_web-tds_2f_web_2f_input_2f_group-transform-30 z-tds_2f_web-tds_2f_web_2f_input_2f_group-transition-duration-31 z-tds_2f_web-tds_2f_web_2f_input_2f_group-bg-32 z-tds_2f_web-tds_2f_web_2f_input_2f_group-cursor-33 z-tds_2f_web-tds_2f_web_2f_input_2f_group-opacity-34 z-tds_2f_web-tds_2f_web_2f_input_2f_group-outline-color-35 z-tds_2f_web-tds_2f_web_2f_input_2f_group-bg-36 z-tds_2f_web-tds_2f_web_2f_input_2f_group-bg-37 z-tds_2f_web-tds_2f_web_2f_input_2f_group-border-color-38 z-tds_2f_web-tds_2f_web_2f_input_2f_group-outline-color-39 z-tds_2f_web-tds_2f_web_2f_input_2f_group-border-color-40 z-tds_2f_web-tds_2f_web_2f_input_2f_group-outline-color-41 z-tds_2f_web-tds_2f_web_2f_input_2f_group-border-color-42 z-tds_2f_web-tds_2f_web_2f_input_2f_group-animation-43 z-tds_2f_web-tds_2f_web_2f_input_2f_group-animation-44 z-tds_2f_web-tds_2f_web_2f_input_2f_group-grid-area-45 z-tds_2f_web-tds_2f_web_2f_input_2f_group-pt-46 z-tds_2f_web-tds_2f_web_2f_input_2f_group-border-radius-47 z-tds_2f_web-tds_2f_web_2f_input_2f_group-padding-block-48 z-tds_2f_web-tds_2f_web_2f_input_2f_group-padding-inline-49 z-tds_2f_web-tds_2f_web_2f_input_2f_group-border-radius-50 z-tds_2f_web-tds_2f_web_2f_input_2f_group-padding-block-51 z-tds_2f_web-tds_2f_web_2f_input_2f_group-padding-inline-52 z-tds_2f_web-tds_2f_web_2f_input_2f_group-pt-53 z-tds_2f_web-tds_2f_web_2f_input_2f_group-pt-54 z-tds_2f_web-tds_2f_web_2f_input_2f_group-border-radius-55 z-tds_2f_web-tds_2f_web_2f_input_2f_group-column-gap-56 z-tds_2f_web-tds_2f_web_2f_input_2f_group-grid-area-57 z-tds_2f_web-tds_2f_web_2f_input_2f_group-h-58 z-tds_2f_web-tds_2f_web_2f_input_2f_group-padding-inline-59 z-tds_2f_web-tds_2f_web_2f_input_2f_group-font-family-60 z-tds_2f_web-tds_2f_web_2f_input_2f_group-font-size-61 z-tds_2f_web-tds_2f_web_2f_input_2f_group-font-weight-62 z-tds_2f_web-tds_2f_web_2f_input_2f_group-letter-spacing-63 z-tds_2f_web-tds_2f_web_2f_input_2f_group-line-height-64 z-tds_2f_web-tds_2f_web_2f_input_2f_group-outline-style-65 z-tds_2f_web-tds_2f_web_2f_input_2f_group-outline-style-66 z-tds_2f_web-tds_2f_web_2f_input_2f_group-transition-property-67 z-tds_2f_web-tds_2f_web_2f_input_2f_group-transform-68 z-tds_2f_web-tds_2f_web_2f_input_2f_group-animation-69 z-tds_2f_web-tds_2f_web_2f_input_2f_group-border-radius-70 z-tds_2f_web-tds_2f_web_2f_input_2f_group-column-gap-71 z-tds_2f_web-tds_2f_web_2f_input_2f_group-h-72 z-tds_2f_web-tds_2f_web_2f_input_2f_group-padding-inline-73 z-tds_2f_web-tds_2f_web_2f_input_2f_group-font-family-74 z-tds_2f_web-tds_2f_web_2f_input_2f_group-font-size-75 z-tds_2f_web-tds_2f_web_2f_input_2f_group-font-weight-76 z-tds_2f_web-tds_2f_web_2f_input_2f_group-letter-spacing-77 z-tds_2f_web-tds_2f_web_2f_input_2f_group-line-height-78 z-tds_2f_web-tds_2f_web_2f_input_2f_group-border-radius-79 z-tds_2f_web-tds_2f_web_2f_input_2f_group-column-gap-80 z-tds_2f_web-tds_2f_web_2f_input_2f_group-h-81 z-tds_2f_web-tds_2f_web_2f_input_2f_group-padding-inline-82 z-tds_2f_web-tds_2f_web_2f_input_2f_group-font-family-83 z-tds_2f_web-tds_2f_web_2f_input_2f_group-font-size-84 z-tds_2f_web-tds_2f_web_2f_input_2f_group-font-weight-85 z-tds_2f_web-tds_2f_web_2f_input_2f_group-letter-spacing-86 z-tds_2f_web-tds_2f_web_2f_input_2f_group-line-height-87 z-tds_2f_web-tds_2f_web_2f_input_2f_group-border-radius-88 z-tds_2f_web-tds_2f_web_2f_input_2f_group-column-gap-89 z-tds_2f_web-tds_2f_web_2f_input_2f_group-h-90 z-tds_2f_web-tds_2f_web_2f_input_2f_group-padding-inline-91 z-tds_2f_web-tds_2f_web_2f_input_2f_group-font-family-92 z-tds_2f_web-tds_2f_web_2f_input_2f_group-font-size-93 z-tds_2f_web-tds_2f_web_2f_input_2f_group-font-weight-94 z-tds_2f_web-tds_2f_web_2f_input_2f_group-letter-spacing-95 z-tds_2f_web-tds_2f_web_2f_input_2f_group-line-height-96 z-tds_2f_web-tds_2f_web_2f_input_2f_group-bg-97 z-tds_2f_web-tds_2f_web_2f_input_2f_group-border-color-98 z-tds_2f_web-tds_2f_web_2f_input_2f_group-border-radius-99 z-tds_2f_web-tds_2f_web_2f_input_2f_group-border-style-100 z-tds_2f_web-tds_2f_web_2f_input_2f_group-border-width-101 z-tds_2f_web-tds_2f_web_2f_input_2f_group-h-102 z-tds_2f_web-tds_2f_web_2f_input_2f_group-min-height-103 z-tds_2f_web-tds_2f_web_2f_input_2f_group-padding-block-104 z-tds_2f_web-tds_2f_web_2f_input_2f_group-padding-inline-105 z-tds_2f_web-tds_2f_web_2f_input_2f_group-bg-106 z-tds_2f_web-tds_2f_web_2f_input_2f_group-border-color-107 z-tds_2f_web-tds_2f_web_2f_input_2f_group-border-radius-108`})})(Hl||={});var Ul;(function(e){function t(e){let{className:t,invalid:n=!1,ref:r,size:i,success:a=!1,variant:o,vars:s,...c}=e,l=(0,B.useContext)(zl),u=(0,B.useRef)(null),d=(0,B.useRef)(null),f=(0,B.useMemo)(()=>({control:u,invalid:n}),[n]);return Vl(d),(0,V.jsx)(Bl.Provider,{value:f,children:(0,V.jsx)(`div`,{...c,...Hl.group({className:t,size:i,style:e.style,variant:o??(l===`card`?`card`:void 0),vars:s}),"data-invalid":n||void 0,"data-success":a||void 0,ref:e=>{d.current=e,typeof r==`function`?r(e):r&&(r.current=e)}})})}e.Group=t;function n(e){let{className:t,ref:n,vars:r,...i}=e,a=(0,B.useContext)(Bl);return(0,V.jsx)(Rl,{"aria-invalid":a?.invalid||void 0,...i,...Wl.control({className:t,style:e.style,vars:r}),ref:e=>{a&&(a.control.current=e),typeof n==`function`?n(e):n&&(n.current=e)}})}e.Control=n;function r(e){let{className:t,vars:n,...r}=e;return(0,V.jsx)(`span`,{...r,...Wl.prefix({className:t,style:e.style,vars:n})})}e.Prefix=r;function i(e){let{className:t,vars:n,...r}=e;return(0,V.jsx)(`span`,{...r,...Wl.suffix({className:t,style:e.style,vars:n})})}e.Suffix=i;function a(e){let{children:t,className:n,onClick:r,vars:i,...a}=e,o=(0,B.useContext)(Bl);return(0,V.jsx)(`button`,{"aria-label":`Clear`,type:`button`,...a,...Wl.clear({className:n,style:e.style,vars:i}),onClick:e=>{r?.(e);let t=o?.control.current;!e.defaultPrevented&&t&&(Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,`value`)?.set?.call(t,``),t.dispatchEvent(new Event(`input`,{bubbles:!0})),t.focus())},children:t??(0,V.jsx)(Kc,{})})}e.Clear=a})(Ul||={});var Wl;(function(e){e.clear=nn({className:`z-tds_2f_web-tds_2f_web_2f_input_2f_clear-align-items-0 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-bg-1 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-border-2 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-border-radius-3 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-text-4 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-cursor-5 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-display-6 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-flex-shrink-7 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-font-size-8 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-h-9 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-justify-content-10 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-opacity-11 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-outline-color-12 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-outline-offset-13 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-outline-style-14 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-outline-width-15 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-p-16 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-pointer-events-17 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-position-18 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-transform-19 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-transition-duration-20 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-transition-property-21 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-transition-timing-function-22 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-visibility-23 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-w-24 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-content-25 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-inset-26 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-position-27 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-transform-28 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-transition-duration-29 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-outline-color-30 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-bg-31 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-opacity-32 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-pointer-events-33 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-transform-34 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-visibility-35 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-transform-36 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-margin-inline-end-37 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-font-size-38 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-h-39 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-w-40 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-margin-inline-end-41 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-font-size-42 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-h-43 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-w-44 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-margin-inline-end-45 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-outline-style-46 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-outline-style-47 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-transition-property-48 z-tds_2f_web-tds_2f_web_2f_input_2f_clear-transform-49`}),e.control=nn({className:`z-tds_2f_web-tds_2f_web_2f_input_2f_control-appearance-0 z-tds_2f_web-tds_2f_web_2f_input_2f_control-bg-1 z-tds_2f_web-tds_2f_web_2f_input_2f_control-border-2 z-tds_2f_web-tds_2f_web_2f_input_2f_control-box-sizing-3 z-tds_2f_web-tds_2f_web_2f_input_2f_control-text-4 z-tds_2f_web-tds_2f_web_2f_input_2f_control-flex-5 z-tds_2f_web-tds_2f_web_2f_input_2f_control-font-6 z-tds_2f_web-tds_2f_web_2f_input_2f_control-min-width-7 z-tds_2f_web-tds_2f_web_2f_input_2f_control-outline-8 z-tds_2f_web-tds_2f_web_2f_input_2f_control-p-9 z-tds_2f_web-tds_2f_web_2f_input_2f_control-appearance-10 z-tds_2f_web-tds_2f_web_2f_input_2f_control-display-11 z-tds_2f_web-tds_2f_web_2f_input_2f_control-text-12 z-tds_2f_web-tds_2f_web_2f_input_2f_control-transition-duration-13 z-tds_2f_web-tds_2f_web_2f_input_2f_control-transition-property-14 z-tds_2f_web-tds_2f_web_2f_input_2f_control-transition-timing-function-15 z-tds_2f_web-tds_2f_web_2f_input_2f_control-font-weight-16 z-tds_2f_web-tds_2f_web_2f_input_2f_control-letter-spacing-17 z-tds_2f_web-tds_2f_web_2f_input_2f_control-font-family-18 z-tds_2f_web-tds_2f_web_2f_input_2f_control-font-size-19 z-tds_2f_web-tds_2f_web_2f_input_2f_control-line-height-20 z-tds_2f_web-tds_2f_web_2f_input_2f_control-font-family-21 z-tds_2f_web-tds_2f_web_2f_input_2f_control-font-size-22 z-tds_2f_web-tds_2f_web_2f_input_2f_control-letter-spacing-23 z-tds_2f_web-tds_2f_web_2f_input_2f_control-line-height-24 z-tds_2f_web-tds_2f_web_2f_input_2f_control-font-weight-25 z-tds_2f_web-tds_2f_web_2f_input_2f_control-font-family-26 z-tds_2f_web-tds_2f_web_2f_input_2f_control-font-size-27 z-tds_2f_web-tds_2f_web_2f_input_2f_control-letter-spacing-28 z-tds_2f_web-tds_2f_web_2f_input_2f_control-line-height-29 z-tds_2f_web-tds_2f_web_2f_input_2f_control-font-weight-30 z-tds_2f_web-tds_2f_web_2f_input_2f_control-pt-31 z-tds_2f_web-tds_2f_web_2f_input_2f_control-opacity-32`}),e.prefix=nn({className:`z-tds_2f_web-tds_2f_web_2f_input_2f_clear-align-items-0 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-text-0 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-display-1 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-flex-shrink-2 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-font-weight-3 z-tds_2f_web-tds_2f_web_2f_input_2f_control-letter-spacing-17 z-tds_2f_web-tds_2f_web_2f_input_2f_control-letter-spacing-23 z-tds_2f_web-tds_2f_web_2f_input_2f_control-letter-spacing-28 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-font-family-4 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-font-size-5 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-line-height-6 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-font-family-7 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-font-size-8 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-line-height-9 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-font-weight-10 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-font-family-11 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-font-size-12 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-line-height-13 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-font-weight-14 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-pt-15 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-opacity-16`}),e.suffix=nn({className:`z-tds_2f_web-tds_2f_web_2f_input_2f_clear-align-items-0 z-tds_2f_web-tds_2f_web_2f_input_2f_suffix-text-0 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-display-1 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-flex-shrink-2 z-tds_2f_web-tds_2f_web_2f_input_2f_suffix-text-1 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-font-weight-3 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-font-family-4 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-font-size-5 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-line-height-6 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-font-family-7 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-font-size-8 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-line-height-9 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-font-weight-10 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-font-family-11 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-font-size-12 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-line-height-13 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-font-weight-14 z-tds_2f_web-tds_2f_web_2f_input_2f_control-letter-spacing-17 z-tds_2f_web-tds_2f_web_2f_input_2f_control-letter-spacing-23 z-tds_2f_web-tds_2f_web_2f_input_2f_control-letter-spacing-28 z-tds_2f_web-tds_2f_web_2f_input_2f_prefix-pt-15`})})(Wl||={});var Gl=B.createContext(void 0);function Kl(){return B.useContext(Gl)?.direction??`ltr`}var ql=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=Ha(e,t)||{};if(l==null)return{};let f=oo(u),p={x:n,y:r},m=Ja(i),h=Ka(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,j=w/2-g[h]/2+T,M=Va(k,j,A),N=!c.arrow&&Wa(i)!=null&&j!==M&&a.reference[h]/2-(j<k?D:O)-g[h]/2<0,P=N?j<k?j-k:j-A:0;return{[m]:p[m]+P,data:{[m]:M,centerOffset:j-M-P,...N&&{alignmentOffset:P}},reset:N}}}),Jl=(e,t)=>{let{name:n,fn:r}=ql(e);return{name:n,fn:r,options:[e,t]}},Yl={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0,o=await e.platform.detectOverflow(e,{elementContext:`reference`});return{data:{referenceHidden:o.top-n>=0||o.right-t>=0||o.bottom-n>=0||o.left-t>=0||a}}}},Xl={sideX:`left`,sideY:`top`},Zl=`--available-width`,Ql=`--available-height`,$l=`--anchor-width`,eu=`--anchor-height`,tu=`--transform-origin`,nu=Zl,ru=Ql;function iu(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function au(e,t,n){let{rects:r,placement:i}=e;return{side:iu(t,Ua(i),n),align:Wa(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function ou(e){return su(e,_c)}function su(e,t){let{anchor:n,positionMethod:r=`absolute`,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,collisionBoundary:c,collisionPadding:l=5,sticky:u=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:p,keepMounted:m=!1,floatingRootContext:h,mounted:g,collisionAvoidance:_,shift:v,nodeId:y,adaptiveOrigin:b,lazyFlip:x=!1,externalTree:S}=e,[C,w]=B.useState(null);!g&&C!==null&&w(null);let T=_.side||`flip`,E=_.align||`flip`,D=_.fallbackAxisSide||`end`,O=v?.crossAxis??!1,k=v?.rootBoundary,A=typeof n==`function`?n:void 0,j=H(A),M=A?j:n,N=Si(n),P=Si(g),F=Kl()===`rtl`,I=C||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":F?`left`:`right`,"inline-start":F?`right`:`left`}[i],ee=o===`center`?I:`${I}-${o}`,L=l;typeof L==`number`?L={top:L,right:L,bottom:L,left:L}:L&&={top:L.top||0,right:L.right||0,bottom:L.bottom||0,left:L.left||0};let te=+(i===`bottom`),R=+(i===`top`),ne=+(i===`right`),re=+(i===`left`),ie={boundary:c===`clipping-ancestors`?`clippingAncestors`:c,padding:L},ae=B.useRef(null),z=Si(a),oe=Si(s),se=typeof a==`function`?0:a,ce=typeof s==`function`?0:s,le=[];p&&le.push(p),le.push(Es(e=>{let t=au(e,i,F),n=typeof z.current==`function`?z.current(t):z.current,r=typeof oe.current==`function`?oe.current(t):oe.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[se,ce,F,i]));let ue=E===`none`&&T!==`shift`,de=!ue&&(u||O||T===`shift`),fe=T===`none`?null:ks({...ie,padding:{top:L.top+1+te,right:L.right+1+re,bottom:L.bottom+1+R,left:L.left+1+ne},mainAxis:!O&&T===`flip`,crossAxis:E===`flip`&&`alignment`,fallbackAxisSideDirection:D}),pe=ue?null:Ds({...ie,rootBoundary:k,mainAxis:E!==`none`,crossAxis:de,limiter:u||O?void 0:Os(e=>{if(!ae.current)return{};let{width:t,height:n}=ae.current.getBoundingClientRect(),r=qa(Ua(e.placement)),i=r===`y`?t:n,a=r===`y`?L.left+L.right:L.top+L.bottom;return{offset:i/2+a/2}})},[ie,u,O,k,L,E]);T===`shift`||E===`shift`||o===`center`?le.push(pe,fe):le.push(fe,pe),le.push(As({...ie,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!P.current)return;let i=e.style;i.setProperty(nu,`${t}px`),i.setProperty(ru,`${n}px`);let a=Gr(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty($l,`${u}px`),i.setProperty(eu,`${d}px`)}}),Jl(e=>({element:ae.current||gi(e.elements.floating).createElement(`div`),padding:ae.current?d:0,offsetParent:`floating`}),[d]),{name:`transformOrigin`,fn(e){let{elements:{floating:t},middlewareData:n,placement:r,platform:o,rects:s,y:c}=e,l=Ua(r),u=Wa(r),d=qa(l)===`y`,f=ae.current,p=typeof a==`function`?a(au(e,i,F)):a,m;m=!f&&u&&Math.abs(d?n.shift?.x||0:n.shift?.y||0)<=1?u===`start`===(d&&o.isRTL?.(t)===!0)?`100%`:`0%`:`${(d?n.arrow?.x||0:n.arrow?.y||0)+(d?f?.clientWidth||0:f?.clientHeight||0)/2}px`;let h=l===`top`||l===`left`?`calc(100% + ${p}px)`:`${-p}px`;return de&&d&&Math.abs(n.shift?.y||0)>p&&(h=`${s.reference.y+s.reference.height/2-c}px`),t.style.setProperty(tu,d?`${m} ${h}`:`${h} ${m}`),{}}},Yl,b),U(()=>{!g&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[g,h]);let me=B.useMemo(()=>({ancestorScroll:!f,elementResize:!f&&typeof ResizeObserver<`u`,layoutShift:!f&&typeof IntersectionObserver<`u`}),[f]),{refs:he,elements:ge,x:_e,y:ve,middlewareData:V,update:ye,placement:be,context:xe,isPositioned:Se,floatingStyles:Ce}=t({rootContext:h,open:m?g:void 0,placement:ee,middleware:le,strategy:r,whileElementsMounted:m?void 0:(...e)=>ps(...e,me),nodeId:y,externalTree:S}),{sideX:we,sideY:Te}=V.adaptiveOrigin||Xl,Ee=Se?r:`fixed`,De=B.useMemo(()=>{let e;return e=Se?b?{position:Ee,[we]:_e,[Te]:ve}:{...Ce,position:Ee}:{position:Ee,top:0,left:0},e[nu]=`100vw`,e[ru]=`100vh`,Se||(e.opacity=0),e},[b,Ee,we,_e,Te,ve,Ce,Se]),Oe=B.useRef(null);U(()=>{if(!g)return;let e=N.current,t=typeof e==`function`?e():e,n=(cu(t)?t.current:t)||null;n!==Oe.current&&(he.setPositionReference(n),Oe.current=n)},[g,he,M,N]),B.useEffect(()=>{if(!g)return;let e=N.current;typeof e!=`function`&&cu(e)&&e.current!==Oe.current&&(he.setPositionReference(e.current),Oe.current=e.current)},[g,he,M,N]),B.useEffect(()=>{if(m&&g&&ge.reference&&ge.floating)return ps(ge.reference,ge.floating,ye,me)},[m,g,ge,ye,me]);let ke=Ua(be),Ae=iu(i,ke,F),je=Wa(be)||`center`,Me=!!V.hide?.referenceHidden;U(()=>{x&&g&&Se&&ke!==I&&w(ke)},[x,g,Se,ke,I]);let Ne=B.useMemo(()=>({position:`absolute`,top:V.arrow?.y,left:V.arrow?.x}),[V.arrow]),Pe=V.arrow?.centerOffset!==0;return B.useMemo(()=>({positionerStyles:De,arrowStyles:Ne,arrowRef:ae,arrowUncentered:Pe,side:Ae,align:je,physicalSide:ke,anchorHidden:Me,refs:he,context:xe,isPositioned:Se,update:ye}),[De,Ne,ae,Pe,Ae,je,ke,Me,he,xe,Se,ye])}function cu(e){return e!=null&&`current`in e}function lu(e){return e===`starting`?uo:yn}function uu(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),ar(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},lu(r),i],stateAttributesMapping:pa})}var du=(0,B.createContext)(`info`),fu={info:Qc,negative:Rc,positive:Uc,warning:zc};function pu(e){let{className:t,intent:n,shape:r,size:i,vars:a,...o}=e,s=n??`info`;return(0,V.jsx)(du,{value:s,children:(0,V.jsx)(`div`,{role:s===`negative`||s===`warning`?`alert`:`status`,...o,...mu.note({className:t,intent:s,shape:r,size:i,style:e.style,vars:a})})})}(function(e){function t(e){let{className:t,vars:n,...r}=e;return(0,V.jsx)(nl,{...r,"data-callout-action":``,...mu.action({className:t,style:e.style,vars:n})})}e.Action=t;function n(e){let{className:t,vars:n,...r}=e;return(0,V.jsx)(`div`,{...r,...mu.content({className:t,style:e.style,vars:n})})}e.Content=n;function r(e){let{children:t,className:n,vars:r,...i}=e,a=fu[(0,B.useContext)(du)];return(0,V.jsx)(`span`,{"aria-hidden":`true`,...i,"data-callout-icon":``,...mu.icon({className:n,style:e.style,vars:r}),children:t??(0,V.jsx)(a,{})})}e.Icon=r})(pu||={});var mu;(function(e){e.action=nn({className:`z-tds_2f_web-tds_2f_web_2f_callout_2f_action-align-items-0 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-bg-1 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-border-2 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-border-radius-3 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-text-4 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-cursor-5 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-display-6 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-flex-shrink-7 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-margin-inline-start-8 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-outline-color-9 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-outline-offset-10 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-outline-style-11 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-outline-width-12 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-p-13 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-text-decoration-14 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-text-underline-offset-15 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-transition-duration-16 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-transition-property-17 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-transition-timing-function-18 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-font-19 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-font-weight-20 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-white-space-21 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-transform-22 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-outline-color-23 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-outline-offset-24 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-text-decoration-color-25 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-transition-property-26 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-transform-27`}),e.content=nn({className:`z-tds_2f_web-tds_2f_web_2f_callout_2f_content-min-width-0`}),e.icon=nn({className:`z-tds_2f_web-tds_2f_web_2f_callout_2f_action-display-6 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-flex-shrink-7 z-tds_2f_web-tds_2f_web_2f_callout_2f_action-align-items-0 z-tds_2f_web-tds_2f_web_2f_callout_2f_icon-justify-content-0`}),e.note=sn({axes:{intent:[`info`,`negative`,`positive`,`warning`],shape:[`default`,`pill`],size:[`large`,`medium`,`small`]},defaults:{intent:`info`,shape:`default`,size:`medium`},className:`z-tds_2f_web-tds_2f_web_2f_callout-align-items-0 z-tds_2f_web-tds_2f_web_2f_callout-box-sizing-1 z-tds_2f_web-tds_2f_web_2f_callout-display-2 z-tds_2f_web-tds_2f_web_2f_callout-bg-3 z-tds_2f_web-tds_2f_web_2f_callout-text-4 z-tds_2f_web-tds_2f_web_2f_callout-bg-5 z-tds_2f_web-tds_2f_web_2f_callout-text-6 z-tds_2f_web-tds_2f_web_2f_callout-bg-7 z-tds_2f_web-tds_2f_web_2f_callout-text-8 z-tds_2f_web-tds_2f_web_2f_callout-bg-9 z-tds_2f_web-tds_2f_web_2f_callout-text-10 z-tds_2f_web-tds_2f_web_2f_callout-align-items-11 z-tds_2f_web-tds_2f_web_2f_callout-border-radius-12 z-tds_2f_web-tds_2f_web_2f_callout-justify-content-13 z-tds_2f_web-tds_2f_web_2f_callout-column-gap-14 z-tds_2f_web-tds_2f_web_2f_callout-padding-block-15 z-tds_2f_web-tds_2f_web_2f_callout-padding-inline-16 z-tds_2f_web-tds_2f_web_2f_callout-font-family-17 z-tds_2f_web-tds_2f_web_2f_callout-font-size-18 z-tds_2f_web-tds_2f_web_2f_callout-font-weight-19 z-tds_2f_web-tds_2f_web_2f_callout-letter-spacing-20 z-tds_2f_web-tds_2f_web_2f_callout-line-height-21 z-tds_2f_web-tds_2f_web_2f_callout-font-size-22 z-tds_2f_web-tds_2f_web_2f_callout-line-height-23 z-tds_2f_web-tds_2f_web_2f_callout-font-size-24 z-tds_2f_web-tds_2f_web_2f_callout-h-25 z-tds_2f_web-tds_2f_web_2f_callout-column-gap-26 z-tds_2f_web-tds_2f_web_2f_callout-padding-block-27 z-tds_2f_web-tds_2f_web_2f_callout-padding-inline-28 z-tds_2f_web-tds_2f_web_2f_callout-font-family-29 z-tds_2f_web-tds_2f_web_2f_callout-font-size-30 z-tds_2f_web-tds_2f_web_2f_callout-font-weight-31 z-tds_2f_web-tds_2f_web_2f_callout-letter-spacing-32 z-tds_2f_web-tds_2f_web_2f_callout-line-height-33 z-tds_2f_web-tds_2f_web_2f_callout-font-size-34 z-tds_2f_web-tds_2f_web_2f_callout-line-height-35 z-tds_2f_web-tds_2f_web_2f_callout-font-size-36 z-tds_2f_web-tds_2f_web_2f_callout-h-37 z-tds_2f_web-tds_2f_web_2f_callout-column-gap-38 z-tds_2f_web-tds_2f_web_2f_callout-padding-block-39 z-tds_2f_web-tds_2f_web_2f_callout-padding-inline-40 z-tds_2f_web-tds_2f_web_2f_callout-font-family-41 z-tds_2f_web-tds_2f_web_2f_callout-font-size-42 z-tds_2f_web-tds_2f_web_2f_callout-font-weight-43 z-tds_2f_web-tds_2f_web_2f_callout-letter-spacing-44 z-tds_2f_web-tds_2f_web_2f_callout-line-height-45 z-tds_2f_web-tds_2f_web_2f_callout-font-size-46 z-tds_2f_web-tds_2f_web_2f_callout-line-height-47 z-tds_2f_web-tds_2f_web_2f_callout-font-size-48 z-tds_2f_web-tds_2f_web_2f_callout-h-49 z-tds_2f_web-tds_2f_web_2f_callout-border-radius-50 z-tds_2f_web-tds_2f_web_2f_callout-border-radius-51 z-tds_2f_web-tds_2f_web_2f_callout-border-radius-52`})})(mu||={});var hu=B.createContext(void 0);function gu(){let e=B.useContext(hu);if(e===void 0)throw Error(An(98));return e}function _u(e,t,n){return{...e,value:t,index:n,filled:t!==``}}var vu={value:()=>null,length:()=>null,...wl},yu={value:()=>null,index:()=>null,...wl},bu={numeric:{slotPattern:`\\d{1}`,getRootPattern:e=>`\\d{${e}}`,regexp:/[^\d]/g,inputMode:`numeric`},alpha:{slotPattern:`[a-zA-Z]{1}`,getRootPattern:e=>`[a-zA-Z]{${e}}`,regexp:/[^a-zA-Z]/g,inputMode:`text`},alphanumeric:{slotPattern:`[a-zA-Z0-9]{1}`,getRootPattern:e=>`[a-zA-Z0-9]{${e}}`,regexp:/[^a-zA-Z0-9]/g,inputMode:`text`}};function xu(e){return e===`none`?null:bu[e]}function Su(e){return(e??``).replace(/\s/g,``)}function Cu(e,t){return t?e.replace(t.regexp,``):e}function wu(e,t,n,r){let i=Su(e),a=xu(n),o=Cu(i,a),s=i.length>o.length;if(r){let e=r(o);s||=o.length>e.length,o=Cu(e,a),s||=e.length>o.length}let c=t<0?0:t,l=Array.from(o);return[l.slice(0,c).join(``),s||l.length>c]}function Tu(e,t,n,r){return wu(e,t,n,r)[0]}function Eu(e,t,n,r,i,a){let o=Tu(n,r,i,a);return Tu(`${e.slice(0,t)}${o}${e.slice(t+o.length)}`,r,i,a)}function Du(e,t){return t<0||t>=e.length?e:`${e.slice(0,t)}${e.slice(t+1)}`}var Ou=B.forwardRef(function(e,t){let{"aria-describedby":n,"aria-labelledby":r,id:i,autoComplete:a=`one-time-code`,defaultValue:o=``,value:s,onValueChange:c,onValueComplete:l,form:u,length:d,autoSubmit:f=!1,mask:p=!1,inputMode:m,validationType:h=`numeric`,normalizeValue:g,disabled:_=!1,readOnly:v=!1,required:y=!1,name:b,onValueInvalid:x,render:S,className:C,style:w,...T}=e,{setDirty:E,validityData:D,disabled:O,setFilled:k,invalid:A,name:j,state:M,validation:N,validationMode:P,setFocused:F,setTouched:I}=Dl(),{clearErrors:ee}=kl(),{getDescriptionProps:L,labelId:te}=jl(),R=O||_,ne=j??b,[re,ie]=ln({controlled:s,default:o,name:`OTPField`,state:`value`}),ae=B.useRef(null),z=B.useRef([]),oe=B.useRef(null),se=B.useRef(null),ce=B.useMemo(()=>({get current(){return z.current[0]??null}}),[]),le=Fl({id:i}),ue=Ml(r,te,ce,!0,le),de=r==null?ue:void 0,fe=ku(n,L({})[`aria-describedby`]),pe=xu(h),me=pe?.slotPattern,he=pe?.getRootPattern(d),ge=m??pe?.inputMode,_e=Number.isInteger(d)&&d>0,ve=Tu(re,d,h,g),ye=Si(ve),be=ve!==``,[xe,Se]=B.useState(0),[Ce,we]=B.useState(()=>Math.min(ve.length,d-1)),[Te,Ee]=B.useState(!1),De=Te?Math.min(Ce,Math.max(d-1,0)):Math.min(ve.length,d-1);U(()=>{k(be)},[be,k]),Il(ce,le,ve,void 0,!R,b);let Oe=H(e=>{let t=Math.min(Math.max(e,0),Math.max(z.current.length-1,0)),n=z.current[t];n?.focus(),n?.select()}),ke=H((e,t)=>{oe.current={index:e,value:t}});function Ae(){let e=N.inputRef.current?.form??z.current[0]?.form??null;if(u){let t=gi(ae.current).getElementById(u);t?.tagName===`FORM`&&(e=t)}e&&typeof e.requestSubmit==`function`&&e.requestSubmit()}function je(e,t){l?.(e,t),f&&Ae()}Lc(ve,()=>{ee(ne),E(ve!==D.initialValue),N.change(ve);let e=oe.current;e!=null&&(oe.current=null,e.value===ve&&Oe(e.index));let t=se.current;t!=null&&(se.current=null,t.value===ve&&je(ve,t.eventDetails))});let Me=H((e,t)=>{let n=Tu(e,d,h,g),r=(t.reason===`input-change`||t.reason===`input-paste`)&&n.length===d&&(ye.current.length!==d||t.reason===`input-paste`)?Ar(t.reason,t.event):null;return n===ye.current?(r!=null&&je(n,r),null):(c?.(n,t),t.isCanceled?null:(ie(n),r==null?n.length!==d&&(se.current=null):se.current={value:n,eventDetails:r},n))}),Ne=H((e,t)=>{x?.(e,t)}),Pe=H((e,t)=>{e>ye.current.length?Oe(Math.min(ye.current.length,d-1)):(we(e),Ee(!0),F(!0),t.currentTarget.select())}),Fe=H(e=>{ta(ae.current,e.relatedTarget)||(I(!0),Ee(!1),F(!1),P===`onBlur`&&N.commit(ye.current))}),Ie=B.useCallback(e=>{if(le!=null)return e===0?le:`${le}-${e+1}`},[le]),Le=B.useMemo(()=>({...M,complete:ve.length===d,disabled:R,filled:be,focused:Te,length:d,readOnly:v,required:y,value:ve}),[R,M,be,Te,d,v,y,ve]),Re=B.useMemo(()=>({autoComplete:a,activeIndex:De,disabled:R,form:u,focusInput:Oe,queueFocusInput:ke,getInputId:Ie,handleInputBlur:Fe,handleInputFocus:Pe,inputMode:ge,inputAriaLabelledBy:de,invalid:A,length:d,mask:p,pattern:me,reportValueInvalid:Ne,readOnly:v,required:y,normalizeValue:g,setValue:Me,state:Le,validationType:h,value:ve}),[De,a,R,Oe,u,Ie,Fe,Pe,ge,de,A,d,p,me,ke,v,Ne,y,g,Me,Le,h,ve]),ze=ar(`div`,e,{ref:[t,ae],state:Le,props:[{role:`group`,"aria-describedby":fe,"aria-labelledby":ue},T],stateAttributesMapping:vu});return(0,V.jsx)(Sn,{elementsRef:z,onMapChange:e=>{Se(e.size)},children:(0,V.jsxs)(hu.Provider,{value:Re,children:[ze,_e&&(0,V.jsx)(`input`,{...N.getValidationProps(R,{onFocus(){Oe(0)},onChange(e){if(e.nativeEvent.defaultPrevented||R||v)return;let t=e.currentTarget.value,[n,r]=wu(t,d,h,g);r&&Ne(t,Ar(`input-change`,e.nativeEvent));let i=Me(n,kr(`input-change`,e.nativeEvent));i!=null&&i!==``&&ke(i.length-1,i)}}),ref:N.inputRef,type:`text`,id:le&&ne==null?`${le}-hidden-input`:void 0,form:u,name:ne,value:ve,autoComplete:a,inputMode:ge,minLength:d,maxLength:d,pattern:he,disabled:R,readOnly:v,required:y,"aria-hidden":!0,tabIndex:-1,style:ne?Pa:Na})]})})});function ku(...e){let t=e.flatMap(e=>e?.split(/\s+/).filter(Boolean)??[]);return t.length>0?Array.from(new Set(t)).join(` `):void 0}var Au=B.forwardRef(function(e,t){let{"aria-label":n,"aria-labelledby":r,render:i,className:a,style:o,...s}=e,{activeIndex:c,autoComplete:l,disabled:u,form:d,focusInput:f,queueFocusInput:p,getInputId:m,handleInputBlur:h,handleInputFocus:g,inputMode:_,inputAriaLabelledBy:v,invalid:y,length:b,mask:x,pattern:S,reportValueInvalid:C,readOnly:w,required:T,normalizeValue:E,setValue:D,state:O,validationType:k,value:A}=gu(),{ref:j,index:M}=Lr({guess:!0}),N=B.useRef(null),P=Kl(),F=A[M]??``,I=_u(O,F,M),ee=n,L=r??v,te=M===0?void 0:ee,R={id:m(M),value:F,type:x?`password`:`text`,inputMode:_,autoComplete:M===0?l:`off`,autoCorrect:`off`,spellCheck:`false`,enterKeyHint:M===b-1?`done`:`next`,maxLength:M===0?b:void 0,tabIndex:c===M?0:-1,disabled:u,form:d,pattern:S,readOnly:w,required:T,"aria-labelledby":te==null?L:void 0,"aria-invalid":!u&&y?!0:void 0,"aria-label":te,onMouseDown(e){e.defaultPrevented||u||(e.preventDefault(),f(M))},onFocus(e){e.defaultPrevented||u||g(M,e)},onBlur(e){e.defaultPrevented||h(e)},onChange(e){if(e.defaultPrevented||u||w)return;let t=e.currentTarget.value,[n,r]=wu(t,b,k,E);if(r&&C(t,Ar(Sr,e.nativeEvent)),n===``){t===``?D(Du(A,M),kr(Cr,e.nativeEvent)):F!==``&&(e.currentTarget.value=F,e.currentTarget.select());return}let i=Eu(A,M,n,b,k,E),a=D(i,kr(Sr,e.nativeEvent));if(a!=null){let e=Math.min(M+n.length,b-1);p(e,a)}},onKeyDown(e){if(e.defaultPrevented||u)return;let t=Math.max(b-1,0),n=Math.min(A.length,t),r=(e.ctrlKey||e.metaKey)&&!e.altKey,i=P===`rtl`,a=i?`ArrowRight`:`ArrowLeft`,o=i?`ArrowLeft`:`ArrowRight`;if(e.key===a){Yi(e),f(r?0:Math.max(0,M-1));return}if(e.key===o){Yi(e),f(r?n:Math.min(t,M+1));return}if(e.key===`Home`||e.key===`ArrowUp`){Yi(e),f(0);return}if(e.key===`End`||e.key===`ArrowDown`){Yi(e),f(n);return}if(w)return;function s(t,n){let r=D(t,kr(Er,e.nativeEvent));r!=null&&p(n,r)}if(e.key===`Backspace`&&r){Yi(e),s(``,0);return}if(e.key===`Delete`){Yi(e),s(Du(A,M),M);return}let c=e.currentTarget.value,l=e.currentTarget.selectionStart===0&&e.currentTarget.selectionEnd===c.length;if(e.key.length===1&&l&&F===e.key)Yi(e),M<b-1&&f(M+1);else if(e.key===`Backspace`){Yi(e);let t=Math.max(0,M-1);s(Du(A,F===``?t:M),t)}},onPaste(e){if(e.defaultPrevented||u||w)return;let t=``;try{t=e.clipboardData?.getData(`text/plain`)??``}catch{return}e.preventDefault();let[n,r]=wu(t,b,k,E);if(r&&C(t,Ar(wr,e.nativeEvent)),n===``)return;let i=D(Eu(A,M,n,b,k,E),kr(wr,e.nativeEvent));if(i!=null){let e=Math.min(M+n.length,b-1);p(e,i)}}};return ar(`input`,e,{ref:[t,j,N],state:I,props:[R,s],stateAttributesMapping:yu})}),ju=(0,B.createContext)(!1),Mu;(function(e){function t(e){let{children:t,className:r,invalid:i=!1,length:a,size:o,success:s=!1,vars:c,...l}=e;return(0,V.jsx)(ju.Provider,{value:i,children:(0,V.jsx)(Ou,{...l,...Nu.root({className:r,size:o,style:e.style,vars:c}),"data-invalid":i||void 0,"data-success":s||void 0,length:a,children:t??Array.from({length:a},(e,t)=>(0,V.jsx)(n,{},t))})})}e.Root=t;function n(e){let{className:t,vars:n,...r}=e,i=(0,B.useContext)(ju);return(0,V.jsx)(Au,{"aria-invalid":i||void 0,...r,...Nu.input({className:t,style:e.style,vars:n}),"data-invalid":i||void 0})}e.Input=n})(Mu||={});var Nu;(function(e){e.input=nn({className:`z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-appearance-0 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-bg-1 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-border-2 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-box-sizing-3 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-caret-color-4 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-text-5 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-outline-color-6 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-outline-offset-7 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-outline-style-8 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-outline-width-9 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-p-10 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-text-align-11 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-transition-duration-12 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-transition-property-13 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-transition-timing-function-14 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-opacity-15 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-scale-16 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-outline-color-17 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-outline-offset-18 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-bg-19 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-caret-color-20 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-text-21 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-outline-color-22 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-animation-23 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-bg-24 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-caret-color-25 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-text-26 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-outline-color-27 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-bg-28 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-animation-delay-29 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-animation-delay-30 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-animation-delay-31 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-animation-delay-32 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-animation-delay-33 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-animation-delay-34 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-animation-delay-35 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-transition-property-36 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-scale-37 z-tds_2f_web-tds_2f_web_2f_otp_2d_field_2f_input-animation-38`}),e.root=sn({axes:{size:[`large`,`medium`,`small`]},defaults:{size:`medium`},className:`z-tds_2f_web-tds_2f_web_2f_otp_2d_field-align-items-0 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-display-1 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-flex-wrap-2 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-max-width-3 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-min-width-4 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-animation-5 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-animation-6 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-column-gap-7 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-aspect-ratio-8 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-border-radius-9 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-flex-10 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-min-width-11 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-font-family-12 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-font-size-13 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-font-weight-14 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-letter-spacing-15 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-line-height-16 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-column-gap-17 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-aspect-ratio-18 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-border-radius-19 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-flex-20 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-min-width-21 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-font-family-22 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-font-size-23 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-font-weight-24 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-letter-spacing-25 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-line-height-26 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-column-gap-27 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-aspect-ratio-28 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-border-radius-29 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-flex-30 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-min-width-31 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-font-family-32 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-font-size-33 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-font-weight-34 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-letter-spacing-35 z-tds_2f_web-tds_2f_web_2f_otp_2d_field-line-height-36`})})(Nu||={});var Pu={newline:10,reset:27};function Fu(e){if(!Number.isSafeInteger(e))throw Error(`integer expected: ${e}`)}function Iu(e){if(!Number.isSafeInteger(e)||e<1||e>40)throw Error(`Invalid version=${e}. Expected number [1..40]`)}function Lu(e,t){return e.toString(2).padStart(t,`0`)}function Ru(e,t){let n=e%t;return n>=0?n:t+n}function zu(e,t){return Array(e).fill(t)}function Bu(e){return e-=e>>>1&1431655765,e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24}function Vu(e){let t=0,n=0;for(let r of e)t=Math.max(t,r.length),n+=r.length;let r=new Uint8Array(n),i=0;for(let n=0;n<t;n++)for(let t of e)n<t.length&&(r[i++]=t[n]);return r}function Hu(){let e,t=1/0;return{add(n,r){n>=t||(e=r,t=n)},get:()=>e,score:()=>t}}function Uu(e){return{has:t=>e.includes(t),decode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!=`string`)throw Error(`alphabet.decode input should be array of strings`);return t.map(t=>{if(typeof t!=`string`)throw Error(`alphabet.decode: not string element=${t}`);let n=e.indexOf(t);if(n===-1)throw Error(`Unknown letter: "${t}". Allowed: ${e}`);return n})},encode:t=>{if(!Array.isArray(t)||t.length&&typeof t[0]!=`number`)throw Error(`alphabet.encode input should be an array of numbers`);return t.map(t=>{if(Fu(t),t<0||t>=e.length)throw Error(`Digit index outside alphabet: ${t} (alphabet: ${e.length})`);return e[t]})}}}function Wu(e){if(e.length!==32)throw Error(`expects 32 element matrix`);let t=[1431655765,858993459,252645135,16711935,65535];for(let n=0;n<5;n++){let r=t[n]>>>0,i=1<<n,a=i<<1;for(let t=0;t<32;t+=a)for(let n=0;n<i;n++){let a=t+n,o=a+i,s=e[a]>>>0,c=e[o]>>>0,l=(s>>>i^c)&r;e[a]=(s^l<<i)>>>0,e[o]=(c^l)>>>0}}}var Gu=e=>1<<(e&31)>>>0,Ku=(e,t)=>t===0?0:t===32?4294967295:(1<<t)-1<<e>>>0,qu=class e{static size(e,t){if(typeof e==`number`&&(e={height:e,width:e}),!Number.isSafeInteger(e.height)&&e.height!==1/0)throw Error(`Bitmap: invalid height=${e.height} (${typeof e.height})`);if(!Number.isSafeInteger(e.width)&&e.width!==1/0)throw Error(`Bitmap: invalid width=${e.width} (${typeof e.width})`);return t!==void 0&&(e={width:Math.min(e.width,t.width),height:Math.min(e.height,t.height)}),e}static fromString(t){t=t.replace(/^\n+/g,``).replace(/\n+$/g,``);let n=t.split(String.fromCharCode(Pu.newline)),r=n.length,i,a=[];for(let e of n){let t=e.split(``).map(e=>{if(e===`X`)return!0;if(e===` `)return!1;if(e!==`?`)throw Error(`Bitmap.fromString: unknown symbol=${e}`)});if(i!==void 0&&t.length!==i)throw Error(`Bitmap.fromString different row sizes: width=${i} cur=${t.length}`);i=t.length,a.push(t)}return i===void 0&&(i=0),new e({height:r,width:i},a)}defined;value;tailMask;words;fullWords;height;width;constructor(t,n){let{height:r,width:i}=e.size(t);if(this.height=r,this.width=i,this.tailMask=Ku(0,i&31||32),this.words=Math.ceil(i/32)|0,this.fullWords=Math.floor(i/32)|0,this.value=new Uint32Array(this.words*r),this.defined=new Uint32Array(this.value.length),n){if(n.length!==r)throw Error(`Bitmap: data height mismatch: exp=${r} got=${n.length}`);for(let e=0;e<r;e++){let t=n[e];if(!t||t.length!==i)throw Error(`Bitmap: data width mismatch at y=${e}: exp=${i} got=${t?.length}`);for(let n=0;n<i;n++)this.set(n,e,t[n])}}}point(e){return this.get(e.x,e.y)}isInside(e){return 0<=e.x&&e.x<this.width&&0<=e.y&&e.y<this.height}size(e){if(!e)return{height:this.height,width:this.width};let{x:t,y:n}=this.xy(e);return{height:this.height-n,width:this.width-t}}xy(e){if(typeof e==`number`&&(e={x:e,y:e}),!Number.isSafeInteger(e.x))throw Error(`Bitmap: invalid x=${e.x}`);if(!Number.isSafeInteger(e.y))throw Error(`Bitmap: invalid y=${e.y}`);return e.x=Ru(e.x,this.width),e.y=Ru(e.y,this.height),e}wordIndex(e,t){return t*this.words+(e>>>5)}bitIndex(e,t){return{word:this.wordIndex(e,t),bit:e&31}}isDefined(e,t){let n=this.wordIndex(e,t),r=Gu(e);return(this.defined[n]&r)!==0}get(e,t){let n=this.wordIndex(e,t),r=Gu(e);return(this.value[n]&r)!==0}maskWord(e,t,n){let{defined:r,value:i}=this;r[e]|=t,i[e]=i[e]&~t|-n&t}set(e,t,n){n!==void 0&&this.maskWord(this.wordIndex(e,t),Gu(e),n)}fillRectConst(e,t,n,r,i){if(n<=0||r<=0||i===void 0)return;let{value:a,defined:o,words:s}=this,c=e>>>5,l=e+n-1>>>5,u=e&31,d=e+n-1&31;for(let e=0;e<r;e++){let n=(t+e)*s;if(c===l){let e=Ku(u,d-u+1);this.maskWord(n+c,e,i)}else{this.maskWord(n+c,Ku(u,32-u),i);for(let e=c+1;e<l;e++)o[n+e]=4294967295,a[n+e]=i?4294967295:0;this.maskWord(n+l,Ku(0,d+1),i)}}}rectWords(e,t,n,r,i){for(let a=0;a<r;a++){let r=t+a;for(let t=0;t<n;){let o=e+t,{bit:s,word:c}=this.bitIndex(o,r),l=Math.min(32-s,n-t);i(c,o,t,a,l),t+=l}}}rect(t,n,r){let{x:i,y:a}=this.xy(t),{height:o,width:s}=e.size(n,this.size({x:i,y:a}));if(typeof r!=`function`)return this.fillRectConst(i,a,s,o,r),this;let{defined:c,value:l}=this;return this.rectWords(i,a,s,o,(e,t,n,i,a)=>{let o=0,s=l[e];for(let e=0;e<a;e++){let a=Gu(t+e),c=r({x:n+e,y:i},(s&a)!==0);c!==void 0&&(o|=a,s=s&~a|-c&a)}c[e]|=o,l[e]=s}),this}rectRead(t,n,r){let{x:i,y:a}=this.xy(t),{height:o,width:s}=e.size(n,this.size({x:i,y:a})),{value:c}=this;return this.rectWords(i,a,s,o,(e,t,n,i,a)=>{let o=c[e];for(let e=0;e<a;e++){let a=Gu(t+e);r({x:n+e,y:i},(o&a)!==0)}}),this}hLine(e,t,n){return this.rect(e,{width:t,height:1},n)}vLine(e,t,n){return this.rect(e,{width:1,height:t},n)}border(t=2,n){let r=this.height+2*t,i=this.width+2*t,a=new e({height:r,width:i});return a.rect(0,1/0,n),a.embed({x:t,y:t},this),a}embed(t,n){let{x:r,y:i}=this.xy(t),{height:a,width:o}=e.size(n.size(),this.size({x:r,y:i}));if(o<=0||a<=0)return this;let{value:s,defined:c}=this,{words:l,value:u}=n;for(let e=0;e<a;e++){let t=e*l;for(let a=0;a<o;){let d=r+a,{word:f,bit:p}=this.bitIndex(d,i+e),{word:m,bit:h}=n.bitIndex(a,e),g=Math.min(32-p,o-a),_=u[m],v=h&&m+1<t+l?u[m+1]:0,y=h?(_>>>h|v<<32-h)>>>0:_,b=Ku(p,g),x=(y&Ku(0,g))<<p>>>0;c[f]|=b,s[f]=s[f]&~b|x,a+=g}}return this}rectSlice(t,n=this.size()){let{x:r,y:i}=this.xy(t),{height:a,width:o}=e.size(n,this.size({x:r,y:i})),s=new e({height:a,width:o});return this.rectRead({x:r,y:i},{height:a,width:o},(e,t)=>{this.isDefined(r+e.x,i+e.y)&&s.set(e.x,e.y,t)}),s}transpose(){let{height:t,width:n,value:r,defined:i,words:a}=this,o=new e({height:n,width:t}),{words:s,value:c,defined:l,tailMask:u}=o,d=new Uint32Array(32),f=new Uint32Array(32);for(let e=0;e<t;e+=32)for(let p=0;p<a;p++){let a=Math.min(32,t-e);for(let t=0;t<a;t++){let n=this.wordIndex(32*p,e+t);d[t]=r[n],f[t]=i[n]}d.fill(0,a),f.fill(0,a),Wu(d),Wu(f);for(let t=0;t<32;t++){let r=p*32+t;if(r>=n)break;let i=o.wordIndex(e,r),a=e>>>5==s-1?u:4294967295;c[i]=d[t]&a,l[i]=f[t]&a}}return o}negate(){let e=this.defined.length;for(let t=0;t<e;t++)this.value[t]=~this.value[t],this.defined[t]=4294967295;return this}scale(t){if(!Number.isSafeInteger(t)||t>1024)throw Error(`invalid scale factor: ${t}`);let{height:n,width:r}=this;return new e({height:t*n,width:t*r}).rect({x:0,y:0},1/0,({x:e,y:n})=>this.get(e/t|0,n/t|0))}clone(){let t=new e(this.size());return t.defined.set(this.defined),t.value.set(this.value),t}assertDrawn(){let{height:e,width:t,defined:n,tailMask:r,fullWords:i,words:a}=this;if(e&&t)for(let t=0;t<e;t++){let e=t*a;for(let t=0;t<i;t++)if(n[e+t]!==4294967295)throw Error(`Invalid color type=undefined`);if(a!==i&&(n[e+i]&r)!==r)throw Error(`Invalid color type=undefined`)}}countPatternInRow(e,t,...n){if(t<=0||t>=32)throw Error(`wrong patternLen`);let r=(1<<t)-1,{width:i,value:a,words:o}=this,s=0,c=this.wordIndex(0,e);for(let e=0,l=0;e<o;e++){let u=a[c+e],d=e===o-1&&i&31||32;for(let i=0;i<d;i++)if(l=(l<<1|u>>>i&1)&r,!(e*32+i+1<t)){for(let e of n)if(l===e){s++;break}}}return s}getRuns(e,t){let{width:n,value:r,words:i}=this;if(n===0)return;let a=0,o,s=this.wordIndex(0,e);for(let e=0;e<i;e++){let c=r[s+e],l=e===i-1&&n&31||32;for(let e=0;e<l;e++){let n=!!(c&1<<e);n===o?a++:(o!==void 0&&t(a,o),o=n,a=1)}}o!==void 0&&t(a,o)}popcnt(){let{height:e,width:t,words:n,fullWords:r,tailMask:i}=this;if(!e||!t)return 0;let a=0;for(let t=0;t<e;t++){let e=t*n;for(let t=0;t<r;t++)a+=Bu(this.value[e+t]);n!==r&&(a+=Bu(this.value[e+r]&i))}return a}countBoxes2x2(e){let{width:t,words:n}=this;if(t<2||(e|0)<0||e+1>=this.height)return 0;let r=this.wordIndex(0,e)|0,i=this.wordIndex(0,e+1)|0,a=t&31?Ku(0,t-1&31):2147483647,o=0;for(let e=0;e<n;e++){let t=this.value[r+e],s=this.value[i+e],c=~(t^s)>>>0,l=e+1<n?this.value[r+e+1]>>>0:0,u=~(t^(t>>>1|(l&1)<<31)>>>0)>>>0,d=e+1<n?this.value[i+e+1]>>>0:0,f=~(s^(s>>>1|(d&1)<<31)>>>0)>>>0,p=(c&u&f)>>>0;e===n-1&&(p&=a),o+=Bu(p)}return o}toString(){let e=String.fromCharCode(Pu.newline),t=``;for(let n=0;n<this.height;n++){let r=``;for(let e=0;e<this.width;e++){let t=this.get(e,n);r+=this.isDefined(e,n)?t?`X`:` `:`?`}t+=r+(n+1===this.height?``:e)}return t}toRaw(){let e=Array.from({length:this.height},()=>Array(this.width));for(let t=0;t<this.height;t++){let n=e[t];for(let e=0;e<this.width;e++)n[e]=this.get(e,t)}return e}toASCII(){let{height:e,width:t}=this,n=``;for(let r=0;r<e;r+=2){for(let i=0;i<t;i++){let t=this.get(i,r),a=r+1>=e||this.get(i,r+1);!t&&!a?n+=`█`:!t&&a?n+=`▀`:t&&!a?n+=`▄`:t&&a&&(n+=` `)}n+=String.fromCharCode(Pu.newline)}return n}toTerm(){let e=String.fromCharCode(Pu.reset),t=e+`[0m`,n=e+`[1;47m `+t,r=e+`[40m `+t,i=String.fromCharCode(Pu.newline),a=``;for(let e=0;e<this.height;e++){for(let t=0;t<this.width;t++){let i=this.get(t,e);a+=i?r:n}a+=i}return a}toSVG(e=!0){let t=`<svg viewBox="0 0 ${this.width} ${this.height}" xmlns="http://www.w3.org/2000/svg">`,n=``,r;return this.rectRead(0,1/0,(i,a)=>{if(!a)return;let{x:o,y:s}=i;if(!e){t+=`<rect x="${o}" y="${s}" width="1" height="1" />`;return}let c=`M${o} ${s}`;if(r){let e=`m${o-r.x} ${s-r.y}`;e.length<=c.length&&(c=e)}let l=o<10?`H${o}`:`h-1`;n+=`${c}h1v1${l}Z`,r=i}),e&&(t+=`<path d="${n}"/>`),t+=`</svg>`,t}toGIF(){let e=e=>[e&255,e>>>8&255],t=[...e(this.width),...e(this.height)],n=[];this.rectRead(0,1/0,(e,t)=>n.push(+(t===!0)));let r=[71,73,70,56,55,97,...t,246,0,0,255,255,255,...zu(381,0),44,0,0,0,0,...t,0,7],i=Math.floor(n.length/126);for(let e=0;e<i;e++)r.push(127,128,...n.slice(126*e,126*(e+1)).map(e=>+e));return r.push(n.length%126+1,128,...n.slice(i*126).map(e=>+e)),r.push(1,129,0,59),new Uint8Array(r)}toImage(e=!1){let{height:t,width:n}=this.size(),r=new Uint8Array(t*n*(e?3:4)),i=0;for(let a=0;a<t;a++)for(let t=0;t<n;t++){let n=this.get(t,a)?0:255;r[i++]=n,r[i++]=n,r[i++]=n,e||(r[i++]=255)}return{height:t,width:n,data:r}}},Ju=[`low`,`medium`,`quartile`,`high`],Yu=[`numeric`,`alphanumeric`,`byte`,`kanji`,`eci`],Xu=[26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706],Zu={low:[7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],medium:[10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],quartile:[13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],high:[17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]},Qu={low:[1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],medium:[1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],quartile:[1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],high:[1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]},$u={size:{encode:e=>21+4*(e-1),decode:e=>(e-17)/4},sizeType:e=>Math.floor((e+7)/17),alignmentPatterns(e){if(e===1)return[];let t=$u.size.encode(e)-6-1,n=t-6,r=Math.ceil(n/28),i=Math.floor(n/r);i%2?i+=1:n%r*2>=r&&(i+=2);let a=[6];for(let e=1;e<r;e++)a.push(t-(r-e)*i);return a.push(t),a},ECCode:{low:1,medium:0,quartile:3,high:2},formatMask:21522,formatBits(e,t){let n=$u.ECCode[e]<<3|t,r=n;for(let e=0;e<10;e++)r=r<<1^(r>>9)*1335;return(n<<10|r)^$u.formatMask},versionBits(e){let t=e;for(let e=0;e<12;e++)t=t<<1^(t>>11)*7973;return e<<12|t},alphabet:{numeric:Uu(`0123456789`),alphanumerc:Uu(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:`)},lengthBits(e,t){return{numeric:[10,12,14],alphanumeric:[9,11,13],byte:[8,16,16],kanji:[8,10,12],eci:[0,0,0]}[t][$u.sizeType(e)]},modeBits:{numeric:`0001`,alphanumeric:`0010`,byte:`0100`,kanji:`1000`,eci:`0111`},capacity(e,t){let n=Xu[e-1],r=Zu[t][e-1],i=Qu[t][e-1],a=Math.floor(n/i)-r,o=i-n%i;return{words:r,numBlocks:i,shortBlocks:o,blockLen:a,capacity:(n-r*i)*8,total:(r+a)*i+i-o}}},ed=[(e,t)=>(e+t)%2==0,(e,t)=>t%2==0,(e,t)=>e%3==0,(e,t)=>(e+t)%3==0,(e,t)=>(Math.floor(t/2)+Math.floor(e/3))%2==0,(e,t)=>e*t%2+e*t%3==0,(e,t)=>(e*t%2+e*t%3)%2==0,(e,t)=>((e+t)%2+e*t%3)%2==0],G={tables:(e=>{let t=zu(256,0),n=zu(256,0);for(let r=0,i=1;r<256;r++)t[r]=i,n[i]=r,i<<=1,i&256&&(i^=e);return{exp:t,log:n}})(285),exp:e=>G.tables.exp[e],log(e){if(e===0)throw Error(`GF.log: invalid arg=${e}`);return G.tables.log[e]%255},mul(e,t){return e===0||t===0?0:G.tables.exp[(G.tables.log[e]+G.tables.log[t])%255]},add:(e,t)=>e^t,pow:(e,t)=>G.tables.exp[G.tables.log[e]*t%255],inv(e){if(e===0)throw Error(`GF.inverse: invalid arg=${e}`);return G.tables.exp[255-G.tables.log[e]]},polynomial(e){if(e.length==0)throw Error(`GF.polymomial: invalid length`);if(e[0]!==0)return e;let t=0;for(;t<e.length-1&&e[t]==0;t++);return e.slice(t)},monomial(e,t){if(e<0)throw Error(`GF.monomial: invalid degree=${e}`);if(t==0)return[0];let n=zu(e+1,0);return n[0]=t,G.polynomial(n)},degree:e=>e.length-1,coefficient:(e,t)=>e[G.degree(e)-t],mulPoly(e,t){if(e[0]===0||t[0]===0)return[0];let n=zu(e.length+t.length-1,0);for(let r=0;r<e.length;r++)for(let i=0;i<t.length;i++)n[r+i]=G.add(n[r+i],G.mul(e[r],t[i]));return G.polynomial(n)},mulPolyScalar(e,t){if(t==0)return[0];if(t==1)return e;let n=zu(e.length,0);for(let r=0;r<e.length;r++)n[r]=G.mul(e[r],t);return G.polynomial(n)},mulPolyMonomial(e,t,n){if(t<0)throw Error(`GF.mulPolyMonomial: invalid degree`);if(n==0)return[0];let r=zu(e.length+t,0);for(let t=0;t<e.length;t++)r[t]=G.mul(e[t],n);return G.polynomial(r)},addPoly(e,t){if(e[0]===0)return t;if(t[0]===0)return e;let n=e,r=t;n.length>r.length&&([n,r]=[r,n]);let i=zu(r.length,0),a=r.length-n.length,o=r.slice(0,a);for(let e=0;e<o.length;e++)i[e]=o[e];for(let e=a;e<r.length;e++)i[e]=G.add(n[e-a],r[e]);return G.polynomial(i)},remainderPoly(e,t){let n=Array.from(e);for(let r=0;r<e.length-t.length+1;r++){let e=n[r];if(e!==0)for(let i=1;i<t.length;i++)t[i]!==0&&(n[r+i]=G.add(n[r+i],G.mul(t[i],e)))}return n.slice(e.length-t.length+1,n.length)},divisorPoly(e){let t=[1];for(let n=0;n<e;n++)t=G.mulPoly(t,[1,G.pow(2,n)]);return t},evalPoly(e,t){if(t==0)return G.coefficient(e,0);let n=e[0];for(let r=1;r<e.length;r++)n=G.add(G.mul(t,n),e[r]);return n},euclidian(e,t,n){G.degree(e)<G.degree(t)&&([e,t]=[t,e]);let r=e,i=t,a=[0],o=[1];for(;2*G.degree(i)>=n;){let e=r,t=a;if(r=i,a=o,r[0]===0)throw Error(`rLast[0] === 0`);i=e;let n=[0],s=G.inv(r[0]);for(;G.degree(i)>=G.degree(r)&&i[0]!==0;){let e=G.degree(i)-G.degree(r),t=G.mul(i[0],s);n=G.addPoly(n,G.monomial(e,t)),i=G.addPoly(i,G.mulPolyMonomial(r,e,t))}if(n=G.mulPoly(n,a),o=G.addPoly(n,t),G.degree(i)>=G.degree(r))throw Error(`Division failed r: ${i}, rLast: ${r}`)}let s=G.coefficient(o,0);if(s==0)throw Error(`sigmaTilde(0) was zero`);let c=G.inv(s);return[G.mulPolyScalar(o,c),G.mulPolyScalar(i,c)]}};function td(e){return{encode(t){let n=G.divisorPoly(e),r=Array.from(t);return r.push(...n.slice(0,-1).fill(0)),Uint8Array.from(G.remainderPoly(r,n))},decode(t){let n=t.slice(),r=G.polynomial(Array.from(t)),i=zu(e,0),a=!1;for(let t=0;t<e;t++){let e=G.evalPoly(r,G.exp(t));i[i.length-1-t]=e,e!==0&&(a=!0)}if(!a)return n;i=G.polynomial(i);let o=G.monomial(e,1),[s,c]=G.euclidian(o,i,e),l=zu(G.degree(s),0),u=0;for(let e=1;e<256&&u<l.length;e++)G.evalPoly(s,e)===0&&(l[u++]=G.inv(e));if(u!==l.length)throw Error(`RS.decode: invalid errors number`);for(let e=0;e<l.length;e++){let t=n.length-1-G.log(l[e]);if(t<0)throw Error(`RS.decode: invalid error location`);let r=G.inv(l[e]),i=1;for(let t=0;t<l.length;t++)e!==t&&(i=G.mul(i,G.add(1,G.mul(l[t],r))));n[t]=G.add(n[t],G.mul(G.evalPoly(c,r),G.inv(i)))}return n}}}function nd(e,t){let{words:n,shortBlocks:r,numBlocks:i,blockLen:a,total:o}=$u.capacity(e,t),s=td(n);return{encode(e){let t=[],n=[];for(let o=0;o<i;o++){let i=a+(o<r?0:1);t.push(e.subarray(0,i)),n.push(s.encode(e.subarray(0,i))),e=e.subarray(i)}let o=Vu(t),c=Vu(n),l=new Uint8Array(o.length+c.length);return l.set(o),l.set(c,o.length),l},decode(e){if(e.length!==o)throw Error(`interleave.decode: len(data)=${e.length}, total=${o}`);let t=[];for(let e=0;e<i;e++){let i=e<r;t.push(new Uint8Array(n+a+ +!i))}let c=0;for(let n=0;n<a;n++)for(let r=0;r<i;r++)t[r][n]=e[c++];for(let n=r;n<i;n++)t[n][a]=e[c++];for(let o=a;o<a+n;o++)for(let n=0;n<i;n++){let i=n<r;t[n][o+ +!i]=e[c++]}let l=[];for(let e of t)l.push(...Array.from(s.decode(e)).slice(0,-n));return Uint8Array.from(l)}}}function rd(e,t,n,r=!1){let i=$u.size.encode(e),a=new qu(i+2),o=new qu(3).rect(0,3,!0).border(1,!1).border(1,!0).border(1,!1);a=a.embed(0,o).embed({x:-o.width,y:0},o).embed({x:0,y:-o.height},o),a=a.rectSlice(1,i);let s=new qu(1).rect(0,1,!0).border(1,!1).border(1,!0),c=$u.alignmentPatterns(e);for(let e of c)for(let t of c)a.isDefined(t,e)||a.embed({x:t-2,y:e-2},s);a=a.hLine({x:0,y:6},1/0,({x:e})=>a.isDefined(e,6)?void 0:e%2==0).vLine({x:6,y:0},1/0,({y:e})=>a.isDefined(6,e)?void 0:e%2==0);{let e=$u.formatBits(t,n),o=t=>!r&&(e>>t&1)==1;for(let e=0;e<6;e++)a.set(8,e,o(e));for(let e=6;e<8;e++)a.set(8,e+1,o(e));for(let e=8;e<15;e++)a.set(8,i-15+e,o(e));for(let e=0;e<8;e++)a.set(i-e-1,8,o(e));for(let e=8;e<9;e++)a.set(15-e-1+1,8,o(e));for(let e=9;e<15;e++)a.set(15-e-1,8,o(e));a.set(8,i-8,!r)}if(e>=7){let t=$u.versionBits(e);for(let e=0;e<18;e+=1){let n=!r&&(t>>e&1)==1,o=Math.floor(e/3),s=e%3+i-8-3;a.set(s,o,n),a.set(o,s,n)}}return a}function id(e,t,n){let r=e.height,i=ed[t],a=-1,o=r-1;for(let t=r-1;t>0;t-=2){for(t==6&&(t=5);;o+=a){for(let r=0;r<2;r+=1){let a=t-r;e.isDefined(a,o)||n(a,o,i(a,o))}if(o+a<0||o+a>=r)break}a=-a}}function ad(e){let t=`numeric`;for(let n of e)if(!$u.alphabet.numeric.has(n)&&(t=`alphanumeric`,!$u.alphabet.alphanumerc.has(n)))return`byte`;return t}function od(e){if(typeof e!=`string`)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}function sd(e,t,n,r,i=od){let a=``,o=n.length;if(r===`numeric`){let e=$u.alphabet.numeric.decode(n.split(``)),t=e.length;for(let n=0;n<t-2;n+=3)a+=Lu(e[n]*100+e[n+1]*10+e[n+2],10);t%3==1?a+=Lu(e[t-1],4):t%3==2&&(a+=Lu(e[t-2]*10+e[t-1],7))}else if(r===`alphanumeric`){let e=$u.alphabet.alphanumerc.decode(n.split(``)),t=e.length;for(let n=0;n<t-1;n+=2)a+=Lu(e[n]*45+e[n+1],11);t%2==1&&(a+=Lu(e[t-1],6))}else if(r===`byte`){let e=i(n);o=e.length,a=Array.from(e).map(e=>Lu(e,8)).join(``)}else throw Error(`encode: unsupported type`);let{capacity:s}=$u.capacity(e,t),c=Lu(o,$u.lengthBits(e,r)),l=$u.modeBits[r]+c+a;if(l.length>s)throw Error(`Capacity overflow`);l+=`0`.repeat(Math.min(4,Math.max(0,s-l.length))),l.length%8&&(l+=`0`.repeat(8-l.length%8));for(let e=0;l.length!==s;e++)l+=`1110110000010001`[e%16];let u=Uint8Array.from(l.match(/(.{8})/g).map(e=>Number(`0b${e}`)));return nd(e,t).encode(u)}function cd(e,t,n,r,i=!1){let a=rd(e,t,r,i),o=0,s=8*n.length;if(id(a,r,(e,t,r)=>{let i=!1;o<s&&(i=!!(n[o>>>3]>>(7-o&7)&1),o++),a.set(e,t,i!==r)}),o!==s)throw Error(`QR: bytes left after draw`);return a}var ld=e=>{let t=e.map(e=>e?`1`:`0`).join(``);return{len:t.length,n:Number(`0b${t}`)}},ud=[!0,!1,!0,!0,!0,!1,!0],dd=[!1,!1,!1,!1],fd=ld([...ud,...dd]),pd=ld([...dd,...ud]);function md(e){let{width:t,height:n}=e,r=e.transpose(),i=0;for(let t=0;t<n;t++)e.getRuns(t,e=>{e>=5&&(i+=3+(e-5))});for(let e=0;e<t;e++)r.getRuns(e,e=>{e>=5&&(i+=3+(e-5))});let a=0;for(let t=0;t<n-1;t++)a+=3*e.countBoxes2x2(t);let o=0;for(let t=0;t<n;t++)o+=40*e.countPatternInRow(t,fd.len,fd.n,pd.n);for(let e=0;e<t;e++)o+=40*r.countPatternInRow(e,fd.len,fd.n,pd.n);let s=0;s=e.popcnt();let c=s/(n*t)*100,l=10*Math.floor(Math.abs(c-50)/5);return i+a+o+l}function hd(e,t,n,r){if(r===void 0){let i=Hu();for(let r=0;r<ed.length;r++)i.add(md(cd(e,t,n,r,!0)),r);r=i.get()}if(r===void 0)throw Error(`Cannot find mask`);return cd(e,t,n,r)}function gd(e){if(!Ju.includes(e))throw Error(`Invalid error correction mode=${e}. Expected: ${Ju}`)}function _d(e){if(!Yu.includes(e))throw Error(`Encoding: invalid mode=${e}. Expected: ${Yu}`);if(e===`kanji`||e===`eci`)throw Error(`Encoding: ${e} is not supported (yet?).`)}function vd(e){if(![0,1,2,3,4,5,6,7].includes(e)||!ed[e])throw Error(`Invalid mask=${e}. Expected number [0..7]`)}function yd(e,t=`raw`,n={}){let r=n.ecc===void 0?`medium`:n.ecc;gd(r);let i=n.encoding===void 0?ad(e):n.encoding;_d(i),n.mask!==void 0&&vd(n.mask);let a=n.version,o,s=Error(`Unknown error`);if(a!==void 0)Iu(a),o=sd(a,r,e,i,n.textEncoder);else for(let t=1;t<=40;t++)try{o=sd(t,r,e,i,n.textEncoder),a=t;break}catch(e){s=e}if(!a||!o)throw s;let c=hd(a,r,o,n.mask);c.assertDrawn();let l=n.border===void 0?2:n.border;if(!Number.isSafeInteger(l))throw Error(`invalid border type=${typeof l}`);if(c=c.border(l,!1),n.scale!==void 0&&(c=c.scale(n.scale)),t===`raw`)return c.toRaw();if(t===`ascii`)return c.toASCII();if(t===`svg`)return c.toSVG(n.optimize);if(t===`gif`)return c.toGIF();if(t===`term`)return c.toTerm();throw Error(`Unknown output: ${t}`)}function bd(e,t={}){let{errorCorrection:n,version:r}=t,i=yd(e,`raw`,{border:0,ecc:n,scale:1,version:r});return{edgeLength:i.length,finderLength:7,grid:i,value:e}}function xd(e){let{arena:t,...n}=e;return(0,V.jsxs)(xd.Root,{...n,children:[(0,V.jsx)(xd.Finder,{}),(0,V.jsx)(xd.Cells,{}),t&&(0,V.jsx)(xd.Arena,{children:typeof t==`string`?(0,V.jsx)(`img`,{alt:`Arena`,src:t,style:{borderRadius:1,height:`100%`,objectFit:`cover`,width:`100%`}}):t})]})}(function(e){e.Context=B.createContext(null);function t(t){let{children:n,size:r=`100%`,value:i,version:a,errorCorrection:o,...s}=t,c=B.useMemo(()=>(B.Children.map(n,e=>!B.isValidElement(e)||typeof e.type==`string`?null:`displayName`in e.type&&e.type.displayName===`Arena`||null)??[]).some(Boolean),[n]),l=B.useMemo(()=>{let e=o;return c&&o===`low`&&(e=`medium`),bd(i,{errorCorrection:e,version:a})},[i,c,o,a]),u=l.edgeLength*1,d=l.finderLength*1/2,f=c?Math.floor(u/4):0,p=B.useMemo(()=>({arenaSize:f,cellSize:1,edgeSize:u,qrcode:l,finderSize:d}),[f,u,l,d]);return(0,V.jsx)(e.Context.Provider,{value:p,children:(0,V.jsxs)(`svg`,{...s,width:r,height:r,viewBox:`0 0 ${u} ${u}`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,V.jsx)(`title`,{children:`QR Code`}),n]})})}e.Root=t,(function(e){e.displayName=`Root`})(t=e.Root||={});function n(t){let{className:n,fill:r,innerClassName:i,radius:a=.25}=t,{cellSize:o,edgeSize:s,finderSize:c}=B.useContext(e.Context);function l({position:e}){let t=c-(c-o)-o/2;e===`top-right`&&(t=s-c-(c-o)-o/2);let l=c-(c-o)-o/2;e===`bottom-left`&&(l=s-c-(c-o)-o/2);let u=c-o*1.5;e===`top-right`&&(u=s-c-o*1.5);let d=c-o*1.5;return e===`bottom-left`&&(d=s-c-o*1.5),(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`rect`,{className:n,stroke:r??`currentColor`,fill:`transparent`,x:t,y:l,width:o+(c-o)*2,height:o+(c-o)*2,rx:2*a*(c-o),ry:2*a*(c-o),strokeWidth:o}),(0,V.jsx)(`rect`,{className:i,fill:r??`currentColor`,x:u,y:d,width:o*3,height:o*3,rx:2*a*o,ry:2*a*o})]})}return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(l,{position:`top-left`}),(0,V.jsx)(l,{position:`top-right`}),(0,V.jsx)(l,{position:`bottom-left`})]})}e.Finder=n,(function(e){e.displayName=`Finder`})(n=e.Finder||={});function r(t){let{className:n,fill:r=`currentColor`,inset:i=!0,radius:a=1}=t,{arenaSize:o,cellSize:s,qrcode:c}=B.useContext(e.Context),{edgeLength:l,finderLength:u}=c,d=B.useMemo(()=>{let e=``;for(let t=0;t<c.grid.length;t++){let n=c.grid[t];if(n)for(let r=0;r<n.length;r++){if(!n[r])continue;let c=l/2-o/2,d=c+o;if(t>=c&&t<=d&&r>=c&&r<=d)continue;let f=t<u&&r<u,p=t<u&&r>=l-u,m=t>=l-u&&r<u;if(f||p||m)continue;let h=i?s*.1:0,g=(s-h*2)/2,_=r*s+s/2,v=t*s+s/2,y=_-g,b=_+g,x=v-g,S=v+g,C=a*g;e+=[`M ${y+C},${x}`,`L ${b-C},${x}`,`A ${C},${C} 0 0,1 ${b},${x+C}`,`L ${b},${S-C}`,`A ${C},${C} 0 0,1 ${b-C},${S}`,`L ${y+C},${S}`,`A ${C},${C} 0 0,1 ${y},${S-C}`,`L ${y},${x+C}`,`A ${C},${C} 0 0,1 ${y+C},${x}`,`z`].join(` `)}}return e},[o,s,l,u,c.grid,i,a]);return(0,V.jsx)(`path`,{className:n,d,fill:r})}e.Cells=r,(function(e){e.displayName=`Cells`})(r=e.Cells||={});function i(t){let{children:n}=t,{arenaSize:r,cellSize:i,edgeSize:a}=B.useContext(e.Context),o=Math.ceil(a/2-r/2),s=r+r%2,c=i/2;return(0,V.jsx)(`foreignObject`,{x:o,y:o,width:s,height:s,children:(0,V.jsx)(`div`,{style:{alignItems:`center`,display:`flex`,fontSize:1,justifyContent:`center`,height:`100%`,overflow:`hidden`,width:`100%`,padding:c,boxSizing:`border-box`},children:n})})}e.Arena=i,(function(e){e.displayName=`Arena`})(i=e.Arena||={})})(xd||={});var Sd=B.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{node:c,subtree:l}=go({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,V.jsxs)(B.Fragment,{children:[l,c&&Ti.createPortal(n,c)]})}),Cd=B.createContext(void 0);function wd(e){let t=B.useContext(Cd);if(t===void 0&&!e)throw Error(An(72));return t}var Td={...hc,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},Ed=class extends Ks{constructor(e,t,n){let r=new cc;super(Dd(e,r,t,n),Od(r),Td)}setOpen=(e,t)=>{rc(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,kr(vr,e))}};function Dd(e,t,n,r=!1){return{...lc(t,n,r),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e}}function Od(e){return{popupRef:B.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var kd=Fs(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=Zs((e,t)=>new Ed({open:n,openProp:r,activeTriggerId:d,triggerIdProp:u},e,t));p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`mounted`),v=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i,disabled:t}),ac(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:y,transitionStatus:b}=oc(h,p),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=B.useRef(null);U(()=>{m&&t&&p.setOpen(!1,kr(Dr))},[m,t,p]),U(()=>{b===`ending`&&C===`none`||b!==`ending`&&x?(S!==`delay`&&(w.current=S),p.set(`instantType`,`delay`)):w.current!==null&&(p.set(`instantType`,w.current),w.current=null)},[b,x,C,S,p]),U(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]),B.useImperativeHandle(o,()=>({unmount:y,close:()=>p.setOpen(!1,kr(Or))}),[y,p]);let T=h||_||!t&&a!==`none`;return(0,V.jsxs)(Cd.Provider,{value:p,children:[l&&(0,V.jsx)(Qs,{handle:l,store:p}),T&&(0,V.jsx)(Ad,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:v}):f]})});function Ad({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=Do(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=wo(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n}),o=B.useMemo(()=>Gn(a.reference,i.reference),[a.reference,i.reference]);return sc(e,{activeTriggerProps:o,inactiveTriggerProps:o,popupProps:i.floating??yn}),null}var jd=B.createContext(void 0);function Md(){return B.useContext(jd)}var Nd=`data-base-ui-tooltip-trigger`;function Pd(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;e<t.length;e+=1){let n=t[e];if(W(n))return n}}let t=e.target;return W(t)?t:null}function Fd(e){let t=e;for(;t;){let e=t.closest(`[${Nd}]`);if(e)return e;let n=t.getRootNode();t=`host`in n&&W(n.host)?n.host:null}return null}var Id=Is(function(e,t){let{render:n,className:r,style:i,handle:a,payload:o,disabled:s,delay:c,closeOnClick:l=!0,closeDelay:u,id:d,...f}=e,p=wd(!0),m=gc(a)??p;if(!m)throw Error(An(82));let h=gr(d),g=m.useState(`isTriggerActive`,h),_=m.useState(`isOpenedByTrigger`,h),v=m.useState(`floatingRootContext`),y=B.useRef(null),b=u??0,{registerTrigger:x,isMountedByThisTrigger:S}=ic(h,y,m,{payload:o,closeOnClick:l,closeDelay:b}),C=Md(),{activeIdRef:w,delayRef:T,isInstantPhase:E,hasProvider:D}=Aa(v,{open:_}),O=Tc(v);m.useSyncedValue(`isInstantPhase`,E);let k=m.useState(`disabled`),A=s??k,j=Si(A),M=m.useState(`trackCursorAxis`),N=m.useState(`disableHoverablePopup`),P=B.useRef(!1),F=Ji(),I=B.useRef(void 0);function ee(){return D&&w.current!=null?0:c??C??600}function L(e){let t=y.current;if(!t||!e)return!1;let n=Fd(e);return n!==null&&n!==t&&ta(t,n)}function te(e){let t=L(e);return P.current=t,t&&(O.openChangeTimeout.clear(),O.restTimeout.clear(),O.restTimeoutPending=!1,F.clear()),t}let R=Oc(v,{enabled:!A,mouseOnly:!0,move:!1,handleClose:!N&&M!==`both`?Ic():null,restMs:ee,delay(){return u==null&&D?{close:Ca(T.current,`close`)}:{close:b}},triggerElementRef:y,isActiveTrigger:g,isClosing:()=>m.select(`transitionStatus`)===`ending`,shouldOpen(){return!P.current}}),ne=bc(v,{enabled:!A}).reference,re=e=>{let t=P.current,n=Pd(e),r=te(n),i=y.current,a=i&&n&&ta(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`)m.setOpen(!1,kr(yr,e));else if(t&&!r&&a&&!j.current&&!m.select(`open`)&&i&&Qi(I.current)){let t=()=>{!P.current&&!j.current&&!m.select(`open`)&&m.setOpen(!0,kr(yr,e,i))},n=ee();n===0?(F.clear(),t()):F.start(n,t)}},ie=m.useState(`triggerProps`,S);return ar(`button`,e,{state:{open:_},ref:[t,x,y],props:[R,ne,S||M!==`none`?ie:void 0,{onMouseOver(e){re(e.nativeEvent)},onFocus(e){L(Pd(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){P.current=!1,F.clear(),I.current=void 0},onPointerEnter(e){I.current=e.pointerType},onPointerDown(e){I.current=e.pointerType,m.set(`closeOnClick`,l),l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},id:h,[ha]:A?``:void 0,[Nd]:A?void 0:``},f],stateAttributesMapping:fa})}),Ld=B.createContext(void 0);function Rd(){let e=B.useContext(Ld);if(e===void 0)throw Error(An(70));return e}var zd=B.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return wd().useState(`mounted`)||n?(0,V.jsx)(Ld.Provider,{value:n,children:(0,V.jsx)(Sd,{ref:t,...r})}):null}),Bd=B.createContext(void 0);function Vd(){let e=B.useContext(Bd);if(e===void 0)throw Error(An(71));return e}var Hd=B.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=fo,style:g,..._}=e,v=wd(),y=Rd(),b=v.useState(`open`),x=v.useState(`mounted`),S=v.useState(`trackCursorAxis`),C=v.useState(`disableHoverablePopup`),w=v.useState(`floatingRootContext`),T=v.useState(`instantType`),E=v.useState(`transitionStatus`),D=ou({anchor:i,positionMethod:a,floatingRootContext:w,mounted:x,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:y,collisionAvoidance:h,adaptiveOrigin:v.useState(`adaptiveOrigin`)}),O=uu(e,B.useMemo(()=>({open:b,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:S===`none`?T:`tracking-cursor`}),[b,D.side,D.align,D.anchorHidden,S,T]),{styles:D.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,V.jsx)(Bd.Provider,{value:D,children:O})}),Ud=B.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=wd(),{side:s,align:c}=Vd(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);ki({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),Ec(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return ar(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[Xs,f,lu(d),a],stateAttributesMapping:ma})}),Wd=function(e){let{delay:t,closeDelay:n,timeout:r=400}=e,i=B.useMemo(()=>({open:t,close:n}),[t,n]);return(0,V.jsx)(jd.Provider,{value:t,children:(0,V.jsx)(ka,{delay:i,timeoutMs:r,children:e.children})})},Gd;(function(e){e.Provider=Wd,e.Root=kd,e.Trigger=Id;function t(e){let{align:t,alignOffset:n,anchor:r,className:i,collisionPadding:a,side:o,sideOffset:s=8,vars:c,...l}=e;return(0,V.jsx)(zd,{children:(0,V.jsx)(Hd,{...Kd.positioner(),align:t,alignOffset:n,anchor:r,collisionPadding:a,side:o,sideOffset:s,children:(0,V.jsx)(Ud,{...l,...Kd.popup({className:i,style:e.style,vars:c})})})})}e.Popup=t})(Gd||={});var Kd;(function(e){e.popup=nn({className:`z-tds_2f_web-tds_2f_web_2f_tooltip_2f_popup-bg-0 z-tds_2f_web-tds_2f_web_2f_tooltip_2f_popup-border-radius-1 z-tds_2f_web-tds_2f_web_2f_tooltip_2f_popup-box-sizing-2 z-tds_2f_web-tds_2f_web_2f_tooltip_2f_popup-text-3 z-tds_2f_web-tds_2f_web_2f_tooltip_2f_popup-max-width-4 z-tds_2f_web-tds_2f_web_2f_tooltip_2f_popup-padding-block-5 z-tds_2f_web-tds_2f_web_2f_tooltip_2f_popup-padding-inline-6 z-tds_2f_web-tds_2f_web_2f_tooltip_2f_popup-transform-origin-7 z-tds_2f_web-tds_2f_web_2f_tooltip_2f_popup-transition-duration-8 z-tds_2f_web-tds_2f_web_2f_tooltip_2f_popup-transition-property-9 z-tds_2f_web-tds_2f_web_2f_tooltip_2f_popup-transition-timing-function-10 z-tds_2f_web-tds_2f_web_2f_tooltip_2f_popup-font-family-11 z-tds_2f_web-tds_2f_web_2f_tooltip_2f_popup-font-size-12 z-tds_2f_web-tds_2f_web_2f_tooltip_2f_popup-font-weight-13 z-tds_2f_web-tds_2f_web_2f_tooltip_2f_popup-letter-spacing-14 z-tds_2f_web-tds_2f_web_2f_tooltip_2f_popup-line-height-15 z-tds_2f_web-tds_2f_web_2f_tooltip_2f_popup-opacity-16 z-tds_2f_web-tds_2f_web_2f_tooltip_2f_popup-transform-17 z-tds_2f_web-tds_2f_web_2f_tooltip_2f_popup-transition-duration-18 z-tds_2f_web-tds_2f_web_2f_tooltip_2f_popup-transition-duration-19 z-tds_2f_web-tds_2f_web_2f_tooltip_2f_popup-opacity-20 z-tds_2f_web-tds_2f_web_2f_tooltip_2f_popup-transform-21 z-tds_2f_web-tds_2f_web_2f_tooltip_2f_popup-transition-property-22 z-tds_2f_web-tds_2f_web_2f_tooltip_2f_popup-transform-23`}),e.positioner=nn({className:`z-tds_2f_web-tds_2f_web_2f_tooltip_2f_positioner-z-index-0`})})(Kd||={});var qd=`/assets/reset-co-CHrff.css`,Jd=new Set([101,204,205,304]);async function Yd(e){let t=await e;if((t.body||t._bodyInit)&&!Jd.has(t.status)&&(t._data=await t[Qd(t)]()),!t.ok)throw new Xd(`${t.status} ${t.statusText}`,{statusCode:t?.status,detail:{data:t?._data,statusText:t?.statusText}});return t._data}var Xd=class extends Error{detail;code;log;statusCode;constructor(e,t={}){super(e),this.name=`DetailedError`,this.log=t.log,this.detail=t.detail,this.code=t.code,this.statusCode=t.statusCode}},Zd=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(?:;.+)?$/i;function Qd(e){let t=e.headers.get(`content-type`);if(!t)return`text`;let n=t.split(`;`).shift();return Zd.test(n)?`json`:`text`}var $d=(e,t)=>(e=e.replace(/\/+$/,``),e+=`/`,t=t.replace(/^\/+/,``),e+t),ef=(e,t)=>{for(let[n,r]of Object.entries(t)){let t=RegExp(`/:`+n+`(?:{[^/]+})?\\??(?=/|$)`);e=e.replace(t,()=>r?`/${r}`:``)}return e},tf=e=>{let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(r!==void 0){if(Array.isArray(r))for(let e of r)e!==void 0&&t.append(n,e);else t.set(n,r)}return t},nf=(e,t)=>{switch(t){case`ws`:return e.replace(/^http/,`ws`);case`http`:return e.replace(/^ws/,`http`)}},rf=e=>/^https?:\/\/[^\/]+?\/index(?=\?|$)/.test(e)?e.replace(/\/index(?=\?|$)/,`/`):e.replace(/\/index(?=\?|$)/,``);function af(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function of(e,t){if(!af(e)&&!af(t))return t;let n={...e};for(let e in t){let r=t[e];n[e]=af(n[e])&&af(r)?of(n[e],r):r}return n}async function sf(e){return Yd(e)}var cf=(e,t)=>new Proxy(()=>{},{get(n,r){if(typeof r==`string`&&r!==`then`)return cf(e,[...t,r])},apply(n,r,i){return e({path:t,args:i})}}),lf=(e,t)=>{let n=t.toString();return n?`${e}?${n}`:e},uf=class{url;method;buildSearchParams;queryParams=void 0;pathParams={};rBody;cType=void 0;constructor(e,t,n){this.url=e,this.method=t,this.buildSearchParams=n.buildSearchParams}fetch=async(e,t)=>{if(e){if(e.query&&(this.queryParams=this.buildSearchParams(e.query)),e.form){let t=new FormData;for(let[n,r]of Object.entries(e.form))if(r!==void 0){if(Array.isArray(r))for(let e of r)e!==void 0&&t.append(n,e);else t.append(n,r)}this.rBody=t}e.json!==void 0&&(this.rBody=JSON.stringify(e.json),this.cType=`application/json`),e.param&&(this.pathParams=e.param)}let n=this.method.toUpperCase(),r={...e?.header,...typeof t?.headers==`function`?await t.headers():t?.headers};if(e?.cookie){let t=[];for(let[n,r]of Object.entries(e.cookie))r!==void 0&&t.push(A(n,r));t.length>0&&(r.Cookie=t.join(`; `))}this.cType&&(r[`Content-Type`]=this.cType);let i=new Headers;for(let[e,t]of Object.entries(r))t!==void 0&&i.set(e,t);let a=this.url;a=rf(a),a=ef(a,this.pathParams),this.queryParams&&(a=lf(a,this.queryParams)),n=this.method.toUpperCase();let o=n!==`GET`&&n!==`HEAD`;return(t?.fetch||fetch)(a,{body:o?this.rBody:void 0,method:n,headers:i,...t?.init})}},df=(e,t)=>cf(function n(r){let i=t?.buildSearchParams??tf,a=[...r.path],o=a.slice(-3).reverse();if(o[0]===`toString`)return o[1]===`name`?o[2]||``:n.toString();if(o[0]===`valueOf`)return o[1]===`name`?o[2]||``:n;let s=``;if(/^\$/.test(o[0])){let e=a.pop();e&&(s=e.replace(/^\$/,``))}let c=$d(e,a.join(`/`));if(s===`url`||s===`path`){let t=rf(c);return r.args[0]&&(r.args[0].param&&(t=ef(t,r.args[0].param)),r.args[0].query&&(t=lf(t,i(r.args[0].query)))),s===`url`?new URL(t):t.slice(e.replace(/\/+$/,``).length).replace(/^\/?/,`/`)}if(s===`ws`){let e=rf(c),n=nf(r.args[0]?.param?ef(e,r.args[0].param):e,`ws`),a=new URL(n),o=r.args[0]?.query;return o&&i(o).forEach((e,t)=>{a.searchParams.append(t,e)}),((...e)=>t?.webSocket!==void 0&&typeof t.webSocket==`function`?t.webSocket(...e):new WebSocket(...e))(a.toString())}let l=new uf(c,s,{buildSearchParams:i});if(s){t??={};let e={...r.args[1]},n=t.headers,i=e.headers;n&&i&&(e.headers=async()=>({...typeof n==`function`?await n():n,...typeof i==`function`?await i():i}));let a=of(t,e);return l.fetch(r.args[0],a)}return l},[]),ff=()=>Ye().fetch,pf=()=>Ye().origin,mf=(0,B.createContext)(void 0);function hf(){return df(pf(),{fetch:ff()})}function gf(e){if(e instanceof Xd){let t=e.detail?.data;return typeof t==`object`&&t&&`error_description`in t&&typeof t.error_description==`string`?t.error_description:`Something went wrong. Try again.`}return`Tempo ID cannot be reached. Check the connection, and try again.`}function _f(e){if(!(e instanceof Xd))return;let t=e.detail?.data;if(typeof t==`object`&&t&&`reason`in t&&typeof t.reason==`string`)return t.reason}function vf(){let e=(0,B.useContext)(mf);if(!e)throw Error(`The client is used outside the root route.`);return e}var{style:yf,variants:bf,vars:xf}={vars:cn([[`default`,`z-theme-tempo_2d_id-default`],[`thirdParty`,`z-theme-tempo_2d_id-thirdParty`]],!1,`set`,`default`)},Sf=Pe({component:Cf,head:()=>({links:[{href:qd,rel:`stylesheet`},{href:`data:,`,rel:`icon`}],meta:[{charSet:`utf-8`},{content:`width=device-width, initial-scale=1`,name:`viewport`},{title:`Tempo ID`},{content:`Sign in to Tempo.`,name:`description`}]}),search:{middlewares:[re([`chain`])]},shellComponent:wf,validateSearch:e=>{let t=D.safeParse(e.chain);return{chain:t.success?t.data:void 0}}});function Cf(){let[e]=(0,B.useState)(hf),[t]=(0,B.useState)(()=>new $t);return(0,V.jsx)(mf,{value:e,children:(0,V.jsx)(Qe,{client:t,children:(0,V.jsx)(y,{})})})}function wf(e){return(0,V.jsxs)(`html`,{className:`${Ni().className} ${xf().className}`,lang:`en`,children:[(0,V.jsx)(`head`,{children:(0,V.jsx)(Ge,{})}),(0,V.jsxs)(`body`,{children:[e.children,(0,V.jsx)(qe,{})]})]})}function Tf(e){let{document:t=!1,href:n}=e;throw s({href:n,...t?{reloadDocument:!0}:{},statusCode:302})}function Ef(e){let{accounts:t}=e,n=e.heading??`h1`,r=e.heading===`h4`?`h5`:`h2`;return(0,V.jsxs)(`div`,{...K.column?{className:`z_tempo_2d_id-J3oRTb0 z_tempo_2d_id-J3oRTbt z_tempo_2d_id-J3oRTbu z_tempo_2d_id-J3oRTbv`}:K.column(),children:[(0,V.jsxs)(`header`,{...K.header?{className:`z_tempo_2d_id-J3oRTb0 z_tempo_2d_id-J3oRTb12 z_tempo_2d_id-J3oRTb13 z_tempo_2d_id-J3oRTb14`}:K.header(),children:[(0,V.jsx)(`span`,{...K.avatar?{className:`z_tempo_2d_id-J3oRTb9 z_tempo_2d_id-J3oRTba z_tempo_2d_id-J3oRTbb z_tempo_2d_id-J3oRTbc z_tempo_2d_id-J3oRTbd z_tempo_2d_id-J3oRTbe z_tempo_2d_id-J3oRTbf z_tempo_2d_id-J3oRTbg z_tempo_2d_id-J3oRTbh z_tempo_2d_id-J3oRTbi z_tempo_2d_id-J3oRTbj z_tempo_2d_id-J3oRTbk z_tempo_2d_id-J3oRTbl z_tempo_2d_id-J3oRTbm z_tempo_2d_id-J3oRTbn`}:K.avatar(),"aria-hidden":!0,children:(e.name||e.email).charAt(0).toUpperCase()}),(0,V.jsxs)(`div`,{...K.identity?{className:`z_tempo_2d_id-J3oRTb0 z_tempo_2d_id-J3oRTb1b z_tempo_2d_id-J3oRTb1c`}:K.identity(),children:[(0,V.jsx)(n,{...K.name?{className:`z-tempo_2d_id-J3oRTb-styles-name-overflow-wrap-0 z-tempo_2d_id-J3oRTb-styles-name-font-family-1 z-tempo_2d_id-J3oRTb-styles-name-font-size-2 z-tempo_2d_id-J3oRTb-styles-name-font-weight-3 z-tempo_2d_id-J3oRTb-styles-name-letter-spacing-4 z-tempo_2d_id-J3oRTb-styles-name-line-height-5`}:K.name(),children:e.name||e.email}),e.name?(0,V.jsx)(`p`,{...K.email?{className:`z_tempo_2d_id-J3oRTbw z_tempo_2d_id-J3oRTbx z_tempo_2d_id-J3oRTby z_tempo_2d_id-J3oRTbz z_tempo_2d_id-J3oRTb10 z_tempo_2d_id-J3oRTb11`}:K.email(),children:e.email}):null]})]}),(()=>{if(!t)return e.accountError?(0,V.jsxs)(pu,{intent:`negative`,children:[(0,V.jsx)(pu.Icon,{}),(0,V.jsx)(pu.Content,{children:e.accountError})]}):null;if(!t.length)return(0,V.jsx)(`p`,{...K.hint?{className:`z_tempo_2d_id-J3oRTbw z_tempo_2d_id-J3oRTb14 z_tempo_2d_id-J3oRTb15 z_tempo_2d_id-J3oRTb16 z_tempo_2d_id-J3oRTb17 z_tempo_2d_id-J3oRTb18 z_tempo_2d_id-J3oRTb19 z_tempo_2d_id-J3oRTb1a`}:K.hint(),children:`You have no wallets yet. Sign in to an app to create one.`});let n=t.length===1?t[0]:void 0;return n?(0,V.jsxs)(`section`,{...K.single?{className:`z_tempo_2d_id-J3oRTb9 z_tempo_2d_id-J3oRTbe z_tempo_2d_id-J3oRTb12 z_tempo_2d_id-J3oRTb1m z_tempo_2d_id-J3oRTb1o`}:K.single(),"aria-label":`Wallet`,children:[(0,V.jsx)(`span`,{...K.balance?{className:`z_tempo_2d_id-J3oRTb2 z_tempo_2d_id-J3oRTbo z_tempo_2d_id-J3oRTbp z_tempo_2d_id-J3oRTbq z_tempo_2d_id-J3oRTbr z_tempo_2d_id-J3oRTbs`}:K.balance(),"data-testid":`balance`,children:Of(n.balance)}),(0,V.jsx)(Df,{entry:n,large:!0})]}):(0,V.jsxs)(`section`,{...K.accounts?{className:`z_tempo_2d_id-J3oRTb0 z_tempo_2d_id-J3oRTb1`}:K.accounts(),children:[(0,V.jsx)(r,{...K.label?{className:`z-tempo_2d_id-J3oRTb-styles-label-text-0 z-tempo_2d_id-J3oRTb-styles-label-padding-inline-1 z-tempo_2d_id-J3oRTb-styles-label-font-family-2 z-tempo_2d_id-J3oRTb-styles-label-font-size-3 z-tempo_2d_id-J3oRTb-styles-label-font-weight-4 z-tempo_2d_id-J3oRTb-styles-label-letter-spacing-5 z-tempo_2d_id-J3oRTb-styles-label-line-height-6`}:K.label(),children:`Wallets`}),(0,V.jsx)(`ul`,{...K.list?{className:`z_tempo_2d_id-J3oRTb1h z_tempo_2d_id-J3oRTb1i z_tempo_2d_id-J3oRTb0 z_tempo_2d_id-J3oRTb1j z_tempo_2d_id-J3oRTb1k z_tempo_2d_id-J3oRTb1e z_tempo_2d_id-J3oRTb1l`}:K.list(),"aria-label":`Wallets`,children:t.map(e=>(0,B.createElement)(`li`,{...K.row?{className:`z_tempo_2d_id-J3oRTb9 z_tempo_2d_id-J3oRTbe z_tempo_2d_id-J3oRTb12 z_tempo_2d_id-J3oRTb1m z_tempo_2d_id-J3oRTb1n`}:K.row(),key:e.address},e.owner===`webAuthn`?(0,V.jsx)(Xc,{...K.owner?{className:`z-tempo_2d_id-J3oRTb-styles-label-text-0 z-tempo_2d_id-J3oRTb-styles-deposit-flex-shrink-3 z-tempo_2d_id-J3oRTb-styles-icon-h-0 z-tempo_2d_id-J3oRTb-styles-icon-w-1`}:K.owner()}):(0,V.jsx)(qc,{...K.owner?{className:`z-tempo_2d_id-J3oRTb-styles-label-text-0 z-tempo_2d_id-J3oRTb-styles-deposit-flex-shrink-3 z-tempo_2d_id-J3oRTb-styles-icon-h-0 z-tempo_2d_id-J3oRTb-styles-icon-w-1`}:K.owner()}),(0,V.jsx)(`span`,{...K.kind?{className:`z_tempo_2d_id-J3oRTb1d z_tempo_2d_id-J3oRTb1c z_tempo_2d_id-J3oRTb1e z_tempo_2d_id-J3oRTb1f z_tempo_2d_id-J3oRTb4 z_tempo_2d_id-J3oRTb5 z_tempo_2d_id-J3oRTb7 z_tempo_2d_id-J3oRTb8 z_tempo_2d_id-J3oRTb1g`}:K.kind(),children:kf(e)}),(0,V.jsx)(`span`,{...K.amount?{className:`z_tempo_2d_id-J3oRTb2 z_tempo_2d_id-J3oRTb3 z_tempo_2d_id-J3oRTb4 z_tempo_2d_id-J3oRTb5 z_tempo_2d_id-J3oRTb6 z_tempo_2d_id-J3oRTb7 z_tempo_2d_id-J3oRTb8`}:K.amount(),"data-testid":`balance`,children:Of(e.balance)}),(0,V.jsx)(Df,{entry:e})))})]})})(),(0,V.jsxs)(vl,{size:`large`,loading:e.signingOut,onClick:e.onSignOut,variant:`secondary`,children:[(0,V.jsx)(tl,{...K.icon?{className:`z-tempo_2d_id-J3oRTb-styles-icon-h-0 z-tempo_2d_id-J3oRTb-styles-icon-w-1`}:K.icon()}),`Sign out`]}),e.error?(0,V.jsxs)(pu,{intent:`negative`,children:[(0,V.jsx)(pu.Icon,{}),(0,V.jsx)(pu.Content,{children:e.error})]}):null,(0,V.jsx)(`p`,{...K.status?{className:`z_tempo_2d_id-J3oRTbw z_tempo_2d_id-J3oRTb14 z_tempo_2d_id-J3oRTb16 z_tempo_2d_id-J3oRTb17 z_tempo_2d_id-J3oRTb18 z_tempo_2d_id-J3oRTb19 z_tempo_2d_id-J3oRTb1a`}:K.status(),"aria-live":`polite`,role:`status`,children:e.signingOut?`Signing out.`:void 0})]})}function Df(e){let{address:t}=e.entry;return(0,V.jsxs)(Gd.Root,{children:[(0,V.jsx)(Gd.Trigger,{delay:150,render:(0,V.jsx)(ke,{...K.deposit({size:e.large?`large`:`small`}),"aria-label":`Deposit to ${kf(e.entry)} wallet ${t.slice(0,6)}…${t.slice(-4)}`,search:{address:t},to:`/deposit`,children:(0,V.jsx)(Yc,{...e.large?K.depositIcon?{className:`z-tempo_2d_id-J3oRTb-styles-depositIcon-h-0 z-tempo_2d_id-J3oRTb-styles-depositIcon-w-1`}:K.depositIcon():K.icon?{className:`z-tempo_2d_id-J3oRTb-styles-icon-h-0 z-tempo_2d_id-J3oRTb-styles-icon-w-1`}:K.icon()})})}),(0,V.jsx)(Gd.Popup,{children:`Deposit`})]})}function Of(e){return e?new Intl.NumberFormat(`en-US`,{currency:e.currency,style:`currency`}).format(e.amount):`Unavailable`}function kf(e){return e.owner===`webAuthn`?`Passkey`:`Cloud`}var K;(function(e){e.accounts=1,e.amount=1,e.avatar=1,e.balance=1,e.column=1,e.deposit=sn({axes:{size:[`large`,`small`]},defaults:{},className:`z-tempo_2d_id-J3oRTb-styles-deposit-border-radius-0 z-tempo_2d_id-J3oRTb-styles-deposit-text-1 z-tempo_2d_id-J3oRTb-styles-deposit-display-2 z-tempo_2d_id-J3oRTb-styles-deposit-flex-shrink-3 z-tempo_2d_id-J3oRTb-styles-deposit-outline-4 z-tempo_2d_id-J3oRTb-styles-deposit-position-5 z-tempo_2d_id-J3oRTb-styles-deposit-position-6 z-tempo_2d_id-J3oRTb-styles-deposit-z-index-7 z-tempo_2d_id-J3oRTb-styles-deposit-content-8 z-tempo_2d_id-J3oRTb-styles-deposit-inset-9 z-tempo_2d_id-J3oRTb-styles-deposit-position-10 z-tempo_2d_id-J3oRTb-styles-deposit-border-radius-11 z-tempo_2d_id-J3oRTb-styles-deposit-content-12 z-tempo_2d_id-J3oRTb-styles-deposit-position-13 z-tempo_2d_id-J3oRTb-styles-deposit-outline-14 z-tempo_2d_id-J3oRTb-styles-deposit-outline-color-15 z-tempo_2d_id-J3oRTb-styles-deposit-outline-offset-16 z-tempo_2d_id-J3oRTb-styles-deposit-text-17 z-tempo_2d_id-J3oRTb-styles-deposit-bg-18 z-tempo_2d_id-J3oRTb-styles-deposit-inset-19 z-tempo_2d_id-J3oRTb-styles-deposit-inset-20`}),e.depositIcon=1,e.email=1,e.header=1,e.hint=1,e.icon=1,e.identity=1,e.kind=1,e.label=1,e.list=1,e.name=1,e.owner=1,e.row=1,e.single=1,e.status=1})(K||={});var Af=Fe(`/`)({codeSplitGroupings:[],component:()=>(0,V.jsx)(jf,{...Af.useLoaderData()}),loader:async e=>{let t=hf(),n=await sf(t.v1.auth.session.$get());n.user||Tf({href:`/login`});let r={email:n.user.email,name:n.user.name},i=await sf(t.v1.account.$get({query:{chain:e.deps.chain??`mainnet`}})).catch(e=>({error:e}));return`error`in i?{...r,accountError:_f(i.error)===`rate_limited`?gf(i.error):`Your wallets failed to load. Reload the page to try again.`,accounts:null}:{...r,accountError:null,accounts:i.tempo.flatMap(e=>{let t=e.config.owners[0];return t?[{address:e.address,balance:`balance`in e?e.balance??null:null,owner:t.type}]:[]})}},loaderDeps:e=>({chain:e.search.chain})});function jf(e){let t=vf(),n=M(),r=en({mutationFn:()=>sf(t.v1.auth.logout.$post()),onSuccess:()=>n.navigate({to:`/login`})});return(0,V.jsx)(`main`,{...Mf.page?{className:`z_tempo_2d_id-5EdEP10 z_tempo_2d_id-5EdEP11 z_tempo_2d_id-5EdEP12 z_tempo_2d_id-5EdEP13 z_tempo_2d_id-5EdEP14`}:Mf.page(),"aria-label":`Your account`,children:(0,V.jsx)(Ef,{accountError:e.accountError??void 0,accounts:e.accounts,email:e.email,error:r.error?gf(r.error):void 0,name:e.name??void 0,onSignOut:()=>r.mutate(),signingOut:r.isPending})})}var Mf;(function(e){e.page=1})(Mf||={});async function Nf(e){let t=await(()=>{if(`options`in e){let t=k(e.options);return ee({...t,getFn:e.getFn})}return ee(e)})();return F(t)}var Pf=`/assets/BRLA-CZvVDNYr.png`,Ff=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='80'%20height='80'%20viewBox='0%200%2080%2080'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='sub_brz-Brand%20assets'%3e%3cg%20id='sub_brz-Frame%2011'%3e%3cg%20id='sub_brz-Frame%2055'%3e%3cg%20id='sub_brz-Frame%2053'%3e%3cg%20id='sub_brz-Currencies'%20clip-path='url(%23sub_brz-clip0_1741_2949)'%3e%3cg%20id='sub_brz-BRZ'%3e%3cpath%20id='sub_brz-Background'%20d='M40%2080C62.0914%2080%2080%2062.0914%2080%2040C80%2017.9086%2062.0914%200%2040%200C17.9086%200%200%2017.9086%200%2040C0%2062.0914%2017.9086%2080%2040%2080Z'%20fill='url(%23sub_brz-paint0_linear_1741_2949)'/%3e%3cpath%20id='sub_brz-Inner%20Circle'%20d='M39.9998%2076.144C59.9616%2076.144%2076.1438%2059.9617%2076.1438%2040C76.1438%2020.0382%2059.9616%203.85596%2039.9998%203.85596C20.0381%203.85596%203.85583%2020.0382%203.85583%2040C3.85583%2059.9617%2020.0381%2076.144%2039.9998%2076.144Z'%20fill='%23160F29'/%3e%3cg%20id='sub_brz-Icon'%3e%3cpath%20id='sub_brz-Path%201'%20d='M40.0025%2043.5679L32.609%2050.9614L40.0025%2058.3549L47.396%2050.9614L40.0025%2043.5679Z'%20fill='white'/%3e%3cpath%20id='sub_brz-Path%202'%20d='M62.1799%2036.1719L54.7879%2028.7759L47.392%2036.1719L39.9999%2028.7759H25.2119L17.8199%2036.1719L25.2119%2043.5639L32.6079%2036.1719L39.9999%2043.5639H54.7879L62.1799%2036.1719Z'%20fill='white'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='sub_brz-paint0_linear_1741_2949'%20x1='11.196'%20y1='68.804'%20x2='67.692'%20y2='12.308'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0.04'%20stop-color='%23FFC100'/%3e%3cstop%20offset='1'%20stop-color='%2300C800'/%3e%3c/linearGradient%3e%3cclipPath%20id='sub_brz-clip0_1741_2949'%3e%3crect%20width='80'%20height='80'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e`,If=`/assets/CHFAU-DCedc4aH.png`,Lf=`/assets/DLUSD-BnRXm3EI.png`,Rf=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='720'%20height='714'%20fill='none'%20viewBox='0%200%20720%20714'%3e%3ccircle%20cx='357'%20cy='357'%20r='357'%20fill='%23000'/%3e%3cpath%20fill='%23fff'%20d='M405.18%20357.091H457C452.59%20408.451%20417.308%20440%20363.65%20440c-55.863%200-90.778-33.751-99.598-95.015H242l4.778-25.68h14.701V304.63H242l4.778-25.679h16.539c8.82-63.1%2044.102-97.951%20101.435-97.951%2054.394%200%2087.838%2031.183%2091.146%2081.809H405.18c-3.675-23.479-17.641-38.153-40.428-38.153-26.094%200-43%2018.71-48.88%2054.295h80.487l-4.777%2025.679h-77.915v14.675h74.974l-4.777%2025.68h-67.257c5.881%2033.75%2022.051%2051.359%2047.043%2051.359%2022.786%200%2037.855-15.041%2041.53-39.253'/%3e%3cpath%20fill='url(%23a)'%20d='M357%2096.15c143.852%200%20260.465%20116.148%20260.465%20259.425h96.768C714.233%20159.197%20554.165%200%20357%200S0%20159.197%200%20355.575h96.536C96.536%20212.298%20213.148%2096.151%20357%2096.151'/%3e%3cpath%20fill='url(%23b)'%20d='M357.001%20514.313c-88.02%200-159.375-71.07-159.375-158.739H96.536c0%20143.278%20116.613%20259.425%20260.465%20259.425s260.465-116.147%20260.464-259.425H516.376c0%2087.669-71.354%20158.739-159.375%20158.739'/%3e%3cdefs%3e%3clinearGradient%20id='a'%20x1='714.233'%20x2='51.769'%20y1='355.575'%20y2='-78.929'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2330c0fe'/%3e%3cstop%20offset='1'%20stop-color='%2300ffea'/%3e%3c/linearGradient%3e%3clinearGradient%20id='b'%20x1='617.466'%20x2='134.2'%20y1='614.999'%20y2='298.132'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%2330c0fe'/%3e%3cstop%20offset='1'%20stop-color='%2300ffea'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e`,zf=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='none'%20viewBox='0%200%2096%2096'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%230b53bf'%20d='M48%2096c26.51%200%2048-21.49%2048-48S74.51%200%2048%200%200%2021.49%200%2048s21.49%2048%2048%2048'/%3e%3cpath%20fill='%23fff'%20stroke='%230b53bf'%20stroke-miterlimit='10'%20stroke-width='.03'%20d='M58.2%2059.43c-2.1.84-4.38%201.32-6.57%201.32-4.337%200-8.426-1.847-10.38-6.3h9.54l1.86-4.5H40.14q-.09-.93-.09-1.95c0-1.02.03-1.33.09-1.95h14.1l1.86-4.5H41.25c1.954-4.452%206.043-6.3%2010.38-6.3%202.19%200%204.47.48%206.57%201.32l1.92-4.56c-2.58-1.35-5.49-2.01-8.4-2.01-7.024%200-14.123%203.927-16.693%2011.55H30.42v4.5h3.684a22.5%2022.5%200%200%200%200%203.9H30.42v4.5h4.607C37.597%2062.075%2044.697%2066%2051.72%2066c2.91%200%205.82-.66%208.4-2.01z'/%3e%3cpath%20fill='%23fff'%20stroke='%230b53bf'%20stroke-miterlimit='10'%20stroke-width='.03'%20d='M18%2048c0-13.59%209.03-25.05%2021.36-28.77v-6.18C23.64%2016.89%2012%2031.08%2012%2048s11.64%2031.11%2027.36%2034.95v-6.18C27.03%2073.08%2018%2061.59%2018%2048Zm38.64-34.95v6.18C68.97%2022.95%2078%2034.41%2078%2048s-9.03%2025.05-21.36%2028.77v6.18C72.36%2079.11%2084%2064.92%2084%2048S72.36%2016.89%2056.64%2013.05Z'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h96v96H0z'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e`,Bf=`data:image/svg+xml,%3csvg%20width='300'%20height='300'%20viewBox='0%200%20300%20300'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='300'%20height='300'%20fill='%23000B3B'/%3e%3cpath%20d='M268%20149.993C268%20172.889%20261.479%20194.254%20250.188%20212.352C238.213%20194.5%20231.228%20173.053%20231.228%20149.993C231.228%20137.964%20228.603%20126.55%20223.9%20116.271C219.772%20107.263%20214.044%2099.1298%20207.073%2092.2405C203.19%2088.3994%20198.911%2084.9411%20194.318%2081.9475C181.564%2073.6093%20166.349%2068.7703%20150.014%2068.7703C105.203%2068.7703%2068.7725%20105.199%2068.7725%20149.993C68.7725%20194.774%20105.203%20231.216%20150%20231.216C166.336%20231.216%20181.564%20226.363%20194.305%20218.039C194.305%20218.039%20179.322%20205.231%20176.875%20168.392C165.023%20180.079%20172.802%20195.375%20149.986%20195.375C124.97%20195.375%20104.615%20175.022%20104.615%20150.007C104.615%20124.992%20124.97%20104.639%20149.986%20104.639C162.754%20104.639%20174.319%20109.942%20182.562%20118.472C190.477%20126.632%20195.357%20137.773%20195.357%20150.007C195.357%20169.978%20199.281%20189.374%20207.004%20207.636C207.018%20207.678%20207.045%20207.719%20207.045%20207.76C211.994%20219.419%20218.35%20230.3%20226.019%20240.251C221.987%20243.641%20217.735%20246.785%20213.265%20249.615C194.975%20261.261%20173.266%20268%20149.986%20268C84.8348%20267.973%2032%20215.155%2032%20149.993C32%2084.8317%2084.8348%2032%20150%2032C173.28%2032%20194.988%2038.7526%20213.279%2050.3852C217.749%2053.2284%20222%2056.3586%20226.033%2059.7486C232.212%2064.9703%20237.858%2070.8071%20242.861%2077.1906C245.485%2080.5396%20247.932%2084.0253%20250.188%2087.6339C261.479%20105.718%20268%20127.097%20268%20149.993Z'%20fill='white'/%3e%3c/svg%3e`,Vf=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1024'%20height='1024'%20fill='none'%20viewBox='0%200%201024%201024'%3e%3cpath%20fill='%233f79ff'%20d='M512%200c282.77%200%20512%20229.23%20512%20512s-229.231%20512-512%20512S0%20794.77%200%20512%20229.23%200%20512%200m55.697%2094.262c-30.761-30.76-80.633-30.76-111.394%200L94.262%20456.303c-30.76%2030.761-30.76%2080.633%200%20111.394l362.041%20362.041c30.761%2030.759%2080.633%2030.76%20111.394%200l362.041-362.041c30.76-30.761%2030.759-80.633%200-111.394z'/%3e%3cpath%20fill='%233f79ff'%20d='M560.62%20256.32q29.982%207.47%2055.37%2024.129%2046.742%2029.484%2072.629%2082.697l-83.415%2048.18q-30.203-64.72-96.36-64.72-30.921%200-48.899%2014.382-17.258%2013.664-17.258%2035.955%200%2023.731%2019.416%2038.832%2020.135%2014.382%2076.224%2031.641%2023.011%207.191%2034.517%2011.505%2012.225%203.596%2032.36%2012.225%2020.853%207.91%2031.64%2015.101%2011.505%207.191%2025.887%2019.416t21.574%2025.168q7.91%2012.943%2012.944%2031.641%205.752%2017.977%205.752%2039.55%200%2069.753-51.056%20110.742-37.212%2030.3-91.325%2038.2V832h-93.483v-62.988q-40.898-7.781-72.63-28.338-51.056-33.798-71.91-91.325l84.854-49.619q29.484%2076.944%20115.776%2076.944%2041.707%200%2061.123-15.101%2019.415-15.1%2019.416-38.112%200-26.607-23.731-40.989-23.73-15.101-84.853-32.36-33.798-10.067-57.529-20.134-23.012-10.068-46.742-26.607-23.01-17.259-35.235-43.146-12.225-25.889-12.225-60.405%200-68.314%2048.18-108.584%2033.261-27.879%2075.506-36.795V192h93.483z'/%3e%3c/svg%3e`,Hf=`data:image/svg+xml,%3csvg%20width='400'%20height='400'%20viewBox='0%200%20400%20400'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='400'%20height='400'%20fill='black'/%3e%3cpath%20d='M224.58%20153.969H318V177.238H224.58V153.969ZM82%20255.876H116.461V279.145H82V255.876ZM82%20221.907H116.461V245.176H82V221.907ZM82%20187.938H116.461V211.207H82V187.938ZM82%20153.969H174.113V177.238H82V153.969ZM82%20120H116.461V143.269H82V120ZM175.42%20187.938H224.58V211.207H175.42V187.938ZM283.539%20255.876H318V279.145H283.539V255.876ZM283.539%20221.907H318V245.176H283.539V221.907ZM283.539%20187.938H318V211.207H283.539V187.938ZM283.539%20120H318V143.269H283.539V120Z'%20fill='%23EBEBEB'/%3e%3c/svg%3e`,Uf=`data:image/svg+xml,%3csvg%20width='300'%20height='300'%20viewBox='0%200%20300%20300'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M150%20300C232.843%20300%20300%20232.843%20300%20150C300%2067.1573%20232.843%200%20150%200C67.1573%200%200%2067.1573%200%20150C0%20232.843%2067.1573%20300%20150%20300Z'%20fill='%23390922'/%3e%3cpath%20d='M247.63%2081.3L220.01%2072.09C218.43%2071.56%20217.19%2070.32%20216.67%2068.74L207.46%2041.12C206.74%2038.96%20204.72%2037.5%20202.44%2037.5H97.56C95.28%2037.5%2093.26%2038.96%2092.54%2041.12L83.34%2068.74C82.81%2070.32%2081.57%2071.56%2079.99%2072.09L52.37%2081.3C50.21%2082.02%2048.75%2084.04%2048.75%2086.32V213.7C48.75%20215.98%2050.21%20218%2052.37%20218.72L79.98%20227.92C81.56%20228.45%2082.8%20229.69%2083.33%20231.26L92.54%20258.88C93.26%20261.04%2095.28%20262.5%2097.56%20262.5H202.44C204.72%20262.5%20206.74%20261.04%20207.46%20258.88L216.68%20231.25C217.21%20229.67%20218.45%20228.43%20220.03%20227.91L247.64%20218.71C249.8%20217.99%20251.26%20215.97%20251.26%20213.69V86.31C251.26%2084.03%20249.8%2082.01%20247.64%2081.29L247.63%2081.3Z'%20fill='%23F3E9E3'/%3e%3cpath%20d='M192.24%20160.47C189.93%20155.8%20186.5%20151.81%20181.94%20148.52C177.38%20145.23%20171.64%20142.32%20164.71%20139.78L147.57%20133.72C141.57%20131.76%20136.98%20129.16%20133.81%20125.93C130.63%20122.7%20129.05%20118.6%20129.05%20113.64C129.05%20109.83%20130%20106.48%20131.91%20103.6C133.81%20100.72%20136.5%2098.47%20139.96%2096.85C143.42%2095.23%20147.29%2094.43%20151.56%2094.43C158.72%2094.43%20164.72%2096.91%20169.57%20101.87C174.42%20106.83%20177.88%20113.59%20179.96%20122.13L181.69%20122.3L192.42%20105.33C189.65%20101.06%20186.01%2097.51%20181.51%2094.68C177.01%2091.85%20172.16%2089.69%20166.97%2088.19C162.95%2087.03%20158.97%2086.32%20155.02%2086.06V66.2H146.36V86.13C142.01%2086.46%20137.94%2087.19%20134.15%2088.36C128.9%2089.98%20124.34%2092.29%20120.47%2095.29C116.6%2098.29%20113.66%20101.9%20111.64%20106.11C109.62%20110.32%20108.61%20114.97%20108.61%20120.05C108.61%20125.48%20109.79%20130.29%20112.16%20134.51C114.52%20138.72%20117.93%20142.36%20122.37%20145.42C126.81%20148.48%20132.38%20151.34%20139.08%20153.99L154.66%20159.36C161.35%20161.67%20166.37%20164.76%20169.72%20168.62C173.07%20172.49%20174.74%20177.36%20174.74%20183.25C174.74%20187.87%20173.64%20191.85%20171.45%20195.2C169.26%20198.55%20166.31%20201.15%20162.62%20202.99C158.92%20204.84%20154.66%20205.76%20149.81%20205.76C144.96%20205.76%20140.17%20204.61%20135.79%20202.3C131.4%20199.99%20127.71%20196.44%20124.71%20191.65C121.71%20186.86%20119.34%20180.83%20117.61%20173.56H115.88L104.28%20191.39C106.82%20196.01%20110.4%20200.05%20115.01%20203.51C119.62%20206.97%20124.91%20209.63%20130.85%20211.47C135.79%20213.01%20140.96%20213.89%20146.35%20214.15V233.98H155.01V214.04C159.67%20213.7%20164.06%20212.9%20168.17%20211.64C173.82%20209.91%20178.7%20207.37%20182.8%20204.02C186.9%20200.67%20190.07%20196.69%20192.32%20192.07C194.57%20187.45%20195.7%20182.32%20195.7%20176.66C195.7%20170.54%20194.54%20165.15%20192.24%20160.47Z'%20fill='%23390922'/%3e%3c/svg%3e`,Wf=`/assets/PRIME-CiFp2-3e.svg`,Gf=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='eKgCWIOpRqD1'%20shape-rendering='geometricPrecision'%20text-rendering='geometricPrecision'%20viewBox='0%200%20400%20400'%3e%3cstyle%3e@keyframes%20eKgCWIOpRqD2_ts__ts{0%25{transform:translate(200px,200px)%20scale(.454545,.454542);animation-timing-function:cubic-bezier(0,0,.58,1)}12.5%25{transform:translate(200px,200px)%20scale(.41,.41)}25%25,to{transform:translate(200px,200px)%20scale(.454545,.454545)}}@keyframes%20eKgCWIOpRqD3_ts__ts{0%25{transform:translate(200px,200px)%20scale(.454545,.454542)}8.333333%25{transform:translate(200px,200px)%20scale(.454545,.454542);animation-timing-function:cubic-bezier(0,0,.58,1)}20.833333%25{transform:translate(200px,200px)%20scale(.41,.41)}33.333333%25,to{transform:translate(200px,200px)%20scale(.454545,.454545)}}@keyframes%20eKgCWIOpRqD4_ts__ts{0%25{transform:translate(200px,200px)%20scale(.454545,.454542)}16.666667%25{transform:translate(200px,200px)%20scale(.454545,.454542);animation-timing-function:cubic-bezier(0,0,.58,1)}29.166667%25{transform:translate(200px,200px)%20scale(.41,.41)}41.666667%25,to{transform:translate(200px,200px)%20scale(.454545,.454545)}}@keyframes%20eKgCWIOpRqD5_ts__ts{0%25{transform:translate(200px,200px)%20scale(.454545,.454542)}25%25{transform:translate(200px,200px)%20scale(.454545,.454542);animation-timing-function:cubic-bezier(0,0,.58,1)}37.5%25{transform:translate(200px,200px)%20scale(.41,.41)}50%25,to{transform:translate(200px,200px)%20scale(.454545,.454545)}}@keyframes%20eKgCWIOpRqD6_ts__ts{0%25{transform:translate(200px,200px)%20scale(.454545,.454542)}33.333333%25{transform:translate(200px,200px)%20scale(.454545,.454542);animation-timing-function:cubic-bezier(0,0,.58,1)}45.833333%25{transform:translate(200px,200px)%20scale(.41,.41)}58.333333%25,to{transform:translate(200px,200px)%20scale(.454545,.454545)}}@keyframes%20eKgCWIOpRqD7_ts__ts{0%25{transform:translate(200px,200px)%20scale(.454545,.454542)}41.666667%25{transform:translate(200px,200px)%20scale(.454545,.454542);animation-timing-function:cubic-bezier(0,0,.58,1)}54.166667%25{transform:translate(200px,200px)%20scale(.41,.41)}66.666667%25,to{transform:translate(200px,200px)%20scale(.454545,.454545)}}@keyframes%20eKgCWIOpRqD8_ts__ts{0%25{transform:translate(200px,200px)%20scale(.454545,.454542)}50%25{transform:translate(200px,200px)%20scale(.454545,.454542);animation-timing-function:cubic-bezier(0,0,.58,1)}62.5%25{transform:translate(200px,200px)%20scale(.41,.41)}75%25,to{transform:translate(200px,200px)%20scale(.454545,.454545)}}%3c/style%3e%3ccircle%20r='440'%20fill='%236938ef'%20style='animation:eKgCWIOpRqD2_ts__ts%202400ms%20linear%20infinite%20normal%20forwards'%20transform='translate(200%20200)scale(.45454)'/%3e%3ccircle%20r='385'%20fill='%238760f2'%20style='animation:eKgCWIOpRqD3_ts__ts%202400ms%20linear%20infinite%20normal%20forwards'%20transform='translate(200%20200)scale(.45454)'/%3e%3ccircle%20r='330'%20fill='%23a588f5'%20style='animation:eKgCWIOpRqD4_ts__ts%202400ms%20linear%20infinite%20normal%20forwards'%20transform='translate(200%20200)scale(.45454)'/%3e%3ccircle%20r='275'%20fill='%23c3aff9'%20style='animation:eKgCWIOpRqD5_ts__ts%202400ms%20linear%20infinite%20normal%20forwards'%20transform='translate(200%20200)scale(.45454)'/%3e%3ccircle%20r='220'%20fill='%23e1d7fc'%20style='animation:eKgCWIOpRqD6_ts__ts%202400ms%20linear%20infinite%20normal%20forwards'%20transform='translate(200%20200)scale(.45454)'/%3e%3ccircle%20r='165'%20fill='%23fff'%20style='animation:eKgCWIOpRqD7_ts__ts%202400ms%20linear%20infinite%20normal%20forwards'%20transform='translate(200%20200)scale(.45454)'/%3e%3ccircle%20r='110'%20fill='%236938ef'%20style='animation:eKgCWIOpRqD8_ts__ts%202400ms%20linear%20infinite%20normal%20forwards'%20transform='translate(200%20200)scale(.45454)'/%3e%3c/svg%3e`,Kf=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%20role='img'%20aria-labelledby='title'%3e%3ctitle%20id='title'%3eSEK%20icon%3c/title%3e%3cpath%20fill='%2305160B'%20d='M16%200c8.837%200%2016%207.163%2016%2016s-7.163%2016-16%2016S0%2024.837%200%2016%207.163%200%2016%200Zm0%203C8.82%203%203%208.82%203%2016s5.82%2013%2013%2013%2013-5.82%2013-13S23.18%203%2016%203Z'/%3e%3cpath%20fill='%2305160B'%20d='M16%206c5.523%200%2010%204.477%2010%2010s-4.477%2010-10%2010S6%2021.523%206%2016%2010.477%206%2016%206Zm-4.865%207.076c-1.368%200-2.232.696-2.232%201.736%200%201.232.984%201.512%202.072%201.792.76.2%201.088.289%201.088.72%200%20.368-.32.6-.84.6-.632%200-.944-.296-.944-.88H8.807c0%201.272.904%201.985%202.384%201.985%201.416%200%202.328-.713%202.328-1.825%200-1.248-.96-1.544-2.056-1.816-.832-.208-1.136-.328-1.136-.704%200-.32.296-.536.752-.536.552%200%20.847.288.847.792h1.441c0-1.224-.8-1.864-2.232-1.864Zm3.004%205.824h4.088v-1.16h-2.704v-1.152h2.464v-1.144h-2.464v-1.08h2.64v-1.16h-4.024V18.9Zm4.83%200h1.384v-2.624h.016l1.736%202.624h1.744l-2.224-3%202.072-2.696h-1.656l-1.672%202.455h-.016v-2.455H18.97v5.695Z'/%3e%3c/svg%3e`,qf=`/assets/USD1-COVcO_PB.svg`,Jf=`data:image/svg+xml,%3csvg%20width='50'%20height='50'%20viewBox='0%200%2050%2050'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M25%2045C25.7075%2045%2026.4064%2044.9633%2027.095%2044.8916L26.4697%2038.9516C25.9867%2039.0018%2025.4965%2039.0276%2025.0002%2039.0276C24.5061%2039.0276%2024.0179%2039.0021%2023.537%2038.9522L22.9039%2044.8915C23.5928%2044.9632%2024.2921%2045%2025%2045Z'%20fill='%23030712'/%3e%3cpath%20d='M17.9718%2037.1424C18.8166%2037.6325%2019.7172%2038.0369%2020.6618%2038.3438L18.8173%2044.0261C17.4728%2043.5894%2016.1907%2043.0143%2014.9879%2042.3174L17.9718%2037.1424Z'%20fill='%23030712'/%3e%3cpath%20d='M13.642%2033.2331C14.2192%2034.0281%2014.8778%2034.7602%2015.6057%2035.417L11.6042%2039.8513C10.5678%2038.9158%209.62979%2037.8735%208.80758%2036.7416L13.642%2033.2331Z'%20fill='%23030712'/%3e%3cpath%20d='M11.2716%2027.8917C11.4756%2028.8653%2011.7805%2029.8019%2012.175%2030.6898L6.71509%2033.1156C6.15342%2031.8521%205.71889%2030.5195%205.42772%2029.1341L11.2716%2027.8917Z'%20fill='%23030712'/%3e%3cpath%20d='M10.9733%2024.9926H5C5%2024.946%205.00016%2024.8994%205.00048%2024.8529C5.00773%2023.846%205.08939%2022.8568%205.24022%2021.8906C6.24559%2015.4618%2010.3245%2010.0379%2015.9214%207.17448C18.6459%205.78411%2021.7314%205%2025%205C28.2783%205%2031.3724%205.78876%2034.1028%207.18685C39.6098%2010.0137%2043.6428%2015.3213%2044.7163%2021.6241C44.9024%2022.7192%2044.9996%2023.8446%2045%2024.9926H39.027C39.0226%2017.2495%2032.7443%2010.9739%2025.0002%2010.9739C17.2561%2010.9739%2010.9778%2017.2495%2010.9733%2024.9926Z'%20fill='%23030712'/%3e%3cpath%20d='M37.8265%2030.6872C38.2196%2029.8018%2038.5238%2028.8682%2038.7276%2027.8976L44.5723%2029.1336C44.2807%2030.5213%2043.8453%2031.856%2043.2823%2033.1215L37.8265%2030.6872Z'%20fill='%23030712'/%3e%3cpath%20d='M34.3965%2035.4154C35.1252%2034.7575%2035.7846%2034.0242%2036.3623%2033.2278L41.1938%2036.7396C40.3706%2037.8731%2039.4314%2038.9168%2038.3936%2039.8533L34.3965%2035.4154Z'%20fill='%23030712'/%3e%3cpath%20d='M29.3423%2038.3426C30.2859%2038.0357%2031.1855%2037.6315%2032.0294%2037.1419L35.0132%2042.3167C33.8125%2043.0125%2032.5329%2043.5869%2031.1909%2044.0234L29.3423%2038.3426Z'%20fill='%23030712'/%3e%3cpath%20d='M28.7194%2024.3156C29.4014%2024.6073%2029.9343%2025.0561%2030.3606%2025.6396C30.7869%2026.223%2031%2027.0085%2031%2027.9958C31%2029.275%2030.5524%2030.3521%2029.6998%2031.2498C28.8472%2032.1474%2027.7176%2032.7084%2026.3535%2032.9104V35H23.7105V32.8655C22.3037%2032.6187%2021.1528%2032.0352%2020.3002%2031.0927C19.4476%2030.1502%2019%2029.0281%2019%2027.7041L22.1332%2027.749C22.1758%2028.5344%2022.4742%2029.1628%2023.0284%2029.634C23.5826%2030.1053%2024.3073%2030.3297%2025.2238%2030.3297C25.9698%2030.3297%2026.5879%2030.1726%2027.0568%2029.836C27.5258%2029.4994%2027.7815%2029.0281%2027.7815%2028.4222C27.7815%2028.0183%2027.6323%2027.6817%2027.3766%2027.4348C27.1208%2027.188%2026.7371%2026.986%2026.2682%2026.8514C25.7993%2026.7167%2025.0533%2026.5372%2024.0728%2026.3128C23.0924%2026.1333%2022.2611%2025.8864%2021.6004%2025.5722C20.9183%2025.2581%2020.3854%2024.8093%2019.9591%2024.2034C19.5329%2023.5975%2019.341%2022.7896%2019.341%2021.7797C19.341%2020.5904%2019.7247%2019.5581%2020.5346%2018.7054C21.3446%2017.8526%2022.389%2017.3365%2023.7105%2017.1121V15H26.3535V17.1569C27.6323%2017.4262%2028.6554%2017.9872%2029.4654%2018.84C30.254%2019.7152%2030.659%2020.7475%2030.7016%2021.9593H27.5684C27.4831%2021.286%2027.2274%2020.7475%2026.7584%2020.3435C26.2895%2019.9396%2025.6714%2019.7152%2024.9041%2019.7152C24.1794%2019.7152%2023.6252%2019.8723%2023.1989%2020.1864C22.7726%2020.5006%2022.5595%2020.9494%2022.5595%2021.5329C22.5595%2021.9593%2022.6874%2022.2959%2022.9432%2022.5203C23.1989%2022.7447%2023.5613%2022.9467%2024.0302%2023.0813C24.4991%2023.216%2025.2238%2023.3955%2026.2043%2023.575C27.1847%2023.777%2028.0373%2024.0238%2028.7194%2024.3156Z'%20fill='%23030712'/%3e%3c/svg%3e`,Yf=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2032%2032'%3e%3cg%20fill='none'%3e%3ccircle%20cx='16'%20cy='16'%20r='16'%20fill='%233e73c4'/%3e%3cg%20fill='%23fff'%3e%3cpath%20d='M20.02%2018.12c0-2.12-1.28-2.85-3.84-3.15-1.83-.25-2.2-.73-2.2-1.58s.62-1.4%201.84-1.4c1.1%200%201.7.37%202%201.28a.46.46%200%200%200%20.43.3h.98a.42.42%200%200%200%20.43-.42v-.06a3.04%203.04%200%200%200-2.75-2.5V9.15c0-.24-.18-.42-.48-.48h-.92c-.24%200-.42.18-.48.48v1.4c-1.83.24-3%201.45-3%202.97%200%202%201.23%202.8%203.79%203.1%201.7.3%202.25.66%202.25%201.64%200%20.97-.85%201.63-2%201.63-1.6%200-2.14-.66-2.32-1.57-.06-.25-.25-.37-.43-.37h-1.04a.42.42%200%200%200-.42.43v.06c.24%201.51%201.22%202.6%203.23%202.91v1.46c0%20.24.18.42.48.48h.92c.24%200%20.42-.18.49-.48v-1.46c1.82-.3%203.04-1.58%203.04-3.22z'/%3e%3cpath%20d='M12.9%2024.5a9.03%209.03%200%200%201-5.43-11.66%209%209%200%200%201%205.42-5.4c.25-.12.37-.3.37-.6v-.86c0-.24-.12-.42-.37-.48-.06%200-.18%200-.24.06a10.9%2010.9%200%200%200-7.13%2013.72c1.1%203.4%203.72%206%207.13%207.1.24.12.49%200%20.55-.24.06-.06.06-.13.06-.25v-.85c0-.18-.19-.42-.37-.54m6.46-18.94c-.24-.12-.49%200-.55.24-.06.06-.06.13-.06.25v.85c0%20.24.19.48.37.6a9.03%209.03%200%200%201%205.42%2011.66%209%209%200%200%201-5.42%205.4c-.25.12-.37.3-.37.6v.86c0%20.24.12.42.37.48.06%200%20.18%200%20.24-.06a10.9%2010.9%200%200%200%207.13-13.72%2011.03%2011.03%200%200%200-7.13-7.16'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e`,Xf=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'%3e%3ccircle%20cx='256'%20cy='256'%20r='256'%20fill='%2300805e'/%3e%3cpath%20fill='%23f0f0f0'%20d='M386.895%20186.535v-58.196H125.106v58.196h101.797V244.7h58.195v-58.165zM226.934%20361.061v58.197h58.164v-58.197h58.165v-116.36h-58.165v116.36zm-.001-116.36h-58.195v116.36h58.195z'/%3e%3c/svg%3e`,Zf=`data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_3034_948)'%3e%3ccircle%20cx='16'%20cy='16'%20r='16'%20fill='%231C3966'/%3e%3cg%20clip-path='url(%23clip1_3034_948)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M24.8%2016C24.8%2011.1399%2020.8601%207.2%2016%207.2V4C16.8284%204%2017.6372%204.08395%2018.4184%204.2438C23.8866%205.36275%2028%2010.201%2028%2016C28%2022.6274%2022.6274%2028%2016%2028C10.7751%2028%206.33016%2024.6608%204.68282%2020H8.15953C9.6161%2022.8493%2012.5802%2024.8%2016%2024.8C20.8601%2024.8%2024.8%2020.8601%2024.8%2016ZM5.38408%2010.4C7.39607%2014.2062%2011.3951%2016.8%2016%2016.8V13.6C12.0562%2013.6%208.71825%2011.0056%207.59987%207.43042C6.71685%208.29608%205.96705%209.29714%205.38408%2010.4ZM8.95347%206.28574C9.63814%209.54935%2012.5329%2012%2016%2012C18.2091%2012%2020%2013.7909%2020%2016C20%2018.2091%2018.2091%2020%2016%2020H10.0124C11.3041%2021.9296%2013.5037%2023.2%2016%2023.2C19.9765%2023.2%2023.2%2019.9764%2023.2%2016C23.2%2012.0236%2019.9765%208.8%2016%208.8C13.7909%208.8%2012%207.00914%2012%204.8V4.68282C10.9024%205.07076%209.87812%205.61385%208.95347%206.28574Z'%20fill='white'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_3034_948'%3e%3crect%20width='32'%20height='32'%20fill='white'/%3e%3c/clipPath%3e%3cclipPath%20id='clip1_3034_948'%3e%3crect%20width='24'%20height='24'%20fill='white'%20transform='translate(4%204)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e`,Qf=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml:space='preserve'%20viewBox='0%200%20397.1%20397.1'%3e%3cpath%20d='M198.6%207.1c105.8%200%20191.5%2085.7%20191.5%20191.5%200%20105.7-85.7%20191.5-191.5%20191.5S7.1%20304.3%207.1%20198.6C7.1%2092.8%2092.8%207.1%20198.6%207.1z'%20style='fill:%23111;stroke:%23111;stroke-width:7.0536'/%3e%3cradialGradient%20id='a'%20cx='-105.949'%20cy='595.938'%20r='1'%20gradientTransform='matrix(0%20411.151%20289.409%200%20-172270.75%2043621.418)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.031'%20style='stop-color:%233a3a3a'/%3e%3cstop%20offset='1'%20style='stop-color:%231c1c1c'/%3e%3c/radialGradient%3e%3cpath%20d='M198.6%203.6c-107.7%200-195%2087.3-195%20195s87.3%20195%20195%20195%20195-87.3%20195-195-87.3-195-195-195'%20style='fill:url(%23a);fill-opacity:.7'/%3e%3clinearGradient%20id='b'%20x1='198.575'%20x2='198.575'%20y1='399.143'%20y2='1.994'%20gradientTransform='matrix(1%200%200%20-1%200%20399.143)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='0'%20style='stop-color:%23fff'/%3e%3cstop%20offset='1'%20style='stop-color:%23111'/%3e%3c/linearGradient%3e%3cpath%20d='M198.6%203.6c-107.7%200-195%2087.3-195%20195s87.3%20195%20195%20195%20195-87.3%20195-195-87.3-195-195-195z'%20style='fill:none;stroke:url(%23b);stroke-width:7.1429'/%3e%3cpath%20d='M167.4%2038.1C92.1%2052.6%2035.2%20118.9%2035.2%20198.4s56.9%20145.8%20132.2%20160.3v-15.3c-67-14.3-117.2-73.8-117.2-145s50.2-130.7%20117.2-145zm62.4%2015.4V38.2C305%2052.8%20361.7%20119%20361.7%20198.4S305%20344%20229.8%20358.6v-15.3c66.8-14.4%20116.9-73.8%20116.9-144.9S296.6%2067.9%20229.8%2053.5'%20style='fill-rule:evenodd;clip-rule:evenodd;fill:%23fff'/%3e%3cpath%20d='M221.7%20193c12.5%202.4%2022.1%207%2029%2013.7%206.9%206.6%2010.3%2015.1%2010.3%2025.4v16.3c0%2012.4-4.5%2022.4-13.4%2030-8.9%207.5-20.7%2011.2-35.2%2011.2h-5v25.9h-17.2v-25.9h-5.3c-9.6%200-18-2.1-25.4-6.4-7.3-4.4-13.1-10.5-17.2-18.3-4-8-6-17.1-6-27.5h17.2c0%2010.5%202.9%2019.1%208.6%2025.7%205.9%206.4%2013.7%209.7%2023.2%209.7h26.6q14.1%200%2022.8-6.6c5.7-4.6%208.6-10.5%208.6-17.8v-16.3c0-5.8-2.2-10.7-6.5-14.8-4.2-4.1-9.9-6.7-17.2-7.9l-43.1-7.6c-12.1-2.2-21.6-6.8-28.3-13.7-6.7-7-10.1-15.7-10.1-26.2v-13.7c0-12.4%204.3-22.2%2012.9-29.5%208.8-7.5%2020.4-11.2%2034.7-11.2h4.3V81.6h17.2v25.9h5.5c13.6%200%2024.5%204.4%2032.8%2013.2%208.3%208.6%2012.5%2020.1%2012.5%2034.3h-17.2c0-9.3-2.6-16.8-7.7-22.4q-7.65-8.4-20.4-8.4h-27.1c-9.1%200-16.4%202.2-21.8%206.6-5.4%204.2-8.1%2010-8.1%2017.3v13.7q0%208.85%206%2015c4.2%204.1%209.8%206.8%2017%208.1z'%20style='fill:%23fff'/%3e%3c/svg%3e`,$f=`/assets/YLDS-CRh8Zw0g.svg`,ep=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='64'%20height='64'%20fill='none'%20viewBox='0%200%2064%2064'%3e%3cpath%20fill='%233e73c4'%20d='M0%2032C0%2014.327%2014.327%200%2032%200s32%2014.327%2032%2032-14.327%2032-32%2032S0%2049.673%200%2032'/%3e%3cpath%20fill='%23fff'%20d='M29.838%2045.258q-2.988%200-5.211-1.505-2.2-1.504-3.414-4.223Q20%2036.79%2020%2033.151v-.045q0-3.638%201.213-6.356%201.235-2.74%203.481-4.245Q26.941%2021%2029.973%2021a7.8%207.8%200%200%201%202.92.54%207.1%207.1%200%200%201%202.38%201.504%206.8%206.8%200%200%201%201.618%202.358h.09V21.45h3.908v17.565q0%201.55.471%202.223.472.675%201.573.674.314%200%20.629-.045.336-.045.561-.112v3.234a3.6%203.6%200%200%201-.786.18q-.472.09-1.123.09-2.09%200-3.37-.944-1.28-.965-1.706-2.897l-.09-.404h-.113q-.516%201.19-1.594%202.156a7.9%207.9%200%200%201-2.493%201.527%208.1%208.1%200%200%201-3.01.562m.36-3.46q2.043%200%203.57-1.1%201.528-1.122%202.381-3.077.855-1.954.854-4.47v-.045q0-2.493-.854-4.447-.853-1.954-2.358-3.077t-3.504-1.123q-1.909%200-3.324%201.078-1.415%201.056-2.201%203.01-.765%201.954-.764%204.582v.045q0%202.673.719%204.604.74%201.932%202.134%202.988%201.393%201.033%203.346%201.033'/%3e%3c/svg%3e`,tp=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='64'%20height='64'%20fill='none'%20viewBox='0%200%2064%2064'%3e%3cpath%20fill='%231c9ba4'%20d='M0%2032C0%2014.327%2014.327%200%2032%200s32%2014.327%2032%2032-14.327%2032-32%2032S0%2049.673%200%2032'/%3e%3cpath%20fill='%23fff'%20d='M24%2050V25.696q0-4.129%202.037-6.404Q28.092%2017%2031.78%2017q3.371%200%205.409%201.837%202.055%201.837%202.055%204.9v.035a5.5%205.5%200%200%201-.966%203.167q-.948%201.416-2.617%202.134v.28q2.617.649%203.97%202.362%201.368%201.715%201.369%204.34v.035q0%202.326-1.019%204.129a7.3%207.3%200%200%201-2.81%202.817q-1.773%201.015-4.056%201.015-1.405%200-2.547-.385a5.8%205.8%200%200%201-1.95-1.102%205.4%205.4%200%200%201-1.281-1.68h-.281V50zm8.957-8.644q1.37%200%202.476-.665a4.9%204.9%200%200%200%201.774-1.854q.666-1.173.667-2.66v-.035q0-2.607-1.633-3.954-1.635-1.348-4.724-1.348H29.97v-2.694h1.563q2.248%200%203.46-1.068%201.23-1.084%201.23-3.132v-.035q0-1.907-1.195-3.062-1.177-1.154-3.161-1.154-2.389%200-3.6%201.592t-1.212%204.724v8.819q0%201.995.737%203.464.756%201.47%202.073%202.275%201.335.787%203.09.787'/%3e%3c/svg%3e`,np=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1021'%20height='1021'%20fill='none'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%23292929'%20stroke='%23292929'%20stroke-width='10.667'%20d='M510%201015c278.904%200%20505-226.096%20505-505S788.904%205%20510%205%205%20231.096%205%20510s226.096%20505%20505%20505Z'/%3e%3cpath%20fill='%23fff'%20d='M430.37%20100v38.474l-1.365%201.012c-93.091%2019.673-176.275%2075.89-230.539%20153.497-86.596%20123.87-90.95%20288.992-10.778%20417.239%2053.723%2085.914%20141.637%20148.767%20241.317%20169.687l1.365%201.035v38.475c-104.221-19.249-198.607-80.738-260.142-166.322C62.335%20603.036%2066.336%20398.122%20180.441%20252.744c61.676-78.549%20151.19-134.483%20249.953-152.72zm159.499%20819.393v-39.651c98.504-20.402%20186.465-82.831%20239.999-167.427%2085.232-134.743%2076.949-309.371-20.99-434.983-54.146-69.441-132.318-119.399-218.844-137.801l-.141-39.51c105.445%2020.685%20200.301%2082.549%20261.718%20170.299%20101.987%20145.661%20100.339%20340.479-3.976%20484.375-61.559%2084.902-154.533%20144.414-257.766%20164.745z'/%3e%3cg%20filter='url(%23b)'%3e%3cpath%20fill='%23d1f019'%20d='M540.424%20481.574c62.733%2011.501%20118.146%2030.32%20117.623%20104.031-.523%2060.641-44.435%20104.031-113.963%20113.441v54.89H479.26v-55.413c-71.619-11.501-115.009-56.459-115.531-120.76l76.847%201.046c2.613%2035.548%2030.843%2060.118%2075.801%2060.118%2036.071%200%2062.732-15.683%2062.732-44.435%200-30.843-29.798-37.117-90.962-49.14-61.686-11.501-116.054-31.366-116.054-105.6%200-56.981%2041.299-99.326%20107.167-108.735v-55.414h64.824v55.936c65.346%2010.979%20105.599%2052.277%20106.644%20112.396h-76.847c-3.659-30.844-27.183-52.277-65.346-52.277-33.457%200-57.504%2014.114-57.504%2042.344%200%2029.798%2028.752%2036.071%2089.393%2047.572'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h1021v1021H0z'/%3e%3c/clipPath%3e%3cfilter%20id='b'%20width='307.778'%20height='491.789'%20x='357.001'%20y='275.603'%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20result='hardAlpha'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='6.728'/%3e%3cfeGaussianBlur%20stdDeviation='3.364'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.25%200'/%3e%3cfeBlend%20in2='BackgroundImageFix'%20result='effect1_dropShadow_215_15'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='effect1_dropShadow_215_15'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e`,rp=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='32'%20height='32'%20fill='none'%3e%3cpath%20fill='%23fff'%20d='M16%2032c8.837%200%2016-7.163%2016-16S24.837%200%2016%200%200%207.163%200%2016s7.163%2016%2016%2016'/%3e%3cpath%20fill='%230052FF'%20d='M23.032%2014.02c.314-2.096-1.283-3.223-3.465-3.975l.708-2.84-1.728-.43-.69%202.765c-.454-.114-.92-.22-1.385-.326l.695-2.783L15.439%206l-.708%202.839q-.566-.127-1.104-.26l.002-.009-2.384-.595-.46%201.846s1.283.294%201.256.312c.7.175.826.638.805%201.006l-.806%203.235q.073.017.18.057l-.183-.045-1.13%204.532c-.086.212-.303.531-.793.41.018.025-1.256-.313-1.256-.313L8%2020.993l2.25.561c.418.105.828.215%201.231.318l-.715%202.872%201.727.43.708-2.84q.707.19%201.378.357l-.706%202.828%201.728.43.715-2.866c2.948.558%205.164.333%206.097-2.333.752-2.146-.037-3.385-1.588-4.192%201.13-.26%201.98-1.003%202.207-2.538m-3.95%205.538c-.533%202.147-4.148.986-5.32.695l.95-3.805c1.172.293%204.929.872%204.37%203.11m.535-5.569c-.487%201.953-3.495.96-4.47.717l.86-3.45c.975.243%204.118.696%203.61%202.733'/%3e%3cpath%20fill='%230052FF'%20fill-rule='evenodd'%20d='M16%2030.5c8.008%200%2014.5-6.492%2014.5-14.5S24.008%201.5%2016%201.5%201.5%207.992%201.5%2016%207.992%2030.5%2016%2030.5M32%2016c0%208.837-7.163%2016-16%2016S0%2024.837%200%2016%207.163%200%2016%200s16%207.163%2016%2016'%20clip-rule='evenodd'/%3e%3c/svg%3e`,ip=`/assets/frxUSD-n9pTpinR.svg`,ap=`data:image/svg+xml,%3csvg%20width='240'%20height='240'%20viewBox='0%200%20240%20240'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='120'%20cy='120'%20r='120'%20fill='%2368B1F5'/%3e%3cpath%20d='M119.63%20213C119.63%20213%20191.755%20178.791%20191.755%20139.496C191.755%20109.021%20191.755%2089.2249%20191.755%2058.7498C145.968%2037.7688%2093.2984%2037.7471%2047.4999%2058.704C47.5414%2089.1943%2047.5043%20109.006%2047.5043%20139.496C47.5043%20178.791%20119.63%20213%20119.63%20213Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M132.84%2071.3319H123.541L122.424%2079.2775C122.083%2079.2694%20121.74%2079.2653%20121.396%2079.2653C105.845%2079.2653%2093.6191%2088.3812%2093.6191%20102.645C93.6191%20117.046%20105.064%20120.693%20116.219%20123.427L113.141%20145.33C107.885%20143.214%20103.236%20139.213%2099.7321%20133.746L89.1147%20142.648C93.5743%20149.974%20101.996%20155.231%20111.437%20157.452L110.134%20166.727H119.433L120.573%20158.617C120.883%20158.624%20121.193%20158.627%20121.503%20158.627C137.375%20158.627%20150.674%20149.297%20150.674%20134.175C150.674%20119.079%20138.537%20115.334%20127.026%20112.698L129.861%2092.5282C134.121%2094.4341%20137.381%2097.747%20140.056%20101.894L150.03%2093.3145C146.294%2087.4763%20139.845%2082.7117%20131.546%2080.5379L132.84%2071.3319ZM120.813%2090.7411C112.637%2090.7928%20106.918%2094.9625%20106.918%20101.251C106.918%20106.759%20110.909%20108.774%20118.021%20110.61L120.813%2090.7411ZM125.212%20125.607L122.199%20147.043C130.753%20146.96%20137.161%20142.893%20137.161%20135.569C137.161%20129.61%20132.5%20127.503%20125.212%20125.607Z'%20fill='%2368B1F5'/%3e%3c/svg%3e`,op=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='404'%20height='404'%20fill='none'%20viewBox='0%200%20404%20404'%3e%3cpath%20fill='%23005e5d'%20d='M404%20202C404%2090.439%20313.562%200%20202%200S0%2090.439%200%20202s90.439%20202%20202%20202%20202-90.438%20202-202'/%3e%3cpath%20fill='url(%23a)'%20fill-rule='evenodd'%20d='M80.765%20238.772c38.828%2038.829%2091.143%2049.466%20116.848%2023.761s15.066-78.02-23.761-116.848c-38.829-38.828-91.143-49.466-116.848-23.761s-15.067%2078.019%2023.761%20116.848m20.497%205.167c34.643%2027.048%2074.644%2033.712%2089.345%2014.884s-1.466-56.019-36.108-83.067c-34.643-27.048-74.644-33.712-89.344-14.883-14.701%2018.828%201.465%2056.018%2036.107%2083.066'%20clip-rule='evenodd'/%3e%3cpath%20fill='url(%23b)'%20fill-rule='evenodd'%20d='M323.235%20166.964c-38.828-38.828-91.142-49.466-116.849-23.761-25.704%2025.705-15.066%2078.019%2023.762%20116.848s91.142%2049.465%20116.848%2023.761c25.705-25.705%2015.068-78.02-23.761-116.848m-20.091-4.773c-34.643-27.048-74.643-33.712-89.344-14.883-14.701%2018.828%201.464%2056.019%2036.107%2083.067s74.643%2033.712%2089.345%2014.883c14.701-18.828-1.465-56.019-36.108-83.067'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23f9f9f9'%20d='M211.514%2078.551h38.327l-56.427%20246.895h-38.328z'/%3e%3cdefs%3e%3clinearGradient%20id='a'%20x1='145.389'%20x2='167.255'%20y1='238.887'%20y2='274.415'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.073'%20stop-color='%23f9f9f9'/%3e%3cstop%20offset='1'%20stop-color='%23f9f9f9'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='b'%20x1='250.485'%20x2='236.745'%20y1='185.001'%20y2='131.32'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23f9f9f9'/%3e%3cstop%20offset='1'%20stop-color='%23f9f9f9'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e`,sp=`/assets/pathUSD-BvaO6ooS.svg`,cp=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='158'%20height='158'%20fill='none'%20viewBox='0%200%20158%20158'%3e%3cpath%20fill='%23fff'%20fill-rule='evenodd'%20d='M0%20.21h52.51v52.51H0zm52.51%2052.51L105.01.21h52.51v52.51zm52.5%2052.5h52.51v52.51h-52.51zM0%20157.73v-52.51l52.51-52.5v105.01z'%20clip-rule='evenodd'/%3e%3c/svg%3e`,lp=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='50'%20height='50'%20fill='none'%20viewBox='0%200%2050%2050'%3e%3ccircle%20cx='25'%20cy='25'%20r='25'%20fill='%2397fedd'/%3e%3cpath%20fill='%23000'%20fill-rule='evenodd'%20d='M32.165%2020.898c-1.501%200-2.522.832-2.814%202.215h5.628c-.243-1.444-1.274-2.215-2.814-2.215m-.103-3.59c4.47%200%207.306%203.209%207.306%207.213l-.001%201.493-10.016-.012c.09%201.13%201.365%202.258%203.625%202.258%201.756%200%203.04-.482%203.659-.97l1.75%203.401c-1.038.614-3.237%201.439-5.82%201.439-5.32%200-8.04-3.398-8.04-7.609%200-3.982%202.955-7.213%207.537-7.213m-13.698%204.08c-.499-.067-1.62-.159-1.62%202.895l-.043%207.846h-5.163V17.598l4.739-.017v1.843c1.128-2.188%204.462-2.548%206.393-1.675v6.19c-.21.05-.593.12-.786.147-2.551.358-3.554-1.14-3.52-2.696'%20clip-rule='evenodd'/%3e%3c/svg%3e`,up=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='398'%20height='398'%20fill='none'%20viewBox='0%200%20398%20398'%3e%3cpath%20fill='%23fff'%20stroke='%23111'%20stroke-width='7.054'%20d='M198.996%207.527h.007C304.75%207.527%20390.476%2093.252%20390.476%20199v.007c0%20105.747-85.726%20191.473-191.473%20191.473h-.007c-105.748%200-191.473-85.726-191.473-191.473V199C7.523%2093.252%2093.248%207.527%20198.996%207.527Z'/%3e%3cpath%20fill='url(%23a)'%20fill-opacity='.7'%20d='M199.003%204h-.007c-107.696%200-195%2087.304-195%20195v.007c0%20107.695%2087.304%20194.999%20195%20194.999h.007c107.695%200%20194.999-87.304%20194.999-194.999V199c0-107.696-87.304-195-194.999-195'/%3e%3cpath%20stroke='url(%23b)'%20stroke-width='7.143'%20d='M199.003%204h-.007c-107.696%200-195%2087.304-195%20195v.007c0%20107.695%2087.304%20194.999%20195%20194.999h.007c107.695%200%20194.999-87.304%20194.999-194.999V199c0-107.696-87.304-195-194.999-195Z'/%3e%3cpath%20fill='%23000'%20fill-rule='evenodd'%20d='M167.799%2038.559C92.491%2053.064%2035.606%20119.32%2035.606%20198.862c0%2079.541%2056.885%20145.797%20132.193%20160.302v-15.3c-66.971-14.276-117.2-73.773-117.2-145.002s50.229-130.727%20117.2-145.003zm62.401%2015.36V38.613c75.169%2014.616%20131.914%2080.805%20131.914%20160.249S305.369%20344.494%20230.2%20359.11v-15.306c66.831-14.382%20116.921-73.813%20116.921-144.942S297.031%2068.301%20230.2%2053.919'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23000'%20d='M222.118%20193.406q18.685%203.56%2028.985%2013.735%2010.3%209.92%2010.301%2025.435v16.279q0%2018.568-13.415%2030.013-13.414%2011.192-35.213%2011.192h-5.03v25.944h-17.247V290.06h-5.27q-14.373%200-25.392-6.359-11.019-6.613-17.247-18.313-5.988-11.955-5.988-27.47h17.247q0%2015.77%208.623%2025.689%208.863%209.666%2023.236%209.666h26.589q14.133%200%2022.757-6.613%208.623-6.868%208.623-17.805v-16.279q0-8.647-6.467-14.752-6.228-6.105-17.247-7.885l-43.118-7.631q-18.205-3.306-28.266-13.735t-10.061-26.198V148.64q0-18.567%2012.935-29.505%2013.174-11.191%2034.734-11.191h4.312V82h17.247v25.944h5.509q20.362%200%2032.818%2013.226%2012.456%2012.972%2012.456%2034.338h-17.247q0-13.99-7.665-22.383-7.666-8.394-20.362-8.394h-27.068q-13.655%200-21.798%206.613-8.145%206.359-8.145%2017.296v13.735q0%208.902%205.989%2015.007%206.228%206.105%2017.007%208.139z'/%3e%3cdefs%3e%3cradialGradient%20id='a'%20cx='0'%20cy='0'%20r='1'%20gradientTransform='matrix(0%20411.151%20-289.409%200%20199.418%2060.946)'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.031'%20stop-color='%23fafafa'/%3e%3cstop%20offset='1'%20stop-color='%23e3e3e3'/%3e%3c/radialGradient%3e%3clinearGradient%20id='b'%20x1='198.999'%20x2='198.999'%20y1='.321'%20y2='397.686'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23f4f4f4'/%3e%3cstop%20offset='1'%20stop-color='%23bebebe'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e`,dp=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='404'%20height='404'%20fill='none'%20viewBox='0%200%20404%20404'%3e%3cpath%20fill='%23f9f9f9'%20d='M404%20202C404%2090.439%20313.562%200%20202%200S0%2090.439%200%20202s90.439%20202%20202%20202%20202-90.438%20202-202'/%3e%3cpath%20fill='url(%23a)'%20fill-rule='evenodd'%20d='M80.765%20238.772c38.828%2038.829%2091.143%2049.466%20116.848%2023.761s15.066-78.02-23.761-116.848c-38.829-38.828-91.143-49.466-116.848-23.761s-15.067%2078.019%2023.761%20116.848m20.497%205.167c34.643%2027.048%2074.644%2033.712%2089.345%2014.884s-1.466-56.019-36.108-83.067c-34.643-27.048-74.644-33.712-89.344-14.883-14.701%2018.828%201.465%2056.018%2036.107%2083.066'%20clip-rule='evenodd'/%3e%3cpath%20fill='url(%23b)'%20fill-rule='evenodd'%20d='M323.235%20166.964c-38.828-38.828-91.142-49.466-116.849-23.761-25.704%2025.705-15.066%2078.019%2023.762%20116.848s91.142%2049.465%20116.848%2023.761c25.705-25.705%2015.068-78.02-23.761-116.848m-20.091-4.773c-34.643-27.048-74.643-33.712-89.344-14.883-14.701%2018.828%201.464%2056.019%2036.107%2083.067s74.643%2033.712%2089.345%2014.883c14.701-18.828-1.465-56.019-36.108-83.067'%20clip-rule='evenodd'/%3e%3cpath%20fill='%23171717'%20d='M211.514%2078.551h38.327l-56.427%20246.895h-38.328z'/%3e%3cdefs%3e%3clinearGradient%20id='a'%20x1='145.389'%20x2='167.255'%20y1='238.887'%20y2='274.415'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20offset='.073'%20stop-color='%23171717'/%3e%3cstop%20offset='1'%20stop-color='%23171717'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3clinearGradient%20id='b'%20x1='250.485'%20x2='236.745'%20y1='185.001'%20y2='131.32'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23171717'/%3e%3cstop%20offset='1'%20stop-color='%23171717'%20stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e`,fp=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='1021'%20height='1021'%20fill='none'%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20fill='%23d1f019'%20stroke='%23d1f019'%20stroke-width='10.667'%20d='M510.5%201015.67c278.995%200%20505.17-226.175%20505.17-505.17S789.495%205.334%20510.5%205.334%205.334%20231.504%205.334%20510.5s226.17%20505.17%20505.166%20505.17Z'/%3e%3cpath%20fill='%23292929'%20d='M430.37%20100v38.474l-1.365%201.012c-93.091%2019.673-176.275%2075.89-230.539%20153.497-86.596%20123.87-90.95%20288.992-10.778%20417.239%2053.723%2085.914%20141.637%20148.767%20241.317%20169.687l1.365%201.035v38.475c-104.221-19.249-198.607-80.738-260.142-166.322C62.335%20603.036%2066.336%20398.122%20180.441%20252.744c61.676-78.549%20151.19-134.483%20249.953-152.72zm159.499%20819.393v-39.651c98.504-20.402%20186.465-82.831%20239.999-167.427%2085.232-134.743%2076.949-309.371-20.99-434.983-54.146-69.441-132.318-119.399-218.844-137.801l-.141-39.51c105.445%2020.685%20200.301%2082.549%20261.718%20170.299%20101.987%20145.661%20100.339%20340.479-3.976%20484.375-61.559%2084.902-154.533%20144.414-257.766%20164.745z'/%3e%3cg%20filter='url(%23b)'%3e%3cpath%20fill='%23292929'%20d='M540.424%20481.574c62.733%2011.501%20118.146%2030.32%20117.623%20104.031-.523%2060.641-44.435%20104.031-113.963%20113.441v54.89H479.26v-55.413c-71.619-11.501-115.009-56.459-115.531-120.76l76.847%201.046c2.613%2035.548%2030.843%2060.118%2075.801%2060.118%2036.071%200%2062.732-15.683%2062.732-44.435%200-30.843-29.798-37.117-90.962-49.14-61.686-11.501-116.054-31.366-116.054-105.6%200-56.981%2041.299-99.326%20107.167-108.735v-55.414h64.824v55.936c65.346%2010.979%20105.599%2052.277%20106.644%20112.396h-76.847c-3.659-30.844-27.183-52.277-65.346-52.277-33.457%200-57.504%2014.114-57.504%2042.344%200%2029.798%2028.752%2036.071%2089.393%2047.572'/%3e%3c/g%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='a'%3e%3cpath%20fill='%23fff'%20d='M0%200h1021v1021H0z'/%3e%3c/clipPath%3e%3cfilter%20id='b'%20width='307.778'%20height='491.789'%20x='357.001'%20y='275.603'%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20result='hardAlpha'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='6.728'/%3e%3cfeGaussianBlur%20stdDeviation='3.364'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.25%200'/%3e%3cfeBlend%20in2='BackgroundImageFix'%20result='effect1_dropShadow_215_35'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='effect1_dropShadow_215_35'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e`,pp=`data:image/svg+xml,%3csvg%20width='301'%20height='301'%20viewBox='0%200%20301%20301'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0%20150.05C0%2067.1808%2067.1789%200.00195312%20150.048%200.00195312V0.00195312C232.918%200.00195312%20300.096%2067.1808%20300.096%20150.05V150.05C300.096%20232.919%20232.918%20300.098%20150.048%20300.098V300.098C67.1789%20300.098%200%20232.919%200%20150.05V150.05Z'%20fill='%23FC7A4A'/%3e%3cpath%20d='M191.312%20173.807C191.312%20151.925%20178.182%20144.423%20151.924%20141.297C133.168%20138.796%20129.417%20133.795%20129.417%20125.041C129.417%20116.287%20135.669%20110.662%20148.173%20110.662C159.426%20110.662%20165.679%20114.413%20168.804%20123.791C169.43%20125.667%20171.306%20126.917%20173.181%20126.917H183.184C185.685%20126.917%20187.56%20125.041%20187.56%20122.541V121.916C185.059%20108.161%20173.806%2097.5329%20159.426%2096.283V81.2781C159.426%2078.7768%20157.551%2076.9012%20154.425%2076.2755H145.047C142.546%2076.2755%20140.67%2078.1511%20140.045%2081.2781V95.6573C121.289%2098.1586%20109.411%20110.662%20109.411%20126.293C109.411%20146.924%20121.914%20155.051%20148.173%20158.178C165.679%20161.303%20171.306%20165.055%20171.306%20175.058C171.306%20185.062%20162.552%20191.939%20150.674%20191.939C134.418%20191.939%20128.791%20185.06%20126.916%20175.682C126.291%20173.183%20124.416%20171.931%20122.54%20171.931H111.911C109.411%20171.931%20107.535%20173.807%20107.535%20176.308V176.934C110.035%20192.563%20120.039%20203.817%20140.67%20206.944V221.948C140.67%20224.448%20142.546%20226.324%20145.672%20226.949H155.05C157.551%20226.949%20159.426%20225.074%20160.052%20221.948V206.944C178.808%20203.817%20191.312%20190.687%20191.312%20173.807Z'%20fill='white'/%3e%3cpath%20d='M118.163%20239.453C69.3975%20221.948%2044.389%20167.556%2062.5208%20119.414C71.8988%2093.156%2092.5305%2073.15%20118.163%2063.772C120.665%2062.5221%20121.914%2060.6465%20121.914%2057.5195V48.7672C121.914%2046.2659%20120.665%2044.3903%20118.163%2043.7661C117.538%2043.7661%20116.288%2043.7661%20115.662%2044.3903C56.2683%2063.1463%2023.7574%20126.293%2042.5134%20185.686C53.767%20220.697%2080.6511%20247.581%20115.662%20258.835C118.163%20260.085%20120.665%20258.835%20121.289%20256.333C121.914%20255.709%20121.914%20255.083%20121.914%20253.834V245.08C121.914%20243.204%20120.039%20240.704%20118.163%20239.453ZM184.435%2044.3903C181.934%2043.1404%20179.432%2044.3903%20178.808%2046.8916C178.182%2047.5173%20178.182%2048.1415%20178.182%2049.3929V58.1452C178.182%2060.6465%20180.058%2063.1463%20181.934%2064.3977C230.699%2081.9024%20255.708%20136.295%20237.576%20184.436C228.198%20210.695%20207.566%20230.701%20181.934%20240.079C179.432%20241.329%20178.182%20243.204%20178.182%20246.331V255.083C178.182%20257.585%20179.432%20259.46%20181.934%20260.085C182.559%20260.085%20183.809%20260.085%20184.435%20259.46C243.829%20240.704%20276.34%20177.558%20257.584%20118.165C246.33%2082.5281%20218.82%2055.6439%20184.435%2044.3903Z'%20fill='white'/%3e%3c/svg%3e`,mp=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='64'%20height='64'%20fill='none'%20viewBox='0%200%2064%2064'%3e%3cpath%20fill='%23ba3b48'%20d='M0%2032C0%2014.327%2014.327%200%2032%200s32%2014.327%2032%2032-14.327%2032-32%2032S0%2049.673%200%2032'/%3e%3cpath%20fill='%23fff'%20d='M32.5%2048q-3.052%200-5.182-1.65-2.11-1.651-3.224-4.878Q23%2038.228%2023%2033.52v-.02q0-4.784%201.113-8.01t3.224-4.858Q29.467%2019%2032.5%2019t5.143%201.632q2.13%201.632%203.244%204.858Q42%2028.716%2042%2033.5v.019q0%204.709-1.113%207.953-1.094%203.227-3.224%204.877Q35.55%2048%2032.5%2048m0-2.889q2.053%200%203.397-1.275%201.362-1.276%202.015-3.846.672-2.57.672-6.453v-.075q0-3.901-.672-6.452-.653-2.57-2.015-3.846-1.344-1.275-3.397-1.275t-3.416%201.275q-1.343%201.276-2.015%203.846-.653%202.55-.653%206.452v.075q0%203.884.653%206.453.672%202.57%202.015%203.846%201.362%201.275%203.416%201.275m-6.87-10.354v-2.889h13.74v2.889z'/%3e%3c/svg%3e`,hp=`/assets/wYLDS-CaCKDrO-.svg`,gp=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23dcc5f7'%20d='M0%2012C0%205.373%205.373%200%2012%200s12%205.373%2012%2012-5.373%2012-12%2012S0%2018.627%200%2012'/%3e%3cpath%20fill='%236800d1'%20d='M10%206H6v4h4z'/%3e%3cpath%20fill='%23000'%20d='M18%2014h-4v4h4z'/%3e%3cpath%20fill='%236800d1'%20d='M18%206h-4l-4%204h8zM6%2014v4h4v-8zm7-1h11v11H13z'/%3e%3cpath%20fill='%23dcc5f7'%20d='m16.13%2021-1.592-5.6h1.296l.952%204.08.976-4.08h1.464l.984%204.072.952-4.072h1.304L20.89%2021h-1.344l-1.04-3.896L17.45%2021z'/%3e%3c/svg%3e`,_p=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20%23390922;%20}%20.cls-2%20{%20fill:%20%23f3e9e3;%20}%20%3c/style%3e%3c/defs%3e%3ccircle%20class='cls-2'%20cx='150'%20cy='150'%20r='150'/%3e%3cpath%20class='cls-1'%20d='M247.63,81.3l-27.62-9.21c-1.58-.53-2.82-1.77-3.34-3.35l-9.21-27.62c-.72-2.16-2.74-3.62-5.02-3.62h-104.88c-2.28,0-4.3,1.46-5.02,3.62l-9.2,27.62c-.53,1.58-1.77,2.82-3.35,3.35l-27.62,9.21c-2.16.72-3.62,2.74-3.62,5.02v127.38c0,2.28,1.46,4.3,3.62,5.02l27.61,9.2c1.58.53,2.82,1.77,3.35,3.34l9.21,27.62c.72,2.16,2.74,3.62,5.02,3.62h104.88c2.28,0,4.3-1.46,5.02-3.62l9.22-27.63c.53-1.58,1.77-2.82,3.35-3.34l27.61-9.2c2.16-.72,3.62-2.74,3.62-5.02v-127.38c0-2.28-1.46-4.3-3.62-5.02Z'/%3e%3cpath%20class='cls-2'%20d='M192.24,160.47c-2.31-4.67-5.74-8.66-10.3-11.95-4.56-3.29-10.3-6.2-17.23-8.74l-17.14-6.06c-6-1.96-10.59-4.56-13.76-7.79-3.18-3.23-4.76-7.33-4.76-12.29,0-3.81.95-7.16,2.86-10.04,1.9-2.88,4.59-5.13,8.05-6.75,3.46-1.62,7.33-2.42,11.6-2.42,7.16,0,13.16,2.48,18.01,7.44,4.85,4.96,8.31,11.72,10.39,20.26l1.73.17,10.73-16.97c-2.77-4.27-6.41-7.82-10.91-10.65-4.5-2.83-9.35-4.99-14.54-6.49-4.02-1.16-8-1.87-11.95-2.13v-19.86h-8.66v19.93c-4.35.33-8.42,1.06-12.21,2.23-5.25,1.62-9.81,3.93-13.68,6.93-3.87,3-6.81,6.61-8.83,10.82-2.02,4.21-3.03,8.86-3.03,13.94,0,5.43,1.18,10.24,3.55,14.46,2.36,4.21,5.77,7.85,10.21,10.91,4.44,3.06,10.01,5.92,16.71,8.57l15.58,5.37c6.69,2.31,11.71,5.4,15.06,9.26,3.35,3.87,5.02,8.74,5.02,14.63,0,4.62-1.1,8.6-3.29,11.95-2.19,3.35-5.14,5.95-8.83,7.79-3.7,1.85-7.96,2.77-12.81,2.77s-9.64-1.15-14.02-3.46c-4.39-2.31-8.08-5.86-11.08-10.65-3-4.79-5.37-10.82-7.1-18.09h-1.73l-11.6,17.83c2.54,4.62,6.12,8.66,10.73,12.12,4.61,3.46,9.9,6.12,15.84,7.96,4.94,1.54,10.11,2.42,15.5,2.68v19.83h8.66v-19.94c4.66-.34,9.05-1.14,13.16-2.4,5.65-1.73,10.53-4.27,14.63-7.62,4.1-3.35,7.27-7.33,9.52-11.95,2.25-4.62,3.38-9.75,3.38-15.41,0-6.12-1.16-11.51-3.46-16.19Z'/%3e%3c/svg%3e`,vp=`data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20300%20300'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20%23390922;%20}%20.cls-2%20{%20fill:%20%23f3e9e3;%20}%20%3c/style%3e%3c/defs%3e%3ccircle%20class='cls-1'%20cx='150'%20cy='150'%20r='150'/%3e%3cpath%20class='cls-2'%20d='M247.63,81.3l-27.62-9.21c-1.58-.53-2.82-1.77-3.34-3.35l-9.21-27.62c-.72-2.16-2.74-3.62-5.02-3.62h-104.88c-2.28,0-4.3,1.46-5.02,3.62l-9.2,27.62c-.53,1.58-1.77,2.82-3.35,3.35l-27.62,9.21c-2.16.72-3.62,2.74-3.62,5.02v127.38c0,2.28,1.46,4.3,3.62,5.02l27.61,9.2c1.58.53,2.82,1.77,3.35,3.34l9.21,27.62c.72,2.16,2.74,3.62,5.02,3.62h104.88c2.28,0,4.3-1.46,5.02-3.62l9.22-27.63c.53-1.58,1.77-2.82,3.35-3.34l27.61-9.2c2.16-.72,3.62-2.74,3.62-5.02v-127.38c0-2.28-1.46-4.3-3.62-5.02Z'/%3e%3cpath%20class='cls-1'%20d='M192.24,160.47c-2.31-4.67-5.74-8.66-10.3-11.95-4.56-3.29-10.3-6.2-17.23-8.74l-17.14-6.06c-6-1.96-10.59-4.56-13.76-7.79-3.18-3.23-4.76-7.33-4.76-12.29,0-3.81.95-7.16,2.86-10.04,1.9-2.88,4.59-5.13,8.05-6.75,3.46-1.62,7.33-2.42,11.6-2.42,7.16,0,13.16,2.48,18.01,7.44,4.85,4.96,8.31,11.72,10.39,20.26l1.73.17,10.73-16.97c-2.77-4.27-6.41-7.82-10.91-10.65-4.5-2.83-9.35-4.99-14.54-6.49-4.02-1.16-8-1.87-11.95-2.13v-19.86h-8.66v19.93c-4.35.33-8.42,1.06-12.21,2.23-5.25,1.62-9.81,3.93-13.68,6.93-3.87,3-6.81,6.61-8.83,10.82-2.02,4.21-3.03,8.86-3.03,13.94,0,5.43,1.18,10.24,3.55,14.46,2.36,4.21,5.77,7.85,10.21,10.91,4.44,3.06,10.01,5.92,16.71,8.57l15.58,5.37c6.69,2.31,11.71,5.4,15.06,9.26,3.35,3.87,5.02,8.74,5.02,14.63,0,4.62-1.1,8.6-3.29,11.95-2.19,3.35-5.14,5.95-8.83,7.79-3.7,1.85-7.96,2.77-12.81,2.77s-9.64-1.15-14.02-3.46c-4.39-2.31-8.08-5.86-11.08-10.65-3-4.79-5.37-10.82-7.1-18.09h-1.73l-11.6,17.83c2.54,4.62,6.12,8.66,10.73,12.12,4.61,3.46,9.9,6.12,15.84,7.96,4.94,1.54,10.11,2.42,15.5,2.68v19.83h8.66v-19.94c4.66-.34,9.05-1.14,13.16-2.4,5.65-1.73,10.53-4.27,14.63-7.62,4.1-3.35,7.27-7.33,9.52-11.95,2.25-4.62,3.38-9.75,3.38-15.41,0-6.12-1.16-11.51-3.46-16.19Z'/%3e%3c/svg%3e`,yp=Object.fromEntries(Object.entries(Object.assign({"./icons/BRLA.png":Pf,"./icons/BRZ.svg":Ff,"./icons/CHFAU.png":If,"./icons/DLUSD.png":Lf,"./icons/EURAU.svg":Rf,"./icons/EURC.e.svg":zf,"./icons/GBPA.svg":Bf,"./icons/GUSD.svg":Vf,"./icons/MACH.svg":Hf,"./icons/OUSD.svg":Uf,"./icons/PRIME.svg":Wf,"./icons/SBC.svg":Gf,"./icons/SEKAU.svg":Kf,"./icons/USD1.svg":qf,"./icons/USDB.svg":Jf,"./icons/USDC.e.svg":Yf,"./icons/USDT0.svg":Xf,"./icons/USDY.svg":Zf,"./icons/USDe.svg":Qf,"./icons/YLDS.svg":$f,"./icons/alphaUSD.svg":ep,"./icons/betaUSD.svg":tp,"./icons/cUSD.svg":np,"./icons/cbBTC.svg":rp,"./icons/frxUSD.svg":ip,"./icons/goUSD.svg":ap,"./icons/iUSD.svg":op,"./icons/pathUSD.svg":sp,"./icons/rUSD.svg":cp,"./icons/reUSD.svg":lp,"./icons/sUSDe.svg":up,"./icons/siUSD.svg":dp,"./icons/stcUSD.svg":fp,"./icons/syrupUSDC.svg":pp,"./icons/thetaUSD.svg":mp,"./icons/wYLDS.svg":hp,"./icons/wsrUSD.svg":gp})).map(([e,t])=>[e.slice(8,e.lastIndexOf(`.`)),t])),bp=Object.entries(Object.assign({"./logos/OUSD.dark.svg":_p,"./logos/OUSD.light.svg":vp})).reduce((e,[t,n])=>{let[,r,i]=t.match(/^\.\/logos\/(.+)\.(light|dark)\.\w+$/);return e[r]={...e[r],[i]:n},e},{});function xp(e){let t=(0,B.useId)(),{expiry:n,limits:r}=e.keyAuthorization,i=e.heading??`h2`,a=r.some(e=>e.period);return(0,V.jsxs)(`section`,{...kp.section?{className:`z_tempo_2d_id-nr-Vm7u z_tempo_2d_id-nr-Vm7v z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm7w z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm7x`}:kp.section(),"aria-labelledby":t,children:[(0,V.jsx)(i,{...kp.heading?{className:`z-tempo_2d_id-nr-Vm7-styles-heading-text-0 z-tempo_2d_id-nr-Vm7-styles-heading-m-1 z-tempo_2d_id-nr-Vm7-styles-heading-font-family-2 z-tempo_2d_id-nr-Vm7-styles-heading-font-size-3 z-tempo_2d_id-nr-Vm7-styles-heading-font-weight-4 z-tempo_2d_id-nr-Vm7-styles-heading-letter-spacing-5 z-tempo_2d_id-nr-Vm7-styles-heading-line-height-6`}:kp.heading(),id:t,children:`This app can spend up to`}),(0,V.jsx)(`ul`,{...kp.list?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-nr-Vm7f z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm7g z_tempo_2d_id-nr-Vm7h z_tempo_2d_id-nr-Vm7i z_tempo_2d_id-nr-Vm7j z_tempo_2d_id-nr-Vm7k z_tempo_2d_id-nr-Vm7l`}:kp.list(),children:r.map(e=>(0,B.createElement)(`li`,{...kp.limit?{className:`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-nr-Vm71`}:kp.limit(),key:`${e.currency}:${e.period??0}`},(0,V.jsx)(`span`,{children:e.period?`${Dp(e)} ${Ep(e.period)}`:a?`${Dp(e)} in total`:Dp(e)}),(0,V.jsx)(`span`,{...kp.icons?{className:`z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-nr-Vm7d z-tempo_2d_id-nr-Vm7-styles-icons-margin-inline-start-0 z-tempo_2d_id-nr-Vm7-styles-icons-margin-inline-start-1`}:kp.icons(),children:e.tokens.map(t=>{let n=`${t.symbol}: ${Dp({amount:t.amount,currency:e.currency})}`,r=bp[t.symbol],i=r?.light??yp[t.symbol];return(0,V.jsxs)(Gd.Root,{children:[(0,V.jsx)(Gd.Trigger,{delay:150,render:(0,V.jsx)(`span`,{...kp.token?{className:`z_tempo_2d_id-nr-Vm78 z-tempo_2d_id-nr-Vm7-styles-token-outline-0 z-tempo_2d_id-nr-Vm7-styles-token-outline-color-1 z-tempo_2d_id-nr-Vm7-styles-token-outline-color-2 z-tempo_2d_id-nr-Vm7-styles-token-transition-duration-3 z-tempo_2d_id-nr-Vm7-styles-token-transition-property-4 z-tempo_2d_id-nr-Vm7-styles-token-transition-timing-function-5`}:kp.token(),tabIndex:0,children:i?(0,V.jsxs)(`picture`,{children:[r?.dark?(0,V.jsx)(`source`,{media:`(prefers-color-scheme: dark)`,srcSet:r.dark}):null,(0,V.jsx)(`img`,{...kp.icon?{className:`z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm79 z_tempo_2d_id-nr-Vm7a z_tempo_2d_id-nr-Vm7b`}:kp.icon(),alt:n,height:20,src:i,width:20})]}):(0,V.jsx)(`span`,{...kp.placeholder?{className:`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm7m z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-nr-Vm7n z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-nr-Vm7a z_tempo_2d_id-nr-Vm7o z_tempo_2d_id-nr-Vm7p z_tempo_2d_id-nr-Vm7q z_tempo_2d_id-nr-Vm7r z_tempo_2d_id-nr-Vm7s z_tempo_2d_id-nr-Vm7t z_tempo_2d_id-nr-Vm7b`}:kp.placeholder(),"aria-label":n,role:`img`,children:t.symbol[0]})})}),(0,V.jsx)(Gd.Popup,{children:n})]},t.symbol)})})))}),(0,V.jsx)(`dl`,{...kp.details?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm73 z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-nr-Vm75 z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm77`}:kp.details(),children:(0,V.jsxs)(`div`,{children:[(0,V.jsx)(`dt`,{...kp.term?{className:`z_tempo_2d_id-nr-Vm7n z_tempo_2d_id-nr-Vm7y`}:kp.term(),children:`Expires`}),` `,(0,V.jsxs)(`dd`,{...kp.value?{className:`z_tempo_2d_id-nr-Vm7y z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm7z`}:kp.value(),children:[Op(n),` `,(0,V.jsxs)(Gd.Root,{children:[(0,V.jsx)(Gd.Trigger,{delay:150,render:(0,V.jsx)(Qc,{...kp.info?{className:`z-tempo_2d_id-nr-Vm7-styles-heading-text-0 z-tempo_2d_id-nr-Vm7-styles-info-display-0 z-tempo_2d_id-nr-Vm7-styles-info-h-1 z-tempo_2d_id-nr-Vm7-styles-info-outline-2 z-tempo_2d_id-nr-Vm7-styles-info-vertical-align-3 z-tempo_2d_id-nr-Vm7-styles-info-w-4 z-tempo_2d_id-nr-Vm7-styles-info-outline-5 z-tempo_2d_id-nr-Vm7-styles-info-outline-color-6 z-tempo_2d_id-nr-Vm7-styles-info-outline-offset-7`}:kp.info(),"aria-label":`Expiry date`,role:`img`,tabIndex:0})}),(0,V.jsx)(Gd.Popup,{children:new Date(n*1e3).toLocaleString(void 0,{day:`numeric`,hour:`numeric`,minute:`2-digit`,month:`short`,timeZoneName:`short`,year:`numeric`})})]})]})]})})]})}var Sp=new Intl.NumberFormat(`en-US`,{maximumFractionDigits:20}),Cp=new Intl.RelativeTimeFormat(`en-US`,{numeric:`always`}),wp=[[`year`,31536e3],[`month`,2592e3],[`week`,604800],[`day`,86400],[`hour`,3600],[`minute`,60]],Tp=[[`week`,604800],[`day`,86400],[`hour`,3600],[`minute`,60],[`second`,1]];function Ep(e){let[t,n]=Tp.find(t=>e%t[1]===0),r=e/n;return r===1?`per ${t}`:`every ${r} ${t}s`}function Dp(e){let t=e.amount;try{return new Intl.NumberFormat(`en-US`,{currency:e.currency,maximumFractionDigits:6,style:`currency`,trailingZeroDisplay:`stripIfInteger`}).format(t)}catch{return`${Sp.format(t)} ${e.currency}`}}function Op(e){let t=e-Date.now()/1e3,[n,r]=wp.find(e=>t+60>=e[1])??wp.at(-1);return Cp.format(Math.max(1,Math.round(t/r)),n)}var kp;(function(e){e.details=1,e.heading=1,e.icon=1,e.icons=1,e.info=1,e.limit=1,e.list=1,e.placeholder=1,e.section=1,e.term=1,e.token=1,e.value=1})(kp||={});function Ap(e){let t=e.heading??`h1`,n=e.approving||e.denying,r=e.refusal??e.keyAuthorization?.refusal;return(0,V.jsxs)(`div`,{...Np.column?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-kV7-rJs z_tempo_2d_id-kV7-rJt z_tempo_2d_id-kV7-rJu`}:Np.column(),children:[(0,V.jsxs)(`header`,{...Np.header?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-kV7-rJ10 z_tempo_2d_id-kV7-rJ11`}:Np.header(),children:[(0,V.jsx)(`span`,{...Np.avatar?{className:`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm7m z_tempo_2d_id-kV7-rJ3 z_tempo_2d_id-kV7-rJ4 z_tempo_2d_id-nr-Vm7n z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-kV7-rJ7 z_tempo_2d_id-nr-Vm7o z_tempo_2d_id-kV7-rJ9 z_tempo_2d_id-kV7-rJa`}:Np.avatar(),children:(0,V.jsx)(Zc,{...Np.avatarIcon?{className:`z-tempo_2d_id-kV7-rJ-styles-avatarIcon-h-0 z-tempo_2d_id-kV7-rJ-styles-avatarIcon-w-1`}:Np.avatarIcon()})}),(0,V.jsx)(t,{...Np.title?{className:`z-tempo_2d_id-kV7-rJ-styles-title-text-wrap-0 z-tempo_2d_id-kV7-rJ-styles-title-font-family-1 z-tempo_2d_id-kV7-rJ-styles-title-font-size-2 z-tempo_2d_id-kV7-rJ-styles-title-font-weight-3 z-tempo_2d_id-kV7-rJ-styles-title-letter-spacing-4 z-tempo_2d_id-kV7-rJ-styles-title-line-height-5`}:Np.title(),children:`Authorize this app`}),(0,V.jsxs)(`p`,{...Np.description?{className:`z-tempo_2d_id-kV7-rJ-styles-description-text-0 z-tempo_2d_id-kV7-rJ-styles-description-text-1 z_tempo_2d_id-kV7-rJv z_tempo_2d_id-kV7-rJw z_tempo_2d_id-kV7-rJx z-tempo_2d_id-kV7-rJ-styles-description-font-weight-2 z-tempo_2d_id-kV7-rJ-styles-description-font-weight-3 z_tempo_2d_id-kV7-rJy z_tempo_2d_id-kV7-rJz`}:Np.description(),children:[`Approve to let`,` `,(0,V.jsxs)(`span`,{...Np.app?{className:`z_tempo_2d_id-kV7-rJ0`}:Np.app(),children:[(0,V.jsx)(`strong`,{children:e.app}),` `,(0,V.jsxs)(Gd.Root,{children:[(0,V.jsx)(Gd.Trigger,{delay:150,render:(0,V.jsx)(Vc,{...Np.badge?{className:`z-tempo_2d_id-kV7-rJ-styles-badge-display-0 z-tempo_2d_id-kV7-rJ-styles-badge-h-1 z-tempo_2d_id-kV7-rJ-styles-badge-outline-2 z-tempo_2d_id-kV7-rJ-styles-badge-vertical-align-3 z-tempo_2d_id-kV7-rJ-styles-badge-w-4 z-tempo_2d_id-kV7-rJ-styles-badge-outline-5 z-tempo_2d_id-kV7-rJ-styles-badge-outline-color-6 z-tempo_2d_id-kV7-rJ-styles-badge-outline-offset-7`}:Np.badge(),"aria-label":`Verified`,role:`img`,tabIndex:0})}),(0,V.jsx)(Gd.Popup,{children:`Verified app`})]})]}),` `,`use your Tempo Account.`]})]}),(0,V.jsxs)(`div`,{...Np.stack?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-kV7-rJ1a`}:Np.stack(),children:[e.keyAuthorization?(0,V.jsx)(xp,{heading:e.heading===`h4`?`h5`:`h2`,keyAuthorization:e.keyAuthorization}):null,e.keyAuthorization?.challenge?(0,V.jsxs)(`div`,{...Np.challenge?{className:`z_tempo_2d_id-kV7-rJb z_tempo_2d_id-nr-Vm7v z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-kV7-rJf`}:Np.challenge(),role:`note`,children:[(0,V.jsx)(`p`,{...Np.challengeTitle?{className:`z_tempo_2d_id-kV7-rJm z_tempo_2d_id-kV7-rJn z_tempo_2d_id-kV7-rJo z_tempo_2d_id-kV7-rJp z_tempo_2d_id-kV7-rJq z_tempo_2d_id-kV7-rJr`}:Np.challengeTitle(),children:`This sign-in also signs a message`}),(0,V.jsx)(`p`,{...Np.challengeText?{className:`z_tempo_2d_id-kV7-rJg z_tempo_2d_id-nr-Vm73 z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-nr-Vm75 z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm77`}:Np.challengeText(),children:`Approve only if you started this sign-in and expect this message.`}),(0,V.jsx)(`pre`,{...Np.message?{className:`z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm7z z_tempo_2d_id-kV7-rJ14 z_tempo_2d_id-kV7-rJ15 z_tempo_2d_id-kV7-rJ16 z_tempo_2d_id-kV7-rJ17 z_tempo_2d_id-kV7-rJ18 z_tempo_2d_id-kV7-rJ19`}:Np.message(),children:e.keyAuthorization.challenge})]}):null,(0,V.jsx)(vl,{size:`large`,disabled:e.denying||!!r,loading:e.approving,onClick:e.onApprove,children:`Approve`}),(0,V.jsx)(vl,{size:`large`,disabled:e.approving,loading:e.denying,onClick:e.onDeny,variant:`text`,children:`Deny`}),(0,V.jsxs)(`p`,{...Np.note?{className:`z-tempo_2d_id-kV7-rJ-styles-note-text-0 z-tempo_2d_id-kV7-rJ-styles-note-text-1 z_tempo_2d_id-kV7-rJ11 z_tempo_2d_id-nr-Vm73 z_tempo_2d_id-nr-Vm74 z-tempo_2d_id-kV7-rJ-styles-note-font-weight-2 z-tempo_2d_id-kV7-rJ-styles-note-font-weight-3 z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm77`}:Np.note(),children:[`Signed in as `,(0,V.jsx)(`strong`,{children:e.email}),`. Either choice returns you to `,(0,V.jsx)(`strong`,{children:e.destination}),`.`]}),(0,V.jsx)(`p`,{...Np.status?{className:`z_tempo_2d_id-nr-Vm7n z_tempo_2d_id-kV7-rJ11 z_tempo_2d_id-nr-Vm73 z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-nr-Vm75 z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm77`}:Np.status(),"aria-live":`polite`,role:`status`,children:n?`Returning to ${e.destination}.`:void 0})]}),(()=>{let t=e.error??(r?Mp[r]:void 0);return t?(0,V.jsxs)(pu,{intent:`negative`,children:[(0,V.jsx)(pu.Icon,{}),(0,V.jsx)(pu.Content,{children:t})]}):null})()]})}function jp(e){let t=e.heading??`h1`;return(0,V.jsx)(`div`,{...Np.column?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-kV7-rJs z_tempo_2d_id-kV7-rJt z_tempo_2d_id-kV7-rJu`}:Np.column(),children:(0,V.jsxs)(`header`,{...Np.header?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-kV7-rJ10 z_tempo_2d_id-kV7-rJ11`}:Np.header(),children:[(0,V.jsx)(t,{...Np.title?{className:`z-tempo_2d_id-kV7-rJ-styles-title-text-wrap-0 z-tempo_2d_id-kV7-rJ-styles-title-font-family-1 z-tempo_2d_id-kV7-rJ-styles-title-font-size-2 z-tempo_2d_id-kV7-rJ-styles-title-font-weight-3 z-tempo_2d_id-kV7-rJ-styles-title-letter-spacing-4 z-tempo_2d_id-kV7-rJ-styles-title-line-height-5`}:Np.title(),children:`This sign-in request is invalid`}),(0,V.jsx)(`p`,{...Np.description?{className:`z-tempo_2d_id-kV7-rJ-styles-description-text-0 z-tempo_2d_id-kV7-rJ-styles-description-text-1 z_tempo_2d_id-kV7-rJv z_tempo_2d_id-kV7-rJw z_tempo_2d_id-kV7-rJx z-tempo_2d_id-kV7-rJ-styles-description-font-weight-2 z-tempo_2d_id-kV7-rJ-styles-description-font-weight-3 z_tempo_2d_id-kV7-rJy z_tempo_2d_id-kV7-rJz`}:Np.description(),children:`The app sent a request Tempo ID cannot complete. Return to the app and try again.`})]})})}var Mp={foreign_account:`The app requests a key for a Tempo Account that you do not hold. Deny the request, and sign in to the app again as that account's owner.`,no_account:`You have no Tempo Account for this app yet, so no account can approve the key. Deny the request, create an account in the app, and try again.`,passkey:`This Tempo Account signs with a passkey that this page cannot use. Deny the request, and return to the app.`,unavailable:`Tempo ID cannot read your Tempo Account right now. Reload the page in a minute, or deny the request.`},Np;(function(e){e.app=1,e.avatar=1,e.avatarIcon=1,e.badge=1,e.challenge=1,e.challengeText=1,e.challengeTitle=1,e.column=1,e.description=1,e.header=1,e.message=1,e.note=1,e.stack=1,e.status=1,e.title=1})(Np||={});var Pp=class extends Error{name=`Page.CeremonyError`},Fp=Fe(`/authorize`)({codeSplitGroupings:[],component:()=>(0,V.jsx)(Ip,{...Fp.useLoaderData()}),loader:async e=>{let{searchStr:t}=e.location,n=new URLSearchParams(t);if(!n.get(`sig`)){let e=new URLSearchParams(n);e.has(`code_challenge_method`)||e.set(`code_challenge_method`,`S256`),e.has(`response_type`)||e.set(`response_type`,`code`),Tf({document:!0,href:`/oauth2/authorize?${e}`})}let r=hf(),i=await(async()=>{try{return await sf(r.v1.authorize.request.$get({query:{oauth_query:n.toString()}}))}catch(e){throw _f(e)===`session_required`&&Tf({href:`/login${t}`}),e}})();return`redirect`in i&&Tf({document:!0,href:i.redirect}),{request:i.request}},loaderDeps:e=>({search:e.search})});function Ip(e){let t=vf(),n=en({async mutationFn(n){let r={accept:n.accept,...e.request?.key?.account?{account:e.request.key.account}:{},oauth_query:window.location.search.slice(1),session_id:e.request?.session??``},i=await sf(t.v1.authorize.consent.$post({json:r}));if(!(`step`in i))return i;let a=await Nf({options:{publicKey:i.step.options.publicKey}}).catch(e=>{throw new Pp(`Passkey ceremony failed.`,{cause:e})}),o=await sf(t.v1.authorize.consent.$post({json:{...r,passkey:{assertion:a}}}));if(`step`in o)throw Error(`The approval requested a second passkey step.`);return o},onError:e=>{_f(e)===`session_required`&&window.location.reload()},onSuccess:e=>window.location.assign(e.redirect)}),r=n.isPending||n.isSuccess;return(0,V.jsx)(`main`,{...zp.page?{className:`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-nr-Vm7o z_tempo_2d_id-V2chls3 z_tempo_2d_id-V2chls4`}:zp.page(),children:e.request?(0,V.jsx)(Ap,{app:e.request.app,approving:r&&n.variables.accept,denying:r&&!n.variables.accept,destination:e.request.destination,email:e.request.email,error:n.error&&_f(n.error)!==`webauthn_required`?Lp(n.error):void 0,keyAuthorization:e.request.key,onApprove:()=>n.mutate({accept:!0}),onDeny:()=>n.mutate({accept:!1}),refusal:_f(n.error)===`webauthn_required`?`passkey`:void 0}):(0,V.jsx)(jp,{})})}function Lp(e){return _f(e)===`webauthn_rejected`?`Your passkey did not sign the approval. Approve again, or deny the request.`:e instanceof Pp?Rp(e).includes(`NotAllowedError`)?`The passkey request was canceled. Approve again, or deny the request.`:`Your passkey did not sign the approval. Approve again, or deny the request.`:gf(e)}function Rp(e){return e instanceof Error?[e.name,...Rp(e.cause)]:[]}var zp;(function(e){e.page=1})(zp||={});function Bp(e){let t=e.heading??`h1`,n=e.selecting!==void 0,r=new Set(e.accounts.map(e=>e.realm));return(0,V.jsxs)(`div`,{...Hp.column?{className:`z_tempo_2d_id-isY5HS0 z_tempo_2d_id-isY5HSt z_tempo_2d_id-isY5HSu z_tempo_2d_id-isY5HSs`}:Hp.column(),children:[(0,V.jsxs)(`header`,{...Hp.header?{className:`z_tempo_2d_id-isY5HS0 z_tempo_2d_id-isY5HS1 z_tempo_2d_id-isY5HS10`}:Hp.header(),children:[(0,V.jsx)(t,{...Hp.title?{className:`z-tempo_2d_id-text-wrap-balance z-tempo_2d_id-font-family-[var(--z-tempo_5f_2d_5f_id-typography-heading-24-fontFamily,Pilat,_20_-apple-system,_20_BlinkMacSystemFont,_20__22_Segoe_20_UI_22_,_20_Roboto,_20__22_Helvetica_20_Neue_22_,_20__22_Noto_20_Sans_22_,_20_Arial,_20_sans-serif,_20__22_Apple_20_Color_20_Emoji_22_,_20__22_Segoe_20_UI_20_Emoji_22_,_20__22_Segoe_20_UI_20_Symbol_22_,_20__22_Noto_20_Color_20_Emoji_22_)] z-tempo_2d_id-font-size-[var(--z-tempo_5f_2d_5f_id-typography-heading-24-fontSize,24px)] z-tempo_2d_id-font-weight-[var(--z-tempo_5f_2d_5f_id-typography-heading-24-fontWeight,600)] z-tempo_2d_id-letter-spacing-[var(--z-tempo_5f_2d_5f_id-typography-heading-24-letterSpacing,-0.36px)] z-tempo_2d_id-line-height-[var(--z-tempo_5f_2d_5f_id-typography-heading-24-lineHeight,32px)]`}:Hp.title(),children:`Choose a wallet`}),(0,V.jsxs)(`p`,{...Hp.description?{className:`z-tempo_2d_id-isY5HS-styles-description-text-0 z-tempo_2d_id-isY5HS-styles-description-text-1 z_tempo_2d_id-isY5HSv z_tempo_2d_id-isY5HSw z_tempo_2d_id-isY5HSx z-tempo_2d_id-isY5HS-styles-description-font-weight-2 z-tempo_2d_id-isY5HS-styles-description-font-weight-3 z_tempo_2d_id-isY5HSy z_tempo_2d_id-isY5HSz`}:Hp.description(),children:[(0,V.jsx)(`strong`,{children:e.app}),` uses the account you choose. You can choose again after you sign out.`]})]}),(0,V.jsx)(`ul`,{...Hp.accounts?{className:`z_tempo_2d_id-isY5HS0 z_tempo_2d_id-isY5HS1 z_tempo_2d_id-isY5HS2 z_tempo_2d_id-isY5HS3 z_tempo_2d_id-isY5HS4`}:Hp.accounts(),"aria-label":`Accounts`,children:e.accounts.map(t=>(0,V.jsx)(`li`,{children:(0,V.jsxs)(`button`,{...Hp.choice?{className:`z_tempo_2d_id-isY5HSi z-tempo_2d_id-isY5HS-styles-choice-bg-0 z-tempo_2d_id-isY5HS-styles-choice-bg-1 z_tempo_2d_id-isY5HSj z_tempo_2d_id-isY5HSk z-tempo_2d_id-isY5HS-styles-choice-cursor-2 z-tempo_2d_id-isY5HS-styles-choice-cursor-3 z_tempo_2d_id-isY5HSl z_tempo_2d_id-isY5HSm z-tempo_2d_id-isY5HS-styles-choice-outline-4 z-tempo_2d_id-isY5HS-styles-choice-outline-5 z-tempo_2d_id-isY5HS-styles-choice-outline-color-6 z-tempo_2d_id-isY5HS-styles-choice-outline-offset-7 z_tempo_2d_id-isY5HSn z_tempo_2d_id-isY5HSo z_tempo_2d_id-isY5HSp z_tempo_2d_id-isY5HSq z_tempo_2d_id-isY5HSr z_tempo_2d_id-isY5HSs`}:Hp.choice(),"aria-busy":e.selecting===t.address||void 0,disabled:n,onClick:()=>e.onChoose(t.address),type:`button`,children:[(0,V.jsx)(`span`,{...Hp.tile?{className:`z_tempo_2d_id-isY5HSi z_tempo_2d_id-isY5HS18 z_tempo_2d_id-isY5HS19 z_tempo_2d_id-isY5HSl z_tempo_2d_id-isY5HSb z_tempo_2d_id-isY5HS1a z_tempo_2d_id-isY5HS1b z_tempo_2d_id-isY5HS1c`}:Hp.tile(),"aria-hidden":!0,children:t.owner===`webAuthn`?(0,V.jsx)(Xc,{...Hp.icon?{className:`z-tempo_2d_id-h-[var(--z-tempo_5f_2d_5f_id-spacing-5,var(--z-default-spacing-5,1.25rem))] z-tempo_2d_id-w-[var(--z-tempo_5f_2d_5f_id-spacing-5,var(--z-default-spacing-5,1.25rem))]`}:Hp.icon()}):(0,V.jsx)(qc,{...Hp.icon?{className:`z-tempo_2d_id-h-[var(--z-tempo_5f_2d_5f_id-spacing-5,var(--z-default-spacing-5,1.25rem))] z-tempo_2d_id-w-[var(--z-tempo_5f_2d_5f_id-spacing-5,var(--z-default-spacing-5,1.25rem))]`}:Hp.icon()})}),(0,V.jsxs)(`span`,{...Hp.text?{className:`z_tempo_2d_id-isY5HS0 z_tempo_2d_id-isY5HS16 z_tempo_2d_id-isY5HS17`}:Hp.text(),children:[(0,V.jsxs)(`span`,{...Hp.kind?{className:`z_tempo_2d_id-isY5HSd z_tempo_2d_id-isY5HSe z_tempo_2d_id-isY5HSf z_tempo_2d_id-isY5HSg z_tempo_2d_id-isY5HSh`}:Hp.kind(),children:[r.size>1&&t.realm?`${t.realm} · `:null,t.owner===`webAuthn`?`Passkey`:`Cloud`]}),(0,V.jsx)(`span`,{...Hp.address?{className:`z_tempo_2d_id-isY5HS5 z_tempo_2d_id-isY5HS6 z_tempo_2d_id-isY5HS7 z_tempo_2d_id-isY5HS8 z_tempo_2d_id-isY5HS9 z_tempo_2d_id-isY5HSa`}:Hp.address(),children:`${t.address.slice(0,6)}…${t.address.slice(-4)}`})]}),(0,V.jsx)(`span`,{...Hp.balance?{className:`z_tempo_2d_id-isY5HSb z_tempo_2d_id-isY5HSc z_tempo_2d_id-isY5HSd z_tempo_2d_id-isY5HSe z_tempo_2d_id-isY5HSf z_tempo_2d_id-isY5HSg z_tempo_2d_id-isY5HSh`}:Hp.balance(),"data-testid":`balance`,children:Vp(t.balance)}),e.selecting===t.address?(0,V.jsx)(gl,{...Hp.spinner?{className:`z-tempo_2d_id-text-[var(--z-tempo_5f_2d_5f_id-color-gray-700,var(--z-default-color-gray-700,#8f8f8f))]`}:Hp.spinner(),"aria-hidden":!0,size:`large`}):(0,V.jsx)(Wc,{...Hp.chevron?{className:`z-tempo_2d_id-text-[var(--z-tempo_5f_2d_5f_id-color-gray-700,var(--z-default-color-gray-700,#8f8f8f))] z-tempo_2d_id-h-[var(--z-tempo_5f_2d_5f_id-spacing-5,var(--z-default-spacing-5,1.25rem))] z-tempo_2d_id-w-[var(--z-tempo_5f_2d_5f_id-spacing-5,var(--z-default-spacing-5,1.25rem))]`}:Hp.chevron()})]})},t.address))}),e.error?(0,V.jsxs)(pu,{intent:`negative`,children:[(0,V.jsx)(pu.Icon,{}),(0,V.jsx)(pu.Content,{children:e.error})]}):null,(0,V.jsx)(`p`,{...Hp.status?{className:`z_tempo_2d_id-isY5HS5 z_tempo_2d_id-isY5HS10 z_tempo_2d_id-isY5HS11 z_tempo_2d_id-isY5HS12 z_tempo_2d_id-isY5HS13 z_tempo_2d_id-isY5HS14 z_tempo_2d_id-isY5HS15`}:Hp.status(),"aria-live":`polite`,role:`status`,children:n?`Continuing to ${e.app}.`:void 0})]})}function Vp(e){return e?new Intl.NumberFormat(`en-US`,{currency:e.currency,style:`currency`}).format(e.amount):`Unavailable`}var Hp;(function(e){e.accounts=1,e.address=1,e.balance=1,e.chevron=1,e.choice=1,e.column=1,e.description=1,e.header=1,e.icon=1,e.kind=1,e.spinner=1,e.status=1,e.text=1,e.tile=1,e.title=1})(Hp||={});var Up=class extends Error{name=`Page.CeremonyError`},Wp=Fe(`/choose-account`)({codeSplitGroupings:[],component:()=>(0,V.jsx)(Gp,{...Wp.useLoaderData()}),loader:async e=>{let{searchStr:t}=e.location,n=new URLSearchParams(t);n.get(`sig`)||Tf({document:!0,href:`/oauth2/authorize${t}`});let r=hf();try{return{error:null,request:(await sf(r.v1.authorize.accounts.$get({query:{oauth_query:n.toString()}}))).request}}catch(e){return _f(e)===`session_required`&&Tf({href:`/login${t}`}),{error:gf(e),request:null}}},loaderDeps:e=>({search:e.search})});function Gp(e){let t=vf(),n=en({async mutationFn(e){let n={account:e.account,oauth_query:window.location.search.slice(1)},r=await sf(t.v1.authorize.account.$post({json:n}));if(!(`step`in r))return r;let i=await Nf({options:{publicKey:r.step.options.publicKey}}).catch(e=>{throw new Up(`Passkey ceremony failed.`,{cause:e})}),a=await sf(t.v1.authorize.account.$post({json:{...n,passkey:{assertion:i}}}));if(`step`in a)throw Error(`The selection requested a second passkey step.`);return a},onSuccess:e=>window.location.assign(e.redirect)}),r=n.isPending||n.isSuccess?n.variables.account:void 0;return(0,V.jsx)(`main`,{...Jp.page?{className:`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-nr-Vm7o z_tempo_2d_id-WfmSOe3 z_tempo_2d_id-WfmSOe4`}:Jp.page(),children:e.error?(0,V.jsxs)(pu,{intent:`negative`,children:[(0,V.jsx)(pu.Icon,{}),(0,V.jsx)(pu.Content,{children:e.error})]}):e.request?(0,V.jsx)(Bp,{accounts:e.request.accounts,app:e.request.app,error:n.error?Kp(n.error):void 0,onChoose:e=>n.mutate({account:e}),selecting:r}):(0,V.jsx)(jp,{})})}function Kp(e){return e instanceof Up?qp(e).includes(`NotAllowedError`)?`The passkey request was canceled. Choose the account again to continue.`:`Your passkey did not sign the request. Choose the account again to continue.`:gf(e)}function qp(e){return e instanceof Error?[e.name,...qp(e.cause)]:[]}var Jp;(function(e){e.page=1})(Jp||={});var Yp={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Xp={...Yp,position:`fixed`,margin:0,top:0,left:0},Zp={...Yp,position:`absolute`},Qp={};function $p(e,t){let n=B.useRef(Qp);return n.current===Qp&&(n.current=e(t)),n}function em(e,t,n,r){let i=$p(nm).current;return rm(i,e,t,n,r)&&am(i,[e,t,n,r]),i.callback}function tm(e){let t=$p(nm).current;return im(t,e)&&am(t,e),t.callback}function nm(){return{callback:null,cleanup:null,refs:[]}}function rm(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function im(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function am(e,t){e.refs=t,e.callback=t.every(e=>e==null)?null:n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null}}}}}}function om(e){let t=B.useRef(!0);t.current&&(t.current=!1,e())}function sm(e){let[t,n]=B.useState({current:e,previous:null});return Object.is(e,t.current)||n({current:e,previous:t.current}),t.previous}function cm(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}function lm({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=B.useRef(e!==void 0),[a,o]=B.useState(()=>t);return[i&&e!==void 0?e:a,B.useCallback(e=>{i||o(e)},[])]}var q=typeof document<`u`?B.useLayoutEffect:()=>{},um={...B},dm=um.useInsertionEffect,fm=dm&&dm!==um.useLayoutEffect?dm:e=>e();function J(e){let t=$p(pm).current;return t.next=e,fm(t.effect),t.trampoline}function pm(){let e={next:void 0,callback:mm,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function mm(){}function hm(e){let t=$p(gm,e).current;return t.next=e,q(t.effect),t}function gm(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function _m(e,t){return function(n,...r){let i=new URL(e);return i.searchParams.set(`code`,n.toString()),r.forEach(e=>i.searchParams.append(`args[]`,e)),`${t} error #${n}; visit ${i} for the full message.`}}var vm=_m(`https://base-ui.com/production-error`,`Base UI`),ym=19;function bm(e){return ym>=e}var xm=[],Sm=void 0;function Cm(){return Sm}function wm(e){xm.push(e)}var Tm=bm(19)?Om:km;function Em(e,t,n,r,i){return Tm(e,t,n,r,i)}function Dm(e,t,n,r,i){let a=B.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,Rs.useSyncExternalStore)(e.subscribe,a,a)}wm({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,Rs.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Om(e,t,n,r,i){let a=Cm();if(!a)return Dm(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function km(e,t,n,r,i){return(0,zs.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Am=class{static create(e){return new this(e)}constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return Em(this,e,t,n,r)}};function jm(){}var Mm=Object.freeze([]),Nm=Object.freeze({}),Pm=class extends Am{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){B.useDebugValue(e);let n=this;q(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;q(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;q(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){B.useDebugValue(e);let n=this,r=t!==void 0;q(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return B.useDebugValue(e),Em(this,this.selectors[e],t,n,r)}useContextCallback(e,t){B.useDebugValue(e);let n=J(t??jm);this.context[e]=n}useStateSetter(e){let t=B.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}};function Fm(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}function Im(e){return e?.ownerDocument||document}function Lm(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function Rm(){let[,e]=B.useState({});return B.useCallback(()=>{e({})},[])}function zm(e){B.useEffect(e,Mm)}var Bm=null;globalThis.requestAnimationFrame;var Vm=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||this.callbacks[t]!==null&&(this.callbacks[t]=null,--this.callbacksCount)}},Hm=class e{static create(){return new e}static request(e){return Vm.request(e)}static cancel(e){return Vm.cancel(e)}currentId=Bm;request(e){this.cancel(),this.currentId=Vm.request(()=>{this.currentId=Bm,e()})}cancel=()=>{this.currentId!==Bm&&(Vm.cancel(this.currentId),this.currentId=Bm)};disposeEffect=()=>this.cancel};function Um(){let e=$p(Hm.create).current;return zm(e.disposeEffect),e}var Wm=0,Gm=class e{static create(){return new e}currentId=Wm;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Wm,t()},e)}isStarted(){return this.currentId!==Wm}clear=()=>{this.currentId!==Wm&&(clearTimeout(this.currentId),this.currentId=Wm)};disposeEffect=()=>this.clear};function Km(){let e=$p(Gm.create).current;return zm(e.disposeEffect),e}function qm(){return typeof navigator>`u`?{userAgent:``,platform:``,maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:Jm,platform:Ym,maxTouchPoints:Xm}=qm(),Zm=Jm.toLowerCase(),Qm=Ym.toLowerCase(),$m=/^i(os$|p)/.test(Qm)||Qm===`macintel`&&Xm>1,eh=`android`,th=Qm===eh||Zm.includes(eh),nh=!$m&&Qm.startsWith(`mac`);Qm.startsWith(`win`),!th&&/^(linux|chrome os)/.test(Qm);var rh=nh||$m,ih=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!ih&&Zm.includes(`firefox`),!ih&&Zm.includes(`chrom`);var ah=rh,oh=/jsdom|happydom/.test(Zm);function sh(e){e.preventDefault(),e.stopPropagation()}function ch(e){return`nativeEvent`in e}function lh(e){return e.pointerType===``&&e.isTrusted?!0:th&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function uh(e){return oh?!1:!th&&e.width===0&&e.height===0||e.type===`pointerdown`&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`&&(th||e.buttons===0)||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function dh(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function fh(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}function ph(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function mh(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&Yr(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function hh(e,t){let n=e;for(;n;){if(W(n)&&n.matches(t))return n;n=n.assignedSlot??n.parentNode??(Yr(n)?n.host:null)}return null}function gh(e){return`composedPath`in e?e.composedPath()[0]??e.target:e.target}var _h=`data-base-ui-focusable`,vh=`ArrowLeft`,yh=`ArrowRight`,bh=`ArrowUp`,xh=`ArrowDown`,Sh=`data-starting-style`,Ch=`data-ending-style`,wh={[Sh]:``},Th={[Ch]:``},Eh={transitionStatus(e){return e===`starting`?wh:e===`ending`?Th:null}},Dh=`data-open`,Oh=`data-closed`,kh=`data-anchor-hidden`,Ah=`data-popup-open`,jh=`data-pressed`,Mh={[Ah]:``},Nh={[Ah]:``,[jh]:``},Ph={[Dh]:``},Fh={[Oh]:``},Ih={[kh]:``},Lh={open(e){return e?Mh:null}},Rh={open(e){return e?Nh:null}},zh={open(e){return e?Ph:Fh},anchorHidden(e){return e?Ih:null}};({...zh,...Eh});function Bh(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Vh(e){return e.matches(`html,body`)}function Hh(e){return Jr(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Uh(e){return e?e.getAttribute(`role`)===`combobox`&&Hh(e):!1}function Wh(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Gh(e,t,n,r){let i=!1,a=!1,o=r??Nm;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}var Kh=`none`,qh=`trigger-press`,Jh=`outside-press`,Yh=`item-press`,Xh=`focus-out`,Zh=`escape-key`,Qh=`list-navigation`,$h=`cancel-open`,eg=`imperative-action`,tg=`window-resize`,ng=B.forwardRef(function(e,t){let[n,r]=B.useState();q(()=>{ah&&ih&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,V.jsx)(`span`,{...e,ref:t,style:Xp,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})});function rg(e,t){return t<0||t>=e.length}function ig(e,t){return sg(e.current,{disabledIndices:t})}function ag(e,t){return sg(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function og(e,t,n){let{decrement:r,loopFocus:i,allowEscape:a,disabledIndices:o,minIndex:s,maxIndex:c}=n,l=()=>sg(e,{startingIndex:t,decrement:r,disabledIndices:o}),u,d=!1;if(!i)u=r?Math.max(s,l()):Math.min(c,l());else if(r?t<=s:t>=c){let n=r?-1:e.length;a&&t!==n?u=-1:(u=r?c:s,d=!0)}else u=l();return{index:rg(e,u)?-1:u,wrapped:d}}function sg(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&cg(e,a,r));return a}function cg(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!ug(r)||r.matches(`:disabled`)?!0:!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function lg(e){return e.visibility===`hidden`||e.visibility===`collapse`}function ug(e,t=e?si(e):null){return!e||!e.isConnected||!t||lg(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var dg=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function fg(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return Yr(n)?n.host:null}function pg(e){for(let t of Array.from(e.children))if(Wr(t)===`summary`)return t;return null}function mg(e,t){let n=pg(t);return!!n&&(e===n||mh(n,e))}function hg(e){let t=e?Wr(e):``;return e!=null&&e.matches(dg)&&(t!==`summary`||e.parentElement!=null&&Wr(e.parentElement)===`details`&&pg(e.parentElement)===e)&&(t!==`details`||pg(e)==null)&&(t!==`input`||e.type!==`hidden`)}function gg(e){if(!hg(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=fg(t)){let n=t!==e,r=Wr(t)===`slot`;if(t.hasAttribute(`inert`)||n&&Wr(t)===`details`&&!t.open&&!mg(e,t)||t.hasAttribute(`hidden`)||!r&&!_g(t,n))return!1}return!0}function _g(e,t){let n=si(e);return t?n.display!==`none`:ug(e,n)}function vg(e){let t=e.tabIndex;if(t<0){let t=Wr(e);if(t===`details`||t===`audio`||t===`video`||Jr(e)&&e.isContentEditable)return 0}return t}function yg(e){if(Wr(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function bg(e,t){let n=yg(e);if(!n)return!0;let r=t.find(e=>{let t=yg(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=yg(e);return t?.name===n.name&&t.form===n.form})===n}function xg(e){if(Jr(e)&&Wr(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return Jr(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Sg(e,t){xg(e).forEach(e=>{hg(e)&&t.push(e),Sg(e,t)})}function Cg(e,t,n){xg(e).forEach(e=>{Jr(e)&&e.matches(t)&&n.push(e),Cg(e,t,n)})}function wg(e){return gg(e)&&vg(e)>=0}function Tg(e){let t=[];return Sg(e,t),t.filter(gg)}function Eg(e){let t=Tg(e);return t.filter(e=>vg(e)>=0&&bg(e,t))}function Dg(e,t){let n=Eg(e),r=n.length;if(r===0)return;let i=ph(Im(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function Og(e){return Dg(Im(e).body,1)||e}function kg(e){return Dg(Im(e).body,-1)||e}function Ag(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!mh(n,r)}function jg(e){Eg(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function Mg(e){let t=[];Cg(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function Ng(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...Ng(e,t.id,n)])}function Pg(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function Fg(e){return`data-base-ui-${e}`}var Ig=0;function Lg(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(Ig);function a(){(!i||i())&&e?.focus({preventScroll:n})}if(r)return a(),jm;let o=requestAnimationFrame(a);return Ig=o,()=>{Ig===o&&(cancelAnimationFrame(o),Ig=0)}}var Rg=`data-base-ui-inert`,zg=new WeakMap,Bg=new WeakSet,Vg=new WeakMap,Hg=0;function Ug(e){return e?Yr(e)?e.host:Ug(e.parentNode):null}var Wg=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=Ug(t);return e.contains(n)?n:null}).filter(e=>e!=null),Gg=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},Kg=(e,t,n)=>{let r=[],i=e=>{e&&!n.has(e)&&Array.from(e.children).forEach(e=>{Wr(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function qg(e,t,n,{mark:r=!0}){let i=Wg(t,e),a=r?Kg(t,Gg(i),new Set(i)):[],o=[],s=[];if(n){let e=Wg(t,Array.from(t.querySelectorAll(`[aria-live]`))),n=i.concat(e);Kg(t,Gg(n),new Set(n)).forEach(e=>{let t=e.getAttribute(`aria-hidden`),n=t!==null&&t!==`false`,r=(zg.get(e)||0)+1;zg.set(e,r),o.push(e),r===1&&n&&Bg.add(e),n||e.setAttribute(`aria-hidden`,`true`)})}return r&&a.forEach(e=>{let t=(Vg.get(e)||0)+1;Vg.set(e,t),s.push(e),t===1&&e.setAttribute(Rg,``)}),Hg+=1,()=>{o.forEach(e=>{let t=(zg.get(e)||0)-1;zg.set(e,t),t||(Bg.has(e)||e.removeAttribute(`aria-hidden`),Bg.delete(e))}),r&&s.forEach(e=>{let t=(Vg.get(e)||0)-1;Vg.set(e,t),t||e.removeAttribute(Rg)}),--Hg,Hg||(zg=new WeakMap,Bg=new WeakSet,Vg=new WeakMap)}}function Jg(e,t={}){let{ariaHidden:n=!1,mark:r=!0}=t,i=Im(e[0]).body;return qg(e,i,n,{mark:r})}var Yg=0;function Xg(e,t=`mui`){let n=B.useRef(void 0),r=Rm(),i=e??n.current;return B.useEffect(()=>{n.current??(Yg+=1,n.current=`${t}-${Yg}`,e??r())},[e,t,r]),i}var Zg=um.useId;function Qg(e,t){if(Zg!==void 0){let n=Zg();return e??(t?`${t}-${n}`:n)}return Xg(e,t)}function $g(e){if(!B.isValidElement(e))return null;let t=e,n=t.props;return(bm(19)?n?.ref:t.ref)??null}function e_(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function t_(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e)}else i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function n_(e,t){return typeof e==`function`?e(t):e}function r_(e,t){return typeof e==`function`?e(t):e}var i_={};function a_(e,t,n,r,i){if(!n&&!r&&!i&&!e)return s_(t);let a=s_(e);return t&&(a=c_(a,t)),n&&(a=c_(a,n)),r&&(a=c_(a,r)),i&&(a=c_(a,i)),a}function o_(e){if(e.length===0)return i_;if(e.length===1)return s_(e[0]);let t=s_(e[0]);for(let n=1;n<e.length;n+=1)t=c_(t,e[n]);return t}function s_(e){return f_(e)?{...e(i_)}:l_(e)}function c_(e,t){return f_(t)?t(e):u_(e,t)}function l_(e){let t={...e};for(let e in t){let n=t[e];d_(e,n)&&(t[e]=m_(n))}return t}function u_(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=e_(e.style,r);break;case`className`:e[n]=g_(e.className,r);break;default:e[n]=d_(n,r)?p_(e[n],r):r}}return e}function d_(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function f_(e){return typeof e==`function`}function p_(e,t){return t?e?(...n)=>{let r=n[0];if(__(r)){let i=r;h_(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:m_(t):e}function m_(e){return e&&((...t)=>{let n=t[0];return __(n)&&h_(n),e(...t)})}function h_(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function g_(e,t){return t?e?t+` `+e:t:e}function __(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function v_(e,t,n={}){let r=t.render;n.enabled!==!1&&(r=S_(r));let i=y_(t,n,r);if(n.enabled===!1)return null;let a=n.state??Nm;return C_(e,r,i,a)}function y_(e,t,n){let{className:r,style:i}=e,{state:a=Nm,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?n_(r,a):void 0,d=l?r_(i,a):void 0,f=l?t_(a,c):Nm,p=l&&s?b_(s):void 0,m=l?e_(f,p)??{}:Nm;return typeof document<`u`&&(l?m.ref=Array.isArray(o)?tm([m.ref,$g(n),...o]):em(m.ref,$g(n),o):em(null,null)),l?(u!==void 0&&(m.className=g_(m.className,u)),d!==void 0&&(m.style=e_(m.style,d)),m):Nm}function b_(e){return Array.isArray(e)?o_(e):a_(void 0,e)}var x_=Symbol.for(`react.lazy`);function S_(e){if(e?.$$typeof!==x_)return e;let t=B.Children.toArray(e)[0];return B.isValidElement(t)?t:e}function C_(e,t,n,r){if(t){if(typeof t==`function`)return t(n,r);let e=a_(n,t.props);return e.ref=n.ref,B.cloneElement(t,e)}return w_(e,n)}function w_(e,t){return e===`button`?(0,B.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,B.createElement)(`img`,{alt:``,...t,key:t.key}):B.createElement(e,t)}var T_={style:{transition:`none`}},E_={fallbackAxisSide:`none`},D_={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},O_=B.createContext(null),k_=()=>B.useContext(O_),A_=Fg(`portal`);function j_(e={}){let{ref:t,container:n,componentProps:r=Nm,elementProps:i}=e,a=Qg(),o=k_()?.portalNode,[s,c]=B.useState(null),[l,u]=B.useState(null),d=J(e=>{e!==null&&u(e)}),f=B.useRef(null);q(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}let e=(n&&(qr(n)?n:n.current))??o??document.body;e==null?f.current&&(f.current=null,u(null),c(null)):f.current!==e&&(f.current=e,u(null),c(e))},[n,o]);let p=v_(`div`,r,{ref:[t,d],props:[{id:a,[A_]:``},i]}),m=s&&p?Ti.createPortal(p,s):null;return{node:l,nodeId:B.isValidElement(p)?p.props.id:void 0,subtree:m}}var M_=B.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,portalOwnerRole:s,...c}=e,{node:l,nodeId:u,subtree:d}=j_({container:o,ref:t,componentProps:e,elementProps:c}),f=B.useRef(null),p=B.useRef(null),m=B.useRef(null),h=B.useRef(null),[g,_]=B.useState(null),v=B.useRef(!1),y=g?.modal,b=g?.open,x=!!g&&!g.modal&&g.open&&!!l;B.useEffect(()=>{if(!l||y)return;function e(e){l&&e.relatedTarget&&Ag(e)&&(e.type===`focusin`?v.current&&=(Mg(l),!1):(jg(l),v.current=!0))}return Fm(Lm(l,`focusin`,e,!0),Lm(l,`focusout`,e,!0))},[l,y]),q(()=>{l&&b===!0&&v.current&&(Mg(l),v.current=!1)},[b,l]);let S=B.useMemo(()=>({beforeOutsideRef:f,afterOutsideRef:p,beforeInsideRef:m,afterInsideRef:h,portalNode:l,setFocusManagerState:_}),[l]);return(0,V.jsxs)(B.Fragment,{children:[d,(0,V.jsxs)(O_.Provider,{value:S,children:[x&&l&&(0,V.jsx)(ng,{"data-type":`outside`,ref:f,onFocus:e=>{Ag(e,l)?m.current?.focus():kg(g?g.domReference:null)?.focus()}}),x&&l&&(0,V.jsx)(`span`,{role:s,"aria-owns":u,style:D_}),l&&Ti.createPortal(a,l),x&&l&&(0,V.jsx)(ng,{"data-type":`outside`,ref:p,onFocus:e=>{Ag(e,l)?h.current?.focus():(Og(g?g.domReference:null)?.focus(),g?.closeOnFocusOut&&g?.onOpenChange(!1,Gh(`focus-out`,e.nativeEvent)))}})]})]})});function N_(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var P_=B.createContext(null),F_=B.createContext(null),I_=()=>B.useContext(P_)?.id||null,L_=e=>{let t=B.useContext(F_);return e??t};function R_(e){return e==null?e:`current`in e?e.current:e}function z_(e,t){let n=Gr(gh(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||(lh(e)?`keyboard`:t||`mouse`):`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var B_=20,V_=[];function H_(){V_=V_.filter(e=>e.deref()?.isConnected)}function U_(e){H_(),e&&Wr(e)!==`body`&&(V_.push(new WeakRef(e)),V_.length>B_&&(V_=V_.slice(-20)))}function W_(){return H_(),V_[V_.length-1]?.deref()}function G_(e){return e?wg(e)?e:Eg(e)[0]||e:null}function K_(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=Tg(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return wg(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function q_(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,explicitReturnFocus:o,restoreFocus:s=!1,modal:c=!0,closeOnFocusOut:l=!0,openInteractionType:u=``,nextFocusableElement:d,previousFocusableElement:f,beforeContentFocusGuardRef:p,externalTree:m,getInsideElements:h}=e,g=t.useState(`open`),_=t.useState(`domReferenceElement`),v=t.useState(`floatingElement`),{events:y,dataRef:b}=t.context,x=J(()=>b.current.floatingContext?.nodeId),S=i===!1,C=Uh(_)&&S,w=hm(i),T=hm(a),E=hm(o),D=hm(u),O=hm(g),k=L_(m),A=k_(),j=B.useRef(!1),M=B.useRef(!1),N=B.useRef(!1),P=B.useRef(null),F=B.useRef(``),I=B.useRef(``),ee=B.useRef(null),L=B.useRef(null),te=em(ee,p,A?.beforeInsideRef),R=em(L,A?.afterInsideRef),ne=Km(),re=Km(),ie=Um(),ae=A!=null,z=Wh(v),oe=J((e=z)=>e?Eg(e):[]),se=J(()=>h?.().filter(e=>e!=null)??[]);B.useEffect(()=>{if(r||!c)return;function e(e){e.key===`Tab`&&mh(z,ph(Im(z)))&&oe().length===0&&!C&&sh(e)}return Lm(Im(z),`keydown`,e)},[r,z,c,C,oe]),B.useEffect(()=>{if(r||!g)return;let e=Im(z);function t(){N.current=!1}function n(e){let t=gh(e),n=se(),r=mh(v,t)||mh(_,t)||mh(A?.portalNode,t)||n.some(e=>e===t||mh(e,t));N.current=!r,I.current=e.pointerType||`keyboard`,hh(t,`[data-base-ui-click-trigger]`)&&(M.current=!0,re.start(0,()=>{M.current=!1}))}function i(){I.current=`keyboard`}return Fm(Lm(e,`pointerdown`,n,!0),Lm(e,`pointerup`,t,!0),Lm(e,`pointercancel`,t,!0),Lm(e,`keydown`,i,!0),t)},[r,v,_,z,g,A,re,se]),B.useEffect(()=>{if(r||!l)return;let e=Im(z);function n(){M.current=!0,re.start(0,()=>{M.current=!1})}function i(e){let t=gh(e);wg(t)&&(P.current=t)}function a(n){let r=n.relatedTarget,i=n.currentTarget,a=gh(n);c&&r==null&&a!=null&&mh(v,a)&&U_(a),queueMicrotask(()=>{let o=x(),l=t.context.triggerElements,u=se(),p=r?.hasAttribute(Fg(`focus-guard`))&&[ee.current,L.current,A?.beforeInsideRef.current,A?.afterInsideRef.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,R_(f),R_(d)].includes(r),m=!(mh(_,r)||mh(v,r)||mh(r,v)||mh(A?.portalNode,r)||u.some(e=>e===r||mh(e,r))||l.hasMatchingElement(e=>mh(e,r))||p||k&&(Ng(k.nodesRef.current,o).find(e=>mh(e.context?.elements.floating,r)||mh(e.context?.elements.domReference,r))||Pg(k.nodesRef.current,o).find(e=>[e.context?.elements.floating,Wh(e.context?.elements.floating)].includes(r)||e.context?.elements.domReference===r)));if(i===_&&z&&K_(z),s&&i!==_&&!ug(a)&&ph(e)===e.body){if(Jr(z)&&(z.focus(),s===`popup`)){ie.request(()=>{z.focus()});return}let e=oe(),t=P.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||z;Jr(n)&&n.focus()}b.current.insideReactTree?b.current.insideReactTree=!1:(C||!c)&&r&&m&&!M.current&&(C||r!==W_())&&(j.current=!0,t.setOpen(!1,Gh(Xh,n)))})}function o(){N.current||(b.current.insideReactTree=!0,ne.start(0,()=>{b.current.insideReactTree=!1}))}let u=Jr(_)?_:null;if(v||u)return Fm(u&&Lm(u,`focusout`,a),u&&Lm(u,`pointerdown`,n),v&&Lm(v,`focusin`,i),v&&Lm(v,`focusout`,a),v&&A&&Lm(v,`focusout`,o,!0))},[r,_,v,z,c,k,A,t,l,s,oe,C,x,b,ne,re,ie,d,f,se]),B.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(A?.portalNode?.querySelectorAll(`[${Fg(`portal`)}]`)||[]),t=(k?Pg(k.nodesRef.current,x()):[]).find(e=>Uh(e.context?.elements.domReference||null))?.context?.elements.domReference,n=Jg([v,...e,ee.current,L.current,A?.beforeOutsideRef.current,A?.afterOutsideRef.current,...se(),t,R_(f),R_(d),C?_:null].filter(e=>e!=null),{ariaHidden:c||C,mark:!1}),i=Jg([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,c,A,C,k,x,d,f,se]),q(()=>{if(!g||r||!Jr(z))return;F.current=``,I.current=``;let e=Im(z),t=ph(e);queueMicrotask(()=>{let n=w.current,r=typeof n==`function`?n(D.current||``):n;if(r===void 0||r===!1||mh(z,t))return;let i=null,a=()=>(i??=oe(z),i[0]||z),o;o=r===!0||r===null?a():R_(r),o||=a();let s=mh(z,ph(e)),c=b.current.openEvent,l=c?.type===`mousedown`&&lh(c);Lg(o,{sync:l,preventScroll:o===z,shouldFocus(){if(!O.current)return!1;if(s)return!0;let t=ph(e);return!(t!==o&&mh(z,t))}})})},[r,g,z,oe,w,D,O,b]);let ce=B.useRef(null);q(()=>{if(r||!z){ce.current=null;return}ce.current&&=(ce.current.cancelled=!0,null);let e=Im(z),t=ph(e),n=D.current==null;U_(t);function i(e){if(e.open||(F.current=z_(e.nativeEvent,I.current)),(e.reason===`focus-out`&&e.triggerElement?.hasAttribute(Fg(`focus-guard`))||e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`)&&(j.current=!0),e.reason===`outside-press`){if(e.nested)j.current=!1;else if(lh(e.nativeEvent)||uh(e.nativeEvent))j.current=!1;else{let e=!1;Im(z).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?j.current=!1:j.current=!0}}}y.on(`openchange`,i);function a(e){let r=T.current,i=typeof r==`function`?r(e):r;if(i===void 0||i===!1)return null;i===null&&(i=!0);let a=_?.isConnected?_:null,o=t?.isConnected&&Wr(t)!==`body`?t:null,s=n?o||a:a||o;return s||=W_()||null,typeof i==`boolean`?s:R_(i)||s||null}return()=>{y.off(`openchange`,i);let t=ph(e),n=se(),r=mh(v,t)||n.some(e=>e===t||mh(e,t))||k&&Ng(k.nodesRef.current,x(),!1).some(e=>mh(e.context?.elements.floating,t)),o=T.current,s=F.current,c=a(s),l={cancelled:!1};ce.current=l,queueMicrotask(()=>{ce.current===l&&(ce.current=null);let n=G_(c),i=E.current??typeof o!=`boolean`;if(!l.cancelled&&o&&!j.current&&Jr(n)&&(i||n===t||t===e.body||r)){let e={preventScroll:!0};s===`keyboard`&&(e.focusVisible=!0),n.focus(e)}j.current=!1})}},[r,v,z,T,E,D,y,k,_,x,se]),q(()=>{if(!ih||g||!v)return;let e=ph(Im(v));Jr(e)&&Hh(e)&&mh(v,e)&&e.blur()},[g,v]),q(()=>{if(!r&&A)return A.setFocusManagerState({modal:c,closeOnFocusOut:l,open:g,onOpenChange:t.setOpen,domReference:_}),()=>{A.setFocusManagerState(null)}},[r,A,c,g,t,l,_]),q(()=>{if(!r&&z)return K_(z),()=>{queueMicrotask(H_)}},[r,z]);let le=!r&&(!c||!C)&&(ae||c);return(0,V.jsxs)(B.Fragment,{children:[le&&(0,V.jsx)(ng,{"data-type":`inside`,ref:te,onFocus:e=>{if(c){let e=oe();Lg(e[e.length-1])}else A?.portalNode&&(j.current=!1,Ag(e,A.portalNode)?Og(_)?.focus():R_(f??A.beforeOutsideRef)?.focus())}}),n,le&&(0,V.jsx)(ng,{"data-type":`inside`,ref:R,onFocus:e=>{c?Lg(oe()[0]):A?.portalNode&&(l&&(j.current=!0),Ag(e,A.portalNode)?kg(_)?.focus():R_(d??A.afterOutsideRef)?.focus())}})]})}function J_(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:o=!0,touchOpenDelay:s=0,reason:c=qh}=t,l=e.context.dataRef,u=B.useRef(void 0),d=Um(),f=Km(),p=B.useMemo(()=>{function t(t,n,r,i){let a=Gh(c,n,r);t&&i===`touch`&&s>0?f.start(s,()=>{e.setOpen(!0,a)}):e.setOpen(t,a)}function n(t,n,r){let a=l.current.openEvent,s=e.select(`domReferenceElement`)!==n;return t&&s||!t||!i?!0:a&&(typeof o==`function`?o():o)?!r(a.type):!1}return{onPointerDown(e){u.current=dh(e.pointerType,!0)&&uh(e.nativeEvent)?`virtual`:e.pointerType},onMouseDown(i){let o=u.current,s=i.nativeEvent,c=e.select(`open`);if(i.button!==0||r===`click`||dh(o,!0)&&a)return;let l=n(c,i.currentTarget,e=>e===`click`||e===`mousedown`),f=gh(s),p=Hh(f);if(p||o===`virtual`){t(l,s,p?f:i.currentTarget,o);return}let m=i.currentTarget;d.request(()=>{t(l,s,m,o)})},onClick(i){if(r===`mousedown-only`)return;let o=u.current;r===`mousedown`&&o?u.current=void 0:dh(o,!0)&&a||t(n(e.select(`open`),i.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),i.nativeEvent,i.currentTarget,o)},onKeyDown(){u.current=void 0}}},[l,r,a,c,e,o,i,d,f,s]);return B.useMemo(()=>n?{reference:p}:Nm,[n,p])}function Y_(){return!1}function X_(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Z_(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=Y_,bubbles:s,externalTree:c}=t,l=e.useState(`open`),u=e.useState(`floatingElement`),{dataRef:d,events:f}=e.context,p=L_(c),m=J(typeof i==`function`?i:()=>!1),h=typeof i==`function`?m:i,g=h!==!1,_=J(()=>a),{escapeKey:v,outsidePress:y}=X_(s),b=B.useRef(!1),x=B.useRef(!1),S=B.useRef(!1),C=B.useRef(!1),w=B.useRef(!1),T=B.useRef(``),E=B.useRef(null),D=Km(),O=Km(),k=Km(),A=J(()=>{O.clear(),d.current.insideReactTree=!1}),j=J(e=>{let t=d.current.floatingContext?.nodeId;return(p?Ng(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),M=J(t=>Bh(t,e.select(`floatingElement`))||Bh(t,e.select(`domReferenceElement`))),N=J(t=>{o()&&e.setOpen(!1,Gh(qh,t.nativeEvent))}),P=J(t=>{if(!l||!n||!r||t.key!==`Escape`)return;let i=ch(t)?t.nativeEvent:t;if(w.current||i.isComposing||!v&&j(`__escapeKeyBubbles`))return;let a=Gh(Zh,i);e.setOpen(!1,a),a.isCanceled||t.preventDefault(),!v&&!a.isPropagationAllowed&&t.stopPropagation()}),F=J(()=>{d.current.insideReactTree=!0,O.start(0,A)}),I=J(t=>{if(!l||!n||t.button!==0)return;let r=gh(t.nativeEvent);mh(e.select(`floatingElement`),r)&&(b.current||(b.current=!0,x.current=!1))}),ee=J(e=>{l&&n&&(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&b.current&&(x.current=!0)});B.useEffect(()=>{function e(e){e.open||(C.current=!1)}return f.on(`openchange`,e),()=>{f.off(`openchange`,e)}},[f]),B.useEffect(()=>A,[A]),B.useEffect(()=>{if(!l||!n)return l||(C.current=!1,w.current=!1,T.current=``,E.current=null),A;d.current.__escapeKeyBubbles=v,d.current.__outsidePressBubbles=y;let t=new Gm,i=Im(u);function a(){k.clear(),w.current=!0}function o(){w.current=!0,k.start(ih?5:0,()=>{w.current=!1})}function s(){S.current=!0,t.start(0,()=>{S.current=!1})}function c(){b.current=!1,x.current=!1}function f(){let e=T.current,t=e===`pen`||!e?`mouse`:e,n=_(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function m(e){let t=f();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function O(e){let t=d.current.floatingContext?.nodeId,n=p&&Ng(p.nodesRef.current,t).some(t=>Bh(e,t.context?.elements.floating));return M(e)||n}function N(n){if(m(n)){n.type!==`click`&&!M(n)&&(t.clear(),S.current=!1),A();return}if(d.current.insideReactTree){A();return}let r=gh(n),i=`[${Fg(`inert`)}]`,a=W(r)?r.getRootNode():null,o=Array.from((Yr(a)?a:Im(e.select(`floatingElement`))).querySelectorAll(i)),s=e.context.triggerElements;if(r&&(s.hasElement(r)||s.hasMatchingElement(e=>mh(e,r))))return;let c=W(r)?r:null;for(;c&&!oi(c);){let e=li(c);if(oi(e)||!W(e))break;c=e}if(!(o.length&&W(r)&&!Vh(r)&&!mh(r,e.select(`floatingElement`))&&o.every(e=>!mh(c,e)))){if(Jr(r)&&!(`touches`in n)){let e=oi(r),t=si(r),i=/auto|scroll/,a=e||i.test(t.overflowX),o=e||i.test(t.overflowY),s=a&&r.clientWidth>0&&r.scrollWidth>r.clientWidth,c=o&&r.clientHeight>0&&r.scrollHeight>r.clientHeight,l=t.direction===`rtl`,u=c&&(l?n.offsetX<=r.offsetWidth-r.clientWidth:n.offsetX>r.clientWidth),d=s&&n.offsetY>r.clientHeight;if(u||d)return}if(!O(n)){if(f()===`intentional`){if(n.detail!==0&&!lh(n)&&!C.current)return;if(S.current){t.clear(),S.current=!1;return}}(typeof h!=`function`||h(n))&&(j(`__outsidePressBubbles`)||(e.setOpen(!1,Gh(Jh,n)),A()))}}}function F(t){f()===`sloppy`&&t.pointerType!==`touch`&&e.select(`open`)&&n&&!M(t)&&N(t)}function I(t){if(f()!==`sloppy`||!e.select(`open`)||!n||M(t))return;let r=t.touches[0];r&&(E.current={startTime:Date.now(),startX:r.clientX,startY:r.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},D.start(1e3,()=>{E.current&&(E.current.dismissOnTouchEnd=!1,E.current.dismissOnMouseDown=!1)}))}function ee(e,t){let n=gh(e);if(!n)return;let r=Lm(n,e.type,()=>{t(e),r()})}function L(e){T.current=`touch`,ee(e,I)}function te(e){D.clear(),e.type===`pointerdown`&&(e.button===0&&(C.current=!0),T.current=e.pointerType),(e.type!==`mousedown`||!E.current||E.current.dismissOnMouseDown)&&ee(e,e=>{e.type===`pointerdown`?F(e):N(e)})}function R(e){if(e.type===`pointercancel`&&(C.current=!1),!b.current)return;let n=x.current;c(),f()===`intentional`&&(e.type===`pointercancel`?n&&s():O(e)||(n?s():(typeof h!=`function`||h(e))&&(t.clear(),S.current=!0,A())))}function ne(e){if(f()!==`sloppy`||!E.current||M(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-E.current.startX),r=Math.abs(t.clientY-E.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(E.current.dismissOnTouchEnd=!0),i>10&&(N(e),D.clear(),E.current=null)}function re(e){ee(e,ne)}function ie(e){f()===`sloppy`&&E.current&&!M(e)&&(E.current.dismissOnTouchEnd&&N(e),D.clear(),E.current=null)}function ae(e){ee(e,ie)}let z=Fm(r&&Fm(Lm(i,`keydown`,P),Lm(i,`compositionstart`,a),Lm(i,`compositionend`,o)),g&&Fm(Lm(i,`click`,te,!0),Lm(i,`pointerdown`,te,!0),Lm(i,`pointerup`,R,!0),Lm(i,`pointercancel`,R,!0),Lm(i,`mousedown`,te,!0),Lm(i,`mouseup`,R,!0),Lm(i,`touchstart`,L,{capture:!0,passive:!0}),Lm(i,`touchmove`,re,{capture:!0,passive:!0}),Lm(i,`touchend`,ae,{capture:!0,passive:!0})));return()=>{z(),t.clear(),c(),S.current=!1}},[d,u,r,g,h,l,n,v,y,P,A,_,j,M,p,e,D,k]);let L=B.useMemo(()=>({onKeyDown:P,onPointerDown:N,onClick:N}),[P,N]),te=B.useMemo(()=>({onKeyDown:P,onPointerDown:ee,onMouseDown:ee,onClickCapture:F,onMouseDownCapture(e){F(),I(e)},onPointerDownCapture(e){F(),I(e)},onMouseUpCapture:F,onTouchEndCapture:F,onTouchMoveCapture:F}),[P,F,I,ee]);return B.useMemo(()=>n?{reference:L,floating:te,trigger:L}:{},[n,L,te])}function Q_(e,t=!1,n=!1,r=!1){let[i,a]=B.useState(e&&t?`idle`:void 0),[o,s]=B.useState(e&&!r);return e&&!o&&(s(!0),a(`starting`)),!e&&o&&i!==`ending`&&!n&&a(`ending`),!e&&!o&&i===`ending`&&a(void 0),q(()=>{if(!e&&o&&i!==`ending`&&n){let e=Hm.request(()=>{a(`ending`)});return()=>{Hm.cancel(e)}}},[e,o,i,n]),q(()=>{if(!e||t||i===void 0)return;let n=Hm.request(()=>{a(void 0)});return()=>{Hm.cancel(n)}},[t,e,i]),q(()=>{if(!e||!t)return;e&&o&&i!==`idle`&&a(`starting`);let n=Hm.request(()=>{a(`idle`)});return()=>{Hm.cancel(n)}},[t,e,o,i]),{mounted:o,setMounted:s,transitionStatus:i}}function $_(e,t){return e.getAnimations(t).filter(e=>{let t=e.effect?.getTiming();return t?.duration!==1/0&&t?.iterations!==1/0})}var ev=null;function tv(e){if(!ev){let e=[];ev=e,queueMicrotask(()=>{ev=null,Ti.flushSync(()=>{for(let t of e)t()})})}ev.push(e)}function nv(e,t=!1,n=!1){let r=Um();return J((i,a=null)=>{r.cancel();let o=R_(e);if(o==null)return;let s=o,c=()=>{n?tv(()=>{a?.aborted||i()}):Ti.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all($_(s).map(e=>e.finished.then(jm))).then(()=>{a?.aborted||c()},()=>{a?.aborted||($_(s).some(e=>e.pending||e.playState!==`finished`)?l():c())})}if(t){let e=Sh;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0})}else r.request(l)})}function rv(e){let{enabled:t=!0,open:n,ref:r,batch:i=!1,onComplete:a}=e,o=J(a),s=nv(r,n,i);B.useEffect(()=>{if(!t)return;let e=new AbortController;return s(o,e.signal),()=>{e.abort()}},[t,n,o,s])}function iv(e){let{open:t,ref:n,preventUnmountOnClose:r,setPreventUnmountOnClose:i,onUnmount:a,animateInitialOpen:o}=e,s=J(i),{mounted:c,setMounted:l,transitionStatus:u}=Q_(t,!1,!1,o),d=!t&&r;q(()=>{t&&s(!1)},[t,s]);let f=B.useRef(c),p=B.useRef(!1),m=Rm(),h=()=>{f.current=!1,l(!1),a()};q(()=>{f.current=c,p.current&&(p.current=!1,!t&&c&&h())});let g=J(()=>{f.current&&(t?(p.current=!0,m()):h())});return rv({enabled:c&&!t&&!d,open:t,ref:n,onComplete(){t||g()}}),{mounted:c,transitionStatus:u,preventUnmountingOnClose:d,forceUnmount:g}}var av={tabIndex:-1,[_h]:``};function ov(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}var sv=class{idMap=new Map;add(e,t){this.idMap.set(e,t)}delete(e){this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}},cv={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},lv=class extends Pm{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:N_(),nested:n,triggerElements:i},cv),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&fh(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{this.syncOnly||this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function uv(e){let{open:t=!1,onOpenChange:n,elements:r={}}=e,i=Qg(),a=I_()!=null,o=$p(()=>new lv({open:t,transitionStatus:void 0,onOpenChange:n,referenceElement:r.reference??null,floatingElement:r.floating??null,triggerElements:new sv,floatingId:i,syncOnly:!1,nested:a})).current;return q(()=>{let e={open:t,floatingId:i};r.reference!==void 0&&(e.referenceElement=r.reference,e.domReferenceElement=W(r.reference)?r.reference:null),r.floating!==void 0&&(e.floatingElement=r.floating),o.update(e)},[t,i,r.reference,r.floating,o]),o.context.onOpenChange=n,o.context.nested=a,o}function dv(e){return ih&&e.movementX===0&&e.movementY===0}function fv(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function pv(e,t){return fv(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function mv(e,t,n){return fv(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function hv(e,t,n){return fv(t,n?e===vh:e===yh,e===xh)}function gv(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===`Escape`:fv(t,n?e===yh:e===vh,e===bh)}function _v(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:o=null,allowEscape:s=!1,loopFocus:c=!1,nested:l=!1,rtl:u=!1,virtual:d=!1,focusItemOnOpen:f=`auto`,focusItemOnHover:p=!0,openOnArrowKeyDown:m=!0,disabledIndices:h=void 0,orientation:g=`vertical`,triggerOrientation:_=g,parentOrientation:v,id:y,resetOnPointerLeave:b=!0,externalTree:x,nestedReturnFocusRef:S,grid:C}=t,w=C!=null,T=e.useState(`open`),E=e.useState(`floatingElement`),D=e.useState(`domReferenceElement`),O=e.context.dataRef,k=Wh(E),A=Uh(D),j=hm(k),M=I_(),N=L_(x),P=B.useRef(f),F=B.useRef(o??-1),I=B.useRef(null),ee=B.useRef(!0),L=J(e=>{i(F.current===-1?null:F.current,e)}),te=B.useRef(!!E),R=B.useRef(T),ne=B.useRef(!1),re=B.useRef(!1),ie=B.useRef(null),ae=hm(h),z=hm(T),oe=hm(o),se=hm(b),ce=Um(),le=Um(),ue=J(()=>{ce.cancel();function e(e){d||(ie.current=Lg(e,{sync:ne.current,preventScroll:!0}))}let t=n.current[F.current],r=re.current;t&&e(t),(ne.current?e=>e():e=>ce.request(e))(()=>{let i=n.current[F.current]||t;i&&(t||e(i),ge&&(r||!ee.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});q(()=>{O.current.orientation=g},[O,g]),q(()=>{T||(I.current=null),(!T||f!==`auto`)&&(P.current=f)},[T,f]),q(()=>{a&&(T&&E?(F.current=o??-1,P.current&&o!=null&&(re.current=!0,L())):te.current&&(F.current=-1,L()))},[a,T,E,o,L]),q(()=>{if(a){if(!T)ne.current=!1;else if(E){if(r==null){if(ne.current=!1,oe.current!=null)return;if(te.current&&(F.current=-1,ue()),(!R.current||!te.current)&&P.current&&(I.current!=null||P.current===!0&&I.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>le.request(e):queueMicrotask)(t),e+=1):(F.current=I.current==null||mv(I.current,_,u)||l?ig(n):ag(n),I.current=null,L())};t()}}else rg(n.current,r)||(F.current=r,ue(),re.current=!1)}}},[a,T,E,r,oe,l,n,_,u,L,ue,le]),q(()=>{if(!a||E||!N||d||!te.current)return;let e=N.nodesRef.current,t=e.find(e=>e.id===M)?.context?.elements.floating,n=ph(Im(D??t??null)),r=e.some(e=>e.context&&mh(e.context.elements.floating,n));t&&!r&&ee.current&&t.focus({preventScroll:!0})},[a,E,D,N,M,d]),q(()=>{R.current=T,te.current=!!E});let de=r!=null,fe=J(e=>{if(!z.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(F.current!==t||r!==t)&&(F.current=t,L(e))}),pe=J(()=>v??N?.nodesRef.current.find(e=>e.id===M)?.context?.dataRef?.current.orientation),me=J(()=>ig(n,ae.current)),he=J(t=>{if(ee.current=!1,ne.current=!0,t.which===229||!z.current&&t.currentTarget===j.current)return;if(l&&gv(t.key,g,u,w)){pv(t.key,pe())||sh(t),e.setOpen(!1,Gh(Qh,t.nativeEvent));let n=S?.current??D;Jr(n)&&n.focus();return}r!=null&&r!==F.current&&!rg(n.current,r)&&(F.current=r);let i=F.current,a=ig(n,h),o=ag(n,h);if(A||(t.key===`Home`&&(sh(t),F.current=a,L(t)),t.key===`End`&&(sh(t),F.current=o,L(t))),C!=null){let e=C(t,F.current,n,g,c,u,h,a,o);if(e!=null&&e!==F.current&&(F.current=e,L(t)),g===`both`)return}if(pv(t.key,g)){sh(t);let e=ph(t.currentTarget.ownerDocument);if(T&&!d&&mh(t.currentTarget,e)&&!n.current.some(t=>t!=null&&mh(t,e))){F.current=mv(t.key,g,u)?a:o,L(t),r===F.current&&ue();return}let{index:l,wrapped:f}=og(n.current,i,{decrement:!mv(t.key,g,u),loopFocus:c,allowEscape:s,disabledIndices:h,minIndex:a,maxIndex:o});f&&(ne.current=!1),F.current=l,L(t)}}),ge=B.useMemo(()=>({onFocus(e){ne.current=!0,fe(e)},onClick({currentTarget:e}){d||e.focus({preventScroll:!0})},onMouseMove(e){dv(e)||(ne.current=!0,re.current=!1,p&&fe(e))},onPointerLeave(e){if(!z.current||!ee.current||e.pointerType===`touch`)return;ne.current=!0;let t=e.relatedTarget;if(p&&!n.current.includes(t)&&se.current&&(ie.current?.(),ie.current=null,F.current=-1,L(e),!d)){let e=j.current,t=ph(Im(e));e&&mh(e,t)&&e.focus({preventScroll:!0})}}}),[fe,z,j,p,n,L,se,d]),_e=B.useMemo(()=>d&&T&&de&&{"aria-activedescendant":`${y}-${r}`},[d,T,de,y,r]),ve=B.useMemo(()=>({...A?{}:_e,onKeyDown(t){if(t.key===`Tab`&&t.shiftKey&&T&&!d){let n=gh(t.nativeEvent);if(n&&!mh(j.current,n))return;sh(t);let r=Gh(Xh,t.nativeEvent);e.setOpen(!1,r);let i=S?.current??D;!r.isCanceled&&Jr(i)&&i.focus()}else he(t)},onPointerMove(e){dv(e)||(ee.current=!0)}}),[_e,he,j,A,e,T,d,D,S]),V=B.useMemo(()=>{function t(t){e.setOpen(!0,Gh(Qh,t.nativeEvent,t.currentTarget))}function n(e){f===`auto`&&lh(e.nativeEvent)&&(P.current=!d)}function r(e){P.current=f,f===`auto`&&uh(e.nativeEvent)&&(P.current=!0)}return{onKeyDown(n){let r=e.select(`open`);ee.current=!1;let i=n.key.startsWith(`Arrow`),a=hv(n.key,pe(),u),o=pv(n.key,r?g:_),s=(l?a:o)||n.key===`Enter`||n.key.trim()===``;if(d&&r&&(!l||Hh(n.currentTarget)))return he(n);if(r||m||!i){if(s){let e=pv(n.key,pe());I.current=l&&e?null:n.key}l?a&&(sh(n),r?(F.current=me(),L(n),d&&j.current?.focus()):t(n)):o&&(oe.current!=null&&(F.current=oe.current),sh(n),!r&&m?t(n):he(n),r&&L(n))}},onFocus(t){t.target===t.currentTarget&&e.select(`open`)&&!d&&(F.current=-1,L(t))},onPointerDown:r,onPointerEnter:r,onMouseDown:n,onClick:n}},[he,f,me,l,L,e,m,g,_,pe,u,oe,d,j]),ye=B.useMemo(()=>({..._e,...V}),[_e,V]);return B.useMemo(()=>a?{reference:ye,floating:ve,item:ge,trigger:V}:{},[a,ye,ve,V,ge])}function vv(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:o,onTyping:s,enabled:c=!0,resetMs:l=750,selectedIndex:u=null}=t,d=J(s),f=e.useState(`open`),p=Km(),m=B.useRef(``),h=B.useRef(u??i??-1),g=B.useRef(null),_=J(e=>{function t(e){return r?.current[e]}function s(e){let n=t(e);return n&&!ug(n)||n?.matches(`:disabled`)?!1:o==null||!cg(Mm,e,o)}function c(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length;if(e[n]?.toLowerCase().startsWith(i)&&s(n))return n}return-1}let _=n.current;if(m.current.length>0&&e.key===` `&&(sh(e),d?.(!0)),m.current.length>0&&m.current[0]!==` `&&c(_,m.current)===-1&&e.key!==` `&&d?.(!1),_==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;f&&e.key!==` `&&(sh(e),d?.(!0));let v=m.current===``;v&&(h.current=u??i??-1),_.every((e,t)=>e&&s(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&m.current===e.key&&(m.current=``,h.current=g.current),m.current+=e.key,p.start(l,()=>{m.current=``,h.current=g.current,d?.(!1)});let y=((v?u??i??-1:h.current)??0)+1,b=c(_,m.current,y);b===-1?e.key!==` `&&(m.current=``,d?.(!1)):(a?.(b,e),g.current=b)}),v=J(t=>{let n=t.relatedTarget,r=e.select(`domReferenceElement`),i=e.select(`floatingElement`);mh(r,n)||mh(i,n)||(p.clear(),m.current=``,h.current=g.current,d?.(!1))});q(()=>{(f||u===null)&&(p.clear(),g.current=null,m.current!==``&&(m.current=``,d?.(!1)))},[f,u,p,d]);let y=B.useMemo(()=>({onKeyDown:_,onBlur:v}),[_,v]);return B.useMemo(()=>c?{reference:y,floating:y}:{},[c,y])}var yv=B.createContext(void 0),bv=B.createContext(void 0);function xv(){let e=B.useContext(yv);if(e===void 0)throw Error(vm(60));return e}function Sv(){let e=B.useContext(bv);if(e===void 0)throw Error(vm(61));return e}var Cv=`data-valid`,wv=`data-invalid`,Tv={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},Ev={disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},Dv={valid(e){return e===null?null:e?{[Cv]:``}:{[wv]:``}}},Ov={invalid:void 0,name:void 0,validityData:{state:Tv,errors:[],error:``,value:``,initialValue:null},setValidityData:jm,disabled:void 0,setTouched:jm,setDirty:jm,setFilled:jm,setFocused:jm,focusOwnerRef:{current:void 0},validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:Ev,registerFieldControl:jm,validation:{getValidationProps:(e,t=Nm)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:jm,getInputControl:()=>null,commit:async()=>{},change:jm}},kv=B.createContext(Ov);function Av(e=!0){let t=B.useContext(kv);if(t.setValidityData===jm&&!e)throw Error(vm(28));return t}function jv(e,t,n,r,i=!0,a){let{registerFieldControl:o}=Av(),s=$p(()=>Symbol());q(()=>{let c=s.current;i?o(c,{controlRef:e,getValue:r,id:t,name:a,value:n}):o(c,void 0)},[e,i,r,t,a,o,s,n]),q(()=>{let e=s.current;return()=>{o(e,void 0)}},[o,s])}function Mv(e){return Qg(e,`base-ui`)}var Nv=B.createContext({controlId:void 0,registerControlId:jm,resetControlId:jm,labelId:void 0,setLabelId:jm,messageIds:[],setMessageIds:jm,getDescriptionProps:e=>e});function Pv(){return B.useContext(Nv)}function Fv(e={}){let{id:t,enabled:n=!0}=e,{controlId:r,registerControlId:i,resetControlId:a}=Pv(),o=Mv(),s=$p(()=>Symbol()),c=B.useRef(!1),l=B.useRef(!1),u=J(()=>{c.current&&i!==jm&&(c.current=!1,i(s.current,void 0))});return q(()=>{if(!n||i===jm){u();return}let e;if(t!==void 0)l.current=!0,e=t;else if(l.current)e=o;else{a();return}e===void 0?u():(c.current=!0,i(s.current,e))},[t,n,i,a,o,s,u]),q(()=>u,[u]),(n?r:void 0)??t??o}function Iv(e,t,n=Object.is){let{length:r}=e;if(r!==t.length)return!1;for(let i=0;i<r;i+=1)if(!n(e[i],t[i]))return!1;return!0}var Lv=(e,t)=>Object.is(e,t);function Rv(e,t,n){return e==null||t==null?Object.is(e,t):n(e,t)}function zv(e,t,n){return Array.isArray(e)&&Array.isArray(t)?!Iv(e,t,(e,t)=>Rv(e,t,n)):e!==t}function Bv(e,t,n){return e?e.some(e=>e!==void 0&&Rv(t,e,n)):!1}function Vv(e,t,n){return e?e.findIndex(e=>e!==void 0&&Rv(e,t,n)):-1}function Hv(e,t){if(t!==Lv)return n=>Bv(e,n,t);let n=new Set(e);return n.delete(void 0),t=>n.has(t)&&(t!==0||e.some(e=>Object.is(t,e)))}function Uv(e,t,n,r){let i=r&&Array.isArray(t)?e.findIndex(Hv(t,n)):Vv(e,t,n);return i===-1?null:i}function Wv(e,t,n,r,i,a){return Bv(r,t,i)?a!=null&&e>a&&Bv(r,n[a],i)?a:e:e===a?Uv(n,r,i,!0):a}function Gv(e,t,n){return e.filter(e=>!Rv(t,e,n))}function Kv(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function qv(e){return typeof e==`object`&&!!e&&Array.isArray(e.items)}function Jv(e){return qv(e?.[0])}function Yv(e){return Jv(e)?e.flatMap(e=>e.items):e}function Xv(e){if(!Array.isArray(e))return e!=null&&`null`in e;let t=e;if(Jv(t)){for(let e of t)for(let t of e.items)if(t&&t.value==null&&t.label!=null)return!0;return!1}for(let e of t)if(e&&e.value==null&&e.label!=null)return!0;return!1}function Zv(e,t){if(t&&e!=null)return t(e)??``;if(e&&typeof e==`object`){if(`label`in e&&e.label!=null)return String(e.label);if(`value`in e)return String(e.value)}return Kv(e)}function Qv(e,t){return t&&e!=null?t(e)??``:e&&typeof e==`object`&&`value`in e&&`label`in e?Kv(e.value):Kv(e)}function $v(e,t,n){function r(){return Zv(e,n)}if(n&&e!=null)return n(e);if(e&&typeof e==`object`&&`label`in e&&e.label!=null)return e.label;if(t&&!Array.isArray(t))return(Object.hasOwn(t,e)?t[e]:void 0)??r();if(Array.isArray(t)){let n=Yv(t);if(typeof e!=`object`||!e){let t=n.find(t=>t.value===e);return t&&t.label!=null?t.label:r()}if(`value`in e){let t=n.find(t=>t&&t.value===e.value);if(t&&t.label!=null)return t.label}}return r()}function ey(e,t,n){return e.reduce((e,r,i)=>(i>0&&e.push(`, `),e.push((0,V.jsx)(B.Fragment,{children:$v(r,t,n)},i)),e),[])}var ty={id:e=>e.id,labelId:e=>e.labelId,modal:e=>e.modal,multiple:e=>e.multiple,disabled:e=>e.disabled,readOnly:e=>e.readOnly,required:e=>e.required,highlightItemOnHover:e=>e.highlightItemOnHover,items:e=>e.items,itemToStringLabel:e=>e.itemToStringLabel,isItemEqualToValue:e=>e.isItemEqualToValue,value:e=>e.value,hasSelectedValue:e=>{let{value:t,multiple:n,itemToStringValue:r}=e;return t==null?!1:n&&Array.isArray(t)?t.length>0:Qv(t,r)!==``},hasNullItemLabel:(e,t)=>t?Xv(e.items):!1,open:e=>e.open,mounted:e=>e.mounted,forceMount:e=>e.forceMount,transitionStatus:e=>e.transitionStatus,openMethod:e=>e.openMethod,activeIndex:e=>e.activeIndex,selectedIndex:e=>e.selectedIndex,isActive:(e,t)=>e.activeIndex===t,isSelected:(e,t)=>{let n=e.isItemEqualToValue,r=e.value;return e.multiple?Array.isArray(r)&&r.some(e=>Rv(t,e,n)):Rv(t,r,n)},isSelectedByFocus:(e,t)=>e.selectedIndex===t,popupProps:e=>e.popupProps,triggerProps:e=>e.triggerProps,itemRoot:e=>e.itemRoot,triggerElement:e=>e.triggerElement,positionerElement:e=>e.positionerElement,listElement:e=>e.listElement,popupSide:e=>e.popupSide,scrollUpArrowVisible:e=>e.scrollUpArrowVisible,scrollDownArrowVisible:e=>e.scrollDownArrowVisible,hasScrollArrows:e=>e.hasScrollArrows},ny=B.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:jm,validationMode:`onSubmit`,submitCountRef:{current:0}});function ry(){return B.useContext(ny)}function iy(e,t){let n=B.useRef(e),r=J(t);q(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}function ay(e){let t=B.useRef(``),n=B.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:B.useCallback(n=>{n.detail===0?e(n,`keyboard`):(`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``)},[e]),onPointerDown:n}}function oy(e,t){let{onClick:n,onPointerDown:r}=ay(J((n,r)=>{(typeof e==`function`?e():e)||t(r||($m?`touch`:``))}));return B.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function sy(e){let[t,n]=B.useState(null),r=oy(e,n);return iy(e,t=>{t&&!e&&n(null)}),B.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}function cy(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function ly(e,t){return Math.max(0,e-t)}function uy(e,t){if(t<=0)return 0;let n=cy(e,0,t),r=n,i=t-n,a=r<=1,o=i<=1;return a&&o?r<=i?0:t:a?0:o?t:n}function dy(e){let{id:t,value:n,defaultValue:r=null,onValueChange:i,open:a,defaultOpen:o=!1,onOpenChange:s,name:c,form:l,autoComplete:u,disabled:d=!1,readOnly:f=!1,required:p=!1,modal:m=!0,actionsRef:h,inputRef:g,onOpenChangeComplete:_,items:v,multiple:y=!1,itemToStringLabel:b,itemToStringValue:x,isItemEqualToValue:S=Lv,highlightItemOnHover:C=!0,children:w}=e,{clearErrors:T}=ry(),{setDirty:E,setTouched:D,setFocused:O,validityData:k,setFilled:A,name:j,disabled:M,validation:N,validationMode:P}=Av(),F=Fv({id:t}),I=M||d,ee=j??c,[L,te]=lm({controlled:n,default:y?r??Mm:r,name:`Select`,state:`value`}),[R,ne]=lm({controlled:a,default:o,name:`Select`,state:`open`}),re=B.useRef([]),ie=B.useRef([]),ae=B.useRef(null),z=B.useRef(null),oe=B.useRef(0),se=B.useRef(null),ce=B.useRef([]),le=B.useRef(!1),ue=B.useRef(null),de=B.useRef(null),fe=B.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0}),pe=B.useRef(!1),me=B.useRef(L),{openMethod:he,triggerProps:ge}=sy(R),_e=$p(()=>new Pm({id:F,labelId:void 0,modal:m,multiple:y,disabled:I,readOnly:f,required:p,highlightItemOnHover:C,itemToStringLabel:b,itemToStringValue:x,isItemEqualToValue:S,value:L,open:R,mounted:R,transitionStatus:void 0,items:v,forceMount:!1,openMethod:null,activeIndex:null,selectedIndex:null,popupProps:Nm,triggerProps:Nm,itemRoot:{props:Nm,multiple:y,disabled:I,readOnly:f,isItemEqualToValue:S},triggerElement:null,positionerElement:null,listElement:null,popupSide:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1,hasScrollArrows:!1},{setValue:jm,setOpen:jm,handleScrollArrowVisibility:jm,onOpenChangeComplete:jm,listRef:re,popupRef:ae,scrollHandlerRef:z,scrollArrowsMountedCountRef:oe,valueRef:se,valuesRef:ce,labelsRef:ie,typingRef:le,selectionRef:fe,firstItemTextRef:ue,selectedItemTextRef:de,alignItemWithTriggerActiveRef:pe,initialValueRef:me},ty)).current,[ve,ye]=B.useState(!1),{mounted:be,transitionStatus:xe,forceUnmount:Se}=iv({open:R,ref:ae,preventUnmountOnClose:ve,setPreventUnmountOnClose:ye,onUnmount(){_e.update({activeIndex:null,openMethod:null,scrollUpArrowVisible:!1,scrollDownArrowVisible:!1}),_?.(!1)}}),Ce=_e.useState(`activeIndex`),we=_e.useState(`selectedIndex`),Te=_e.useState(`triggerElement`),Ee=_e.useState(`positionerElement`),De=sm(he),Oe=he??De,ke=B.useMemo(()=>y?``:Qv(L,x),[y,L,x]),Ae=B.useMemo(()=>y&&Array.isArray(L)?L.map(e=>Qv(e,x)):Qv(L,x),[y,L,x]);jv(hm(Te),F,L,J(()=>Ae),!I,c);let je=y?Array.isArray(L)&&L.length>0:L!=null&&ke!==``;q(()=>{A(je)},[je,A]),q(function(){let e=Uv(ce.current,L,S,y);e===null&&(de.current=null),!R&&_e.set(`selectedIndex`,e)},[y,R,L,S,_e]),iy(L,()=>{T(ee),E(zv(L,k.initialValue,S)),N.change(L)});let Me=J((e,t)=>{let n=t,r=ov(n);s?.(e,n),!t.isCanceled&&(e||ye(r()),ne(e),!e&&(t.reason===`focus-out`||t.reason===`outside-press`)&&(D(!0),O(!1),P===`onBlur`&&N.commit(L)))});B.useImperativeHandle(h,()=>({unmount:Se,close:()=>{_e.state.open&&Me(!1,Gh(eg))}}),[Se,Me,_e]);let Ne=J((e,t)=>{i?.(e,t),!t.isCanceled&&te(e)}),Pe=J(e=>{let t=ly(e.scrollHeight,e.clientHeight),n=uy(e.scrollTop,t),r=n>0,i=n<t;_e.set(`scrollUpArrowVisible`,r),_e.set(`scrollDownArrowVisible`,i)}),Fe=uv({open:R,onOpenChange:Me,elements:{reference:Te,floating:Ee}}),Ie=J_(Fe,{enabled:!I,event:`mousedown`}),Le=Z_(Fe),Re=_v(Fe,{enabled:!I,listRef:re,activeIndex:Ce,selectedIndex:we,disabledIndices:Mm,onNavigate(e){(e!==null||R)&&_e.set(`activeIndex`,e)},focusItemOnHover:C}),ze=vv(Fe,{enabled:!I&&(R||!f&&!y),listRef:ie,activeIndex:Ce,selectedIndex:we,disabledIndices:e=>cm(re.current[e]),onMatch(e){R?_e.set(`activeIndex`,e):Ne(ce.current[e],Gh(Kh))},onTyping(e){le.current=e}}),Be=B.useMemo(()=>a_(ze.reference,Re.reference,Le.reference,Ie.reference,ge),[Ie.reference,ze.reference,Re.reference,Le.reference,ge]),Ve=B.useMemo(()=>a_(av,ze.floating,Re.floating,Le.floating),[ze.floating,Re.floating,Le.floating]),He=Re.item??Nm,Ue=B.useMemo(()=>({props:He,multiple:y,disabled:I,readOnly:f,isItemEqualToValue:S}),[He,y,I,f,S]);_e.useContextCallback(`setValue`,Ne),_e.useContextCallback(`setOpen`,Me),_e.useContextCallback(`handleScrollArrowVisibility`,Pe),_e.useContextCallback(`onOpenChangeComplete`,_),om(()=>{_e.update({popupProps:Ve,triggerProps:Be,itemRoot:Ue})}),_e.useSyncedValues({id:F,modal:m,multiple:y,disabled:I,readOnly:f,required:p,highlightItemOnHover:C,value:L,open:R,mounted:be,transitionStatus:xe,popupProps:Ve,triggerProps:Be,itemRoot:Ue,items:v,itemToStringLabel:b,itemToStringValue:x,isItemEqualToValue:S,openMethod:Oe});let We=em(g,N.inputRef),Ge=y?void 0:ee,Ke=B.useMemo(()=>!y||!Array.isArray(L)||!ee?null:L.map(e=>{let t=Qv(e,x);return(0,V.jsx)(`input`,{type:`hidden`,form:l,name:ee,value:t,disabled:I},t)}),[y,L,l,ee,x,I]);return(0,V.jsxs)(yv.Provider,{value:_e,children:[(0,V.jsx)(bv.Provider,{value:Fe,children:w}),(0,V.jsx)(`input`,{...N.getValidationProps(I,{onFocus(){_e.state.triggerElement?.focus({focusVisible:!0})},onChange(e){if(e.nativeEvent.defaultPrevented||I||f)return;let t=e.currentTarget.value,n=Gh(Kh,e.nativeEvent);function r(){if(y)return;let e=t.toLowerCase(),r=ce.current.findIndex(t=>Qv(t,x).toLowerCase()===e||Zv(t,b).toLowerCase()===e);r===-1&&(r=ce.current.findIndex((t,n)=>{let r=ie.current[n];return r!=null&&r.toLowerCase()===e}));let i=ce.current[r];i!=null&&Ne(i,n)}_e.set(`forceMount`,!0),queueMicrotask(r)}}),id:F&&Ge==null?`${F}-hidden-input`:void 0,form:l,name:Ge,autoComplete:u,value:ke,disabled:I,required:p&&!(y&&je),readOnly:f,ref:We,style:ee?Zp:Xp,tabIndex:-1,"aria-hidden":!0,suppressHydrationWarning:!0}),Ke]})}function fy(e,t){let n=Mv(e);return q(()=>(t(n),()=>{t(e=>e===n?void 0:e)}),[n,t]),n}function py(e={}){let{id:t,fallbackControlId:n,native:r=!1,setLabelId:i,focusControl:a}=e,{controlId:o,setLabelId:s}=Pv(),c=fy(t,J(e=>{s(e),i?.(e)})),l=o??n;function u(e){if(a){a(e,l);return}if(!l)return;let t=my(e.currentTarget,l);Jr(t)&&hy(t)}function d(e){hh(gh(e.nativeEvent),`button,input,select,textarea`)||(!e.defaultPrevented&&e.detail>1&&e.preventDefault(),!r&&u(e))}return r?{id:c,htmlFor:l,onMouseDown:d}:{id:c,onClick:d,onPointerDown(e){e.preventDefault()}}}function my(e,t){let n=e.getRootNode();for(;Yr(n);){let e=n.getElementById(t);if(e)return e;n=n.host.getRootNode()}return Im(e).getElementById(t)}function hy(e){e.focus({focusVisible:!0})}function gy(e){return e==null?void 0:`${e}-label`}function _y(e,t){return e??t}var vy=B.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=a;delete o.id;let s=Av(),c=xv(),l=c.useState(`triggerElement`),u=c.useState(`id`),d=py({id:gy(u),fallbackControlId:l?.id??u,setLabelId(e){let t=typeof e==`function`?e(c.state.labelId):e;c.set(`labelId`,t)}});return v_(`div`,e,{ref:t,state:s.state,props:[d,a],stateAttributesMapping:Dv})});function yy(e,t,n){let{setFocused:r,focusOwnerRef:i}=Av(),a=J(t=>{(t?!e:i.current===a)&&(i.current=t&&a,n?.(t),r(t))});return q(()=>{let e=t.current;return e?.getRootNode()?.activeElement===e&&a(!0),()=>a(!1)},[e,t,a]),a}var by=5;function xy(e,t){let n=Sy(t);return e.clientX>=n.left-by&&e.clientX<=n.right+by&&e.clientY>=n.top-by&&e.clientY<=n.bottom+by}function Sy(e){let t=e.getBoundingClientRect(),n=Gr(e);if(oh)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(r.content===`none`&&i.content===`none`)return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}var Cy=B.createContext(void 0);function wy(e=!1){let t=B.useContext(Cy);if(t===void 0&&!e)throw Error(vm(16));return t}function Ty(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:B.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function Ey(e,t,{detail:n=0,pointerType:r=``}={}){e.dispatchEvent(new(Gr(e)).PointerEvent(`click`,{bubbles:!0,cancelable:!0,composed:!0,detail:n,pointerType:r,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function Dy(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=B.useRef(null),s=wy(!0),c=a??s!==void 0,{props:l}=Ty({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i}),u=B.useCallback(()=>{let e=o.current;Oy(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return q(u,[u]),{getButtonProps:B.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return a_({onClick(e){t?e.preventDefault():n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(h_(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=Oy(r),s=!i&&ky(r),l=n&&(i?a:!s),u=e.key===`Enter`,d=e.key===` `,f=r.getAttribute(`role`),p=f?.startsWith(`menuitem`)||f===`option`||f===`gridcell`;if(n&&c&&d){if(e.defaultPrevented&&p)return;e.preventDefault(),(!i||a)&&(e.preventBaseUIHandler(),Ey(r,e))}else!l||i||!d&&!u?n&&s&&d&&e.preventDefault():e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),Ey(r,e)))},onKeyUp(e){t||(h_(e),a?.(e),e.target===e.currentTarget&&i&&c&&Oy(e.currentTarget)&&e.key===` `?e.preventDefault():e.baseUIHandlerPrevented||e.target===e.currentTarget&&!i&&!c&&!e.defaultPrevented&&e.key===` `&&(e.preventBaseUIHandler(),Ey(e.currentTarget,e)))},onPointerDown(e){t?e.preventDefault():s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:J(e=>{o.current=e,u()})}}function Oy(e){return Jr(e)&&e.tagName===`BUTTON`}function ky(e){return Jr(e)&&e.tagName===`A`&&!!e.href}var Ay=`data-popup-side`,jy=400,My={...Rh,...Dv,popupSide:e=>e?{[Ay]:e}:null,value:()=>null},Ny=B.forwardRef(function(e,t){let{render:n,className:r,id:i,disabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{setTouched:l,validationMode:u,validation:d,state:f,disabled:p}=Av(),{labelId:m}=Pv(),h=xv(),g=h.useState(`readOnly`),_=h.useState(`required`),v=h.useState(`disabled`),y=p||v||a,b=h.useState(`open`),x=h.useState(`mounted`),S=h.useState(`value`),C=h.useState(`triggerProps`),w=h.useState(`positionerElement`),T=h.useState(`listElement`),E=h.useState(`popupSide`),D=h.useState(`id`),O=h.useState(`labelId`),k=h.useState(`hasSelectedValue`),A=x&&w?E:null,j=i??D,M=_y(m,O);Fv({id:i});let N=hm(w),P=B.useRef(null),F=yy(y,P),{getButtonProps:I,buttonRef:ee}=Dy({disabled:y,native:o}),L=h.useStateSetter(`triggerElement`),te=Km(),R=Km(),ne=Km();B.useEffect(()=>{if(b)return ne.start(jy,()=>{h.context.selectionRef.current.allowUnselectedMouseUp=!0,h.context.selectionRef.current.allowSelectedMouseUp=!0}),()=>{ne.clear()};h.context.selectionRef.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1,dragY:0},R.clear()},[b,h,R,ne]);let re=a_(C,{id:j,role:`combobox`,"aria-expanded":b,"aria-haspopup":`listbox`,"aria-controls":b?T?.id??Wh(w)?.id:void 0,"aria-labelledby":M,"aria-readonly":g||void 0,"aria-required":_||void 0,tabIndex:y?-1:0,onFocus(e){F(!0),b&&h.context.alignItemWithTriggerActiveRef.current&&h.context.setOpen(!1,Gh(Kh,e.nativeEvent)),te.start(0,()=>{h.set(`forceMount`,!0)})},onBlur(e){mh(w,e.relatedTarget)||(l(!0),F(!1),u===`onBlur`&&d.commit(S))},onMouseDown(e){if(b)return;let t=Im(e.currentTarget);function n(e){if(!P.current)return;let t=e.target;mh(P.current,t)||mh(N.current,t)||xy(e,P.current)||h.context.setOpen(!1,Gh($h,e))}R.start(0,()=>{t.addEventListener(`mouseup`,n,{once:!0})})}},c,I),ie=d.getValidationProps(y,re);ie.role=`combobox`;let ae={...f,open:b,disabled:y,value:S,readOnly:g,popupSide:A,placeholder:!k};return v_(`button`,e,{ref:[t,P,ee,L],state:ae,stateAttributesMapping:My,props:ie})}),Py={value:()=>null},Fy=B.forwardRef(function(e,t){let{className:n,render:r,children:i,placeholder:a,style:o,...s}=e,c=xv(),l=c.useState(`value`),u=c.useState(`items`),d=c.useState(`itemToStringLabel`),f=c.useState(`hasSelectedValue`),p=!f&&a!=null&&i==null,m=c.useState(`hasNullItemLabel`,p),h={value:l,placeholder:!f},g=null;return g=typeof i==`function`?i(l):i??(p&&!m?a:Array.isArray(l)?ey(l,u,d):$v(l,u,d)),v_(`span`,e,{state:h,ref:[t,c.context.valueRef],props:[{children:g},s],stateAttributesMapping:Py})}),Iy=B.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e;return v_(`span`,e,{state:{open:xv().useState(`open`)},ref:t,props:[{"aria-hidden":!0,children:`▼`},a],stateAttributesMapping:Lh})}),Ly=B.forwardRef(function(e,t){let n=xv(),r=n.useState(`mounted`),i=n.useState(`forceMount`);return r||i?(0,V.jsx)(M_,{ref:t,...e}):null});function Ry(e){return bm(19)?e:e?`true`:void 0}var zy=B.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});function By(){return B.useContext(zy)}function Vy(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=J(i),[,o]=B.useState(0),s=$p(Uy).current,c=$p(Hy).current,l=B.useRef(0),u=B.useRef(!0),d=B.useRef(null),f=B.useRef(null),p=J(()=>{u.current||(u.current=!0,o(e=>e+1))}),m=J((e,t)=>{c.set(e,t),p()}),h=J(e=>{c.delete(e),p()}),g=J(e=>{let t=new Map;return n.current.length=0,r&&(r.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),n.current[e.index]=e.element,r&&(r.current[e.index]=e.registration.label===void 0?e.registration.textRef?.current?.textContent??e.element.textContent:e.registration.label)}),l.current=n.current.length,t});function _(e){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!=`function`||e.length<2)return;let t=new MutationObserver(n=>{if(!Ky(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&qy(r,n)>0){t.disconnect(),p();return}r=n}});f.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=Gy(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}let v=J(()=>{let[e,t]=Wy(c),n=g(e),r=d.current,i=!r||r.length!==e.length||e.some((e,t)=>{let n=r[t];return e.index!==n.index||e.element!==n.element||e.registration.index!==n.registration.index||e.registration.metadata!==n.registration.metadata});_(t),d.current=e,u.current=!1,i&&(s.forEach(e=>e(n)),a(n))});q(()=>(!u.current&&d.current&&g(d.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,g]),q(()=>{u.current&&v()}),q(()=>()=>{f.current?.disconnect(),u.current=!0},[]);let y=J(e=>(s.add(e),()=>{s.delete(e)})),b=B.useMemo(()=>({register:m,unregister:h,subscribeMapChange:y,nextIndexRef:l}),[m,h,y,l]);return(0,V.jsx)(zy.Provider,{value:b,children:t})}function Hy(){return new Map}function Uy(){return new Set}function Wy(e){let t=new Set,n=[],r=[];e.forEach((e,i)=>{if(!i.isConnected)return;let a=e.index,o={index:a??-1,element:i,registration:e};a===null?r.push(o):a>=0&&(t.add(a),n.push(o))});let i=0;return r.sort((e,t)=>qy(e.element,t.element)),r.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,n.push(e),i+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]}function Gy(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function Ky(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}function qy(e,t){return e.nextElementSibling===t?-1:t.nextElementSibling===e?1:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function Jy(e){let{nodeId:t,externalTree:n,rootContext:r}=e,i=r.useState(`referenceElement`),a=r.useState(`floatingElement`),o=r.useState(`domReferenceElement`),s=r.useState(`open`),c=r.useState(`floatingId`),[l,u]=B.useState(null),d=B.useRef(null),f=L_(n),p=B.useMemo(()=>({reference:i,floating:a,domReference:o}),[i,a,o]),m=Ts({...e,elements:{...p,...l&&{reference:l}}}),h=B.useCallback(e=>{let t=W(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),m.refs.setReference(t)},[m.refs]),g=B.useMemo(()=>({...m.refs,setPositionReference:h,domReference:d}),[m.refs,h]),_=B.useMemo(()=>({...m.elements,domReference:o}),[m.elements,o]),v=B.useMemo(()=>({...m,dataRef:r.context.dataRef,open:s,onOpenChange:r.setOpen,events:r.context.events,floatingId:c,refs:g,elements:_,nodeId:t,rootStore:r}),[m,g,_,t,r,s,c]);return q(()=>{o&&(d.current=o)},[o]),q(()=>{r.context.dataRef.current.floatingContext=v;let e=f?.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),B.useMemo(()=>({...m,context:v,refs:g,elements:_,rootStore:r}),[m,g,_,v,r])}var Yy=B.createContext(void 0);function Xy(){return B.useContext(Yy)?.direction??`ltr`}var Zy=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Ha(e,t)||{};if(l==null)return{};let d=oo(u),f={x:n,y:r},p=Ja(i),m=Ka(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=s.floating[y]||a.floating[m],C=b/2-x/2,w=S/2-h[m]/2-1,T=Math.min(d[_],w),E=Math.min(d[v],w),D=T,O=S-h[m]-E,k=S/2-h[m]/2+C,A=Va(D,k,O),j=!c.arrow&&Wa(i)!=null&&k!==A&&a.reference[m]/2-(k<D?T:E)-h[m]/2<0,M=j?k<D?k-D:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),Qy=(e,t)=>{let{name:n,fn:r}=Zy(e);return{name:n,fn:r,options:[e,t]}},$y={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0,o=await e.platform.detectOverflow(e,{elementContext:`reference`});return{data:{referenceHidden:o.top-n>=0||o.right-t>=0||o.bottom-n>=0||o.left-t>=0||a}}}},eb={sideX:`left`,sideY:`top`},tb=`--available-width`,nb=`--available-height`,rb=`--anchor-width`,ib=`--anchor-height`,ab=`--transform-origin`,ob=tb,sb=nb;function cb(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function lb(e,t,n){let{rects:r,placement:i}=e;return{side:cb(t,Ua(i),n),align:Wa(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function ub(e){return db(e,Jy)}function db(e,t){let{anchor:n,positionMethod:r=`absolute`,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,collisionBoundary:c,collisionPadding:l=5,sticky:u=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:p,keepMounted:m=!1,floatingRootContext:h,mounted:g,collisionAvoidance:_,shift:v,nodeId:y,adaptiveOrigin:b,lazyFlip:x=!1,externalTree:S}=e,C=_.side||`flip`,w=_.align||`flip`,T=_.fallbackAxisSide||`end`,E=v?.crossAxis??!1,D=v?.rootBoundary,O=typeof n==`function`?n:void 0,k=J(O),A=O?k:n,j=hm(n),M=hm(g),N=Xy()===`rtl`,[P,F]=B.useState(null);!g&&P!==null&&F(null);let I=x===`placement`,ee=P?Ua(P):null,L=P&&I?Wa(P)||`center`:null,te=ee||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":N?`left`:`right`,"inline-start":N?`right`:`left`}[i],R=L||o,ne=R===`center`?te:`${te}-${R}`,re=l;typeof re==`number`?re={top:re,right:re,bottom:re,left:re}:re&&={top:re.top||0,right:re.right||0,bottom:re.bottom||0,left:re.left||0};let ie=+(i===`bottom`),ae=+(i===`top`),z=+(i===`right`),oe=+(i===`left`),se={boundary:c===`clipping-ancestors`?`clippingAncestors`:c,padding:re},ce=B.useRef(null),le=hm(a),ue=hm(s),de=typeof a==`function`?0:a,fe=typeof s==`function`?0:s,pe=[];p&&pe.push(p),pe.push(Es(e=>{let t=lb(e,i,N),n=typeof le.current==`function`?le.current(t):le.current,r=typeof ue.current==`function`?ue.current(t):ue.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[de,fe,N,i]));let me=w===`none`&&C!==`shift`,he=!me&&(u||E||C===`shift`),ge=C===`none`?null:ks({...se,padding:{top:re.top+1+ie,right:re.right+1+oe,bottom:re.bottom+1+ae,left:re.left+1+z},mainAxis:!E&&C===`flip`,crossAxis:w===`flip`&&`alignment`,fallbackAxisSideDirection:T}),_e=me?null:Ds({...se,rootBoundary:D,mainAxis:w!==`none`,crossAxis:he,limiter:u||E?void 0:Os(e=>{if(!ce.current)return{};let{width:t,height:n}=ce.current.getBoundingClientRect(),r=qa(Ua(e.placement)),i=r===`y`?t:n,a=r===`y`?re.left+re.right:re.top+re.bottom;return{offset:i/2+a/2}})},[se,u,E,D,re,w]);C===`shift`||w===`shift`||R===`center`?pe.push(_e,ge):pe.push(ge,_e),pe.push(As({...se,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!M.current)return;let i=e.style;i.setProperty(ob,`${t}px`),i.setProperty(sb,`${n}px`);let a=Gr(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(rb,`${u}px`),i.setProperty(ib,`${d}px`)}}),Qy(e=>({element:ce.current||Im(e.elements.floating).createElement(`div`),padding:ce.current?d:0}),[d]),{name:`transformOrigin`,fn(e){let{elements:{floating:t},middlewareData:n,placement:r,platform:o,rects:s,y:c}=e,l=Ua(r),u=Wa(r),d=qa(l)===`y`,f=ce.current,p=typeof a==`function`?a(lb(e,i,N)):a,m;m=!f&&u&&Math.abs(d?n.shift?.x||0:n.shift?.y||0)<=1?u===`start`===(d&&o.isRTL?.(t)===!0)?`100%`:`0%`:`${(d?n.arrow?.x||0:n.arrow?.y||0)+(d?f?.clientWidth||0:f?.clientHeight||0)/2}px`;let h=l===`top`||l===`left`?`calc(100% + ${p}px)`:`${-p}px`;return he&&d&&Math.abs(n.shift?.y||0)>p&&(h=`${s.reference.y+s.reference.height/2-c}px`),t.style.setProperty(ab,d?`${m} ${h}`:`${h} ${m}`),{}}},$y,b),q(()=>{!g&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[g,h]);let ve=B.useMemo(()=>({ancestorScroll:!f,elementResize:!f&&typeof ResizeObserver<`u`,layoutShift:!f&&typeof IntersectionObserver<`u`}),[f]),{refs:V,elements:ye,x:be,y:xe,middlewareData:Se,update:Ce,placement:we,context:Te,isPositioned:Ee,floatingStyles:De}=t({rootContext:h,open:m?g:void 0,placement:ne,middleware:pe,strategy:r,whileElementsMounted:m?void 0:(...e)=>ps(...e,ve),nodeId:y,externalTree:S}),{sideX:Oe,sideY:ke}=Se.adaptiveOrigin||eb,Ae=Ee?r:`fixed`,je=B.useMemo(()=>{let e;return e=Ee?b?{position:Ae,[Oe]:be,[ke]:xe}:{...De,position:Ae}:{position:Ae,top:0,left:0},e[ob]=`100vw`,e[sb]=`100vh`,Ee||(e.opacity=0),e},[b,Ae,Oe,be,ke,xe,De,Ee]),Me=B.useRef(null);q(()=>{if(!g)return;let e=j.current,t=typeof e==`function`?e():e,n=(fb(t)?t.current:t)||null;n!==Me.current&&(V.setPositionReference(n),Me.current=n)},[g,V,A,j]),B.useEffect(()=>{if(!g)return;let e=j.current;typeof e!=`function`&&fb(e)&&e.current!==Me.current&&(V.setPositionReference(e.current),Me.current=e.current)},[g,V,A,j]),B.useEffect(()=>{if(m&&g&&ye.reference&&ye.floating)return ps(ye.reference,ye.floating,Ce,ve)},[m,g,ye,Ce,ve]);let Ne=Ua(we),Pe=cb(i,Ne,N),Fe=Wa(we)||`center`,Ie=!!Se.hide?.referenceHidden;q(()=>{x&&g&&Ee&&(Ne!==te||I&&Fe!==R)&&F(we)},[x,I,g,Ee,we,Ne,Fe,te,R]);let Le=B.useMemo(()=>({position:`absolute`,top:Se.arrow?.y,left:Se.arrow?.x}),[Se.arrow]),Re=Se.arrow?.centerOffset!==0;return B.useMemo(()=>({positionerStyles:je,arrowStyles:Le,arrowRef:ce,arrowUncentered:Re,side:Pe,align:Fe,physicalSide:Ne,anchorHidden:Ie,refs:V,context:Te,isPositioned:Ee,update:Ce}),[je,Le,ce,Re,Pe,Fe,Ne,Ie,V,Te,Ee,Ce])}function fb(e){return e!=null&&`current`in e}var pb=B.createContext(void 0);function mb(){let e=B.useContext(pb);if(!e)throw Error(vm(59));return e}var hb=B.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,V.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})});function gb(e,t){e&&Object.assign(e.style,t)}var _b={position:`relative`,maxHeight:`100%`,overflowX:`hidden`,overflowY:`auto`};function vb(e){return e===`starting`?T_:Nm}function yb(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),v_(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},vb(r),i],stateAttributesMapping:zh})}var bb={},xb={},Sb=``;function Cb(e,t){return Xr(e)?e:t}function wb(e,t,n){return/hidden|clip/.test(e.getComputedStyle(Cb(t,n)).overflowY)}function Tb(e){if(typeof document>`u`)return!1;let t=Im(e);return Gr(t).innerWidth-t.documentElement.clientWidth>0}function Eb(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=Im(e),n=t.documentElement,r=t.body,i=Cb(n,r),a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function Db(e){let t=Im(e),n=t.documentElement,r=t.body,i=Cb(n,r),a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function Ob(e){let t=Im(e),n=t.documentElement,r=t.body,i=Gr(n),a=0,o=0,s=!1,c=Hm.create();if(ih&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,bb={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},Sb=n.style.scrollBehavior,xb={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=Cb(n,r);s=Eb(e),s?(n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`):(Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflowY:`hidden`,overflowX:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`)}function u(){Object.assign(n.style,bb),Object.assign(r.style,xb),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=Sb)}function d(){u(),c.request(l)}l();let f=Lm(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var kb=new class{lockCount=0;restore=null;timeoutLock=Gm.create();timeoutUnlock=Gm.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=Im(e),n=t.documentElement,r=t.body,i=Gr(n);if(wb(i,n,r)){let t=new i.MutationObserver(()=>{wb(i,n,r)||(t.disconnect(),this.restore=null,this.lock(e))}),a={attributes:!0};t.observe(n,a),t.observe(r,a),this.restore=()=>t.disconnect();return}let a=$m||!Tb(e);this.restore=a?Db(e):Ob(e)}};function Ab(e=!0,t=null){q(()=>{if(e)return kb.acquire(t)},[e,t])}var jb=20;function Mb(e,t,n,r){let[i,a]=B.useState(!1);q(()=>{if(!e||!t||n==null){a(!1);return}let r=Im(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-jb)},[e,t,n]),Ab(e&&(!t||i),r)}var Nb={position:`fixed`},Pb=B.forwardRef(function(e,t){let{anchor:n,className:r,render:i,positionMethod:a,side:o,align:s,sideOffset:c,alignOffset:l,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d,arrowPadding:f,sticky:p,disableAnchorTracking:m,alignItemWithTrigger:h=!0,collisionAvoidance:g=E_,style:_,...v}=e,y=xv(),b=Sv(),x=y.useState(`open`),S=y.useState(`mounted`),C=y.useState(`modal`),w=y.useState(`value`),T=y.useState(`openMethod`),E=y.useState(`positionerElement`),D=y.useState(`triggerElement`),O=y.useState(`isItemEqualToValue`),k=y.useState(`transitionStatus`),A=B.useRef(null),j=B.useRef(null),[M,N]=B.useState(h),P=S&&M&&T!==`touch`;!S&&M!==h&&N(h),B.useImperativeHandle(y.context.alignItemWithTriggerActiveRef,()=>P),Mb((P||C)&&x,T===`touch`,E,D);let F=ub({anchor:n,floatingRootContext:b,positionMethod:a,mounted:S,side:o,sideOffset:c,align:s,alignOffset:l,arrowPadding:f,collisionBoundary:u,collisionPadding:d,sticky:p,disableAnchorTracking:m??P,collisionAvoidance:g,keepMounted:!0}),I=P?`none`:F.side,ee=P?Nb:F.positionerStyles,L={open:x,side:I,align:F.align,anchorHidden:F.anchorHidden};q(()=>{y.set(`popupSide`,F.side)},[y,F.side]);let te=yb(e,L,{styles:ee,transitionStatus:k,props:v,refs:[t,y.useStateSetter(`positionerElement`)],hidden:!S,inert:!x}),R=B.useRef(0),ne=J(e=>{if(y.context.valuesRef.current.length===0)return;let t=R.current;R.current=e.size;let n=Gh(Kh);if(t!==0&&!y.state.multiple&&w!==null&&Vv(y.context.valuesRef.current,w,O)===-1){let e=y.context.initialValueRef.current,t=e!=null&&Vv(y.context.valuesRef.current,e,O)!==-1?e:null;y.context.setValue(t,n),t===null&&(y.set(`selectedIndex`,null),y.context.selectedItemTextRef.current=null)}if(t!==0&&y.state.multiple&&Array.isArray(w)){let e=w.filter(e=>Vv(y.context.valuesRef.current,e,O)!==-1);e.length!==w.length&&(y.context.setValue(e,n),e.length===0&&(y.set(`selectedIndex`,null),y.context.selectedItemTextRef.current=null))}if(x&&P){y.update({scrollUpArrowVisible:!1,scrollDownArrowVisible:!1});let e={height:``};gb(E,e),gb(y.context.popupRef.current,e)}}),re=B.useMemo(()=>({...F,side:I,alignItemWithTriggerActive:P,setControlledAlignItemWithTrigger:N,scrollUpArrowRef:A,scrollDownArrowRef:j}),[F,I,P,N]);return(0,V.jsx)(Vy,{elementsRef:y.context.listRef,labelsRef:y.context.labelsRef,onMapChange:ne,children:(0,V.jsxs)(pb.Provider,{value:re,children:[S&&C&&(0,V.jsx)(hb,{inert:Ry(!x),cutout:D}),te]})})}),Fb=`base-ui-disable-scrollbar`,Ib={className:Fb,getElement(e){return(0,V.jsx)(`style`,{nonce:e,href:Fb,precedence:`base-ui:low`,children:`.${Fb}{scrollbar-width:none}.${Fb}::-webkit-scrollbar{display:none}`})}},Lb=B.createContext(void 0);function Rb(e){let t=B.useContext(Lb);if(t===void 0&&!e)throw Error(vm(69));return t}var zb=new Set([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`Home`,`End`]),Bb=B.createContext(void 0),Vb={disableStyleElements:!1};function Hb(){return B.useContext(Bb)??Vb}var Ub=`--transform-origin`,Wb={...zh,...Eh},Gb=B.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,...o}=e,s=xv(),c=s.useState(`multiple`),l=s.useState(`readOnly`),u=s.useState(`highlightItemOnHover`),d=Sv(),{side:f,align:p,alignItemWithTriggerActive:m,isPositioned:h,setControlledAlignItemWithTrigger:g}=mb(),_=Rb(!0)!=null,v=Xy(),{nonce:y,disableStyleElements:b}=Hb(),x=s.useState(`id`),S=s.useState(`open`),C=s.useState(`openMethod`),w=s.useState(`mounted`),T=s.useState(`popupProps`),E=s.useState(`transitionStatus`),D=s.useState(`triggerElement`),O=s.useState(`positionerElement`),k=s.useState(`listElement`),A=B.useRef(!1),j=B.useRef(!1),M=B.useRef({}),N=Um(),P=J(e=>{if(!O||!s.context.popupRef.current||!j.current)return;let t=O.style.top===`0px`,n=O.style.bottom===`0px`;if(A.current||!m||!t&&!n){s.context.handleScrollArrowVisibility(e);return}let r=Jb(O),i=Yb(O.getBoundingClientRect().height,`y`,r),a=Im(O),o=Gr(O),c=o.getComputedStyle(O),l=parseFloat(c.marginTop),u=parseFloat(c.marginBottom),d=Kb(o.getComputedStyle(s.context.popupRef.current)),f=Math.min(a.documentElement.clientHeight-l-u,d),p=e.scrollTop,h=qb(e),g=null,_=e=>{O.style.height=`${e}px`},v=t?h-p:p,y=Math.min(i+v,f);if(v<=1){let n=cy(v,0,f-i);n>0&&_(i+n),e.scrollTop=t?h:0,f-(i+n)<=1&&(A.current=!0),s.context.handleScrollArrowVisibility(e);return}f-y>1?g=t?1/0:0:n&&p<h&&(g=p-(v-(i+v-f)));let b=Math.ceil(y);if(b!==0&&_(b),g!=null){let t=cy(g,0,qb(e));Math.abs(e.scrollTop-t)>1&&(e.scrollTop=t)}b>=f-1&&(A.current=!0),s.context.handleScrollArrowVisibility(e)});B.useImperativeHandle(s.context.scrollHandlerRef,()=>P,[P]),rv({open:S,ref:s.context.popupRef,onComplete(){S&&s.context.onOpenChangeComplete(!0)}});let F={open:S,transitionStatus:E,side:f,align:p};q(()=>{O&&s.context.popupRef.current&&!Object.keys(M.current).length&&(M.current={top:O.style.top||`0`,left:O.style.left||`0`,right:O.style.right,height:O.style.height,bottom:O.style.bottom,minHeight:O.style.minHeight,maxHeight:O.style.maxHeight,marginTop:O.style.marginTop,marginBottom:O.style.marginBottom})},[s,O]),q(()=>{S||m||(j.current=!1,A.current=!1,gb(O,M.current))},[S,m,O]),q(()=>{let e=s.context.popupRef.current;if(!S||!D||!O||!e||m&&!h||s.state.transitionStatus===`ending`)return;if(j.current=!0,e.style.removeProperty(Ub),!m){N.request(()=>s.context.handleScrollArrowVisibility(k||e));return}let t=Qb(e);try{let t=s.context.selectedItemTextRef.current;t?.isConnected||(t=!s.select(`hasSelectedValue`)&&s.context.firstItemTextRef.current?.isConnected?s.context.firstItemTextRef.current:null);let n=s.context.valueRef.current,r=Gr(O),i=r.getComputedStyle(O),a=r.getComputedStyle(e),o=Im(D),c=Jb(D),l=Xb(D.getBoundingClientRect(),c),d=Xb(O.getBoundingClientRect(),c),f=l.height,p=k||e,m=p.scrollHeight,h=parseFloat(a.borderBottomWidth),_=parseFloat(i.marginTop)||10,y=parseFloat(i.marginBottom)||10,b=parseFloat(i.minHeight)||100,x=Kb(a),S=o.documentElement.clientHeight-_-y,C=o.documentElement.clientWidth,w=S-l.bottom+f,T,E=v===`rtl`?l.right-d.width:l.left,j=0;if(t&&n){let e=Xb(n.getBoundingClientRect(),c);T=Xb(t.getBoundingClientRect(),c),E=d.left+(v===`rtl`?e.right-T.right:e.left-T.left);let r=e.top-l.top+e.height/2;j=T.top-d.top+T.height/2-r}let N=w+j+y+h,P=Math.min(S,N),F=S-_-y,I=N-P,ee=C-5;O.style.left=`${cy(E,5,ee-d.width)}px`,O.style.height=`${P}px`,O.style.maxHeight=`none`,O.style.marginTop=`${_}px`,O.style.marginBottom=`${y}px`,e.style.height=`100%`;let L=qb(p),te=I>=L-1;te&&(P=Math.min(S,d.height)-(I-L));let R=l.top<20||l.bottom>S-20||Math.ceil(P)+1<Math.min(m,b),ne=(r.visualViewport?.scale??1)!==1&&ih;if(R||ne){gb(O,M.current),g(!1);return}let re=Math.max(b,P);if(te){let e=Math.max(0,S-N);O.style.top=d.height>=F?`0`:`${e}px`,O.style.height=`${P}px`,p.scrollTop=qb(p)}else O.style.bottom=`0`,p.scrollTop=I;if(T){let t=d.top,n=d.height,r=T.top+T.height/2,i=cy(n>0?(r-t)/n*100:50,0,100);e.style.setProperty(Ub,`50% ${i}%`)}(re===S||P>=x)&&(A.current=!0),s.context.handleScrollArrowVisibility(p),u&&s.state.selectedIndex===null&&s.state.activeIndex===null&&s.context.listRef.current[0]!=null&&s.set(`activeIndex`,0)}finally{t()}},[s,S,O,D,m,g,N,k,u,v,h]),B.useEffect(()=>{if(!m||!O||!S)return;let e=Gr(O);function t(e){s.context.setOpen(!1,Gh(tg,e))}return Lm(e,`resize`,t)},[s,m,O,S]);let I={...k?{role:`presentation`}:{role:`listbox`,"aria-multiselectable":c||void 0,"aria-readonly":l||void 0,id:`${x}-list`},onKeyDown(e){_&&zb.has(e.key)&&e.stopPropagation()},onScroll(e){k||P(e.currentTarget)},...m&&{style:k?{height:`100%`}:_b},className:!k&&m?Ib.className:void 0},ee=v_(`div`,e,{ref:[t,s.context.popupRef],state:F,stateAttributesMapping:Wb,props:[T,I,vb(E),o]});return(0,V.jsxs)(B.Fragment,{children:[!b&&Ib.getElement(y),(0,V.jsx)(q_,{context:d,modal:!1,disabled:!w,openInteractionType:C,returnFocus:a,restoreFocus:!0,children:ee})]})});function Kb(e){let t=e.maxHeight;return t.endsWith(`px`)&&parseFloat(t)||1/0}function qb(e){return ly(e.scrollHeight,e.clientHeight)}function Jb(e){return us.getScale(e)}function Yb(e,t,n){return e/n[t]}function Xb(e,t){return so({x:Yb(e.x,`x`,t),y:Yb(e.y,`y`,t),width:Yb(e.width,`x`,t),height:Yb(e.height,`y`,t)})}var Zb=[[`transform`,`none`],[`scale`,`1`],[`translate`,`0 0`]];function Qb(e){let{style:t}=e,n={};for(let[e,r]of Zb)n[e]=t.getPropertyValue(e),t.setProperty(e,r,`important`);return()=>{for(let[e]of Zb){let r=n[e];r?t.setProperty(e,r):t.removeProperty(e)}}}var $b=B.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=xv(),s=o.useState(`multiple`),c=o.useState(`readOnly`),{alignItemWithTriggerActive:l}=mb(),u=o.useState(`hasScrollArrows`),d=o.useState(`openMethod`),f={id:`${o.useState(`id`)}-list`,role:`listbox`,"aria-multiselectable":s||void 0,"aria-readonly":c||void 0,onScroll(e){o.context.scrollHandlerRef.current?.(e.currentTarget)},...l&&{style:_b},className:u&&d!==`touch`?Ib.className:void 0};return v_(`div`,e,{ref:[t,o.useStateSetter(`listElement`)],props:[f,a]})});function ex(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=By(),u=B.useRef(-1),[d,f]=B.useState(a==null&&t?()=>{if(u.current===-1){let e=l.current;l.current+=1,u.current=e}return u.current}:-1),p=a??d,m=B.useRef(null),h=B.useCallback(e=>{let t=m.current;t&&s(t),m.current=e,e&&o(e,{metadata:r??null,index:a??null,label:n,textRef:i})},[a,o,s,r,n,i]);return q(()=>{if(a==null)return c(e=>{let t=m.current?e.get(m.current)?.index:null;t!=null&&f(t)})},[a,c]),{ref:h,index:p}}var tx=B.createContext(void 0);function nx(){let e=B.useContext(tx);if(!e)throw Error(vm(57));return e}var rx=B.memo(B.forwardRef(function(e,t){let{render:n,className:r,style:i,value:a=null,label:o,disabled:s=!1,nativeButton:c=!1,...l}=e,u=B.useRef(null),d=ex({guess:!0,label:o,textRef:u}),f=xv(),{props:p,multiple:m,disabled:h,readOnly:g,isItemEqualToValue:_}=f.useState(`itemRoot`),v=h||s,y=f.useState(`isActive`,d.index),b=f.useState(`open`),x=f.useState(`isSelected`,a),S=f.useState(`isSelectedByFocus`,d.index),C=d.index,w=B.useRef(null);q(()=>{let e=f.context.valuesRef.current;return e[C]=a,()=>{delete e[C]}},[C,a,f]),q(()=>{let e=f.state.value,t=f.state.selectedIndex,n=t,r;m&&Array.isArray(e)?(n=Wv(C,a,f.context.valuesRef.current,e,_,t),r=n===C,C===t&&!r&&(f.context.selectedItemTextRef.current=null)):(r=e!==void 0&&Rv(a,e,_),r&&(n=C)),f.set(`selectedIndex`,n),r&&u.current&&(f.context.selectedItemTextRef.current=u.current)},[C,m,_,f,a]);let T=B.useRef(`mouse`),E=B.useRef(!1),{getButtonProps:D,buttonRef:O}=Dy({disabled:v,focusableWhenDisabled:!0,native:c,composite:!0}),k={disabled:v,selected:x,highlighted:y};function A(e){if(h||g)return;let t=f.state.value;if(m){let n=Array.isArray(t)?t:[],r=x?Gv(n,a,_):[...n,a];f.context.setValue(r,Gh(Yh,e))}else f.context.setValue(a,Gh(Yh,e)),f.context.setOpen(!1,Gh(Yh,e))}function j(){f.context.selectionRef.current.dragY=0}let M={role:`option`,"aria-selected":x,tabIndex:b&&y?0:-1,onKeyDown(e){f.set(`activeIndex`,C),e.key===` `&&f.context.typingRef.current&&e.preventDefault()},onClick(e){let t=T.current!==`touch`,n=e.nativeEvent.pointerType,r=t&&lh(e.nativeEvent)&&(n!==void 0||y),i=t&&!r&&!E.current;E.current=!1,!(v||i)&&A(e.nativeEvent)},onPointerEnter(e){T.current=e.pointerType},onPointerMove(e){if(e.pointerType===`mouse`&&e.buttons===1){let t=f.context.selectionRef.current;t.dragY+=e.movementY,t.dragY**2>=64&&(t.allowUnselectedMouseUp=!0)}},onPointerDown(e){T.current=e.pointerType,E.current=!0,j()},onMouseUp(){if(j(),v||T.current===`touch`||E.current)return;let e=!f.context.selectionRef.current.allowSelectedMouseUp&&x,t=!f.context.selectionRef.current.allowUnselectedMouseUp&&!x;e||t||(E.current=!0,w.current?.click(),E.current=!1)}},N=v_(`div`,e,{ref:[O,t,d.ref,w],state:k,props:[p,M,l,D]}),P=B.useMemo(()=>({selected:x,index:C,textRef:u,selectedByFocus:S}),[x,C,u,S]);return(0,V.jsx)(tx.Provider,{value:P,children:N})})),ix=B.memo(B.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a,selected:o,...s}=e,c=B.useRef(null),{transitionStatus:l,setMounted:u}=Q_(o),d=v_(`span`,e,{ref:[t,c],state:{selected:o,transitionStatus:l},props:[{"aria-hidden":!0,children:`✔️`},s],stateAttributesMapping:Eh});return rv({batch:!0,enabled:!o,open:o,ref:c,onComplete(){o||u(!1)}}),d})),ax=B.forwardRef(function(e,t){let{selected:n}=nx();return e.keepMounted||n?(0,V.jsx)(ix,{...e,selected:n,ref:t}):null}),ox=B.memo(B.forwardRef(function(e,t){let{index:n,textRef:r,selectedByFocus:i}=nx(),a=xv(),{render:o,className:s,style:c,...l}=e;return v_(`div`,e,{ref:[B.useCallback(e=>{e&&(n===0&&(a.context.firstItemTextRef.current=e),i&&(a.context.selectedItemTextRef.current=e))},[a,n,i]),t,r],props:l})})),sx=(0,B.forwardRef)(({title:e,titleId:t,...n},r)=>(0,V.jsxs)(`svg`,{viewBox:`0 0 24 24`,width:`1em`,height:`1em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,V.jsx)(`title`,{id:t,children:e}):null,(0,V.jsx)(`path`,{fill:`currentColor`,d:`M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04c-2.04.027-3.91 1.183-4.961 3.014c-2.117 3.675-.546 9.103 1.519 12.09c1.013 1.454 2.208 3.09 3.792 3.039c1.52-.065 2.09-.987 3.935-.987c1.831 0 2.35.987 3.96.948c1.637-.026 2.676-1.48 3.676-2.948c1.156-1.688 1.636-3.325 1.662-3.415c-.039-.013-3.182-1.221-3.22-4.857c-.026-3.04 2.48-4.494 2.597-4.559c-1.429-2.09-3.623-2.324-4.39-2.376c-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83c-1.207.052-2.662.805-3.532 1.818c-.78.896-1.454 2.338-1.273 3.714c1.338.104 2.715-.688 3.559-1.701`})]})),cx=`data:image/svg+xml,%3csvg%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8%2012.5493C8%2010.9893%208%2010.2107%208.29333%209.61333C8.576%209.04%209.04%208.57333%209.616%208.29333C10.2133%208%2010.992%208%2012.5493%208H51.4507C53.0107%208%2053.7867%208%2054.3867%208.29333C54.96%208.57333%2055.424%209.04%2055.704%209.61333C56%2010.2133%2056%2010.992%2056%2012.5493V51.4507C56%2053.0107%2056%2053.7867%2055.7067%2054.3867C55.424%2054.96%2054.96%2055.424%2054.3867%2055.704C53.7867%2056%2053.008%2056%2051.4507%2056H12.5493C10.9893%2056%2010.2133%2056%209.61333%2055.7067C9.03998%2055.4249%208.57656%2054.9606%208.296%2054.3867C8%2053.7867%208%2053.008%208%2051.4507V12.5493Z'%20fill='%230000FF'%20/%3e%3c/svg%3e`,lx=`data:image/svg+xml,%3csvg%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='64'%20height='64'%20fill='%23627EEA'%20/%3e%3cg%20transform='translate(18%208)'%3e%3cpath%20d='M14.996%200V17.74L29.99%2024.44L14.996%200Z'%20fill='white'%20fill-opacity='0.602'%20/%3e%3cpath%20d='M14.996%200L0%2024.44L14.996%2017.74V0Z'%20fill='white'%20/%3e%3cpath%20d='M14.996%2035.936V47.99L30%2027.232L14.996%2035.936Z'%20fill='white'%20fill-opacity='0.602'%20/%3e%3cpath%20d='M14.996%2047.99V35.934L0%2027.232L14.996%2047.99Z'%20fill='white'%20/%3e%3cpath%20d='M14.996%2033.146L29.99%2024.44L14.996%2017.744V33.146Z'%20fill='white'%20fill-opacity='0.2'%20/%3e%3cpath%20d='M0%2024.44L14.996%2033.146V17.744L0%2024.44Z'%20fill='white'%20fill-opacity='0.602'%20/%3e%3c/g%3e%3c/svg%3e`,ux=`data:image/svg+xml,%3csvg%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='64'%20height='64'%20fill='black'%20/%3e%3cpath%20d='M46.964%2022.4753C46.7023%2022.7154%2046.3609%2022.8511%2046.005%2022.8563H12.3524C11.1577%2022.8563%2010.5556%2021.497%2011.3817%2020.7L16.9072%2015.3927C17.1641%2015.1449%2017.5064%2015.0044%2017.8639%2015H51.6496C52.8559%2015%2053.4463%2016.371%2052.6063%2017.1703L46.964%2022.4753ZM46.964%2048.6328C46.7026%2048.8718%2046.3599%2049.003%2046.005%2048.9999H12.3524C11.1577%2048.9999%2010.5556%2047.6522%2011.3817%2046.8552L16.9072%2041.5363C17.1662%2041.2936%2017.5083%2041.1582%2017.8639%2041.1576H51.6496C52.8559%2041.1576%2053.4463%2042.5169%2052.6063%2043.3139L46.964%2048.6328ZM46.964%2028.4517C46.7023%2028.2136%2046.3595%2028.0832%2046.005%2028.0869H12.3524C11.1577%2028.0869%2010.5556%2029.4346%2011.3817%2030.2293L16.9072%2035.5505C17.1687%2035.7893%2017.5092%2035.9241%2017.8639%2035.9293H51.6496C52.8559%2035.9293%2053.4463%2034.57%2052.6063%2033.7729L46.964%2028.4517Z'%20fill='white'%20/%3e%3c/svg%3e`,dx=`data:image/svg+xml,%3csvg%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='64'%20height='64'%20fill='black'%20/%3e%3cpath%20d='M29.689%2047H22.3877L29.1548%2026.12H20.5L22.3877%2020H46.5L44.6123%2026.12H36.4205L29.689%2047Z'%20fill='white'%20/%3e%3c/svg%3e`,fx=[{assets:[`USDC.e`,`USDT0`,`pathUSD`],available:!0,icon:dx,id:`tempo`,name:`Tempo`},{assets:[`USDC`,`ETH`,`WETH`,`+3`],available:!1,icon:cx,id:`base`,name:`Base`},{assets:[`USDC`,`ETH`,`USDT`,`+2`],available:!1,icon:lx,id:`ethereum`,name:`Ethereum`},{assets:[`USDC`,`SOL`],available:!1,icon:ux,id:`solana`,name:`Solana`}],px=[{icon:Yf,symbol:`USDC.e`},{icon:Xf,symbol:`USDT0`},{icon:sp,symbol:`pathUSD`}];function mx(e){let t=e.heading===`h4`?`h5`:`h2`;return e.method===`tempo`?(0,V.jsxs)(`div`,{...Y.column?{className:`z_tempo_2d_id-GE1xyWe z_tempo_2d_id-GE1xyWo z_tempo_2d_id-GE1xyWp z_tempo_2d_id-GE1xyWq`}:Y.column(),children:[(0,V.jsxs)(`div`,{...Y.intro?{className:`z_tempo_2d_id-GE1xyWe z_tempo_2d_id-GE1xyW12`}:Y.intro(),children:[(0,V.jsx)(hx,{back:(0,V.jsx)(ke,{...Y.back?{className:`z-tempo_2d_id-GE1xyW-styles-back-align-items-0 z-tempo_2d_id-GE1xyW-styles-back-border-radius-1 z-tempo_2d_id-GE1xyW-styles-back-bottom-2 z-tempo_2d_id-GE1xyW-styles-apple-text-0 z-tempo_2d_id-GE1xyW-styles-back-display-3 z-tempo_2d_id-GE1xyW-styles-back-h-4 z-tempo_2d_id-GE1xyW-styles-back-justify-content-5 z-tempo_2d_id-GE1xyW-styles-back-left-6 z-tempo_2d_id-GE1xyW-styles-back-margin-block-7 z-tempo_2d_id-GE1xyW-styles-back-outline-8 z-tempo_2d_id-GE1xyW-styles-back-position-9 z-tempo_2d_id-GE1xyW-styles-back-top-10 z-tempo_2d_id-GE1xyW-styles-back-w-11 z-tempo_2d_id-GE1xyW-styles-back-outline-12 z-tempo_2d_id-GE1xyW-styles-back-outline-color-13 z-tempo_2d_id-GE1xyW-styles-back-outline-offset-14 z-tempo_2d_id-GE1xyW-styles-back-bg-15 z-tempo_2d_id-GE1xyW-styles-back-left-16`}:Y.back(),"aria-label":`Back`,...e.address?{search:{address:e.address},to:`/deposit`}:{to:`/`},children:(0,V.jsx)(Bc,{...Y.backIcon?{className:`z-tempo_2d_id-GE1xyW-styles-backIcon-h-0 z-tempo_2d_id-GE1xyW-styles-backIcon-w-1`}:Y.backIcon()})}),heading:e.heading,title:`Receive funds`}),(0,V.jsxs)(`p`,{...Y.description?{className:`z-tempo_2d_id-GE1xyW-styles-description-text-0 z-tempo_2d_id-GE1xyW-styles-description-text-1 z_tempo_2d_id-GE1xyW4 z_tempo_2d_id-GE1xyWv z_tempo_2d_id-GE1xyWw z_tempo_2d_id-GE1xyWx z-tempo_2d_id-GE1xyW-styles-description-font-weight-2 z-tempo_2d_id-GE1xyW-styles-description-font-weight-3 z_tempo_2d_id-GE1xyWy z_tempo_2d_id-GE1xyWz`}:Y.description(),children:[`Send `,(0,V.jsx)(`strong`,{children:`supported stablecoins`}),` to this address.`]})]}),e.address?(0,V.jsx)(_x,{address:e.address}):e.error?(0,V.jsxs)(pu,{intent:`negative`,children:[(0,V.jsx)(pu.Icon,{}),(0,V.jsx)(pu.Content,{children:e.error})]}):null]}):(0,V.jsxs)(`div`,{...Y.column?{className:`z_tempo_2d_id-GE1xyWe z_tempo_2d_id-GE1xyWo z_tempo_2d_id-GE1xyWp z_tempo_2d_id-GE1xyWq`}:Y.column(),children:[(0,V.jsxs)(`div`,{...Y.intro?{className:`z_tempo_2d_id-GE1xyWe z_tempo_2d_id-GE1xyW12`}:Y.intro(),children:[(0,V.jsx)(hx,{back:(0,V.jsx)(ke,{...Y.back?{className:`z-tempo_2d_id-GE1xyW-styles-back-align-items-0 z-tempo_2d_id-GE1xyW-styles-back-border-radius-1 z-tempo_2d_id-GE1xyW-styles-back-bottom-2 z-tempo_2d_id-GE1xyW-styles-apple-text-0 z-tempo_2d_id-GE1xyW-styles-back-display-3 z-tempo_2d_id-GE1xyW-styles-back-h-4 z-tempo_2d_id-GE1xyW-styles-back-justify-content-5 z-tempo_2d_id-GE1xyW-styles-back-left-6 z-tempo_2d_id-GE1xyW-styles-back-margin-block-7 z-tempo_2d_id-GE1xyW-styles-back-outline-8 z-tempo_2d_id-GE1xyW-styles-back-position-9 z-tempo_2d_id-GE1xyW-styles-back-top-10 z-tempo_2d_id-GE1xyW-styles-back-w-11 z-tempo_2d_id-GE1xyW-styles-back-outline-12 z-tempo_2d_id-GE1xyW-styles-back-outline-color-13 z-tempo_2d_id-GE1xyW-styles-back-outline-offset-14 z-tempo_2d_id-GE1xyW-styles-back-bg-15 z-tempo_2d_id-GE1xyW-styles-back-left-16`}:Y.back(),"aria-label":`Back`,to:`/`,children:(0,V.jsx)(Bc,{...Y.backIcon?{className:`z-tempo_2d_id-GE1xyW-styles-backIcon-h-0 z-tempo_2d_id-GE1xyW-styles-backIcon-w-1`}:Y.backIcon()})}),heading:e.heading,title:`Deposit`}),(0,V.jsx)(`p`,{...Y.description?{className:`z-tempo_2d_id-GE1xyW-styles-description-text-0 z-tempo_2d_id-GE1xyW-styles-description-text-1 z_tempo_2d_id-GE1xyW4 z_tempo_2d_id-GE1xyWv z_tempo_2d_id-GE1xyWw z_tempo_2d_id-GE1xyWx z-tempo_2d_id-GE1xyW-styles-description-font-weight-2 z-tempo_2d_id-GE1xyW-styles-description-font-weight-3 z_tempo_2d_id-GE1xyWy z_tempo_2d_id-GE1xyWz`}:Y.description(),children:`Choose an option below to send stablecoins to your wallet.`})]}),e.address?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(`section`,{...Y.section?{className:`z_tempo_2d_id-GE1xyWe z_tempo_2d_id-GE1xyW12`}:Y.section(),children:[(0,V.jsx)(t,{...Y.sectionTitle?{className:`z-tempo_2d_id-GE1xyW-styles-sectionTitle-font-family-0 z-tempo_2d_id-GE1xyW-styles-sectionTitle-font-size-1 z-tempo_2d_id-GE1xyW-styles-sectionTitle-font-weight-2 z-tempo_2d_id-GE1xyW-styles-sectionTitle-letter-spacing-3 z-tempo_2d_id-GE1xyW-styles-sectionTitle-line-height-4`}:Y.sectionTitle(),children:`Crypto`}),(0,V.jsx)(`ul`,{...Y.list?{className:`z_tempo_2d_id-GE1xyWe z_tempo_2d_id-GE1xyW1a z_tempo_2d_id-GE1xyW1b z_tempo_2d_id-GE1xyW1c z_tempo_2d_id-GE1xyWu`}:Y.list(),role:`list`,children:fx.map(t=>(0,V.jsx)(`li`,{children:(0,V.jsx)(gx,{address:t.available?e.address:void 0,assets:t.assets,icon:(0,V.jsx)(`img`,{...Y.logo?{className:`z_tempo_2d_id-GE1xyWj z_tempo_2d_id-GE1xyWk z_tempo_2d_id-GE1xyW1d z_tempo_2d_id-GE1xyW1e`}:Y.logo(),alt:``,src:t.icon}),name:t.name})},t.id))})]}),(0,V.jsxs)(`section`,{...Y.section?{className:`z_tempo_2d_id-GE1xyWe z_tempo_2d_id-GE1xyW12`}:Y.section(),children:[(0,V.jsx)(t,{...Y.sectionTitle?{className:`z-tempo_2d_id-GE1xyW-styles-sectionTitle-font-family-0 z-tempo_2d_id-GE1xyW-styles-sectionTitle-font-size-1 z-tempo_2d_id-GE1xyW-styles-sectionTitle-font-weight-2 z-tempo_2d_id-GE1xyW-styles-sectionTitle-letter-spacing-3 z-tempo_2d_id-GE1xyW-styles-sectionTitle-line-height-4`}:Y.sectionTitle(),children:`Cash`}),(0,V.jsx)(`ul`,{...Y.list?{className:`z_tempo_2d_id-GE1xyWe z_tempo_2d_id-GE1xyW1a z_tempo_2d_id-GE1xyW1b z_tempo_2d_id-GE1xyW1c z_tempo_2d_id-GE1xyWu`}:Y.list(),role:`list`,children:(0,V.jsx)(`li`,{children:(0,V.jsx)(gx,{assets:[`Coinbase`],icon:(0,V.jsx)(sx,{...Y.apple?{className:`z-tempo_2d_id-GE1xyW-styles-apple-text-0 z-tempo_2d_id-GE1xyW-styles-apple-h-1 z-tempo_2d_id-GE1xyW-styles-apple-w-2`}:Y.apple(),"aria-hidden":!0}),name:`Apple Pay`})})})]})]}):e.error?(0,V.jsxs)(pu,{intent:`negative`,children:[(0,V.jsx)(pu.Icon,{}),(0,V.jsx)(pu.Content,{children:e.error})]}):null]})}function hx(e){let t=e.heading??`h1`;return(0,V.jsxs)(`header`,{...Y.header?{className:`z_tempo_2d_id-GE1xyW0 z_tempo_2d_id-GE1xyW18 z_tempo_2d_id-GE1xyW19`}:Y.header(),children:[e.back,(0,V.jsx)(t,{...Y.title?{className:`z-tempo_2d_id-GE1xyW-styles-title-letter-spacing-0 z-tempo_2d_id-GE1xyW-styles-title-text-align-1 z-tempo_2d_id-GE1xyW-styles-title-font-family-2 z-tempo_2d_id-GE1xyW-styles-title-font-size-3 z-tempo_2d_id-GE1xyW-styles-title-font-weight-4 z-tempo_2d_id-GE1xyW-styles-title-line-height-5`}:Y.title(),children:e.title})]})}function gx(e){let{address:t}=e,n=(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`span`,{...Y.methodIcon?{className:`z_tempo_2d_id-GE1xyWh z_tempo_2d_id-GE1xyW0 z_tempo_2d_id-GE1xyWn z_tempo_2d_id-GE1xyW1d z_tempo_2d_id-GE1xyW18 z_tempo_2d_id-GE1xyW1e`}:Y.methodIcon(),children:e.icon}),(0,V.jsxs)(`span`,{...Y.networkBody?{className:`z_tempo_2d_id-GE1xyWe z_tempo_2d_id-GE1xyW1a z_tempo_2d_id-GE1xyW1f`}:Y.networkBody(),children:[(0,V.jsx)(`span`,{...Y.networkName?{className:`z_tempo_2d_id-GE1xyW1g z_tempo_2d_id-GE1xyW1h z_tempo_2d_id-GE1xyW1i z_tempo_2d_id-GE1xyW1j z_tempo_2d_id-GE1xyW1k`}:Y.networkName(),children:e.name}),(0,V.jsx)(`span`,{...Y.tags?{className:`z_tempo_2d_id-GE1xyW0 z_tempo_2d_id-GE1xyW25 z_tempo_2d_id-GE1xyW1a`}:Y.tags(),children:e.assets.map(e=>(0,B.createElement)(`span`,{...Y.tag?{className:`z_tempo_2d_id-GE1xyW22 z_tempo_2d_id-GE1xyW23 z_tempo_2d_id-GE1xyW2 z_tempo_2d_id-GE1xyW24 z_tempo_2d_id-GE1xyW1s z_tempo_2d_id-GE1xyW1t z_tempo_2d_id-GE1xyW1u z_tempo_2d_id-GE1xyW1v z_tempo_2d_id-GE1xyW1w`}:Y.tag(),key:e},e))})]}),t?(0,V.jsx)(Wc,{...Y.chevron?{className:`z-tempo_2d_id-GE1xyW-styles-chevron-text-0 z-tempo_2d_id-GE1xyW-styles-chevron-flex-shrink-1 z-tempo_2d_id-GE1xyW-styles-chevron-h-2 z-tempo_2d_id-GE1xyW-styles-chevron-ml-3 z-tempo_2d_id-GE1xyW-styles-chevron-w-4`}:Y.chevron()}):(0,V.jsx)(`span`,{...Y.soon?{className:`z_tempo_2d_id-GE1xyW2 z_tempo_2d_id-GE1xyWn z_tempo_2d_id-GE1xyW1r z_tempo_2d_id-GE1xyW1s z_tempo_2d_id-GE1xyW1t z_tempo_2d_id-GE1xyW1u z_tempo_2d_id-GE1xyW1v z_tempo_2d_id-GE1xyW1w`}:Y.soon(),children:`Coming soon`})]});return t?(0,V.jsx)(ke,{...Y.network({available:!0}),search:{address:t,method:`tempo`},to:`/deposit`,children:n}):(0,V.jsx)(`div`,{...Y.network({available:!1}),"aria-disabled":!0,children:n})}function _x(e){let[t,n]=(0,B.useState)();function r(t){Promise.resolve().then(()=>navigator.clipboard.writeText(e.address)).then(()=>{n(t),setTimeout(()=>n(void 0),2e3)},()=>n(`failed`))}return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsxs)(`div`,{...Y.card?{className:`z_tempo_2d_id-GE1xyWc z_tempo_2d_id-GE1xyWd z_tempo_2d_id-GE1xyWe z_tempo_2d_id-GE1xyWf z_tempo_2d_id-GE1xyWg`}:Y.card(),children:[(0,V.jsxs)(`span`,{...Y.cardHeader?{className:`z_tempo_2d_id-GE1xyWh z_tempo_2d_id-GE1xyW0 z_tempo_2d_id-GE1xyWi`}:Y.cardHeader(),children:[(0,V.jsx)(`span`,{...Y.label?{className:`z-tempo_2d_id-GE1xyW-styles-chevron-text-0 z-tempo_2d_id-GE1xyW-styles-label-font-family-0 z-tempo_2d_id-GE1xyW-styles-label-font-size-1 z-tempo_2d_id-GE1xyW-styles-label-font-weight-2 z-tempo_2d_id-GE1xyW-styles-label-letter-spacing-3 z-tempo_2d_id-GE1xyW-styles-label-line-height-4`}:Y.label(),children:`Deposit address`}),(0,V.jsx)(`button`,{...Y.copy?{className:`z_tempo_2d_id-GE1xyWr z_tempo_2d_id-GE1xyWs z-tempo_2d_id-GE1xyW-styles-copy-text-0 z-tempo_2d_id-GE1xyW-styles-copy-text-1 z_tempo_2d_id-GE1xyWt z_tempo_2d_id-GE1xyW0 z_tempo_2d_id-GE1xyWn z-tempo_2d_id-GE1xyW-styles-copy-outline-2 z-tempo_2d_id-GE1xyW-styles-copy-outline-3 z-tempo_2d_id-GE1xyW-styles-copy-outline-color-4 z-tempo_2d_id-GE1xyW-styles-copy-outline-offset-5 z_tempo_2d_id-GE1xyWu z-tempo_2d_id-GE1xyW-styles-copy-position-6 z-tempo_2d_id-GE1xyW-styles-copy-position-7 z-tempo_2d_id-GE1xyW-styles-copy-content-8 z-tempo_2d_id-GE1xyW-styles-copy-inset-9`}:Y.copy(),"aria-label":t===`icon`?`Address copied`:`Copy address`,onClick:()=>r(`icon`),type:`button`,children:t===`icon`?(0,V.jsx)(Hc,{...Y.icon?{className:`z-tempo_2d_id-GE1xyW-styles-chevron-h-2 z-tempo_2d_id-GE1xyW-styles-chevron-w-4`}:Y.icon()}):(0,V.jsx)(Jc,{...Y.icon?{className:`z-tempo_2d_id-GE1xyW-styles-chevron-h-2 z-tempo_2d_id-GE1xyW-styles-chevron-w-4`}:Y.icon()})})]}),(0,V.jsx)(`div`,{...Y.qr?{className:`z_tempo_2d_id-GE1xyW1l z_tempo_2d_id-GE1xyW1m z_tempo_2d_id-GE1xyW1n z_tempo_2d_id-GE1xyW1o z_tempo_2d_id-GE1xyW1p z_tempo_2d_id-GE1xyW1q`}:Y.qr(),children:(0,V.jsx)(xd,{arena:dx,value:e.address})}),(0,V.jsx)(`code`,{...Y.address?{className:`z_tempo_2d_id-GE1xyW2 z_tempo_2d_id-GE1xyW3 z_tempo_2d_id-GE1xyW4 z_tempo_2d_id-GE1xyW5 z_tempo_2d_id-GE1xyW6 z_tempo_2d_id-GE1xyW7 z_tempo_2d_id-GE1xyW8 z_tempo_2d_id-GE1xyW9 z_tempo_2d_id-GE1xyWa z_tempo_2d_id-GE1xyWb`}:Y.address(),"data-testid":`deposit-address`,title:e.address,children:e.address})]}),(0,V.jsxs)(`div`,{...Y.fields?{className:`z_tempo_2d_id-GE1xyWc z-tempo_2d_id-GE1xyW-styles-fields-border-0 z-tempo_2d_id-GE1xyW-styles-fields-border-color-1 z-tempo_2d_id-GE1xyW-styles-fields-border-radius-2 z-tempo_2d_id-GE1xyW-styles-fields-border-top-3 z-tempo_2d_id-GE1xyW-styles-fields-border-top-color-4 z_tempo_2d_id-GE1xyWe`}:Y.fields(),children:[(0,V.jsxs)(dy,{value:`tempo`,children:[(0,V.jsxs)(`div`,{...Y.field?{className:`z_tempo_2d_id-GE1xyWh z_tempo_2d_id-GE1xyW0 z_tempo_2d_id-GE1xyWf z_tempo_2d_id-GE1xyWi z_tempo_2d_id-GE1xyW10 z_tempo_2d_id-GE1xyW11`}:Y.field(),children:[(0,V.jsx)(vy,{...Y.label?{className:`z-tempo_2d_id-GE1xyW-styles-chevron-text-0 z-tempo_2d_id-GE1xyW-styles-label-font-family-0 z-tempo_2d_id-GE1xyW-styles-label-font-size-1 z-tempo_2d_id-GE1xyW-styles-label-font-weight-2 z-tempo_2d_id-GE1xyW-styles-label-letter-spacing-3 z-tempo_2d_id-GE1xyW-styles-label-line-height-4`}:Y.label(),children:`Network`}),(0,V.jsxs)(Ny,{...Y.trigger?{className:`z-tempo_2d_id-GE1xyW-styles-back-align-items-0 z-tempo_2d_id-GE1xyW-styles-trigger-bg-0 z-tempo_2d_id-GE1xyW-styles-trigger-border-1 z-tempo_2d_id-GE1xyW-styles-trigger-border-radius-2 z-tempo_2d_id-GE1xyW-styles-network-text-1 z-tempo_2d_id-GE1xyW-styles-trigger-cursor-3 z-tempo_2d_id-GE1xyW-styles-back-display-3 z-tempo_2d_id-GE1xyW-styles-option-gap-2 z-tempo_2d_id-GE1xyW-styles-trigger-mr-4 z-tempo_2d_id-GE1xyW-styles-trigger-outline-5 z-tempo_2d_id-GE1xyW-styles-trigger-padding-block-6 z-tempo_2d_id-GE1xyW-styles-trigger-padding-inline-7 z-tempo_2d_id-GE1xyW-styles-trigger-outline-8 z-tempo_2d_id-GE1xyW-styles-trigger-outline-color-9 z-tempo_2d_id-GE1xyW-styles-trigger-bg-10`}:Y.trigger(),children:[(0,V.jsx)(Fy,{children:()=>(0,V.jsxs)(`span`,{...Y.fieldValue?{className:`z_tempo_2d_id-GE1xyWh z_tempo_2d_id-GE1xyW0 z_tempo_2d_id-GE1xyW12 z_tempo_2d_id-GE1xyW13 z_tempo_2d_id-GE1xyW14 z_tempo_2d_id-GE1xyW15 z_tempo_2d_id-GE1xyW16 z_tempo_2d_id-GE1xyW17`}:Y.fieldValue(),children:[(0,V.jsx)(`img`,{...Y.fieldLogo?{className:`z_tempo_2d_id-GE1xyWj z_tempo_2d_id-GE1xyWl z_tempo_2d_id-GE1xyWm`}:Y.fieldLogo(),alt:``,src:dx}),`Tempo`]})}),(0,V.jsx)(Iy,{...Y.triggerIcon?{className:`z-tempo_2d_id-GE1xyW-styles-triggerIcon-text-0 z-tempo_2d_id-GE1xyW-styles-back-display-3`}:Y.triggerIcon(),children:(0,V.jsx)(Ai,{...Y.icon?{className:`z-tempo_2d_id-GE1xyW-styles-chevron-h-2 z-tempo_2d_id-GE1xyW-styles-chevron-w-4`}:Y.icon()})})]})]}),(0,V.jsx)(Ly,{children:(0,V.jsx)(Pb,{align:`end`,alignItemWithTrigger:!1,sideOffset:8,children:(0,V.jsx)(Gb,{...Y.popup?{className:`z-tempo_2d_id-GE1xyW-styles-popup-bg-0 z-tempo_2d_id-GE1xyW-styles-popup-border-1 z-tempo_2d_id-GE1xyW-styles-popup-border-color-2 z-tempo_2d_id-GE1xyW-styles-popup-border-radius-3 z-tempo_2d_id-GE1xyW-styles-popup-box-shadow-4 z-tempo_2d_id-GE1xyW-styles-popup-min-width-5 z-tempo_2d_id-GE1xyW-styles-option-outline-3 z-tempo_2d_id-GE1xyW-styles-popup-p-6`}:Y.popup(),children:(0,V.jsx)($b,{children:fx.map(e=>(0,B.createElement)(rx,{...Y.option?{className:`z-tempo_2d_id-GE1xyW-styles-back-align-items-0 z-tempo_2d_id-GE1xyW-styles-option-border-radius-0 z-tempo_2d_id-GE1xyW-styles-option-cursor-1 z-tempo_2d_id-GE1xyW-styles-back-display-3 z-tempo_2d_id-GE1xyW-styles-option-gap-2 z-tempo_2d_id-GE1xyW-styles-option-outline-3 z-tempo_2d_id-GE1xyW-styles-option-padding-block-4 z-tempo_2d_id-GE1xyW-styles-option-padding-inline-5 z-tempo_2d_id-GE1xyW-styles-label-font-family-0 z-tempo_2d_id-GE1xyW-styles-label-font-size-1 z-tempo_2d_id-GE1xyW-styles-label-font-weight-2 z-tempo_2d_id-GE1xyW-styles-label-letter-spacing-3 z-tempo_2d_id-GE1xyW-styles-label-line-height-4 z-tempo_2d_id-GE1xyW-styles-option-user-select-6 z-tempo_2d_id-GE1xyW-styles-option-opacity-7 z-tempo_2d_id-GE1xyW-styles-option-bg-8`}:Y.option(),disabled:!e.available,key:e.id,value:e.id},(0,V.jsx)(`img`,{...Y.fieldLogo?{className:`z_tempo_2d_id-GE1xyWj z_tempo_2d_id-GE1xyWl z_tempo_2d_id-GE1xyWm`}:Y.fieldLogo(),alt:``,src:e.icon}),(0,V.jsx)(ox,{children:e.name}),e.available?(0,V.jsx)(ax,{...Y.indicator?{className:`z-tempo_2d_id-GE1xyW-styles-back-display-3 z-tempo_2d_id-GE1xyW-styles-chevron-ml-3`}:Y.indicator(),children:(0,V.jsx)(Hc,{...Y.icon?{className:`z-tempo_2d_id-GE1xyW-styles-chevron-h-2 z-tempo_2d_id-GE1xyW-styles-chevron-w-4`}:Y.icon()})}):(0,V.jsx)(`span`,{...Y.soon?{className:`z_tempo_2d_id-GE1xyW2 z_tempo_2d_id-GE1xyWn z_tempo_2d_id-GE1xyW1r z_tempo_2d_id-GE1xyW1s z_tempo_2d_id-GE1xyW1t z_tempo_2d_id-GE1xyW1u z_tempo_2d_id-GE1xyW1v z_tempo_2d_id-GE1xyW1w`}:Y.soon(),children:`Coming soon`})))})})})})]}),(0,V.jsxs)(`div`,{...Y.field?{className:`z_tempo_2d_id-GE1xyWh z_tempo_2d_id-GE1xyW0 z_tempo_2d_id-GE1xyWf z_tempo_2d_id-GE1xyWi z_tempo_2d_id-GE1xyW10 z_tempo_2d_id-GE1xyW11`}:Y.field(),children:[(0,V.jsx)(`span`,{...Y.label?{className:`z-tempo_2d_id-GE1xyW-styles-chevron-text-0 z-tempo_2d_id-GE1xyW-styles-label-font-family-0 z-tempo_2d_id-GE1xyW-styles-label-font-size-1 z-tempo_2d_id-GE1xyW-styles-label-font-weight-2 z-tempo_2d_id-GE1xyW-styles-label-letter-spacing-3 z-tempo_2d_id-GE1xyW-styles-label-line-height-4`}:Y.label(),children:`Supported stablecoins`}),(0,V.jsx)(`span`,{...Y.coins?{className:`z_tempo_2d_id-GE1xyW0 z_tempo_2d_id-GE1xyWn z-tempo_2d_id-GE1xyW-styles-coins-margin-inline-start-0 z-tempo_2d_id-GE1xyW-styles-coins-margin-inline-start-1`}:Y.coins(),children:px.map(e=>(0,V.jsxs)(Gd.Root,{children:[(0,V.jsx)(Gd.Trigger,{delay:150,render:(0,V.jsx)(`span`,{...Y.coin?{className:`z_tempo_2d_id-GE1xyWj z-tempo_2d_id-GE1xyW-styles-coin-outline-0 z-tempo_2d_id-GE1xyW-styles-coin-outline-color-1 z-tempo_2d_id-GE1xyW-styles-coin-outline-color-2 z-tempo_2d_id-GE1xyW-styles-coin-transition-duration-3 z-tempo_2d_id-GE1xyW-styles-coin-transition-property-4 z-tempo_2d_id-GE1xyW-styles-coin-transition-timing-function-5`}:Y.coin(),tabIndex:0,children:(0,V.jsx)(`img`,{...Y.coinLogo?{className:`z_tempo_2d_id-GE1xyWj z_tempo_2d_id-GE1xyWk z_tempo_2d_id-GE1xyWl z_tempo_2d_id-GE1xyWm`}:Y.coinLogo(),alt:e.symbol,height:20,src:e.icon,width:20})})}),(0,V.jsx)(Gd.Popup,{children:e.symbol})]},e.symbol))})]})]}),(0,V.jsxs)(`p`,{...Y.warning?{className:`z_tempo_2d_id-GE1xyW26 z_tempo_2d_id-GE1xyW27 z_tempo_2d_id-GE1xyW28 z_tempo_2d_id-GE1xyW29 z_tempo_2d_id-GE1xyW1x z_tempo_2d_id-GE1xyW1y z-tempo_2d_id-GE1xyW-styles-warning-font-weight-0 z-tempo_2d_id-GE1xyW-styles-warning-font-weight-1 z_tempo_2d_id-GE1xyW20 z_tempo_2d_id-GE1xyW21`}:Y.warning(),role:`note`,children:[`Only send `,(0,V.jsx)(`strong`,{children:`supported stablecoins`}),` on`,` `,(0,V.jsx)(`strong`,{children:`Tempo`}),`. Sending other tokens or using a different network may result in permanent loss.`]}),(0,V.jsxs)(`div`,{...Y.actions?{className:`z_tempo_2d_id-GE1xyW0 z_tempo_2d_id-GE1xyW1 z-tempo_2d_id-GE1xyW-styles-actions-flex-0 z-tempo_2d_id-GE1xyW-styles-actions-min-width-1`}:Y.actions(),children:[(0,V.jsx)(vl,{size:`large`,onClick:()=>r(`button`),children:t===`button`?`Copied`:`Copy address`}),(0,V.jsx)(vl.Link,{render:(0,V.jsx)(ke,{to:`/`}),size:`large`,variant:`secondary`,children:`Done`})]}),(0,V.jsx)(`p`,{...Y.status?{className:`z_tempo_2d_id-GE1xyW2 z_tempo_2d_id-GE1xyW4 z_tempo_2d_id-GE1xyW1x z_tempo_2d_id-GE1xyW1y z_tempo_2d_id-GE1xyW1z z_tempo_2d_id-GE1xyW20 z_tempo_2d_id-GE1xyW21`}:Y.status(),"aria-live":`polite`,role:`status`,children:(()=>{if(t===`failed`)return`The address could not be copied. Select it and copy it manually.`;if(t)return`Address copied.`})()})]})}var Y;(function(e){e.actions=1,e.address=1,e.apple=1,e.back=1,e.backIcon=1,e.card=1,e.cardHeader=1,e.chevron=1,e.coin=1,e.coinLogo=1,e.coins=1,e.column=1,e.copy=1,e.description=1,e.field=1,e.fieldLogo=1,e.fields=1,e.fieldValue=1,e.header=1,e.icon=1,e.indicator=1,e.intro=1,e.label=1,e.list=1,e.logo=1,e.methodIcon=1,e.network=sn({axes:{available:[`false`,`true`]},defaults:{},className:`z-tempo_2d_id-GE1xyW-styles-back-align-items-0 z-tempo_2d_id-GE1xyW-styles-network-border-radius-0 z-tempo_2d_id-GE1xyW-styles-network-text-1 z-tempo_2d_id-GE1xyW-styles-back-display-3 z-tempo_2d_id-GE1xyW-styles-network-gap-2 z-tempo_2d_id-GE1xyW-styles-network-outline-3 z-tempo_2d_id-GE1xyW-styles-network-p-4 z-tempo_2d_id-GE1xyW-styles-network-text-decoration-5 z-tempo_2d_id-GE1xyW-styles-network-opacity-6 z-tempo_2d_id-GE1xyW-styles-network-outline-7 z-tempo_2d_id-GE1xyW-styles-network-outline-color-8 z-tempo_2d_id-GE1xyW-styles-network-bg-9`}),e.networkBody=1,e.networkName=1,e.option=1,e.popup=1,e.qr=1,e.section=1,e.sectionTitle=1,e.soon=1,e.status=1,e.tag=1,e.tags=1,e.title=1,e.trigger=1,e.triggerIcon=1,e.warning=1})(Y||={});var vx=Fe(`/deposit`)({codeSplitGroupings:[],component:()=>(0,V.jsx)(yx,{...vx.useLoaderData()}),loader:async e=>{let t=hf();(await sf(t.v1.auth.session.$get())).user||Tf({href:`/login`});let{address:n,method:r}=e.deps,i=r===`tempo`?r:null,a=await sf(t.v1.account.$get({query:{}})).catch(e=>({error:e}));if(`error`in a)return{address:null,error:_f(a.error)===`rate_limited`?gf(a.error):`Your wallets failed to load. Reload the page to try again.`,method:i};let o=a.tempo.find(e=>e.address.toLowerCase()===n?.toLowerCase());return o?{address:o.address,error:null,method:i}:{address:null,error:`This wallet was not found. Go back to your account, then choose Deposit.`,method:i}},loaderDeps:e=>({address:e.search.address,method:e.search.method}),validateSearch:e=>({...typeof e.address==`string`?{address:e.address}:{},...typeof e.method==`string`?{method:e.method}:{}})});function yx(e){return(0,V.jsx)(`main`,{...bx.page?{className:`z_tempo_2d_id-IDXgVf0 z_tempo_2d_id-IDXgVf1 z_tempo_2d_id-IDXgVf2 z_tempo_2d_id-IDXgVf3 z_tempo_2d_id-IDXgVf4`}:bx.page(),"aria-label":`Deposit`,children:(0,V.jsx)(mx,{address:e.address??void 0,error:e.error??void 0,method:e.method??void 0})})}var bx;(function(e){e.page=1})(bx||={});function xx(e){let{length:t,separator:n}=e,r=e.characters===`digits`,[i,a]=(0,B.useState)(!1),[o,s]=(0,B.useState)(0),c=(0,B.useRef)(null),l=(0,B.useId)(),u=(0,B.useRef)(e.invalid);return(0,B.useEffect)(()=>{let t=e.invalid&&!u.current;u.current=e.invalid,t&&(a(!1),s(e=>e+1))},[e.invalid]),(0,B.useEffect)(()=>{o&&c.current?.focus()},[o]),(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`label`,{...Sx.label?{className:`z_tempo_2d_id-3w2jki0 z_tempo_2d_id-3w2jki1 z_tempo_2d_id-3w2jki2 z_tempo_2d_id-3w2jki3 z_tempo_2d_id-3w2jki4 z_tempo_2d_id-3w2jki5`}:Sx.label(),htmlFor:l,children:e[`aria-label`]}),(0,B.createElement)(Mu.Root,{...Sx.root?{className:`z-tempo_2d_id-justify-content-center z-tempo_2d_id-w-[100%]`}:Sx.root(),autoComplete:e.autoComplete,autoSubmit:e.autoSubmit,defaultValue:o?void 0:e.defaultValue,id:l,invalid:!!e.invalid&&!i,key:o,length:t,name:e.name,inputMode:r?`numeric`:`text`,normalizeValue:e=>e.replace(r?/\D/g:/[^0-9a-z]/gi,``).toUpperCase(),onValueChange:()=>a(!0),readOnly:e.readOnly,required:e.required,size:e.size,success:e.success,validationType:`none`},Array.from({length:t},(r,i)=>(0,V.jsxs)(B.Fragment,{children:[i===n?(0,V.jsx)(`span`,{...Sx.separator?{className:`z_tempo_2d_id-3w2jki6 z_tempo_2d_id-3w2jki7 z_tempo_2d_id-3w2jki1 z_tempo_2d_id-3w2jki8`}:Sx.separator(),"aria-hidden":!0}):null,i===0?(0,V.jsx)(Mu.Input,{"aria-describedby":e[`aria-describedby`],autoFocus:e.autoFocus,ref:c}):(0,V.jsx)(Mu.Input,{"aria-label":`Character ${i+1} of ${t}`})]},i)))]})}var Sx;(function(e){e.label=1,e.root=1,e.separator=1})(Sx||={});function Cx(e){let t=e.heading??`h1`,n=(0,B.useId)(),r=e.request?.app,i=e.refusal??e.request?.key_authorization?.refusal,a=e.status===`denied`?`Denied. The device was not signed in.`:e.request?r?(0,V.jsxs)(V.Fragment,{children:[`Enter the code from your device to grant `,(0,V.jsx)(`strong`,{children:r.name}),` `,(0,V.jsxs)(Gd.Root,{children:[(0,V.jsx)(Gd.Trigger,{delay:150,render:(0,V.jsx)(Vc,{...X.verified?{className:`z-tempo_2d_id-tpVtLR-styles-verified-display-0 z-tempo_2d_id-tpVtLR-styles-icon-h-3 z-tempo_2d_id-tpVtLR-styles-verified-outline-1 z-tempo_2d_id-tpVtLR-styles-verified-vertical-align-2 z-tempo_2d_id-tpVtLR-styles-icon-w-4 z-tempo_2d_id-tpVtLR-styles-verified-outline-3 z-tempo_2d_id-tpVtLR-styles-verified-outline-color-4 z-tempo_2d_id-tpVtLR-styles-verified-outline-offset-5`}:X.verified(),"aria-label":`Verified`,role:`img`,tabIndex:0})}),(0,V.jsx)(Gd.Popup,{children:`Verified app`})]}),` `,`access to your account.`]}):(0,V.jsxs)(V.Fragment,{children:[`Enter the code from your device to grant`,` `,(0,V.jsxs)(Gd.Root,{children:[(0,V.jsx)(Gd.Trigger,{delay:150,render:(0,V.jsxs)(`span`,{...X.unverified?{className:`z_tempo_2d_id-tpVtLR1l z_tempo_2d_id-tpVtLRi z_tempo_2d_id-tpVtLR1m z-tempo_2d_id-tpVtLR-styles-unverified-outline-0 z-tempo_2d_id-tpVtLR-styles-unverified-outline-1 z-tempo_2d_id-tpVtLR-styles-unverified-outline-color-2 z-tempo_2d_id-tpVtLR-styles-unverified-outline-offset-3 z_tempo_2d_id-3w2jki4`}:X.unverified(),tabIndex:0,children:[(0,V.jsx)(zc,{...X.warning?{className:`z-tempo_2d_id-tpVtLR-styles-verified-display-0 z-tempo_2d_id-tpVtLR-styles-icon-h-3 z-tempo_2d_id-tpVtLR-styles-warning-margin-inline-end-0 z-tempo_2d_id-tpVtLR-styles-verified-vertical-align-2 z-tempo_2d_id-tpVtLR-styles-icon-w-4`}:X.warning()}),`an unverified app`]})}),(0,V.jsx)(Gd.Popup,{children:`Unverified app`})]}),` `,`access to your account.`]}):`Enter the code shown in your terminal.`;return e.status===`approved`?(0,V.jsx)(`div`,{...X.column?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-tpVtLRv z_tempo_2d_id-tpVtLRw z_tempo_2d_id-tpVtLRx`}:X.column(),children:(0,V.jsxs)(`header`,{...X.header?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-tpVtLR17 z_tempo_2d_id-tpVtLR18`}:X.header(),children:[(0,V.jsx)(t,{...X.title?{className:`z-tempo_2d_id-tpVtLR-styles-title-text-wrap-0 z-tempo_2d_id-tpVtLR-styles-title-font-family-1 z-tempo_2d_id-tpVtLR-styles-title-font-size-2 z-tempo_2d_id-tpVtLR-styles-title-font-weight-3 z-tempo_2d_id-tpVtLR-styles-title-letter-spacing-4 z-tempo_2d_id-tpVtLR-styles-title-line-height-5`}:X.title(),children:`Authorization successful`}),(0,V.jsxs)(`p`,{...X.success?{className:`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-nr-Vm7o z_tempo_2d_id-tpVtLR10 z_tempo_2d_id-tpVtLR11 z_tempo_2d_id-tpVtLR1k z_tempo_2d_id-tpVtLR12 z_tempo_2d_id-tpVtLR13`}:X.success(),"aria-live":`polite`,role:`status`,children:[(0,V.jsx)(`span`,{...X.check?{className:`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-tpVtLRo z_tempo_2d_id-nr-Vm78 z_tempo_2d_id-tpVtLRq z_tempo_2d_id-tpVtLRr z_tempo_2d_id-3w2jki7 z_tempo_2d_id-tpVtLRt z_tempo_2d_id-nr-Vm7o z_tempo_2d_id-tpVtLRu`}:X.check(),children:(0,V.jsx)(Hc,{})}),`You can close this tab.`]})]})}):(0,V.jsxs)(`div`,{...X.column?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-tpVtLRv z_tempo_2d_id-tpVtLRw z_tempo_2d_id-tpVtLRx`}:X.column(),children:[(0,V.jsxs)(`header`,{...X.header?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-tpVtLR17 z_tempo_2d_id-tpVtLR18`}:X.header(),children:[e.request?(0,V.jsx)(`span`,{...X.avatar?{className:`z_tempo_2d_id-nr-Vm7e z-tempo_2d_id-tpVtLR-styles-avatar-bg-0 z-tempo_2d_id-tpVtLR-styles-avatar-bg-1 z-tempo_2d_id-tpVtLR-styles-avatar-border-2 z-tempo_2d_id-tpVtLR-styles-avatar-border-color-3 z-tempo_2d_id-tpVtLR-styles-avatar-border-radius-4 z-tempo_2d_id-tpVtLR-styles-avatar-border-color-5 z_tempo_2d_id-tpVtLR1 z-tempo_2d_id-tpVtLR-styles-avatar-text-6 z-tempo_2d_id-tpVtLR-styles-avatar-text-7 z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-tpVtLR3 z_tempo_2d_id-nr-Vm7o z_tempo_2d_id-tpVtLR5 z_tempo_2d_id-tpVtLR6`}:X.avatar(),"data-verified":!!r,children:r?(0,V.jsx)($c,{...X.avatarIcon?{className:`z-tempo_2d_id-tpVtLR-styles-avatarIcon-h-0 z-tempo_2d_id-tpVtLR-styles-avatarIcon-w-1`}:X.avatarIcon()}):(0,V.jsx)(zc,{...X.avatarIcon?{className:`z-tempo_2d_id-tpVtLR-styles-avatarIcon-h-0 z-tempo_2d_id-tpVtLR-styles-avatarIcon-w-1`}:X.avatarIcon()})}):null,(0,V.jsx)(t,{...X.title?{className:`z-tempo_2d_id-tpVtLR-styles-title-text-wrap-0 z-tempo_2d_id-tpVtLR-styles-title-font-family-1 z-tempo_2d_id-tpVtLR-styles-title-font-size-2 z-tempo_2d_id-tpVtLR-styles-title-font-weight-3 z-tempo_2d_id-tpVtLR-styles-title-letter-spacing-4 z-tempo_2d_id-tpVtLR-styles-title-line-height-5`}:X.title(),children:`Authorize a device`}),(0,V.jsx)(`p`,{...X.description?{className:`z-tempo_2d_id-tpVtLR-styles-description-text-0 z-tempo_2d_id-tpVtLR-styles-description-text-1 z_tempo_2d_id-tpVtLRy z_tempo_2d_id-tpVtLRz z_tempo_2d_id-tpVtLR10 z_tempo_2d_id-tpVtLR11 z-tempo_2d_id-tpVtLR-styles-description-font-weight-2 z-tempo_2d_id-tpVtLR-styles-description-font-weight-3 z_tempo_2d_id-tpVtLR12 z_tempo_2d_id-tpVtLR13`}:X.description(),children:a})]}),e.status===`denied`?null:e.request?(0,V.jsxs)(`div`,{...X.stack?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-tpVtLR1j`}:X.stack(),children:[(0,V.jsx)(xx,{"aria-label":`Code`,defaultValue:e.request.user_code,length:8,readOnly:!0,separator:4,size:`medium`},e.request.user_code),e.request.key_authorization?(0,V.jsx)(xp,{heading:e.heading===`h4`?`h5`:`h2`,keyAuthorization:e.request.key_authorization}):null,e.request.challenge?(0,V.jsxs)(`div`,{...X.challenge?{className:`z_tempo_2d_id-tpVtLR7 z_tempo_2d_id-nr-Vm7v z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-tpVtLRb`}:X.challenge(),role:`note`,children:[(0,V.jsx)(`p`,{...X.challengeTitle?{className:`z_tempo_2d_id-tpVtLRi z_tempo_2d_id-tpVtLRj z_tempo_2d_id-tpVtLRk z_tempo_2d_id-tpVtLRl z_tempo_2d_id-tpVtLRm z_tempo_2d_id-tpVtLRn`}:X.challengeTitle(),children:`This sign-in also signs a message`}),(0,V.jsx)(`p`,{...X.challengeText?{className:`z_tempo_2d_id-tpVtLRc z_tempo_2d_id-nr-Vm73 z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-nr-Vm75 z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm77`}:X.challengeText(),children:`Approve only if you started this sign-in in your own terminal and expect this message.`}),(0,V.jsx)(`pre`,{...X.message?{className:`z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm7z z_tempo_2d_id-tpVtLR1a z_tempo_2d_id-tpVtLR1b z_tempo_2d_id-tpVtLR1c z_tempo_2d_id-tpVtLR1d z_tempo_2d_id-tpVtLR1e z_tempo_2d_id-tpVtLR1f`}:X.message(),children:e.request.challenge})]}):null,(0,V.jsxs)(`dl`,{...X.details?{className:`z_tempo_2d_id-nr-Vm7u z_tempo_2d_id-nr-Vm7v z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-tpVtLRb z_tempo_2d_id-nr-Vm73 z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-nr-Vm75 z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm77`}:X.details(),children:[e.request.device?(0,V.jsxs)(`div`,{...X.row?{className:`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-nr-Vm7w z_tempo_2d_id-tpVtLR1h z_tempo_2d_id-nr-Vm7z`}:X.row(),children:[(0,V.jsx)(`dt`,{children:(0,V.jsx)($c,{...X.icon?{className:`z-tempo_2d_id-tpVtLR-styles-icon-text-0 z-tempo_2d_id-tpVtLR-styles-icon-display-1 z-tempo_2d_id-tpVtLR-styles-icon-flex-shrink-2 z-tempo_2d_id-tpVtLR-styles-icon-h-3 z-tempo_2d_id-tpVtLR-styles-icon-w-4`}:X.icon(),"aria-label":`Device name`,role:`img`})}),(0,V.jsxs)(`dd`,{children:[(0,V.jsx)(`bdi`,{...X.device?{className:`z_tempo_2d_id-tpVtLR14`}:X.device(),children:e.request.device.slice(0,64)}),` `,(0,V.jsx)(`span`,{...X.source?{className:`z_tempo_2d_id-nr-Vm7n`}:X.source(),children:`(as the device reports it)`})]})]}):null,e.request.location?(0,V.jsxs)(`div`,{...X.row?{className:`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-nr-Vm7w z_tempo_2d_id-tpVtLR1h z_tempo_2d_id-nr-Vm7z`}:X.row(),children:[(0,V.jsx)(`dt`,{children:(0,V.jsx)(el,{...X.icon?{className:`z-tempo_2d_id-tpVtLR-styles-icon-text-0 z-tempo_2d_id-tpVtLR-styles-icon-display-1 z-tempo_2d_id-tpVtLR-styles-icon-flex-shrink-2 z-tempo_2d_id-tpVtLR-styles-icon-h-3 z-tempo_2d_id-tpVtLR-styles-icon-w-4`}:X.icon(),"aria-label":`Location`,role:`img`})}),(0,V.jsx)(`dd`,{children:e.request.location})]}):null,(0,V.jsxs)(`div`,{...X.row?{className:`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-nr-Vm7w z_tempo_2d_id-tpVtLR1h z_tempo_2d_id-nr-Vm7z`}:X.row(),children:[(0,V.jsx)(`dt`,{children:(0,V.jsx)(Gc,{...X.icon?{className:`z-tempo_2d_id-tpVtLR-styles-icon-text-0 z-tempo_2d_id-tpVtLR-styles-icon-display-1 z-tempo_2d_id-tpVtLR-styles-icon-flex-shrink-2 z-tempo_2d_id-tpVtLR-styles-icon-h-3 z-tempo_2d_id-tpVtLR-styles-icon-w-4`}:X.icon(),"aria-label":`Requested`,role:`img`})}),(0,V.jsxs)(`dd`,{children:[Tx.format(e.request.created_at*1e3),` UTC`]})]}),e.request.ip?(0,V.jsxs)(`div`,{...X.row?{className:`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-nr-Vm7w z_tempo_2d_id-tpVtLR1h z_tempo_2d_id-nr-Vm7z`}:X.row(),children:[(0,V.jsx)(`dt`,{children:(0,V.jsx)(Zc,{...X.icon?{className:`z-tempo_2d_id-tpVtLR-styles-icon-text-0 z-tempo_2d_id-tpVtLR-styles-icon-display-1 z-tempo_2d_id-tpVtLR-styles-icon-flex-shrink-2 z-tempo_2d_id-tpVtLR-styles-icon-h-3 z-tempo_2d_id-tpVtLR-styles-icon-w-4`}:X.icon(),"aria-label":`IP address`,role:`img`})}),(0,V.jsx)(`dd`,{children:e.request.ip})]}):null]}),(0,V.jsx)(vl,{size:`large`,disabled:e.denying||!!i,loading:e.approving,onClick:e.onApprove,children:`Approve`}),(0,V.jsx)(vl,{size:`large`,disabled:e.approving,loading:e.denying,onClick:e.onDeny,variant:`text`,children:`Deny`})]}):(0,V.jsxs)(`form`,{...X.stack?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-tpVtLR1j`}:X.stack(),onSubmit:e.onSubmitCode,children:[(0,V.jsx)(xx,{"aria-describedby":`${n}-error`,"aria-label":`Code shown in your terminal`,autoComplete:`off`,autoFocus:e.autoFocus,defaultValue:e.code,invalid:e.invalid,length:8,name:`code`,readOnly:e.fetching,required:!0,separator:4,size:`medium`}),(0,V.jsx)(vl,{size:`large`,loading:e.fetching,type:`submit`,children:`Continue`})]}),(()=>{let t=e.error??(i?wx[i]:void 0);return t?(0,V.jsxs)(pu,{id:`${n}-error`,intent:`negative`,children:[(0,V.jsx)(pu.Icon,{}),(0,V.jsx)(pu.Content,{children:t})]}):null})()]})}var wx={foreign_account:`The terminal requests a key for a Tempo Account that you do not hold. Deny the request, and start the sign-in again in the terminal as that account's owner.`,no_account:`You have no Tempo Account for this app yet, so no account can approve the key. Deny the request, create an account, and try again.`,passkey:`This Tempo Account signs with a passkey that this page cannot use. Deny the request, and return to the terminal.`,unavailable:`Tempo ID cannot read your Tempo Account right now. Reload the page in a minute, or deny the request.`},Tx=new Intl.DateTimeFormat(`en-US`,{dateStyle:`medium`,timeStyle:`short`,timeZone:`UTC`}),X;(function(e){e.avatar=1,e.avatarIcon=1,e.challenge=1,e.challengeText=1,e.challengeTitle=1,e.check=1,e.column=1,e.description=1,e.device=1,e.details=1,e.header=1,e.icon=1,e.message=1,e.row=1,e.source=1,e.stack=1,e.success=1,e.title=1,e.unverified=1,e.verified=1,e.warning=1})(X||={});var Ex=class extends Error{name=`Page.CeremonyError`},Dx=Fe(`/device`)({codeSplitGroupings:[],component:()=>(0,V.jsx)(Ox,{...Dx.useLoaderData()}),loader:async e=>{let t=hf();if(!(await sf(t.v1.auth.session.$get())).user){let{pathname:t,searchStr:n}=e.location,r=new URLSearchParams(n);r.delete(`chain`);let i=r.size>0?`${t}?${r}`:t;Tf({href:`/login?${new URLSearchParams({return_to:i})}`})}let n=e.deps.code??e.deps.user_code??``;if(!n)return{code:n,error:null,request:null};try{return{code:n,error:null,request:(await sf(t.v1.device.requests[`:code`].$get({param:{code:encodeURIComponent(n)}}))).request}}catch(e){return{code:n,error:gf(e),request:null}}},loaderDeps:e=>({code:e.search.code,user_code:e.search.user_code}),validateSearch:e=>({...typeof e.code==`string`?{code:e.code}:{},...typeof e.user_code==`string`?{user_code:e.user_code}:{}})});function Ox(e){let t=vf(),n=M(),[r,i]=(0,B.useState)(!1),a=e.request?.user_code??e.code,o=e=>{_f(e)===`session_required`&&window.location.reload()},s=en({async mutationFn(){let n={...e.request?.key_authorization?.account?{account:e.request.key_authorization.account}:{},code:a},r=await sf(t.v1.device.approve.$post({json:n}));if(!(`step`in r))return r;let i=await Nf({options:{publicKey:r.step.options.publicKey}}).catch(e=>{throw new Ex(`Passkey ceremony failed.`,{cause:e})}),o=await sf(t.v1.device.approve.$post({json:{...n,passkey:{assertion:i}}}));if(`step`in o)throw Error(`The approval requested a second passkey step.`);return o},onError:o}),c=en({mutationFn:()=>sf(t.v1.device.deny.$post({json:{code:a}})),onError:o}),l=(()=>{if(s.isSuccess)return`approved`;if(c.isSuccess)return`denied`;let t=e.request?.status;return t===`pending`?void 0:t})(),u=(()=>{if(e.error)return e.error;if(s.error&&_f(s.error)!==`webauthn_required`)return kx(s.error);if(c.error)return gf(c.error)})();function d(e){e.preventDefault();let t=String(new FormData(e.currentTarget).get(`code`));i(!0),n.navigate({search:{code:t},to:`/device`}).finally(()=>i(!1))}return(0,V.jsx)(`main`,{...jx.page?{className:`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-nr-Vm7o z_tempo_2d_id-uIQs5D3 z_tempo_2d_id-uIQs5D4`}:jx.page(),children:(0,V.jsx)(Cx,{approving:s.isPending,autoFocus:!0,code:e.code,denying:c.isPending,error:u,fetching:r,invalid:!!e.error,onApprove:()=>s.mutate(),onDeny:()=>c.mutate(),onSubmitCode:d,refusal:_f(s.error)===`webauthn_required`?`passkey`:void 0,request:e.request??void 0,status:l})})}function kx(e){return _f(e)===`webauthn_rejected`?`Your passkey did not sign the approval. Approve again, or deny the request.`:e instanceof Ex?Ax(e).includes(`NotAllowedError`)?`The passkey request was canceled. Approve again, or deny the request.`:`Your passkey did not sign the approval. Approve again, or deny the request.`:gf(e)}function Ax(e){return e instanceof Error?[e.name,...Ax(e.cause)]:[]}var jx;(function(e){e.page=1})(jx||={});var Mx=(0,B.forwardRef)(({title:e,titleId:t,...n},r)=>(0,V.jsxs)(`svg`,{viewBox:`0 0 256 262`,width:`0.98em`,height:`1em`,ref:r,"aria-labelledby":t,...n,children:[e?(0,V.jsx)(`title`,{id:t,children:e}):null,(0,V.jsx)(`path`,{fill:`#4285f4`,d:`M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622l38.755 30.023l2.685.268c24.659-22.774 38.875-56.282 38.875-96.027`}),(0,V.jsx)(`path`,{fill:`#34a853`,d:`M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055c-34.523 0-63.824-22.773-74.269-54.25l-1.531.13l-40.298 31.187l-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1`}),(0,V.jsx)(`path`,{fill:`#fbbc05`,d:`M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82c0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602z`}),(0,V.jsx)(`path`,{fill:`#eb4335`,d:`M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0C79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251`})]}));function Z(e){let t=e.heading??`h1`,{email:n}=e,r=(0,B.useId)();return(0,V.jsxs)(`div`,{...Nx.column?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-gSRY5u3 z_tempo_2d_id-gSRY5u4 z_tempo_2d_id-gSRY5u5`}:Nx.column(),children:[(0,V.jsxs)(`header`,{...Nx.header?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-gSRY5uc`}:Nx.header(),children:[(0,V.jsx)(t,{...Nx.title?{className:`z-tempo_2d_id-gSRY5u-styles-title-text-wrap-0 z-tempo_2d_id-gSRY5u-styles-title-font-family-1 z-tempo_2d_id-gSRY5u-styles-title-font-size-2 z-tempo_2d_id-gSRY5u-styles-title-font-weight-3 z-tempo_2d_id-gSRY5u-styles-title-letter-spacing-4 z-tempo_2d_id-gSRY5u-styles-title-line-height-5`}:Nx.title(),children:n?`Check your email`:e.linking?`Verify your email`:`Sign in to Tempo`}),n?(0,V.jsxs)(`p`,{...Nx.description?{className:`z-tempo_2d_id-gSRY5u-styles-description-text-0 z-tempo_2d_id-gSRY5u-styles-description-text-1 z_tempo_2d_id-gSRY5u6 z_tempo_2d_id-gSRY5u7 z_tempo_2d_id-gSRY5u8 z-tempo_2d_id-gSRY5u-styles-description-font-weight-2 z-tempo_2d_id-gSRY5u-styles-description-font-weight-3 z_tempo_2d_id-gSRY5u9 z_tempo_2d_id-gSRY5ua`}:Nx.description(),children:[`Enter the 6-digit code sent to `,(0,V.jsx)(`strong`,{children:n}),`.`,e.linking?` Your passkey then confirms the sign-in.`:null]}):e.linking?(0,V.jsx)(`p`,{...Nx.description?{className:`z-tempo_2d_id-gSRY5u-styles-description-text-0 z-tempo_2d_id-gSRY5u-styles-description-text-1 z_tempo_2d_id-gSRY5u6 z_tempo_2d_id-gSRY5u7 z_tempo_2d_id-gSRY5u8 z-tempo_2d_id-gSRY5u-styles-description-font-weight-2 z-tempo_2d_id-gSRY5u-styles-description-font-weight-3 z_tempo_2d_id-gSRY5u9 z_tempo_2d_id-gSRY5ua`}:Nx.description(),children:`Enter your email to finish signing in with your passkey.`}):e.request?(0,V.jsxs)(`p`,{...Nx.description?{className:`z-tempo_2d_id-gSRY5u-styles-description-text-0 z-tempo_2d_id-gSRY5u-styles-description-text-1 z_tempo_2d_id-gSRY5u6 z_tempo_2d_id-gSRY5u7 z_tempo_2d_id-gSRY5u8 z-tempo_2d_id-gSRY5u-styles-description-font-weight-2 z-tempo_2d_id-gSRY5u-styles-description-font-weight-3 z_tempo_2d_id-gSRY5u9 z_tempo_2d_id-gSRY5ua`}:Nx.description(),children:[`Continue to let`,` `,(0,V.jsxs)(`span`,{...Nx.app?{className:`z_tempo_2d_id-3w2jki4`}:Nx.app(),children:[(0,V.jsx)(`strong`,{children:e.request.app}),` `,(0,V.jsxs)(Gd.Root,{children:[(0,V.jsx)(Gd.Trigger,{delay:150,render:(0,V.jsx)(Vc,{...Nx.badge?{className:`z-tempo_2d_id-gSRY5u-styles-badge-display-0 z-tempo_2d_id-gSRY5u-styles-badge-h-1 z-tempo_2d_id-gSRY5u-styles-badge-outline-2 z-tempo_2d_id-gSRY5u-styles-badge-vertical-align-3 z-tempo_2d_id-gSRY5u-styles-badge-w-4 z-tempo_2d_id-gSRY5u-styles-badge-outline-5 z-tempo_2d_id-gSRY5u-styles-badge-outline-color-6 z-tempo_2d_id-gSRY5u-styles-badge-outline-offset-7`}:Nx.badge(),"aria-label":`Verified`,role:`img`,tabIndex:0})}),(0,V.jsx)(Gd.Popup,{children:`Verified app`})]})]}),` `,`use your Tempo Account.`]}):null]}),e.request&&!n&&!e.linking?(0,V.jsx)(xp,{heading:e.heading===`h4`?`h5`:`h2`,keyAuthorization:e.request.key}):null,n?(0,V.jsxs)(`form`,{...Nx.code?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-gSRY5u2`}:Nx.code(),method:`post`,onSubmit:e.onSubmitCode,children:[(0,V.jsx)(xx,{"aria-describedby":`${r}-error`,"aria-label":`Code`,autoFocus:e.autoFocus,autoSubmit:!0,characters:`digits`,invalid:e.invalid,length:6,name:`code`,readOnly:e.verifying||e.verified,required:!0,size:`large`,success:e.verified}),e.error?(0,V.jsxs)(pu,{id:`${r}-error`,intent:`negative`,children:[(0,V.jsx)(pu.Icon,{}),(0,V.jsx)(pu.Content,{children:e.error})]}):null,(0,V.jsxs)(`div`,{...Nx.links?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-gSRY5ud z_tempo_2d_id-gSRY5ue`}:Nx.links(),children:[(0,V.jsx)(vl,{disabled:e.resend!==`idle`||e.verifying||e.verified,onClick:e.onResend,variant:`text`,children:e.resend===`pending`?`Sending…`:e.resend===`sent`?`Code sent`:`Resend code`}),(0,V.jsx)(vl,{disabled:e.verifying||e.verified,onClick:e.onChangeEmail,variant:`text`,children:`Use a different email`}),(0,V.jsx)(`p`,{...Nx.status?{className:`z_tempo_2d_id-3w2jki0 z_tempo_2d_id-3w2jki1 z_tempo_2d_id-3w2jki2 z_tempo_2d_id-3w2jki3 z_tempo_2d_id-3w2jki4 z_tempo_2d_id-3w2jki5`}:Nx.status(),"aria-live":`polite`,role:`status`,children:(()=>{if(e.resend===`pending`)return`Sending a new code.`;if(e.resend===`sent`)return`A new code was sent to ${n}.`})()})]})]}):(0,V.jsxs)(`div`,{...Nx.stack?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm7w`}:Nx.stack(),children:[(0,V.jsxs)(`form`,{...Nx.stack?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm7w`}:Nx.stack(),method:`post`,onSubmit:e.onSubmitEmail,children:[(0,V.jsx)(Ul.Group,{invalid:e.invalid,size:`large`,children:(0,V.jsx)(Ul.Control,{"aria-describedby":`${r}-error`,"aria-label":`Email`,autoComplete:`email`,"data-1p-ignore":!0,id:`${r}-email`,name:`email`,placeholder:`Email address`,required:!0,type:`email`})}),e.error?(0,V.jsxs)(pu,{id:`${r}-error`,intent:`negative`,children:[(0,V.jsx)(pu.Icon,{}),(0,V.jsx)(pu.Content,{children:e.error})]}):null,(0,V.jsx)(vl,{size:`large`,disabled:e.passkeyPending,loading:e.sending,type:`submit`,children:`Continue with email`})]}),!e.linking&&(e.onGoogle||e.onPasskey)?(0,V.jsx)(`hr`,{...Nx.rule?{className:`z_tempo_2d_id-gSRY5uf z_tempo_2d_id-gSRY5ug z_tempo_2d_id-gSRY5u5`}:Nx.rule()}):null,e.onGoogle&&!e.linking?(0,V.jsxs)(vl,{size:`large`,disabled:e.sending||e.passkeyPending,onClick:e.onGoogle,variant:`secondary`,children:[(0,V.jsx)(Mx,{"aria-hidden":!0}),`Continue with Google`]}):null,e.onPasskey&&!e.linking?(0,V.jsxs)(vl,{size:`large`,disabled:e.sending,loading:e.passkeyPending,onClick:e.onPasskey,variant:`secondary`,children:[(0,V.jsx)(Xc,{}),`Continue with passkey`]}):null,e.linking&&e.onStartOver?(0,V.jsx)(vl,{...Nx.startOver?{className:`z-tempo_2d_id-gSRY5u-styles-startOver-justify-self-0`}:Nx.startOver(),onClick:e.onStartOver,variant:`text`,children:`Start over`}):null]})]})}var Nx;(function(e){e.app=1,e.badge=1,e.code=1,e.column=1,e.description=1,e.header=1,e.links=1,e.rule=1,e.stack=1,e.startOver=1,e.status=1,e.title=1})(Nx||={});var Px=class extends Error{name=`Page.CeremonyError`},Fx=Fe(`/login`)({codeSplitGroupings:[],component:()=>(0,V.jsx)(Ix,{...Fx.useLoaderData()}),loader:async e=>{let t=new URLSearchParams(e.location.searchStr),n=t.has(`sig`),r=t.get(`return_to`),i=hf(),[a,o]=await Promise.all([sf(i.v1.auth.session.$get()),sf(i.v1.auth.methods.$get({query:{...n?{oauth_query:t.toString()}:{},...r?{return_to:r}:{}}}))]);return a.user&&!n&&Tf({href:o.return_to??`/`}),{failed:o.google&&t.get(`error`)===`access_denied`,google:o.google,passkeys:o.passkeys,request:o.request,returnTo:o.return_to,userCode:o.user_code}},loaderDeps:e=>({search:e.search}),server:{handlers:{POST:e=>new Response(null,{headers:{location:`/login${new URL(e.request.url).search}`},status:303})}}});function Ix(e){let t=vf(),n=M(),[r,i]=(0,B.useState)(void 0),a=en({async mutationFn(e){let n=e.assertion??await u({});return sf(t.v1.auth.passkey.verify.$post({json:{assertion:n,...Hx()}}))}}),o=en({mutationFn:d}),s=en({mutationFn:d});(0,B.useEffect)(()=>{if(!o.isSuccess)return;let e=window.setTimeout(()=>o.reset(),Lx);return()=>window.clearTimeout(e)},[o.isSuccess,o.reset]);let c=en({async mutationFn(e){let n=r?{assertion:await u({link:r}),link:r}:{};return sf(t.v1.auth.code.verify.$post({json:{...e,...n,...Hx()}}))}}),l=s.isSuccess?s.variables.email:void 0;async function u(n){let{link:r}=n,{allowCredentials:i,...a}=(await sf(t.v1.auth.passkey.options.$post({json:{...r?{link:r}:{},...Hx(),...e.userCode?{user_code:e.userCode}:{}}}))).options.publicKey;try{return await Nf({getFn:e=>navigator.credentials.get(e),options:{publicKey:{...a,...i?{allowCredentials:i}:{}}}})}catch(e){throw new Px(`Passkey ceremony failed.`,{cause:e})}}function d(e){return sf(t.v1.auth.code.$post({json:e}))}function f(e){e.preventDefault(),!(s.isPending||a.isPending)&&(a.reset(),s.mutate({email:String(new FormData(e.currentTarget).get(`email`))}))}function p(e){if(e.preventDefault(),!l||c.isPending||c.isSuccess)return;let t=e.currentTarget;o.reset(),c.mutate({code:String(new FormData(t).get(`code`)),email:l},{onError(e){zx(e)&&i(void 0);let n=t.elements.namedItem(`code`);n instanceof HTMLInputElement&&(n.value=``,n.focus())},onSuccess(e){window.setTimeout(()=>m(e),Rx)}})}function m(t){t.redirect?window.location.assign(t.redirect):e.returnTo?window.location.assign(e.returnTo):n.navigate({to:`/`})}function h(){let e=new URL(window.location.href);e.searchParams.delete(`error`);let t=new URL(`/v1/auth/oauth/google`,window.location.origin);t.searchParams.set(`return_to`,e.pathname+e.search);let{oauth_query:n}=Hx();n&&t.searchParams.set(`oauth_query`,n),window.location.assign(t)}function g(){a.isPending||(s.reset(),a.mutate({},{onSuccess:_}))}function _(e){`step`in e?i(e.step.link):m({redirect:e.redirect})}function v(){!l||c.isPending||c.isSuccess||(c.reset(),o.mutate({email:l}))}function y(){a.reset(),o.reset(),s.reset(),i(void 0),c.reset()}function b(){a.reset(),s.reset(),i(void 0)}let x=l?c.error??o.error:s.error??a.error,S=e.failed&&s.isIdle&&a.isIdle;return(0,V.jsx)(`main`,{...Ux.page?{className:`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-nr-Vm7o z_tempo_2d_id-0xm92Y3 z_tempo_2d_id-0xm92Y4`}:Ux.page(),children:(0,V.jsx)(Z,{autoFocus:!0,email:l,error:(()=>{if(x)return Bx(x,{code:!!l});if(S)return`Sign-in with Google failed. Try again, or continue with email.`})(),invalid:!!(l?c.error:s.error),linking:!!r,onChangeEmail:y,onGoogle:e.google?h:void 0,onPasskey:e.passkeys?g:void 0,onResend:v,onStartOver:b,onSubmitCode:p,onSubmitEmail:f,passkeyPending:a.isPending,request:e.request??void 0,resend:o.isPending?`pending`:o.isSuccess?`sent`:`idle`,sending:s.isPending,verified:c.isSuccess,verifying:c.isPending})})}var Lx=5e3,Rx=500;function zx(e){if(e instanceof Px)return!0;let t=_f(e);return t===`passkey_link_expired`||t===`passkey_not_permitted`||t===`webauthn_rejected`}function Bx(e,t){return t.code&&(e instanceof Px||_f(e)===`webauthn_rejected`)?`Your passkey did not confirm the sign-in. Enter the code again to sign in with email only.`:e instanceof Px?Vx(e).includes(`NotAllowedError`)?`Passkey sign-in was canceled. Try again, or continue with email.`:`Passkey sign-in failed. Try again, or continue with email.`:gf(e)}function Vx(e){return e instanceof Error?[e.name,...Vx(e.cause)]:[]}function Hx(){let e=new URLSearchParams(window.location.search);return e.has(`sig`)?(e.delete(`error`),{oauth_query:e.toString()}):{}}var Ux;(function(e){e.page=1})(Ux||={});var Wx=Fe(`/_/flows`)({codeSplitGroupings:[],component:Gx,ssr:!1});function Gx(){return(0,V.jsxs)(`main`,{...$.canvas?{className:`z_tempo_2d_id-nr-Vm7u z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-cvNCQ91a z_tempo_2d_id-cvNCQ91b z_tempo_2d_id-cvNCQ91c z-tempo_2d_id-cvNCQ9-styles-canvas-p-0 z-tempo_2d_id-cvNCQ9-styles-canvas-p-1 z_tempo_2d_id-cvNCQ91d`}:$.canvas(),children:[(0,V.jsxs)(`header`,{...$.intro?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z-tempo_2d_id-cvNCQ9-styles-intro-left-0 z-tempo_2d_id-cvNCQ9-styles-intro-left-1 z_tempo_2d_id-cvNCQ91l z_tempo_2d_id-cvNCQ91m`}:$.intro(),children:[(0,V.jsx)(`h1`,{...$.title?{className:`z_tempo_2d_id-J3oRTbp z_tempo_2d_id-J3oRTbq z_tempo_2d_id-J3oRTbr z_tempo_2d_id-cvNCQ914 z_tempo_2d_id-J3oRTbs`}:$.title(),children:`Flows`}),(0,V.jsx)(`p`,{...$.lede?{className:`z_tempo_2d_id-nr-Vm7n z_tempo_2d_id-J3oRTbx z_tempo_2d_id-J3oRTby z_tempo_2d_id-J3oRTbz z_tempo_2d_id-J3oRTb10 z_tempo_2d_id-J3oRTb11`}:$.lede(),children:`Every path through Tempo ID, from the entry point on the left to the exit on the right. Each arrow names the request or event that leads to the next step. Scroll to pan.`})]}),bS().map(e=>(0,B.createElement)(`section`,{...$.section?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-cvNCQ928`}:$.section(),key:e.title},(0,V.jsx)(`h2`,{...$.sectionTitle?{className:`z_tempo_2d_id-cvNCQ929 z_tempo_2d_id-cvNCQ92a z_tempo_2d_id-cvNCQ92b z_tempo_2d_id-cvNCQ92c z_tempo_2d_id-cvNCQ92d z_tempo_2d_id-cvNCQ92e z_tempo_2d_id-cvNCQ92f`}:$.sectionTitle(),children:e.title}),e.flows.map(e=>(0,B.createElement)(`article`,{...$.flow?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-kV7-rJ1a`}:$.flow(),key:e.title},(0,V.jsxs)(`header`,{...$.flowHeader?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-J3oRTb1b z-tempo_2d_id-cvNCQ9-styles-flowHeader-left-0 z-tempo_2d_id-cvNCQ9-styles-flowHeader-left-1 z_tempo_2d_id-cvNCQ91l z_tempo_2d_id-cvNCQ91m`}:$.flowHeader(),children:[(0,V.jsx)(`h3`,{...$.flowTitle?{className:`z_tempo_2d_id-cvNCQ91n z_tempo_2d_id-cvNCQ91o z_tempo_2d_id-cvNCQ91p z_tempo_2d_id-cvNCQ91q z_tempo_2d_id-cvNCQ91r`}:$.flowTitle(),children:e.title}),(0,V.jsx)(`p`,{...$.flowDescription?{className:`z_tempo_2d_id-nr-Vm7n z_tempo_2d_id-nr-Vm73 z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-nr-Vm75 z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm77`}:$.flowDescription(),children:(0,V.jsx)(Kx,{text:e.description})})]}),(0,V.jsx)(`ol`,{...$.row?{className:`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-nr-Vm7f z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm7g`}:$.row(),children:e.nodes.map((t,n)=>(0,B.createElement)(`li`,{...$.step?{className:`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm7c`}:$.step(),key:`${n}:${t.name}`},n>0?(0,V.jsx)(qx,{label:t.edge}):null,t.screen?(0,V.jsxs)(`figure`,{...$.artboard?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-nr-Vm72`}:$.artboard(),children:[(0,V.jsx)(`figcaption`,{...$.frameLabel?{className:`z_tempo_2d_id-nr-Vm7n z_tempo_2d_id-nr-Vm7p z_tempo_2d_id-nr-Vm7q z_tempo_2d_id-nr-Vm7r z_tempo_2d_id-nr-Vm7s z_tempo_2d_id-nr-Vm7t`}:$.frameLabel(),children:t.owner===`app`?`App · ${t.name}`:t.name}),t.owner===`app`?(0,V.jsx)(`div`,{...xf({set:`thirdParty`}),children:(0,V.jsx)(`div`,{...$.frame?{className:`z_tempo_2d_id-nr-Vm7m z_tempo_2d_id-cvNCQ91t z_tempo_2d_id-cvNCQ91u z_tempo_2d_id-cvNCQ91v z_tempo_2d_id-cvNCQ91w`}:$.frame(),children:t.screen})}):(0,V.jsx)(`div`,{...$.frame?{className:`z_tempo_2d_id-nr-Vm7m z_tempo_2d_id-cvNCQ91t z_tempo_2d_id-cvNCQ91u z_tempo_2d_id-cvNCQ91v z_tempo_2d_id-cvNCQ91w`}:$.frame(),children:t.screen})]}):(0,V.jsx)(Jx,{detail:t.detail,kind:n===0?`Entry`:n===e.nodes.length-1?`Exit`:`External`,name:t.name})))})))))]})}function Kx(e){return e.text.split("`").map((e,t)=>t%2?(0,B.createElement)(`code`,{...$.code?{className:`z_tempo_2d_id-kV7-rJ14 z_tempo_2d_id-kV7-rJ15 z_tempo_2d_id-kV7-rJ16 z_tempo_2d_id-kV7-rJ17 z_tempo_2d_id-kV7-rJ18`}:$.code(),key:t},e):e)}function qx(e){return(0,V.jsxs)(`span`,{...$.arrow?{className:`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-3w2jki7 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-J3oRTb13 z_tempo_2d_id-cvNCQ918 z_tempo_2d_id-cvNCQ919`}:$.arrow(),"aria-label":e.label??`Then`,role:`img`,children:[(0,V.jsx)(`span`,{...$.edge?{className:`z_tempo_2d_id-nr-Vm7n z_tempo_2d_id-nr-Vm7z z_tempo_2d_id-J3oRTb14 z_tempo_2d_id-kV7-rJ14 z_tempo_2d_id-kV7-rJ15 z_tempo_2d_id-kV7-rJ16 z_tempo_2d_id-kV7-rJ17 z_tempo_2d_id-kV7-rJ18`}:$.edge(),children:e.label}),(0,V.jsxs)(`span`,{...$.shaft?{className:`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-J3oRTbv`}:$.shaft(),children:[(0,V.jsx)(`span`,{...$.line?{className:`z_tempo_2d_id-cvNCQ923 z_tempo_2d_id-cvNCQ924 z_tempo_2d_id-3w2jki1`}:$.line()}),(0,V.jsx)(Wc,{...$.head?{className:`z-tempo_2d_id-cvNCQ9-styles-head-text-0 z-tempo_2d_id-cvNCQ9-styles-external-flex-shrink-5 z-tempo_2d_id-cvNCQ9-styles-head-h-1 z-tempo_2d_id-cvNCQ9-styles-head-w-2`}:$.head()})]})]})}function Jx(e){return(0,V.jsxs)(`div`,{...$.external({kind:e.kind}),children:[(0,V.jsx)(`span`,{...$.kind?{className:`z_tempo_2d_id-nr-Vm7n z_tempo_2d_id-cvNCQ922 z_tempo_2d_id-nr-Vm7p z_tempo_2d_id-nr-Vm7q z_tempo_2d_id-nr-Vm7r z_tempo_2d_id-nr-Vm7s z_tempo_2d_id-nr-Vm7t`}:$.kind(),children:e.kind}),(0,V.jsx)(`span`,{...$.externalName?{className:`z_tempo_2d_id-J3oRTb4 z_tempo_2d_id-J3oRTb5 z_tempo_2d_id-J3oRTb6 z_tempo_2d_id-J3oRTb7 z_tempo_2d_id-J3oRTb8`}:$.externalName(),children:e.name}),e.detail?(0,V.jsx)(`code`,{...$.detail?{className:`z_tempo_2d_id-nr-Vm7n z_tempo_2d_id-nr-Vm7z z_tempo_2d_id-kV7-rJ14 z_tempo_2d_id-kV7-rJ15 z_tempo_2d_id-kV7-rJ16 z_tempo_2d_id-kV7-rJ17 z_tempo_2d_id-kV7-rJ18`}:$.detail(),children:e.detail}):null]})}function Yx(e){return(0,V.jsxs)(`div`,{...$.app?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm7w`}:$.app(),children:[(0,V.jsxs)(`header`,{...$.appHeader?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71 z_tempo_2d_id-cvNCQ9p`}:$.appHeader(),children:[(0,V.jsx)(`h4`,{...$.appTitle?{className:`z_tempo_2d_id-J3oRTbp z_tempo_2d_id-J3oRTbq z_tempo_2d_id-J3oRTbr z_tempo_2d_id-cvNCQ914 z_tempo_2d_id-J3oRTbs`}:$.appTitle(),children:e.title}),e.description?(0,V.jsx)(`p`,{...$.appDescription?{className:`z_tempo_2d_id-nr-Vm7n z_tempo_2d_id-J3oRTbx z_tempo_2d_id-J3oRTby z_tempo_2d_id-J3oRTbz z_tempo_2d_id-J3oRTb10 z_tempo_2d_id-J3oRTb11`}:$.appDescription(),children:e.description}):null]}),e.children]})}function Xx(e){return(0,V.jsx)(`button`,{...$.appButton({tone:e.tone}),type:`button`,children:e.children})}function Zx(){return(0,V.jsxs)(`label`,{...$.appField?{className:`z_tempo_2d_id-nr-Vm70 z_tempo_2d_id-nr-Vm71`}:$.appField(),children:[(0,V.jsx)(`span`,{...$.appLabel?{className:`z_tempo_2d_id-GE1xyW1h z_tempo_2d_id-GE1xyW1i z_tempo_2d_id-cvNCQ9y z_tempo_2d_id-GE1xyW1j z_tempo_2d_id-GE1xyW1k`}:$.appLabel(),children:`Email`}),(0,V.jsx)(`input`,{...$.appInput?{className:`z_tempo_2d_id-nr-Vm7u z_tempo_2d_id-cvNCQ9r z_tempo_2d_id-kV7-rJg z_tempo_2d_id-cvNCQ9t z_tempo_2d_id-J3oRTb1o z_tempo_2d_id-J3oRTbx z_tempo_2d_id-J3oRTby z_tempo_2d_id-J3oRTbz z_tempo_2d_id-J3oRTb10 z_tempo_2d_id-J3oRTb11 z_tempo_2d_id-J3oRTbv`}:$.appInput(),placeholder:`Required`,readOnly:!0})]})}function Qx(){return(0,V.jsxs)(Yx,{title:`Sign in or sign up`,children:[(0,V.jsx)(Xx,{tone:`google`,children:`Continue with Google`}),(0,V.jsx)(Xx,{tone:`quiet`,children:`Continue with passkey`}),(0,V.jsx)(`p`,{...$.appDivider?{className:`z_tempo_2d_id-nr-Vm7e z_tempo_2d_id-nr-Vm7n z_tempo_2d_id-nr-Vm7c z_tempo_2d_id-kV7-rJ1a z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm73 z_tempo_2d_id-nr-Vm74 z_tempo_2d_id-nr-Vm75 z_tempo_2d_id-nr-Vm76 z_tempo_2d_id-nr-Vm77 z_tempo_2d_id-3w2jki4 z-tempo_2d_id-cvNCQ9-styles-appDivider-bg-0 z-tempo_2d_id-cvNCQ9-styles-appDivider-content-1 z-tempo_2d_id-cvNCQ9-styles-appDivider-flex-grow-2 z-tempo_2d_id-cvNCQ9-styles-appDivider-h-3`}:$.appDivider(),children:`or continue with email`}),(0,V.jsx)(Zx,{}),(0,V.jsx)(Xx,{tone:`brand`,children:`Continue`})]})}function $x(){return(0,V.jsxs)(Yx,{description:`Sign in with your email to link this passkey.`,title:`Add your email`,children:[(0,V.jsx)(Zx,{}),(0,V.jsx)(Xx,{tone:`brand`,children:`Continue`})]})}function eS(){return(0,V.jsxs)(Yx,{description:`Enter the 6-digit code sent to ${aS}.`,title:`Check your email`,children:[(0,V.jsx)(xx,{"aria-label":`Code`,length:6,readOnly:!0}),(0,V.jsx)(Xx,{tone:`brand`,children:`Verify`})]})}function tS(){return(0,V.jsxs)(Yx,{description:aS,title:`You're signed in`,children:[(0,V.jsx)(`p`,{...$.appAddress?{className:`z_tempo_2d_id-nr-Vm7n z_tempo_2d_id-nr-Vm72 z_tempo_2d_id-nr-Vm7z z_tempo_2d_id-kV7-rJ14 z_tempo_2d_id-kV7-rJ15 z_tempo_2d_id-kV7-rJ16 z_tempo_2d_id-kV7-rJ17 z_tempo_2d_id-kV7-rJ18`}:$.appAddress(),children:iS[0].address}),(0,V.jsx)(Xx,{tone:`quiet`,children:`Sign out`})]})}function nS(){}function rS(e){e.preventDefault()}var iS=[{address:`0x1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9f3c`,balance:{amount:`1250.5`,currency:`USD`},owner:`privy`,realm:null},{address:`0x7c4d2e9a1b3f5c7d9e0a2b4c6d8e0f1a3b5c21ab`,balance:{amount:`42`,currency:`USD`},owner:`webAuthn`,realm:null}],aS=`user@example.com`,oS=`An upstream service is unavailable. Retry later.`;function sS(){return{expiry:Math.floor(Date.now()/1e3)+604800,limits:[{amount:`100`,currency:`USD`,period:86400,tokens:[{amount:`100`,symbol:`pathUSD`}]}]}}function cS(){return{app:`Tempo Wallet`,approving:!1,denying:!1,destination:`wallet.tempo.xyz`,email:aS,heading:`h4`,keyAuthorization:sS(),onApprove:nS,onDeny:nS}}function lS(){return{app:`Tempo Wallet`,key:sS()}}var uS={detail:`GET /authorize?…&key_authorization`,name:`Web app`};function dS(){return{accounts:[iS[0]],email:aS,heading:`h4`,onSignOut:nS,signingOut:!1}}function fS(){return{accounts:iS,app:`Tempo Wallet`,heading:`h4`,onChoose:nS}}function pS(){return{approving:!1,code:``,denying:!1,fetching:!1,heading:`h4`,invalid:!1,onApprove:nS,onDeny:nS,onSubmitCode:rS}}function mS(){return{app:{name:`Tempo CLI`},created_at:Math.floor(Date.now()/1e3),device:`ada-macbook`,ip:`203.0.113.7`,key_authorization:sS(),location:`San Francisco, US`,user_code:`BDWP-HQPK`}}var hS={detail:`POST /v1/device/authorize with key_authorization`,name:`tempo-id login`},gS={detail:`Tokens and key_authorization, stored in ~/.tempo/id/credentials.json. A replaced session’s refresh token goes to POST /oauth2/revoke.`,edge:`POST /v1/device/token: authorization_pending, then tokens`,name:`tempo-id login`};function Q(){return{heading:`h4`,invalid:!1,onChangeEmail:nS,onGoogle:nS,onPasskey:nS,onResend:nS,onStartOver:nS,onSubmitCode:rS,onSubmitEmail:rS,resend:`idle`,sending:!1,verifying:!1}}var _S={detail:`GET /authorize?client_id&redirect_uri&code_challenge&state`,name:`Web app`},vS=`GET /v1/auth/session: no user, GET /v1/auth/providers`,yS={detail:`Access, ID, and refresh tokens`,edge:`POST /oauth2/token with code_verifier`,name:`Web app`};function bS(){return[{flows:[{description:`A visitor opens Tempo ID without a session and signs in with an emailed code. An accepted code shows green for 500 ms before the sign-in continues.`,nodes:[{detail:`GET /`,name:`Browser opens Tempo ID`},{edge:`302 /login`,name:`Sign in`,screen:(0,V.jsx)(Z,{...Q()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,V.jsx)(Z,{...Q(),email:aS})},{edge:`POST /v1/auth/code/verify: 200`,name:`Check your email (accepted)`,screen:(0,V.jsx)(Z,{...Q(),email:aS,verified:!0})},{edge:`after 500 ms, redirect: null`,name:`Your account`,screen:(0,V.jsx)(Ef,{...dS()})}],title:`Email code`},{description:`A passkey of the realm signs the user in with one prompt, from the button.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{name:`Sign in`,screen:(0,V.jsx)(Z,{...Q()})},{detail:`POST /v1/auth/passkey/options`,edge:`Sign in with a passkey`,name:`Authenticator prompt`},{edge:`POST /v1/auth/passkey/verify`,name:`Your account`,screen:(0,V.jsx)(Ef,{...dS()})}],title:`Passkey`},{description:`A wallet.tempo passkey without an email verifies one with a code. The passkey signs again with the code, which links it to the user.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{name:`Sign in`,screen:(0,V.jsx)(Z,{...Q()})},{detail:`POST /v1/auth/passkey/options`,edge:`Sign in with a passkey`,name:`Authenticator prompt`},{edge:`POST /v1/auth/passkey/verify: step email`,name:`Sign in (link passkey)`,screen:(0,V.jsx)(Z,{...Q(),linking:!0})},{edge:`POST /v1/auth/code`,name:`Check your email (link passkey)`,screen:(0,V.jsx)(Z,{...Q(),email:aS,linking:!0})},{detail:`POST /v1/auth/passkey/options with link and authorize`,edge:`Code complete`,name:`Authenticator prompt`},{edge:`POST /v1/auth/code/verify with link and assertion: 200`,name:`Check your email (link accepted)`,screen:(0,V.jsx)(Z,{...Q(),email:aS,linking:!0,verified:!0})},{edge:`after 500 ms, redirect: null`,name:`Your account`,screen:(0,V.jsx)(Ef,{...dS()})}],title:`Passkey without an email`},{description:`Start over on the email step drops the passkey’s link and a pending code request, so the passkey stays unlinked.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{edge:`Sign in with a passkey, POST /v1/auth/passkey/verify: step email`,name:`Sign in (link passkey)`,screen:(0,V.jsx)(Z,{...Q(),linking:!0})},{edge:`Start over`,name:`Sign in`,screen:(0,V.jsx)(Z,{...Q()})}],title:`Passkey link, started over`},{description:`Google signs the user in, and its callback returns to the sign-in page, which sends a signed-in user on.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{name:`Sign in`,screen:(0,V.jsx)(Z,{...Q()})},{edge:`GET /v1/auth/oauth/google?return_to=/login`,name:`Google`},{edge:`GET /callback/google, 302 /login, 302 /`,name:`Your account`,screen:(0,V.jsx)(Ef,{...dS()})}],title:`Google`},{description:"A Google sign-in that fails returns to the sign-in page with `error=access_denied`, whatever the cause.",nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{name:`Sign in`,screen:(0,V.jsx)(Z,{...Q()})},{edge:`GET /v1/auth/oauth/google?return_to=/login`,name:`Google`},{edge:`GET /callback/google, 302 /v1/auth/oauth/google/failed, 302 /login?error=access_denied`,name:`Sign in (Google failed)`,screen:(0,V.jsx)(Z,{...Q(),error:`Sign-in with Google failed. Try again, or continue with email.`})}],title:`Google, failed`},{description:`A deployment without Google, and realms without a passkey relying party at Tempo ID’s origin, leave only the email field.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{edge:`200, google: false, passkeys: false`,name:`Sign in (email only)`,screen:(0,V.jsx)(Z,{...Q(),onGoogle:void 0,onPasskey:void 0})}],title:`Email only`},{description:`Each sign-in request holds its controls, shows a spinner, and announces its progress until it settles. One sign-in runs at a time.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{edge:`Continue, POST /v1/auth/code`,name:`Sign in (sending)`,screen:(0,V.jsx)(Z,{...Q(),sending:!0})},{edge:`Or: Sign in with a passkey`,name:`Sign in (passkey pending)`,screen:(0,V.jsx)(Z,{...Q(),passkeyPending:!0})},{edge:`Code complete, POST /v1/auth/code/verify`,name:`Check your email (verifying)`,screen:(0,V.jsx)(Z,{...Q(),email:aS,verifying:!0})},{edge:`Or: Resend code, POST /v1/auth/code`,name:`Check your email (resending)`,screen:(0,V.jsx)(Z,{...Q(),email:aS,resend:`pending`})}],title:`Sign-in in progress`}],title:`Sign-in`},{flows:[{description:"The account page lists the user’s Tempo Accounts in the `default` realm, oldest first, each with its balance and a deposit link. A lone wallet shows its balance large, without a list.",nodes:[{detail:`GET /`,name:`Browser opens Tempo ID`},{edge:`200, one wallet`,name:`Your account (one wallet)`,screen:(0,V.jsx)(Ef,{...dS()})},{edge:`Or: several wallets`,name:`Your account (several wallets)`,screen:(0,V.jsx)(Ef,{...dS(),accounts:iS})},{edge:`Or: a balance read fails`,name:`Your account (balance unavailable)`,screen:(0,V.jsx)(Ef,{...dS(),accounts:[iS[0],{...iS[1],balance:null}]})},{edge:`Or: no wallets`,name:`Your account (no wallets)`,screen:(0,V.jsx)(Ef,{...dS(),accounts:[]})},{edge:`Or: the accounts cannot be read`,name:`Your account (unavailable)`,screen:(0,V.jsx)(Ef,{...dS(),accountError:`Your wallets failed to load. Reload the page to try again.`,accounts:null})}],title:`Account page`},{description:`The account page and the deposit page send a visitor without a session to sign-in, which then opens the account page. The deposit page leaves the address out of the sign-in query.`,nodes:[{detail:`GET / or GET /deposit?address`,name:`Browser`},{edge:`302 /login, no session`,name:`Sign in`,screen:(0,V.jsx)(Z,{...Q()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,V.jsx)(Z,{...Q(),email:aS})},{edge:`POST /v1/auth/code/verify: 200`,name:`Check your email (accepted)`,screen:(0,V.jsx)(Z,{...Q(),email:aS,verified:!0})},{edge:`after 500 ms, redirect: null, GET /`,name:`Your account`,screen:(0,V.jsx)(Ef,{...dS()})}],title:`Account page, signed out`},{description:`Deposit lists the networks and cash methods for one of the user’s wallets. Only Tempo is available, and it shows the wallet’s address as a QR code and as text. Back on Receive funds returns to the deposit methods.`,nodes:[{detail:`GET /`,name:`Browser opens Tempo ID`},{edge:`200, one wallet`,name:`Your account`,screen:(0,V.jsx)(Ef,{...dS()})},{edge:`Deposit, GET /deposit?address`,name:`Deposit`,screen:(0,V.jsx)(mx,{address:iS[0].address,heading:`h4`})},{edge:`Tempo, GET /deposit?address&method=tempo`,name:`Receive funds`,screen:(0,V.jsx)(mx,{address:iS[0].address,heading:`h4`,method:`tempo`})},{edge:`Back, GET /deposit?address`,name:`Deposit`,screen:(0,V.jsx)(mx,{address:iS[0].address,heading:`h4`})},{edge:`Back, GET /`,name:`Your account`,screen:(0,V.jsx)(Ef,{...dS()})}],title:`Deposit`},{description:`Done on Receive funds opens the account page at once.`,nodes:[{detail:`GET /deposit?address&method=tempo`,name:`Browser`},{edge:`200 deposit page`,name:`Receive funds`,screen:(0,V.jsx)(mx,{address:iS[0].address,heading:`h4`,method:`tempo`})},{edge:`Done, GET /`,name:`Your account`,screen:(0,V.jsx)(Ef,{...dS()})}],title:`Deposit, Done`},{description:"An address that is not one of the user’s wallets in the `default` realm shows no address. A spent rate limit or a failed account read shows its own reason in the same place.",nodes:[{detail:`GET /deposit?address (not the user’s)`,name:`Browser`},{edge:`200, address: null`,name:`Deposit (wallet not found)`,screen:(0,V.jsx)(mx,{error:`This wallet was not found. Go back to your account, then choose Deposit.`,heading:`h4`})},{edge:`Or: the account rate limit is spent`,name:`Deposit (rate limited)`,screen:(0,V.jsx)(mx,{error:`Too many requests. Try again in 1 minute.`,heading:`h4`})},{edge:`Or: the accounts cannot be read`,name:`Deposit (unavailable)`,screen:(0,V.jsx)(mx,{error:`Your wallets failed to load. Reload the page to try again.`,heading:`h4`})}],title:`Wallet not found`}],title:`Account and deposit`},{flows:[{description:`A web app redirects a signed-out user. Better Auth signs the request, and the sign-in continues it.`,nodes:[_S,{edge:`302 /oauth2/authorize, 302 /login?…&sig`,name:`Sign in`,screen:(0,V.jsx)(Z,{...Q()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,V.jsx)(Z,{...Q(),email:aS})},{edge:`POST /v1/auth/code/verify with oauth_query: 200`,name:`Check your email (accepted)`,screen:(0,V.jsx)(Z,{...Q(),email:aS,verified:!0})},{detail:`GET redirect_uri?code&state`,edge:`after 500 ms, redirect`,name:`Web app callback`},yS],title:`Redirect, signed out`},{description:`A signed-out user’s request with a key shows the app and the key on the sign-in page. The first sign-in of the request grants the key, so the browser returns to the app without the approval page.`,nodes:[uS,{edge:`302 /oauth2/authorize, 302 /login?…&sig, GET /login: request`,name:`Sign in (key)`,screen:(0,V.jsx)(Z,{...Q(),request:lS()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,V.jsx)(Z,{...Q(),email:aS})},{edge:`POST /v1/auth/code/verify with oauth_query: 200, grants the key`,name:`Check your email (accepted)`,screen:(0,V.jsx)(Z,{...Q(),email:aS,verified:!0})},{detail:`GET redirect_uri?code&state`,edge:`after 500 ms, redirect`,name:`Web app callback`},{...yS,detail:`Tokens, account, and key_authorization`}],title:`Sign-in that grants a key`},{description:`On the sign-in page, the passkey’s challenge is the digest of the request’s key. One tap signs the user in and signs the key, for an account that this passkey owns, or that Privy or secp256k1 owns.`,nodes:[uS,{edge:`302 /oauth2/authorize, 302 /login?…&sig`,name:`Sign in (key)`,screen:(0,V.jsx)(Z,{...Q(),request:lS()})},{detail:`POST /v1/auth/passkey/options with oauth_query: the key’s digest`,edge:`Sign in with a passkey`,name:`Authenticator prompt`},{detail:`GET redirect_uri?code&state`,edge:`POST /v1/auth/passkey/verify with oauth_query, grants the key`,name:`Web app callback`},{...yS,detail:`Tokens, account, and key_authorization`}],title:`Sign-in that grants a key, passkey one-tap`},{description:"The sign-in page starts Google with `sec-fetch-site: same-origin`, so the start sets the `__Host-tempo-id-grant` cookie for the request. The callback grants the key only when the cookie matches the request, and clears it.",nodes:[uS,{edge:`302 /oauth2/authorize, 302 /login?…&sig`,name:`Sign in (key)`,screen:(0,V.jsx)(Z,{...Q(),request:lS()})},{edge:`GET /v1/auth/oauth/google?oauth_query&return_to, same-origin: sets __Host-tempo-id-grant`,name:`Google`},{detail:`GET redirect_uri?code&state`,edge:`GET /callback/google, the cookie matches: grants the key, 302`,name:`Web app callback`},{...yS,detail:`Tokens, account, and key_authorization`}],title:`Sign-in that grants a key, Google`},{description:"Any site can send a browser to the Google start. Without `sec-fetch-site: same-origin`, the start clears the grant cookie. The callback then keeps the redirect to the approval page, which shows the key.",nodes:[{detail:`GET /v1/auth/oauth/google?oauth_query&return_to`,name:`Another site`},{edge:`cross-site: clears __Host-tempo-id-grant, 302`,name:`Google`},{edge:`GET /callback/google, no grant cookie, 302 /authorize?…&sig`,name:`Authorize this app`,screen:(0,V.jsx)(Ap,{...cS()})},{detail:`GET redirect_uri?code&state`,edge:`Approve, POST /v1/authorize/consent`,name:`Web app callback`},{...yS,detail:`Tokens, account, and key_authorization`}],title:`Google start from another site`},{description:`The account step does not run when the account reads are spent. The sign-in page shows no account, so a user with several accounts gets no grant, and the approval page opens. That page holds Approve until a reload after a minute.`,nodes:[uS,{edge:`302 /oauth2/authorize, 302 /login?…&sig`,name:`Sign in (key)`,screen:(0,V.jsx)(Z,{...Q(),request:lS()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,V.jsx)(Z,{...Q(),email:aS})},{edge:`POST /v1/auth/code/verify with oauth_query: ACCOUNT_LIMIT spent, no account step, several accounts: no grant`,name:`Check your email (accepted)`,screen:(0,V.jsx)(Z,{...Q(),email:aS,verified:!0})},{edge:`after 500 ms, redirect /authorize?…&sig`,name:`Authorize this app (unavailable)`,screen:(0,V.jsx)(Ap,{...cS(),keyAuthorization:{...sS(),refusal:`unavailable`}})},{edge:`Reload after a minute`,name:`Authorize this app`,screen:(0,V.jsx)(Ap,{...cS()})},{detail:`GET redirect_uri?code&state`,edge:`Approve, POST /v1/authorize/consent`,name:`Web app callback`},{...yS,detail:`Tokens, account, and key_authorization`}],title:`Several accounts, none chosen`},{description:"A held grant covers only the request that the sign-in spent. A request with another `scope`, or with a `challenge`, takes no held grant on the account step, so the approval page opens.",nodes:[{detail:`GET /choose-account?…&sig, another scope or a challenge`,name:`Browser`},{edge:`200 account step`,name:`Choose a wallet`,screen:(0,V.jsx)(Bp,{...fS()})},{edge:`Choose, POST /v1/authorize/account: another scope, no held grant, redirect /authorize?…&sig`,name:`Authorize this app (another scope)`,screen:(0,V.jsx)(Ap,{...cS()})},{edge:`Or: a challenge, which takes no grant, redirect /authorize?…&sig`,name:`Authorize this app (challenge)`,screen:(0,V.jsx)(Ap,{...cS(),keyAuthorization:{...sS(),challenge:`Sign in to api.example.com
3
+ Nonce: 8f2a91`}})},{detail:`GET redirect_uri?code&state`,edge:`Approve, POST /v1/authorize/consent`,name:`Web app callback`},{...yS,detail:`Tokens, account, and key_authorization`}],title:`Account step for another request`},{description:`A user with more than one account in the app’s realms chooses one. The sign-in holds its grant for the session for 10 minutes, and the choice takes it. A passkey that owns the chosen account signs the key on this step first: the selection returns the passkey step, and the repeated selection carries the assertion.`,nodes:[uS,{edge:`302 /oauth2/authorize, 302 /login?…&sig`,name:`Sign in (key)`,screen:(0,V.jsx)(Z,{...Q(),request:lS()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,V.jsx)(Z,{...Q(),email:aS})},{edge:`POST /v1/auth/code/verify with oauth_query: 200, holds the grant`,name:`Check your email (accepted)`,screen:(0,V.jsx)(Z,{...Q(),email:aS,verified:!0})},{edge:`after 500 ms, redirect /choose-account?…&sig`,name:`Choose a wallet`,screen:(0,V.jsx)(Bp,{...fS()})},{edge:`Choose, POST /v1/authorize/account`,name:`Choose a wallet (selecting)`,screen:(0,V.jsx)(Bp,{...fS(),selecting:iS[0].address})},{detail:`GET redirect_uri?code&state`,edge:`takes the held grant, redirect (a passkey account: passkey step, then POST again with the assertion)`,name:`Web app callback`},{...yS,detail:`Tokens, account, and key_authorization`}],title:`Sign-in that grants a key, account step`},{description:`A sign-in that cannot grant the key keeps the redirect to the approval page, which shows the request again. Another passkey may own the account, or the request may be a replay. Approval may refuse the key, or the rate limit may be spent, which also refuses Approve until it resets. An upstream service may also fail.`,nodes:[uS,{edge:`302 /oauth2/authorize, 302 /login?…&sig`,name:`Sign in (key)`,screen:(0,V.jsx)(Z,{...Q(),request:lS()})},{edge:`Sign-in with oauth_query: the grant fails, redirect /authorize?…&sig`,name:`Authorize this app`,screen:(0,V.jsx)(Ap,{...cS()})},{edge:`Approve, POST /v1/authorize/consent`,name:`Authorize this app (approving)`,screen:(0,V.jsx)(Ap,{...cS(),approving:!0})},{detail:`GET redirect_uri?code&state`,edge:`redirect, or the passkey step first`,name:`Web app callback`},{...yS,detail:`Tokens, account, and key_authorization`}],title:`Sign-in that keeps the approval page`},{description:"The account step’s signed query expires 10 minutes after the sign-in, just before its held grant. A later choice is refused with `authorization_expired`, so the user starts again in the app.",nodes:[uS,{edge:`302 /oauth2/authorize, 302 /login?…&sig`,name:`Sign in (key)`,screen:(0,V.jsx)(Z,{...Q(),request:lS()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,V.jsx)(Z,{...Q(),email:aS})},{edge:`POST /v1/auth/code/verify with oauth_query: 200, holds the grant`,name:`Check your email (accepted)`,screen:(0,V.jsx)(Z,{...Q(),email:aS,verified:!0})},{edge:`after 500 ms, redirect /choose-account?…&sig`,name:`Choose a wallet`,screen:(0,V.jsx)(Bp,{...fS()})},{edge:`After 10 minutes, Choose, POST /v1/authorize/account: authorization_expired`,name:`Choose a wallet (request expired)`,screen:(0,V.jsx)(Bp,{...fS(),error:`Expired authorization request: the request from the app is no longer valid. Return to the app, and start again.`})},{detail:`GET /authorize?…&key_authorization, a new request`,edge:`Return to the app, and start again`,name:`Web app`}],title:`Account step after the request expires`},{description:"A request with a `challenge` signs a message that only the approval page shows. So the sign-in page shows no key, and the sign-in grants nothing.",nodes:[{...uS,detail:`GET /authorize?…&key_authorization&challenge`},{edge:`302 /oauth2/authorize, 302 /login?…&sig, GET /login: request: null`,name:`Sign in`,screen:(0,V.jsx)(Z,{...Q()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,V.jsx)(Z,{...Q(),email:aS})},{edge:`POST /v1/auth/code/verify with oauth_query: 200`,name:`Check your email (accepted)`,screen:(0,V.jsx)(Z,{...Q(),email:aS,verified:!0})},{edge:`after 500 ms, redirect /authorize?…&sig`,name:`Authorize this app (challenge)`,screen:(0,V.jsx)(Ap,{...cS(),keyAuthorization:{...sS(),challenge:`Sign in to api.example.com
4
+ Nonce: 8f2a91`}})},{detail:`GET redirect_uri?code&state`,edge:`Approve, POST /v1/authorize/consent`,name:`Web app callback`},{...yS,detail:`Tokens, account, and key_authorization`}],title:`Sign-in with a challenge`},{description:`A signed-in user returns to an app that skips consent at once. Tempo ID shows no screen.`,nodes:[_S,{detail:`GET redirect_uri?code&state`,edge:`302 /oauth2/authorize, 302, no screen`,name:`Web app callback`},yS],title:`Redirect, signed in`},{description:"A request with `prompt=login` asks a signed-in user to sign in again. The sign-in page shows the request, and its key, despite the session.",nodes:[{...uS,detail:`GET /authorize?…&key_authorization&prompt=login`},{edge:`302 /oauth2/authorize, 302 /login?…&prompt=login consent&sig`,name:`Sign in (key)`,screen:(0,V.jsx)(Z,{...Q(),request:lS()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,V.jsx)(Z,{...Q(),email:aS})},{edge:`POST /v1/auth/code/verify with oauth_query: 200, grants the key`,name:`Check your email (accepted)`,screen:(0,V.jsx)(Z,{...Q(),email:aS,verified:!0})},{detail:`GET redirect_uri?code&state`,edge:`after 500 ms, redirect`,name:`Web app callback`},{...yS,detail:`Tokens, account, and key_authorization`}],title:`Redirect with prompt=login`},{description:`A signed-in user approves an app that does not skip consent, once for the scopes it requests. The request carries no key, so the page shows none.`,nodes:[_S,{edge:`302 /oauth2/authorize, 302 /authorize?…&sig`,name:`Authorize this app (no key)`,screen:(0,V.jsx)(Ap,{...cS(),keyAuthorization:void 0})},{detail:`GET redirect_uri?code&state`,edge:`POST /v1/authorize/consent, accept`,name:`Web app callback`},yS],title:`Approval without a key`},{description:`A signed-in user’s request with a key opens the approval page. A Privy or secp256k1 owner signs the key on the server when the user approves.`,nodes:[{..._S,detail:`GET /authorize?…&key_authorization`},{edge:`302 /oauth2/authorize, 302 /authorize?…&sig`,name:`Authorize this app`,screen:(0,V.jsx)(Ap,{...cS()})},{edge:`Approve, POST /v1/authorize/consent`,name:`Authorize this app (approving)`,screen:(0,V.jsx)(Ap,{...cS(),approving:!0})},{detail:`GET redirect_uri?code&state`,edge:`redirect`,name:`Web app callback`},{...yS,detail:`Tokens, account, and key_authorization`}],title:`Approval of a key`},{description:`A passkey owns the account, so the approval returns the passkey step. The passkey signs the key’s digest, and the page approves again.`,nodes:[{..._S,detail:`GET /authorize?…&key_authorization`},{edge:`302 /oauth2/authorize, 302 /authorize?…&sig`,name:`Authorize this app`,screen:(0,V.jsx)(Ap,{...cS()})},{edge:`Approve, POST /v1/authorize/consent`,name:`Authorize this app (approving)`,screen:(0,V.jsx)(Ap,{...cS(),approving:!0})},{detail:`Signs the key authorization, over the approving page`,edge:`step passkey`,name:`Authenticator prompt`},{detail:`GET redirect_uri?code&state`,edge:`POST /v1/authorize/consent with passkey.assertion`,name:`Web app callback`},{...yS,detail:`Tokens, account, and key_authorization`}],title:`Approval of a key for a passkey account`},{description:"An app with the `tempo-id:sign` scope sends a challenge, and the approval page shows the message that the key signs.",nodes:[{detail:`GET /authorize?…&key_authorization&challenge`,name:`Native app`},{edge:`302 /oauth2/authorize, 302 /authorize?…&sig`,name:`Authorize this app (challenge)`,screen:(0,V.jsx)(Ap,{...cS(),app:`Tempo Mobile`,destination:`tempo`,keyAuthorization:{...sS(),challenge:`Sign in to api.example.com
5
+ Nonce: 8f2a91`}})},{detail:`tempo:/callback?code&state`,edge:`POST /v1/authorize/consent, accept`,name:`Native app callback`},{...yS,detail:`Tokens, account, and key_authorization`,name:`Native app`}],title:`Approval with a challenge`},{description:`A user with more than one Tempo Account in the app’s realms chooses one. Each row shows the account’s balance on the chain of the request’s key, or Unavailable when the read fails. The choice continues the authorization to the approval page.`,nodes:[{..._S,detail:`GET /authorize?…&key_authorization`},{edge:`302 /oauth2/authorize, 302 /choose-account?…&sig`,name:`Choose a wallet`,screen:(0,V.jsx)(Bp,{...fS()})},{edge:`Choose, POST /v1/authorize/account`,name:`Choose a wallet (selecting)`,screen:(0,V.jsx)(Bp,{...fS(),selecting:iS[0].address})},{edge:`redirect /authorize?…&sig`,name:`Authorize this app`,screen:(0,V.jsx)(Ap,{...cS()})},{detail:`GET redirect_uri?code&state`,edge:`POST /v1/authorize/consent, accept`,name:`Web app callback`},{...yS,detail:`Tokens, account, and key_authorization`}],title:`Account step`},{description:"An app in several realms, such as web-shared, lists accounts from each. Each row then names its realm, apart from the `default` realm.",nodes:[{..._S,detail:`GET /authorize?…&key_authorization`,name:`Web app in two realms`},{edge:`302 /oauth2/authorize, 302 /choose-account?…&sig`,name:`Choose a wallet (two realms)`,screen:(0,V.jsx)(Bp,{...fS(),accounts:[{...iS[0],realm:`Tempo Cash`},iS[1]]})},{edge:`Choose, POST /v1/authorize/account`,name:`Choose a wallet (two realms, selecting)`,screen:(0,V.jsx)(Bp,{...fS(),accounts:[{...iS[0],realm:`Tempo Cash`},iS[1]],selecting:iS[0].address})},{edge:`redirect /authorize?…&sig`,name:`Authorize this app`,screen:(0,V.jsx)(Ap,{...cS()})},{detail:`GET redirect_uri?code&state`,edge:`POST /v1/authorize/consent, accept`,name:`Web app callback`},{...yS,detail:`Tokens, account, and key_authorization`}],title:`Account step across realms`},{description:"Denying returns the browser to the app with `error=access_denied`. The app receives no code.",nodes:[{..._S,detail:`GET /authorize?…&key_authorization`},{edge:`302 /oauth2/authorize, 302 /authorize?…&sig`,name:`Authorize this app`,screen:(0,V.jsx)(Ap,{...cS()})},{edge:`Deny`,name:`Authorize this app (denying)`,screen:(0,V.jsx)(Ap,{...cS(),denying:!0})},{detail:`GET redirect_uri?error=access_denied&state`,edge:`POST /v1/authorize/consent, accept: false`,name:`Web app callback`}],title:`Denied approval`},{description:`Approval cannot sign some keys, so the page holds Approve and states why. Deny still returns to the app.`,nodes:[{..._S,detail:`GET /authorize?…&key_authorization`},{edge:`302 /oauth2/authorize, 302 /authorize?…&sig: no account, and no Privy app to create one`,name:`Authorize this app (no account)`,screen:(0,V.jsx)(Ap,{...cS(),keyAuthorization:{...sS(),refusal:`no_account`}})},{edge:`Or: a passkey whose relying party is not Tempo ID’s, or POST /v1/authorize/consent: webauthn_required`,name:`Authorize this app (passkey)`,screen:(0,V.jsx)(Ap,{...cS(),keyAuthorization:{...sS(),refusal:`passkey`}})},{edge:`Or: the key names an account that the user does not hold`,name:`Authorize this app (foreign account)`,screen:(0,V.jsx)(Ap,{...cS(),keyAuthorization:{...sS(),refusal:`foreign_account`}})},{edge:`Or: the accounts cannot be read`,name:`Authorize this app (unavailable)`,screen:(0,V.jsx)(Ap,{...cS(),keyAuthorization:{...sS(),refusal:`unavailable`}})},{detail:`GET redirect_uri?error=access_denied&state`,edge:`Deny, POST /v1/authorize/consent, accept: false`,name:`Web app callback`}],title:`Key that approval cannot sign`},{description:"A key that breaks a rule returns to the app with the refusal, as `/oauth2/authorize` returns one before sign-in. The `error` names the rule, such as `invalid_authorization_details` for an expired key, or `unauthorized_client` for a challenge without the `tempo-id:sign` scope.",nodes:[{..._S,detail:`GET /authorize?…&key_authorization`},{detail:`GET redirect_uri?error&error_description`,edge:`302 /oauth2/authorize, key refused`,name:`Web app callback`}],title:`Refused key`},{description:`A changed or expired query, or a request without a known app, shows an invalid request, on the approval page and on the account step.`,nodes:[{detail:`GET /authorize?…&sig (changed)`,name:`Browser`},{edge:`200, request: null`,name:`This sign-in request is invalid`,screen:(0,V.jsx)(jp,{heading:`h4`})},{edge:`Or: GET /choose-account?…&sig (changed), 200, request: null`,name:`This sign-in request is invalid (account step)`,screen:(0,V.jsx)(jp,{heading:`h4`})}],title:`Invalid request`},{description:"A backend runs the redirect flow and redeems the code with its client secret, so tokens never reach the browser. By default the request carries a key. The seeded backend uses only the `default` realm. Without a Privy app or secp256k1 owners there, as in the test harness, no account can sign the key. So the approval page holds Approve, and Deny signs the user in again without a key.",nodes:[{detail:`GET /auth/start on the backend, with a key`,name:`Backend playground`},{edge:`302 /authorize with state and code_challenge, 302 /oauth2/authorize, 302 /login?…&sig`,name:`Sign in (key)`,screen:(0,V.jsx)(Z,{...Q(),request:{...lS(),app:`Backend playground`}})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,V.jsx)(Z,{...Q(),email:aS})},{edge:`POST /v1/auth/code/verify with oauth_query: 200, no account to sign`,name:`Check your email (accepted)`,screen:(0,V.jsx)(Z,{...Q(),email:aS,verified:!0})},{edge:`after 500 ms, redirect /authorize?…&sig`,name:`Authorize this app (no account)`,screen:(0,V.jsx)(Ap,{...cS(),app:`Backend playground`,destination:`backend.example.com`,keyAuthorization:{...sS(),refusal:`no_account`}})},{detail:`GET /auth/callback?error=access_denied&state`,edge:`Deny, POST /v1/authorize/consent, accept: false`,name:`Backend callback`},{detail:`GET /auth/callback?code&state`,edge:`302 /auth/start?key=false, 302 /authorize, 302 /oauth2/authorize, 302, no screen`,name:`Backend callback`},{detail:`Tokens stay on the server, without a key`,edge:`POST /oauth2/token with client_secret`,name:`Backend session`}],title:`Backend app`}],title:`App authorization`},{flows:[{description:`The app's own pages send the code, verify it, and request the authorization. Tempo ID shows no screen.`,nodes:[{detail:`Web playground`,name:`App's sign-in`},{edge:vS,name:`Sign in`,owner:`app`,screen:(0,V.jsx)(Qx,{})},{edge:`POST /v1/auth/code`,name:`Check your email`,owner:`app`,screen:(0,V.jsx)(eS,{})},{edge:`POST /v1/auth/code/verify, POST /v1/account, POST /v1/authorize`,name:`Signed in`,owner:`app`,screen:(0,V.jsx)(tS,{})}],title:`Headless email code`},{description:`A signed-in user skips the code. The app requests the authorization at once.`,nodes:[{detail:`Session cookie set`,name:`App's page`},{edge:`GET /v1/auth/session, POST /v1/authorize`,name:`Signed in`,owner:`app`,screen:(0,V.jsx)(tS,{})}],title:`Headless, signed in`},{description:`The app's page runs the passkey ceremony with its client ID, which selects the app's realms, and its authorization request. The challenge is the key's digest, so one tap signs the user in and signs the key of the passkey's account, with no approval page.`,nodes:[{detail:`Web playground`,name:`App's sign-in`},{edge:vS,name:`Sign in`,owner:`app`,screen:(0,V.jsx)(Qx,{})},{detail:`POST /v1/auth/passkey/options with client_id and authorize`,edge:`Continue with passkey`,name:`Authenticator prompt`},{edge:`POST /v1/auth/passkey/verify: user and authorization`,name:`Signed in`,owner:`app`,screen:(0,V.jsx)(tS,{})}],title:`Headless passkey`},{description:`A wallet.tempo passkey without an email verifies one through the app's own code step. The passkey signs again with the code, which links it, and that tap signs the key of its account.`,nodes:[{detail:`Web playground`,name:`App's sign-in`},{edge:vS,name:`Sign in`,owner:`app`,screen:(0,V.jsx)(Qx,{})},{detail:`POST /v1/auth/passkey/options with client_id`,edge:`Continue with passkey`,name:`Authenticator prompt`},{edge:`POST /v1/auth/passkey/verify: step email`,name:`Add your email`,owner:`app`,screen:(0,V.jsx)($x,{})},{edge:`POST /v1/auth/code`,name:`Check your email`,owner:`app`,screen:(0,V.jsx)(eS,{})},{detail:`POST /v1/auth/passkey/options with link`,edge:`Code complete`,name:`Authenticator prompt`},{edge:`POST /v1/auth/code/verify with link and assertion: user and authorization`,name:`Signed in`,owner:`app`,screen:(0,V.jsx)(tS,{})}],title:`Headless passkey without an email`},{description:"Google returns the browser to the app with a session. The app then requests the authorization. A user without a Tempo Account is refused with `rejected`, so the app reads the accounts, creates the first one if none exists, and requests the authorization again.",nodes:[{detail:`Web playground`,name:`App's sign-in`},{edge:vS,name:`Sign in`,owner:`app`,screen:(0,V.jsx)(Qx,{})},{edge:`GET /v1/auth/oauth/google?client_id&return_to`,name:`Google`},{edge:`GET /callback/google, 302 return_to, GET /v1/auth/session, POST /v1/authorize: rejected, GET /v1/account, POST /v1/account, GET /v1/auth/session, POST /v1/authorize`,name:`Signed in`,owner:`app`,screen:(0,V.jsx)(tS,{})}],title:`Headless Google`},{description:"A passkey signs only the key of its own account in a one-tap sign-in. When another passkey owns the account, the sign-in refuses the key with `webauthn_required`. The app signs in through a redirect without a key, which skips the approval page, since the playgrounds skip consent.",nodes:[{detail:`POST /v1/auth/passkey/verify: webauthn_required`,name:`App's sign-in`},{detail:`GET redirect_uri?code&state`,edge:`GET /authorize without key_authorization, 302 /oauth2/authorize, 302, no screen`,name:`Web app callback`},{edge:`POST /oauth2/token with code_verifier`,name:`Signed in`,owner:`app`,screen:(0,V.jsx)(tS,{})}],title:`Headless passkey fallback`}],title:`Headless apps`},{flows:[{description:"`tempo-id login` requests a code with a new access key, and prints `verification_uri_complete`. Sign-in returns to the device page with the code filled in. The CLI's next poll receives the tokens and the signed key, and stores them.",nodes:[hS,{detail:`GET /device?code`,edge:`Shows verification_uri_complete`,name:`Browser`},{edge:`302 /login?return_to=/device?code`,name:`Sign in`,screen:(0,V.jsx)(Z,{...Q()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,V.jsx)(Z,{...Q(),email:aS})},{edge:`POST /v1/auth/code/verify: 200`,name:`Check your email (accepted)`,screen:(0,V.jsx)(Z,{...Q(),email:aS,verified:!0})},{edge:`after 500 ms, /device?code`,name:`Authorize a device`,screen:(0,V.jsx)(Cx,{...pS(),request:mS()})},{edge:`POST /v1/device/approve`,name:`Authorization successful`,screen:(0,V.jsx)(Cx,{...pS(),request:mS(),status:`approved`})},gS],title:`Device code, signed out`},{description:"A user who opens the bare `verification_uri` types the code that the terminal shows.",nodes:[hS,{detail:`GET /device`,edge:`Shows user_code and verification_uri`,name:`Browser`},{edge:`200 device page`,name:`Authorize a device (enter a code)`,screen:(0,V.jsx)(Cx,{...pS()})},{edge:`Continue, GET /device?code`,name:`Authorize a device`,screen:(0,V.jsx)(Cx,{...pS(),request:mS()})},{edge:`POST /v1/device/approve`,name:`Authorization successful`,screen:(0,V.jsx)(Cx,{...pS(),request:mS(),status:`approved`})},gS],title:`Device code, typed`},{description:"A device client that reads discovery uses the standard endpoints of RFC 8628. The browser takes the same steps as for `POST /v1/device/authorize`.",nodes:[{detail:`POST /device/code`,name:`Device client`},{detail:`GET /device?user_code`,edge:`Shows verification_uri_complete`,name:`Browser`},{edge:`302 /login?return_to=/device?user_code`,name:`Sign in`,screen:(0,V.jsx)(Z,{...Q()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,V.jsx)(Z,{...Q(),email:aS})},{edge:`POST /v1/auth/code/verify: 200`,name:`Check your email (accepted)`,screen:(0,V.jsx)(Z,{...Q(),email:aS,verified:!0})},{edge:`after 500 ms, /device?code`,name:`Authorize a device`,screen:(0,V.jsx)(Cx,{...pS(),request:{...mS(),device:void 0,key_authorization:void 0}})},{edge:`Approve, POST /v1/device/approve`,name:`Authorization successful`,screen:(0,V.jsx)(Cx,{...pS(),request:{...mS(),device:void 0,key_authorization:void 0},status:`approved`})},{detail:`POST /oauth2/token with grant_type=urn:ietf:params:oauth:grant-type:device_code`,edge:`Next poll: tokens`,name:`Device client`}],title:`Device code, standard endpoints`},{description:`Denying ends the request. The CLI's next poll is refused.`,nodes:[{detail:`GET /device?code`,name:`Browser`},{edge:`200 device page`,name:`Authorize a device`,screen:(0,V.jsx)(Cx,{...pS(),request:mS()})},{edge:`POST /v1/device/deny`,name:`Denied`,screen:(0,V.jsx)(Cx,{...pS(),request:mS(),status:`denied`})},{detail:`Exits with not_signed_in`,edge:`POST /v1/device/token: request_denied`,name:`tempo-id login`}],title:`Device code, denied`},{description:`A passkey owns the account, so the approval returns the passkey step. The passkey signs the key’s digest in this browser, and the page approves again.`,nodes:[{detail:`GET /device?code`,name:`Browser`},{edge:`200 device page`,name:`Authorize a device`,screen:(0,V.jsx)(Cx,{...pS(),request:mS()})},{edge:`Approve, POST /v1/device/approve`,name:`Authorize a device (approving)`,screen:(0,V.jsx)(Cx,{...pS(),approving:!0,request:mS()})},{detail:`Signs the key authorization, over the approving page`,edge:`step passkey`,name:`Authenticator prompt`},{edge:`POST /v1/device/approve with passkey.assertion`,name:`Authorization successful`,screen:(0,V.jsx)(Cx,{...pS(),request:mS(),status:`approved`})},gS],title:`Device approval for a passkey account`},{description:`Approval cannot sign some keys, so the page holds Approve and states why. Deny still ends the request.`,nodes:[{detail:`GET /device?code`,name:`Browser`},{edge:`The key names an account that the user does not hold`,name:`Authorize a device (foreign account)`,screen:(0,V.jsx)(Cx,{...pS(),request:{...mS(),key_authorization:{...sS(),refusal:`foreign_account`}}})},{edge:`Or: no account, and no Privy app to create one`,name:`Authorize a device (no account)`,screen:(0,V.jsx)(Cx,{...pS(),request:{...mS(),key_authorization:{...sS(),refusal:`no_account`}}})},{edge:`Or: a passkey whose relying party is not Tempo ID’s, or POST /v1/device/approve: webauthn_required`,name:`Authorize a device (passkey)`,screen:(0,V.jsx)(Cx,{...pS(),request:{...mS(),key_authorization:{...sS(),refusal:`passkey`}}})},{edge:`Or: the accounts cannot be read`,name:`Authorize a device (unavailable)`,screen:(0,V.jsx)(Cx,{...pS(),request:{...mS(),key_authorization:{...sS(),refusal:`unavailable`}}})},{detail:`POST /v1/device/token: request_denied`,edge:`Deny, POST /v1/device/deny`,name:`tempo-id login`}],title:`Device key that approval cannot sign`},{description:"A CLI with the `tempo-id:sign` scope sends a challenge, and the device page shows the message that the key signs.",nodes:[{detail:`POST /v1/device/authorize with key_authorization and challenge`,name:`CLI`},{edge:`GET /device?code, 200 device page`,name:`Authorize a device (challenge)`,screen:(0,V.jsx)(Cx,{...pS(),request:{...mS(),challenge:`Sign in to api.example.com
6
+ Nonce: 8f2a91`}})},{edge:`Approve, POST /v1/device/approve, or the passkey step first`,name:`Authorization successful`,screen:(0,V.jsx)(Cx,{...pS(),request:mS(),status:`approved`})},{detail:`Tokens, and key_authorization bound to the challenge’s hash`,edge:`POST /v1/device/token: authorization_pending, then tokens`,name:`CLI`}],title:`Device code with a challenge`},{description:`A code that is already approved or denied shows its outcome again, without the decision buttons.`,nodes:[{detail:`GET /device?code`,name:`Browser`},{edge:`200, status: approved`,name:`Authorization successful`,screen:(0,V.jsx)(Cx,{...pS(),request:mS(),status:`approved`})}],title:`Decided device code`},{description:"A code that no one approves before `expires_in` ends the login. The CLI stores nothing, and the user runs `tempo-id login` again.",nodes:[hS,{detail:`Exits with not_signed_in`,edge:`POST /v1/device/token: authorization_pending, then device_code_expired`,name:`tempo-id login`}],title:`tempo-id login, expired`},{description:`The CLI reads the stored session, refreshes its access token when it expires within 30 seconds, and reads the user.`,nodes:[{detail:`~/.tempo/id/credentials.json`,name:`tempo-id whoami`},{detail:`Email and Tempo Account`,edge:`POST /oauth2/token with refresh_token within 30 s of expiry, GET /oauth2/userinfo`,name:`tempo-id whoami`}],title:`tempo-id whoami`},{description:`Each device request holds the code field or the decision buttons, and shows a spinner, until it settles.`,nodes:[{detail:`GET /device`,name:`Browser`},{edge:`Continue, GET /device?code`,name:`Authorize a device (fetching)`,screen:(0,V.jsx)(Cx,{...pS(),code:`BDWP-HQPK`,fetching:!0})},{edge:`Approve, POST /v1/device/approve`,name:`Authorize a device (approving)`,screen:(0,V.jsx)(Cx,{...pS(),approving:!0,request:mS()})},{edge:`Or: Deny, POST /v1/device/deny`,name:`Authorize a device (denying)`,screen:(0,V.jsx)(Cx,{...pS(),denying:!0,request:mS()})}],title:`Device code in progress`},{description:"A device app without a display name could be anyone’s, so the request omits `app`, and the page flags an unverified app.",nodes:[{detail:`GET /device?code`,name:`Browser`},{edge:`200 device page, request without app`,name:`Authorize a device (unverified app)`,screen:(0,V.jsx)(Cx,{...pS(),request:{...mS(),app:void 0}})}],title:`Unverified device app`},{description:`A code that matches no pending request, or one that another user holds, keeps the code form.`,nodes:[{detail:`GET /device?code`,name:`Browser`},{edge:`unknown_code`,name:`Authorize a device (unknown code)`,screen:(0,V.jsx)(Cx,{...pS(),code:`BDWP-HQPX`,error:`Invalid or expired code. Check the code in the terminal.`,invalid:!0})}],title:`Unknown device code`},{description:`Each user’s code lookups share one rate limit, so the page refuses a lookup over it and keeps the code form.`,nodes:[{detail:`GET /device?code`,name:`Browser`},{edge:`Lookup over the rate limit`,name:`Authorize a device (rate limited)`,screen:(0,V.jsx)(Cx,{...pS(),code:`BDWP-HQPK`,error:`Too many requests. Try again in 1 minute.`,invalid:!0})}],title:`Device code lookup rate limited`}],title:`Device grant`},{flows:[{description:`Sign-out ends the session and revokes its refresh tokens, then opens the sign-in page.`,nodes:[{detail:`GET /`,name:`Browser opens Tempo ID`},{name:`Your account`,screen:(0,V.jsx)(Ef,{...dS()})},{edge:`Sign out, POST /v1/auth/logout`,name:`Your account (signing out)`,screen:(0,V.jsx)(Ef,{...dS(),signingOut:!0})},{edge:`200, then /login`,name:`Sign in`,screen:(0,V.jsx)(Z,{...Q()})}],title:`Sign-out`},{description:`An app signs the user out with its ID token. Tempo ID ends the session that the hint names, if this browser holds it, and redirects to the app.`,nodes:[{detail:`GET /oauth2/end-session?id_token_hint&post_logout_redirect_uri&state`,name:`Web app`},{detail:`GET post_logout_redirect_uri?state`,edge:`302, no screen`,name:`Web app`}],title:`RP-initiated logout`},{description:"A cross-site form POST carries no `SameSite=Lax` session cookie, so Tempo ID seals the parameters and continues as a GET, which carries the cookie.",nodes:[{detail:`POST /oauth2/end-session with id_token_hint, post_logout_redirect_uri, and state`,name:`Web app`},{detail:`GET /oauth2/end-session?continuation`,edge:`303, no session cookie`,name:`Browser`},{detail:`GET post_logout_redirect_uri?state`,edge:`302, no screen`,name:`Web app`}],title:`RP-initiated logout, form POST`},{description:`An app's own Sign out ends the Tempo ID session. The app forgets the sign-in even if the request fails, and shows the error.`,nodes:[{detail:`Web playground`,name:`App's page`},{edge:`GET /v1/auth/session, POST /v1/authorize`,name:`Signed in`,owner:`app`,screen:(0,V.jsx)(tS,{})},{edge:`Sign out, POST /v1/auth/logout`,name:`Sign in`,owner:`app`,screen:(0,V.jsx)(Qx,{})}],title:`Headless sign-out`},{description:`The CLI revokes the stored refresh token at the deployment that issued it, and deletes the session even if the revocation fails.`,nodes:[{detail:`~/.tempo/id/credentials.json`,name:`tempo-id logout`},{detail:`Session deleted`,edge:`POST /oauth2/revoke with the refresh token`,name:`tempo-id logout`}],title:`tempo-id logout`}],title:`Sign-out`},{flows:[{description:`A refused send keeps the first step, with the refusal below the email field, which it marks invalid. The user can try again or pick another method.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{edge:`POST /v1/auth/code: 503`,name:`Sign in (send failed)`,screen:(0,V.jsx)(Z,{...Q(),error:oS,invalid:!0})}],title:`Send failed`},{description:`A canceled prompt or a refused passkey keeps the first step, with the error below the email field. The email field is not marked invalid, since no address was sent.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{edge:`Canceled prompt, or POST /v1/auth/passkey/verify refused`,name:`Sign in (passkey failed)`,screen:(0,V.jsx)(Z,{...Q(),error:`Passkey sign-in was canceled. Try again, or continue with email.`})}],title:`Passkey failed`},{description:`A refused code clears the field and marks it invalid, so the next code can be typed at once.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{edge:`POST /v1/auth/code/verify: 401`,name:`Check your email (wrong code)`,screen:(0,V.jsx)(Z,{...Q(),email:aS,error:`Invalid or expired code. Request a new one.`,invalid:!0})}],title:`Wrong code`},{description:`A passkey that does not sign again, or whose assertion is refused, drops the link. The code field clears and takes focus, so the next code signs in with email only.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{edge:`Canceled prompt, or POST /v1/auth/code/verify with link: webauthn_rejected`,name:`Check your email (link failed)`,screen:(0,V.jsx)(Z,{...Q(),email:aS,error:`Your passkey did not confirm the sign-in. Enter the code again to sign in with email only.`,invalid:!0})}],title:`Passkey link failed`},{description:`A resent code shows Code sent on the disabled button for 5 seconds, then Resend code again. A hidden status announces the send. The code field keeps its value.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{edge:`Resend code, POST /v1/auth/code`,name:`Check your email (resent)`,screen:(0,V.jsx)(Z,{...Q(),email:aS,resend:`sent`})}],title:`Resent code`},{description:`A refused resend keeps the code step and its code, with the refusal below the code field. The code stays valid, so the field is not marked invalid.`,nodes:[{detail:`GET /login`,name:`Browser opens sign-in`},{edge:`Resend code, POST /v1/auth/code: 429`,name:`Check your email (resend refused)`,screen:(0,V.jsx)(Z,{...Q(),email:aS,error:`Too many requests. Try again in 1 minute.`})}],title:`Resend refused`},{description:`A failed selection keeps the account step, so the user can choose again. The page does not reload, so an ended session or an expired request shows its refusal in the same place.`,nodes:[{detail:`GET /choose-account?…&sig`,name:`Browser`},{edge:`POST /v1/authorize/account: 503`,name:`Choose a wallet (failed)`,screen:(0,V.jsx)(Bp,{...fS(),error:oS})},{edge:`Or: POST /v1/authorize/account: session_required`,name:`Choose a wallet (session ended)`,screen:(0,V.jsx)(Bp,{...fS(),error:`Sign in first.`})},{edge:`Or: POST /v1/authorize/account: authorization_expired`,name:`Choose a wallet (request expired)`,screen:(0,V.jsx)(Bp,{...fS(),error:`Expired authorization request: the request from the app is no longer valid. Return to the app, and start again.`})}],title:`Account selection failed`},{description:`A failed decision keeps the approval page, with the refusal below the buttons.`,nodes:[{detail:`GET /authorize?…&sig`,name:`Browser`},{edge:`POST /v1/authorize/consent: 503`,name:`Authorize this app (failed)`,screen:(0,V.jsx)(Ap,{...cS(),error:oS})}],title:`Approval failed`},{description:`A spent authorization rate limit refuses Approve, as it refuses the grant at sign-in. The approval page stays until the limit resets.`,nodes:[{detail:`GET /authorize?…&sig`,name:`Browser`},{edge:`Approve, POST /v1/authorize/consent: 429 rate_limited`,name:`Authorize this app (rate limited)`,screen:(0,V.jsx)(Ap,{...cS(),error:`Too many requests. Try again in 1 minute.`})}],title:`Approval rate limited`},{description:`A canceled prompt or a refused assertion keeps the approval page, and Approve starts a new passkey step.`,nodes:[{detail:`GET /authorize?…&sig`,name:`Browser`},{edge:`Canceled prompt, or POST /v1/authorize/consent with passkey.assertion: webauthn_rejected`,name:`Authorize this app (passkey failed)`,screen:(0,V.jsx)(Ap,{...cS(),error:`The passkey request was canceled. Approve again, or deny the request.`})}],title:`Passkey approval failed`},{description:`A session that ends before the decision reloads the page, and the loader sends the browser to sign-in with the signed query. A sign-in already spent this request, so the next sign-in opens the approval page again.`,nodes:[{detail:`GET /authorize?…&sig`,name:`Browser`},{edge:`200 approval page`,name:`Authorize this app`,screen:(0,V.jsx)(Ap,{...cS()})},{edge:`Approve, POST /v1/authorize/consent: session_required, reload, 302 /login?…&sig`,name:`Sign in (key)`,screen:(0,V.jsx)(Z,{...Q(),request:lS()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,V.jsx)(Z,{...Q(),email:aS})},{edge:`POST /v1/auth/code/verify with oauth_query: 200`,name:`Check your email (accepted)`,screen:(0,V.jsx)(Z,{...Q(),email:aS,verified:!0})},{edge:`after 500 ms, redirect /authorize?…&sig`,name:`Authorize this app`,screen:(0,V.jsx)(Ap,{...cS()})},{detail:`GET redirect_uri?code&state`,edge:`Approve, POST /v1/authorize/consent`,name:`Web app callback`},{...yS,detail:`Tokens, account, and key_authorization`}],title:`Approval, session expired`},{description:`A user who was signed in when the request arrived reached the approval page without a sign-in, so the request is unspent. The sign-in after the reload grants the key and returns to the app at once.`,nodes:[{detail:`GET /authorize?…&sig`,name:`Browser`},{edge:`200 approval page`,name:`Authorize this app`,screen:(0,V.jsx)(Ap,{...cS()})},{edge:`Approve, POST /v1/authorize/consent: session_required, reload, 302 /login?…&sig`,name:`Sign in (key)`,screen:(0,V.jsx)(Z,{...Q(),request:lS()})},{edge:`POST /v1/auth/code`,name:`Check your email`,screen:(0,V.jsx)(Z,{...Q(),email:aS})},{edge:`POST /v1/auth/code/verify with oauth_query: 200, grants the key`,name:`Check your email (accepted)`,screen:(0,V.jsx)(Z,{...Q(),email:aS,verified:!0})},{detail:`GET redirect_uri?code&state`,edge:`after 500 ms, redirect`,name:`Web app callback`},{...yS,detail:`Tokens, account, and key_authorization`}],title:`Approval, session expired, unspent request`},{description:`A failed decision keeps the device page with the request, and the refusal below the buttons.`,nodes:[{detail:`GET /device?code`,name:`Browser`},{edge:`POST /v1/device/approve: 503`,name:`Authorize a device (failed)`,screen:(0,V.jsx)(Cx,{...pS(),error:oS,request:mS()})}],title:`Device decision failed`},{description:`A session that ends before the decision reloads the page, and sign-in returns to the same code. The request is bound to its user, so another user’s sign-in shows the unknown code.`,nodes:[{detail:`GET /device?code`,name:`Browser`},{edge:`200 device page`,name:`Authorize a device`,screen:(0,V.jsx)(Cx,{...pS(),request:mS()})},{edge:`Approve, POST /v1/device/approve: session_required, reload, 302 /login?return_to=/device?code`,name:`Sign in`,screen:(0,V.jsx)(Z,{...Q()})},{edge:`Sign-in, /device?code`,name:`Authorize a device`,screen:(0,V.jsx)(Cx,{...pS(),request:mS()})}],title:`Device decision, session expired`},{description:`A canceled prompt or a refused assertion keeps the device page, and Approve starts a new passkey step.`,nodes:[{detail:`GET /device?code`,name:`Browser`},{edge:`Canceled prompt, or POST /v1/device/approve with passkey.assertion: webauthn_rejected`,name:`Authorize a device (passkey failed)`,screen:(0,V.jsx)(Cx,{...pS(),error:`The passkey request was canceled. Approve again, or deny the request.`,request:mS()})}],title:`Device passkey approval failed`},{description:`A failed sign-out keeps the account page, with the refusal above the button.`,nodes:[{detail:`GET /`,name:`Browser opens Tempo ID`},{edge:`POST /v1/auth/logout: 503`,name:`Your account (sign-out failed)`,screen:(0,V.jsx)(Ef,{...dS(),error:oS})}],title:`Sign-out failed`}],title:`Request failures`}]}var $;(function(e){e.app=1,e.appAddress=1,e.appButton=sn({axes:{tone:[`brand`,`google`,`quiet`]},defaults:{},className:`z-tempo_2d_id-cvNCQ9-styles-appButton-align-items-0 z-tempo_2d_id-cvNCQ9-styles-appButton-border-1 z-tempo_2d_id-cvNCQ9-styles-appButton-border-radius-2 z-tempo_2d_id-cvNCQ9-styles-appButton-cursor-3 z-tempo_2d_id-cvNCQ9-styles-appButton-display-4 z-tempo_2d_id-cvNCQ9-styles-appButton-gap-5 z-tempo_2d_id-cvNCQ9-styles-appButton-h-6 z-tempo_2d_id-cvNCQ9-styles-appButton-justify-content-7 z-tempo_2d_id-cvNCQ9-styles-appButton-padding-inline-8 z-tempo_2d_id-cvNCQ9-styles-appButton-font-family-9 z-tempo_2d_id-cvNCQ9-styles-appButton-font-size-10 z-tempo_2d_id-cvNCQ9-styles-appButton-font-weight-11 z-tempo_2d_id-cvNCQ9-styles-appButton-letter-spacing-12 z-tempo_2d_id-cvNCQ9-styles-appButton-line-height-13 z-tempo_2d_id-cvNCQ9-styles-appButton-w-14 z-tempo_2d_id-cvNCQ9-styles-appButton-bg-15 z-tempo_2d_id-cvNCQ9-styles-appButton-text-16 z-tempo_2d_id-cvNCQ9-styles-appButton-bg-17 z-tempo_2d_id-cvNCQ9-styles-appButton-text-18 z-tempo_2d_id-cvNCQ9-styles-appButton-bg-19 z-tempo_2d_id-cvNCQ9-styles-appButton-text-20`}),e.appDescription=1,e.appDivider=1,e.appField=1,e.appHeader=1,e.appInput=1,e.appLabel=1,e.appTitle=1,e.arrow=1,e.artboard=1,e.canvas=1,e.code=1,e.detail=1,e.edge=1,e.external=sn({axes:{kind:[`Entry`,`Exit`,`External`]},defaults:{},className:`z-tempo_2d_id-cvNCQ9-styles-external-bg-0 z-tempo_2d_id-cvNCQ9-styles-external-border-1 z-tempo_2d_id-cvNCQ9-styles-external-border-color-2 z-tempo_2d_id-cvNCQ9-styles-external-border-radius-3 z-tempo_2d_id-cvNCQ9-styles-external-display-4 z-tempo_2d_id-cvNCQ9-styles-external-flex-shrink-5 z-tempo_2d_id-cvNCQ9-styles-external-gap-6 z-tempo_2d_id-cvNCQ9-styles-external-p-7 z-tempo_2d_id-cvNCQ9-styles-external-w-8 z-tempo_2d_id-cvNCQ9-styles-external-border-color-9 z-tempo_2d_id-cvNCQ9-styles-external-border-style-10 z-tempo_2d_id-cvNCQ9-styles-external-border-color-11 z-tempo_2d_id-cvNCQ9-styles-external-border-style-12`}),e.externalName=1,e.flow=1,e.flowDescription=1,e.flowHeader=1,e.flowTitle=1,e.frame=1,e.frameLabel=1,e.head=1,e.intro=1,e.kind=1,e.lede=1,e.line=1,e.row=1,e.section=1,e.sectionTitle=1,e.shaft=1,e.step=1,e.title=1})($||={});var xS={IndexRoute:Af.update({id:`/`,path:`/`,getParentRoute:()=>Sf}),AuthorizeRoute:Fp.update({id:`/authorize`,path:`/authorize`,getParentRoute:()=>Sf}),ChooseAccountRoute:Wp.update({id:`/choose-account`,path:`/choose-account`,getParentRoute:()=>Sf}),DepositRoute:vx.update({id:`/deposit`,path:`/deposit`,getParentRoute:()=>Sf}),DeviceRoute:Dx.update({id:`/device`,path:`/device`,getParentRoute:()=>Sf}),LoginRoute:Fx.update({id:`/login`,path:`/login`,getParentRoute:()=>Sf}),Char91_Char93FlowsRoute:Wx.update({id:`/_/flows`,path:`/_/flows`,getParentRoute:()=>Sf})},SS=Sf._addFileChildren(xS)._addFileTypes();function CS(){return Le({defaultPreloadStaleTime:0,parseSearch:wS,routeTree:SS,scrollRestoration:!0,stringifySearch:TS})}function wS(e){let t=new URLSearchParams(e);return Object.fromEntries([...new Set(t.keys())].map(e=>{let n=t.getAll(e);return[e,n.length>1?n:n[0]]}))}function TS(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(r!==void 0)for(let e of Array.isArray(r)?r:[r])t.append(n,String(e));let n=t.toString();return n?`?${n}`:``}export{CS as getRouter};
7
+ //# sourceMappingURL=router-DX0i0cOR.js.map