@antseed/gateway-console 0.1.3 → 0.1.4
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-DmBxVhX7.js → Activity-BsmDMcni.js} +1 -1
- package/dist/assets/{Audit-xjujDcFx.js → Audit-TIDz29y6.js} +1 -1
- package/dist/assets/{ChainGate-B_PADueu.js → ChainGate-Dvm-SUef.js} +1 -1
- package/dist/assets/{ChannelClose-DBF_JUwr.js → ChannelClose-9Lq8KHLH.js} +1 -1
- package/dist/assets/{Charts-BjppB8Po.js → Charts-DAh9h4sf.js} +1 -1
- package/dist/assets/Chat-Dtte195G.css +1 -0
- package/dist/assets/Chat-DznobJkE.js +220 -0
- package/dist/assets/{ConnectWallet-Ba-nE-Ex.js → ConnectWallet-DSqRjyNA.js} +1 -1
- package/dist/assets/{DataTable-C7t_4-zX.js → DataTable-CDFSD9Kq.js} +1 -1
- package/dist/assets/{Disclosure-CYz0evEi.js → Disclosure-UjXa2WU7.js} +1 -1
- package/dist/assets/{KeyHolder-BFM8S7rC.js → KeyHolder-e5NvqLQn.js} +1 -1
- package/dist/assets/{Keys-DrSAHaHB.js → Keys-CxaYteT3.js} +1 -1
- package/dist/assets/{Logs-BsAM5FMh.js → Logs-CNCQTTeZ.js} +1 -1
- package/dist/assets/{Members-Dt4m03ab.js → Members-Bme-PLUh.js} +1 -1
- package/dist/assets/{Migrate-D5lsM7jR.js → Migrate-I3FULNOQ.js} +1 -1
- package/dist/assets/{Models-DjTeLItT.js → Models-Bt59XWgD.js} +1 -1
- package/dist/assets/{OperatorActions-BZHwECbE.js → OperatorActions-DTrUYN6Z.js} +1 -1
- package/dist/assets/{OperatorGateAlert-DAmQCyeN.js → OperatorGateAlert-CCPFpK6Y.js} +1 -1
- package/dist/assets/{Overview-D5G2tGEo.js → Overview-zEyUG_qA.js} +1 -1
- package/dist/assets/PolicyEditor-BdoaX9gK.js +1 -0
- package/dist/assets/{PolicyField-B3b2T_KJ.js → PolicyField-DIPl0B1x.js} +1 -1
- package/dist/assets/{Presets-DbjhaVl4.js → Presets-CoTmwoy_.js} +1 -1
- package/dist/assets/{Providers-DwVfGgZj.js → Providers-BxpNjH9s.js} +1 -1
- package/dist/assets/{RequestLog-DFYOMsBa.js → RequestLog-DhID_VN7.js} +1 -1
- package/dist/assets/{Rewards-DJj-p9Np.js → Rewards-XyWhpm9Z.js} +2 -2
- package/dist/assets/{RewardsClaim-Bswnd4Du.js → RewardsClaim-BSNDTCMG.js} +1 -1
- package/dist/assets/{Routing-LfYjjbov.js → Routing-Du8GLQCH.js} +1 -1
- package/dist/assets/{Segmented-JCEKIWY7.js → Segmented-Qx6JB6EU.js} +1 -1
- package/dist/assets/{SelectField-DgDdipP1.js → SelectField-D8fxDUNO.js} +1 -1
- package/dist/assets/Settings-CvfS7lxA.js +7 -0
- package/dist/assets/{Switch-BasD00zg.js → Switch-Ba56zux7.js} +1 -1
- package/dist/assets/{Tabs-eMKdE-iz.js → Tabs-BmjCmD5T.js} +1 -1
- package/dist/assets/{TextAreaField-DeGuklpV.js → TextAreaField-CF9_zjuC.js} +1 -1
- package/dist/assets/{UsageByModel-BFNAtlZ4.js → UsageByModel-BBqXiIqo.js} +1 -1
- package/dist/assets/Wallet-DggtuX-0.js +9 -0
- package/dist/assets/{WalletConfirm-DLpdkgEI.js → WalletConfirm-BQCbOnNv.js} +1 -1
- package/dist/assets/{WalletFunding-C5dOeiPL.js → WalletFunding-CvDkcGVU.js} +1 -1
- package/dist/assets/{WalletSignIn-Cq__V2L6.js → WalletSignIn-B9g_MY0h.js} +1 -1
- package/dist/assets/{Workspaces-CYixrYxE.js → Workspaces-DUn5iA_D.js} +1 -1
- package/dist/assets/{add-BODkAe-c.js → add-1gRRQJKT.js} +1 -1
- package/dist/assets/{all-wallets-DhpA95KH.js → all-wallets-vhiMb1eR.js} +1 -1
- package/dist/assets/{app-store-mosenM4j.js → app-store-DFWwIQzp.js} +1 -1
- package/dist/assets/{apple-DjSmNz7B.js → apple-DgwSchgH.js} +1 -1
- package/dist/assets/{arrow-bottom-CeDSRmNE.js → arrow-bottom-Cq4YmOQg.js} +1 -1
- package/dist/assets/{arrow-bottom-circle-DcX_G-xh.js → arrow-bottom-circle-PbZ344lB.js} +1 -1
- package/dist/assets/{arrow-left-DUoqf10U.js → arrow-left-BLB_Dkvm.js} +1 -1
- package/dist/assets/{arrow-right-DHoa2pF7.js → arrow-right-DpKTBsRx.js} +1 -1
- package/dist/assets/{arrow-top-BR-QE9T9.js → arrow-top-DSAScZJW.js} +1 -1
- package/dist/assets/{bank-SDwW3Dkp.js → bank-wStsFuNb.js} +1 -1
- package/dist/assets/{basic-HWgx8ne-.js → basic-CsVGrHuh.js} +1 -1
- package/dist/assets/{browser-Cs1coMqG.js → browser-DlwffXFC.js} +1 -1
- package/dist/assets/{bundle-full-B6fi0-ms.js → bundle-full-sn1k_IQV.js} +1 -1
- package/dist/assets/{card-DZo9bdfS.js → card-pVIbVhmB.js} +1 -1
- package/dist/assets/{ccip-DIM-P7wd.js → ccip-DAldItLP.js} +1 -1
- package/dist/assets/{checkmark-DAOulFxE.js → checkmark-BpTw56ma.js} +1 -1
- package/dist/assets/{checkmark-bold-DXiCBLB8.js → checkmark-bold-kTaP3XxB.js} +1 -1
- package/dist/assets/{chevron-bottom-CxXQ-qE-.js → chevron-bottom-bMFNlOX_.js} +1 -1
- package/dist/assets/{chevron-left-CNg3LJR0.js → chevron-left-BvUO5nig.js} +1 -1
- package/dist/assets/{chevron-right-BEgGXp3W.js → chevron-right-CsjPzxKK.js} +1 -1
- package/dist/assets/{chevron-top-DTt9-y9n.js → chevron-top-k0xp7Can.js} +1 -1
- package/dist/assets/{chrome-store-DD0QyBx7.js → chrome-store-PaJUtH_w.js} +1 -1
- package/dist/assets/{clock-CUWl2UXI.js → clock-CMJ0qXc5.js} +1 -1
- package/dist/assets/{close-KGY7xRXQ.js → close-D_Xc77Yh.js} +1 -1
- package/dist/assets/{code-block-0KvO9_Pn.js → code-block-xCUZ4Wg2.js} +1 -1
- package/dist/assets/{coinPlaceholder-D5WWISbz.js → coinPlaceholder-D-kUAKbs.js} +1 -1
- package/dist/assets/{compass-D2F47cHp.js → compass-CGS5aeKg.js} +1 -1
- package/dist/assets/{copy-2dFkZNac.js → copy-BES3eNqf.js} +1 -1
- package/dist/assets/{core-FBx8iqx5.js → core-Cw7VIz-a.js} +3 -3
- package/dist/assets/cursor-BG-gmA3f.js +3 -0
- package/dist/assets/{cursor-transparent-D0luUhMB.js → cursor-transparent-Dqx5HyjH.js} +1 -1
- package/dist/assets/{desktop-DdbSeEv5.js → desktop-83z42M8J.js} +1 -1
- package/dist/assets/{disconnect-CfKuUcu9.js → disconnect-D49VmdOl.js} +1 -1
- package/dist/assets/{discord-D4PzntCV.js → discord-MHKJZWwF.js} +1 -1
- package/dist/assets/{en_US-Y4ZOVFV4-C1wt0O8b.js → en_US-Y4ZOVFV4-CzjJ6dvA.js} +4 -4
- package/dist/assets/{etherscan-DP-dOCS7.js → etherscan-_rlcuy0M.js} +1 -1
- package/dist/assets/{exclamation-triangle-Cz73ROGX.js → exclamation-triangle-Bw5MhRmd.js} +1 -1
- package/dist/assets/{extension-CJFWp4eM.js → extension-D7frsaxu.js} +1 -1
- package/dist/assets/{external-link-CgBWYupV.js → external-link-C7l3-PhY.js} +1 -1
- package/dist/assets/{facebook-Dr31tYhh.js → facebook-D2S1lToP.js} +1 -1
- package/dist/assets/{farcaster-UjSyQW0m.js → farcaster-BKD1k1GK.js} +1 -1
- package/dist/assets/{filters-DjumokIU.js → filters-LINb1X7z.js} +1 -1
- package/dist/assets/{github-BUU3xNn6.js → github-CanBnK1J.js} +1 -1
- package/dist/assets/{google-D4Sl_6wx.js → google-DcyjnYXY.js} +1 -1
- package/dist/assets/{help-circle-BdORni3L.js → help-circle-EWFFZOKF.js} +1 -1
- package/dist/assets/{highlighted-body-KQOG7T2V-DZDubho7.js → highlighted-body-KQOG7T2V-4q_hgdCF.js} +1 -1
- package/dist/assets/{id-BeI-jz4T.js → id-CwpQkL3B.js} +1 -1
- package/dist/assets/{image-BSmuE4jA.js → image-Bru4L9C0.js} +1 -1
- package/dist/assets/{index-CxJO1Ljw.js → index-BTqmifYb.js} +1 -1
- package/dist/assets/{index-CBpN3RR7.js → index-CO2ldxDL.js} +3 -3
- package/dist/assets/index-D5ERwHFX.js +1 -0
- package/dist/assets/{index-DMFnEtmX.js → index-DI3oIpGN.js} +1 -1
- package/dist/assets/index-DqdaAEyo.js +91 -0
- package/dist/assets/{index-CqEPMnZS.css → index-M34IaZVB.css} +1 -1
- package/dist/assets/{index-CAEBOGcb.js → index-mLThkLKM.js} +1 -1
- package/dist/assets/{index.es-B5dC6ZPc.js → index.es-Dajqanx_.js} +4 -4
- package/dist/assets/{info-Be24SYro.js → info-BiKqTS2d.js} +1 -1
- package/dist/assets/{info-circle-B1UBH84l.js → info-circle-BBN-kA77.js} +1 -1
- package/dist/assets/{lightbulb-BOxJlIam.js → lightbulb-DOHEz8mA.js} +1 -1
- package/dist/assets/{limits-CE9uA1mE.js → limits-DETkh9Vy.js} +1 -1
- package/dist/assets/{mail-CIPLYvTV.js → mail-B58fLIk0.js} +1 -1
- package/dist/assets/{mermaid-MCJ5UELQ-Djb0AMyx.js → mermaid-MCJ5UELQ-CNEVzFUk.js} +3 -3
- package/dist/assets/{metamask-sdk-fc1iADZM.js → metamask-sdk-CgV17tbH.js} +1 -1
- package/dist/assets/{mobile-BVbitISP.js → mobile-Der0Vnyo.js} +1 -1
- package/dist/assets/{models-g5FVBi3I.js → models-Ben8ko6c.js} +1 -1
- package/dist/assets/{more-dZBFgnEq.js → more-BoKgpjap.js} +1 -1
- package/dist/assets/{network-placeholder-b_cq5dDb.js → network-placeholder-DgO-AHV1.js} +1 -1
- package/dist/assets/{nftPlaceholder-D6VuHH4L.js → nftPlaceholder-DQN5ewFX.js} +1 -1
- package/dist/assets/{off-DIVE_Apr.js → off-M-ZEZL9r.js} +1 -1
- package/dist/assets/{play-store-BwuovnpF.js → play-store-DGLOVnal.js} +1 -1
- package/dist/assets/{plus-DsiiE_0r.js → plus-BiSIXTnl.js} +1 -1
- package/dist/assets/{qr-code-Ciyg_r5_.js → qr-code-CqHp65c8.js} +1 -1
- package/dist/assets/{recycle-horizontal-Dt_UN1jS.js → recycle-horizontal-CRSsOzCz.js} +1 -1
- package/dist/assets/{refresh-CcEqjcUE.js → refresh-CNcLCWXe.js} +1 -1
- package/dist/assets/{reown-logo-Bq4Gp-eF.js → reown-logo-DHp9kF6o.js} +1 -1
- package/dist/assets/{search-D5f3v5zH.js → search-Bk2sMNiB.js} +1 -1
- package/dist/assets/{secp256k1-Jjx6bzii.js → secp256k1-eRLZxtys.js} +1 -1
- package/dist/assets/{send-CdsLof8L.js → send-Ctv_HF2O.js} +1 -1
- package/dist/assets/{swapHorizontal-3pzJ0fK5.js → swapHorizontal-zaD-84iv.js} +1 -1
- package/dist/assets/{swapHorizontalBold-CttCNoHf.js → swapHorizontalBold-f_5MNh3F.js} +1 -1
- package/dist/assets/{swapHorizontalMedium-C-WPorgo.js → swapHorizontalMedium-CnARNDiR.js} +1 -1
- package/dist/assets/{swapHorizontalRoundedBold-C5VJDqCA.js → swapHorizontalRoundedBold-BxdOAjIc.js} +1 -1
- package/dist/assets/{swapVertical-jp-7l-n1.js → swapVertical-BS-jDYcd.js} +1 -1
- package/dist/assets/{telegram-B8LqO8ML.js → telegram-DfO33sxQ.js} +1 -1
- package/dist/assets/{three-dots-D3booDJ4.js → three-dots-K3AmCfOo.js} +1 -1
- package/dist/assets/{twitch-B3H8D0Lu.js → twitch-DfjpmeLa.js} +1 -1
- package/dist/assets/{twitterIcon-__3pOZUO.js → twitterIcon-CXaUDkHK.js} +1 -1
- package/dist/assets/{usage-AvFyjxl-.js → usage-CjxizGfE.js} +1 -1
- package/dist/assets/{useInfiniteQuery-Dn0V4FRG.js → useInfiniteQuery-Dm7RR6wI.js} +1 -1
- package/dist/assets/{useTx-B_KdxpeJ.js → useTx-BRRWrJlB.js} +1 -1
- package/dist/assets/{verify-DKhrB_jr.js → verify-CplHry9Z.js} +1 -1
- package/dist/assets/{verify-filled-DXI3-Yqh.js → verify-filled-CLSOHfSX.js} +1 -1
- package/dist/assets/{w3m-modal-BdNwk4FV.js → w3m-modal-CQNWLiT9.js} +1 -1
- package/dist/assets/{wallet-DKsa0YqH.js → wallet-C3roxttu.js} +1 -1
- package/dist/assets/{wallet-placeholder-DAigD97U.js → wallet-placeholder-CC9q2-xU.js} +1 -1
- package/dist/assets/{walletconnect-CKlXyEvq.js → walletconnect-Bnkz4udx.js} +1 -1
- package/dist/assets/{warning-circle-W9Rnd_B_.js → warning-circle-Be9gSeqg.js} +1 -1
- package/dist/assets/{x-D7Opg1tU.js → x-5eg1spDB.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +3 -3
- package/dist/assets/Chat-CUWxcJqH.css +0 -1
- package/dist/assets/Chat-T0qS59Xu.js +0 -220
- package/dist/assets/PolicyEditor-Gmmqb9Cc.js +0 -1
- package/dist/assets/Settings-CPqBAsTx.js +0 -7
- package/dist/assets/Wallet-ByJgGxqY.js +0 -9
- package/dist/assets/ant-icon-zZhiTevn.svg +0 -25
- package/dist/assets/cursor-CWTguKCx.js +0 -3
- package/dist/assets/index-9dOi2Cir.js +0 -1
- package/dist/assets/index-jbhwAQ05.js +0 -91
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/WalletSignIn-Cq__V2L6.js","assets/en_US-Y4ZOVFV4-C1wt0O8b.js","assets/clsx-B-dksMZM.js","assets/index-9dOi2Cir.js","assets/index-BwpQbdIU.js","assets/en_US-Y4ZOVFV4-CcVPgXVa.css","assets/WalletConfirm-DLpdkgEI.js","assets/ConnectWallet-Ba-nE-Ex.js","assets/Overview-D5G2tGEo.js","assets/UsageByModel-BFNAtlZ4.js","assets/usage-AvFyjxl-.js","assets/Charts-BjppB8Po.js","assets/Segmented-JCEKIWY7.js","assets/roving-DkptacxO.js","assets/Chat-T0qS59Xu.js","assets/Chat-CUWxcJqH.css","assets/Activity-DmBxVhX7.js","assets/SelectField-DgDdipP1.js","assets/DataTable-C7t_4-zX.js","assets/Logs-BsAM5FMh.js","assets/RequestLog-DFYOMsBa.js","assets/useInfiniteQuery-Dn0V4FRG.js","assets/dates-Pi3-Ywng.js","assets/Keys-DrSAHaHB.js","assets/PolicyField-B3b2T_KJ.js","assets/PolicyEditor-Gmmqb9Cc.js","assets/Switch-BasD00zg.js","assets/Disclosure-CYz0evEi.js","assets/Tabs-eMKdE-iz.js","assets/limits-CE9uA1mE.js","assets/Members-Dt4m03ab.js","assets/Workspaces-CYixrYxE.js","assets/Wallet-ByJgGxqY.js","assets/ChainGate-B_PADueu.js","assets/dijkstra-COg3n3zL.js","assets/Rewards-DJj-p9Np.js","assets/ants-B38m9Phv.js","assets/Providers-DwVfGgZj.js","assets/models-g5FVBi3I.js","assets/Presets-DbjhaVl4.js","assets/TextAreaField-DeGuklpV.js","assets/Models-DjTeLItT.js","assets/Routing-LfYjjbov.js","assets/Audit-xjujDcFx.js","assets/Settings-CPqBAsTx.js","assets/KeyHolder-BFM8S7rC.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var aw=Object.defineProperty;var Qh=t=>{throw TypeError(t)};var lw=(t,r,i)=>r in t?aw(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i;var xu=(t,r,i)=>lw(t,typeof r!="symbol"?r+"":r,i),Su=(t,r,i)=>r.has(t)||Qh("Cannot "+i);var S=(t,r,i)=>(Su(t,r,"read from private field"),i?i.call(t):r.get(t)),re=(t,r,i)=>r.has(t)?Qh("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(t):r.set(t,i),K=(t,r,i,a)=>(Su(t,r,"write to private field"),a?a.call(t,i):r.set(t,i),i),ce=(t,r,i)=>(Su(t,r,"access private method"),i);var Xs=(t,r,i,a)=>({set _(u){K(t,r,u,i)},get _(){return S(t,r,a)}});function uw(t,r){for(var i=0;i<r.length;i++){const a=r[i];if(typeof a!="string"&&!Array.isArray(a)){for(const u in a)if(u!=="default"&&!(u in t)){const d=Object.getOwnPropertyDescriptor(a,u);d&&Object.defineProperty(t,u,d.get?d:{enumerable:!0,get:()=>a[u]})}}}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 u of document.querySelectorAll('link[rel="modulepreload"]'))a(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&a(m)}).observe(document,{childList:!0,subtree:!0});function i(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function a(u){if(u.ep)return;u.ep=!0;const d=i(u);fetch(u.href,d)}})();const cw="modulepreload",dw=function(t){return"/console/"+t},Gh={},Ve=function(r,i,a){let u=Promise.resolve();if(i&&i.length>0){let m=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 v=document.querySelector("meta[property=csp-nonce]"),g=(v==null?void 0:v.nonce)||(v==null?void 0:v.getAttribute("nonce"));u=m(i.map(h=>{if(h=dw(h),h in Gh)return;Gh[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":cw,y||(C.as="script"),C.crossOrigin="",C.href=h,g&&C.setAttribute("nonce",g),document.head.appendChild(C),y)return new Promise((I,L)=>{C.addEventListener("load",I),C.addEventListener("error",()=>L(new Error(`Unable to preload CSS for ${h}`)))})}))}function d(m){const v=new Event("vite:preloadError",{cancelable:!0});if(v.payload=m,window.dispatchEvent(v),!v.defaultPrevented)throw m}return u.then(m=>{for(const v of m||[])v.status==="rejected"&&d(v.reason);return r().catch(d)})};var gk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fw(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function yk(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var r=t.default;if(typeof r=="function"){var i=function a(){return this instanceof a?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(a){var u=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(i,a,u.get?u:{enumerable:!0,get:function(){return t[a]}})}),i}var ku={exports:{}},ko={},Cu={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 Yh;function hw(){if(Yh)return pe;Yh=1;var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),m=Symbol.for("react.context"),v=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(P){return P===null||typeof P!="object"?null:(P=x&&P[x]||P["@@iterator"],typeof P=="function"?P:null)}var I={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,_={};function N(P,F,ue){this.props=P,this.context=F,this.refs=_,this.updater=ue||I}N.prototype.isReactComponent={},N.prototype.setState=function(P,F){if(typeof P!="object"&&typeof P!="function"&&P!=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,P,F,"setState")},N.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function D(){}D.prototype=N.prototype;function U(P,F,ue){this.props=P,this.context=F,this.refs=_,this.updater=ue||I}var b=U.prototype=new D;b.constructor=U,L(b,N.prototype),b.isPureReactComponent=!0;var T=Array.isArray,A=Object.prototype.hasOwnProperty,q={current:null},ie={key:!0,ref:!0,__self:!0,__source:!0};function Q(P,F,ue){var fe,ge={},ye=null,Pe=null;if(F!=null)for(fe in F.ref!==void 0&&(Pe=F.ref),F.key!==void 0&&(ye=""+F.key),F)A.call(F,fe)&&!ie.hasOwnProperty(fe)&&(ge[fe]=F[fe]);var ke=arguments.length-2;if(ke===1)ge.children=ue;else if(1<ke){for(var je=Array(ke),ut=0;ut<ke;ut++)je[ut]=arguments[ut+2];ge.children=je}if(P&&P.defaultProps)for(fe in ke=P.defaultProps,ke)ge[fe]===void 0&&(ge[fe]=ke[fe]);return{$$typeof:t,type:P,key:ye,ref:Pe,props:ge,_owner:q.current}}function ne(P,F){return{$$typeof:t,type:P.type,key:F,ref:P.ref,props:P.props,_owner:P._owner}}function ae(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function V(P){var F={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(ue){return F[ue]})}var de=/\/+/g;function _e(P,F){return typeof P=="object"&&P!==null&&P.key!=null?V(""+P.key):F.toString(36)}function Me(P,F,ue,fe,ge){var ye=typeof P;(ye==="undefined"||ye==="boolean")&&(P=null);var Pe=!1;if(P===null)Pe=!0;else switch(ye){case"string":case"number":Pe=!0;break;case"object":switch(P.$$typeof){case t:case r:Pe=!0}}if(Pe)return Pe=P,ge=ge(Pe),P=fe===""?"."+_e(Pe,0):fe,T(ge)?(ue="",P!=null&&(ue=P.replace(de,"$&/")+"/"),Me(ge,F,ue,"",function(ut){return ut})):ge!=null&&(ae(ge)&&(ge=ne(ge,ue+(!ge.key||Pe&&Pe.key===ge.key?"":(""+ge.key).replace(de,"$&/")+"/")+P)),F.push(ge)),1;if(Pe=0,fe=fe===""?".":fe+":",T(P))for(var ke=0;ke<P.length;ke++){ye=P[ke];var je=fe+_e(ye,ke);Pe+=Me(ye,F,ue,je,ge)}else if(je=C(P),typeof je=="function")for(P=je.call(P),ke=0;!(ye=P.next()).done;)ye=ye.value,je=fe+_e(ye,ke++),Pe+=Me(ye,F,ue,je,ge);else if(ye==="object")throw F=String(P),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.");return Pe}function be(P,F,ue){if(P==null)return P;var fe=[],ge=0;return Me(P,fe,"","",function(ye){return F.call(ue,ye,ge++)}),fe}function Ue(P){if(P._status===-1){var F=P._result;F=F(),F.then(function(ue){(P._status===0||P._status===-1)&&(P._status=1,P._result=ue)},function(ue){(P._status===0||P._status===-1)&&(P._status=2,P._result=ue)}),P._status===-1&&(P._status=0,P._result=F)}if(P._status===1)return P._result.default;throw P._result}var Se={current:null},W={transition:null},Z={ReactCurrentDispatcher:Se,ReactCurrentBatchConfig:W,ReactCurrentOwner:q};function Y(){throw Error("act(...) is not supported in production builds of React.")}return pe.Children={map:be,forEach:function(P,F,ue){be(P,function(){F.apply(this,arguments)},ue)},count:function(P){var F=0;return be(P,function(){F++}),F},toArray:function(P){return be(P,function(F){return F})||[]},only:function(P){if(!ae(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},pe.Component=N,pe.Fragment=i,pe.Profiler=u,pe.PureComponent=U,pe.StrictMode=a,pe.Suspense=g,pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z,pe.act=Y,pe.cloneElement=function(P,F,ue){if(P==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+P+".");var fe=L({},P.props),ge=P.key,ye=P.ref,Pe=P._owner;if(F!=null){if(F.ref!==void 0&&(ye=F.ref,Pe=q.current),F.key!==void 0&&(ge=""+F.key),P.type&&P.type.defaultProps)var ke=P.type.defaultProps;for(je in F)A.call(F,je)&&!ie.hasOwnProperty(je)&&(fe[je]=F[je]===void 0&&ke!==void 0?ke[je]:F[je])}var je=arguments.length-2;if(je===1)fe.children=ue;else if(1<je){ke=Array(je);for(var ut=0;ut<je;ut++)ke[ut]=arguments[ut+2];fe.children=ke}return{$$typeof:t,type:P.type,key:ge,ref:ye,props:fe,_owner:Pe}},pe.createContext=function(P){return P={$$typeof:m,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},P.Provider={$$typeof:d,_context:P},P.Consumer=P},pe.createElement=Q,pe.createFactory=function(P){var F=Q.bind(null,P);return F.type=P,F},pe.createRef=function(){return{current:null}},pe.forwardRef=function(P){return{$$typeof:v,render:P}},pe.isValidElement=ae,pe.lazy=function(P){return{$$typeof:y,_payload:{_status:-1,_result:P},_init:Ue}},pe.memo=function(P,F){return{$$typeof:h,type:P,compare:F===void 0?null:F}},pe.startTransition=function(P){var F=W.transition;W.transition={};try{P()}finally{W.transition=F}},pe.unstable_act=Y,pe.useCallback=function(P,F){return Se.current.useCallback(P,F)},pe.useContext=function(P){return Se.current.useContext(P)},pe.useDebugValue=function(){},pe.useDeferredValue=function(P){return Se.current.useDeferredValue(P)},pe.useEffect=function(P,F){return Se.current.useEffect(P,F)},pe.useId=function(){return Se.current.useId()},pe.useImperativeHandle=function(P,F,ue){return Se.current.useImperativeHandle(P,F,ue)},pe.useInsertionEffect=function(P,F){return Se.current.useInsertionEffect(P,F)},pe.useLayoutEffect=function(P,F){return Se.current.useLayoutEffect(P,F)},pe.useMemo=function(P,F){return Se.current.useMemo(P,F)},pe.useReducer=function(P,F,ue){return Se.current.useReducer(P,F,ue)},pe.useRef=function(P){return Se.current.useRef(P)},pe.useState=function(P){return Se.current.useState(P)},pe.useSyncExternalStore=function(P,F,ue){return Se.current.useSyncExternalStore(P,F,ue)},pe.useTransition=function(){return Se.current.useTransition()},pe.version="18.3.1",pe}var Zh;function yc(){return Zh||(Zh=1,Cu.exports=hw()),Cu.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 Xh;function pw(){if(Xh)return ko;Xh=1;var t=yc(),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,u=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function m(v,g,h){var y,x={},C=null,I=null;h!==void 0&&(C=""+h),g.key!==void 0&&(C=""+g.key),g.ref!==void 0&&(I=g.ref);for(y in g)a.call(g,y)&&!d.hasOwnProperty(y)&&(x[y]=g[y]);if(v&&v.defaultProps)for(y in g=v.defaultProps,g)x[y]===void 0&&(x[y]=g[y]);return{$$typeof:r,type:v,key:C,ref:I,props:x,_owner:u.current}}return ko.Fragment=i,ko.jsx=m,ko.jsxs=m,ko}var Jh;function mw(){return Jh||(Jh=1,ku.exports=pw()),ku.exports}var f=mw(),O=yc();const Jt=fw(O),wk=uw({__proto__:null,default:Jt},[O]);var Js={},Eu={exports:{}},wt={},_u={exports:{}},Pu={};/**
|
|
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 ep;function vw(){return ep||(ep=1,(function(t){function r(W,Z){var Y=W.length;W.push(Z);e:for(;0<Y;){var P=Y-1>>>1,F=W[P];if(0<u(F,Z))W[P]=Z,W[Y]=F,Y=P;else break e}}function i(W){return W.length===0?null:W[0]}function a(W){if(W.length===0)return null;var Z=W[0],Y=W.pop();if(Y!==Z){W[0]=Y;e:for(var P=0,F=W.length,ue=F>>>1;P<ue;){var fe=2*(P+1)-1,ge=W[fe],ye=fe+1,Pe=W[ye];if(0>u(ge,Y))ye<F&&0>u(Pe,ge)?(W[P]=Pe,W[ye]=Y,P=ye):(W[P]=ge,W[fe]=Y,P=fe);else if(ye<F&&0>u(Pe,Y))W[P]=Pe,W[ye]=Y,P=ye;else break e}}return Z}function u(W,Z){var Y=W.sortIndex-Z.sortIndex;return Y!==0?Y:W.id-Z.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;t.unstable_now=function(){return d.now()}}else{var m=Date,v=m.now();t.unstable_now=function(){return m.now()-v}}var g=[],h=[],y=1,x=null,C=3,I=!1,L=!1,_=!1,N=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,U=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(W){for(var Z=i(h);Z!==null;){if(Z.callback===null)a(h);else if(Z.startTime<=W)a(h),Z.sortIndex=Z.expirationTime,r(g,Z);else break;Z=i(h)}}function T(W){if(_=!1,b(W),!L)if(i(g)!==null)L=!0,Ue(A);else{var Z=i(h);Z!==null&&Se(T,Z.startTime-W)}}function A(W,Z){L=!1,_&&(_=!1,D(Q),Q=-1),I=!0;var Y=C;try{for(b(Z),x=i(g);x!==null&&(!(x.expirationTime>Z)||W&&!V());){var P=x.callback;if(typeof P=="function"){x.callback=null,C=x.priorityLevel;var F=P(x.expirationTime<=Z);Z=t.unstable_now(),typeof F=="function"?x.callback=F:x===i(g)&&a(g),b(Z)}else a(g);x=i(g)}if(x!==null)var ue=!0;else{var fe=i(h);fe!==null&&Se(T,fe.startTime-Z),ue=!1}return ue}finally{x=null,C=Y,I=!1}}var q=!1,ie=null,Q=-1,ne=5,ae=-1;function V(){return!(t.unstable_now()-ae<ne)}function de(){if(ie!==null){var W=t.unstable_now();ae=W;var Z=!0;try{Z=ie(!0,W)}finally{Z?_e():(q=!1,ie=null)}}else q=!1}var _e;if(typeof U=="function")_e=function(){U(de)};else if(typeof MessageChannel<"u"){var Me=new MessageChannel,be=Me.port2;Me.port1.onmessage=de,_e=function(){be.postMessage(null)}}else _e=function(){N(de,0)};function Ue(W){ie=W,q||(q=!0,_e())}function Se(W,Z){Q=N(function(){W(t.unstable_now())},Z)}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(W){W.callback=null},t.unstable_continueExecution=function(){L||I||(L=!0,Ue(A))},t.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<W?Math.floor(1e3/W):5},t.unstable_getCurrentPriorityLevel=function(){return C},t.unstable_getFirstCallbackNode=function(){return i(g)},t.unstable_next=function(W){switch(C){case 1:case 2:case 3:var Z=3;break;default:Z=C}var Y=C;C=Z;try{return W()}finally{C=Y}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(W,Z){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var Y=C;C=W;try{return Z()}finally{C=Y}},t.unstable_scheduleCallback=function(W,Z,Y){var P=t.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?P+Y:P):Y=P,W){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=Y+F,W={id:y++,callback:Z,priorityLevel:W,startTime:Y,expirationTime:F,sortIndex:-1},Y>P?(W.sortIndex=Y,r(h,W),i(g)===null&&W===i(h)&&(_?(D(Q),Q=-1):_=!0,Se(T,Y-P))):(W.sortIndex=F,r(g,W),L||I||(L=!0,Ue(A))),W},t.unstable_shouldYield=V,t.unstable_wrapCallback=function(W){var Z=C;return function(){var Y=C;C=Z;try{return W.apply(this,arguments)}finally{C=Y}}}})(Pu)),Pu}var tp;function gw(){return tp||(tp=1,_u.exports=vw()),_u.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 np;function yw(){if(np)return wt;np=1;var t=yc(),r=gw();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 a=new Set,u={};function d(e,n){m(e,n),m(e+"Capture",n)}function m(e,n){for(u[e]=n,e=0;e<n.length;e++)a.add(n[e])}var v=!(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 I(e,n,o,s){if(o!==null&&o.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return s?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function L(e,n,o,s){if(n===null||typeof n>"u"||I(e,n,o,s))return!0;if(s)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,n,o,s,l,c,p){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=s,this.attributeNamespace=l,this.mustUseProperty=o,this.propertyName=e,this.type=n,this.sanitizeURL=c,this.removeEmptyString=p}var N={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){N[e]=new _(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];N[n]=new _(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){N[e]=new _(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){N[e]=new _(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){N[e]=new _(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){N[e]=new _(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){N[e]=new _(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){N[e]=new _(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){N[e]=new _(e,5,!1,e.toLowerCase(),null,!1,!1)});var D=/[\-:]([a-z])/g;function U(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(D,U);N[n]=new _(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(D,U);N[n]=new _(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(D,U);N[n]=new _(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){N[e]=new _(e,1,!1,e.toLowerCase(),null,!1,!1)}),N.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){N[e]=new _(e,1,!1,e.toLowerCase(),null,!0,!0)});function b(e,n,o,s){var l=N.hasOwnProperty(n)?N[n]:null;(l!==null?l.type!==0:s||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(L(n,o,l,s)&&(o=null),s||l===null?C(n)&&(o===null?e.removeAttribute(n):e.setAttribute(n,""+o)):l.mustUseProperty?e[l.propertyName]=o===null?l.type===3?!1:"":o:(n=l.attributeName,s=l.attributeNamespace,o===null?e.removeAttribute(n):(l=l.type,o=l===3||l===4&&o===!0?"":""+o,s?e.setAttributeNS(s,n,o):e.setAttribute(n,o))))}var T=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,A=Symbol.for("react.element"),q=Symbol.for("react.portal"),ie=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),ne=Symbol.for("react.profiler"),ae=Symbol.for("react.provider"),V=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),_e=Symbol.for("react.suspense"),Me=Symbol.for("react.suspense_list"),be=Symbol.for("react.memo"),Ue=Symbol.for("react.lazy"),Se=Symbol.for("react.offscreen"),W=Symbol.iterator;function Z(e){return e===null||typeof e!="object"?null:(e=W&&e[W]||e["@@iterator"],typeof e=="function"?e:null)}var Y=Object.assign,P;function F(e){if(P===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);P=n&&n[1]||""}return`
|
|
35
|
-
`+P+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(M){var s=M}Reflect.construct(e,[],n)}else{try{n.call()}catch(M){s=M}e.call(n.prototype)}else{try{throw Error()}catch(M){s=M}e()}}catch(M){if(M&&s&&typeof M.stack=="string"){for(var l=M.stack.split(`
|
|
36
|
-
`),c=s.stack.split(`
|
|
37
|
-
`),p=l.length-1,w=c.length-1;1<=p&&0<=w&&l[p]!==c[w];)w--;for(;1<=p&&0<=w;p--,w--)if(l[p]!==c[w]){if(p!==1||w!==1)do if(p--,w--,0>w||l[p]!==c[w]){var k=`
|
|
38
|
-
`+l[p].replace(" at new "," at ");return e.displayName&&k.includes("<anonymous>")&&(k=k.replace("<anonymous>",e.displayName)),k}while(1<=p&&0<=w);break}}}finally{ue=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?F(e):""}function ge(e){switch(e.tag){case 5:return F(e.type);case 16:return F("Lazy");case 13:return F("Suspense");case 19:return F("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 ye(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 ie:return"Fragment";case q:return"Portal";case ne:return"Profiler";case Q:return"StrictMode";case _e:return"Suspense";case Me:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case V:return(e.displayName||"Context")+".Consumer";case ae:return(e._context.displayName||"Context")+".Provider";case de:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case be:return n=e.displayName||null,n!==null?n:ye(e.type)||"Memo";case Ue:n=e._payload,e=e._init;try{return ye(e(n))}catch{}}return null}function Pe(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 ye(n);case 8:return n===Q?"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 ke(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function je(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function ut(e){var n=je(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),s=""+e[n];if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var l=o.get,c=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(p){s=""+p,c.call(this,p)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return s},setValue:function(p){s=""+p},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function Ar(e){e._valueTracker||(e._valueTracker=ut(e))}function Li(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var o=n.getValue(),s="";return e&&(s=je(e)?e.checked?"true":"false":e.value),e=s,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 Ai(e,n){var o=n.checked;return Y({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function Ho(e,n){var o=n.defaultValue==null?"":n.defaultValue,s=n.checked!=null?n.checked:n.defaultChecked;o=ke(n.value!=null?n.value:o),e._wrapperState={initialChecked:s,initialValue:o,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Tt(e,n){n=n.checked,n!=null&&b(e,"checked",n,!1)}function Kt(e,n){Tt(e,n);var o=ke(n.value),s=n.type;if(o!=null)s==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?Ft(e,n.type,o):n.hasOwnProperty("defaultValue")&&Ft(e,n.type,ke(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function un(e,n,o){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var s=n.type;if(!(s!=="submit"&&s!=="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 Pn=Array.isArray;function Fr(e,n,o,s){if(e=e.options,n){n={};for(var l=0;l<o.length;l++)n["$"+o[l]]=!0;for(o=0;o<e.length;o++)l=n.hasOwnProperty("$"+e[o].value),e[o].selected!==l&&(e[o].selected=l),l&&s&&(e[o].defaultSelected=!0)}else{for(o=""+ke(o),n=null,l=0;l<e.length;l++){if(e[l].value===o){e[l].selected=!0,s&&(e[l].defaultSelected=!0);return}n!==null||e[l].disabled||(n=e[l])}n!==null&&(n.selected=!0)}}function Ra(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(i(91));return Y({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function rd(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(Pn(o)){if(1<o.length)throw Error(i(93));o=o[0]}n=o}n==null&&(n=""),o=n}e._wrapperState={initialValue:ke(o)}}function id(e,n){var o=ke(n.value),s=ke(n.defaultValue);o!=null&&(o=""+o,o!==e.value&&(e.value=o),n.defaultValue==null&&e.defaultValue!==o&&(e.defaultValue=o)),s!=null&&(e.defaultValue=""+s)}function od(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function sd(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 Ia(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?sd(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Wo,ad=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,o,s,l){MSApp.execUnsafeLocalFunction(function(){return e(n,o,s,l)})}:e})(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(Wo=Wo||document.createElement("div"),Wo.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=Wo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Di(e,n){if(n){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=n;return}}e.textContent=n}var Fi={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},dg=["Webkit","ms","Moz","O"];Object.keys(Fi).forEach(function(e){dg.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Fi[n]=Fi[e]})});function ld(e,n,o){return n==null||typeof n=="boolean"||n===""?"":o||typeof n!="number"||n===0||Fi.hasOwnProperty(e)&&Fi[e]?(""+n).trim():n+"px"}function ud(e,n){e=e.style;for(var o in n)if(n.hasOwnProperty(o)){var s=o.indexOf("--")===0,l=ld(o,n[o],s);o==="float"&&(o="cssFloat"),s?e.setProperty(o,l):e[o]=l}}var fg=Y({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 Na(e,n){if(n){if(fg[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 Ma(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 Oa=null;function La(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Aa=null,$r=null,zr=null;function cd(e){if(e=so(e)){if(typeof Aa!="function")throw Error(i(280));var n=e.stateNode;n&&(n=hs(n),Aa(e.stateNode,e.type,n))}}function dd(e){$r?zr?zr.push(e):zr=[e]:$r=e}function fd(){if($r){var e=$r,n=zr;if(zr=$r=null,cd(e),n)for(e=0;e<n.length;e++)cd(n[e])}}function hd(e,n){return e(n)}function pd(){}var Da=!1;function md(e,n,o){if(Da)return e(n,o);Da=!0;try{return hd(e,n,o)}finally{Da=!1,($r!==null||zr!==null)&&(pd(),fd())}}function $i(e,n){var o=e.stateNode;if(o===null)return null;var s=hs(o);if(s===null)return null;o=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(i(231,n,typeof o));return o}var Fa=!1;if(v)try{var zi={};Object.defineProperty(zi,"passive",{get:function(){Fa=!0}}),window.addEventListener("test",zi,zi),window.removeEventListener("test",zi,zi)}catch{Fa=!1}function hg(e,n,o,s,l,c,p,w,k){var M=Array.prototype.slice.call(arguments,3);try{n.apply(o,M)}catch(z){this.onError(z)}}var Ui=!1,Vo=null,qo=!1,$a=null,pg={onError:function(e){Ui=!0,Vo=e}};function mg(e,n,o,s,l,c,p,w,k){Ui=!1,Vo=null,hg.apply(pg,arguments)}function vg(e,n,o,s,l,c,p,w,k){if(mg.apply(this,arguments),Ui){if(Ui){var M=Vo;Ui=!1,Vo=null}else throw Error(i(198));qo||(qo=!0,$a=M)}}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 vd(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 gd(e){if(or(e)!==e)throw Error(i(188))}function gg(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,s=n;;){var l=o.return;if(l===null)break;var c=l.alternate;if(c===null){if(s=l.return,s!==null){o=s;continue}break}if(l.child===c.child){for(c=l.child;c;){if(c===o)return gd(l),e;if(c===s)return gd(l),n;c=c.sibling}throw Error(i(188))}if(o.return!==s.return)o=l,s=c;else{for(var p=!1,w=l.child;w;){if(w===o){p=!0,o=l,s=c;break}if(w===s){p=!0,s=l,o=c;break}w=w.sibling}if(!p){for(w=c.child;w;){if(w===o){p=!0,o=c,s=l;break}if(w===s){p=!0,s=c,o=l;break}w=w.sibling}if(!p)throw Error(i(189))}}if(o.alternate!==s)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?e:n}function yd(e){return e=gg(e),e!==null?wd(e):null}function wd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=wd(e);if(n!==null)return n;e=e.sibling}return null}var xd=r.unstable_scheduleCallback,Sd=r.unstable_cancelCallback,yg=r.unstable_shouldYield,wg=r.unstable_requestPaint,Be=r.unstable_now,xg=r.unstable_getCurrentPriorityLevel,za=r.unstable_ImmediatePriority,kd=r.unstable_UserBlockingPriority,Ko=r.unstable_NormalPriority,Sg=r.unstable_LowPriority,Cd=r.unstable_IdlePriority,Qo=null,Qt=null;function kg(e){if(Qt&&typeof Qt.onCommitFiberRoot=="function")try{Qt.onCommitFiberRoot(Qo,e,void 0,(e.current.flags&128)===128)}catch{}}var $t=Math.clz32?Math.clz32:_g,Cg=Math.log,Eg=Math.LN2;function _g(e){return e>>>=0,e===0?32:31-(Cg(e)/Eg|0)|0}var Go=64,Yo=4194304;function Bi(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 Zo(e,n){var o=e.pendingLanes;if(o===0)return 0;var s=0,l=e.suspendedLanes,c=e.pingedLanes,p=o&268435455;if(p!==0){var w=p&~l;w!==0?s=Bi(w):(c&=p,c!==0&&(s=Bi(c)))}else p=o&~l,p!==0?s=Bi(p):c!==0&&(s=Bi(c));if(s===0)return 0;if(n!==0&&n!==s&&(n&l)===0&&(l=s&-s,c=n&-n,l>=c||l===16&&(c&4194240)!==0))return n;if((s&4)!==0&&(s|=o&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=s;0<n;)o=31-$t(n),l=1<<o,s|=e[o],n&=~l;return s}function Pg(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 bg(e,n){for(var o=e.suspendedLanes,s=e.pingedLanes,l=e.expirationTimes,c=e.pendingLanes;0<c;){var p=31-$t(c),w=1<<p,k=l[p];k===-1?((w&o)===0||(w&s)!==0)&&(l[p]=Pg(w,n)):k<=n&&(e.expiredLanes|=w),c&=~w}}function Ua(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ed(){var e=Go;return Go<<=1,(Go&4194240)===0&&(Go=64),e}function Ba(e){for(var n=[],o=0;31>o;o++)n.push(e);return n}function Hi(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 jg(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 s=e.eventTimes;for(e=e.expirationTimes;0<o;){var l=31-$t(o),c=1<<l;n[l]=0,s[l]=-1,e[l]=-1,o&=~c}}function Ha(e,n){var o=e.entangledLanes|=n;for(e=e.entanglements;o;){var s=31-$t(o),l=1<<s;l&n|e[s]&n&&(e[s]|=n),o&=~l}}var Ee=0;function _d(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Pd,Wa,bd,jd,Td,Va=!1,Xo=[],bn=null,jn=null,Tn=null,Wi=new Map,Vi=new Map,Rn=[],Tg="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 Rd(e,n){switch(e){case"focusin":case"focusout":bn=null;break;case"dragenter":case"dragleave":jn=null;break;case"mouseover":case"mouseout":Tn=null;break;case"pointerover":case"pointerout":Wi.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vi.delete(n.pointerId)}}function qi(e,n,o,s,l,c){return e===null||e.nativeEvent!==c?(e={blockedOn:n,domEventName:o,eventSystemFlags:s,nativeEvent:c,targetContainers:[l]},n!==null&&(n=so(n),n!==null&&Wa(n)),e):(e.eventSystemFlags|=s,n=e.targetContainers,l!==null&&n.indexOf(l)===-1&&n.push(l),e)}function Rg(e,n,o,s,l){switch(n){case"focusin":return bn=qi(bn,e,n,o,s,l),!0;case"dragenter":return jn=qi(jn,e,n,o,s,l),!0;case"mouseover":return Tn=qi(Tn,e,n,o,s,l),!0;case"pointerover":var c=l.pointerId;return Wi.set(c,qi(Wi.get(c)||null,e,n,o,s,l)),!0;case"gotpointercapture":return c=l.pointerId,Vi.set(c,qi(Vi.get(c)||null,e,n,o,s,l)),!0}return!1}function Id(e){var n=sr(e.target);if(n!==null){var o=or(n);if(o!==null){if(n=o.tag,n===13){if(n=vd(o),n!==null){e.blockedOn=n,Td(e.priority,function(){bd(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 Jo(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var o=Ka(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var s=new o.constructor(o.type,o);Oa=s,o.target.dispatchEvent(s),Oa=null}else return n=so(o),n!==null&&Wa(n),e.blockedOn=o,!1;n.shift()}return!0}function Nd(e,n,o){Jo(e)&&o.delete(n)}function Ig(){Va=!1,bn!==null&&Jo(bn)&&(bn=null),jn!==null&&Jo(jn)&&(jn=null),Tn!==null&&Jo(Tn)&&(Tn=null),Wi.forEach(Nd),Vi.forEach(Nd)}function Ki(e,n){e.blockedOn===n&&(e.blockedOn=null,Va||(Va=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Ig)))}function Qi(e){function n(l){return Ki(l,e)}if(0<Xo.length){Ki(Xo[0],e);for(var o=1;o<Xo.length;o++){var s=Xo[o];s.blockedOn===e&&(s.blockedOn=null)}}for(bn!==null&&Ki(bn,e),jn!==null&&Ki(jn,e),Tn!==null&&Ki(Tn,e),Wi.forEach(n),Vi.forEach(n),o=0;o<Rn.length;o++)s=Rn[o],s.blockedOn===e&&(s.blockedOn=null);for(;0<Rn.length&&(o=Rn[0],o.blockedOn===null);)Id(o),o.blockedOn===null&&Rn.shift()}var Ur=T.ReactCurrentBatchConfig,es=!0;function Ng(e,n,o,s){var l=Ee,c=Ur.transition;Ur.transition=null;try{Ee=1,qa(e,n,o,s)}finally{Ee=l,Ur.transition=c}}function Mg(e,n,o,s){var l=Ee,c=Ur.transition;Ur.transition=null;try{Ee=4,qa(e,n,o,s)}finally{Ee=l,Ur.transition=c}}function qa(e,n,o,s){if(es){var l=Ka(e,n,o,s);if(l===null)cl(e,n,s,ts,o),Rd(e,s);else if(Rg(l,e,n,o,s))s.stopPropagation();else if(Rd(e,s),n&4&&-1<Tg.indexOf(e)){for(;l!==null;){var c=so(l);if(c!==null&&Pd(c),c=Ka(e,n,o,s),c===null&&cl(e,n,s,ts,o),c===l)break;l=c}l!==null&&s.stopPropagation()}else cl(e,n,s,null,o)}}var ts=null;function Ka(e,n,o,s){if(ts=null,e=La(s),e=sr(e),e!==null)if(n=or(e),n===null)e=null;else if(o=n.tag,o===13){if(e=vd(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 ts=e,null}function Md(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(xg()){case za:return 1;case kd:return 4;case Ko:case Sg:return 16;case Cd:return 536870912;default:return 16}default:return 16}}var In=null,Qa=null,ns=null;function Od(){if(ns)return ns;var e,n=Qa,o=n.length,s,l="value"in In?In.value:In.textContent,c=l.length;for(e=0;e<o&&n[e]===l[e];e++);var p=o-e;for(s=1;s<=p&&n[o-s]===l[c-s];s++);return ns=l.slice(e,1<s?1-s:void 0)}function rs(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 is(){return!0}function Ld(){return!1}function Et(e){function n(o,s,l,c,p){this._reactName=o,this._targetInst=l,this.type=s,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)?is:Ld,this.isPropagationStopped=Ld,this}return Y(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=is)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=is)},persist:function(){},isPersistent:is}),n}var Br={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ga=Et(Br),Gi=Y({},Br,{view:0,detail:0}),Og=Et(Gi),Ya,Za,Yi,os=Y({},Gi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ja,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!==Yi&&(Yi&&e.type==="mousemove"?(Ya=e.screenX-Yi.screenX,Za=e.screenY-Yi.screenY):Za=Ya=0,Yi=e),Ya)},movementY:function(e){return"movementY"in e?e.movementY:Za}}),Ad=Et(os),Lg=Y({},os,{dataTransfer:0}),Ag=Et(Lg),Dg=Y({},Gi,{relatedTarget:0}),Xa=Et(Dg),Fg=Y({},Br,{animationName:0,elapsedTime:0,pseudoElement:0}),$g=Et(Fg),zg=Y({},Br,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ug=Et(zg),Bg=Y({},Br,{data:0}),Dd=Et(Bg),Hg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wg={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"},Vg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qg(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Vg[e])?!!n[e]:!1}function Ja(){return qg}var Kg=Y({},Gi,{key:function(e){if(e.key){var n=Hg[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=rs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Wg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ja,charCode:function(e){return e.type==="keypress"?rs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?rs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Qg=Et(Kg),Gg=Y({},os,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fd=Et(Gg),Yg=Y({},Gi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ja}),Zg=Et(Yg),Xg=Y({},Br,{propertyName:0,elapsedTime:0,pseudoElement:0}),Jg=Et(Xg),ey=Y({},os,{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}),ty=Et(ey),ny=[9,13,27,32],el=v&&"CompositionEvent"in window,Zi=null;v&&"documentMode"in document&&(Zi=document.documentMode);var ry=v&&"TextEvent"in window&&!Zi,$d=v&&(!el||Zi&&8<Zi&&11>=Zi),zd=" ",Ud=!1;function Bd(e,n){switch(e){case"keyup":return ny.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hr=!1;function iy(e,n){switch(e){case"compositionend":return Hd(n);case"keypress":return n.which!==32?null:(Ud=!0,zd);case"textInput":return e=n.data,e===zd&&Ud?null:e;default:return null}}function oy(e,n){if(Hr)return e==="compositionend"||!el&&Bd(e,n)?(e=Od(),ns=Qa=In=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 $d&&n.locale!=="ko"?null:n.data;default:return null}}var sy={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 Wd(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!sy[e.type]:n==="textarea"}function Vd(e,n,o,s){dd(s),n=cs(n,"onChange"),0<n.length&&(o=new Ga("onChange","change",null,o,s),e.push({event:o,listeners:n}))}var Xi=null,Ji=null;function ay(e){cf(e,0)}function ss(e){var n=Qr(e);if(Li(n))return e}function ly(e,n){if(e==="change")return n}var qd=!1;if(v){var tl;if(v){var nl="oninput"in document;if(!nl){var Kd=document.createElement("div");Kd.setAttribute("oninput","return;"),nl=typeof Kd.oninput=="function"}tl=nl}else tl=!1;qd=tl&&(!document.documentMode||9<document.documentMode)}function Qd(){Xi&&(Xi.detachEvent("onpropertychange",Gd),Ji=Xi=null)}function Gd(e){if(e.propertyName==="value"&&ss(Ji)){var n=[];Vd(n,Ji,e,La(e)),md(ay,n)}}function uy(e,n,o){e==="focusin"?(Qd(),Xi=n,Ji=o,Xi.attachEvent("onpropertychange",Gd)):e==="focusout"&&Qd()}function cy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ss(Ji)}function dy(e,n){if(e==="click")return ss(n)}function fy(e,n){if(e==="input"||e==="change")return ss(n)}function hy(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var zt=typeof Object.is=="function"?Object.is:hy;function eo(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),s=Object.keys(n);if(o.length!==s.length)return!1;for(s=0;s<o.length;s++){var l=o[s];if(!g.call(n,l)||!zt(e[l],n[l]))return!1}return!0}function Yd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zd(e,n){var o=Yd(e);e=0;for(var s;o;){if(o.nodeType===3){if(s=e+o.textContent.length,e<=n&&s>=n)return{node:o,offset:n-e};e=s}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Yd(o)}}function Xd(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Xd(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Jd(){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 rl(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 py(e){var n=Jd(),o=e.focusedElem,s=e.selectionRange;if(n!==o&&o&&o.ownerDocument&&Xd(o.ownerDocument.documentElement,o)){if(s!==null&&rl(o)){if(n=s.start,e=s.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 l=o.textContent.length,c=Math.min(s.start,l);s=s.end===void 0?c:Math.min(s.end,l),!e.extend&&c>s&&(l=s,s=c,c=l),l=Zd(o,c);var p=Zd(o,s);l&&p&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==p.node||e.focusOffset!==p.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),c>s?(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 my=v&&"documentMode"in document&&11>=document.documentMode,Wr=null,il=null,to=null,ol=!1;function ef(e,n,o){var s=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;ol||Wr==null||Wr!==Dr(s)||(s=Wr,"selectionStart"in s&&rl(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),to&&eo(to,s)||(to=s,s=cs(il,"onSelect"),0<s.length&&(n=new Ga("onSelect","select",null,n,o),e.push({event:n,listeners:s}),n.target=Wr)))}function as(e,n){var o={};return o[e.toLowerCase()]=n.toLowerCase(),o["Webkit"+e]="webkit"+n,o["Moz"+e]="moz"+n,o}var Vr={animationend:as("Animation","AnimationEnd"),animationiteration:as("Animation","AnimationIteration"),animationstart:as("Animation","AnimationStart"),transitionend:as("Transition","TransitionEnd")},sl={},tf={};v&&(tf=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 ls(e){if(sl[e])return sl[e];if(!Vr[e])return e;var n=Vr[e],o;for(o in n)if(n.hasOwnProperty(o)&&o in tf)return sl[e]=n[o];return e}var nf=ls("animationend"),rf=ls("animationiteration"),of=ls("animationstart"),sf=ls("transitionend"),af=new Map,lf="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 Nn(e,n){af.set(e,n),d(n,[e])}for(var al=0;al<lf.length;al++){var ll=lf[al],vy=ll.toLowerCase(),gy=ll[0].toUpperCase()+ll.slice(1);Nn(vy,"on"+gy)}Nn(nf,"onAnimationEnd"),Nn(rf,"onAnimationIteration"),Nn(of,"onAnimationStart"),Nn("dblclick","onDoubleClick"),Nn("focusin","onFocus"),Nn("focusout","onBlur"),Nn(sf,"onTransitionEnd"),m("onMouseEnter",["mouseout","mouseover"]),m("onMouseLeave",["mouseout","mouseover"]),m("onPointerEnter",["pointerout","pointerover"]),m("onPointerLeave",["pointerout","pointerover"]),d("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),d("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),d("onBeforeInput",["compositionend","keypress","textInput","paste"]),d("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),d("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var no="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(" "),yy=new Set("cancel close invalid load scroll toggle".split(" ").concat(no));function uf(e,n,o){var s=e.type||"unknown-event";e.currentTarget=o,vg(s,n,void 0,e),e.currentTarget=null}function cf(e,n){n=(n&4)!==0;for(var o=0;o<e.length;o++){var s=e[o],l=s.event;s=s.listeners;e:{var c=void 0;if(n)for(var p=s.length-1;0<=p;p--){var w=s[p],k=w.instance,M=w.currentTarget;if(w=w.listener,k!==c&&l.isPropagationStopped())break e;uf(l,w,M),c=k}else for(p=0;p<s.length;p++){if(w=s[p],k=w.instance,M=w.currentTarget,w=w.listener,k!==c&&l.isPropagationStopped())break e;uf(l,w,M),c=k}}}if(qo)throw e=$a,qo=!1,$a=null,e}function Ie(e,n){var o=n[vl];o===void 0&&(o=n[vl]=new Set);var s=e+"__bubble";o.has(s)||(df(n,e,2,!1),o.add(s))}function ul(e,n,o){var s=0;n&&(s|=4),df(o,e,s,n)}var us="_reactListening"+Math.random().toString(36).slice(2);function ro(e){if(!e[us]){e[us]=!0,a.forEach(function(o){o!=="selectionchange"&&(yy.has(o)||ul(o,!1,e),ul(o,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[us]||(n[us]=!0,ul("selectionchange",!1,n))}}function df(e,n,o,s){switch(Md(n)){case 1:var l=Ng;break;case 4:l=Mg;break;default:l=qa}o=l.bind(null,n,o,e),l=void 0,!Fa||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(l=!0),s?l!==void 0?e.addEventListener(n,o,{capture:!0,passive:l}):e.addEventListener(n,o,!0):l!==void 0?e.addEventListener(n,o,{passive:l}):e.addEventListener(n,o,!1)}function cl(e,n,o,s,l){var c=s;if((n&1)===0&&(n&2)===0&&s!==null)e:for(;;){if(s===null)return;var p=s.tag;if(p===3||p===4){var w=s.stateNode.containerInfo;if(w===l||w.nodeType===8&&w.parentNode===l)break;if(p===4)for(p=s.return;p!==null;){var k=p.tag;if((k===3||k===4)&&(k=p.stateNode.containerInfo,k===l||k.nodeType===8&&k.parentNode===l))return;p=p.return}for(;w!==null;){if(p=sr(w),p===null)return;if(k=p.tag,k===5||k===6){s=c=p;continue e}w=w.parentNode}}s=s.return}md(function(){var M=c,z=La(o),B=[];e:{var $=af.get(e);if($!==void 0){var G=Ga,J=e;switch(e){case"keypress":if(rs(o)===0)break e;case"keydown":case"keyup":G=Qg;break;case"focusin":J="focus",G=Xa;break;case"focusout":J="blur",G=Xa;break;case"beforeblur":case"afterblur":G=Xa;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":G=Ad;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=Ag;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=Zg;break;case nf:case rf:case of:G=$g;break;case sf:G=Jg;break;case"scroll":G=Og;break;case"wheel":G=ty;break;case"copy":case"cut":case"paste":G=Ug;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=Fd}var ee=(n&4)!==0,He=!ee&&e==="scroll",j=ee?$!==null?$+"Capture":null:$;ee=[];for(var E=M,R;E!==null;){R=E;var H=R.stateNode;if(R.tag===5&&H!==null&&(R=H,j!==null&&(H=$i(E,j),H!=null&&ee.push(io(E,H,R)))),He)break;E=E.return}0<ee.length&&($=new G($,J,null,o,z),B.push({event:$,listeners:ee}))}}if((n&7)===0){e:{if($=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",$&&o!==Oa&&(J=o.relatedTarget||o.fromElement)&&(sr(J)||J[cn]))break e;if((G||$)&&($=z.window===z?z:($=z.ownerDocument)?$.defaultView||$.parentWindow:window,G?(J=o.relatedTarget||o.toElement,G=M,J=J?sr(J):null,J!==null&&(He=or(J),J!==He||J.tag!==5&&J.tag!==6)&&(J=null)):(G=null,J=M),G!==J)){if(ee=Ad,H="onMouseLeave",j="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(ee=Fd,H="onPointerLeave",j="onPointerEnter",E="pointer"),He=G==null?$:Qr(G),R=J==null?$:Qr(J),$=new ee(H,E+"leave",G,o,z),$.target=He,$.relatedTarget=R,H=null,sr(z)===M&&(ee=new ee(j,E+"enter",J,o,z),ee.target=R,ee.relatedTarget=He,H=ee),He=H,G&&J)t:{for(ee=G,j=J,E=0,R=ee;R;R=qr(R))E++;for(R=0,H=j;H;H=qr(H))R++;for(;0<E-R;)ee=qr(ee),E--;for(;0<R-E;)j=qr(j),R--;for(;E--;){if(ee===j||j!==null&&ee===j.alternate)break t;ee=qr(ee),j=qr(j)}ee=null}else ee=null;G!==null&&ff(B,$,G,ee,!1),J!==null&&He!==null&&ff(B,He,J,ee,!0)}}e:{if($=M?Qr(M):window,G=$.nodeName&&$.nodeName.toLowerCase(),G==="select"||G==="input"&&$.type==="file")var te=ly;else if(Wd($))if(qd)te=fy;else{te=cy;var oe=uy}else(G=$.nodeName)&&G.toLowerCase()==="input"&&($.type==="checkbox"||$.type==="radio")&&(te=dy);if(te&&(te=te(e,M))){Vd(B,te,o,z);break e}oe&&oe(e,$,M),e==="focusout"&&(oe=$._wrapperState)&&oe.controlled&&$.type==="number"&&Ft($,"number",$.value)}switch(oe=M?Qr(M):window,e){case"focusin":(Wd(oe)||oe.contentEditable==="true")&&(Wr=oe,il=M,to=null);break;case"focusout":to=il=Wr=null;break;case"mousedown":ol=!0;break;case"contextmenu":case"mouseup":case"dragend":ol=!1,ef(B,o,z);break;case"selectionchange":if(my)break;case"keydown":case"keyup":ef(B,o,z)}var se;if(el)e:{switch(e){case"compositionstart":var le="onCompositionStart";break e;case"compositionend":le="onCompositionEnd";break e;case"compositionupdate":le="onCompositionUpdate";break e}le=void 0}else Hr?Bd(e,o)&&(le="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(le="onCompositionStart");le&&($d&&o.locale!=="ko"&&(Hr||le!=="onCompositionStart"?le==="onCompositionEnd"&&Hr&&(se=Od()):(In=z,Qa="value"in In?In.value:In.textContent,Hr=!0)),oe=cs(M,le),0<oe.length&&(le=new Dd(le,e,null,o,z),B.push({event:le,listeners:oe}),se?le.data=se:(se=Hd(o),se!==null&&(le.data=se)))),(se=ry?iy(e,o):oy(e,o))&&(M=cs(M,"onBeforeInput"),0<M.length&&(z=new Dd("onBeforeInput","beforeinput",null,o,z),B.push({event:z,listeners:M}),z.data=se))}cf(B,n)})}function io(e,n,o){return{instance:e,listener:n,currentTarget:o}}function cs(e,n){for(var o=n+"Capture",s=[];e!==null;){var l=e,c=l.stateNode;l.tag===5&&c!==null&&(l=c,c=$i(e,o),c!=null&&s.unshift(io(e,c,l)),c=$i(e,n),c!=null&&s.push(io(e,c,l))),e=e.return}return s}function qr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ff(e,n,o,s,l){for(var c=n._reactName,p=[];o!==null&&o!==s;){var w=o,k=w.alternate,M=w.stateNode;if(k!==null&&k===s)break;w.tag===5&&M!==null&&(w=M,l?(k=$i(o,c),k!=null&&p.unshift(io(o,k,w))):l||(k=$i(o,c),k!=null&&p.push(io(o,k,w)))),o=o.return}p.length!==0&&e.push({event:n,listeners:p})}var wy=/\r\n?/g,xy=/\u0000|\uFFFD/g;function hf(e){return(typeof e=="string"?e:""+e).replace(wy,`
|
|
39
|
-
`).replace(xy,"")}function ds(e,n,o){if(n=hf(n),hf(e)!==n&&o)throw Error(i(425))}function fs(){}var dl=null,fl=null;function hl(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 pl=typeof setTimeout=="function"?setTimeout:void 0,Sy=typeof clearTimeout=="function"?clearTimeout:void 0,pf=typeof Promise=="function"?Promise:void 0,ky=typeof queueMicrotask=="function"?queueMicrotask:typeof pf<"u"?function(e){return pf.resolve(null).then(e).catch(Cy)}:pl;function Cy(e){setTimeout(function(){throw e})}function ml(e,n){var o=n,s=0;do{var l=o.nextSibling;if(e.removeChild(o),l&&l.nodeType===8)if(o=l.data,o==="/$"){if(s===0){e.removeChild(l),Qi(n);return}s--}else o!=="$"&&o!=="$?"&&o!=="$!"||s++;o=l}while(o);Qi(n)}function Mn(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 mf(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),Gt="__reactFiber$"+Kr,oo="__reactProps$"+Kr,cn="__reactContainer$"+Kr,vl="__reactEvents$"+Kr,Ey="__reactListeners$"+Kr,_y="__reactHandles$"+Kr;function sr(e){var n=e[Gt];if(n)return n;for(var o=e.parentNode;o;){if(n=o[cn]||o[Gt]){if(o=n.alternate,n.child!==null||o!==null&&o.child!==null)for(e=mf(e);e!==null;){if(o=e[Gt])return o;e=mf(e)}return n}e=o,o=e.parentNode}return null}function so(e){return e=e[Gt]||e[cn],!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 hs(e){return e[oo]||null}var gl=[],Gr=-1;function On(e){return{current:e}}function Ne(e){0>Gr||(e.current=gl[Gr],gl[Gr]=null,Gr--)}function Te(e,n){Gr++,gl[Gr]=e.current,e.current=n}var Ln={},nt=On(Ln),pt=On(!1),ar=Ln;function Yr(e,n){var o=e.type.contextTypes;if(!o)return Ln;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===n)return s.__reactInternalMemoizedMaskedChildContext;var l={},c;for(c in o)l[c]=n[c];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l),l}function mt(e){return e=e.childContextTypes,e!=null}function ps(){Ne(pt),Ne(nt)}function vf(e,n,o){if(nt.current!==Ln)throw Error(i(168));Te(nt,n),Te(pt,o)}function gf(e,n,o){var s=e.stateNode;if(n=n.childContextTypes,typeof s.getChildContext!="function")return o;s=s.getChildContext();for(var l in s)if(!(l in n))throw Error(i(108,Pe(e)||"Unknown",l));return Y({},o,s)}function ms(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ln,ar=nt.current,Te(nt,e),Te(pt,pt.current),!0}function yf(e,n,o){var s=e.stateNode;if(!s)throw Error(i(169));o?(e=gf(e,n,ar),s.__reactInternalMemoizedMergedChildContext=e,Ne(pt),Ne(nt),Te(nt,e)):Ne(pt),Te(pt,o)}var dn=null,vs=!1,yl=!1;function wf(e){dn===null?dn=[e]:dn.push(e)}function Py(e){vs=!0,wf(e)}function An(){if(!yl&&dn!==null){yl=!0;var e=0,n=Ee;try{var o=dn;for(Ee=1;e<o.length;e++){var s=o[e];do s=s(!0);while(s!==null)}dn=null,vs=!1}catch(l){throw dn!==null&&(dn=dn.slice(e+1)),xd(za,An),l}finally{Ee=n,yl=!1}}return null}var Zr=[],Xr=0,gs=null,ys=0,Rt=[],It=0,lr=null,fn=1,hn="";function ur(e,n){Zr[Xr++]=ys,Zr[Xr++]=gs,gs=e,ys=n}function xf(e,n,o){Rt[It++]=fn,Rt[It++]=hn,Rt[It++]=lr,lr=e;var s=fn;e=hn;var l=32-$t(s)-1;s&=~(1<<l),o+=1;var c=32-$t(n)+l;if(30<c){var p=l-l%5;c=(s&(1<<p)-1).toString(32),s>>=p,l-=p,fn=1<<32-$t(n)+l|o<<l|s,hn=c+e}else fn=1<<c|o<<l|s,hn=e}function wl(e){e.return!==null&&(ur(e,1),xf(e,1,0))}function xl(e){for(;e===gs;)gs=Zr[--Xr],Zr[Xr]=null,ys=Zr[--Xr],Zr[Xr]=null;for(;e===lr;)lr=Rt[--It],Rt[It]=null,hn=Rt[--It],Rt[It]=null,fn=Rt[--It],Rt[It]=null}var _t=null,Pt=null,Oe=!1,Ut=null;function Sf(e,n){var o=Lt(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 kf(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,_t=e,Pt=Mn(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,_t=e,Pt=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(o=lr!==null?{id:fn,overflow:hn}:null,e.memoizedState={dehydrated:n,treeContext:o,retryLane:1073741824},o=Lt(18,null,null,0),o.stateNode=n,o.return=e,e.child=o,_t=e,Pt=null,!0):!1;default:return!1}}function Sl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function kl(e){if(Oe){var n=Pt;if(n){var o=n;if(!kf(e,n)){if(Sl(e))throw Error(i(418));n=Mn(o.nextSibling);var s=_t;n&&kf(e,n)?Sf(s,o):(e.flags=e.flags&-4097|2,Oe=!1,_t=e)}}else{if(Sl(e))throw Error(i(418));e.flags=e.flags&-4097|2,Oe=!1,_t=e}}}function Cf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;_t=e}function ws(e){if(e!==_t)return!1;if(!Oe)return Cf(e),Oe=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!hl(e.type,e.memoizedProps)),n&&(n=Pt)){if(Sl(e))throw Ef(),Error(i(418));for(;n;)Sf(e,n),n=Mn(n.nextSibling)}if(Cf(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=Mn(e.nextSibling);break e}n--}else o!=="$"&&o!=="$!"&&o!=="$?"||n++}e=e.nextSibling}Pt=null}}else Pt=_t?Mn(e.stateNode.nextSibling):null;return!0}function Ef(){for(var e=Pt;e;)e=Mn(e.nextSibling)}function Jr(){Pt=_t=null,Oe=!1}function Cl(e){Ut===null?Ut=[e]:Ut.push(e)}var by=T.ReactCurrentBatchConfig;function ao(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 s=o.stateNode}if(!s)throw Error(i(147,e));var l=s,c=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===c?n.ref:(n=function(p){var w=l.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 xs(e,n){throw e=Object.prototype.toString.call(n),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function _f(e){var n=e._init;return n(e._payload)}function Pf(e){function n(j,E){if(e){var R=j.deletions;R===null?(j.deletions=[E],j.flags|=16):R.push(E)}}function o(j,E){if(!e)return null;for(;E!==null;)n(j,E),E=E.sibling;return null}function s(j,E){for(j=new Map;E!==null;)E.key!==null?j.set(E.key,E):j.set(E.index,E),E=E.sibling;return j}function l(j,E){return j=Wn(j,E),j.index=0,j.sibling=null,j}function c(j,E,R){return j.index=R,e?(R=j.alternate,R!==null?(R=R.index,R<E?(j.flags|=2,E):R):(j.flags|=2,E)):(j.flags|=1048576,E)}function p(j){return e&&j.alternate===null&&(j.flags|=2),j}function w(j,E,R,H){return E===null||E.tag!==6?(E=pu(R,j.mode,H),E.return=j,E):(E=l(E,R),E.return=j,E)}function k(j,E,R,H){var te=R.type;return te===ie?z(j,E,R.props.children,H,R.key):E!==null&&(E.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===Ue&&_f(te)===E.type)?(H=l(E,R.props),H.ref=ao(j,E,R),H.return=j,H):(H=Ws(R.type,R.key,R.props,null,j.mode,H),H.ref=ao(j,E,R),H.return=j,H)}function M(j,E,R,H){return E===null||E.tag!==4||E.stateNode.containerInfo!==R.containerInfo||E.stateNode.implementation!==R.implementation?(E=mu(R,j.mode,H),E.return=j,E):(E=l(E,R.children||[]),E.return=j,E)}function z(j,E,R,H,te){return E===null||E.tag!==7?(E=gr(R,j.mode,H,te),E.return=j,E):(E=l(E,R),E.return=j,E)}function B(j,E,R){if(typeof E=="string"&&E!==""||typeof E=="number")return E=pu(""+E,j.mode,R),E.return=j,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case A:return R=Ws(E.type,E.key,E.props,null,j.mode,R),R.ref=ao(j,null,E),R.return=j,R;case q:return E=mu(E,j.mode,R),E.return=j,E;case Ue:var H=E._init;return B(j,H(E._payload),R)}if(Pn(E)||Z(E))return E=gr(E,j.mode,R,null),E.return=j,E;xs(j,E)}return null}function $(j,E,R,H){var te=E!==null?E.key:null;if(typeof R=="string"&&R!==""||typeof R=="number")return te!==null?null:w(j,E,""+R,H);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case A:return R.key===te?k(j,E,R,H):null;case q:return R.key===te?M(j,E,R,H):null;case Ue:return te=R._init,$(j,E,te(R._payload),H)}if(Pn(R)||Z(R))return te!==null?null:z(j,E,R,H,null);xs(j,R)}return null}function G(j,E,R,H,te){if(typeof H=="string"&&H!==""||typeof H=="number")return j=j.get(R)||null,w(E,j,""+H,te);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case A:return j=j.get(H.key===null?R:H.key)||null,k(E,j,H,te);case q:return j=j.get(H.key===null?R:H.key)||null,M(E,j,H,te);case Ue:var oe=H._init;return G(j,E,R,oe(H._payload),te)}if(Pn(H)||Z(H))return j=j.get(R)||null,z(E,j,H,te,null);xs(E,H)}return null}function J(j,E,R,H){for(var te=null,oe=null,se=E,le=E=0,Ze=null;se!==null&&le<R.length;le++){se.index>le?(Ze=se,se=null):Ze=se.sibling;var xe=$(j,se,R[le],H);if(xe===null){se===null&&(se=Ze);break}e&&se&&xe.alternate===null&&n(j,se),E=c(xe,E,le),oe===null?te=xe:oe.sibling=xe,oe=xe,se=Ze}if(le===R.length)return o(j,se),Oe&&ur(j,le),te;if(se===null){for(;le<R.length;le++)se=B(j,R[le],H),se!==null&&(E=c(se,E,le),oe===null?te=se:oe.sibling=se,oe=se);return Oe&&ur(j,le),te}for(se=s(j,se);le<R.length;le++)Ze=G(se,j,le,R[le],H),Ze!==null&&(e&&Ze.alternate!==null&&se.delete(Ze.key===null?le:Ze.key),E=c(Ze,E,le),oe===null?te=Ze:oe.sibling=Ze,oe=Ze);return e&&se.forEach(function(Vn){return n(j,Vn)}),Oe&&ur(j,le),te}function ee(j,E,R,H){var te=Z(R);if(typeof te!="function")throw Error(i(150));if(R=te.call(R),R==null)throw Error(i(151));for(var oe=te=null,se=E,le=E=0,Ze=null,xe=R.next();se!==null&&!xe.done;le++,xe=R.next()){se.index>le?(Ze=se,se=null):Ze=se.sibling;var Vn=$(j,se,xe.value,H);if(Vn===null){se===null&&(se=Ze);break}e&&se&&Vn.alternate===null&&n(j,se),E=c(Vn,E,le),oe===null?te=Vn:oe.sibling=Vn,oe=Vn,se=Ze}if(xe.done)return o(j,se),Oe&&ur(j,le),te;if(se===null){for(;!xe.done;le++,xe=R.next())xe=B(j,xe.value,H),xe!==null&&(E=c(xe,E,le),oe===null?te=xe:oe.sibling=xe,oe=xe);return Oe&&ur(j,le),te}for(se=s(j,se);!xe.done;le++,xe=R.next())xe=G(se,j,le,xe.value,H),xe!==null&&(e&&xe.alternate!==null&&se.delete(xe.key===null?le:xe.key),E=c(xe,E,le),oe===null?te=xe:oe.sibling=xe,oe=xe);return e&&se.forEach(function(sw){return n(j,sw)}),Oe&&ur(j,le),te}function He(j,E,R,H){if(typeof R=="object"&&R!==null&&R.type===ie&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case A:e:{for(var te=R.key,oe=E;oe!==null;){if(oe.key===te){if(te=R.type,te===ie){if(oe.tag===7){o(j,oe.sibling),E=l(oe,R.props.children),E.return=j,j=E;break e}}else if(oe.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===Ue&&_f(te)===oe.type){o(j,oe.sibling),E=l(oe,R.props),E.ref=ao(j,oe,R),E.return=j,j=E;break e}o(j,oe);break}else n(j,oe);oe=oe.sibling}R.type===ie?(E=gr(R.props.children,j.mode,H,R.key),E.return=j,j=E):(H=Ws(R.type,R.key,R.props,null,j.mode,H),H.ref=ao(j,E,R),H.return=j,j=H)}return p(j);case q:e:{for(oe=R.key;E!==null;){if(E.key===oe)if(E.tag===4&&E.stateNode.containerInfo===R.containerInfo&&E.stateNode.implementation===R.implementation){o(j,E.sibling),E=l(E,R.children||[]),E.return=j,j=E;break e}else{o(j,E);break}else n(j,E);E=E.sibling}E=mu(R,j.mode,H),E.return=j,j=E}return p(j);case Ue:return oe=R._init,He(j,E,oe(R._payload),H)}if(Pn(R))return J(j,E,R,H);if(Z(R))return ee(j,E,R,H);xs(j,R)}return typeof R=="string"&&R!==""||typeof R=="number"?(R=""+R,E!==null&&E.tag===6?(o(j,E.sibling),E=l(E,R),E.return=j,j=E):(o(j,E),E=pu(R,j.mode,H),E.return=j,j=E),p(j)):o(j,E)}return He}var ei=Pf(!0),bf=Pf(!1),Ss=On(null),ks=null,ti=null,El=null;function _l(){El=ti=ks=null}function Pl(e){var n=Ss.current;Ne(Ss),e._currentValue=n}function bl(e,n,o){for(;e!==null;){var s=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,s!==null&&(s.childLanes|=n)):s!==null&&(s.childLanes&n)!==n&&(s.childLanes|=n),e===o)break;e=e.return}}function ni(e,n){ks=e,El=ti=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(vt=!0),e.firstContext=null)}function Nt(e){var n=e._currentValue;if(El!==e)if(e={context:e,memoizedValue:n,next:null},ti===null){if(ks===null)throw Error(i(308));ti=e,ks.dependencies={lanes:0,firstContext:e}}else ti=ti.next=e;return n}var cr=null;function jl(e){cr===null?cr=[e]:cr.push(e)}function jf(e,n,o,s){var l=n.interleaved;return l===null?(o.next=o,jl(n)):(o.next=l.next,l.next=o),n.interleaved=o,pn(e,s)}function pn(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 Dn=!1;function Tl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Tf(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 mn(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Fn(e,n,o){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(we&2)!==0){var l=s.pending;return l===null?n.next=n:(n.next=l.next,l.next=n),s.pending=n,pn(e,o)}return l=s.interleaved,l===null?(n.next=n,jl(s)):(n.next=l.next,l.next=n),s.interleaved=n,pn(e,o)}function Cs(e,n,o){if(n=n.updateQueue,n!==null&&(n=n.shared,(o&4194240)!==0)){var s=n.lanes;s&=e.pendingLanes,o|=s,n.lanes=o,Ha(e,o)}}function Rf(e,n){var o=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,o===s)){var l=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?l=c=p:c=c.next=p,o=o.next}while(o!==null);c===null?l=c=n:c=c.next=n}else l=c=n;o={baseState:s.baseState,firstBaseUpdate:l,lastBaseUpdate:c,shared:s.shared,effects:s.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=n:e.next=n,o.lastBaseUpdate=n}function Es(e,n,o,s){var l=e.updateQueue;Dn=!1;var c=l.firstBaseUpdate,p=l.lastBaseUpdate,w=l.shared.pending;if(w!==null){l.shared.pending=null;var k=w,M=k.next;k.next=null,p===null?c=M:p.next=M,p=k;var z=e.alternate;z!==null&&(z=z.updateQueue,w=z.lastBaseUpdate,w!==p&&(w===null?z.firstBaseUpdate=M:w.next=M,z.lastBaseUpdate=k))}if(c!==null){var B=l.baseState;p=0,z=M=k=null,w=c;do{var $=w.lane,G=w.eventTime;if((s&$)===$){z!==null&&(z=z.next={eventTime:G,lane:0,tag:w.tag,payload:w.payload,callback:w.callback,next:null});e:{var J=e,ee=w;switch($=n,G=o,ee.tag){case 1:if(J=ee.payload,typeof J=="function"){B=J.call(G,B,$);break e}B=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=ee.payload,$=typeof J=="function"?J.call(G,B,$):J,$==null)break e;B=Y({},B,$);break e;case 2:Dn=!0}}w.callback!==null&&w.lane!==0&&(e.flags|=64,$=l.effects,$===null?l.effects=[w]:$.push(w))}else G={eventTime:G,lane:$,tag:w.tag,payload:w.payload,callback:w.callback,next:null},z===null?(M=z=G,k=B):z=z.next=G,p|=$;if(w=w.next,w===null){if(w=l.shared.pending,w===null)break;$=w,w=$.next,$.next=null,l.lastBaseUpdate=$,l.shared.pending=null}}while(!0);if(z===null&&(k=B),l.baseState=k,l.firstBaseUpdate=M,l.lastBaseUpdate=z,n=l.shared.interleaved,n!==null){l=n;do p|=l.lane,l=l.next;while(l!==n)}else c===null&&(l.shared.lanes=0);hr|=p,e.lanes=p,e.memoizedState=B}}function If(e,n,o){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var s=e[n],l=s.callback;if(l!==null){if(s.callback=null,s=o,typeof l!="function")throw Error(i(191,l));l.call(s)}}}var lo={},Yt=On(lo),uo=On(lo),co=On(lo);function dr(e){if(e===lo)throw Error(i(174));return e}function Rl(e,n){switch(Te(co,n),Te(uo,e),Te(Yt,lo),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Ia(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Ia(n,e)}Ne(Yt),Te(Yt,n)}function ri(){Ne(Yt),Ne(uo),Ne(co)}function Nf(e){dr(co.current);var n=dr(Yt.current),o=Ia(n,e.type);n!==o&&(Te(uo,e),Te(Yt,o))}function Il(e){uo.current===e&&(Ne(Yt),Ne(uo))}var Le=On(0);function _s(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 Nl=[];function Ml(){for(var e=0;e<Nl.length;e++)Nl[e]._workInProgressVersionPrimary=null;Nl.length=0}var Ps=T.ReactCurrentDispatcher,Ol=T.ReactCurrentBatchConfig,fr=0,Ae=null,qe=null,Ge=null,bs=!1,fo=!1,ho=0,jy=0;function rt(){throw Error(i(321))}function Ll(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 Al(e,n,o,s,l,c){if(fr=c,Ae=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,Ps.current=e===null||e.memoizedState===null?Ny:My,e=o(s,l),fo){c=0;do{if(fo=!1,ho=0,25<=c)throw Error(i(301));c+=1,Ge=qe=null,n.updateQueue=null,Ps.current=Oy,e=o(s,l)}while(fo)}if(Ps.current=Rs,n=qe!==null&&qe.next!==null,fr=0,Ge=qe=Ae=null,bs=!1,n)throw Error(i(300));return e}function Dl(){var e=ho!==0;return ho=0,e}function Zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ge===null?Ae.memoizedState=Ge=e:Ge=Ge.next=e,Ge}function Mt(){if(qe===null){var e=Ae.alternate;e=e!==null?e.memoizedState:null}else e=qe.next;var n=Ge===null?Ae.memoizedState:Ge.next;if(n!==null)Ge=n,qe=e;else{if(e===null)throw Error(i(310));qe=e,e={memoizedState:qe.memoizedState,baseState:qe.baseState,baseQueue:qe.baseQueue,queue:qe.queue,next:null},Ge===null?Ae.memoizedState=Ge=e:Ge=Ge.next=e}return Ge}function po(e,n){return typeof n=="function"?n(e):n}function Fl(e){var n=Mt(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var s=qe,l=s.baseQueue,c=o.pending;if(c!==null){if(l!==null){var p=l.next;l.next=c.next,c.next=p}s.baseQueue=l=c,o.pending=null}if(l!==null){c=l.next,s=s.baseState;var w=p=null,k=null,M=c;do{var z=M.lane;if((fr&z)===z)k!==null&&(k=k.next={lane:0,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),s=M.hasEagerState?M.eagerState:e(s,M.action);else{var B={lane:z,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null};k===null?(w=k=B,p=s):k=k.next=B,Ae.lanes|=z,hr|=z}M=M.next}while(M!==null&&M!==c);k===null?p=s:k.next=w,zt(s,n.memoizedState)||(vt=!0),n.memoizedState=s,n.baseState=p,n.baseQueue=k,o.lastRenderedState=s}if(e=o.interleaved,e!==null){l=e;do c=l.lane,Ae.lanes|=c,hr|=c,l=l.next;while(l!==e)}else l===null&&(o.lanes=0);return[n.memoizedState,o.dispatch]}function $l(e){var n=Mt(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var s=o.dispatch,l=o.pending,c=n.memoizedState;if(l!==null){o.pending=null;var p=l=l.next;do c=e(c,p.action),p=p.next;while(p!==l);zt(c,n.memoizedState)||(vt=!0),n.memoizedState=c,n.baseQueue===null&&(n.baseState=c),o.lastRenderedState=c}return[c,s]}function Mf(){}function Of(e,n){var o=Ae,s=Mt(),l=n(),c=!zt(s.memoizedState,l);if(c&&(s.memoizedState=l,vt=!0),s=s.queue,zl(Df.bind(null,o,s,e),[e]),s.getSnapshot!==n||c||Ge!==null&&Ge.memoizedState.tag&1){if(o.flags|=2048,mo(9,Af.bind(null,o,s,l,n),void 0,null),Ye===null)throw Error(i(349));(fr&30)!==0||Lf(o,n,l)}return l}function Lf(e,n,o){e.flags|=16384,e={getSnapshot:n,value:o},n=Ae.updateQueue,n===null?(n={lastEffect:null,stores:null},Ae.updateQueue=n,n.stores=[e]):(o=n.stores,o===null?n.stores=[e]:o.push(e))}function Af(e,n,o,s){n.value=o,n.getSnapshot=s,Ff(n)&&$f(e)}function Df(e,n,o){return o(function(){Ff(n)&&$f(e)})}function Ff(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!zt(e,o)}catch{return!0}}function $f(e){var n=pn(e,1);n!==null&&Vt(n,e,1,-1)}function zf(e){var n=Zt();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:po,lastRenderedState:e},n.queue=e,e=e.dispatch=Iy.bind(null,Ae,e),[n.memoizedState,e]}function mo(e,n,o,s){return e={tag:e,create:n,destroy:o,deps:s,next:null},n=Ae.updateQueue,n===null?(n={lastEffect:null,stores:null},Ae.updateQueue=n,n.lastEffect=e.next=e):(o=n.lastEffect,o===null?n.lastEffect=e.next=e:(s=o.next,o.next=e,e.next=s,n.lastEffect=e)),e}function Uf(){return Mt().memoizedState}function js(e,n,o,s){var l=Zt();Ae.flags|=e,l.memoizedState=mo(1|n,o,void 0,s===void 0?null:s)}function Ts(e,n,o,s){var l=Mt();s=s===void 0?null:s;var c=void 0;if(qe!==null){var p=qe.memoizedState;if(c=p.destroy,s!==null&&Ll(s,p.deps)){l.memoizedState=mo(n,o,c,s);return}}Ae.flags|=e,l.memoizedState=mo(1|n,o,c,s)}function Bf(e,n){return js(8390656,8,e,n)}function zl(e,n){return Ts(2048,8,e,n)}function Hf(e,n){return Ts(4,2,e,n)}function Wf(e,n){return Ts(4,4,e,n)}function Vf(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 qf(e,n,o){return o=o!=null?o.concat([e]):null,Ts(4,4,Vf.bind(null,n,e),o)}function Ul(){}function Kf(e,n){var o=Mt();n=n===void 0?null:n;var s=o.memoizedState;return s!==null&&n!==null&&Ll(n,s[1])?s[0]:(o.memoizedState=[e,n],e)}function Qf(e,n){var o=Mt();n=n===void 0?null:n;var s=o.memoizedState;return s!==null&&n!==null&&Ll(n,s[1])?s[0]:(e=e(),o.memoizedState=[e,n],e)}function Gf(e,n,o){return(fr&21)===0?(e.baseState&&(e.baseState=!1,vt=!0),e.memoizedState=o):(zt(o,n)||(o=Ed(),Ae.lanes|=o,hr|=o,e.baseState=!0),n)}function Ty(e,n){var o=Ee;Ee=o!==0&&4>o?o:4,e(!0);var s=Ol.transition;Ol.transition={};try{e(!1),n()}finally{Ee=o,Ol.transition=s}}function Yf(){return Mt().memoizedState}function Ry(e,n,o){var s=Bn(e);if(o={lane:s,action:o,hasEagerState:!1,eagerState:null,next:null},Zf(e))Xf(n,o);else if(o=jf(e,n,o,s),o!==null){var l=dt();Vt(o,e,s,l),Jf(o,n,s)}}function Iy(e,n,o){var s=Bn(e),l={lane:s,action:o,hasEagerState:!1,eagerState:null,next:null};if(Zf(e))Xf(n,l);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(l.hasEagerState=!0,l.eagerState=w,zt(w,p)){var k=n.interleaved;k===null?(l.next=l,jl(n)):(l.next=k.next,k.next=l),n.interleaved=l;return}}catch{}finally{}o=jf(e,n,l,s),o!==null&&(l=dt(),Vt(o,e,s,l),Jf(o,n,s))}}function Zf(e){var n=e.alternate;return e===Ae||n!==null&&n===Ae}function Xf(e,n){fo=bs=!0;var o=e.pending;o===null?n.next=n:(n.next=o.next,o.next=n),e.pending=n}function Jf(e,n,o){if((o&4194240)!==0){var s=n.lanes;s&=e.pendingLanes,o|=s,n.lanes=o,Ha(e,o)}}var Rs={readContext:Nt,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useInsertionEffect:rt,useLayoutEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useMutableSource:rt,useSyncExternalStore:rt,useId:rt,unstable_isNewReconciler:!1},Ny={readContext:Nt,useCallback:function(e,n){return Zt().memoizedState=[e,n===void 0?null:n],e},useContext:Nt,useEffect:Bf,useImperativeHandle:function(e,n,o){return o=o!=null?o.concat([e]):null,js(4194308,4,Vf.bind(null,n,e),o)},useLayoutEffect:function(e,n){return js(4194308,4,e,n)},useInsertionEffect:function(e,n){return js(4,2,e,n)},useMemo:function(e,n){var o=Zt();return n=n===void 0?null:n,e=e(),o.memoizedState=[e,n],e},useReducer:function(e,n,o){var s=Zt();return n=o!==void 0?o(n):n,s.memoizedState=s.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},s.queue=e,e=e.dispatch=Ry.bind(null,Ae,e),[s.memoizedState,e]},useRef:function(e){var n=Zt();return e={current:e},n.memoizedState=e},useState:zf,useDebugValue:Ul,useDeferredValue:function(e){return Zt().memoizedState=e},useTransition:function(){var e=zf(!1),n=e[0];return e=Ty.bind(null,e[1]),Zt().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,o){var s=Ae,l=Zt();if(Oe){if(o===void 0)throw Error(i(407));o=o()}else{if(o=n(),Ye===null)throw Error(i(349));(fr&30)!==0||Lf(s,n,o)}l.memoizedState=o;var c={value:o,getSnapshot:n};return l.queue=c,Bf(Df.bind(null,s,c,e),[e]),s.flags|=2048,mo(9,Af.bind(null,s,c,o,n),void 0,null),o},useId:function(){var e=Zt(),n=Ye.identifierPrefix;if(Oe){var o=hn,s=fn;o=(s&~(1<<32-$t(s)-1)).toString(32)+o,n=":"+n+"R"+o,o=ho++,0<o&&(n+="H"+o.toString(32)),n+=":"}else o=jy++,n=":"+n+"r"+o.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},My={readContext:Nt,useCallback:Kf,useContext:Nt,useEffect:zl,useImperativeHandle:qf,useInsertionEffect:Hf,useLayoutEffect:Wf,useMemo:Qf,useReducer:Fl,useRef:Uf,useState:function(){return Fl(po)},useDebugValue:Ul,useDeferredValue:function(e){var n=Mt();return Gf(n,qe.memoizedState,e)},useTransition:function(){var e=Fl(po)[0],n=Mt().memoizedState;return[e,n]},useMutableSource:Mf,useSyncExternalStore:Of,useId:Yf,unstable_isNewReconciler:!1},Oy={readContext:Nt,useCallback:Kf,useContext:Nt,useEffect:zl,useImperativeHandle:qf,useInsertionEffect:Hf,useLayoutEffect:Wf,useMemo:Qf,useReducer:$l,useRef:Uf,useState:function(){return $l(po)},useDebugValue:Ul,useDeferredValue:function(e){var n=Mt();return qe===null?n.memoizedState=e:Gf(n,qe.memoizedState,e)},useTransition:function(){var e=$l(po)[0],n=Mt().memoizedState;return[e,n]},useMutableSource:Mf,useSyncExternalStore:Of,useId:Yf,unstable_isNewReconciler:!1};function Bt(e,n){if(e&&e.defaultProps){n=Y({},n),e=e.defaultProps;for(var o in e)n[o]===void 0&&(n[o]=e[o]);return n}return n}function Bl(e,n,o,s){n=e.memoizedState,o=o(s,n),o=o==null?n:Y({},n,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var Is={isMounted:function(e){return(e=e._reactInternals)?or(e)===e:!1},enqueueSetState:function(e,n,o){e=e._reactInternals;var s=dt(),l=Bn(e),c=mn(s,l);c.payload=n,o!=null&&(c.callback=o),n=Fn(e,c,l),n!==null&&(Vt(n,e,l,s),Cs(n,e,l))},enqueueReplaceState:function(e,n,o){e=e._reactInternals;var s=dt(),l=Bn(e),c=mn(s,l);c.tag=1,c.payload=n,o!=null&&(c.callback=o),n=Fn(e,c,l),n!==null&&(Vt(n,e,l,s),Cs(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var o=dt(),s=Bn(e),l=mn(o,s);l.tag=2,n!=null&&(l.callback=n),n=Fn(e,l,s),n!==null&&(Vt(n,e,s,o),Cs(n,e,s))}};function eh(e,n,o,s,l,c,p){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,c,p):n.prototype&&n.prototype.isPureReactComponent?!eo(o,s)||!eo(l,c):!0}function th(e,n,o){var s=!1,l=Ln,c=n.contextType;return typeof c=="object"&&c!==null?c=Nt(c):(l=mt(n)?ar:nt.current,s=n.contextTypes,c=(s=s!=null)?Yr(e,l):Ln),n=new n(o,c),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Is,e.stateNode=n,n._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=c),n}function nh(e,n,o,s){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(o,s),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(o,s),n.state!==e&&Is.enqueueReplaceState(n,n.state,null)}function Hl(e,n,o,s){var l=e.stateNode;l.props=o,l.state=e.memoizedState,l.refs={},Tl(e);var c=n.contextType;typeof c=="object"&&c!==null?l.context=Nt(c):(c=mt(n)?ar:nt.current,l.context=Yr(e,c)),l.state=e.memoizedState,c=n.getDerivedStateFromProps,typeof c=="function"&&(Bl(e,n,c,o),l.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(n=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),n!==l.state&&Is.enqueueReplaceState(l,l.state,null),Es(e,o,l,s),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function ii(e,n){try{var o="",s=n;do o+=ge(s),s=s.return;while(s);var l=o}catch(c){l=`
|
|
40
|
-
Error generating stack: `+c.message+`
|
|
41
|
-
`+c.stack}return{value:e,source:n,stack:l,digest:null}}function Wl(e,n,o){return{value:e,source:null,stack:o??null,digest:n??null}}function Vl(e,n){try{console.error(n.value)}catch(o){setTimeout(function(){throw o})}}var Ly=typeof WeakMap=="function"?WeakMap:Map;function rh(e,n,o){o=mn(-1,o),o.tag=3,o.payload={element:null};var s=n.value;return o.callback=function(){Fs||(Fs=!0,su=s),Vl(e,n)},o}function ih(e,n,o){o=mn(-1,o),o.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var l=n.value;o.payload=function(){return s(l)},o.callback=function(){Vl(e,n)}}var c=e.stateNode;return c!==null&&typeof c.componentDidCatch=="function"&&(o.callback=function(){Vl(e,n),typeof s!="function"&&(zn===null?zn=new Set([this]):zn.add(this));var p=n.stack;this.componentDidCatch(n.value,{componentStack:p!==null?p:""})}),o}function oh(e,n,o){var s=e.pingCache;if(s===null){s=e.pingCache=new Ly;var l=new Set;s.set(n,l)}else l=s.get(n),l===void 0&&(l=new Set,s.set(n,l));l.has(o)||(l.add(o),e=Gy.bind(null,e,n,o),n.then(e,e))}function sh(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 ah(e,n,o,s,l){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=mn(-1,1),n.tag=2,Fn(o,n,1))),o.lanes|=1),e):(e.flags|=65536,e.lanes=l,e)}var Ay=T.ReactCurrentOwner,vt=!1;function ct(e,n,o,s){n.child=e===null?bf(n,null,o,s):ei(n,e.child,o,s)}function lh(e,n,o,s,l){o=o.render;var c=n.ref;return ni(n,l),s=Al(e,n,o,s,c,l),o=Dl(),e!==null&&!vt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,vn(e,n,l)):(Oe&&o&&wl(n),n.flags|=1,ct(e,n,s,l),n.child)}function uh(e,n,o,s,l){if(e===null){var c=o.type;return typeof c=="function"&&!hu(c)&&c.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(n.tag=15,n.type=c,ch(e,n,c,s,l)):(e=Ws(o.type,null,s,n,n.mode,l),e.ref=n.ref,e.return=n,n.child=e)}if(c=e.child,(e.lanes&l)===0){var p=c.memoizedProps;if(o=o.compare,o=o!==null?o:eo,o(p,s)&&e.ref===n.ref)return vn(e,n,l)}return n.flags|=1,e=Wn(c,s),e.ref=n.ref,e.return=n,n.child=e}function ch(e,n,o,s,l){if(e!==null){var c=e.memoizedProps;if(eo(c,s)&&e.ref===n.ref)if(vt=!1,n.pendingProps=s=c,(e.lanes&l)!==0)(e.flags&131072)!==0&&(vt=!0);else return n.lanes=e.lanes,vn(e,n,l)}return ql(e,n,o,s,l)}function dh(e,n,o){var s=n.pendingProps,l=s.children,c=e!==null?e.memoizedState:null;if(s.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},Te(si,bt),bt|=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,Te(si,bt),bt|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=c!==null?c.baseLanes:o,Te(si,bt),bt|=s}else c!==null?(s=c.baseLanes|o,n.memoizedState=null):s=o,Te(si,bt),bt|=s;return ct(e,n,l,o),n.child}function fh(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,s,l){var c=mt(o)?ar:nt.current;return c=Yr(n,c),ni(n,l),o=Al(e,n,o,s,c,l),s=Dl(),e!==null&&!vt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,vn(e,n,l)):(Oe&&s&&wl(n),n.flags|=1,ct(e,n,o,l),n.child)}function hh(e,n,o,s,l){if(mt(o)){var c=!0;ms(n)}else c=!1;if(ni(n,l),n.stateNode===null)Ms(e,n),th(n,o,s),Hl(n,o,s,l),s=!0;else if(e===null){var p=n.stateNode,w=n.memoizedProps;p.props=w;var k=p.context,M=o.contextType;typeof M=="object"&&M!==null?M=Nt(M):(M=mt(o)?ar:nt.current,M=Yr(n,M));var z=o.getDerivedStateFromProps,B=typeof z=="function"||typeof p.getSnapshotBeforeUpdate=="function";B||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w!==s||k!==M)&&nh(n,p,s,M),Dn=!1;var $=n.memoizedState;p.state=$,Es(n,s,p,l),k=n.memoizedState,w!==s||$!==k||pt.current||Dn?(typeof z=="function"&&(Bl(n,o,z,s),k=n.memoizedState),(w=Dn||eh(n,o,w,s,$,k,M))?(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=s,n.memoizedState=k),p.props=s,p.state=k,p.context=M,s=w):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{p=n.stateNode,Tf(e,n),w=n.memoizedProps,M=n.type===n.elementType?w:Bt(n.type,w),p.props=M,B=n.pendingProps,$=p.context,k=o.contextType,typeof k=="object"&&k!==null?k=Nt(k):(k=mt(o)?ar:nt.current,k=Yr(n,k));var G=o.getDerivedStateFromProps;(z=typeof G=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(w!==B||$!==k)&&nh(n,p,s,k),Dn=!1,$=n.memoizedState,p.state=$,Es(n,s,p,l);var J=n.memoizedState;w!==B||$!==J||pt.current||Dn?(typeof G=="function"&&(Bl(n,o,G,s),J=n.memoizedState),(M=Dn||eh(n,o,M,s,$,J,k)||!1)?(z||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(s,J,k),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(s,J,k)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||w===e.memoizedProps&&$===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&$===e.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=J),p.props=s,p.state=J,p.context=k,s=M):(typeof p.componentDidUpdate!="function"||w===e.memoizedProps&&$===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&$===e.memoizedState||(n.flags|=1024),s=!1)}return Kl(e,n,o,s,c,l)}function Kl(e,n,o,s,l,c){fh(e,n);var p=(n.flags&128)!==0;if(!s&&!p)return l&&yf(n,o,!1),vn(e,n,c);s=n.stateNode,Ay.current=n;var w=p&&typeof o.getDerivedStateFromError!="function"?null:s.render();return n.flags|=1,e!==null&&p?(n.child=ei(n,e.child,null,c),n.child=ei(n,null,w,c)):ct(e,n,w,c),n.memoizedState=s.state,l&&yf(n,o,!0),n.child}function ph(e){var n=e.stateNode;n.pendingContext?vf(e,n.pendingContext,n.pendingContext!==n.context):n.context&&vf(e,n.context,!1),Rl(e,n.containerInfo)}function mh(e,n,o,s,l){return Jr(),Cl(l),n.flags|=256,ct(e,n,o,s),n.child}var Ql={dehydrated:null,treeContext:null,retryLane:0};function Gl(e){return{baseLanes:e,cachePool:null,transitions:null}}function vh(e,n,o){var s=n.pendingProps,l=Le.current,c=!1,p=(n.flags&128)!==0,w;if((w=p)||(w=e!==null&&e.memoizedState===null?!1:(l&2)!==0),w?(c=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),Te(Le,l&1),e===null)return kl(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=s.children,e=s.fallback,c?(s=n.mode,c=n.child,p={mode:"hidden",children:p},(s&1)===0&&c!==null?(c.childLanes=0,c.pendingProps=p):c=Vs(p,s,0,null),e=gr(e,s,o,null),c.return=n,e.return=n,c.sibling=e,n.child=c,n.child.memoizedState=Gl(o),n.memoizedState=Ql,e):Yl(n,p));if(l=e.memoizedState,l!==null&&(w=l.dehydrated,w!==null))return Dy(e,n,p,s,w,l,o);if(c){c=s.fallback,p=n.mode,l=e.child,w=l.sibling;var k={mode:"hidden",children:s.children};return(p&1)===0&&n.child!==l?(s=n.child,s.childLanes=0,s.pendingProps=k,n.deletions=null):(s=Wn(l,k),s.subtreeFlags=l.subtreeFlags&14680064),w!==null?c=Wn(w,c):(c=gr(c,p,o,null),c.flags|=2),c.return=n,s.return=n,s.sibling=c,n.child=s,s=c,c=n.child,p=e.child.memoizedState,p=p===null?Gl(o):{baseLanes:p.baseLanes|o,cachePool:null,transitions:p.transitions},c.memoizedState=p,c.childLanes=e.childLanes&~o,n.memoizedState=Ql,s}return c=e.child,e=c.sibling,s=Wn(c,{mode:"visible",children:s.children}),(n.mode&1)===0&&(s.lanes=o),s.return=n,s.sibling=null,e!==null&&(o=n.deletions,o===null?(n.deletions=[e],n.flags|=16):o.push(e)),n.child=s,n.memoizedState=null,s}function Yl(e,n){return n=Vs({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function Ns(e,n,o,s){return s!==null&&Cl(s),ei(n,e.child,null,o),e=Yl(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Dy(e,n,o,s,l,c,p){if(o)return n.flags&256?(n.flags&=-257,s=Wl(Error(i(422))),Ns(e,n,p,s)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(c=s.fallback,l=n.mode,s=Vs({mode:"visible",children:s.children},l,0,null),c=gr(c,l,p,null),c.flags|=2,s.return=n,c.return=n,s.sibling=c,n.child=s,(n.mode&1)!==0&&ei(n,e.child,null,p),n.child.memoizedState=Gl(p),n.memoizedState=Ql,c);if((n.mode&1)===0)return Ns(e,n,p,null);if(l.data==="$!"){if(s=l.nextSibling&&l.nextSibling.dataset,s)var w=s.dgst;return s=w,c=Error(i(419)),s=Wl(c,s,void 0),Ns(e,n,p,s)}if(w=(p&e.childLanes)!==0,vt||w){if(s=Ye,s!==null){switch(p&-p){case 4:l=2;break;case 16:l=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:l=32;break;case 536870912:l=268435456;break;default:l=0}l=(l&(s.suspendedLanes|p))!==0?0:l,l!==0&&l!==c.retryLane&&(c.retryLane=l,pn(e,l),Vt(s,e,l,-1))}return fu(),s=Wl(Error(i(421))),Ns(e,n,p,s)}return l.data==="$?"?(n.flags|=128,n.child=e.child,n=Yy.bind(null,e),l._reactRetry=n,null):(e=c.treeContext,Pt=Mn(l.nextSibling),_t=n,Oe=!0,Ut=null,e!==null&&(Rt[It++]=fn,Rt[It++]=hn,Rt[It++]=lr,fn=e.id,hn=e.overflow,lr=n),n=Yl(n,s.children),n.flags|=4096,n)}function gh(e,n,o){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n),bl(e.return,n,o)}function Zl(e,n,o,s,l){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:s,tail:o,tailMode:l}:(c.isBackwards=n,c.rendering=null,c.renderingStartTime=0,c.last=s,c.tail=o,c.tailMode=l)}function yh(e,n,o){var s=n.pendingProps,l=s.revealOrder,c=s.tail;if(ct(e,n,s.children,o),s=Le.current,(s&2)!==0)s=s&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&&gh(e,o,n);else if(e.tag===19)gh(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}s&=1}if(Te(Le,s),(n.mode&1)===0)n.memoizedState=null;else switch(l){case"forwards":for(o=n.child,l=null;o!==null;)e=o.alternate,e!==null&&_s(e)===null&&(l=o),o=o.sibling;o=l,o===null?(l=n.child,n.child=null):(l=o.sibling,o.sibling=null),Zl(n,!1,l,o,c);break;case"backwards":for(o=null,l=n.child,n.child=null;l!==null;){if(e=l.alternate,e!==null&&_s(e)===null){n.child=l;break}e=l.sibling,l.sibling=o,o=l,l=e}Zl(n,!0,o,null,c);break;case"together":Zl(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Ms(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function vn(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=Wn(e,e.pendingProps),n.child=o,o.return=n;e.sibling!==null;)e=e.sibling,o=o.sibling=Wn(e,e.pendingProps),o.return=n;o.sibling=null}return n.child}function Fy(e,n,o){switch(n.tag){case 3:ph(n),Jr();break;case 5:Nf(n);break;case 1:mt(n.type)&&ms(n);break;case 4:Rl(n,n.stateNode.containerInfo);break;case 10:var s=n.type._context,l=n.memoizedProps.value;Te(Ss,s._currentValue),s._currentValue=l;break;case 13:if(s=n.memoizedState,s!==null)return s.dehydrated!==null?(Te(Le,Le.current&1),n.flags|=128,null):(o&n.child.childLanes)!==0?vh(e,n,o):(Te(Le,Le.current&1),e=vn(e,n,o),e!==null?e.sibling:null);Te(Le,Le.current&1);break;case 19:if(s=(o&n.childLanes)!==0,(e.flags&128)!==0){if(s)return yh(e,n,o);n.flags|=128}if(l=n.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Te(Le,Le.current),s)break;return null;case 22:case 23:return n.lanes=0,dh(e,n,o)}return vn(e,n,o)}var wh,Xl,xh,Sh;wh=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}},Xl=function(){},xh=function(e,n,o,s){var l=e.memoizedProps;if(l!==s){e=n.stateNode,dr(Yt.current);var c=null;switch(o){case"input":l=Ai(e,l),s=Ai(e,s),c=[];break;case"select":l=Y({},l,{value:void 0}),s=Y({},s,{value:void 0}),c=[];break;case"textarea":l=Ra(e,l),s=Ra(e,s),c=[];break;default:typeof l.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=fs)}Na(o,s);var p;o=null;for(M in l)if(!s.hasOwnProperty(M)&&l.hasOwnProperty(M)&&l[M]!=null)if(M==="style"){var w=l[M];for(p in w)w.hasOwnProperty(p)&&(o||(o={}),o[p]="")}else M!=="dangerouslySetInnerHTML"&&M!=="children"&&M!=="suppressContentEditableWarning"&&M!=="suppressHydrationWarning"&&M!=="autoFocus"&&(u.hasOwnProperty(M)?c||(c=[]):(c=c||[]).push(M,null));for(M in s){var k=s[M];if(w=l!=null?l[M]:void 0,s.hasOwnProperty(M)&&k!==w&&(k!=null||w!=null))if(M==="style")if(w){for(p in w)!w.hasOwnProperty(p)||k&&k.hasOwnProperty(p)||(o||(o={}),o[p]="");for(p in k)k.hasOwnProperty(p)&&w[p]!==k[p]&&(o||(o={}),o[p]=k[p])}else o||(c||(c=[]),c.push(M,o)),o=k;else M==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,w=w?w.__html:void 0,k!=null&&w!==k&&(c=c||[]).push(M,k)):M==="children"?typeof k!="string"&&typeof k!="number"||(c=c||[]).push(M,""+k):M!=="suppressContentEditableWarning"&&M!=="suppressHydrationWarning"&&(u.hasOwnProperty(M)?(k!=null&&M==="onScroll"&&Ie("scroll",e),c||w===k||(c=[])):(c=c||[]).push(M,k))}o&&(c=c||[]).push("style",o);var M=c;(n.updateQueue=M)&&(n.flags|=4)}},Sh=function(e,n,o,s){o!==s&&(n.flags|=4)};function vo(e,n){if(!Oe)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 s=null;o!==null;)o.alternate!==null&&(s=o),o=o.sibling;s===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function it(e){var n=e.alternate!==null&&e.alternate.child===e.child,o=0,s=0;if(n)for(var l=e.child;l!==null;)o|=l.lanes|l.childLanes,s|=l.subtreeFlags&14680064,s|=l.flags&14680064,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)o|=l.lanes|l.childLanes,s|=l.subtreeFlags,s|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=s,e.childLanes=o,n}function $y(e,n,o){var s=n.pendingProps;switch(xl(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(n),null;case 1:return mt(n.type)&&ps(),it(n),null;case 3:return s=n.stateNode,ri(),Ne(pt),Ne(nt),Ml(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(ws(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Ut!==null&&(uu(Ut),Ut=null))),Xl(e,n),it(n),null;case 5:Il(n);var l=dr(co.current);if(o=n.type,e!==null&&n.stateNode!=null)xh(e,n,o,s,l),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!s){if(n.stateNode===null)throw Error(i(166));return it(n),null}if(e=dr(Yt.current),ws(n)){s=n.stateNode,o=n.type;var c=n.memoizedProps;switch(s[Gt]=n,s[oo]=c,e=(n.mode&1)!==0,o){case"dialog":Ie("cancel",s),Ie("close",s);break;case"iframe":case"object":case"embed":Ie("load",s);break;case"video":case"audio":for(l=0;l<no.length;l++)Ie(no[l],s);break;case"source":Ie("error",s);break;case"img":case"image":case"link":Ie("error",s),Ie("load",s);break;case"details":Ie("toggle",s);break;case"input":Ho(s,c),Ie("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!c.multiple},Ie("invalid",s);break;case"textarea":rd(s,c),Ie("invalid",s)}Na(o,c),l=null;for(var p in c)if(c.hasOwnProperty(p)){var w=c[p];p==="children"?typeof w=="string"?s.textContent!==w&&(c.suppressHydrationWarning!==!0&&ds(s.textContent,w,e),l=["children",w]):typeof w=="number"&&s.textContent!==""+w&&(c.suppressHydrationWarning!==!0&&ds(s.textContent,w,e),l=["children",""+w]):u.hasOwnProperty(p)&&w!=null&&p==="onScroll"&&Ie("scroll",s)}switch(o){case"input":Ar(s),un(s,c,!0);break;case"textarea":Ar(s),od(s);break;case"select":case"option":break;default:typeof c.onClick=="function"&&(s.onclick=fs)}s=l,n.updateQueue=s,s!==null&&(n.flags|=4)}else{p=l.nodeType===9?l:l.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=sd(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=p.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=p.createElement(o,{is:s.is}):(e=p.createElement(o),o==="select"&&(p=e,s.multiple?p.multiple=!0:s.size&&(p.size=s.size))):e=p.createElementNS(e,o),e[Gt]=n,e[oo]=s,wh(e,n,!1,!1),n.stateNode=e;e:{switch(p=Ma(o,s),o){case"dialog":Ie("cancel",e),Ie("close",e),l=s;break;case"iframe":case"object":case"embed":Ie("load",e),l=s;break;case"video":case"audio":for(l=0;l<no.length;l++)Ie(no[l],e);l=s;break;case"source":Ie("error",e),l=s;break;case"img":case"image":case"link":Ie("error",e),Ie("load",e),l=s;break;case"details":Ie("toggle",e),l=s;break;case"input":Ho(e,s),l=Ai(e,s),Ie("invalid",e);break;case"option":l=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},l=Y({},s,{value:void 0}),Ie("invalid",e);break;case"textarea":rd(e,s),l=Ra(e,s),Ie("invalid",e);break;default:l=s}Na(o,l),w=l;for(c in w)if(w.hasOwnProperty(c)){var k=w[c];c==="style"?ud(e,k):c==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,k!=null&&ad(e,k)):c==="children"?typeof k=="string"?(o!=="textarea"||k!=="")&&Di(e,k):typeof k=="number"&&Di(e,""+k):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(u.hasOwnProperty(c)?k!=null&&c==="onScroll"&&Ie("scroll",e):k!=null&&b(e,c,k,p))}switch(o){case"input":Ar(e),un(e,s,!1);break;case"textarea":Ar(e),od(e);break;case"option":s.value!=null&&e.setAttribute("value",""+ke(s.value));break;case"select":e.multiple=!!s.multiple,c=s.value,c!=null?Fr(e,!!s.multiple,c,!1):s.defaultValue!=null&&Fr(e,!!s.multiple,s.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=fs)}switch(o){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return it(n),null;case 6:if(e&&n.stateNode!=null)Sh(e,n,e.memoizedProps,s);else{if(typeof s!="string"&&n.stateNode===null)throw Error(i(166));if(o=dr(co.current),dr(Yt.current),ws(n)){if(s=n.stateNode,o=n.memoizedProps,s[Gt]=n,(c=s.nodeValue!==o)&&(e=_t,e!==null))switch(e.tag){case 3:ds(s.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ds(s.nodeValue,o,(e.mode&1)!==0)}c&&(n.flags|=4)}else s=(o.nodeType===9?o:o.ownerDocument).createTextNode(s),s[Gt]=n,n.stateNode=s}return it(n),null;case 13:if(Ne(Le),s=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Oe&&Pt!==null&&(n.mode&1)!==0&&(n.flags&128)===0)Ef(),Jr(),n.flags|=98560,c=!1;else if(c=ws(n),s!==null&&s.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[Gt]=n}else Jr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;it(n),c=!1}else Ut!==null&&(uu(Ut),Ut=null),c=!0;if(!c)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=o,n):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(Le.current&1)!==0?Ke===0&&(Ke=3):fu())),n.updateQueue!==null&&(n.flags|=4),it(n),null);case 4:return ri(),Xl(e,n),e===null&&ro(n.stateNode.containerInfo),it(n),null;case 10:return Pl(n.type._context),it(n),null;case 17:return mt(n.type)&&ps(),it(n),null;case 19:if(Ne(Le),c=n.memoizedState,c===null)return it(n),null;if(s=(n.flags&128)!==0,p=c.rendering,p===null)if(s)vo(c,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(p=_s(e),p!==null){for(n.flags|=128,vo(c,!1),s=p.updateQueue,s!==null&&(n.updateQueue=s,n.flags|=4),n.subtreeFlags=0,s=o,o=n.child;o!==null;)c=o,e=s,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 Te(Le,Le.current&1|2),n.child}e=e.sibling}c.tail!==null&&Be()>ai&&(n.flags|=128,s=!0,vo(c,!1),n.lanes=4194304)}else{if(!s)if(e=_s(p),e!==null){if(n.flags|=128,s=!0,o=e.updateQueue,o!==null&&(n.updateQueue=o,n.flags|=4),vo(c,!0),c.tail===null&&c.tailMode==="hidden"&&!p.alternate&&!Oe)return it(n),null}else 2*Be()-c.renderingStartTime>ai&&o!==1073741824&&(n.flags|=128,s=!0,vo(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=Be(),n.sibling=null,o=Le.current,Te(Le,s?o&1|2:o&1),n):(it(n),null);case 22:case 23:return du(),s=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(n.flags|=8192),s&&(n.mode&1)!==0?(bt&1073741824)!==0&&(it(n),n.subtreeFlags&6&&(n.flags|=8192)):it(n),null;case 24:return null;case 25:return null}throw Error(i(156,n.tag))}function zy(e,n){switch(xl(n),n.tag){case 1:return mt(n.type)&&ps(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return ri(),Ne(pt),Ne(nt),Ml(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return Il(n),null;case 13:if(Ne(Le),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 Ne(Le),null;case 4:return ri(),null;case 10:return Pl(n.type._context),null;case 22:case 23:return du(),null;case 24:return null;default:return null}}var Os=!1,ot=!1,Uy=typeof WeakSet=="function"?WeakSet:Set,X=null;function oi(e,n){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(s){Fe(e,n,s)}else o.current=null}function Jl(e,n,o){try{o()}catch(s){Fe(e,n,s)}}var kh=!1;function By(e,n){if(dl=es,e=Jd(),rl(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var s=o.getSelection&&o.getSelection();if(s&&s.rangeCount!==0){o=s.anchorNode;var l=s.anchorOffset,c=s.focusNode;s=s.focusOffset;try{o.nodeType,c.nodeType}catch{o=null;break e}var p=0,w=-1,k=-1,M=0,z=0,B=e,$=null;t:for(;;){for(var G;B!==o||l!==0&&B.nodeType!==3||(w=p+l),B!==c||s!==0&&B.nodeType!==3||(k=p+s),B.nodeType===3&&(p+=B.nodeValue.length),(G=B.firstChild)!==null;)$=B,B=G;for(;;){if(B===e)break t;if($===o&&++M===l&&(w=p),$===c&&++z===s&&(k=p),(G=B.nextSibling)!==null)break;B=$,$=B.parentNode}B=G}o=w===-1||k===-1?null:{start:w,end:k}}else o=null}o=o||{start:0,end:0}}else o=null;for(fl={focusedElem:e,selectionRange:o},es=!1,X=n;X!==null;)if(n=X,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,X=e;else for(;X!==null;){n=X;try{var J=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(J!==null){var ee=J.memoizedProps,He=J.memoizedState,j=n.stateNode,E=j.getSnapshotBeforeUpdate(n.elementType===n.type?ee:Bt(n.type,ee),He);j.__reactInternalSnapshotBeforeUpdate=E}break;case 3:var R=n.stateNode.containerInfo;R.nodeType===1?R.textContent="":R.nodeType===9&&R.documentElement&&R.removeChild(R.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(H){Fe(n,n.return,H)}if(e=n.sibling,e!==null){e.return=n.return,X=e;break}X=n.return}return J=kh,kh=!1,J}function go(e,n,o){var s=n.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var l=s=s.next;do{if((l.tag&e)===e){var c=l.destroy;l.destroy=void 0,c!==void 0&&Jl(n,o,c)}l=l.next}while(l!==s)}}function Ls(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 s=o.create;o.destroy=s()}o=o.next}while(o!==n)}}function eu(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 Ch(e){var n=e.alternate;n!==null&&(e.alternate=null,Ch(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Gt],delete n[oo],delete n[vl],delete n[Ey],delete n[_y])),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 Eh(e){return e.tag===5||e.tag===3||e.tag===4}function _h(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Eh(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 tu(e,n,o){var s=e.tag;if(s===5||s===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=fs));else if(s!==4&&(e=e.child,e!==null))for(tu(e,n,o),e=e.sibling;e!==null;)tu(e,n,o),e=e.sibling}function nu(e,n,o){var s=e.tag;if(s===5||s===6)e=e.stateNode,n?o.insertBefore(e,n):o.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(nu(e,n,o),e=e.sibling;e!==null;)nu(e,n,o),e=e.sibling}var Je=null,Ht=!1;function $n(e,n,o){for(o=o.child;o!==null;)Ph(e,n,o),o=o.sibling}function Ph(e,n,o){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(Qo,o)}catch{}switch(o.tag){case 5:ot||oi(o,n);case 6:var s=Je,l=Ht;Je=null,$n(e,n,o),Je=s,Ht=l,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?ml(e.parentNode,o):e.nodeType===1&&ml(e,o),Qi(e)):ml(Je,o.stateNode));break;case 4:s=Je,l=Ht,Je=o.stateNode.containerInfo,Ht=!0,$n(e,n,o),Je=s,Ht=l;break;case 0:case 11:case 14:case 15:if(!ot&&(s=o.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){l=s=s.next;do{var c=l,p=c.destroy;c=c.tag,p!==void 0&&((c&2)!==0||(c&4)!==0)&&Jl(o,n,p),l=l.next}while(l!==s)}$n(e,n,o);break;case 1:if(!ot&&(oi(o,n),s=o.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=o.memoizedProps,s.state=o.memoizedState,s.componentWillUnmount()}catch(w){Fe(o,n,w)}$n(e,n,o);break;case 21:$n(e,n,o);break;case 22:o.mode&1?(ot=(s=ot)||o.memoizedState!==null,$n(e,n,o),ot=s):$n(e,n,o);break;default:$n(e,n,o)}}function bh(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new Uy),n.forEach(function(s){var l=Zy.bind(null,e,s);o.has(s)||(o.add(s),s.then(l,l))})}}function Wt(e,n){var o=n.deletions;if(o!==null)for(var s=0;s<o.length;s++){var l=o[s];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));Ph(c,p,l),Je=null,Ht=!1;var k=l.alternate;k!==null&&(k.return=null),l.return=null}catch(M){Fe(l,n,M)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)jh(n,e),n=n.sibling}function jh(e,n){var o=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Wt(n,e),Xt(e),s&4){try{go(3,e,e.return),Ls(3,e)}catch(ee){Fe(e,e.return,ee)}try{go(5,e,e.return)}catch(ee){Fe(e,e.return,ee)}}break;case 1:Wt(n,e),Xt(e),s&512&&o!==null&&oi(o,o.return);break;case 5:if(Wt(n,e),Xt(e),s&512&&o!==null&&oi(o,o.return),e.flags&32){var l=e.stateNode;try{Di(l,"")}catch(ee){Fe(e,e.return,ee)}}if(s&4&&(l=e.stateNode,l!=null)){var c=e.memoizedProps,p=o!==null?o.memoizedProps:c,w=e.type,k=e.updateQueue;if(e.updateQueue=null,k!==null)try{w==="input"&&c.type==="radio"&&c.name!=null&&Tt(l,c),Ma(w,p);var M=Ma(w,c);for(p=0;p<k.length;p+=2){var z=k[p],B=k[p+1];z==="style"?ud(l,B):z==="dangerouslySetInnerHTML"?ad(l,B):z==="children"?Di(l,B):b(l,z,B,M)}switch(w){case"input":Kt(l,c);break;case"textarea":id(l,c);break;case"select":var $=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!c.multiple;var G=c.value;G!=null?Fr(l,!!c.multiple,G,!1):$!==!!c.multiple&&(c.defaultValue!=null?Fr(l,!!c.multiple,c.defaultValue,!0):Fr(l,!!c.multiple,c.multiple?[]:"",!1))}l[oo]=c}catch(ee){Fe(e,e.return,ee)}}break;case 6:if(Wt(n,e),Xt(e),s&4){if(e.stateNode===null)throw Error(i(162));l=e.stateNode,c=e.memoizedProps;try{l.nodeValue=c}catch(ee){Fe(e,e.return,ee)}}break;case 3:if(Wt(n,e),Xt(e),s&4&&o!==null&&o.memoizedState.isDehydrated)try{Qi(n.containerInfo)}catch(ee){Fe(e,e.return,ee)}break;case 4:Wt(n,e),Xt(e);break;case 13:Wt(n,e),Xt(e),l=e.child,l.flags&8192&&(c=l.memoizedState!==null,l.stateNode.isHidden=c,!c||l.alternate!==null&&l.alternate.memoizedState!==null||(ou=Be())),s&4&&bh(e);break;case 22:if(z=o!==null&&o.memoizedState!==null,e.mode&1?(ot=(M=ot)||z,Wt(n,e),ot=M):Wt(n,e),Xt(e),s&8192){if(M=e.memoizedState!==null,(e.stateNode.isHidden=M)&&!z&&(e.mode&1)!==0)for(X=e,z=e.child;z!==null;){for(B=X=z;X!==null;){switch($=X,G=$.child,$.tag){case 0:case 11:case 14:case 15:go(4,$,$.return);break;case 1:oi($,$.return);var J=$.stateNode;if(typeof J.componentWillUnmount=="function"){s=$,o=$.return;try{n=s,J.props=n.memoizedProps,J.state=n.memoizedState,J.componentWillUnmount()}catch(ee){Fe(s,o,ee)}}break;case 5:oi($,$.return);break;case 22:if($.memoizedState!==null){Ih(B);continue}}G!==null?(G.return=$,X=G):Ih(B)}z=z.sibling}e:for(z=null,B=e;;){if(B.tag===5){if(z===null){z=B;try{l=B.stateNode,M?(c=l.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none"):(w=B.stateNode,k=B.memoizedProps.style,p=k!=null&&k.hasOwnProperty("display")?k.display:null,w.style.display=ld("display",p))}catch(ee){Fe(e,e.return,ee)}}}else if(B.tag===6){if(z===null)try{B.stateNode.nodeValue=M?"":B.memoizedProps}catch(ee){Fe(e,e.return,ee)}}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;z===B&&(z=null),B=B.return}z===B&&(z=null),B.sibling.return=B.return,B=B.sibling}}break;case 19:Wt(n,e),Xt(e),s&4&&bh(e);break;case 21:break;default:Wt(n,e),Xt(e)}}function Xt(e){var n=e.flags;if(n&2){try{e:{for(var o=e.return;o!==null;){if(Eh(o)){var s=o;break e}o=o.return}throw Error(i(160))}switch(s.tag){case 5:var l=s.stateNode;s.flags&32&&(Di(l,""),s.flags&=-33);var c=_h(e);nu(e,c,l);break;case 3:case 4:var p=s.stateNode.containerInfo,w=_h(e);tu(e,w,p);break;default:throw Error(i(161))}}catch(k){Fe(e,e.return,k)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Hy(e,n,o){X=e,Th(e)}function Th(e,n,o){for(var s=(e.mode&1)!==0;X!==null;){var l=X,c=l.child;if(l.tag===22&&s){var p=l.memoizedState!==null||Os;if(!p){var w=l.alternate,k=w!==null&&w.memoizedState!==null||ot;w=Os;var M=ot;if(Os=p,(ot=k)&&!M)for(X=l;X!==null;)p=X,k=p.child,p.tag===22&&p.memoizedState!==null?Nh(l):k!==null?(k.return=p,X=k):Nh(l);for(;c!==null;)X=c,Th(c),c=c.sibling;X=l,Os=w,ot=M}Rh(e)}else(l.subtreeFlags&8772)!==0&&c!==null?(c.return=l,X=c):Rh(e)}}function Rh(e){for(;X!==null;){var n=X;if((n.flags&8772)!==0){var o=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:ot||Ls(5,n);break;case 1:var s=n.stateNode;if(n.flags&4&&!ot)if(o===null)s.componentDidMount();else{var l=n.elementType===n.type?o.memoizedProps:Bt(n.type,o.memoizedProps);s.componentDidUpdate(l,o.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var c=n.updateQueue;c!==null&&If(n,c,s);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}If(n,p,o)}break;case 5:var w=n.stateNode;if(o===null&&n.flags&4){o=w;var k=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":k.autoFocus&&o.focus();break;case"img":k.src&&(o.src=k.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var M=n.alternate;if(M!==null){var z=M.memoizedState;if(z!==null){var B=z.dehydrated;B!==null&&Qi(B)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}ot||n.flags&512&&eu(n)}catch($){Fe(n,n.return,$)}}if(n===e){X=null;break}if(o=n.sibling,o!==null){o.return=n.return,X=o;break}X=n.return}}function Ih(e){for(;X!==null;){var n=X;if(n===e){X=null;break}var o=n.sibling;if(o!==null){o.return=n.return,X=o;break}X=n.return}}function Nh(e){for(;X!==null;){var n=X;try{switch(n.tag){case 0:case 11:case 15:var o=n.return;try{Ls(4,n)}catch(k){Fe(n,o,k)}break;case 1:var s=n.stateNode;if(typeof s.componentDidMount=="function"){var l=n.return;try{s.componentDidMount()}catch(k){Fe(n,l,k)}}var c=n.return;try{eu(n)}catch(k){Fe(n,c,k)}break;case 5:var p=n.return;try{eu(n)}catch(k){Fe(n,p,k)}}}catch(k){Fe(n,n.return,k)}if(n===e){X=null;break}var w=n.sibling;if(w!==null){w.return=n.return,X=w;break}X=n.return}}var Wy=Math.ceil,As=T.ReactCurrentDispatcher,ru=T.ReactCurrentOwner,Ot=T.ReactCurrentBatchConfig,we=0,Ye=null,We=null,et=0,bt=0,si=On(0),Ke=0,yo=null,hr=0,Ds=0,iu=0,wo=null,gt=null,ou=0,ai=1/0,gn=null,Fs=!1,su=null,zn=null,$s=!1,Un=null,zs=0,xo=0,au=null,Us=-1,Bs=0;function dt(){return(we&6)!==0?Be():Us!==-1?Us:Us=Be()}function Bn(e){return(e.mode&1)===0?1:(we&2)!==0&&et!==0?et&-et:by.transition!==null?(Bs===0&&(Bs=Ed()),Bs):(e=Ee,e!==0||(e=window.event,e=e===void 0?16:Md(e.type)),e)}function Vt(e,n,o,s){if(50<xo)throw xo=0,au=null,Error(i(185));Hi(e,o,s),((we&2)===0||e!==Ye)&&(e===Ye&&((we&2)===0&&(Ds|=o),Ke===4&&Hn(e,et)),yt(e,s),o===1&&we===0&&(n.mode&1)===0&&(ai=Be()+500,vs&&An()))}function yt(e,n){var o=e.callbackNode;bg(e,n);var s=Zo(e,e===Ye?et:0);if(s===0)o!==null&&Sd(o),e.callbackNode=null,e.callbackPriority=0;else if(n=s&-s,e.callbackPriority!==n){if(o!=null&&Sd(o),n===1)e.tag===0?Py(Oh.bind(null,e)):wf(Oh.bind(null,e)),ky(function(){(we&6)===0&&An()}),o=null;else{switch(_d(s)){case 1:o=za;break;case 4:o=kd;break;case 16:o=Ko;break;case 536870912:o=Cd;break;default:o=Ko}o=Bh(o,Mh.bind(null,e))}e.callbackPriority=n,e.callbackNode=o}}function Mh(e,n){if(Us=-1,Bs=0,(we&6)!==0)throw Error(i(327));var o=e.callbackNode;if(li()&&e.callbackNode!==o)return null;var s=Zo(e,e===Ye?et:0);if(s===0)return null;if((s&30)!==0||(s&e.expiredLanes)!==0||n)n=Hs(e,s);else{n=s;var l=we;we|=2;var c=Ah();(Ye!==e||et!==n)&&(gn=null,ai=Be()+500,mr(e,n));do try{Ky();break}catch(w){Lh(e,w)}while(!0);_l(),As.current=c,we=l,We!==null?n=0:(Ye=null,et=0,n=Ke)}if(n!==0){if(n===2&&(l=Ua(e),l!==0&&(s=l,n=lu(e,l))),n===1)throw o=yo,mr(e,0),Hn(e,s),yt(e,Be()),o;if(n===6)Hn(e,s);else{if(l=e.current.alternate,(s&30)===0&&!Vy(l)&&(n=Hs(e,s),n===2&&(c=Ua(e),c!==0&&(s=c,n=lu(e,c))),n===1))throw o=yo,mr(e,0),Hn(e,s),yt(e,Be()),o;switch(e.finishedWork=l,e.finishedLanes=s,n){case 0:case 1:throw Error(i(345));case 2:vr(e,gt,gn);break;case 3:if(Hn(e,s),(s&130023424)===s&&(n=ou+500-Be(),10<n)){if(Zo(e,0)!==0)break;if(l=e.suspendedLanes,(l&s)!==s){dt(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=pl(vr.bind(null,e,gt,gn),n);break}vr(e,gt,gn);break;case 4:if(Hn(e,s),(s&4194240)===s)break;for(n=e.eventTimes,l=-1;0<s;){var p=31-$t(s);c=1<<p,p=n[p],p>l&&(l=p),s&=~c}if(s=l,s=Be()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Wy(s/1960))-s,10<s){e.timeoutHandle=pl(vr.bind(null,e,gt,gn),s);break}vr(e,gt,gn);break;case 5:vr(e,gt,gn);break;default:throw Error(i(329))}}}return yt(e,Be()),e.callbackNode===o?Mh.bind(null,e):null}function lu(e,n){var o=wo;return e.current.memoizedState.isDehydrated&&(mr(e,n).flags|=256),e=Hs(e,n),e!==2&&(n=gt,gt=o,n!==null&&uu(n)),e}function uu(e){gt===null?gt=e:gt.push.apply(gt,e)}function Vy(e){for(var n=e;;){if(n.flags&16384){var o=n.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var s=0;s<o.length;s++){var l=o[s],c=l.getSnapshot;l=l.value;try{if(!zt(c(),l))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 Hn(e,n){for(n&=~iu,n&=~Ds,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var o=31-$t(n),s=1<<o;e[o]=-1,n&=~s}}function Oh(e){if((we&6)!==0)throw Error(i(327));li();var n=Zo(e,0);if((n&1)===0)return yt(e,Be()),null;var o=Hs(e,n);if(e.tag!==0&&o===2){var s=Ua(e);s!==0&&(n=s,o=lu(e,s))}if(o===1)throw o=yo,mr(e,0),Hn(e,n),yt(e,Be()),o;if(o===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,vr(e,gt,gn),yt(e,Be()),null}function cu(e,n){var o=we;we|=1;try{return e(n)}finally{we=o,we===0&&(ai=Be()+500,vs&&An())}}function pr(e){Un!==null&&Un.tag===0&&(we&6)===0&&li();var n=we;we|=1;var o=Ot.transition,s=Ee;try{if(Ot.transition=null,Ee=1,e)return e()}finally{Ee=s,Ot.transition=o,we=n,(we&6)===0&&An()}}function du(){bt=si.current,Ne(si)}function mr(e,n){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,Sy(o)),We!==null)for(o=We.return;o!==null;){var s=o;switch(xl(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&ps();break;case 3:ri(),Ne(pt),Ne(nt),Ml();break;case 5:Il(s);break;case 4:ri();break;case 13:Ne(Le);break;case 19:Ne(Le);break;case 10:Pl(s.type._context);break;case 22:case 23:du()}o=o.return}if(Ye=e,We=e=Wn(e.current,null),et=bt=n,Ke=0,yo=null,iu=Ds=hr=0,gt=wo=null,cr!==null){for(n=0;n<cr.length;n++)if(o=cr[n],s=o.interleaved,s!==null){o.interleaved=null;var l=s.next,c=o.pending;if(c!==null){var p=c.next;c.next=l,s.next=p}o.pending=s}cr=null}return e}function Lh(e,n){do{var o=We;try{if(_l(),Ps.current=Rs,bs){for(var s=Ae.memoizedState;s!==null;){var l=s.queue;l!==null&&(l.pending=null),s=s.next}bs=!1}if(fr=0,Ge=qe=Ae=null,fo=!1,ho=0,ru.current=null,o===null||o.return===null){Ke=1,yo=n,We=null;break}e:{var c=e,p=o.return,w=o,k=n;if(n=et,w.flags|=32768,k!==null&&typeof k=="object"&&typeof k.then=="function"){var M=k,z=w,B=z.tag;if((z.mode&1)===0&&(B===0||B===11||B===15)){var $=z.alternate;$?(z.updateQueue=$.updateQueue,z.memoizedState=$.memoizedState,z.lanes=$.lanes):(z.updateQueue=null,z.memoizedState=null)}var G=sh(p);if(G!==null){G.flags&=-257,ah(G,p,w,c,n),G.mode&1&&oh(c,M,n),n=G,k=M;var J=n.updateQueue;if(J===null){var ee=new Set;ee.add(k),n.updateQueue=ee}else J.add(k);break e}else{if((n&1)===0){oh(c,M,n),fu();break e}k=Error(i(426))}}else if(Oe&&w.mode&1){var He=sh(p);if(He!==null){(He.flags&65536)===0&&(He.flags|=256),ah(He,p,w,c,n),Cl(ii(k,w));break e}}c=k=ii(k,w),Ke!==4&&(Ke=2),wo===null?wo=[c]:wo.push(c),c=p;do{switch(c.tag){case 3:c.flags|=65536,n&=-n,c.lanes|=n;var j=rh(c,k,n);Rf(c,j);break e;case 1:w=k;var E=c.type,R=c.stateNode;if((c.flags&128)===0&&(typeof E.getDerivedStateFromError=="function"||R!==null&&typeof R.componentDidCatch=="function"&&(zn===null||!zn.has(R)))){c.flags|=65536,n&=-n,c.lanes|=n;var H=ih(c,w,n);Rf(c,H);break e}}c=c.return}while(c!==null)}Fh(o)}catch(te){n=te,We===o&&o!==null&&(We=o=o.return);continue}break}while(!0)}function Ah(){var e=As.current;return As.current=Rs,e===null?Rs:e}function fu(){(Ke===0||Ke===3||Ke===2)&&(Ke=4),Ye===null||(hr&268435455)===0&&(Ds&268435455)===0||Hn(Ye,et)}function Hs(e,n){var o=we;we|=2;var s=Ah();(Ye!==e||et!==n)&&(gn=null,mr(e,n));do try{qy();break}catch(l){Lh(e,l)}while(!0);if(_l(),we=o,As.current=s,We!==null)throw Error(i(261));return Ye=null,et=0,Ke}function qy(){for(;We!==null;)Dh(We)}function Ky(){for(;We!==null&&!yg();)Dh(We)}function Dh(e){var n=Uh(e.alternate,e,bt);e.memoizedProps=e.pendingProps,n===null?Fh(e):We=n,ru.current=null}function Fh(e){var n=e;do{var o=n.alternate;if(e=n.return,(n.flags&32768)===0){if(o=$y(o,n,bt),o!==null){We=o;return}}else{if(o=zy(o,n),o!==null){o.flags&=32767,We=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ke=6,We=null;return}}if(n=n.sibling,n!==null){We=n;return}We=n=e}while(n!==null);Ke===0&&(Ke=5)}function vr(e,n,o){var s=Ee,l=Ot.transition;try{Ot.transition=null,Ee=1,Qy(e,n,o,s)}finally{Ot.transition=l,Ee=s}return null}function Qy(e,n,o,s){do li();while(Un!==null);if((we&6)!==0)throw Error(i(327));o=e.finishedWork;var l=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(jg(e,c),e===Ye&&(We=Ye=null,et=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||$s||($s=!0,Bh(Ko,function(){return li(),null})),c=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||c){c=Ot.transition,Ot.transition=null;var p=Ee;Ee=1;var w=we;we|=4,ru.current=null,By(e,o),jh(o,e),py(fl),es=!!dl,fl=dl=null,e.current=o,Hy(o),wg(),we=w,Ee=p,Ot.transition=c}else e.current=o;if($s&&($s=!1,Un=e,zs=l),c=e.pendingLanes,c===0&&(zn=null),kg(o.stateNode),yt(e,Be()),n!==null)for(s=e.onRecoverableError,o=0;o<n.length;o++)l=n[o],s(l.value,{componentStack:l.stack,digest:l.digest});if(Fs)throw Fs=!1,e=su,su=null,e;return(zs&1)!==0&&e.tag!==0&&li(),c=e.pendingLanes,(c&1)!==0?e===au?xo++:(xo=0,au=e):xo=0,An(),null}function li(){if(Un!==null){var e=_d(zs),n=Ot.transition,o=Ee;try{if(Ot.transition=null,Ee=16>e?16:e,Un===null)var s=!1;else{if(e=Un,Un=null,zs=0,(we&6)!==0)throw Error(i(331));var l=we;for(we|=4,X=e.current;X!==null;){var c=X,p=c.child;if((X.flags&16)!==0){var w=c.deletions;if(w!==null){for(var k=0;k<w.length;k++){var M=w[k];for(X=M;X!==null;){var z=X;switch(z.tag){case 0:case 11:case 15:go(8,z,c)}var B=z.child;if(B!==null)B.return=z,X=B;else for(;X!==null;){z=X;var $=z.sibling,G=z.return;if(Ch(z),z===M){X=null;break}if($!==null){$.return=G,X=$;break}X=G}}}var J=c.alternate;if(J!==null){var ee=J.child;if(ee!==null){J.child=null;do{var He=ee.sibling;ee.sibling=null,ee=He}while(ee!==null)}}X=c}}if((c.subtreeFlags&2064)!==0&&p!==null)p.return=c,X=p;else e:for(;X!==null;){if(c=X,(c.flags&2048)!==0)switch(c.tag){case 0:case 11:case 15:go(9,c,c.return)}var j=c.sibling;if(j!==null){j.return=c.return,X=j;break e}X=c.return}}var E=e.current;for(X=E;X!==null;){p=X;var R=p.child;if((p.subtreeFlags&2064)!==0&&R!==null)R.return=p,X=R;else e:for(p=E;X!==null;){if(w=X,(w.flags&2048)!==0)try{switch(w.tag){case 0:case 11:case 15:Ls(9,w)}}catch(te){Fe(w,w.return,te)}if(w===p){X=null;break e}var H=w.sibling;if(H!==null){H.return=w.return,X=H;break e}X=w.return}}if(we=l,An(),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(Qo,e)}catch{}s=!0}return s}finally{Ee=o,Ot.transition=n}}return!1}function $h(e,n,o){n=ii(o,n),n=rh(e,n,1),e=Fn(e,n,1),n=dt(),e!==null&&(Hi(e,1,n),yt(e,n))}function Fe(e,n,o){if(e.tag===3)$h(e,e,o);else for(;n!==null;){if(n.tag===3){$h(n,e,o);break}else if(n.tag===1){var s=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(zn===null||!zn.has(s))){e=ii(o,e),e=ih(n,e,1),n=Fn(n,e,1),e=dt(),n!==null&&(Hi(n,1,e),yt(n,e));break}}n=n.return}}function Gy(e,n,o){var s=e.pingCache;s!==null&&s.delete(n),n=dt(),e.pingedLanes|=e.suspendedLanes&o,Ye===e&&(et&o)===o&&(Ke===4||Ke===3&&(et&130023424)===et&&500>Be()-ou?mr(e,0):iu|=o),yt(e,n)}function zh(e,n){n===0&&((e.mode&1)===0?n=1:(n=Yo,Yo<<=1,(Yo&130023424)===0&&(Yo=4194304)));var o=dt();e=pn(e,n),e!==null&&(Hi(e,n,o),yt(e,o))}function Yy(e){var n=e.memoizedState,o=0;n!==null&&(o=n.retryLane),zh(e,o)}function Zy(e,n){var o=0;switch(e.tag){case 13:var s=e.stateNode,l=e.memoizedState;l!==null&&(o=l.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(i(314))}s!==null&&s.delete(n),zh(e,o)}var Uh;Uh=function(e,n,o){if(e!==null)if(e.memoizedProps!==n.pendingProps||pt.current)vt=!0;else{if((e.lanes&o)===0&&(n.flags&128)===0)return vt=!1,Fy(e,n,o);vt=(e.flags&131072)!==0}else vt=!1,Oe&&(n.flags&1048576)!==0&&xf(n,ys,n.index);switch(n.lanes=0,n.tag){case 2:var s=n.type;Ms(e,n),e=n.pendingProps;var l=Yr(n,nt.current);ni(n,o),l=Al(null,n,s,e,l,o);var c=Dl();return n.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,mt(s)?(c=!0,ms(n)):c=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Tl(n),l.updater=Is,n.stateNode=l,l._reactInternals=n,Hl(n,s,e,o),n=Kl(null,n,s,!0,c,o)):(n.tag=0,Oe&&c&&wl(n),ct(null,n,l,o),n=n.child),n;case 16:s=n.elementType;e:{switch(Ms(e,n),e=n.pendingProps,l=s._init,s=l(s._payload),n.type=s,l=n.tag=Jy(s),e=Bt(s,e),l){case 0:n=ql(null,n,s,e,o);break e;case 1:n=hh(null,n,s,e,o);break e;case 11:n=lh(null,n,s,e,o);break e;case 14:n=uh(null,n,s,Bt(s.type,e),o);break e}throw Error(i(306,s,""))}return n;case 0:return s=n.type,l=n.pendingProps,l=n.elementType===s?l:Bt(s,l),ql(e,n,s,l,o);case 1:return s=n.type,l=n.pendingProps,l=n.elementType===s?l:Bt(s,l),hh(e,n,s,l,o);case 3:e:{if(ph(n),e===null)throw Error(i(387));s=n.pendingProps,c=n.memoizedState,l=c.element,Tf(e,n),Es(n,s,null,o);var p=n.memoizedState;if(s=p.element,c.isDehydrated)if(c={element:s,isDehydrated:!1,cache:p.cache,pendingSuspenseBoundaries:p.pendingSuspenseBoundaries,transitions:p.transitions},n.updateQueue.baseState=c,n.memoizedState=c,n.flags&256){l=ii(Error(i(423)),n),n=mh(e,n,s,o,l);break e}else if(s!==l){l=ii(Error(i(424)),n),n=mh(e,n,s,o,l);break e}else for(Pt=Mn(n.stateNode.containerInfo.firstChild),_t=n,Oe=!0,Ut=null,o=bf(n,null,s,o),n.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Jr(),s===l){n=vn(e,n,o);break e}ct(e,n,s,o)}n=n.child}return n;case 5:return Nf(n),e===null&&kl(n),s=n.type,l=n.pendingProps,c=e!==null?e.memoizedProps:null,p=l.children,hl(s,l)?p=null:c!==null&&hl(s,c)&&(n.flags|=32),fh(e,n),ct(e,n,p,o),n.child;case 6:return e===null&&kl(n),null;case 13:return vh(e,n,o);case 4:return Rl(n,n.stateNode.containerInfo),s=n.pendingProps,e===null?n.child=ei(n,null,s,o):ct(e,n,s,o),n.child;case 11:return s=n.type,l=n.pendingProps,l=n.elementType===s?l:Bt(s,l),lh(e,n,s,l,o);case 7:return ct(e,n,n.pendingProps,o),n.child;case 8:return ct(e,n,n.pendingProps.children,o),n.child;case 12:return ct(e,n,n.pendingProps.children,o),n.child;case 10:e:{if(s=n.type._context,l=n.pendingProps,c=n.memoizedProps,p=l.value,Te(Ss,s._currentValue),s._currentValue=p,c!==null)if(zt(c.value,p)){if(c.children===l.children&&!pt.current){n=vn(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 k=w.firstContext;k!==null;){if(k.context===s){if(c.tag===1){k=mn(-1,o&-o),k.tag=2;var M=c.updateQueue;if(M!==null){M=M.shared;var z=M.pending;z===null?k.next=k:(k.next=z.next,z.next=k),M.pending=k}}c.lanes|=o,k=c.alternate,k!==null&&(k.lanes|=o),bl(c.return,o,n),w.lanes|=o;break}k=k.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),bl(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}ct(e,n,l.children,o),n=n.child}return n;case 9:return l=n.type,s=n.pendingProps.children,ni(n,o),l=Nt(l),s=s(l),n.flags|=1,ct(e,n,s,o),n.child;case 14:return s=n.type,l=Bt(s,n.pendingProps),l=Bt(s.type,l),uh(e,n,s,l,o);case 15:return ch(e,n,n.type,n.pendingProps,o);case 17:return s=n.type,l=n.pendingProps,l=n.elementType===s?l:Bt(s,l),Ms(e,n),n.tag=1,mt(s)?(e=!0,ms(n)):e=!1,ni(n,o),th(n,s,l),Hl(n,s,l,o),Kl(null,n,s,!0,e,o);case 19:return yh(e,n,o);case 22:return dh(e,n,o)}throw Error(i(156,n.tag))};function Bh(e,n){return xd(e,n)}function Xy(e,n,o,s){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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Lt(e,n,o,s){return new Xy(e,n,o,s)}function hu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jy(e){if(typeof e=="function")return hu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===de)return 11;if(e===be)return 14}return 2}function Wn(e,n){var o=e.alternate;return o===null?(o=Lt(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 Ws(e,n,o,s,l,c){var p=2;if(s=e,typeof e=="function")hu(e)&&(p=1);else if(typeof e=="string")p=5;else e:switch(e){case ie:return gr(o.children,l,c,n);case Q:p=8,l|=8;break;case ne:return e=Lt(12,o,n,l|2),e.elementType=ne,e.lanes=c,e;case _e:return e=Lt(13,o,n,l),e.elementType=_e,e.lanes=c,e;case Me:return e=Lt(19,o,n,l),e.elementType=Me,e.lanes=c,e;case Se:return Vs(o,l,c,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ae:p=10;break e;case V:p=9;break e;case de:p=11;break e;case be:p=14;break e;case Ue:p=16,s=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return n=Lt(p,o,n,l),n.elementType=e,n.type=s,n.lanes=c,n}function gr(e,n,o,s){return e=Lt(7,e,s,n),e.lanes=o,e}function Vs(e,n,o,s){return e=Lt(22,e,s,n),e.elementType=Se,e.lanes=o,e.stateNode={isHidden:!1},e}function pu(e,n,o){return e=Lt(6,e,null,n),e.lanes=o,e}function mu(e,n,o){return n=Lt(4,e.children!==null?e.children:[],e.key,n),n.lanes=o,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function ew(e,n,o,s,l){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=Ba(0),this.expirationTimes=Ba(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ba(0),this.identifierPrefix=s,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function vu(e,n,o,s,l,c,p,w,k){return e=new ew(e,n,o,w,k),n===1?(n=1,c===!0&&(n|=8)):n=0,c=Lt(3,null,null,n),e.current=c,c.stateNode=e,c.memoizedState={element:s,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},Tl(c),e}function tw(e,n,o){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:q,key:s==null?null:""+s,children:e,containerInfo:n,implementation:o}}function Hh(e){if(!e)return Ln;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(mt(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(mt(o))return gf(e,o,n)}return n}function Wh(e,n,o,s,l,c,p,w,k){return e=vu(o,s,!0,e,l,c,p,w,k),e.context=Hh(null),o=e.current,s=dt(),l=Bn(o),c=mn(s,l),c.callback=n??null,Fn(o,c,l),e.current.lanes=l,Hi(e,l,s),yt(e,s),e}function qs(e,n,o,s){var l=n.current,c=dt(),p=Bn(l);return o=Hh(o),n.context===null?n.context=o:n.pendingContext=o,n=mn(c,p),n.payload={element:e},s=s===void 0?null:s,s!==null&&(n.callback=s),e=Fn(l,n,p),e!==null&&(Vt(e,l,p,c),Cs(e,l,p)),p}function Ks(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 Vh(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<n?o:n}}function gu(e,n){Vh(e,n),(e=e.alternate)&&Vh(e,n)}function nw(){return null}var qh=typeof reportError=="function"?reportError:function(e){console.error(e)};function yu(e){this._internalRoot=e}Qs.prototype.render=yu.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(i(409));qs(e,n,null,null)},Qs.prototype.unmount=yu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;pr(function(){qs(null,e,null,null)}),n[cn]=null}};function Qs(e){this._internalRoot=e}Qs.prototype.unstable_scheduleHydration=function(e){if(e){var n=jd();e={blockedOn:null,target:e,priority:n};for(var o=0;o<Rn.length&&n!==0&&n<Rn[o].priority;o++);Rn.splice(o,0,e),o===0&&Id(e)}};function wu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Gs(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Kh(){}function rw(e,n,o,s,l){if(l){if(typeof s=="function"){var c=s;s=function(){var M=Ks(p);c.call(M)}}var p=Wh(n,s,e,0,null,!1,!1,"",Kh);return e._reactRootContainer=p,e[cn]=p.current,ro(e.nodeType===8?e.parentNode:e),pr(),p}for(;l=e.lastChild;)e.removeChild(l);if(typeof s=="function"){var w=s;s=function(){var M=Ks(k);w.call(M)}}var k=vu(e,0,!1,null,null,!1,!1,"",Kh);return e._reactRootContainer=k,e[cn]=k.current,ro(e.nodeType===8?e.parentNode:e),pr(function(){qs(n,k,o,s)}),k}function Ys(e,n,o,s,l){var c=o._reactRootContainer;if(c){var p=c;if(typeof l=="function"){var w=l;l=function(){var k=Ks(p);w.call(k)}}qs(n,p,e,l)}else p=rw(o,n,e,l,s);return Ks(p)}Pd=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var o=Bi(n.pendingLanes);o!==0&&(Ha(n,o|1),yt(n,Be()),(we&6)===0&&(ai=Be()+500,An()))}break;case 13:pr(function(){var s=pn(e,1);if(s!==null){var l=dt();Vt(s,e,1,l)}}),gu(e,1)}},Wa=function(e){if(e.tag===13){var n=pn(e,134217728);if(n!==null){var o=dt();Vt(n,e,134217728,o)}gu(e,134217728)}},bd=function(e){if(e.tag===13){var n=Bn(e),o=pn(e,n);if(o!==null){var s=dt();Vt(o,e,n,s)}gu(e,n)}},jd=function(){return Ee},Td=function(e,n){var o=Ee;try{return Ee=e,n()}finally{Ee=o}},Aa=function(e,n,o){switch(n){case"input":if(Kt(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 s=o[n];if(s!==e&&s.form===e.form){var l=hs(s);if(!l)throw Error(i(90));Li(s),Kt(s,l)}}}break;case"textarea":id(e,o);break;case"select":n=o.value,n!=null&&Fr(e,!!o.multiple,n,!1)}},hd=cu,pd=pr;var iw={usingClientEntryPoint:!1,Events:[so,Qr,hs,dd,fd,cu]},So={findFiberByHostInstance:sr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ow={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:T.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=yd(e),e===null?null:e.stateNode},findFiberByHostInstance:So.findFiberByHostInstance||nw,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 Zs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zs.isDisabled&&Zs.supportsFiber)try{Qo=Zs.inject(ow),Qt=Zs}catch{}}return wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=iw,wt.createPortal=function(e,n){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!wu(n))throw Error(i(200));return tw(e,n,null,o)},wt.createRoot=function(e,n){if(!wu(e))throw Error(i(299));var o=!1,s="",l=qh;return n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),n=vu(e,1,!1,null,null,o,!1,s,l),e[cn]=n.current,ro(e.nodeType===8?e.parentNode:e),new yu(n)},wt.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=yd(n),e=e===null?null:e.stateNode,e},wt.flushSync=function(e){return pr(e)},wt.hydrate=function(e,n,o){if(!Gs(n))throw Error(i(200));return Ys(null,e,n,!0,o)},wt.hydrateRoot=function(e,n,o){if(!wu(e))throw Error(i(405));var s=o!=null&&o.hydratedSources||null,l=!1,c="",p=qh;if(o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(c=o.identifierPrefix),o.onRecoverableError!==void 0&&(p=o.onRecoverableError)),n=Wh(n,null,e,1,o??null,l,!1,c,p),e[cn]=n.current,ro(e),s)for(e=0;e<s.length;e++)o=s[e],l=o._getVersion,l=l(o._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[o,l]:n.mutableSourceEagerHydrationData.push(o,l);return new Qs(n)},wt.render=function(e,n,o){if(!Gs(n))throw Error(i(200));return Ys(null,e,n,!1,o)},wt.unmountComponentAtNode=function(e){if(!Gs(e))throw Error(i(40));return e._reactRootContainer?(pr(function(){Ys(null,null,e,!1,function(){e._reactRootContainer=null,e[cn]=null})}),!0):!1},wt.unstable_batchedUpdates=cu,wt.unstable_renderSubtreeIntoContainer=function(e,n,o,s){if(!Gs(o))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return Ys(e,n,o,!1,s)},wt.version="18.3.1-next-f1338f8080-20240426",wt}var rp;function ww(){if(rp)return Eu.exports;rp=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(),Eu.exports=yw(),Eu.exports}var ip;function xw(){if(ip)return Js;ip=1;var t=ww();return Js.createRoot=t.createRoot,Js.hydrateRoot=t.hydrateRoot,Js}var Sw=xw(),Oi=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(){}},Sr,Kn,xi,Jp,kw=(Jp=class extends Oi{constructor(){super();re(this,Sr);re(this,Kn);re(this,xi);K(this,xi,r=>{if(typeof window<"u"&&window.addEventListener){const i=()=>r();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){S(this,Kn)||this.setEventListener(S(this,xi))}onUnsubscribe(){var r;this.hasListeners()||((r=S(this,Kn))==null||r.call(this),K(this,Kn,void 0))}setEventListener(r){var i;K(this,xi,r),(i=S(this,Kn))==null||i.call(this),K(this,Kn,r(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(r){S(this,Sr)!==r&&(K(this,Sr,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(i=>{i(r)})}isFocused(){var r;return typeof S(this,Sr)=="boolean"?S(this,Sr):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},Sr=new WeakMap,Kn=new WeakMap,xi=new WeakMap,Jp),wc=new kw,Cw={setTimeout:(t,r)=>setTimeout(t,r),clearTimeout:t=>clearTimeout(t),setInterval:(t,r)=>setInterval(t,r),clearInterval:t=>clearInterval(t)},Qn,gc,em,Ew=(em=class{constructor(){re(this,Qn,Cw);re(this,gc,!1)}setTimeoutProvider(t){K(this,Qn,t)}setTimeout(t,r){return S(this,Qn).setTimeout(t,r)}clearTimeout(t){S(this,Qn).clearTimeout(t)}setInterval(t,r){return S(this,Qn).setInterval(t,r)}clearInterval(t){S(this,Qn).clearInterval(t)}},Qn=new WeakMap,gc=new WeakMap,em),xr=new Ew;function _w(t){setTimeout(t,0)}var Pw=typeof window>"u"||"Deno"in globalThis;function ht(){}function bw(t,r){return typeof t=="function"?t(r):t}function $u(t){return typeof t=="number"&&t>=0&&t!==1/0}function cm(t,r){return Math.max(t+(r||0)-Date.now(),0)}function nr(t,r){return typeof t=="function"?t(r):t}function Dt(t,r){return typeof t=="function"?t(r):t}function op(t,r){const{type:i="all",exact:a,fetchStatus:u,predicate:d,queryKey:m,stale:v}=t;if(m){if(a){if(r.queryHash!==xc(m,r.options))return!1}else if(!Po(r.queryKey,m))return!1}if(i!=="all"){const g=r.isActive();if(i==="active"&&!g||i==="inactive"&&g)return!1}return!(typeof v=="boolean"&&r.isStale()!==v||u&&u!==r.state.fetchStatus||d&&!d(r))}function sp(t,r){const{exact:i,status:a,predicate:u,mutationKey:d}=t;if(d){if(!r.options.mutationKey)return!1;if(i){if(Mr(r.options.mutationKey)!==Mr(d))return!1}else if(!Po(r.options.mutationKey,d))return!1}return!(a&&r.state.status!==a||u&&!u(r))}function xc(t,r){return((r==null?void 0:r.queryKeyHashFn)||Mr)(t)}function Mr(t){return JSON.stringify(t,(r,i)=>zu(i)?Object.keys(i).sort().reduce((a,u)=>(a[u]=i[u],a),{}):i)}function Po(t,r){return t===r?!0:typeof t!=typeof r?!1:t&&r&&typeof t=="object"&&typeof r=="object"?Object.keys(r).every(i=>Po(t[i],r[i])):!1}var jw=Object.prototype.hasOwnProperty;function dm(t,r,i=0){if(t===r)return t;if(i>500)return r;const a=ap(t)&&ap(r);if(!a&&!(zu(t)&&zu(r)))return r;const d=(a?t:Object.keys(t)).length,m=a?r:Object.keys(r),v=m.length,g=a?new Array(v):{};let h=0;for(let y=0;y<v;y++){const x=a?y:m[y],C=t[x],I=r[x];if(C===I){g[x]=C,(a?y<d:jw.call(t,x))&&h++;continue}if(C===null||I===null||typeof C!="object"||typeof I!="object"){g[x]=I;continue}const L=dm(C,I,i+1);g[x]=L,L===C&&h++}return d===v&&h===d?t:g}function ma(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 ap(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function zu(t){if(!lp(t))return!1;const r=t.constructor;if(r===void 0)return!0;const i=r.prototype;return!(!lp(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function lp(t){return Object.prototype.toString.call(t)==="[object Object]"}function Tw(t){return new Promise(r=>{xr.setTimeout(r,t)})}function Uu(t,r,i){return typeof i.structuralSharing=="function"?i.structuralSharing(t,r):i.structuralSharing!==!1?dm(t,r):r}function Rw(t,r,i=0){const a=[...t,r];return i&&a.length>i?a.slice(1):a}function Iw(t,r,i=0){const a=[r,...t];return i&&a.length>i?a.slice(0,-1):a}var Sc=Symbol();function fm(t,r){return!t.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!t.queryFn||t.queryFn===Sc?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function kc(t,r){return typeof t=="function"?t(...r):!!t}function Nw(t,r,i){let a=!1,u;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(u??(u=r()),a||(a=!0,u.aborted?i():u.addEventListener("abort",i,{once:!0})),u)}),t}var bo=(()=>{let t=()=>Pw;return{isServer(){return t()},setIsServer(r){t=r}}})();function Bu(){let t,r;const i=new Promise((u,d)=>{t=u,r=d});i.status="pending",i.catch(()=>{});function a(u){Object.assign(i,u),delete i.resolve,delete i.reject}return i.resolve=u=>{a({status:"fulfilled",value:u}),t(u)},i.reject=u=>{a({status:"rejected",reason:u}),r(u)},i}var Mw=_w;function Ow(){let t=[],r=0,i=v=>{v()},a=v=>{v()},u=Mw;const d=v=>{r?t.push(v):u(()=>{i(v)})},m=()=>{const v=t;t=[],v.length&&u(()=>{a(()=>{v.forEach(g=>{i(g)})})})};return{batch:v=>{let g;r++;try{g=v()}finally{r--,r||m()}return g},batchCalls:v=>(...g)=>{d(()=>{v(...g)})},schedule:d,setNotifyFunction:v=>{i=v},setBatchNotifyFunction:v=>{a=v},setScheduler:v=>{u=v}}}var Qe=Ow(),Si,Gn,ki,tm,Lw=(tm=class extends Oi{constructor(){super();re(this,Si,!0);re(this,Gn);re(this,ki);K(this,ki,r=>{if(typeof window<"u"&&window.addEventListener){const i=()=>r(!0),a=()=>r(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",a)}}})}onSubscribe(){S(this,Gn)||this.setEventListener(S(this,ki))}onUnsubscribe(){var r;this.hasListeners()||((r=S(this,Gn))==null||r.call(this),K(this,Gn,void 0))}setEventListener(r){var i;K(this,ki,r),(i=S(this,Gn))==null||i.call(this),K(this,Gn,r(this.setOnline.bind(this)))}setOnline(r){S(this,Si)!==r&&(K(this,Si,r),this.listeners.forEach(a=>{a(r)}))}isOnline(){return S(this,Si)}},Si=new WeakMap,Gn=new WeakMap,ki=new WeakMap,tm),va=new Lw;function Aw(t){return Math.min(1e3*2**t,3e4)}function hm(t){return(t??"online")==="online"?va.isOnline():!0}var Hu=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function pm(t){let r=!1,i=0,a;const u=Bu(),d=()=>u.status!=="pending",m=_=>{var N;if(!d()){const D=new Hu(_);C(D),(N=t.onCancel)==null||N.call(t,D)}},v=()=>{r=!0},g=()=>{r=!1},h=()=>wc.isFocused()&&(t.networkMode==="always"||va.isOnline())&&t.canRun(),y=()=>hm(t.networkMode)&&t.canRun(),x=_=>{d()||(a==null||a(),u.resolve(_))},C=_=>{d()||(a==null||a(),u.reject(_))},I=()=>new Promise(_=>{var N;a=D=>{(d()||h())&&_(D)},(N=t.onPause)==null||N.call(t)}).then(()=>{var _;a=void 0,d()||(_=t.onContinue)==null||_.call(t)}),L=()=>{if(d())return;let _;const N=i===0?t.initialPromise:void 0;try{_=N??t.fn()}catch(D){_=Promise.reject(D)}Promise.resolve(_).then(x).catch(D=>{var q;if(d())return;const U=t.retry??(bo.isServer()?0:3),b=t.retryDelay??Aw,T=typeof b=="function"?b(i,D):b,A=U===!0||typeof U=="number"&&i<U||typeof U=="function"&&U(i,D);if(r||!A){C(D);return}i++,(q=t.onFail)==null||q.call(t,i,D),Tw(T).then(()=>h()?void 0:I()).then(()=>{r?C(D):L()})})};return{promise:u,status:()=>u.status,cancel:m,continue:()=>(a==null||a(),u),cancelRetry:v,continueRetry:g,canStart:y,start:()=>(y()?L():I().then(L),u)}}var kr,nm,mm=(nm=class{constructor(){re(this,kr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),$u(this.gcTime)&&K(this,kr,xr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(bo.isServer()?1/0:300*1e3))}clearGcTimeout(){S(this,kr)!==void 0&&(xr.clearTimeout(S(this,kr)),K(this,kr,void 0))}},kr=new WeakMap,nm),Cr,Ci,At,Er,Xe,Ao,_r,jt,vm,yn,rm,Dw=(rm=class extends mm{constructor(r){super();re(this,jt);re(this,Cr);re(this,Ci);re(this,At);re(this,Er);re(this,Xe);re(this,Ao);re(this,_r);K(this,_r,!1),K(this,Ao,r.defaultOptions),this.setOptions(r.options),this.observers=[],K(this,Er,r.client),K(this,At,S(this,Er).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,K(this,Cr,cp(this.options)),this.state=r.state??S(this,Cr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var r;return(r=S(this,Xe))==null?void 0:r.promise}setOptions(r){if(this.options={...S(this,Ao),...r},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=cp(this.options);i.data!==void 0&&(this.setState(up(i.data,i.dataUpdatedAt)),K(this,Cr,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,At).remove(this)}setData(r,i){const a=Uu(this.state.data,r,this.options);return ce(this,jt,yn).call(this,{data:a,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),a}setState(r,i){ce(this,jt,yn).call(this,{type:"setState",state:r,setStateOptions:i})}cancel(r){var a,u;const i=(a=S(this,Xe))==null?void 0:a.promise;return(u=S(this,Xe))==null||u.cancel(r),i?i.then(ht).catch(ht):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return S(this,Cr)}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===Sc||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(r=>nr(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:!cm(this.state.dataUpdatedAt,r)}onFocus(){var i;const r=this.observers.find(a=>a.shouldFetchOnWindowFocus());r==null||r.refetch({cancelRefetch:!1}),(i=S(this,Xe))==null||i.continue()}onOnline(){var i;const r=this.observers.find(a=>a.shouldFetchOnReconnect());r==null||r.refetch({cancelRefetch:!1}),(i=S(this,Xe))==null||i.continue()}addObserver(r){this.observers.includes(r)||(this.observers.push(r),this.clearGcTimeout(),S(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||(S(this,Xe)&&(S(this,_r)||ce(this,jt,vm).call(this)?S(this,Xe).cancel({revert:!0}):S(this,Xe).cancelRetry()),this.scheduleGc()),S(this,At).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ce(this,jt,yn).call(this,{type:"invalidate"})}async fetch(r,i){var g,h,y,x,C,I,L,_,N,D,U,b;if(this.state.fetchStatus!=="idle"&&((g=S(this,Xe))==null?void 0:g.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(S(this,Xe))return S(this,Xe).continueRetry(),S(this,Xe).promise}if(r&&this.setOptions(r),!this.options.queryFn){const T=this.observers.find(A=>A.options.queryFn);T&&this.setOptions(T.options)}const a=new AbortController,u=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(K(this,_r,!0),a.signal)})},d=()=>{const T=fm(this.options,i),q=(()=>{const ie={client:S(this,Er),queryKey:this.queryKey,meta:this.meta};return u(ie),ie})();return K(this,_r,!1),this.options.persister?this.options.persister(T,q,this):T(q)},v=(()=>{const T={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:S(this,Er),state:this.state,fetchFn:d};return u(T),T})();(h=this.options.behavior)==null||h.onFetch(v,this),K(this,Ci,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((y=v.fetchOptions)==null?void 0:y.meta))&&ce(this,jt,yn).call(this,{type:"fetch",meta:(x=v.fetchOptions)==null?void 0:x.meta}),K(this,Xe,pm({initialPromise:i==null?void 0:i.initialPromise,fn:v.fetchFn,onCancel:T=>{T instanceof Hu&&T.revert&&this.setState({...S(this,Ci),fetchStatus:"idle"}),a.abort()},onFail:(T,A)=>{ce(this,jt,yn).call(this,{type:"failed",failureCount:T,error:A})},onPause:()=>{ce(this,jt,yn).call(this,{type:"pause"})},onContinue:()=>{ce(this,jt,yn).call(this,{type:"continue"})},retry:v.options.retry,retryDelay:v.options.retryDelay,networkMode:v.options.networkMode,canRun:()=>!0}));try{const T=await S(this,Xe).start();if(T===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(T),(I=(C=S(this,At).config).onSuccess)==null||I.call(C,T,this),(_=(L=S(this,At).config).onSettled)==null||_.call(L,T,this.state.error,this),T}catch(T){if(T instanceof Hu){if(T.silent)return S(this,Xe).promise;if(T.revert){if(this.state.data===void 0)throw T;return this.state.data}}throw ce(this,jt,yn).call(this,{type:"error",error:T}),(D=(N=S(this,At).config).onError)==null||D.call(N,T,this),(b=(U=S(this,At).config).onSettled)==null||b.call(U,this.state.data,T,this),T}finally{this.scheduleGc()}}},Cr=new WeakMap,Ci=new WeakMap,At=new WeakMap,Er=new WeakMap,Xe=new WeakMap,Ao=new WeakMap,_r=new WeakMap,jt=new WeakSet,vm=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},yn=function(r){const i=a=>{switch(r.type){case"failed":return{...a,fetchFailureCount:r.failureCount,fetchFailureReason:r.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...gm(a.data,this.options),fetchMeta:r.meta??null};case"success":const u={...a,...up(r.data,r.dataUpdatedAt),dataUpdateCount:a.dataUpdateCount+1,...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return K(this,Ci,r.manual?u:void 0),u;case"error":const d=r.error;return{...a,error:d,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...r.state}}};this.state=i(this.state),Qe.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),S(this,At).notify({query:this,type:"updated",action:r})})},rm);function gm(t,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:hm(r.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function up(t,r){return{data:t,dataUpdatedAt:r??Date.now(),error:null,isInvalidated:!1,status:"success"}}function cp(t){const r=typeof t.initialData=="function"?t.initialData():t.initialData,i=r!==void 0,a=i?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:r,dataUpdateCount:0,dataUpdatedAt:i?a??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,ve,Do,ft,Pr,Ei,xn,Yn,Fo,_i,Pi,br,jr,Zn,bi,Ce,_o,Wu,Vu,qu,Ku,Qu,Gu,Yu,ym,im,Fw=(im=class extends Oi{constructor(r,i){super();re(this,Ce);re(this,St);re(this,ve);re(this,Do);re(this,ft);re(this,Pr);re(this,Ei);re(this,xn);re(this,Yn);re(this,Fo);re(this,_i);re(this,Pi);re(this,br);re(this,jr);re(this,Zn);re(this,bi,new Set);this.options=i,K(this,St,r),K(this,Yn,null),K(this,xn,Bu()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(S(this,ve).addObserver(this),dp(S(this,ve),this.options)?ce(this,Ce,_o).call(this):this.updateResult(),ce(this,Ce,Ku).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Zu(S(this,ve),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Zu(S(this,ve),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ce(this,Ce,Qu).call(this),ce(this,Ce,Gu).call(this),S(this,ve).removeObserver(this)}setOptions(r){const i=this.options,a=S(this,ve);if(this.options=S(this,St).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dt(this.options.enabled,S(this,ve))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ce(this,Ce,Yu).call(this),S(this,ve).setOptions(this.options),i._defaulted&&!ma(this.options,i)&&S(this,St).getQueryCache().notify({type:"observerOptionsUpdated",query:S(this,ve),observer:this});const u=this.hasListeners();u&&fp(S(this,ve),a,this.options,i)&&ce(this,Ce,_o).call(this),this.updateResult(),u&&(S(this,ve)!==a||Dt(this.options.enabled,S(this,ve))!==Dt(i.enabled,S(this,ve))||nr(this.options.staleTime,S(this,ve))!==nr(i.staleTime,S(this,ve)))&&ce(this,Ce,Wu).call(this);const d=ce(this,Ce,Vu).call(this);u&&(S(this,ve)!==a||Dt(this.options.enabled,S(this,ve))!==Dt(i.enabled,S(this,ve))||d!==S(this,Zn))&&ce(this,Ce,qu).call(this,d)}getOptimisticResult(r){const i=S(this,St).getQueryCache().build(S(this,St),r),a=this.createResult(i,r);return zw(this,a)&&(K(this,ft,a),K(this,Ei,this.options),K(this,Pr,S(this,ve).state)),a}getCurrentResult(){return S(this,ft)}trackResult(r,i){return new Proxy(r,{get:(a,u)=>(this.trackProp(u),i==null||i(u),u==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&S(this,xn).status==="pending"&&S(this,xn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(a,u))})}trackProp(r){S(this,bi).add(r)}getCurrentQuery(){return S(this,ve)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const i=S(this,St).defaultQueryOptions(r),a=S(this,St).getQueryCache().build(S(this,St),i);return a.fetch().then(()=>this.createResult(a,i))}fetch(r){return ce(this,Ce,_o).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),S(this,ft)))}createResult(r,i){var ne;const a=S(this,ve),u=this.options,d=S(this,ft),m=S(this,Pr),v=S(this,Ei),h=r!==a?r.state:S(this,Do),{state:y}=r;let x={...y},C=!1,I;if(i._optimisticResults){const ae=this.hasListeners(),V=!ae&&dp(r,i),de=ae&&fp(r,a,i,u);(V||de)&&(x={...x,...gm(y.data,r.options)}),i._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:L,errorUpdatedAt:_,status:N}=x;I=x.data;let D=!1;if(i.placeholderData!==void 0&&I===void 0&&N==="pending"){let ae;d!=null&&d.isPlaceholderData&&i.placeholderData===(v==null?void 0:v.placeholderData)?(ae=d.data,D=!0):ae=typeof i.placeholderData=="function"?i.placeholderData((ne=S(this,Pi))==null?void 0:ne.state.data,S(this,Pi)):i.placeholderData,ae!==void 0&&(N="success",I=Uu(d==null?void 0:d.data,ae,i),C=!0)}if(i.select&&I!==void 0&&!D)if(d&&I===(m==null?void 0:m.data)&&i.select===S(this,Fo))I=S(this,_i);else try{K(this,Fo,i.select),I=i.select(I),I=Uu(d==null?void 0:d.data,I,i),K(this,_i,I),K(this,Yn,null)}catch(ae){K(this,Yn,ae)}S(this,Yn)&&(L=S(this,Yn),I=S(this,_i),_=Date.now(),N="error");const U=x.fetchStatus==="fetching",b=N==="pending",T=N==="error",A=b&&U,q=I!==void 0,Q={status:N,fetchStatus:x.fetchStatus,isPending:b,isSuccess:N==="success",isError:T,isInitialLoading:A,isLoading:A,data:I,dataUpdatedAt:x.dataUpdatedAt,error:L,errorUpdatedAt:_,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:r.isFetched(),isFetchedAfterMount:x.dataUpdateCount>h.dataUpdateCount||x.errorUpdateCount>h.errorUpdateCount,isFetching:U,isRefetching:U&&!b,isLoadingError:T&&!q,isPaused:x.fetchStatus==="paused",isPlaceholderData:C,isRefetchError:T&&q,isStale:Cc(r,i),refetch:this.refetch,promise:S(this,xn),isEnabled:Dt(i.enabled,r)!==!1};if(this.options.experimental_prefetchInRender){const ae=Q.data!==void 0,V=Q.status==="error"&&!ae,de=be=>{V?be.reject(Q.error):ae&&be.resolve(Q.data)},_e=()=>{const be=K(this,xn,Q.promise=Bu());de(be)},Me=S(this,xn);switch(Me.status){case"pending":r.queryHash===a.queryHash&&de(Me);break;case"fulfilled":(V||Q.data!==Me.value)&&_e();break;case"rejected":(!V||Q.error!==Me.reason)&&_e();break}}return Q}updateResult(){const r=S(this,ft),i=this.createResult(S(this,ve),this.options);if(K(this,Pr,S(this,ve).state),K(this,Ei,this.options),S(this,Pr).data!==void 0&&K(this,Pi,S(this,ve)),ma(i,r))return;K(this,ft,i);const a=()=>{if(!r)return!0;const{notifyOnChangeProps:u}=this.options,d=typeof u=="function"?u():u;if(d==="all"||!d&&!S(this,bi).size)return!0;const m=new Set(d??S(this,bi));return this.options.throwOnError&&m.add("error"),Object.keys(S(this,ft)).some(v=>{const g=v;return S(this,ft)[g]!==r[g]&&m.has(g)})};ce(this,Ce,ym).call(this,{listeners:a()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ce(this,Ce,Ku).call(this)}},St=new WeakMap,ve=new WeakMap,Do=new WeakMap,ft=new WeakMap,Pr=new WeakMap,Ei=new WeakMap,xn=new WeakMap,Yn=new WeakMap,Fo=new WeakMap,_i=new WeakMap,Pi=new WeakMap,br=new WeakMap,jr=new WeakMap,Zn=new WeakMap,bi=new WeakMap,Ce=new WeakSet,_o=function(r){ce(this,Ce,Yu).call(this);let i=S(this,ve).fetch(this.options,r);return r!=null&&r.throwOnError||(i=i.catch(ht)),i},Wu=function(){ce(this,Ce,Qu).call(this);const r=nr(this.options.staleTime,S(this,ve));if(bo.isServer()||S(this,ft).isStale||!$u(r))return;const a=cm(S(this,ft).dataUpdatedAt,r)+1;K(this,br,xr.setTimeout(()=>{S(this,ft).isStale||this.updateResult()},a))},Vu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(S(this,ve)):this.options.refetchInterval)??!1},qu=function(r){ce(this,Ce,Gu).call(this),K(this,Zn,r),!(bo.isServer()||Dt(this.options.enabled,S(this,ve))===!1||!$u(S(this,Zn))||S(this,Zn)===0)&&K(this,jr,xr.setInterval(()=>{(this.options.refetchIntervalInBackground||wc.isFocused())&&ce(this,Ce,_o).call(this)},S(this,Zn)))},Ku=function(){ce(this,Ce,Wu).call(this),ce(this,Ce,qu).call(this,ce(this,Ce,Vu).call(this))},Qu=function(){S(this,br)!==void 0&&(xr.clearTimeout(S(this,br)),K(this,br,void 0))},Gu=function(){S(this,jr)!==void 0&&(xr.clearInterval(S(this,jr)),K(this,jr,void 0))},Yu=function(){const r=S(this,St).getQueryCache().build(S(this,St),this.options);if(r===S(this,ve))return;const i=S(this,ve);K(this,ve,r),K(this,Do,r.state),this.hasListeners()&&(i==null||i.removeObserver(this),r.addObserver(this))},ym=function(r){Qe.batch(()=>{r.listeners&&this.listeners.forEach(i=>{i(S(this,ft))}),S(this,St).getQueryCache().notify({query:S(this,ve),type:"observerResultsUpdated"})})},im);function $w(t,r){return Dt(r.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&r.retryOnMount===!1)}function dp(t,r){return $w(t,r)||t.state.data!==void 0&&Zu(t,r,r.refetchOnMount)}function Zu(t,r,i){if(Dt(r.enabled,t)!==!1&&nr(r.staleTime,t)!=="static"){const a=typeof i=="function"?i(t):i;return a==="always"||a!==!1&&Cc(t,r)}return!1}function fp(t,r,i,a){return(t!==r||Dt(a.enabled,t)===!1)&&(!i.suspense||t.state.status!=="error")&&Cc(t,i)}function Cc(t,r){return Dt(r.enabled,t)!==!1&&t.isStaleByTime(nr(r.staleTime,t))}function zw(t,r){return!ma(t.getCurrentResult(),r)}function hp(t){return{onFetch:(r,i)=>{var y,x,C,I,L;const a=r.options,u=(C=(x=(y=r.fetchOptions)==null?void 0:y.meta)==null?void 0:x.fetchMore)==null?void 0:C.direction,d=((I=r.state.data)==null?void 0:I.pages)||[],m=((L=r.state.data)==null?void 0:L.pageParams)||[];let v={pages:[],pageParams:[]},g=0;const h=async()=>{let _=!1;const N=b=>{Nw(b,()=>r.signal,()=>_=!0)},D=fm(r.options,r.fetchOptions),U=async(b,T,A)=>{if(_)return Promise.reject();if(T==null&&b.pages.length)return Promise.resolve(b);const ie=(()=>{const V={client:r.client,queryKey:r.queryKey,pageParam:T,direction:A?"backward":"forward",meta:r.options.meta};return N(V),V})(),Q=await D(ie),{maxPages:ne}=r.options,ae=A?Iw:Rw;return{pages:ae(b.pages,Q,ne),pageParams:ae(b.pageParams,T,ne)}};if(u&&d.length){const b=u==="backward",T=b?wm:Xu,A={pages:d,pageParams:m},q=T(a,A);v=await U(A,q,b)}else{const b=t??d.length;do{const T=g===0?m[0]??a.initialPageParam:Xu(a,v);if(g>0&&T==null)break;v=await U(v,T),g++}while(g<b)}return v};r.options.persister?r.fetchFn=()=>{var _,N;return(N=(_=r.options).persister)==null?void 0:N.call(_,h,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},i)}:r.fetchFn=h}}}function Xu(t,{pages:r,pageParams:i}){const a=r.length-1;return r.length>0?t.getNextPageParam(r[a],r,i[a],i):void 0}function wm(t,{pages:r,pageParams:i}){var a;return r.length>0?(a=t.getPreviousPageParam)==null?void 0:a.call(t,r[0],r,i[0],i):void 0}function xk(t,r){return r?Xu(t,r)!=null:!1}function Sk(t,r){return!r||!t.getPreviousPageParam?!1:wm(t,r)!=null}var $o,en,st,Tr,tn,qn,om,Uw=(om=class extends mm{constructor(r){super();re(this,tn);re(this,$o);re(this,en);re(this,st);re(this,Tr);K(this,$o,r.client),this.mutationId=r.mutationId,K(this,st,r.mutationCache),K(this,en,[]),this.state=r.state||xm(),this.setOptions(r.options),this.scheduleGc()}setOptions(r){this.options=r,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(r){S(this,en).includes(r)||(S(this,en).push(r),this.clearGcTimeout(),S(this,st).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){K(this,en,S(this,en).filter(i=>i!==r)),this.scheduleGc(),S(this,st).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){S(this,en).length||(this.state.status==="pending"?this.scheduleGc():S(this,st).remove(this))}continue(){var r;return((r=S(this,Tr))==null?void 0:r.continue())??this.execute(this.state.variables)}async execute(r){var m,v,g,h,y,x,C,I,L,_,N,D,U,b,T,A,q,ie;const i=()=>{ce(this,tn,qn).call(this,{type:"continue"})},a={client:S(this,$o),meta:this.options.meta,mutationKey:this.options.mutationKey};K(this,Tr,pm({fn:()=>this.options.mutationFn?this.options.mutationFn(r,a):Promise.reject(new Error("No mutationFn found")),onFail:(Q,ne)=>{ce(this,tn,qn).call(this,{type:"failed",failureCount:Q,error:ne})},onPause:()=>{ce(this,tn,qn).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,st).canRun(this)}));const u=this.state.status==="pending",d=!S(this,Tr).canStart();try{if(u)i();else{ce(this,tn,qn).call(this,{type:"pending",variables:r,isPaused:d}),S(this,st).config.onMutate&&await S(this,st).config.onMutate(r,this,a);const ne=await((v=(m=this.options).onMutate)==null?void 0:v.call(m,r,a));ne!==this.state.context&&ce(this,tn,qn).call(this,{type:"pending",context:ne,variables:r,isPaused:d})}const Q=await S(this,Tr).start();return await((h=(g=S(this,st).config).onSuccess)==null?void 0:h.call(g,Q,r,this.state.context,this,a)),await((x=(y=this.options).onSuccess)==null?void 0:x.call(y,Q,r,this.state.context,a)),await((I=(C=S(this,st).config).onSettled)==null?void 0:I.call(C,Q,null,this.state.variables,this.state.context,this,a)),await((_=(L=this.options).onSettled)==null?void 0:_.call(L,Q,null,r,this.state.context,a)),ce(this,tn,qn).call(this,{type:"success",data:Q}),Q}catch(Q){try{await((D=(N=S(this,st).config).onError)==null?void 0:D.call(N,Q,r,this.state.context,this,a))}catch(ne){Promise.reject(ne)}try{await((b=(U=this.options).onError)==null?void 0:b.call(U,Q,r,this.state.context,a))}catch(ne){Promise.reject(ne)}try{await((A=(T=S(this,st).config).onSettled)==null?void 0:A.call(T,void 0,Q,this.state.variables,this.state.context,this,a))}catch(ne){Promise.reject(ne)}try{await((ie=(q=this.options).onSettled)==null?void 0:ie.call(q,void 0,Q,r,this.state.context,a))}catch(ne){Promise.reject(ne)}throw ce(this,tn,qn).call(this,{type:"error",error:Q}),Q}finally{S(this,st).runNext(this)}}},$o=new WeakMap,en=new WeakMap,st=new WeakMap,Tr=new WeakMap,tn=new WeakSet,qn=function(r){const i=a=>{switch(r.type){case"failed":return{...a,failureCount:r.failureCount,failureReason:r.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,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{...a,data:r.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:r.error,failureCount:a.failureCount+1,failureReason:r.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Qe.batch(()=>{S(this,en).forEach(a=>{a.onMutationUpdate(r)}),S(this,st).notify({mutation:this,type:"updated",action:r})})},om);function xm(){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,zo,sm,Bw=(sm=class extends Oi{constructor(r={}){super();re(this,Sn);re(this,qt);re(this,zo);this.config=r,K(this,Sn,new Set),K(this,qt,new Map),K(this,zo,0)}build(r,i,a){const u=new Uw({client:r,mutationCache:this,mutationId:++Xs(this,zo)._,options:r.defaultMutationOptions(i),state:a});return this.add(u),u}add(r){S(this,Sn).add(r);const i=ea(r);if(typeof i=="string"){const a=S(this,qt).get(i);a?a.push(r):S(this,qt).set(i,[r])}this.notify({type:"added",mutation:r})}remove(r){if(S(this,Sn).delete(r)){const i=ea(r);if(typeof i=="string"){const a=S(this,qt).get(i);if(a)if(a.length>1){const u=a.indexOf(r);u!==-1&&a.splice(u,1)}else a[0]===r&&S(this,qt).delete(i)}}this.notify({type:"removed",mutation:r})}canRun(r){const i=ea(r);if(typeof i=="string"){const a=S(this,qt).get(i),u=a==null?void 0:a.find(d=>d.state.status==="pending");return!u||u===r}else return!0}runNext(r){var a;const i=ea(r);if(typeof i=="string"){const u=(a=S(this,qt).get(i))==null?void 0:a.find(d=>d!==r&&d.state.isPaused);return(u==null?void 0:u.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Qe.batch(()=>{S(this,Sn).forEach(r=>{this.notify({type:"removed",mutation:r})}),S(this,Sn).clear(),S(this,qt).clear()})}getAll(){return Array.from(S(this,Sn))}find(r){const i={exact:!0,...r};return this.getAll().find(a=>sp(i,a))}findAll(r={}){return this.getAll().filter(i=>sp(r,i))}notify(r){Qe.batch(()=>{this.listeners.forEach(i=>{i(r)})})}resumePausedMutations(){const r=this.getAll().filter(i=>i.state.isPaused);return Qe.batch(()=>Promise.all(r.map(i=>i.continue().catch(ht))))}},Sn=new WeakMap,qt=new WeakMap,zo=new WeakMap,sm);function ea(t){var r;return(r=t.options.scope)==null?void 0:r.id}var kn,Xn,kt,Cn,_n,ca,Ju,am,Hw=(am=class extends Oi{constructor(i,a){super();re(this,_n);re(this,kn);re(this,Xn);re(this,kt);re(this,Cn);K(this,kn,i),this.setOptions(a),this.bindMethods(),ce(this,_n,ca).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var u;const a=this.options;this.options=S(this,kn).defaultMutationOptions(i),ma(this.options,a)||S(this,kn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:S(this,kt),observer:this}),a!=null&&a.mutationKey&&this.options.mutationKey&&Mr(a.mutationKey)!==Mr(this.options.mutationKey)?this.reset():((u=S(this,kt))==null?void 0:u.state.status)==="pending"&&S(this,kt).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=S(this,kt))==null||i.removeObserver(this)}onMutationUpdate(i){ce(this,_n,ca).call(this),ce(this,_n,Ju).call(this,i)}getCurrentResult(){return S(this,Xn)}reset(){var i;(i=S(this,kt))==null||i.removeObserver(this),K(this,kt,void 0),ce(this,_n,ca).call(this),ce(this,_n,Ju).call(this)}mutate(i,a){var u;return K(this,Cn,a),(u=S(this,kt))==null||u.removeObserver(this),K(this,kt,S(this,kn).getMutationCache().build(S(this,kn),this.options)),S(this,kt).addObserver(this),S(this,kt).execute(i)}},kn=new WeakMap,Xn=new WeakMap,kt=new WeakMap,Cn=new WeakMap,_n=new WeakSet,ca=function(){var a;const i=((a=S(this,kt))==null?void 0:a.state)??xm();K(this,Xn,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},Ju=function(i){Qe.batch(()=>{var a,u,d,m,v,g,h,y;if(S(this,Cn)&&this.hasListeners()){const x=S(this,Xn).variables,C=S(this,Xn).context,I={client:S(this,kn),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(u=(a=S(this,Cn)).onSuccess)==null||u.call(a,i.data,x,C,I)}catch(L){Promise.reject(L)}try{(m=(d=S(this,Cn)).onSettled)==null||m.call(d,i.data,null,x,C,I)}catch(L){Promise.reject(L)}}else if((i==null?void 0:i.type)==="error"){try{(g=(v=S(this,Cn)).onError)==null||g.call(v,i.error,x,C,I)}catch(L){Promise.reject(L)}try{(y=(h=S(this,Cn)).onSettled)==null||y.call(h,void 0,i.error,x,C,I)}catch(L){Promise.reject(L)}}}this.listeners.forEach(x=>{x(S(this,Xn))})})},am),nn,lm,Ww=(lm=class extends Oi{constructor(r={}){super();re(this,nn);this.config=r,K(this,nn,new Map)}build(r,i,a){const u=i.queryKey,d=i.queryHash??xc(u,i);let m=this.get(d);return m||(m=new Dw({client:r,queryKey:u,queryHash:d,options:r.defaultQueryOptions(i),state:a,defaultOptions:r.getQueryDefaults(u)}),this.add(m)),m}add(r){S(this,nn).has(r.queryHash)||(S(this,nn).set(r.queryHash,r),this.notify({type:"added",query:r}))}remove(r){const i=S(this,nn).get(r.queryHash);i&&(r.destroy(),i===r&&S(this,nn).delete(r.queryHash),this.notify({type:"removed",query:r}))}clear(){Qe.batch(()=>{this.getAll().forEach(r=>{this.remove(r)})})}get(r){return S(this,nn).get(r)}getAll(){return[...S(this,nn).values()]}find(r){const i={exact:!0,...r};return this.getAll().find(a=>op(i,a))}findAll(r={}){const i=this.getAll();return Object.keys(r).length>0?i.filter(a=>op(r,a)):i}notify(r){Qe.batch(()=>{this.listeners.forEach(i=>{i(r)})})}onFocus(){Qe.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){Qe.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},nn=new WeakMap,lm),$e,Jn,er,ji,Ti,tr,Ri,Ii,um,Vw=(um=class{constructor(t={}){re(this,$e);re(this,Jn);re(this,er);re(this,ji);re(this,Ti);re(this,tr);re(this,Ri);re(this,Ii);K(this,$e,t.queryCache||new Ww),K(this,Jn,t.mutationCache||new Bw),K(this,er,t.defaultOptions||{}),K(this,ji,new Map),K(this,Ti,new Map),K(this,tr,0)}mount(){Xs(this,tr)._++,S(this,tr)===1&&(K(this,Ri,wc.subscribe(async t=>{t&&(await this.resumePausedMutations(),S(this,$e).onFocus())})),K(this,Ii,va.subscribe(async t=>{t&&(await this.resumePausedMutations(),S(this,$e).onOnline())})))}unmount(){var t,r;Xs(this,tr)._--,S(this,tr)===0&&((t=S(this,Ri))==null||t.call(this),K(this,Ri,void 0),(r=S(this,Ii))==null||r.call(this),K(this,Ii,void 0))}isFetching(t){return S(this,$e).findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return S(this,Jn).findAll({...t,status:"pending"}).length}getQueryData(t){var i;const r=this.defaultQueryOptions({queryKey:t});return(i=S(this,$e).get(r.queryHash))==null?void 0:i.state.data}ensureQueryData(t){const r=this.defaultQueryOptions(t),i=S(this,$e).build(this,r),a=i.state.data;return a===void 0?this.fetchQuery(t):(t.revalidateIfStale&&i.isStaleByTime(nr(r.staleTime,i))&&this.prefetchQuery(r),Promise.resolve(a))}getQueriesData(t){return S(this,$e).findAll(t).map(({queryKey:r,state:i})=>{const a=i.data;return[r,a]})}setQueryData(t,r,i){const a=this.defaultQueryOptions({queryKey:t}),u=S(this,$e).get(a.queryHash),d=u==null?void 0:u.state.data,m=bw(r,d);if(m!==void 0)return S(this,$e).build(this,a).setData(m,{...i,manual:!0})}setQueriesData(t,r,i){return Qe.batch(()=>S(this,$e).findAll(t).map(({queryKey:a})=>[a,this.setQueryData(a,r,i)]))}getQueryState(t){var i;const r=this.defaultQueryOptions({queryKey:t});return(i=S(this,$e).get(r.queryHash))==null?void 0:i.state}removeQueries(t){const r=S(this,$e);Qe.batch(()=>{r.findAll(t).forEach(i=>{r.remove(i)})})}resetQueries(t,r){const i=S(this,$e);return Qe.batch(()=>(i.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...t},r)))}cancelQueries(t,r={}){const i={revert:!0,...r},a=Qe.batch(()=>S(this,$e).findAll(t).map(u=>u.cancel(i)));return Promise.all(a).then(ht).catch(ht)}invalidateQueries(t,r={}){return Qe.batch(()=>(S(this,$e).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},a=Qe.batch(()=>S(this,$e).findAll(t).filter(u=>!u.isDisabled()&&!u.isStatic()).map(u=>{let d=u.fetch(void 0,i);return i.throwOnError||(d=d.catch(ht)),u.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(a).then(ht)}fetchQuery(t){const r=this.defaultQueryOptions(t);r.retry===void 0&&(r.retry=!1);const i=S(this,$e).build(this,r);return i.isStaleByTime(nr(r.staleTime,i))?i.fetch(r):Promise.resolve(i.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(ht).catch(ht)}fetchInfiniteQuery(t){return t.behavior=hp(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(ht).catch(ht)}ensureInfiniteQueryData(t){return t.behavior=hp(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return va.isOnline()?S(this,Jn).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,$e)}getMutationCache(){return S(this,Jn)}getDefaultOptions(){return S(this,er)}setDefaultOptions(t){K(this,er,t)}setQueryDefaults(t,r){S(this,ji).set(Mr(t),{queryKey:t,defaultOptions:r})}getQueryDefaults(t){const r=[...S(this,ji).values()],i={};return r.forEach(a=>{Po(t,a.queryKey)&&Object.assign(i,a.defaultOptions)}),i}setMutationDefaults(t,r){S(this,Ti).set(Mr(t),{mutationKey:t,defaultOptions:r})}getMutationDefaults(t){const r=[...S(this,Ti).values()],i={};return r.forEach(a=>{Po(t,a.mutationKey)&&Object.assign(i,a.defaultOptions)}),i}defaultQueryOptions(t){if(t._defaulted)return t;const r={...S(this,er).queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return r.queryHash||(r.queryHash=xc(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===Sc&&(r.enabled=!1),r}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...S(this,er).mutations,...(t==null?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){S(this,$e).clear(),S(this,Jn).clear()}},$e=new WeakMap,Jn=new WeakMap,er=new WeakMap,ji=new WeakMap,Ti=new WeakMap,tr=new WeakMap,Ri=new WeakMap,Ii=new WeakMap,um),Sm=O.createContext(void 0),rr=t=>{const r=O.useContext(Sm);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},qw=({client:t,children:r})=>(O.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),f.jsx(Sm.Provider,{value:t,children:r})),km=O.createContext(!1),Kw=()=>O.useContext(km);km.Provider;function Qw(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Gw=O.createContext(Qw()),Yw=()=>O.useContext(Gw),Zw=(t,r,i)=>{const a=i!=null&&i.state.error&&typeof t.throwOnError=="function"?kc(t.throwOnError,[i.state.error,i]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||a)&&(r.isReset()||(t.retryOnMount=!1))},Xw=t=>{O.useEffect(()=>{t.clearReset()},[t])},Jw=({result:t,errorResetBoundary:r,throwOnError:i,query:a,suspense:u})=>t.isError&&!r.isReset()&&!t.isFetching&&a&&(u&&t.data===void 0||kc(i,[t.error,a])),e1=t=>{if(t.suspense){const i=u=>u==="static"?u:Math.max(u??1e3,1e3),a=t.staleTime;t.staleTime=typeof a=="function"?(...u)=>i(a(...u)):i(a),typeof t.gcTime=="number"&&(t.gcTime=Math.max(t.gcTime,1e3))}},t1=(t,r)=>t.isLoading&&t.isFetching&&!r,n1=(t,r)=>(t==null?void 0:t.suspense)&&r.isPending,pp=(t,r,i)=>r.fetchOptimistic(t).catch(()=>{i.clearReset()});function r1(t,r,i){var C,I,L,_;const a=Kw(),u=Yw(),d=rr(),m=d.defaultQueryOptions(t);(I=(C=d.getDefaultOptions().queries)==null?void 0:C._experimental_beforeQuery)==null||I.call(C,m);const v=d.getQueryCache().get(m.queryHash);m._optimisticResults=a?"isRestoring":"optimistic",e1(m),Zw(m,u,v),Xw(u);const g=!d.getQueryCache().get(m.queryHash),[h]=O.useState(()=>new r(d,m)),y=h.getOptimisticResult(m),x=!a&&t.subscribed!==!1;if(O.useSyncExternalStore(O.useCallback(N=>{const D=x?h.subscribe(Qe.batchCalls(N)):ht;return h.updateResult(),D},[h,x]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),O.useEffect(()=>{h.setOptions(m)},[m,h]),n1(m,y))throw pp(m,h,u);if(Jw({result:y,errorResetBoundary:u,throwOnError:m.throwOnError,query:v,suspense:m.suspense}))throw y.error;if((_=(L=d.getDefaultOptions().queries)==null?void 0:L._experimental_afterQuery)==null||_.call(L,m,y),m.experimental_prefetchInRender&&!bo.isServer()&&t1(y,a)){const N=g?pp(m,h,u):v==null?void 0:v.promise;N==null||N.catch(ht).finally(()=>{h.updateResult()})}return m.notifyOnChangeProps?y:h.trackResult(y)}function ze(t,r){return r1(t,Fw)}function i1(t,r){const i=rr(),[a]=O.useState(()=>new Hw(i,t));O.useEffect(()=>{a.setOptions(t)},[a,t]);const u=O.useSyncExternalStore(O.useCallback(m=>a.subscribe(Qe.batchCalls(m)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),d=O.useCallback((m,v)=>{a.mutate(m,v).catch(ht)},[a]);if(u.error&&kc(a.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:d,mutateAsync:u.mutate}}function at({action:t,children:r,className:i,title:a,tone:u="info",...d}){const m=["as-alert",`as-alert--${u}`,i].filter(Boolean).join(" ");return f.jsxs("div",{className:m,role:u==="danger"||u==="warning"?"alert":"status",...d,children:[f.jsx("div",{className:"as-alert__mark","aria-hidden":"true"}),f.jsxs("div",{className:"as-alert__content",children:[a&&f.jsx("div",{className:"as-alert__title",children:a}),f.jsx("div",{className:"as-alert__body",children:r})]}),t&&f.jsx("div",{className:"as-alert__action",children:t})]})}function Cm({tone:t="neutral",children:r,className:i,...a}){return f.jsx("span",{className:["as-badge",`as-badge--${t}`,i].filter(Boolean).join(" "),...a,children:r})}function De({children:t,className:r,fullWidth:i=!1,leadingIcon:a,size:u="md",trailingIcon:d,type:m="button",variant:v="primary",href:g,download:h,target:y,rel:x,...C}){const I=["as-button",`as-button--${v}`,`as-button--${u}`,i?"as-button--full":null,r].filter(Boolean).join(" "),L=f.jsxs(f.Fragment,{children:[a&&f.jsx("span",{className:"as-button__icon","aria-hidden":"true",children:a}),f.jsx("span",{className:"as-button__label",children:t}),d&&f.jsx("span",{className:"as-button__icon","aria-hidden":"true",children:d})]});if(g!==void 0&&!C.disabled){const{disabled:_,form:N,formAction:D,formEncType:U,formMethod:b,formNoValidate:T,formTarget:A,name:q,value:ie,...Q}=C,ne=y==="_blank"?x??"noopener noreferrer":x;return f.jsx("a",{...Q,className:I,href:g,download:h,target:y,rel:ne,children:L})}return f.jsx("button",{type:m,className:I,...C,children:L})}function Ec({children:t,className:r,tone:i="surface",...a}){const u=["as-card",`as-card--${i}`,r].filter(Boolean).join(" ");return f.jsx("div",{className:u,...a,children:t})}function o1(t,r){if(t==null)return{};var i={};for(var a in t)if({}.hasOwnProperty.call(t,a)){if(r.indexOf(a)!==-1)continue;i[a]=t[a]}return i}function jo(){return jo=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var a in i)({}).hasOwnProperty.call(i,a)&&(t[a]=i[a])}return t},jo.apply(null,arguments)}var ec="data-focus-lock",Em="data-focus-lock-disabled",s1="data-no-focus-lock",a1="data-autofocus-inside",l1="data-no-autofocus";function bu(t,r){return typeof t=="function"?t(r):t&&(t.current=r),t}function u1(t,r){var i=O.useState(function(){return{value:t,callback:r,facade:{get current(){return i.value},set current(a){var u=i.value;u!==a&&(i.value=a,i.callback(a,u))}}}})[0];return i.callback=r,i.facade}var c1=typeof window<"u"?O.useLayoutEffect:O.useEffect,mp=new WeakMap;function _m(t,r){var i=u1(null,function(a){return t.forEach(function(u){return bu(u,a)})});return c1(function(){var a=mp.get(i);if(a){var u=new Set(a),d=new Set(t),m=i.current;u.forEach(function(v){d.has(v)||bu(v,null)}),d.forEach(function(v){u.has(v)||bu(v,m)})}mp.set(i,t)},[t]),i}var ju={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},rn=function(){return rn=Object.assign||function(r){for(var i,a=1,u=arguments.length;a<u;a++){i=arguments[a];for(var d in i)Object.prototype.hasOwnProperty.call(i,d)&&(r[d]=i[d])}return r},rn.apply(this,arguments)};function Pm(t,r){var i={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&r.indexOf(a)<0&&(i[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,a=Object.getOwnPropertySymbols(t);u<a.length;u++)r.indexOf(a[u])<0&&Object.prototype.propertyIsEnumerable.call(t,a[u])&&(i[a[u]]=t[a[u]]);return i}function d1(t,r,i){if(i||arguments.length===2)for(var a=0,u=r.length,d;a<u;a++)(d||!(a in r))&&(d||(d=Array.prototype.slice.call(r,0,a)),d[a]=r[a]);return t.concat(d||Array.prototype.slice.call(r))}function bm(t){return t}function jm(t,r){r===void 0&&(r=bm);var i=[],a=!1,u={read:function(){if(a)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(d){var m=r(d,a);return i.push(m),function(){i=i.filter(function(v){return v!==m})}},assignSyncMedium:function(d){for(a=!0;i.length;){var m=i;i=[],m.forEach(d)}i={push:function(v){return d(v)},filter:function(){return i}}},assignMedium:function(d){a=!0;var m=[];if(i.length){var v=i;i=[],v.forEach(d),m=i}var g=function(){var y=m;m=[],y.forEach(d)},h=function(){return Promise.resolve().then(g)};h(),i={push:function(y){m.push(y),h()},filter:function(y){return m=m.filter(y),i}}}};return u}function _c(t,r){return r===void 0&&(r=bm),jm(t,r)}function Tm(t){t===void 0&&(t={});var r=jm(null);return r.options=rn({async:!0,ssr:!1},t),r}var Rm=function(t){var r=t.sideCar,i=Pm(t,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=r.read();if(!a)throw new Error("Sidecar medium not found");return O.createElement(a,rn({},i))};Rm.isSideCarExport=!0;function f1(t,r){return t.useMedium(r),Rm}var Im=_c({},function(t){var r=t.target,i=t.currentTarget;return{target:r,currentTarget:i}}),Nm=_c(),h1=_c(),p1=Tm({async:!0,ssr:typeof document<"u"}),m1=O.createContext(void 0),v1=[],Pc=O.forwardRef(function(r,i){var a,u=O.useState(),d=u[0],m=u[1],v=O.useRef(),g=O.useRef(!1),h=O.useRef(null),y=O.useState({}),x=y[1],C=r.children,I=r.disabled,L=I===void 0?!1:I,_=r.noFocusGuards,N=_===void 0?!1:_,D=r.persistentFocus,U=D===void 0?!1:D,b=r.crossFrame,T=b===void 0?!0:b,A=r.autoFocus,q=A===void 0?!0:A;r.allowTextSelection;var ie=r.group,Q=r.className,ne=r.whiteList,ae=r.hasPositiveIndices,V=r.shards,de=V===void 0?v1:V,_e=r.as,Me=_e===void 0?"div":_e,be=r.lockProps,Ue=be===void 0?{}:be,Se=r.sideCar,W=r.returnFocus,Z=W===void 0?!1:W,Y=r.focusOptions,P=r.onActivation,F=r.onDeactivation,ue=O.useState({}),fe=ue[0],ge=O.useCallback(function(Tt){var Kt=Tt.captureFocusRestore;if(!h.current){var un,Ft=(un=document)==null?void 0:un.activeElement;h.current=Ft,Ft!==document.body&&(h.current=Kt(Ft))}v.current&&P&&P(v.current),g.current=!0,x()},[P]),ye=O.useCallback(function(){g.current=!1,F&&F(v.current),x()},[F]),Pe=O.useCallback(function(Tt){var Kt=h.current;if(Kt){var un=(typeof Kt=="function"?Kt():Kt)||document.body,Ft=typeof Z=="function"?Z(un):Z;if(Ft){var Pn=typeof Ft=="object"?Ft:void 0;h.current=null,Tt?Promise.resolve().then(function(){return un.focus(Pn)}):un.focus(Pn)}}},[Z]),ke=O.useCallback(function(Tt){g.current&&Im.useMedium(Tt)},[]),je=Nm.useMedium,ut=O.useCallback(function(Tt){v.current!==Tt&&(v.current=Tt,m(Tt))},[]),Ar=jo((a={},a[Em]=L&&"disabled",a[ec]=ie,a),Ue),Li=N!==!0,Dr=Li&&N!=="tail",Ai=_m([i,ut]),Ho=O.useMemo(function(){return{observed:v,shards:de,enabled:!L,get active(){return g.current}}},[L,g,de,v]);return Jt.createElement(O.Fragment,null,Li&&[Jt.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:L?-1:0,style:ju}),ae?Jt.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:L?-1:1,style:ju}):null],!L&&Jt.createElement(Se,{id:fe,sideCar:p1,observed:d,disabled:L,persistentFocus:U,crossFrame:T,autoFocus:q,whiteList:ne,shards:de,onActivation:ge,onDeactivation:ye,returnFocus:Pe,focusOptions:Y,noFocusGuards:N}),Jt.createElement(Me,jo({ref:Ai},Ar,{className:Q,onBlur:je,onFocus:ke}),Jt.createElement(m1.Provider,{value:Ho},C)),Dr&&Jt.createElement("div",{"data-focus-guard":!0,tabIndex:L?-1:0,style:ju}))});Pc.propTypes={};function tc(t,r){return tc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,a){return i.__proto__=a,i},tc(t,r)}function g1(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,tc(t,r)}function To(t){"@babel/helpers - typeof";return To=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},To(t)}function y1(t,r){if(To(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var a=i.call(t,r);if(To(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function w1(t){var r=y1(t,"string");return To(r)=="symbol"?r:r+""}function x1(t,r,i){return(r=w1(r))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function S1(t,r){function i(a){return a.displayName||a.name||"Component"}return function(u){var d=[],m;function v(){m=t(d.map(function(h){return h.props})),r(m)}var g=(function(h){g1(y,h);function y(){return h.apply(this,arguments)||this}y.peek=function(){return m};var x=y.prototype;return x.componentDidMount=function(){d.push(this),v()},x.componentDidUpdate=function(){v()},x.componentWillUnmount=function(){var I=d.indexOf(this);d.splice(I,1),v()},x.render=function(){return Jt.createElement(u,this.props)},y})(O.PureComponent);return x1(g,"displayName","SideEffect("+i(u)+")"),g}}var ln=function(t){for(var r=Array(t.length),i=0;i<t.length;++i)r[i]=t[i];return r},Or=function(t){return Array.isArray(t)?t:[t]},Mm=function(t){return Array.isArray(t)?t[0]:t},k1=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"},Om=function(t){return t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t.parentNode.host:t.parentNode},Lm=function(t){return t===document||t&&t.nodeType===Node.DOCUMENT_NODE},C1=function(t){return t.hasAttribute("inert")},E1=function(t,r){return!t||Lm(t)||!k1(t)&&!C1(t)&&r(Om(t))},Am=function(t,r){var i=t.get(r);if(i!==void 0)return i;var a=E1(r,Am.bind(void 0,t));return t.set(r,a),a},_1=function(t,r){return t&&!Lm(t)?j1(t)?r(Om(t)):!1:!0},Dm=function(t,r){var i=t.get(r);if(i!==void 0)return i;var a=_1(r,Dm.bind(void 0,t));return t.set(r,a),a},Fm=function(t){return t.dataset},P1=function(t){return t.tagName==="BUTTON"},$m=function(t){return t.tagName==="INPUT"},zm=function(t){return $m(t)&&t.type==="radio"},b1=function(t){return!(($m(t)||P1(t))&&(t.type==="hidden"||t.disabled))},j1=function(t){var r=t.getAttribute(l1);return![!0,"true",""].includes(r)},bc=function(t){var r;return!!(t&&(!((r=Fm(t))===null||r===void 0)&&r.focusGuard))},nc=function(t){return!bc(t)},T1=function(t){return!!t},R1=function(t,r){var i=Math.max(0,t.tabIndex),a=Math.max(0,r.tabIndex),u=i-a,d=t.index-r.index;if(u){if(!i)return 1;if(!a)return-1}return u||d},I1=function(t){return t.tabIndex<0&&!t.hasAttribute("tabindex")?0:t.tabIndex},jc=function(t,r,i){return ln(t).map(function(a,u){var d=I1(a);return{node:a,index:u,tabIndex:i&&d===-1?(a.dataset||{}).focusGuard?0:-1:d}}).filter(function(a){return!r||a.tabIndex>=0}).sort(R1)},N1=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],Tc=N1.join(","),M1="".concat(Tc,", [data-focus-guard]"),Um=function(t,r){return ln((t.shadowRoot||t).children).reduce(function(i,a){return i.concat(a.matches(r?M1:Tc)?[a]:[],Um(a))},[])},O1=function(t,r){var i;return t instanceof HTMLIFrameElement&&(!((i=t.contentDocument)===null||i===void 0)&&i.body)?Ni([t.contentDocument.body],r):[t]},Ni=function(t,r){return t.reduce(function(i,a){var u,d=Um(a,r),m=(u=[]).concat.apply(u,d.map(function(v){return O1(v,r)}));return i.concat(m,a.parentNode?ln(a.parentNode.querySelectorAll(Tc)).filter(function(v){return v===a}):[])},[])},L1=function(t){var r=t.querySelectorAll("[".concat(a1,"]"));return ln(r).map(function(i){return Ni([i])}).reduce(function(i,a){return i.concat(a)},[])},Rc=function(t,r){return ln(t).filter(function(i){return Am(r,i)}).filter(function(i){return b1(i)})},vp=function(t,r){return r===void 0&&(r=new Map),ln(t).filter(function(i){return Dm(r,i)})},Ic=function(t,r,i){return jc(Rc(Ni(t,i),r),!0,i)},Ro=function(t,r){return jc(Rc(Ni(t),r),!1)},A1=function(t,r){return Rc(L1(t),r)},Rr=function(t,r){return t.shadowRoot?Rr(t.shadowRoot,r):Object.getPrototypeOf(t).contains!==void 0&&Object.getPrototypeOf(t).contains.call(t,r)?!0:ln(t.children).some(function(i){var a;if(i instanceof HTMLIFrameElement){var u=(a=i.contentDocument)===null||a===void 0?void 0:a.body;return u?Rr(u,r):!1}return Rr(i,r)})},D1=function(t){for(var r=new Set,i=t.length,a=0;a<i;a+=1)for(var u=a+1;u<i;u+=1){var d=t[a].compareDocumentPosition(t[u]);(d&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&r.add(u),(d&Node.DOCUMENT_POSITION_CONTAINS)>0&&r.add(a)}return t.filter(function(m,v){return!r.has(v)})},Bm=function(t){return t.parentNode?Bm(t.parentNode):t},Nc=function(t){var r=Or(t);return r.filter(Boolean).reduce(function(i,a){var u=a.getAttribute(ec);return i.push.apply(i,u?D1(ln(Bm(a).querySelectorAll("[".concat(ec,'="').concat(u,'"]:not([').concat(Em,'="disabled"])')))):[a]),i},[])},F1=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&&F1(function(){return r.contentWindow.document})?Io(r.contentWindow.document):r}},$1=function(t,r){return t===r},z1=function(t,r){return!!ln(t.querySelectorAll("iframe")).some(function(i){return $1(i,r)})},Hm=function(t,r){return r===void 0&&(r=Io(Mm(t).ownerDocument)),!r||r.dataset&&r.dataset.focusGuard?!1:Nc(t).some(function(i){return Rr(i,r)||z1(i,r)})},U1=function(t){t===void 0&&(t=document);var r=Io(t);return r?ln(t.querySelectorAll("[".concat(s1,"]"))).some(function(i){return Rr(i,r)}):!1},B1=function(t,r){return r.filter(zm).filter(function(i){return i.name===t.name}).filter(function(i){return i.checked})[0]||t},Mc=function(t,r){return zm(t)&&t.name?B1(t,r):t},H1=function(t){var r=new Set;return t.forEach(function(i){return r.add(Mc(i,t))}),t.filter(function(i){return r.has(i)})},gp=function(t){return t[0]&&t.length>1?Mc(t[0],t):t[0]},yp=function(t,r){return t.indexOf(Mc(r,t))},rc="NEW_FOCUS",W1=function(t,r,i,a,u){var d=t.length,m=t[0],v=t[d-1],g=bc(a);if(!(a&&t.indexOf(a)>=0)){var h=a!==void 0?i.indexOf(a):-1,y=u?i.indexOf(u):h,x=u?t.indexOf(u):-1;if(h===-1)return x!==-1?x:rc;if(x===-1)return rc;var C=h-y,I=i.indexOf(m),L=i.indexOf(v),_=H1(i),N=a!==void 0?_.indexOf(a):-1,D=u?_.indexOf(u):N,U=_.filter(function(Q){return Q.tabIndex>=0}),b=a!==void 0?U.indexOf(a):-1,T=u?U.indexOf(u):b,A=b>=0&&T>=0?T-b:D-N;if(!C&&x>=0||r.length===0)return x;var q=yp(t,r[0]),ie=yp(t,r[r.length-1]);if(h<=I&&g&&Math.abs(C)>1)return ie;if(h>=L&&g&&Math.abs(C)>1)return q;if(C&&Math.abs(A)>1)return x;if(h<=I)return ie;if(h>L)return q;if(C)return Math.abs(C)>1?x:(d+x+C)%d}},V1=function(t){return function(r){var i,a=(i=Fm(r))===null||i===void 0?void 0:i.autofocus;return r.autofocus||a!==void 0&&a!=="false"||t.indexOf(r)>=0}},wp=function(t,r,i){var a=t.map(function(d){var m=d.node;return m}),u=vp(a.filter(V1(i)));return u&&u.length?gp(u):gp(vp(r))},ic=function(t,r){return r===void 0&&(r=[]),r.push(t),t.parentNode&&ic(t.parentNode.host||t.parentNode,r),r},Tu=function(t,r){for(var i=ic(t),a=ic(r),u=0;u<i.length;u+=1){var d=i[u];if(a.indexOf(d)>=0)return d}return!1},Wm=function(t,r,i){var a=Or(t),u=Or(r),d=a[0],m=!1;return u.filter(Boolean).forEach(function(v){m=Tu(m||v,v)||m,i.filter(Boolean).forEach(function(g){var h=Tu(d,g);h&&(!m||Rr(h,m)?m=h:m=Tu(h,m))})}),m},xp=function(t,r){return t.reduce(function(i,a){return i.concat(A1(a,r))},[])},q1=function(t,r){var i=new Map;return r.forEach(function(a){return i.set(a.node,a)}),t.map(function(a){return i.get(a)}).filter(T1)},K1=function(t,r){var i=Io(Or(t).length>0?document:Mm(t).ownerDocument),a=Nc(t).filter(nc),u=Wm(i||t,t,a),d=new Map,m=Ro(a,d),v=m.filter(function(L){var _=L.node;return nc(_)});if(v[0]){var g=Ro([u],d).map(function(L){var _=L.node;return _}),h=q1(g,v),y=h.map(function(L){var _=L.node;return _}),x=h.filter(function(L){var _=L.tabIndex;return _>=0}).map(function(L){var _=L.node;return _}),C=W1(y,x,g,i,r);if(C===rc){var I=wp(m,x,xp(a,d))||wp(m,y,xp(a,d));if(I)return{node:I};console.warn("focus-lock: cannot find any node to move focus into");return}return C===void 0?C:h[C]}},Q1=function(t){var r=Nc(t).filter(nc),i=Wm(t,t,r),a=jc(Ni([i],!0),!0,!0),u=Ni(r,!1);return a.map(function(d){var m=d.node,v=d.index;return{node:m,index:v,lockItem:u.indexOf(m)>=0,guard:bc(m)}})},Oc=function(t,r){t&&("focus"in t&&t.focus(r),"contentWindow"in t&&t.contentWindow&&t.contentWindow.focus())},Ru=0,Iu=!1,Vm=function(t,r,i){i===void 0&&(i={});var a=K1(t,r);if(!Iu&&a){if(Ru>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Iu=!0,setTimeout(function(){Iu=!1},1);return}Ru++,Oc(a.node,i.focusOptions),Ru--}};function Co(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 G1=function(t){if(!t)return null;for(var r=[],i=t;i&&i!==document.body;)r.push({current:Co(i),parent:Co(i.parentElement),left:Co(i.previousElementSibling),right:Co(i.nextElementSibling)}),i=i.parentElement;return{element:Co(t),stack:r,ownerDocument:t.ownerDocument}},Y1=function(t){var r,i,a,u,d;if(t)for(var m=t.stack,v=t.ownerDocument,g=new Map,h=0,y=m;h<y.length;h++){var x=y[h],C=(r=x.parent)===null||r===void 0?void 0:r.call(x);if(C&&v.contains(C)){for(var I=(i=x.left)===null||i===void 0?void 0:i.call(x),L=x.current(),_=C.contains(L)?L:void 0,N=(a=x.right)===null||a===void 0?void 0:a.call(x),D=Ic([C],g),U=(d=(u=_??(I==null?void 0:I.nextElementSibling))!==null&&u!==void 0?u:N)!==null&&d!==void 0?d:I;U;){for(var b=0,T=D;b<T.length;b++){var A=T[b];if(U!=null&&U.contains(A.node))return A.node}U=U.nextElementSibling}if(D.length)return D[0].node}}},qm=function(t){var r=G1(t);return function(){return Y1(r)}},Z1=function(t,r,i){if(!t||!r)return console.error("no element or scope given"),{};var a=Or(r);if(a.every(function(m){return!Rr(m,t)}))return console.error("Active element is not contained in the scope"),{};var u=i?Ic(a,new Map):Ro(a,new Map),d=u.findIndex(function(m){var v=m.node;return v===t});if(d!==-1)return{prev:u[d-1],next:u[d+1],first:u[0],last:u[u.length-1]}},X1=function(t,r){var i=r?Ic(Or(t),new Map):Ro(Or(t),new Map);return{first:i[0],last:i[i.length-1]}},J1=function(t){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},t)},Km=function(t,r,i){r===void 0&&(r={});var a=J1(r),u=Z1(t,a.scope,a.onlyTabbable);if(u){var d=i(u,a.cycle);d&&Oc(d.node,a.focusOptions)}},e0=function(t,r){r===void 0&&(r={}),Km(t,r,function(i,a){var u=i.next,d=i.first;return u||a&&d})},t0=function(t,r){r===void 0&&(r={}),Km(t,r,function(i,a){var u=i.prev,d=i.last;return u||a&&d})},Qm=function(t,r,i){var a,u=X1(t,(a=r.onlyTabbable)!==null&&a!==void 0?a:!0),d=u[i];d&&Oc(d.node,r.focusOptions)},n0=function(t,r){r===void 0&&(r={}),Qm(t,r,"first")},r0=function(t,r){r===void 0&&(r={}),Qm(t,r,"last")};function Lc(t){setTimeout(t,1)}var i0=function(r){return r&&"current"in r?r.current:r},Gm=function(){return document&&document.activeElement===document.body},o0=function(){return Gm()||U1()},vi=null,xt=null,Sp=function(){return null},gi=null,No=!1,Ac=!1,s0=function(){return!0},a0=function(r){return(vi.whiteList||s0)(r)},l0=function(r,i){gi={observerNode:r,portaledElement:i}},u0=function(r){return gi&&gi.portaledElement===r};function kp(t,r,i,a){var u=null,d=t;do{var m=a[d];if(m.guard)m.node.dataset.focusAutoGuard&&(u=m);else if(m.lockItem){if(d!==t)return;u=null}else break}while((d+=i)!==r);u&&(u.node.tabIndex=0)}var c0=function(r){return r?!!No:No==="meanwhile"},d0=function t(r,i,a){return i&&(i.host===r&&(!i.activeElement||a.contains(i.activeElement))||i.parentNode&&t(r,i.parentNode,a))},f0=function(r,i){return i.some(function(a){return d0(r,a,a)})},Ym=function(r){return Ro(r,new Map)},h0=function(r){return!Ym([r.parentNode]).some(function(i){return i.node===r})},ga=function(){var r=!1;if(vi){var i=vi,a=i.observed,u=i.persistentFocus,d=i.autoFocus,m=i.shards,v=i.crossFrame,g=i.focusOptions,h=i.noFocusGuards,y=a||gi&&gi.portaledElement;if(Gm()&&xt&&xt!==document.body&&(!document.body.contains(xt)||h0(xt))){var x=Sp();x&&x.focus()}var C=document&&document.activeElement;if(y){var I=[y].concat(m.map(i0).filter(Boolean)),L=function(){if(!c0(v)||!h||!xt||Ac)return!1;var b=Ym(I),T=b.findIndex(function(A){var q=A.node;return q===xt});return T===0||T===b.length-1};if((!C||a0(C))&&(u||L()||!o0()||!xt&&d)&&(y&&!(Hm(I)||C&&f0(C,I)||u0(C))&&(document&&!xt&&C&&!d?(C.blur&&C.blur(),document.body.focus()):(r=Vm(I,xt,{focusOptions:g}),gi={})),xt=document&&document.activeElement,xt!==document.body&&(Sp=qm(xt)),No=!1),document&&C!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var _=document&&document.activeElement,N=Q1(I),D=N.map(function(U){var b=U.node;return b}).indexOf(_);D>-1&&(N.filter(function(U){var b=U.guard,T=U.node;return b&&T.dataset.focusAutoGuard}).forEach(function(U){var b=U.node;return b.removeAttribute("tabIndex")}),kp(D,N.length,1,N),kp(D,-1,-1,N))}}}return r},Zm=function(r){ga()&&r&&(r.stopPropagation(),r.preventDefault())},Dc=function(){return Lc(ga)},p0=function(r){var i=r.target,a=r.currentTarget;a.contains(i)||l0(a,i)},m0=function(){return null},Xm=function(){Ac=!0},Jm=function(){Ac=!1,No="just",Lc(function(){No="meanwhile"})},v0=function(){document.addEventListener("focusin",Zm),document.addEventListener("focusout",Dc),window.addEventListener("focus",Xm),window.addEventListener("blur",Jm)},g0=function(){document.removeEventListener("focusin",Zm),document.removeEventListener("focusout",Dc),window.removeEventListener("focus",Xm),window.removeEventListener("blur",Jm)};function y0(t){return t.filter(function(r){var i=r.disabled;return!i})}var ev={moveFocusInside:Vm,focusInside:Hm,focusNextElement:e0,focusPrevElement:t0,focusFirstElement:n0,focusLastElement:r0,captureFocusRestore:qm};function w0(t){var r=t.slice(-1)[0];r&&!vi&&v0();var i=vi,a=i&&r&&r.id===i.id;vi=r,i&&!a&&(i.onDeactivation(),t.filter(function(u){var d=u.id;return d===i.id}).length||i.returnFocus(!r)),r?(xt=null,(!a||i.observed!==r.observed)&&r.onActivation(ev),ga(),Lc(ga)):(g0(),xt=null)}Im.assignSyncMedium(p0);Nm.assignMedium(Dc);h1.assignMedium(function(t){return t(ev)});const x0=S1(y0,w0)(m0);var Fc=O.forwardRef(function(r,i){return Jt.createElement(Pc,jo({sideCar:x0,ref:i},r))}),tv=Pc.propTypes||{};tv.sideCar;o1(tv,["sideCar"]);Fc.propTypes={};var da="right-scroll-bar-position",fa="width-before-scroll-bar",S0="with-scroll-bars-hidden",k0="--removed-body-scroll-bar-size",nv=Tm(),Nu=function(){},Ca=O.forwardRef(function(t,r){var i=O.useRef(null),a=O.useState({onScrollCapture:Nu,onWheelCapture:Nu,onTouchMoveCapture:Nu}),u=a[0],d=a[1],m=t.forwardProps,v=t.children,g=t.className,h=t.removeScrollBar,y=t.enabled,x=t.shards,C=t.sideCar,I=t.noRelative,L=t.noIsolation,_=t.inert,N=t.allowPinchZoom,D=t.as,U=D===void 0?"div":D,b=t.gapMode,T=Pm(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=C,q=_m([i,r]),ie=rn(rn({},T),u);return O.createElement(O.Fragment,null,y&&O.createElement(A,{sideCar:nv,removeScrollBar:h,shards:x,noRelative:I,noIsolation:L,inert:_,setCallbacks:d,allowPinchZoom:!!N,lockRef:i,gapMode:b}),m?O.cloneElement(O.Children.only(v),rn(rn({},ie),{ref:q})):O.createElement(U,rn({},ie,{className:g,ref:q}),v))});Ca.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ca.classNames={fullWidth:fa,zeroRight:da};var C0=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function E0(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var r=C0();return r&&t.setAttribute("nonce",r),t}function _0(t,r){t.styleSheet?t.styleSheet.cssText=r:t.appendChild(document.createTextNode(r))}function P0(t){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(t)}var b0=function(){var t=0,r=null;return{add:function(i){t==0&&(r=E0())&&(_0(r,i),P0(r)),t++},remove:function(){t--,!t&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},j0=function(){var t=b0();return function(r,i){O.useEffect(function(){return t.add(r),function(){t.remove()}},[r&&i])}},rv=function(){var t=j0(),r=function(i){var a=i.styles,u=i.dynamic;return t(a,u),null};return r},T0={left:0,top:0,right:0,gap:0},Mu=function(t){return parseInt(t||"",10)||0},R0=function(t){var r=window.getComputedStyle(document.body),i=r[t==="padding"?"paddingLeft":"marginLeft"],a=r[t==="padding"?"paddingTop":"marginTop"],u=r[t==="padding"?"paddingRight":"marginRight"];return[Mu(i),Mu(a),Mu(u)]},I0=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return T0;var r=R0(t),i=document.documentElement.clientWidth,a=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,a-i+r[2]-r[0])}},N0=rv(),yi="data-scroll-locked",M0=function(t,r,i,a){var u=t.left,d=t.top,m=t.right,v=t.gap;return i===void 0&&(i="margin"),`
|
|
42
|
-
.`.concat(S0,` {
|
|
43
|
-
overflow: hidden `).concat(a,`;
|
|
44
|
-
padding-right: `).concat(v,"px ").concat(a,`;
|
|
45
|
-
}
|
|
46
|
-
body[`).concat(yi,`] {
|
|
47
|
-
overflow: hidden `).concat(a,`;
|
|
48
|
-
overscroll-behavior: contain;
|
|
49
|
-
`).concat([r&&"position: relative ".concat(a,";"),i==="margin"&&`
|
|
50
|
-
padding-left: `.concat(u,`px;
|
|
51
|
-
padding-top: `).concat(d,`px;
|
|
52
|
-
padding-right: `).concat(m,`px;
|
|
53
|
-
margin-left:0;
|
|
54
|
-
margin-top:0;
|
|
55
|
-
margin-right: `).concat(v,"px ").concat(a,`;
|
|
56
|
-
`),i==="padding"&&"padding-right: ".concat(v,"px ").concat(a,";")].filter(Boolean).join(""),`
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.`).concat(da,` {
|
|
60
|
-
right: `).concat(v,"px ").concat(a,`;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.`).concat(fa,` {
|
|
64
|
-
margin-right: `).concat(v,"px ").concat(a,`;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.`).concat(da," .").concat(da,` {
|
|
68
|
-
right: 0 `).concat(a,`;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.`).concat(fa," .").concat(fa,` {
|
|
72
|
-
margin-right: 0 `).concat(a,`;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
body[`).concat(yi,`] {
|
|
76
|
-
`).concat(k0,": ").concat(v,`px;
|
|
77
|
-
}
|
|
78
|
-
`)},Cp=function(){var t=parseInt(document.body.getAttribute(yi)||"0",10);return isFinite(t)?t:0},O0=function(){O.useEffect(function(){return document.body.setAttribute(yi,(Cp()+1).toString()),function(){var t=Cp()-1;t<=0?document.body.removeAttribute(yi):document.body.setAttribute(yi,t.toString())}},[])},L0=function(t){var r=t.noRelative,i=t.noImportant,a=t.gapMode,u=a===void 0?"margin":a;O0();var d=O.useMemo(function(){return I0(u)},[u]);return O.createElement(N0,{styles:M0(d,!r,u,i?"":"!important")})},oc=!1;if(typeof window<"u")try{var ta=Object.defineProperty({},"passive",{get:function(){return oc=!0,!0}});window.addEventListener("test",ta,ta),window.removeEventListener("test",ta,ta)}catch{oc=!1}var ui=oc?{passive:!1}:!1,A0=function(t){return t.tagName==="TEXTAREA"},iv=function(t,r){if(!(t instanceof Element))return!1;var i=window.getComputedStyle(t);return i[r]!=="hidden"&&!(i.overflowY===i.overflowX&&!A0(t)&&i[r]==="visible")},D0=function(t){return iv(t,"overflowY")},F0=function(t){return iv(t,"overflowX")},Ep=function(t,r){var i=r.ownerDocument,a=r;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var u=ov(t,a);if(u){var d=sv(t,a),m=d[1],v=d[2];if(m>v)return!0}a=a.parentNode}while(a&&a!==i.body);return!1},$0=function(t){var r=t.scrollTop,i=t.scrollHeight,a=t.clientHeight;return[r,i,a]},z0=function(t){var r=t.scrollLeft,i=t.scrollWidth,a=t.clientWidth;return[r,i,a]},ov=function(t,r){return t==="v"?D0(r):F0(r)},sv=function(t,r){return t==="v"?$0(r):z0(r)},U0=function(t,r){return t==="h"&&r==="rtl"?-1:1},B0=function(t,r,i,a,u){var d=U0(t,window.getComputedStyle(r).direction),m=d*a,v=i.target,g=r.contains(v),h=!1,y=m>0,x=0,C=0;do{if(!v)break;var I=sv(t,v),L=I[0],_=I[1],N=I[2],D=_-N-d*L;(L||D)&&ov(t,v)&&(x+=D,C+=L);var U=v.parentNode;v=U&&U.nodeType===Node.DOCUMENT_FRAGMENT_NODE?U.host:U}while(!g&&v!==document.body||g&&(r.contains(v)||r===v));return(y&&Math.abs(x)<1||!y&&Math.abs(C)<1)&&(h=!0),h},na=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},_p=function(t){return[t.deltaX,t.deltaY]},Pp=function(t){return t&&"current"in t?t.current:t},H0=function(t,r){return t[0]===r[0]&&t[1]===r[1]},W0=function(t){return`
|
|
79
|
-
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
80
|
-
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
81
|
-
`)},V0=0,ci=[];function q0(t){var r=O.useRef([]),i=O.useRef([0,0]),a=O.useRef(),u=O.useState(V0++)[0],d=O.useState(rv)[0],m=O.useRef(t);O.useEffect(function(){m.current=t},[t]),O.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(u));var _=d1([t.lockRef.current],(t.shards||[]).map(Pp),!0).filter(Boolean);return _.forEach(function(N){return N.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),_.forEach(function(N){return N.classList.remove("allow-interactivity-".concat(u))})}}},[t.inert,t.lockRef.current,t.shards]);var v=O.useCallback(function(_,N){if("touches"in _&&_.touches.length===2||_.type==="wheel"&&_.ctrlKey)return!m.current.allowPinchZoom;var D=na(_),U=i.current,b="deltaX"in _?_.deltaX:U[0]-D[0],T="deltaY"in _?_.deltaY:U[1]-D[1],A,q=_.target,ie=Math.abs(b)>Math.abs(T)?"h":"v";if("touches"in _&&ie==="h"&&q.type==="range")return!1;var Q=window.getSelection(),ne=Q&&Q.anchorNode,ae=ne?ne===q||ne.contains(q):!1;if(ae)return!1;var V=Ep(ie,q);if(!V)return!0;if(V?A=ie:(A=ie==="v"?"h":"v",V=Ep(ie,q)),!V)return!1;if(!a.current&&"changedTouches"in _&&(b||T)&&(a.current=A),!A)return!0;var de=a.current||A;return B0(de,N,_,de==="h"?b:T)},[]),g=O.useCallback(function(_){var N=_;if(!(!ci.length||ci[ci.length-1]!==d)){var D="deltaY"in N?_p(N):na(N),U=r.current.filter(function(A){return A.name===N.type&&(A.target===N.target||N.target===A.shadowParent)&&H0(A.delta,D)})[0];if(U&&U.should){N.cancelable&&N.preventDefault();return}if(!U){var b=(m.current.shards||[]).map(Pp).filter(Boolean).filter(function(A){return A.contains(N.target)}),T=b.length>0?v(N,b[0]):!m.current.noIsolation;T&&N.cancelable&&N.preventDefault()}}},[]),h=O.useCallback(function(_,N,D,U){var b={name:_,delta:N,target:D,should:U,shadowParent:K0(D)};r.current.push(b),setTimeout(function(){r.current=r.current.filter(function(T){return T!==b})},1)},[]),y=O.useCallback(function(_){i.current=na(_),a.current=void 0},[]),x=O.useCallback(function(_){h(_.type,_p(_),_.target,v(_,t.lockRef.current))},[]),C=O.useCallback(function(_){h(_.type,na(_),_.target,v(_,t.lockRef.current))},[]);O.useEffect(function(){return ci.push(d),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(_){return _!==d}),document.removeEventListener("wheel",g,ui),document.removeEventListener("touchmove",g,ui),document.removeEventListener("touchstart",y,ui)}},[]);var I=t.removeScrollBar,L=t.inert;return O.createElement(O.Fragment,null,L?O.createElement(d,{styles:W0(u)}):null,I?O.createElement(L0,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function K0(t){for(var r=null;t!==null;)t instanceof ShadowRoot&&(r=t.host,t=t.host),t=t.parentNode;return r}const Q0=f1(nv,q0);var $c=O.forwardRef(function(t,r){return O.createElement(Ca,rn({},t,{ref:r,sideCar:Q0}))});$c.classNames=Ca.classNames;var av=function(t){if(typeof document>"u")return null;var r=Array.isArray(t)?t[0]:t;return r.ownerDocument.body},di=new WeakMap,ra=new WeakMap,ia={},Ou=0,lv=function(t){return t&&(t.host||lv(t.parentNode))},G0=function(t,r){return r.map(function(i){if(t.contains(i))return i;var a=lv(i);return a&&t.contains(a)?a:(console.error("aria-hidden",i,"in not contained inside",t,". Doing nothing"),null)}).filter(function(i){return!!i})},uv=function(t,r,i,a){var u=G0(r,Array.isArray(t)?t:[t]);ia[i]||(ia[i]=new WeakMap);var d=ia[i],m=[],v=new Set,g=new Set(u),h=function(x){!x||v.has(x)||(v.add(x),h(x.parentNode))};u.forEach(h);var y=function(x){!x||g.has(x)||Array.prototype.forEach.call(x.children,function(C){if(v.has(C))y(C);else try{var I=C.getAttribute(a),L=I!==null&&I!=="false",_=(di.get(C)||0)+1,N=(d.get(C)||0)+1;di.set(C,_),d.set(C,N),m.push(C),_===1&&L&&ra.set(C,!0),N===1&&C.setAttribute(i,"true"),L||C.setAttribute(a,"true")}catch(D){console.error("aria-hidden: cannot operate on ",C,D)}})};return y(r),v.clear(),Ou++,function(){m.forEach(function(x){var C=di.get(x)-1,I=d.get(x)-1;di.set(x,C),d.set(x,I),C||(ra.has(x)||x.removeAttribute(a),ra.delete(x)),I||x.removeAttribute(i)}),Ou--,Ou||(di=new WeakMap,di=new WeakMap,ra=new WeakMap,ia={})}},Y0=function(t,r,i){i===void 0&&(i="data-aria-hidden");var a=Array.from(Array.isArray(t)?t:[t]),u=r||av(t);return u?(a.push.apply(a,Array.from(u.querySelectorAll("[aria-live], script"))),uv(a,u,i,"aria-hidden")):function(){return null}},Z0=function(t,r,i){i===void 0&&(i="data-inert-ed");var a=r||av(t);return a?uv(t,a,i,"inert"):function(){return null}},X0=function(){return typeof HTMLElement<"u"&&HTMLElement.prototype.hasOwnProperty("inert")},J0=function(t,r,i){return i===void 0&&(i="data-suppressed"),(X0()?Z0:Y0)(t,r,i)};let Ir=[];const sc=new Set;function cv(){sc.forEach(t=>t())}function e2(t){Ir=Ir.filter(r=>r!==t),Ir.push(t),cv()}function t2(t){Ir=Ir.filter(r=>r!==t),cv()}function Lu(t){return Ir[Ir.length-1]===t}function dv(t,r,i){const a=O.useRef(i),u=O.useRef(null),[d,m]=O.useState(!1);O.useEffect(()=>{a.current=i},[i]);const v=O.useCallback(()=>{const h=u.current;u.current=null,h&&document.contains(h)&&h.focus({preventScroll:!0})},[]),g=O.useCallback(()=>{a.current()},[]);return O.useEffect(()=>{if(!t)return;const h=r.current;if(!h)return;const y=h;u.current=document.activeElement instanceof HTMLElement?document.activeElement:null,e2(y),m(Lu(y));function x(){m(Lu(y))}function C(I){if(!Lu(y))return;const L=I.target instanceof Element?I.target:null,_=L==null?void 0:L.closest('[role="dialog"]');_&&_!==y&&!y.contains(_)||I.key==="Escape"&&(I.preventDefault(),I.stopPropagation(),I.stopImmediatePropagation(),g())}return sc.add(x),window.addEventListener("keydown",C,!0),()=>{window.removeEventListener("keydown",C,!0),sc.delete(x),t2(y),v()}},[g,t,r,v]),O.useEffect(()=>{var x,C;if(!t||!d)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 J0([h,...y])},[t,d,r]),{closeDialog:g,isTopDialog:d}}const n2={sm:"24rem",md:"28.75rem",lg:"35rem",xl:"52rem"};function r2(){return f.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:f.jsx("path",{d:"M4 4L12 12M12 4L4 12",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})})}function fv({bodyClassName:t,children:r,className:i,closeLabel:a="Close",eyebrow:u,footer:d,isOpen:m,onClose:v,overlayClassName:g,size:h="md",subtitle:y,title:x}){const C=O.useRef(null),I=O.useId(),L=O.useId(),{closeDialog:_,isTopDialog:N}=dv(m,C,v);if(!m)return null;const D=["as-modal-overlay",g].filter(Boolean).join(" "),U=["as-modal",`as-modal--${h}`,i].filter(Boolean).join(" "),b=["as-modal__body",t].filter(Boolean).join(" "),T={"--as-modal-width":n2[h]};return f.jsx("div",{className:D,role:"presentation",onMouseDown:_,children:f.jsx($c,{allowPinchZoom:!0,className:"as-modal__scroll-lock",enabled:N,style:T,children:f.jsx(Fc,{autoFocus:!0,className:"as-modal__focus-lock",disabled:!N,focusOptions:{preventScroll:!0},returnFocus:!1,children:f.jsxs("div",{"aria-describedby":y?L:void 0,"aria-hidden":N?void 0:!0,"aria-labelledby":I,"aria-modal":N?"true":void 0,className:U,ref:C,role:"dialog",tabIndex:-1,onMouseDown:A=>A.stopPropagation(),children:[f.jsxs("header",{className:"as-modal__header",children:[f.jsxs("div",{className:"as-modal__titles",children:[u&&f.jsx("div",{className:"as-modal__eyebrow",children:u}),f.jsx("h2",{className:"as-modal__title",id:I,children:x}),y&&f.jsx("p",{className:"as-modal__subtitle",id:L,children:y})]}),f.jsx(i2,{label:a,className:"as-modal__close",onClick:_,children:f.jsx(r2,{})})]}),f.jsx("div",{className:b,children:r}),d&&f.jsx("footer",{className:"as-modal__footer",children:d})]})})})})}function i2({children:t,className:r,label:i,onClick:a}){return f.jsx("button",{type:"button",className:r,onClick:a,"aria-label":i,children:t})}function o2(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 s2({isOpen:t,title:r,body:i,confirmLabel:a="Confirm",cancelLabel:u="Cancel",busyLabel:d="Working…",tone:m="danger",busy:v,error:g,errorTitle:h="That did not work",confirmDisabled:y,onConfirm:x,onClose:C}){return f.jsx(fv,{isOpen:t,onClose:v?()=>{}:C,title:r,size:"sm",children:f.jsxs("div",{className:"as-confirm",children:[f.jsx("div",{className:"as-confirm__body",children:i}),g?f.jsx(at,{tone:"danger",title:h,children:o2(g)}):null,f.jsxs("div",{className:"as-confirm__actions",children:[f.jsx(De,{variant:"ghost",onClick:C,disabled:v,children:u}),f.jsx(De,{variant:m,onClick:x,disabled:v||y,children:v?d:a})]})]})})}function Uo({children:t,className:r,label:i,size:a="md",type:u="button",...d}){const m=["as-icon-button",a==="sm"?"as-icon-button--sm":null,r].filter(Boolean).join(" ");return f.jsx("button",{type:u,className:m,"aria-label":i,title:d.title??i,...d,children:t})}async function hv(t){try{return await navigator.clipboard.writeText(t),!0}catch{return!1}}function bp(){return f.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:[f.jsx("rect",{x:"9",y:"9",width:"12",height:"12",rx:"2"}),f.jsx("path",{d:"M5 15V5a2 2 0 0 1 2-2h10"})]})}function jp(){return f.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:f.jsx("path",{d:"m5 12 5 5L20 7"})})}function zc({value:t,label:r="Copy",copiedLabel:i="Copied",size:a="sm",variant:u="outline",className:d,iconOnly:m,onCopied:v}){const[g,h]=O.useState(!1),y=O.useRef(void 0);O.useEffect(()=>()=>window.clearTimeout(y.current),[]);const x=async()=>{await hv(t)&&(h(!0),v==null||v(),window.clearTimeout(y.current),y.current=window.setTimeout(()=>h(!1),1500))};return m?f.jsx(Uo,{label:g?i:r,size:"sm",className:d,onClick:()=>void x(),children:g?f.jsx(jp,{}):f.jsx(bp,{})}):f.jsx(De,{variant:u,size:a,className:d,leadingIcon:g?f.jsx(jp,{}):f.jsx(bp,{}),"aria-live":"polite",onClick:()=>void x(),children:g?i:r})}function a2(){return f.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:f.jsx("path",{d:"M4 4L12 12M12 4L4 12",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round"})})}function l2({backdropClassName:t,bodyClassName:r,children:i,className:a,closeLabel:u="Close",eyebrow:d,isOpen:m,onClose:v,side:g="right",subtitle:h,title:y}){const x=O.useRef(null),C=O.useId(),I=O.useId(),{closeDialog:L,isTopDialog:_}=dv(m,x,v),N=m&&_,D=["as-drawer-backdrop",m?"as-drawer-backdrop--open":null,t].filter(Boolean).join(" "),U=["as-drawer",`as-drawer--${g}`,m?"as-drawer--open":null,a].filter(Boolean).join(" "),b=["as-drawer__body",r].filter(Boolean).join(" ");return O.useEffect(()=>{if(!m||!_)return;function T(A){const q=x.current;q&&(A.target instanceof Node&&q.contains(A.target)||A.target instanceof Element&&A.target.closest('[role="dialog"], [role="menu"]')!==null||L())}return document.addEventListener("pointerdown",T,!0),()=>document.removeEventListener("pointerdown",T,!0)},[L,m,_]),f.jsxs(f.Fragment,{children:[f.jsx("div",{"aria-hidden":!m,className:D,onClick:L}),f.jsx($c,{allowPinchZoom:!0,className:"as-drawer__scroll-lock",enabled:m&&_,children:f.jsx(Fc,{autoFocus:!0,className:"as-drawer__focus-lock",disabled:!m||!_,focusOptions:{preventScroll:!0},returnFocus:!1,children:f.jsxs("aside",{"aria-describedby":h?I:void 0,"aria-hidden":N?void 0:!0,"aria-labelledby":C,"aria-modal":N?"true":void 0,className:U,ref:x,role:"dialog",tabIndex:-1,children:[f.jsxs("header",{className:"as-drawer__header",children:[f.jsxs("div",{className:"as-drawer__titles",children:[d&&f.jsx("div",{className:"as-drawer__eyebrow",children:d}),f.jsx("h2",{className:"as-drawer__title",id:C,children:y}),h&&f.jsx("p",{className:"as-drawer__subtitle",id:I,children:h})]}),f.jsx("button",{type:"button",className:"as-drawer__close",onClick:L,"aria-label":u,children:f.jsx(a2,{})})]}),f.jsx("div",{className:b,children:i})]})})})]})}const u2=["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"],pv=["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"],mv="#10B981";function c2({height:t=24,className:r}){return f.jsxs("svg",{className:r,height:t,width:t*104/36,viewBox:"0 0 104 36",fill:"none",role:"img","aria-label":"Antseed",children:[pv.map(i=>f.jsx("path",{d:i,fill:mv},i)),u2.map(i=>f.jsx("path",{d:i,fill:"currentColor"},i))]})}function d2({size:t=24,className:r}){return f.jsx("svg",{className:r,height:t,width:t,viewBox:"4 0 28 32",fill:"none",role:"img","aria-label":"Antseed",children:pv.map(i=>f.jsx("path",{d:i,fill:mv},i))})}function Mo({className:t,height:r,radius:i,style:a,width:u,...d}){const m=["as-skeleton",t].filter(Boolean).join(" ");return f.jsx("div",{className:m,style:{...a,...r!==void 0?{height:r}:{},...i!==void 0?{borderRadius:i}:{},...u!==void 0?{width:u}:{}},...d})}function Ck({title:t,description:r,actions:i}){return f.jsxs("header",{className:"as-page-header",children:[f.jsxs("div",{className:"as-page-header__text",children:[f.jsx("h1",{children:t}),r&&f.jsx("p",{children:r})]}),i&&f.jsx("div",{className:"as-page-header__actions",children:i})]})}function Ek({title:t,description:r,actions:i,children:a,flush:u,className:d}){return f.jsxs("section",{className:["as-panel",d].filter(Boolean).join(" "),children:[(t||i)&&f.jsxs("div",{className:"as-panel__head",children:[f.jsxs("div",{children:[t&&f.jsx("h2",{className:"as-panel__title",children:t}),r&&f.jsx("p",{className:"as-panel__desc",children:r})]}),i&&f.jsx("div",{className:"as-panel__actions",children:i})]}),f.jsx(Ec,{className:"as-panel__card",children:f.jsx("div",{className:u?"as-panel__body as-panel__body--flush":"as-panel__body",children:a})})]})}function f2(t){return t!==null&&t>=1?"danger":t!==null&&t>=.8?"warning":"default"}function _k({label:t,value:r,sub:i,meter:a,tone:u}){const d=a==null?null:Math.max(0,Math.min(1,a));return f.jsxs(Ec,{className:"as-stat",children:[f.jsx("div",{className:"as-stat__label",children:t}),f.jsx("div",{className:"as-stat__value",children:r}),i&&f.jsx("div",{className:"as-stat__sub",children:i}),d!==null&&f.jsx("div",{className:`as-meter as-meter--${u??f2(d)}`,role:"meter","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(d*100),children:f.jsx("span",{style:{width:`${d*100}%`}})})]})}function Pk({title:t,body:r,action:i,icon:a}){return f.jsxs("div",{className:"as-empty",children:[a&&f.jsx("div",{className:"as-empty__icon","aria-hidden":"true",children:a}),f.jsx("div",{className:"as-empty__title",children:t}),r&&f.jsx("div",{className:"as-empty__body",children:r}),i&&f.jsx("div",{className:"as-empty__action",children:i})]})}function Mi({rows:t=4,height:r=28}){return f.jsx("div",{className:"as-loading","aria-busy":"true","aria-label":"Loading",children:Array.from({length:t},(i,a)=>f.jsx(Mo,{height:r},a))})}function bk({items:t}){return f.jsx("dl",{className:"as-details",children:t.map(([r,i],a)=>f.jsxs("div",{className:"as-details__row",children:[f.jsx("dt",{children:r}),f.jsx("dd",{children:i})]},a))})}function jk({code:t,label:r}){return f.jsxs("div",{className:"as-code",children:[f.jsxs("div",{className:"as-code__bar",children:[f.jsx("span",{className:"as-code__label",children:r}),f.jsx(zc,{value:t})]}),f.jsx("pre",{children:f.jsx("code",{children:t})})]})}function Tk({secret:t,note:r="Copy it now. It will not be shown again."}){return f.jsxs("div",{className:"as-secret",children:[f.jsxs("div",{className:"as-secret__row",children:[f.jsx("code",{className:"as-secret__value",children:t}),f.jsx(zc,{value:t})]}),f.jsx("p",{className:"as-secret__note",children:r})]})}function h2(t,r){return["as-field",r==="sm"?"as-field--sm":null,t].filter(Boolean).join(" ")}function p2(t,r){return["as-field__input",t,r?"as-field__input--mono":null].filter(Boolean).join(" ")}function m2({error:t,hint:r}){return t?f.jsx("span",{className:"as-field__error",children:t}):r?f.jsx("span",{className:"as-field__hint",children:r}):null}function v2({className:t,error:r,hint:i,id:a,label:u,size:d,mono:m,...v}){const g=O.useId(),h=a??v.name??g;return f.jsxs("label",{className:h2(t,d),htmlFor:h,children:[u&&f.jsx("span",{className:"as-field__label",children:u}),f.jsx("input",{id:h,className:p2(void 0,m),"aria-invalid":r?!0:void 0,...v}),f.jsx(m2,{error:r,hint:i})]})}const vv=O.createContext(()=>{});function gv(){return O.useContext(vv)}let g2=1;function y2({children:t}){const[r,i]=O.useState([]),a=O.useCallback((u,d="success")=>{const m=g2++;i(v=>[...v.slice(-3),{id:m,tone:d,text:u}]),window.setTimeout(()=>i(v=>v.filter(g=>g.id!==m)),4e3)},[]);return f.jsxs(vv.Provider,{value:a,children:[t,f.jsx("div",{className:"as-toasts",role:"status","aria-live":"polite",children:r.map(u=>f.jsx("div",{className:`as-toast as-toast--${u.tone}`,children:u.text},u.id))})]})}const w2="/console/api",x2="x-antseed-console";class Ea extends Error{constructor(i,a,u,d={}){super(u);xu(this,"details");this.status=i,this.code=a,this.name="ConsoleApiError",this.details=d}}function Lr(t,r){return t instanceof Ea&&(r===void 0||t.code===r)}const Tp={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.",max_keys_reached:"You already have as many keys as you are allowed. Revoke one, or ask an admin to raise your limit."};function _a(t){return t instanceof Ea&&Object.hasOwn(Tp,t.code)?Tp[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 oa(t){if(!t)return"";const r=new URLSearchParams;for(const[a,u]of Object.entries(t))u==null||u===""||r.set(a,String(u));const i=r.toString();return i?`?${i}`:""}async function S2(t){let r=`http_${t.status}`,i=t.statusText||`Request failed (${t.status})`,a={};try{const u=await t.json();u!=null&&u.error&&typeof u.error.code=="string"&&(r=u.error.code),u!=null&&u.error&&typeof u.error.message=="string"&&(i=u.error.message),u&&typeof u=="object"&&(a={...u.error,...u})}catch{}return new Ea(t.status,r,i,a)}function k2(t=(i,a)=>fetch(i,a),r=w2){async function i(h,y,x={}){const C={accept:"application/json"};h!=="GET"&&h!=="HEAD"&&(C[x2]="1");let L;x.body!==void 0&&(C["content-type"]="application/json",L=JSON.stringify(x.body));let _;try{_=await t(`${r}${y}${oa(x.query)}`,{method:h,headers:C,body:L,credentials:"same-origin"})}catch{throw new Ea(0,"network_error","Could not reach the gateway.")}if(!_.ok)throw await S2(_);return _.status===204?void 0:(_.headers.get("content-type")??"").includes("json")?await _.json():await _.text()}const a=(h,y)=>i("GET",h,{query:y}),u=(h,y)=>i("POST",h,{body:y??{}}),d=(h,y)=>i("PATCH",h,{body:y}),m=(h,y)=>i("PUT",h,{body:y}),v=h=>i("DELETE",h),g=encodeURIComponent;return{request:i,auth:{config:()=>a("/auth/config"),me:()=>a("/auth/me"),setup:h=>u("/auth/setup",{token:h}),invite:h=>u("/auth/invite",{token:h}),passkeyRegisterOptions:h=>u("/auth/passkey/register/options",{enrollment:h}),passkeyRegisterVerify:(h,y)=>u("/auth/passkey/register/verify",{enrollment:y,response:h}),passkeyLoginOptions:()=>u("/auth/passkey/login/options",{}),passkeyLoginVerify:h=>u("/auth/passkey/login/verify",{response:h}),walletNonce:h=>u("/auth/wallet/nonce",{address:h}),walletVerify:(h,y,x)=>u("/auth/wallet/verify",{message:h,signature:y,enrollment:x}),oidcStartUrl:h=>`${r}/auth/oidc/start${oa({enrollment:h})}`,oidcLinkUrl:()=>`${r}/auth/oidc/start?link=1`,reauthPasskeyOptions:()=>u("/auth/reauth/passkey/options",{}),reauthPasskeyVerify:h=>u("/auth/reauth/passkey/verify",{response:h}),reauthWalletNonce:h=>u("/auth/reauth/wallet/nonce",{address:h}),reauthWalletVerify:(h,y)=>u("/auth/reauth/wallet/verify",{message:h,signature:y}),apiKey:h=>u("/auth/api-key",{key:h}),logout:()=>u("/auth/logout")},members:{list:()=>a("/members"),update:(h,y,x)=>d(`/members/${g(h)}`,yr(y,x)),disable:h=>u(`/members/${g(h)}/disable`),enable:h=>u(`/members/${g(h)}/enable`),removeCredential:(h,y)=>v(`/members/${g(h)}/credentials/${g(y)}`)},invites:{list:()=>a("/invites"),create:h=>u("/invites",h),revoke:h=>v(`/invites/${g(h)}`)},workspaces:{list:()=>a("/workspaces"),get:h=>a(`/workspaces/${g(h)}`),create:(h,y)=>u("/workspaces",yr(h,y)),update:(h,y,x)=>d(`/workspaces/${g(h)}`,yr(y,x)),remove:h=>v(`/workspaces/${g(h)}`),members:h=>a(`/workspaces/${g(h)}/members`),setMember:(h,y,x)=>m(`/workspaces/${g(h)}/members/${g(y)}`,{role:x}),removeMember:(h,y)=>v(`/workspaces/${g(h)}/members/${g(y)}`)},keys:{list:(h={})=>a("/keys",h),create:(h,y)=>u("/keys",yr(h,y)),update:(h,y,x)=>d(`/keys/${g(h)}`,yr(y,x)),rotate:h=>u(`/keys/${g(h)}/rotate`),revoke:h=>u(`/keys/${g(h)}/revoke`)},adminTokens:{list:()=>a("/admin-tokens"),create:(h,y,x)=>u("/admin-tokens",{label:h,scope:y,...x!==void 0?{expiresInDays:x}:{}}),revoke:h=>v(`/admin-tokens/${g(h)}`)},usage:{report:h=>a("/usage",h),requests:h=>a("/requests",h),request:h=>a(`/requests/${g(h)}`),exportUrl:h=>`${r}/usage/export.csv${oa(h)}`},audit:{list:h=>a("/audit",h)},wallet:{get:h=>a(`/workspaces/${g(h)}/wallet`),cardLink:(h,y,x)=>u(`/workspaces/${g(h)}/wallet/card-link`,{amountUsd:y,provider:x}),watch:(h,y)=>u(`/workspaces/${g(h)}/wallet/watch`,{mode:y}),operator:(h,y=!1)=>a(`/workspaces/${g(h)}/wallet/operator`,{fresh:y?1:void 0}),operators:()=>a("/wallet/operators"),operatorSync:(h,y)=>u(`/workspaces/${g(h)}/wallet/operator/sync`,y?{txHash:y}:{}),operatorAuth:(h,y)=>u(`/workspaces/${g(h)}/wallet/operator-auth`,{operator:y}),channels:(h,y=!1,x=!1)=>a(`/workspaces/${g(h)}/channels`,{all:y?1:void 0,fresh:x?1:void 0}),closeChannel:(h,y)=>u(`/workspaces/${g(h)}/channels/close`,{peerId:y}),rewards:h=>a(`/workspaces/${g(h)}/rewards`),chain:()=>a("/chain")},chat:{models:h=>a("/chat/models",{workspace:h}),context:h=>a("/chat/context",{workspace:h}),threads:h=>a("/chat/threads",{workspace:h}),thread:(h,y)=>a(`/chat/threads/${g(y)}`,{workspace:h}),deleteThread:(h,y)=>v(`/chat/threads/${g(y)}${oa({workspace:h})}`)},network:{peers:()=>a("/peers"),models:()=>a("/models"),routePreview:h=>a("/route-preview",h),gatewayPolicy:()=>a("/routing"),buyerLimits:()=>a("/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:()=>a("/peer-lists"),createPeerList:h=>u("/peer-lists",h),updatePeerList:(h,y)=>d(`/peer-lists/${g(h)}`,y),removePeerList:h=>v(`/peer-lists/${g(h)}`)},presets:{list:h=>a("/presets",{workspace:h}),create:(h,y)=>u("/presets",yr(h,y)),update:(h,y,x)=>d(`/presets/${g(h)}`,yr(y,x)),remove:h=>v(`/presets/${g(h)}`)},settings:{status:()=>a("/status"),get:()=>a("/settings"),updateBuyer:h=>d("/settings/buyer",h),setObservability:h=>m("/settings/observability",h)}}}function yv(t){return!!t&&"ownerRoutingPolicy"in t}const he=k2();function Pa(t){return t.orgRole==="owner"||t.orgRole==="admin"}function Uc(t){return Pa(t)||t.workspaceRole==="admin"}const Bc=[{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:"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 Hc(t,r){const i=Bc.find(a=>a.id===t);return i?i.access==="orgAdmin"?Pa(r):i.access==="workspaceAdmin"?Uc(r):!0:!1}function C2(t){return Bc.filter(r=>Hc(r.id,t))}function E2(t,r){const i=t.me.workspaces.find(a=>a.workspace.id===r);return{orgRole:t.me.member.orgRole,workspaceRole:(i==null?void 0:i.role)??null}}const Wc={owner:"Owner",admin:"Admin",member:"Member"};function _2(t,r){return r?`${t}/${encodeURIComponent(r)}`:t}function P2(t){const r=t.join("/");return r===""?null:r}function b2(t,r){return t==="network"?_2("providers",P2(r)):null}const wv=O.createContext(null);function ir(){const t=O.useContext(wv);if(!t)throw new Error("useConsole outside the console shell");return t}const xv="antseed-console-workspace";function j2(){try{return localStorage.getItem(xv)}catch{return null}}function T2(t){try{localStorage.setItem(xv,t)}catch{}}function Rp(t,r){const i=t.workspaces.map(a=>a.workspace);return i.find(a=>a.id===r)??i.find(a=>a.isDefault)??i[0]??null}function Rk(){const{workspace:t,viewer:r,me:i}=ir();return Uc(r)?{workspace:t.id}:{workspace:t.id,member:i.member.id}}const ac="antseed-console-theme";function Sv(){try{const t=localStorage.getItem(ac);return t==="light"||t==="dark"?t:"system"}catch{return"system"}}function R2(){const t=Sv();t!=="system"&&(document.documentElement.dataset.theme=t)}function I2(){const[t,r]=O.useState(Sv);return O.useEffect(()=>{t==="system"?delete document.documentElement.dataset.theme:document.documentElement.dataset.theme=t;try{t==="system"?localStorage.removeItem(ac):localStorage.setItem(ac,t)}catch{}},[t]),[t,r]}function N2(){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 M2(t){try{return decodeURIComponent(t)}catch{return t}}function kv(t,r="",i=""){const u=(t.startsWith(Oo)?t.slice(Oo.length):t).split("/").filter(Boolean).map(M2);return{page:u[0]??"",rest:u.slice(1),query:new URLSearchParams(r),hash:i.replace(/^#/,"")}}function Ip(){return kv(window.location.pathname,window.location.search,window.location.hash)}const lc=new Set;function an(t,r={}){const i=t.startsWith("/")?`${Oo}${t}`:`${Oo}/${t}`;r.replace?window.history.replaceState(null,"",i):window.history.pushState(null,"",i),lc.forEach(a=>a())}function Vc(){const[t,r]=O.useState(Ip);return O.useEffect(()=>{const i=()=>r(Ip());return lc.add(i),window.addEventListener("popstate",i),()=>{lc.delete(i),window.removeEventListener("popstate",i)}},[]),t}function ba(t){return`${Oo}/${t.replace(/^\//,"")}`}function qc(t){return r=>{r.defaultPrevented||r.button!==0||r.metaKey||r.ctrlKey||r.shiftKey||r.altKey||(r.preventDefault(),an(t))}}const O2=6;function Ct(t){if(t==null||t==="")return 0;const r=Number(t);return Number.isFinite(r)?r:0}function L2(t,r={}){if(t==null)return"—";const i=typeof t=="number"?t:Ct(t),a=i<0?"-":"",u=Math.abs(i);return r.compact&&u>=1e4?`${a}$${new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1}).format(u)}`:u!==0&&u<1e-4?`${a}<$0.0001`:u!==0&&u<.01?`${a}$${u.toFixed(4).replace(/0+$/,"").replace(/\.$/,"")}`:`${a}$${u.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2})}`}function Ik(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 a=i[1].replace(/^0+(?=\d)/,""),u=(i[2]??"").padEnd(O2,"0");return`${a}.${u}`}function Nk(t){return t==null?"":t.includes(".")?t.replace(/0+$/,"").replace(/\.$/,""):t}function A2(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 Mk(t){return A2(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 Ok(t){return t?t.min===t.max?wi(t.min):`${t.min===0?"$0":wi(t.min)}–${wi(t.max)}`:"—"}function Lk(t){return t==null?"—":t>=1e3?`${(t/1e3).toFixed(t>=1e4?0:1)} s`:`${Math.round(t)} ms`}function Ak(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 D2(t){return t?new Date(t).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}function F2(t){return t?new Date(t).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):"—"}function Np(t,r=Date.now()){if(!t)return"Never";const i=r-t,a=i<0,u=Math.abs(i),d=6e4,m=60*d,v=24*m;let g;if(u<d)return a?"in a moment":"just now";if(u<m)g=`${Math.round(u/d)} min`;else if(u<v)g=`${Math.round(u/m)} h`;else if(u<30*v)g=`${Math.round(u/v)} d`;else return F2(t);return a?`in ${g}`:`${g} ago`}function sn(t,r=6,i=4){return t?t.length<=r+i+1?t:`${t.slice(0,r)}…${t.slice(-i)}`:"—"}const Cv=["daily","weekly","monthly","total"],Dk={daily:"Daily",weekly:"Weekly",monthly:"Monthly",total:"Total"};function $2(t){if(!t)return"No limits";const r={daily:"/day",weekly:"/week",monthly:"/month",total:" total"},i=Cv.filter(a=>t[a]!==null).map(a=>`${L2(t[a])}${r[a]}`);return i.length>0?i.join(" · "):"No limits"}function Fk(t,r=Date.now()){const i=new Date(r),a=Date.UTC(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate());if(t==="daily")return a;if(t==="monthly")return Date.UTC(i.getUTCFullYear(),i.getUTCMonth(),1);const u=(i.getUTCDay()+6)%7;return a-u*864e5}const z2=15*6e4;function U2(t){return t.status==="active"||t.status==="open"||t.status==="closing"||t.status==="withdrawable"}function $k(t,r){return t.status==="withdrawable"?"withdraw":t.status!=="active"&&t.status!=="open"?"none":t.canCooperativeClose&&!r?"cooperative":"on-chain"}function B2(t){return t.closeRequestedAt===null?null:t.closeRequestedAt+z2}function H2(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 zk(t,r=Date.now()){if(t.status==="closing"){const i=B2(t);return i===null?"closing":`closing · ${H2(i,r)} left`}return t.status==="withdrawable"?"ready to withdraw":t.status==="timedout"?"withdrawn":t.status}function Uk(t){return t.status==="active"||t.status==="open"?"success":t.status==="withdrawable"?"warning":t.status==="closing"?"info":"neutral"}function W2(t){return Math.max(0,Ct(t.reserved)-Ct(t.spent))}function V2(t){const r=t.filter(i=>i.status==="withdrawable");return{count:r.length,amount:r.reduce((i,a)=>i+W2(a),0)}}function Bk(t){return t.filter(U2).reduce((r,i)=>r+Math.max(0,Ct(i.spent)-Ct(i.settled??"0")),0)}function Hk(t){return Ct(t.reserved)>0&&Ct(t.available)<=0&&Ct(t.walletUsdc)<=0}function Wk(t){const r=Ct(t.walletUsdc),i=t.creditLimit===null?0:Ct(t.creditLimit),a=Math.max(0,i-Ct(t.available)-Ct(t.reserved));return i>0&&r>a?"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 Vk(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 q2={usdc:["usdc","USDC","usdcToken"],deposits:["deposits","AntseedDeposits","antseedDeposits"],usageRewards:["usageRewards","AntseedUsageRewards","UsageRewards"],channels:["channels","AntseedChannels","antseedChannels"]};function qk(t,r){if(!t)return null;const i=Object.entries(t.contracts);for(const a of q2[r]){const u=i.find(([d])=>d.toLowerCase()===a.toLowerCase());if(u&&/^0x[0-9a-fA-F]{40}$/.test(u[1]))return u[1]}return null}function Lo(t,r){return!!t&&!!r&&t.toLowerCase()===r.toLowerCase()}const K2="0x0000000000000000000000000000000000000000";function Kc(t){return!!t&&/^0x[0-9a-fA-F]{40}$/.test(t)&&t.toLowerCase()!==K2}function Kk(t,r){return t!=null&&t.explorerUrl?`${t.explorerUrl.replace(/\/+$/,"")}/tx/${r}`:null}const Re={group:t=>[t],me:["me"],authConfig:["auth-config"],status:["status"],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],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"]},Qk=["routing","workspaces","members","keys","presets"];function Q2(t,r=he){return{queryKey:Re.workspace(t),queryFn:()=>r.workspaces.get(t)}}function Gk(t,r=!0){return ze({...Q2(t),enabled:r})}function Yk(t=!0){return ze({queryKey:Re.peers,queryFn:he.network.peers,staleTime:3e4,enabled:t})}function Zk(){return ze({queryKey:Re.models,queryFn:he.network.models,staleTime:3e4})}function Xk(t=!0){return ze({queryKey:Re.peerLists,queryFn:he.network.peerLists,staleTime:3e4,enabled:t})}function Jk(){return ze({queryKey:Re.workspaces,queryFn:he.workspaces.list})}function eC(t,r=!0){return ze({queryKey:Re.workspaceMembers(t),queryFn:()=>he.workspaces.members(t),enabled:r})}function tC(t=!0){return ze({queryKey:Re.members,queryFn:he.members.list,enabled:t})}function nC(){return ze({queryKey:Re.invites,queryFn:he.invites.list})}function rC(t,r=!0){return ze({queryKey:Re.keys(t),queryFn:()=>he.keys.list(t),enabled:r})}function iC(t,r=!0){return ze({queryKey:Re.presets(t),queryFn:()=>he.presets.list(t),enabled:r})}function oC(t,r=!0){return ze({queryKey:Re.wallet(t),queryFn:()=>he.wallet.get(t),enabled:r})}function sC(){return ze({queryKey:Re.gatewayPolicy,queryFn:he.network.gatewayPolicy})}function aC(){return ze({queryKey:Re.buyerLimits,queryFn:he.network.buyerLimits})}function lC(){return ze({queryKey:Re.adminTokens,queryFn:he.adminTokens.list})}function G2(){return ze({queryKey:Re.me,queryFn:he.auth.me})}function Qc(t=!0){return ze({queryKey:Re.authConfig,queryFn:he.auth.config,enabled:t})}function Ev(){return ze({queryKey:Re.status,queryFn:he.settings.status,refetchInterval:3e4})}function uC(t=!0){return ze({queryKey:Re.chain,queryFn:he.wallet.chain,staleTime:1/0,enabled:t})}function cC(t){const r=new Set;for(const i of t??[])for(const a of i.services)r.add(a.service);return[...r].sort()}const _v=t=>["wallet-operator",t],Pv={get:(t,r=!1)=>he.wallet.operator(t,r),sync:(t,r)=>he.wallet.operatorSync(t,r),authorize:(t,r)=>he.wallet.operatorAuth(t,r)};function dC(t,r=!0){return ze({queryKey:_v(t),queryFn:()=>Pv.get(t),staleTime:3e4,enabled:r})}function Y2(t=!0){return ze({queryKey:Re.operators,queryFn:()=>he.wallet.operators(),staleTime:6e4,enabled:t})}function Z2(t){return(t==null?void 0:t.relation)==="none"}function fC(t){const r=rr(),i=a=>{r.setQueryData(_v(t),a),r.invalidateQueries({queryKey:Re.operators}),r.invalidateQueries({queryKey:Re.wallet(t)}),r.invalidateQueries({queryKey:Re.rewards(t)})};return{apply:i,refresh:async()=>i(await Pv.get(t,!0))}}function hC(t,r){const i=t.operator,a=sn(i),u=Kc(i)&&Lo(r,i),d=m=>u?{canManage:!0,manageHint:null}:{canManage:!1,manageHint:`Only ${m} can transfer or remove it: connect ${a} 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 ${a}`,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,...d("this wallet")};case"member":{const m=t.memberLabel?`${t.memberLabel}'s wallet`:"Another member's wallet";return{tone:"info",badge:t.memberLabel?t.memberLabel:"Member",title:`${m} ${a}`,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,...d(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 ${a}`,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,...d("that wallet")}}}function pC(t,r,i){if(!t)return{ok:!1,reason:"Checking the authorized wallet…",operator:null};const a=Kc(t.operator)?t.operator:null;return a?t.relation==="self"?{ok:!1,operator:a,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?Lo(r,a)?{ok:!0,operator:a,reason:null}:{ok:!1,operator:a,reason:`The connected wallet ${sn(r)} is not the authorized wallet ${sn(a)}. Switch to ${sn(a)} in your wallet to ${i}.`}:{ok:!1,operator:a,reason:`Connect the authorized wallet ${sn(a)} 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 mC(t,r=Date.now()){return t.eligibleWallets.map(i=>({...i,ready:i.eligibleAt<=r}))}function vC(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 a=t.eligibleWallets.find(u=>Lo(u.address,r));return a?a.eligibleAt>i?`${sn(r)} was added as a sign-in method recently. For your safety it can be authorized from ${D2(a.eligibleAt)}.`:null:`${sn(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 bv={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 X2(t){const r=new Set;let i=t;for(;i&&typeof i=="object"&&!r.has(i);){r.add(i);const u=i.data;if(u&&typeof u.errorName=="string")return u.errorName;i=i.cause}const a=t instanceof Error?`${t.message} ${t.shortMessage??""}`:String(t??"");return Object.keys(bv).find(u=>a.includes(u))??null}function gC(t){const r=X2(t);return r?bv[r]??null:null}class Eo extends Error{constructor(r,i,a=!1){super(r),this.refresh=i,this.retryAuth=a,this.name="OperatorPreflightError"}}function yC(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&&!Lo(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&&!Lo(t.operator,i.operator))throw new Eo(`The authorization is for ${sn(t.operator)}, not ${sn(i.operator)}.`,!1);if(Kc(r.operator))throw new Eo(`An authorized wallet is already set (${sn(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 J2(t,r=!0){return ze({queryKey:Re.channels(t,!1),queryFn:()=>he.wallet.channels(t,!1),enabled:r})}function jv(){const{workspace:t,viewer:r}=ir(),i=Uc(r),a=Y2(i),u=J2(t.id,i),d=a.data??[],m=new Set(d.filter(Z2).map(y=>y.workspaceId)),v=d.find(y=>y.workspaceId===t.id),g=V2(u.data??[]),h=m.has(t.id);return{missingOperator:m,currentMissingOperator:h,canAuthorize:(v==null?void 0:v.canAuthorize)??!1,withdrawable:g,wallet:h||g.count>0}}const Tv=["pointerdown","mousedown","pointerup","mouseup","click"],uc=new WeakMap;function Rv(t,r,i){Gc(t);let a=u=>{let d=u.target;t.contains(d)&&((!i||i(d))&&(u.preventDefault(),u.stopPropagation(),u.stopImmediatePropagation()),u.type==="click"&&(r==null||r(u)))};for(let u of Tv)document.addEventListener(u,a,!0);uc.set(t,a)}function Gc(t){let r=uc.get(t);if(r){for(let i of Tv)document.removeEventListener(i,r,!0);uc.delete(t)}}function ex(t,r){let i=t.wrapper.getBoundingClientRect();return{width:i.width+r,height:i.height+r,realWidth:i.width,realHeight:i.height}}function Mp(t,r){let{elementDimensions:i,popoverDimensions:a,popoverPadding:u,popoverArrowDimensions:d}=r;return t==="start"?Math.max(Math.min(i.top-u,window.innerHeight-a.realHeight-d.width),d.width):t==="end"?Math.max(Math.min(i.top-(a==null?void 0:a.realHeight)+i.height+u,window.innerHeight-(a==null?void 0:a.realHeight)-d.width),d.width):t==="center"?Math.max(Math.min(i.top+i.height/2-(a==null?void 0:a.realHeight)/2,window.innerHeight-(a==null?void 0:a.realHeight)-d.width),d.width):0}function Op(t,r){let{elementDimensions:i,popoverDimensions:a,popoverPadding:u,popoverArrowDimensions:d}=r;return t==="start"?Math.max(Math.min(i.left-u,window.innerWidth-a.realWidth-d.width),d.width):t==="end"?Math.max(Math.min(i.left-(a==null?void 0:a.realWidth)+i.width+u,window.innerWidth-(a==null?void 0:a.realWidth)-d.width),d.width):t==="center"?Math.max(Math.min(i.left+i.width/2-(a==null?void 0:a.realWidth)/2,window.innerWidth-(a==null?void 0:a.realWidth)-d.width),d.width):0}function Yc(t,r,i){let{align:a,side:u}=i,d=i.centered?"over":u,m=i.padding,v=ex(t,i.offset),g=t.arrow.getBoundingClientRect(),h=r.getBoundingClientRect(),y=h.top-v.height,x=y>=0,C=window.innerHeight-(h.bottom+v.height),I=C>=0,L=h.left-v.width,_=L>=0,N=window.innerWidth-(h.right+v.width),D=N>=0,U=!x&&!I&&!_&&!D,b=d;if(d==="top"&&x?D=_=I=!1:d==="bottom"&&I?D=_=x=!1:d==="left"&&_?D=x=I=!1:d==="right"&&D&&(_=x=I=!1),d==="over"){let T=window.innerWidth/2-v.realWidth/2,A=window.innerHeight/2-v.realHeight/2;t.wrapper.style.left=`${T}px`,t.wrapper.style.right="auto",t.wrapper.style.top=`${A}px`,t.wrapper.style.bottom="auto"}else if(U){let T=window.innerWidth/2-(v==null?void 0:v.realWidth)/2;t.wrapper.style.left=`${T}px`,t.wrapper.style.right="auto",t.wrapper.style.bottom="10px",t.wrapper.style.top="auto"}else if(_){let T=Math.min(L,window.innerWidth-(v==null?void 0:v.realWidth)-g.width),A=Mp(a,{elementDimensions:h,popoverDimensions:v,popoverPadding:m,popoverArrowDimensions:g});t.wrapper.style.left=`${T}px`,t.wrapper.style.top=`${A}px`,t.wrapper.style.bottom="auto",t.wrapper.style.right="auto",b="left"}else if(D){let T=Math.min(N,window.innerWidth-(v==null?void 0:v.realWidth)-g.width),A=Mp(a,{elementDimensions:h,popoverDimensions:v,popoverPadding:m,popoverArrowDimensions:g});t.wrapper.style.right=`${T}px`,t.wrapper.style.top=`${A}px`,t.wrapper.style.bottom="auto",t.wrapper.style.left="auto",b="right"}else if(x){let T=Math.min(y,window.innerHeight-v.realHeight-g.width),A=Op(a,{elementDimensions:h,popoverDimensions:v,popoverPadding:m,popoverArrowDimensions:g});t.wrapper.style.top=`${T}px`,t.wrapper.style.left=`${A}px`,t.wrapper.style.bottom="auto",t.wrapper.style.right="auto",b="top"}else if(I){let T=Math.min(C,window.innerHeight-(v==null?void 0:v.realHeight)-g.width),A=Op(a,{elementDimensions:h,popoverDimensions:v,popoverPadding:m,popoverArrowDimensions:g});t.wrapper.style.left=`${A}px`,t.wrapper.style.bottom=`${T}px`,t.wrapper.style.top="auto",t.wrapper.style.right="auto",b="bottom"}nx(t,U?"over":b,a,r),[...t.wrapper.classList].filter(T=>T.startsWith("driver-popover-side-")||T.startsWith("driver-popover-align-")).forEach(T=>t.wrapper.classList.remove(T)),t.wrapper.classList.add(`driver-popover-side-${b}`),t.wrapper.classList.add(`driver-popover-align-${a}`)}function Lp(t,r,i,a,u,d=10){let m=a-i;return t<=i&&r>=a?u==="start"?15+d/2:u==="end"?m-15-d/2:m/2:(Math.min(Math.max(t,i),a)+Math.min(Math.max(r,i),a))/2-i}function Ap(t,r,i=10){let a=r-15-i;if(a<15)return Math.max(0,(r-i)/2);let u=t-i/2;return Math.min(Math.max(u,15),a)}function tx(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 nx(t,r,i,a){let u=t.arrow;if(u.className="driver-popover-arrow",u.style.top="",u.style.right="",u.style.bottom="",u.style.left="",r==="over"){u.classList.add("driver-popover-arrow-none");return}let d=a.getBoundingClientRect(),m=t.wrapper.getBoundingClientRect(),v=tx(r,d,m);u.classList.add(`driver-popover-arrow-side-${v}`);let g=u.getBoundingClientRect().width||10;if(v==="left"||v==="right"){let h=Lp(d.top,d.bottom,m.top,m.bottom,i,g);u.style.top=`${Ap(h,m.height,g)}px`}else{let h=Lp(d.left,d.right,m.left,m.right,i,g);u.style.left=`${Ap(h,m.width,g)}px`}}function ya(t){return typeof t=="function"?t():typeof t=="string"?document.querySelector(t):t}function rx(t){let r=window.getComputedStyle(t);return[r.overflow,r.overflowX,r.overflowY].some(i=>i==="auto"||i==="scroll")}function sa(t,r,i,a){return(t/=a/2)<1?i/2*t*t+r:-i/2*(--t*(t-2)-1)+r}function Iv(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 a=i.matches(r),u=Array.from(i.querySelectorAll(r));return[...a?[i]:[],...u]}).filter(i=>getComputedStyle(i).pointerEvents!=="none"&&sx(i))}function Nv(t,r){if(!t||ox(t))return;let i=t.offsetHeight>window.innerHeight;t.scrollIntoView({behavior:!r||ix(t)?"auto":"smooth",inline:"center",block:i?"start":"center"})}function ix(t){if(!t||!t.parentElement)return;let r=t.parentElement;return r.scrollHeight>r.clientHeight}function ox(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 sx(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function Mv(t){t&&(t.wrapper.style.display="none")}function ax(t,r){var _;let i=ux();document.body.appendChild(i.wrapper);let{title:a,description:u,showButtons:d,disableButtons:m,showProgress:v,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"),a?(i.title.innerHTML=a,i.title.style.display="block"):i.title.style.display="none",u?(i.description.innerHTML=u,i.description.style.display="block"):i.description.style.display="none";let x=d.includes("next")||d.includes("previous")||v;i.closeButton.style.display=d.includes("close")?"block":"none",x?(i.footer.style.display="flex",i.progress.style.display=v?"block":"none",i.nextButton.style.display=d.includes("next")?"block":"none",i.previousButton.style.display=d.includes("previous")?"block":"none"):i.footer.style.display="none",m.includes("next")&&(i.nextButton.disabled=!0,i.nextButton.classList.add("driver-popover-btn-disabled")),m.includes("previous")&&(i.previousButton.disabled=!0,i.previousButton.classList.add("driver-popover-btn-disabled")),m.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 I=i.arrow;I.className="driver-popover-arrow",C.className=`driver-popover ${r.popoverClass||""}`.trim(),Rv(i.wrapper,N=>{var U,b,T;let D=N.target;if(D.closest(".driver-popover-next-btn"))return(U=r.onNextClick)==null?void 0:U.call(r);if(D.closest(".driver-popover-prev-btn"))return(b=r.onPrevClick)==null?void 0:b.call(r);if(D.closest(".driver-popover-close-btn"))return(T=r.onCloseClick)==null?void 0:T.call(r)},N=>i.description.contains(N)||i.title.contains(N)?!1:!!N.closest(".driver-popover-prev-btn, .driver-popover-next-btn, .driver-popover-close-btn")),(_=r.onRender)==null||_.call(r,i),Yc(i,t,r.position),lx(i,t,r.position),Nv(C,r.smoothScroll);let L=Iv([C,t]);return L.length>0&&L[0].focus(),i}function lx(t,r,i){t.wrapper.querySelectorAll("img").forEach(a=>{if(a.complete)return;let u=()=>Yc(t,r,i);a.addEventListener("load",u,{once:!0}),a.addEventListener("error",u,{once:!0})})}function ux(){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 a=document.createElement("div");a.id="driver-popover-description",a.classList.add("driver-popover-description"),a.style.display="none",a.innerText="Popover description is here";let u=document.createElement("button");u.type="button",u.classList.add("driver-popover-close-btn"),u.innerHTML="×";let d=document.createElement("footer");d.classList.add("driver-popover-footer");let m=document.createElement("span");m.classList.add("driver-popover-progress-text"),m.innerText="";let v=document.createElement("span");v.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",v.appendChild(g),v.appendChild(h),d.appendChild(m),d.appendChild(v),t.appendChild(u),t.appendChild(r),t.appendChild(i),t.appendChild(a),t.appendChild(d),{wrapper:t,arrow:r,title:i,description:a,footer:d,previousButton:g,nextButton:h,closeButton:u,footerButtons:v,progress:m}}function Ov(t){var r;t&&(Gc(t.wrapper),(r=t.wrapper.parentElement)==null||r.removeChild(t.wrapper))}function Lv(t,r){let i=window.innerWidth,a=window.innerHeight,u=r.padding,d=r.radius,m=t.width+u*2,v=t.height+u*2,g=Math.min(d,m/2,v/2),h=Math.floor(Math.max(g,0)),y=t.x-u+h,x=t.y-u,C=m-h*2,I=v-h*2;return`M${i},0L0,0L0,${a}L${i},${a}L${i},0Z
|
|
82
|
-
M${y},${x} h${C} a${h},${h} 0 0 1 ${h},${h} v${I} a${h},${h} 0 0 1 -${h},${h} h-${C} a${h},${h} 0 0 1 -${h},-${h} v-${I} a${h},${h} 0 0 1 ${h},-${h} z`}function cx(t,r,i,a,u){let d=t.getState("__activeStagePosition"),m=d||a.getBoundingClientRect(),v=u.getBoundingClientRect();d={x:sa(r,m.x,v.x-m.x,i),y:sa(r,m.y,v.y-m.y,i),width:sa(r,m.width,v.width-m.width,i),height:sa(r,m.height,v.height-m.height,i)},Dv(t,d),t.setState("__activeStagePosition",d)}function Av(t,r){if(!r)return;let i=r.getBoundingClientRect(),a={x:i.x,y:i.y,width:i.width,height:i.height};t.setState("__activeStagePosition",a),Dv(t,a)}function dx(t){let r=t.getState("__activeStagePosition"),i=t.getState("__overlaySvg");if(!r)return;if(!i){console.warn("No stage svg found.");return}let a=window.innerWidth,u=window.innerHeight;i.setAttribute("viewBox",`0 0 ${a} ${u}`)}function fx(t,r){let i=hx(t,r);document.body.appendChild(i),Rv(i,a=>{a.target.tagName==="path"&&t.emit("overlayClick")}),t.setState("__overlaySvg",i)}function Dv(t,r){let i=t.getState("__overlaySvg");if(!i){fx(t,r);return}let a=i.firstElementChild;if((a==null?void 0:a.tagName)!=="path")throw Error("no path element found in stage svg");a.setAttribute("d",Lv(r,Fv(t)))}function Fv(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 hx(t,r){let i=window.innerWidth,a=window.innerHeight,u=document.createElementNS("http://www.w3.org/2000/svg","svg");u.classList.add("driver-overlay","driver-overlay-animated"),u.setAttribute("viewBox",`0 0 ${i} ${a}`),u.setAttribute("xmlSpace","preserve"),u.setAttribute("xmlnsXlink","http://www.w3.org/1999/xlink"),u.setAttribute("version","1.1"),u.setAttribute("preserveAspectRatio","xMinYMin slice"),u.style.fillRule="evenodd",u.style.clipRule="evenodd",u.style.strokeLinejoin="round",u.style.strokeMiterlimit="2",u.style.zIndex="10000",u.style.position="fixed",u.style.top="0",u.style.left="0",u.style.width="100%",u.style.height="100%";let d=document.createElementNS("http://www.w3.org/2000/svg","path");return d.setAttribute("d",Lv(r,Fv(t))),d.style.fill=t.getConfig("overlayColor")||"rgb(0,0,0)",d.style.opacity=`${t.getConfig("overlayOpacity")}`,d.style.pointerEvents="auto",d.style.cursor="auto",u.appendChild(d),u}function px(t){let r=t.getState("__overlaySvg");r&&(Gc(r),r.remove())}const $v="{{current}} of {{total}}";function zv(t,r){return!(r.skipMissingElement??t.getConfig("skipMissingElement"))||!r.element?!1:!ya(r.element)}function En(t,r,i){let a=t.getConfig("steps")||[];for(let u=r;u>=0&&u<a.length;u+=i)if(!zv(t,a[u]))return u}function ha(t,r){var d,m;let i=t.getState("activeIndex"),a=i!==void 0&&En(t,i+1,1)===void 0,u=((d=r==null?void 0:r.popover)==null?void 0:d.onDoneClick)||t.getConfig("onDoneClick");return a&&u?u:((m=r==null?void 0:r.popover)==null?void 0:m.onNextClick)||t.getConfig("onNextClick")}function Uv(t,r){var i;return((i=r==null?void 0:r.popover)==null?void 0:i.onPrevClick)||t.getConfig("onPrevClick")}function mx(t,r){var i;return((i=r==null?void 0:r.popover)==null?void 0:i.onCloseClick)||t.getConfig("onCloseClick")}function vx(t,r,i){let a=t.getConfig("steps")||[],u=a[r],d=u.popover||{},m=En(t,r+1,1)!==void 0,v=En(t,r-1,-1)!==void 0,g=d.doneBtnText||t.getConfig("doneBtnText")||"Done",h=t.getConfig("allowClose"),y=d.showProgress===void 0?t.getConfig("showProgress"):d.showProgress,x=(d.progressText||t.getConfig("progressText")||$v).replace("{{current}}",`${r+1}`).replace("{{total}}",`${a.length}`),C=d.showButtons||t.getConfig("showButtons"),I=["next","previous",...h?["close"]:[]].filter(D=>!(C!=null&&C.length)||C.includes(D)),L=d.onNextClick||t.getConfig("onNextClick"),_=d.onPrevClick||t.getConfig("onPrevClick"),N=d.onCloseClick||t.getConfig("onCloseClick");return{...u,popover:{showButtons:I,nextBtnText:m?void 0:g,disableButtons:[...t.getConfig("disableButtons")||[],...v?[]:["previous"]],showProgress:y,onNextClick:L||i.onNextClick,onPrevClick:_||i.onPrevClick,onCloseClick:N||i.onCloseClick,...d,progressText:x}}}function cc(t,r){var i,a;return{showButtons:((i=r==null?void 0:r.popover)==null?void 0:i.showButtons)||t.getConfig("showButtons")||[],disableButtons:((a=r==null?void 0:r.popover)==null?void 0:a.disableButtons)||t.getConfig("disableButtons")||[]}}function Bv(t,r,i){var u,d;let a=t.getConfig("stagePadding")||0;return{side:((u=i.popover)==null?void 0:u.side)||"bottom",align:((d=i.popover)==null?void 0:d.align)||"start",offset:a+(t.getConfig("popoverOffset")||0),padding:a,centered:r.id==="driver-dummy-element"}}function gx(t,r,i){let a=i.popover||{},u=t.getState("activeIndex"),d=u!==void 0&&En(t,u+1,1)===void 0;return{title:a.title,description:a.description,...cc(t,i),showProgress:a.showProgress||t.getConfig("showProgress")||!1,progressText:a.progressText??(t.getConfig("progressText")||$v),nextBtnText:a.nextBtnText??(t.getConfig("nextBtnText")||"Next"),prevBtnText:a.prevBtnText??(t.getConfig("prevBtnText")||"Previous"),closeBtnLabel:a.closeBtnLabel??(t.getConfig("closeBtnLabel")||"Close"),doneButton:d,popoverClass:a.popoverClass||t.getConfig("popoverClass")||"",smoothScroll:t.getConfig("smoothScroll"),onNextClick:()=>{let m=ha(t,i);return m?m(r,i,t.getHookOpts()):t.emit("nextClick")},onPrevClick:()=>{let m=Uv(t,i);return m?m(r,i,t.getHookOpts()):t.emit("prevClick")},onCloseClick:()=>{let m=mx(t,i);return m?m(r,i,t.getHookOpts()):t.emit("closeClick")},onRender:m=>{var v;t.setState("popover",m),(v=a.onPopoverRender||t.getConfig("onPopoverRender"))==null||v(m,t.getHookOpts())},position:Bv(t,r,i)}}function Dp(t,r,i){Ov(t.getState("popover")),ax(r,gx(t,r,i))}function yx(t,r,i){let a=t.getState("popover");a&&Yc(a,r,Bv(t,r,i))}const Fp={"aria-haspopup":"dialog","aria-expanded":"true","aria-controls":"driver-popover-content"},wa=new WeakMap;function wx(t){if(!wa.has(t)){let r=Object.fromEntries(Object.keys(Fp).map(i=>[i,t.getAttribute(i)]));wa.set(t,r)}for(let[r,i]of Object.entries(Fp))t.setAttribute(r,i)}function Hv(t){let r=wa.get(t);if(r){for(let[i,a]of Object.entries(r))a===null?t.removeAttribute(i):t.setAttribute(i,a);wa.delete(t)}}function xx(){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 $p(t,r){let i=ya(r.element);i||(i=xx()),kx(t,i,r)}function Sx(t){let r=t.getState("__activeElement"),i=t.getState("__activeStep");r&&(Av(t,r),dx(t),yx(t,r,i))}function kx(t,r,i){let a=t.getConfig("duration")||400,u=Date.now(),d=t.getState("__activeStep"),m=t.getState("__activeElement")||r,v=!m||m===r,g=r.id==="driver-dummy-element",h=m.id==="driver-dummy-element",y=t.getConfig("animate"),x=i.onHighlightStarted||t.getConfig("onHighlightStarted"),C=(i==null?void 0:i.onHighlighted)||t.getConfig("onHighlighted"),I=(d==null?void 0:d.onDeselected)||t.getConfig("onDeselected"),L=t.getHookOpts();d&&d!==i&&I&&I(h?void 0:m,d,L),x&&x(g?void 0:r,i,L);let _=!v&&y,N=!1;Mv(t.getState("popover")),t.setState("previousStep",d),t.setState("previousElement",m),t.setState("activeStep",i),t.setState("activeElement",r);let D=()=>{if(t.getState("__transitionCallback")!==D)return;let b=Date.now()-u,T=a-b<=a/2;i.popover&&T&&!N&&_&&(Dp(t,r,i),N=!0),t.getConfig("animate")&&b<a?cx(t,b,a,m,r):(Av(t,r),C&&C(g?void 0:r,i,t.getHookOpts()),t.setState("__transitionCallback",void 0),t.setState("__previousStep",d),t.setState("__previousElement",m),t.setState("__activeStep",i),t.setState("__activeElement",r)),window.requestAnimationFrame(D)};t.setState("__transitionCallback",D),window.requestAnimationFrame(D),Nv(r,t.getConfig("smoothScroll")),!_&&i.popover&&Dp(t,r,i),document.querySelectorAll(".driver-active-element-parent").forEach(b=>{b.classList.remove("driver-active-element-parent","driver-active-element-parent-no-scroll")}),document.querySelectorAll(".driver-active-element").forEach(b=>{b.classList.remove("driver-active-element","driver-no-interaction"),Hv(b)}),(i.disableActiveInteraction??t.getConfig("disableActiveInteraction"))&&r.classList.add("driver-no-interaction");let U=r.parentElement;U&&U!==document.body&&(U.classList.add("driver-active-element-parent"),rx(U)&&U.classList.add("driver-active-element-parent-no-scroll")),r.classList.add("driver-active-element"),wx(r)}function Cx(){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"),Hv(r)})}function dc(t){let r=t.getState("__resizeTimeout");r&&window.cancelAnimationFrame(r),t.setState("__resizeTimeout",window.requestAnimationFrame(()=>Sx(t)))}function Ex(t,r){var v,g,h;if(!t.getState("isInitialized")||!(r.key==="Tab"||r.keyCode===9))return;let i=t.getState("__activeElement"),a=(v=t.getState("popover"))==null?void 0:v.wrapper,u=Iv([...a?[a]:[],...i?[i]:[]]),d=u[0],m=u[u.length-1];r.preventDefault(),r.shiftKey?(g=u[u.indexOf(document.activeElement)-1]||m)==null||g.focus():(h=u[u.indexOf(document.activeElement)+1]||d)==null||h.focus()}function _x(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 Px(t,r){let i=t.getState("__activeElement"),a=r.target;!i||!a||!i.contains(a)||t.emit("activeElementClick")}function bx(t){let r=m=>_x(t,m),i=m=>Ex(t,m),a=()=>dc(t),u=()=>dc(t),d=m=>Px(t,m);t.setState("__events",{onKeyup:r,onKeydown:i,onResize:a,onScroll:u,onClick:d}),window.addEventListener("keyup",r,!1),window.addEventListener("keydown",i,!1),window.addEventListener("resize",a),window.addEventListener("scroll",u),document.addEventListener("click",d,!1)}function jx(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 Tx(){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 Rx(){let t={},r=(u=>u?t[u]:t),i=(u,d)=>{t[u]=d};function a(){t={}}return{getState:r,setState:i,resetState:a}}function Ix(){let t={};function r(u,d){t[u]=d}function i(u){var d;(d=t[u])==null||d.call(t)}function a(){t={}}return{listen:r,emit:i,reset:a}}function Nx(t={}){let r=Tx();r.configure(t);let i=Rx(),a=Ix(),u;return{getConfig:r.getConfig,setConfig:r.configure,getState:i.getState,setState:i.setState,resetState:i.resetState,listen:a.listen,emit:a.emit,resetEmitter:a.reset,getDriver:()=>u,setDriver:d=>{u=d},getHookOpts:d=>{let m=d||i.getState();return{config:r.getConfig(),state:m,driver:u,index:m.activeIndex}}}}let fi;function Mx(t={}){let r=Nx(t),i=()=>D(!1);function a(){r.getConfig("allowClose")&&D()}function u(){let{disableButtons:b}=cc(r,r.getState("__activeStep"));b.includes("close")||a()}function d(b){let{showButtons:T,disableButtons:A}=cc(r,r.getState("__activeStep"));return T.includes(b)&&!A.includes(b)}function m(){let b=r.getConfig("overlayClickBehavior");if(r.getConfig("allowClose")&&b==="close"){D();return}if(typeof b=="function"){let T=r.getState("__activeStep");b(r.getState("__activeElement"),T,r.getHookOpts());return}if(b==="nextStep"){let T=r.getState("activeStep"),A=r.getState("activeElement"),q=ha(r,T);if(q){q(A,T,r.getHookOpts());return}v()}}function v(){let b=r.getState("activeIndex"),T=r.getConfig("steps")||[];if(b===void 0)return;let A=b+1;T[A]?N(A):D()}function g(){let b=r.getState("activeIndex"),T=r.getConfig("steps")||[];if(b===void 0)return;let A=b-1;T[A]?N(A):D()}function h(b){(r.getConfig("steps")||[])[b]?N(b):D()}function y(){if(r.getState("__transitionCallback"))return;let b=r.getState("__activeStep");if(!b||!(b.advanceOnClick??r.getConfig("advanceOnClick")))return;let T=r.getState("__activeElement"),A=ha(r,b);if(A){A(T,b,r.getHookOpts());return}v()}function x(){if(r.getState("__transitionCallback"))return;let b=r.getState("activeIndex"),T=r.getState("__activeStep"),A=r.getState("__activeElement");if(b===void 0||T===void 0||!(r.getConfig("steps")||[])[b-1]||!d("previous"))return;let q=Uv(r,T);if(q)return q(A,T,r.getHookOpts());g()}function C(){if(r.getState("__transitionCallback"))return;let b=r.getState("activeIndex"),T=r.getState("__activeStep"),A=r.getState("__activeElement");if(b===void 0||T===void 0||!d("next"))return;let q=ha(r,T);if(q)return q(A,T,r.getHookOpts());v()}function I(){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`),bx(r),r.listen("overlayClick",m),r.listen("activeElementClick",y),r.listen("escapePress",u),r.listen("closeClick",a),r.listen("arrowLeftPress",x),r.listen("arrowRightPress",C))}function L(){let b=r.getState("__pendingWaitCancel");b&&(r.setState("__pendingWaitCancel",void 0),b())}function _(b,T,A){let q=()=>{ie.disconnect(),window.clearTimeout(Q),r.setState("__pendingWaitCancel",void 0),A()},ie=new MutationObserver(()=>{ya(b.element)&&q()}),Q=window.setTimeout(q,T);r.setState("__pendingWaitCancel",()=>{ie.disconnect(),window.clearTimeout(Q)}),ie.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0})}function N(b=0,T=!1){L();let A=r.getConfig("steps");if(!A){console.error("No steps to drive through"),D();return}if(!A[b]){D();return}let q=A[b],ie=q.waitForElement??r.getConfig("waitForElement")??0;if(!T&&ie>0&&q.element&&!ya(q.element)){Mv(r.getState("popover")),_(q,ie,()=>N(b,!0));return}if(zv(r,q)){let ne=r.getState("activeIndex"),ae=typeof ne=="number"&&b<ne?-1:1;A[b+ae]?N(b+ae):ae===1&&D();return}r.setState("__activeOnDestroyed",document.activeElement),r.setState("activeIndex",b);let Q=A[b+1];$p(r,vx(r,b,{onNextClick:()=>{Q?N(b+1):D()},onPrevClick:()=>{N(b-1)},onCloseClick:()=>{D()}}))}function D(b=!0){if(!r.getState("isInitialized"))return;let T=r.getState("__activeElement"),A=r.getState("__activeStep"),q=r.getState("__activeOnDestroyed"),ie=r.getConfig("onDestroyStarted");if(b&&ie){ie(!T||(T==null?void 0:T.id)==="driver-dummy-element"?void 0:T,A,r.getHookOpts());return}fi===i&&(fi=void 0);let Q=(A==null?void 0:A.onDeselected)||r.getConfig("onDeselected"),ne=r.getConfig("onDestroyed");document.body.classList.remove("driver-active","driver-fade","driver-simple","driver-no-scroll"),document.body.style.removeProperty("--driver-animation-duration"),L(),jx(r),Ov(r.getState("popover")),Cx(),px(r),r.resetEmitter();let ae=r.getState();if(r.resetState(),T&&A){let V=T.id==="driver-dummy-element";Q&&Q(V?void 0:T,A,r.getHookOpts(ae)),ne&&ne(V?void 0:T,A,r.getHookOpts(ae))}q&&q.focus()}let U={isActive:()=>r.getState("isInitialized")||!1,refresh:()=>dc(r),drive:(b=0)=>{I(),N(b)},setConfig:r.setConfig,setSteps:b=>{L(),r.resetState(),r.setConfig({...r.getConfig(),steps:b})},getConfig:r.getConfig,getState:r.getState,getActiveIndex:()=>r.getState("activeIndex"),isFirstStep:()=>{let b=r.getState("activeIndex");return b!==void 0&&En(r,b-1,-1)===void 0},isLastStep:()=>{let b=r.getState("activeIndex");return b!==void 0&&En(r,b+1,1)===void 0},getActiveStep:()=>r.getState("activeStep"),getActiveElement:()=>r.getState("activeElement"),getPreviousElement:()=>r.getState("previousElement"),getPreviousStep:()=>r.getState("previousStep"),getNextStep:()=>{let b=r.getConfig("steps")||[],T=r.getState("activeIndex");if(T===void 0)return;let A=En(r,T+1,1);return A===void 0?void 0:b[A]},moveNext:v,movePrevious:g,moveTo:h,hasNextStep:()=>{let b=r.getState("activeIndex");return b!==void 0&&En(r,b+1,1)!==void 0},hasPreviousStep:()=>{let b=r.getState("activeIndex");return b!==void 0&&En(r,b-1,-1)!==void 0},highlight:b=>{I(),$p(r,{...b,popover:b.popover?{showButtons:[],showProgress:!1,progressText:"",...b.popover}:void 0})},destroy:()=>{D(!1)}};return r.setDriver(U),U}const Ox="antseed-console:tour-seen",Lx=t=>`nav-${t}`;function Ax(t){const r=(i,a)=>Hc(i,t)?[{target:Lx(i),...a}]:[];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."}),...Pa(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 Dx(t){return t instanceof HTMLElement&&t.getClientRects().length>0}function Fx(t){var a;const r=t.target?document.querySelector(`[data-tour="${t.target}"]`):null,i=(a=t.target)!=null&&a.startsWith("nav-")?"right":"bottom";return{...Dx(r)?{element:r}:{},popover:{title:t.title,description:t.description,side:i,align:"start"}}}function Wv(t){return`${Ox}:${t}`}function $x(t){try{return localStorage.getItem(Wv(t))==="1"}catch{return!0}}function zx(t){try{localStorage.setItem(Wv(t),"1")}catch{}}function zp(t,r){const i=Ax(t).map(Fx);Mx({steps:i,showProgress:!0,progressText:"{{current}} of {{total}}",nextBtnText:"Next",prevBtnText:"Back",doneBtnText:"Done",popoverClass:"gc-tour",stagePadding:4,stageRadius:8,onDestroyed:()=>zx(r)}).drive()}function on(t){const r=new Uint8Array(t);let i="";for(const u of r)i+=String.fromCharCode(u);return btoa(i).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function xa(t){const r=t.replace(/-/g,"+").replace(/_/g,"/"),i=(4-r.length%4)%4,a=r.padEnd(r.length+i,"="),u=atob(a),d=new ArrayBuffer(u.length),m=new Uint8Array(d);for(let v=0;v<u.length;v++)m[v]=u.charCodeAt(v);return d}function Bo(){return Ux.stubThis((globalThis==null?void 0:globalThis.PublicKeyCredential)!==void 0&&typeof globalThis.PublicKeyCredential=="function")}const Ux={stubThis:t=>t};function Vv(t){const{id:r}=t;return{...t,id:xa(r),transports:t.transports}}function qv(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:a,name:u}){super(r,{cause:a}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=u??a.name,this.code=i}}function Bx({error:t,options:r}){var a,u,d;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(((a=i.authenticatorSelection)==null?void 0:a.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"&&((u=i.authenticatorSelection)==null?void 0:u.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(((d=i.authenticatorSelection)==null?void 0:d.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(v=>v.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 m=globalThis.location.hostname;if(qv(m)){if(i.rp.id!==m)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 Hx{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 Kv=new Hx,Wx=["cross-platform","platform"];function Qv(t){if(t&&!(Wx.indexOf(t)<0))return t}async function Gv(t){var L;!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(!Bo())throw new Error("WebAuthn is not supported in this browser");const a={...r,challenge:xa(r.challenge),user:{...r.user,id:xa(r.user.id)},excludeCredentials:(L=r.excludeCredentials)==null?void 0:L.map(Vv)},u={};i&&(u.mediation="conditional"),u.publicKey=a,u.signal=Kv.createNewAbortSignal();let d;try{d=await navigator.credentials.create(u)}catch(_){throw Bx({error:_,options:u})}if(!d)throw new Error("Registration was not completed");const{id:m,rawId:v,response:g,type:h}=d;let y;typeof g.getTransports=="function"&&(y=g.getTransports());let x;if(typeof g.getPublicKeyAlgorithm=="function")try{x=g.getPublicKeyAlgorithm()}catch(_){Au("getPublicKeyAlgorithm()",_)}let C;if(typeof g.getPublicKey=="function")try{const _=g.getPublicKey();_!==null&&(C=on(_))}catch(_){Au("getPublicKey()",_)}let I;if(typeof g.getAuthenticatorData=="function")try{I=on(g.getAuthenticatorData())}catch(_){Au("getAuthenticatorData()",_)}return{id:m,rawId:on(v),response:{attestationObject:on(g.attestationObject),clientDataJSON:on(g.clientDataJSON),transports:y,publicKeyAlgorithm:x,publicKey:C,authenticatorData:I},type:h,clientExtensionResults:d.getClientExtensionResults(),authenticatorAttachment:Qv(d.authenticatorAttachment)}}function Au(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 Vx(){if(!Bo())return Du.stubThis(new Promise(r=>r(!1)));const t=globalThis.PublicKeyCredential;return(t==null?void 0:t.isConditionalMediationAvailable)===void 0?Du.stubThis(new Promise(r=>r(!1))):Du.stubThis(t.isConditionalMediationAvailable())}const Du={stubThis:t=>t};function qx({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 a=globalThis.location.hostname;if(qv(a)){if(i.rpId!==a)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 Yv(t){var I,L;!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:a=!0}=t;if(!Bo())throw new Error("WebAuthn is not supported in this browser");let u;((I=r.allowCredentials)==null?void 0:I.length)!==0&&(u=(L=r.allowCredentials)==null?void 0:L.map(Vv));const d={...r,challenge:xa(r.challenge),allowCredentials:u},m={};if(i){if(!await Vx())throw Error("Browser does not support WebAuthn autofill");if(document.querySelectorAll("input[autocomplete$='webauthn']").length<1&&a)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');m.mediation="conditional",d.allowCredentials=[]}m.publicKey=d,m.signal=Kv.createNewAbortSignal();let v;try{v=await navigator.credentials.get(m)}catch(_){throw qx({error:_,options:m})}if(!v)throw new Error("Authentication was not completed");const{id:g,rawId:h,response:y,type:x}=v;let C;return y.userHandle&&(C=on(y.userHandle)),{id:g,rawId:on(h),response:{authenticatorData:on(y.authenticatorData),clientDataJSON:on(y.clientDataJSON),signature:on(y.signature),userHandle:C},type:x,clientExtensionResults:v.getClientExtensionResults(),authenticatorAttachment:Qv(v.authenticatorAttachment)}}function Nr(t){return t.trim().toLowerCase().replace(/^0x/,"")}function Zv(t,r){return Nr(t)===Nr(r)}const Kx={balanced:"Balanced",price:"Lowest price",latency:"Lowest latency",trust:"Highest trust"};function Zc(){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 Qx(t){return t===void 0?"inherit":t?"yes":"no"}function Gx(t){const r=Zc();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:Qx(t.preferFreePeers),sort:t.sort??"",modelsMode:t.allowedModels?"only":"any",allowedModels:[...t.allowedModels??[]],routes:Object.entries(t.modelRoutes??{}).map(([i,a])=>({model:i,peerIds:[...a.peerIds],strict:a.strict===!0}))}:r}class Sa extends Error{}function Fu(t,r,i){const a=r.trim();if(a==="")return;const u=Number(a);if(!Number.isFinite(u)||u<0)throw new Sa(`${t} must be a positive number.`);if(i!==void 0&&u>i)throw new Sa(`${t} must be at most ${i}.`);return u}function mi(t){return[...new Set(t.map(r=>r.trim()).filter(Boolean))]}function Up(t,r){const i=mi(t);return r?i.filter(a=>r.some(u=>u.id===a)):i}function wC(t,r=null){const i={};if(t.allowMode==="only"){const h=Up(t.allowedListIds,r),y=mi(t.allowedPeerIds);(y.length>0||h.length===0)&&(i.allowedPeerIds=y),h.length>0&&(i.allowedPeerLists=h)}const a=mi(t.blockedPeerIds);a.length>0&&(i.blockedPeerIds=a);const u=Up(t.blockedListIds,r);u.length>0&&(i.blockedPeerLists=u);const d=Fu("Minimum trust",t.minTrustScore,100);d!==void 0&&(i.minTrustScore=d);const m=Fu("Minimum reputation",t.minReputation,100);m!==void 0&&(i.minReputation=m),t.requireVerified&&(i.requireVerified=!0),t.requireTee&&(i.requireTee=!0);const v=[["maxInputUsdPerMillion","Input price cap"],["maxOutputUsdPerMillion","Output price cap"],["maxCachedInputUsdPerMillion","Cached input price cap"],["maxImageUsdPerImage","Image price cap"]];for(const[h,y]of v){const x=Fu(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 Sa(`Model "${x}" has two fallback chains.`);h.add(x);const C=mi(y.peerIds);if(C.length===0)throw new Sa(`Add at least one seller to the "${x}" chain.`);i.modelRoutes[x]=y.strict?{peerIds:C,strict:!0}:{peerIds:C}}}return i}function Xc(t){return!t||Object.keys(t).length===0}function xC(t){return Xc(t)?null:t}function Yx(t){var a,u,d,m,v,g;if(Xc(t))return"Inherits";const r=t,i=[];if(r.allowedPeerIds||r.allowedPeerLists){const h=(a=r.allowedPeerLists)!=null&&a.length?` + ${r.allowedPeerLists.length} list${r.allowedPeerLists.length===1?"":"s"}`:"";i.push(`${((u=r.allowedPeerIds)==null?void 0:u.length)??0} allowed${h}`)}if((d=r.blockedPeerIds)!=null&&d.length||(m=r.blockedPeerLists)!=null&&m.length){const h=(v=r.blockedPeerLists)!=null&&v.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(Kx[r.sort].toLowerCase()),r.preferFreePeers&&i.push("free first"),i.join(" · ")||"Custom"}function SC(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 kC(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 ${wn(i.allowedPeerIds.length,"allowed seller")}`),i.blockedPeerIds.length>0&&r.push(wn(i.blockedPeerIds.length,"blocked seller")),i.preferFreePeers&&r.push("free first")),r}const wn=(t,r)=>`${t} ${r}${t===1?"":"s"}`,Zx={balanced:"balanced",price:"price",latency:"latency",trust:"trust"};function CC(t){var u,d,m,v,g,h,y;if(Xc(t))return[];const r=t,i=[],a=x=>x?` + ${wn(x,"list")}`:"";if(r.allowedPeerIds||r.allowedPeerLists){const x=((u=r.allowedPeerIds)==null?void 0:u.length)??0;i.push(x===0&&!((d=r.allowedPeerLists)!=null&&d.length)?"No seller allowed":`Allow ${x?wn(x,"seller"):""}${x?a((m=r.allowedPeerLists)==null?void 0:m.length):wn(r.allowedPeerLists.length,"list")}`)}if((v=r.blockedPeerIds)!=null&&v.length||(g=r.blockedPeerLists)!=null&&g.length){const x=((h=r.blockedPeerIds)==null?void 0:h.length)??0;i.push(`Block ${x?wn(x,"seller")+a((y=r.blockedPeerLists)==null?void 0:y.length):wn(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":wn(r.allowedModels.length,"model")),r.modelRoutes&&Object.keys(r.modelRoutes).length>0&&i.push(wn(Object.keys(r.modelRoutes).length,"fallback chain")),r.sort&&i.push(`Sort: ${Zx[r.sort]}`),r.preferFreePeers!==void 0&&i.push(r.preferFreePeers?"Free sellers first":"Free sellers not first"),i}const EC=[{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 _C(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 PC(t,r,i,a){var m,v,g;const u=structuredClone(t??{}),d=h=>h==null?void 0:h.filter(y=>!Zv(y,i));if(r==="allow")u.allowedPeerIds=[...d(u.allowedPeerIds)??[],i],u.blockedPeerIds=d(u.blockedPeerIds);else if(r==="block")u.blockedPeerIds=[...d(u.blockedPeerIds)??[],i],u.allowedPeerIds&&(u.allowedPeerIds=d(u.allowedPeerIds)),((m=u.allowedPeerIds)==null?void 0:m.length)===0&&!((v=u.allowedPeerLists)!=null&&v.length)&&delete u.allowedPeerIds;else if(r==="prefer"){if(!a)throw new Error("Pick a model to prefer this seller for.");const h={...u.modelRoutes??{}},y=h[a];h[a]={...y??{},peerIds:[i,...d(y==null?void 0:y.peerIds)??[]]},u.modelRoutes=h,u.blockedPeerIds=d(u.blockedPeerIds)}else u.allowedPeerIds&&(u.allowedPeerIds=d(u.allowedPeerIds)),u.blockedPeerIds=d(u.blockedPeerIds),u.modelRoutes&&(u.modelRoutes=Object.fromEntries(Object.entries(u.modelRoutes).map(([h,y])=>[h,{...y,peerIds:d(y.peerIds)??[]}]).filter(([,h])=>h.peerIds.length>0)));return((g=u.blockedPeerIds)==null?void 0:g.length)===0&&delete u.blockedPeerIds,u.modelRoutes&&Object.keys(u.modelRoutes).length===0&&delete u.modelRoutes,u}function bC(t,r){var a;const i=t==null?void 0:t.allowedPeerIds;return!i||(a=t==null?void 0:t.allowedPeerLists)!=null&&a.length?!1:i.length>0&&i.every(u=>Zv(u,r))}const Xx={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 jC(t){const r=Gx(t),i=Zc(),a={};for(const u of Object.keys(r))JSON.stringify(r[u])!==JSON.stringify(i[u])&&(a[u]=r[u]);return(t.allowedPeerIds||t.allowedPeerLists)&&(a.allowMode="only",a.allowedPeerIds=r.allowedPeerIds,a.allowedListIds=r.allowedListIds),a}function TC(t,r){const i=Zc(),a=new Set;for(const u of Object.keys(r)){const d=JSON.stringify(t[u]);if(d===JSON.stringify(i[u])||d===JSON.stringify(r[u]))continue;const m=Xx[u]??(u==="allowedPeerIds"||u==="allowedListIds"?"allowed sellers":null);m&&a.add(m)}return[...a]}function RC(t,r){return{...t,...r}}function IC(t,r,i){const a=[...t],u=r+i;if(r<0||r>=a.length||u<0||u>=a.length)return a;const[d]=a.splice(r,1);return a.splice(u,0,d),a}function NC(t,r=null){if(!t||t.allowedPeerIds===void 0&&t.allowedPeerLists===void 0||(t.allowedPeerIds??[]).some(a=>a.trim()!==""))return!1;const i=t.allowedPeerLists??[];return i.length===0?!0:r?i.every(a=>{var u;return(((u=r.find(d=>d.id===a))==null?void 0:u.peerIds.length)??0)===0}):!1}function Jx(t,r){if(t===void 0)return r;if(r===void 0)return t;const i=new Set(r.map(Nr));return t.filter(a=>i.has(Nr(a)))}function eS(t,r){return t===void 0?r:r===void 0?t:[...new Set([...t,...r])]}function Jc(t,r,i){return t===void 0?r:r===void 0?t:i(t,r)}const Bp=(t,r)=>Jc(t,r,Math.max),aa=(t,r)=>Jc(t,r,Math.min),tS=(t,r)=>t.filter(i=>r.some(a=>a.toLowerCase()===i.toLowerCase()));function nS(t,r){const{allowedPeerLists:i,blockedPeerLists:a,...u}=t,d=v=>v.flatMap(g=>{var h;return((h=r.find(y=>y.id===g))==null?void 0:h.peerIds)??[]}),m={...u};return i!==void 0&&(m.allowedPeerIds=[...u.allowedPeerIds??[],...d(i)]),a!=null&&a.length&&(m.blockedPeerIds=[...u.blockedPeerIds??[],...d(a)]),m}function rS(...t){let r={};for(const i of t){if(!i)continue;const a={allowedPeerIds:Jx(r.allowedPeerIds,i.allowedPeerIds),blockedPeerIds:eS(r.blockedPeerIds,i.blockedPeerIds),minTrustScore:Bp(r.minTrustScore,i.minTrustScore),minReputation:Bp(r.minReputation,i.minReputation),requireVerified:r.requireVerified||i.requireVerified?!0:void 0,requireTee:r.requireTee||i.requireTee?!0:void 0,maxInputUsdPerMillion:aa(r.maxInputUsdPerMillion,i.maxInputUsdPerMillion),maxOutputUsdPerMillion:aa(r.maxOutputUsdPerMillion,i.maxOutputUsdPerMillion),maxCachedInputUsdPerMillion:aa(r.maxCachedInputUsdPerMillion,i.maxCachedInputUsdPerMillion),maxImageUsdPerImage:aa(r.maxImageUsdPerImage,i.maxImageUsdPerImage),preferFreePeers:i.preferFreePeers??r.preferFreePeers,sort:i.sort??r.sort,allowedModels:Jc(r.allowedModels,i.allowedModels,tS),modelRoutes:i.modelRoutes||r.modelRoutes?{...r.modelRoutes??{},...i.modelRoutes??{}}:void 0};r=Object.fromEntries(Object.entries(a).filter(([,u])=>u!==void 0))}return r}function iS(t,r){if(t.allowedModels&&!t.allowedModels.some(a=>a.toLowerCase()===r.service.toLowerCase()))return!1;const i=(a,u)=>u!==void 0&&a!==null&&a>u;return!(i(r.inputUsdPerMillion,t.maxInputUsdPerMillion)||i(r.outputUsdPerMillion,t.maxOutputUsdPerMillion)||i(r.cachedInputUsdPerMillion,t.maxCachedInputUsdPerMillion))}function MC(t,r,i=[]){const a=nS(t,i),u=a.allowedPeerIds?new Set(a.allowedPeerIds.map(Nr)):null,d=new Set((a.blockedPeerIds??[]).map(Nr));return r.filter(m=>{const v=Nr(m.peerId);return d.has(v)||u&&!u.has(v)||a.minTrustScore!==void 0&&(m.trustScore??0)<a.minTrustScore||a.minReputation!==void 0&&(m.reputationScore??0)<a.minReputation||a.requireVerified&&!m.verified||a.requireTee&&!m.tee?!1:m.services.some(g=>iS(a,g))})}function OC(t){return!!t&&t.some(r=>r.reputationScore!==null)}function LC(t,r,i=!1){const a=t?t.ownerMemberId===r.memberId:!0;return{admin:r.workspaceAdmin,owner:a,layered:t?yv(t):i}}function oS(t,r){return t===null?r:r===null||Ct(t)<=Ct(r)?t:r}function sS(t,r){const i={};for(const a of Cv)i[a]=oS((t==null?void 0:t[a])??null,(r==null?void 0:r[a])??null);return i}function AC(t){const r=yv(t)?t:null;return{limits:sS(t.limits,r==null?void 0:r.ownerLimits),policy:rS(t.routingPolicy,(r==null?void 0:r.ownerRoutingPolicy)??null)}}function DC(t,r,i){const a={label:i.label};return i.expiresAt!==r.expiresAt&&(a.expiresAt=i.expiresAt),t.admin&&(a.limits=i.adminLimits,a.routingPolicy=i.adminPolicy,i.topupEnabled!==r.topupEnabled&&(a.topupEnabled=i.topupEnabled)),t.owner&&t.layered?(a.ownerLimits=i.ownerLimits,a.ownerRoutingPolicy=i.ownerPolicy):t.owner&&!t.admin&&(a.limits=i.ownerLimits,a.routingPolicy=i.ownerPolicy),a}const aS={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 lS(t){const[,r=t]=t.split(".");return/Limits$|^limits$/.test(t.split(".")[0]??"")?`${r} limit`:aS[r]??r}function uS(t){const r=[],i=t.fields;Array.isArray(i)&&i.length&&r.push(`Narrowed by the levels above: ${[...new Set(i.map(d=>lS(String(d))))].join(", ")}.`);const a=t.effectiveRoutingPolicy;a&&typeof a=="object"&&r.push(`Routing that would apply: ${Yx(a)}.`);const u=t.effectiveLimits;return u&&typeof u=="object"&&r.push(`Limits that would apply: ${$2(u)}.`),r}const pa=Symbol("cancelled");async function FC(t,r,i){const a={};if(t){if(!await i({kind:"empty"}))return pa;a.confirmEmpty=!0}for(;;)try{return await r({...a})}catch(u){if(Lr(u,"empty_allow_list")&&!a.confirmEmpty){if(!await i({kind:"empty"}))return pa;a.confirmEmpty=!0}else if(Lr(u,"narrowed")&&!a.acceptNarrowed){if(!await i({kind:"narrowed",message:u.message,lines:uS(u.details)}))return pa;a.acceptNarrowed=!0}else throw u}}function cS(t){const r=rr(),i=gv();return i1({mutationFn:t.mutationFn,onSuccess:(a,u)=>{var v;if(a===pa)return;const d=a;(v=t.onSuccess)==null||v.call(t,d,u);for(const g of t.invalidate??[])r.invalidateQueries({queryKey:g});const m=typeof t.toast=="function"?t.toast(d,u):t.toast;m&&i(m)},onError:t.onError})}async function dS(t=he){const r=await t.auth.reauthPasskeyOptions(),i=await Yv({optionsJSON:r});return t.auth.reauthPasskeyVerify(i)}async function $C(t,r,i=he){const{message:a}=await i.auth.reauthWalletNonce(t);return i.auth.reauthWalletVerify(a,await r(a))}function fS(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 fc="The passkey prompt was closed.";function hc(t){return t instanceof Error&&t.name==="NotAllowedError"}function ed({error:t,onRetry:r,title:i="Could not load this"}){return f.jsx(at,{tone:"danger",title:i,action:r?f.jsx(De,{variant:"outline",size:"sm",onClick:r,children:"Retry"}):void 0,children:_a(t)})}function zC({query:t,children:r,rows:i}){return t.isLoading?f.jsx(Mi,{rows:i}):t.error?f.jsx(ed,{error:t.error,onRetry:()=>void t.refetch()}):t.data===void 0?null:f.jsx(f.Fragment,{children:r(t.data)})}function UC({children:t,title:r}){return f.jsx("code",{className:"gc-mono",title:r,children:t})}function BC({label:t,value:r,strong:i}){return f.jsxs("div",{className:"gc-figure",children:[f.jsx("div",{className:"gc-figure__label",children:t}),f.jsx("div",{className:i?"gc-figure__value gc-figure__value--strong":"gc-figure__value",children:r})]})}function HC({name:t,hint:r}){return f.jsxs("div",{children:[f.jsx("div",{className:"gc-strong",children:t}),f.jsx("code",{className:"gc-mono gc-muted",children:r})]})}function WC({at:t,format:r}){return t===null?f.jsx(f.Fragment,{children:"Never"}):t<Date.now()?f.jsx(Cm,{tone:"warning",children:"Expired"}):f.jsx(f.Fragment,{children:r(t)})}const hS="Showing last known values — the chain RPC is busy.";function VC({stale:t}){return t?f.jsx("p",{className:"gc-muted",role:"status",children:hS}):null}function qC({to:t,children:r}){return f.jsx("a",{className:"gc-link",href:ba(t),onClick:qc(t),children:r})}const pS=O.lazy(()=>Ve(()=>import("./WalletSignIn-Cq__V2L6.js"),__vite__mapDeps([0,1,2,3,4,5]))),mS=O.lazy(()=>Ve(()=>import("./WalletConfirm-DLpdkgEI.js"),__vite__mapDeps([6,7,1,2,3,4,5])));function vS({isOpen:t,onClose:r,startWith:i,intro:a,onCredentialAdded:u}){const{me:d}=ir(),m=rr(),v=Qc(t),[g,h]=O.useState("idle"),[y,x]=O.useState(i==="wallet"?"add":null),[C,I]=O.useState(null),[L,_]=O.useState(null),[N,D]=O.useState(!1),U=d.member.credentials,b=U.some(V=>V.kind==="passkey"),T=U.some(V=>V.kind==="wallet");function A(V){fS(V,d.member.id),m.setQueryData(Re.me,V)}function q(V){return Lr(V,"reauth_required")?(h("needed"),I(null)):I(V),!0}async function ie(){D(!0),I(null);try{const V=await he.auth.passkeyRegisterOptions(),de=await Gv({optionsJSON:V});A(await he.auth.passkeyRegisterVerify(de)),h("idle"),u==null||u()}catch(V){hc(V)?I(new Error(fc)):q(V)}finally{D(!1)}}async function Q(){D(!0),I(null);try{A(await dS()),h("done")}catch(V){I(hc(V)?new Error(fc):V)}finally{D(!1)}}const ne=cS({mutationFn:V=>he.members.removeCredential(d.member.id,V.id),onSuccess:()=>_(null),onError:V=>{Lr(V,"reauth_required")&&(_(null),h("needed"))},invalidate:[Re.me]}),ae=U.length<=1;return f.jsxs(fv,{isOpen:t,onClose:r,size:"lg",eyebrow:Wc[d.member.orgRole],title:d.member.label,subtitle:d.member.email??void 0,children:[f.jsxs("div",{className:"gc-stack",children:[a,f.jsxs("section",{className:"gc-stack gc-stack--tight",children:[f.jsx("div",{className:"as-field__label",children:"Your sign-in methods"}),U.length===0?f.jsx(at,{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."}):f.jsx("ul",{className:"gc-list gc-credentials",children:U.map(V=>f.jsxs("li",{className:"gc-inline gc-inline--between",children:[f.jsxs("span",{className:"gc-credential",children:[f.jsx(Cm,{children:V.kind})," ",f.jsx("span",{className:"gc-credential__label",children:V.label}),f.jsxs("span",{className:"gc-muted",children:[" · added ",Np(V.createdAt)," · last used ",Np(V.lastUsedAt)]})]}),f.jsx(De,{variant:"ghost",size:"sm",disabled:ae,title:ae?"Add another sign-in method first":void 0,onClick:()=>{ne.reset(),_(V)},children:"Remove"})]},V.id))}),ae&&U.length===1&&f.jsx("p",{className:"gc-fineprint",children:"This is your only sign-in method. Add another before removing it."})]}),g==="needed"&&f.jsx(at,{tone:"info",title:"Confirm it is you",children:f.jsxs("div",{className:"gc-stack gc-stack--tight",children:[f.jsx("span",{children:"Changing your sign-in methods needs a recent sign-in. Confirm with one you already have, then try again."}),f.jsxs("div",{className:"gc-inline gc-inline--wrap",children:[b&&f.jsx(De,{size:"sm",disabled:N,onClick:()=>void Q(),children:"Confirm with a passkey"}),T&&y!=="confirm"&&f.jsx(De,{size:"sm",variant:"outline",onClick:()=>x("confirm"),children:"Confirm with a wallet"})]}),y==="confirm"&&f.jsx(O.Suspense,{fallback:f.jsx(De,{size:"sm",disabled:!0,children:"Loading wallets…"}),children:f.jsx(mS,{onConfirmed:V=>{A(V),h("done"),x(null)}})}),!b&&!T&&f.jsx("span",{children:"Sign out and sign in again, then add it."})]})}),g==="done"&&f.jsx(at,{tone:"success",children:"Confirmed. Add or remove the sign-in method now."}),v.data&&f.jsxs("section",{className:"gc-stack gc-stack--tight",children:[f.jsx("div",{className:"as-field__label",children:"Add a sign-in method"}),f.jsxs("div",{className:"gc-inline gc-inline--wrap",children:[v.data.passkey&&f.jsx(De,{variant:"outline",size:"sm",disabled:N||!Bo(),onClick:()=>void ie(),children:N?"Waiting for your passkey…":"Add a passkey"}),v.data.wallet&&y!=="add"&&f.jsx(De,{variant:"outline",size:"sm",onClick:()=>x("add"),children:"Add a wallet"}),v.data.oidc&&f.jsxs(De,{variant:"outline",size:"sm",href:he.auth.oidcLinkUrl(),children:["Link ",v.data.oidc.label]})]}),y==="add"&&f.jsx(O.Suspense,{fallback:f.jsx(De,{size:"sm",disabled:!0,children:"Loading wallets…"}),children:f.jsx(pS,{autoConnect:!0,actionLabel:V=>`Add ${V} as a sign-in method`,onError:q,onSignedIn:V=>{A(V),x(null),h("idle"),u==null||u()}})}),f.jsx("p",{className:"gc-fineprint",children:"A wallet you add can become this workspace's withdrawal wallet only 24 hours later."})]}),C?f.jsx(at,{tone:"danger",children:_a(C)}):null,f.jsx("div",{className:"gc-actions",children:f.jsx(De,{onClick:r,children:"Done"})})]}),f.jsx(s2,{isOpen:L!==null,busy:ne.isPending,error:ne.error,onClose:()=>{_(null),ne.reset()},onConfirm:()=>L&&ne.mutate(L),title:"Remove this sign-in method?",confirmLabel:"Remove",body:`You can no longer sign in with ${(L==null?void 0:L.label)??"it"}.`})]})}const gS="/console/assets/ant-icon-zZhiTevn.svg",yS=[213,217,215],wS=[197,208,203],xS=[150,156,153],SS=[150,160,155],Hp=[16,185,129],la=6,kS=1.7,wr=400,pi=Math.round(15.2738/18*wr),Wp=[-3,0,3];function CS(){const t=O.useRef(null);return O.useEffect(()=>{var q,ie;const r=t.current,i=r==null?void 0:r.getContext("2d");if(!r||!i)return;const a=((q=window.matchMedia)==null?void 0:q.call(window,"(prefers-reduced-motion: reduce)").matches)??!1;let u=[],d=0,m=0,v=0,g=!1;const h=document.createElement("canvas");h.width=pi,h.height=wr;const y=h.getContext("2d");let x=null;const C=(Q,ne)=>{if(!x)return 0;let ae=0,V=0;for(const de of Wp){const _e=Math.round(ne+de);if(!(_e<0||_e>=wr))for(const Me of Wp){const be=Math.round(Q+Me);be<0||be>=pi||(V+=1,x[(_e*pi+be)*4+3]>40&&(ae+=1))}}return V?ae/V:0},I=()=>{var Ue;const Q=r.getBoundingClientRect();d=Math.max(1,Math.round(Q.width)),m=Math.max(1,Math.round(Q.height));const ne=Math.min(window.devicePixelRatio||1,2);r.width=Math.round(d*ne),r.height=Math.round(m*ne),i.setTransform(ne,0,0,ne,0,0);const ae=(Ue=r.parentElement)==null?void 0:Ue.getBoundingClientRect(),V=ae?ae.left+ae.width/2-Q.left:d/2,de=.95*m/wr,_e=V-pi*de/2,Me=m-.75*wr*de,be=[];for(let Se=la/2;Se<m;Se+=la)for(let W=la/2;W<d;W+=la){const Z=C((W-_e)/de,(Se-Me)/de);be.push({x:W,y:Se,ant:Z,size:Z>0?(.45+.55*Z)*(.85+.3*Math.random()):.8,twinkleAt:Z>0&&Math.random()<.05?Math.random()*600:-1,twinkleEvery:420+Math.random()*480})}u=be},L=()=>{const Q=N2(),ne=Q?wS:yS,ae=Q?SS:xS;i.clearRect(0,0,d,m);for(const V of u){let de=0;if(V.twinkleAt>=0&&!a){const Z=(v-V.twinkleAt)%V.twinkleEvery;Z>=0&&Z<40&&(de=Math.sin(Z/40*Math.PI))}const _e=kS*V.size*(1+.5*de);de>.02&&(i.beginPath(),i.fillStyle=`rgba(${Hp.join(",")},${.18*de})`,i.arc(V.x,V.y,_e*(1+1.4*de),0,2*Math.PI),i.fill());const Me=de*.8,be=V.ant>0?ae:ne,[Ue,Se,W]=be.map((Z,Y)=>Math.round(Z+(Hp[Y]-Z)*Me));i.beginPath(),i.fillStyle=`rgba(${Ue},${Se},${W},${V.ant>0?.85+.15*de:Q?.16:.45})`,i.arc(V.x,V.y,_e,0,2*Math.PI),i.fill()}};let _=0,N=0;const D=Q=>{_=requestAnimationFrame(D),!(Q-N<33||document.visibilityState!=="visible")&&(N=Q,v+=1,L())},U=new Image;U.onload=()=>{g||!y||(y.drawImage(U,0,0,pi,wr),x=y.getImageData(0,0,pi,wr).data,I(),L(),a||(_=requestAnimationFrame(D)))},U.src=gS;const b=new ResizeObserver(()=>{I(),L()});b.observe(r);const T=new MutationObserver(()=>L());T.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]});const A=(ie=window.matchMedia)==null?void 0:ie.call(window,"(prefers-color-scheme: dark)");return A==null||A.addEventListener("change",L),()=>{g=!0,cancelAnimationFrame(_),b.disconnect(),T.disconnect(),A==null||A.removeEventListener("change",L)}},[]),f.jsx("canvas",{ref:t,className:"gc-antdots","aria-hidden":"true"})}const Xv="antseed-console-exposure-dismissed";function ES(t,r,i){return!r||r.mode==="public"||i?!1:Pa(t)}function Vp(t){if(!t)return!1;try{return sessionStorage.getItem(Xv)===t}catch{return!1}}function _S(t){try{sessionStorage.setItem(Xv,t)}catch{}}function PS(t){return t.mode==="local"?"This gateway runs on this computer":"This gateway is only reachable on your network"}function bS(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 jS=/^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$/;function KC(t){const r=t.trim().toLowerCase().replace(/^https?:\/\//,"").replace(/[/:].*$/,"");return jS.test(r)?r:null}const ua="antseed-gateway.bundle";function QC(t){const r=t.domain??"llm.example.com",i=t.server.trim()||"user@your-server",a=`/tmp/${ua}`;return{exportBundle:`antseed gateway export --out ${ua}`,copy:`scp ${ua} ${i}:${a}`,install:`curl -fsSL https://antseed.com/install-gateway.sh | sudo bash -s -- --domain ${r} --import ${a}`,baseUrl:`https://${r}/v1`,stop:`rm ${ua}`,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 me({size:t=16,children:r,...i}){return f.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 lt={overview:t=>f.jsxs(me,{...t,children:[f.jsx("rect",{x:"3",y:"3",width:"7",height:"9",rx:"1.5"}),f.jsx("rect",{x:"14",y:"3",width:"7",height:"5",rx:"1.5"}),f.jsx("rect",{x:"14",y:"12",width:"7",height:"9",rx:"1.5"}),f.jsx("rect",{x:"3",y:"16",width:"7",height:"5",rx:"1.5"})]}),chat:t=>f.jsxs(me,{...t,children:[f.jsx("path",{d:"M4 5h16v11H9l-5 4z"}),f.jsx("path",{d:"M8 9.5h8M8 12.5h5"})]}),activity:t=>f.jsx(me,{...t,children:f.jsx("path",{d:"M3 12h4l3 8 4-16 3 8h4"})}),logs:t=>f.jsx(me,{...t,children:f.jsx("path",{d:"M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01"})}),keys:t=>f.jsxs(me,{...t,children:[f.jsx("circle",{cx:"8",cy:"15",r:"4"}),f.jsx("path",{d:"m10.8 12.2 9.2-9.2M17 6l3 3M14 9l2 2"})]}),members:t=>f.jsxs(me,{...t,children:[f.jsx("circle",{cx:"9",cy:"8",r:"3.5"}),f.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=>f.jsx(me,{...t,children:f.jsx("path",{d:"M3 7h18v13H3zM8 7V4h8v3"})}),wallet:t=>f.jsxs(me,{...t,children:[f.jsx("path",{d:"M3 7a2 2 0 0 1 2-2h13v4"}),f.jsx("rect",{x:"3",y:"7",width:"18",height:"13",rx:"2"}),f.jsx("circle",{cx:"16.5",cy:"13.5",r:"1.3"})]}),rewards:t=>f.jsxs(me,{...t,children:[f.jsx("path",{d:"M12 15a6 6 0 1 0 0-12 6 6 0 0 0 0 12Z"}),f.jsx("path",{d:"m8.5 14-1.5 7 5-3 5 3-1.5-7"})]}),providers:t=>f.jsxs(me,{...t,children:[f.jsx("circle",{cx:"12",cy:"5",r:"2.2"}),f.jsx("circle",{cx:"5",cy:"18",r:"2.2"}),f.jsx("circle",{cx:"19",cy:"18",r:"2.2"}),f.jsx("path",{d:"M11 7 6 16M13 7l5 9M7.2 18h9.6"})]}),network:t=>f.jsxs(me,{...t,children:[f.jsx("circle",{cx:"12",cy:"5",r:"2.2"}),f.jsx("circle",{cx:"5",cy:"18",r:"2.2"}),f.jsx("circle",{cx:"19",cy:"18",r:"2.2"}),f.jsx("path",{d:"M11 7 6 16M13 7l5 9M7.2 18h9.6"})]}),models:t=>f.jsxs(me,{...t,children:[f.jsx("path",{d:"m12 3 9 5-9 5-9-5z"}),f.jsx("path",{d:"m3 12.5 9 5 9-5M3 17l9 5 9-5"})]}),routing:t=>f.jsx(me,{...t,children:f.jsx("path",{d:"M6 3v6a4 4 0 0 0 4 4h8M14 9l4 4-4 4M6 21v-4"})}),presets:t=>f.jsxs(me,{...t,children:[f.jsx("path",{d:"M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12M20 18h0"}),f.jsx("circle",{cx:"16",cy:"6",r:"2"}),f.jsx("circle",{cx:"10",cy:"12",r:"2"}),f.jsx("circle",{cx:"18",cy:"18",r:"2"})]}),settings:t=>f.jsxs(me,{...t,children:[f.jsx("circle",{cx:"12",cy:"12",r:"3"}),f.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=>f.jsxs(me,{...t,children:[f.jsx("path",{d:"M9 4h6a1 1 0 0 1 1 1v1H8V5a1 1 0 0 1 1-1Z"}),f.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=>f.jsxs(me,{...t,children:[f.jsx("rect",{x:"9",y:"9",width:"12",height:"12",rx:"2"}),f.jsx("path",{d:"M5 15V5a2 2 0 0 1 2-2h10"})]}),check:t=>f.jsx(me,{...t,children:f.jsx("path",{d:"m5 12 5 5L20 7"})}),right:t=>f.jsx(me,{...t,children:f.jsx("path",{d:"m9 6 6 6-6 6"})}),left:t=>f.jsx(me,{...t,children:f.jsx("path",{d:"m15 6-6 6 6 6"})}),qr:t=>f.jsxs(me,{...t,children:[f.jsx("rect",{x:"3",y:"3",width:"7",height:"7",rx:"1"}),f.jsx("rect",{x:"14",y:"3",width:"7",height:"7",rx:"1"}),f.jsx("rect",{x:"3",y:"14",width:"7",height:"7",rx:"1"}),f.jsx("path",{d:"M14 14h3v3M21 14v.01M14 21h3M20 18v3"})]}),lock:t=>f.jsxs(me,{...t,children:[f.jsx("rect",{x:"4",y:"10",width:"16",height:"11",rx:"2"}),f.jsx("path",{d:"M8 10V7a4 4 0 0 1 8 0v3"})]}),plus:t=>f.jsx(me,{...t,children:f.jsx("path",{d:"M12 5v14M5 12h14"})}),up:t=>f.jsx(me,{...t,children:f.jsx("path",{d:"m6 15 6-6 6 6"})}),down:t=>f.jsx(me,{...t,children:f.jsx("path",{d:"m6 9 6 6 6-6"})}),x:t=>f.jsx(me,{...t,children:f.jsx("path",{d:"M6 6l12 12M18 6 6 18"})}),menu:t=>f.jsx(me,{...t,children:f.jsx("path",{d:"M4 6h16M4 12h16M4 18h16"})}),sun:t=>f.jsxs(me,{...t,children:[f.jsx("circle",{cx:"12",cy:"12",r:"4"}),f.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=>f.jsxs(me,{...t,children:[f.jsx("rect",{x:"3",y:"4",width:"18",height:"12",rx:"2"}),f.jsx("path",{d:"M8 20h8M12 16v4"})]}),moon:t=>f.jsx(me,{...t,children:f.jsx("path",{d:"M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8Z"})}),external:t=>f.jsx(me,{...t,children:f.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=>f.jsx(me,{...t,children:f.jsx("path",{d:"M12 4v11M7 10l5 5 5-5M4 20h16"})}),more:t=>f.jsxs(me,{...t,children:[f.jsx("circle",{cx:"5",cy:"12",r:"1"}),f.jsx("circle",{cx:"12",cy:"12",r:"1"}),f.jsx("circle",{cx:"19",cy:"12",r:"1"})]}),shield:t=>f.jsxs(me,{...t,children:[f.jsx("path",{d:"M12 3 4 6v6c0 4.5 3.4 8.3 8 9 4.6-.7 8-4.5 8-9V6Z"}),f.jsx("path",{d:"m9 12 2 2 4-4"})]}),compass:t=>f.jsxs(me,{...t,children:[f.jsx("circle",{cx:"12",cy:"12",r:"9"}),f.jsx("path",{d:"m15.5 8.5-2 5-5 2 2-5z"})]}),logout:t=>f.jsx(me,{...t,children:f.jsx("path",{d:"M15 4h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4M10 17l5-5-5-5M15 12H3"})})};function TS(t){t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(t.preventDefault(),an("migrate"))}function RS(){var d;const{viewer:t}=ir(),i=(d=Ev().data)==null?void 0:d.exposure,[a,u]=O.useState(()=>Vp(i==null?void 0:i.mode));return!ES(t,i,a||Vp(i==null?void 0:i.mode))||!i?null:f.jsxs("div",{className:"gc-exposure",role:"region","aria-label":"Gateway reachability",children:[f.jsx("span",{className:"gc-exposure__icon","aria-hidden":"true",children:f.jsx(lt.monitor,{size:16})}),f.jsxs("div",{className:"gc-exposure__text",children:[f.jsxs("strong",{children:[PS(i),"."]})," ",f.jsx("span",{children:bS(i)})]}),f.jsxs("div",{className:"gc-exposure__actions",children:[f.jsxs(De,{size:"sm",variant:"outline",href:ba("migrate"),onClick:TS,className:"gc-exposure__cta",children:["Move to a server ",f.jsx("span",{className:"gc-exposure__rec",children:"(recommended)"})]}),f.jsx(Uo,{label:"Dismiss for this session",className:"gc-exposure__close",onClick:()=>{_S(i.mode),u(!0)},children:f.jsx(lt.x,{size:14})})]})]})}function IS(t,r){return(t||r).replace(/\/+$/,"")}function NS(t){return`${t}/v1`}const ja="ANTSEED_API_KEY",Ta={env:ja};function MS(t){return"secret"in t?t.secret:`$${t.env}`}function Jv(t){return"secret"in t?`'${t.secret}'`:`process.env.${t.env}`}function OS(t){return"secret"in t?`"${t.secret}"`:`os.environ["${t.env}"]`}function eg(t,r){return`${t.trim().toLowerCase().replace(/^0x/,"")}@${r.trim()}`}function LS(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 AS={"anthropic-messages":"/v1/messages","openai-responses":"/v1/responses","openai-chat-completions":"/v1/chat/completions","openai-images":"/v1/images/generations"};function GC(t,r){if(t==="image")return"openai-images";if(t!=="text")return null;if(!r)return"openai-chat-completions";const i=LS({provider:r.provider,apiProtocols:r.protocols});return i==="openai-images"?"openai-chat-completions":i}const td="A lighthouse on a cliff at dawn, watercolor";function DS(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:td,n:1}:{model:r,messages:[{role:"user",content:"Hello"}]})}function tg(t,r,i="openai-chat-completions",a=Ta){return[`curl ${t}${AS[i]} \\`,` -H "Authorization: Bearer ${MS(a)}" \\`,' -H "Content-Type: application/json" \\',` -d '${DS(i,r).replaceAll("'","'\\''")}'`].join(`
|
|
85
|
-
`)}function ng(t,r,i="openai-chat-completions",a=Ta){return["import OpenAI from 'openai'","","const client = new OpenAI({",` baseURL: '${t}/v1',`,` apiKey: ${Jv(a)},`,"})","",...i==="openai-images"?["const result = await client.images.generate({",` model: '${r}',`,` prompt: '${td}',`,"})","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 FS(t,r,i="openai-chat-completions",a=Ta){return[..."env"in a?["import os"]:[],"from openai import OpenAI","",`client = OpenAI(base_url="${t}/v1", api_key=${OS(a)})`,"",...i==="openai-images"?[`result = client.images.generate(model="${r}", prompt="${td}")`,"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 rg(t,r,i=Ta){return["import Anthropic from '@anthropic-ai/sdk'","","const client = new Anthropic({",` baseURL: '${t}',`,` authToken: ${Jv(i)}, // sent as Authorization: Bearer`,"})","","const reply = await client.messages.create({",` model: '${r}',`," max_tokens: 1024,"," messages: [{ role: 'user', content: 'Hello' }],","})"].join(`
|
|
88
|
-
`)}function $S(t,r){return["# ~/.codex/config.toml",`model = "${r}"`,'model_provider = "antseed"',"","[model_providers.antseed]",'name = "Antseed gateway"',`base_url = "${t}/v1"`,`env_key = "${ja}"`,'wire_api = "responses"'].join(`
|
|
89
|
-
`)}function zS(t,r){return[`export ANTHROPIC_BASE_URL="${t}"`,`export ANTHROPIC_AUTH_TOKEN="$${ja}"`,`export ANTHROPIC_MODEL="${r}"`,"claude"].join(`
|
|
90
|
-
`)}function US(t,r){return[`Base URL: ${t}/v1`,`API key: $${ja} (your Antseed key)`,`Model: ${r}`].join(`
|
|
91
|
-
`)}function YC(t,r,i="<model>"){const a={secret:r};return[{id:"curl",label:"curl",code:tg(t,i,"openai-chat-completions",a)},{id:"openai",label:"OpenAI SDK",code:ng(t,i,"openai-chat-completions",a)},{id:"anthropic",label:"Anthropic SDK",code:rg(t,i,a)}]}function BS(t,r,i){const a=[{id:"curl",label:"curl",language:"shell",code:tg(t,r,i)},{id:"openai-python",label:"Python",language:"python",code:FS(t,r,i)},{id:"openai-js",label:"JavaScript",language:"javascript",code:ng(t,r,i)}];return i==="anthropic-messages"&&a.push({id:"anthropic",label:"Anthropic SDK",language:"javascript",code:rg(t,r)}),a}function ZC(t,r,i,a,u){const d=eg(r,i),m=BS(t,d,a);return a==="openai-images"||m.push({id:"codex",label:"Codex",language:"toml",code:$S(t,u??"@preset/<your-preset>")},{id:"claude-code",label:"Claude Code",language:"shell",code:zS(t,d)},{id:"openai-compatible",label:"Cursor / OpenAI-compatible",language:"text",code:US(t,d)}),m}function HS(){var r;const t=Ev();return IS((r=t.data)==null?void 0:r.publicUrl,window.location.origin)}function WS(){const t=gv();return async r=>{await hv(r)?t("Copied"):t("Could not copy to the clipboard","danger")}}function XC(t,r,i){return{label:"Copy model id",onSelect:()=>void t(eg(r,i))}}function JC({value:t,label:r}){const i=WS();return f.jsx(Uo,{label:r,size:"sm",className:"gc-copy-id",onClick:a=>{a.stopPropagation(),i(t)},children:f.jsx(lt.copy,{size:13})})}function qp({className:t}){const r=NS(HS());return f.jsxs("div",{className:["gc-endpoint",t].filter(Boolean).join(" "),title:`OpenAI-compatible base URL: ${r}`,children:[f.jsx("span",{className:"gc-endpoint__label",children:"API"}),f.jsx("code",{className:"gc-endpoint__url",children:r}),f.jsx(zc,{iconOnly:!0,value:r,label:"Copy the gateway API URL",className:"gc-endpoint__copy"})]})}const ig="https://antseed.com/docs/gateway",VS=O.lazy(()=>Ve(()=>import("./Migrate-D5lsM7jR.js"),[]));function pc({to:t="overview",tagged:r,size:i=26}){const a=f.jsxs(f.Fragment,{children:[f.jsx(c2,{height:i,className:"gc-brand__full"}),f.jsx(d2,{size:26,className:"gc-brand__mark"}),f.jsx("span",{className:"gc-brand__tag",children:"Console"})]}),u=r?"gc-brand gc-brand--tagged":"gc-brand";return t===null?f.jsx("span",{className:u,children:a}):f.jsx("a",{className:u,href:ba(t),onClick:qc(t),"aria-label":"Antseed console home",children:a})}const mc="No authorized wallet: nobody can withdraw funds or claim ANTS rewards";function qS(){const{me:t,workspace:r,setWorkspaceId:i}=ir(),{missingOperator:a,currentMissingOperator:u}=jv(),d=u&&f.jsx("span",{className:"gc-attention",role:"img","aria-label":mc,title:mc});return t.workspaces.length<=1?f.jsxs("span",{className:"gc-ws",title:"Workspace","data-tour":"workspace",children:[f.jsx(lt.workspaces,{size:14}),f.jsx("span",{className:"gc-ws__name",children:r.name}),d]}):f.jsxs("label",{className:"gc-ws gc-ws--select","data-tour":"workspace",children:[f.jsx(lt.workspaces,{size:14}),f.jsx("select",{className:"gc-ws__select",value:r.id,onChange:m=>i(m.target.value),"aria-label":"Switch workspace",children:t.workspaces.map(({workspace:m,role:v})=>f.jsxs("option",{value:m.id,children:[m.name,v==="admin"?" (admin)":"",m.id!==r.id&&a.has(m.id)?" · no authorized wallet":""]},m.id))}),d,f.jsx(lt.down,{size:14,className:"gc-ws__chevron"})]})}function KS(t,r){return t!=="wallet"?null:r.currentMissingOperator?mc:r.withdrawable.count>0?`${r.withdrawable.count} channel${r.withdrawable.count===1?"":"s"} ready to withdraw`:null}function Kp({current:t,onNavigate:r}){const{viewer:i}=ir(),a=jv(),u=C2(i),d=[...new Set(u.map(m=>m.group))];return f.jsx("nav",{className:"gc-nav","aria-label":"Console",children:d.map(m=>f.jsxs("div",{className:"gc-nav__group",children:[f.jsx("div",{className:"gc-nav__heading",children:m}),u.filter(v=>v.group===m).map(v=>{const g=lt[v.id]??lt.overview;return f.jsxs("a",{href:ba(v.id),"aria-current":v.id===t?"page":void 0,"data-tour":`nav-${v.id}`,className:v.id===t?"gc-nav__item gc-nav__item--on":"gc-nav__item",onClick:h=>{qc(v.id)(h),r==null||r()},children:[f.jsx(g,{size:16}),f.jsx("span",{children:v.label}),(()=>{const h=KS(v.id,a);return h&&f.jsx("span",{className:"gc-attention gc-nav__attention",role:"img","aria-label":h,title:h})})()]},v.id)})]},m))})}const Qp={system:"System",dark:"Dark",light:"Light"},QS={system:"dark",dark:"light",light:"system"},GS={system:lt.monitor,dark:lt.moon,light:lt.sun};function og(){const[t,r]=I2(),i=QS[t],a=GS[t];return f.jsx(Uo,{className:"gc-topbar__icon",label:`Color theme: ${Qp[t]}. Switch to ${Qp[i]}.`,onClick:()=>r(i),children:f.jsx(a,{size:16})})}function YS(){const t=rr();return async()=>{try{await he.auth.logout()}finally{t.clear(),an("login",{replace:!0})}}}function ZS(t){var u;const r=t.trim().split(/\s+/).filter(Boolean),i=((u=r[0])==null?void 0:u[0])??"?",a=r.length>1?r[r.length-1][0]:"";return(i+a).toUpperCase()}function XS({onAccount:t,onTour:r,onSignOut:i}){const{me:a}=ir(),[u,d]=O.useState(!1),m=O.useRef(null),v=O.useRef(null);O.useEffect(()=>{var I,L;if(!u)return;const x=_=>{var N;(N=m.current)!=null&&N.contains(_.target)||d(!1)},C=_=>{var N;_.key==="Escape"&&(d(!1),(N=v.current)==null||N.focus())};return document.addEventListener("mousedown",x),document.addEventListener("keydown",C),(L=(I=m.current)==null?void 0:I.querySelector('[role="menuitem"]'))==null||L.focus(),()=>{document.removeEventListener("mousedown",x),document.removeEventListener("keydown",C)}},[u]);const g=x=>()=>{d(!1),x()},h=Wc[a.member.orgRole],y=a.member.email?`${a.member.email} · ${h}`:h;return f.jsxs("div",{className:"gc-account",ref:m,"data-tour":"account",children:[f.jsx("button",{ref:v,type:"button",className:"gc-user","aria-haspopup":"menu","aria-expanded":u,"aria-label":`Your account: ${a.member.label}`,onClick:()=>d(x=>!x),children:f.jsx("span",{className:"gc-avatar","aria-hidden":"true",children:ZS(a.member.label)})}),u&&f.jsxs("div",{className:"gc-account__menu",role:"menu","aria-label":"Account",children:[f.jsxs("div",{className:"gc-account__who",children:[f.jsx("div",{className:"gc-account__name",children:a.member.label}),f.jsx("div",{className:"gc-account__meta",children:y})]}),f.jsxs("button",{type:"button",role:"menuitem",className:"gc-account__item",onClick:g(t),children:[f.jsx(lt.shield,{size:15}),"Account and sign-in"]}),f.jsxs("button",{type:"button",role:"menuitem",className:"gc-account__item",onClick:g(r),children:[f.jsx(lt.compass,{size:15}),"Take the tour"]}),f.jsxs("a",{role:"menuitem",className:"gc-account__item",href:ig,target:"_blank",rel:"noreferrer",onClick:()=>d(!1),children:[f.jsx(lt.external,{size:15}),"Documentation"]}),f.jsx("div",{className:"gc-account__sep"}),f.jsxs("button",{type:"button",role:"menuitem",className:"gc-account__item",onClick:g(i),children:[f.jsx(lt.logout,{size:15}),"Sign out"]})]})]})}function JS({page:t,children:r}){const[i,a]=O.useState(!1),[u,d]=O.useState(()=>new URLSearchParams(window.location.search).get("account")==="1"),m=YS(),v=Vc().page==="migrate",g=v?null:t,{me:h,viewer:y}=ir();return O.useEffect(()=>{if(v||$x(h.member.id))return;const x=window.setTimeout(()=>zp(y,h.member.id),600);return()=>window.clearTimeout(x)},[h.member.id]),f.jsxs(f.Fragment,{children:[f.jsxs("div",{className:"gc-app","data-page":g??void 0,children:[f.jsx("a",{className:"gc-skip",href:"#gc-main",children:"Skip to content"}),f.jsxs("header",{className:"gc-topbar",children:[f.jsxs("div",{className:"gc-topbar__inner",children:[f.jsx(Uo,{label:"Open menu",className:"gc-topbar__menu gc-topbar__icon",onClick:()=>a(!0),children:f.jsx(lt.menu,{size:16})}),f.jsx(pc,{}),f.jsx("span",{className:"gc-topbar__sep","aria-hidden":"true",children:"/"}),f.jsx(qS,{}),f.jsx("div",{className:"gc-topbar__spacer"}),f.jsx(qp,{className:"gc-endpoint--inline"}),f.jsx("a",{className:"gc-topbar__link",href:ig,target:"_blank",rel:"noreferrer",children:"Docs"}),f.jsx(og,{}),f.jsx(XS,{onAccount:()=>d(!0),onTour:()=>zp(y,h.member.id),onSignOut:()=>void m()})]}),f.jsx("div",{className:"gc-topbar__strip",children:f.jsx(qp,{})})]}),f.jsxs("div",{className:"gc-body",children:[f.jsxs("aside",{className:"gc-rail",children:[f.jsx(Kp,{current:g}),f.jsx(CS,{})]}),f.jsx("main",{id:"gc-main",className:"gc-main",tabIndex:-1,children:v?f.jsx(O.Suspense,{fallback:f.jsx(Mi,{rows:6}),children:f.jsx(VS,{})}):f.jsxs(f.Fragment,{children:[f.jsx(RS,{}),r]})})]})]}),f.jsx(l2,{isOpen:i,onClose:()=>a(!1),side:"left",title:f.jsx(pc,{to:null}),className:"gc-mobile-nav",children:f.jsx(Kp,{current:g,onNavigate:()=>a(!1)})}),f.jsx(vS,{isOpen:u,onClose:()=>d(!1)})]})}const ek=O.lazy(()=>Ve(()=>import("./WalletSignIn-Cq__V2L6.js"),__vite__mapDeps([0,1,2,3,4,5]))),Gp={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."},tk=new Set(["reauth_required","access_reauth_required","credential_exists"]);function sg(t){return Object.hasOwn(Gp,t)?Gp[t]:void 0}function nd(t){return Lr(t)&&sg(t.code)||_a(t)}function vc({title:t,subtitle:r,children:i}){return f.jsxs("div",{className:"gc-auth",children:[f.jsx("div",{className:"gc-auth__theme",children:f.jsx(og,{})}),f.jsx("div",{className:"gc-auth__logo",children:f.jsx(pc,{to:null,tagged:!0,size:30})}),f.jsxs(Ec,{className:"gc-auth__card",children:[f.jsx("h1",{className:"gc-auth__title",children:t}),r&&f.jsx("p",{className:"gc-auth__subtitle",children:r}),i]}),f.jsx("p",{className:"gc-auth__foot",children:"Self-hosted Antseed gateway"})]})}function ag(){const t=rr();return r=>{t.setQueryData(Re.me,r),an(r.kind==="key"?"key":"overview",{replace:!0})}}function Yp({label:t,run:r,primary:i}){const[a,u]=O.useState(!1),[d,m]=O.useState(null),v=Bo();return f.jsxs("div",{className:"gc-stack gc-stack--tight",children:[f.jsx(De,{fullWidth:!0,variant:i?"primary":"outline",disabled:a||!v,onClick:async()=>{u(!0),m(null);try{await r()}catch(g){m(hc(g)?fc:nd(g))}finally{u(!1)}},children:a?"Waiting for your passkey…":t}),!v&&f.jsx("p",{className:"gc-fineprint",children:"This browser does not support passkeys."}),d&&f.jsx(at,{tone:"danger",children:d})]})}function nk({enrollment:t,onSignedIn:r}){const[i,a]=O.useState(!1);return i?f.jsx(O.Suspense,{fallback:f.jsx(De,{variant:"outline",fullWidth:!0,disabled:!0,children:"Loading wallets…"}),children:f.jsx(ek,{enrollment:t,onSignedIn:r,autoConnect:!0})}):f.jsx(De,{variant:"outline",fullWidth:!0,onClick:()=>a(!0),children:"Sign in with a wallet"})}function rk(){return f.jsx("div",{className:"gc-divider",children:f.jsx("span",{children:"or"})})}function ik({onSignedIn:t}){const[r,i]=O.useState(""),[a,u]=O.useState(!1),[d,m]=O.useState(null);return f.jsxs("form",{className:"gc-stack gc-stack--tight",onSubmit:async v=>{v.preventDefault(),u(!0),m(null);try{t(await he.auth.apiKey(r.trim()))}catch(g){m(nd(g))}finally{u(!1)}},children:[f.jsx(v2,{label:"API key",type:"password",autoComplete:"off",placeholder:"Paste your key to see its usage",value:r,onChange:v=>i(v.target.value)}),f.jsx(De,{type:"submit",variant:"outline",fullWidth:!0,disabled:a||!r.trim(),children:a?"Checking…":"View key usage"}),d&&f.jsx(at,{tone:"danger",children:d})]})}function ok({mode:t,enrollment:r,onSignedIn:i}){return t==="login"?f.jsx(Yp,{primary:!0,label:"Sign in with a passkey",run:async()=>{const a=await he.auth.passkeyLoginOptions(),u=await Yv({optionsJSON:a});i(await he.auth.passkeyLoginVerify(u))}}):f.jsx(Yp,{primary:!0,label:"Create a passkey",run:async()=>{const a=await he.auth.passkeyRegisterOptions(r),u=await Gv({optionsJSON:a});i(await he.auth.passkeyRegisterVerify(u,r))}})}function lg({config:t,enrollment:r,onSignedIn:i,mode:a}){const u=[];return t.passkey&&u.push(f.jsx(ok,{mode:a,enrollment:r,onSignedIn:i},"passkey")),t.wallet&&u.push(f.jsx(nk,{enrollment:r,onSignedIn:i},"wallet")),t.oidc&&u.push(f.jsxs(De,{variant:"outline",fullWidth:!0,href:he.auth.oidcStartUrl(r),children:["Continue with ",t.oidc.label]},"oidc")),u.length===0?f.jsx(at,{tone:"warning",children:"No sign-in method is enabled on this gateway. Check the gateway's console auth settings."}):f.jsx("div",{className:"gc-stack",children:u})}function sk(){const t=Qc(),r=ag(),i=new URLSearchParams(window.location.search).get("error");return f.jsxs(vc,{title:"Sign in",subtitle:"Manage keys, budgets, routing and funding for this gateway.",children:[i&&f.jsx(at,{tone:"danger",action:tk.has(i)?f.jsx(De,{size:"sm",variant:"outline",onClick:()=>an("overview?account=1",{replace:!0}),children:"Back to the console"}):void 0,children:sg(i)??"Sign-in did not complete. Try again."}),t.isLoading&&f.jsxs("div",{className:"gc-stack",children:[f.jsx(Mo,{height:34}),f.jsx(Mo,{height:34})]}),t.error?f.jsx(at,{tone:"danger",title:"Could not reach the gateway",children:_a(t.error)}):null,t.data&&f.jsxs("div",{className:"gc-stack",children:[t.data.setupRequired&&f.jsxs(at,{tone:"info",title:"Not set up yet",children:["Get a one-time setup link by running ",f.jsx("code",{children:"antseed gateway console-link"})," on the gateway, or ask the operator for it."]}),f.jsx(lg,{config:t.data,mode:"login",onSignedIn:r}),t.data.cloudflareAccess&&f.jsx("p",{className:"gc-fineprint",children:"This gateway also accepts Cloudflare Access. If you signed in there, reload this page."}),t.data.apiKeyLogin&&f.jsxs(f.Fragment,{children:[f.jsx(rk,{}),f.jsx(ik,{onSignedIn:r})]})]})]})}function ak({kind:t}){const[r,i]=O.useState(()=>window.location.hash.replace(/^#/,""));O.useEffect(()=>{const v=()=>{const g=window.location.hash.replace(/^#/,"");g&&(i(g),window.history.replaceState(null,"",window.location.pathname))};return v(),window.addEventListener("hashchange",v),()=>window.removeEventListener("hashchange",v)},[]);const a=ag(),u=Qc(),d=ze({queryKey:["enrollment",t,r],queryFn:()=>t==="setup"?he.auth.setup(r):t==="recover"?he.request("POST","/auth/recover",{body:{token:r}}):he.auth.invite(r),enabled:r!=="",retry:!1,staleTime:1/0}),m=t==="setup"?"Set up your Antseed console":t==="recover"?"Add a sign-in method":"You are invited";return r?f.jsxs(vc,{title:m,subtitle:d.data?t==="recover"?f.jsxs(f.Fragment,{children:["Welcome back, ",f.jsx("strong",{children:d.data.label}),". Add a passkey, wallet or single sign-on to sign in on this address."]}):f.jsxs(f.Fragment,{children:["Welcome, ",f.jsx("strong",{children:d.data.label}),". You will join as ",Wc[d.data.orgRole].toLowerCase(),". Choose how you sign in."]}):"Checking your link…",children:[(d.isLoading||u.isLoading)&&f.jsxs("div",{className:"gc-stack",children:[f.jsx(Mo,{height:34}),f.jsx(Mo,{height:34})]}),d.error?f.jsxs("div",{className:"gc-stack",children:[f.jsx(at,{tone:"danger",children:nd(d.error)}),f.jsx(De,{variant:"ghost",onClick:()=>an("login"),children:"Go to sign in"})]}):null,d.data&&u.data&&f.jsxs("div",{className:"gc-stack",children:[f.jsx(lg,{config:u.data,mode:"enroll",enrollment:d.data.enrollment,onSignedIn:a}),f.jsx("p",{className:"gc-fineprint",children:"A passkey uses your device's screen lock or a security key. Nothing to remember."})]})]}):f.jsxs(vc,{title:m,children:[f.jsx(at,{tone:"danger",children:"This link is missing its token. Open the full link you were given."}),f.jsx(De,{variant:"ghost",onClick:()=>an("login"),children:"Go to sign in"})]})}const ka={overview:()=>Ve(()=>import("./Overview-D5G2tGEo.js"),__vite__mapDeps([8,9,10,11,12,13])),chat:()=>Ve(()=>import("./Chat-T0qS59Xu.js").then(t=>t.C),__vite__mapDeps([14,2,3,15])),activity:()=>Ve(()=>import("./Activity-DmBxVhX7.js"),__vite__mapDeps([16,9,10,11,12,13,17,18,3])),logs:()=>Ve(()=>import("./Logs-BsAM5FMh.js"),__vite__mapDeps([19,20,21,10,18,3,22,17])),keys:()=>Ve(()=>import("./Keys-DrSAHaHB.js"),__vite__mapDeps([23,24,25,17,12,13,26,27,28,29,22,10,18,3,11])),members:()=>Ve(()=>import("./Members-Dt4m03ab.js"),__vite__mapDeps([30,24,25,17,12,13,26,27,29,18,3])),workspaces:()=>Ve(()=>import("./Workspaces-CYixrYxE.js"),__vite__mapDeps([31,24,25,17,12,13,26,27,29,18,3])),wallet:()=>Ve(()=>import("./Wallet-ByJgGxqY.js"),__vite__mapDeps([32,33,4,34,27,18,3,26])),rewards:()=>Ve(()=>import("./Rewards-DJj-p9Np.js"),__vite__mapDeps([35,33,36,18,3])),providers:()=>Ve(()=>import("./Providers-DwVfGgZj.js"),__vite__mapDeps([37,25,17,12,13,26,27,18,3,38,36,39,24,40,28])),models:()=>Ve(()=>import("./Models-DjTeLItT.js"),__vite__mapDeps([41,28,13,38,17,26,18,3])),routing:()=>Ve(()=>import("./Routing-LfYjjbov.js"),__vite__mapDeps([42,24,25,17,12,13,26,27,18,3,28])),presets:()=>Ve(()=>import("./Presets-DbjhaVl4.js"),__vite__mapDeps([39,24,25,17,12,13,26,27,18,3,40])),audit:()=>Ve(()=>import("./Audit-xjujDcFx.js"),__vite__mapDeps([43,21,17,18,3])),settings:()=>Ve(()=>import("./Settings-CPqBAsTx.js"),__vite__mapDeps([44,25,17,12,13,26,27,40,28,18,3]))},ug={};for(const t of Object.keys(ka))ug[t]=O.lazy(ka[t]);const Zp=kv(window.location.pathname).page;cg(Zp)&&ka[Zp]().catch(()=>{});const Xp=()=>{ka.chat().catch(()=>{})};"requestIdleCallback"in window?window.requestIdleCallback(Xp,{timeout:4e3}):setTimeout(Xp,2e3);const lk=O.lazy(()=>Ve(()=>import("./KeyHolder-BFM8S7rC.js"),__vite__mapDeps([45,20,21,10,18,3,11]))),uk=new Vw({defaultOptions:{queries:{staleTime:1e4,refetchOnWindowFocus:!1,retry:(t,r)=>!(Lr(r)&&r.status>=400&&r.status<500)&&t<2}}});class ck extends O.Component{constructor(){super(...arguments);xu(this,"state",{failed:!1})}static getDerivedStateFromError(i){return{failed:!0,error:i}}render(){return this.state.failed?f.jsx(ed,{error:this.state.error,title:"This page failed to load",onRetry:()=>this.setState({failed:!1,error:void 0})}):this.props.children}}function cg(t){return Bc.some(r=>r.id===t)}function dk({me:t,page:r}){const[i,a]=O.useState(()=>{var C;return((C=Rp(t,j2()))==null?void 0:C.id)??null}),u=Rp(t,i),d=rr(),m=Vc(),v=b2(m.page,m.rest);O.useEffect(()=>{v&&an(v,{replace:!0})},[v]);const g=O.useMemo(()=>{if(!u)return null;const C=E2({me:t},u.id);return{me:t,workspace:u,workspaceRole:C.workspaceRole,viewer:C,setWorkspaceId:I=>{T2(I),a(I),d.invalidateQueries()}}},[t,u,d]);if(v)return f.jsx("div",{className:"gc-centered",children:f.jsx(Mi,{rows:3})});if(!g)return f.jsx("div",{className:"gc-centered",children:f.jsx(at,{tone:"warning",title:"No workspace",children:"You are not a member of any workspace yet. Ask an admin to add you."})});const h=cg(r)?r:"overview",y=Hc(h,g.viewer),x=ug[h];return f.jsx(wv.Provider,{value:g,children:f.jsx(JS,{page:h,children:f.jsx(ck,{children:f.jsx(O.Suspense,{fallback:f.jsx(Mi,{rows:6}),children:y?f.jsx(x,{}):f.jsx(at,{tone:"warning",title:"Not available",children:"Your role cannot open this page."})})},m.page)})})}function fk({page:t}){const r=G2(),i=Lr(r.error)&&r.error.status===401;return O.useEffect(()=>{i&&an("login",{replace:!0})},[i]),r.isLoading||i?f.jsx("div",{className:"gc-centered",children:f.jsx(Mi,{rows:3})}):r.error?f.jsxs("div",{className:"gc-centered gc-stack",children:[f.jsx(ed,{error:r.error,title:"Could not open the console",onRetry:()=>void r.refetch()}),f.jsx(De,{variant:"ghost",onClick:()=>an("login"),children:"Go to sign in"})]}):r.data?r.data.kind==="key"?f.jsx(O.Suspense,{fallback:f.jsx(Mi,{rows:6}),children:f.jsx(lk,{})}):f.jsx(dk,{me:r.data.me,page:t}):null}function hk(){const t=Vc();return t.page==="login"?f.jsx(sk,{}):t.page==="setup"||t.page==="invite"||t.page==="recover"?f.jsx(ak,{kind:t.page}):f.jsx(fk,{page:t.page})}function pk(){return f.jsx(qw,{client:uk,children:f.jsx(y2,{children:f.jsx(hk,{})})})}R2();async function mk(){const t=document.getElementById("root");if(!t)throw new Error("#root element is missing");Sw.createRoot(t).render(f.jsx(O.StrictMode,{children:f.jsx(pk,{})}))}mk();export{m2 as $,fv as A,De as B,s2 as C,rr as D,Pk as E,gv as F,uC as G,dC as H,lt as I,VC as J,Kc as K,Mi as L,UC as M,qC as N,tC as O,Ck as P,zC as Q,lC as R,_k as S,v2 as T,l2 as U,bk as V,jk as W,D2 as X,Lr as Y,p2 as Z,Ve as _,Rk as a,_2 as a$,h2 as a0,YS as a1,G2 as a2,pc as a3,qp as a4,og as a5,Cv as a6,Dk as a7,Np as a8,F2 as a9,hc as aA,yC as aB,Pv as aC,IS as aD,YC as aE,Tk as aF,HC as aG,AC as aH,yv as aI,LC as aJ,Gk as aK,DC as aL,pa as aM,Wc as aN,nC as aO,WC as aP,Nk as aQ,Ik as aR,HS as aS,BS as aT,ja as aU,Vc as aV,P2 as aW,Zk as aX,WS as aY,JC as aZ,Ok as a_,Fk as aa,Lk as ab,at as ac,Ev as ad,KC as ae,QC as af,_a as ag,$C as ah,ww as ai,fC as aj,qk as ak,pC as al,B2 as am,W2 as an,H2 as ao,zc as ap,Eo as aq,z2 as ar,vC as as,mC as at,Lo as au,hC as av,K2 as aw,dS as ax,fS as ay,fc as az,rC as b,ZC as b$,eg as b0,GC as b1,Yk as b2,cC as b3,iC as b4,wi as b5,XC as b6,aC as b7,kC as b8,Xk as b9,NC as bA,CC as bB,Oi as bC,Qe as bD,ma as bE,dm as bF,Kw as bG,Yw as bH,e1 as bI,Zw as bJ,Xw as bK,ht as bL,n1 as bM,pp as bN,Jw as bO,Hc as bP,qc as bQ,ba as bR,oC as bS,jv as bT,BC as bU,Ak as bV,PC as bW,bC as bX,uS as bY,Qk as bZ,LS as b_,sC as ba,nS as bb,rS as bc,xC as bd,Gx as be,i1 as bf,wC as bg,Zv as bh,Uo as bi,IC as bj,SC as bk,OC as bl,EC as bm,Zc as bn,Kx as bo,RC as bp,MC as bq,jC as br,_C as bs,TC as bt,Fw as bu,hp as bv,Sk as bw,xk as bx,r1 as by,FC as bz,eC as c,Kk as c0,gC as c1,gk as c2,fw as c3,J2 as c4,Bk as c5,vS as c6,Hk as c7,Wk as c8,V2 as c9,zk as ca,Uk as cb,U2 as cc,$k as cd,Vk as ce,yk as cf,wk as cg,$c as ch,Y0 as ci,w2 as cj,x2 as ck,yc as cl,Tm as cm,Pm as cn,_m as co,rn as cp,da as cq,fa as cr,rv as cs,d1 as ct,L0 as cu,f1 as cv,Jt as cw,N2 as cx,ze as d,he as e,L2 as f,A2 as g,Mk as h,Uc as i,f as j,Ek as k,Ct as l,Pa as m,ed as n,Jk as o,Y2 as p,Re as q,O as r,cS as s,Cm as t,ir as u,sn as v,Z2 as w,an as x,$2 as y,Yx as z};
|