@antseed/gateway-console 0.1.9 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/Activity-jZYZ0SDm.js +1 -0
- package/dist/assets/{Audit-tBcMBtG2.js → Audit-C-dFTX_u.js} +1 -1
- package/dist/assets/{ChainGate-bxLjo_3b.js → ChainGate-In51TI2h.js} +1 -1
- package/dist/assets/{ChannelClose-C0Y19KzJ.js → ChannelClose-D8CcISX0.js} +1 -1
- package/dist/assets/{Charts-CHTi7z3n.js → Charts-doK0mDVf.js} +1 -1
- package/dist/assets/{Chat-C1AfYZwW.js → Chat-CaImcsH1.js} +34 -34
- package/dist/assets/{ConnectWallet-fHEv854J.js → ConnectWallet-DQ0PC6SO.js} +1 -1
- package/dist/assets/{DataTable-CCEZoIzX.js → DataTable-BTwj5g1m.js} +1 -1
- package/dist/assets/{KeyHolder-DSLJe1Wc.js → KeyHolder-D90Uu-Jv.js} +1 -1
- package/dist/assets/Keys-B5LppZtn.js +1 -0
- package/dist/assets/Logs-Dw4sZ9lo.js +1 -0
- package/dist/assets/Members-CnaHKFut.js +1 -0
- package/dist/assets/{Migrate-TGloMMad.js → Migrate-BQYY5ty3.js} +1 -1
- package/dist/assets/Models-zIuHewdV.js +1 -0
- package/dist/assets/{OperatorActions-DPQvd1zg.js → OperatorActions-DrRpfDBV.js} +1 -1
- package/dist/assets/{OperatorGateAlert-CEK2vyQ9.js → OperatorGateAlert-D92zhyXC.js} +1 -1
- package/dist/assets/{Overview-CPoqW_Mi.js → Overview-CJmp6b7M.js} +1 -1
- package/dist/assets/{PeerPicker-w_ZaksUm.js → PeerPicker-BJfjL7Dy.js} +1 -1
- package/dist/assets/PolicyEditor-BpoV34ra.js +1 -0
- package/dist/assets/{PolicyField-BbDSVgcK.js → PolicyField-CfRYcr_J.js} +1 -1
- package/dist/assets/Presets-c1J4UwX0.js +4 -0
- package/dist/assets/Providers-B0LuYcAw.js +1 -0
- package/dist/assets/RequestLog-D2YGgG1C.js +1 -0
- package/dist/assets/{Rewards-D9omoUfP.js → Rewards-DNNxx3NO.js} +2 -2
- package/dist/assets/{RewardsClaim-CWJBaJEv.js → RewardsClaim-nstcyJvi.js} +1 -1
- package/dist/assets/Routing-B79eDIZL.js +1 -0
- package/dist/assets/{Segmented-D_Yun-tG.js → Segmented-BelxPFkk.js} +1 -1
- package/dist/assets/{SelectField-D3qPiNQz.js → SelectField-BWyF8Ku8.js} +1 -1
- package/dist/assets/{Settings-Bo654hg3.js → Settings-Cws5Z--R.js} +2 -2
- package/dist/assets/{Staking-HKOLSr5r.js → Staking-DHwoflHG.js} +1 -1
- package/dist/assets/{StakingDashboard-BHU6EJ_h.js → StakingDashboard-DtOKTmys.js} +1 -1
- package/dist/assets/Switch-BwBYBnSS.js +1 -0
- package/dist/assets/{Tabs-DmkE9BPd.js → Tabs-yVL4Cd6z.js} +1 -1
- package/dist/assets/{TextAreaField-RZPCzhKZ.js → TextAreaField-B6jcl4RR.js} +1 -1
- package/dist/assets/{UsageByModel-nhGKdBi8.js → UsageByModel-DhTF-c1H.js} +1 -1
- package/dist/assets/{Wallet-jy4q5mLQ.js → Wallet-QXhhg_E-.js} +3 -3
- package/dist/assets/{WalletConfirm-dV_LWLAS.js → WalletConfirm-CgWBuaMN.js} +1 -1
- package/dist/assets/{WalletFunding-B3t7wm--.js → WalletFunding-Ydd9gD2t.js} +1 -1
- package/dist/assets/{WalletSignIn-BTt56Pbi.js → WalletSignIn-DvVSFW4u.js} +1 -1
- package/dist/assets/Workspaces-DuxGwCQ2.js +1 -0
- package/dist/assets/{add-BWOpvuwn.js → add-ChFb9YAz.js} +1 -1
- package/dist/assets/{all-wallets-Dzo5pBZj.js → all-wallets-rdNweGUd.js} +1 -1
- package/dist/assets/{app-store-D7NT8p3m.js → app-store-s294A1qn.js} +1 -1
- package/dist/assets/{apple-DZKBu-O0.js → apple-Cs8Kx1eO.js} +1 -1
- package/dist/assets/{arrow-bottom-CL8pk1cz.js → arrow-bottom-BMmCEQIa.js} +1 -1
- package/dist/assets/{arrow-bottom-circle-CfYYPCEB.js → arrow-bottom-circle-CThmnDp3.js} +1 -1
- package/dist/assets/{arrow-left-DVKw3BfQ.js → arrow-left-BJxgCTi0.js} +1 -1
- package/dist/assets/{arrow-right-LIBetaMw.js → arrow-right-CnLYkBsH.js} +1 -1
- package/dist/assets/{arrow-top-Bdq-JU1Z.js → arrow-top-Dc0DLP-U.js} +1 -1
- package/dist/assets/{bank-BYRxGjPq.js → bank-CSWOYeMW.js} +1 -1
- package/dist/assets/{basic-CZ6XfWue.js → basic-BHdv4O5I.js} +1 -1
- package/dist/assets/{browser-4mXAG82s.js → browser-mp33aPgo.js} +1 -1
- package/dist/assets/{bundle-full-BIYMHvS6.js → bundle-full-CDQ5iC5h.js} +1 -1
- package/dist/assets/{card-CHQPd736.js → card-BcVuRQiM.js} +1 -1
- package/dist/assets/{ccip-CDMxOoDo.js → ccip-O1XLvWon.js} +1 -1
- package/dist/assets/{checkmark-8o_U76Ey.js → checkmark-CQVJIWW1.js} +1 -1
- package/dist/assets/{checkmark-bold-DLi4Gcn_.js → checkmark-bold-DDU5XQfq.js} +1 -1
- package/dist/assets/{chevron-bottom-DmX6fEDV.js → chevron-bottom-Bqi9FW2q.js} +1 -1
- package/dist/assets/{chevron-left-AyKJMTQa.js → chevron-left-Vd5st0yB.js} +1 -1
- package/dist/assets/{chevron-right-DQ8e2bPT.js → chevron-right-BVwFrlss.js} +1 -1
- package/dist/assets/{chevron-top-B5o-6za5.js → chevron-top-D5dQ2xFn.js} +1 -1
- package/dist/assets/{chrome-store-BSncx9O2.js → chrome-store-C9C4k8IO.js} +1 -1
- package/dist/assets/{clock-DBlIwqMs.js → clock-Cuvc7bNo.js} +1 -1
- package/dist/assets/{close-CGfPRgam.js → close-fW1pJ13b.js} +1 -1
- package/dist/assets/{code-block-B9znTLtr.js → code-block-Djv3iQ0G.js} +2 -2
- package/dist/assets/{coinPlaceholder-BUSXHM7f.js → coinPlaceholder-CKymvNA8.js} +1 -1
- package/dist/assets/{compass-WMx9aHQn.js → compass-D3h_6fr8.js} +1 -1
- package/dist/assets/{copy-4QWyzVbB.js → copy-CNGN_cOz.js} +1 -1
- package/dist/assets/{core-4C0uPyns.js → core-LDeQm5nv.js} +3 -3
- package/dist/assets/cursor-CTNYpsWo.js +3 -0
- package/dist/assets/{cursor-transparent-BaithBa8.js → cursor-transparent-BblOfv3t.js} +1 -1
- package/dist/assets/{desktop-pj3LdQx_.js → desktop-gpVOlZ1-.js} +1 -1
- package/dist/assets/{disconnect-cmEUajMk.js → disconnect-C_phPN0_.js} +1 -1
- package/dist/assets/{discord-BYVJX-t1.js → discord-Dk_2Plhc.js} +1 -1
- package/dist/assets/{en_US-Y4ZOVFV4-BZ-715IV.js → en_US-Y4ZOVFV4-CmhP8GU2.js} +4 -4
- package/dist/assets/{etherscan-BdQaeBLV.js → etherscan-Cyrh-2Lr.js} +1 -1
- package/dist/assets/{exclamation-triangle-B5R8OH8o.js → exclamation-triangle-SeeDwZ6A.js} +1 -1
- package/dist/assets/{extension-DrkCTDz1.js → extension-e_11O0GI.js} +1 -1
- package/dist/assets/{external-link-CZIsXhQB.js → external-link-Dl0AqCn3.js} +1 -1
- package/dist/assets/{facebook-B8mGiKom.js → facebook-Cp_-Axbh.js} +1 -1
- package/dist/assets/{farcaster-BlEPprye.js → farcaster-Zwu26KYL.js} +1 -1
- package/dist/assets/{filters-QpslZY8t.js → filters-CdkpWvgi.js} +1 -1
- package/dist/assets/{github-3U8av1u0.js → github-DuPUePDJ.js} +1 -1
- package/dist/assets/{google-DuIQFQyG.js → google-DlKW7Gx7.js} +1 -1
- package/dist/assets/{help-circle-BKX8azWY.js → help-circle-19xLhjPt.js} +1 -1
- package/dist/assets/highlighted-body-KQOG7T2V-D7DB9nBd.js +1 -0
- package/dist/assets/{id-DoN-p9_h.js → id-B4PjxpL6.js} +1 -1
- package/dist/assets/{image-DnOVeCbR.js → image-CHz8w95r.js} +1 -1
- package/dist/assets/{index-A9482YJO.js → index-BYZ6CM-r.js} +1 -1
- package/dist/assets/{index-BPmBiG1M.js → index-CAflmCbT.js} +3 -3
- package/dist/assets/{index-DeVTk1EB.js → index-CZbdRW9K.js} +1 -1
- package/dist/assets/index-CfhMI0GY.css +1 -0
- package/dist/assets/{index-B25V3jQV.js → index-CgyFWy7G.js} +1 -1
- package/dist/assets/index-DIcymBxc.js +91 -0
- package/dist/assets/{index.es-C1jtws71.js → index.es-0kjt2ETS.js} +3 -3
- package/dist/assets/{info-CdmGz8ET.js → info-CFnwPck_.js} +1 -1
- package/dist/assets/{info-circle-C6CmWEn4.js → info-circle-DNYjRzmq.js} +1 -1
- package/dist/assets/{lightbulb-BAyNXoa1.js → lightbulb-DPrYcwVp.js} +1 -1
- package/dist/assets/{limits-DjiKmaDB.js → limits-D8_oE0N-.js} +1 -1
- package/dist/assets/{mail-CiF1vNhi.js → mail-Do_T12XQ.js} +1 -1
- package/dist/assets/{mermaid-MCJ5UELQ-nKICVXNz.js → mermaid-MCJ5UELQ-Cr83KTfF.js} +3 -3
- package/dist/assets/{metamask-sdk-DkF2jP-o.js → metamask-sdk-CHSvqgLD.js} +1 -1
- package/dist/assets/{mobile-C1sek6EE.js → mobile-2wdwD-gm.js} +1 -1
- package/dist/assets/models-CLos5_p0.js +1 -0
- package/dist/assets/{more-Dg3gTue9.js → more-CugjlKbm.js} +1 -1
- package/dist/assets/{network-placeholder-DjgO487Z.js → network-placeholder-D0CvRN9Z.js} +1 -1
- package/dist/assets/{nftPlaceholder-CJQkl27U.js → nftPlaceholder-CjCtJ3VF.js} +1 -1
- package/dist/assets/{off-CH17X0ZN.js → off-CjwzxGqC.js} +1 -1
- package/dist/assets/{play-store-CQuK3mcO.js → play-store-ts_mM-L7.js} +1 -1
- package/dist/assets/{plus-pEvbyOXN.js → plus-CayVcA5r.js} +1 -1
- package/dist/assets/{qr-code-Cl8u00kF.js → qr-code-BJFXX7Ga.js} +1 -1
- package/dist/assets/{recycle-horizontal-C2j4VihN.js → recycle-horizontal-Dxd_xbuW.js} +1 -1
- package/dist/assets/{refresh-DiGzIXYL.js → refresh-2tSMiCzO.js} +1 -1
- package/dist/assets/{reown-logo-lnPAI4aT.js → reown-logo-C3tg9yiK.js} +1 -1
- package/dist/assets/{search-yadtJ599.js → search-By38_AjN.js} +1 -1
- package/dist/assets/{send-C3NLDzpo.js → send-DhLEHc2T.js} +1 -1
- package/dist/assets/{sendTransaction-qrdT91Tm.js → sendTransaction-CqpP3CZj.js} +1 -1
- package/dist/assets/stored-CFfx95Ep.js +1 -0
- package/dist/assets/{swapHorizontal-C3NCkGQo.js → swapHorizontal-BSy_Qzqy.js} +1 -1
- package/dist/assets/{swapHorizontalBold-BZwhavke.js → swapHorizontalBold-B4pOkOa-.js} +1 -1
- package/dist/assets/{swapHorizontalMedium-Cmnd2nih.js → swapHorizontalMedium-BbDDLHs6.js} +1 -1
- package/dist/assets/{swapHorizontalRoundedBold-gSkn4e0W.js → swapHorizontalRoundedBold-MzTdSarg.js} +1 -1
- package/dist/assets/{swapVertical-B3cp9dIz.js → swapVertical-D0uKM7wm.js} +1 -1
- package/dist/assets/{telegram-CCcfHXb2.js → telegram-Q_WwsPzx.js} +1 -1
- package/dist/assets/{three-dots-Dn7VO-lq.js → three-dots-Cpl_X23E.js} +1 -1
- package/dist/assets/{twitch-C46oL1KF.js → twitch-B7x-eAo9.js} +1 -1
- package/dist/assets/{twitterIcon-CAkiEmDS.js → twitterIcon-BRMMjDzW.js} +1 -1
- package/dist/assets/usage-DktoZRc8.js +1 -0
- package/dist/assets/{useInfiniteQuery-Dwl-oWNd.js → useInfiniteQuery-NenQ5Num.js} +1 -1
- package/dist/assets/{useTx-CT2tKEAI.js → useTx-WkiDSW_A.js} +1 -1
- package/dist/assets/{verify-jbEYtj7t.js → verify-BxTMhyZY.js} +1 -1
- package/dist/assets/{verify-filled-CtFkkLAN.js → verify-filled-CaKhO-hp.js} +1 -1
- package/dist/assets/{w3m-modal-Drzo9R1s.js → w3m-modal-DZ2_0Ukm.js} +1 -1
- package/dist/assets/{waitForCallsStatus-CU9lZ8Vj.js → waitForCallsStatus-CtriTPoz.js} +1 -1
- package/dist/assets/{wallet-B11Hl0Lf.js → wallet-BeZF3I-Z.js} +1 -1
- package/dist/assets/{wallet-placeholder-DwLspbFR.js → wallet-placeholder-BDvuTJ6r.js} +1 -1
- package/dist/assets/{walletconnect-3aC0SnNJ.js → walletconnect-U8tnyg6m.js} +1 -1
- package/dist/assets/{warning-circle-DuqXAhpW.js → warning-circle-Dg69jmuZ.js} +1 -1
- package/dist/assets/{writeContract-m5SoBxcM.js → writeContract-DrAWt0yz.js} +1 -1
- package/dist/assets/{x-DTeu3B0J.js → x-CJ-uWPue.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/assets/Activity-DrhhsiYE.js +0 -1
- package/dist/assets/Disclosure-BitAjv2r.js +0 -1
- package/dist/assets/Keys-C22oAYzQ.js +0 -1
- package/dist/assets/Logs-DHuR0CKc.js +0 -1
- package/dist/assets/Members-ZyqdMsMd.js +0 -1
- package/dist/assets/Models-CM4ay6RE.js +0 -1
- package/dist/assets/PolicyEditor-BOjadRE8.js +0 -1
- package/dist/assets/Presets-9x2m9R-f.js +0 -4
- package/dist/assets/Providers-CqYXx8xK.js +0 -1
- package/dist/assets/RequestLog-39L0RtJc.js +0 -1
- package/dist/assets/Routing-4gxa6VdE.js +0 -1
- package/dist/assets/Switch-BmFsXcr8.js +0 -1
- package/dist/assets/Workspaces-mfw5erSQ.js +0 -1
- package/dist/assets/cursor-C_vrGLpb.js +0 -3
- package/dist/assets/highlighted-body-KQOG7T2V-9-ocLujg.js +0 -1
- package/dist/assets/index-BpFwvYMF.js +0 -91
- package/dist/assets/index-C9evdHF9.css +0 -1
- package/dist/assets/models-CJU4tPJk.js +0 -1
- package/dist/assets/usage-yuqGLybi.js +0 -1
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/WalletSignIn-BTt56Pbi.js","assets/en_US-Y4ZOVFV4-BZ-715IV.js","assets/clsx-B-dksMZM.js","assets/index-BhwNCc8y.js","assets/en_US-Y4ZOVFV4-CcVPgXVa.css","assets/WalletConfirm-dV_LWLAS.js","assets/ConnectWallet-fHEv854J.js","assets/Overview-CPoqW_Mi.js","assets/UsageByModel-nhGKdBi8.js","assets/usage-yuqGLybi.js","assets/Charts-CHTi7z3n.js","assets/Segmented-D_Yun-tG.js","assets/roving-DkptacxO.js","assets/Chat-C1AfYZwW.js","assets/Chat-Dtte195G.css","assets/Activity-DrhhsiYE.js","assets/PeerPicker-w_ZaksUm.js","assets/SelectField-D3qPiNQz.js","assets/DataTable-CCEZoIzX.js","assets/Logs-DHuR0CKc.js","assets/RequestLog-39L0RtJc.js","assets/useInfiniteQuery-Dwl-oWNd.js","assets/dates-Pi3-Ywng.js","assets/Keys-C22oAYzQ.js","assets/PolicyField-BbDSVgcK.js","assets/PolicyEditor-BOjadRE8.js","assets/Switch-BmFsXcr8.js","assets/Disclosure-BitAjv2r.js","assets/Tabs-DmkE9BPd.js","assets/limits-DjiKmaDB.js","assets/Members-ZyqdMsMd.js","assets/Workspaces-mfw5erSQ.js","assets/Wallet-jy4q5mLQ.js","assets/ChainGate-bxLjo_3b.js","assets/dijkstra-COg3n3zL.js","assets/Rewards-D9omoUfP.js","assets/ants-B38m9Phv.js","assets/Staking-HKOLSr5r.js","assets/StakingDashboard-BHU6EJ_h.js","assets/sendTransaction-qrdT91Tm.js","assets/waitForCallsStatus-CU9lZ8Vj.js","assets/writeContract-m5SoBxcM.js","assets/StakingDashboard-CJbBUUQE.css","assets/Providers-CqYXx8xK.js","assets/models-CJU4tPJk.js","assets/Presets-9x2m9R-f.js","assets/TextAreaField-RZPCzhKZ.js","assets/Models-CM4ay6RE.js","assets/Routing-4gxa6VdE.js","assets/Audit-tBcMBtG2.js","assets/Settings-Bo654hg3.js","assets/KeyHolder-DSLJe1Wc.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var mw=Object.defineProperty;var ep=t=>{throw TypeError(t)};var vw=(t,r,i)=>r in t?mw(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i;var Su=(t,r,i)=>vw(t,typeof r!="symbol"?r+"":r,i),Cu=(t,r,i)=>r.has(t)||ep("Cannot "+i);var k=(t,r,i)=>(Cu(t,r,"read from private field"),i?i.call(t):r.get(t)),ne=(t,r,i)=>r.has(t)?ep("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,i),q=(t,r,i,s)=>(Cu(t,r,"write to private field"),s?s.call(t,i):r.set(t,i),i),ce=(t,r,i)=>(Cu(t,r,"access private method"),i);var ta=(t,r,i,s)=>({set _(l){q(t,r,l,i)},get _(){return k(t,r,s)}});function gw(t,r){for(var i=0;i<r.length;i++){const s=r[i];if(typeof s!="string"&&!Array.isArray(s)){for(const l in s)if(l!=="default"&&!(l in t)){const f=Object.getOwnPropertyDescriptor(s,l);f&&Object.defineProperty(t,l,f.get?f:{enumerable:!0,get:()=>s[l]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const f of l)if(f.type==="childList")for(const v of f.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&s(v)}).observe(document,{childList:!0,subtree:!0});function i(l){const f={};return l.integrity&&(f.integrity=l.integrity),l.referrerPolicy&&(f.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?f.credentials="include":l.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(l){if(l.ep)return;l.ep=!0;const f=i(l);fetch(l.href,f)}})();const yw="modulepreload",ww=function(t){return"/console/"+t},tp={},ze=function(r,i,s){let l=Promise.resolve();if(i&&i.length>0){let v=function(h){return Promise.all(h.map(y=>Promise.resolve(y).then(x=>({status:"fulfilled",value:x}),x=>({status:"rejected",reason:x}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),g=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));l=v(i.map(h=>{if(h=ww(h),h in tp)return;tp[h]=!0;const y=h.endsWith(".css"),x=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${x}`))return;const C=document.createElement("link");if(C.rel=y?"stylesheet":yw,y||(C.as="script"),C.crossOrigin="",C.href=h,g&&C.setAttribute("nonce",g),document.head.appendChild(C),y)return new Promise((R,A)=>{C.addEventListener("load",R),C.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${h}`)))})}))}function f(v){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=v,window.dispatchEvent(m),!m.defaultPrevented)throw v}return l.then(v=>{for(const m of v||[])m.status==="rejected"&&f(m.reason);return r().catch(f)})};var OS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xw(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function AS(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var r=t.default;if(typeof r=="function"){var i=function s(){return this instanceof s?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};i.prototype=r.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(t).forEach(function(s){var l=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(i,s,l.get?l:{enumerable:!0,get:function(){return t[s]}})}),i}var _u={exports:{}},Co={},Eu={exports:{}},pe={};/**
|
|
3
|
-
* @license React
|
|
4
|
-
* react.production.min.js
|
|
5
|
-
*
|
|
6
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the MIT license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var np;function kw(){if(np)return pe;np=1;var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),v=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.iterator;function C(j){return j===null||typeof j!="object"?null:(j=x&&j[x]||j["@@iterator"],typeof j=="function"?j:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,E={};function M(j,$,ue){this.props=j,this.context=$,this.refs=E,this.updater=ue||R}M.prototype.isReactComponent={},M.prototype.setState=function(j,$){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,$,"setState")},M.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function L(){}L.prototype=M.prototype;function F(j,$,ue){this.props=j,this.context=$,this.refs=E,this.updater=ue||R}var P=F.prototype=new L;P.constructor=F,A(P,M.prototype),P.isPureReactComponent=!0;var b=Array.isArray,D=Object.prototype.hasOwnProperty,W={current:null},te={key:!0,ref:!0,__self:!0,__source:!0};function Z(j,$,ue){var fe,ve={},ge=null,_e=null;if($!=null)for(fe in $.ref!==void 0&&(_e=$.ref),$.key!==void 0&&(ge=""+$.key),$)D.call($,fe)&&!te.hasOwnProperty(fe)&&(ve[fe]=$[fe]);var xe=arguments.length-2;if(xe===1)ve.children=ue;else if(1<xe){for(var Pe=Array(xe),ct=0;ct<xe;ct++)Pe[ct]=arguments[ct+2];ve.children=Pe}if(j&&j.defaultProps)for(fe in xe=j.defaultProps,xe)ve[fe]===void 0&&(ve[fe]=xe[fe]);return{$$typeof:t,type:j,key:ge,ref:_e,props:ve,_owner:W.current}}function se(j,$){return{$$typeof:t,type:j.type,key:$,ref:j.ref,props:j.props,_owner:j._owner}}function de(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function X(j){var $={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(ue){return $[ue]})}var Re=/\/+/g;function Be(j,$){return typeof j=="object"&&j!==null&&j.key!=null?X(""+j.key):$.toString(36)}function qe(j,$,ue,fe,ve){var ge=typeof j;(ge==="undefined"||ge==="boolean")&&(j=null);var _e=!1;if(j===null)_e=!0;else switch(ge){case"string":case"number":_e=!0;break;case"object":switch(j.$$typeof){case t:case r:_e=!0}}if(_e)return _e=j,ve=ve(_e),j=fe===""?"."+Be(_e,0):fe,b(ve)?(ue="",j!=null&&(ue=j.replace(Re,"$&/")+"/"),qe(ve,$,ue,"",function(ct){return ct})):ve!=null&&(de(ve)&&(ve=se(ve,ue+(!ve.key||_e&&_e.key===ve.key?"":(""+ve.key).replace(Re,"$&/")+"/")+j)),$.push(ve)),1;if(_e=0,fe=fe===""?".":fe+":",b(j))for(var xe=0;xe<j.length;xe++){ge=j[xe];var Pe=fe+Be(ge,xe);_e+=qe(ge,$,ue,Pe,ve)}else if(Pe=C(j),typeof Pe=="function")for(j=Pe.call(j),xe=0;!(ge=j.next()).done;)ge=ge.value,Pe=fe+Be(ge,xe++),_e+=qe(ge,$,ue,Pe,ve);else if(ge==="object")throw $=String(j),Error("Objects are not valid as a React child (found: "+($==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":$)+"). If you meant to render a collection of children, use an array instead.");return _e}function Ke(j,$,ue){if(j==null)return j;var fe=[],ve=0;return qe(j,fe,"","",function(ge){return $.call(ue,ge,ve++)}),fe}function nt(j){if(j._status===-1){var $=j._result;$=$(),$.then(function(ue){(j._status===0||j._status===-1)&&(j._status=1,j._result=ue)},function(ue){(j._status===0||j._status===-1)&&(j._status=2,j._result=ue)}),j._status===-1&&(j._status=0,j._result=$)}if(j._status===1)return j._result.default;throw j._result}var Ne={current:null},V={transition:null},re={ReactCurrentDispatcher:Ne,ReactCurrentBatchConfig:V,ReactCurrentOwner:W};function Q(){throw Error("act(...) is not supported in production builds of React.")}return pe.Children={map:Ke,forEach:function(j,$,ue){Ke(j,function(){$.apply(this,arguments)},ue)},count:function(j){var $=0;return Ke(j,function(){$++}),$},toArray:function(j){return Ke(j,function($){return $})||[]},only:function(j){if(!de(j))throw Error("React.Children.only expected to receive a single React element child.");return j}},pe.Component=M,pe.Fragment=i,pe.Profiler=l,pe.PureComponent=F,pe.StrictMode=s,pe.Suspense=g,pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=re,pe.act=Q,pe.cloneElement=function(j,$,ue){if(j==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+j+".");var fe=A({},j.props),ve=j.key,ge=j.ref,_e=j._owner;if($!=null){if($.ref!==void 0&&(ge=$.ref,_e=W.current),$.key!==void 0&&(ve=""+$.key),j.type&&j.type.defaultProps)var xe=j.type.defaultProps;for(Pe in $)D.call($,Pe)&&!te.hasOwnProperty(Pe)&&(fe[Pe]=$[Pe]===void 0&&xe!==void 0?xe[Pe]:$[Pe])}var Pe=arguments.length-2;if(Pe===1)fe.children=ue;else if(1<Pe){xe=Array(Pe);for(var ct=0;ct<Pe;ct++)xe[ct]=arguments[ct+2];fe.children=xe}return{$$typeof:t,type:j.type,key:ve,ref:ge,props:fe,_owner:_e}},pe.createContext=function(j){return j={$$typeof:v,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},j.Provider={$$typeof:f,_context:j},j.Consumer=j},pe.createElement=Z,pe.createFactory=function(j){var $=Z.bind(null,j);return $.type=j,$},pe.createRef=function(){return{current:null}},pe.forwardRef=function(j){return{$$typeof:m,render:j}},pe.isValidElement=de,pe.lazy=function(j){return{$$typeof:y,_payload:{_status:-1,_result:j},_init:nt}},pe.memo=function(j,$){return{$$typeof:h,type:j,compare:$===void 0?null:$}},pe.startTransition=function(j){var $=V.transition;V.transition={};try{j()}finally{V.transition=$}},pe.unstable_act=Q,pe.useCallback=function(j,$){return Ne.current.useCallback(j,$)},pe.useContext=function(j){return Ne.current.useContext(j)},pe.useDebugValue=function(){},pe.useDeferredValue=function(j){return Ne.current.useDeferredValue(j)},pe.useEffect=function(j,$){return Ne.current.useEffect(j,$)},pe.useId=function(){return Ne.current.useId()},pe.useImperativeHandle=function(j,$,ue){return Ne.current.useImperativeHandle(j,$,ue)},pe.useInsertionEffect=function(j,$){return Ne.current.useInsertionEffect(j,$)},pe.useLayoutEffect=function(j,$){return Ne.current.useLayoutEffect(j,$)},pe.useMemo=function(j,$){return Ne.current.useMemo(j,$)},pe.useReducer=function(j,$,ue){return Ne.current.useReducer(j,$,ue)},pe.useRef=function(j){return Ne.current.useRef(j)},pe.useState=function(j){return Ne.current.useState(j)},pe.useSyncExternalStore=function(j,$,ue){return Ne.current.useSyncExternalStore(j,$,ue)},pe.useTransition=function(){return Ne.current.useTransition()},pe.version="18.3.1",pe}var rp;function xc(){return rp||(rp=1,Eu.exports=kw()),Eu.exports}/**
|
|
11
|
-
* @license React
|
|
12
|
-
* react-jsx-runtime.production.min.js
|
|
13
|
-
*
|
|
14
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the MIT license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var ip;function Sw(){if(ip)return Co;ip=1;var t=xc(),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,l=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function v(m,g,h){var y,x={},C=null,R=null;h!==void 0&&(C=""+h),g.key!==void 0&&(C=""+g.key),g.ref!==void 0&&(R=g.ref);for(y in g)s.call(g,y)&&!f.hasOwnProperty(y)&&(x[y]=g[y]);if(m&&m.defaultProps)for(y in g=m.defaultProps,g)x[y]===void 0&&(x[y]=g[y]);return{$$typeof:r,type:m,key:C,ref:R,props:x,_owner:l.current}}return Co.Fragment=i,Co.jsx=v,Co.jsxs=v,Co}var op;function Cw(){return op||(op=1,_u.exports=Sw()),_u.exports}var d=Cw(),I=xc();const en=xw(I),DS=gw({__proto__:null,default:en},[I]);var na={},Pu={exports:{}},xt={},ju={exports:{}},bu={};/**
|
|
19
|
-
* @license React
|
|
20
|
-
* scheduler.production.min.js
|
|
21
|
-
*
|
|
22
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the MIT license found in the
|
|
25
|
-
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var sp;function _w(){return sp||(sp=1,(function(t){function r(V,re){var Q=V.length;V.push(re);e:for(;0<Q;){var j=Q-1>>>1,$=V[j];if(0<l($,re))V[j]=re,V[Q]=$,Q=j;else break e}}function i(V){return V.length===0?null:V[0]}function s(V){if(V.length===0)return null;var re=V[0],Q=V.pop();if(Q!==re){V[0]=Q;e:for(var j=0,$=V.length,ue=$>>>1;j<ue;){var fe=2*(j+1)-1,ve=V[fe],ge=fe+1,_e=V[ge];if(0>l(ve,Q))ge<$&&0>l(_e,ve)?(V[j]=_e,V[ge]=Q,j=ge):(V[j]=ve,V[fe]=Q,j=fe);else if(ge<$&&0>l(_e,Q))V[j]=_e,V[ge]=Q,j=ge;else break e}}return re}function l(V,re){var Q=V.sortIndex-re.sortIndex;return Q!==0?Q:V.id-re.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;t.unstable_now=function(){return f.now()}}else{var v=Date,m=v.now();t.unstable_now=function(){return v.now()-m}}var g=[],h=[],y=1,x=null,C=3,R=!1,A=!1,E=!1,M=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(V){for(var re=i(h);re!==null;){if(re.callback===null)s(h);else if(re.startTime<=V)s(h),re.sortIndex=re.expirationTime,r(g,re);else break;re=i(h)}}function b(V){if(E=!1,P(V),!A)if(i(g)!==null)A=!0,nt(D);else{var re=i(h);re!==null&&Ne(b,re.startTime-V)}}function D(V,re){A=!1,E&&(E=!1,L(Z),Z=-1),R=!0;var Q=C;try{for(P(re),x=i(g);x!==null&&(!(x.expirationTime>re)||V&&!X());){var j=x.callback;if(typeof j=="function"){x.callback=null,C=x.priorityLevel;var $=j(x.expirationTime<=re);re=t.unstable_now(),typeof $=="function"?x.callback=$:x===i(g)&&s(g),P(re)}else s(g);x=i(g)}if(x!==null)var ue=!0;else{var fe=i(h);fe!==null&&Ne(b,fe.startTime-re),ue=!1}return ue}finally{x=null,C=Q,R=!1}}var W=!1,te=null,Z=-1,se=5,de=-1;function X(){return!(t.unstable_now()-de<se)}function Re(){if(te!==null){var V=t.unstable_now();de=V;var re=!0;try{re=te(!0,V)}finally{re?Be():(W=!1,te=null)}}else W=!1}var Be;if(typeof F=="function")Be=function(){F(Re)};else if(typeof MessageChannel<"u"){var qe=new MessageChannel,Ke=qe.port2;qe.port1.onmessage=Re,Be=function(){Ke.postMessage(null)}}else Be=function(){M(Re,0)};function nt(V){te=V,W||(W=!0,Be())}function Ne(V,re){Z=M(function(){V(t.unstable_now())},re)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(V){V.callback=null},t.unstable_continueExecution=function(){A||R||(A=!0,nt(D))},t.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<V?Math.floor(1e3/V):5},t.unstable_getCurrentPriorityLevel=function(){return C},t.unstable_getFirstCallbackNode=function(){return i(g)},t.unstable_next=function(V){switch(C){case 1:case 2:case 3:var re=3;break;default:re=C}var Q=C;C=re;try{return V()}finally{C=Q}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(V,re){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var Q=C;C=V;try{return re()}finally{C=Q}},t.unstable_scheduleCallback=function(V,re,Q){var j=t.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?j+Q:j):Q=j,V){case 1:var $=-1;break;case 2:$=250;break;case 5:$=1073741823;break;case 4:$=1e4;break;default:$=5e3}return $=Q+$,V={id:y++,callback:re,priorityLevel:V,startTime:Q,expirationTime:$,sortIndex:-1},Q>j?(V.sortIndex=Q,r(h,V),i(g)===null&&V===i(h)&&(E?(L(Z),Z=-1):E=!0,Ne(b,Q-j))):(V.sortIndex=$,r(g,V),A||R||(A=!0,nt(D))),V},t.unstable_shouldYield=X,t.unstable_wrapCallback=function(V){var re=C;return function(){var Q=C;C=re;try{return V.apply(this,arguments)}finally{C=Q}}}})(bu)),bu}var ap;function Ew(){return ap||(ap=1,ju.exports=_w()),ju.exports}/**
|
|
27
|
-
* @license React
|
|
28
|
-
* react-dom.production.min.js
|
|
29
|
-
*
|
|
30
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
31
|
-
*
|
|
32
|
-
* This source code is licensed under the MIT license found in the
|
|
33
|
-
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var lp;function Pw(){if(lp)return xt;lp=1;var t=xc(),r=Ew();function i(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)n+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,l={};function f(e,n){v(e,n),v(e+"Capture",n)}function v(e,n){for(l[e]=n,e=0;e<n.length;e++)s.add(n[e])}var m=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,y={},x={};function C(e){return g.call(x,e)?!0:g.call(y,e)?!1:h.test(e)?x[e]=!0:(y[e]=!0,!1)}function R(e,n,o,a){if(o!==null&&o.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return a?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function A(e,n,o,a){if(n===null||typeof n>"u"||R(e,n,o,a))return!0;if(a)return!1;if(o!==null)switch(o.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function E(e,n,o,a,u,c,p){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=a,this.attributeNamespace=u,this.mustUseProperty=o,this.propertyName=e,this.type=n,this.sanitizeURL=c,this.removeEmptyString=p}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){M[e]=new E(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];M[n]=new E(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){M[e]=new E(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){M[e]=new E(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){M[e]=new E(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){M[e]=new E(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){M[e]=new E(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){M[e]=new E(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){M[e]=new E(e,5,!1,e.toLowerCase(),null,!1,!1)});var L=/[\-:]([a-z])/g;function F(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace(L,F);M[n]=new E(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(L,F);M[n]=new E(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(L,F);M[n]=new E(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){M[e]=new E(e,1,!1,e.toLowerCase(),null,!1,!1)}),M.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){M[e]=new E(e,1,!1,e.toLowerCase(),null,!0,!0)});function P(e,n,o,a){var u=M.hasOwnProperty(n)?M[n]:null;(u!==null?u.type!==0:a||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(A(n,o,u,a)&&(o=null),a||u===null?C(n)&&(o===null?e.removeAttribute(n):e.setAttribute(n,""+o)):u.mustUseProperty?e[u.propertyName]=o===null?u.type===3?!1:"":o:(n=u.attributeName,a=u.attributeNamespace,o===null?e.removeAttribute(n):(u=u.type,o=u===3||u===4&&o===!0?"":""+o,a?e.setAttributeNS(a,n,o):e.setAttribute(n,o))))}var b=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,D=Symbol.for("react.element"),W=Symbol.for("react.portal"),te=Symbol.for("react.fragment"),Z=Symbol.for("react.strict_mode"),se=Symbol.for("react.profiler"),de=Symbol.for("react.provider"),X=Symbol.for("react.context"),Re=Symbol.for("react.forward_ref"),Be=Symbol.for("react.suspense"),qe=Symbol.for("react.suspense_list"),Ke=Symbol.for("react.memo"),nt=Symbol.for("react.lazy"),Ne=Symbol.for("react.offscreen"),V=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=V&&e[V]||e["@@iterator"],typeof e=="function"?e:null)}var Q=Object.assign,j;function $(e){if(j===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);j=n&&n[1]||""}return`
|
|
35
|
-
`+j+e}var ue=!1;function fe(e,n){if(!e||ue)return"";ue=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(O){var a=O}Reflect.construct(e,[],n)}else{try{n.call()}catch(O){a=O}e.call(n.prototype)}else{try{throw Error()}catch(O){a=O}e()}}catch(O){if(O&&a&&typeof O.stack=="string"){for(var u=O.stack.split(`
|
|
36
|
-
`),c=a.stack.split(`
|
|
37
|
-
`),p=u.length-1,w=c.length-1;1<=p&&0<=w&&u[p]!==c[w];)w--;for(;1<=p&&0<=w;p--,w--)if(u[p]!==c[w]){if(p!==1||w!==1)do if(p--,w--,0>w||u[p]!==c[w]){var S=`
|
|
38
|
-
`+u[p].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),S}while(1<=p&&0<=w);break}}}finally{ue=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?$(e):""}function ve(e){switch(e.tag){case 5:return $(e.type);case 16:return $("Lazy");case 13:return $("Suspense");case 19:return $("SuspenseList");case 0:case 2:case 15:return e=fe(e.type,!1),e;case 11:return e=fe(e.type.render,!1),e;case 1:return e=fe(e.type,!0),e;default:return""}}function ge(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case te:return"Fragment";case W:return"Portal";case se:return"Profiler";case Z:return"StrictMode";case Be:return"Suspense";case qe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case X:return(e.displayName||"Context")+".Consumer";case de:return(e._context.displayName||"Context")+".Provider";case Re:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ke:return n=e.displayName||null,n!==null?n:ge(e.type)||"Memo";case nt:n=e._payload,e=e._init;try{return ge(e(n))}catch{}}return null}function _e(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ge(n);case 8:return n===Z?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function xe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pe(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function ct(e){var n=Pe(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),a=""+e[n];if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var u=o.get,c=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return u.call(this)},set:function(p){a=""+p,c.call(this,p)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(p){a=""+p},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Ar(e){e._valueTracker||(e._valueTracker=ct(e))}function Ai(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var o=n.getValue(),a="";return e&&(a=Pe(e)?e.checked?"true":"false":e.value),e=a,e!==o?(n.setValue(e),!0):!1}function Dr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Di(e,n){var o=n.checked;return Q({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function qo(e,n){var o=n.defaultValue==null?"":n.defaultValue,a=n.checked!=null?n.checked:n.defaultChecked;o=xe(n.value!=null?n.value:o),e._wrapperState={initialChecked:a,initialValue:o,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Tt(e,n){n=n.checked,n!=null&&P(e,"checked",n,!1)}function Qt(e,n){Tt(e,n);var o=xe(n.value),a=n.type;if(o!=null)a==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Ft(e,n.type,o):n.hasOwnProperty("defaultValue")&&Ft(e,n.type,xe(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function cn(e,n,o){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var a=n.type;if(!(a!=="submit"&&a!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,o||n===e.value||(e.value=n),e.defaultValue=n}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function Ft(e,n,o){(n!=="number"||Dr(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var bn=Array.isArray;function Fr(e,n,o,a){if(e=e.options,n){n={};for(var u=0;u<o.length;u++)n["$"+o[u]]=!0;for(o=0;o<e.length;o++)u=n.hasOwnProperty("$"+e[o].value),e[o].selected!==u&&(e[o].selected=u),u&&a&&(e[o].defaultSelected=!0)}else{for(o=""+xe(o),n=null,u=0;u<e.length;u++){if(e[u].value===o){e[u].selected=!0,a&&(e[u].defaultSelected=!0);return}n!==null||e[u].disabled||(n=e[u])}n!==null&&(n.selected=!0)}}function Ia(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(i(91));return Q({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ud(e,n){var o=n.value;if(o==null){if(o=n.children,n=n.defaultValue,o!=null){if(n!=null)throw Error(i(92));if(bn(o)){if(1<o.length)throw Error(i(93));o=o[0]}n=o}n==null&&(n=""),o=n}e._wrapperState={initialValue:xe(o)}}function cd(e,n){var o=xe(n.value),a=xe(n.defaultValue);o!=null&&(o=""+o,o!==e.value&&(e.value=o),n.defaultValue==null&&e.defaultValue!==o&&(e.defaultValue=o)),a!=null&&(e.defaultValue=""+a)}function dd(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function fd(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ma(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?fd(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ko,hd=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,o,a,u){MSApp.execUnsafeLocalFunction(function(){return e(n,o,a,u)})}:e})(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(Ko=Ko||document.createElement("div"),Ko.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=Ko.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Fi(e,n){if(n){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=n;return}}e.textContent=n}var $i={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},wg=["Webkit","ms","Moz","O"];Object.keys($i).forEach(function(e){wg.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),$i[n]=$i[e]})});function pd(e,n,o){return n==null||typeof n=="boolean"||n===""?"":o||typeof n!="number"||n===0||$i.hasOwnProperty(e)&&$i[e]?(""+n).trim():n+"px"}function md(e,n){e=e.style;for(var o in n)if(n.hasOwnProperty(o)){var a=o.indexOf("--")===0,u=pd(o,n[o],a);o==="float"&&(o="cssFloat"),a?e.setProperty(o,u):e[o]=u}}var xg=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function La(e,n){if(n){if(xg[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(i(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(i(61))}if(n.style!=null&&typeof n.style!="object")throw Error(i(62))}}function Oa(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Aa=null;function Da(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fa=null,$r=null,zr=null;function vd(e){if(e=ao(e)){if(typeof Fa!="function")throw Error(i(280));var n=e.stateNode;n&&(n=vs(n),Fa(e.stateNode,e.type,n))}}function gd(e){$r?zr?zr.push(e):zr=[e]:$r=e}function yd(){if($r){var e=$r,n=zr;if(zr=$r=null,vd(e),n)for(e=0;e<n.length;e++)vd(n[e])}}function wd(e,n){return e(n)}function xd(){}var $a=!1;function kd(e,n,o){if($a)return e(n,o);$a=!0;try{return wd(e,n,o)}finally{$a=!1,($r!==null||zr!==null)&&(xd(),yd())}}function zi(e,n){var o=e.stateNode;if(o===null)return null;var a=vs(o);if(a===null)return null;o=a[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(i(231,n,typeof o));return o}var za=!1;if(m)try{var Ui={};Object.defineProperty(Ui,"passive",{get:function(){za=!0}}),window.addEventListener("test",Ui,Ui),window.removeEventListener("test",Ui,Ui)}catch{za=!1}function kg(e,n,o,a,u,c,p,w,S){var O=Array.prototype.slice.call(arguments,3);try{n.apply(o,O)}catch(U){this.onError(U)}}var Bi=!1,Qo=null,Go=!1,Ua=null,Sg={onError:function(e){Bi=!0,Qo=e}};function Cg(e,n,o,a,u,c,p,w,S){Bi=!1,Qo=null,kg.apply(Sg,arguments)}function _g(e,n,o,a,u,c,p,w,S){if(Cg.apply(this,arguments),Bi){if(Bi){var O=Qo;Bi=!1,Qo=null}else throw Error(i(198));Go||(Go=!0,Ua=O)}}function or(e){var n=e,o=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(o=n.return),e=n.return;while(e)}return n.tag===3?o:null}function Sd(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function Cd(e){if(or(e)!==e)throw Error(i(188))}function Eg(e){var n=e.alternate;if(!n){if(n=or(e),n===null)throw Error(i(188));return n!==e?null:e}for(var o=e,a=n;;){var u=o.return;if(u===null)break;var c=u.alternate;if(c===null){if(a=u.return,a!==null){o=a;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===o)return Cd(u),e;if(c===a)return Cd(u),n;c=c.sibling}throw Error(i(188))}if(o.return!==a.return)o=u,a=c;else{for(var p=!1,w=u.child;w;){if(w===o){p=!0,o=u,a=c;break}if(w===a){p=!0,a=u,o=c;break}w=w.sibling}if(!p){for(w=c.child;w;){if(w===o){p=!0,o=c,a=u;break}if(w===a){p=!0,a=c,o=u;break}w=w.sibling}if(!p)throw Error(i(189))}}if(o.alternate!==a)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?e:n}function _d(e){return e=Eg(e),e!==null?Ed(e):null}function Ed(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=Ed(e);if(n!==null)return n;e=e.sibling}return null}var Pd=r.unstable_scheduleCallback,jd=r.unstable_cancelCallback,Pg=r.unstable_shouldYield,jg=r.unstable_requestPaint,Fe=r.unstable_now,bg=r.unstable_getCurrentPriorityLevel,Ba=r.unstable_ImmediatePriority,bd=r.unstable_UserBlockingPriority,Yo=r.unstable_NormalPriority,Tg=r.unstable_LowPriority,Td=r.unstable_IdlePriority,Zo=null,Gt=null;function Rg(e){if(Gt&&typeof Gt.onCommitFiberRoot=="function")try{Gt.onCommitFiberRoot(Zo,e,void 0,(e.current.flags&128)===128)}catch{}}var $t=Math.clz32?Math.clz32:Mg,Ng=Math.log,Ig=Math.LN2;function Mg(e){return e>>>=0,e===0?32:31-(Ng(e)/Ig|0)|0}var Xo=64,Jo=4194304;function Hi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function es(e,n){var o=e.pendingLanes;if(o===0)return 0;var a=0,u=e.suspendedLanes,c=e.pingedLanes,p=o&268435455;if(p!==0){var w=p&~u;w!==0?a=Hi(w):(c&=p,c!==0&&(a=Hi(c)))}else p=o&~u,p!==0?a=Hi(p):c!==0&&(a=Hi(c));if(a===0)return 0;if(n!==0&&n!==a&&(n&u)===0&&(u=a&-a,c=n&-n,u>=c||u===16&&(c&4194240)!==0))return n;if((a&4)!==0&&(a|=o&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=a;0<n;)o=31-$t(n),u=1<<o,a|=e[o],n&=~u;return a}function Lg(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Og(e,n){for(var o=e.suspendedLanes,a=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes;0<c;){var p=31-$t(c),w=1<<p,S=u[p];S===-1?((w&o)===0||(w&a)!==0)&&(u[p]=Lg(w,n)):S<=n&&(e.expiredLanes|=w),c&=~w}}function Ha(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Rd(){var e=Xo;return Xo<<=1,(Xo&4194240)===0&&(Xo=64),e}function Wa(e){for(var n=[],o=0;31>o;o++)n.push(e);return n}function Wi(e,n,o){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-$t(n),e[n]=o}function Ag(e,n){var o=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0<o;){var u=31-$t(o),c=1<<u;n[u]=0,a[u]=-1,e[u]=-1,o&=~c}}function Va(e,n){var o=e.entangledLanes|=n;for(e=e.entanglements;o;){var a=31-$t(o),u=1<<a;u&n|e[a]&n&&(e[a]|=n),o&=~u}}var Ce=0;function Nd(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Id,qa,Md,Ld,Od,Ka=!1,ts=[],Tn=null,Rn=null,Nn=null,Vi=new Map,qi=new Map,In=[],Dg="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ad(e,n){switch(e){case"focusin":case"focusout":Tn=null;break;case"dragenter":case"dragleave":Rn=null;break;case"mouseover":case"mouseout":Nn=null;break;case"pointerover":case"pointerout":Vi.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":qi.delete(n.pointerId)}}function Ki(e,n,o,a,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:n,domEventName:o,eventSystemFlags:a,nativeEvent:c,targetContainers:[u]},n!==null&&(n=ao(n),n!==null&&qa(n)),e):(e.eventSystemFlags|=a,n=e.targetContainers,u!==null&&n.indexOf(u)===-1&&n.push(u),e)}function Fg(e,n,o,a,u){switch(n){case"focusin":return Tn=Ki(Tn,e,n,o,a,u),!0;case"dragenter":return Rn=Ki(Rn,e,n,o,a,u),!0;case"mouseover":return Nn=Ki(Nn,e,n,o,a,u),!0;case"pointerover":var c=u.pointerId;return Vi.set(c,Ki(Vi.get(c)||null,e,n,o,a,u)),!0;case"gotpointercapture":return c=u.pointerId,qi.set(c,Ki(qi.get(c)||null,e,n,o,a,u)),!0}return!1}function Dd(e){var n=sr(e.target);if(n!==null){var o=or(n);if(o!==null){if(n=o.tag,n===13){if(n=Sd(o),n!==null){e.blockedOn=n,Od(e.priority,function(){Md(o)});return}}else if(n===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ns(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var o=Ga(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var a=new o.constructor(o.type,o);Aa=a,o.target.dispatchEvent(a),Aa=null}else return n=ao(o),n!==null&&qa(n),e.blockedOn=o,!1;n.shift()}return!0}function Fd(e,n,o){ns(e)&&o.delete(n)}function $g(){Ka=!1,Tn!==null&&ns(Tn)&&(Tn=null),Rn!==null&&ns(Rn)&&(Rn=null),Nn!==null&&ns(Nn)&&(Nn=null),Vi.forEach(Fd),qi.forEach(Fd)}function Qi(e,n){e.blockedOn===n&&(e.blockedOn=null,Ka||(Ka=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,$g)))}function Gi(e){function n(u){return Qi(u,e)}if(0<ts.length){Qi(ts[0],e);for(var o=1;o<ts.length;o++){var a=ts[o];a.blockedOn===e&&(a.blockedOn=null)}}for(Tn!==null&&Qi(Tn,e),Rn!==null&&Qi(Rn,e),Nn!==null&&Qi(Nn,e),Vi.forEach(n),qi.forEach(n),o=0;o<In.length;o++)a=In[o],a.blockedOn===e&&(a.blockedOn=null);for(;0<In.length&&(o=In[0],o.blockedOn===null);)Dd(o),o.blockedOn===null&&In.shift()}var Ur=b.ReactCurrentBatchConfig,rs=!0;function zg(e,n,o,a){var u=Ce,c=Ur.transition;Ur.transition=null;try{Ce=1,Qa(e,n,o,a)}finally{Ce=u,Ur.transition=c}}function Ug(e,n,o,a){var u=Ce,c=Ur.transition;Ur.transition=null;try{Ce=4,Qa(e,n,o,a)}finally{Ce=u,Ur.transition=c}}function Qa(e,n,o,a){if(rs){var u=Ga(e,n,o,a);if(u===null)fl(e,n,a,is,o),Ad(e,a);else if(Fg(u,e,n,o,a))a.stopPropagation();else if(Ad(e,a),n&4&&-1<Dg.indexOf(e)){for(;u!==null;){var c=ao(u);if(c!==null&&Id(c),c=Ga(e,n,o,a),c===null&&fl(e,n,a,is,o),c===u)break;u=c}u!==null&&a.stopPropagation()}else fl(e,n,a,null,o)}}var is=null;function Ga(e,n,o,a){if(is=null,e=Da(a),e=sr(e),e!==null)if(n=or(e),n===null)e=null;else if(o=n.tag,o===13){if(e=Sd(n),e!==null)return e;e=null}else if(o===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return is=e,null}function $d(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(bg()){case Ba:return 1;case bd:return 4;case Yo:case Tg:return 16;case Td:return 536870912;default:return 16}default:return 16}}var Mn=null,Ya=null,os=null;function zd(){if(os)return os;var e,n=Ya,o=n.length,a,u="value"in Mn?Mn.value:Mn.textContent,c=u.length;for(e=0;e<o&&n[e]===u[e];e++);var p=o-e;for(a=1;a<=p&&n[o-a]===u[c-a];a++);return os=u.slice(e,1<a?1-a:void 0)}function ss(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function as(){return!0}function Ud(){return!1}function _t(e){function n(o,a,u,c,p){this._reactName=o,this._targetInst=u,this.type=a,this.nativeEvent=c,this.target=p,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(o=e[w],this[w]=o?o(c):c[w]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?as:Ud,this.isPropagationStopped=Ud,this}return Q(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=as)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=as)},persist:function(){},isPersistent:as}),n}var Br={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Za=_t(Br),Yi=Q({},Br,{view:0,detail:0}),Bg=_t(Yi),Xa,Ja,Zi,ls=Q({},Yi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tl,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Zi&&(Zi&&e.type==="mousemove"?(Xa=e.screenX-Zi.screenX,Ja=e.screenY-Zi.screenY):Ja=Xa=0,Zi=e),Xa)},movementY:function(e){return"movementY"in e?e.movementY:Ja}}),Bd=_t(ls),Hg=Q({},ls,{dataTransfer:0}),Wg=_t(Hg),Vg=Q({},Yi,{relatedTarget:0}),el=_t(Vg),qg=Q({},Br,{animationName:0,elapsedTime:0,pseudoElement:0}),Kg=_t(qg),Qg=Q({},Br,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Gg=_t(Qg),Yg=Q({},Br,{data:0}),Hd=_t(Yg),Zg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xg={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Jg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ey(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Jg[e])?!!n[e]:!1}function tl(){return ey}var ty=Q({},Yi,{key:function(e){if(e.key){var n=Zg[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=ss(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Xg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tl,charCode:function(e){return e.type==="keypress"?ss(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ss(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ny=_t(ty),ry=Q({},ls,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Wd=_t(ry),iy=Q({},Yi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tl}),oy=_t(iy),sy=Q({},Br,{propertyName:0,elapsedTime:0,pseudoElement:0}),ay=_t(sy),ly=Q({},ls,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),uy=_t(ly),cy=[9,13,27,32],nl=m&&"CompositionEvent"in window,Xi=null;m&&"documentMode"in document&&(Xi=document.documentMode);var dy=m&&"TextEvent"in window&&!Xi,Vd=m&&(!nl||Xi&&8<Xi&&11>=Xi),qd=" ",Kd=!1;function Qd(e,n){switch(e){case"keyup":return cy.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hr=!1;function fy(e,n){switch(e){case"compositionend":return Gd(n);case"keypress":return n.which!==32?null:(Kd=!0,qd);case"textInput":return e=n.data,e===qd&&Kd?null:e;default:return null}}function hy(e,n){if(Hr)return e==="compositionend"||!nl&&Qd(e,n)?(e=zd(),os=Ya=Mn=null,Hr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Vd&&n.locale!=="ko"?null:n.data;default:return null}}var py={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Yd(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!py[e.type]:n==="textarea"}function Zd(e,n,o,a){gd(a),n=hs(n,"onChange"),0<n.length&&(o=new Za("onChange","change",null,o,a),e.push({event:o,listeners:n}))}var Ji=null,eo=null;function my(e){vf(e,0)}function us(e){var n=Qr(e);if(Ai(n))return e}function vy(e,n){if(e==="change")return n}var Xd=!1;if(m){var rl;if(m){var il="oninput"in document;if(!il){var Jd=document.createElement("div");Jd.setAttribute("oninput","return;"),il=typeof Jd.oninput=="function"}rl=il}else rl=!1;Xd=rl&&(!document.documentMode||9<document.documentMode)}function ef(){Ji&&(Ji.detachEvent("onpropertychange",tf),eo=Ji=null)}function tf(e){if(e.propertyName==="value"&&us(eo)){var n=[];Zd(n,eo,e,Da(e)),kd(my,n)}}function gy(e,n,o){e==="focusin"?(ef(),Ji=n,eo=o,Ji.attachEvent("onpropertychange",tf)):e==="focusout"&&ef()}function yy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return us(eo)}function wy(e,n){if(e==="click")return us(n)}function xy(e,n){if(e==="input"||e==="change")return us(n)}function ky(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var zt=typeof Object.is=="function"?Object.is:ky;function to(e,n){if(zt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var o=Object.keys(e),a=Object.keys(n);if(o.length!==a.length)return!1;for(a=0;a<o.length;a++){var u=o[a];if(!g.call(n,u)||!zt(e[u],n[u]))return!1}return!0}function nf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rf(e,n){var o=nf(e);e=0;for(var a;o;){if(o.nodeType===3){if(a=e+o.textContent.length,e<=n&&a>=n)return{node:o,offset:n-e};e=a}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=nf(o)}}function of(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?of(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function sf(){for(var e=window,n=Dr();n instanceof e.HTMLIFrameElement;){try{var o=typeof n.contentWindow.location.href=="string"}catch{o=!1}if(o)e=n.contentWindow;else break;n=Dr(e.document)}return n}function ol(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Sy(e){var n=sf(),o=e.focusedElem,a=e.selectionRange;if(n!==o&&o&&o.ownerDocument&&of(o.ownerDocument.documentElement,o)){if(a!==null&&ol(o)){if(n=a.start,e=a.end,e===void 0&&(e=n),"selectionStart"in o)o.selectionStart=n,o.selectionEnd=Math.min(e,o.value.length);else if(e=(n=o.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var u=o.textContent.length,c=Math.min(a.start,u);a=a.end===void 0?c:Math.min(a.end,u),!e.extend&&c>a&&(u=a,a=c,c=u),u=rf(o,c);var p=rf(o,a);u&&p&&(e.rangeCount!==1||e.anchorNode!==u.node||e.anchorOffset!==u.offset||e.focusNode!==p.node||e.focusOffset!==p.offset)&&(n=n.createRange(),n.setStart(u.node,u.offset),e.removeAllRanges(),c>a?(e.addRange(n),e.extend(p.node,p.offset)):(n.setEnd(p.node,p.offset),e.addRange(n)))}}for(n=[],e=o;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<n.length;o++)e=n[o],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Cy=m&&"documentMode"in document&&11>=document.documentMode,Wr=null,sl=null,no=null,al=!1;function af(e,n,o){var a=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;al||Wr==null||Wr!==Dr(a)||(a=Wr,"selectionStart"in a&&ol(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),no&&to(no,a)||(no=a,a=hs(sl,"onSelect"),0<a.length&&(n=new Za("onSelect","select",null,n,o),e.push({event:n,listeners:a}),n.target=Wr)))}function cs(e,n){var o={};return o[e.toLowerCase()]=n.toLowerCase(),o["Webkit"+e]="webkit"+n,o["Moz"+e]="moz"+n,o}var Vr={animationend:cs("Animation","AnimationEnd"),animationiteration:cs("Animation","AnimationIteration"),animationstart:cs("Animation","AnimationStart"),transitionend:cs("Transition","TransitionEnd")},ll={},lf={};m&&(lf=document.createElement("div").style,"AnimationEvent"in window||(delete Vr.animationend.animation,delete Vr.animationiteration.animation,delete Vr.animationstart.animation),"TransitionEvent"in window||delete Vr.transitionend.transition);function ds(e){if(ll[e])return ll[e];if(!Vr[e])return e;var n=Vr[e],o;for(o in n)if(n.hasOwnProperty(o)&&o in lf)return ll[e]=n[o];return e}var uf=ds("animationend"),cf=ds("animationiteration"),df=ds("animationstart"),ff=ds("transitionend"),hf=new Map,pf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ln(e,n){hf.set(e,n),f(n,[e])}for(var ul=0;ul<pf.length;ul++){var cl=pf[ul],_y=cl.toLowerCase(),Ey=cl[0].toUpperCase()+cl.slice(1);Ln(_y,"on"+Ey)}Ln(uf,"onAnimationEnd"),Ln(cf,"onAnimationIteration"),Ln(df,"onAnimationStart"),Ln("dblclick","onDoubleClick"),Ln("focusin","onFocus"),Ln("focusout","onBlur"),Ln(ff,"onTransitionEnd"),v("onMouseEnter",["mouseout","mouseover"]),v("onMouseLeave",["mouseout","mouseover"]),v("onPointerEnter",["pointerout","pointerover"]),v("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ro="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Py=new Set("cancel close invalid load scroll toggle".split(" ").concat(ro));function mf(e,n,o){var a=e.type||"unknown-event";e.currentTarget=o,_g(a,n,void 0,e),e.currentTarget=null}function vf(e,n){n=(n&4)!==0;for(var o=0;o<e.length;o++){var a=e[o],u=a.event;a=a.listeners;e:{var c=void 0;if(n)for(var p=a.length-1;0<=p;p--){var w=a[p],S=w.instance,O=w.currentTarget;if(w=w.listener,S!==c&&u.isPropagationStopped())break e;mf(u,w,O),c=S}else for(p=0;p<a.length;p++){if(w=a[p],S=w.instance,O=w.currentTarget,w=w.listener,S!==c&&u.isPropagationStopped())break e;mf(u,w,O),c=S}}}if(Go)throw e=Ua,Go=!1,Ua=null,e}function be(e,n){var o=n[yl];o===void 0&&(o=n[yl]=new Set);var a=e+"__bubble";o.has(a)||(gf(n,e,2,!1),o.add(a))}function dl(e,n,o){var a=0;n&&(a|=4),gf(o,e,a,n)}var fs="_reactListening"+Math.random().toString(36).slice(2);function io(e){if(!e[fs]){e[fs]=!0,s.forEach(function(o){o!=="selectionchange"&&(Py.has(o)||dl(o,!1,e),dl(o,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[fs]||(n[fs]=!0,dl("selectionchange",!1,n))}}function gf(e,n,o,a){switch($d(n)){case 1:var u=zg;break;case 4:u=Ug;break;default:u=Qa}o=u.bind(null,n,o,e),u=void 0,!za||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(u=!0),a?u!==void 0?e.addEventListener(n,o,{capture:!0,passive:u}):e.addEventListener(n,o,!0):u!==void 0?e.addEventListener(n,o,{passive:u}):e.addEventListener(n,o,!1)}function fl(e,n,o,a,u){var c=a;if((n&1)===0&&(n&2)===0&&a!==null)e:for(;;){if(a===null)return;var p=a.tag;if(p===3||p===4){var w=a.stateNode.containerInfo;if(w===u||w.nodeType===8&&w.parentNode===u)break;if(p===4)for(p=a.return;p!==null;){var S=p.tag;if((S===3||S===4)&&(S=p.stateNode.containerInfo,S===u||S.nodeType===8&&S.parentNode===u))return;p=p.return}for(;w!==null;){if(p=sr(w),p===null)return;if(S=p.tag,S===5||S===6){a=c=p;continue e}w=w.parentNode}}a=a.return}kd(function(){var O=c,U=Da(o),B=[];e:{var z=hf.get(e);if(z!==void 0){var K=Za,Y=e;switch(e){case"keypress":if(ss(o)===0)break e;case"keydown":case"keyup":K=ny;break;case"focusin":Y="focus",K=el;break;case"focusout":Y="blur",K=el;break;case"beforeblur":case"afterblur":K=el;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":K=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=Wg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=oy;break;case uf:case cf:case df:K=Kg;break;case ff:K=ay;break;case"scroll":K=Bg;break;case"wheel":K=uy;break;case"copy":case"cut":case"paste":K=Gg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=Wd}var J=(n&4)!==0,$e=!J&&e==="scroll",T=J?z!==null?z+"Capture":null:z;J=[];for(var _=O,N;_!==null;){N=_;var H=N.stateNode;if(N.tag===5&&H!==null&&(N=H,T!==null&&(H=zi(_,T),H!=null&&J.push(oo(_,H,N)))),$e)break;_=_.return}0<J.length&&(z=new K(z,Y,null,o,U),B.push({event:z,listeners:J}))}}if((n&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",K=e==="mouseout"||e==="pointerout",z&&o!==Aa&&(Y=o.relatedTarget||o.fromElement)&&(sr(Y)||Y[dn]))break e;if((K||z)&&(z=U.window===U?U:(z=U.ownerDocument)?z.defaultView||z.parentWindow:window,K?(Y=o.relatedTarget||o.toElement,K=O,Y=Y?sr(Y):null,Y!==null&&($e=or(Y),Y!==$e||Y.tag!==5&&Y.tag!==6)&&(Y=null)):(K=null,Y=O),K!==Y)){if(J=Bd,H="onMouseLeave",T="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(J=Wd,H="onPointerLeave",T="onPointerEnter",_="pointer"),$e=K==null?z:Qr(K),N=Y==null?z:Qr(Y),z=new J(H,_+"leave",K,o,U),z.target=$e,z.relatedTarget=N,H=null,sr(U)===O&&(J=new J(T,_+"enter",Y,o,U),J.target=N,J.relatedTarget=$e,H=J),$e=H,K&&Y)t:{for(J=K,T=Y,_=0,N=J;N;N=qr(N))_++;for(N=0,H=T;H;H=qr(H))N++;for(;0<_-N;)J=qr(J),_--;for(;0<N-_;)T=qr(T),N--;for(;_--;){if(J===T||T!==null&&J===T.alternate)break t;J=qr(J),T=qr(T)}J=null}else J=null;K!==null&&yf(B,z,K,J,!1),Y!==null&&$e!==null&&yf(B,$e,Y,J,!0)}}e:{if(z=O?Qr(O):window,K=z.nodeName&&z.nodeName.toLowerCase(),K==="select"||K==="input"&&z.type==="file")var ee=vy;else if(Yd(z))if(Xd)ee=xy;else{ee=yy;var ie=gy}else(K=z.nodeName)&&K.toLowerCase()==="input"&&(z.type==="checkbox"||z.type==="radio")&&(ee=wy);if(ee&&(ee=ee(e,O))){Zd(B,ee,o,U);break e}ie&&ie(e,z,O),e==="focusout"&&(ie=z._wrapperState)&&ie.controlled&&z.type==="number"&&Ft(z,"number",z.value)}switch(ie=O?Qr(O):window,e){case"focusin":(Yd(ie)||ie.contentEditable==="true")&&(Wr=ie,sl=O,no=null);break;case"focusout":no=sl=Wr=null;break;case"mousedown":al=!0;break;case"contextmenu":case"mouseup":case"dragend":al=!1,af(B,o,U);break;case"selectionchange":if(Cy)break;case"keydown":case"keyup":af(B,o,U)}var oe;if(nl)e:{switch(e){case"compositionstart":var ae="onCompositionStart";break e;case"compositionend":ae="onCompositionEnd";break e;case"compositionupdate":ae="onCompositionUpdate";break e}ae=void 0}else Hr?Qd(e,o)&&(ae="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(ae="onCompositionStart");ae&&(Vd&&o.locale!=="ko"&&(Hr||ae!=="onCompositionStart"?ae==="onCompositionEnd"&&Hr&&(oe=zd()):(Mn=U,Ya="value"in Mn?Mn.value:Mn.textContent,Hr=!0)),ie=hs(O,ae),0<ie.length&&(ae=new Hd(ae,e,null,o,U),B.push({event:ae,listeners:ie}),oe?ae.data=oe:(oe=Gd(o),oe!==null&&(ae.data=oe)))),(oe=dy?fy(e,o):hy(e,o))&&(O=hs(O,"onBeforeInput"),0<O.length&&(U=new Hd("onBeforeInput","beforeinput",null,o,U),B.push({event:U,listeners:O}),U.data=oe))}vf(B,n)})}function oo(e,n,o){return{instance:e,listener:n,currentTarget:o}}function hs(e,n){for(var o=n+"Capture",a=[];e!==null;){var u=e,c=u.stateNode;u.tag===5&&c!==null&&(u=c,c=zi(e,o),c!=null&&a.unshift(oo(e,c,u)),c=zi(e,n),c!=null&&a.push(oo(e,c,u))),e=e.return}return a}function qr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function yf(e,n,o,a,u){for(var c=n._reactName,p=[];o!==null&&o!==a;){var w=o,S=w.alternate,O=w.stateNode;if(S!==null&&S===a)break;w.tag===5&&O!==null&&(w=O,u?(S=zi(o,c),S!=null&&p.unshift(oo(o,S,w))):u||(S=zi(o,c),S!=null&&p.push(oo(o,S,w)))),o=o.return}p.length!==0&&e.push({event:n,listeners:p})}var jy=/\r\n?/g,by=/\u0000|\uFFFD/g;function wf(e){return(typeof e=="string"?e:""+e).replace(jy,`
|
|
39
|
-
`).replace(by,"")}function ps(e,n,o){if(n=wf(n),wf(e)!==n&&o)throw Error(i(425))}function ms(){}var hl=null,pl=null;function ml(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var vl=typeof setTimeout=="function"?setTimeout:void 0,Ty=typeof clearTimeout=="function"?clearTimeout:void 0,xf=typeof Promise=="function"?Promise:void 0,Ry=typeof queueMicrotask=="function"?queueMicrotask:typeof xf<"u"?function(e){return xf.resolve(null).then(e).catch(Ny)}:vl;function Ny(e){setTimeout(function(){throw e})}function gl(e,n){var o=n,a=0;do{var u=o.nextSibling;if(e.removeChild(o),u&&u.nodeType===8)if(o=u.data,o==="/$"){if(a===0){e.removeChild(u),Gi(n);return}a--}else o!=="$"&&o!=="$?"&&o!=="$!"||a++;o=u}while(o);Gi(n)}function On(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function kf(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(n===0)return e;n--}else o==="/$"&&n++}e=e.previousSibling}return null}var Kr=Math.random().toString(36).slice(2),Yt="__reactFiber$"+Kr,so="__reactProps$"+Kr,dn="__reactContainer$"+Kr,yl="__reactEvents$"+Kr,Iy="__reactListeners$"+Kr,My="__reactHandles$"+Kr;function sr(e){var n=e[Yt];if(n)return n;for(var o=e.parentNode;o;){if(n=o[dn]||o[Yt]){if(o=n.alternate,n.child!==null||o!==null&&o.child!==null)for(e=kf(e);e!==null;){if(o=e[Yt])return o;e=kf(e)}return n}e=o,o=e.parentNode}return null}function ao(e){return e=e[Yt]||e[dn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Qr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function vs(e){return e[so]||null}var wl=[],Gr=-1;function An(e){return{current:e}}function Te(e){0>Gr||(e.current=wl[Gr],wl[Gr]=null,Gr--)}function je(e,n){Gr++,wl[Gr]=e.current,e.current=n}var Dn={},rt=An(Dn),mt=An(!1),ar=Dn;function Yr(e,n){var o=e.type.contextTypes;if(!o)return Dn;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===n)return a.__reactInternalMemoizedMaskedChildContext;var u={},c;for(c in o)u[c]=n[c];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=u),u}function vt(e){return e=e.childContextTypes,e!=null}function gs(){Te(mt),Te(rt)}function Sf(e,n,o){if(rt.current!==Dn)throw Error(i(168));je(rt,n),je(mt,o)}function Cf(e,n,o){var a=e.stateNode;if(n=n.childContextTypes,typeof a.getChildContext!="function")return o;a=a.getChildContext();for(var u in a)if(!(u in n))throw Error(i(108,_e(e)||"Unknown",u));return Q({},o,a)}function ys(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dn,ar=rt.current,je(rt,e),je(mt,mt.current),!0}function _f(e,n,o){var a=e.stateNode;if(!a)throw Error(i(169));o?(e=Cf(e,n,ar),a.__reactInternalMemoizedMergedChildContext=e,Te(mt),Te(rt),je(rt,e)):Te(mt),je(mt,o)}var fn=null,ws=!1,xl=!1;function Ef(e){fn===null?fn=[e]:fn.push(e)}function Ly(e){ws=!0,Ef(e)}function Fn(){if(!xl&&fn!==null){xl=!0;var e=0,n=Ce;try{var o=fn;for(Ce=1;e<o.length;e++){var a=o[e];do a=a(!0);while(a!==null)}fn=null,ws=!1}catch(u){throw fn!==null&&(fn=fn.slice(e+1)),Pd(Ba,Fn),u}finally{Ce=n,xl=!1}}return null}var Zr=[],Xr=0,xs=null,ks=0,Rt=[],Nt=0,lr=null,hn=1,pn="";function ur(e,n){Zr[Xr++]=ks,Zr[Xr++]=xs,xs=e,ks=n}function Pf(e,n,o){Rt[Nt++]=hn,Rt[Nt++]=pn,Rt[Nt++]=lr,lr=e;var a=hn;e=pn;var u=32-$t(a)-1;a&=~(1<<u),o+=1;var c=32-$t(n)+u;if(30<c){var p=u-u%5;c=(a&(1<<p)-1).toString(32),a>>=p,u-=p,hn=1<<32-$t(n)+u|o<<u|a,pn=c+e}else hn=1<<c|o<<u|a,pn=e}function kl(e){e.return!==null&&(ur(e,1),Pf(e,1,0))}function Sl(e){for(;e===xs;)xs=Zr[--Xr],Zr[Xr]=null,ks=Zr[--Xr],Zr[Xr]=null;for(;e===lr;)lr=Rt[--Nt],Rt[Nt]=null,pn=Rt[--Nt],Rt[Nt]=null,hn=Rt[--Nt],Rt[Nt]=null}var Et=null,Pt=null,Ie=!1,Ut=null;function jf(e,n){var o=Ot(5,null,null,0);o.elementType="DELETED",o.stateNode=n,o.return=e,n=e.deletions,n===null?(e.deletions=[o],e.flags|=16):n.push(o)}function bf(e,n){switch(e.tag){case 5:var o=e.type;return n=n.nodeType!==1||o.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,Et=e,Pt=On(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,Et=e,Pt=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(o=lr!==null?{id:hn,overflow:pn}:null,e.memoizedState={dehydrated:n,treeContext:o,retryLane:1073741824},o=Ot(18,null,null,0),o.stateNode=n,o.return=e,e.child=o,Et=e,Pt=null,!0):!1;default:return!1}}function Cl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function _l(e){if(Ie){var n=Pt;if(n){var o=n;if(!bf(e,n)){if(Cl(e))throw Error(i(418));n=On(o.nextSibling);var a=Et;n&&bf(e,n)?jf(a,o):(e.flags=e.flags&-4097|2,Ie=!1,Et=e)}}else{if(Cl(e))throw Error(i(418));e.flags=e.flags&-4097|2,Ie=!1,Et=e}}}function Tf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Et=e}function Ss(e){if(e!==Et)return!1;if(!Ie)return Tf(e),Ie=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!ml(e.type,e.memoizedProps)),n&&(n=Pt)){if(Cl(e))throw Rf(),Error(i(418));for(;n;)jf(e,n),n=On(n.nextSibling)}if(Tf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"){if(n===0){Pt=On(e.nextSibling);break e}n--}else o!=="$"&&o!=="$!"&&o!=="$?"||n++}e=e.nextSibling}Pt=null}}else Pt=Et?On(e.stateNode.nextSibling):null;return!0}function Rf(){for(var e=Pt;e;)e=On(e.nextSibling)}function Jr(){Pt=Et=null,Ie=!1}function El(e){Ut===null?Ut=[e]:Ut.push(e)}var Oy=b.ReactCurrentBatchConfig;function lo(e,n,o){if(e=o.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(i(309));var a=o.stateNode}if(!a)throw Error(i(147,e));var u=a,c=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===c?n.ref:(n=function(p){var w=u.refs;p===null?delete w[c]:w[c]=p},n._stringRef=c,n)}if(typeof e!="string")throw Error(i(284));if(!o._owner)throw Error(i(290,e))}return e}function Cs(e,n){throw e=Object.prototype.toString.call(n),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function Nf(e){var n=e._init;return n(e._payload)}function If(e){function n(T,_){if(e){var N=T.deletions;N===null?(T.deletions=[_],T.flags|=16):N.push(_)}}function o(T,_){if(!e)return null;for(;_!==null;)n(T,_),_=_.sibling;return null}function a(T,_){for(T=new Map;_!==null;)_.key!==null?T.set(_.key,_):T.set(_.index,_),_=_.sibling;return T}function u(T,_){return T=qn(T,_),T.index=0,T.sibling=null,T}function c(T,_,N){return T.index=N,e?(N=T.alternate,N!==null?(N=N.index,N<_?(T.flags|=2,_):N):(T.flags|=2,_)):(T.flags|=1048576,_)}function p(T){return e&&T.alternate===null&&(T.flags|=2),T}function w(T,_,N,H){return _===null||_.tag!==6?(_=vu(N,T.mode,H),_.return=T,_):(_=u(_,N),_.return=T,_)}function S(T,_,N,H){var ee=N.type;return ee===te?U(T,_,N.props.children,H,N.key):_!==null&&(_.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===nt&&Nf(ee)===_.type)?(H=u(_,N.props),H.ref=lo(T,_,N),H.return=T,H):(H=Ks(N.type,N.key,N.props,null,T.mode,H),H.ref=lo(T,_,N),H.return=T,H)}function O(T,_,N,H){return _===null||_.tag!==4||_.stateNode.containerInfo!==N.containerInfo||_.stateNode.implementation!==N.implementation?(_=gu(N,T.mode,H),_.return=T,_):(_=u(_,N.children||[]),_.return=T,_)}function U(T,_,N,H,ee){return _===null||_.tag!==7?(_=gr(N,T.mode,H,ee),_.return=T,_):(_=u(_,N),_.return=T,_)}function B(T,_,N){if(typeof _=="string"&&_!==""||typeof _=="number")return _=vu(""+_,T.mode,N),_.return=T,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case D:return N=Ks(_.type,_.key,_.props,null,T.mode,N),N.ref=lo(T,null,_),N.return=T,N;case W:return _=gu(_,T.mode,N),_.return=T,_;case nt:var H=_._init;return B(T,H(_._payload),N)}if(bn(_)||re(_))return _=gr(_,T.mode,N,null),_.return=T,_;Cs(T,_)}return null}function z(T,_,N,H){var ee=_!==null?_.key:null;if(typeof N=="string"&&N!==""||typeof N=="number")return ee!==null?null:w(T,_,""+N,H);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case D:return N.key===ee?S(T,_,N,H):null;case W:return N.key===ee?O(T,_,N,H):null;case nt:return ee=N._init,z(T,_,ee(N._payload),H)}if(bn(N)||re(N))return ee!==null?null:U(T,_,N,H,null);Cs(T,N)}return null}function K(T,_,N,H,ee){if(typeof H=="string"&&H!==""||typeof H=="number")return T=T.get(N)||null,w(_,T,""+H,ee);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case D:return T=T.get(H.key===null?N:H.key)||null,S(_,T,H,ee);case W:return T=T.get(H.key===null?N:H.key)||null,O(_,T,H,ee);case nt:var ie=H._init;return K(T,_,N,ie(H._payload),ee)}if(bn(H)||re(H))return T=T.get(N)||null,U(_,T,H,ee,null);Cs(_,H)}return null}function Y(T,_,N,H){for(var ee=null,ie=null,oe=_,ae=_=0,Ye=null;oe!==null&&ae<N.length;ae++){oe.index>ae?(Ye=oe,oe=null):Ye=oe.sibling;var we=z(T,oe,N[ae],H);if(we===null){oe===null&&(oe=Ye);break}e&&oe&&we.alternate===null&&n(T,oe),_=c(we,_,ae),ie===null?ee=we:ie.sibling=we,ie=we,oe=Ye}if(ae===N.length)return o(T,oe),Ie&&ur(T,ae),ee;if(oe===null){for(;ae<N.length;ae++)oe=B(T,N[ae],H),oe!==null&&(_=c(oe,_,ae),ie===null?ee=oe:ie.sibling=oe,ie=oe);return Ie&&ur(T,ae),ee}for(oe=a(T,oe);ae<N.length;ae++)Ye=K(oe,T,ae,N[ae],H),Ye!==null&&(e&&Ye.alternate!==null&&oe.delete(Ye.key===null?ae:Ye.key),_=c(Ye,_,ae),ie===null?ee=Ye:ie.sibling=Ye,ie=Ye);return e&&oe.forEach(function(Kn){return n(T,Kn)}),Ie&&ur(T,ae),ee}function J(T,_,N,H){var ee=re(N);if(typeof ee!="function")throw Error(i(150));if(N=ee.call(N),N==null)throw Error(i(151));for(var ie=ee=null,oe=_,ae=_=0,Ye=null,we=N.next();oe!==null&&!we.done;ae++,we=N.next()){oe.index>ae?(Ye=oe,oe=null):Ye=oe.sibling;var Kn=z(T,oe,we.value,H);if(Kn===null){oe===null&&(oe=Ye);break}e&&oe&&Kn.alternate===null&&n(T,oe),_=c(Kn,_,ae),ie===null?ee=Kn:ie.sibling=Kn,ie=Kn,oe=Ye}if(we.done)return o(T,oe),Ie&&ur(T,ae),ee;if(oe===null){for(;!we.done;ae++,we=N.next())we=B(T,we.value,H),we!==null&&(_=c(we,_,ae),ie===null?ee=we:ie.sibling=we,ie=we);return Ie&&ur(T,ae),ee}for(oe=a(T,oe);!we.done;ae++,we=N.next())we=K(oe,T,ae,we.value,H),we!==null&&(e&&we.alternate!==null&&oe.delete(we.key===null?ae:we.key),_=c(we,_,ae),ie===null?ee=we:ie.sibling=we,ie=we);return e&&oe.forEach(function(pw){return n(T,pw)}),Ie&&ur(T,ae),ee}function $e(T,_,N,H){if(typeof N=="object"&&N!==null&&N.type===te&&N.key===null&&(N=N.props.children),typeof N=="object"&&N!==null){switch(N.$$typeof){case D:e:{for(var ee=N.key,ie=_;ie!==null;){if(ie.key===ee){if(ee=N.type,ee===te){if(ie.tag===7){o(T,ie.sibling),_=u(ie,N.props.children),_.return=T,T=_;break e}}else if(ie.elementType===ee||typeof ee=="object"&&ee!==null&&ee.$$typeof===nt&&Nf(ee)===ie.type){o(T,ie.sibling),_=u(ie,N.props),_.ref=lo(T,ie,N),_.return=T,T=_;break e}o(T,ie);break}else n(T,ie);ie=ie.sibling}N.type===te?(_=gr(N.props.children,T.mode,H,N.key),_.return=T,T=_):(H=Ks(N.type,N.key,N.props,null,T.mode,H),H.ref=lo(T,_,N),H.return=T,T=H)}return p(T);case W:e:{for(ie=N.key;_!==null;){if(_.key===ie)if(_.tag===4&&_.stateNode.containerInfo===N.containerInfo&&_.stateNode.implementation===N.implementation){o(T,_.sibling),_=u(_,N.children||[]),_.return=T,T=_;break e}else{o(T,_);break}else n(T,_);_=_.sibling}_=gu(N,T.mode,H),_.return=T,T=_}return p(T);case nt:return ie=N._init,$e(T,_,ie(N._payload),H)}if(bn(N))return Y(T,_,N,H);if(re(N))return J(T,_,N,H);Cs(T,N)}return typeof N=="string"&&N!==""||typeof N=="number"?(N=""+N,_!==null&&_.tag===6?(o(T,_.sibling),_=u(_,N),_.return=T,T=_):(o(T,_),_=vu(N,T.mode,H),_.return=T,T=_),p(T)):o(T,_)}return $e}var ei=If(!0),Mf=If(!1),_s=An(null),Es=null,ti=null,Pl=null;function jl(){Pl=ti=Es=null}function bl(e){var n=_s.current;Te(_s),e._currentValue=n}function Tl(e,n,o){for(;e!==null;){var a=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,a!==null&&(a.childLanes|=n)):a!==null&&(a.childLanes&n)!==n&&(a.childLanes|=n),e===o)break;e=e.return}}function ni(e,n){Es=e,Pl=ti=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(gt=!0),e.firstContext=null)}function It(e){var n=e._currentValue;if(Pl!==e)if(e={context:e,memoizedValue:n,next:null},ti===null){if(Es===null)throw Error(i(308));ti=e,Es.dependencies={lanes:0,firstContext:e}}else ti=ti.next=e;return n}var cr=null;function Rl(e){cr===null?cr=[e]:cr.push(e)}function Lf(e,n,o,a){var u=n.interleaved;return u===null?(o.next=o,Rl(n)):(o.next=u.next,u.next=o),n.interleaved=o,mn(e,a)}function mn(e,n){e.lanes|=n;var o=e.alternate;for(o!==null&&(o.lanes|=n),o=e,e=e.return;e!==null;)e.childLanes|=n,o=e.alternate,o!==null&&(o.childLanes|=n),o=e,e=e.return;return o.tag===3?o.stateNode:null}var $n=!1;function Nl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Of(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function vn(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function zn(e,n,o){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ye&2)!==0){var u=a.pending;return u===null?n.next=n:(n.next=u.next,u.next=n),a.pending=n,mn(e,o)}return u=a.interleaved,u===null?(n.next=n,Rl(a)):(n.next=u.next,u.next=n),a.interleaved=n,mn(e,o)}function Ps(e,n,o){if(n=n.updateQueue,n!==null&&(n=n.shared,(o&4194240)!==0)){var a=n.lanes;a&=e.pendingLanes,o|=a,n.lanes=o,Va(e,o)}}function Af(e,n){var o=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,o===a)){var u=null,c=null;if(o=o.firstBaseUpdate,o!==null){do{var p={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};c===null?u=c=p:c=c.next=p,o=o.next}while(o!==null);c===null?u=c=n:c=c.next=n}else u=c=n;o={baseState:a.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:a.shared,effects:a.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=n:e.next=n,o.lastBaseUpdate=n}function js(e,n,o,a){var u=e.updateQueue;$n=!1;var c=u.firstBaseUpdate,p=u.lastBaseUpdate,w=u.shared.pending;if(w!==null){u.shared.pending=null;var S=w,O=S.next;S.next=null,p===null?c=O:p.next=O,p=S;var U=e.alternate;U!==null&&(U=U.updateQueue,w=U.lastBaseUpdate,w!==p&&(w===null?U.firstBaseUpdate=O:w.next=O,U.lastBaseUpdate=S))}if(c!==null){var B=u.baseState;p=0,U=O=S=null,w=c;do{var z=w.lane,K=w.eventTime;if((a&z)===z){U!==null&&(U=U.next={eventTime:K,lane:0,tag:w.tag,payload:w.payload,callback:w.callback,next:null});e:{var Y=e,J=w;switch(z=n,K=o,J.tag){case 1:if(Y=J.payload,typeof Y=="function"){B=Y.call(K,B,z);break e}B=Y;break e;case 3:Y.flags=Y.flags&-65537|128;case 0:if(Y=J.payload,z=typeof Y=="function"?Y.call(K,B,z):Y,z==null)break e;B=Q({},B,z);break e;case 2:$n=!0}}w.callback!==null&&w.lane!==0&&(e.flags|=64,z=u.effects,z===null?u.effects=[w]:z.push(w))}else K={eventTime:K,lane:z,tag:w.tag,payload:w.payload,callback:w.callback,next:null},U===null?(O=U=K,S=B):U=U.next=K,p|=z;if(w=w.next,w===null){if(w=u.shared.pending,w===null)break;z=w,w=z.next,z.next=null,u.lastBaseUpdate=z,u.shared.pending=null}}while(!0);if(U===null&&(S=B),u.baseState=S,u.firstBaseUpdate=O,u.lastBaseUpdate=U,n=u.shared.interleaved,n!==null){u=n;do p|=u.lane,u=u.next;while(u!==n)}else c===null&&(u.shared.lanes=0);hr|=p,e.lanes=p,e.memoizedState=B}}function Df(e,n,o){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var a=e[n],u=a.callback;if(u!==null){if(a.callback=null,a=o,typeof u!="function")throw Error(i(191,u));u.call(a)}}}var uo={},Zt=An(uo),co=An(uo),fo=An(uo);function dr(e){if(e===uo)throw Error(i(174));return e}function Il(e,n){switch(je(fo,n),je(co,e),je(Zt,uo),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Ma(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Ma(n,e)}Te(Zt),je(Zt,n)}function ri(){Te(Zt),Te(co),Te(fo)}function Ff(e){dr(fo.current);var n=dr(Zt.current),o=Ma(n,e.type);n!==o&&(je(co,e),je(Zt,o))}function Ml(e){co.current===e&&(Te(Zt),Te(co))}var Me=An(0);function bs(e){for(var n=e;n!==null;){if(n.tag===13){var o=n.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Ll=[];function Ol(){for(var e=0;e<Ll.length;e++)Ll[e]._workInProgressVersionPrimary=null;Ll.length=0}var Ts=b.ReactCurrentDispatcher,Al=b.ReactCurrentBatchConfig,fr=0,Le=null,He=null,Qe=null,Rs=!1,ho=!1,po=0,Ay=0;function it(){throw Error(i(321))}function Dl(e,n){if(n===null)return!1;for(var o=0;o<n.length&&o<e.length;o++)if(!zt(e[o],n[o]))return!1;return!0}function Fl(e,n,o,a,u,c){if(fr=c,Le=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,Ts.current=e===null||e.memoizedState===null?zy:Uy,e=o(a,u),ho){c=0;do{if(ho=!1,po=0,25<=c)throw Error(i(301));c+=1,Qe=He=null,n.updateQueue=null,Ts.current=By,e=o(a,u)}while(ho)}if(Ts.current=Ms,n=He!==null&&He.next!==null,fr=0,Qe=He=Le=null,Rs=!1,n)throw Error(i(300));return e}function $l(){var e=po!==0;return po=0,e}function Xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?Le.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Mt(){if(He===null){var e=Le.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var n=Qe===null?Le.memoizedState:Qe.next;if(n!==null)Qe=n,He=e;else{if(e===null)throw Error(i(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},Qe===null?Le.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function mo(e,n){return typeof n=="function"?n(e):n}function zl(e){var n=Mt(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var a=He,u=a.baseQueue,c=o.pending;if(c!==null){if(u!==null){var p=u.next;u.next=c.next,c.next=p}a.baseQueue=u=c,o.pending=null}if(u!==null){c=u.next,a=a.baseState;var w=p=null,S=null,O=c;do{var U=O.lane;if((fr&U)===U)S!==null&&(S=S.next={lane:0,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null}),a=O.hasEagerState?O.eagerState:e(a,O.action);else{var B={lane:U,action:O.action,hasEagerState:O.hasEagerState,eagerState:O.eagerState,next:null};S===null?(w=S=B,p=a):S=S.next=B,Le.lanes|=U,hr|=U}O=O.next}while(O!==null&&O!==c);S===null?p=a:S.next=w,zt(a,n.memoizedState)||(gt=!0),n.memoizedState=a,n.baseState=p,n.baseQueue=S,o.lastRenderedState=a}if(e=o.interleaved,e!==null){u=e;do c=u.lane,Le.lanes|=c,hr|=c,u=u.next;while(u!==e)}else u===null&&(o.lanes=0);return[n.memoizedState,o.dispatch]}function Ul(e){var n=Mt(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var a=o.dispatch,u=o.pending,c=n.memoizedState;if(u!==null){o.pending=null;var p=u=u.next;do c=e(c,p.action),p=p.next;while(p!==u);zt(c,n.memoizedState)||(gt=!0),n.memoizedState=c,n.baseQueue===null&&(n.baseState=c),o.lastRenderedState=c}return[c,a]}function $f(){}function zf(e,n){var o=Le,a=Mt(),u=n(),c=!zt(a.memoizedState,u);if(c&&(a.memoizedState=u,gt=!0),a=a.queue,Bl(Hf.bind(null,o,a,e),[e]),a.getSnapshot!==n||c||Qe!==null&&Qe.memoizedState.tag&1){if(o.flags|=2048,vo(9,Bf.bind(null,o,a,u,n),void 0,null),Ge===null)throw Error(i(349));(fr&30)!==0||Uf(o,n,u)}return u}function Uf(e,n,o){e.flags|=16384,e={getSnapshot:n,value:o},n=Le.updateQueue,n===null?(n={lastEffect:null,stores:null},Le.updateQueue=n,n.stores=[e]):(o=n.stores,o===null?n.stores=[e]:o.push(e))}function Bf(e,n,o,a){n.value=o,n.getSnapshot=a,Wf(n)&&Vf(e)}function Hf(e,n,o){return o(function(){Wf(n)&&Vf(e)})}function Wf(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!zt(e,o)}catch{return!0}}function Vf(e){var n=mn(e,1);n!==null&&Vt(n,e,1,-1)}function qf(e){var n=Xt();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:mo,lastRenderedState:e},n.queue=e,e=e.dispatch=$y.bind(null,Le,e),[n.memoizedState,e]}function vo(e,n,o,a){return e={tag:e,create:n,destroy:o,deps:a,next:null},n=Le.updateQueue,n===null?(n={lastEffect:null,stores:null},Le.updateQueue=n,n.lastEffect=e.next=e):(o=n.lastEffect,o===null?n.lastEffect=e.next=e:(a=o.next,o.next=e,e.next=a,n.lastEffect=e)),e}function Kf(){return Mt().memoizedState}function Ns(e,n,o,a){var u=Xt();Le.flags|=e,u.memoizedState=vo(1|n,o,void 0,a===void 0?null:a)}function Is(e,n,o,a){var u=Mt();a=a===void 0?null:a;var c=void 0;if(He!==null){var p=He.memoizedState;if(c=p.destroy,a!==null&&Dl(a,p.deps)){u.memoizedState=vo(n,o,c,a);return}}Le.flags|=e,u.memoizedState=vo(1|n,o,c,a)}function Qf(e,n){return Ns(8390656,8,e,n)}function Bl(e,n){return Is(2048,8,e,n)}function Gf(e,n){return Is(4,2,e,n)}function Yf(e,n){return Is(4,4,e,n)}function Zf(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Xf(e,n,o){return o=o!=null?o.concat([e]):null,Is(4,4,Zf.bind(null,n,e),o)}function Hl(){}function Jf(e,n){var o=Mt();n=n===void 0?null:n;var a=o.memoizedState;return a!==null&&n!==null&&Dl(n,a[1])?a[0]:(o.memoizedState=[e,n],e)}function eh(e,n){var o=Mt();n=n===void 0?null:n;var a=o.memoizedState;return a!==null&&n!==null&&Dl(n,a[1])?a[0]:(e=e(),o.memoizedState=[e,n],e)}function th(e,n,o){return(fr&21)===0?(e.baseState&&(e.baseState=!1,gt=!0),e.memoizedState=o):(zt(o,n)||(o=Rd(),Le.lanes|=o,hr|=o,e.baseState=!0),n)}function Dy(e,n){var o=Ce;Ce=o!==0&&4>o?o:4,e(!0);var a=Al.transition;Al.transition={};try{e(!1),n()}finally{Ce=o,Al.transition=a}}function nh(){return Mt().memoizedState}function Fy(e,n,o){var a=Wn(e);if(o={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null},rh(e))ih(n,o);else if(o=Lf(e,n,o,a),o!==null){var u=ft();Vt(o,e,a,u),oh(o,n,a)}}function $y(e,n,o){var a=Wn(e),u={lane:a,action:o,hasEagerState:!1,eagerState:null,next:null};if(rh(e))ih(n,u);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=n.lastRenderedReducer,c!==null))try{var p=n.lastRenderedState,w=c(p,o);if(u.hasEagerState=!0,u.eagerState=w,zt(w,p)){var S=n.interleaved;S===null?(u.next=u,Rl(n)):(u.next=S.next,S.next=u),n.interleaved=u;return}}catch{}finally{}o=Lf(e,n,u,a),o!==null&&(u=ft(),Vt(o,e,a,u),oh(o,n,a))}}function rh(e){var n=e.alternate;return e===Le||n!==null&&n===Le}function ih(e,n){ho=Rs=!0;var o=e.pending;o===null?n.next=n:(n.next=o.next,o.next=n),e.pending=n}function oh(e,n,o){if((o&4194240)!==0){var a=n.lanes;a&=e.pendingLanes,o|=a,n.lanes=o,Va(e,o)}}var Ms={readContext:It,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},zy={readContext:It,useCallback:function(e,n){return Xt().memoizedState=[e,n===void 0?null:n],e},useContext:It,useEffect:Qf,useImperativeHandle:function(e,n,o){return o=o!=null?o.concat([e]):null,Ns(4194308,4,Zf.bind(null,n,e),o)},useLayoutEffect:function(e,n){return Ns(4194308,4,e,n)},useInsertionEffect:function(e,n){return Ns(4,2,e,n)},useMemo:function(e,n){var o=Xt();return n=n===void 0?null:n,e=e(),o.memoizedState=[e,n],e},useReducer:function(e,n,o){var a=Xt();return n=o!==void 0?o(n):n,a.memoizedState=a.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=Fy.bind(null,Le,e),[a.memoizedState,e]},useRef:function(e){var n=Xt();return e={current:e},n.memoizedState=e},useState:qf,useDebugValue:Hl,useDeferredValue:function(e){return Xt().memoizedState=e},useTransition:function(){var e=qf(!1),n=e[0];return e=Dy.bind(null,e[1]),Xt().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,o){var a=Le,u=Xt();if(Ie){if(o===void 0)throw Error(i(407));o=o()}else{if(o=n(),Ge===null)throw Error(i(349));(fr&30)!==0||Uf(a,n,o)}u.memoizedState=o;var c={value:o,getSnapshot:n};return u.queue=c,Qf(Hf.bind(null,a,c,e),[e]),a.flags|=2048,vo(9,Bf.bind(null,a,c,o,n),void 0,null),o},useId:function(){var e=Xt(),n=Ge.identifierPrefix;if(Ie){var o=pn,a=hn;o=(a&~(1<<32-$t(a)-1)).toString(32)+o,n=":"+n+"R"+o,o=po++,0<o&&(n+="H"+o.toString(32)),n+=":"}else o=Ay++,n=":"+n+"r"+o.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},Uy={readContext:It,useCallback:Jf,useContext:It,useEffect:Bl,useImperativeHandle:Xf,useInsertionEffect:Gf,useLayoutEffect:Yf,useMemo:eh,useReducer:zl,useRef:Kf,useState:function(){return zl(mo)},useDebugValue:Hl,useDeferredValue:function(e){var n=Mt();return th(n,He.memoizedState,e)},useTransition:function(){var e=zl(mo)[0],n=Mt().memoizedState;return[e,n]},useMutableSource:$f,useSyncExternalStore:zf,useId:nh,unstable_isNewReconciler:!1},By={readContext:It,useCallback:Jf,useContext:It,useEffect:Bl,useImperativeHandle:Xf,useInsertionEffect:Gf,useLayoutEffect:Yf,useMemo:eh,useReducer:Ul,useRef:Kf,useState:function(){return Ul(mo)},useDebugValue:Hl,useDeferredValue:function(e){var n=Mt();return He===null?n.memoizedState=e:th(n,He.memoizedState,e)},useTransition:function(){var e=Ul(mo)[0],n=Mt().memoizedState;return[e,n]},useMutableSource:$f,useSyncExternalStore:zf,useId:nh,unstable_isNewReconciler:!1};function Bt(e,n){if(e&&e.defaultProps){n=Q({},n),e=e.defaultProps;for(var o in e)n[o]===void 0&&(n[o]=e[o]);return n}return n}function Wl(e,n,o,a){n=e.memoizedState,o=o(a,n),o=o==null?n:Q({},n,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var Ls={isMounted:function(e){return(e=e._reactInternals)?or(e)===e:!1},enqueueSetState:function(e,n,o){e=e._reactInternals;var a=ft(),u=Wn(e),c=vn(a,u);c.payload=n,o!=null&&(c.callback=o),n=zn(e,c,u),n!==null&&(Vt(n,e,u,a),Ps(n,e,u))},enqueueReplaceState:function(e,n,o){e=e._reactInternals;var a=ft(),u=Wn(e),c=vn(a,u);c.tag=1,c.payload=n,o!=null&&(c.callback=o),n=zn(e,c,u),n!==null&&(Vt(n,e,u,a),Ps(n,e,u))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var o=ft(),a=Wn(e),u=vn(o,a);u.tag=2,n!=null&&(u.callback=n),n=zn(e,u,a),n!==null&&(Vt(n,e,a,o),Ps(n,e,a))}};function sh(e,n,o,a,u,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,p):n.prototype&&n.prototype.isPureReactComponent?!to(o,a)||!to(u,c):!0}function ah(e,n,o){var a=!1,u=Dn,c=n.contextType;return typeof c=="object"&&c!==null?c=It(c):(u=vt(n)?ar:rt.current,a=n.contextTypes,c=(a=a!=null)?Yr(e,u):Dn),n=new n(o,c),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Ls,e.stateNode=n,n._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=u,e.__reactInternalMemoizedMaskedChildContext=c),n}function lh(e,n,o,a){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(o,a),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(o,a),n.state!==e&&Ls.enqueueReplaceState(n,n.state,null)}function Vl(e,n,o,a){var u=e.stateNode;u.props=o,u.state=e.memoizedState,u.refs={},Nl(e);var c=n.contextType;typeof c=="object"&&c!==null?u.context=It(c):(c=vt(n)?ar:rt.current,u.context=Yr(e,c)),u.state=e.memoizedState,c=n.getDerivedStateFromProps,typeof c=="function"&&(Wl(e,n,c,o),u.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(n=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),n!==u.state&&Ls.enqueueReplaceState(u,u.state,null),js(e,o,u,a),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308)}function ii(e,n){try{var o="",a=n;do o+=ve(a),a=a.return;while(a);var u=o}catch(c){u=`
|
|
40
|
-
Error generating stack: `+c.message+`
|
|
41
|
-
`+c.stack}return{value:e,source:n,stack:u,digest:null}}function ql(e,n,o){return{value:e,source:null,stack:o??null,digest:n??null}}function Kl(e,n){try{console.error(n.value)}catch(o){setTimeout(function(){throw o})}}var Hy=typeof WeakMap=="function"?WeakMap:Map;function uh(e,n,o){o=vn(-1,o),o.tag=3,o.payload={element:null};var a=n.value;return o.callback=function(){Us||(Us=!0,lu=a),Kl(e,n)},o}function ch(e,n,o){o=vn(-1,o),o.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var u=n.value;o.payload=function(){return a(u)},o.callback=function(){Kl(e,n)}}var c=e.stateNode;return c!==null&&typeof c.componentDidCatch=="function"&&(o.callback=function(){Kl(e,n),typeof a!="function"&&(Bn===null?Bn=new Set([this]):Bn.add(this));var p=n.stack;this.componentDidCatch(n.value,{componentStack:p!==null?p:""})}),o}function dh(e,n,o){var a=e.pingCache;if(a===null){a=e.pingCache=new Hy;var u=new Set;a.set(n,u)}else u=a.get(n),u===void 0&&(u=new Set,a.set(n,u));u.has(o)||(u.add(o),e=rw.bind(null,e,n,o),n.then(e,e))}function fh(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function hh(e,n,o,a,u){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(n=vn(-1,1),n.tag=2,zn(o,n,1))),o.lanes|=1),e):(e.flags|=65536,e.lanes=u,e)}var Wy=b.ReactCurrentOwner,gt=!1;function dt(e,n,o,a){n.child=e===null?Mf(n,null,o,a):ei(n,e.child,o,a)}function ph(e,n,o,a,u){o=o.render;var c=n.ref;return ni(n,u),a=Fl(e,n,o,a,c,u),o=$l(),e!==null&&!gt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~u,gn(e,n,u)):(Ie&&o&&kl(n),n.flags|=1,dt(e,n,a,u),n.child)}function mh(e,n,o,a,u){if(e===null){var c=o.type;return typeof c=="function"&&!mu(c)&&c.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(n.tag=15,n.type=c,vh(e,n,c,a,u)):(e=Ks(o.type,null,a,n,n.mode,u),e.ref=n.ref,e.return=n,n.child=e)}if(c=e.child,(e.lanes&u)===0){var p=c.memoizedProps;if(o=o.compare,o=o!==null?o:to,o(p,a)&&e.ref===n.ref)return gn(e,n,u)}return n.flags|=1,e=qn(c,a),e.ref=n.ref,e.return=n,n.child=e}function vh(e,n,o,a,u){if(e!==null){var c=e.memoizedProps;if(to(c,a)&&e.ref===n.ref)if(gt=!1,n.pendingProps=a=c,(e.lanes&u)!==0)(e.flags&131072)!==0&&(gt=!0);else return n.lanes=e.lanes,gn(e,n,u)}return Ql(e,n,o,a,u)}function gh(e,n,o){var a=n.pendingProps,u=a.children,c=e!==null?e.memoizedState:null;if(a.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},je(si,jt),jt|=o;else{if((o&1073741824)===0)return e=c!==null?c.baseLanes|o:o,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,je(si,jt),jt|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=c!==null?c.baseLanes:o,je(si,jt),jt|=a}else c!==null?(a=c.baseLanes|o,n.memoizedState=null):a=o,je(si,jt),jt|=a;return dt(e,n,u,o),n.child}function yh(e,n){var o=n.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(n.flags|=512,n.flags|=2097152)}function Ql(e,n,o,a,u){var c=vt(o)?ar:rt.current;return c=Yr(n,c),ni(n,u),o=Fl(e,n,o,a,c,u),a=$l(),e!==null&&!gt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~u,gn(e,n,u)):(Ie&&a&&kl(n),n.flags|=1,dt(e,n,o,u),n.child)}function wh(e,n,o,a,u){if(vt(o)){var c=!0;ys(n)}else c=!1;if(ni(n,u),n.stateNode===null)As(e,n),ah(n,o,a),Vl(n,o,a,u),a=!0;else if(e===null){var p=n.stateNode,w=n.memoizedProps;p.props=w;var S=p.context,O=o.contextType;typeof O=="object"&&O!==null?O=It(O):(O=vt(o)?ar:rt.current,O=Yr(n,O));var U=o.getDerivedStateFromProps,B=typeof U=="function"||typeof p.getSnapshotBeforeUpdate=="function";B||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w!==a||S!==O)&&lh(n,p,a,O),$n=!1;var z=n.memoizedState;p.state=z,js(n,a,p,u),S=n.memoizedState,w!==a||z!==S||mt.current||$n?(typeof U=="function"&&(Wl(n,o,U,a),S=n.memoizedState),(w=$n||sh(n,o,w,a,z,S,O))?(B||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(n.flags|=4194308)):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=a,n.memoizedState=S),p.props=a,p.state=S,p.context=O,a=w):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),a=!1)}else{p=n.stateNode,Of(e,n),w=n.memoizedProps,O=n.type===n.elementType?w:Bt(n.type,w),p.props=O,B=n.pendingProps,z=p.context,S=o.contextType,typeof S=="object"&&S!==null?S=It(S):(S=vt(o)?ar:rt.current,S=Yr(n,S));var K=o.getDerivedStateFromProps;(U=typeof K=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w!==B||z!==S)&&lh(n,p,a,S),$n=!1,z=n.memoizedState,p.state=z,js(n,a,p,u);var Y=n.memoizedState;w!==B||z!==Y||mt.current||$n?(typeof K=="function"&&(Wl(n,o,K,a),Y=n.memoizedState),(O=$n||sh(n,o,O,a,z,Y,S)||!1)?(U||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(a,Y,S),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(a,Y,S)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||w===e.memoizedProps&&z===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&z===e.memoizedState||(n.flags|=1024),n.memoizedProps=a,n.memoizedState=Y),p.props=a,p.state=Y,p.context=S,a=O):(typeof p.componentDidUpdate!="function"||w===e.memoizedProps&&z===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&z===e.memoizedState||(n.flags|=1024),a=!1)}return Gl(e,n,o,a,c,u)}function Gl(e,n,o,a,u,c){yh(e,n);var p=(n.flags&128)!==0;if(!a&&!p)return u&&_f(n,o,!1),gn(e,n,c);a=n.stateNode,Wy.current=n;var w=p&&typeof o.getDerivedStateFromError!="function"?null:a.render();return n.flags|=1,e!==null&&p?(n.child=ei(n,e.child,null,c),n.child=ei(n,null,w,c)):dt(e,n,w,c),n.memoizedState=a.state,u&&_f(n,o,!0),n.child}function xh(e){var n=e.stateNode;n.pendingContext?Sf(e,n.pendingContext,n.pendingContext!==n.context):n.context&&Sf(e,n.context,!1),Il(e,n.containerInfo)}function kh(e,n,o,a,u){return Jr(),El(u),n.flags|=256,dt(e,n,o,a),n.child}var Yl={dehydrated:null,treeContext:null,retryLane:0};function Zl(e){return{baseLanes:e,cachePool:null,transitions:null}}function Sh(e,n,o){var a=n.pendingProps,u=Me.current,c=!1,p=(n.flags&128)!==0,w;if((w=p)||(w=e!==null&&e.memoizedState===null?!1:(u&2)!==0),w?(c=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(u|=1),je(Me,u&1),e===null)return _l(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(p=a.children,e=a.fallback,c?(a=n.mode,c=n.child,p={mode:"hidden",children:p},(a&1)===0&&c!==null?(c.childLanes=0,c.pendingProps=p):c=Qs(p,a,0,null),e=gr(e,a,o,null),c.return=n,e.return=n,c.sibling=e,n.child=c,n.child.memoizedState=Zl(o),n.memoizedState=Yl,e):Xl(n,p));if(u=e.memoizedState,u!==null&&(w=u.dehydrated,w!==null))return Vy(e,n,p,a,w,u,o);if(c){c=a.fallback,p=n.mode,u=e.child,w=u.sibling;var S={mode:"hidden",children:a.children};return(p&1)===0&&n.child!==u?(a=n.child,a.childLanes=0,a.pendingProps=S,n.deletions=null):(a=qn(u,S),a.subtreeFlags=u.subtreeFlags&14680064),w!==null?c=qn(w,c):(c=gr(c,p,o,null),c.flags|=2),c.return=n,a.return=n,a.sibling=c,n.child=a,a=c,c=n.child,p=e.child.memoizedState,p=p===null?Zl(o):{baseLanes:p.baseLanes|o,cachePool:null,transitions:p.transitions},c.memoizedState=p,c.childLanes=e.childLanes&~o,n.memoizedState=Yl,a}return c=e.child,e=c.sibling,a=qn(c,{mode:"visible",children:a.children}),(n.mode&1)===0&&(a.lanes=o),a.return=n,a.sibling=null,e!==null&&(o=n.deletions,o===null?(n.deletions=[e],n.flags|=16):o.push(e)),n.child=a,n.memoizedState=null,a}function Xl(e,n){return n=Qs({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function Os(e,n,o,a){return a!==null&&El(a),ei(n,e.child,null,o),e=Xl(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Vy(e,n,o,a,u,c,p){if(o)return n.flags&256?(n.flags&=-257,a=ql(Error(i(422))),Os(e,n,p,a)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(c=a.fallback,u=n.mode,a=Qs({mode:"visible",children:a.children},u,0,null),c=gr(c,u,p,null),c.flags|=2,a.return=n,c.return=n,a.sibling=c,n.child=a,(n.mode&1)!==0&&ei(n,e.child,null,p),n.child.memoizedState=Zl(p),n.memoizedState=Yl,c);if((n.mode&1)===0)return Os(e,n,p,null);if(u.data==="$!"){if(a=u.nextSibling&&u.nextSibling.dataset,a)var w=a.dgst;return a=w,c=Error(i(419)),a=ql(c,a,void 0),Os(e,n,p,a)}if(w=(p&e.childLanes)!==0,gt||w){if(a=Ge,a!==null){switch(p&-p){case 4:u=2;break;case 16:u=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:u=32;break;case 536870912:u=268435456;break;default:u=0}u=(u&(a.suspendedLanes|p))!==0?0:u,u!==0&&u!==c.retryLane&&(c.retryLane=u,mn(e,u),Vt(a,e,u,-1))}return pu(),a=ql(Error(i(421))),Os(e,n,p,a)}return u.data==="$?"?(n.flags|=128,n.child=e.child,n=iw.bind(null,e),u._reactRetry=n,null):(e=c.treeContext,Pt=On(u.nextSibling),Et=n,Ie=!0,Ut=null,e!==null&&(Rt[Nt++]=hn,Rt[Nt++]=pn,Rt[Nt++]=lr,hn=e.id,pn=e.overflow,lr=n),n=Xl(n,a.children),n.flags|=4096,n)}function Ch(e,n,o){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n),Tl(e.return,n,o)}function Jl(e,n,o,a,u){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:a,tail:o,tailMode:u}:(c.isBackwards=n,c.rendering=null,c.renderingStartTime=0,c.last=a,c.tail=o,c.tailMode=u)}function _h(e,n,o){var a=n.pendingProps,u=a.revealOrder,c=a.tail;if(dt(e,n,a.children,o),a=Me.current,(a&2)!==0)a=a&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ch(e,o,n);else if(e.tag===19)Ch(e,o,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(je(Me,a),(n.mode&1)===0)n.memoizedState=null;else switch(u){case"forwards":for(o=n.child,u=null;o!==null;)e=o.alternate,e!==null&&bs(e)===null&&(u=o),o=o.sibling;o=u,o===null?(u=n.child,n.child=null):(u=o.sibling,o.sibling=null),Jl(n,!1,u,o,c);break;case"backwards":for(o=null,u=n.child,n.child=null;u!==null;){if(e=u.alternate,e!==null&&bs(e)===null){n.child=u;break}e=u.sibling,u.sibling=o,o=u,u=e}Jl(n,!0,o,null,c);break;case"together":Jl(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function As(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function gn(e,n,o){if(e!==null&&(n.dependencies=e.dependencies),hr|=n.lanes,(o&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(i(153));if(n.child!==null){for(e=n.child,o=qn(e,e.pendingProps),n.child=o,o.return=n;e.sibling!==null;)e=e.sibling,o=o.sibling=qn(e,e.pendingProps),o.return=n;o.sibling=null}return n.child}function qy(e,n,o){switch(n.tag){case 3:xh(n),Jr();break;case 5:Ff(n);break;case 1:vt(n.type)&&ys(n);break;case 4:Il(n,n.stateNode.containerInfo);break;case 10:var a=n.type._context,u=n.memoizedProps.value;je(_s,a._currentValue),a._currentValue=u;break;case 13:if(a=n.memoizedState,a!==null)return a.dehydrated!==null?(je(Me,Me.current&1),n.flags|=128,null):(o&n.child.childLanes)!==0?Sh(e,n,o):(je(Me,Me.current&1),e=gn(e,n,o),e!==null?e.sibling:null);je(Me,Me.current&1);break;case 19:if(a=(o&n.childLanes)!==0,(e.flags&128)!==0){if(a)return _h(e,n,o);n.flags|=128}if(u=n.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),je(Me,Me.current),a)break;return null;case 22:case 23:return n.lanes=0,gh(e,n,o)}return gn(e,n,o)}var Eh,eu,Ph,jh;Eh=function(e,n){for(var o=n.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},eu=function(){},Ph=function(e,n,o,a){var u=e.memoizedProps;if(u!==a){e=n.stateNode,dr(Zt.current);var c=null;switch(o){case"input":u=Di(e,u),a=Di(e,a),c=[];break;case"select":u=Q({},u,{value:void 0}),a=Q({},a,{value:void 0}),c=[];break;case"textarea":u=Ia(e,u),a=Ia(e,a),c=[];break;default:typeof u.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=ms)}La(o,a);var p;o=null;for(O in u)if(!a.hasOwnProperty(O)&&u.hasOwnProperty(O)&&u[O]!=null)if(O==="style"){var w=u[O];for(p in w)w.hasOwnProperty(p)&&(o||(o={}),o[p]="")}else O!=="dangerouslySetInnerHTML"&&O!=="children"&&O!=="suppressContentEditableWarning"&&O!=="suppressHydrationWarning"&&O!=="autoFocus"&&(l.hasOwnProperty(O)?c||(c=[]):(c=c||[]).push(O,null));for(O in a){var S=a[O];if(w=u!=null?u[O]:void 0,a.hasOwnProperty(O)&&S!==w&&(S!=null||w!=null))if(O==="style")if(w){for(p in w)!w.hasOwnProperty(p)||S&&S.hasOwnProperty(p)||(o||(o={}),o[p]="");for(p in S)S.hasOwnProperty(p)&&w[p]!==S[p]&&(o||(o={}),o[p]=S[p])}else o||(c||(c=[]),c.push(O,o)),o=S;else O==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,w=w?w.__html:void 0,S!=null&&w!==S&&(c=c||[]).push(O,S)):O==="children"?typeof S!="string"&&typeof S!="number"||(c=c||[]).push(O,""+S):O!=="suppressContentEditableWarning"&&O!=="suppressHydrationWarning"&&(l.hasOwnProperty(O)?(S!=null&&O==="onScroll"&&be("scroll",e),c||w===S||(c=[])):(c=c||[]).push(O,S))}o&&(c=c||[]).push("style",o);var O=c;(n.updateQueue=O)&&(n.flags|=4)}},jh=function(e,n,o,a){o!==a&&(n.flags|=4)};function go(e,n){if(!Ie)switch(e.tailMode){case"hidden":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var a=null;o!==null;)o.alternate!==null&&(a=o),o=o.sibling;a===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function ot(e){var n=e.alternate!==null&&e.alternate.child===e.child,o=0,a=0;if(n)for(var u=e.child;u!==null;)o|=u.lanes|u.childLanes,a|=u.subtreeFlags&14680064,a|=u.flags&14680064,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)o|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=a,e.childLanes=o,n}function Ky(e,n,o){var a=n.pendingProps;switch(Sl(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(n),null;case 1:return vt(n.type)&&gs(),ot(n),null;case 3:return a=n.stateNode,ri(),Te(mt),Te(rt),Ol(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ss(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Ut!==null&&(du(Ut),Ut=null))),eu(e,n),ot(n),null;case 5:Ml(n);var u=dr(fo.current);if(o=n.type,e!==null&&n.stateNode!=null)Ph(e,n,o,a,u),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!a){if(n.stateNode===null)throw Error(i(166));return ot(n),null}if(e=dr(Zt.current),Ss(n)){a=n.stateNode,o=n.type;var c=n.memoizedProps;switch(a[Yt]=n,a[so]=c,e=(n.mode&1)!==0,o){case"dialog":be("cancel",a),be("close",a);break;case"iframe":case"object":case"embed":be("load",a);break;case"video":case"audio":for(u=0;u<ro.length;u++)be(ro[u],a);break;case"source":be("error",a);break;case"img":case"image":case"link":be("error",a),be("load",a);break;case"details":be("toggle",a);break;case"input":qo(a,c),be("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!c.multiple},be("invalid",a);break;case"textarea":ud(a,c),be("invalid",a)}La(o,c),u=null;for(var p in c)if(c.hasOwnProperty(p)){var w=c[p];p==="children"?typeof w=="string"?a.textContent!==w&&(c.suppressHydrationWarning!==!0&&ps(a.textContent,w,e),u=["children",w]):typeof w=="number"&&a.textContent!==""+w&&(c.suppressHydrationWarning!==!0&&ps(a.textContent,w,e),u=["children",""+w]):l.hasOwnProperty(p)&&w!=null&&p==="onScroll"&&be("scroll",a)}switch(o){case"input":Ar(a),cn(a,c,!0);break;case"textarea":Ar(a),dd(a);break;case"select":case"option":break;default:typeof c.onClick=="function"&&(a.onclick=ms)}a=u,n.updateQueue=a,a!==null&&(n.flags|=4)}else{p=u.nodeType===9?u:u.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=fd(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=p.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=p.createElement(o,{is:a.is}):(e=p.createElement(o),o==="select"&&(p=e,a.multiple?p.multiple=!0:a.size&&(p.size=a.size))):e=p.createElementNS(e,o),e[Yt]=n,e[so]=a,Eh(e,n,!1,!1),n.stateNode=e;e:{switch(p=Oa(o,a),o){case"dialog":be("cancel",e),be("close",e),u=a;break;case"iframe":case"object":case"embed":be("load",e),u=a;break;case"video":case"audio":for(u=0;u<ro.length;u++)be(ro[u],e);u=a;break;case"source":be("error",e),u=a;break;case"img":case"image":case"link":be("error",e),be("load",e),u=a;break;case"details":be("toggle",e),u=a;break;case"input":qo(e,a),u=Di(e,a),be("invalid",e);break;case"option":u=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},u=Q({},a,{value:void 0}),be("invalid",e);break;case"textarea":ud(e,a),u=Ia(e,a),be("invalid",e);break;default:u=a}La(o,u),w=u;for(c in w)if(w.hasOwnProperty(c)){var S=w[c];c==="style"?md(e,S):c==="dangerouslySetInnerHTML"?(S=S?S.__html:void 0,S!=null&&hd(e,S)):c==="children"?typeof S=="string"?(o!=="textarea"||S!=="")&&Fi(e,S):typeof S=="number"&&Fi(e,""+S):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(l.hasOwnProperty(c)?S!=null&&c==="onScroll"&&be("scroll",e):S!=null&&P(e,c,S,p))}switch(o){case"input":Ar(e),cn(e,a,!1);break;case"textarea":Ar(e),dd(e);break;case"option":a.value!=null&&e.setAttribute("value",""+xe(a.value));break;case"select":e.multiple=!!a.multiple,c=a.value,c!=null?Fr(e,!!a.multiple,c,!1):a.defaultValue!=null&&Fr(e,!!a.multiple,a.defaultValue,!0);break;default:typeof u.onClick=="function"&&(e.onclick=ms)}switch(o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return ot(n),null;case 6:if(e&&n.stateNode!=null)jh(e,n,e.memoizedProps,a);else{if(typeof a!="string"&&n.stateNode===null)throw Error(i(166));if(o=dr(fo.current),dr(Zt.current),Ss(n)){if(a=n.stateNode,o=n.memoizedProps,a[Yt]=n,(c=a.nodeValue!==o)&&(e=Et,e!==null))switch(e.tag){case 3:ps(a.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ps(a.nodeValue,o,(e.mode&1)!==0)}c&&(n.flags|=4)}else a=(o.nodeType===9?o:o.ownerDocument).createTextNode(a),a[Yt]=n,n.stateNode=a}return ot(n),null;case 13:if(Te(Me),a=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ie&&Pt!==null&&(n.mode&1)!==0&&(n.flags&128)===0)Rf(),Jr(),n.flags|=98560,c=!1;else if(c=Ss(n),a!==null&&a.dehydrated!==null){if(e===null){if(!c)throw Error(i(318));if(c=n.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(i(317));c[Yt]=n}else Jr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;ot(n),c=!1}else Ut!==null&&(du(Ut),Ut=null),c=!0;if(!c)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=o,n):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(Me.current&1)!==0?We===0&&(We=3):pu())),n.updateQueue!==null&&(n.flags|=4),ot(n),null);case 4:return ri(),eu(e,n),e===null&&io(n.stateNode.containerInfo),ot(n),null;case 10:return bl(n.type._context),ot(n),null;case 17:return vt(n.type)&&gs(),ot(n),null;case 19:if(Te(Me),c=n.memoizedState,c===null)return ot(n),null;if(a=(n.flags&128)!==0,p=c.rendering,p===null)if(a)go(c,!1);else{if(We!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(p=bs(e),p!==null){for(n.flags|=128,go(c,!1),a=p.updateQueue,a!==null&&(n.updateQueue=a,n.flags|=4),n.subtreeFlags=0,a=o,o=n.child;o!==null;)c=o,e=a,c.flags&=14680066,p=c.alternate,p===null?(c.childLanes=0,c.lanes=e,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=p.childLanes,c.lanes=p.lanes,c.child=p.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=p.memoizedProps,c.memoizedState=p.memoizedState,c.updateQueue=p.updateQueue,c.type=p.type,e=p.dependencies,c.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return je(Me,Me.current&1|2),n.child}e=e.sibling}c.tail!==null&&Fe()>ai&&(n.flags|=128,a=!0,go(c,!1),n.lanes=4194304)}else{if(!a)if(e=bs(p),e!==null){if(n.flags|=128,a=!0,o=e.updateQueue,o!==null&&(n.updateQueue=o,n.flags|=4),go(c,!0),c.tail===null&&c.tailMode==="hidden"&&!p.alternate&&!Ie)return ot(n),null}else 2*Fe()-c.renderingStartTime>ai&&o!==1073741824&&(n.flags|=128,a=!0,go(c,!1),n.lanes=4194304);c.isBackwards?(p.sibling=n.child,n.child=p):(o=c.last,o!==null?o.sibling=p:n.child=p,c.last=p)}return c.tail!==null?(n=c.tail,c.rendering=n,c.tail=n.sibling,c.renderingStartTime=Fe(),n.sibling=null,o=Me.current,je(Me,a?o&1|2:o&1),n):(ot(n),null);case 22:case 23:return hu(),a=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(n.flags|=8192),a&&(n.mode&1)!==0?(jt&1073741824)!==0&&(ot(n),n.subtreeFlags&6&&(n.flags|=8192)):ot(n),null;case 24:return null;case 25:return null}throw Error(i(156,n.tag))}function Qy(e,n){switch(Sl(n),n.tag){case 1:return vt(n.type)&&gs(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return ri(),Te(mt),Te(rt),Ol(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return Ml(n),null;case 13:if(Te(Me),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));Jr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return Te(Me),null;case 4:return ri(),null;case 10:return bl(n.type._context),null;case 22:case 23:return hu(),null;case 24:return null;default:return null}}var Ds=!1,st=!1,Gy=typeof WeakSet=="function"?WeakSet:Set,G=null;function oi(e,n){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(a){Ae(e,n,a)}else o.current=null}function tu(e,n,o){try{o()}catch(a){Ae(e,n,a)}}var bh=!1;function Yy(e,n){if(hl=rs,e=sf(),ol(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var a=o.getSelection&&o.getSelection();if(a&&a.rangeCount!==0){o=a.anchorNode;var u=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{o.nodeType,c.nodeType}catch{o=null;break e}var p=0,w=-1,S=-1,O=0,U=0,B=e,z=null;t:for(;;){for(var K;B!==o||u!==0&&B.nodeType!==3||(w=p+u),B!==c||a!==0&&B.nodeType!==3||(S=p+a),B.nodeType===3&&(p+=B.nodeValue.length),(K=B.firstChild)!==null;)z=B,B=K;for(;;){if(B===e)break t;if(z===o&&++O===u&&(w=p),z===c&&++U===a&&(S=p),(K=B.nextSibling)!==null)break;B=z,z=B.parentNode}B=K}o=w===-1||S===-1?null:{start:w,end:S}}else o=null}o=o||{start:0,end:0}}else o=null;for(pl={focusedElem:e,selectionRange:o},rs=!1,G=n;G!==null;)if(n=G,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,G=e;else for(;G!==null;){n=G;try{var Y=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(Y!==null){var J=Y.memoizedProps,$e=Y.memoizedState,T=n.stateNode,_=T.getSnapshotBeforeUpdate(n.elementType===n.type?J:Bt(n.type,J),$e);T.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var N=n.stateNode.containerInfo;N.nodeType===1?N.textContent="":N.nodeType===9&&N.documentElement&&N.removeChild(N.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(H){Ae(n,n.return,H)}if(e=n.sibling,e!==null){e.return=n.return,G=e;break}G=n.return}return Y=bh,bh=!1,Y}function yo(e,n,o){var a=n.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var u=a=a.next;do{if((u.tag&e)===e){var c=u.destroy;u.destroy=void 0,c!==void 0&&tu(n,o,c)}u=u.next}while(u!==a)}}function Fs(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var a=o.create;o.destroy=a()}o=o.next}while(o!==n)}}function nu(e){var n=e.ref;if(n!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof n=="function"?n(e):n.current=e}}function Th(e){var n=e.alternate;n!==null&&(e.alternate=null,Th(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Yt],delete n[so],delete n[yl],delete n[Iy],delete n[My])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Rh(e){return e.tag===5||e.tag===3||e.tag===4}function Nh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ru(e,n,o){var a=e.tag;if(a===5||a===6)e=e.stateNode,n?o.nodeType===8?o.parentNode.insertBefore(e,n):o.insertBefore(e,n):(o.nodeType===8?(n=o.parentNode,n.insertBefore(e,o)):(n=o,n.appendChild(e)),o=o._reactRootContainer,o!=null||n.onclick!==null||(n.onclick=ms));else if(a!==4&&(e=e.child,e!==null))for(ru(e,n,o),e=e.sibling;e!==null;)ru(e,n,o),e=e.sibling}function iu(e,n,o){var a=e.tag;if(a===5||a===6)e=e.stateNode,n?o.insertBefore(e,n):o.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(iu(e,n,o),e=e.sibling;e!==null;)iu(e,n,o),e=e.sibling}var Je=null,Ht=!1;function Un(e,n,o){for(o=o.child;o!==null;)Ih(e,n,o),o=o.sibling}function Ih(e,n,o){if(Gt&&typeof Gt.onCommitFiberUnmount=="function")try{Gt.onCommitFiberUnmount(Zo,o)}catch{}switch(o.tag){case 5:st||oi(o,n);case 6:var a=Je,u=Ht;Je=null,Un(e,n,o),Je=a,Ht=u,Je!==null&&(Ht?(e=Je,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):Je.removeChild(o.stateNode));break;case 18:Je!==null&&(Ht?(e=Je,o=o.stateNode,e.nodeType===8?gl(e.parentNode,o):e.nodeType===1&&gl(e,o),Gi(e)):gl(Je,o.stateNode));break;case 4:a=Je,u=Ht,Je=o.stateNode.containerInfo,Ht=!0,Un(e,n,o),Je=a,Ht=u;break;case 0:case 11:case 14:case 15:if(!st&&(a=o.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){u=a=a.next;do{var c=u,p=c.destroy;c=c.tag,p!==void 0&&((c&2)!==0||(c&4)!==0)&&tu(o,n,p),u=u.next}while(u!==a)}Un(e,n,o);break;case 1:if(!st&&(oi(o,n),a=o.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=o.memoizedProps,a.state=o.memoizedState,a.componentWillUnmount()}catch(w){Ae(o,n,w)}Un(e,n,o);break;case 21:Un(e,n,o);break;case 22:o.mode&1?(st=(a=st)||o.memoizedState!==null,Un(e,n,o),st=a):Un(e,n,o);break;default:Un(e,n,o)}}function Mh(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new Gy),n.forEach(function(a){var u=ow.bind(null,e,a);o.has(a)||(o.add(a),a.then(u,u))})}}function Wt(e,n){var o=n.deletions;if(o!==null)for(var a=0;a<o.length;a++){var u=o[a];try{var c=e,p=n,w=p;e:for(;w!==null;){switch(w.tag){case 5:Je=w.stateNode,Ht=!1;break e;case 3:Je=w.stateNode.containerInfo,Ht=!0;break e;case 4:Je=w.stateNode.containerInfo,Ht=!0;break e}w=w.return}if(Je===null)throw Error(i(160));Ih(c,p,u),Je=null,Ht=!1;var S=u.alternate;S!==null&&(S.return=null),u.return=null}catch(O){Ae(u,n,O)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)Lh(n,e),n=n.sibling}function Lh(e,n){var o=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Wt(n,e),Jt(e),a&4){try{yo(3,e,e.return),Fs(3,e)}catch(J){Ae(e,e.return,J)}try{yo(5,e,e.return)}catch(J){Ae(e,e.return,J)}}break;case 1:Wt(n,e),Jt(e),a&512&&o!==null&&oi(o,o.return);break;case 5:if(Wt(n,e),Jt(e),a&512&&o!==null&&oi(o,o.return),e.flags&32){var u=e.stateNode;try{Fi(u,"")}catch(J){Ae(e,e.return,J)}}if(a&4&&(u=e.stateNode,u!=null)){var c=e.memoizedProps,p=o!==null?o.memoizedProps:c,w=e.type,S=e.updateQueue;if(e.updateQueue=null,S!==null)try{w==="input"&&c.type==="radio"&&c.name!=null&&Tt(u,c),Oa(w,p);var O=Oa(w,c);for(p=0;p<S.length;p+=2){var U=S[p],B=S[p+1];U==="style"?md(u,B):U==="dangerouslySetInnerHTML"?hd(u,B):U==="children"?Fi(u,B):P(u,U,B,O)}switch(w){case"input":Qt(u,c);break;case"textarea":cd(u,c);break;case"select":var z=u._wrapperState.wasMultiple;u._wrapperState.wasMultiple=!!c.multiple;var K=c.value;K!=null?Fr(u,!!c.multiple,K,!1):z!==!!c.multiple&&(c.defaultValue!=null?Fr(u,!!c.multiple,c.defaultValue,!0):Fr(u,!!c.multiple,c.multiple?[]:"",!1))}u[so]=c}catch(J){Ae(e,e.return,J)}}break;case 6:if(Wt(n,e),Jt(e),a&4){if(e.stateNode===null)throw Error(i(162));u=e.stateNode,c=e.memoizedProps;try{u.nodeValue=c}catch(J){Ae(e,e.return,J)}}break;case 3:if(Wt(n,e),Jt(e),a&4&&o!==null&&o.memoizedState.isDehydrated)try{Gi(n.containerInfo)}catch(J){Ae(e,e.return,J)}break;case 4:Wt(n,e),Jt(e);break;case 13:Wt(n,e),Jt(e),u=e.child,u.flags&8192&&(c=u.memoizedState!==null,u.stateNode.isHidden=c,!c||u.alternate!==null&&u.alternate.memoizedState!==null||(au=Fe())),a&4&&Mh(e);break;case 22:if(U=o!==null&&o.memoizedState!==null,e.mode&1?(st=(O=st)||U,Wt(n,e),st=O):Wt(n,e),Jt(e),a&8192){if(O=e.memoizedState!==null,(e.stateNode.isHidden=O)&&!U&&(e.mode&1)!==0)for(G=e,U=e.child;U!==null;){for(B=G=U;G!==null;){switch(z=G,K=z.child,z.tag){case 0:case 11:case 14:case 15:yo(4,z,z.return);break;case 1:oi(z,z.return);var Y=z.stateNode;if(typeof Y.componentWillUnmount=="function"){a=z,o=z.return;try{n=a,Y.props=n.memoizedProps,Y.state=n.memoizedState,Y.componentWillUnmount()}catch(J){Ae(a,o,J)}}break;case 5:oi(z,z.return);break;case 22:if(z.memoizedState!==null){Dh(B);continue}}K!==null?(K.return=z,G=K):Dh(B)}U=U.sibling}e:for(U=null,B=e;;){if(B.tag===5){if(U===null){U=B;try{u=B.stateNode,O?(c=u.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none"):(w=B.stateNode,S=B.memoizedProps.style,p=S!=null&&S.hasOwnProperty("display")?S.display:null,w.style.display=pd("display",p))}catch(J){Ae(e,e.return,J)}}}else if(B.tag===6){if(U===null)try{B.stateNode.nodeValue=O?"":B.memoizedProps}catch(J){Ae(e,e.return,J)}}else if((B.tag!==22&&B.tag!==23||B.memoizedState===null||B===e)&&B.child!==null){B.child.return=B,B=B.child;continue}if(B===e)break e;for(;B.sibling===null;){if(B.return===null||B.return===e)break e;U===B&&(U=null),B=B.return}U===B&&(U=null),B.sibling.return=B.return,B=B.sibling}}break;case 19:Wt(n,e),Jt(e),a&4&&Mh(e);break;case 21:break;default:Wt(n,e),Jt(e)}}function Jt(e){var n=e.flags;if(n&2){try{e:{for(var o=e.return;o!==null;){if(Rh(o)){var a=o;break e}o=o.return}throw Error(i(160))}switch(a.tag){case 5:var u=a.stateNode;a.flags&32&&(Fi(u,""),a.flags&=-33);var c=Nh(e);iu(e,c,u);break;case 3:case 4:var p=a.stateNode.containerInfo,w=Nh(e);ru(e,w,p);break;default:throw Error(i(161))}}catch(S){Ae(e,e.return,S)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Zy(e,n,o){G=e,Oh(e)}function Oh(e,n,o){for(var a=(e.mode&1)!==0;G!==null;){var u=G,c=u.child;if(u.tag===22&&a){var p=u.memoizedState!==null||Ds;if(!p){var w=u.alternate,S=w!==null&&w.memoizedState!==null||st;w=Ds;var O=st;if(Ds=p,(st=S)&&!O)for(G=u;G!==null;)p=G,S=p.child,p.tag===22&&p.memoizedState!==null?Fh(u):S!==null?(S.return=p,G=S):Fh(u);for(;c!==null;)G=c,Oh(c),c=c.sibling;G=u,Ds=w,st=O}Ah(e)}else(u.subtreeFlags&8772)!==0&&c!==null?(c.return=u,G=c):Ah(e)}}function Ah(e){for(;G!==null;){var n=G;if((n.flags&8772)!==0){var o=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:st||Fs(5,n);break;case 1:var a=n.stateNode;if(n.flags&4&&!st)if(o===null)a.componentDidMount();else{var u=n.elementType===n.type?o.memoizedProps:Bt(n.type,o.memoizedProps);a.componentDidUpdate(u,o.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var c=n.updateQueue;c!==null&&Df(n,c,a);break;case 3:var p=n.updateQueue;if(p!==null){if(o=null,n.child!==null)switch(n.child.tag){case 5:o=n.child.stateNode;break;case 1:o=n.child.stateNode}Df(n,p,o)}break;case 5:var w=n.stateNode;if(o===null&&n.flags&4){o=w;var S=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":S.autoFocus&&o.focus();break;case"img":S.src&&(o.src=S.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var O=n.alternate;if(O!==null){var U=O.memoizedState;if(U!==null){var B=U.dehydrated;B!==null&&Gi(B)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}st||n.flags&512&&nu(n)}catch(z){Ae(n,n.return,z)}}if(n===e){G=null;break}if(o=n.sibling,o!==null){o.return=n.return,G=o;break}G=n.return}}function Dh(e){for(;G!==null;){var n=G;if(n===e){G=null;break}var o=n.sibling;if(o!==null){o.return=n.return,G=o;break}G=n.return}}function Fh(e){for(;G!==null;){var n=G;try{switch(n.tag){case 0:case 11:case 15:var o=n.return;try{Fs(4,n)}catch(S){Ae(n,o,S)}break;case 1:var a=n.stateNode;if(typeof a.componentDidMount=="function"){var u=n.return;try{a.componentDidMount()}catch(S){Ae(n,u,S)}}var c=n.return;try{nu(n)}catch(S){Ae(n,c,S)}break;case 5:var p=n.return;try{nu(n)}catch(S){Ae(n,p,S)}}}catch(S){Ae(n,n.return,S)}if(n===e){G=null;break}var w=n.sibling;if(w!==null){w.return=n.return,G=w;break}G=n.return}}var Xy=Math.ceil,$s=b.ReactCurrentDispatcher,ou=b.ReactCurrentOwner,Lt=b.ReactCurrentBatchConfig,ye=0,Ge=null,Ue=null,et=0,jt=0,si=An(0),We=0,wo=null,hr=0,zs=0,su=0,xo=null,yt=null,au=0,ai=1/0,yn=null,Us=!1,lu=null,Bn=null,Bs=!1,Hn=null,Hs=0,ko=0,uu=null,Ws=-1,Vs=0;function ft(){return(ye&6)!==0?Fe():Ws!==-1?Ws:Ws=Fe()}function Wn(e){return(e.mode&1)===0?1:(ye&2)!==0&&et!==0?et&-et:Oy.transition!==null?(Vs===0&&(Vs=Rd()),Vs):(e=Ce,e!==0||(e=window.event,e=e===void 0?16:$d(e.type)),e)}function Vt(e,n,o,a){if(50<ko)throw ko=0,uu=null,Error(i(185));Wi(e,o,a),((ye&2)===0||e!==Ge)&&(e===Ge&&((ye&2)===0&&(zs|=o),We===4&&Vn(e,et)),wt(e,a),o===1&&ye===0&&(n.mode&1)===0&&(ai=Fe()+500,ws&&Fn()))}function wt(e,n){var o=e.callbackNode;Og(e,n);var a=es(e,e===Ge?et:0);if(a===0)o!==null&&jd(o),e.callbackNode=null,e.callbackPriority=0;else if(n=a&-a,e.callbackPriority!==n){if(o!=null&&jd(o),n===1)e.tag===0?Ly(zh.bind(null,e)):Ef(zh.bind(null,e)),Ry(function(){(ye&6)===0&&Fn()}),o=null;else{switch(Nd(a)){case 1:o=Ba;break;case 4:o=bd;break;case 16:o=Yo;break;case 536870912:o=Td;break;default:o=Yo}o=Qh(o,$h.bind(null,e))}e.callbackPriority=n,e.callbackNode=o}}function $h(e,n){if(Ws=-1,Vs=0,(ye&6)!==0)throw Error(i(327));var o=e.callbackNode;if(li()&&e.callbackNode!==o)return null;var a=es(e,e===Ge?et:0);if(a===0)return null;if((a&30)!==0||(a&e.expiredLanes)!==0||n)n=qs(e,a);else{n=a;var u=ye;ye|=2;var c=Bh();(Ge!==e||et!==n)&&(yn=null,ai=Fe()+500,mr(e,n));do try{tw();break}catch(w){Uh(e,w)}while(!0);jl(),$s.current=c,ye=u,Ue!==null?n=0:(Ge=null,et=0,n=We)}if(n!==0){if(n===2&&(u=Ha(e),u!==0&&(a=u,n=cu(e,u))),n===1)throw o=wo,mr(e,0),Vn(e,a),wt(e,Fe()),o;if(n===6)Vn(e,a);else{if(u=e.current.alternate,(a&30)===0&&!Jy(u)&&(n=qs(e,a),n===2&&(c=Ha(e),c!==0&&(a=c,n=cu(e,c))),n===1))throw o=wo,mr(e,0),Vn(e,a),wt(e,Fe()),o;switch(e.finishedWork=u,e.finishedLanes=a,n){case 0:case 1:throw Error(i(345));case 2:vr(e,yt,yn);break;case 3:if(Vn(e,a),(a&130023424)===a&&(n=au+500-Fe(),10<n)){if(es(e,0)!==0)break;if(u=e.suspendedLanes,(u&a)!==a){ft(),e.pingedLanes|=e.suspendedLanes&u;break}e.timeoutHandle=vl(vr.bind(null,e,yt,yn),n);break}vr(e,yt,yn);break;case 4:if(Vn(e,a),(a&4194240)===a)break;for(n=e.eventTimes,u=-1;0<a;){var p=31-$t(a);c=1<<p,p=n[p],p>u&&(u=p),a&=~c}if(a=u,a=Fe()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Xy(a/1960))-a,10<a){e.timeoutHandle=vl(vr.bind(null,e,yt,yn),a);break}vr(e,yt,yn);break;case 5:vr(e,yt,yn);break;default:throw Error(i(329))}}}return wt(e,Fe()),e.callbackNode===o?$h.bind(null,e):null}function cu(e,n){var o=xo;return e.current.memoizedState.isDehydrated&&(mr(e,n).flags|=256),e=qs(e,n),e!==2&&(n=yt,yt=o,n!==null&&du(n)),e}function du(e){yt===null?yt=e:yt.push.apply(yt,e)}function Jy(e){for(var n=e;;){if(n.flags&16384){var o=n.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var a=0;a<o.length;a++){var u=o[a],c=u.getSnapshot;u=u.value;try{if(!zt(c(),u))return!1}catch{return!1}}}if(o=n.child,n.subtreeFlags&16384&&o!==null)o.return=n,n=o;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Vn(e,n){for(n&=~su,n&=~zs,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var o=31-$t(n),a=1<<o;e[o]=-1,n&=~a}}function zh(e){if((ye&6)!==0)throw Error(i(327));li();var n=es(e,0);if((n&1)===0)return wt(e,Fe()),null;var o=qs(e,n);if(e.tag!==0&&o===2){var a=Ha(e);a!==0&&(n=a,o=cu(e,a))}if(o===1)throw o=wo,mr(e,0),Vn(e,n),wt(e,Fe()),o;if(o===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,vr(e,yt,yn),wt(e,Fe()),null}function fu(e,n){var o=ye;ye|=1;try{return e(n)}finally{ye=o,ye===0&&(ai=Fe()+500,ws&&Fn())}}function pr(e){Hn!==null&&Hn.tag===0&&(ye&6)===0&&li();var n=ye;ye|=1;var o=Lt.transition,a=Ce;try{if(Lt.transition=null,Ce=1,e)return e()}finally{Ce=a,Lt.transition=o,ye=n,(ye&6)===0&&Fn()}}function hu(){jt=si.current,Te(si)}function mr(e,n){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,Ty(o)),Ue!==null)for(o=Ue.return;o!==null;){var a=o;switch(Sl(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&gs();break;case 3:ri(),Te(mt),Te(rt),Ol();break;case 5:Ml(a);break;case 4:ri();break;case 13:Te(Me);break;case 19:Te(Me);break;case 10:bl(a.type._context);break;case 22:case 23:hu()}o=o.return}if(Ge=e,Ue=e=qn(e.current,null),et=jt=n,We=0,wo=null,su=zs=hr=0,yt=xo=null,cr!==null){for(n=0;n<cr.length;n++)if(o=cr[n],a=o.interleaved,a!==null){o.interleaved=null;var u=a.next,c=o.pending;if(c!==null){var p=c.next;c.next=u,a.next=p}o.pending=a}cr=null}return e}function Uh(e,n){do{var o=Ue;try{if(jl(),Ts.current=Ms,Rs){for(var a=Le.memoizedState;a!==null;){var u=a.queue;u!==null&&(u.pending=null),a=a.next}Rs=!1}if(fr=0,Qe=He=Le=null,ho=!1,po=0,ou.current=null,o===null||o.return===null){We=1,wo=n,Ue=null;break}e:{var c=e,p=o.return,w=o,S=n;if(n=et,w.flags|=32768,S!==null&&typeof S=="object"&&typeof S.then=="function"){var O=S,U=w,B=U.tag;if((U.mode&1)===0&&(B===0||B===11||B===15)){var z=U.alternate;z?(U.updateQueue=z.updateQueue,U.memoizedState=z.memoizedState,U.lanes=z.lanes):(U.updateQueue=null,U.memoizedState=null)}var K=fh(p);if(K!==null){K.flags&=-257,hh(K,p,w,c,n),K.mode&1&&dh(c,O,n),n=K,S=O;var Y=n.updateQueue;if(Y===null){var J=new Set;J.add(S),n.updateQueue=J}else Y.add(S);break e}else{if((n&1)===0){dh(c,O,n),pu();break e}S=Error(i(426))}}else if(Ie&&w.mode&1){var $e=fh(p);if($e!==null){($e.flags&65536)===0&&($e.flags|=256),hh($e,p,w,c,n),El(ii(S,w));break e}}c=S=ii(S,w),We!==4&&(We=2),xo===null?xo=[c]:xo.push(c),c=p;do{switch(c.tag){case 3:c.flags|=65536,n&=-n,c.lanes|=n;var T=uh(c,S,n);Af(c,T);break e;case 1:w=S;var _=c.type,N=c.stateNode;if((c.flags&128)===0&&(typeof _.getDerivedStateFromError=="function"||N!==null&&typeof N.componentDidCatch=="function"&&(Bn===null||!Bn.has(N)))){c.flags|=65536,n&=-n,c.lanes|=n;var H=ch(c,w,n);Af(c,H);break e}}c=c.return}while(c!==null)}Wh(o)}catch(ee){n=ee,Ue===o&&o!==null&&(Ue=o=o.return);continue}break}while(!0)}function Bh(){var e=$s.current;return $s.current=Ms,e===null?Ms:e}function pu(){(We===0||We===3||We===2)&&(We=4),Ge===null||(hr&268435455)===0&&(zs&268435455)===0||Vn(Ge,et)}function qs(e,n){var o=ye;ye|=2;var a=Bh();(Ge!==e||et!==n)&&(yn=null,mr(e,n));do try{ew();break}catch(u){Uh(e,u)}while(!0);if(jl(),ye=o,$s.current=a,Ue!==null)throw Error(i(261));return Ge=null,et=0,We}function ew(){for(;Ue!==null;)Hh(Ue)}function tw(){for(;Ue!==null&&!Pg();)Hh(Ue)}function Hh(e){var n=Kh(e.alternate,e,jt);e.memoizedProps=e.pendingProps,n===null?Wh(e):Ue=n,ou.current=null}function Wh(e){var n=e;do{var o=n.alternate;if(e=n.return,(n.flags&32768)===0){if(o=Ky(o,n,jt),o!==null){Ue=o;return}}else{if(o=Qy(o,n),o!==null){o.flags&=32767,Ue=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{We=6,Ue=null;return}}if(n=n.sibling,n!==null){Ue=n;return}Ue=n=e}while(n!==null);We===0&&(We=5)}function vr(e,n,o){var a=Ce,u=Lt.transition;try{Lt.transition=null,Ce=1,nw(e,n,o,a)}finally{Lt.transition=u,Ce=a}return null}function nw(e,n,o,a){do li();while(Hn!==null);if((ye&6)!==0)throw Error(i(327));o=e.finishedWork;var u=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var c=o.lanes|o.childLanes;if(Ag(e,c),e===Ge&&(Ue=Ge=null,et=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||Bs||(Bs=!0,Qh(Yo,function(){return li(),null})),c=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||c){c=Lt.transition,Lt.transition=null;var p=Ce;Ce=1;var w=ye;ye|=4,ou.current=null,Yy(e,o),Lh(o,e),Sy(pl),rs=!!hl,pl=hl=null,e.current=o,Zy(o),jg(),ye=w,Ce=p,Lt.transition=c}else e.current=o;if(Bs&&(Bs=!1,Hn=e,Hs=u),c=e.pendingLanes,c===0&&(Bn=null),Rg(o.stateNode),wt(e,Fe()),n!==null)for(a=e.onRecoverableError,o=0;o<n.length;o++)u=n[o],a(u.value,{componentStack:u.stack,digest:u.digest});if(Us)throw Us=!1,e=lu,lu=null,e;return(Hs&1)!==0&&e.tag!==0&&li(),c=e.pendingLanes,(c&1)!==0?e===uu?ko++:(ko=0,uu=e):ko=0,Fn(),null}function li(){if(Hn!==null){var e=Nd(Hs),n=Lt.transition,o=Ce;try{if(Lt.transition=null,Ce=16>e?16:e,Hn===null)var a=!1;else{if(e=Hn,Hn=null,Hs=0,(ye&6)!==0)throw Error(i(331));var u=ye;for(ye|=4,G=e.current;G!==null;){var c=G,p=c.child;if((G.flags&16)!==0){var w=c.deletions;if(w!==null){for(var S=0;S<w.length;S++){var O=w[S];for(G=O;G!==null;){var U=G;switch(U.tag){case 0:case 11:case 15:yo(8,U,c)}var B=U.child;if(B!==null)B.return=U,G=B;else for(;G!==null;){U=G;var z=U.sibling,K=U.return;if(Th(U),U===O){G=null;break}if(z!==null){z.return=K,G=z;break}G=K}}}var Y=c.alternate;if(Y!==null){var J=Y.child;if(J!==null){Y.child=null;do{var $e=J.sibling;J.sibling=null,J=$e}while(J!==null)}}G=c}}if((c.subtreeFlags&2064)!==0&&p!==null)p.return=c,G=p;else e:for(;G!==null;){if(c=G,(c.flags&2048)!==0)switch(c.tag){case 0:case 11:case 15:yo(9,c,c.return)}var T=c.sibling;if(T!==null){T.return=c.return,G=T;break e}G=c.return}}var _=e.current;for(G=_;G!==null;){p=G;var N=p.child;if((p.subtreeFlags&2064)!==0&&N!==null)N.return=p,G=N;else e:for(p=_;G!==null;){if(w=G,(w.flags&2048)!==0)try{switch(w.tag){case 0:case 11:case 15:Fs(9,w)}}catch(ee){Ae(w,w.return,ee)}if(w===p){G=null;break e}var H=w.sibling;if(H!==null){H.return=w.return,G=H;break e}G=w.return}}if(ye=u,Fn(),Gt&&typeof Gt.onPostCommitFiberRoot=="function")try{Gt.onPostCommitFiberRoot(Zo,e)}catch{}a=!0}return a}finally{Ce=o,Lt.transition=n}}return!1}function Vh(e,n,o){n=ii(o,n),n=uh(e,n,1),e=zn(e,n,1),n=ft(),e!==null&&(Wi(e,1,n),wt(e,n))}function Ae(e,n,o){if(e.tag===3)Vh(e,e,o);else for(;n!==null;){if(n.tag===3){Vh(n,e,o);break}else if(n.tag===1){var a=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Bn===null||!Bn.has(a))){e=ii(o,e),e=ch(n,e,1),n=zn(n,e,1),e=ft(),n!==null&&(Wi(n,1,e),wt(n,e));break}}n=n.return}}function rw(e,n,o){var a=e.pingCache;a!==null&&a.delete(n),n=ft(),e.pingedLanes|=e.suspendedLanes&o,Ge===e&&(et&o)===o&&(We===4||We===3&&(et&130023424)===et&&500>Fe()-au?mr(e,0):su|=o),wt(e,n)}function qh(e,n){n===0&&((e.mode&1)===0?n=1:(n=Jo,Jo<<=1,(Jo&130023424)===0&&(Jo=4194304)));var o=ft();e=mn(e,n),e!==null&&(Wi(e,n,o),wt(e,o))}function iw(e){var n=e.memoizedState,o=0;n!==null&&(o=n.retryLane),qh(e,o)}function ow(e,n){var o=0;switch(e.tag){case 13:var a=e.stateNode,u=e.memoizedState;u!==null&&(o=u.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(i(314))}a!==null&&a.delete(n),qh(e,o)}var Kh;Kh=function(e,n,o){if(e!==null)if(e.memoizedProps!==n.pendingProps||mt.current)gt=!0;else{if((e.lanes&o)===0&&(n.flags&128)===0)return gt=!1,qy(e,n,o);gt=(e.flags&131072)!==0}else gt=!1,Ie&&(n.flags&1048576)!==0&&Pf(n,ks,n.index);switch(n.lanes=0,n.tag){case 2:var a=n.type;As(e,n),e=n.pendingProps;var u=Yr(n,rt.current);ni(n,o),u=Fl(null,n,a,e,u,o);var c=$l();return n.flags|=1,typeof u=="object"&&u!==null&&typeof u.render=="function"&&u.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,vt(a)?(c=!0,ys(n)):c=!1,n.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,Nl(n),u.updater=Ls,n.stateNode=u,u._reactInternals=n,Vl(n,a,e,o),n=Gl(null,n,a,!0,c,o)):(n.tag=0,Ie&&c&&kl(n),dt(null,n,u,o),n=n.child),n;case 16:a=n.elementType;e:{switch(As(e,n),e=n.pendingProps,u=a._init,a=u(a._payload),n.type=a,u=n.tag=aw(a),e=Bt(a,e),u){case 0:n=Ql(null,n,a,e,o);break e;case 1:n=wh(null,n,a,e,o);break e;case 11:n=ph(null,n,a,e,o);break e;case 14:n=mh(null,n,a,Bt(a.type,e),o);break e}throw Error(i(306,a,""))}return n;case 0:return a=n.type,u=n.pendingProps,u=n.elementType===a?u:Bt(a,u),Ql(e,n,a,u,o);case 1:return a=n.type,u=n.pendingProps,u=n.elementType===a?u:Bt(a,u),wh(e,n,a,u,o);case 3:e:{if(xh(n),e===null)throw Error(i(387));a=n.pendingProps,c=n.memoizedState,u=c.element,Of(e,n),js(n,a,null,o);var p=n.memoizedState;if(a=p.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:p.cache,pendingSuspenseBoundaries:p.pendingSuspenseBoundaries,transitions:p.transitions},n.updateQueue.baseState=c,n.memoizedState=c,n.flags&256){u=ii(Error(i(423)),n),n=kh(e,n,a,o,u);break e}else if(a!==u){u=ii(Error(i(424)),n),n=kh(e,n,a,o,u);break e}else for(Pt=On(n.stateNode.containerInfo.firstChild),Et=n,Ie=!0,Ut=null,o=Mf(n,null,a,o),n.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Jr(),a===u){n=gn(e,n,o);break e}dt(e,n,a,o)}n=n.child}return n;case 5:return Ff(n),e===null&&_l(n),a=n.type,u=n.pendingProps,c=e!==null?e.memoizedProps:null,p=u.children,ml(a,u)?p=null:c!==null&&ml(a,c)&&(n.flags|=32),yh(e,n),dt(e,n,p,o),n.child;case 6:return e===null&&_l(n),null;case 13:return Sh(e,n,o);case 4:return Il(n,n.stateNode.containerInfo),a=n.pendingProps,e===null?n.child=ei(n,null,a,o):dt(e,n,a,o),n.child;case 11:return a=n.type,u=n.pendingProps,u=n.elementType===a?u:Bt(a,u),ph(e,n,a,u,o);case 7:return dt(e,n,n.pendingProps,o),n.child;case 8:return dt(e,n,n.pendingProps.children,o),n.child;case 12:return dt(e,n,n.pendingProps.children,o),n.child;case 10:e:{if(a=n.type._context,u=n.pendingProps,c=n.memoizedProps,p=u.value,je(_s,a._currentValue),a._currentValue=p,c!==null)if(zt(c.value,p)){if(c.children===u.children&&!mt.current){n=gn(e,n,o);break e}}else for(c=n.child,c!==null&&(c.return=n);c!==null;){var w=c.dependencies;if(w!==null){p=c.child;for(var S=w.firstContext;S!==null;){if(S.context===a){if(c.tag===1){S=vn(-1,o&-o),S.tag=2;var O=c.updateQueue;if(O!==null){O=O.shared;var U=O.pending;U===null?S.next=S:(S.next=U.next,U.next=S),O.pending=S}}c.lanes|=o,S=c.alternate,S!==null&&(S.lanes|=o),Tl(c.return,o,n),w.lanes|=o;break}S=S.next}}else if(c.tag===10)p=c.type===n.type?null:c.child;else if(c.tag===18){if(p=c.return,p===null)throw Error(i(341));p.lanes|=o,w=p.alternate,w!==null&&(w.lanes|=o),Tl(p,o,n),p=c.sibling}else p=c.child;if(p!==null)p.return=c;else for(p=c;p!==null;){if(p===n){p=null;break}if(c=p.sibling,c!==null){c.return=p.return,p=c;break}p=p.return}c=p}dt(e,n,u.children,o),n=n.child}return n;case 9:return u=n.type,a=n.pendingProps.children,ni(n,o),u=It(u),a=a(u),n.flags|=1,dt(e,n,a,o),n.child;case 14:return a=n.type,u=Bt(a,n.pendingProps),u=Bt(a.type,u),mh(e,n,a,u,o);case 15:return vh(e,n,n.type,n.pendingProps,o);case 17:return a=n.type,u=n.pendingProps,u=n.elementType===a?u:Bt(a,u),As(e,n),n.tag=1,vt(a)?(e=!0,ys(n)):e=!1,ni(n,o),ah(n,a,u),Vl(n,a,u,o),Gl(null,n,a,!0,e,o);case 19:return _h(e,n,o);case 22:return gh(e,n,o)}throw Error(i(156,n.tag))};function Qh(e,n){return Pd(e,n)}function sw(e,n,o,a){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ot(e,n,o,a){return new sw(e,n,o,a)}function mu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function aw(e){if(typeof e=="function")return mu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Re)return 11;if(e===Ke)return 14}return 2}function qn(e,n){var o=e.alternate;return o===null?(o=Ot(e.tag,n,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=n,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,n=e.dependencies,o.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Ks(e,n,o,a,u,c){var p=2;if(a=e,typeof e=="function")mu(e)&&(p=1);else if(typeof e=="string")p=5;else e:switch(e){case te:return gr(o.children,u,c,n);case Z:p=8,u|=8;break;case se:return e=Ot(12,o,n,u|2),e.elementType=se,e.lanes=c,e;case Be:return e=Ot(13,o,n,u),e.elementType=Be,e.lanes=c,e;case qe:return e=Ot(19,o,n,u),e.elementType=qe,e.lanes=c,e;case Ne:return Qs(o,u,c,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case de:p=10;break e;case X:p=9;break e;case Re:p=11;break e;case Ke:p=14;break e;case nt:p=16,a=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return n=Ot(p,o,n,u),n.elementType=e,n.type=a,n.lanes=c,n}function gr(e,n,o,a){return e=Ot(7,e,a,n),e.lanes=o,e}function Qs(e,n,o,a){return e=Ot(22,e,a,n),e.elementType=Ne,e.lanes=o,e.stateNode={isHidden:!1},e}function vu(e,n,o){return e=Ot(6,e,null,n),e.lanes=o,e}function gu(e,n,o){return n=Ot(4,e.children!==null?e.children:[],e.key,n),n.lanes=o,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function lw(e,n,o,a,u){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wa(0),this.expirationTimes=Wa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wa(0),this.identifierPrefix=a,this.onRecoverableError=u,this.mutableSourceEagerHydrationData=null}function yu(e,n,o,a,u,c,p,w,S){return e=new lw(e,n,o,w,S),n===1?(n=1,c===!0&&(n|=8)):n=0,c=Ot(3,null,null,n),e.current=c,c.stateNode=e,c.memoizedState={element:a,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nl(c),e}function uw(e,n,o){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:W,key:a==null?null:""+a,children:e,containerInfo:n,implementation:o}}function Gh(e){if(!e)return Dn;e=e._reactInternals;e:{if(or(e)!==e||e.tag!==1)throw Error(i(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(vt(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(i(171))}if(e.tag===1){var o=e.type;if(vt(o))return Cf(e,o,n)}return n}function Yh(e,n,o,a,u,c,p,w,S){return e=yu(o,a,!0,e,u,c,p,w,S),e.context=Gh(null),o=e.current,a=ft(),u=Wn(o),c=vn(a,u),c.callback=n??null,zn(o,c,u),e.current.lanes=u,Wi(e,u,a),wt(e,a),e}function Gs(e,n,o,a){var u=n.current,c=ft(),p=Wn(u);return o=Gh(o),n.context===null?n.context=o:n.pendingContext=o,n=vn(c,p),n.payload={element:e},a=a===void 0?null:a,a!==null&&(n.callback=a),e=zn(u,n,p),e!==null&&(Vt(e,u,p,c),Ps(e,u,p)),p}function Ys(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Zh(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<n?o:n}}function wu(e,n){Zh(e,n),(e=e.alternate)&&Zh(e,n)}function cw(){return null}var Xh=typeof reportError=="function"?reportError:function(e){console.error(e)};function xu(e){this._internalRoot=e}Zs.prototype.render=xu.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(i(409));Gs(e,n,null,null)},Zs.prototype.unmount=xu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;pr(function(){Gs(null,e,null,null)}),n[dn]=null}};function Zs(e){this._internalRoot=e}Zs.prototype.unstable_scheduleHydration=function(e){if(e){var n=Ld();e={blockedOn:null,target:e,priority:n};for(var o=0;o<In.length&&n!==0&&n<In[o].priority;o++);In.splice(o,0,e),o===0&&Dd(e)}};function ku(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Xs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Jh(){}function dw(e,n,o,a,u){if(u){if(typeof a=="function"){var c=a;a=function(){var O=Ys(p);c.call(O)}}var p=Yh(n,a,e,0,null,!1,!1,"",Jh);return e._reactRootContainer=p,e[dn]=p.current,io(e.nodeType===8?e.parentNode:e),pr(),p}for(;u=e.lastChild;)e.removeChild(u);if(typeof a=="function"){var w=a;a=function(){var O=Ys(S);w.call(O)}}var S=yu(e,0,!1,null,null,!1,!1,"",Jh);return e._reactRootContainer=S,e[dn]=S.current,io(e.nodeType===8?e.parentNode:e),pr(function(){Gs(n,S,o,a)}),S}function Js(e,n,o,a,u){var c=o._reactRootContainer;if(c){var p=c;if(typeof u=="function"){var w=u;u=function(){var S=Ys(p);w.call(S)}}Gs(n,p,e,u)}else p=dw(o,n,e,u,a);return Ys(p)}Id=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var o=Hi(n.pendingLanes);o!==0&&(Va(n,o|1),wt(n,Fe()),(ye&6)===0&&(ai=Fe()+500,Fn()))}break;case 13:pr(function(){var a=mn(e,1);if(a!==null){var u=ft();Vt(a,e,1,u)}}),wu(e,1)}},qa=function(e){if(e.tag===13){var n=mn(e,134217728);if(n!==null){var o=ft();Vt(n,e,134217728,o)}wu(e,134217728)}},Md=function(e){if(e.tag===13){var n=Wn(e),o=mn(e,n);if(o!==null){var a=ft();Vt(o,e,n,a)}wu(e,n)}},Ld=function(){return Ce},Od=function(e,n){var o=Ce;try{return Ce=e,n()}finally{Ce=o}},Fa=function(e,n,o){switch(n){case"input":if(Qt(e,o),n=o.name,o.type==="radio"&&n!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<o.length;n++){var a=o[n];if(a!==e&&a.form===e.form){var u=vs(a);if(!u)throw Error(i(90));Ai(a),Qt(a,u)}}}break;case"textarea":cd(e,o);break;case"select":n=o.value,n!=null&&Fr(e,!!o.multiple,n,!1)}},wd=fu,xd=pr;var fw={usingClientEntryPoint:!1,Events:[ao,Qr,vs,gd,yd,fu]},So={findFiberByHostInstance:sr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},hw={bundleType:So.bundleType,version:So.version,rendererPackageName:So.rendererPackageName,rendererConfig:So.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:b.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=_d(e),e===null?null:e.stateNode},findFiberByHostInstance:So.findFiberByHostInstance||cw,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ea=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ea.isDisabled&&ea.supportsFiber)try{Zo=ea.inject(hw),Gt=ea}catch{}}return xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fw,xt.createPortal=function(e,n){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ku(n))throw Error(i(200));return uw(e,n,null,o)},xt.createRoot=function(e,n){if(!ku(e))throw Error(i(299));var o=!1,a="",u=Xh;return n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError)),n=yu(e,1,!1,null,null,o,!1,a,u),e[dn]=n.current,io(e.nodeType===8?e.parentNode:e),new xu(n)},xt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=_d(n),e=e===null?null:e.stateNode,e},xt.flushSync=function(e){return pr(e)},xt.hydrate=function(e,n,o){if(!Xs(n))throw Error(i(200));return Js(null,e,n,!0,o)},xt.hydrateRoot=function(e,n,o){if(!ku(e))throw Error(i(405));var a=o!=null&&o.hydratedSources||null,u=!1,c="",p=Xh;if(o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(c=o.identifierPrefix),o.onRecoverableError!==void 0&&(p=o.onRecoverableError)),n=Yh(n,null,e,1,o??null,u,!1,c,p),e[dn]=n.current,io(e),a)for(e=0;e<a.length;e++)o=a[e],u=o._getVersion,u=u(o._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[o,u]:n.mutableSourceEagerHydrationData.push(o,u);return new Zs(n)},xt.render=function(e,n,o){if(!Xs(n))throw Error(i(200));return Js(null,e,n,!1,o)},xt.unmountComponentAtNode=function(e){if(!Xs(e))throw Error(i(40));return e._reactRootContainer?(pr(function(){Js(null,null,e,!1,function(){e._reactRootContainer=null,e[dn]=null})}),!0):!1},xt.unstable_batchedUpdates=fu,xt.unstable_renderSubtreeIntoContainer=function(e,n,o,a){if(!Xs(o))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return Js(e,n,o,!1,a)},xt.version="18.3.1-next-f1338f8080-20240426",xt}var up;function pm(){if(up)return Pu.exports;up=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),Pu.exports=Pw(),Pu.exports}var cp;function jw(){if(cp)return na;cp=1;var t=pm();return na.createRoot=t.createRoot,na.hydrateRoot=t.hydrateRoot,na}var bw=jw(),Li=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},xr,Gn,xi,rm,Tw=(rm=class extends Li{constructor(){super();ne(this,xr);ne(this,Gn);ne(this,xi);q(this,xi,r=>{if(typeof window<"u"&&window.addEventListener){const i=()=>r();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){k(this,Gn)||this.setEventListener(k(this,xi))}onUnsubscribe(){var r;this.hasListeners()||((r=k(this,Gn))==null||r.call(this),q(this,Gn,void 0))}setEventListener(r){var i;q(this,xi,r),(i=k(this,Gn))==null||i.call(this),q(this,Gn,r(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()}))}setFocused(r){k(this,xr)!==r&&(q(this,xr,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(i=>{i(r)})}isFocused(){var r;return typeof k(this,xr)=="boolean"?k(this,xr):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},xr=new WeakMap,Gn=new WeakMap,xi=new WeakMap,rm),kc=new Tw,Rw={setTimeout:(t,r)=>setTimeout(t,r),clearTimeout:t=>clearTimeout(t),setInterval:(t,r)=>setInterval(t,r),clearInterval:t=>clearInterval(t)},Yn,wc,im,Nw=(im=class{constructor(){ne(this,Yn,Rw);ne(this,wc,!1)}setTimeoutProvider(t){q(this,Yn,t)}setTimeout(t,r){return k(this,Yn).setTimeout(t,r)}clearTimeout(t){k(this,Yn).clearTimeout(t)}setInterval(t,r){return k(this,Yn).setInterval(t,r)}clearInterval(t){k(this,Yn).clearInterval(t)}},Yn=new WeakMap,wc=new WeakMap,im),wr=new Nw;function Iw(t){setTimeout(t,0)}var Mw=typeof window>"u"||"Deno"in globalThis;function pt(){}function Lw(t,r){return typeof t=="function"?t(r):t}function Uu(t){return typeof t=="number"&&t>=0&&t!==1/0}function mm(t,r){return Math.max(t+(r||0)-Date.now(),0)}function ir(t,r){return typeof t=="function"?t(r):t}function Dt(t,r){return typeof t=="function"?t(r):t}function dp(t,r){const{type:i="all",exact:s,fetchStatus:l,predicate:f,queryKey:v,stale:m}=t;if(v){if(s){if(r.queryHash!==Sc(v,r.options))return!1}else if(!jo(r.queryKey,v))return!1}if(i!=="all"){const g=r.isActive();if(i==="active"&&!g||i==="inactive"&&g)return!1}return!(typeof m=="boolean"&&r.isStale()!==m||l&&l!==r.state.fetchStatus||f&&!f(r))}function fp(t,r){const{exact:i,status:s,predicate:l,mutationKey:f}=t;if(f){if(!r.options.mutationKey)return!1;if(i){if(Ir(r.options.mutationKey)!==Ir(f))return!1}else if(!jo(r.options.mutationKey,f))return!1}return!(s&&r.state.status!==s||l&&!l(r))}function Sc(t,r){return((r==null?void 0:r.queryKeyHashFn)||Ir)(t)}function Ir(t){return JSON.stringify(t,(r,i)=>Bu(i)?Object.keys(i).sort().reduce((s,l)=>(s[l]=i[l],s),{}):i)}function jo(t,r){return t===r?!0:typeof t!=typeof r?!1:t&&r&&typeof t=="object"&&typeof r=="object"?Object.keys(r).every(i=>jo(t[i],r[i])):!1}var Ow=Object.prototype.hasOwnProperty;function vm(t,r,i=0){if(t===r)return t;if(i>500)return r;const s=hp(t)&&hp(r);if(!s&&!(Bu(t)&&Bu(r)))return r;const f=(s?t:Object.keys(t)).length,v=s?r:Object.keys(r),m=v.length,g=s?new Array(m):{};let h=0;for(let y=0;y<m;y++){const x=s?y:v[y],C=t[x],R=r[x];if(C===R){g[x]=C,(s?y<f:Ow.call(t,x))&&h++;continue}if(C===null||R===null||typeof C!="object"||typeof R!="object"){g[x]=R;continue}const A=vm(C,R,i+1);g[x]=A,A===C&&h++}return f===m&&h===f?t:g}function ga(t,r){if(!r||Object.keys(t).length!==Object.keys(r).length)return!1;for(const i in t)if(t[i]!==r[i])return!1;return!0}function hp(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Bu(t){if(!pp(t))return!1;const r=t.constructor;if(r===void 0)return!0;const i=r.prototype;return!(!pp(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function pp(t){return Object.prototype.toString.call(t)==="[object Object]"}function Aw(t){return new Promise(r=>{wr.setTimeout(r,t)})}function Hu(t,r,i){return typeof i.structuralSharing=="function"?i.structuralSharing(t,r):i.structuralSharing!==!1?vm(t,r):r}function Dw(t,r,i=0){const s=[...t,r];return i&&s.length>i?s.slice(1):s}function Fw(t,r,i=0){const s=[r,...t];return i&&s.length>i?s.slice(0,-1):s}var Cc=Symbol();function gm(t,r){return!t.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!t.queryFn||t.queryFn===Cc?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function _c(t,r){return typeof t=="function"?t(...r):!!t}function $w(t,r,i){let s=!1,l;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(l??(l=r()),s||(s=!0,l.aborted?i():l.addEventListener("abort",i,{once:!0})),l)}),t}var bo=(()=>{let t=()=>Mw;return{isServer(){return t()},setIsServer(r){t=r}}})();function Wu(){let t,r;const i=new Promise((l,f)=>{t=l,r=f});i.status="pending",i.catch(()=>{});function s(l){Object.assign(i,l),delete i.resolve,delete i.reject}return i.resolve=l=>{s({status:"fulfilled",value:l}),t(l)},i.reject=l=>{s({status:"rejected",reason:l}),r(l)},i}var zw=Iw;function Uw(){let t=[],r=0,i=m=>{m()},s=m=>{m()},l=zw;const f=m=>{r?t.push(m):l(()=>{i(m)})},v=()=>{const m=t;t=[],m.length&&l(()=>{s(()=>{m.forEach(g=>{i(g)})})})};return{batch:m=>{let g;r++;try{g=m()}finally{r--,r||v()}return g},batchCalls:m=>(...g)=>{f(()=>{m(...g)})},schedule:f,setNotifyFunction:m=>{i=m},setBatchNotifyFunction:m=>{s=m},setScheduler:m=>{l=m}}}var Ve=Uw(),ki,Zn,Si,om,Bw=(om=class extends Li{constructor(){super();ne(this,ki,!0);ne(this,Zn);ne(this,Si);q(this,Si,r=>{if(typeof window<"u"&&window.addEventListener){const i=()=>r(!0),s=()=>r(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}})}onSubscribe(){k(this,Zn)||this.setEventListener(k(this,Si))}onUnsubscribe(){var r;this.hasListeners()||((r=k(this,Zn))==null||r.call(this),q(this,Zn,void 0))}setEventListener(r){var i;q(this,Si,r),(i=k(this,Zn))==null||i.call(this),q(this,Zn,r(this.setOnline.bind(this)))}setOnline(r){k(this,ki)!==r&&(q(this,ki,r),this.listeners.forEach(s=>{s(r)}))}isOnline(){return k(this,ki)}},ki=new WeakMap,Zn=new WeakMap,Si=new WeakMap,om),ya=new Bw;function Hw(t){return Math.min(1e3*2**t,3e4)}function ym(t){return(t??"online")==="online"?ya.isOnline():!0}var Vu=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function wm(t){let r=!1,i=0,s;const l=Wu(),f=()=>l.status!=="pending",v=E=>{var M;if(!f()){const L=new Vu(E);C(L),(M=t.onCancel)==null||M.call(t,L)}},m=()=>{r=!0},g=()=>{r=!1},h=()=>kc.isFocused()&&(t.networkMode==="always"||ya.isOnline())&&t.canRun(),y=()=>ym(t.networkMode)&&t.canRun(),x=E=>{f()||(s==null||s(),l.resolve(E))},C=E=>{f()||(s==null||s(),l.reject(E))},R=()=>new Promise(E=>{var M;s=L=>{(f()||h())&&E(L)},(M=t.onPause)==null||M.call(t)}).then(()=>{var E;s=void 0,f()||(E=t.onContinue)==null||E.call(t)}),A=()=>{if(f())return;let E;const M=i===0?t.initialPromise:void 0;try{E=M??t.fn()}catch(L){E=Promise.reject(L)}Promise.resolve(E).then(x).catch(L=>{var W;if(f())return;const F=t.retry??(bo.isServer()?0:3),P=t.retryDelay??Hw,b=typeof P=="function"?P(i,L):P,D=F===!0||typeof F=="number"&&i<F||typeof F=="function"&&F(i,L);if(r||!D){C(L);return}i++,(W=t.onFail)==null||W.call(t,i,L),Aw(b).then(()=>h()?void 0:R()).then(()=>{r?C(L):A()})})};return{promise:l,status:()=>l.status,cancel:v,continue:()=>(s==null||s(),l),cancelRetry:m,continueRetry:g,canStart:y,start:()=>(y()?A():R().then(A),l)}}var kr,sm,xm=(sm=class{constructor(){ne(this,kr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Uu(this.gcTime)&&q(this,kr,wr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(bo.isServer()?1/0:300*1e3))}clearGcTimeout(){k(this,kr)!==void 0&&(wr.clearTimeout(k(this,kr)),q(this,kr,void 0))}},kr=new WeakMap,sm),Sr,Ci,At,Cr,Ze,Fo,_r,bt,km,wn,am,Ww=(am=class extends xm{constructor(r){super();ne(this,bt);ne(this,Sr);ne(this,Ci);ne(this,At);ne(this,Cr);ne(this,Ze);ne(this,Fo);ne(this,_r);q(this,_r,!1),q(this,Fo,r.defaultOptions),this.setOptions(r.options),this.observers=[],q(this,Cr,r.client),q(this,At,k(this,Cr).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,q(this,Sr,vp(this.options)),this.state=r.state??k(this,Sr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var r;return(r=k(this,Ze))==null?void 0:r.promise}setOptions(r){if(this.options={...k(this,Fo),...r},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=vp(this.options);i.data!==void 0&&(this.setState(mp(i.data,i.dataUpdatedAt)),q(this,Sr,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,At).remove(this)}setData(r,i){const s=Hu(this.state.data,r,this.options);return ce(this,bt,wn).call(this,{data:s,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),s}setState(r,i){ce(this,bt,wn).call(this,{type:"setState",state:r,setStateOptions:i})}cancel(r){var s,l;const i=(s=k(this,Ze))==null?void 0:s.promise;return(l=k(this,Ze))==null||l.cancel(r),i?i.then(pt).catch(pt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return k(this,Sr)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(r=>Dt(r.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Cc||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(r=>ir(r.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(r=>r.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(r=0){return this.state.data===void 0?!0:r==="static"?!1:this.state.isInvalidated?!0:!mm(this.state.dataUpdatedAt,r)}onFocus(){var i;const r=this.observers.find(s=>s.shouldFetchOnWindowFocus());r==null||r.refetch({cancelRefetch:!1}),(i=k(this,Ze))==null||i.continue()}onOnline(){var i;const r=this.observers.find(s=>s.shouldFetchOnReconnect());r==null||r.refetch({cancelRefetch:!1}),(i=k(this,Ze))==null||i.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),k(this,At).notify({type:"observerAdded",query:this,observer:r}))}removeObserver(r){this.observers.includes(r)&&(this.observers=this.observers.filter(i=>i!==r),this.observers.length||(k(this,Ze)&&(k(this,_r)||ce(this,bt,km).call(this)?k(this,Ze).cancel({revert:!0}):k(this,Ze).cancelRetry()),this.scheduleGc()),k(this,At).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ce(this,bt,wn).call(this,{type:"invalidate"})}async fetch(r,i){var g,h,y,x,C,R,A,E,M,L,F,P;if(this.state.fetchStatus!=="idle"&&((g=k(this,Ze))==null?void 0:g.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(k(this,Ze))return k(this,Ze).continueRetry(),k(this,Ze).promise}if(r&&this.setOptions(r),!this.options.queryFn){const b=this.observers.find(D=>D.options.queryFn);b&&this.setOptions(b.options)}const s=new AbortController,l=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(q(this,_r,!0),s.signal)})},f=()=>{const b=gm(this.options,i),W=(()=>{const te={client:k(this,Cr),queryKey:this.queryKey,meta:this.meta};return l(te),te})();return q(this,_r,!1),this.options.persister?this.options.persister(b,W,this):b(W)},m=(()=>{const b={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:k(this,Cr),state:this.state,fetchFn:f};return l(b),b})();(h=this.options.behavior)==null||h.onFetch(m,this),q(this,Ci,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((y=m.fetchOptions)==null?void 0:y.meta))&&ce(this,bt,wn).call(this,{type:"fetch",meta:(x=m.fetchOptions)==null?void 0:x.meta}),q(this,Ze,wm({initialPromise:i==null?void 0:i.initialPromise,fn:m.fetchFn,onCancel:b=>{b instanceof Vu&&b.revert&&this.setState({...k(this,Ci),fetchStatus:"idle"}),s.abort()},onFail:(b,D)=>{ce(this,bt,wn).call(this,{type:"failed",failureCount:b,error:D})},onPause:()=>{ce(this,bt,wn).call(this,{type:"pause"})},onContinue:()=>{ce(this,bt,wn).call(this,{type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0}));try{const b=await k(this,Ze).start();if(b===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(b),(R=(C=k(this,At).config).onSuccess)==null||R.call(C,b,this),(E=(A=k(this,At).config).onSettled)==null||E.call(A,b,this.state.error,this),b}catch(b){if(b instanceof Vu){if(b.silent)return k(this,Ze).promise;if(b.revert){if(this.state.data===void 0)throw b;return this.state.data}}throw ce(this,bt,wn).call(this,{type:"error",error:b}),(L=(M=k(this,At).config).onError)==null||L.call(M,b,this),(P=(F=k(this,At).config).onSettled)==null||P.call(F,this.state.data,b,this),b}finally{this.scheduleGc()}}},Sr=new WeakMap,Ci=new WeakMap,At=new WeakMap,Cr=new WeakMap,Ze=new WeakMap,Fo=new WeakMap,_r=new WeakMap,bt=new WeakSet,km=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},wn=function(r){const i=s=>{switch(r.type){case"failed":return{...s,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Sm(s.data,this.options),fetchMeta:r.meta??null};case"success":const l={...s,...mp(r.data,r.dataUpdatedAt),dataUpdateCount:s.dataUpdateCount+1,...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return q(this,Ci,r.manual?l:void 0),l;case"error":const f=r.error;return{...s,error:f,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...r.state}}};this.state=i(this.state),Ve.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),k(this,At).notify({query:this,type:"updated",action:r})})},am);function Sm(t,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ym(r.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function mp(t,r){return{data:t,dataUpdatedAt:r??Date.now(),error:null,isInvalidated:!1,status:"success"}}function vp(t){const r=typeof t.initialData=="function"?t.initialData():t.initialData,i=r!==void 0,s=i?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var St,me,$o,ht,Er,_i,kn,Xn,zo,Ei,Pi,Pr,jr,Jn,ji,ke,Po,qu,Ku,Qu,Gu,Yu,Zu,Xu,Cm,lm,Vw=(lm=class extends Li{constructor(r,i){super();ne(this,ke);ne(this,St);ne(this,me);ne(this,$o);ne(this,ht);ne(this,Er);ne(this,_i);ne(this,kn);ne(this,Xn);ne(this,zo);ne(this,Ei);ne(this,Pi);ne(this,Pr);ne(this,jr);ne(this,Jn);ne(this,ji,new Set);this.options=i,q(this,St,r),q(this,Xn,null),q(this,kn,Wu()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(k(this,me).addObserver(this),gp(k(this,me),this.options)?ce(this,ke,Po).call(this):this.updateResult(),ce(this,ke,Gu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ju(k(this,me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ju(k(this,me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ce(this,ke,Yu).call(this),ce(this,ke,Zu).call(this),k(this,me).removeObserver(this)}setOptions(r){const i=this.options,s=k(this,me);if(this.options=k(this,St).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dt(this.options.enabled,k(this,me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ce(this,ke,Xu).call(this),k(this,me).setOptions(this.options),i._defaulted&&!ga(this.options,i)&&k(this,St).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,me),observer:this});const l=this.hasListeners();l&&yp(k(this,me),s,this.options,i)&&ce(this,ke,Po).call(this),this.updateResult(),l&&(k(this,me)!==s||Dt(this.options.enabled,k(this,me))!==Dt(i.enabled,k(this,me))||ir(this.options.staleTime,k(this,me))!==ir(i.staleTime,k(this,me)))&&ce(this,ke,qu).call(this);const f=ce(this,ke,Ku).call(this);l&&(k(this,me)!==s||Dt(this.options.enabled,k(this,me))!==Dt(i.enabled,k(this,me))||f!==k(this,Jn))&&ce(this,ke,Qu).call(this,f)}getOptimisticResult(r){const i=k(this,St).getQueryCache().build(k(this,St),r),s=this.createResult(i,r);return Kw(this,s)&&(q(this,ht,s),q(this,_i,this.options),q(this,Er,k(this,me).state)),s}getCurrentResult(){return k(this,ht)}trackResult(r,i){return new Proxy(r,{get:(s,l)=>(this.trackProp(l),i==null||i(l),l==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&k(this,kn).status==="pending"&&k(this,kn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(s,l))})}trackProp(r){k(this,ji).add(r)}getCurrentQuery(){return k(this,me)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const i=k(this,St).defaultQueryOptions(r),s=k(this,St).getQueryCache().build(k(this,St),i);return s.fetch().then(()=>this.createResult(s,i))}fetch(r){return ce(this,ke,Po).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,ht)))}createResult(r,i){var se;const s=k(this,me),l=this.options,f=k(this,ht),v=k(this,Er),m=k(this,_i),h=r!==s?r.state:k(this,$o),{state:y}=r;let x={...y},C=!1,R;if(i._optimisticResults){const de=this.hasListeners(),X=!de&&gp(r,i),Re=de&&yp(r,s,i,l);(X||Re)&&(x={...x,...Sm(y.data,r.options)}),i._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:A,errorUpdatedAt:E,status:M}=x;R=x.data;let L=!1;if(i.placeholderData!==void 0&&R===void 0&&M==="pending"){let de;f!=null&&f.isPlaceholderData&&i.placeholderData===(m==null?void 0:m.placeholderData)?(de=f.data,L=!0):de=typeof i.placeholderData=="function"?i.placeholderData((se=k(this,Pi))==null?void 0:se.state.data,k(this,Pi)):i.placeholderData,de!==void 0&&(M="success",R=Hu(f==null?void 0:f.data,de,i),C=!0)}if(i.select&&R!==void 0&&!L)if(f&&R===(v==null?void 0:v.data)&&i.select===k(this,zo))R=k(this,Ei);else try{q(this,zo,i.select),R=i.select(R),R=Hu(f==null?void 0:f.data,R,i),q(this,Ei,R),q(this,Xn,null)}catch(de){q(this,Xn,de)}k(this,Xn)&&(A=k(this,Xn),R=k(this,Ei),E=Date.now(),M="error");const F=x.fetchStatus==="fetching",P=M==="pending",b=M==="error",D=P&&F,W=R!==void 0,Z={status:M,fetchStatus:x.fetchStatus,isPending:P,isSuccess:M==="success",isError:b,isInitialLoading:D,isLoading:D,data:R,dataUpdatedAt:x.dataUpdatedAt,error:A,errorUpdatedAt:E,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:r.isFetched(),isFetchedAfterMount:x.dataUpdateCount>h.dataUpdateCount||x.errorUpdateCount>h.errorUpdateCount,isFetching:F,isRefetching:F&&!P,isLoadingError:b&&!W,isPaused:x.fetchStatus==="paused",isPlaceholderData:C,isRefetchError:b&&W,isStale:Ec(r,i),refetch:this.refetch,promise:k(this,kn),isEnabled:Dt(i.enabled,r)!==!1};if(this.options.experimental_prefetchInRender){const de=Z.data!==void 0,X=Z.status==="error"&&!de,Re=Ke=>{X?Ke.reject(Z.error):de&&Ke.resolve(Z.data)},Be=()=>{const Ke=q(this,kn,Z.promise=Wu());Re(Ke)},qe=k(this,kn);switch(qe.status){case"pending":r.queryHash===s.queryHash&&Re(qe);break;case"fulfilled":(X||Z.data!==qe.value)&&Be();break;case"rejected":(!X||Z.error!==qe.reason)&&Be();break}}return Z}updateResult(){const r=k(this,ht),i=this.createResult(k(this,me),this.options);if(q(this,Er,k(this,me).state),q(this,_i,this.options),k(this,Er).data!==void 0&&q(this,Pi,k(this,me)),ga(i,r))return;q(this,ht,i);const s=()=>{if(!r)return!0;const{notifyOnChangeProps:l}=this.options,f=typeof l=="function"?l():l;if(f==="all"||!f&&!k(this,ji).size)return!0;const v=new Set(f??k(this,ji));return this.options.throwOnError&&v.add("error"),Object.keys(k(this,ht)).some(m=>{const g=m;return k(this,ht)[g]!==r[g]&&v.has(g)})};ce(this,ke,Cm).call(this,{listeners:s()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ce(this,ke,Gu).call(this)}},St=new WeakMap,me=new WeakMap,$o=new WeakMap,ht=new WeakMap,Er=new WeakMap,_i=new WeakMap,kn=new WeakMap,Xn=new WeakMap,zo=new WeakMap,Ei=new WeakMap,Pi=new WeakMap,Pr=new WeakMap,jr=new WeakMap,Jn=new WeakMap,ji=new WeakMap,ke=new WeakSet,Po=function(r){ce(this,ke,Xu).call(this);let i=k(this,me).fetch(this.options,r);return r!=null&&r.throwOnError||(i=i.catch(pt)),i},qu=function(){ce(this,ke,Yu).call(this);const r=ir(this.options.staleTime,k(this,me));if(bo.isServer()||k(this,ht).isStale||!Uu(r))return;const s=mm(k(this,ht).dataUpdatedAt,r)+1;q(this,Pr,wr.setTimeout(()=>{k(this,ht).isStale||this.updateResult()},s))},Ku=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,me)):this.options.refetchInterval)??!1},Qu=function(r){ce(this,ke,Zu).call(this),q(this,Jn,r),!(bo.isServer()||Dt(this.options.enabled,k(this,me))===!1||!Uu(k(this,Jn))||k(this,Jn)===0)&&q(this,jr,wr.setInterval(()=>{(this.options.refetchIntervalInBackground||kc.isFocused())&&ce(this,ke,Po).call(this)},k(this,Jn)))},Gu=function(){ce(this,ke,qu).call(this),ce(this,ke,Qu).call(this,ce(this,ke,Ku).call(this))},Yu=function(){k(this,Pr)!==void 0&&(wr.clearTimeout(k(this,Pr)),q(this,Pr,void 0))},Zu=function(){k(this,jr)!==void 0&&(wr.clearInterval(k(this,jr)),q(this,jr,void 0))},Xu=function(){const r=k(this,St).getQueryCache().build(k(this,St),this.options);if(r===k(this,me))return;const i=k(this,me);q(this,me,r),q(this,$o,r.state),this.hasListeners()&&(i==null||i.removeObserver(this),r.addObserver(this))},Cm=function(r){Ve.batch(()=>{r.listeners&&this.listeners.forEach(i=>{i(k(this,ht))}),k(this,St).getQueryCache().notify({query:k(this,me),type:"observerResultsUpdated"})})},lm);function qw(t,r){return Dt(r.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&r.retryOnMount===!1)}function gp(t,r){return qw(t,r)||t.state.data!==void 0&&Ju(t,r,r.refetchOnMount)}function Ju(t,r,i){if(Dt(r.enabled,t)!==!1&&ir(r.staleTime,t)!=="static"){const s=typeof i=="function"?i(t):i;return s==="always"||s!==!1&&Ec(t,r)}return!1}function yp(t,r,i,s){return(t!==r||Dt(s.enabled,t)===!1)&&(!i.suspense||t.state.status!=="error")&&Ec(t,i)}function Ec(t,r){return Dt(r.enabled,t)!==!1&&t.isStaleByTime(ir(r.staleTime,t))}function Kw(t,r){return!ga(t.getCurrentResult(),r)}function wp(t){return{onFetch:(r,i)=>{var y,x,C,R,A;const s=r.options,l=(C=(x=(y=r.fetchOptions)==null?void 0:y.meta)==null?void 0:x.fetchMore)==null?void 0:C.direction,f=((R=r.state.data)==null?void 0:R.pages)||[],v=((A=r.state.data)==null?void 0:A.pageParams)||[];let m={pages:[],pageParams:[]},g=0;const h=async()=>{let E=!1;const M=P=>{$w(P,()=>r.signal,()=>E=!0)},L=gm(r.options,r.fetchOptions),F=async(P,b,D)=>{if(E)return Promise.reject();if(b==null&&P.pages.length)return Promise.resolve(P);const te=(()=>{const X={client:r.client,queryKey:r.queryKey,pageParam:b,direction:D?"backward":"forward",meta:r.options.meta};return M(X),X})(),Z=await L(te),{maxPages:se}=r.options,de=D?Fw:Dw;return{pages:de(P.pages,Z,se),pageParams:de(P.pageParams,b,se)}};if(l&&f.length){const P=l==="backward",b=P?_m:ec,D={pages:f,pageParams:v},W=b(s,D);m=await F(D,W,P)}else{const P=t??f.length;do{const b=g===0?v[0]??s.initialPageParam:ec(s,m);if(g>0&&b==null)break;m=await F(m,b),g++}while(g<P)}return m};r.options.persister?r.fetchFn=()=>{var E,M;return(M=(E=r.options).persister)==null?void 0:M.call(E,h,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},i)}:r.fetchFn=h}}}function ec(t,{pages:r,pageParams:i}){const s=r.length-1;return r.length>0?t.getNextPageParam(r[s],r,i[s],i):void 0}function _m(t,{pages:r,pageParams:i}){var s;return r.length>0?(s=t.getPreviousPageParam)==null?void 0:s.call(t,r[0],r,i[0],i):void 0}function FS(t,r){return r?ec(t,r)!=null:!1}function $S(t,r){return!r||!t.getPreviousPageParam?!1:_m(t,r)!=null}var Uo,tn,at,br,nn,Qn,um,Qw=(um=class extends xm{constructor(r){super();ne(this,nn);ne(this,Uo);ne(this,tn);ne(this,at);ne(this,br);q(this,Uo,r.client),this.mutationId=r.mutationId,q(this,at,r.mutationCache),q(this,tn,[]),this.state=r.state||Em(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){k(this,tn).includes(r)||(k(this,tn).push(r),this.clearGcTimeout(),k(this,at).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){q(this,tn,k(this,tn).filter(i=>i!==r)),this.scheduleGc(),k(this,at).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){k(this,tn).length||(this.state.status==="pending"?this.scheduleGc():k(this,at).remove(this))}continue(){var r;return((r=k(this,br))==null?void 0:r.continue())??this.execute(this.state.variables)}async execute(r){var v,m,g,h,y,x,C,R,A,E,M,L,F,P,b,D,W,te;const i=()=>{ce(this,nn,Qn).call(this,{type:"continue"})},s={client:k(this,Uo),meta:this.options.meta,mutationKey:this.options.mutationKey};q(this,br,wm({fn:()=>this.options.mutationFn?this.options.mutationFn(r,s):Promise.reject(new Error("No mutationFn found")),onFail:(Z,se)=>{ce(this,nn,Qn).call(this,{type:"failed",failureCount:Z,error:se})},onPause:()=>{ce(this,nn,Qn).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,at).canRun(this)}));const l=this.state.status==="pending",f=!k(this,br).canStart();try{if(l)i();else{ce(this,nn,Qn).call(this,{type:"pending",variables:r,isPaused:f}),k(this,at).config.onMutate&&await k(this,at).config.onMutate(r,this,s);const se=await((m=(v=this.options).onMutate)==null?void 0:m.call(v,r,s));se!==this.state.context&&ce(this,nn,Qn).call(this,{type:"pending",context:se,variables:r,isPaused:f})}const Z=await k(this,br).start();return await((h=(g=k(this,at).config).onSuccess)==null?void 0:h.call(g,Z,r,this.state.context,this,s)),await((x=(y=this.options).onSuccess)==null?void 0:x.call(y,Z,r,this.state.context,s)),await((R=(C=k(this,at).config).onSettled)==null?void 0:R.call(C,Z,null,this.state.variables,this.state.context,this,s)),await((E=(A=this.options).onSettled)==null?void 0:E.call(A,Z,null,r,this.state.context,s)),ce(this,nn,Qn).call(this,{type:"success",data:Z}),Z}catch(Z){try{await((L=(M=k(this,at).config).onError)==null?void 0:L.call(M,Z,r,this.state.context,this,s))}catch(se){Promise.reject(se)}try{await((P=(F=this.options).onError)==null?void 0:P.call(F,Z,r,this.state.context,s))}catch(se){Promise.reject(se)}try{await((D=(b=k(this,at).config).onSettled)==null?void 0:D.call(b,void 0,Z,this.state.variables,this.state.context,this,s))}catch(se){Promise.reject(se)}try{await((te=(W=this.options).onSettled)==null?void 0:te.call(W,void 0,Z,r,this.state.context,s))}catch(se){Promise.reject(se)}throw ce(this,nn,Qn).call(this,{type:"error",error:Z}),Z}finally{k(this,at).runNext(this)}}},Uo=new WeakMap,tn=new WeakMap,at=new WeakMap,br=new WeakMap,nn=new WeakSet,Qn=function(r){const i=s=>{switch(r.type){case"failed":return{...s,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:r.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:r.isPaused,status:"pending",variables:r.variables,submittedAt:Date.now()};case"success":return{...s,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:r.error,failureCount:s.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Ve.batch(()=>{k(this,tn).forEach(s=>{s.onMutationUpdate(r)}),k(this,at).notify({mutation:this,type:"updated",action:r})})},um);function Em(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Sn,qt,Bo,cm,Gw=(cm=class extends Li{constructor(r={}){super();ne(this,Sn);ne(this,qt);ne(this,Bo);this.config=r,q(this,Sn,new Set),q(this,qt,new Map),q(this,Bo,0)}build(r,i,s){const l=new Qw({client:r,mutationCache:this,mutationId:++ta(this,Bo)._,options:r.defaultMutationOptions(i),state:s});return this.add(l),l}add(r){k(this,Sn).add(r);const i=ra(r);if(typeof i=="string"){const s=k(this,qt).get(i);s?s.push(r):k(this,qt).set(i,[r])}this.notify({type:"added",mutation:r})}remove(r){if(k(this,Sn).delete(r)){const i=ra(r);if(typeof i=="string"){const s=k(this,qt).get(i);if(s)if(s.length>1){const l=s.indexOf(r);l!==-1&&s.splice(l,1)}else s[0]===r&&k(this,qt).delete(i)}}this.notify({type:"removed",mutation:r})}canRun(r){const i=ra(r);if(typeof i=="string"){const s=k(this,qt).get(i),l=s==null?void 0:s.find(f=>f.state.status==="pending");return!l||l===r}else return!0}runNext(r){var s;const i=ra(r);if(typeof i=="string"){const l=(s=k(this,qt).get(i))==null?void 0:s.find(f=>f!==r&&f.state.isPaused);return(l==null?void 0:l.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ve.batch(()=>{k(this,Sn).forEach(r=>{this.notify({type:"removed",mutation:r})}),k(this,Sn).clear(),k(this,qt).clear()})}getAll(){return Array.from(k(this,Sn))}find(r){const i={exact:!0,...r};return this.getAll().find(s=>fp(i,s))}findAll(r={}){return this.getAll().filter(i=>fp(r,i))}notify(r){Ve.batch(()=>{this.listeners.forEach(i=>{i(r)})})}resumePausedMutations(){const r=this.getAll().filter(i=>i.state.isPaused);return Ve.batch(()=>Promise.all(r.map(i=>i.continue().catch(pt))))}},Sn=new WeakMap,qt=new WeakMap,Bo=new WeakMap,cm);function ra(t){var r;return(r=t.options.scope)==null?void 0:r.id}var Cn,er,Ct,_n,Pn,fa,tc,dm,Yw=(dm=class extends Li{constructor(i,s){super();ne(this,Pn);ne(this,Cn);ne(this,er);ne(this,Ct);ne(this,_n);q(this,Cn,i),this.setOptions(s),this.bindMethods(),ce(this,Pn,fa).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var l;const s=this.options;this.options=k(this,Cn).defaultMutationOptions(i),ga(this.options,s)||k(this,Cn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Ct),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&Ir(s.mutationKey)!==Ir(this.options.mutationKey)?this.reset():((l=k(this,Ct))==null?void 0:l.state.status)==="pending"&&k(this,Ct).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=k(this,Ct))==null||i.removeObserver(this)}onMutationUpdate(i){ce(this,Pn,fa).call(this),ce(this,Pn,tc).call(this,i)}getCurrentResult(){return k(this,er)}reset(){var i;(i=k(this,Ct))==null||i.removeObserver(this),q(this,Ct,void 0),ce(this,Pn,fa).call(this),ce(this,Pn,tc).call(this)}mutate(i,s){var l;return q(this,_n,s),(l=k(this,Ct))==null||l.removeObserver(this),q(this,Ct,k(this,Cn).getMutationCache().build(k(this,Cn),this.options)),k(this,Ct).addObserver(this),k(this,Ct).execute(i)}},Cn=new WeakMap,er=new WeakMap,Ct=new WeakMap,_n=new WeakMap,Pn=new WeakSet,fa=function(){var s;const i=((s=k(this,Ct))==null?void 0:s.state)??Em();q(this,er,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},tc=function(i){Ve.batch(()=>{var s,l,f,v,m,g,h,y;if(k(this,_n)&&this.hasListeners()){const x=k(this,er).variables,C=k(this,er).context,R={client:k(this,Cn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(l=(s=k(this,_n)).onSuccess)==null||l.call(s,i.data,x,C,R)}catch(A){Promise.reject(A)}try{(v=(f=k(this,_n)).onSettled)==null||v.call(f,i.data,null,x,C,R)}catch(A){Promise.reject(A)}}else if((i==null?void 0:i.type)==="error"){try{(g=(m=k(this,_n)).onError)==null||g.call(m,i.error,x,C,R)}catch(A){Promise.reject(A)}try{(y=(h=k(this,_n)).onSettled)==null||y.call(h,void 0,i.error,x,C,R)}catch(A){Promise.reject(A)}}}this.listeners.forEach(x=>{x(k(this,er))})})},dm),rn,fm,Zw=(fm=class extends Li{constructor(r={}){super();ne(this,rn);this.config=r,q(this,rn,new Map)}build(r,i,s){const l=i.queryKey,f=i.queryHash??Sc(l,i);let v=this.get(f);return v||(v=new Ww({client:r,queryKey:l,queryHash:f,options:r.defaultQueryOptions(i),state:s,defaultOptions:r.getQueryDefaults(l)}),this.add(v)),v}add(r){k(this,rn).has(r.queryHash)||(k(this,rn).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const i=k(this,rn).get(r.queryHash);i&&(r.destroy(),i===r&&k(this,rn).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){Ve.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return k(this,rn).get(r)}getAll(){return[...k(this,rn).values()]}find(r){const i={exact:!0,...r};return this.getAll().find(s=>dp(i,s))}findAll(r={}){const i=this.getAll();return Object.keys(r).length>0?i.filter(s=>dp(r,s)):i}notify(r){Ve.batch(()=>{this.listeners.forEach(i=>{i(r)})})}onFocus(){Ve.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){Ve.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},rn=new WeakMap,fm),De,tr,nr,bi,Ti,rr,Ri,Ni,hm,Xw=(hm=class{constructor(t={}){ne(this,De);ne(this,tr);ne(this,nr);ne(this,bi);ne(this,Ti);ne(this,rr);ne(this,Ri);ne(this,Ni);q(this,De,t.queryCache||new Zw),q(this,tr,t.mutationCache||new Gw),q(this,nr,t.defaultOptions||{}),q(this,bi,new Map),q(this,Ti,new Map),q(this,rr,0)}mount(){ta(this,rr)._++,k(this,rr)===1&&(q(this,Ri,kc.subscribe(async t=>{t&&(await this.resumePausedMutations(),k(this,De).onFocus())})),q(this,Ni,ya.subscribe(async t=>{t&&(await this.resumePausedMutations(),k(this,De).onOnline())})))}unmount(){var t,r;ta(this,rr)._--,k(this,rr)===0&&((t=k(this,Ri))==null||t.call(this),q(this,Ri,void 0),(r=k(this,Ni))==null||r.call(this),q(this,Ni,void 0))}isFetching(t){return k(this,De).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return k(this,tr).findAll({...t,status:"pending"}).length}getQueryData(t){var i;const r=this.defaultQueryOptions({queryKey:t});return(i=k(this,De).get(r.queryHash))==null?void 0:i.state.data}ensureQueryData(t){const r=this.defaultQueryOptions(t),i=k(this,De).build(this,r),s=i.state.data;return s===void 0?this.fetchQuery(t):(t.revalidateIfStale&&i.isStaleByTime(ir(r.staleTime,i))&&this.prefetchQuery(r),Promise.resolve(s))}getQueriesData(t){return k(this,De).findAll(t).map(({queryKey:r,state:i})=>{const s=i.data;return[r,s]})}setQueryData(t,r,i){const s=this.defaultQueryOptions({queryKey:t}),l=k(this,De).get(s.queryHash),f=l==null?void 0:l.state.data,v=Lw(r,f);if(v!==void 0)return k(this,De).build(this,s).setData(v,{...i,manual:!0})}setQueriesData(t,r,i){return Ve.batch(()=>k(this,De).findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,r,i)]))}getQueryState(t){var i;const r=this.defaultQueryOptions({queryKey:t});return(i=k(this,De).get(r.queryHash))==null?void 0:i.state}removeQueries(t){const r=k(this,De);Ve.batch(()=>{r.findAll(t).forEach(i=>{r.remove(i)})})}resetQueries(t,r){const i=k(this,De);return Ve.batch(()=>(i.findAll(t).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...t},r)))}cancelQueries(t,r={}){const i={revert:!0,...r},s=Ve.batch(()=>k(this,De).findAll(t).map(l=>l.cancel(i)));return Promise.all(s).then(pt).catch(pt)}invalidateQueries(t,r={}){return Ve.batch(()=>(k(this,De).findAll(t).forEach(i=>{i.invalidate()}),(t==null?void 0:t.refetchType)==="none"?Promise.resolve():this.refetchQueries({...t,type:(t==null?void 0:t.refetchType)??(t==null?void 0:t.type)??"active"},r)))}refetchQueries(t,r={}){const i={...r,cancelRefetch:r.cancelRefetch??!0},s=Ve.batch(()=>k(this,De).findAll(t).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let f=l.fetch(void 0,i);return i.throwOnError||(f=f.catch(pt)),l.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(s).then(pt)}fetchQuery(t){const r=this.defaultQueryOptions(t);r.retry===void 0&&(r.retry=!1);const i=k(this,De).build(this,r);return i.isStaleByTime(ir(r.staleTime,i))?i.fetch(r):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(pt).catch(pt)}fetchInfiniteQuery(t){return t.behavior=wp(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(pt).catch(pt)}ensureInfiniteQueryData(t){return t.behavior=wp(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return ya.isOnline()?k(this,tr).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,De)}getMutationCache(){return k(this,tr)}getDefaultOptions(){return k(this,nr)}setDefaultOptions(t){q(this,nr,t)}setQueryDefaults(t,r){k(this,bi).set(Ir(t),{queryKey:t,defaultOptions:r})}getQueryDefaults(t){const r=[...k(this,bi).values()],i={};return r.forEach(s=>{jo(t,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(t,r){k(this,Ti).set(Ir(t),{mutationKey:t,defaultOptions:r})}getMutationDefaults(t){const r=[...k(this,Ti).values()],i={};return r.forEach(s=>{jo(t,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(t){if(t._defaulted)return t;const r={...k(this,nr).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return r.queryHash||(r.queryHash=Sc(r.queryKey,r)),r.refetchOnReconnect===void 0&&(r.refetchOnReconnect=r.networkMode!=="always"),r.throwOnError===void 0&&(r.throwOnError=!!r.suspense),!r.networkMode&&r.persister&&(r.networkMode="offlineFirst"),r.queryFn===Cc&&(r.enabled=!1),r}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...k(this,nr).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){k(this,De).clear(),k(this,tr).clear()}},De=new WeakMap,tr=new WeakMap,nr=new WeakMap,bi=new WeakMap,Ti=new WeakMap,rr=new WeakMap,Ri=new WeakMap,Ni=new WeakMap,hm),Pm=I.createContext(void 0),ln=t=>{const r=I.useContext(Pm);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},Jw=({client:t,children:r})=>(I.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),d.jsx(Pm.Provider,{value:t,children:r})),jm=I.createContext(!1),e1=()=>I.useContext(jm);jm.Provider;function t1(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var n1=I.createContext(t1()),r1=()=>I.useContext(n1),i1=(t,r,i)=>{const s=i!=null&&i.state.error&&typeof t.throwOnError=="function"?_c(t.throwOnError,[i.state.error,i]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||s)&&(r.isReset()||(t.retryOnMount=!1))},o1=t=>{I.useEffect(()=>{t.clearReset()},[t])},s1=({result:t,errorResetBoundary:r,throwOnError:i,query:s,suspense:l})=>t.isError&&!r.isReset()&&!t.isFetching&&s&&(l&&t.data===void 0||_c(i,[t.error,s])),a1=t=>{if(t.suspense){const i=l=>l==="static"?l:Math.max(l??1e3,1e3),s=t.staleTime;t.staleTime=typeof s=="function"?(...l)=>i(s(...l)):i(s),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},l1=(t,r)=>t.isLoading&&t.isFetching&&!r,u1=(t,r)=>(t==null?void 0:t.suspense)&&r.isPending,xp=(t,r,i)=>r.fetchOptimistic(t).catch(()=>{i.clearReset()});function c1(t,r,i){var C,R,A,E;const s=e1(),l=r1(),f=ln(),v=f.defaultQueryOptions(t);(R=(C=f.getDefaultOptions().queries)==null?void 0:C._experimental_beforeQuery)==null||R.call(C,v);const m=f.getQueryCache().get(v.queryHash);v._optimisticResults=s?"isRestoring":"optimistic",a1(v),i1(v,l,m),o1(l);const g=!f.getQueryCache().get(v.queryHash),[h]=I.useState(()=>new r(f,v)),y=h.getOptimisticResult(v),x=!s&&t.subscribed!==!1;if(I.useSyncExternalStore(I.useCallback(M=>{const L=x?h.subscribe(Ve.batchCalls(M)):pt;return h.updateResult(),L},[h,x]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),I.useEffect(()=>{h.setOptions(v)},[v,h]),u1(v,y))throw xp(v,h,l);if(s1({result:y,errorResetBoundary:l,throwOnError:v.throwOnError,query:m,suspense:v.suspense}))throw y.error;if((E=(A=f.getDefaultOptions().queries)==null?void 0:A._experimental_afterQuery)==null||E.call(A,v,y),v.experimental_prefetchInRender&&!bo.isServer()&&l1(y,s)){const M=g?xp(v,h,l):m==null?void 0:m.promise;M==null||M.catch(pt).finally(()=>{h.updateResult()})}return v.notifyOnChangeProps?y:h.trackResult(y)}function Oe(t,r){return c1(t,Vw)}function d1(t,r){const i=ln(),[s]=I.useState(()=>new Yw(i,t));I.useEffect(()=>{s.setOptions(t)},[s,t]);const l=I.useSyncExternalStore(I.useCallback(v=>s.subscribe(Ve.batchCalls(v)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),f=I.useCallback((v,m)=>{s.mutate(v,m).catch(pt)},[s]);if(l.error&&_c(s.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:f,mutateAsync:l.mutate}}var f1=pm();function h1(){return d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:[d.jsx("circle",{cx:"12",cy:"5",r:"1.7"}),d.jsx("circle",{cx:"12",cy:"12",r:"1.7"}),d.jsx("circle",{cx:"12",cy:"19",r:"1.7"})]})}const p1=176;function m1(){return d.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:d.jsx("path",{d:"M20 6 9 17l-5-5"})})}function v1({label:t,items:r,trigger:i,className:s,triggerStyle:l="icon",align:f="end",width:v=p1}){const m=r.filter(Boolean),[g,h]=I.useState(!1),[y,x]=I.useState({}),C=I.useRef(null),R=I.useRef(null),A=I.useId(),E=I.useCallback(L=>{var F;h(!1),L&&((F=C.current)==null||F.focus())},[]);if(I.useLayoutEffect(()=>{var W,te;if(!g||!C.current)return;const L=C.current.getBoundingClientRect(),F=m.reduce((Z,se)=>Z+(se.description?50:34),10),P=L.bottom+4+F<=window.innerHeight,b=Math.max(8,Math.min(f==="start"?L.left:L.right-v,window.innerWidth-v-8));x(P?{top:L.bottom+4,left:b}:{top:Math.max(8,L.top-4-F),left:b});const D=((W=R.current)==null?void 0:W.querySelector('[aria-checked="true"]:not([disabled])'))??((te=R.current)==null?void 0:te.querySelector('[role^="menuitem"]:not([disabled])'));D==null||D.focus()},[g,m.length]),I.useEffect(()=>{if(!g)return;const L=P=>{var D,W;const b=P.target;(D=R.current)!=null&&D.contains(b)||(W=C.current)!=null&&W.contains(b)||E(!1)},F=()=>E(!1);return document.addEventListener("mousedown",L),window.addEventListener("resize",F),window.addEventListener("scroll",F,!0),()=>{document.removeEventListener("mousedown",L),window.removeEventListener("resize",F),window.removeEventListener("scroll",F,!0)}},[g,E]),m.length===0)return null;function M(L){var b,D,W,te,Z;const F=[...((b=R.current)==null?void 0:b.querySelectorAll('[role^="menuitem"]:not([disabled])'))??[]],P=F.indexOf(document.activeElement);L.key==="Escape"?(L.preventDefault(),L.stopPropagation(),E(!0)):L.key==="ArrowDown"?(L.preventDefault(),(D=F[(P+1)%F.length])==null||D.focus()):L.key==="ArrowUp"?(L.preventDefault(),(W=F[(P-1+F.length)%F.length])==null||W.focus()):L.key==="Home"?(L.preventDefault(),(te=F[0])==null||te.focus()):L.key==="End"?(L.preventDefault(),(Z=F[F.length-1])==null||Z.focus()):L.key==="Tab"&&E(!1)}return d.jsxs(d.Fragment,{children:[d.jsx("button",{ref:C,type:"button",className:[l==="icon"?"as-icon-button":null,"as-action-menu__trigger",s].filter(Boolean).join(" "),"aria-label":t,title:l==="icon"?t:void 0,"aria-haspopup":"menu","aria-expanded":g,"aria-controls":g?A:void 0,onClick:L=>{L.stopPropagation(),h(F=>!F)},onKeyDown:L=>{L.key==="ArrowDown"&&!g&&(L.preventDefault(),h(!0))},children:i??d.jsx(h1,{})}),g&&typeof document<"u"&&f1.createPortal(d.jsx("div",{ref:R,id:A,role:"menu","aria-label":t,className:"as-action-menu",style:{...y,width:v},onKeyDown:M,onClick:L=>L.stopPropagation(),children:m.map((L,F)=>d.jsxs("button",{type:"button",role:L.checked===void 0?"menuitem":"menuitemradio","aria-checked":L.checked,tabIndex:-1,disabled:L.disabled,className:["as-action-menu__item",L.tone==="danger"?"as-action-menu__item--danger":null,L.checked!==void 0?"as-action-menu__item--choice":null].filter(Boolean).join(" "),onClick:()=>{E(!0),L.onSelect()},children:[L.checked!==void 0&&d.jsx("span",{className:"as-action-menu__check",children:L.checked?d.jsx(m1,{}):null}),d.jsxs("span",{className:"as-action-menu__text",children:[d.jsx("span",{className:"as-action-menu__label",children:L.label}),L.description&&d.jsx("span",{className:"as-action-menu__description",children:L.description})]})]},F))}),document.body)]})}function lt({action:t,children:r,className:i,title:s,tone:l="info",...f}){const v=["as-alert",`as-alert--${l}`,i].filter(Boolean).join(" ");return d.jsxs("div",{className:v,role:l==="danger"||l==="warning"?"alert":"status",...f,children:[d.jsx("div",{className:"as-alert__mark","aria-hidden":"true"}),d.jsxs("div",{className:"as-alert__content",children:[s&&d.jsx("div",{className:"as-alert__title",children:s}),d.jsx("div",{className:"as-alert__body",children:r})]}),t&&d.jsx("div",{className:"as-alert__action",children:t})]})}function pi({tone:t="neutral",children:r,className:i,...s}){return d.jsx("span",{className:["as-badge",`as-badge--${t}`,i].filter(Boolean).join(" "),...s,children:r})}function Ee({children:t,className:r,fullWidth:i=!1,leadingIcon:s,size:l="md",trailingIcon:f,type:v="button",variant:m="primary",href:g,download:h,target:y,rel:x,...C}){const R=["as-button",`as-button--${m}`,`as-button--${l}`,i?"as-button--full":null,r].filter(Boolean).join(" "),A=d.jsxs(d.Fragment,{children:[s&&d.jsx("span",{className:"as-button__icon","aria-hidden":"true",children:s}),d.jsx("span",{className:"as-button__label",children:t}),f&&d.jsx("span",{className:"as-button__icon","aria-hidden":"true",children:f})]});if(g!==void 0&&!C.disabled){const{disabled:E,form:M,formAction:L,formEncType:F,formMethod:P,formNoValidate:b,formTarget:D,name:W,value:te,...Z}=C,se=y==="_blank"?x??"noopener noreferrer":x;return d.jsx("a",{...Z,className:R,href:g,download:h,target:y,rel:se,children:A})}return d.jsx("button",{type:v,className:R,...C,children:A})}function Pc({children:t,className:r,tone:i="surface",...s}){const l=["as-card",`as-card--${i}`,r].filter(Boolean).join(" ");return d.jsx("div",{className:l,...s,children:t})}function g1(t,r){if(t==null)return{};var i={};for(var s in t)if({}.hasOwnProperty.call(t,s)){if(r.indexOf(s)!==-1)continue;i[s]=t[s]}return i}function To(){return To=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var s in i)({}).hasOwnProperty.call(i,s)&&(t[s]=i[s])}return t},To.apply(null,arguments)}var nc="data-focus-lock",bm="data-focus-lock-disabled",y1="data-no-focus-lock",w1="data-autofocus-inside",x1="data-no-autofocus";function Tu(t,r){return typeof t=="function"?t(r):t&&(t.current=r),t}function k1(t,r){var i=I.useState(function(){return{value:t,callback:r,facade:{get current(){return i.value},set current(s){var l=i.value;l!==s&&(i.value=s,i.callback(s,l))}}}})[0];return i.callback=r,i.facade}var S1=typeof window<"u"?I.useLayoutEffect:I.useEffect,kp=new WeakMap;function Tm(t,r){var i=k1(null,function(s){return t.forEach(function(l){return Tu(l,s)})});return S1(function(){var s=kp.get(i);if(s){var l=new Set(s),f=new Set(t),v=i.current;l.forEach(function(m){f.has(m)||Tu(m,null)}),f.forEach(function(m){l.has(m)||Tu(m,v)})}kp.set(i,t)},[t]),i}var Ru={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},on=function(){return on=Object.assign||function(r){for(var i,s=1,l=arguments.length;s<l;s++){i=arguments[s];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(r[f]=i[f])}return r},on.apply(this,arguments)};function Rm(t,r){var i={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&r.indexOf(s)<0&&(i[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(t);l<s.length;l++)r.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(t,s[l])&&(i[s[l]]=t[s[l]]);return i}function C1(t,r,i){if(i||arguments.length===2)for(var s=0,l=r.length,f;s<l;s++)(f||!(s in r))&&(f||(f=Array.prototype.slice.call(r,0,s)),f[s]=r[s]);return t.concat(f||Array.prototype.slice.call(r))}function Nm(t){return t}function Im(t,r){r===void 0&&(r=Nm);var i=[],s=!1,l={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:t},useMedium:function(f){var v=r(f,s);return i.push(v),function(){i=i.filter(function(m){return m!==v})}},assignSyncMedium:function(f){for(s=!0;i.length;){var v=i;i=[],v.forEach(f)}i={push:function(m){return f(m)},filter:function(){return i}}},assignMedium:function(f){s=!0;var v=[];if(i.length){var m=i;i=[],m.forEach(f),v=i}var g=function(){var y=v;v=[],y.forEach(f)},h=function(){return Promise.resolve().then(g)};h(),i={push:function(y){v.push(y),h()},filter:function(y){return v=v.filter(y),i}}}};return l}function jc(t,r){return r===void 0&&(r=Nm),Im(t,r)}function Mm(t){t===void 0&&(t={});var r=Im(null);return r.options=on({async:!0,ssr:!1},t),r}var Lm=function(t){var r=t.sideCar,i=Rm(t,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=r.read();if(!s)throw new Error("Sidecar medium not found");return I.createElement(s,on({},i))};Lm.isSideCarExport=!0;function _1(t,r){return t.useMedium(r),Lm}var Om=jc({},function(t){var r=t.target,i=t.currentTarget;return{target:r,currentTarget:i}}),Am=jc(),E1=jc(),P1=Mm({async:!0,ssr:typeof document<"u"}),j1=I.createContext(void 0),b1=[],bc=I.forwardRef(function(r,i){var s,l=I.useState(),f=l[0],v=l[1],m=I.useRef(),g=I.useRef(!1),h=I.useRef(null),y=I.useState({}),x=y[1],C=r.children,R=r.disabled,A=R===void 0?!1:R,E=r.noFocusGuards,M=E===void 0?!1:E,L=r.persistentFocus,F=L===void 0?!1:L,P=r.crossFrame,b=P===void 0?!0:P,D=r.autoFocus,W=D===void 0?!0:D;r.allowTextSelection;var te=r.group,Z=r.className,se=r.whiteList,de=r.hasPositiveIndices,X=r.shards,Re=X===void 0?b1:X,Be=r.as,qe=Be===void 0?"div":Be,Ke=r.lockProps,nt=Ke===void 0?{}:Ke,Ne=r.sideCar,V=r.returnFocus,re=V===void 0?!1:V,Q=r.focusOptions,j=r.onActivation,$=r.onDeactivation,ue=I.useState({}),fe=ue[0],ve=I.useCallback(function(Tt){var Qt=Tt.captureFocusRestore;if(!h.current){var cn,Ft=(cn=document)==null?void 0:cn.activeElement;h.current=Ft,Ft!==document.body&&(h.current=Qt(Ft))}m.current&&j&&j(m.current),g.current=!0,x()},[j]),ge=I.useCallback(function(){g.current=!1,$&&$(m.current),x()},[$]),_e=I.useCallback(function(Tt){var Qt=h.current;if(Qt){var cn=(typeof Qt=="function"?Qt():Qt)||document.body,Ft=typeof re=="function"?re(cn):re;if(Ft){var bn=typeof Ft=="object"?Ft:void 0;h.current=null,Tt?Promise.resolve().then(function(){return cn.focus(bn)}):cn.focus(bn)}}},[re]),xe=I.useCallback(function(Tt){g.current&&Om.useMedium(Tt)},[]),Pe=Am.useMedium,ct=I.useCallback(function(Tt){m.current!==Tt&&(m.current=Tt,v(Tt))},[]),Ar=To((s={},s[bm]=A&&"disabled",s[nc]=te,s),nt),Ai=M!==!0,Dr=Ai&&M!=="tail",Di=Tm([i,ct]),qo=I.useMemo(function(){return{observed:m,shards:Re,enabled:!A,get active(){return g.current}}},[A,g,Re,m]);return en.createElement(I.Fragment,null,Ai&&[en.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:A?-1:0,style:Ru}),de?en.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:A?-1:1,style:Ru}):null],!A&&en.createElement(Ne,{id:fe,sideCar:P1,observed:f,disabled:A,persistentFocus:F,crossFrame:b,autoFocus:W,whiteList:se,shards:Re,onActivation:ve,onDeactivation:ge,returnFocus:_e,focusOptions:Q,noFocusGuards:M}),en.createElement(qe,To({ref:Di},Ar,{className:Z,onBlur:Pe,onFocus:xe}),en.createElement(j1.Provider,{value:qo},C)),Dr&&en.createElement("div",{"data-focus-guard":!0,tabIndex:A?-1:0,style:Ru}))});bc.propTypes={};function rc(t,r){return rc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,s){return i.__proto__=s,i},rc(t,r)}function T1(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,rc(t,r)}function Ro(t){"@babel/helpers - typeof";return Ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ro(t)}function R1(t,r){if(Ro(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var s=i.call(t,r);if(Ro(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function N1(t){var r=R1(t,"string");return Ro(r)=="symbol"?r:r+""}function I1(t,r,i){return(r=N1(r))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function M1(t,r){function i(s){return s.displayName||s.name||"Component"}return function(l){var f=[],v;function m(){v=t(f.map(function(h){return h.props})),r(v)}var g=(function(h){T1(y,h);function y(){return h.apply(this,arguments)||this}y.peek=function(){return v};var x=y.prototype;return x.componentDidMount=function(){f.push(this),m()},x.componentDidUpdate=function(){m()},x.componentWillUnmount=function(){var R=f.indexOf(this);f.splice(R,1),m()},x.render=function(){return en.createElement(l,this.props)},y})(I.PureComponent);return I1(g,"displayName","SideEffect("+i(l)+")"),g}}var un=function(t){for(var r=Array(t.length),i=0;i<t.length;++i)r[i]=t[i];return r},Mr=function(t){return Array.isArray(t)?t:[t]},Dm=function(t){return Array.isArray(t)?t[0]:t},L1=function(t){if(t.nodeType!==Node.ELEMENT_NODE)return!1;var r=window.getComputedStyle(t,null);return!r||!r.getPropertyValue?!1:r.getPropertyValue("display")==="none"||r.getPropertyValue("visibility")==="hidden"},Fm=function(t){return t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t.parentNode.host:t.parentNode},$m=function(t){return t===document||t&&t.nodeType===Node.DOCUMENT_NODE},O1=function(t){return t.hasAttribute("inert")},A1=function(t,r){return!t||$m(t)||!L1(t)&&!O1(t)&&r(Fm(t))},zm=function(t,r){var i=t.get(r);if(i!==void 0)return i;var s=A1(r,zm.bind(void 0,t));return t.set(r,s),s},D1=function(t,r){return t&&!$m(t)?z1(t)?r(Fm(t)):!1:!0},Um=function(t,r){var i=t.get(r);if(i!==void 0)return i;var s=D1(r,Um.bind(void 0,t));return t.set(r,s),s},Bm=function(t){return t.dataset},F1=function(t){return t.tagName==="BUTTON"},Hm=function(t){return t.tagName==="INPUT"},Wm=function(t){return Hm(t)&&t.type==="radio"},$1=function(t){return!((Hm(t)||F1(t))&&(t.type==="hidden"||t.disabled))},z1=function(t){var r=t.getAttribute(x1);return![!0,"true",""].includes(r)},Tc=function(t){var r;return!!(t&&(!((r=Bm(t))===null||r===void 0)&&r.focusGuard))},ic=function(t){return!Tc(t)},U1=function(t){return!!t},B1=function(t,r){var i=Math.max(0,t.tabIndex),s=Math.max(0,r.tabIndex),l=i-s,f=t.index-r.index;if(l){if(!i)return 1;if(!s)return-1}return l||f},H1=function(t){return t.tabIndex<0&&!t.hasAttribute("tabindex")?0:t.tabIndex},Rc=function(t,r,i){return un(t).map(function(s,l){var f=H1(s);return{node:s,index:l,tabIndex:i&&f===-1?(s.dataset||{}).focusGuard?0:-1:f}}).filter(function(s){return!r||s.tabIndex>=0}).sort(B1)},W1=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],Nc=W1.join(","),V1="".concat(Nc,", [data-focus-guard]"),Vm=function(t,r){return un((t.shadowRoot||t).children).reduce(function(i,s){return i.concat(s.matches(r?V1:Nc)?[s]:[],Vm(s))},[])},q1=function(t,r){var i;return t instanceof HTMLIFrameElement&&(!((i=t.contentDocument)===null||i===void 0)&&i.body)?Ii([t.contentDocument.body],r):[t]},Ii=function(t,r){return t.reduce(function(i,s){var l,f=Vm(s,r),v=(l=[]).concat.apply(l,f.map(function(m){return q1(m,r)}));return i.concat(v,s.parentNode?un(s.parentNode.querySelectorAll(Nc)).filter(function(m){return m===s}):[])},[])},K1=function(t){var r=t.querySelectorAll("[".concat(w1,"]"));return un(r).map(function(i){return Ii([i])}).reduce(function(i,s){return i.concat(s)},[])},Ic=function(t,r){return un(t).filter(function(i){return zm(r,i)}).filter(function(i){return $1(i)})},Sp=function(t,r){return r===void 0&&(r=new Map),un(t).filter(function(i){return Um(r,i)})},Mc=function(t,r,i){return Rc(Ic(Ii(t,i),r),!0,i)},No=function(t,r){return Rc(Ic(Ii(t),r),!1)},Q1=function(t,r){return Ic(K1(t),r)},Tr=function(t,r){return t.shadowRoot?Tr(t.shadowRoot,r):Object.getPrototypeOf(t).contains!==void 0&&Object.getPrototypeOf(t).contains.call(t,r)?!0:un(t.children).some(function(i){var s;if(i instanceof HTMLIFrameElement){var l=(s=i.contentDocument)===null||s===void 0?void 0:s.body;return l?Tr(l,r):!1}return Tr(i,r)})},G1=function(t){for(var r=new Set,i=t.length,s=0;s<i;s+=1)for(var l=s+1;l<i;l+=1){var f=t[s].compareDocumentPosition(t[l]);(f&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&r.add(l),(f&Node.DOCUMENT_POSITION_CONTAINS)>0&&r.add(s)}return t.filter(function(v,m){return!r.has(m)})},qm=function(t){return t.parentNode?qm(t.parentNode):t},Lc=function(t){var r=Mr(t);return r.filter(Boolean).reduce(function(i,s){var l=s.getAttribute(nc);return i.push.apply(i,l?G1(un(qm(s).querySelectorAll("[".concat(nc,'="').concat(l,'"]:not([').concat(bm,'="disabled"])')))):[s]),i},[])},Y1=function(t){try{return t()}catch{return}},Io=function(t){if(t===void 0&&(t=document),!(!t||!t.activeElement)){var r=t.activeElement;return r.shadowRoot?Io(r.shadowRoot):r instanceof HTMLIFrameElement&&Y1(function(){return r.contentWindow.document})?Io(r.contentWindow.document):r}},Z1=function(t,r){return t===r},X1=function(t,r){return!!un(t.querySelectorAll("iframe")).some(function(i){return Z1(i,r)})},Km=function(t,r){return r===void 0&&(r=Io(Dm(t).ownerDocument)),!r||r.dataset&&r.dataset.focusGuard?!1:Lc(t).some(function(i){return Tr(i,r)||X1(i,r)})},J1=function(t){t===void 0&&(t=document);var r=Io(t);return r?un(t.querySelectorAll("[".concat(y1,"]"))).some(function(i){return Tr(i,r)}):!1},e0=function(t,r){return r.filter(Wm).filter(function(i){return i.name===t.name}).filter(function(i){return i.checked})[0]||t},Oc=function(t,r){return Wm(t)&&t.name?e0(t,r):t},t0=function(t){var r=new Set;return t.forEach(function(i){return r.add(Oc(i,t))}),t.filter(function(i){return r.has(i)})},Cp=function(t){return t[0]&&t.length>1?Oc(t[0],t):t[0]},_p=function(t,r){return t.indexOf(Oc(r,t))},oc="NEW_FOCUS",n0=function(t,r,i,s,l){var f=t.length,v=t[0],m=t[f-1],g=Tc(s);if(!(s&&t.indexOf(s)>=0)){var h=s!==void 0?i.indexOf(s):-1,y=l?i.indexOf(l):h,x=l?t.indexOf(l):-1;if(h===-1)return x!==-1?x:oc;if(x===-1)return oc;var C=h-y,R=i.indexOf(v),A=i.indexOf(m),E=t0(i),M=s!==void 0?E.indexOf(s):-1,L=l?E.indexOf(l):M,F=E.filter(function(Z){return Z.tabIndex>=0}),P=s!==void 0?F.indexOf(s):-1,b=l?F.indexOf(l):P,D=P>=0&&b>=0?b-P:L-M;if(!C&&x>=0||r.length===0)return x;var W=_p(t,r[0]),te=_p(t,r[r.length-1]);if(h<=R&&g&&Math.abs(C)>1)return te;if(h>=A&&g&&Math.abs(C)>1)return W;if(C&&Math.abs(D)>1)return x;if(h<=R)return te;if(h>A)return W;if(C)return Math.abs(C)>1?x:(f+x+C)%f}},r0=function(t){return function(r){var i,s=(i=Bm(r))===null||i===void 0?void 0:i.autofocus;return r.autofocus||s!==void 0&&s!=="false"||t.indexOf(r)>=0}},Ep=function(t,r,i){var s=t.map(function(f){var v=f.node;return v}),l=Sp(s.filter(r0(i)));return l&&l.length?Cp(l):Cp(Sp(r))},sc=function(t,r){return r===void 0&&(r=[]),r.push(t),t.parentNode&&sc(t.parentNode.host||t.parentNode,r),r},Nu=function(t,r){for(var i=sc(t),s=sc(r),l=0;l<i.length;l+=1){var f=i[l];if(s.indexOf(f)>=0)return f}return!1},Qm=function(t,r,i){var s=Mr(t),l=Mr(r),f=s[0],v=!1;return l.filter(Boolean).forEach(function(m){v=Nu(v||m,m)||v,i.filter(Boolean).forEach(function(g){var h=Nu(f,g);h&&(!v||Tr(h,v)?v=h:v=Nu(h,v))})}),v},Pp=function(t,r){return t.reduce(function(i,s){return i.concat(Q1(s,r))},[])},i0=function(t,r){var i=new Map;return r.forEach(function(s){return i.set(s.node,s)}),t.map(function(s){return i.get(s)}).filter(U1)},o0=function(t,r){var i=Io(Mr(t).length>0?document:Dm(t).ownerDocument),s=Lc(t).filter(ic),l=Qm(i||t,t,s),f=new Map,v=No(s,f),m=v.filter(function(A){var E=A.node;return ic(E)});if(m[0]){var g=No([l],f).map(function(A){var E=A.node;return E}),h=i0(g,m),y=h.map(function(A){var E=A.node;return E}),x=h.filter(function(A){var E=A.tabIndex;return E>=0}).map(function(A){var E=A.node;return E}),C=n0(y,x,g,i,r);if(C===oc){var R=Ep(v,x,Pp(s,f))||Ep(v,y,Pp(s,f));if(R)return{node:R};console.warn("focus-lock: cannot find any node to move focus into");return}return C===void 0?C:h[C]}},s0=function(t){var r=Lc(t).filter(ic),i=Qm(t,t,r),s=Rc(Ii([i],!0),!0,!0),l=Ii(r,!1);return s.map(function(f){var v=f.node,m=f.index;return{node:v,index:m,lockItem:l.indexOf(v)>=0,guard:Tc(v)}})},Ac=function(t,r){t&&("focus"in t&&t.focus(r),"contentWindow"in t&&t.contentWindow&&t.contentWindow.focus())},Iu=0,Mu=!1,Gm=function(t,r,i){i===void 0&&(i={});var s=o0(t,r);if(!Mu&&s){if(Iu>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Mu=!0,setTimeout(function(){Mu=!1},1);return}Iu++,Ac(s.node,i.focusOptions),Iu--}};function _o(t){if(!t)return null;if(typeof WeakRef>"u")return function(){return t||null};var r=t?new WeakRef(t):null;return function(){return(r==null?void 0:r.deref())||null}}var a0=function(t){if(!t)return null;for(var r=[],i=t;i&&i!==document.body;)r.push({current:_o(i),parent:_o(i.parentElement),left:_o(i.previousElementSibling),right:_o(i.nextElementSibling)}),i=i.parentElement;return{element:_o(t),stack:r,ownerDocument:t.ownerDocument}},l0=function(t){var r,i,s,l,f;if(t)for(var v=t.stack,m=t.ownerDocument,g=new Map,h=0,y=v;h<y.length;h++){var x=y[h],C=(r=x.parent)===null||r===void 0?void 0:r.call(x);if(C&&m.contains(C)){for(var R=(i=x.left)===null||i===void 0?void 0:i.call(x),A=x.current(),E=C.contains(A)?A:void 0,M=(s=x.right)===null||s===void 0?void 0:s.call(x),L=Mc([C],g),F=(f=(l=E??(R==null?void 0:R.nextElementSibling))!==null&&l!==void 0?l:M)!==null&&f!==void 0?f:R;F;){for(var P=0,b=L;P<b.length;P++){var D=b[P];if(F!=null&&F.contains(D.node))return D.node}F=F.nextElementSibling}if(L.length)return L[0].node}}},Ym=function(t){var r=a0(t);return function(){return l0(r)}},u0=function(t,r,i){if(!t||!r)return console.error("no element or scope given"),{};var s=Mr(r);if(s.every(function(v){return!Tr(v,t)}))return console.error("Active element is not contained in the scope"),{};var l=i?Mc(s,new Map):No(s,new Map),f=l.findIndex(function(v){var m=v.node;return m===t});if(f!==-1)return{prev:l[f-1],next:l[f+1],first:l[0],last:l[l.length-1]}},c0=function(t,r){var i=r?Mc(Mr(t),new Map):No(Mr(t),new Map);return{first:i[0],last:i[i.length-1]}},d0=function(t){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},t)},Zm=function(t,r,i){r===void 0&&(r={});var s=d0(r),l=u0(t,s.scope,s.onlyTabbable);if(l){var f=i(l,s.cycle);f&&Ac(f.node,s.focusOptions)}},f0=function(t,r){r===void 0&&(r={}),Zm(t,r,function(i,s){var l=i.next,f=i.first;return l||s&&f})},h0=function(t,r){r===void 0&&(r={}),Zm(t,r,function(i,s){var l=i.prev,f=i.last;return l||s&&f})},Xm=function(t,r,i){var s,l=c0(t,(s=r.onlyTabbable)!==null&&s!==void 0?s:!0),f=l[i];f&&Ac(f.node,r.focusOptions)},p0=function(t,r){r===void 0&&(r={}),Xm(t,r,"first")},m0=function(t,r){r===void 0&&(r={}),Xm(t,r,"last")};function Dc(t){setTimeout(t,1)}var v0=function(r){return r&&"current"in r?r.current:r},Jm=function(){return document&&document.activeElement===document.body},g0=function(){return Jm()||J1()},vi=null,kt=null,jp=function(){return null},gi=null,Mo=!1,Fc=!1,y0=function(){return!0},w0=function(r){return(vi.whiteList||y0)(r)},x0=function(r,i){gi={observerNode:r,portaledElement:i}},k0=function(r){return gi&&gi.portaledElement===r};function bp(t,r,i,s){var l=null,f=t;do{var v=s[f];if(v.guard)v.node.dataset.focusAutoGuard&&(l=v);else if(v.lockItem){if(f!==t)return;l=null}else break}while((f+=i)!==r);l&&(l.node.tabIndex=0)}var S0=function(r){return r?!!Mo:Mo==="meanwhile"},C0=function t(r,i,s){return i&&(i.host===r&&(!i.activeElement||s.contains(i.activeElement))||i.parentNode&&t(r,i.parentNode,s))},_0=function(r,i){return i.some(function(s){return C0(r,s,s)})},ev=function(r){return No(r,new Map)},E0=function(r){return!ev([r.parentNode]).some(function(i){return i.node===r})},wa=function(){var r=!1;if(vi){var i=vi,s=i.observed,l=i.persistentFocus,f=i.autoFocus,v=i.shards,m=i.crossFrame,g=i.focusOptions,h=i.noFocusGuards,y=s||gi&&gi.portaledElement;if(Jm()&&kt&&kt!==document.body&&(!document.body.contains(kt)||E0(kt))){var x=jp();x&&x.focus()}var C=document&&document.activeElement;if(y){var R=[y].concat(v.map(v0).filter(Boolean)),A=function(){if(!S0(m)||!h||!kt||Fc)return!1;var P=ev(R),b=P.findIndex(function(D){var W=D.node;return W===kt});return b===0||b===P.length-1};if((!C||w0(C))&&(l||A()||!g0()||!kt&&f)&&(y&&!(Km(R)||C&&_0(C,R)||k0(C))&&(document&&!kt&&C&&!f?(C.blur&&C.blur(),document.body.focus()):(r=Gm(R,kt,{focusOptions:g}),gi={})),kt=document&&document.activeElement,kt!==document.body&&(jp=Ym(kt)),Mo=!1),document&&C!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var E=document&&document.activeElement,M=s0(R),L=M.map(function(F){var P=F.node;return P}).indexOf(E);L>-1&&(M.filter(function(F){var P=F.guard,b=F.node;return P&&b.dataset.focusAutoGuard}).forEach(function(F){var P=F.node;return P.removeAttribute("tabIndex")}),bp(L,M.length,1,M),bp(L,-1,-1,M))}}}return r},tv=function(r){wa()&&r&&(r.stopPropagation(),r.preventDefault())},$c=function(){return Dc(wa)},P0=function(r){var i=r.target,s=r.currentTarget;s.contains(i)||x0(s,i)},j0=function(){return null},nv=function(){Fc=!0},rv=function(){Fc=!1,Mo="just",Dc(function(){Mo="meanwhile"})},b0=function(){document.addEventListener("focusin",tv),document.addEventListener("focusout",$c),window.addEventListener("focus",nv),window.addEventListener("blur",rv)},T0=function(){document.removeEventListener("focusin",tv),document.removeEventListener("focusout",$c),window.removeEventListener("focus",nv),window.removeEventListener("blur",rv)};function R0(t){return t.filter(function(r){var i=r.disabled;return!i})}var iv={moveFocusInside:Gm,focusInside:Km,focusNextElement:f0,focusPrevElement:h0,focusFirstElement:p0,focusLastElement:m0,captureFocusRestore:Ym};function N0(t){var r=t.slice(-1)[0];r&&!vi&&b0();var i=vi,s=i&&r&&r.id===i.id;vi=r,i&&!s&&(i.onDeactivation(),t.filter(function(l){var f=l.id;return f===i.id}).length||i.returnFocus(!r)),r?(kt=null,(!s||i.observed!==r.observed)&&r.onActivation(iv),wa(),Dc(wa)):(T0(),kt=null)}Om.assignSyncMedium(P0);Am.assignMedium($c);E1.assignMedium(function(t){return t(iv)});const I0=M1(R0,N0)(j0);var zc=I.forwardRef(function(r,i){return en.createElement(bc,To({sideCar:I0,ref:i},r))}),ov=bc.propTypes||{};ov.sideCar;g1(ov,["sideCar"]);zc.propTypes={};var ha="right-scroll-bar-position",pa="width-before-scroll-bar",M0="with-scroll-bars-hidden",L0="--removed-body-scroll-bar-size",sv=Mm(),Lu=function(){},ja=I.forwardRef(function(t,r){var i=I.useRef(null),s=I.useState({onScrollCapture:Lu,onWheelCapture:Lu,onTouchMoveCapture:Lu}),l=s[0],f=s[1],v=t.forwardProps,m=t.children,g=t.className,h=t.removeScrollBar,y=t.enabled,x=t.shards,C=t.sideCar,R=t.noRelative,A=t.noIsolation,E=t.inert,M=t.allowPinchZoom,L=t.as,F=L===void 0?"div":L,P=t.gapMode,b=Rm(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=C,W=Tm([i,r]),te=on(on({},b),l);return I.createElement(I.Fragment,null,y&&I.createElement(D,{sideCar:sv,removeScrollBar:h,shards:x,noRelative:R,noIsolation:A,inert:E,setCallbacks:f,allowPinchZoom:!!M,lockRef:i,gapMode:P}),v?I.cloneElement(I.Children.only(m),on(on({},te),{ref:W})):I.createElement(F,on({},te,{className:g,ref:W}),m))});ja.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ja.classNames={fullWidth:pa,zeroRight:ha};var O0=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function A0(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var r=O0();return r&&t.setAttribute("nonce",r),t}function D0(t,r){t.styleSheet?t.styleSheet.cssText=r:t.appendChild(document.createTextNode(r))}function F0(t){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(t)}var $0=function(){var t=0,r=null;return{add:function(i){t==0&&(r=A0())&&(D0(r,i),F0(r)),t++},remove:function(){t--,!t&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},z0=function(){var t=$0();return function(r,i){I.useEffect(function(){return t.add(r),function(){t.remove()}},[r&&i])}},av=function(){var t=z0(),r=function(i){var s=i.styles,l=i.dynamic;return t(s,l),null};return r},U0={left:0,top:0,right:0,gap:0},Ou=function(t){return parseInt(t||"",10)||0},B0=function(t){var r=window.getComputedStyle(document.body),i=r[t==="padding"?"paddingLeft":"marginLeft"],s=r[t==="padding"?"paddingTop":"marginTop"],l=r[t==="padding"?"paddingRight":"marginRight"];return[Ou(i),Ou(s),Ou(l)]},H0=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return U0;var r=B0(t),i=document.documentElement.clientWidth,s=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,s-i+r[2]-r[0])}},W0=av(),yi="data-scroll-locked",V0=function(t,r,i,s){var l=t.left,f=t.top,v=t.right,m=t.gap;return i===void 0&&(i="margin"),`
|
|
42
|
-
.`.concat(M0,` {
|
|
43
|
-
overflow: hidden `).concat(s,`;
|
|
44
|
-
padding-right: `).concat(m,"px ").concat(s,`;
|
|
45
|
-
}
|
|
46
|
-
body[`).concat(yi,`] {
|
|
47
|
-
overflow: hidden `).concat(s,`;
|
|
48
|
-
overscroll-behavior: contain;
|
|
49
|
-
`).concat([r&&"position: relative ".concat(s,";"),i==="margin"&&`
|
|
50
|
-
padding-left: `.concat(l,`px;
|
|
51
|
-
padding-top: `).concat(f,`px;
|
|
52
|
-
padding-right: `).concat(v,`px;
|
|
53
|
-
margin-left:0;
|
|
54
|
-
margin-top:0;
|
|
55
|
-
margin-right: `).concat(m,"px ").concat(s,`;
|
|
56
|
-
`),i==="padding"&&"padding-right: ".concat(m,"px ").concat(s,";")].filter(Boolean).join(""),`
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.`).concat(ha,` {
|
|
60
|
-
right: `).concat(m,"px ").concat(s,`;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.`).concat(pa,` {
|
|
64
|
-
margin-right: `).concat(m,"px ").concat(s,`;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.`).concat(ha," .").concat(ha,` {
|
|
68
|
-
right: 0 `).concat(s,`;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.`).concat(pa," .").concat(pa,` {
|
|
72
|
-
margin-right: 0 `).concat(s,`;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
body[`).concat(yi,`] {
|
|
76
|
-
`).concat(L0,": ").concat(m,`px;
|
|
77
|
-
}
|
|
78
|
-
`)},Tp=function(){var t=parseInt(document.body.getAttribute(yi)||"0",10);return isFinite(t)?t:0},q0=function(){I.useEffect(function(){return document.body.setAttribute(yi,(Tp()+1).toString()),function(){var t=Tp()-1;t<=0?document.body.removeAttribute(yi):document.body.setAttribute(yi,t.toString())}},[])},K0=function(t){var r=t.noRelative,i=t.noImportant,s=t.gapMode,l=s===void 0?"margin":s;q0();var f=I.useMemo(function(){return H0(l)},[l]);return I.createElement(W0,{styles:V0(f,!r,l,i?"":"!important")})},ac=!1;if(typeof window<"u")try{var ia=Object.defineProperty({},"passive",{get:function(){return ac=!0,!0}});window.addEventListener("test",ia,ia),window.removeEventListener("test",ia,ia)}catch{ac=!1}var ui=ac?{passive:!1}:!1,Q0=function(t){return t.tagName==="TEXTAREA"},lv=function(t,r){if(!(t instanceof Element))return!1;var i=window.getComputedStyle(t);return i[r]!=="hidden"&&!(i.overflowY===i.overflowX&&!Q0(t)&&i[r]==="visible")},G0=function(t){return lv(t,"overflowY")},Y0=function(t){return lv(t,"overflowX")},Rp=function(t,r){var i=r.ownerDocument,s=r;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var l=uv(t,s);if(l){var f=cv(t,s),v=f[1],m=f[2];if(v>m)return!0}s=s.parentNode}while(s&&s!==i.body);return!1},Z0=function(t){var r=t.scrollTop,i=t.scrollHeight,s=t.clientHeight;return[r,i,s]},X0=function(t){var r=t.scrollLeft,i=t.scrollWidth,s=t.clientWidth;return[r,i,s]},uv=function(t,r){return t==="v"?G0(r):Y0(r)},cv=function(t,r){return t==="v"?Z0(r):X0(r)},J0=function(t,r){return t==="h"&&r==="rtl"?-1:1},ex=function(t,r,i,s,l){var f=J0(t,window.getComputedStyle(r).direction),v=f*s,m=i.target,g=r.contains(m),h=!1,y=v>0,x=0,C=0;do{if(!m)break;var R=cv(t,m),A=R[0],E=R[1],M=R[2],L=E-M-f*A;(A||L)&&uv(t,m)&&(x+=L,C+=A);var F=m.parentNode;m=F&&F.nodeType===Node.DOCUMENT_FRAGMENT_NODE?F.host:F}while(!g&&m!==document.body||g&&(r.contains(m)||r===m));return(y&&Math.abs(x)<1||!y&&Math.abs(C)<1)&&(h=!0),h},oa=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Np=function(t){return[t.deltaX,t.deltaY]},Ip=function(t){return t&&"current"in t?t.current:t},tx=function(t,r){return t[0]===r[0]&&t[1]===r[1]},nx=function(t){return`
|
|
79
|
-
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
80
|
-
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
81
|
-
`)},rx=0,ci=[];function ix(t){var r=I.useRef([]),i=I.useRef([0,0]),s=I.useRef(),l=I.useState(rx++)[0],f=I.useState(av)[0],v=I.useRef(t);I.useEffect(function(){v.current=t},[t]),I.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(l));var E=C1([t.lockRef.current],(t.shards||[]).map(Ip),!0).filter(Boolean);return E.forEach(function(M){return M.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),E.forEach(function(M){return M.classList.remove("allow-interactivity-".concat(l))})}}},[t.inert,t.lockRef.current,t.shards]);var m=I.useCallback(function(E,M){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!v.current.allowPinchZoom;var L=oa(E),F=i.current,P="deltaX"in E?E.deltaX:F[0]-L[0],b="deltaY"in E?E.deltaY:F[1]-L[1],D,W=E.target,te=Math.abs(P)>Math.abs(b)?"h":"v";if("touches"in E&&te==="h"&&W.type==="range")return!1;var Z=window.getSelection(),se=Z&&Z.anchorNode,de=se?se===W||se.contains(W):!1;if(de)return!1;var X=Rp(te,W);if(!X)return!0;if(X?D=te:(D=te==="v"?"h":"v",X=Rp(te,W)),!X)return!1;if(!s.current&&"changedTouches"in E&&(P||b)&&(s.current=D),!D)return!0;var Re=s.current||D;return ex(Re,M,E,Re==="h"?P:b)},[]),g=I.useCallback(function(E){var M=E;if(!(!ci.length||ci[ci.length-1]!==f)){var L="deltaY"in M?Np(M):oa(M),F=r.current.filter(function(D){return D.name===M.type&&(D.target===M.target||M.target===D.shadowParent)&&tx(D.delta,L)})[0];if(F&&F.should){M.cancelable&&M.preventDefault();return}if(!F){var P=(v.current.shards||[]).map(Ip).filter(Boolean).filter(function(D){return D.contains(M.target)}),b=P.length>0?m(M,P[0]):!v.current.noIsolation;b&&M.cancelable&&M.preventDefault()}}},[]),h=I.useCallback(function(E,M,L,F){var P={name:E,delta:M,target:L,should:F,shadowParent:ox(L)};r.current.push(P),setTimeout(function(){r.current=r.current.filter(function(b){return b!==P})},1)},[]),y=I.useCallback(function(E){i.current=oa(E),s.current=void 0},[]),x=I.useCallback(function(E){h(E.type,Np(E),E.target,m(E,t.lockRef.current))},[]),C=I.useCallback(function(E){h(E.type,oa(E),E.target,m(E,t.lockRef.current))},[]);I.useEffect(function(){return ci.push(f),t.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:C}),document.addEventListener("wheel",g,ui),document.addEventListener("touchmove",g,ui),document.addEventListener("touchstart",y,ui),function(){ci=ci.filter(function(E){return E!==f}),document.removeEventListener("wheel",g,ui),document.removeEventListener("touchmove",g,ui),document.removeEventListener("touchstart",y,ui)}},[]);var R=t.removeScrollBar,A=t.inert;return I.createElement(I.Fragment,null,A?I.createElement(f,{styles:nx(l)}):null,R?I.createElement(K0,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function ox(t){for(var r=null;t!==null;)t instanceof ShadowRoot&&(r=t.host,t=t.host),t=t.parentNode;return r}const sx=_1(sv,ix);var Uc=I.forwardRef(function(t,r){return I.createElement(ja,on({},t,{ref:r,sideCar:sx}))});Uc.classNames=ja.classNames;var dv=function(t){if(typeof document>"u")return null;var r=Array.isArray(t)?t[0]:t;return r.ownerDocument.body},di=new WeakMap,sa=new WeakMap,aa={},Au=0,fv=function(t){return t&&(t.host||fv(t.parentNode))},ax=function(t,r){return r.map(function(i){if(t.contains(i))return i;var s=fv(i);return s&&t.contains(s)?s:(console.error("aria-hidden",i,"in not contained inside",t,". Doing nothing"),null)}).filter(function(i){return!!i})},hv=function(t,r,i,s){var l=ax(r,Array.isArray(t)?t:[t]);aa[i]||(aa[i]=new WeakMap);var f=aa[i],v=[],m=new Set,g=new Set(l),h=function(x){!x||m.has(x)||(m.add(x),h(x.parentNode))};l.forEach(h);var y=function(x){!x||g.has(x)||Array.prototype.forEach.call(x.children,function(C){if(m.has(C))y(C);else try{var R=C.getAttribute(s),A=R!==null&&R!=="false",E=(di.get(C)||0)+1,M=(f.get(C)||0)+1;di.set(C,E),f.set(C,M),v.push(C),E===1&&A&&sa.set(C,!0),M===1&&C.setAttribute(i,"true"),A||C.setAttribute(s,"true")}catch(L){console.error("aria-hidden: cannot operate on ",C,L)}})};return y(r),m.clear(),Au++,function(){v.forEach(function(x){var C=di.get(x)-1,R=f.get(x)-1;di.set(x,C),f.set(x,R),C||(sa.has(x)||x.removeAttribute(s),sa.delete(x)),R||x.removeAttribute(i)}),Au--,Au||(di=new WeakMap,di=new WeakMap,sa=new WeakMap,aa={})}},lx=function(t,r,i){i===void 0&&(i="data-aria-hidden");var s=Array.from(Array.isArray(t)?t:[t]),l=r||dv(t);return l?(s.push.apply(s,Array.from(l.querySelectorAll("[aria-live], script"))),hv(s,l,i,"aria-hidden")):function(){return null}},ux=function(t,r,i){i===void 0&&(i="data-inert-ed");var s=r||dv(t);return s?hv(t,s,i,"inert"):function(){return null}},cx=function(){return typeof HTMLElement<"u"&&HTMLElement.prototype.hasOwnProperty("inert")},dx=function(t,r,i){return i===void 0&&(i="data-suppressed"),(cx()?ux:lx)(t,r,i)};let Rr=[];const lc=new Set;function pv(){lc.forEach(t=>t())}function fx(t){Rr=Rr.filter(r=>r!==t),Rr.push(t),pv()}function hx(t){Rr=Rr.filter(r=>r!==t),pv()}function Du(t){return Rr[Rr.length-1]===t}function mv(t,r,i){const s=I.useRef(i),l=I.useRef(null),[f,v]=I.useState(!1);I.useEffect(()=>{s.current=i},[i]);const m=I.useCallback(()=>{const h=l.current;l.current=null,h&&document.contains(h)&&h.focus({preventScroll:!0})},[]),g=I.useCallback(()=>{s.current()},[]);return I.useEffect(()=>{if(!t)return;const h=r.current;if(!h)return;const y=h;l.current=document.activeElement instanceof HTMLElement?document.activeElement:null,fx(y),v(Du(y));function x(){v(Du(y))}function C(R){if(!Du(y))return;const A=R.target instanceof Element?R.target:null,E=A==null?void 0:A.closest('[role="dialog"]');E&&E!==y&&!y.contains(E)||R.key==="Escape"&&(R.preventDefault(),R.stopPropagation(),R.stopImmediatePropagation(),g())}return lc.add(x),window.addEventListener("keydown",C,!0),()=>{window.removeEventListener("keydown",C,!0),lc.delete(x),hx(y),m()}},[g,t,r,m]),I.useEffect(()=>{var x,C;if(!t||!f)return;const h=r.current;if(!h)return;const y=((C=(x=h.parentElement)==null?void 0:x.parentElement)==null?void 0:C.querySelectorAll("[data-focus-guard]"))??[];return dx([h,...y])},[t,f,r]),{closeDialog:g,isTopDialog:f}}const px={sm:"24rem",md:"28.75rem",lg:"35rem",xl:"52rem"};function mx(){return d.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:d.jsx("path",{d:"M4 4L12 12M12 4L4 12",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})})}function vv({bodyClassName:t,children:r,className:i,closeLabel:s="Close",eyebrow:l,footer:f,isOpen:v,onClose:m,overlayClassName:g,size:h="md",subtitle:y,title:x}){const C=I.useRef(null),R=I.useId(),A=I.useId(),{closeDialog:E,isTopDialog:M}=mv(v,C,m);if(!v)return null;const L=["as-modal-overlay",g].filter(Boolean).join(" "),F=["as-modal",`as-modal--${h}`,i].filter(Boolean).join(" "),P=["as-modal__body",t].filter(Boolean).join(" "),b={"--as-modal-width":px[h]};return d.jsx("div",{className:L,role:"presentation",onMouseDown:E,children:d.jsx(Uc,{allowPinchZoom:!0,className:"as-modal__scroll-lock",enabled:M,style:b,children:d.jsx(zc,{autoFocus:!0,className:"as-modal__focus-lock",disabled:!M,focusOptions:{preventScroll:!0},returnFocus:!1,children:d.jsxs("div",{"aria-describedby":y?A:void 0,"aria-hidden":M?void 0:!0,"aria-labelledby":R,"aria-modal":M?"true":void 0,className:F,ref:C,role:"dialog",tabIndex:-1,onMouseDown:D=>D.stopPropagation(),children:[d.jsxs("header",{className:"as-modal__header",children:[d.jsxs("div",{className:"as-modal__titles",children:[l&&d.jsx("div",{className:"as-modal__eyebrow",children:l}),d.jsx("h2",{className:"as-modal__title",id:R,children:x}),y&&d.jsx("p",{className:"as-modal__subtitle",id:A,children:y})]}),d.jsx(vx,{label:s,className:"as-modal__close",onClick:E,children:d.jsx(mx,{})})]}),d.jsx("div",{className:P,children:r}),f&&d.jsx("footer",{className:"as-modal__footer",children:f})]})})})})}function vx({children:t,className:r,label:i,onClick:s}){return d.jsx("button",{type:"button",className:r,onClick:s,"aria-label":i,children:t})}function gx(t){return t instanceof Error?t.message:typeof t=="string"?t:t&&typeof t=="object"&&"message"in t&&typeof t.message=="string"?t.message:"Something went wrong."}function gv({isOpen:t,title:r,body:i,confirmLabel:s="Confirm",cancelLabel:l="Cancel",busyLabel:f="Working…",tone:v="danger",busy:m,error:g,errorTitle:h="That did not work",confirmDisabled:y,onConfirm:x,onClose:C}){return d.jsx(vv,{isOpen:t,onClose:m?()=>{}:C,title:r,size:"sm",children:d.jsxs("div",{className:"as-confirm",children:[d.jsx("div",{className:"as-confirm__body",children:i}),g?d.jsx(lt,{tone:"danger",title:h,children:gx(g)}):null,d.jsxs("div",{className:"as-confirm__actions",children:[d.jsx(Ee,{variant:"ghost",onClick:C,disabled:m,children:l}),d.jsx(Ee,{variant:v,onClick:x,disabled:m||y,children:m?f:s})]})]})})}function Ho({children:t,className:r,label:i,size:s="md",type:l="button",...f}){const v=["as-icon-button",s==="sm"?"as-icon-button--sm":null,r].filter(Boolean).join(" ");return d.jsx("button",{type:l,className:v,"aria-label":i,title:f.title??i,...f,children:t})}async function yv(t){try{return await navigator.clipboard.writeText(t),!0}catch{return!1}}function Mp(){return d.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[d.jsx("rect",{x:"9",y:"9",width:"12",height:"12",rx:"2"}),d.jsx("path",{d:"M5 15V5a2 2 0 0 1 2-2h10"})]})}function Lp(){return d.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:d.jsx("path",{d:"m5 12 5 5L20 7"})})}function Bc({value:t,label:r="Copy",copiedLabel:i="Copied",size:s="sm",variant:l="outline",className:f,iconOnly:v,onCopied:m}){const[g,h]=I.useState(!1),y=I.useRef(void 0);I.useEffect(()=>()=>window.clearTimeout(y.current),[]);const x=async()=>{await yv(t)&&(h(!0),m==null||m(),window.clearTimeout(y.current),y.current=window.setTimeout(()=>h(!1),1500))};return v?d.jsx(Ho,{label:g?i:r,size:"sm",className:f,onClick:()=>void x(),children:g?d.jsx(Lp,{}):d.jsx(Mp,{})}):d.jsx(Ee,{variant:l,size:s,className:f,leadingIcon:g?d.jsx(Lp,{}):d.jsx(Mp,{}),"aria-live":"polite",onClick:()=>void x(),children:g?i:r})}function yx(){return d.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:d.jsx("path",{d:"M4 4L12 12M12 4L4 12",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})})}function wx({backdropClassName:t,bodyClassName:r,children:i,className:s,closeLabel:l="Close",eyebrow:f,isOpen:v,onClose:m,side:g="right",subtitle:h,title:y}){const x=I.useRef(null),C=I.useId(),R=I.useId(),{closeDialog:A,isTopDialog:E}=mv(v,x,m),M=v&&E,L=["as-drawer-backdrop",v?"as-drawer-backdrop--open":null,t].filter(Boolean).join(" "),F=["as-drawer",`as-drawer--${g}`,v?"as-drawer--open":null,s].filter(Boolean).join(" "),P=["as-drawer__body",r].filter(Boolean).join(" ");return I.useEffect(()=>{if(!v||!E)return;function b(D){const W=x.current;W&&(D.target instanceof Node&&W.contains(D.target)||D.target instanceof Element&&D.target.closest('[role="dialog"], [role="menu"]')!==null||A())}return document.addEventListener("pointerdown",b,!0),()=>document.removeEventListener("pointerdown",b,!0)},[A,v,E]),d.jsxs(d.Fragment,{children:[d.jsx("div",{"aria-hidden":!v,className:L,onClick:A}),d.jsx(Uc,{allowPinchZoom:!0,className:"as-drawer__scroll-lock",enabled:v&&E,children:d.jsx(zc,{autoFocus:!0,className:"as-drawer__focus-lock",disabled:!v||!E,focusOptions:{preventScroll:!0},returnFocus:!1,children:d.jsxs("aside",{"aria-describedby":h?R:void 0,"aria-hidden":M?void 0:!0,"aria-labelledby":C,"aria-modal":M?"true":void 0,className:F,ref:x,role:"dialog",tabIndex:-1,children:[d.jsxs("header",{className:"as-drawer__header",children:[d.jsxs("div",{className:"as-drawer__titles",children:[f&&d.jsx("div",{className:"as-drawer__eyebrow",children:f}),d.jsx("h2",{className:"as-drawer__title",id:C,children:y}),h&&d.jsx("p",{className:"as-drawer__subtitle",id:R,children:h})]}),d.jsx("button",{type:"button",className:"as-drawer__close",onClick:A,"aria-label":l,children:d.jsx(yx,{})})]}),d.jsx("div",{className:P,children:i})]})})})]})}const xx=["M42.4461 10.2767H39.6752L35.9506 25.7053H38.2537L39.0994 21.902H43.0219L43.8495 25.7053H46.1346L42.4821 10.4203L42.4461 10.2767ZM42.59 19.9286H39.5132L41.0426 12.7525L42.59 19.9286Z","M53.9616 22.494L50.8668 10.2767H47.4841V25.7053H49.5893V13.506L52.6301 25.5618L52.6661 25.7053H56.0667V10.2767H53.9616V22.494Z","M57.7221 12.2681H61.1588V25.7053H63.3899V12.2681H66.8265V10.2767H57.7221V12.2681Z","M72.0265 16.7173H71.3788C70.9649 16.7173 70.6411 16.5917 70.3892 16.3226C70.1373 16.0535 70.0113 15.7485 70.0113 15.3359V13.7033C70.0113 13.3086 70.1552 12.9678 70.4611 12.6987C70.767 12.4116 71.1449 12.2681 71.6307 12.2681H75.1213V10.2767H71.8466C70.5511 10.2767 69.5435 10.5997 68.8418 11.2455C68.14 11.8914 67.7802 12.8601 67.7802 14.116V14.9412C67.7802 16.1791 68.104 17.1299 68.7518 17.7937C69.3995 18.4575 70.2992 18.7804 71.4148 18.7804H72.0625C72.4583 18.7804 72.7462 18.888 72.9262 19.1213C73.1241 19.3545 73.214 19.6595 73.214 20.0542V22.2967C73.214 22.6914 73.0701 23.0322 72.7642 23.3013C72.4583 23.5884 72.0805 23.7319 71.5947 23.7319H68.14V25.7233H71.3788C72.6743 25.7233 73.6819 25.4003 74.3836 24.7545C75.0853 24.1086 75.4452 23.1399 75.4452 21.8841V20.4668C75.4452 19.2289 75.1393 18.296 74.5455 17.6681C73.9518 17.0402 73.0881 16.7352 72.0265 16.7352V16.7173Z","M77.0825 25.7053H84.6576V23.7857H79.3317V18.7086H84.1178V16.7711H79.3317V12.2143H84.6576V10.2767H77.0825V25.7053Z","M86.3129 25.7053H93.888V23.7857H88.544V18.7086H93.3482V16.7711H88.544V12.2143H93.888V10.2767H86.3129V25.7053Z","M102.938 11.102C102.255 10.5459 101.211 10.2767 99.8976 10.2767H95.5253V25.7053H100.149C101.499 25.7053 102.489 25.4362 103.082 24.8801C103.694 24.3239 104 23.409 104 22.1173V13.811C104 12.5731 103.64 11.6581 102.938 11.102ZM100.347 23.7319H97.7564V12.2502H100.365C100.797 12.2502 101.121 12.3758 101.391 12.6269C101.643 12.8781 101.769 13.201 101.769 13.6316V22.3505C101.769 22.8349 101.661 23.1937 101.427 23.409C101.211 23.6243 100.833 23.7319 100.347 23.7319Z"],wv=["M12.5827 3.84445C13.2032 3.84445 13.7062 3.34146 13.7062 2.72099C13.7062 2.10052 13.2032 1.59753 12.5827 1.59753C11.9623 1.59753 11.4593 2.10052 11.4593 2.72099C11.4593 3.34146 11.9623 3.84445 12.5827 3.84445Z","M23.3679 3.84445C23.9884 3.84445 24.4914 3.34146 24.4914 2.72099C24.4914 2.10052 23.9884 1.59753 23.3679 1.59753C22.7474 1.59753 22.2445 2.10052 22.2445 2.72099C22.2445 3.34146 22.7474 3.84445 23.3679 3.84445Z","M8.0889 11.0346C8.70936 11.0346 9.21235 10.5316 9.21235 9.91112C9.21235 9.29065 8.70936 8.78766 8.0889 8.78766C7.46843 8.78766 6.96544 9.29065 6.96544 9.91112C6.96544 10.5316 7.46843 11.0346 8.0889 11.0346Z","M27.8617 11.0346C28.4822 11.0346 28.9852 10.5316 28.9852 9.91112C28.9852 9.29065 28.4822 8.78766 27.8617 8.78766C27.2413 8.78766 26.7383 9.29065 26.7383 9.91112C26.7383 10.5316 27.2413 11.0346 27.8617 11.0346Z","M6.29136 19.1235C6.91183 19.1235 7.41482 18.6205 7.41482 18C7.41482 17.3795 6.91183 16.8766 6.29136 16.8766C5.6709 16.8766 5.16791 17.3795 5.16791 18C5.16791 18.6205 5.6709 19.1235 6.29136 19.1235Z","M29.6593 19.1235C30.2797 19.1235 30.7827 18.6205 30.7827 18C30.7827 17.3795 30.2797 16.8766 29.6593 16.8766C29.0388 16.8766 28.5358 17.3795 28.5358 18C28.5358 18.6205 29.0388 19.1235 29.6593 19.1235Z","M7.19014 28.1111C7.81061 28.1111 8.31359 27.6081 8.31359 26.9877C8.31359 26.3672 7.81061 25.8642 7.19014 25.8642C6.56967 25.8642 6.06668 26.3672 6.06668 26.9877C6.06668 27.6081 6.56967 28.1111 7.19014 28.1111Z","M28.7605 28.1111C29.381 28.1111 29.884 27.6081 29.884 26.9877C29.884 26.3672 29.381 25.8642 28.7605 25.8642C28.14 25.8642 27.6371 26.3672 27.6371 26.9877C27.6371 27.6081 28.14 28.1111 28.7605 28.1111Z","M17.9753 12.3827C19.2163 12.3827 20.2222 11.2762 20.2222 9.91112C20.2222 8.54609 19.2163 7.43951 17.9753 7.43951C16.7344 7.43951 15.7284 8.54609 15.7284 9.91112C15.7284 11.2762 16.7344 12.3827 17.9753 12.3827Z","M17.9753 19.7975C19.7126 19.7975 21.121 18.188 21.121 16.2025C21.121 14.217 19.7126 12.6074 17.9753 12.6074C16.238 12.6074 14.8296 14.217 14.8296 16.2025C14.8296 18.188 16.238 19.7975 17.9753 19.7975Z","M17.9753 30.1333C20.209 30.1333 22.0198 27.719 22.0198 24.7408C22.0198 21.7625 20.209 19.3482 17.9753 19.3482C15.7416 19.3482 13.9309 21.7625 13.9309 24.7408C13.9309 27.719 15.7416 30.1333 17.9753 30.1333Z","M12.3264 2.40809C12.4993 2.26669 12.7542 2.29198 12.8956 2.4647L16.9401 7.40792C17.0815 7.58074 17.0562 7.83563 16.8835 7.9771C16.7106 8.1185 16.4558 8.09322 16.3143 7.92049L12.2698 2.97728C12.1284 2.80446 12.1537 2.54957 12.3264 2.40809Z","M23.055 2.4647C23.1965 2.29198 23.4514 2.26669 23.6242 2.40809C23.7969 2.54957 23.8222 2.80446 23.6808 2.97728L19.6364 7.92049C19.4949 8.09322 19.24 8.1185 19.0672 7.9771C18.8945 7.83563 18.8692 7.58074 19.0106 7.40792L23.055 2.4647Z","M7.73168 9.72198C7.83619 9.52458 8.08064 9.44939 8.27805 9.5539L15.9176 13.5983C16.1149 13.7029 16.1901 13.9473 16.0856 14.1447C15.9811 14.3421 15.7367 14.4173 15.5393 14.3128L7.89976 10.2683C7.70236 10.1638 7.62717 9.91938 7.73168 9.72198Z","M27.6726 9.5539C27.87 9.44939 28.1144 9.52458 28.219 9.72198C28.3235 9.91938 28.2483 10.1638 28.0509 10.2683L20.4114 14.3128C20.214 14.4173 19.9695 14.3421 19.865 14.1447C19.7605 13.9473 19.8357 13.7029 20.0331 13.5983L27.6726 9.5539Z","M14.7875 16.6988C15.0096 16.6756 15.2087 16.8371 15.2321 17.0591C15.2553 17.2812 15.0938 17.4803 14.8718 17.5037L6.3335 18.4024C6.11145 18.4257 5.91232 18.2642 5.88895 18.0421C5.8657 17.8201 6.02718 17.621 6.24924 17.5976L14.7875 16.6988Z","M21.1631 16.6988L29.7014 17.5976C29.9235 17.621 30.085 17.8201 30.0617 18.0421C30.0383 18.2642 29.8392 18.4257 29.6171 18.4024L21.0789 17.5037C20.8568 17.4803 20.6953 17.2812 20.7186 17.0591C20.742 16.8371 20.9411 16.6756 21.1631 16.6988Z","M15.1149 23.0231C15.319 22.9324 15.5578 23.0244 15.6485 23.2285C15.7392 23.4326 15.6472 23.6714 15.4432 23.7621L7.35427 27.3572C7.15017 27.4478 6.91133 27.3559 6.82063 27.1518C6.72997 26.9477 6.82192 26.7089 7.02601 26.6182L15.1149 23.0231Z","M20.3021 23.2285C20.3928 23.0244 20.6316 22.9324 20.8357 23.0231L28.9246 26.6182C29.1287 26.7089 29.2207 26.9477 29.13 27.1518C29.0393 27.3559 28.8005 27.4478 28.5964 27.3572L20.5075 23.7621C20.3034 23.6714 20.2114 23.4326 20.3021 23.2285Z"],xv="#10B981";function kx({height:t=24,className:r}){return d.jsxs("svg",{className:r,height:t,width:t*104/36,viewBox:"0 0 104 36",fill:"none",role:"img","aria-label":"Antseed",children:[wv.map(i=>d.jsx("path",{d:i,fill:xv},i)),xx.map(i=>d.jsx("path",{d:i,fill:"currentColor"},i))]})}function Sx({size:t=24,className:r}){return d.jsx("svg",{className:r,height:t,width:t,viewBox:"4 0 28 32",fill:"none",role:"img","aria-label":"Antseed",children:wv.map(i=>d.jsx("path",{d:i,fill:xv},i))})}function Lo({className:t,height:r,radius:i,style:s,width:l,...f}){const v=["as-skeleton",t].filter(Boolean).join(" ");return d.jsx("div",{className:v,style:{...s,...r!==void 0?{height:r}:{},...i!==void 0?{borderRadius:i}:{},...l!==void 0?{width:l}:{}},...f})}function US({title:t,description:r,actions:i}){return d.jsxs("header",{className:"as-page-header",children:[d.jsxs("div",{className:"as-page-header__text",children:[d.jsx("h1",{children:t}),r&&d.jsx("p",{children:r})]}),i&&d.jsx("div",{className:"as-page-header__actions",children:i})]})}function Cx({title:t,description:r,actions:i,children:s,flush:l,className:f}){return d.jsxs("section",{className:["as-panel",f].filter(Boolean).join(" "),children:[(t||i)&&d.jsxs("div",{className:"as-panel__head",children:[d.jsxs("div",{children:[t&&d.jsx("h2",{className:"as-panel__title",children:t}),r&&d.jsx("p",{className:"as-panel__desc",children:r})]}),i&&d.jsx("div",{className:"as-panel__actions",children:i})]}),d.jsx(Pc,{className:"as-panel__card",children:d.jsx("div",{className:l?"as-panel__body as-panel__body--flush":"as-panel__body",children:s})})]})}function _x(t){return t!==null&&t>=1?"danger":t!==null&&t>=.8?"warning":"default"}function BS({label:t,value:r,sub:i,meter:s,tone:l}){const f=s==null?null:Math.max(0,Math.min(1,s));return d.jsxs(Pc,{className:"as-stat",children:[d.jsx("div",{className:"as-stat__label",children:t}),d.jsx("div",{className:"as-stat__value",children:r}),i&&d.jsx("div",{className:"as-stat__sub",children:i}),f!==null&&d.jsx("div",{className:`as-meter as-meter--${l??_x(f)}`,role:"meter","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(f*100),children:d.jsx("span",{style:{width:`${f*100}%`}})})]})}function HS({title:t,body:r,action:i,icon:s}){return d.jsxs("div",{className:"as-empty",children:[s&&d.jsx("div",{className:"as-empty__icon","aria-hidden":"true",children:s}),d.jsx("div",{className:"as-empty__title",children:t}),r&&d.jsx("div",{className:"as-empty__body",children:r}),i&&d.jsx("div",{className:"as-empty__action",children:i})]})}function Mi({rows:t=4,height:r=28}){return d.jsx("div",{className:"as-loading","aria-busy":"true","aria-label":"Loading",children:Array.from({length:t},(i,s)=>d.jsx(Lo,{height:r},s))})}function Ex({items:t}){return d.jsx("dl",{className:"as-details",children:t.map(([r,i],s)=>d.jsxs("div",{className:"as-details__row",children:[d.jsx("dt",{children:r}),d.jsx("dd",{children:i})]},s))})}function Px({code:t,label:r}){return d.jsxs("div",{className:"as-code",children:[d.jsxs("div",{className:"as-code__bar",children:[d.jsx("span",{className:"as-code__label",children:r}),d.jsx(Bc,{value:t})]}),d.jsx("pre",{children:d.jsx("code",{children:t})})]})}function WS({secret:t,note:r="Copy it now. It will not be shown again."}){return d.jsxs("div",{className:"as-secret",children:[d.jsxs("div",{className:"as-secret__row",children:[d.jsx("code",{className:"as-secret__value",children:t}),d.jsx(Bc,{value:t})]}),d.jsx("p",{className:"as-secret__note",children:r})]})}function jx(t,r){return["as-field",r==="sm"?"as-field--sm":null,t].filter(Boolean).join(" ")}function bx(t,r){return["as-field__input",t,r?"as-field__input--mono":null].filter(Boolean).join(" ")}function Tx({error:t,hint:r}){return t?d.jsx("span",{className:"as-field__error",children:t}):r?d.jsx("span",{className:"as-field__hint",children:r}):null}function Rx({className:t,error:r,hint:i,id:s,label:l,size:f,mono:v,...m}){const g=I.useId(),h=s??m.name??g;return d.jsxs("label",{className:jx(t,f),htmlFor:h,children:[l&&d.jsx("span",{className:"as-field__label",children:l}),d.jsx("input",{id:h,className:bx(void 0,v),"aria-invalid":r?!0:void 0,...m}),d.jsx(Tx,{error:r,hint:i})]})}const kv=I.createContext(()=>{});function Hc(){return I.useContext(kv)}let Nx=1;function Ix({children:t}){const[r,i]=I.useState([]),s=I.useCallback((l,f="success")=>{const v=Nx++;i(m=>[...m.slice(-3),{id:v,tone:f,text:l}]),window.setTimeout(()=>i(m=>m.filter(g=>g.id!==v)),4e3)},[]);return d.jsxs(kv.Provider,{value:s,children:[t,d.jsx("div",{className:"as-toasts",role:"status","aria-live":"polite",children:r.map(l=>d.jsx("div",{className:`as-toast as-toast--${l.tone}`,children:l.text},l.id))})]})}const Mx="/console/api",Lx="x-antseed-console";class ba extends Error{constructor(i,s,l,f={}){super(l);Su(this,"details");this.status=i,this.code=s,this.name="ConsoleApiError",this.details=f}}function Lr(t,r){return t instanceof ba&&(r===void 0||t.code===r)}const Op={buyer_policy_unsupported:"The buyer behind this gateway cannot apply routing policies yet. Update Antseed on the buyer host and restart it.",restart_unsupported:"The buyer cannot restart itself here. The change is saved; restart the buyer yourself to apply it.",reauth_required:"For this action, sign in again first.",config_unreadable:"The gateway could not read the buyer configuration file, so nothing was changed. Check the file on the gateway host.",operator_not_yours:"That wallet is not one of your sign-in methods. Add it as a sign-in method first, then authorize it.",reauth_wrong_member:"That passkey or wallet belongs to someone else. Confirm with one of your own sign-in methods.",reauth_unavailable:"You are signed in through Cloudflare Access, which cannot confirm this action. Sign in with a passkey or wallet instead (add one under Your sign-in methods first if you have none), then retry.",access_reauth_required:"Your Cloudflare Access sign-in is more than 5 minutes old. Sign out of Cloudflare Access, sign in again, then retry.",reauth_other_credential:"Confirm with a different passkey or wallet than the one you are making the operator, then retry.",session_required:"Only an organization admin signed in to the console can change the export endpoint or content logging. Management tokens cannot.",otlp_headers_required:"You changed the endpoint, so the saved header values are not sent to it. Enter the header values again.",empty_allow_list:"This allow list is empty, so no seller could serve. Confirm to save it anyway.",last_credential:"You cannot remove your only sign-in method, or you could not sign in again. Add another passkey or wallet first.",credential_exists:"This passkey or wallet is already registered.",update_unsupported:"This gateway cannot update itself from the console. Run the update command on its host.",update_in_progress:"An update is already running. Try again when it is done.",max_keys_reached:"You already have as many keys as you are allowed. Revoke one, or ask an admin to raise your limit."};function Ta(t){return t instanceof ba&&Object.hasOwn(Op,t.code)?Op[t.code]:t instanceof Error?t.message:typeof t=="string"?t:"Something went wrong."}function yr(t,r){return{...t,...r!=null&&r.confirmEmpty?{confirmEmpty:!0}:{},...r!=null&&r.acceptNarrowed?{acceptNarrowed:!0}:{}}}function la(t){if(!t)return"";const r=new URLSearchParams;for(const[s,l]of Object.entries(t))l==null||l===""||r.set(s,String(l));const i=r.toString();return i?`?${i}`:""}async function Ox(t){let r=`http_${t.status}`,i=t.statusText||`Request failed (${t.status})`,s={};try{const l=await t.json();l!=null&&l.error&&typeof l.error.code=="string"&&(r=l.error.code),l!=null&&l.error&&typeof l.error.message=="string"&&(i=l.error.message),l&&typeof l=="object"&&(s={...l.error,...l})}catch{}return new ba(t.status,r,i,s)}function Ax(t=(i,s)=>fetch(i,s),r=Mx){async function i(h,y,x={}){const C={accept:"application/json"};h!=="GET"&&h!=="HEAD"&&(C[Lx]="1");let A;x.body!==void 0&&(C["content-type"]="application/json",A=JSON.stringify(x.body));let E;try{E=await t(`${r}${y}${la(x.query)}`,{method:h,headers:C,body:A,credentials:"same-origin"})}catch{throw new ba(0,"network_error","Could not reach the gateway.")}if(!E.ok)throw await Ox(E);return E.status===204?void 0:(E.headers.get("content-type")??"").includes("json")?await E.json():await E.text()}const s=(h,y)=>i("GET",h,{query:y}),l=(h,y)=>i("POST",h,{body:y??{}}),f=(h,y)=>i("PATCH",h,{body:y}),v=(h,y)=>i("PUT",h,{body:y}),m=h=>i("DELETE",h),g=encodeURIComponent;return{request:i,auth:{config:()=>s("/auth/config"),me:()=>s("/auth/me"),setup:h=>l("/auth/setup",{token:h}),invite:h=>l("/auth/invite",{token:h}),passkeyRegisterOptions:h=>l("/auth/passkey/register/options",{enrollment:h}),passkeyRegisterVerify:(h,y)=>l("/auth/passkey/register/verify",{enrollment:y,response:h}),passkeyLoginOptions:()=>l("/auth/passkey/login/options",{}),passkeyLoginVerify:h=>l("/auth/passkey/login/verify",{response:h}),walletNonce:h=>l("/auth/wallet/nonce",{address:h}),walletVerify:(h,y,x)=>l("/auth/wallet/verify",{message:h,signature:y,enrollment:x}),oidcStartUrl:h=>`${r}/auth/oidc/start${la({enrollment:h})}`,oidcLinkUrl:()=>`${r}/auth/oidc/start?link=1`,reauthPasskeyOptions:()=>l("/auth/reauth/passkey/options",{}),reauthPasskeyVerify:h=>l("/auth/reauth/passkey/verify",{response:h}),reauthWalletNonce:h=>l("/auth/reauth/wallet/nonce",{address:h}),reauthWalletVerify:(h,y)=>l("/auth/reauth/wallet/verify",{message:h,signature:y}),apiKey:h=>l("/auth/api-key",{key:h}),logout:()=>l("/auth/logout")},members:{list:()=>s("/members"),update:(h,y,x)=>f(`/members/${g(h)}`,yr(y,x)),disable:h=>l(`/members/${g(h)}/disable`),enable:h=>l(`/members/${g(h)}/enable`),removeCredential:(h,y)=>m(`/members/${g(h)}/credentials/${g(y)}`)},invites:{list:()=>s("/invites"),create:h=>l("/invites",h),revoke:h=>m(`/invites/${g(h)}`)},workspaces:{list:()=>s("/workspaces"),get:h=>s(`/workspaces/${g(h)}`),create:(h,y)=>l("/workspaces",yr(h,y)),update:(h,y,x)=>f(`/workspaces/${g(h)}`,yr(y,x)),remove:h=>m(`/workspaces/${g(h)}`),members:h=>s(`/workspaces/${g(h)}/members`),setMember:(h,y,x)=>v(`/workspaces/${g(h)}/members/${g(y)}`,{role:x}),removeMember:(h,y)=>m(`/workspaces/${g(h)}/members/${g(y)}`)},keys:{list:(h={})=>s("/keys",h),create:(h,y)=>l("/keys",yr(h,y)),update:(h,y,x)=>f(`/keys/${g(h)}`,yr(y,x)),rotate:h=>l(`/keys/${g(h)}/rotate`),revoke:h=>l(`/keys/${g(h)}/revoke`)},adminTokens:{list:()=>s("/admin-tokens"),create:(h,y,x)=>l("/admin-tokens",{label:h,scope:y,...x!==void 0?{expiresInDays:x}:{}}),revoke:h=>m(`/admin-tokens/${g(h)}`)},usage:{report:h=>s("/usage",h),requests:h=>s("/requests",h),request:h=>s(`/requests/${g(h)}`),exportUrl:h=>`${r}/usage/export.csv${la(h)}`},audit:{list:h=>s("/audit",h)},wallet:{get:h=>s(`/workspaces/${g(h)}/wallet`),cardLink:(h,y,x)=>l(`/workspaces/${g(h)}/wallet/card-link`,{amountUsd:y,provider:x}),watch:(h,y)=>l(`/workspaces/${g(h)}/wallet/watch`,{mode:y}),deposits:h=>s(`/workspaces/${g(h)}/deposits`),addDeposit:(h,y)=>l(`/workspaces/${g(h)}/deposits`,{txHash:y}),approveDeposit:(h,y,x)=>v(`/workspaces/${g(h)}/deposits/${g(y)}/approval`,{note:x}),unapproveDeposit:(h,y)=>i("DELETE",`/workspaces/${g(h)}/deposits/${g(y)}/approval`),operator:(h,y=!1)=>s(`/workspaces/${g(h)}/wallet/operator`,{fresh:y?1:void 0}),operators:()=>s("/wallet/operators"),operatorSync:(h,y)=>l(`/workspaces/${g(h)}/wallet/operator/sync`,y?{txHash:y}:{}),operatorAuth:(h,y)=>l(`/workspaces/${g(h)}/wallet/operator-auth`,{operator:y}),channels:(h,y=!1,x=!1)=>s(`/workspaces/${g(h)}/channels`,{all:y?1:void 0,fresh:x?1:void 0}),closeChannel:(h,y)=>l(`/workspaces/${g(h)}/channels/close`,{peerId:y}),rewards:h=>s(`/workspaces/${g(h)}/rewards`),chain:()=>s("/chain")},chat:{models:h=>s("/chat/models",{workspace:h}),context:h=>s("/chat/context",{workspace:h}),threads:h=>s("/chat/threads",{workspace:h}),thread:(h,y)=>s(`/chat/threads/${g(y)}`,{workspace:h}),deleteThread:(h,y)=>m(`/chat/threads/${g(y)}${la({workspace:h})}`)},network:{peers:()=>s("/peers"),models:()=>s("/models"),routePreview:h=>s("/route-preview",h),gatewayPolicy:()=>s("/routing"),buyerLimits:()=>s("/routing/buyer-limits"),setGatewayPolicy:(h,y)=>i("PUT","/routing",{body:h,query:{confirmEmpty:y!=null&&y.confirmEmpty?1:void 0,acceptNarrowed:y!=null&&y.acceptNarrowed?1:void 0}}),peerLists:()=>s("/peer-lists"),createPeerList:h=>l("/peer-lists",h),updatePeerList:(h,y)=>f(`/peer-lists/${g(h)}`,y),removePeerList:h=>m(`/peer-lists/${g(h)}`)},presets:{list:h=>s("/presets",{workspace:h}),create:(h,y)=>l("/presets",yr(h,y)),update:(h,y,x)=>f(`/presets/${g(h)}`,yr(y,x)),remove:h=>m(`/presets/${g(h)}`)},settings:{status:()=>s("/status"),get:()=>s("/settings"),updateBuyer:h=>f("/settings/buyer",h),setObservability:h=>v("/settings/observability",h)},update:{get:()=>s("/update"),check:()=>l("/update/check"),apply:h=>l("/update",{action:h})}}}function Sv(t){return!!t&&"ownerRoutingPolicy"in t}const le=Ax();function Oi(t){return t.orgRole==="owner"||t.orgRole==="admin"}function Wc(t){return Oi(t)||t.workspaceRole==="admin"}const Vc=[{id:"overview",label:"Overview",group:"Workspace",access:"member"},{id:"chat",label:"Chat",group:"Workspace",access:"member"},{id:"activity",label:"Activity",group:"Workspace",access:"member"},{id:"logs",label:"Logs",group:"Workspace",access:"member"},{id:"keys",label:"Keys",group:"Workspace",access:"member"},{id:"presets",label:"Presets",group:"Workspace",access:"member"},{id:"wallet",label:"Wallet & Funding",group:"Money",access:"workspaceAdmin"},{id:"rewards",label:"Rewards",group:"Money",access:"workspaceAdmin"},{id:"staking",label:"Staking",group:"Money",access:"workspaceAdmin"},{id:"providers",label:"Providers",group:"Routing",access:"member"},{id:"models",label:"Models",group:"Routing",access:"member"},{id:"routing",label:"Routing",group:"Routing",access:"workspaceAdmin"},{id:"members",label:"Members",group:"Organization",access:"workspaceAdmin"},{id:"workspaces",label:"Workspaces",group:"Organization",access:"workspaceAdmin"},{id:"audit",label:"Audit log",group:"Organization",access:"orgAdmin"},{id:"settings",label:"Settings",group:"Organization",access:"orgAdmin"}];function qc(t,r){const i=Vc.find(s=>s.id===t);return i?i.access==="orgAdmin"?Oi(r):i.access==="workspaceAdmin"?Wc(r):!0:!1}function Dx(t){return Vc.filter(r=>qc(r.id,t))}function Fx(t,r){const i=t.me.workspaces.find(s=>s.workspace.id===r);return{orgRole:t.me.member.orgRole,workspaceRole:(i==null?void 0:i.role)??null}}const Kc={owner:"Owner",admin:"Admin",member:"Member"};function $x(t,r){return r?`${t}/${encodeURIComponent(r)}`:t}function zx(t){const r=t.join("/");return r===""?null:r}function Ux(t,r){return t==="network"?$x("providers",zx(r)):null}const Cv=I.createContext(null);function jn(){const t=I.useContext(Cv);if(!t)throw new Error("useConsole outside the console shell");return t}const _v="antseed-console-workspace";function Bx(){try{return localStorage.getItem(_v)}catch{return null}}function Hx(t){try{localStorage.setItem(_v,t)}catch{}}function Ap(t,r){const i=t.workspaces.map(s=>s.workspace);return i.find(s=>s.id===r)??i.find(s=>s.isDefault)??i[0]??null}function VS(){const{workspace:t,viewer:r,me:i}=jn();return Wc(r)?{workspace:t.id}:{workspace:t.id,member:i.member.id}}const uc="antseed-console-theme";function Ev(){try{const t=localStorage.getItem(uc);return t==="light"||t==="dark"?t:"system"}catch{return"system"}}function Wx(){const t=Ev();t!=="system"&&(document.documentElement.dataset.theme=t)}function Vx(){const[t,r]=I.useState(Ev);return I.useEffect(()=>{t==="system"?delete document.documentElement.dataset.theme:document.documentElement.dataset.theme=t;try{t==="system"?localStorage.removeItem(uc):localStorage.setItem(uc,t)}catch{}},[t]),[t,r]}function qS(){var r;const t=document.documentElement.dataset.theme;return t?t==="dark":((r=window.matchMedia)==null?void 0:r.call(window,"(prefers-color-scheme: dark)").matches)??!1}const Oo="/console";function qx(t){try{return decodeURIComponent(t)}catch{return t}}function Pv(t,r="",i=""){const l=(t.startsWith(Oo)?t.slice(Oo.length):t).split("/").filter(Boolean).map(qx);return{page:l[0]??"",rest:l.slice(1),query:new URLSearchParams(r),hash:i.replace(/^#/,"")}}function Dp(){return Pv(window.location.pathname,window.location.search,window.location.hash)}const cc=new Set;function Kt(t,r={}){const i=t.startsWith("/")?`${Oo}${t}`:`${Oo}/${t}`;r.replace?window.history.replaceState(null,"",i):window.history.pushState(null,"",i),cc.forEach(s=>s())}function Kx(t){return cc.add(t),window.addEventListener("popstate",t),()=>{cc.delete(t),window.removeEventListener("popstate",t)}}function Qc(){const[t,r]=I.useState(Dp);return I.useEffect(()=>Kx(()=>r(Dp())),[]),t}function Wo(t){return`${Oo}/${t.replace(/^\//,"")}`}function Gc(t){return r=>{r.defaultPrevented||r.button!==0||r.metaKey||r.ctrlKey||r.shiftKey||r.altKey||(r.preventDefault(),Kt(t))}}const Qx=6;function Xe(t){if(t==null||t==="")return 0;const r=Number(t);return Number.isFinite(r)?r:0}function Gx(t,r={}){if(t==null)return"—";const i=typeof t=="number"?t:Xe(t),s=i<0?"-":"",l=Math.abs(i);return r.compact&&l>=1e4?`${s}$${new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1}).format(l)}`:l!==0&&l<1e-4?`${s}<$0.0001`:l!==0&&l<.01?`${s}$${l.toFixed(4).replace(/0+$/,"").replace(/\.$/,"")}`:`${s}$${l.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function KS(t){const r=t.trim().replace(/^\$/,"").replace(/,/g,"");if(r==="")return null;const i=/^(\d+)(?:\.(\d{0,6}))?$/.exec(r);if(!i)throw new Error("Use a dollar amount like 5 or 12.50 (up to 6 decimals).");const s=i[1].replace(/^0+(?=\d)/,""),l=(i[2]??"").padEnd(Qx,"0");return`${s}.${l}`}function QS(t){return t==null?"":t.includes(".")?t.replace(/0+$/,"").replace(/\.$/,""):t}function Yx(t,r={}){return t==null||!Number.isFinite(t)?"—":r.compact&&Math.abs(t)>=1e4?new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1}).format(t):t.toLocaleString("en-US")}function GS(t){return Yx(t,{compact:!0})}function wi(t){return t==null?"—":t===0?"Free":t<.01?`$${t.toLocaleString("en-US",{maximumSignificantDigits:2})}`:`$${t.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:t<1?3:2})}`}function YS(t){return t?t.min===t.max?wi(t.min):`${t.min===0?"$0":wi(t.min)}–${wi(t.max)}`:"—"}function ZS(t){return t==null?"—":t>=1e3?`${(t/1e3).toFixed(t>=1e4?0:1)} s`:`${Math.round(t)} ms`}function XS(t){return t==null?"—":`${Math.round(t)} tok/s`}function JS(t){if(t==null)return"—";const r=Math.floor(t/6e4);if(r<1)return"<1 min";if(r<60)return`${r} min`;const i=Math.floor(r/60);return i<48?`${i} h ${r%60} min`:`${Math.floor(i/24)} d ${i%24} h`}function Zx(t){return t?new Date(t).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}function Xx(t){return t?new Date(t).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):"—"}function xa(t,r=Date.now()){if(!t)return"Never";const i=r-t,s=i<0,l=Math.abs(i),f=6e4,v=60*f,m=24*v;let g;if(l<f)return s?"in a moment":"just now";if(l<v)g=`${Math.round(l/f)} min`;else if(l<m)g=`${Math.round(l/v)} h`;else if(l<30*m)g=`${Math.round(l/m)} d`;else return Xx(t);return s?`in ${g}`:`${g} ago`}function an(t,r=6,i=4){return t?t.length<=r+i+1?t:`${t.slice(0,r)}…${t.slice(-i)}`:"—"}const jv=["daily","weekly","monthly","total"],eC={daily:"Daily",weekly:"Weekly",monthly:"Monthly",total:"Total"};function Jx(t){if(!t)return"No limits";const r={daily:"/day",weekly:"/week",monthly:"/month",total:" total"},i=jv.filter(s=>t[s]!==null).map(s=>`${Gx(t[s])}${r[s]}`);return i.length>0?i.join(" · "):"No limits"}function tC(t,r=Date.now()){const i=new Date(r),s=Date.UTC(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate());if(t==="daily")return s;if(t==="monthly")return Date.UTC(i.getUTCFullYear(),i.getUTCMonth(),1);const l=(i.getUTCDay()+6)%7;return s-l*864e5}const e2=15*6e4;function t2(t){return t.status==="active"||t.status==="open"||t.status==="closing"||t.status==="withdrawable"}function nC(t,r){return t.status==="withdrawable"?"withdraw":t.status!=="active"&&t.status!=="open"?"none":t.canCooperativeClose&&!r?"cooperative":"on-chain"}function n2(t){return t.closeRequestedAt===null?null:t.closeRequestedAt+e2}function r2(t,r=Date.now()){const i=Math.max(0,t-r);return i>=6e4?`${Math.ceil(i/6e4)} min`:`${Math.ceil(i/1e3)} s`}function rC(t,r=Date.now()){if(t.status==="closing"){const i=n2(t);return i===null?"closing":`closing · ${r2(i,r)} left`}return t.status==="withdrawable"?"ready to withdraw":t.status==="timedout"?"withdrawn":t.status}function iC(t){return t.status==="active"||t.status==="open"?"success":t.status==="withdrawable"?"warning":t.status==="closing"?"info":"neutral"}function i2(t){return Math.max(0,Xe(t.reserved)-Xe(t.spent))}function o2(t){const r=t.filter(i=>i.status==="withdrawable");return{count:r.length,amount:r.reduce((i,s)=>i+i2(s),0)}}function oC(t){return t.filter(t2).reduce((r,i)=>r+Math.max(0,Xe(i.spent)-Xe(i.settled??"0")),0)}function sC(t){return Xe(t.reserved)>0&&Xe(t.available)<=0&&Xe(t.walletUsdc)<=0}function s2(t){const r=Xe(t.walletUsdc);if(r<=0)return!1;const i=t.creditLimit===null?0:Xe(t.creditLimit),s=Math.max(0,i-Xe(t.available)-Xe(t.reserved));return!(i>0&&r>s)}function aC(t){const r=Xe(t.walletUsdc),i=t.creditLimit===null?0:Xe(t.creditLimit),s=Math.max(0,i-Xe(t.available)-Xe(t.reserved));return i>0&&r>s?"Credits are at or near the credit limit, so this USDC waits in the workspace wallet and tops the credits up as they are spent.":"This USDC is in the workspace wallet and moves into the credits automatically."}function lC(t){const r=t.toLowerCase();return r.includes("already in flight")?"A close request to this seller is still waiting for an answer (it gives up after a minute). Close on chain instead, or try again shortly.":r.includes("busy")||r.includes("still processing")?"The seller is still processing a request. Try again shortly, or close on chain.":r.includes("pending_auth")||r.includes("latest payment authorization")?"The seller is waiting for the latest payment authorization. Try again shortly, or close on chain.":r.includes("no_channel")||r.includes("no longer has this channel")?"The seller no longer has this channel open. It may already be settled; refresh the list, or close on chain.":r.includes("did not answer")||r.includes("not connected")||r.includes("could not be found")||r.includes("disconnected")?"The seller did not answer. Close on chain instead: it does not need the seller.":r.includes("does not support cooperative close")?"This seller does not support a cooperative close. Close on chain instead.":`${t} The channel is unchanged; close on chain instead.`}const a2={usdc:["usdc","USDC","usdcToken"],deposits:["deposits","AntseedDeposits","antseedDeposits"],usageRewards:["usageRewards","AntseedUsageRewards","UsageRewards"],channels:["channels","AntseedChannels","antseedChannels"]};function uC(t,r){if(!t)return null;const i=Object.entries(t.contracts);for(const s of a2[r]){const l=i.find(([f])=>f.toLowerCase()===s.toLowerCase());if(l&&/^0x[0-9a-fA-F]{40}$/.test(l[1]))return l[1]}return null}function Ao(t,r){return!!t&&!!r&&t.toLowerCase()===r.toLowerCase()}const l2="0x0000000000000000000000000000000000000000";function Yc(t){return!!t&&/^0x[0-9a-fA-F]{40}$/.test(t)&&t.toLowerCase()!==l2}function cC(t,r){return t!=null&&t.explorerUrl?`${t.explorerUrl.replace(/\/+$/,"")}/tx/${r}`:null}const Se={group:t=>[t],me:["me"],authConfig:["auth-config"],status:["status"],update:["update"],settings:["settings"],workspaces:["workspaces","list"],workspace:t=>["workspaces","detail",t],workspaceMembers:t=>["workspaces","members",t],members:["members","list"],invites:["invites"],keys:t=>["keys","list",t],usage:t=>["usage",t],requests:t=>["requests","list",t],request:t=>["requests","detail",t],audit:t=>["audit",t],wallet:t=>["wallet",t],deposits:t=>["deposits",t],channels:(t,r)=>["channels",t,r],operators:["wallet-operators"],rewards:t=>["rewards",t],chain:["chain"],chatModels:t=>["chat-models",t],chatContext:t=>["chat-context",t],chatThreads:t=>["chat-threads",t],chatThread:(t,r)=>["chat-thread",t,r],peers:["peers"],models:["models"],peerLists:["peer-lists"],gatewayPolicy:["routing","gateway"],buyerLimits:["routing","buyer-limits"],routePreview:t=>["routing","preview",t],presets:t=>["presets",t],adminTokens:["admin-tokens"]},dC=["routing","workspaces","members","keys","presets"];function u2(t,r=le){return{queryKey:Se.workspace(t),queryFn:()=>r.workspaces.get(t)}}function fC(t,r=!0){return Oe({...u2(t),enabled:r})}function hC(t=!0){return Oe({queryKey:Se.peers,queryFn:le.network.peers,staleTime:3e4,enabled:t})}function pC(){return Oe({queryKey:Se.models,queryFn:le.network.models,staleTime:3e4})}function mC(t=!0){return Oe({queryKey:Se.peerLists,queryFn:le.network.peerLists,staleTime:3e4,enabled:t})}function vC(){return Oe({queryKey:Se.workspaces,queryFn:le.workspaces.list})}function gC(t,r=!0){return Oe({queryKey:Se.workspaceMembers(t),queryFn:()=>le.workspaces.members(t),enabled:r})}function yC(t=!0){return Oe({queryKey:Se.members,queryFn:le.members.list,enabled:t})}function wC(){return Oe({queryKey:Se.invites,queryFn:le.invites.list})}function xC(t,r=!0){return Oe({queryKey:Se.keys(t),queryFn:()=>le.keys.list(t),enabled:r})}function kC(t,r=!0){return Oe({queryKey:Se.presets(t),queryFn:()=>le.presets.list(t),enabled:r})}function SC(t,r=!0){return Oe({queryKey:Se.wallet(t),queryFn:()=>le.wallet.get(t),enabled:r,refetchInterval:i=>i.state.data&&s2(i.state.data)?5e3:!1})}function CC(){return Oe({queryKey:Se.gatewayPolicy,queryFn:le.network.gatewayPolicy})}function _C(){return Oe({queryKey:Se.buyerLimits,queryFn:le.network.buyerLimits})}function EC(){return Oe({queryKey:Se.adminTokens,queryFn:le.adminTokens.list})}function c2(){return Oe({queryKey:Se.me,queryFn:le.auth.me})}function Zc(t=!0){return Oe({queryKey:Se.authConfig,queryFn:le.auth.config,enabled:t})}function Xc(){return Oe({queryKey:Se.status,queryFn:le.settings.status,refetchInterval:3e4})}function bv(t=!0){return Oe({queryKey:Se.update,queryFn:le.update.get,enabled:t,retry:!1,refetchInterval:r=>{var s,l;const i=(l=(s=r.state.data)==null?void 0:s.progress)==null?void 0:l.state;return i==="requested"||i==="running"?2e3:10*6e4}})}function PC(t=!0){return Oe({queryKey:Se.chain,queryFn:le.wallet.chain,staleTime:1/0,enabled:t})}function jC(t){const r=new Set;for(const i of t??[])for(const s of i.services)r.add(s.service);return[...r].sort()}const Tv=t=>["wallet-operator",t],Rv={get:(t,r=!1)=>le.wallet.operator(t,r),sync:(t,r)=>le.wallet.operatorSync(t,r),authorize:(t,r)=>le.wallet.operatorAuth(t,r)};function bC(t,r=!0){return Oe({queryKey:Tv(t),queryFn:()=>Rv.get(t),staleTime:3e4,enabled:r})}function d2(t=!0){return Oe({queryKey:Se.operators,queryFn:()=>le.wallet.operators(),staleTime:6e4,enabled:t})}function f2(t){return(t==null?void 0:t.relation)==="none"}function TC(t){const r=ln(),i=s=>{r.setQueryData(Tv(t),s),r.invalidateQueries({queryKey:Se.operators}),r.invalidateQueries({queryKey:Se.wallet(t)}),r.invalidateQueries({queryKey:Se.rewards(t)})};return{apply:i,refresh:async()=>i(await Rv.get(t,!0))}}function RC(t,r){const i=t.operator,s=an(i),l=Yc(i)&&Ao(r,i),f=v=>l?{canManage:!0,manageHint:null}:{canManage:!1,manageHint:`Only ${v} can transfer or remove it: connect ${s} to do so.`};switch(t.relation){case"none":return{tone:"warning",badge:"Not set",title:"No authorized wallet",summary:t.canAuthorize?"Authorize one of your wallets to withdraw funds and claim ANTS rewards. Requests keep working meanwhile.":"Nobody can withdraw funds or claim ANTS rewards until the organization owner authorizes a wallet.",body:t.canAuthorize?"Nobody can withdraw this workspace's funds or claim its ANTS rewards until you authorize one of your wallets. Requests keep working meanwhile.":"Nobody can withdraw this workspace's funds or claim its ANTS rewards until one is authorized. Only the organization owner can authorize a wallet; requests keep working meanwhile.",canAuthorize:t.canAuthorize,canManage:!1,manageHint:null,canLink:!1};case"self":return{tone:"info",badge:"Workspace wallet",title:"The workspace wallet authorizes itself",summary:"Withdrawals and rewards stay in the wallet the gateway holds.",body:"Withdrawals and rewards stay in the wallet the gateway holds. To hand the role to a personal wallet, run `antseed gateway workspace operator transfer <workspace> <address>` on the gateway host (the workspace wallet pays the gas).",canAuthorize:!1,canManage:!1,manageHint:null,canLink:!1};case"yours":return{tone:"success",badge:"Your wallet",title:`Your wallet ${s}`,summary:"Withdrawals and ANTS rewards go to this wallet, and only it can transfer or remove the role.",body:"Withdrawals and ANTS rewards go to this wallet, and only it can transfer or remove the role.",canAuthorize:!1,canLink:!1,...f("this wallet")};case"member":{const v=t.memberLabel?`${t.memberLabel}'s wallet`:"Another member's wallet";return{tone:"info",badge:t.memberLabel?t.memberLabel:"Member",title:`${v} ${s}`,summary:"Withdrawals and ANTS rewards go to this wallet, and only it can transfer or remove the role.",body:"Withdrawals and ANTS rewards go to this wallet, and only it can transfer or remove the role.",canAuthorize:!1,canLink:!1,...f(t.memberLabel?`${t.memberLabel}'s wallet`:"that member's wallet")}}case"unknown":return{tone:"info",badge:"Not linked to a console member",title:`Authorized wallet ${s}`,summary:"Withdrawals and ANTS rewards go to this wallet. If it is yours, link it to your account to manage it here.",body:"No member of this gateway signs in with this address, yet withdrawals and ANTS rewards go to it, and only it can transfer or remove the role: not the gateway, not the organization owner. If nobody on your team controls it, do not add more than you plan to spend (the gateway can still spend the balance on requests, but it cannot be withdrawn). Ask whoever controls it to transfer the role, or move to a new workspace with a fresh wallet.",canAuthorize:!1,canLink:!0,...f("that wallet")}}}function NC(t,r,i){if(!t)return{ok:!1,reason:"Checking the authorized wallet…",operator:null};const s=Yc(t.operator)?t.operator:null;return s?t.relation==="self"?{ok:!1,operator:s,reason:`This workspace's authorized wallet is the gateway-held wallet itself, so a browser wallet cannot ${i}. Use the antseed CLI on the gateway host, or transfer the role to a personal wallet.`}:r?Ao(r,s)?{ok:!0,operator:s,reason:null}:{ok:!1,operator:s,reason:`The connected wallet ${an(r)} is not the authorized wallet ${an(s)}. Switch to ${an(s)} in your wallet to ${i}.`}:{ok:!1,operator:s,reason:`Connect the authorized wallet ${an(s)} to ${i}. Funds go to that wallet.`}:{ok:!1,operator:null,reason:`Only the authorized wallet can ${i}, and none is set. ${t.canAuthorize?"Authorize one of your wallets under Authorized wallet.":"Ask the organization owner to authorize one."}`}}function IC(t,r=Date.now()){return t.eligibleWallets.map(i=>({...i,ready:i.eligibleAt<=r}))}function MC(t,r,i=Date.now()){if(!t.canAuthorize)return t.relation==="none"?"Only the organization owner can authorize a wallet.":"A wallet is already authorized; only it can transfer the role.";if(!r)return"Connect the wallet you want to authorize.";const s=t.eligibleWallets.find(l=>Ao(l.address,r));return s?s.eligibleAt>i?`${an(r)} was added as a sign-in method recently. For your safety it can be authorized from ${Zx(s.eligibleAt)}.`:null:`${an(r)} is not one of your sign-in methods. Add it under Your sign-in methods first; it can be authorized 24 hours later.`}const Nv={OperatorAlreadySet:{message:"Another wallet was authorized in the meantime. The panel now shows the current authorized wallet.",refresh:!0},InvalidNonce:{message:"The authorization expired: the operator nonce changed on chain. Start again to get a fresh authorization.",refresh:!0},InvalidSignature:{message:"The contract rejected the gateway's signature. The gateway and your wallet may be on different chains or deposits contracts.",refresh:!1},NotAuthorized:{message:"The connected wallet is not (or no longer) the authorized wallet. The panel now shows the current one.",refresh:!0},NotRewardRecipient:{message:"Only the authorized wallet can claim. The panel now shows the current one.",refresh:!0},RewardRecipientUnavailable:{message:"No authorized wallet is set, so rewards cannot be claimed yet.",refresh:!0},InsufficientBalance:{message:"Not enough available balance; funds reserved in open channels cannot be withdrawn.",refresh:!0},InvalidAddress:{message:"The contract rejected the address.",refresh:!1},ChannelNotActive:{message:"This channel is already settled or closed; nothing is left to do. The list now shows it.",refresh:!0},CloseAlreadyRequested:{message:"A close was already requested for this channel. The list now shows when the reserve can be withdrawn.",refresh:!0},CloseNotReady:{message:"The 15-minute grace period has not ended yet. Withdraw once the countdown reaches zero.",refresh:!0}};function h2(t){const r=new Set;let i=t;for(;i&&typeof i=="object"&&!r.has(i);){r.add(i);const l=i.data;if(l&&typeof l.errorName=="string")return l.errorName;i=i.cause}const s=t instanceof Error?`${t.message} ${t.shortMessage??""}`:String(t??"");return Object.keys(Nv).find(l=>s.includes(l))??null}function LC(t){const r=h2(t);return r?Nv[r]??null:null}class Eo extends Error{constructor(r,i,s=!1){super(r),this.refresh=i,this.retryAuth=s,this.name="OperatorPreflightError"}}function OC(t,r,i){if(t.chainId!==void 0&&t.chainId!==i.chainId)throw new Eo(`The gateway signed for chain ${t.chainId} but the console is set up for chain ${i.chainId}.`,!1);if(t.depositsContract&&i.depositsContract&&!Ao(t.depositsContract,i.depositsContract))throw new Eo("The gateway signed for a different deposits contract than the one the console reports. Reload the page.",!1);if(t.operator&&!Ao(t.operator,i.operator))throw new Eo(`The authorization is for ${an(t.operator)}, not ${an(i.operator)}.`,!1);if(Yc(r.operator))throw new Eo(`An authorized wallet is already set (${an(r.operator)}). The panel now shows it.`,!0);if(r.nonce.toString()!==t.nonce)throw new Eo("The operator nonce changed since the gateway signed. Getting a fresh authorization…",!0,!0)}function p2(t,r=!0){return Oe({queryKey:Se.channels(t,!1),queryFn:()=>le.wallet.channels(t,!1),enabled:r})}function Iv(){const{workspace:t,viewer:r}=jn(),i=Wc(r),s=d2(i),l=p2(t.id,i),f=s.data??[],v=new Set(f.filter(f2).map(y=>y.workspaceId)),m=f.find(y=>y.workspaceId===t.id),g=o2(l.data??[]),h=v.has(t.id);return{missingOperator:v,currentMissingOperator:h,canAuthorize:(m==null?void 0:m.canAuthorize)??!1,withdrawable:g,wallet:h||g.count>0}}const Mv=["pointerdown","mousedown","pointerup","mouseup","click"],dc=new WeakMap;function Lv(t,r,i){Jc(t);let s=l=>{let f=l.target;t.contains(f)&&((!i||i(f))&&(l.preventDefault(),l.stopPropagation(),l.stopImmediatePropagation()),l.type==="click"&&(r==null||r(l)))};for(let l of Mv)document.addEventListener(l,s,!0);dc.set(t,s)}function Jc(t){let r=dc.get(t);if(r){for(let i of Mv)document.removeEventListener(i,r,!0);dc.delete(t)}}function m2(t,r){let i=t.wrapper.getBoundingClientRect();return{width:i.width+r,height:i.height+r,realWidth:i.width,realHeight:i.height}}function Fp(t,r){let{elementDimensions:i,popoverDimensions:s,popoverPadding:l,popoverArrowDimensions:f}=r;return t==="start"?Math.max(Math.min(i.top-l,window.innerHeight-s.realHeight-f.width),f.width):t==="end"?Math.max(Math.min(i.top-(s==null?void 0:s.realHeight)+i.height+l,window.innerHeight-(s==null?void 0:s.realHeight)-f.width),f.width):t==="center"?Math.max(Math.min(i.top+i.height/2-(s==null?void 0:s.realHeight)/2,window.innerHeight-(s==null?void 0:s.realHeight)-f.width),f.width):0}function $p(t,r){let{elementDimensions:i,popoverDimensions:s,popoverPadding:l,popoverArrowDimensions:f}=r;return t==="start"?Math.max(Math.min(i.left-l,window.innerWidth-s.realWidth-f.width),f.width):t==="end"?Math.max(Math.min(i.left-(s==null?void 0:s.realWidth)+i.width+l,window.innerWidth-(s==null?void 0:s.realWidth)-f.width),f.width):t==="center"?Math.max(Math.min(i.left+i.width/2-(s==null?void 0:s.realWidth)/2,window.innerWidth-(s==null?void 0:s.realWidth)-f.width),f.width):0}function ed(t,r,i){let{align:s,side:l}=i,f=i.centered?"over":l,v=i.padding,m=m2(t,i.offset),g=t.arrow.getBoundingClientRect(),h=r.getBoundingClientRect(),y=h.top-m.height,x=y>=0,C=window.innerHeight-(h.bottom+m.height),R=C>=0,A=h.left-m.width,E=A>=0,M=window.innerWidth-(h.right+m.width),L=M>=0,F=!x&&!R&&!E&&!L,P=f;if(f==="top"&&x?L=E=R=!1:f==="bottom"&&R?L=E=x=!1:f==="left"&&E?L=x=R=!1:f==="right"&&L&&(E=x=R=!1),f==="over"){let b=window.innerWidth/2-m.realWidth/2,D=window.innerHeight/2-m.realHeight/2;t.wrapper.style.left=`${b}px`,t.wrapper.style.right="auto",t.wrapper.style.top=`${D}px`,t.wrapper.style.bottom="auto"}else if(F){let b=window.innerWidth/2-(m==null?void 0:m.realWidth)/2;t.wrapper.style.left=`${b}px`,t.wrapper.style.right="auto",t.wrapper.style.bottom="10px",t.wrapper.style.top="auto"}else if(E){let b=Math.min(A,window.innerWidth-(m==null?void 0:m.realWidth)-g.width),D=Fp(s,{elementDimensions:h,popoverDimensions:m,popoverPadding:v,popoverArrowDimensions:g});t.wrapper.style.left=`${b}px`,t.wrapper.style.top=`${D}px`,t.wrapper.style.bottom="auto",t.wrapper.style.right="auto",P="left"}else if(L){let b=Math.min(M,window.innerWidth-(m==null?void 0:m.realWidth)-g.width),D=Fp(s,{elementDimensions:h,popoverDimensions:m,popoverPadding:v,popoverArrowDimensions:g});t.wrapper.style.right=`${b}px`,t.wrapper.style.top=`${D}px`,t.wrapper.style.bottom="auto",t.wrapper.style.left="auto",P="right"}else if(x){let b=Math.min(y,window.innerHeight-m.realHeight-g.width),D=$p(s,{elementDimensions:h,popoverDimensions:m,popoverPadding:v,popoverArrowDimensions:g});t.wrapper.style.top=`${b}px`,t.wrapper.style.left=`${D}px`,t.wrapper.style.bottom="auto",t.wrapper.style.right="auto",P="top"}else if(R){let b=Math.min(C,window.innerHeight-(m==null?void 0:m.realHeight)-g.width),D=$p(s,{elementDimensions:h,popoverDimensions:m,popoverPadding:v,popoverArrowDimensions:g});t.wrapper.style.left=`${D}px`,t.wrapper.style.bottom=`${b}px`,t.wrapper.style.top="auto",t.wrapper.style.right="auto",P="bottom"}g2(t,F?"over":P,s,r),[...t.wrapper.classList].filter(b=>b.startsWith("driver-popover-side-")||b.startsWith("driver-popover-align-")).forEach(b=>t.wrapper.classList.remove(b)),t.wrapper.classList.add(`driver-popover-side-${P}`),t.wrapper.classList.add(`driver-popover-align-${s}`)}function zp(t,r,i,s,l,f=10){let v=s-i;return t<=i&&r>=s?l==="start"?15+f/2:l==="end"?v-15-f/2:v/2:(Math.min(Math.max(t,i),s)+Math.min(Math.max(r,i),s))/2-i}function Up(t,r,i=10){let s=r-15-i;if(s<15)return Math.max(0,(r-i)/2);let l=t-i/2;return Math.min(Math.max(l,15),s)}function v2(t,r,i){return t==="left"||t==="right"?r.bottom>i.top&&r.top<i.bottom?t:r.bottom<=i.top?"bottom":"top":r.right>i.left&&r.left<i.right?t:r.right<=i.left?"right":"left"}function g2(t,r,i,s){let l=t.arrow;if(l.className="driver-popover-arrow",l.style.top="",l.style.right="",l.style.bottom="",l.style.left="",r==="over"){l.classList.add("driver-popover-arrow-none");return}let f=s.getBoundingClientRect(),v=t.wrapper.getBoundingClientRect(),m=v2(r,f,v);l.classList.add(`driver-popover-arrow-side-${m}`);let g=l.getBoundingClientRect().width||10;if(m==="left"||m==="right"){let h=zp(f.top,f.bottom,v.top,v.bottom,i,g);l.style.top=`${Up(h,v.height,g)}px`}else{let h=zp(f.left,f.right,v.left,v.right,i,g);l.style.left=`${Up(h,v.width,g)}px`}}function ka(t){return typeof t=="function"?t():typeof t=="string"?document.querySelector(t):t}function y2(t){let r=window.getComputedStyle(t);return[r.overflow,r.overflowX,r.overflowY].some(i=>i==="auto"||i==="scroll")}function ua(t,r,i,s){return(t/=s/2)<1?i/2*t*t+r:-i/2*(--t*(t-2)-1)+r}function Ov(t){let r='a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])';return t.flatMap(i=>{let s=i.matches(r),l=Array.from(i.querySelectorAll(r));return[...s?[i]:[],...l]}).filter(i=>getComputedStyle(i).pointerEvents!=="none"&&k2(i))}function Av(t,r){if(!t||x2(t))return;let i=t.offsetHeight>window.innerHeight;t.scrollIntoView({behavior:!r||w2(t)?"auto":"smooth",inline:"center",block:i?"start":"center"})}function w2(t){if(!t||!t.parentElement)return;let r=t.parentElement;return r.scrollHeight>r.clientHeight}function x2(t){let r=t.getBoundingClientRect();return r.top>=0&&r.left>=0&&r.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&r.right<=(window.innerWidth||document.documentElement.clientWidth)}function k2(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function Dv(t){t&&(t.wrapper.style.display="none")}function S2(t,r){var E;let i=_2();document.body.appendChild(i.wrapper);let{title:s,description:l,showButtons:f,disableButtons:v,showProgress:m,nextBtnText:g,prevBtnText:h,progressText:y}=r;i.nextButton.innerHTML=g,i.previousButton.innerHTML=h,i.progress.innerHTML=y,i.closeButton.setAttribute("aria-label",r.closeBtnLabel),r.doneButton&&i.nextButton.classList.add("driver-popover-done-btn"),s?(i.title.innerHTML=s,i.title.style.display="block"):i.title.style.display="none",l?(i.description.innerHTML=l,i.description.style.display="block"):i.description.style.display="none";let x=f.includes("next")||f.includes("previous")||m;i.closeButton.style.display=f.includes("close")?"block":"none",x?(i.footer.style.display="flex",i.progress.style.display=m?"block":"none",i.nextButton.style.display=f.includes("next")?"block":"none",i.previousButton.style.display=f.includes("previous")?"block":"none"):i.footer.style.display="none",v.includes("next")&&(i.nextButton.disabled=!0,i.nextButton.classList.add("driver-popover-btn-disabled")),v.includes("previous")&&(i.previousButton.disabled=!0,i.previousButton.classList.add("driver-popover-btn-disabled")),v.includes("close")&&(i.closeButton.disabled=!0,i.closeButton.classList.add("driver-popover-btn-disabled"));let C=i.wrapper;C.style.display="block",C.style.left="",C.style.top="",C.style.bottom="",C.style.right="",C.id="driver-popover-content",C.setAttribute("role","dialog"),C.setAttribute("aria-labelledby","driver-popover-title"),C.setAttribute("aria-describedby","driver-popover-description");let R=i.arrow;R.className="driver-popover-arrow",C.className=`driver-popover ${r.popoverClass||""}`.trim(),Lv(i.wrapper,M=>{var F,P,b;let L=M.target;if(L.closest(".driver-popover-next-btn"))return(F=r.onNextClick)==null?void 0:F.call(r);if(L.closest(".driver-popover-prev-btn"))return(P=r.onPrevClick)==null?void 0:P.call(r);if(L.closest(".driver-popover-close-btn"))return(b=r.onCloseClick)==null?void 0:b.call(r)},M=>i.description.contains(M)||i.title.contains(M)?!1:!!M.closest(".driver-popover-prev-btn, .driver-popover-next-btn, .driver-popover-close-btn")),(E=r.onRender)==null||E.call(r,i),ed(i,t,r.position),C2(i,t,r.position),Av(C,r.smoothScroll);let A=Ov([C,t]);return A.length>0&&A[0].focus(),i}function C2(t,r,i){t.wrapper.querySelectorAll("img").forEach(s=>{if(s.complete)return;let l=()=>ed(t,r,i);s.addEventListener("load",l,{once:!0}),s.addEventListener("error",l,{once:!0})})}function _2(){let t=document.createElement("div");t.classList.add("driver-popover");let r=document.createElement("div");r.classList.add("driver-popover-arrow");let i=document.createElement("header");i.id="driver-popover-title",i.classList.add("driver-popover-title"),i.style.display="none",i.innerText="Popover Title";let s=document.createElement("div");s.id="driver-popover-description",s.classList.add("driver-popover-description"),s.style.display="none",s.innerText="Popover description is here";let l=document.createElement("button");l.type="button",l.classList.add("driver-popover-close-btn"),l.innerHTML="×";let f=document.createElement("footer");f.classList.add("driver-popover-footer");let v=document.createElement("span");v.classList.add("driver-popover-progress-text"),v.innerText="";let m=document.createElement("span");m.classList.add("driver-popover-navigation-btns");let g=document.createElement("button");g.type="button",g.classList.add("driver-popover-prev-btn","driver-popover-footer-btn"),g.innerHTML="Previous";let h=document.createElement("button");return h.type="button",h.classList.add("driver-popover-next-btn","driver-popover-footer-btn"),h.innerHTML="Next",m.appendChild(g),m.appendChild(h),f.appendChild(v),f.appendChild(m),t.appendChild(l),t.appendChild(r),t.appendChild(i),t.appendChild(s),t.appendChild(f),{wrapper:t,arrow:r,title:i,description:s,footer:f,previousButton:g,nextButton:h,closeButton:l,footerButtons:m,progress:v}}function Fv(t){var r;t&&(Jc(t.wrapper),(r=t.wrapper.parentElement)==null||r.removeChild(t.wrapper))}function $v(t,r){let i=window.innerWidth,s=window.innerHeight,l=r.padding,f=r.radius,v=t.width+l*2,m=t.height+l*2,g=Math.min(f,v/2,m/2),h=Math.floor(Math.max(g,0)),y=t.x-l+h,x=t.y-l,C=v-h*2,R=m-h*2;return`M${i},0L0,0L0,${s}L${i},${s}L${i},0Z
|
|
82
|
-
M${y},${x} h${C} a${h},${h} 0 0 1 ${h},${h} v${R} a${h},${h} 0 0 1 -${h},${h} h-${C} a${h},${h} 0 0 1 -${h},-${h} v-${R} a${h},${h} 0 0 1 ${h},-${h} z`}function E2(t,r,i,s,l){let f=t.getState("__activeStagePosition"),v=f||s.getBoundingClientRect(),m=l.getBoundingClientRect();f={x:ua(r,v.x,m.x-v.x,i),y:ua(r,v.y,m.y-v.y,i),width:ua(r,v.width,m.width-v.width,i),height:ua(r,v.height,m.height-v.height,i)},Uv(t,f),t.setState("__activeStagePosition",f)}function zv(t,r){if(!r)return;let i=r.getBoundingClientRect(),s={x:i.x,y:i.y,width:i.width,height:i.height};t.setState("__activeStagePosition",s),Uv(t,s)}function P2(t){let r=t.getState("__activeStagePosition"),i=t.getState("__overlaySvg");if(!r)return;if(!i){console.warn("No stage svg found.");return}let s=window.innerWidth,l=window.innerHeight;i.setAttribute("viewBox",`0 0 ${s} ${l}`)}function j2(t,r){let i=b2(t,r);document.body.appendChild(i),Lv(i,s=>{s.target.tagName==="path"&&t.emit("overlayClick")}),t.setState("__overlaySvg",i)}function Uv(t,r){let i=t.getState("__overlaySvg");if(!i){j2(t,r);return}let s=i.firstElementChild;if((s==null?void 0:s.tagName)!=="path")throw Error("no path element found in stage svg");s.setAttribute("d",$v(r,Bv(t)))}function Bv(t){var r;return((r=t.getState("activeElement"))==null?void 0:r.id)==="driver-dummy-element"?{padding:0,radius:0}:{padding:t.getConfig("stagePadding")||0,radius:t.getConfig("stageRadius")||0}}function b2(t,r){let i=window.innerWidth,s=window.innerHeight,l=document.createElementNS("http://www.w3.org/2000/svg","svg");l.classList.add("driver-overlay","driver-overlay-animated"),l.setAttribute("viewBox",`0 0 ${i} ${s}`),l.setAttribute("xmlSpace","preserve"),l.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),l.setAttribute("version","1.1"),l.setAttribute("preserveAspectRatio","xMinYMin slice"),l.style.fillRule="evenodd",l.style.clipRule="evenodd",l.style.strokeLinejoin="round",l.style.strokeMiterlimit="2",l.style.zIndex="10000",l.style.position="fixed",l.style.top="0",l.style.left="0",l.style.width="100%",l.style.height="100%";let f=document.createElementNS("http://www.w3.org/2000/svg","path");return f.setAttribute("d",$v(r,Bv(t))),f.style.fill=t.getConfig("overlayColor")||"rgb(0,0,0)",f.style.opacity=`${t.getConfig("overlayOpacity")}`,f.style.pointerEvents="auto",f.style.cursor="auto",l.appendChild(f),l}function T2(t){let r=t.getState("__overlaySvg");r&&(Jc(r),r.remove())}const Hv="{{current}} of {{total}}";function Wv(t,r){return!(r.skipMissingElement??t.getConfig("skipMissingElement"))||!r.element?!1:!ka(r.element)}function En(t,r,i){let s=t.getConfig("steps")||[];for(let l=r;l>=0&&l<s.length;l+=i)if(!Wv(t,s[l]))return l}function ma(t,r){var f,v;let i=t.getState("activeIndex"),s=i!==void 0&&En(t,i+1,1)===void 0,l=((f=r==null?void 0:r.popover)==null?void 0:f.onDoneClick)||t.getConfig("onDoneClick");return s&&l?l:((v=r==null?void 0:r.popover)==null?void 0:v.onNextClick)||t.getConfig("onNextClick")}function Vv(t,r){var i;return((i=r==null?void 0:r.popover)==null?void 0:i.onPrevClick)||t.getConfig("onPrevClick")}function R2(t,r){var i;return((i=r==null?void 0:r.popover)==null?void 0:i.onCloseClick)||t.getConfig("onCloseClick")}function N2(t,r,i){let s=t.getConfig("steps")||[],l=s[r],f=l.popover||{},v=En(t,r+1,1)!==void 0,m=En(t,r-1,-1)!==void 0,g=f.doneBtnText||t.getConfig("doneBtnText")||"Done",h=t.getConfig("allowClose"),y=f.showProgress===void 0?t.getConfig("showProgress"):f.showProgress,x=(f.progressText||t.getConfig("progressText")||Hv).replace("{{current}}",`${r+1}`).replace("{{total}}",`${s.length}`),C=f.showButtons||t.getConfig("showButtons"),R=["next","previous",...h?["close"]:[]].filter(L=>!(C!=null&&C.length)||C.includes(L)),A=f.onNextClick||t.getConfig("onNextClick"),E=f.onPrevClick||t.getConfig("onPrevClick"),M=f.onCloseClick||t.getConfig("onCloseClick");return{...l,popover:{showButtons:R,nextBtnText:v?void 0:g,disableButtons:[...t.getConfig("disableButtons")||[],...m?[]:["previous"]],showProgress:y,onNextClick:A||i.onNextClick,onPrevClick:E||i.onPrevClick,onCloseClick:M||i.onCloseClick,...f,progressText:x}}}function fc(t,r){var i,s;return{showButtons:((i=r==null?void 0:r.popover)==null?void 0:i.showButtons)||t.getConfig("showButtons")||[],disableButtons:((s=r==null?void 0:r.popover)==null?void 0:s.disableButtons)||t.getConfig("disableButtons")||[]}}function qv(t,r,i){var l,f;let s=t.getConfig("stagePadding")||0;return{side:((l=i.popover)==null?void 0:l.side)||"bottom",align:((f=i.popover)==null?void 0:f.align)||"start",offset:s+(t.getConfig("popoverOffset")||0),padding:s,centered:r.id==="driver-dummy-element"}}function I2(t,r,i){let s=i.popover||{},l=t.getState("activeIndex"),f=l!==void 0&&En(t,l+1,1)===void 0;return{title:s.title,description:s.description,...fc(t,i),showProgress:s.showProgress||t.getConfig("showProgress")||!1,progressText:s.progressText??(t.getConfig("progressText")||Hv),nextBtnText:s.nextBtnText??(t.getConfig("nextBtnText")||"Next"),prevBtnText:s.prevBtnText??(t.getConfig("prevBtnText")||"Previous"),closeBtnLabel:s.closeBtnLabel??(t.getConfig("closeBtnLabel")||"Close"),doneButton:f,popoverClass:s.popoverClass||t.getConfig("popoverClass")||"",smoothScroll:t.getConfig("smoothScroll"),onNextClick:()=>{let v=ma(t,i);return v?v(r,i,t.getHookOpts()):t.emit("nextClick")},onPrevClick:()=>{let v=Vv(t,i);return v?v(r,i,t.getHookOpts()):t.emit("prevClick")},onCloseClick:()=>{let v=R2(t,i);return v?v(r,i,t.getHookOpts()):t.emit("closeClick")},onRender:v=>{var m;t.setState("popover",v),(m=s.onPopoverRender||t.getConfig("onPopoverRender"))==null||m(v,t.getHookOpts())},position:qv(t,r,i)}}function Bp(t,r,i){Fv(t.getState("popover")),S2(r,I2(t,r,i))}function M2(t,r,i){let s=t.getState("popover");s&&ed(s,r,qv(t,r,i))}const Hp={"aria-haspopup":"dialog","aria-expanded":"true","aria-controls":"driver-popover-content"},Sa=new WeakMap;function L2(t){if(!Sa.has(t)){let r=Object.fromEntries(Object.keys(Hp).map(i=>[i,t.getAttribute(i)]));Sa.set(t,r)}for(let[r,i]of Object.entries(Hp))t.setAttribute(r,i)}function Kv(t){let r=Sa.get(t);if(r){for(let[i,s]of Object.entries(r))s===null?t.removeAttribute(i):t.setAttribute(i,s);Sa.delete(t)}}function O2(){let t=document.getElementById("driver-dummy-element");if(t)return t;let r=document.createElement("div");return r.id="driver-dummy-element",r.style.width="0",r.style.height="0",r.style.pointerEvents="none",r.style.opacity="0",r.style.position="fixed",r.style.top="50%",r.style.left="50%",document.body.appendChild(r),r}function Wp(t,r){let i=ka(r.element);i||(i=O2()),D2(t,i,r)}function A2(t){let r=t.getState("__activeElement"),i=t.getState("__activeStep");r&&(zv(t,r),P2(t),M2(t,r,i))}function D2(t,r,i){let s=t.getConfig("duration")||400,l=Date.now(),f=t.getState("__activeStep"),v=t.getState("__activeElement")||r,m=!v||v===r,g=r.id==="driver-dummy-element",h=v.id==="driver-dummy-element",y=t.getConfig("animate"),x=i.onHighlightStarted||t.getConfig("onHighlightStarted"),C=(i==null?void 0:i.onHighlighted)||t.getConfig("onHighlighted"),R=(f==null?void 0:f.onDeselected)||t.getConfig("onDeselected"),A=t.getHookOpts();f&&f!==i&&R&&R(h?void 0:v,f,A),x&&x(g?void 0:r,i,A);let E=!m&&y,M=!1;Dv(t.getState("popover")),t.setState("previousStep",f),t.setState("previousElement",v),t.setState("activeStep",i),t.setState("activeElement",r);let L=()=>{if(t.getState("__transitionCallback")!==L)return;let P=Date.now()-l,b=s-P<=s/2;i.popover&&b&&!M&&E&&(Bp(t,r,i),M=!0),t.getConfig("animate")&&P<s?E2(t,P,s,v,r):(zv(t,r),C&&C(g?void 0:r,i,t.getHookOpts()),t.setState("__transitionCallback",void 0),t.setState("__previousStep",f),t.setState("__previousElement",v),t.setState("__activeStep",i),t.setState("__activeElement",r)),window.requestAnimationFrame(L)};t.setState("__transitionCallback",L),window.requestAnimationFrame(L),Av(r,t.getConfig("smoothScroll")),!E&&i.popover&&Bp(t,r,i),document.querySelectorAll(".driver-active-element-parent").forEach(P=>{P.classList.remove("driver-active-element-parent","driver-active-element-parent-no-scroll")}),document.querySelectorAll(".driver-active-element").forEach(P=>{P.classList.remove("driver-active-element","driver-no-interaction"),Kv(P)}),(i.disableActiveInteraction??t.getConfig("disableActiveInteraction"))&&r.classList.add("driver-no-interaction");let F=r.parentElement;F&&F!==document.body&&(F.classList.add("driver-active-element-parent"),y2(F)&&F.classList.add("driver-active-element-parent-no-scroll")),r.classList.add("driver-active-element"),L2(r)}function F2(){var t;(t=document.getElementById("driver-dummy-element"))==null||t.remove(),document.querySelectorAll(".driver-active-element").forEach(r=>{let i=r.parentElement;i&&i!==document.body&&i.classList.remove("driver-active-element-parent","driver-active-element-parent-no-scroll"),r.classList.remove("driver-active-element","driver-no-interaction"),Kv(r)})}function hc(t){let r=t.getState("__resizeTimeout");r&&window.cancelAnimationFrame(r),t.setState("__resizeTimeout",window.requestAnimationFrame(()=>A2(t)))}function $2(t,r){var m,g,h;if(!t.getState("isInitialized")||!(r.key==="Tab"||r.keyCode===9))return;let i=t.getState("__activeElement"),s=(m=t.getState("popover"))==null?void 0:m.wrapper,l=Ov([...s?[s]:[],...i?[i]:[]]),f=l[0],v=l[l.length-1];r.preventDefault(),r.shiftKey?(g=l[l.indexOf(document.activeElement)-1]||v)==null||g.focus():(h=l[l.indexOf(document.activeElement)+1]||f)==null||h.focus()}function z2(t,r){(t.getConfig("allowKeyboardControl")??!0)&&(r.key==="Escape"?t.emit("escapePress"):r.key==="ArrowRight"?t.emit("arrowRightPress"):r.key==="ArrowLeft"&&t.emit("arrowLeftPress"))}function U2(t,r){let i=t.getState("__activeElement"),s=r.target;!i||!s||!i.contains(s)||t.emit("activeElementClick")}function B2(t){let r=v=>z2(t,v),i=v=>$2(t,v),s=()=>hc(t),l=()=>hc(t),f=v=>U2(t,v);t.setState("__events",{onKeyup:r,onKeydown:i,onResize:s,onScroll:l,onClick:f}),window.addEventListener("keyup",r,!1),window.addEventListener("keydown",i,!1),window.addEventListener("resize",s),window.addEventListener("scroll",l),document.addEventListener("click",f,!1)}function H2(t){let r=t.getState("__events");r&&(window.removeEventListener("keyup",r.onKeyup),window.removeEventListener("keydown",r.onKeydown),window.removeEventListener("resize",r.onResize),window.removeEventListener("scroll",r.onScroll),document.removeEventListener("click",r.onClick,!1))}function W2(){let t={};function r(i={}){t={animate:!0,duration:400,allowClose:!0,allowScroll:!0,overlayClickBehavior:"close",overlayOpacity:.7,smoothScroll:!1,disableActiveInteraction:!1,advanceOnClick:!1,skipMissingElement:!1,waitForElement:0,showProgress:!1,stagePadding:10,stageRadius:5,popoverOffset:10,showButtons:["next","previous","close"],disableButtons:[],overlayColor:"#000",...i}}return r(),{getConfig:(i=>i?t[i]:t),configure:r}}function V2(){let t={},r=(l=>l?t[l]:t),i=(l,f)=>{t[l]=f};function s(){t={}}return{getState:r,setState:i,resetState:s}}function q2(){let t={};function r(l,f){t[l]=f}function i(l){var f;(f=t[l])==null||f.call(t)}function s(){t={}}return{listen:r,emit:i,reset:s}}function K2(t={}){let r=W2();r.configure(t);let i=V2(),s=q2(),l;return{getConfig:r.getConfig,setConfig:r.configure,getState:i.getState,setState:i.setState,resetState:i.resetState,listen:s.listen,emit:s.emit,resetEmitter:s.reset,getDriver:()=>l,setDriver:f=>{l=f},getHookOpts:f=>{let v=f||i.getState();return{config:r.getConfig(),state:v,driver:l,index:v.activeIndex}}}}let fi;function Q2(t={}){let r=K2(t),i=()=>L(!1);function s(){r.getConfig("allowClose")&&L()}function l(){let{disableButtons:P}=fc(r,r.getState("__activeStep"));P.includes("close")||s()}function f(P){let{showButtons:b,disableButtons:D}=fc(r,r.getState("__activeStep"));return b.includes(P)&&!D.includes(P)}function v(){let P=r.getConfig("overlayClickBehavior");if(r.getConfig("allowClose")&&P==="close"){L();return}if(typeof P=="function"){let b=r.getState("__activeStep");P(r.getState("__activeElement"),b,r.getHookOpts());return}if(P==="nextStep"){let b=r.getState("activeStep"),D=r.getState("activeElement"),W=ma(r,b);if(W){W(D,b,r.getHookOpts());return}m()}}function m(){let P=r.getState("activeIndex"),b=r.getConfig("steps")||[];if(P===void 0)return;let D=P+1;b[D]?M(D):L()}function g(){let P=r.getState("activeIndex"),b=r.getConfig("steps")||[];if(P===void 0)return;let D=P-1;b[D]?M(D):L()}function h(P){(r.getConfig("steps")||[])[P]?M(P):L()}function y(){if(r.getState("__transitionCallback"))return;let P=r.getState("__activeStep");if(!P||!(P.advanceOnClick??r.getConfig("advanceOnClick")))return;let b=r.getState("__activeElement"),D=ma(r,P);if(D){D(b,P,r.getHookOpts());return}m()}function x(){if(r.getState("__transitionCallback"))return;let P=r.getState("activeIndex"),b=r.getState("__activeStep"),D=r.getState("__activeElement");if(P===void 0||b===void 0||!(r.getConfig("steps")||[])[P-1]||!f("previous"))return;let W=Vv(r,b);if(W)return W(D,b,r.getHookOpts());g()}function C(){if(r.getState("__transitionCallback"))return;let P=r.getState("activeIndex"),b=r.getState("__activeStep"),D=r.getState("__activeElement");if(P===void 0||b===void 0||!f("next"))return;let W=ma(r,b);if(W)return W(D,b,r.getHookOpts());m()}function R(){r.getState("isInitialized")||(fi&&fi!==i&&fi(),fi=i,r.setState("isInitialized",!0),document.body.classList.add("driver-active",r.getConfig("animate")?"driver-fade":"driver-simple"),r.getConfig("allowScroll")||document.body.classList.add("driver-no-scroll"),document.body.style.setProperty("--driver-animation-duration",`${r.getConfig("duration")||400}ms`),B2(r),r.listen("overlayClick",v),r.listen("activeElementClick",y),r.listen("escapePress",l),r.listen("closeClick",s),r.listen("arrowLeftPress",x),r.listen("arrowRightPress",C))}function A(){let P=r.getState("__pendingWaitCancel");P&&(r.setState("__pendingWaitCancel",void 0),P())}function E(P,b,D){let W=()=>{te.disconnect(),window.clearTimeout(Z),r.setState("__pendingWaitCancel",void 0),D()},te=new MutationObserver(()=>{ka(P.element)&&W()}),Z=window.setTimeout(W,b);r.setState("__pendingWaitCancel",()=>{te.disconnect(),window.clearTimeout(Z)}),te.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0})}function M(P=0,b=!1){A();let D=r.getConfig("steps");if(!D){console.error("No steps to drive through"),L();return}if(!D[P]){L();return}let W=D[P],te=W.waitForElement??r.getConfig("waitForElement")??0;if(!b&&te>0&&W.element&&!ka(W.element)){Dv(r.getState("popover")),E(W,te,()=>M(P,!0));return}if(Wv(r,W)){let se=r.getState("activeIndex"),de=typeof se=="number"&&P<se?-1:1;D[P+de]?M(P+de):de===1&&L();return}r.setState("__activeOnDestroyed",document.activeElement),r.setState("activeIndex",P);let Z=D[P+1];Wp(r,N2(r,P,{onNextClick:()=>{Z?M(P+1):L()},onPrevClick:()=>{M(P-1)},onCloseClick:()=>{L()}}))}function L(P=!0){if(!r.getState("isInitialized"))return;let b=r.getState("__activeElement"),D=r.getState("__activeStep"),W=r.getState("__activeOnDestroyed"),te=r.getConfig("onDestroyStarted");if(P&&te){te(!b||(b==null?void 0:b.id)==="driver-dummy-element"?void 0:b,D,r.getHookOpts());return}fi===i&&(fi=void 0);let Z=(D==null?void 0:D.onDeselected)||r.getConfig("onDeselected"),se=r.getConfig("onDestroyed");document.body.classList.remove("driver-active","driver-fade","driver-simple","driver-no-scroll"),document.body.style.removeProperty("--driver-animation-duration"),A(),H2(r),Fv(r.getState("popover")),F2(),T2(r),r.resetEmitter();let de=r.getState();if(r.resetState(),b&&D){let X=b.id==="driver-dummy-element";Z&&Z(X?void 0:b,D,r.getHookOpts(de)),se&&se(X?void 0:b,D,r.getHookOpts(de))}W&&W.focus()}let F={isActive:()=>r.getState("isInitialized")||!1,refresh:()=>hc(r),drive:(P=0)=>{R(),M(P)},setConfig:r.setConfig,setSteps:P=>{A(),r.resetState(),r.setConfig({...r.getConfig(),steps:P})},getConfig:r.getConfig,getState:r.getState,getActiveIndex:()=>r.getState("activeIndex"),isFirstStep:()=>{let P=r.getState("activeIndex");return P!==void 0&&En(r,P-1,-1)===void 0},isLastStep:()=>{let P=r.getState("activeIndex");return P!==void 0&&En(r,P+1,1)===void 0},getActiveStep:()=>r.getState("activeStep"),getActiveElement:()=>r.getState("activeElement"),getPreviousElement:()=>r.getState("previousElement"),getPreviousStep:()=>r.getState("previousStep"),getNextStep:()=>{let P=r.getConfig("steps")||[],b=r.getState("activeIndex");if(b===void 0)return;let D=En(r,b+1,1);return D===void 0?void 0:P[D]},moveNext:m,movePrevious:g,moveTo:h,hasNextStep:()=>{let P=r.getState("activeIndex");return P!==void 0&&En(r,P+1,1)!==void 0},hasPreviousStep:()=>{let P=r.getState("activeIndex");return P!==void 0&&En(r,P-1,-1)!==void 0},highlight:P=>{R(),Wp(r,{...P,popover:P.popover?{showButtons:[],showProgress:!1,progressText:"",...P.popover}:void 0})},destroy:()=>{L(!1)}};return r.setDriver(F),F}const G2="antseed-console:tour-seen",Y2=t=>`nav-${t}`;function Z2(t){const r=(i,s)=>qc(i,t)?[{target:Y2(i),...s}]:[];return[{title:"Welcome to your gateway",description:"This console runs on your gateway. It decides who can call the API, which sellers on the Antseed network serve those calls, and what they cost. Here is where everything lives."},{target:"workspace",title:"Workspaces",description:"Each workspace has its own wallet, members, keys and budgets. Switch between them here."},...r("wallet",{title:"Fund the wallet",description:"Requests are paid in USDC from the workspace wallet. Add funds by card where available or by sending USDC, and authorize the wallet that may withdraw."}),...r("keys",{title:"API keys",description:"Create a key for each app or person. Each key can have daily, weekly, monthly and total budgets and its own routing policy. Clients call the gateway's /v1 address with the key."}),...Oi(t)?r("settings",{title:"Buyer settings come first",description:"Settings → Buyer is the top of every routing policy: price caps, minimum trust (60 by default) and reputation, verification, payment limits and the RPC endpoint. If sellers you expect are missing, look here first."}):[],...r("routing",{title:"Routing policies",description:"Choose which sellers may serve: allow or block sellers, minimum trust, price caps, TEE only, fallback chains. Policies go from the buyer settings to the gateway default, workspaces, members, keys and presets, and each level can only narrow the one above. The route preview shows which sellers a request would use."}),...r("providers",{title:"Providers",description:"Every provider (seller) on the network this gateway sees, with prices, trust and the latency it measured. Open one to copy its models and an API call, or allow, block or prefer it."}),...r("activity",{title:"Usage and logs",description:"Spend and requests by model, key and member, and a searchable log of every request."}),...r("chat",{title:"Try it in Chat",description:"Chat with any model on the network, paid by your own Web chat key. Every answer shows which seller served it and what it cost."}),{target:"account",title:"That is the tour",description:"Replay it any time from your account menu."}]}function X2(t){return t instanceof HTMLElement&&t.getClientRects().length>0}function J2(t){var s;const r=t.target?document.querySelector(`[data-tour="${t.target}"]`):null,i=(s=t.target)!=null&&s.startsWith("nav-")?"right":"bottom";return{...X2(r)?{element:r}:{},popover:{title:t.title,description:t.description,side:i,align:"start"}}}function Qv(t){return`${G2}:${t}`}function ek(t){try{return localStorage.getItem(Qv(t))==="1"}catch{return!0}}function tk(t){try{localStorage.setItem(Qv(t),"1")}catch{}}function Vp(t,r){const i=Z2(t).map(J2);Q2({steps:i,showProgress:!0,progressText:"{{current}} of {{total}}",nextBtnText:"Next",prevBtnText:"Back",doneBtnText:"Done",popoverClass:"gc-tour",stagePadding:4,stageRadius:8,onDestroyed:()=>tk(r)}).drive()}function sn(t){const r=new Uint8Array(t);let i="";for(const l of r)i+=String.fromCharCode(l);return btoa(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function Ca(t){const r=t.replace(/-/g,"+").replace(/_/g,"/"),i=(4-r.length%4)%4,s=r.padEnd(r.length+i,"="),l=atob(s),f=new ArrayBuffer(l.length),v=new Uint8Array(f);for(let m=0;m<l.length;m++)v[m]=l.charCodeAt(m);return f}function Vo(){return nk.stubThis((globalThis==null?void 0:globalThis.PublicKeyCredential)!==void 0&&typeof globalThis.PublicKeyCredential=="function")}const nk={stubThis:t=>t};function Gv(t){const{id:r}=t;return{...t,id:Ca(r),transports:t.transports}}function Yv(t){return t==="localhost"||/^((xn--[a-z0-9-]+|[a-z0-9]+(-[a-z0-9]+)*)\.)+([a-z]{2,}|xn--[a-z0-9-]+)$/i.test(t)}class tt extends Error{constructor({message:r,code:i,cause:s,name:l}){super(r,{cause:s}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=l??s.name,this.code=i}}function rk({error:t,options:r}){var s,l,f;const{publicKey:i}=r;if(!i)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(r.signal instanceof AbortSignal)return new tt({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else if(t.name==="ConstraintError"){if(((s=i.authenticatorSelection)==null?void 0:s.requireResidentKey)===!0)return new tt({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:t});if(r.mediation==="conditional"&&((l=i.authenticatorSelection)==null?void 0:l.userVerification)==="required")return new tt({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:t});if(((f=i.authenticatorSelection)==null?void 0:f.userVerification)==="required")return new tt({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:t})}else{if(t.name==="InvalidStateError")return new tt({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:t});if(t.name==="NotAllowedError")return new tt({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="NotSupportedError")return i.pubKeyCredParams.filter(m=>m.type==="public-key").length===0?new tt({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:t}):new tt({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:t});if(t.name==="SecurityError"){const v=globalThis.location.hostname;if(Yv(v)){if(i.rp.id!==v)return new tt({message:`The RP ID "${i.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new tt({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="TypeError"){if(i.user.id.byteLength<1||i.user.id.byteLength>64)return new tt({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:t})}else if(t.name==="UnknownError")return new tt({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return t}class ik{constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}createNewAbortSignal(){if(this.controller){const i=new Error("Cancelling existing WebAuthn API call for new one");i.name="AbortError",this.controller.abort(i)}const r=new AbortController;return this.controller=r,r.signal}cancelCeremony(){if(this.controller){const r=new Error("Manually cancelling existing WebAuthn API call");r.name="AbortError",this.controller.abort(r),this.controller=void 0}}}const Zv=new ik,ok=["cross-platform","platform"];function Xv(t){if(t&&!(ok.indexOf(t)<0))return t}async function Jv(t){var A;!t.optionsJSON&&t.challenge&&(console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),t={optionsJSON:t});const{optionsJSON:r,useAutoRegister:i=!1}=t;if(!Vo())throw new Error("WebAuthn is not supported in this browser");const s={...r,challenge:Ca(r.challenge),user:{...r.user,id:Ca(r.user.id)},excludeCredentials:(A=r.excludeCredentials)==null?void 0:A.map(Gv)},l={};i&&(l.mediation="conditional"),l.publicKey=s,l.signal=Zv.createNewAbortSignal();let f;try{f=await navigator.credentials.create(l)}catch(E){throw rk({error:E,options:l})}if(!f)throw new Error("Registration was not completed");const{id:v,rawId:m,response:g,type:h}=f;let y;typeof g.getTransports=="function"&&(y=g.getTransports());let x;if(typeof g.getPublicKeyAlgorithm=="function")try{x=g.getPublicKeyAlgorithm()}catch(E){Fu("getPublicKeyAlgorithm()",E)}let C;if(typeof g.getPublicKey=="function")try{const E=g.getPublicKey();E!==null&&(C=sn(E))}catch(E){Fu("getPublicKey()",E)}let R;if(typeof g.getAuthenticatorData=="function")try{R=sn(g.getAuthenticatorData())}catch(E){Fu("getAuthenticatorData()",E)}return{id:v,rawId:sn(m),response:{attestationObject:sn(g.attestationObject),clientDataJSON:sn(g.clientDataJSON),transports:y,publicKeyAlgorithm:x,publicKey:C,authenticatorData:R},type:h,clientExtensionResults:f.getClientExtensionResults(),authenticatorAttachment:Xv(f.authenticatorAttachment)}}function Fu(t,r){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${t}. You should report this error to them.
|
|
83
|
-
`,r)}function sk(){if(!Vo())return $u.stubThis(new Promise(r=>r(!1)));const t=globalThis.PublicKeyCredential;return(t==null?void 0:t.isConditionalMediationAvailable)===void 0?$u.stubThis(new Promise(r=>r(!1))):$u.stubThis(t.isConditionalMediationAvailable())}const $u={stubThis:t=>t};function ak({error:t,options:r}){const{publicKey:i}=r;if(!i)throw Error("options was missing required publicKey property");if(t.name==="AbortError"){if(r.signal instanceof AbortSignal)return new tt({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:t})}else{if(t.name==="NotAllowedError")return new tt({message:t.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:t});if(t.name==="SecurityError"){const s=globalThis.location.hostname;if(Yv(s)){if(i.rpId!==s)return new tt({message:`The RP ID "${i.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:t})}else return new tt({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:t})}else if(t.name==="UnknownError")return new tt({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:t})}return t}async function eg(t){var R,A;!t.optionsJSON&&t.challenge&&(console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),t={optionsJSON:t});const{optionsJSON:r,useBrowserAutofill:i=!1,verifyBrowserAutofillInput:s=!0}=t;if(!Vo())throw new Error("WebAuthn is not supported in this browser");let l;((R=r.allowCredentials)==null?void 0:R.length)!==0&&(l=(A=r.allowCredentials)==null?void 0:A.map(Gv));const f={...r,challenge:Ca(r.challenge),allowCredentials:l},v={};if(i){if(!await sk())throw Error("Browser does not support WebAuthn autofill");if(document.querySelectorAll("input[autocomplete$='webauthn']").length<1&&s)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');v.mediation="conditional",f.allowCredentials=[]}v.publicKey=f,v.signal=Zv.createNewAbortSignal();let m;try{m=await navigator.credentials.get(v)}catch(E){throw ak({error:E,options:v})}if(!m)throw new Error("Authentication was not completed");const{id:g,rawId:h,response:y,type:x}=m;let C;return y.userHandle&&(C=sn(y.userHandle)),{id:g,rawId:sn(h),response:{authenticatorData:sn(y.authenticatorData),clientDataJSON:sn(y.clientDataJSON),signature:sn(y.signature),userHandle:C},type:x,clientExtensionResults:m.getClientExtensionResults(),authenticatorAttachment:Xv(m.authenticatorAttachment)}}function Nr(t){return t.trim().toLowerCase().replace(/^0x/,"")}function tg(t,r){return Nr(t)===Nr(r)}const lk={balanced:"Balanced",price:"Lowest price",latency:"Lowest latency",trust:"Highest trust"};function td(){return{allowMode:"any",allowedPeerIds:[],allowedListIds:[],blockedPeerIds:[],blockedListIds:[],minTrustScore:"",minReputation:"",requireVerified:!1,requireTee:!1,maxInputUsdPerMillion:"",maxOutputUsdPerMillion:"",maxCachedInputUsdPerMillion:"",maxImageUsdPerImage:"",preferFreePeers:"inherit",sort:"",modelsMode:"any",allowedModels:[],routes:[]}}function hi(t){return t===void 0?"":String(t)}function uk(t){return t===void 0?"inherit":t?"yes":"no"}function ck(t){const r=td();return t?{...r,allowMode:t.allowedPeerIds||t.allowedPeerLists?"only":"any",allowedPeerIds:[...t.allowedPeerIds??[]],allowedListIds:[...t.allowedPeerLists??[]],blockedPeerIds:[...t.blockedPeerIds??[]],blockedListIds:[...t.blockedPeerLists??[]],minTrustScore:hi(t.minTrustScore),minReputation:hi(t.minReputation),requireVerified:t.requireVerified===!0,requireTee:t.requireTee===!0,maxInputUsdPerMillion:hi(t.maxInputUsdPerMillion),maxOutputUsdPerMillion:hi(t.maxOutputUsdPerMillion),maxCachedInputUsdPerMillion:hi(t.maxCachedInputUsdPerMillion),maxImageUsdPerImage:hi(t.maxImageUsdPerImage),preferFreePeers:uk(t.preferFreePeers),sort:t.sort??"",modelsMode:t.allowedModels?"only":"any",allowedModels:[...t.allowedModels??[]],routes:Object.entries(t.modelRoutes??{}).map(([i,s])=>({model:i,peerIds:[...s.peerIds],strict:s.strict===!0}))}:r}class _a extends Error{}function zu(t,r,i){const s=r.trim();if(s==="")return;const l=Number(s);if(!Number.isFinite(l)||l<0)throw new _a(`${t} must be a positive number.`);if(i!==void 0&&l>i)throw new _a(`${t} must be at most ${i}.`);return l}function mi(t){return[...new Set(t.map(r=>r.trim()).filter(Boolean))]}function qp(t,r){const i=mi(t);return r?i.filter(s=>r.some(l=>l.id===s)):i}function AC(t,r=null){const i={};if(t.allowMode==="only"){const h=qp(t.allowedListIds,r),y=mi(t.allowedPeerIds);(y.length>0||h.length===0)&&(i.allowedPeerIds=y),h.length>0&&(i.allowedPeerLists=h)}const s=mi(t.blockedPeerIds);s.length>0&&(i.blockedPeerIds=s);const l=qp(t.blockedListIds,r);l.length>0&&(i.blockedPeerLists=l);const f=zu("Minimum trust",t.minTrustScore,100);f!==void 0&&(i.minTrustScore=f);const v=zu("Minimum reputation",t.minReputation,100);v!==void 0&&(i.minReputation=v),t.requireVerified&&(i.requireVerified=!0),t.requireTee&&(i.requireTee=!0);const m=[["maxInputUsdPerMillion","Input price cap"],["maxOutputUsdPerMillion","Output price cap"],["maxCachedInputUsdPerMillion","Cached input price cap"],["maxImageUsdPerImage","Image price cap"]];for(const[h,y]of m){const x=zu(y,t[h]);x!==void 0&&(i[h]=x)}t.preferFreePeers!=="inherit"&&(i.preferFreePeers=t.preferFreePeers==="yes"),t.sort&&(i.sort=t.sort),t.modelsMode==="only"&&(i.allowedModels=mi(t.allowedModels));const g=t.routes.filter(h=>h.model.trim()!=="");if(g.length>0){const h=new Set;i.modelRoutes={};for(const y of g){const x=y.model.trim();if(h.has(x))throw new _a(`Model "${x}" has two fallback chains.`);h.add(x);const C=mi(y.peerIds);if(C.length===0)throw new _a(`Add at least one seller to the "${x}" chain.`);i.modelRoutes[x]=y.strict?{peerIds:C,strict:!0}:{peerIds:C}}}return i}function nd(t){return!t||Object.keys(t).length===0}function DC(t){return nd(t)?null:t}function dk(t){var s,l,f,v,m,g;if(nd(t))return"Inherits";const r=t,i=[];if(r.allowedPeerIds||r.allowedPeerLists){const h=(s=r.allowedPeerLists)!=null&&s.length?` + ${r.allowedPeerLists.length} list${r.allowedPeerLists.length===1?"":"s"}`:"";i.push(`${((l=r.allowedPeerIds)==null?void 0:l.length)??0} allowed${h}`)}if((f=r.blockedPeerIds)!=null&&f.length||(v=r.blockedPeerLists)!=null&&v.length){const h=(m=r.blockedPeerLists)!=null&&m.length?` + ${r.blockedPeerLists.length} list${r.blockedPeerLists.length===1?"":"s"}`:"";i.push(`${((g=r.blockedPeerIds)==null?void 0:g.length)??0} blocked${h}`)}return r.requireTee&&i.push("TEE only"),r.requireVerified&&i.push("verified only"),r.minTrustScore!==void 0&&i.push(`trust ≥ ${r.minTrustScore}`),r.minReputation!==void 0&&i.push(`reputation ≥ ${r.minReputation}`),(r.maxInputUsdPerMillion!==void 0||r.maxOutputUsdPerMillion!==void 0)&&i.push("price caps"),r.allowedModels&&i.push(`${r.allowedModels.length} models`),r.modelRoutes&&i.push(`${Object.keys(r.modelRoutes).length} fallback chains`),r.sort&&i.push(lk[r.sort].toLowerCase()),r.preferFreePeers&&i.push("free first"),i.join(" · ")||"Custom"}function FC(t){if(!t)return null;const r={};t.minPeerReputation>0&&(r.minReputation=t.minPeerReputation),t.requireVerifier&&(r.requireVerified=!0),t.maxPricing&&(r.maxInputUsdPerMillion=t.maxPricing.inputUsdPerMillion,r.maxOutputUsdPerMillion=t.maxPricing.outputUsdPerMillion,t.maxPricing.cachedInputUsdPerMillion!==null&&(r.maxCachedInputUsdPerMillion=t.maxPricing.cachedInputUsdPerMillion));const i=t.routingPreferences;return i&&(i.minTrustScore>0&&(r.minTrustScore=i.minTrustScore),i.allowedPeerIds.length>0&&(r.allowedPeerIds=[...i.allowedPeerIds]),i.blockedPeerIds.length>0&&(r.blockedPeerIds=[...i.blockedPeerIds])),r}function $C(t){const r=[];t.minPeerReputation>0&&r.push(`reputation ≥ ${t.minPeerReputation}`),t.requireVerifier&&r.push("verified sellers only"),t.maxPricing&&(r.push(`≤ ${wi(t.maxPricing.inputUsdPerMillion)}/M in`),r.push(`≤ ${wi(t.maxPricing.outputUsdPerMillion)}/M out`),t.maxPricing.cachedInputUsdPerMillion!==null&&r.push(`≤ ${wi(t.maxPricing.cachedInputUsdPerMillion)}/M cached`));const i=t.routingPreferences;return i&&(i.minTrustScore>0&&r.push(`trust ≥ ${i.minTrustScore}`),i.allowedPeerIds.length>0&&r.push(`only ${xn(i.allowedPeerIds.length,"allowed seller")}`),i.blockedPeerIds.length>0&&r.push(xn(i.blockedPeerIds.length,"blocked seller")),i.preferFreePeers&&r.push("free first")),r}const xn=(t,r)=>`${t} ${r}${t===1?"":"s"}`,fk={balanced:"balanced",price:"price",latency:"latency",trust:"trust"};function zC(t){var l,f,v,m,g,h,y;if(nd(t))return[];const r=t,i=[],s=x=>x?` + ${xn(x,"list")}`:"";if(r.allowedPeerIds||r.allowedPeerLists){const x=((l=r.allowedPeerIds)==null?void 0:l.length)??0;i.push(x===0&&!((f=r.allowedPeerLists)!=null&&f.length)?"No seller allowed":`Allow ${x?xn(x,"seller"):""}${x?s((v=r.allowedPeerLists)==null?void 0:v.length):xn(r.allowedPeerLists.length,"list")}`)}if((m=r.blockedPeerIds)!=null&&m.length||(g=r.blockedPeerLists)!=null&&g.length){const x=((h=r.blockedPeerIds)==null?void 0:h.length)??0;i.push(`Block ${x?xn(x,"seller")+s((y=r.blockedPeerLists)==null?void 0:y.length):xn(r.blockedPeerLists.length,"list")}`)}return r.requireTee&&i.push("TEE only"),r.requireVerified&&i.push("Verified only"),r.minTrustScore!==void 0&&i.push(`Trust ≥ ${r.minTrustScore}`),r.minReputation!==void 0&&i.push(`Reputation ≥ ${r.minReputation}`),r.maxInputUsdPerMillion!==void 0&&i.push(`≤ $${r.maxInputUsdPerMillion}/M in`),r.maxOutputUsdPerMillion!==void 0&&i.push(`≤ $${r.maxOutputUsdPerMillion}/M out`),r.maxCachedInputUsdPerMillion!==void 0&&i.push(`≤ $${r.maxCachedInputUsdPerMillion}/M cached`),r.maxImageUsdPerImage!==void 0&&i.push(`≤ $${r.maxImageUsdPerImage}/image`),r.allowedModels&&i.push(r.allowedModels.length===0?"No model allowed":xn(r.allowedModels.length,"model")),r.modelRoutes&&Object.keys(r.modelRoutes).length>0&&i.push(xn(Object.keys(r.modelRoutes).length,"fallback chain")),r.sort&&i.push(`Sort: ${fk[r.sort]}`),r.preferFreePeers!==void 0&&i.push(r.preferFreePeers?"Free sellers first":"Free sellers not first"),i}const UC=[{id:"cheapest",label:"Cheapest",description:"Lowest price first, free sellers ahead."},{id:"trusted",label:"Most trusted",description:"Trust 70+ and reputation 60+, ranked by trust."},{id:"tee",label:"TEE only",description:"Only sellers running in a trusted execution environment."},{id:"own",label:"Own peers only",description:"Only sellers in one of your peer lists."}];function BC(t,r=[]){switch(t){case"cheapest":return{sort:"price",preferFreePeers:!0};case"trusted":return{sort:"trust",minTrustScore:70,minReputation:60};case"tee":return{requireTee:!0};case"own":return{allowedPeerIds:mi(r)}}}function HC(t,r,i,s){var v,m,g;const l=structuredClone(t??{}),f=h=>h==null?void 0:h.filter(y=>!tg(y,i));if(r==="allow")l.allowedPeerIds=[...f(l.allowedPeerIds)??[],i],l.blockedPeerIds=f(l.blockedPeerIds);else if(r==="block")l.blockedPeerIds=[...f(l.blockedPeerIds)??[],i],l.allowedPeerIds&&(l.allowedPeerIds=f(l.allowedPeerIds)),((v=l.allowedPeerIds)==null?void 0:v.length)===0&&!((m=l.allowedPeerLists)!=null&&m.length)&&delete l.allowedPeerIds;else if(r==="prefer"){if(!s)throw new Error("Pick a model to prefer this seller for.");const h={...l.modelRoutes??{}},y=h[s];h[s]={...y??{},peerIds:[i,...f(y==null?void 0:y.peerIds)??[]]},l.modelRoutes=h,l.blockedPeerIds=f(l.blockedPeerIds)}else l.allowedPeerIds&&(l.allowedPeerIds=f(l.allowedPeerIds)),l.blockedPeerIds=f(l.blockedPeerIds),l.modelRoutes&&(l.modelRoutes=Object.fromEntries(Object.entries(l.modelRoutes).map(([h,y])=>[h,{...y,peerIds:f(y.peerIds)??[]}]).filter(([,h])=>h.peerIds.length>0)));return((g=l.blockedPeerIds)==null?void 0:g.length)===0&&delete l.blockedPeerIds,l.modelRoutes&&Object.keys(l.modelRoutes).length===0&&delete l.modelRoutes,l}function WC(t,r){var s;const i=t==null?void 0:t.allowedPeerIds;return!i||(s=t==null?void 0:t.allowedPeerLists)!=null&&s.length?!1:i.length>0&&i.every(l=>tg(l,r))}const hk={allowMode:"allowed sellers",minTrustScore:"minimum trust",minReputation:"minimum reputation",requireVerified:"verified only",requireTee:"TEE only",maxInputUsdPerMillion:"input price cap",maxOutputUsdPerMillion:"output price cap",maxCachedInputUsdPerMillion:"cached input price cap",maxImageUsdPerImage:"image price cap",preferFreePeers:"free sellers first",sort:"sort order",modelsMode:"allowed models"};function VC(t){const r=ck(t),i=td(),s={};for(const l of Object.keys(r))JSON.stringify(r[l])!==JSON.stringify(i[l])&&(s[l]=r[l]);return(t.allowedPeerIds||t.allowedPeerLists)&&(s.allowMode="only",s.allowedPeerIds=r.allowedPeerIds,s.allowedListIds=r.allowedListIds),s}function qC(t,r){const i=td(),s=new Set;for(const l of Object.keys(r)){const f=JSON.stringify(t[l]);if(f===JSON.stringify(i[l])||f===JSON.stringify(r[l]))continue;const v=hk[l]??(l==="allowedPeerIds"||l==="allowedListIds"?"allowed sellers":null);v&&s.add(v)}return[...s]}function KC(t,r){return{...t,...r}}function QC(t,r,i){const s=[...t],l=r+i;if(r<0||r>=s.length||l<0||l>=s.length)return s;const[f]=s.splice(r,1);return s.splice(l,0,f),s}function GC(t,r=null){if(!t||t.allowedPeerIds===void 0&&t.allowedPeerLists===void 0||(t.allowedPeerIds??[]).some(s=>s.trim()!==""))return!1;const i=t.allowedPeerLists??[];return i.length===0?!0:r?i.every(s=>{var l;return(((l=r.find(f=>f.id===s))==null?void 0:l.peerIds.length)??0)===0}):!1}function pk(t,r){if(t===void 0)return r;if(r===void 0)return t;const i=new Set(r.map(Nr));return t.filter(s=>i.has(Nr(s)))}function mk(t,r){return t===void 0?r:r===void 0?t:[...new Set([...t,...r])]}function rd(t,r,i){return t===void 0?r:r===void 0?t:i(t,r)}const Kp=(t,r)=>rd(t,r,Math.max),ca=(t,r)=>rd(t,r,Math.min),vk=(t,r)=>t.filter(i=>r.some(s=>s.toLowerCase()===i.toLowerCase()));function gk(t,r){const{allowedPeerLists:i,blockedPeerLists:s,...l}=t,f=m=>m.flatMap(g=>{var h;return((h=r.find(y=>y.id===g))==null?void 0:h.peerIds)??[]}),v={...l};return i!==void 0&&(v.allowedPeerIds=[...l.allowedPeerIds??[],...f(i)]),s!=null&&s.length&&(v.blockedPeerIds=[...l.blockedPeerIds??[],...f(s)]),v}function yk(...t){let r={};for(const i of t){if(!i)continue;const s={allowedPeerIds:pk(r.allowedPeerIds,i.allowedPeerIds),blockedPeerIds:mk(r.blockedPeerIds,i.blockedPeerIds),minTrustScore:Kp(r.minTrustScore,i.minTrustScore),minReputation:Kp(r.minReputation,i.minReputation),requireVerified:r.requireVerified||i.requireVerified?!0:void 0,requireTee:r.requireTee||i.requireTee?!0:void 0,maxInputUsdPerMillion:ca(r.maxInputUsdPerMillion,i.maxInputUsdPerMillion),maxOutputUsdPerMillion:ca(r.maxOutputUsdPerMillion,i.maxOutputUsdPerMillion),maxCachedInputUsdPerMillion:ca(r.maxCachedInputUsdPerMillion,i.maxCachedInputUsdPerMillion),maxImageUsdPerImage:ca(r.maxImageUsdPerImage,i.maxImageUsdPerImage),preferFreePeers:i.preferFreePeers??r.preferFreePeers,sort:i.sort??r.sort,allowedModels:rd(r.allowedModels,i.allowedModels,vk),modelRoutes:i.modelRoutes||r.modelRoutes?{...r.modelRoutes??{},...i.modelRoutes??{}}:void 0};r=Object.fromEntries(Object.entries(s).filter(([,l])=>l!==void 0))}return r}function wk(t,r){if(t.allowedModels&&!t.allowedModels.some(s=>s.toLowerCase()===r.service.toLowerCase()))return!1;const i=(s,l)=>l!==void 0&&s!==null&&s>l;return!(i(r.inputUsdPerMillion,t.maxInputUsdPerMillion)||i(r.outputUsdPerMillion,t.maxOutputUsdPerMillion)||i(r.cachedInputUsdPerMillion,t.maxCachedInputUsdPerMillion))}function YC(t,r,i=[]){const s=gk(t,i),l=s.allowedPeerIds?new Set(s.allowedPeerIds.map(Nr)):null,f=new Set((s.blockedPeerIds??[]).map(Nr));return r.filter(v=>{const m=Nr(v.peerId);return f.has(m)||l&&!l.has(m)||s.minTrustScore!==void 0&&(v.trustScore??0)<s.minTrustScore||s.minReputation!==void 0&&(v.reputationScore??0)<s.minReputation||s.requireVerified&&!v.verified||s.requireTee&&!v.tee?!1:v.services.some(g=>wk(s,g))})}function ZC(t){return!!t&&t.some(r=>r.reputationScore!==null)}function XC(t,r,i=!1){const s=t?t.ownerMemberId===r.memberId:!0;return{admin:r.workspaceAdmin,owner:s,layered:t?Sv(t):i}}function xk(t,r){return t===null?r:r===null||Xe(t)<=Xe(r)?t:r}function kk(t,r){const i={};for(const s of jv)i[s]=xk((t==null?void 0:t[s])??null,(r==null?void 0:r[s])??null);return i}function JC(t){const r=Sv(t)?t:null;return{limits:kk(t.limits,r==null?void 0:r.ownerLimits),policy:yk(t.routingPolicy,(r==null?void 0:r.ownerRoutingPolicy)??null)}}function e_(t,r,i){const s={label:i.label};return i.expiresAt!==r.expiresAt&&(s.expiresAt=i.expiresAt),t.admin&&(s.limits=i.adminLimits,s.routingPolicy=i.adminPolicy,i.topupEnabled!==r.topupEnabled&&(s.topupEnabled=i.topupEnabled)),t.owner&&t.layered?(s.ownerLimits=i.ownerLimits,s.ownerRoutingPolicy=i.ownerPolicy):t.owner&&!t.admin&&(s.limits=i.ownerLimits,s.routingPolicy=i.ownerPolicy),s}const Sk={allowedPeerIds:"allowed sellers",allowedPeerLists:"allowed peer lists",allowedModels:"allowed models",modelRoutes:"fallback chains",maxInputUsdPerMillion:"input price cap",maxOutputUsdPerMillion:"output price cap",maxCachedInputUsdPerMillion:"cached input price cap",maxImageUsdPerImage:"image price cap",minTrustScore:"minimum trust",minReputation:"minimum reputation"};function Ck(t){const[,r=t]=t.split(".");return/Limits$|^limits$/.test(t.split(".")[0]??"")?`${r} limit`:Sk[r]??r}function _k(t){const r=[],i=t.fields;Array.isArray(i)&&i.length&&r.push(`Narrowed by the levels above: ${[...new Set(i.map(f=>Ck(String(f))))].join(", ")}.`);const s=t.effectiveRoutingPolicy;s&&typeof s=="object"&&r.push(`Routing that would apply: ${dk(s)}.`);const l=t.effectiveLimits;return l&&typeof l=="object"&&r.push(`Limits that would apply: ${Jx(l)}.`),r}const va=Symbol("cancelled");async function t_(t,r,i){const s={};if(t){if(!await i({kind:"empty"}))return va;s.confirmEmpty=!0}for(;;)try{return await r({...s})}catch(l){if(Lr(l,"empty_allow_list")&&!s.confirmEmpty){if(!await i({kind:"empty"}))return va;s.confirmEmpty=!0}else if(Lr(l,"narrowed")&&!s.acceptNarrowed){if(!await i({kind:"narrowed",message:l.message,lines:_k(l.details)}))return va;s.acceptNarrowed=!0}else throw l}}function Ea(t){const r=ln(),i=Hc();return d1({mutationFn:t.mutationFn,onSuccess:(s,l)=>{var m;if(s===va)return;const f=s;(m=t.onSuccess)==null||m.call(t,f,l);for(const g of t.invalidate??[])r.invalidateQueries({queryKey:g});const v=typeof t.toast=="function"?t.toast(f,l):t.toast;v&&i(v)},onError:t.onError})}async function Ek(t=le){const r=await t.auth.reauthPasskeyOptions(),i=await eg({optionsJSON:r});return t.auth.reauthPasskeyVerify(i)}async function n_(t,r,i=le){const{message:s}=await i.auth.reauthWalletNonce(t);return i.auth.reauthWalletVerify(s,await r(s))}function Pk(t,r){if(t.kind!=="member"||t.me.member.id!==r)throw new Error("That sign-in belongs to a different account. Reload the page and sign in as yourself.")}const pc="The passkey prompt was closed.";function mc(t){return t instanceof Error&&t.name==="NotAllowedError"}function Do({error:t,onRetry:r,title:i="Could not load this"}){return d.jsx(lt,{tone:"danger",title:i,action:r?d.jsx(Ee,{variant:"outline",size:"sm",onClick:r,children:"Retry"}):void 0,children:Ta(t)})}function jk({query:t,children:r,rows:i}){return t.isLoading?d.jsx(Mi,{rows:i}):t.error?d.jsx(Do,{error:t.error,onRetry:()=>void t.refetch()}):t.data===void 0?null:d.jsx(d.Fragment,{children:r(t.data)})}function r_({children:t,title:r}){return d.jsx("code",{className:"gc-mono",title:r,children:t})}function i_({label:t,value:r,strong:i}){return d.jsxs("div",{className:"gc-figure",children:[d.jsx("div",{className:"gc-figure__label",children:t}),d.jsx("div",{className:i?"gc-figure__value gc-figure__value--strong":"gc-figure__value",children:r})]})}function o_({name:t,hint:r}){return d.jsxs("div",{children:[d.jsx("div",{className:"gc-strong",children:t}),d.jsx("code",{className:"gc-mono gc-muted",children:r})]})}function s_({at:t,format:r}){return t===null?d.jsx(d.Fragment,{children:"Never"}):t<Date.now()?d.jsx(pi,{tone:"warning",children:"Expired"}):d.jsx(d.Fragment,{children:r(t)})}const bk="Showing last known values — the chain RPC is busy.";function a_({stale:t}){return t?d.jsx("p",{className:"gc-muted",role:"status",children:bk}):null}function l_({to:t,children:r}){return d.jsx("a",{className:"gc-link",href:Wo(t),onClick:Gc(t),children:r})}const Tk=I.lazy(()=>ze(()=>import("./WalletSignIn-BTt56Pbi.js"),__vite__mapDeps([0,1,2,3,4]))),Rk=I.lazy(()=>ze(()=>import("./WalletConfirm-dV_LWLAS.js"),__vite__mapDeps([5,6,1,2,3,4])));function Nk({isOpen:t,onClose:r,startWith:i,intro:s,onCredentialAdded:l}){const{me:f}=jn(),v=ln(),m=Zc(t),[g,h]=I.useState("idle"),[y,x]=I.useState(i==="wallet"?"add":null),[C,R]=I.useState(null),[A,E]=I.useState(null),[M,L]=I.useState(!1),F=f.member.credentials,P=F.some(X=>X.kind==="passkey"),b=F.some(X=>X.kind==="wallet");function D(X){Pk(X,f.member.id),v.setQueryData(Se.me,X)}function W(X){return Lr(X,"reauth_required")?(h("needed"),R(null)):R(X),!0}async function te(){L(!0),R(null);try{const X=await le.auth.passkeyRegisterOptions(),Re=await Jv({optionsJSON:X});D(await le.auth.passkeyRegisterVerify(Re)),h("idle"),l==null||l()}catch(X){mc(X)?R(new Error(pc)):W(X)}finally{L(!1)}}async function Z(){L(!0),R(null);try{D(await Ek()),h("done")}catch(X){R(mc(X)?new Error(pc):X)}finally{L(!1)}}const se=Ea({mutationFn:X=>le.members.removeCredential(f.member.id,X.id),onSuccess:()=>E(null),onError:X=>{Lr(X,"reauth_required")&&(E(null),h("needed"))},invalidate:[Se.me]}),de=F.length<=1;return d.jsxs(vv,{isOpen:t,onClose:r,size:"lg",eyebrow:Kc[f.member.orgRole],title:f.member.label,subtitle:f.member.email??void 0,children:[d.jsxs("div",{className:"gc-stack",children:[s,d.jsxs("section",{className:"gc-stack gc-stack--tight",children:[d.jsx("div",{className:"as-field__label",children:"Your sign-in methods"}),F.length===0?d.jsx(lt,{tone:"info",children:"You signed in through your organization's access proxy and have no passkey or wallet here. Add one to approve sensitive actions, such as authorizing a withdrawal wallet."}):d.jsx("ul",{className:"gc-list gc-credentials",children:F.map(X=>d.jsxs("li",{className:"gc-inline gc-inline--between",children:[d.jsxs("span",{className:"gc-credential",children:[d.jsx(pi,{children:X.kind})," ",d.jsx("span",{className:"gc-credential__label",children:X.label}),d.jsxs("span",{className:"gc-muted",children:[" · added ",xa(X.createdAt)," · last used ",xa(X.lastUsedAt)]})]}),d.jsx(Ee,{variant:"ghost",size:"sm",disabled:de,title:de?"Add another sign-in method first":void 0,onClick:()=>{se.reset(),E(X)},children:"Remove"})]},X.id))}),de&&F.length===1&&d.jsx("p",{className:"gc-fineprint",children:"This is your only sign-in method. Add another before removing it."})]}),g==="needed"&&d.jsx(lt,{tone:"info",title:"Confirm it is you",children:d.jsxs("div",{className:"gc-stack gc-stack--tight",children:[d.jsx("span",{children:"Changing your sign-in methods needs a recent sign-in. Confirm with one you already have, then try again."}),d.jsxs("div",{className:"gc-inline gc-inline--wrap",children:[P&&d.jsx(Ee,{size:"sm",disabled:M,onClick:()=>void Z(),children:"Confirm with a passkey"}),b&&y!=="confirm"&&d.jsx(Ee,{size:"sm",variant:"outline",onClick:()=>x("confirm"),children:"Confirm with a wallet"})]}),y==="confirm"&&d.jsx(I.Suspense,{fallback:d.jsx(Ee,{size:"sm",disabled:!0,children:"Loading wallets…"}),children:d.jsx(Rk,{onConfirmed:X=>{D(X),h("done"),x(null)}})}),!P&&!b&&d.jsx("span",{children:"Sign out and sign in again, then add it."})]})}),g==="done"&&d.jsx(lt,{tone:"success",children:"Confirmed. Add or remove the sign-in method now."}),m.data&&d.jsxs("section",{className:"gc-stack gc-stack--tight",children:[d.jsx("div",{className:"as-field__label",children:"Add a sign-in method"}),d.jsxs("div",{className:"gc-inline gc-inline--wrap",children:[m.data.passkey&&d.jsx(Ee,{variant:"outline",size:"sm",disabled:M||!Vo(),onClick:()=>void te(),children:M?"Waiting for your passkey…":"Add a passkey"}),m.data.wallet&&y!=="add"&&d.jsx(Ee,{variant:"outline",size:"sm",onClick:()=>x("add"),children:"Add a wallet"}),m.data.oidc&&d.jsxs(Ee,{variant:"outline",size:"sm",href:le.auth.oidcLinkUrl(),children:["Link ",m.data.oidc.label]})]}),y==="add"&&d.jsx(I.Suspense,{fallback:d.jsx(Ee,{size:"sm",disabled:!0,children:"Loading wallets…"}),children:d.jsx(Tk,{autoConnect:!0,actionLabel:X=>`Add ${X} as a sign-in method`,onError:W,onSignedIn:X=>{D(X),x(null),h("idle"),l==null||l()}})}),d.jsx("p",{className:"gc-fineprint",children:"A wallet you add can become this workspace's withdrawal wallet only 24 hours later."})]}),C?d.jsx(lt,{tone:"danger",children:Ta(C)}):null,d.jsx("div",{className:"gc-actions",children:d.jsx(Ee,{onClick:r,children:"Done"})})]}),d.jsx(gv,{isOpen:A!==null,busy:se.isPending,error:se.error,onClose:()=>{E(null),se.reset()},onConfirm:()=>A&&se.mutate(A),title:"Remove this sign-in method?",confirmLabel:"Remove",body:`You can no longer sign in with ${(A==null?void 0:A.label)??"it"}.`})]})}const ng="antseed-console-exposure-dismissed";function Ik(t,r,i){return!r||r.mode==="public"||i?!1:Oi(t)}function Qp(t){if(!t)return!1;try{return sessionStorage.getItem(ng)===t}catch{return!1}}function Mk(t){try{sessionStorage.setItem(ng,t)}catch{}}function Lk(t){return t.mode==="local"?"This gateway runs on this computer":"This gateway is only reachable on your network"}function Ok(t){return t.mode==="local"?"Keys only work while it's on and can't be reached from other machines.":t.personalComputer?"Keys only work while this computer is on, over plain HTTP, and not from outside your network.":"It has no public HTTPS address: keys travel over plain HTTP and do not work from outside your network."}const Ak=/^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$/;function u_(t){const r=t.trim().toLowerCase().replace(/^https?:\/\//,"").replace(/[/:].*$/,"");return Ak.test(r)?r:null}const da="antseed-gateway.bundle";function c_(t){const r=t.domain??"llm.example.com",i=t.server.trim()||"user@your-server",s=`/tmp/${da}`;return{exportBundle:`antseed gateway export --out ${da}`,copy:`scp ${da} ${i}:${s}`,install:`curl -fsSL https://antseed.com/install-gateway.sh | sudo bash -s -- --domain ${r} --import ${s}`,baseUrl:`https://${r}/v1`,stop:`rm ${da}`,recover:"antseed gateway console-link --recover",tunnel:`CLOUDFLARED_TUNNEL_TOKEN=<tunnel-token> ANTSEED_TUNNEL_PUBLIC_URL=https://${r} \\
|
|
84
|
-
antseed tunnel start --provider cloudflare`}}function he({size:t=16,children:r,...i}){return d.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...i,children:r})}const ut={teeFull:t=>d.jsxs(he,{...t,children:[d.jsx("path",{d:"M12 3 4.5 6v5.5c0 4.6 3.2 8.4 7.5 9.5 4.3-1.1 7.5-4.9 7.5-9.5V6z"}),d.jsx("path",{d:"m8.8 12 2.2 2.2 4.2-4.4"})]}),teePartial:t=>d.jsxs(he,{...t,children:[d.jsx("path",{d:"M12 3 4.5 6v5.5c0 4.6 3.2 8.4 7.5 9.5 4.3-1.1 7.5-4.9 7.5-9.5V6z"}),d.jsx("path",{d:"M12 3v18c-4.3-1.1-7.5-4.9-7.5-9.5V6z",fill:"currentColor",stroke:"none"})]}),overview:t=>d.jsxs(he,{...t,children:[d.jsx("rect",{x:"3",y:"3",width:"7",height:"9",rx:"1.5"}),d.jsx("rect",{x:"14",y:"3",width:"7",height:"5",rx:"1.5"}),d.jsx("rect",{x:"14",y:"12",width:"7",height:"9",rx:"1.5"}),d.jsx("rect",{x:"3",y:"16",width:"7",height:"5",rx:"1.5"})]}),chat:t=>d.jsxs(he,{...t,children:[d.jsx("path",{d:"M4 5h16v11H9l-5 4z"}),d.jsx("path",{d:"M8 9.5h8M8 12.5h5"})]}),activity:t=>d.jsx(he,{...t,children:d.jsx("path",{d:"M3 12h4l3 8 4-16 3 8h4"})}),logs:t=>d.jsx(he,{...t,children:d.jsx("path",{d:"M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01"})}),keys:t=>d.jsxs(he,{...t,children:[d.jsx("circle",{cx:"8",cy:"15",r:"4"}),d.jsx("path",{d:"m10.8 12.2 9.2-9.2M17 6l3 3M14 9l2 2"})]}),members:t=>d.jsxs(he,{...t,children:[d.jsx("circle",{cx:"9",cy:"8",r:"3.5"}),d.jsx("path",{d:"M2.5 20a6.5 6.5 0 0 1 13 0M16 4.5a3.5 3.5 0 0 1 0 7M18 14.5a6.5 6.5 0 0 1 3.5 5.5"})]}),workspaces:t=>d.jsx(he,{...t,children:d.jsx("path",{d:"M3 7h18v13H3zM8 7V4h8v3"})}),wallet:t=>d.jsxs(he,{...t,children:[d.jsx("path",{d:"M3 7a2 2 0 0 1 2-2h13v4"}),d.jsx("rect",{x:"3",y:"7",width:"18",height:"13",rx:"2"}),d.jsx("circle",{cx:"16.5",cy:"13.5",r:"1.3"})]}),rewards:t=>d.jsxs(he,{...t,children:[d.jsx("path",{d:"M12 15a6 6 0 1 0 0-12 6 6 0 0 0 0 12Z"}),d.jsx("path",{d:"m8.5 14-1.5 7 5-3 5 3-1.5-7"})]}),staking:t=>d.jsx(he,{...t,children:d.jsx("path",{d:"M3 20h18M5 16v-4M10 16V7M15 16v-6M20 16V4"})}),providers:t=>d.jsxs(he,{...t,children:[d.jsx("circle",{cx:"12",cy:"5",r:"2.2"}),d.jsx("circle",{cx:"5",cy:"18",r:"2.2"}),d.jsx("circle",{cx:"19",cy:"18",r:"2.2"}),d.jsx("path",{d:"M11 7 6 16M13 7l5 9M7.2 18h9.6"})]}),network:t=>d.jsxs(he,{...t,children:[d.jsx("circle",{cx:"12",cy:"5",r:"2.2"}),d.jsx("circle",{cx:"5",cy:"18",r:"2.2"}),d.jsx("circle",{cx:"19",cy:"18",r:"2.2"}),d.jsx("path",{d:"M11 7 6 16M13 7l5 9M7.2 18h9.6"})]}),models:t=>d.jsxs(he,{...t,children:[d.jsx("path",{d:"m12 3 9 5-9 5-9-5z"}),d.jsx("path",{d:"m3 12.5 9 5 9-5M3 17l9 5 9-5"})]}),routing:t=>d.jsx(he,{...t,children:d.jsx("path",{d:"M6 3v6a4 4 0 0 0 4 4h8M14 9l4 4-4 4M6 21v-4"})}),presets:t=>d.jsxs(he,{...t,children:[d.jsx("path",{d:"M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12M20 18h0"}),d.jsx("circle",{cx:"16",cy:"6",r:"2"}),d.jsx("circle",{cx:"10",cy:"12",r:"2"}),d.jsx("circle",{cx:"18",cy:"18",r:"2"})]}),settings:t=>d.jsxs(he,{...t,children:[d.jsx("circle",{cx:"12",cy:"12",r:"3"}),d.jsx("path",{d:"M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1Z"})]}),audit:t=>d.jsxs(he,{...t,children:[d.jsx("path",{d:"M9 4h6a1 1 0 0 1 1 1v1H8V5a1 1 0 0 1 1-1Z"}),d.jsx("path",{d:"M8 6H6a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1h-2M9 12h6M9 16h4"})]}),copy:t=>d.jsxs(he,{...t,children:[d.jsx("rect",{x:"9",y:"9",width:"12",height:"12",rx:"2"}),d.jsx("path",{d:"M5 15V5a2 2 0 0 1 2-2h10"})]}),check:t=>d.jsx(he,{...t,children:d.jsx("path",{d:"m5 12 5 5L20 7"})}),right:t=>d.jsx(he,{...t,children:d.jsx("path",{d:"m9 6 6 6-6 6"})}),left:t=>d.jsx(he,{...t,children:d.jsx("path",{d:"m15 6-6 6 6 6"})}),qr:t=>d.jsxs(he,{...t,children:[d.jsx("rect",{x:"3",y:"3",width:"7",height:"7",rx:"1"}),d.jsx("rect",{x:"14",y:"3",width:"7",height:"7",rx:"1"}),d.jsx("rect",{x:"3",y:"14",width:"7",height:"7",rx:"1"}),d.jsx("path",{d:"M14 14h3v3M21 14v.01M14 21h3M20 18v3"})]}),lock:t=>d.jsxs(he,{...t,children:[d.jsx("rect",{x:"4",y:"10",width:"16",height:"11",rx:"2"}),d.jsx("path",{d:"M8 10V7a4 4 0 0 1 8 0v3"})]}),plus:t=>d.jsx(he,{...t,children:d.jsx("path",{d:"M12 5v14M5 12h14"})}),up:t=>d.jsx(he,{...t,children:d.jsx("path",{d:"m6 15 6-6 6 6"})}),down:t=>d.jsx(he,{...t,children:d.jsx("path",{d:"m6 9 6 6 6-6"})}),x:t=>d.jsx(he,{...t,children:d.jsx("path",{d:"M6 6l12 12M18 6 6 18"})}),menu:t=>d.jsx(he,{...t,children:d.jsx("path",{d:"M4 6h16M4 12h16M4 18h16"})}),sun:t=>d.jsxs(he,{...t,children:[d.jsx("circle",{cx:"12",cy:"12",r:"4"}),d.jsx("path",{d:"M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4"})]}),monitor:t=>d.jsxs(he,{...t,children:[d.jsx("rect",{x:"3",y:"4",width:"18",height:"12",rx:"2"}),d.jsx("path",{d:"M8 20h8M12 16v4"})]}),moon:t=>d.jsx(he,{...t,children:d.jsx("path",{d:"M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z"})}),external:t=>d.jsx(he,{...t,children:d.jsx("path",{d:"M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5"})}),download:t=>d.jsx(he,{...t,children:d.jsx("path",{d:"M12 4v11M7 10l5 5 5-5M4 20h16"})}),more:t=>d.jsxs(he,{...t,children:[d.jsx("circle",{cx:"5",cy:"12",r:"1"}),d.jsx("circle",{cx:"12",cy:"12",r:"1"}),d.jsx("circle",{cx:"19",cy:"12",r:"1"})]}),shield:t=>d.jsxs(he,{...t,children:[d.jsx("path",{d:"M12 3 4 6v6c0 4.5 3.4 8.3 8 9 4.6-.7 8-4.5 8-9V6Z"}),d.jsx("path",{d:"m9 12 2 2 4-4"})]}),compass:t=>d.jsxs(he,{...t,children:[d.jsx("circle",{cx:"12",cy:"12",r:"9"}),d.jsx("path",{d:"m15.5 8.5-2 5-5 2 2-5z"})]}),logout:t=>d.jsx(he,{...t,children:d.jsx("path",{d:"M15 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4M10 17l5-5-5-5M15 12H3"})})};function Dk(t){t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(t.preventDefault(),Kt("migrate"))}function Fk(){var f;const{viewer:t}=jn(),i=(f=Xc().data)==null?void 0:f.exposure,[s,l]=I.useState(()=>Qp(i==null?void 0:i.mode));return!Ik(t,i,s||Qp(i==null?void 0:i.mode))||!i?null:d.jsxs("div",{className:"gc-exposure",role:"region","aria-label":"Gateway reachability",children:[d.jsx("span",{className:"gc-exposure__icon","aria-hidden":"true",children:d.jsx(ut.monitor,{size:16})}),d.jsxs("div",{className:"gc-exposure__text",children:[d.jsxs("strong",{children:[Lk(i),"."]})," ",d.jsx("span",{children:Ok(i)})]}),d.jsxs("div",{className:"gc-exposure__actions",children:[d.jsxs(Ee,{size:"sm",variant:"outline",href:Wo("migrate"),onClick:Dk,className:"gc-exposure__cta",children:["Move to a server ",d.jsx("span",{className:"gc-exposure__rec",children:"(recommended)"})]}),d.jsx(Ho,{label:"Dismiss for this session",className:"gc-exposure__close",onClick:()=>{Mk(i.mode),l(!0)},children:d.jsx(ut.x,{size:14})})]})]})}const rg="antseed-console-update-dismissed",$k=6e4;function Or(t){return t.downloaded??null}function id(t,r=Date.now()){const i=t.progress;return(i==null?void 0:i.state)==="requested"?r-i.startedAt>$k?"stalled":"requested":(i==null?void 0:i.state)==="running"?i.action==="download"?"downloading":"installing":Or(t)?"ready":(i==null?void 0:i.state)==="failed"&&t.available?"failed":t.available?"available":"current"}function od(t){var r,i;return((r=t==null?void 0:t.progress)==null?void 0:r.state)==="requested"||((i=t==null?void 0:t.progress)==null?void 0:i.state)==="running"}function zk(t){var r;return od(t)&&((r=t==null?void 0:t.progress)==null?void 0:r.action)!=="download"}function Uk(t,r,i){return!r||!Oi(t)||r.apply==="none"?!1:od(r)?!0:(r.available||Or(r)!==null)&&ig(r)!==i}function ig(t){return Or(t)??t.latest}function Bk(){try{return localStorage.getItem(rg)}catch{return null}}function Hk(t){try{localStorage.setItem(rg,t)}catch{}}function sd(t){return t.product==="desktop"?"Antseed Desktop":"Antseed"}function Wk(t){const r=Hc(),i=I.useRef(null);I.useEffect(()=>{if(t){if(zk(t)){i.current??(i.current=t.current);return}if(i.current&&t.current!==i.current){i.current=null,r(`Updated to ${sd(t)} ${t.current}. Reloading…`);const s=window.setTimeout(()=>window.location.reload(),1500);return()=>window.clearTimeout(s)}}},[t,r])}function og(){const t=ln(),[r,i]=I.useState(!1),s=Ea({mutationFn:()=>le.update.apply("download"),onSuccess:f=>t.setQueryData(Se.update,f)}),l=Ea({mutationFn:()=>le.update.apply("install"),onSuccess:f=>{i(!1),t.setQueryData(Se.update,f)}});return{download:s,install:l,confirming:r,setConfirming:i}}function sg({update:t,actions:r}){const i=t?Or(t)??t.latest:null;return d.jsx(gv,{isOpen:r.confirming,busy:r.install.isPending,error:r.install.error,onClose:()=>r.setConfirming(!1),onConfirm:()=>r.install.mutate(),title:`Restart on ${t?sd(t):"Antseed"} ${i??""}?`,confirmLabel:"Restart & update",body:(t==null?void 0:t.product)==="desktop"?"The desktop app restarts into the new release. The gateway is unreachable while the app restarts, usually under a minute, and requests sent meanwhile fail. This page reloads by itself when the gateway is back.":"The buyer and the gateway restart one at a time on the new version. Requests in flight get up to a minute to finish, and new ones wait instead of failing, except through a Cloudflare tunnel while the gateway itself restarts (a few seconds). If the new version does not start, the server goes back to this one."})}function Vk(t){t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(t.preventDefault(),Kt("settings"))}function qk({quiet:t=!1}){var C;const{viewer:r}=jn(),i=Oi(r),s=bv(i),l=og(),[f,v]=I.useState(Bk);Wk(s.data);const m=s.data;if(t||!m||!Uk(r,m,f))return null;const g=id(m),h=sd(m),y=d.jsx("button",{type:"button",className:"gc-update-notice__link",onClick:()=>{const R=ig(m);Hk(R),v(R)},children:"Dismiss"});let x;return g==="installing"||g==="requested"&&((C=m.progress)==null?void 0:C.action)!=="download"?x=d.jsxs("span",{children:["Updating ",h,m.latest?` to ${m.latest}`:"",". ",m.product==="desktop"?"The app restarts":"The gateway restarts"," when it is done; this page reloads by itself."]}):g==="downloading"||g==="requested"?x=d.jsxs("span",{children:["Downloading ",h," ",m.latest,"…"]}):g==="ready"?x=d.jsxs(d.Fragment,{children:[d.jsxs("span",{children:[h," ",Or(m)," is downloaded and ready to install."]}),d.jsx("button",{type:"button",className:"gc-update-notice__link",onClick:()=>l.setConfirming(!0),children:"Restart & update"}),y]}):x=d.jsxs(d.Fragment,{children:[d.jsxs("span",{children:[h," ",m.latest," is available. This gateway runs ",m.current,"."]}),m.apply==="console"?d.jsx("button",{type:"button",className:"gc-update-notice__link",disabled:l.download.isPending,onClick:()=>l.download.mutate(),children:"Download"}):d.jsx("a",{className:"gc-update-notice__link",href:Wo("settings"),onClick:Vk,children:"Update"}),y]}),d.jsxs(d.Fragment,{children:[d.jsxs("p",{className:"gc-update-notice",role:"status",children:[d.jsx("span",{className:"gc-attention","aria-hidden":"true"}),x]}),d.jsx(sg,{update:m,actions:l})]})}function Kk({update:t}){const r=Or(t);return r?d.jsxs(pi,{tone:"warning",children:[r," ready to install"]}):t.available?d.jsxs(pi,{tone:"warning",children:[t.latest," available"]}):t.latest?d.jsx(pi,{tone:"success",children:"Up to date"}):d.jsx(pi,{children:"Not checked"})}function Qk({update:t}){var l,f,v;const r=id(t),i=t.product==="desktop",s=((l=t.progress)==null?void 0:l.to)??t.latest??"";if(r==="requested")return d.jsx("p",{className:"gc-muted",children:i?"Waiting for the desktop app…":"Waiting for the update service…"});if(r==="downloading")return d.jsx("p",{className:"gc-muted",children:i?`Downloading Antseed Desktop ${s}. The app keeps running until you restart it.`:`Downloading @antseed/cli ${s} next to the running version. The gateway keeps serving until you restart it.`});if(r==="ready"){const m=Or(t),g=t.latest&&t.latest!==m?` ${t.latest} came out since; download it after this update.`:"";return d.jsx("p",{className:"gc-muted",children:i?`Antseed Desktop ${m} is downloaded. Restart & update restarts the app into it.${g}`:`@antseed/cli ${m} is downloaded. Restart & update restarts the buyer and the gateway on it, one at a time, while requests wait for them.${g}`})}return r==="installing"?d.jsx("p",{className:"gc-muted",children:i?`Restarting into Antseed Desktop ${s}. This page reloads once it is back.`:`Restarting the buyer and the gateway on ${s} one at a time, while requests wait for them. This page reloads when it is done.`}):r==="stalled"&&i?d.jsxs("p",{className:"gc-override",children:[d.jsx("span",{className:"gc-attention","aria-hidden":"true"}),"The desktop app has not picked this up. Update it from the app on that computer instead."]}):r==="failed"&&i?d.jsxs("p",{className:"gc-override",children:[d.jsx("span",{className:"gc-attention","aria-hidden":"true"}),"The last update failed: ",((f=t.progress)==null?void 0:f.error)??"unknown error",". The app's log has the details."]}):r==="stalled"?d.jsxs("p",{className:"gc-override",children:[d.jsx("span",{className:"gc-attention","aria-hidden":"true"}),"The update service has not picked this up. On the server, check ",d.jsx("code",{children:"systemctl status antseed-update.path"}),"; servers installed before it existed need the installer re-run once."]}):r==="failed"?d.jsxs("p",{className:"gc-override",children:[d.jsx("span",{className:"gc-attention","aria-hidden":"true"}),"The last update failed: ",((v=t.progress)==null?void 0:v.error)??"unknown error",". Details: ",d.jsx("code",{children:"journalctl -u antseed-update"})]}):null}function d_(){var l;const t=ln(),r=bv(),i=og(),s=Ea({mutationFn:()=>le.update.check(),onSuccess:f=>t.setQueryData(Se.update,f)});return d.jsxs(Cx,{title:"Updates",description:((l=r.data)==null?void 0:l.product)==="desktop"?"This gateway runs in Antseed Desktop, which checks for new releases every 30 minutes. Nothing installs until you choose to.":"The gateway asks npm for the latest @antseed/cli every 30 minutes. Nothing installs until you choose to.",children:[d.jsx(jk,{query:r,children:f=>{const v=od(f),m=id(f);return d.jsxs("div",{className:"gc-stack",children:[d.jsx(Ex,{items:[["Running",d.jsxs("span",{className:"gc-update__version",children:[f.current," ",d.jsx(Kk,{update:f})]},"v")],[f.product==="desktop"?"Latest release":"Latest on npm",f.latest??"—"],["Last checked",f.checkError?d.jsxs("span",{className:"gc-override",children:[d.jsx("span",{className:"gc-attention","aria-hidden":"true"}),f.product==="desktop"?"Could not check":"Could not reach npm"," ",xa(f.checkedAt),": ",f.checkError]},"c"):xa(f.checkedAt)]]}),d.jsx(Qk,{update:f}),f.available&&!v&&f.apply==="command"&&f.command&&d.jsxs("div",{className:"gc-stack",children:[d.jsxs("p",{className:"gc-muted",children:[f.note," Update it on the gateway host, then restart the gateway:"]}),d.jsx(Px,{code:f.command,label:"Gateway host"})]}),f.available&&f.apply==="none"&&d.jsx("p",{className:"gc-muted",children:f.note}),s.error?d.jsx(Do,{error:s.error,title:"Could not check for updates"}):null,i.download.error?d.jsx(Do,{error:i.download.error,title:"Could not start the download"}):null,d.jsxs("div",{className:"gc-actions gc-actions--start",children:[f.apply==="console"&&(m==="available"||m==="failed")&&d.jsxs(Ee,{disabled:i.download.isPending,onClick:()=>i.download.mutate(),children:["Download ",f.latest]}),f.apply==="console"&&m==="downloading"&&d.jsx(Ee,{disabled:!0,children:"Downloading…"}),f.apply==="console"&&m==="ready"&&d.jsx(Ee,{onClick:()=>i.setConfirming(!0),children:"Restart & update"}),d.jsx(Ee,{variant:"outline",disabled:s.isPending||v,onClick:()=>s.mutate(),children:s.isPending?"Checking…":"Check now"})]})]})}}),d.jsx(sg,{update:r.data,actions:i})]})}function Gk(t,r){return(t||r).replace(/\/+$/,"")}function Yk(t){return`${t}/v1`}const Ra="ANTSEED_API_KEY",Na={env:Ra};function Zk(t){return"secret"in t?t.secret:`$${t.env}`}function ag(t){return"secret"in t?`'${t.secret}'`:`process.env.${t.env}`}function Xk(t){return"secret"in t?`"${t.secret}"`:`os.environ["${t.env}"]`}function lg(t,r){return`${t.trim().toLowerCase().replace(/^0x/,"")}@${r.trim()}`}function Jk(t){const r=t.apiProtocols??[];if(r.includes("openai-chat-completions"))return"openai-chat-completions";if(r.includes("anthropic-messages"))return"anthropic-messages";if(r.includes("openai-responses"))return"openai-responses";if(r.includes("openai-images"))return"openai-images";const i=t.provider.toLowerCase();return i.includes("anthropic")||i.includes("claude")?"anthropic-messages":i.includes("responses")?"openai-responses":"openai-chat-completions"}const eS={"anthropic-messages":"/v1/messages","openai-responses":"/v1/responses","openai-chat-completions":"/v1/chat/completions","openai-images":"/v1/images/generations"};function f_(t,r){if(t==="image")return"openai-images";if(t!=="text")return null;if(!r)return"openai-chat-completions";const i=Jk({provider:r.provider,apiProtocols:r.protocols});return i==="openai-images"?"openai-chat-completions":i}const ad="A lighthouse on a cliff at dawn, watercolor";function tS(t,r){return JSON.stringify(t==="anthropic-messages"?{model:r,max_tokens:1024,messages:[{role:"user",content:"Hello"}]}:t==="openai-responses"?{model:r,input:"Hello"}:t==="openai-images"?{model:r,prompt:ad,n:1}:{model:r,messages:[{role:"user",content:"Hello"}]})}function ug(t,r,i="openai-chat-completions",s=Na){return[`curl ${t}${eS[i]} \\`,` -H "Authorization: Bearer ${Zk(s)}" \\`,' -H "Content-Type: application/json" \\',` -d '${tS(i,r).replaceAll("'","'\\''")}'`].join(`
|
|
85
|
-
`)}function cg(t,r,i="openai-chat-completions",s=Na){return["import OpenAI from 'openai'","","const client = new OpenAI({",` baseURL: '${t}/v1',`,` apiKey: ${ag(s)},`,"})","",...i==="openai-images"?["const result = await client.images.generate({",` model: '${r}',`,` prompt: '${ad}',`,"})","console.log(result.data[0].url ?? result.data[0].b64_json)"]:i==="openai-responses"?["const reply = await client.responses.create({",` model: '${r}',`," input: 'Hello',","})","console.log(reply.output_text)"]:["const reply = await client.chat.completions.create({",` model: '${r}',`," messages: [{ role: 'user', content: 'Hello' }],","})","console.log(reply.choices[0].message.content)"]].join(`
|
|
86
|
-
`)}function nS(t,r,i="openai-chat-completions",s=Na){return[..."env"in s?["import os"]:[],"from openai import OpenAI","",`client = OpenAI(base_url="${t}/v1", api_key=${Xk(s)})`,"",...i==="openai-images"?[`result = client.images.generate(model="${r}", prompt="${ad}")`,"print(result.data[0].url or result.data[0].b64_json)"]:i==="openai-responses"?[`reply = client.responses.create(model="${r}", input="Hello")`,"print(reply.output_text)"]:["reply = client.chat.completions.create(",` model="${r}",`,' messages=[{"role": "user", "content": "Hello"}],',")","print(reply.choices[0].message.content)"]].join(`
|
|
87
|
-
`)}function dg(t,r,i=Na){return["import Anthropic from '@anthropic-ai/sdk'","","const client = new Anthropic({",` baseURL: '${t}',`,` authToken: ${ag(i)}, // sent as Authorization: Bearer`,"})","","const reply = await client.messages.create({",` model: '${r}',`," max_tokens: 1024,"," messages: [{ role: 'user', content: 'Hello' }],","})"].join(`
|
|
88
|
-
`)}function rS(t,r){return["# ~/.codex/config.toml",`model = "${r}"`,'model_provider = "antseed"',"","[model_providers.antseed]",'name = "Antseed gateway"',`base_url = "${t}/v1"`,`env_key = "${Ra}"`,'wire_api = "responses"'].join(`
|
|
89
|
-
`)}function iS(t,r){return[`export ANTHROPIC_BASE_URL="${t}"`,`export ANTHROPIC_AUTH_TOKEN="$${Ra}"`,`export ANTHROPIC_MODEL="${r}"`,"claude"].join(`
|
|
90
|
-
`)}function oS(t,r){return[`Base URL: ${t}/v1`,`API key: $${Ra} (your Antseed key)`,`Model: ${r}`].join(`
|
|
91
|
-
`)}function h_(t,r,i="<model>"){const s={secret:r};return[{id:"curl",label:"curl",code:ug(t,i,"openai-chat-completions",s)},{id:"openai",label:"OpenAI SDK",code:cg(t,i,"openai-chat-completions",s)},{id:"anthropic",label:"Anthropic SDK",code:dg(t,i,s)}]}function sS(t,r,i){const s=[{id:"curl",label:"curl",language:"shell",code:ug(t,r,i)},{id:"openai-python",label:"Python",language:"python",code:nS(t,r,i)},{id:"openai-js",label:"JavaScript",language:"javascript",code:cg(t,r,i)}];return i==="anthropic-messages"&&s.push({id:"anthropic",label:"Anthropic SDK",language:"javascript",code:dg(t,r)}),s}function p_(t,r,i,s,l){const f=lg(r,i),v=sS(t,f,s);return s==="openai-images"||v.push({id:"codex",label:"Codex",language:"toml",code:rS(t,l??"@preset/<your-preset>")},{id:"claude-code",label:"Claude Code",language:"shell",code:iS(t,f)},{id:"openai-compatible",label:"Cursor / OpenAI-compatible",language:"text",code:oS(t,f)}),v}function aS(){var r;const t=Xc();return Gk((r=t.data)==null?void 0:r.publicUrl,window.location.origin)}function lS(){const t=Hc();return async r=>{await yv(r)?t("Copied"):t("Could not copy to the clipboard","danger")}}function m_(t,r,i){return{label:"Copy model id",onSelect:()=>void t(lg(r,i))}}function v_({value:t,label:r}){const i=lS();return d.jsx(Ho,{label:r,size:"sm",className:"gc-copy-id",onClick:s=>{s.stopPropagation(),i(t)},children:d.jsx(ut.copy,{size:13})})}function Gp({className:t}){const r=Yk(aS());return d.jsxs("div",{className:["gc-endpoint",t].filter(Boolean).join(" "),title:`OpenAI-compatible base URL: ${r}`,children:[d.jsx("span",{className:"gc-endpoint__label",children:"API"}),d.jsx("code",{className:"gc-endpoint__url",children:r}),d.jsx(Bc,{iconOnly:!0,value:r,label:"Copy the gateway API URL",className:"gc-endpoint__copy"})]})}const fg="https://antseed.com/docs/gateway",uS=I.lazy(()=>ze(()=>import("./Migrate-TGloMMad.js"),[]));function vc({to:t="overview",tagged:r,size:i=26}){const s=d.jsxs(d.Fragment,{children:[d.jsx(kx,{height:i,className:"gc-brand__full"}),d.jsx(Sx,{size:26,className:"gc-brand__mark"}),d.jsx("span",{className:"gc-brand__tag",children:"Console"})]}),l=r?"gc-brand gc-brand--tagged":"gc-brand";return t===null?d.jsx("span",{className:l,children:s}):d.jsx("a",{className:l,href:Wo(t),onClick:Gc(t),"aria-label":"Antseed console home",children:s})}const gc="No authorized wallet: nobody can withdraw funds or claim ANTS rewards";function cS(){var m;const{me:t,workspace:r,setWorkspaceId:i}=jn(),{missingOperator:s,currentMissingOperator:l}=Iv(),f=l&&d.jsx("span",{className:"gc-attention",role:"img","aria-label":gc,title:gc});if(t.workspaces.length<=1)return d.jsxs("span",{className:"gc-ws",title:"Workspace","data-tour":"workspace",children:[d.jsx(ut.workspaces,{size:14}),d.jsx("span",{className:"gc-ws__name",children:r.name}),f]});const v=(m=t.workspaces.find(g=>g.workspace.id===r.id))==null?void 0:m.role;return d.jsx("span",{"data-tour":"workspace",className:"gc-ws-wrap",children:d.jsx(v1,{label:`Workspace: ${r.name}. Switch workspace`,triggerStyle:"plain",align:"start",width:260,className:"gc-ws gc-ws--select",trigger:d.jsxs(d.Fragment,{children:[d.jsx(ut.workspaces,{size:14}),d.jsx("span",{className:"gc-ws__name",children:r.name}),v==="admin"&&d.jsx("span",{className:"gc-ws__role",children:"admin"}),f,d.jsx(ut.down,{size:14,className:"gc-ws__chevron"})]}),items:t.workspaces.map(({workspace:g,role:h})=>({label:g.name,description:[h==="admin"?"Admin":"Member",g.id!==r.id&&s.has(g.id)?"no authorized wallet":null].filter(Boolean).join(" · "),checked:g.id===r.id,onSelect:()=>{g.id!==r.id&&i(g.id)}}))})})}function dS(t,r){return t!=="wallet"?null:r.currentMissingOperator?gc:r.withdrawable.count>0?`${r.withdrawable.count} channel${r.withdrawable.count===1?"":"s"} ready to withdraw`:null}function Yp({current:t,onNavigate:r}){const{viewer:i}=jn(),s=Iv(),l=Dx(i),f=[...new Set(l.map(v=>v.group))];return d.jsx("nav",{className:"gc-nav","aria-label":"Console",children:f.map(v=>d.jsxs("div",{className:"gc-nav__group",children:[d.jsx("div",{className:"gc-nav__heading",children:v}),l.filter(m=>m.group===v).map(m=>{const g=ut[m.id]??ut.overview;return d.jsxs("a",{href:Wo(m.id),"aria-current":m.id===t?"page":void 0,"data-tour":`nav-${m.id}`,className:m.id===t?"gc-nav__item gc-nav__item--on":"gc-nav__item",onClick:h=>{Gc(m.id)(h),r==null||r()},children:[d.jsx(g,{size:16}),d.jsx("span",{children:m.label}),(()=>{const h=dS(m.id,s);return h&&d.jsx("span",{className:"gc-attention gc-nav__attention",role:"img","aria-label":h,title:h})})()]},m.id)})]},v))})}const Zp={system:"System",dark:"Dark",light:"Light"},fS={system:"dark",dark:"light",light:"system"},hS={system:ut.monitor,dark:ut.moon,light:ut.sun};function hg(){const[t,r]=Vx(),i=fS[t],s=hS[t];return d.jsx(Ho,{className:"gc-topbar__icon",label:`Color theme: ${Zp[t]}. Switch to ${Zp[i]}.`,onClick:()=>r(i),children:d.jsx(s,{size:16})})}function pS(){const t=ln();return async()=>{try{await le.auth.logout()}finally{t.clear(),Kt("login",{replace:!0})}}}function mS(t){var l;const r=t.trim().split(/\s+/).filter(Boolean),i=((l=r[0])==null?void 0:l[0])??"?",s=r.length>1?r[r.length-1][0]:"";return(i+s).toUpperCase()}function vS({onAccount:t,onTour:r,onSignOut:i}){const{me:s}=jn(),[l,f]=I.useState(!1),v=I.useRef(null),m=I.useRef(null);I.useEffect(()=>{var R,A;if(!l)return;const x=E=>{var M;(M=v.current)!=null&&M.contains(E.target)||f(!1)},C=E=>{var M;E.key==="Escape"&&(f(!1),(M=m.current)==null||M.focus())};return document.addEventListener("mousedown",x),document.addEventListener("keydown",C),(A=(R=v.current)==null?void 0:R.querySelector('[role="menuitem"]'))==null||A.focus(),()=>{document.removeEventListener("mousedown",x),document.removeEventListener("keydown",C)}},[l]);const g=x=>()=>{f(!1),x()},h=Kc[s.member.orgRole],y=s.member.email?`${s.member.email} · ${h}`:h;return d.jsxs("div",{className:"gc-account",ref:v,"data-tour":"account",children:[d.jsx("button",{ref:m,type:"button",className:"gc-user","aria-haspopup":"menu","aria-expanded":l,"aria-label":`Your account: ${s.member.label}`,onClick:()=>f(x=>!x),children:d.jsx("span",{className:"gc-avatar","aria-hidden":"true",children:mS(s.member.label)})}),l&&d.jsxs("div",{className:"gc-account__menu",role:"menu","aria-label":"Account",children:[d.jsxs("div",{className:"gc-account__who",children:[d.jsx("div",{className:"gc-account__name",children:s.member.label}),d.jsx("div",{className:"gc-account__meta",children:y})]}),d.jsxs("button",{type:"button",role:"menuitem",className:"gc-account__item",onClick:g(t),children:[d.jsx(ut.shield,{size:15}),"Account and sign-in"]}),d.jsxs("button",{type:"button",role:"menuitem",className:"gc-account__item",onClick:g(r),children:[d.jsx(ut.compass,{size:15}),"Take the tour"]}),d.jsxs("a",{role:"menuitem",className:"gc-account__item",href:fg,target:"_blank",rel:"noreferrer",onClick:()=>f(!1),children:[d.jsx(ut.external,{size:15}),"Documentation"]}),d.jsx("div",{className:"gc-account__sep"}),d.jsxs("button",{type:"button",role:"menuitem",className:"gc-account__item",onClick:g(i),children:[d.jsx(ut.logout,{size:15}),"Sign out"]})]})]})}function Xp(){var r;const t=(r=Xc().data)==null?void 0:r.version;return t?d.jsxs("p",{className:"gc-version",children:["Antseed v",t]}):null}function gS({page:t,children:r}){const[i,s]=I.useState(!1),[l,f]=I.useState(()=>new URLSearchParams(window.location.search).get("account")==="1"),v=pS(),m=Qc().page==="migrate",g=m?null:t,{me:h,viewer:y}=jn();return I.useEffect(()=>{if(m||ek(h.member.id))return;const x=window.setTimeout(()=>Vp(y,h.member.id),600);return()=>window.clearTimeout(x)},[h.member.id]),d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"gc-app","data-page":g??void 0,children:[d.jsx("a",{className:"gc-skip",href:"#gc-main",children:"Skip to content"}),d.jsxs("header",{className:"gc-topbar",children:[d.jsxs("div",{className:"gc-topbar__inner",children:[d.jsx(Ho,{label:"Open menu",className:"gc-topbar__menu gc-topbar__icon",onClick:()=>s(!0),children:d.jsx(ut.menu,{size:16})}),d.jsx(vc,{}),d.jsx("span",{className:"gc-topbar__sep","aria-hidden":"true",children:"/"}),d.jsx(cS,{}),d.jsx("div",{className:"gc-topbar__spacer"}),d.jsx(Gp,{className:"gc-endpoint--inline"}),d.jsx("a",{className:"gc-topbar__link",href:fg,target:"_blank",rel:"noreferrer",children:"Docs"}),d.jsx(hg,{}),d.jsx(vS,{onAccount:()=>f(!0),onTour:()=>Vp(y,h.member.id),onSignOut:()=>void v()})]}),d.jsx("div",{className:"gc-topbar__strip",children:d.jsx(Gp,{})})]}),d.jsxs("div",{className:"gc-body",children:[d.jsxs("aside",{className:"gc-rail",children:[d.jsx(Yp,{current:g}),d.jsx(Xp,{})]}),d.jsx("main",{id:"gc-main",className:"gc-main",tabIndex:-1,children:m?d.jsx(I.Suspense,{fallback:d.jsx(Mi,{rows:6}),children:d.jsx(uS,{})}):d.jsxs(d.Fragment,{children:[d.jsx(qk,{quiet:g==="settings"}),d.jsx(Fk,{}),r]})})]})]}),d.jsxs(wx,{isOpen:i,onClose:()=>s(!1),side:"left",title:d.jsx(vc,{to:null}),className:"gc-mobile-nav",children:[d.jsx(Yp,{current:g,onNavigate:()=>s(!1)}),d.jsx(Xp,{})]}),d.jsx(Nk,{isOpen:l,onClose:()=>f(!1)})]})}const yS=I.lazy(()=>ze(()=>import("./WalletSignIn-BTt56Pbi.js"),__vite__mapDeps([0,1,2,3,4]))),Jp={not_invited:"This account has not been invited to this console. Ask an admin for an invite link.",invite_expired:"This invite link has expired. Ask an admin for a new one.",invite_used:"This invite link was already used. Sign in instead.",invalid_token:"This link is not valid. Check that you copied all of it.",setup_complete:"This console is already set up. Sign in instead.",member_disabled:"Your access to this console has been turned off.",unknown_credential:"This passkey or wallet is not registered here.",key_revoked:"This API key has been revoked.",invalid_key:"That API key is not valid.",rate_limited:"Too many attempts. Wait a minute and try again.",key_expired:"This API key has expired.",not_linked:"This account is not linked to a member yet. Sign in another way and link it from your profile, or use your invite link.",invalid_enrollment:"This sign-up link has expired. Open your invite link again, or ask for a new one.",unauthenticated:"Sign in first.",oidc_denied:"Single sign-on was cancelled.",oidc_state:"The single sign-on attempt expired. Try again.",oidc_failed:"Single sign-on could not be verified. Try again, or use another sign-in method.",oidc_unavailable:"The single sign-on provider could not be reached. Try again later.",reauth_required:"Linking a sign-in provider needs a fresh sign-in. Go back to the console, confirm it is you under Your sign-in methods, then link it again.",access_reauth_required:"Your Cloudflare Access sign-in is more than 5 minutes old. Sign out of Cloudflare Access, sign in again, then link the provider again.",credential_exists:"This single sign-on account is already linked to another member."},wS=new Set(["reauth_required","access_reauth_required","credential_exists"]);function pg(t){return Object.hasOwn(Jp,t)?Jp[t]:void 0}function ld(t){return Lr(t)&&pg(t.code)||Ta(t)}function yc({title:t,subtitle:r,children:i}){return d.jsxs("div",{className:"gc-auth",children:[d.jsx("div",{className:"gc-auth__theme",children:d.jsx(hg,{})}),d.jsx("div",{className:"gc-auth__logo",children:d.jsx(vc,{to:null,tagged:!0,size:30})}),d.jsxs(Pc,{className:"gc-auth__card",children:[d.jsx("h1",{className:"gc-auth__title",children:t}),r&&d.jsx("p",{className:"gc-auth__subtitle",children:r}),i]}),d.jsx("p",{className:"gc-auth__foot",children:"Self-hosted Antseed gateway"})]})}function mg(){const t=ln();return r=>{t.setQueryData(Se.me,r),Kt(r.kind==="key"?"key":"overview",{replace:!0})}}function em({label:t,run:r,primary:i}){const[s,l]=I.useState(!1),[f,v]=I.useState(null),m=Vo();return d.jsxs("div",{className:"gc-stack gc-stack--tight",children:[d.jsx(Ee,{fullWidth:!0,variant:i?"primary":"outline",disabled:s||!m,onClick:async()=>{l(!0),v(null);try{await r()}catch(g){v(mc(g)?pc:ld(g))}finally{l(!1)}},children:s?"Waiting for your passkey…":t}),!m&&d.jsx("p",{className:"gc-fineprint",children:"This browser does not support passkeys."}),f&&d.jsx(lt,{tone:"danger",children:f})]})}function xS({enrollment:t,onSignedIn:r}){const[i,s]=I.useState(!1);return i?d.jsx(I.Suspense,{fallback:d.jsx(Ee,{variant:"outline",fullWidth:!0,disabled:!0,children:"Loading wallets…"}),children:d.jsx(yS,{enrollment:t,onSignedIn:r,autoConnect:!0})}):d.jsx(Ee,{variant:"outline",fullWidth:!0,onClick:()=>s(!0),children:"Sign in with a wallet"})}function kS(){return d.jsx("div",{className:"gc-divider",children:d.jsx("span",{children:"or"})})}function SS({onSignedIn:t}){const[r,i]=I.useState(""),[s,l]=I.useState(!1),[f,v]=I.useState(null);return d.jsxs("form",{className:"gc-stack gc-stack--tight",onSubmit:async m=>{m.preventDefault(),l(!0),v(null);try{t(await le.auth.apiKey(r.trim()))}catch(g){v(ld(g))}finally{l(!1)}},children:[d.jsx(Rx,{label:"API key",type:"password",autoComplete:"off",placeholder:"Paste your key to see its usage",value:r,onChange:m=>i(m.target.value)}),d.jsx(Ee,{type:"submit",variant:"outline",fullWidth:!0,disabled:s||!r.trim(),children:s?"Checking…":"View key usage"}),f&&d.jsx(lt,{tone:"danger",children:f})]})}function CS({mode:t,enrollment:r,onSignedIn:i}){return t==="login"?d.jsx(em,{primary:!0,label:"Sign in with a passkey",run:async()=>{const s=await le.auth.passkeyLoginOptions(),l=await eg({optionsJSON:s});i(await le.auth.passkeyLoginVerify(l))}}):d.jsx(em,{primary:!0,label:"Create a passkey",run:async()=>{const s=await le.auth.passkeyRegisterOptions(r),l=await Jv({optionsJSON:s});i(await le.auth.passkeyRegisterVerify(l,r))}})}function vg({config:t,enrollment:r,onSignedIn:i,mode:s}){const l=[];return t.passkey&&l.push(d.jsx(CS,{mode:s,enrollment:r,onSignedIn:i},"passkey")),t.wallet&&l.push(d.jsx(xS,{enrollment:r,onSignedIn:i},"wallet")),t.oidc&&l.push(d.jsxs(Ee,{variant:"outline",fullWidth:!0,href:le.auth.oidcStartUrl(r),children:["Continue with ",t.oidc.label]},"oidc")),l.length===0?d.jsx(lt,{tone:"warning",children:"No sign-in method is enabled on this gateway. Check the gateway's console auth settings."}):d.jsx("div",{className:"gc-stack",children:l})}function _S(){const t=Zc(),r=mg(),i=new URLSearchParams(window.location.search).get("error");return d.jsxs(yc,{title:"Sign in",subtitle:"Manage keys, budgets, routing and funding for this gateway.",children:[i&&d.jsx(lt,{tone:"danger",action:wS.has(i)?d.jsx(Ee,{size:"sm",variant:"outline",onClick:()=>Kt("overview?account=1",{replace:!0}),children:"Back to the console"}):void 0,children:pg(i)??"Sign-in did not complete. Try again."}),t.isLoading&&d.jsxs("div",{className:"gc-stack",children:[d.jsx(Lo,{height:34}),d.jsx(Lo,{height:34})]}),t.error?d.jsx(lt,{tone:"danger",title:"Could not reach the gateway",children:Ta(t.error)}):null,t.data&&d.jsxs("div",{className:"gc-stack",children:[t.data.setupRequired&&d.jsxs(lt,{tone:"info",title:"Not set up yet",children:["Get a one-time setup link by running ",d.jsx("code",{children:"antseed gateway console-link"})," on the gateway, or ask the operator for it."]}),d.jsx(vg,{config:t.data,mode:"login",onSignedIn:r}),t.data.cloudflareAccess&&d.jsx("p",{className:"gc-fineprint",children:"This gateway also accepts Cloudflare Access. If you signed in there, reload this page."}),t.data.apiKeyLogin&&d.jsxs(d.Fragment,{children:[d.jsx(kS,{}),d.jsx(SS,{onSignedIn:r})]})]})]})}function ES({kind:t}){const[r,i]=I.useState(()=>window.location.hash.replace(/^#/,""));I.useEffect(()=>{const m=()=>{const g=window.location.hash.replace(/^#/,"");g&&(i(g),window.history.replaceState(null,"",window.location.pathname))};return m(),window.addEventListener("hashchange",m),()=>window.removeEventListener("hashchange",m)},[]);const s=mg(),l=Zc(),f=Oe({queryKey:["enrollment",t,r],queryFn:()=>t==="setup"?le.auth.setup(r):t==="recover"?le.request("POST","/auth/recover",{body:{token:r}}):le.auth.invite(r),enabled:r!=="",retry:!1,staleTime:1/0}),v=t==="setup"?"Set up your Antseed console":t==="recover"?"Add a sign-in method":"You are invited";return r?d.jsxs(yc,{title:v,subtitle:f.data?t==="recover"?d.jsxs(d.Fragment,{children:["Welcome back, ",d.jsx("strong",{children:f.data.label}),". Add a passkey, wallet or single sign-on to sign in on this address."]}):d.jsxs(d.Fragment,{children:["Welcome, ",d.jsx("strong",{children:f.data.label}),". You will join as ",Kc[f.data.orgRole].toLowerCase(),". Choose how you sign in."]}):"Checking your link…",children:[(f.isLoading||l.isLoading)&&d.jsxs("div",{className:"gc-stack",children:[d.jsx(Lo,{height:34}),d.jsx(Lo,{height:34})]}),f.error?d.jsxs("div",{className:"gc-stack",children:[d.jsx(lt,{tone:"danger",children:ld(f.error)}),d.jsx(Ee,{variant:"ghost",onClick:()=>Kt("login"),children:"Go to sign in"})]}):null,f.data&&l.data&&d.jsxs("div",{className:"gc-stack",children:[d.jsx(vg,{config:l.data,mode:"enroll",enrollment:f.data.enrollment,onSignedIn:s}),d.jsx("p",{className:"gc-fineprint",children:"A passkey uses your device's screen lock or a security key. Nothing to remember."})]})]}):d.jsxs(yc,{title:v,children:[d.jsx(lt,{tone:"danger",children:"This link is missing its token. Open the full link you were given."}),d.jsx(Ee,{variant:"ghost",onClick:()=>Kt("login"),children:"Go to sign in"})]})}const Pa={overview:()=>ze(()=>import("./Overview-CPoqW_Mi.js"),__vite__mapDeps([7,8,9,10,11,12])),chat:()=>ze(()=>import("./Chat-C1AfYZwW.js").then(t=>t.C),__vite__mapDeps([13,2,14])),activity:()=>ze(()=>import("./Activity-DrhhsiYE.js"),__vite__mapDeps([15,8,9,10,16,11,12,17,18])),logs:()=>ze(()=>import("./Logs-DHuR0CKc.js"),__vite__mapDeps([19,20,21,16,9,18,22,17])),keys:()=>ze(()=>import("./Keys-C22oAYzQ.js"),__vite__mapDeps([23,24,25,16,17,11,12,26,27,28,29,22,9,18,10])),members:()=>ze(()=>import("./Members-ZyqdMsMd.js"),__vite__mapDeps([30,24,25,16,17,11,12,26,27,29,18])),workspaces:()=>ze(()=>import("./Workspaces-mfw5erSQ.js"),__vite__mapDeps([31,24,25,16,17,11,12,26,27,29,18])),wallet:()=>ze(()=>import("./Wallet-jy4q5mLQ.js"),__vite__mapDeps([32,33,3,34,18,27,26])),rewards:()=>ze(()=>import("./Rewards-D9omoUfP.js"),__vite__mapDeps([35,33,36,18])),staking:()=>ze(()=>import("./Staking-HKOLSr5r.js"),__vite__mapDeps([37,38,1,2,3,4,39,40,41,33,42,28,12])),providers:()=>ze(()=>import("./Providers-CqYXx8xK.js"),__vite__mapDeps([43,16,17,18,44,36,45,24,25,11,12,26,27,46,28])),models:()=>ze(()=>import("./Models-CM4ay6RE.js"),__vite__mapDeps([47,28,12,44,17,26,18])),routing:()=>ze(()=>import("./Routing-4gxa6VdE.js"),__vite__mapDeps([48,24,25,16,17,11,12,26,27,18,28])),presets:()=>ze(()=>import("./Presets-9x2m9R-f.js"),__vite__mapDeps([45,24,25,16,17,11,12,26,27,18,46])),audit:()=>ze(()=>import("./Audit-tBcMBtG2.js"),__vite__mapDeps([49,21,17,18])),settings:()=>ze(()=>import("./Settings-Bo654hg3.js"),__vite__mapDeps([50,16,25,17,11,12,26,27,46,28,18]))},gg={};for(const t of Object.keys(Pa))gg[t]=I.lazy(Pa[t]);const tm=Pv(window.location.pathname).page;yg(tm)&&Pa[tm]().catch(()=>{});const nm=()=>{Pa.chat().catch(()=>{})};"requestIdleCallback"in window?window.requestIdleCallback(nm,{timeout:4e3}):setTimeout(nm,2e3);const PS=I.lazy(()=>ze(()=>import("./KeyHolder-DSLJe1Wc.js"),__vite__mapDeps([51,20,21,16,9,18,10]))),jS=new Xw({defaultOptions:{queries:{staleTime:1e4,refetchOnWindowFocus:!1,retry:(t,r)=>!(Lr(r)&&r.status>=400&&r.status<500)&&t<2}}});class bS extends I.Component{constructor(){super(...arguments);Su(this,"state",{failed:!1})}static getDerivedStateFromError(i){return{failed:!0,error:i}}render(){return this.state.failed?d.jsx(Do,{error:this.state.error,title:"This page failed to load",onRetry:()=>this.setState({failed:!1,error:void 0})}):this.props.children}}function yg(t){return Vc.some(r=>r.id===t)}function TS({me:t,page:r}){const[i,s]=I.useState(()=>{var C;return((C=Ap(t,Bx()))==null?void 0:C.id)??null}),l=Ap(t,i),f=ln(),v=Qc(),m=Ux(v.page,v.rest);I.useEffect(()=>{m&&Kt(m,{replace:!0})},[m]);const g=I.useMemo(()=>{if(!l)return null;const C=Fx({me:t},l.id);return{me:t,workspace:l,workspaceRole:C.workspaceRole,viewer:C,setWorkspaceId:R=>{Hx(R),s(R),f.invalidateQueries()}}},[t,l,f]);if(m)return d.jsx("div",{className:"gc-centered",children:d.jsx(Mi,{rows:3})});if(!g)return d.jsx("div",{className:"gc-centered",children:d.jsx(lt,{tone:"warning",title:"No workspace",children:"You are not a member of any workspace yet. Ask an admin to add you."})});const h=yg(r)?r:"overview",y=qc(h,g.viewer),x=gg[h];return d.jsx(Cv.Provider,{value:g,children:d.jsx(gS,{page:h,children:d.jsx(bS,{children:d.jsx(I.Suspense,{fallback:d.jsx(Mi,{rows:6}),children:y?d.jsx(x,{}):d.jsx(lt,{tone:"warning",title:"Not available",children:"Your role cannot open this page."})})},v.page)})})}function RS({page:t}){const r=c2(),i=Lr(r.error)&&r.error.status===401;return I.useEffect(()=>{i&&Kt("login",{replace:!0})},[i]),r.isLoading||i?d.jsx("div",{className:"gc-centered",children:d.jsx(Mi,{rows:3})}):r.error?d.jsxs("div",{className:"gc-centered gc-stack",children:[d.jsx(Do,{error:r.error,title:"Could not open the console",onRetry:()=>void r.refetch()}),d.jsx(Ee,{variant:"ghost",onClick:()=>Kt("login"),children:"Go to sign in"})]}):r.data?r.data.kind==="key"?d.jsx(I.Suspense,{fallback:d.jsx(Mi,{rows:6}),children:d.jsx(PS,{})}):d.jsx(TS,{me:r.data.me,page:t}):null}function NS(){const t=Qc();return t.page==="login"?d.jsx(_S,{}):t.page==="setup"||t.page==="invite"||t.page==="recover"?d.jsx(ES,{kind:t.page}):d.jsx(RS,{page:t.page})}function IS(){return d.jsx(Jw,{client:jS,children:d.jsx(Ix,{children:d.jsx(NS,{})})})}Wx();async function MS(){const t=document.getElementById("root");if(!t)throw new Error("#root element is missing");bw.createRoot(t).render(d.jsx(I.StrictMode,{children:d.jsx(IS,{})}))}MS();export{Lr as $,dk as A,Ee as B,vv as C,gv as D,HS as E,ln as F,Hc as G,PC as H,ut as I,bC as J,a_ as K,Mi as L,r_ as M,Yc as N,l_ as O,US as P,jk as Q,Qc as R,BS as S,Rx as T,yC as U,EC as V,wx as W,Ex as X,Px as Y,Zx as Z,ze as _,VS as a,Gk as a$,bx as a0,Tx as a1,jx as a2,jC as a3,FC as a4,_C as a5,yk as a6,qc as a7,Gc as a8,Wo as a9,QC as aA,v1 as aB,Xc as aC,u_ as aD,c_ as aE,Ta as aF,n_ as aG,TC as aH,uC as aI,NC as aJ,n2 as aK,i2 as aL,r2 as aM,Bc as aN,Eo as aO,e2 as aP,MC as aQ,IC as aR,Ao as aS,RC as aT,l2 as aU,Ek as aV,Pk as aW,pc as aX,mc as aY,OC as aZ,Rv as a_,ZC as aa,UC as ab,td as ac,lk as ad,KC as ae,AC as af,YC as ag,lt as ah,VC as ai,BC as aj,qC as ak,wi as al,pS as am,c2 as an,vc as ao,Gp as ap,hg as aq,jv as ar,eC as as,xa as at,Xx as au,tC as av,ZS as aw,XS as ax,tg as ay,Ho as az,hC as b,dC as b$,h_ as b0,WS as b1,o_ as b2,JC as b3,Sv as b4,XC as b5,fC as b6,e_ as b7,va as b8,Kc as b9,$S as bA,FS as bB,c1 as bC,t_ as bD,GC as bE,zC as bF,d_ as bG,Li as bH,Ve as bI,ga as bJ,vm as bK,e1 as bL,r1 as bM,a1 as bN,i1 as bO,o1 as bP,pt as bQ,u1 as bR,xp as bS,s1 as bT,SC as bU,Iv as bV,i_ as bW,JS as bX,HC as bY,WC as bZ,_k as b_,wC as ba,s_ as bb,QS as bc,KS as bd,aS as be,sS as bf,Ra as bg,zx as bh,pC as bi,lS as bj,v_ as bk,YS as bl,$x as bm,lg as bn,f_ as bo,kC as bp,m_ as bq,$C as br,mC as bs,CC as bt,gk as bu,DC as bv,ck as bw,d1 as bx,Vw as by,wp as bz,xC as c,Jk as c0,p_ as c1,cC as c2,LC as c3,OS as c4,xw as c5,p2 as c6,oC as c7,kx as c8,Nk as c9,pa as cA,av as cB,C1 as cC,K0 as cD,_1 as cE,en as cF,s2 as ca,sC as cb,aC as cc,o2 as cd,rC as ce,iC as cf,t2 as cg,nC as ch,lC as ci,Jw as cj,Xw as ck,f1 as cl,Kx as cm,Mx as cn,Lx as co,qS as cp,AS as cq,DS as cr,Uc as cs,lx as ct,xc as cu,Mm as cv,Rm as cw,Tm as cx,on as cy,ha as cz,gC as d,Oe as e,le as f,Gx as g,Yx as h,Wc as i,d as j,GS as k,Cx as l,Xe as m,Oi as n,Do as o,vC as p,Se as q,I as r,d2 as s,Ea as t,jn as u,pi as v,an as w,f2 as x,Kt as y,Jx as z};
|