@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
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/WalletSignIn-B9g_MY0h.js","assets/en_US-Y4ZOVFV4-CzjJ6dvA.js","assets/clsx-B-dksMZM.js","assets/index-D5ERwHFX.js","assets/index-BwpQbdIU.js","assets/en_US-Y4ZOVFV4-CcVPgXVa.css","assets/WalletConfirm-BQCbOnNv.js","assets/ConnectWallet-DSqRjyNA.js","assets/Overview-zEyUG_qA.js","assets/UsageByModel-BBqXiIqo.js","assets/usage-CjxizGfE.js","assets/Charts-DAh9h4sf.js","assets/Segmented-Qx6JB6EU.js","assets/roving-DkptacxO.js","assets/Chat-DznobJkE.js","assets/Chat-Dtte195G.css","assets/Activity-BsmDMcni.js","assets/SelectField-D8fxDUNO.js","assets/DataTable-CDFSD9Kq.js","assets/Logs-CNCQTTeZ.js","assets/RequestLog-DhID_VN7.js","assets/useInfiniteQuery-Dm7RR6wI.js","assets/dates-Pi3-Ywng.js","assets/Keys-CxaYteT3.js","assets/PolicyField-DIPl0B1x.js","assets/PolicyEditor-BdoaX9gK.js","assets/Switch-Ba56zux7.js","assets/Disclosure-UjXa2WU7.js","assets/Tabs-BmjCmD5T.js","assets/limits-DETkh9Vy.js","assets/Members-Bme-PLUh.js","assets/Workspaces-DUn5iA_D.js","assets/Wallet-DggtuX-0.js","assets/ChainGate-Dvm-SUef.js","assets/dijkstra-COg3n3zL.js","assets/Rewards-XyWhpm9Z.js","assets/ants-B38m9Phv.js","assets/Providers-BxpNjH9s.js","assets/models-Ben8ko6c.js","assets/Presets-CoTmwoy_.js","assets/TextAreaField-CF9_zjuC.js","assets/Models-Bt59XWgD.js","assets/Routing-Du8GLQCH.js","assets/Audit-TIDz29y6.js","assets/Settings-CvfS7lxA.js","assets/KeyHolder-e5NvqLQn.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var rw=Object.defineProperty;var qh=t=>{throw TypeError(t)};var iw=(t,r,i)=>r in t?rw(t,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[r]=i;var gu=(t,r,i)=>iw(t,typeof r!="symbol"?r+"":r,i),yu=(t,r,i)=>r.has(t)||qh("Cannot "+i);var S=(t,r,i)=>(yu(t,r,"read from private field"),i?i.call(t):r.get(t)),te=(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),q=(t,r,i,a)=>(yu(t,r,"write to private field"),a?a.call(t,i):r.set(t,i),i),ue=(t,r,i)=>(yu(t,r,"access private method"),i);var Ys=(t,r,i,a)=>({set _(u){q(t,r,u,i)},get _(){return S(t,r,a)}});function ow(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 sw="modulepreload",aw=function(t){return"/console/"+t},Kh={},Ue=function(r,i,a){let u=Promise.resolve();if(i&&i.length>0){let m=function(h){return Promise.all(h.map(w=>Promise.resolve(w).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=aw(h),h in Kh)return;Kh[h]=!0;const w=h.endsWith(".css"),x=w?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${x}`))return;const C=document.createElement("link");if(C.rel=w?"stylesheet":sw,w||(C.as="script"),C.crossOrigin="",C.href=h,g&&C.setAttribute("nonce",g),document.head.appendChild(C),w)return new Promise((N,L)=>{C.addEventListener("load",N),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 sk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lw(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ak(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 wu={exports:{}},xo={},xu={exports:{}},he={};/**
|
|
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 Qh;function uw(){if(Qh)return he;Qh=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"),w=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 N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,E={};function I(P,F,le){this.props=P,this.context=F,this.refs=E,this.updater=le||N}I.prototype.isReactComponent={},I.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")},I.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function D(){}D.prototype=I.prototype;function B(P,F,le){this.props=P,this.context=F,this.refs=E,this.updater=le||N}var b=B.prototype=new D;b.constructor=B,L(b,I.prototype),b.isPureReactComponent=!0;var T=Array.isArray,A=Object.prototype.hasOwnProperty,V={current:null},oe={key:!0,ref:!0,__self:!0,__source:!0};function ee(P,F,le){var de,ve={},ge=null,Ce=null;if(F!=null)for(de in F.ref!==void 0&&(Ce=F.ref),F.key!==void 0&&(ge=""+F.key),F)A.call(F,de)&&!oe.hasOwnProperty(de)&&(ve[de]=F[de]);var xe=arguments.length-2;if(xe===1)ve.children=le;else if(1<xe){for(var _e=Array(xe),ct=0;ct<xe;ct++)_e[ct]=arguments[ct+2];ve.children=_e}if(P&&P.defaultProps)for(de in xe=P.defaultProps,xe)ve[de]===void 0&&(ve[de]=xe[de]);return{$$typeof:t,type:P,key:ge,ref:Ce,props:ve,_owner:V.current}}function se(P,F){return{$$typeof:t,type:P.type,key:F,ref:P.ref,props:P.props,_owner:P._owner}}function ce(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function Z(P){var F={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(le){return F[le]})}var Te=/\/+/g;function Be(P,F){return typeof P=="object"&&P!==null&&P.key!=null?Z(""+P.key):F.toString(36)}function qe(P,F,le,de,ve){var ge=typeof P;(ge==="undefined"||ge==="boolean")&&(P=null);var Ce=!1;if(P===null)Ce=!0;else switch(ge){case"string":case"number":Ce=!0;break;case"object":switch(P.$$typeof){case t:case r:Ce=!0}}if(Ce)return Ce=P,ve=ve(Ce),P=de===""?"."+Be(Ce,0):de,T(ve)?(le="",P!=null&&(le=P.replace(Te,"$&/")+"/"),qe(ve,F,le,"",function(ct){return ct})):ve!=null&&(ce(ve)&&(ve=se(ve,le+(!ve.key||Ce&&Ce.key===ve.key?"":(""+ve.key).replace(Te,"$&/")+"/")+P)),F.push(ve)),1;if(Ce=0,de=de===""?".":de+":",T(P))for(var xe=0;xe<P.length;xe++){ge=P[xe];var _e=de+Be(ge,xe);Ce+=qe(ge,F,le,_e,ve)}else if(_e=C(P),typeof _e=="function")for(P=_e.call(P),xe=0;!(ge=P.next()).done;)ge=ge.value,_e=de+Be(ge,xe++),Ce+=qe(ge,F,le,_e,ve);else if(ge==="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 Ce}function Ke(P,F,le){if(P==null)return P;var de=[],ve=0;return qe(P,de,"","",function(ge){return F.call(le,ge,ve++)}),de}function nt(P){if(P._status===-1){var F=P._result;F=F(),F.then(function(le){(P._status===0||P._status===-1)&&(P._status=1,P._result=le)},function(le){(P._status===0||P._status===-1)&&(P._status=2,P._result=le)}),P._status===-1&&(P._status=0,P._result=F)}if(P._status===1)return P._result.default;throw P._result}var Re={current:null},W={transition:null},ne={ReactCurrentDispatcher:Re,ReactCurrentBatchConfig:W,ReactCurrentOwner:V};function Q(){throw Error("act(...) is not supported in production builds of React.")}return he.Children={map:Ke,forEach:function(P,F,le){Ke(P,function(){F.apply(this,arguments)},le)},count:function(P){var F=0;return Ke(P,function(){F++}),F},toArray:function(P){return Ke(P,function(F){return F})||[]},only:function(P){if(!ce(P))throw Error("React.Children.only expected to receive a single React element child.");return P}},he.Component=I,he.Fragment=i,he.Profiler=u,he.PureComponent=B,he.StrictMode=a,he.Suspense=g,he.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ne,he.act=Q,he.cloneElement=function(P,F,le){if(P==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+P+".");var de=L({},P.props),ve=P.key,ge=P.ref,Ce=P._owner;if(F!=null){if(F.ref!==void 0&&(ge=F.ref,Ce=V.current),F.key!==void 0&&(ve=""+F.key),P.type&&P.type.defaultProps)var xe=P.type.defaultProps;for(_e in F)A.call(F,_e)&&!oe.hasOwnProperty(_e)&&(de[_e]=F[_e]===void 0&&xe!==void 0?xe[_e]:F[_e])}var _e=arguments.length-2;if(_e===1)de.children=le;else if(1<_e){xe=Array(_e);for(var ct=0;ct<_e;ct++)xe[ct]=arguments[ct+2];de.children=xe}return{$$typeof:t,type:P.type,key:ve,ref:ge,props:de,_owner:Ce}},he.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},he.createElement=ee,he.createFactory=function(P){var F=ee.bind(null,P);return F.type=P,F},he.createRef=function(){return{current:null}},he.forwardRef=function(P){return{$$typeof:v,render:P}},he.isValidElement=ce,he.lazy=function(P){return{$$typeof:w,_payload:{_status:-1,_result:P},_init:nt}},he.memo=function(P,F){return{$$typeof:h,type:P,compare:F===void 0?null:F}},he.startTransition=function(P){var F=W.transition;W.transition={};try{P()}finally{W.transition=F}},he.unstable_act=Q,he.useCallback=function(P,F){return Re.current.useCallback(P,F)},he.useContext=function(P){return Re.current.useContext(P)},he.useDebugValue=function(){},he.useDeferredValue=function(P){return Re.current.useDeferredValue(P)},he.useEffect=function(P,F){return Re.current.useEffect(P,F)},he.useId=function(){return Re.current.useId()},he.useImperativeHandle=function(P,F,le){return Re.current.useImperativeHandle(P,F,le)},he.useInsertionEffect=function(P,F){return Re.current.useInsertionEffect(P,F)},he.useLayoutEffect=function(P,F){return Re.current.useLayoutEffect(P,F)},he.useMemo=function(P,F){return Re.current.useMemo(P,F)},he.useReducer=function(P,F,le){return Re.current.useReducer(P,F,le)},he.useRef=function(P){return Re.current.useRef(P)},he.useState=function(P){return Re.current.useState(P)},he.useSyncExternalStore=function(P,F,le){return Re.current.useSyncExternalStore(P,F,le)},he.useTransition=function(){return Re.current.useTransition()},he.version="18.3.1",he}var Gh;function mc(){return Gh||(Gh=1,xu.exports=uw()),xu.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 Yh;function cw(){if(Yh)return xo;Yh=1;var t=mc(),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 w,x={},C=null,N=null;h!==void 0&&(C=""+h),g.key!==void 0&&(C=""+g.key),g.ref!==void 0&&(N=g.ref);for(w in g)a.call(g,w)&&!d.hasOwnProperty(w)&&(x[w]=g[w]);if(v&&v.defaultProps)for(w in g=v.defaultProps,g)x[w]===void 0&&(x[w]=g[w]);return{$$typeof:r,type:v,key:C,ref:N,props:x,_owner:u.current}}return xo.Fragment=i,xo.jsx=m,xo.jsxs=m,xo}var Zh;function dw(){return Zh||(Zh=1,wu.exports=cw()),wu.exports}var f=dw(),O=mc();const Jt=lw(O),lk=ow({__proto__:null,default:Jt},[O]);var Zs={},Su={exports:{}},xt={},ku={exports:{}},Cu={};/**
|
|
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 Xh;function fw(){return Xh||(Xh=1,(function(t){function r(W,ne){var Q=W.length;W.push(ne);e:for(;0<Q;){var P=Q-1>>>1,F=W[P];if(0<u(F,ne))W[P]=ne,W[Q]=F,Q=P;else break e}}function i(W){return W.length===0?null:W[0]}function a(W){if(W.length===0)return null;var ne=W[0],Q=W.pop();if(Q!==ne){W[0]=Q;e:for(var P=0,F=W.length,le=F>>>1;P<le;){var de=2*(P+1)-1,ve=W[de],ge=de+1,Ce=W[ge];if(0>u(ve,Q))ge<F&&0>u(Ce,ve)?(W[P]=Ce,W[ge]=Q,P=ge):(W[P]=ve,W[de]=Q,P=de);else if(ge<F&&0>u(Ce,Q))W[P]=Ce,W[ge]=Q,P=ge;else break e}}return ne}function u(W,ne){var Q=W.sortIndex-ne.sortIndex;return Q!==0?Q:W.id-ne.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=[],w=1,x=null,C=3,N=!1,L=!1,E=!1,I=typeof setTimeout=="function"?setTimeout:null,D=typeof clearTimeout=="function"?clearTimeout:null,B=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 ne=i(h);ne!==null;){if(ne.callback===null)a(h);else if(ne.startTime<=W)a(h),ne.sortIndex=ne.expirationTime,r(g,ne);else break;ne=i(h)}}function T(W){if(E=!1,b(W),!L)if(i(g)!==null)L=!0,nt(A);else{var ne=i(h);ne!==null&&Re(T,ne.startTime-W)}}function A(W,ne){L=!1,E&&(E=!1,D(ee),ee=-1),N=!0;var Q=C;try{for(b(ne),x=i(g);x!==null&&(!(x.expirationTime>ne)||W&&!Z());){var P=x.callback;if(typeof P=="function"){x.callback=null,C=x.priorityLevel;var F=P(x.expirationTime<=ne);ne=t.unstable_now(),typeof F=="function"?x.callback=F:x===i(g)&&a(g),b(ne)}else a(g);x=i(g)}if(x!==null)var le=!0;else{var de=i(h);de!==null&&Re(T,de.startTime-ne),le=!1}return le}finally{x=null,C=Q,N=!1}}var V=!1,oe=null,ee=-1,se=5,ce=-1;function Z(){return!(t.unstable_now()-ce<se)}function Te(){if(oe!==null){var W=t.unstable_now();ce=W;var ne=!0;try{ne=oe(!0,W)}finally{ne?Be():(V=!1,oe=null)}}else V=!1}var Be;if(typeof B=="function")Be=function(){B(Te)};else if(typeof MessageChannel<"u"){var qe=new MessageChannel,Ke=qe.port2;qe.port1.onmessage=Te,Be=function(){Ke.postMessage(null)}}else Be=function(){I(Te,0)};function nt(W){oe=W,V||(V=!0,Be())}function Re(W,ne){ee=I(function(){W(t.unstable_now())},ne)}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||N||(L=!0,nt(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"):se=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 ne=3;break;default:ne=C}var Q=C;C=ne;try{return W()}finally{C=Q}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(W,ne){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var Q=C;C=W;try{return ne()}finally{C=Q}},t.unstable_scheduleCallback=function(W,ne,Q){var P=t.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?P+Q:P):Q=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=Q+F,W={id:w++,callback:ne,priorityLevel:W,startTime:Q,expirationTime:F,sortIndex:-1},Q>P?(W.sortIndex=Q,r(h,W),i(g)===null&&W===i(h)&&(E?(D(ee),ee=-1):E=!0,Re(T,Q-P))):(W.sortIndex=F,r(g,W),L||N||(L=!0,nt(A))),W},t.unstable_shouldYield=Z,t.unstable_wrapCallback=function(W){var ne=C;return function(){var Q=C;C=ne;try{return W.apply(this,arguments)}finally{C=Q}}}})(Cu)),Cu}var Jh;function hw(){return Jh||(Jh=1,ku.exports=fw()),ku.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 ep;function pw(){if(ep)return xt;ep=1;var t=mc(),r=hw();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]*$/,w={},x={};function C(e){return g.call(x,e)?!0:g.call(w,e)?!1:h.test(e)?x[e]=!0:(w[e]=!0,!1)}function N(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"||N(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(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 I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){I[e]=new E(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];I[n]=new E(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){I[e]=new E(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){I[e]=new E(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){I[e]=new E(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){I[e]=new E(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){I[e]=new E(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){I[e]=new E(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){I[e]=new E(e,5,!1,e.toLowerCase(),null,!1,!1)});var D=/[\-:]([a-z])/g;function B(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,B);I[n]=new E(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(D,B);I[n]=new E(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(D,B);I[n]=new E(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){I[e]=new E(e,1,!1,e.toLowerCase(),null,!1,!1)}),I.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){I[e]=new E(e,1,!1,e.toLowerCase(),null,!0,!0)});function b(e,n,o,s){var l=I.hasOwnProperty(n)?I[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"),V=Symbol.for("react.portal"),oe=Symbol.for("react.fragment"),ee=Symbol.for("react.strict_mode"),se=Symbol.for("react.profiler"),ce=Symbol.for("react.provider"),Z=Symbol.for("react.context"),Te=Symbol.for("react.forward_ref"),Be=Symbol.for("react.suspense"),qe=Symbol.for("react.suspense_list"),Ke=Symbol.for("react.memo"),nt=Symbol.for("react.lazy"),Re=Symbol.for("react.offscreen"),W=Symbol.iterator;function ne(e){return e===null||typeof e!="object"?null:(e=W&&e[W]||e["@@iterator"],typeof e=="function"?e:null)}var Q=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 le=!1;function de(e,n){if(!e||le)return"";le=!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,y=c.length-1;1<=p&&0<=y&&l[p]!==c[y];)y--;for(;1<=p&&0<=y;p--,y--)if(l[p]!==c[y]){if(p!==1||y!==1)do if(p--,y--,0>y||l[p]!==c[y]){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<=y);break}}}finally{le=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?F(e):""}function ve(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=de(e.type,!1),e;case 11:return e=de(e.type.render,!1),e;case 1:return e=de(e.type,!0),e;default:return""}}function ge(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case oe:return"Fragment";case V:return"Portal";case se:return"Profiler";case ee:return"StrictMode";case Be:return"Suspense";case qe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Z:return(e.displayName||"Context")+".Consumer";case ce:return(e._context.displayName||"Context")+".Provider";case Te:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ke:return n=e.displayName||null,n!==null?n:ge(e.type)||"Memo";case nt:n=e._payload,e=e._init;try{return ge(e(n))}catch{}}return null}function Ce(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ge(n);case 8:return n===ee?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function xe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function _e(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function ct(e){var n=_e(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 Lr(e){e._valueTracker||(e._valueTracker=ct(e))}function Mi(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var o=n.getValue(),s="";return e&&(s=_e(e)?e.checked?"true":"false":e.value),e=s,e!==o?(n.setValue(e),!0):!1}function Ar(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 Oi(e,n){var o=n.checked;return Q({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function Uo(e,n){var o=n.defaultValue==null?"":n.defaultValue,s=n.checked!=null?n.checked:n.defaultChecked;o=xe(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=xe(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,xe(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"||Ar(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var Pn=Array.isArray;function Dr(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=""+xe(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 ba(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(i(91));return Q({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function td(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:xe(o)}}function nd(e,n){var o=xe(n.value),s=xe(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 rd(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function id(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 ja(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?id(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Bo,od=(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(Bo=Bo||document.createElement("div"),Bo.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=Bo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Li(e,n){if(n){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=n;return}}e.textContent=n}var Ai={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},ag=["Webkit","ms","Moz","O"];Object.keys(Ai).forEach(function(e){ag.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Ai[n]=Ai[e]})});function sd(e,n,o){return n==null||typeof n=="boolean"||n===""?"":o||typeof n!="number"||n===0||Ai.hasOwnProperty(e)&&Ai[e]?(""+n).trim():n+"px"}function ad(e,n){e=e.style;for(var o in n)if(n.hasOwnProperty(o)){var s=o.indexOf("--")===0,l=sd(o,n[o],s);o==="float"&&(o="cssFloat"),s?e.setProperty(o,l):e[o]=l}}var lg=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ta(e,n){if(n){if(lg[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 Ra(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 Na=null;function Ia(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ma=null,Fr=null,$r=null;function ld(e){if(e=io(e)){if(typeof Ma!="function")throw Error(i(280));var n=e.stateNode;n&&(n=ds(n),Ma(e.stateNode,e.type,n))}}function ud(e){Fr?$r?$r.push(e):$r=[e]:Fr=e}function cd(){if(Fr){var e=Fr,n=$r;if($r=Fr=null,ld(e),n)for(e=0;e<n.length;e++)ld(n[e])}}function dd(e,n){return e(n)}function fd(){}var Oa=!1;function hd(e,n,o){if(Oa)return e(n,o);Oa=!0;try{return dd(e,n,o)}finally{Oa=!1,(Fr!==null||$r!==null)&&(fd(),cd())}}function Di(e,n){var o=e.stateNode;if(o===null)return null;var s=ds(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 La=!1;if(v)try{var Fi={};Object.defineProperty(Fi,"passive",{get:function(){La=!0}}),window.addEventListener("test",Fi,Fi),window.removeEventListener("test",Fi,Fi)}catch{La=!1}function ug(e,n,o,s,l,c,p,y,k){var M=Array.prototype.slice.call(arguments,3);try{n.apply(o,M)}catch(z){this.onError(z)}}var $i=!1,Ho=null,Wo=!1,Aa=null,cg={onError:function(e){$i=!0,Ho=e}};function dg(e,n,o,s,l,c,p,y,k){$i=!1,Ho=null,ug.apply(cg,arguments)}function fg(e,n,o,s,l,c,p,y,k){if(dg.apply(this,arguments),$i){if($i){var M=Ho;$i=!1,Ho=null}else throw Error(i(198));Wo||(Wo=!0,Aa=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 pd(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 md(e){if(or(e)!==e)throw Error(i(188))}function hg(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 md(l),e;if(c===s)return md(l),n;c=c.sibling}throw Error(i(188))}if(o.return!==s.return)o=l,s=c;else{for(var p=!1,y=l.child;y;){if(y===o){p=!0,o=l,s=c;break}if(y===s){p=!0,s=l,o=c;break}y=y.sibling}if(!p){for(y=c.child;y;){if(y===o){p=!0,o=c,s=l;break}if(y===s){p=!0,s=c,o=l;break}y=y.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 vd(e){return e=hg(e),e!==null?gd(e):null}function gd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=gd(e);if(n!==null)return n;e=e.sibling}return null}var yd=r.unstable_scheduleCallback,wd=r.unstable_cancelCallback,pg=r.unstable_shouldYield,mg=r.unstable_requestPaint,Fe=r.unstable_now,vg=r.unstable_getCurrentPriorityLevel,Da=r.unstable_ImmediatePriority,xd=r.unstable_UserBlockingPriority,Vo=r.unstable_NormalPriority,gg=r.unstable_LowPriority,Sd=r.unstable_IdlePriority,qo=null,Qt=null;function yg(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:Sg,wg=Math.log,xg=Math.LN2;function Sg(e){return e>>>=0,e===0?32:31-(wg(e)/xg|0)|0}var Ko=64,Qo=4194304;function zi(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 Go(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 y=p&~l;y!==0?s=zi(y):(c&=p,c!==0&&(s=zi(c)))}else p=o&~l,p!==0?s=zi(p):c!==0&&(s=zi(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 kg(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 Cg(e,n){for(var o=e.suspendedLanes,s=e.pingedLanes,l=e.expirationTimes,c=e.pendingLanes;0<c;){var p=31-$t(c),y=1<<p,k=l[p];k===-1?((y&o)===0||(y&s)!==0)&&(l[p]=kg(y,n)):k<=n&&(e.expiredLanes|=y),c&=~y}}function Fa(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function kd(){var e=Ko;return Ko<<=1,(Ko&4194240)===0&&(Ko=64),e}function $a(e){for(var n=[],o=0;31>o;o++)n.push(e);return n}function Ui(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 _g(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 za(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 ke=0;function Cd(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var _d,Ua,Ed,Pd,bd,Ba=!1,Yo=[],bn=null,jn=null,Tn=null,Bi=new Map,Hi=new Map,Rn=[],Eg="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 jd(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":Bi.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hi.delete(n.pointerId)}}function Wi(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=io(n),n!==null&&Ua(n)),e):(e.eventSystemFlags|=s,n=e.targetContainers,l!==null&&n.indexOf(l)===-1&&n.push(l),e)}function Pg(e,n,o,s,l){switch(n){case"focusin":return bn=Wi(bn,e,n,o,s,l),!0;case"dragenter":return jn=Wi(jn,e,n,o,s,l),!0;case"mouseover":return Tn=Wi(Tn,e,n,o,s,l),!0;case"pointerover":var c=l.pointerId;return Bi.set(c,Wi(Bi.get(c)||null,e,n,o,s,l)),!0;case"gotpointercapture":return c=l.pointerId,Hi.set(c,Wi(Hi.get(c)||null,e,n,o,s,l)),!0}return!1}function Td(e){var n=sr(e.target);if(n!==null){var o=or(n);if(o!==null){if(n=o.tag,n===13){if(n=pd(o),n!==null){e.blockedOn=n,bd(e.priority,function(){Ed(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 Zo(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var o=Wa(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var s=new o.constructor(o.type,o);Na=s,o.target.dispatchEvent(s),Na=null}else return n=io(o),n!==null&&Ua(n),e.blockedOn=o,!1;n.shift()}return!0}function Rd(e,n,o){Zo(e)&&o.delete(n)}function bg(){Ba=!1,bn!==null&&Zo(bn)&&(bn=null),jn!==null&&Zo(jn)&&(jn=null),Tn!==null&&Zo(Tn)&&(Tn=null),Bi.forEach(Rd),Hi.forEach(Rd)}function Vi(e,n){e.blockedOn===n&&(e.blockedOn=null,Ba||(Ba=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,bg)))}function qi(e){function n(l){return Vi(l,e)}if(0<Yo.length){Vi(Yo[0],e);for(var o=1;o<Yo.length;o++){var s=Yo[o];s.blockedOn===e&&(s.blockedOn=null)}}for(bn!==null&&Vi(bn,e),jn!==null&&Vi(jn,e),Tn!==null&&Vi(Tn,e),Bi.forEach(n),Hi.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);)Td(o),o.blockedOn===null&&Rn.shift()}var zr=T.ReactCurrentBatchConfig,Xo=!0;function jg(e,n,o,s){var l=ke,c=zr.transition;zr.transition=null;try{ke=1,Ha(e,n,o,s)}finally{ke=l,zr.transition=c}}function Tg(e,n,o,s){var l=ke,c=zr.transition;zr.transition=null;try{ke=4,Ha(e,n,o,s)}finally{ke=l,zr.transition=c}}function Ha(e,n,o,s){if(Xo){var l=Wa(e,n,o,s);if(l===null)al(e,n,s,Jo,o),jd(e,s);else if(Pg(l,e,n,o,s))s.stopPropagation();else if(jd(e,s),n&4&&-1<Eg.indexOf(e)){for(;l!==null;){var c=io(l);if(c!==null&&_d(c),c=Wa(e,n,o,s),c===null&&al(e,n,s,Jo,o),c===l)break;l=c}l!==null&&s.stopPropagation()}else al(e,n,s,null,o)}}var Jo=null;function Wa(e,n,o,s){if(Jo=null,e=Ia(s),e=sr(e),e!==null)if(n=or(e),n===null)e=null;else if(o=n.tag,o===13){if(e=pd(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 Jo=e,null}function Nd(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(vg()){case Da:return 1;case xd:return 4;case Vo:case gg:return 16;case Sd:return 536870912;default:return 16}default:return 16}}var Nn=null,Va=null,es=null;function Id(){if(es)return es;var e,n=Va,o=n.length,s,l="value"in Nn?Nn.value:Nn.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 es=l.slice(e,1<s?1-s:void 0)}function ts(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 ns(){return!0}function Md(){return!1}function _t(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 y in e)e.hasOwnProperty(y)&&(o=e[y],this[y]=o?o(c):c[y]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?ns:Md,this.isPropagationStopped=Md,this}return Q(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=ns)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=ns)},persist:function(){},isPersistent:ns}),n}var Ur={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qa=_t(Ur),Ki=Q({},Ur,{view:0,detail:0}),Rg=_t(Ki),Ka,Qa,Qi,rs=Q({},Ki,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ya,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!==Qi&&(Qi&&e.type==="mousemove"?(Ka=e.screenX-Qi.screenX,Qa=e.screenY-Qi.screenY):Qa=Ka=0,Qi=e),Ka)},movementY:function(e){return"movementY"in e?e.movementY:Qa}}),Od=_t(rs),Ng=Q({},rs,{dataTransfer:0}),Ig=_t(Ng),Mg=Q({},Ki,{relatedTarget:0}),Ga=_t(Mg),Og=Q({},Ur,{animationName:0,elapsedTime:0,pseudoElement:0}),Lg=_t(Og),Ag=Q({},Ur,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Dg=_t(Ag),Fg=Q({},Ur,{data:0}),Ld=_t(Fg),$g={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zg={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"},Ug={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bg(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Ug[e])?!!n[e]:!1}function Ya(){return Bg}var Hg=Q({},Ki,{key:function(e){if(e.key){var n=$g[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=ts(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?zg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ya,charCode:function(e){return e.type==="keypress"?ts(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ts(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Wg=_t(Hg),Vg=Q({},rs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ad=_t(Vg),qg=Q({},Ki,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ya}),Kg=_t(qg),Qg=Q({},Ur,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gg=_t(Qg),Yg=Q({},rs,{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}),Zg=_t(Yg),Xg=[9,13,27,32],Za=v&&"CompositionEvent"in window,Gi=null;v&&"documentMode"in document&&(Gi=document.documentMode);var Jg=v&&"TextEvent"in window&&!Gi,Dd=v&&(!Za||Gi&&8<Gi&&11>=Gi),Fd=" ",$d=!1;function zd(e,n){switch(e){case"keyup":return Xg.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ud(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Br=!1;function ey(e,n){switch(e){case"compositionend":return Ud(n);case"keypress":return n.which!==32?null:($d=!0,Fd);case"textInput":return e=n.data,e===Fd&&$d?null:e;default:return null}}function ty(e,n){if(Br)return e==="compositionend"||!Za&&zd(e,n)?(e=Id(),es=Va=Nn=null,Br=!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 Dd&&n.locale!=="ko"?null:n.data;default:return null}}var ny={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 Bd(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!ny[e.type]:n==="textarea"}function Hd(e,n,o,s){ud(s),n=ls(n,"onChange"),0<n.length&&(o=new qa("onChange","change",null,o,s),e.push({event:o,listeners:n}))}var Yi=null,Zi=null;function ry(e){lf(e,0)}function is(e){var n=Kr(e);if(Mi(n))return e}function iy(e,n){if(e==="change")return n}var Wd=!1;if(v){var Xa;if(v){var Ja="oninput"in document;if(!Ja){var Vd=document.createElement("div");Vd.setAttribute("oninput","return;"),Ja=typeof Vd.oninput=="function"}Xa=Ja}else Xa=!1;Wd=Xa&&(!document.documentMode||9<document.documentMode)}function qd(){Yi&&(Yi.detachEvent("onpropertychange",Kd),Zi=Yi=null)}function Kd(e){if(e.propertyName==="value"&&is(Zi)){var n=[];Hd(n,Zi,e,Ia(e)),hd(ry,n)}}function oy(e,n,o){e==="focusin"?(qd(),Yi=n,Zi=o,Yi.attachEvent("onpropertychange",Kd)):e==="focusout"&&qd()}function sy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return is(Zi)}function ay(e,n){if(e==="click")return is(n)}function ly(e,n){if(e==="input"||e==="change")return is(n)}function uy(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var zt=typeof Object.is=="function"?Object.is:uy;function Xi(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 Qd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Gd(e,n){var o=Qd(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=Qd(o)}}function Yd(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Yd(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Zd(){for(var e=window,n=Ar();n instanceof e.HTMLIFrameElement;){try{var o=typeof n.contentWindow.location.href=="string"}catch{o=!1}if(o)e=n.contentWindow;else break;n=Ar(e.document)}return n}function el(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 cy(e){var n=Zd(),o=e.focusedElem,s=e.selectionRange;if(n!==o&&o&&o.ownerDocument&&Yd(o.ownerDocument.documentElement,o)){if(s!==null&&el(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=Gd(o,c);var p=Gd(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 dy=v&&"documentMode"in document&&11>=document.documentMode,Hr=null,tl=null,Ji=null,nl=!1;function Xd(e,n,o){var s=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;nl||Hr==null||Hr!==Ar(s)||(s=Hr,"selectionStart"in s&&el(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}),Ji&&Xi(Ji,s)||(Ji=s,s=ls(tl,"onSelect"),0<s.length&&(n=new qa("onSelect","select",null,n,o),e.push({event:n,listeners:s}),n.target=Hr)))}function os(e,n){var o={};return o[e.toLowerCase()]=n.toLowerCase(),o["Webkit"+e]="webkit"+n,o["Moz"+e]="moz"+n,o}var Wr={animationend:os("Animation","AnimationEnd"),animationiteration:os("Animation","AnimationIteration"),animationstart:os("Animation","AnimationStart"),transitionend:os("Transition","TransitionEnd")},rl={},Jd={};v&&(Jd=document.createElement("div").style,"AnimationEvent"in window||(delete Wr.animationend.animation,delete Wr.animationiteration.animation,delete Wr.animationstart.animation),"TransitionEvent"in window||delete Wr.transitionend.transition);function ss(e){if(rl[e])return rl[e];if(!Wr[e])return e;var n=Wr[e],o;for(o in n)if(n.hasOwnProperty(o)&&o in Jd)return rl[e]=n[o];return e}var ef=ss("animationend"),tf=ss("animationiteration"),nf=ss("animationstart"),rf=ss("transitionend"),of=new Map,sf="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 In(e,n){of.set(e,n),d(n,[e])}for(var il=0;il<sf.length;il++){var ol=sf[il],fy=ol.toLowerCase(),hy=ol[0].toUpperCase()+ol.slice(1);In(fy,"on"+hy)}In(ef,"onAnimationEnd"),In(tf,"onAnimationIteration"),In(nf,"onAnimationStart"),In("dblclick","onDoubleClick"),In("focusin","onFocus"),In("focusout","onBlur"),In(rf,"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 eo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),py=new Set("cancel close invalid load scroll toggle".split(" ").concat(eo));function af(e,n,o){var s=e.type||"unknown-event";e.currentTarget=o,fg(s,n,void 0,e),e.currentTarget=null}function lf(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 y=s[p],k=y.instance,M=y.currentTarget;if(y=y.listener,k!==c&&l.isPropagationStopped())break e;af(l,y,M),c=k}else for(p=0;p<s.length;p++){if(y=s[p],k=y.instance,M=y.currentTarget,y=y.listener,k!==c&&l.isPropagationStopped())break e;af(l,y,M),c=k}}}if(Wo)throw e=Aa,Wo=!1,Aa=null,e}function be(e,n){var o=n[hl];o===void 0&&(o=n[hl]=new Set);var s=e+"__bubble";o.has(s)||(uf(n,e,2,!1),o.add(s))}function sl(e,n,o){var s=0;n&&(s|=4),uf(o,e,s,n)}var as="_reactListening"+Math.random().toString(36).slice(2);function to(e){if(!e[as]){e[as]=!0,a.forEach(function(o){o!=="selectionchange"&&(py.has(o)||sl(o,!1,e),sl(o,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[as]||(n[as]=!0,sl("selectionchange",!1,n))}}function uf(e,n,o,s){switch(Nd(n)){case 1:var l=jg;break;case 4:l=Tg;break;default:l=Ha}o=l.bind(null,n,o,e),l=void 0,!La||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 al(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 y=s.stateNode.containerInfo;if(y===l||y.nodeType===8&&y.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(;y!==null;){if(p=sr(y),p===null)return;if(k=p.tag,k===5||k===6){s=c=p;continue e}y=y.parentNode}}s=s.return}hd(function(){var M=c,z=Ia(o),U=[];e:{var $=of.get(e);if($!==void 0){var K=qa,Y=e;switch(e){case"keypress":if(ts(o)===0)break e;case"keydown":case"keyup":K=Wg;break;case"focusin":Y="focus",K=Ga;break;case"focusout":Y="blur",K=Ga;break;case"beforeblur":case"afterblur":K=Ga;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":K=Od;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=Ig;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=Kg;break;case ef:case tf:case nf:K=Lg;break;case rf:K=Gg;break;case"scroll":K=Rg;break;case"wheel":K=Zg;break;case"copy":case"cut":case"paste":K=Dg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=Ad}var X=(n&4)!==0,$e=!X&&e==="scroll",j=X?$!==null?$+"Capture":null:$;X=[];for(var _=M,R;_!==null;){R=_;var H=R.stateNode;if(R.tag===5&&H!==null&&(R=H,j!==null&&(H=Di(_,j),H!=null&&X.push(no(_,H,R)))),$e)break;_=_.return}0<X.length&&($=new K($,Y,null,o,z),U.push({event:$,listeners:X}))}}if((n&7)===0){e:{if($=e==="mouseover"||e==="pointerover",K=e==="mouseout"||e==="pointerout",$&&o!==Na&&(Y=o.relatedTarget||o.fromElement)&&(sr(Y)||Y[cn]))break e;if((K||$)&&($=z.window===z?z:($=z.ownerDocument)?$.defaultView||$.parentWindow:window,K?(Y=o.relatedTarget||o.toElement,K=M,Y=Y?sr(Y):null,Y!==null&&($e=or(Y),Y!==$e||Y.tag!==5&&Y.tag!==6)&&(Y=null)):(K=null,Y=M),K!==Y)){if(X=Od,H="onMouseLeave",j="onMouseEnter",_="mouse",(e==="pointerout"||e==="pointerover")&&(X=Ad,H="onPointerLeave",j="onPointerEnter",_="pointer"),$e=K==null?$:Kr(K),R=Y==null?$:Kr(Y),$=new X(H,_+"leave",K,o,z),$.target=$e,$.relatedTarget=R,H=null,sr(z)===M&&(X=new X(j,_+"enter",Y,o,z),X.target=R,X.relatedTarget=$e,H=X),$e=H,K&&Y)t:{for(X=K,j=Y,_=0,R=X;R;R=Vr(R))_++;for(R=0,H=j;H;H=Vr(H))R++;for(;0<_-R;)X=Vr(X),_--;for(;0<R-_;)j=Vr(j),R--;for(;_--;){if(X===j||j!==null&&X===j.alternate)break t;X=Vr(X),j=Vr(j)}X=null}else X=null;K!==null&&cf(U,$,K,X,!1),Y!==null&&$e!==null&&cf(U,$e,Y,X,!0)}}e:{if($=M?Kr(M):window,K=$.nodeName&&$.nodeName.toLowerCase(),K==="select"||K==="input"&&$.type==="file")var J=iy;else if(Bd($))if(Wd)J=ly;else{J=sy;var re=oy}else(K=$.nodeName)&&K.toLowerCase()==="input"&&($.type==="checkbox"||$.type==="radio")&&(J=ay);if(J&&(J=J(e,M))){Hd(U,J,o,z);break e}re&&re(e,$,M),e==="focusout"&&(re=$._wrapperState)&&re.controlled&&$.type==="number"&&Ft($,"number",$.value)}switch(re=M?Kr(M):window,e){case"focusin":(Bd(re)||re.contentEditable==="true")&&(Hr=re,tl=M,Ji=null);break;case"focusout":Ji=tl=Hr=null;break;case"mousedown":nl=!0;break;case"contextmenu":case"mouseup":case"dragend":nl=!1,Xd(U,o,z);break;case"selectionchange":if(dy)break;case"keydown":case"keyup":Xd(U,o,z)}var ie;if(Za)e:{switch(e){case"compositionstart":var ae="onCompositionStart";break e;case"compositionend":ae="onCompositionEnd";break e;case"compositionupdate":ae="onCompositionUpdate";break e}ae=void 0}else Br?zd(e,o)&&(ae="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(ae="onCompositionStart");ae&&(Dd&&o.locale!=="ko"&&(Br||ae!=="onCompositionStart"?ae==="onCompositionEnd"&&Br&&(ie=Id()):(Nn=z,Va="value"in Nn?Nn.value:Nn.textContent,Br=!0)),re=ls(M,ae),0<re.length&&(ae=new Ld(ae,e,null,o,z),U.push({event:ae,listeners:re}),ie?ae.data=ie:(ie=Ud(o),ie!==null&&(ae.data=ie)))),(ie=Jg?ey(e,o):ty(e,o))&&(M=ls(M,"onBeforeInput"),0<M.length&&(z=new Ld("onBeforeInput","beforeinput",null,o,z),U.push({event:z,listeners:M}),z.data=ie))}lf(U,n)})}function no(e,n,o){return{instance:e,listener:n,currentTarget:o}}function ls(e,n){for(var o=n+"Capture",s=[];e!==null;){var l=e,c=l.stateNode;l.tag===5&&c!==null&&(l=c,c=Di(e,o),c!=null&&s.unshift(no(e,c,l)),c=Di(e,n),c!=null&&s.push(no(e,c,l))),e=e.return}return s}function Vr(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function cf(e,n,o,s,l){for(var c=n._reactName,p=[];o!==null&&o!==s;){var y=o,k=y.alternate,M=y.stateNode;if(k!==null&&k===s)break;y.tag===5&&M!==null&&(y=M,l?(k=Di(o,c),k!=null&&p.unshift(no(o,k,y))):l||(k=Di(o,c),k!=null&&p.push(no(o,k,y)))),o=o.return}p.length!==0&&e.push({event:n,listeners:p})}var my=/\r\n?/g,vy=/\u0000|\uFFFD/g;function df(e){return(typeof e=="string"?e:""+e).replace(my,`
|
|
39
|
+
`).replace(vy,"")}function us(e,n,o){if(n=df(n),df(e)!==n&&o)throw Error(i(425))}function cs(){}var ll=null,ul=null;function cl(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 dl=typeof setTimeout=="function"?setTimeout:void 0,gy=typeof clearTimeout=="function"?clearTimeout:void 0,ff=typeof Promise=="function"?Promise:void 0,yy=typeof queueMicrotask=="function"?queueMicrotask:typeof ff<"u"?function(e){return ff.resolve(null).then(e).catch(wy)}:dl;function wy(e){setTimeout(function(){throw e})}function fl(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 hf(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 qr=Math.random().toString(36).slice(2),Gt="__reactFiber$"+qr,ro="__reactProps$"+qr,cn="__reactContainer$"+qr,hl="__reactEvents$"+qr,xy="__reactListeners$"+qr,Sy="__reactHandles$"+qr;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=hf(e);e!==null;){if(o=e[Gt])return o;e=hf(e)}return n}e=o,o=e.parentNode}return null}function io(e){return e=e[Gt]||e[cn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Kr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function ds(e){return e[ro]||null}var pl=[],Qr=-1;function On(e){return{current:e}}function je(e){0>Qr||(e.current=pl[Qr],pl[Qr]=null,Qr--)}function Ee(e,n){Qr++,pl[Qr]=e.current,e.current=n}var Ln={},rt=On(Ln),mt=On(!1),ar=Ln;function Gr(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 vt(e){return e=e.childContextTypes,e!=null}function fs(){je(mt),je(rt)}function pf(e,n,o){if(rt.current!==Ln)throw Error(i(168));Ee(rt,n),Ee(mt,o)}function mf(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,Ce(e)||"Unknown",l));return Q({},o,s)}function hs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ln,ar=rt.current,Ee(rt,e),Ee(mt,mt.current),!0}function vf(e,n,o){var s=e.stateNode;if(!s)throw Error(i(169));o?(e=mf(e,n,ar),s.__reactInternalMemoizedMergedChildContext=e,je(mt),je(rt),Ee(rt,e)):je(mt),Ee(mt,o)}var dn=null,ps=!1,ml=!1;function gf(e){dn===null?dn=[e]:dn.push(e)}function ky(e){ps=!0,gf(e)}function An(){if(!ml&&dn!==null){ml=!0;var e=0,n=ke;try{var o=dn;for(ke=1;e<o.length;e++){var s=o[e];do s=s(!0);while(s!==null)}dn=null,ps=!1}catch(l){throw dn!==null&&(dn=dn.slice(e+1)),yd(Da,An),l}finally{ke=n,ml=!1}}return null}var Yr=[],Zr=0,ms=null,vs=0,Rt=[],Nt=0,lr=null,fn=1,hn="";function ur(e,n){Yr[Zr++]=vs,Yr[Zr++]=ms,ms=e,vs=n}function yf(e,n,o){Rt[Nt++]=fn,Rt[Nt++]=hn,Rt[Nt++]=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 vl(e){e.return!==null&&(ur(e,1),yf(e,1,0))}function gl(e){for(;e===ms;)ms=Yr[--Zr],Yr[Zr]=null,vs=Yr[--Zr],Yr[Zr]=null;for(;e===lr;)lr=Rt[--Nt],Rt[Nt]=null,hn=Rt[--Nt],Rt[Nt]=null,fn=Rt[--Nt],Rt[Nt]=null}var Et=null,Pt=null,Ne=!1,Ut=null;function wf(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 xf(e,n){switch(e.tag){case 5:var o=e.type;return n=n.nodeType!==1||o.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,Et=e,Pt=Mn(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,Et=e,Pt=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(o=lr!==null?{id: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,Et=e,Pt=null,!0):!1;default:return!1}}function yl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function wl(e){if(Ne){var n=Pt;if(n){var o=n;if(!xf(e,n)){if(yl(e))throw Error(i(418));n=Mn(o.nextSibling);var s=Et;n&&xf(e,n)?wf(s,o):(e.flags=e.flags&-4097|2,Ne=!1,Et=e)}}else{if(yl(e))throw Error(i(418));e.flags=e.flags&-4097|2,Ne=!1,Et=e}}}function Sf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Et=e}function gs(e){if(e!==Et)return!1;if(!Ne)return Sf(e),Ne=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!cl(e.type,e.memoizedProps)),n&&(n=Pt)){if(yl(e))throw kf(),Error(i(418));for(;n;)wf(e,n),n=Mn(n.nextSibling)}if(Sf(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=Et?Mn(e.stateNode.nextSibling):null;return!0}function kf(){for(var e=Pt;e;)e=Mn(e.nextSibling)}function Xr(){Pt=Et=null,Ne=!1}function xl(e){Ut===null?Ut=[e]:Ut.push(e)}var Cy=T.ReactCurrentBatchConfig;function oo(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 y=l.refs;p===null?delete y[c]:y[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 ys(e,n){throw e=Object.prototype.toString.call(n),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function Cf(e){var n=e._init;return n(e._payload)}function _f(e){function n(j,_){if(e){var R=j.deletions;R===null?(j.deletions=[_],j.flags|=16):R.push(_)}}function o(j,_){if(!e)return null;for(;_!==null;)n(j,_),_=_.sibling;return null}function s(j,_){for(j=new Map;_!==null;)_.key!==null?j.set(_.key,_):j.set(_.index,_),_=_.sibling;return j}function l(j,_){return j=Wn(j,_),j.index=0,j.sibling=null,j}function c(j,_,R){return j.index=R,e?(R=j.alternate,R!==null?(R=R.index,R<_?(j.flags|=2,_):R):(j.flags|=2,_)):(j.flags|=1048576,_)}function p(j){return e&&j.alternate===null&&(j.flags|=2),j}function y(j,_,R,H){return _===null||_.tag!==6?(_=du(R,j.mode,H),_.return=j,_):(_=l(_,R),_.return=j,_)}function k(j,_,R,H){var J=R.type;return J===oe?z(j,_,R.props.children,H,R.key):_!==null&&(_.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===nt&&Cf(J)===_.type)?(H=l(_,R.props),H.ref=oo(j,_,R),H.return=j,H):(H=Bs(R.type,R.key,R.props,null,j.mode,H),H.ref=oo(j,_,R),H.return=j,H)}function M(j,_,R,H){return _===null||_.tag!==4||_.stateNode.containerInfo!==R.containerInfo||_.stateNode.implementation!==R.implementation?(_=fu(R,j.mode,H),_.return=j,_):(_=l(_,R.children||[]),_.return=j,_)}function z(j,_,R,H,J){return _===null||_.tag!==7?(_=gr(R,j.mode,H,J),_.return=j,_):(_=l(_,R),_.return=j,_)}function U(j,_,R){if(typeof _=="string"&&_!==""||typeof _=="number")return _=du(""+_,j.mode,R),_.return=j,_;if(typeof _=="object"&&_!==null){switch(_.$$typeof){case A:return R=Bs(_.type,_.key,_.props,null,j.mode,R),R.ref=oo(j,null,_),R.return=j,R;case V:return _=fu(_,j.mode,R),_.return=j,_;case nt:var H=_._init;return U(j,H(_._payload),R)}if(Pn(_)||ne(_))return _=gr(_,j.mode,R,null),_.return=j,_;ys(j,_)}return null}function $(j,_,R,H){var J=_!==null?_.key:null;if(typeof R=="string"&&R!==""||typeof R=="number")return J!==null?null:y(j,_,""+R,H);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case A:return R.key===J?k(j,_,R,H):null;case V:return R.key===J?M(j,_,R,H):null;case nt:return J=R._init,$(j,_,J(R._payload),H)}if(Pn(R)||ne(R))return J!==null?null:z(j,_,R,H,null);ys(j,R)}return null}function K(j,_,R,H,J){if(typeof H=="string"&&H!==""||typeof H=="number")return j=j.get(R)||null,y(_,j,""+H,J);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case A:return j=j.get(H.key===null?R:H.key)||null,k(_,j,H,J);case V:return j=j.get(H.key===null?R:H.key)||null,M(_,j,H,J);case nt:var re=H._init;return K(j,_,R,re(H._payload),J)}if(Pn(H)||ne(H))return j=j.get(R)||null,z(_,j,H,J,null);ys(_,H)}return null}function Y(j,_,R,H){for(var J=null,re=null,ie=_,ae=_=0,Ye=null;ie!==null&&ae<R.length;ae++){ie.index>ae?(Ye=ie,ie=null):Ye=ie.sibling;var we=$(j,ie,R[ae],H);if(we===null){ie===null&&(ie=Ye);break}e&&ie&&we.alternate===null&&n(j,ie),_=c(we,_,ae),re===null?J=we:re.sibling=we,re=we,ie=Ye}if(ae===R.length)return o(j,ie),Ne&&ur(j,ae),J;if(ie===null){for(;ae<R.length;ae++)ie=U(j,R[ae],H),ie!==null&&(_=c(ie,_,ae),re===null?J=ie:re.sibling=ie,re=ie);return Ne&&ur(j,ae),J}for(ie=s(j,ie);ae<R.length;ae++)Ye=K(ie,j,ae,R[ae],H),Ye!==null&&(e&&Ye.alternate!==null&&ie.delete(Ye.key===null?ae:Ye.key),_=c(Ye,_,ae),re===null?J=Ye:re.sibling=Ye,re=Ye);return e&&ie.forEach(function(Vn){return n(j,Vn)}),Ne&&ur(j,ae),J}function X(j,_,R,H){var J=ne(R);if(typeof J!="function")throw Error(i(150));if(R=J.call(R),R==null)throw Error(i(151));for(var re=J=null,ie=_,ae=_=0,Ye=null,we=R.next();ie!==null&&!we.done;ae++,we=R.next()){ie.index>ae?(Ye=ie,ie=null):Ye=ie.sibling;var Vn=$(j,ie,we.value,H);if(Vn===null){ie===null&&(ie=Ye);break}e&&ie&&Vn.alternate===null&&n(j,ie),_=c(Vn,_,ae),re===null?J=Vn:re.sibling=Vn,re=Vn,ie=Ye}if(we.done)return o(j,ie),Ne&&ur(j,ae),J;if(ie===null){for(;!we.done;ae++,we=R.next())we=U(j,we.value,H),we!==null&&(_=c(we,_,ae),re===null?J=we:re.sibling=we,re=we);return Ne&&ur(j,ae),J}for(ie=s(j,ie);!we.done;ae++,we=R.next())we=K(ie,j,ae,we.value,H),we!==null&&(e&&we.alternate!==null&&ie.delete(we.key===null?ae:we.key),_=c(we,_,ae),re===null?J=we:re.sibling=we,re=we);return e&&ie.forEach(function(nw){return n(j,nw)}),Ne&&ur(j,ae),J}function $e(j,_,R,H){if(typeof R=="object"&&R!==null&&R.type===oe&&R.key===null&&(R=R.props.children),typeof R=="object"&&R!==null){switch(R.$$typeof){case A:e:{for(var J=R.key,re=_;re!==null;){if(re.key===J){if(J=R.type,J===oe){if(re.tag===7){o(j,re.sibling),_=l(re,R.props.children),_.return=j,j=_;break e}}else if(re.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===nt&&Cf(J)===re.type){o(j,re.sibling),_=l(re,R.props),_.ref=oo(j,re,R),_.return=j,j=_;break e}o(j,re);break}else n(j,re);re=re.sibling}R.type===oe?(_=gr(R.props.children,j.mode,H,R.key),_.return=j,j=_):(H=Bs(R.type,R.key,R.props,null,j.mode,H),H.ref=oo(j,_,R),H.return=j,j=H)}return p(j);case V:e:{for(re=R.key;_!==null;){if(_.key===re)if(_.tag===4&&_.stateNode.containerInfo===R.containerInfo&&_.stateNode.implementation===R.implementation){o(j,_.sibling),_=l(_,R.children||[]),_.return=j,j=_;break e}else{o(j,_);break}else n(j,_);_=_.sibling}_=fu(R,j.mode,H),_.return=j,j=_}return p(j);case nt:return re=R._init,$e(j,_,re(R._payload),H)}if(Pn(R))return Y(j,_,R,H);if(ne(R))return X(j,_,R,H);ys(j,R)}return typeof R=="string"&&R!==""||typeof R=="number"?(R=""+R,_!==null&&_.tag===6?(o(j,_.sibling),_=l(_,R),_.return=j,j=_):(o(j,_),_=du(R,j.mode,H),_.return=j,j=_),p(j)):o(j,_)}return $e}var Jr=_f(!0),Ef=_f(!1),ws=On(null),xs=null,ei=null,Sl=null;function kl(){Sl=ei=xs=null}function Cl(e){var n=ws.current;je(ws),e._currentValue=n}function _l(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 ti(e,n){xs=e,Sl=ei=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(gt=!0),e.firstContext=null)}function It(e){var n=e._currentValue;if(Sl!==e)if(e={context:e,memoizedValue:n,next:null},ei===null){if(xs===null)throw Error(i(308));ei=e,xs.dependencies={lanes:0,firstContext:e}}else ei=ei.next=e;return n}var cr=null;function El(e){cr===null?cr=[e]:cr.push(e)}function Pf(e,n,o,s){var l=n.interleaved;return l===null?(o.next=o,El(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 Pl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bf(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,(ye&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,El(s)):(n.next=l.next,l.next=n),s.interleaved=n,pn(e,o)}function Ss(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,za(e,o)}}function jf(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 ks(e,n,o,s){var l=e.updateQueue;Dn=!1;var c=l.firstBaseUpdate,p=l.lastBaseUpdate,y=l.shared.pending;if(y!==null){l.shared.pending=null;var k=y,M=k.next;k.next=null,p===null?c=M:p.next=M,p=k;var z=e.alternate;z!==null&&(z=z.updateQueue,y=z.lastBaseUpdate,y!==p&&(y===null?z.firstBaseUpdate=M:y.next=M,z.lastBaseUpdate=k))}if(c!==null){var U=l.baseState;p=0,z=M=k=null,y=c;do{var $=y.lane,K=y.eventTime;if((s&$)===$){z!==null&&(z=z.next={eventTime:K,lane:0,tag:y.tag,payload:y.payload,callback:y.callback,next:null});e:{var Y=e,X=y;switch($=n,K=o,X.tag){case 1:if(Y=X.payload,typeof Y=="function"){U=Y.call(K,U,$);break e}U=Y;break e;case 3:Y.flags=Y.flags&-65537|128;case 0:if(Y=X.payload,$=typeof Y=="function"?Y.call(K,U,$):Y,$==null)break e;U=Q({},U,$);break e;case 2:Dn=!0}}y.callback!==null&&y.lane!==0&&(e.flags|=64,$=l.effects,$===null?l.effects=[y]:$.push(y))}else K={eventTime:K,lane:$,tag:y.tag,payload:y.payload,callback:y.callback,next:null},z===null?(M=z=K,k=U):z=z.next=K,p|=$;if(y=y.next,y===null){if(y=l.shared.pending,y===null)break;$=y,y=$.next,$.next=null,l.lastBaseUpdate=$,l.shared.pending=null}}while(!0);if(z===null&&(k=U),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=U}}function Tf(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 so={},Yt=On(so),ao=On(so),lo=On(so);function dr(e){if(e===so)throw Error(i(174));return e}function bl(e,n){switch(Ee(lo,n),Ee(ao,e),Ee(Yt,so),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:ja(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=ja(n,e)}je(Yt),Ee(Yt,n)}function ni(){je(Yt),je(ao),je(lo)}function Rf(e){dr(lo.current);var n=dr(Yt.current),o=ja(n,e.type);n!==o&&(Ee(ao,e),Ee(Yt,o))}function jl(e){ao.current===e&&(je(Yt),je(ao))}var Ie=On(0);function Cs(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 Tl=[];function Rl(){for(var e=0;e<Tl.length;e++)Tl[e]._workInProgressVersionPrimary=null;Tl.length=0}var _s=T.ReactCurrentDispatcher,Nl=T.ReactCurrentBatchConfig,fr=0,Me=null,He=null,Qe=null,Es=!1,uo=!1,co=0,_y=0;function it(){throw Error(i(321))}function Il(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 Ml(e,n,o,s,l,c){if(fr=c,Me=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,_s.current=e===null||e.memoizedState===null?jy:Ty,e=o(s,l),uo){c=0;do{if(uo=!1,co=0,25<=c)throw Error(i(301));c+=1,Qe=He=null,n.updateQueue=null,_s.current=Ry,e=o(s,l)}while(uo)}if(_s.current=js,n=He!==null&&He.next!==null,fr=0,Qe=He=Me=null,Es=!1,n)throw Error(i(300));return e}function Ol(){var e=co!==0;return co=0,e}function Zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?Me.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function Mt(){if(He===null){var e=Me.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var n=Qe===null?Me.memoizedState:Qe.next;if(n!==null)Qe=n,He=e;else{if(e===null)throw Error(i(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},Qe===null?Me.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function fo(e,n){return typeof n=="function"?n(e):n}function Ll(e){var n=Mt(),o=n.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var s=He,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 y=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 U={lane:z,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null};k===null?(y=k=U,p=s):k=k.next=U,Me.lanes|=z,hr|=z}M=M.next}while(M!==null&&M!==c);k===null?p=s:k.next=y,zt(s,n.memoizedState)||(gt=!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,Me.lanes|=c,hr|=c,l=l.next;while(l!==e)}else l===null&&(o.lanes=0);return[n.memoizedState,o.dispatch]}function Al(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)||(gt=!0),n.memoizedState=c,n.baseQueue===null&&(n.baseState=c),o.lastRenderedState=c}return[c,s]}function Nf(){}function If(e,n){var o=Me,s=Mt(),l=n(),c=!zt(s.memoizedState,l);if(c&&(s.memoizedState=l,gt=!0),s=s.queue,Dl(Lf.bind(null,o,s,e),[e]),s.getSnapshot!==n||c||Qe!==null&&Qe.memoizedState.tag&1){if(o.flags|=2048,ho(9,Of.bind(null,o,s,l,n),void 0,null),Ge===null)throw Error(i(349));(fr&30)!==0||Mf(o,n,l)}return l}function Mf(e,n,o){e.flags|=16384,e={getSnapshot:n,value:o},n=Me.updateQueue,n===null?(n={lastEffect:null,stores:null},Me.updateQueue=n,n.stores=[e]):(o=n.stores,o===null?n.stores=[e]:o.push(e))}function Of(e,n,o,s){n.value=o,n.getSnapshot=s,Af(n)&&Df(e)}function Lf(e,n,o){return o(function(){Af(n)&&Df(e)})}function Af(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!zt(e,o)}catch{return!0}}function Df(e){var n=pn(e,1);n!==null&&Vt(n,e,1,-1)}function Ff(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:fo,lastRenderedState:e},n.queue=e,e=e.dispatch=by.bind(null,Me,e),[n.memoizedState,e]}function ho(e,n,o,s){return e={tag:e,create:n,destroy:o,deps:s,next:null},n=Me.updateQueue,n===null?(n={lastEffect:null,stores:null},Me.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 $f(){return Mt().memoizedState}function Ps(e,n,o,s){var l=Zt();Me.flags|=e,l.memoizedState=ho(1|n,o,void 0,s===void 0?null:s)}function bs(e,n,o,s){var l=Mt();s=s===void 0?null:s;var c=void 0;if(He!==null){var p=He.memoizedState;if(c=p.destroy,s!==null&&Il(s,p.deps)){l.memoizedState=ho(n,o,c,s);return}}Me.flags|=e,l.memoizedState=ho(1|n,o,c,s)}function zf(e,n){return Ps(8390656,8,e,n)}function Dl(e,n){return bs(2048,8,e,n)}function Uf(e,n){return bs(4,2,e,n)}function Bf(e,n){return bs(4,4,e,n)}function Hf(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 Wf(e,n,o){return o=o!=null?o.concat([e]):null,bs(4,4,Hf.bind(null,n,e),o)}function Fl(){}function Vf(e,n){var o=Mt();n=n===void 0?null:n;var s=o.memoizedState;return s!==null&&n!==null&&Il(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&&Il(n,s[1])?s[0]:(e=e(),o.memoizedState=[e,n],e)}function Kf(e,n,o){return(fr&21)===0?(e.baseState&&(e.baseState=!1,gt=!0),e.memoizedState=o):(zt(o,n)||(o=kd(),Me.lanes|=o,hr|=o,e.baseState=!0),n)}function Ey(e,n){var o=ke;ke=o!==0&&4>o?o:4,e(!0);var s=Nl.transition;Nl.transition={};try{e(!1),n()}finally{ke=o,Nl.transition=s}}function Qf(){return Mt().memoizedState}function Py(e,n,o){var s=Bn(e);if(o={lane:s,action:o,hasEagerState:!1,eagerState:null,next:null},Gf(e))Yf(n,o);else if(o=Pf(e,n,o,s),o!==null){var l=ft();Vt(o,e,s,l),Zf(o,n,s)}}function by(e,n,o){var s=Bn(e),l={lane:s,action:o,hasEagerState:!1,eagerState:null,next:null};if(Gf(e))Yf(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,y=c(p,o);if(l.hasEagerState=!0,l.eagerState=y,zt(y,p)){var k=n.interleaved;k===null?(l.next=l,El(n)):(l.next=k.next,k.next=l),n.interleaved=l;return}}catch{}finally{}o=Pf(e,n,l,s),o!==null&&(l=ft(),Vt(o,e,s,l),Zf(o,n,s))}}function Gf(e){var n=e.alternate;return e===Me||n!==null&&n===Me}function Yf(e,n){uo=Es=!0;var o=e.pending;o===null?n.next=n:(n.next=o.next,o.next=n),e.pending=n}function Zf(e,n,o){if((o&4194240)!==0){var s=n.lanes;s&=e.pendingLanes,o|=s,n.lanes=o,za(e,o)}}var js={readContext:It,useCallback:it,useContext:it,useEffect:it,useImperativeHandle:it,useInsertionEffect:it,useLayoutEffect:it,useMemo:it,useReducer:it,useRef:it,useState:it,useDebugValue:it,useDeferredValue:it,useTransition:it,useMutableSource:it,useSyncExternalStore:it,useId:it,unstable_isNewReconciler:!1},jy={readContext:It,useCallback:function(e,n){return Zt().memoizedState=[e,n===void 0?null:n],e},useContext:It,useEffect:zf,useImperativeHandle:function(e,n,o){return o=o!=null?o.concat([e]):null,Ps(4194308,4,Hf.bind(null,n,e),o)},useLayoutEffect:function(e,n){return Ps(4194308,4,e,n)},useInsertionEffect:function(e,n){return Ps(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=Py.bind(null,Me,e),[s.memoizedState,e]},useRef:function(e){var n=Zt();return e={current:e},n.memoizedState=e},useState:Ff,useDebugValue:Fl,useDeferredValue:function(e){return Zt().memoizedState=e},useTransition:function(){var e=Ff(!1),n=e[0];return e=Ey.bind(null,e[1]),Zt().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,o){var s=Me,l=Zt();if(Ne){if(o===void 0)throw Error(i(407));o=o()}else{if(o=n(),Ge===null)throw Error(i(349));(fr&30)!==0||Mf(s,n,o)}l.memoizedState=o;var c={value:o,getSnapshot:n};return l.queue=c,zf(Lf.bind(null,s,c,e),[e]),s.flags|=2048,ho(9,Of.bind(null,s,c,o,n),void 0,null),o},useId:function(){var e=Zt(),n=Ge.identifierPrefix;if(Ne){var o=hn,s=fn;o=(s&~(1<<32-$t(s)-1)).toString(32)+o,n=":"+n+"R"+o,o=co++,0<o&&(n+="H"+o.toString(32)),n+=":"}else o=_y++,n=":"+n+"r"+o.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},Ty={readContext:It,useCallback:Vf,useContext:It,useEffect:Dl,useImperativeHandle:Wf,useInsertionEffect:Uf,useLayoutEffect:Bf,useMemo:qf,useReducer:Ll,useRef:$f,useState:function(){return Ll(fo)},useDebugValue:Fl,useDeferredValue:function(e){var n=Mt();return Kf(n,He.memoizedState,e)},useTransition:function(){var e=Ll(fo)[0],n=Mt().memoizedState;return[e,n]},useMutableSource:Nf,useSyncExternalStore:If,useId:Qf,unstable_isNewReconciler:!1},Ry={readContext:It,useCallback:Vf,useContext:It,useEffect:Dl,useImperativeHandle:Wf,useInsertionEffect:Uf,useLayoutEffect:Bf,useMemo:qf,useReducer:Al,useRef:$f,useState:function(){return Al(fo)},useDebugValue:Fl,useDeferredValue:function(e){var n=Mt();return He===null?n.memoizedState=e:Kf(n,He.memoizedState,e)},useTransition:function(){var e=Al(fo)[0],n=Mt().memoizedState;return[e,n]},useMutableSource:Nf,useSyncExternalStore:If,useId:Qf,unstable_isNewReconciler:!1};function Bt(e,n){if(e&&e.defaultProps){n=Q({},n),e=e.defaultProps;for(var o in e)n[o]===void 0&&(n[o]=e[o]);return n}return n}function $l(e,n,o,s){n=e.memoizedState,o=o(s,n),o=o==null?n:Q({},n,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var Ts={isMounted:function(e){return(e=e._reactInternals)?or(e)===e:!1},enqueueSetState:function(e,n,o){e=e._reactInternals;var s=ft(),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),Ss(n,e,l))},enqueueReplaceState:function(e,n,o){e=e._reactInternals;var s=ft(),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),Ss(n,e,l))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var o=ft(),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),Ss(n,e,s))}};function Xf(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?!Xi(o,s)||!Xi(l,c):!0}function Jf(e,n,o){var s=!1,l=Ln,c=n.contextType;return typeof c=="object"&&c!==null?c=It(c):(l=vt(n)?ar:rt.current,s=n.contextTypes,c=(s=s!=null)?Gr(e,l):Ln),n=new n(o,c),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Ts,e.stateNode=n,n._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=c),n}function eh(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&&Ts.enqueueReplaceState(n,n.state,null)}function zl(e,n,o,s){var l=e.stateNode;l.props=o,l.state=e.memoizedState,l.refs={},Pl(e);var c=n.contextType;typeof c=="object"&&c!==null?l.context=It(c):(c=vt(n)?ar:rt.current,l.context=Gr(e,c)),l.state=e.memoizedState,c=n.getDerivedStateFromProps,typeof c=="function"&&($l(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&&Ts.enqueueReplaceState(l,l.state,null),ks(e,o,l,s),l.state=e.memoizedState),typeof l.componentDidMount=="function"&&(e.flags|=4194308)}function ri(e,n){try{var o="",s=n;do o+=ve(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 Ul(e,n,o){return{value:e,source:null,stack:o??null,digest:n??null}}function Bl(e,n){try{console.error(n.value)}catch(o){setTimeout(function(){throw o})}}var Ny=typeof WeakMap=="function"?WeakMap:Map;function th(e,n,o){o=mn(-1,o),o.tag=3,o.payload={element:null};var s=n.value;return o.callback=function(){As||(As=!0,ru=s),Bl(e,n)},o}function nh(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(){Bl(e,n)}}var c=e.stateNode;return c!==null&&typeof c.componentDidCatch=="function"&&(o.callback=function(){Bl(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 rh(e,n,o){var s=e.pingCache;if(s===null){s=e.pingCache=new Ny;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=Vy.bind(null,e,n,o),n.then(e,e))}function ih(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 oh(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 Iy=T.ReactCurrentOwner,gt=!1;function dt(e,n,o,s){n.child=e===null?Ef(n,null,o,s):Jr(n,e.child,o,s)}function sh(e,n,o,s,l){o=o.render;var c=n.ref;return ti(n,l),s=Ml(e,n,o,s,c,l),o=Ol(),e!==null&&!gt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,vn(e,n,l)):(Ne&&o&&vl(n),n.flags|=1,dt(e,n,s,l),n.child)}function ah(e,n,o,s,l){if(e===null){var c=o.type;return typeof c=="function"&&!cu(c)&&c.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(n.tag=15,n.type=c,lh(e,n,c,s,l)):(e=Bs(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:Xi,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 lh(e,n,o,s,l){if(e!==null){var c=e.memoizedProps;if(Xi(c,s)&&e.ref===n.ref)if(gt=!1,n.pendingProps=s=c,(e.lanes&l)!==0)(e.flags&131072)!==0&&(gt=!0);else return n.lanes=e.lanes,vn(e,n,l)}return Hl(e,n,o,s,l)}function uh(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},Ee(oi,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,Ee(oi,bt),bt|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=c!==null?c.baseLanes:o,Ee(oi,bt),bt|=s}else c!==null?(s=c.baseLanes|o,n.memoizedState=null):s=o,Ee(oi,bt),bt|=s;return dt(e,n,l,o),n.child}function ch(e,n){var o=n.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(n.flags|=512,n.flags|=2097152)}function Hl(e,n,o,s,l){var c=vt(o)?ar:rt.current;return c=Gr(n,c),ti(n,l),o=Ml(e,n,o,s,c,l),s=Ol(),e!==null&&!gt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~l,vn(e,n,l)):(Ne&&s&&vl(n),n.flags|=1,dt(e,n,o,l),n.child)}function dh(e,n,o,s,l){if(vt(o)){var c=!0;hs(n)}else c=!1;if(ti(n,l),n.stateNode===null)Ns(e,n),Jf(n,o,s),zl(n,o,s,l),s=!0;else if(e===null){var p=n.stateNode,y=n.memoizedProps;p.props=y;var k=p.context,M=o.contextType;typeof M=="object"&&M!==null?M=It(M):(M=vt(o)?ar:rt.current,M=Gr(n,M));var z=o.getDerivedStateFromProps,U=typeof z=="function"||typeof p.getSnapshotBeforeUpdate=="function";U||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(y!==s||k!==M)&&eh(n,p,s,M),Dn=!1;var $=n.memoizedState;p.state=$,ks(n,s,p,l),k=n.memoizedState,y!==s||$!==k||mt.current||Dn?(typeof z=="function"&&($l(n,o,z,s),k=n.memoizedState),(y=Dn||Xf(n,o,y,s,$,k,M))?(U||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=y):(typeof p.componentDidMount=="function"&&(n.flags|=4194308),s=!1)}else{p=n.stateNode,bf(e,n),y=n.memoizedProps,M=n.type===n.elementType?y:Bt(n.type,y),p.props=M,U=n.pendingProps,$=p.context,k=o.contextType,typeof k=="object"&&k!==null?k=It(k):(k=vt(o)?ar:rt.current,k=Gr(n,k));var K=o.getDerivedStateFromProps;(z=typeof K=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(y!==U||$!==k)&&eh(n,p,s,k),Dn=!1,$=n.memoizedState,p.state=$,ks(n,s,p,l);var Y=n.memoizedState;y!==U||$!==Y||mt.current||Dn?(typeof K=="function"&&($l(n,o,K,s),Y=n.memoizedState),(M=Dn||Xf(n,o,M,s,$,Y,k)||!1)?(z||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(s,Y,k),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(s,Y,k)),typeof p.componentDidUpdate=="function"&&(n.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof p.componentDidUpdate!="function"||y===e.memoizedProps&&$===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&$===e.memoizedState||(n.flags|=1024),n.memoizedProps=s,n.memoizedState=Y),p.props=s,p.state=Y,p.context=k,s=M):(typeof p.componentDidUpdate!="function"||y===e.memoizedProps&&$===e.memoizedState||(n.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&$===e.memoizedState||(n.flags|=1024),s=!1)}return Wl(e,n,o,s,c,l)}function Wl(e,n,o,s,l,c){ch(e,n);var p=(n.flags&128)!==0;if(!s&&!p)return l&&vf(n,o,!1),vn(e,n,c);s=n.stateNode,Iy.current=n;var y=p&&typeof o.getDerivedStateFromError!="function"?null:s.render();return n.flags|=1,e!==null&&p?(n.child=Jr(n,e.child,null,c),n.child=Jr(n,null,y,c)):dt(e,n,y,c),n.memoizedState=s.state,l&&vf(n,o,!0),n.child}function fh(e){var n=e.stateNode;n.pendingContext?pf(e,n.pendingContext,n.pendingContext!==n.context):n.context&&pf(e,n.context,!1),bl(e,n.containerInfo)}function hh(e,n,o,s,l){return Xr(),xl(l),n.flags|=256,dt(e,n,o,s),n.child}var Vl={dehydrated:null,treeContext:null,retryLane:0};function ql(e){return{baseLanes:e,cachePool:null,transitions:null}}function ph(e,n,o){var s=n.pendingProps,l=Ie.current,c=!1,p=(n.flags&128)!==0,y;if((y=p)||(y=e!==null&&e.memoizedState===null?!1:(l&2)!==0),y?(c=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(l|=1),Ee(Ie,l&1),e===null)return wl(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=Hs(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=ql(o),n.memoizedState=Vl,e):Kl(n,p));if(l=e.memoizedState,l!==null&&(y=l.dehydrated,y!==null))return My(e,n,p,s,y,l,o);if(c){c=s.fallback,p=n.mode,l=e.child,y=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),y!==null?c=Wn(y,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?ql(o):{baseLanes:p.baseLanes|o,cachePool:null,transitions:p.transitions},c.memoizedState=p,c.childLanes=e.childLanes&~o,n.memoizedState=Vl,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 Kl(e,n){return n=Hs({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function Rs(e,n,o,s){return s!==null&&xl(s),Jr(n,e.child,null,o),e=Kl(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function My(e,n,o,s,l,c,p){if(o)return n.flags&256?(n.flags&=-257,s=Ul(Error(i(422))),Rs(e,n,p,s)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(c=s.fallback,l=n.mode,s=Hs({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&&Jr(n,e.child,null,p),n.child.memoizedState=ql(p),n.memoizedState=Vl,c);if((n.mode&1)===0)return Rs(e,n,p,null);if(l.data==="$!"){if(s=l.nextSibling&&l.nextSibling.dataset,s)var y=s.dgst;return s=y,c=Error(i(419)),s=Ul(c,s,void 0),Rs(e,n,p,s)}if(y=(p&e.childLanes)!==0,gt||y){if(s=Ge,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 uu(),s=Ul(Error(i(421))),Rs(e,n,p,s)}return l.data==="$?"?(n.flags|=128,n.child=e.child,n=qy.bind(null,e),l._reactRetry=n,null):(e=c.treeContext,Pt=Mn(l.nextSibling),Et=n,Ne=!0,Ut=null,e!==null&&(Rt[Nt++]=fn,Rt[Nt++]=hn,Rt[Nt++]=lr,fn=e.id,hn=e.overflow,lr=n),n=Kl(n,s.children),n.flags|=4096,n)}function mh(e,n,o){e.lanes|=n;var s=e.alternate;s!==null&&(s.lanes|=n),_l(e.return,n,o)}function Ql(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 vh(e,n,o){var s=n.pendingProps,l=s.revealOrder,c=s.tail;if(dt(e,n,s.children,o),s=Ie.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&&mh(e,o,n);else if(e.tag===19)mh(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(Ee(Ie,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&&Cs(e)===null&&(l=o),o=o.sibling;o=l,o===null?(l=n.child,n.child=null):(l=o.sibling,o.sibling=null),Ql(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&&Cs(e)===null){n.child=l;break}e=l.sibling,l.sibling=o,o=l,l=e}Ql(n,!0,o,null,c);break;case"together":Ql(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Ns(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 Oy(e,n,o){switch(n.tag){case 3:fh(n),Xr();break;case 5:Rf(n);break;case 1:vt(n.type)&&hs(n);break;case 4:bl(n,n.stateNode.containerInfo);break;case 10:var s=n.type._context,l=n.memoizedProps.value;Ee(ws,s._currentValue),s._currentValue=l;break;case 13:if(s=n.memoizedState,s!==null)return s.dehydrated!==null?(Ee(Ie,Ie.current&1),n.flags|=128,null):(o&n.child.childLanes)!==0?ph(e,n,o):(Ee(Ie,Ie.current&1),e=vn(e,n,o),e!==null?e.sibling:null);Ee(Ie,Ie.current&1);break;case 19:if(s=(o&n.childLanes)!==0,(e.flags&128)!==0){if(s)return vh(e,n,o);n.flags|=128}if(l=n.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Ee(Ie,Ie.current),s)break;return null;case 22:case 23:return n.lanes=0,uh(e,n,o)}return vn(e,n,o)}var gh,Gl,yh,wh;gh=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}},Gl=function(){},yh=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=Oi(e,l),s=Oi(e,s),c=[];break;case"select":l=Q({},l,{value:void 0}),s=Q({},s,{value:void 0}),c=[];break;case"textarea":l=ba(e,l),s=ba(e,s),c=[];break;default:typeof l.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=cs)}Ta(o,s);var p;o=null;for(M in l)if(!s.hasOwnProperty(M)&&l.hasOwnProperty(M)&&l[M]!=null)if(M==="style"){var y=l[M];for(p in y)y.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(y=l!=null?l[M]:void 0,s.hasOwnProperty(M)&&k!==y&&(k!=null||y!=null))if(M==="style")if(y){for(p in y)!y.hasOwnProperty(p)||k&&k.hasOwnProperty(p)||(o||(o={}),o[p]="");for(p in k)k.hasOwnProperty(p)&&y[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,y=y?y.__html:void 0,k!=null&&y!==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"&&be("scroll",e),c||y===k||(c=[])):(c=c||[]).push(M,k))}o&&(c=c||[]).push("style",o);var M=c;(n.updateQueue=M)&&(n.flags|=4)}},wh=function(e,n,o,s){o!==s&&(n.flags|=4)};function po(e,n){if(!Ne)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 ot(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 Ly(e,n,o){var s=n.pendingProps;switch(gl(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(n),null;case 1:return vt(n.type)&&fs(),ot(n),null;case 3:return s=n.stateNode,ni(),je(mt),je(rt),Rl(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(gs(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Ut!==null&&(su(Ut),Ut=null))),Gl(e,n),ot(n),null;case 5:jl(n);var l=dr(lo.current);if(o=n.type,e!==null&&n.stateNode!=null)yh(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 ot(n),null}if(e=dr(Yt.current),gs(n)){s=n.stateNode,o=n.type;var c=n.memoizedProps;switch(s[Gt]=n,s[ro]=c,e=(n.mode&1)!==0,o){case"dialog":be("cancel",s),be("close",s);break;case"iframe":case"object":case"embed":be("load",s);break;case"video":case"audio":for(l=0;l<eo.length;l++)be(eo[l],s);break;case"source":be("error",s);break;case"img":case"image":case"link":be("error",s),be("load",s);break;case"details":be("toggle",s);break;case"input":Uo(s,c),be("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!c.multiple},be("invalid",s);break;case"textarea":td(s,c),be("invalid",s)}Ta(o,c),l=null;for(var p in c)if(c.hasOwnProperty(p)){var y=c[p];p==="children"?typeof y=="string"?s.textContent!==y&&(c.suppressHydrationWarning!==!0&&us(s.textContent,y,e),l=["children",y]):typeof y=="number"&&s.textContent!==""+y&&(c.suppressHydrationWarning!==!0&&us(s.textContent,y,e),l=["children",""+y]):u.hasOwnProperty(p)&&y!=null&&p==="onScroll"&&be("scroll",s)}switch(o){case"input":Lr(s),un(s,c,!0);break;case"textarea":Lr(s),rd(s);break;case"select":case"option":break;default:typeof c.onClick=="function"&&(s.onclick=cs)}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=id(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[ro]=s,gh(e,n,!1,!1),n.stateNode=e;e:{switch(p=Ra(o,s),o){case"dialog":be("cancel",e),be("close",e),l=s;break;case"iframe":case"object":case"embed":be("load",e),l=s;break;case"video":case"audio":for(l=0;l<eo.length;l++)be(eo[l],e);l=s;break;case"source":be("error",e),l=s;break;case"img":case"image":case"link":be("error",e),be("load",e),l=s;break;case"details":be("toggle",e),l=s;break;case"input":Uo(e,s),l=Oi(e,s),be("invalid",e);break;case"option":l=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},l=Q({},s,{value:void 0}),be("invalid",e);break;case"textarea":td(e,s),l=ba(e,s),be("invalid",e);break;default:l=s}Ta(o,l),y=l;for(c in y)if(y.hasOwnProperty(c)){var k=y[c];c==="style"?ad(e,k):c==="dangerouslySetInnerHTML"?(k=k?k.__html:void 0,k!=null&&od(e,k)):c==="children"?typeof k=="string"?(o!=="textarea"||k!=="")&&Li(e,k):typeof k=="number"&&Li(e,""+k):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(u.hasOwnProperty(c)?k!=null&&c==="onScroll"&&be("scroll",e):k!=null&&b(e,c,k,p))}switch(o){case"input":Lr(e),un(e,s,!1);break;case"textarea":Lr(e),rd(e);break;case"option":s.value!=null&&e.setAttribute("value",""+xe(s.value));break;case"select":e.multiple=!!s.multiple,c=s.value,c!=null?Dr(e,!!s.multiple,c,!1):s.defaultValue!=null&&Dr(e,!!s.multiple,s.defaultValue,!0);break;default:typeof l.onClick=="function"&&(e.onclick=cs)}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 ot(n),null;case 6:if(e&&n.stateNode!=null)wh(e,n,e.memoizedProps,s);else{if(typeof s!="string"&&n.stateNode===null)throw Error(i(166));if(o=dr(lo.current),dr(Yt.current),gs(n)){if(s=n.stateNode,o=n.memoizedProps,s[Gt]=n,(c=s.nodeValue!==o)&&(e=Et,e!==null))switch(e.tag){case 3:us(s.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&us(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 ot(n),null;case 13:if(je(Ie),s=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ne&&Pt!==null&&(n.mode&1)!==0&&(n.flags&128)===0)kf(),Xr(),n.flags|=98560,c=!1;else if(c=gs(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 Xr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;ot(n),c=!1}else Ut!==null&&(su(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||(Ie.current&1)!==0?We===0&&(We=3):uu())),n.updateQueue!==null&&(n.flags|=4),ot(n),null);case 4:return ni(),Gl(e,n),e===null&&to(n.stateNode.containerInfo),ot(n),null;case 10:return Cl(n.type._context),ot(n),null;case 17:return vt(n.type)&&fs(),ot(n),null;case 19:if(je(Ie),c=n.memoizedState,c===null)return ot(n),null;if(s=(n.flags&128)!==0,p=c.rendering,p===null)if(s)po(c,!1);else{if(We!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(p=Cs(e),p!==null){for(n.flags|=128,po(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 Ee(Ie,Ie.current&1|2),n.child}e=e.sibling}c.tail!==null&&Fe()>si&&(n.flags|=128,s=!0,po(c,!1),n.lanes=4194304)}else{if(!s)if(e=Cs(p),e!==null){if(n.flags|=128,s=!0,o=e.updateQueue,o!==null&&(n.updateQueue=o,n.flags|=4),po(c,!0),c.tail===null&&c.tailMode==="hidden"&&!p.alternate&&!Ne)return ot(n),null}else 2*Fe()-c.renderingStartTime>si&&o!==1073741824&&(n.flags|=128,s=!0,po(c,!1),n.lanes=4194304);c.isBackwards?(p.sibling=n.child,n.child=p):(o=c.last,o!==null?o.sibling=p:n.child=p,c.last=p)}return c.tail!==null?(n=c.tail,c.rendering=n,c.tail=n.sibling,c.renderingStartTime=Fe(),n.sibling=null,o=Ie.current,Ee(Ie,s?o&1|2:o&1),n):(ot(n),null);case 22:case 23:return lu(),s=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(n.flags|=8192),s&&(n.mode&1)!==0?(bt&1073741824)!==0&&(ot(n),n.subtreeFlags&6&&(n.flags|=8192)):ot(n),null;case 24:return null;case 25:return null}throw Error(i(156,n.tag))}function Ay(e,n){switch(gl(n),n.tag){case 1:return vt(n.type)&&fs(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return ni(),je(mt),je(rt),Rl(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return jl(n),null;case 13:if(je(Ie),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));Xr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return je(Ie),null;case 4:return ni(),null;case 10:return Cl(n.type._context),null;case 22:case 23:return lu(),null;case 24:return null;default:return null}}var Is=!1,st=!1,Dy=typeof WeakSet=="function"?WeakSet:Set,G=null;function ii(e,n){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(s){Le(e,n,s)}else o.current=null}function Yl(e,n,o){try{o()}catch(s){Le(e,n,s)}}var xh=!1;function Fy(e,n){if(ll=Xo,e=Zd(),el(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,y=-1,k=-1,M=0,z=0,U=e,$=null;t:for(;;){for(var K;U!==o||l!==0&&U.nodeType!==3||(y=p+l),U!==c||s!==0&&U.nodeType!==3||(k=p+s),U.nodeType===3&&(p+=U.nodeValue.length),(K=U.firstChild)!==null;)$=U,U=K;for(;;){if(U===e)break t;if($===o&&++M===l&&(y=p),$===c&&++z===s&&(k=p),(K=U.nextSibling)!==null)break;U=$,$=U.parentNode}U=K}o=y===-1||k===-1?null:{start:y,end:k}}else o=null}o=o||{start:0,end:0}}else o=null;for(ul={focusedElem:e,selectionRange:o},Xo=!1,G=n;G!==null;)if(n=G,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,G=e;else for(;G!==null;){n=G;try{var Y=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(Y!==null){var X=Y.memoizedProps,$e=Y.memoizedState,j=n.stateNode,_=j.getSnapshotBeforeUpdate(n.elementType===n.type?X:Bt(n.type,X),$e);j.__reactInternalSnapshotBeforeUpdate=_}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){Le(n,n.return,H)}if(e=n.sibling,e!==null){e.return=n.return,G=e;break}G=n.return}return Y=xh,xh=!1,Y}function mo(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&&Yl(n,o,c)}l=l.next}while(l!==s)}}function Ms(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 Zl(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 Sh(e){var n=e.alternate;n!==null&&(e.alternate=null,Sh(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Gt],delete n[ro],delete n[hl],delete n[xy],delete n[Sy])),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 kh(e){return e.tag===5||e.tag===3||e.tag===4}function Ch(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||kh(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 Xl(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=cs));else if(s!==4&&(e=e.child,e!==null))for(Xl(e,n,o),e=e.sibling;e!==null;)Xl(e,n,o),e=e.sibling}function Jl(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(Jl(e,n,o),e=e.sibling;e!==null;)Jl(e,n,o),e=e.sibling}var Je=null,Ht=!1;function $n(e,n,o){for(o=o.child;o!==null;)_h(e,n,o),o=o.sibling}function _h(e,n,o){if(Qt&&typeof Qt.onCommitFiberUnmount=="function")try{Qt.onCommitFiberUnmount(qo,o)}catch{}switch(o.tag){case 5:st||ii(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?fl(e.parentNode,o):e.nodeType===1&&fl(e,o),qi(e)):fl(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(!st&&(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)&&Yl(o,n,p),l=l.next}while(l!==s)}$n(e,n,o);break;case 1:if(!st&&(ii(o,n),s=o.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=o.memoizedProps,s.state=o.memoizedState,s.componentWillUnmount()}catch(y){Le(o,n,y)}$n(e,n,o);break;case 21:$n(e,n,o);break;case 22:o.mode&1?(st=(s=st)||o.memoizedState!==null,$n(e,n,o),st=s):$n(e,n,o);break;default:$n(e,n,o)}}function Eh(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new Dy),n.forEach(function(s){var l=Ky.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,y=p;e:for(;y!==null;){switch(y.tag){case 5:Je=y.stateNode,Ht=!1;break e;case 3:Je=y.stateNode.containerInfo,Ht=!0;break e;case 4:Je=y.stateNode.containerInfo,Ht=!0;break e}y=y.return}if(Je===null)throw Error(i(160));_h(c,p,l),Je=null,Ht=!1;var k=l.alternate;k!==null&&(k.return=null),l.return=null}catch(M){Le(l,n,M)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)Ph(n,e),n=n.sibling}function Ph(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{mo(3,e,e.return),Ms(3,e)}catch(X){Le(e,e.return,X)}try{mo(5,e,e.return)}catch(X){Le(e,e.return,X)}}break;case 1:Wt(n,e),Xt(e),s&512&&o!==null&&ii(o,o.return);break;case 5:if(Wt(n,e),Xt(e),s&512&&o!==null&&ii(o,o.return),e.flags&32){var l=e.stateNode;try{Li(l,"")}catch(X){Le(e,e.return,X)}}if(s&4&&(l=e.stateNode,l!=null)){var c=e.memoizedProps,p=o!==null?o.memoizedProps:c,y=e.type,k=e.updateQueue;if(e.updateQueue=null,k!==null)try{y==="input"&&c.type==="radio"&&c.name!=null&&Tt(l,c),Ra(y,p);var M=Ra(y,c);for(p=0;p<k.length;p+=2){var z=k[p],U=k[p+1];z==="style"?ad(l,U):z==="dangerouslySetInnerHTML"?od(l,U):z==="children"?Li(l,U):b(l,z,U,M)}switch(y){case"input":Kt(l,c);break;case"textarea":nd(l,c);break;case"select":var $=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!c.multiple;var K=c.value;K!=null?Dr(l,!!c.multiple,K,!1):$!==!!c.multiple&&(c.defaultValue!=null?Dr(l,!!c.multiple,c.defaultValue,!0):Dr(l,!!c.multiple,c.multiple?[]:"",!1))}l[ro]=c}catch(X){Le(e,e.return,X)}}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(X){Le(e,e.return,X)}}break;case 3:if(Wt(n,e),Xt(e),s&4&&o!==null&&o.memoizedState.isDehydrated)try{qi(n.containerInfo)}catch(X){Le(e,e.return,X)}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||(nu=Fe())),s&4&&Eh(e);break;case 22:if(z=o!==null&&o.memoizedState!==null,e.mode&1?(st=(M=st)||z,Wt(n,e),st=M):Wt(n,e),Xt(e),s&8192){if(M=e.memoizedState!==null,(e.stateNode.isHidden=M)&&!z&&(e.mode&1)!==0)for(G=e,z=e.child;z!==null;){for(U=G=z;G!==null;){switch($=G,K=$.child,$.tag){case 0:case 11:case 14:case 15:mo(4,$,$.return);break;case 1:ii($,$.return);var Y=$.stateNode;if(typeof Y.componentWillUnmount=="function"){s=$,o=$.return;try{n=s,Y.props=n.memoizedProps,Y.state=n.memoizedState,Y.componentWillUnmount()}catch(X){Le(s,o,X)}}break;case 5:ii($,$.return);break;case 22:if($.memoizedState!==null){Th(U);continue}}K!==null?(K.return=$,G=K):Th(U)}z=z.sibling}e:for(z=null,U=e;;){if(U.tag===5){if(z===null){z=U;try{l=U.stateNode,M?(c=l.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none"):(y=U.stateNode,k=U.memoizedProps.style,p=k!=null&&k.hasOwnProperty("display")?k.display:null,y.style.display=sd("display",p))}catch(X){Le(e,e.return,X)}}}else if(U.tag===6){if(z===null)try{U.stateNode.nodeValue=M?"":U.memoizedProps}catch(X){Le(e,e.return,X)}}else if((U.tag!==22&&U.tag!==23||U.memoizedState===null||U===e)&&U.child!==null){U.child.return=U,U=U.child;continue}if(U===e)break e;for(;U.sibling===null;){if(U.return===null||U.return===e)break e;z===U&&(z=null),U=U.return}z===U&&(z=null),U.sibling.return=U.return,U=U.sibling}}break;case 19:Wt(n,e),Xt(e),s&4&&Eh(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(kh(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&&(Li(l,""),s.flags&=-33);var c=Ch(e);Jl(e,c,l);break;case 3:case 4:var p=s.stateNode.containerInfo,y=Ch(e);Xl(e,y,p);break;default:throw Error(i(161))}}catch(k){Le(e,e.return,k)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function $y(e,n,o){G=e,bh(e)}function bh(e,n,o){for(var s=(e.mode&1)!==0;G!==null;){var l=G,c=l.child;if(l.tag===22&&s){var p=l.memoizedState!==null||Is;if(!p){var y=l.alternate,k=y!==null&&y.memoizedState!==null||st;y=Is;var M=st;if(Is=p,(st=k)&&!M)for(G=l;G!==null;)p=G,k=p.child,p.tag===22&&p.memoizedState!==null?Rh(l):k!==null?(k.return=p,G=k):Rh(l);for(;c!==null;)G=c,bh(c),c=c.sibling;G=l,Is=y,st=M}jh(e)}else(l.subtreeFlags&8772)!==0&&c!==null?(c.return=l,G=c):jh(e)}}function jh(e){for(;G!==null;){var n=G;if((n.flags&8772)!==0){var o=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:st||Ms(5,n);break;case 1:var s=n.stateNode;if(n.flags&4&&!st)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&&Tf(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}Tf(n,p,o)}break;case 5:var y=n.stateNode;if(o===null&&n.flags&4){o=y;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 U=z.dehydrated;U!==null&&qi(U)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}st||n.flags&512&&Zl(n)}catch($){Le(n,n.return,$)}}if(n===e){G=null;break}if(o=n.sibling,o!==null){o.return=n.return,G=o;break}G=n.return}}function Th(e){for(;G!==null;){var n=G;if(n===e){G=null;break}var o=n.sibling;if(o!==null){o.return=n.return,G=o;break}G=n.return}}function Rh(e){for(;G!==null;){var n=G;try{switch(n.tag){case 0:case 11:case 15:var o=n.return;try{Ms(4,n)}catch(k){Le(n,o,k)}break;case 1:var s=n.stateNode;if(typeof s.componentDidMount=="function"){var l=n.return;try{s.componentDidMount()}catch(k){Le(n,l,k)}}var c=n.return;try{Zl(n)}catch(k){Le(n,c,k)}break;case 5:var p=n.return;try{Zl(n)}catch(k){Le(n,p,k)}}}catch(k){Le(n,n.return,k)}if(n===e){G=null;break}var y=n.sibling;if(y!==null){y.return=n.return,G=y;break}G=n.return}}var zy=Math.ceil,Os=T.ReactCurrentDispatcher,eu=T.ReactCurrentOwner,Ot=T.ReactCurrentBatchConfig,ye=0,Ge=null,ze=null,et=0,bt=0,oi=On(0),We=0,vo=null,hr=0,Ls=0,tu=0,go=null,yt=null,nu=0,si=1/0,gn=null,As=!1,ru=null,zn=null,Ds=!1,Un=null,Fs=0,yo=0,iu=null,$s=-1,zs=0;function ft(){return(ye&6)!==0?Fe():$s!==-1?$s:$s=Fe()}function Bn(e){return(e.mode&1)===0?1:(ye&2)!==0&&et!==0?et&-et:Cy.transition!==null?(zs===0&&(zs=kd()),zs):(e=ke,e!==0||(e=window.event,e=e===void 0?16:Nd(e.type)),e)}function Vt(e,n,o,s){if(50<yo)throw yo=0,iu=null,Error(i(185));Ui(e,o,s),((ye&2)===0||e!==Ge)&&(e===Ge&&((ye&2)===0&&(Ls|=o),We===4&&Hn(e,et)),wt(e,s),o===1&&ye===0&&(n.mode&1)===0&&(si=Fe()+500,ps&&An()))}function wt(e,n){var o=e.callbackNode;Cg(e,n);var s=Go(e,e===Ge?et:0);if(s===0)o!==null&&wd(o),e.callbackNode=null,e.callbackPriority=0;else if(n=s&-s,e.callbackPriority!==n){if(o!=null&&wd(o),n===1)e.tag===0?ky(Ih.bind(null,e)):gf(Ih.bind(null,e)),yy(function(){(ye&6)===0&&An()}),o=null;else{switch(Cd(s)){case 1:o=Da;break;case 4:o=xd;break;case 16:o=Vo;break;case 536870912:o=Sd;break;default:o=Vo}o=zh(o,Nh.bind(null,e))}e.callbackPriority=n,e.callbackNode=o}}function Nh(e,n){if($s=-1,zs=0,(ye&6)!==0)throw Error(i(327));var o=e.callbackNode;if(ai()&&e.callbackNode!==o)return null;var s=Go(e,e===Ge?et:0);if(s===0)return null;if((s&30)!==0||(s&e.expiredLanes)!==0||n)n=Us(e,s);else{n=s;var l=ye;ye|=2;var c=Oh();(Ge!==e||et!==n)&&(gn=null,si=Fe()+500,mr(e,n));do try{Hy();break}catch(y){Mh(e,y)}while(!0);kl(),Os.current=c,ye=l,ze!==null?n=0:(Ge=null,et=0,n=We)}if(n!==0){if(n===2&&(l=Fa(e),l!==0&&(s=l,n=ou(e,l))),n===1)throw o=vo,mr(e,0),Hn(e,s),wt(e,Fe()),o;if(n===6)Hn(e,s);else{if(l=e.current.alternate,(s&30)===0&&!Uy(l)&&(n=Us(e,s),n===2&&(c=Fa(e),c!==0&&(s=c,n=ou(e,c))),n===1))throw o=vo,mr(e,0),Hn(e,s),wt(e,Fe()),o;switch(e.finishedWork=l,e.finishedLanes=s,n){case 0:case 1:throw Error(i(345));case 2:vr(e,yt,gn);break;case 3:if(Hn(e,s),(s&130023424)===s&&(n=nu+500-Fe(),10<n)){if(Go(e,0)!==0)break;if(l=e.suspendedLanes,(l&s)!==s){ft(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=dl(vr.bind(null,e,yt,gn),n);break}vr(e,yt,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=Fe()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*zy(s/1960))-s,10<s){e.timeoutHandle=dl(vr.bind(null,e,yt,gn),s);break}vr(e,yt,gn);break;case 5:vr(e,yt,gn);break;default:throw Error(i(329))}}}return wt(e,Fe()),e.callbackNode===o?Nh.bind(null,e):null}function ou(e,n){var o=go;return e.current.memoizedState.isDehydrated&&(mr(e,n).flags|=256),e=Us(e,n),e!==2&&(n=yt,yt=o,n!==null&&su(n)),e}function su(e){yt===null?yt=e:yt.push.apply(yt,e)}function Uy(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&=~tu,n&=~Ls,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 Ih(e){if((ye&6)!==0)throw Error(i(327));ai();var n=Go(e,0);if((n&1)===0)return wt(e,Fe()),null;var o=Us(e,n);if(e.tag!==0&&o===2){var s=Fa(e);s!==0&&(n=s,o=ou(e,s))}if(o===1)throw o=vo,mr(e,0),Hn(e,n),wt(e,Fe()),o;if(o===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,vr(e,yt,gn),wt(e,Fe()),null}function au(e,n){var o=ye;ye|=1;try{return e(n)}finally{ye=o,ye===0&&(si=Fe()+500,ps&&An())}}function pr(e){Un!==null&&Un.tag===0&&(ye&6)===0&&ai();var n=ye;ye|=1;var o=Ot.transition,s=ke;try{if(Ot.transition=null,ke=1,e)return e()}finally{ke=s,Ot.transition=o,ye=n,(ye&6)===0&&An()}}function lu(){bt=oi.current,je(oi)}function mr(e,n){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,gy(o)),ze!==null)for(o=ze.return;o!==null;){var s=o;switch(gl(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&fs();break;case 3:ni(),je(mt),je(rt),Rl();break;case 5:jl(s);break;case 4:ni();break;case 13:je(Ie);break;case 19:je(Ie);break;case 10:Cl(s.type._context);break;case 22:case 23:lu()}o=o.return}if(Ge=e,ze=e=Wn(e.current,null),et=bt=n,We=0,vo=null,tu=Ls=hr=0,yt=go=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 Mh(e,n){do{var o=ze;try{if(kl(),_s.current=js,Es){for(var s=Me.memoizedState;s!==null;){var l=s.queue;l!==null&&(l.pending=null),s=s.next}Es=!1}if(fr=0,Qe=He=Me=null,uo=!1,co=0,eu.current=null,o===null||o.return===null){We=1,vo=n,ze=null;break}e:{var c=e,p=o.return,y=o,k=n;if(n=et,y.flags|=32768,k!==null&&typeof k=="object"&&typeof k.then=="function"){var M=k,z=y,U=z.tag;if((z.mode&1)===0&&(U===0||U===11||U===15)){var $=z.alternate;$?(z.updateQueue=$.updateQueue,z.memoizedState=$.memoizedState,z.lanes=$.lanes):(z.updateQueue=null,z.memoizedState=null)}var K=ih(p);if(K!==null){K.flags&=-257,oh(K,p,y,c,n),K.mode&1&&rh(c,M,n),n=K,k=M;var Y=n.updateQueue;if(Y===null){var X=new Set;X.add(k),n.updateQueue=X}else Y.add(k);break e}else{if((n&1)===0){rh(c,M,n),uu();break e}k=Error(i(426))}}else if(Ne&&y.mode&1){var $e=ih(p);if($e!==null){($e.flags&65536)===0&&($e.flags|=256),oh($e,p,y,c,n),xl(ri(k,y));break e}}c=k=ri(k,y),We!==4&&(We=2),go===null?go=[c]:go.push(c),c=p;do{switch(c.tag){case 3:c.flags|=65536,n&=-n,c.lanes|=n;var j=th(c,k,n);jf(c,j);break e;case 1:y=k;var _=c.type,R=c.stateNode;if((c.flags&128)===0&&(typeof _.getDerivedStateFromError=="function"||R!==null&&typeof R.componentDidCatch=="function"&&(zn===null||!zn.has(R)))){c.flags|=65536,n&=-n,c.lanes|=n;var H=nh(c,y,n);jf(c,H);break e}}c=c.return}while(c!==null)}Ah(o)}catch(J){n=J,ze===o&&o!==null&&(ze=o=o.return);continue}break}while(!0)}function Oh(){var e=Os.current;return Os.current=js,e===null?js:e}function uu(){(We===0||We===3||We===2)&&(We=4),Ge===null||(hr&268435455)===0&&(Ls&268435455)===0||Hn(Ge,et)}function Us(e,n){var o=ye;ye|=2;var s=Oh();(Ge!==e||et!==n)&&(gn=null,mr(e,n));do try{By();break}catch(l){Mh(e,l)}while(!0);if(kl(),ye=o,Os.current=s,ze!==null)throw Error(i(261));return Ge=null,et=0,We}function By(){for(;ze!==null;)Lh(ze)}function Hy(){for(;ze!==null&&!pg();)Lh(ze)}function Lh(e){var n=$h(e.alternate,e,bt);e.memoizedProps=e.pendingProps,n===null?Ah(e):ze=n,eu.current=null}function Ah(e){var n=e;do{var o=n.alternate;if(e=n.return,(n.flags&32768)===0){if(o=Ly(o,n,bt),o!==null){ze=o;return}}else{if(o=Ay(o,n),o!==null){o.flags&=32767,ze=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{We=6,ze=null;return}}if(n=n.sibling,n!==null){ze=n;return}ze=n=e}while(n!==null);We===0&&(We=5)}function vr(e,n,o){var s=ke,l=Ot.transition;try{Ot.transition=null,ke=1,Wy(e,n,o,s)}finally{Ot.transition=l,ke=s}return null}function Wy(e,n,o,s){do ai();while(Un!==null);if((ye&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(_g(e,c),e===Ge&&(ze=Ge=null,et=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||Ds||(Ds=!0,zh(Vo,function(){return ai(),null})),c=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||c){c=Ot.transition,Ot.transition=null;var p=ke;ke=1;var y=ye;ye|=4,eu.current=null,Fy(e,o),Ph(o,e),cy(ul),Xo=!!ll,ul=ll=null,e.current=o,$y(o),mg(),ye=y,ke=p,Ot.transition=c}else e.current=o;if(Ds&&(Ds=!1,Un=e,Fs=l),c=e.pendingLanes,c===0&&(zn=null),yg(o.stateNode),wt(e,Fe()),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(As)throw As=!1,e=ru,ru=null,e;return(Fs&1)!==0&&e.tag!==0&&ai(),c=e.pendingLanes,(c&1)!==0?e===iu?yo++:(yo=0,iu=e):yo=0,An(),null}function ai(){if(Un!==null){var e=Cd(Fs),n=Ot.transition,o=ke;try{if(Ot.transition=null,ke=16>e?16:e,Un===null)var s=!1;else{if(e=Un,Un=null,Fs=0,(ye&6)!==0)throw Error(i(331));var l=ye;for(ye|=4,G=e.current;G!==null;){var c=G,p=c.child;if((G.flags&16)!==0){var y=c.deletions;if(y!==null){for(var k=0;k<y.length;k++){var M=y[k];for(G=M;G!==null;){var z=G;switch(z.tag){case 0:case 11:case 15:mo(8,z,c)}var U=z.child;if(U!==null)U.return=z,G=U;else for(;G!==null;){z=G;var $=z.sibling,K=z.return;if(Sh(z),z===M){G=null;break}if($!==null){$.return=K,G=$;break}G=K}}}var Y=c.alternate;if(Y!==null){var X=Y.child;if(X!==null){Y.child=null;do{var $e=X.sibling;X.sibling=null,X=$e}while(X!==null)}}G=c}}if((c.subtreeFlags&2064)!==0&&p!==null)p.return=c,G=p;else e:for(;G!==null;){if(c=G,(c.flags&2048)!==0)switch(c.tag){case 0:case 11:case 15:mo(9,c,c.return)}var j=c.sibling;if(j!==null){j.return=c.return,G=j;break e}G=c.return}}var _=e.current;for(G=_;G!==null;){p=G;var R=p.child;if((p.subtreeFlags&2064)!==0&&R!==null)R.return=p,G=R;else e:for(p=_;G!==null;){if(y=G,(y.flags&2048)!==0)try{switch(y.tag){case 0:case 11:case 15:Ms(9,y)}}catch(J){Le(y,y.return,J)}if(y===p){G=null;break e}var H=y.sibling;if(H!==null){H.return=y.return,G=H;break e}G=y.return}}if(ye=l,An(),Qt&&typeof Qt.onPostCommitFiberRoot=="function")try{Qt.onPostCommitFiberRoot(qo,e)}catch{}s=!0}return s}finally{ke=o,Ot.transition=n}}return!1}function Dh(e,n,o){n=ri(o,n),n=th(e,n,1),e=Fn(e,n,1),n=ft(),e!==null&&(Ui(e,1,n),wt(e,n))}function Le(e,n,o){if(e.tag===3)Dh(e,e,o);else for(;n!==null;){if(n.tag===3){Dh(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=ri(o,e),e=nh(n,e,1),n=Fn(n,e,1),e=ft(),n!==null&&(Ui(n,1,e),wt(n,e));break}}n=n.return}}function Vy(e,n,o){var s=e.pingCache;s!==null&&s.delete(n),n=ft(),e.pingedLanes|=e.suspendedLanes&o,Ge===e&&(et&o)===o&&(We===4||We===3&&(et&130023424)===et&&500>Fe()-nu?mr(e,0):tu|=o),wt(e,n)}function Fh(e,n){n===0&&((e.mode&1)===0?n=1:(n=Qo,Qo<<=1,(Qo&130023424)===0&&(Qo=4194304)));var o=ft();e=pn(e,n),e!==null&&(Ui(e,n,o),wt(e,o))}function qy(e){var n=e.memoizedState,o=0;n!==null&&(o=n.retryLane),Fh(e,o)}function Ky(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),Fh(e,o)}var $h;$h=function(e,n,o){if(e!==null)if(e.memoizedProps!==n.pendingProps||mt.current)gt=!0;else{if((e.lanes&o)===0&&(n.flags&128)===0)return gt=!1,Oy(e,n,o);gt=(e.flags&131072)!==0}else gt=!1,Ne&&(n.flags&1048576)!==0&&yf(n,vs,n.index);switch(n.lanes=0,n.tag){case 2:var s=n.type;Ns(e,n),e=n.pendingProps;var l=Gr(n,rt.current);ti(n,o),l=Ml(null,n,s,e,l,o);var c=Ol();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,vt(s)?(c=!0,hs(n)):c=!1,n.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,Pl(n),l.updater=Ts,n.stateNode=l,l._reactInternals=n,zl(n,s,e,o),n=Wl(null,n,s,!0,c,o)):(n.tag=0,Ne&&c&&vl(n),dt(null,n,l,o),n=n.child),n;case 16:s=n.elementType;e:{switch(Ns(e,n),e=n.pendingProps,l=s._init,s=l(s._payload),n.type=s,l=n.tag=Gy(s),e=Bt(s,e),l){case 0:n=Hl(null,n,s,e,o);break e;case 1:n=dh(null,n,s,e,o);break e;case 11:n=sh(null,n,s,e,o);break e;case 14:n=ah(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),Hl(e,n,s,l,o);case 1:return s=n.type,l=n.pendingProps,l=n.elementType===s?l:Bt(s,l),dh(e,n,s,l,o);case 3:e:{if(fh(n),e===null)throw Error(i(387));s=n.pendingProps,c=n.memoizedState,l=c.element,bf(e,n),ks(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=ri(Error(i(423)),n),n=hh(e,n,s,o,l);break e}else if(s!==l){l=ri(Error(i(424)),n),n=hh(e,n,s,o,l);break e}else for(Pt=Mn(n.stateNode.containerInfo.firstChild),Et=n,Ne=!0,Ut=null,o=Ef(n,null,s,o),n.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Xr(),s===l){n=vn(e,n,o);break e}dt(e,n,s,o)}n=n.child}return n;case 5:return Rf(n),e===null&&wl(n),s=n.type,l=n.pendingProps,c=e!==null?e.memoizedProps:null,p=l.children,cl(s,l)?p=null:c!==null&&cl(s,c)&&(n.flags|=32),ch(e,n),dt(e,n,p,o),n.child;case 6:return e===null&&wl(n),null;case 13:return ph(e,n,o);case 4:return bl(n,n.stateNode.containerInfo),s=n.pendingProps,e===null?n.child=Jr(n,null,s,o):dt(e,n,s,o),n.child;case 11:return s=n.type,l=n.pendingProps,l=n.elementType===s?l:Bt(s,l),sh(e,n,s,l,o);case 7:return dt(e,n,n.pendingProps,o),n.child;case 8:return dt(e,n,n.pendingProps.children,o),n.child;case 12:return dt(e,n,n.pendingProps.children,o),n.child;case 10:e:{if(s=n.type._context,l=n.pendingProps,c=n.memoizedProps,p=l.value,Ee(ws,s._currentValue),s._currentValue=p,c!==null)if(zt(c.value,p)){if(c.children===l.children&&!mt.current){n=vn(e,n,o);break e}}else for(c=n.child,c!==null&&(c.return=n);c!==null;){var y=c.dependencies;if(y!==null){p=c.child;for(var k=y.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),_l(c.return,o,n),y.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,y=p.alternate,y!==null&&(y.lanes|=o),_l(p,o,n),p=c.sibling}else p=c.child;if(p!==null)p.return=c;else for(p=c;p!==null;){if(p===n){p=null;break}if(c=p.sibling,c!==null){c.return=p.return,p=c;break}p=p.return}c=p}dt(e,n,l.children,o),n=n.child}return n;case 9:return l=n.type,s=n.pendingProps.children,ti(n,o),l=It(l),s=s(l),n.flags|=1,dt(e,n,s,o),n.child;case 14:return s=n.type,l=Bt(s,n.pendingProps),l=Bt(s.type,l),ah(e,n,s,l,o);case 15:return lh(e,n,n.type,n.pendingProps,o);case 17:return s=n.type,l=n.pendingProps,l=n.elementType===s?l:Bt(s,l),Ns(e,n),n.tag=1,vt(s)?(e=!0,hs(n)):e=!1,ti(n,o),Jf(n,s,l),zl(n,s,l,o),Wl(null,n,s,!0,e,o);case 19:return vh(e,n,o);case 22:return uh(e,n,o)}throw Error(i(156,n.tag))};function zh(e,n){return yd(e,n)}function Qy(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 Qy(e,n,o,s)}function cu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Gy(e){if(typeof e=="function")return cu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Te)return 11;if(e===Ke)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 Bs(e,n,o,s,l,c){var p=2;if(s=e,typeof e=="function")cu(e)&&(p=1);else if(typeof e=="string")p=5;else e:switch(e){case oe:return gr(o.children,l,c,n);case ee:p=8,l|=8;break;case se:return e=Lt(12,o,n,l|2),e.elementType=se,e.lanes=c,e;case Be:return e=Lt(13,o,n,l),e.elementType=Be,e.lanes=c,e;case qe:return e=Lt(19,o,n,l),e.elementType=qe,e.lanes=c,e;case Re:return Hs(o,l,c,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ce:p=10;break e;case Z:p=9;break e;case Te:p=11;break e;case Ke:p=14;break e;case nt: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 Hs(e,n,o,s){return e=Lt(22,e,s,n),e.elementType=Re,e.lanes=o,e.stateNode={isHidden:!1},e}function du(e,n,o){return e=Lt(6,e,null,n),e.lanes=o,e}function fu(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 Yy(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=$a(0),this.expirationTimes=$a(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$a(0),this.identifierPrefix=s,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function hu(e,n,o,s,l,c,p,y,k){return e=new Yy(e,n,o,y,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},Pl(c),e}function Zy(e,n,o){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:V,key:s==null?null:""+s,children:e,containerInfo:n,implementation:o}}function Uh(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(vt(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(i(171))}if(e.tag===1){var o=e.type;if(vt(o))return mf(e,o,n)}return n}function Bh(e,n,o,s,l,c,p,y,k){return e=hu(o,s,!0,e,l,c,p,y,k),e.context=Uh(null),o=e.current,s=ft(),l=Bn(o),c=mn(s,l),c.callback=n??null,Fn(o,c,l),e.current.lanes=l,Ui(e,l,s),wt(e,s),e}function Ws(e,n,o,s){var l=n.current,c=ft(),p=Bn(l);return o=Uh(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),Ss(e,l,p)),p}function Vs(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 Hh(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<n?o:n}}function pu(e,n){Hh(e,n),(e=e.alternate)&&Hh(e,n)}function Xy(){return null}var Wh=typeof reportError=="function"?reportError:function(e){console.error(e)};function mu(e){this._internalRoot=e}qs.prototype.render=mu.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(i(409));Ws(e,n,null,null)},qs.prototype.unmount=mu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;pr(function(){Ws(null,e,null,null)}),n[cn]=null}};function qs(e){this._internalRoot=e}qs.prototype.unstable_scheduleHydration=function(e){if(e){var n=Pd();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&&Td(e)}};function vu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Ks(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Vh(){}function Jy(e,n,o,s,l){if(l){if(typeof s=="function"){var c=s;s=function(){var M=Vs(p);c.call(M)}}var p=Bh(n,s,e,0,null,!1,!1,"",Vh);return e._reactRootContainer=p,e[cn]=p.current,to(e.nodeType===8?e.parentNode:e),pr(),p}for(;l=e.lastChild;)e.removeChild(l);if(typeof s=="function"){var y=s;s=function(){var M=Vs(k);y.call(M)}}var k=hu(e,0,!1,null,null,!1,!1,"",Vh);return e._reactRootContainer=k,e[cn]=k.current,to(e.nodeType===8?e.parentNode:e),pr(function(){Ws(n,k,o,s)}),k}function Qs(e,n,o,s,l){var c=o._reactRootContainer;if(c){var p=c;if(typeof l=="function"){var y=l;l=function(){var k=Vs(p);y.call(k)}}Ws(n,p,e,l)}else p=Jy(o,n,e,l,s);return Vs(p)}_d=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var o=zi(n.pendingLanes);o!==0&&(za(n,o|1),wt(n,Fe()),(ye&6)===0&&(si=Fe()+500,An()))}break;case 13:pr(function(){var s=pn(e,1);if(s!==null){var l=ft();Vt(s,e,1,l)}}),pu(e,1)}},Ua=function(e){if(e.tag===13){var n=pn(e,134217728);if(n!==null){var o=ft();Vt(n,e,134217728,o)}pu(e,134217728)}},Ed=function(e){if(e.tag===13){var n=Bn(e),o=pn(e,n);if(o!==null){var s=ft();Vt(o,e,n,s)}pu(e,n)}},Pd=function(){return ke},bd=function(e,n){var o=ke;try{return ke=e,n()}finally{ke=o}},Ma=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=ds(s);if(!l)throw Error(i(90));Mi(s),Kt(s,l)}}}break;case"textarea":nd(e,o);break;case"select":n=o.value,n!=null&&Dr(e,!!o.multiple,n,!1)}},dd=au,fd=pr;var ew={usingClientEntryPoint:!1,Events:[io,Kr,ds,ud,cd,au]},wo={findFiberByHostInstance:sr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},tw={bundleType:wo.bundleType,version:wo.version,rendererPackageName:wo.rendererPackageName,rendererConfig:wo.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=vd(e),e===null?null:e.stateNode},findFiberByHostInstance:wo.findFiberByHostInstance||Xy,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 Gs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Gs.isDisabled&&Gs.supportsFiber)try{qo=Gs.inject(tw),Qt=Gs}catch{}}return xt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ew,xt.createPortal=function(e,n){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!vu(n))throw Error(i(200));return Zy(e,n,null,o)},xt.createRoot=function(e,n){if(!vu(e))throw Error(i(299));var o=!1,s="",l=Wh;return n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),n=hu(e,1,!1,null,null,o,!1,s,l),e[cn]=n.current,to(e.nodeType===8?e.parentNode:e),new mu(n)},xt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=vd(n),e=e===null?null:e.stateNode,e},xt.flushSync=function(e){return pr(e)},xt.hydrate=function(e,n,o){if(!Ks(n))throw Error(i(200));return Qs(null,e,n,!0,o)},xt.hydrateRoot=function(e,n,o){if(!vu(e))throw Error(i(405));var s=o!=null&&o.hydratedSources||null,l=!1,c="",p=Wh;if(o!=null&&(o.unstable_strictMode===!0&&(l=!0),o.identifierPrefix!==void 0&&(c=o.identifierPrefix),o.onRecoverableError!==void 0&&(p=o.onRecoverableError)),n=Bh(n,null,e,1,o??null,l,!1,c,p),e[cn]=n.current,to(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)},xt.render=function(e,n,o){if(!Ks(n))throw Error(i(200));return Qs(null,e,n,!1,o)},xt.unmountComponentAtNode=function(e){if(!Ks(e))throw Error(i(40));return e._reactRootContainer?(pr(function(){Qs(null,null,e,!1,function(){e._reactRootContainer=null,e[cn]=null})}),!0):!1},xt.unstable_batchedUpdates=au,xt.unstable_renderSubtreeIntoContainer=function(e,n,o,s){if(!Ks(o))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return Qs(e,n,o,!1,s)},xt.version="18.3.1-next-f1338f8080-20240426",xt}var tp;function mw(){if(tp)return Su.exports;tp=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(),Su.exports=pw(),Su.exports}var np;function vw(){if(np)return Zs;np=1;var t=mw();return Zs.createRoot=t.createRoot,Zs.hydrateRoot=t.hydrateRoot,Zs}var gw=vw(),Ii=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},xr,Kn,yi,Yp,yw=(Yp=class extends Ii{constructor(){super();te(this,xr);te(this,Kn);te(this,yi);q(this,yi,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,yi))}onUnsubscribe(){var r;this.hasListeners()||((r=S(this,Kn))==null||r.call(this),q(this,Kn,void 0))}setEventListener(r){var i;q(this,yi,r),(i=S(this,Kn))==null||i.call(this),q(this,Kn,r(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(r){S(this,xr)!==r&&(q(this,xr,r),this.onFocus())}onFocus(){const r=this.isFocused();this.listeners.forEach(i=>{i(r)})}isFocused(){var r;return typeof S(this,xr)=="boolean"?S(this,xr):((r=globalThis.document)==null?void 0:r.visibilityState)!=="hidden"}},xr=new WeakMap,Kn=new WeakMap,yi=new WeakMap,Yp),vc=new yw,ww={setTimeout:(t,r)=>setTimeout(t,r),clearTimeout:t=>clearTimeout(t),setInterval:(t,r)=>setInterval(t,r),clearInterval:t=>clearInterval(t)},Qn,pc,Zp,xw=(Zp=class{constructor(){te(this,Qn,ww);te(this,pc,!1)}setTimeoutProvider(t){q(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,pc=new WeakMap,Zp),wr=new xw;function Sw(t){setTimeout(t,0)}var kw=typeof window>"u"||"Deno"in globalThis;function pt(){}function Cw(t,r){return typeof t=="function"?t(r):t}function Au(t){return typeof t=="number"&&t>=0&&t!==1/0}function am(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 rp(t,r){const{type:i="all",exact:a,fetchStatus:u,predicate:d,queryKey:m,stale:v}=t;if(m){if(a){if(r.queryHash!==gc(m,r.options))return!1}else if(!_o(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 ip(t,r){const{exact:i,status:a,predicate:u,mutationKey:d}=t;if(d){if(!r.options.mutationKey)return!1;if(i){if(Ir(r.options.mutationKey)!==Ir(d))return!1}else if(!_o(r.options.mutationKey,d))return!1}return!(a&&r.state.status!==a||u&&!u(r))}function gc(t,r){return((r==null?void 0:r.queryKeyHashFn)||Ir)(t)}function Ir(t){return JSON.stringify(t,(r,i)=>Du(i)?Object.keys(i).sort().reduce((a,u)=>(a[u]=i[u],a),{}):i)}function _o(t,r){return t===r?!0:typeof t!=typeof r?!1:t&&r&&typeof t=="object"&&typeof r=="object"?Object.keys(r).every(i=>_o(t[i],r[i])):!1}var _w=Object.prototype.hasOwnProperty;function lm(t,r,i=0){if(t===r)return t;if(i>500)return r;const a=op(t)&&op(r);if(!a&&!(Du(t)&&Du(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 w=0;w<v;w++){const x=a?w:m[w],C=t[x],N=r[x];if(C===N){g[x]=C,(a?w<d:_w.call(t,x))&&h++;continue}if(C===null||N===null||typeof C!="object"||typeof N!="object"){g[x]=N;continue}const L=lm(C,N,i+1);g[x]=L,L===C&&h++}return d===v&&h===d?t:g}function fa(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 op(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Du(t){if(!sp(t))return!1;const r=t.constructor;if(r===void 0)return!0;const i=r.prototype;return!(!sp(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function sp(t){return Object.prototype.toString.call(t)==="[object Object]"}function Ew(t){return new Promise(r=>{wr.setTimeout(r,t)})}function Fu(t,r,i){return typeof i.structuralSharing=="function"?i.structuralSharing(t,r):i.structuralSharing!==!1?lm(t,r):r}function Pw(t,r,i=0){const a=[...t,r];return i&&a.length>i?a.slice(1):a}function bw(t,r,i=0){const a=[r,...t];return i&&a.length>i?a.slice(0,-1):a}var yc=Symbol();function um(t,r){return!t.queryFn&&(r!=null&&r.initialPromise)?()=>r.initialPromise:!t.queryFn||t.queryFn===yc?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function wc(t,r){return typeof t=="function"?t(...r):!!t}function jw(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 Eo=(()=>{let t=()=>kw;return{isServer(){return t()},setIsServer(r){t=r}}})();function $u(){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 Tw=Sw;function Rw(){let t=[],r=0,i=v=>{v()},a=v=>{v()},u=Tw;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 Ve=Rw(),wi,Gn,xi,Xp,Nw=(Xp=class extends Ii{constructor(){super();te(this,wi,!0);te(this,Gn);te(this,xi);q(this,xi,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,xi))}onUnsubscribe(){var r;this.hasListeners()||((r=S(this,Gn))==null||r.call(this),q(this,Gn,void 0))}setEventListener(r){var i;q(this,xi,r),(i=S(this,Gn))==null||i.call(this),q(this,Gn,r(this.setOnline.bind(this)))}setOnline(r){S(this,wi)!==r&&(q(this,wi,r),this.listeners.forEach(a=>{a(r)}))}isOnline(){return S(this,wi)}},wi=new WeakMap,Gn=new WeakMap,xi=new WeakMap,Xp),ha=new Nw;function Iw(t){return Math.min(1e3*2**t,3e4)}function cm(t){return(t??"online")==="online"?ha.isOnline():!0}var zu=class extends Error{constructor(t){super("CancelledError"),this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}};function dm(t){let r=!1,i=0,a;const u=$u(),d=()=>u.status!=="pending",m=E=>{var I;if(!d()){const D=new zu(E);C(D),(I=t.onCancel)==null||I.call(t,D)}},v=()=>{r=!0},g=()=>{r=!1},h=()=>vc.isFocused()&&(t.networkMode==="always"||ha.isOnline())&&t.canRun(),w=()=>cm(t.networkMode)&&t.canRun(),x=E=>{d()||(a==null||a(),u.resolve(E))},C=E=>{d()||(a==null||a(),u.reject(E))},N=()=>new Promise(E=>{var I;a=D=>{(d()||h())&&E(D)},(I=t.onPause)==null||I.call(t)}).then(()=>{var E;a=void 0,d()||(E=t.onContinue)==null||E.call(t)}),L=()=>{if(d())return;let E;const I=i===0?t.initialPromise:void 0;try{E=I??t.fn()}catch(D){E=Promise.reject(D)}Promise.resolve(E).then(x).catch(D=>{var V;if(d())return;const B=t.retry??(Eo.isServer()?0:3),b=t.retryDelay??Iw,T=typeof b=="function"?b(i,D):b,A=B===!0||typeof B=="number"&&i<B||typeof B=="function"&&B(i,D);if(r||!A){C(D);return}i++,(V=t.onFail)==null||V.call(t,i,D),Ew(T).then(()=>h()?void 0:N()).then(()=>{r?C(D):L()})})};return{promise:u,status:()=>u.status,cancel:m,continue:()=>(a==null||a(),u),cancelRetry:v,continueRetry:g,canStart:w,start:()=>(w()?L():N().then(L),u)}}var Sr,Jp,fm=(Jp=class{constructor(){te(this,Sr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Au(this.gcTime)&&q(this,Sr,wr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Eo.isServer()?1/0:300*1e3))}clearGcTimeout(){S(this,Sr)!==void 0&&(wr.clearTimeout(S(this,Sr)),q(this,Sr,void 0))}},Sr=new WeakMap,Jp),kr,Si,At,Cr,Ze,Oo,_r,jt,hm,yn,em,Mw=(em=class extends fm{constructor(r){super();te(this,jt);te(this,kr);te(this,Si);te(this,At);te(this,Cr);te(this,Ze);te(this,Oo);te(this,_r);q(this,_r,!1),q(this,Oo,r.defaultOptions),this.setOptions(r.options),this.observers=[],q(this,Cr,r.client),q(this,At,S(this,Cr).getQueryCache()),this.queryKey=r.queryKey,this.queryHash=r.queryHash,q(this,kr,lp(this.options)),this.state=r.state??S(this,kr),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var r;return(r=S(this,Ze))==null?void 0:r.promise}setOptions(r){if(this.options={...S(this,Oo),...r},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=lp(this.options);i.data!==void 0&&(this.setState(ap(i.data,i.dataUpdatedAt)),q(this,kr,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,At).remove(this)}setData(r,i){const a=Fu(this.state.data,r,this.options);return ue(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){ue(this,jt,yn).call(this,{type:"setState",state:r,setStateOptions:i})}cancel(r){var a,u;const i=(a=S(this,Ze))==null?void 0:a.promise;return(u=S(this,Ze))==null||u.cancel(r),i?i.then(pt).catch(pt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return S(this,kr)}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===yc||!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:!am(this.state.dataUpdatedAt,r)}onFocus(){var i;const r=this.observers.find(a=>a.shouldFetchOnWindowFocus());r==null||r.refetch({cancelRefetch:!1}),(i=S(this,Ze))==null||i.continue()}onOnline(){var i;const r=this.observers.find(a=>a.shouldFetchOnReconnect());r==null||r.refetch({cancelRefetch:!1}),(i=S(this,Ze))==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,Ze)&&(S(this,_r)||ue(this,jt,hm).call(this)?S(this,Ze).cancel({revert:!0}):S(this,Ze).cancelRetry()),this.scheduleGc()),S(this,At).notify({type:"observerRemoved",query:this,observer:r}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ue(this,jt,yn).call(this,{type:"invalidate"})}async fetch(r,i){var g,h,w,x,C,N,L,E,I,D,B,b;if(this.state.fetchStatus!=="idle"&&((g=S(this,Ze))==null?void 0:g.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(S(this,Ze))return S(this,Ze).continueRetry(),S(this,Ze).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:()=>(q(this,_r,!0),a.signal)})},d=()=>{const T=um(this.options,i),V=(()=>{const oe={client:S(this,Cr),queryKey:this.queryKey,meta:this.meta};return u(oe),oe})();return q(this,_r,!1),this.options.persister?this.options.persister(T,V,this):T(V)},v=(()=>{const T={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:S(this,Cr),state:this.state,fetchFn:d};return u(T),T})();(h=this.options.behavior)==null||h.onFetch(v,this),q(this,Si,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((w=v.fetchOptions)==null?void 0:w.meta))&&ue(this,jt,yn).call(this,{type:"fetch",meta:(x=v.fetchOptions)==null?void 0:x.meta}),q(this,Ze,dm({initialPromise:i==null?void 0:i.initialPromise,fn:v.fetchFn,onCancel:T=>{T instanceof zu&&T.revert&&this.setState({...S(this,Si),fetchStatus:"idle"}),a.abort()},onFail:(T,A)=>{ue(this,jt,yn).call(this,{type:"failed",failureCount:T,error:A})},onPause:()=>{ue(this,jt,yn).call(this,{type:"pause"})},onContinue:()=>{ue(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,Ze).start();if(T===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(T),(N=(C=S(this,At).config).onSuccess)==null||N.call(C,T,this),(E=(L=S(this,At).config).onSettled)==null||E.call(L,T,this.state.error,this),T}catch(T){if(T instanceof zu){if(T.silent)return S(this,Ze).promise;if(T.revert){if(this.state.data===void 0)throw T;return this.state.data}}throw ue(this,jt,yn).call(this,{type:"error",error:T}),(D=(I=S(this,At).config).onError)==null||D.call(I,T,this),(b=(B=S(this,At).config).onSettled)==null||b.call(B,this.state.data,T,this),T}finally{this.scheduleGc()}}},kr=new WeakMap,Si=new WeakMap,At=new WeakMap,Cr=new WeakMap,Ze=new WeakMap,Oo=new WeakMap,_r=new WeakMap,jt=new WeakSet,hm=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,...pm(a.data,this.options),fetchMeta:r.meta??null};case"success":const u={...a,...ap(r.data,r.dataUpdatedAt),dataUpdateCount:a.dataUpdateCount+1,...!r.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return q(this,Si,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),Ve.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),S(this,At).notify({query:this,type:"updated",action:r})})},em);function pm(t,r){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:cm(r.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function ap(t,r){return{data:t,dataUpdatedAt:r??Date.now(),error:null,isInvalidated:!1,status:"success"}}function lp(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 kt,me,Lo,ht,Er,ki,xn,Yn,Ao,Ci,_i,Pr,br,Zn,Ei,Se,Co,Uu,Bu,Hu,Wu,Vu,qu,Ku,mm,tm,Ow=(tm=class extends Ii{constructor(r,i){super();te(this,Se);te(this,kt);te(this,me);te(this,Lo);te(this,ht);te(this,Er);te(this,ki);te(this,xn);te(this,Yn);te(this,Ao);te(this,Ci);te(this,_i);te(this,Pr);te(this,br);te(this,Zn);te(this,Ei,new Set);this.options=i,q(this,kt,r),q(this,Yn,null),q(this,xn,$u()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(S(this,me).addObserver(this),up(S(this,me),this.options)?ue(this,Se,Co).call(this):this.updateResult(),ue(this,Se,Wu).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Qu(S(this,me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Qu(S(this,me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ue(this,Se,Vu).call(this),ue(this,Se,qu).call(this),S(this,me).removeObserver(this)}setOptions(r){const i=this.options,a=S(this,me);if(this.options=S(this,kt).defaultQueryOptions(r),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dt(this.options.enabled,S(this,me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ue(this,Se,Ku).call(this),S(this,me).setOptions(this.options),i._defaulted&&!fa(this.options,i)&&S(this,kt).getQueryCache().notify({type:"observerOptionsUpdated",query:S(this,me),observer:this});const u=this.hasListeners();u&&cp(S(this,me),a,this.options,i)&&ue(this,Se,Co).call(this),this.updateResult(),u&&(S(this,me)!==a||Dt(this.options.enabled,S(this,me))!==Dt(i.enabled,S(this,me))||nr(this.options.staleTime,S(this,me))!==nr(i.staleTime,S(this,me)))&&ue(this,Se,Uu).call(this);const d=ue(this,Se,Bu).call(this);u&&(S(this,me)!==a||Dt(this.options.enabled,S(this,me))!==Dt(i.enabled,S(this,me))||d!==S(this,Zn))&&ue(this,Se,Hu).call(this,d)}getOptimisticResult(r){const i=S(this,kt).getQueryCache().build(S(this,kt),r),a=this.createResult(i,r);return Aw(this,a)&&(q(this,ht,a),q(this,ki,this.options),q(this,Er,S(this,me).state)),a}getCurrentResult(){return S(this,ht)}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,Ei).add(r)}getCurrentQuery(){return S(this,me)}refetch({...r}={}){return this.fetch({...r})}fetchOptimistic(r){const i=S(this,kt).defaultQueryOptions(r),a=S(this,kt).getQueryCache().build(S(this,kt),i);return a.fetch().then(()=>this.createResult(a,i))}fetch(r){return ue(this,Se,Co).call(this,{...r,cancelRefetch:r.cancelRefetch??!0}).then(()=>(this.updateResult(),S(this,ht)))}createResult(r,i){var se;const a=S(this,me),u=this.options,d=S(this,ht),m=S(this,Er),v=S(this,ki),h=r!==a?r.state:S(this,Lo),{state:w}=r;let x={...w},C=!1,N;if(i._optimisticResults){const ce=this.hasListeners(),Z=!ce&&up(r,i),Te=ce&&cp(r,a,i,u);(Z||Te)&&(x={...x,...pm(w.data,r.options)}),i._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:L,errorUpdatedAt:E,status:I}=x;N=x.data;let D=!1;if(i.placeholderData!==void 0&&N===void 0&&I==="pending"){let ce;d!=null&&d.isPlaceholderData&&i.placeholderData===(v==null?void 0:v.placeholderData)?(ce=d.data,D=!0):ce=typeof i.placeholderData=="function"?i.placeholderData((se=S(this,_i))==null?void 0:se.state.data,S(this,_i)):i.placeholderData,ce!==void 0&&(I="success",N=Fu(d==null?void 0:d.data,ce,i),C=!0)}if(i.select&&N!==void 0&&!D)if(d&&N===(m==null?void 0:m.data)&&i.select===S(this,Ao))N=S(this,Ci);else try{q(this,Ao,i.select),N=i.select(N),N=Fu(d==null?void 0:d.data,N,i),q(this,Ci,N),q(this,Yn,null)}catch(ce){q(this,Yn,ce)}S(this,Yn)&&(L=S(this,Yn),N=S(this,Ci),E=Date.now(),I="error");const B=x.fetchStatus==="fetching",b=I==="pending",T=I==="error",A=b&&B,V=N!==void 0,ee={status:I,fetchStatus:x.fetchStatus,isPending:b,isSuccess:I==="success",isError:T,isInitialLoading:A,isLoading:A,data:N,dataUpdatedAt:x.dataUpdatedAt,error:L,errorUpdatedAt:E,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:r.isFetched(),isFetchedAfterMount:x.dataUpdateCount>h.dataUpdateCount||x.errorUpdateCount>h.errorUpdateCount,isFetching:B,isRefetching:B&&!b,isLoadingError:T&&!V,isPaused:x.fetchStatus==="paused",isPlaceholderData:C,isRefetchError:T&&V,isStale:xc(r,i),refetch:this.refetch,promise:S(this,xn),isEnabled:Dt(i.enabled,r)!==!1};if(this.options.experimental_prefetchInRender){const ce=ee.data!==void 0,Z=ee.status==="error"&&!ce,Te=Ke=>{Z?Ke.reject(ee.error):ce&&Ke.resolve(ee.data)},Be=()=>{const Ke=q(this,xn,ee.promise=$u());Te(Ke)},qe=S(this,xn);switch(qe.status){case"pending":r.queryHash===a.queryHash&&Te(qe);break;case"fulfilled":(Z||ee.data!==qe.value)&&Be();break;case"rejected":(!Z||ee.error!==qe.reason)&&Be();break}}return ee}updateResult(){const r=S(this,ht),i=this.createResult(S(this,me),this.options);if(q(this,Er,S(this,me).state),q(this,ki,this.options),S(this,Er).data!==void 0&&q(this,_i,S(this,me)),fa(i,r))return;q(this,ht,i);const a=()=>{if(!r)return!0;const{notifyOnChangeProps:u}=this.options,d=typeof u=="function"?u():u;if(d==="all"||!d&&!S(this,Ei).size)return!0;const m=new Set(d??S(this,Ei));return this.options.throwOnError&&m.add("error"),Object.keys(S(this,ht)).some(v=>{const g=v;return S(this,ht)[g]!==r[g]&&m.has(g)})};ue(this,Se,mm).call(this,{listeners:a()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ue(this,Se,Wu).call(this)}},kt=new WeakMap,me=new WeakMap,Lo=new WeakMap,ht=new WeakMap,Er=new WeakMap,ki=new WeakMap,xn=new WeakMap,Yn=new WeakMap,Ao=new WeakMap,Ci=new WeakMap,_i=new WeakMap,Pr=new WeakMap,br=new WeakMap,Zn=new WeakMap,Ei=new WeakMap,Se=new WeakSet,Co=function(r){ue(this,Se,Ku).call(this);let i=S(this,me).fetch(this.options,r);return r!=null&&r.throwOnError||(i=i.catch(pt)),i},Uu=function(){ue(this,Se,Vu).call(this);const r=nr(this.options.staleTime,S(this,me));if(Eo.isServer()||S(this,ht).isStale||!Au(r))return;const a=am(S(this,ht).dataUpdatedAt,r)+1;q(this,Pr,wr.setTimeout(()=>{S(this,ht).isStale||this.updateResult()},a))},Bu=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(S(this,me)):this.options.refetchInterval)??!1},Hu=function(r){ue(this,Se,qu).call(this),q(this,Zn,r),!(Eo.isServer()||Dt(this.options.enabled,S(this,me))===!1||!Au(S(this,Zn))||S(this,Zn)===0)&&q(this,br,wr.setInterval(()=>{(this.options.refetchIntervalInBackground||vc.isFocused())&&ue(this,Se,Co).call(this)},S(this,Zn)))},Wu=function(){ue(this,Se,Uu).call(this),ue(this,Se,Hu).call(this,ue(this,Se,Bu).call(this))},Vu=function(){S(this,Pr)!==void 0&&(wr.clearTimeout(S(this,Pr)),q(this,Pr,void 0))},qu=function(){S(this,br)!==void 0&&(wr.clearInterval(S(this,br)),q(this,br,void 0))},Ku=function(){const r=S(this,kt).getQueryCache().build(S(this,kt),this.options);if(r===S(this,me))return;const i=S(this,me);q(this,me,r),q(this,Lo,r.state),this.hasListeners()&&(i==null||i.removeObserver(this),r.addObserver(this))},mm=function(r){Ve.batch(()=>{r.listeners&&this.listeners.forEach(i=>{i(S(this,ht))}),S(this,kt).getQueryCache().notify({query:S(this,me),type:"observerResultsUpdated"})})},tm);function Lw(t,r){return Dt(r.enabled,t)!==!1&&t.state.data===void 0&&!(t.state.status==="error"&&r.retryOnMount===!1)}function up(t,r){return Lw(t,r)||t.state.data!==void 0&&Qu(t,r,r.refetchOnMount)}function Qu(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&&xc(t,r)}return!1}function cp(t,r,i,a){return(t!==r||Dt(a.enabled,t)===!1)&&(!i.suspense||t.state.status!=="error")&&xc(t,i)}function xc(t,r){return Dt(r.enabled,t)!==!1&&t.isStaleByTime(nr(r.staleTime,t))}function Aw(t,r){return!fa(t.getCurrentResult(),r)}function dp(t){return{onFetch:(r,i)=>{var w,x,C,N,L;const a=r.options,u=(C=(x=(w=r.fetchOptions)==null?void 0:w.meta)==null?void 0:x.fetchMore)==null?void 0:C.direction,d=((N=r.state.data)==null?void 0:N.pages)||[],m=((L=r.state.data)==null?void 0:L.pageParams)||[];let v={pages:[],pageParams:[]},g=0;const h=async()=>{let E=!1;const I=b=>{jw(b,()=>r.signal,()=>E=!0)},D=um(r.options,r.fetchOptions),B=async(b,T,A)=>{if(E)return Promise.reject();if(T==null&&b.pages.length)return Promise.resolve(b);const oe=(()=>{const Z={client:r.client,queryKey:r.queryKey,pageParam:T,direction:A?"backward":"forward",meta:r.options.meta};return I(Z),Z})(),ee=await D(oe),{maxPages:se}=r.options,ce=A?bw:Pw;return{pages:ce(b.pages,ee,se),pageParams:ce(b.pageParams,T,se)}};if(u&&d.length){const b=u==="backward",T=b?vm:Gu,A={pages:d,pageParams:m},V=T(a,A);v=await B(A,V,b)}else{const b=t??d.length;do{const T=g===0?m[0]??a.initialPageParam:Gu(a,v);if(g>0&&T==null)break;v=await B(v,T),g++}while(g<b)}return v};r.options.persister?r.fetchFn=()=>{var E,I;return(I=(E=r.options).persister)==null?void 0:I.call(E,h,{client:r.client,queryKey:r.queryKey,meta:r.options.meta,signal:r.signal},i)}:r.fetchFn=h}}}function Gu(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 vm(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 uk(t,r){return r?Gu(t,r)!=null:!1}function ck(t,r){return!r||!t.getPreviousPageParam?!1:vm(t,r)!=null}var Do,en,at,jr,tn,qn,nm,Dw=(nm=class extends fm{constructor(r){super();te(this,tn);te(this,Do);te(this,en);te(this,at);te(this,jr);q(this,Do,r.client),this.mutationId=r.mutationId,q(this,at,r.mutationCache),q(this,en,[]),this.state=r.state||gm(),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,at).notify({type:"observerAdded",mutation:this,observer:r}))}removeObserver(r){q(this,en,S(this,en).filter(i=>i!==r)),this.scheduleGc(),S(this,at).notify({type:"observerRemoved",mutation:this,observer:r})}optionalRemove(){S(this,en).length||(this.state.status==="pending"?this.scheduleGc():S(this,at).remove(this))}continue(){var r;return((r=S(this,jr))==null?void 0:r.continue())??this.execute(this.state.variables)}async execute(r){var m,v,g,h,w,x,C,N,L,E,I,D,B,b,T,A,V,oe;const i=()=>{ue(this,tn,qn).call(this,{type:"continue"})},a={client:S(this,Do),meta:this.options.meta,mutationKey:this.options.mutationKey};q(this,jr,dm({fn:()=>this.options.mutationFn?this.options.mutationFn(r,a):Promise.reject(new Error("No mutationFn found")),onFail:(ee,se)=>{ue(this,tn,qn).call(this,{type:"failed",failureCount:ee,error:se})},onPause:()=>{ue(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,at).canRun(this)}));const u=this.state.status==="pending",d=!S(this,jr).canStart();try{if(u)i();else{ue(this,tn,qn).call(this,{type:"pending",variables:r,isPaused:d}),S(this,at).config.onMutate&&await S(this,at).config.onMutate(r,this,a);const se=await((v=(m=this.options).onMutate)==null?void 0:v.call(m,r,a));se!==this.state.context&&ue(this,tn,qn).call(this,{type:"pending",context:se,variables:r,isPaused:d})}const ee=await S(this,jr).start();return await((h=(g=S(this,at).config).onSuccess)==null?void 0:h.call(g,ee,r,this.state.context,this,a)),await((x=(w=this.options).onSuccess)==null?void 0:x.call(w,ee,r,this.state.context,a)),await((N=(C=S(this,at).config).onSettled)==null?void 0:N.call(C,ee,null,this.state.variables,this.state.context,this,a)),await((E=(L=this.options).onSettled)==null?void 0:E.call(L,ee,null,r,this.state.context,a)),ue(this,tn,qn).call(this,{type:"success",data:ee}),ee}catch(ee){try{await((D=(I=S(this,at).config).onError)==null?void 0:D.call(I,ee,r,this.state.context,this,a))}catch(se){Promise.reject(se)}try{await((b=(B=this.options).onError)==null?void 0:b.call(B,ee,r,this.state.context,a))}catch(se){Promise.reject(se)}try{await((A=(T=S(this,at).config).onSettled)==null?void 0:A.call(T,void 0,ee,this.state.variables,this.state.context,this,a))}catch(se){Promise.reject(se)}try{await((oe=(V=this.options).onSettled)==null?void 0:oe.call(V,void 0,ee,r,this.state.context,a))}catch(se){Promise.reject(se)}throw ue(this,tn,qn).call(this,{type:"error",error:ee}),ee}finally{S(this,at).runNext(this)}}},Do=new WeakMap,en=new WeakMap,at=new WeakMap,jr=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),Ve.batch(()=>{S(this,en).forEach(a=>{a.onMutationUpdate(r)}),S(this,at).notify({mutation:this,type:"updated",action:r})})},nm);function gm(){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,Fo,rm,Fw=(rm=class extends Ii{constructor(r={}){super();te(this,Sn);te(this,qt);te(this,Fo);this.config=r,q(this,Sn,new Set),q(this,qt,new Map),q(this,Fo,0)}build(r,i,a){const u=new Dw({client:r,mutationCache:this,mutationId:++Ys(this,Fo)._,options:r.defaultMutationOptions(i),state:a});return this.add(u),u}add(r){S(this,Sn).add(r);const i=Xs(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=Xs(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=Xs(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=Xs(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(){Ve.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=>ip(i,a))}findAll(r={}){return this.getAll().filter(i=>ip(r,i))}notify(r){Ve.batch(()=>{this.listeners.forEach(i=>{i(r)})})}resumePausedMutations(){const r=this.getAll().filter(i=>i.state.isPaused);return Ve.batch(()=>Promise.all(r.map(i=>i.continue().catch(pt))))}},Sn=new WeakMap,qt=new WeakMap,Fo=new WeakMap,rm);function Xs(t){var r;return(r=t.options.scope)==null?void 0:r.id}var kn,Xn,Ct,Cn,En,aa,Yu,im,$w=(im=class extends Ii{constructor(i,a){super();te(this,En);te(this,kn);te(this,Xn);te(this,Ct);te(this,Cn);q(this,kn,i),this.setOptions(a),this.bindMethods(),ue(this,En,aa).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),fa(this.options,a)||S(this,kn).getMutationCache().notify({type:"observerOptionsUpdated",mutation:S(this,Ct),observer:this}),a!=null&&a.mutationKey&&this.options.mutationKey&&Ir(a.mutationKey)!==Ir(this.options.mutationKey)?this.reset():((u=S(this,Ct))==null?void 0:u.state.status)==="pending"&&S(this,Ct).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=S(this,Ct))==null||i.removeObserver(this)}onMutationUpdate(i){ue(this,En,aa).call(this),ue(this,En,Yu).call(this,i)}getCurrentResult(){return S(this,Xn)}reset(){var i;(i=S(this,Ct))==null||i.removeObserver(this),q(this,Ct,void 0),ue(this,En,aa).call(this),ue(this,En,Yu).call(this)}mutate(i,a){var u;return q(this,Cn,a),(u=S(this,Ct))==null||u.removeObserver(this),q(this,Ct,S(this,kn).getMutationCache().build(S(this,kn),this.options)),S(this,Ct).addObserver(this),S(this,Ct).execute(i)}},kn=new WeakMap,Xn=new WeakMap,Ct=new WeakMap,Cn=new WeakMap,En=new WeakSet,aa=function(){var a;const i=((a=S(this,Ct))==null?void 0:a.state)??gm();q(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})},Yu=function(i){Ve.batch(()=>{var a,u,d,m,v,g,h,w;if(S(this,Cn)&&this.hasListeners()){const x=S(this,Xn).variables,C=S(this,Xn).context,N={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,N)}catch(L){Promise.reject(L)}try{(m=(d=S(this,Cn)).onSettled)==null||m.call(d,i.data,null,x,C,N)}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,N)}catch(L){Promise.reject(L)}try{(w=(h=S(this,Cn)).onSettled)==null||w.call(h,void 0,i.error,x,C,N)}catch(L){Promise.reject(L)}}}this.listeners.forEach(x=>{x(S(this,Xn))})})},im),nn,om,zw=(om=class extends Ii{constructor(r={}){super();te(this,nn);this.config=r,q(this,nn,new Map)}build(r,i,a){const u=i.queryKey,d=i.queryHash??gc(u,i);let m=this.get(d);return m||(m=new Mw({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(){Ve.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=>rp(i,a))}findAll(r={}){const i=this.getAll();return Object.keys(r).length>0?i.filter(a=>rp(r,a)):i}notify(r){Ve.batch(()=>{this.listeners.forEach(i=>{i(r)})})}onFocus(){Ve.batch(()=>{this.getAll().forEach(r=>{r.onFocus()})})}onOnline(){Ve.batch(()=>{this.getAll().forEach(r=>{r.onOnline()})})}},nn=new WeakMap,om),Ae,Jn,er,Pi,bi,tr,ji,Ti,sm,Uw=(sm=class{constructor(t={}){te(this,Ae);te(this,Jn);te(this,er);te(this,Pi);te(this,bi);te(this,tr);te(this,ji);te(this,Ti);q(this,Ae,t.queryCache||new zw),q(this,Jn,t.mutationCache||new Fw),q(this,er,t.defaultOptions||{}),q(this,Pi,new Map),q(this,bi,new Map),q(this,tr,0)}mount(){Ys(this,tr)._++,S(this,tr)===1&&(q(this,ji,vc.subscribe(async t=>{t&&(await this.resumePausedMutations(),S(this,Ae).onFocus())})),q(this,Ti,ha.subscribe(async t=>{t&&(await this.resumePausedMutations(),S(this,Ae).onOnline())})))}unmount(){var t,r;Ys(this,tr)._--,S(this,tr)===0&&((t=S(this,ji))==null||t.call(this),q(this,ji,void 0),(r=S(this,Ti))==null||r.call(this),q(this,Ti,void 0))}isFetching(t){return S(this,Ae).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,Ae).get(r.queryHash))==null?void 0:i.state.data}ensureQueryData(t){const r=this.defaultQueryOptions(t),i=S(this,Ae).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,Ae).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,Ae).get(a.queryHash),d=u==null?void 0:u.state.data,m=Cw(r,d);if(m!==void 0)return S(this,Ae).build(this,a).setData(m,{...i,manual:!0})}setQueriesData(t,r,i){return Ve.batch(()=>S(this,Ae).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,Ae).get(r.queryHash))==null?void 0:i.state}removeQueries(t){const r=S(this,Ae);Ve.batch(()=>{r.findAll(t).forEach(i=>{r.remove(i)})})}resetQueries(t,r){const i=S(this,Ae);return Ve.batch(()=>(i.findAll(t).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...t},r)))}cancelQueries(t,r={}){const i={revert:!0,...r},a=Ve.batch(()=>S(this,Ae).findAll(t).map(u=>u.cancel(i)));return Promise.all(a).then(pt).catch(pt)}invalidateQueries(t,r={}){return Ve.batch(()=>(S(this,Ae).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=Ve.batch(()=>S(this,Ae).findAll(t).filter(u=>!u.isDisabled()&&!u.isStatic()).map(u=>{let d=u.fetch(void 0,i);return i.throwOnError||(d=d.catch(pt)),u.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(a).then(pt)}fetchQuery(t){const r=this.defaultQueryOptions(t);r.retry===void 0&&(r.retry=!1);const i=S(this,Ae).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(pt).catch(pt)}fetchInfiniteQuery(t){return t.behavior=dp(t.pages),this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(pt).catch(pt)}ensureInfiniteQueryData(t){return t.behavior=dp(t.pages),this.ensureQueryData(t)}resumePausedMutations(){return ha.isOnline()?S(this,Jn).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,Ae)}getMutationCache(){return S(this,Jn)}getDefaultOptions(){return S(this,er)}setDefaultOptions(t){q(this,er,t)}setQueryDefaults(t,r){S(this,Pi).set(Ir(t),{queryKey:t,defaultOptions:r})}getQueryDefaults(t){const r=[...S(this,Pi).values()],i={};return r.forEach(a=>{_o(t,a.queryKey)&&Object.assign(i,a.defaultOptions)}),i}setMutationDefaults(t,r){S(this,bi).set(Ir(t),{mutationKey:t,defaultOptions:r})}getMutationDefaults(t){const r=[...S(this,bi).values()],i={};return r.forEach(a=>{_o(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=gc(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===yc&&(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,Ae).clear(),S(this,Jn).clear()}},Ae=new WeakMap,Jn=new WeakMap,er=new WeakMap,Pi=new WeakMap,bi=new WeakMap,tr=new WeakMap,ji=new WeakMap,Ti=new WeakMap,sm),ym=O.createContext(void 0),rr=t=>{const r=O.useContext(ym);if(!r)throw new Error("No QueryClient set, use QueryClientProvider to set one");return r},Bw=({client:t,children:r})=>(O.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),f.jsx(ym.Provider,{value:t,children:r})),wm=O.createContext(!1),Hw=()=>O.useContext(wm);wm.Provider;function Ww(){let t=!1;return{clearReset:()=>{t=!1},reset:()=>{t=!0},isReset:()=>t}}var Vw=O.createContext(Ww()),qw=()=>O.useContext(Vw),Kw=(t,r,i)=>{const a=i!=null&&i.state.error&&typeof t.throwOnError=="function"?wc(t.throwOnError,[i.state.error,i]):t.throwOnError;(t.suspense||t.experimental_prefetchInRender||a)&&(r.isReset()||(t.retryOnMount=!1))},Qw=t=>{O.useEffect(()=>{t.clearReset()},[t])},Gw=({result:t,errorResetBoundary:r,throwOnError:i,query:a,suspense:u})=>t.isError&&!r.isReset()&&!t.isFetching&&a&&(u&&t.data===void 0||wc(i,[t.error,a])),Yw=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))}},Zw=(t,r)=>t.isLoading&&t.isFetching&&!r,Xw=(t,r)=>(t==null?void 0:t.suspense)&&r.isPending,fp=(t,r,i)=>r.fetchOptimistic(t).catch(()=>{i.clearReset()});function Jw(t,r,i){var C,N,L,E;const a=Hw(),u=qw(),d=rr(),m=d.defaultQueryOptions(t);(N=(C=d.getDefaultOptions().queries)==null?void 0:C._experimental_beforeQuery)==null||N.call(C,m);const v=d.getQueryCache().get(m.queryHash);m._optimisticResults=a?"isRestoring":"optimistic",Yw(m),Kw(m,u,v),Qw(u);const g=!d.getQueryCache().get(m.queryHash),[h]=O.useState(()=>new r(d,m)),w=h.getOptimisticResult(m),x=!a&&t.subscribed!==!1;if(O.useSyncExternalStore(O.useCallback(I=>{const D=x?h.subscribe(Ve.batchCalls(I)):pt;return h.updateResult(),D},[h,x]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),O.useEffect(()=>{h.setOptions(m)},[m,h]),Xw(m,w))throw fp(m,h,u);if(Gw({result:w,errorResetBoundary:u,throwOnError:m.throwOnError,query:v,suspense:m.suspense}))throw w.error;if((E=(L=d.getDefaultOptions().queries)==null?void 0:L._experimental_afterQuery)==null||E.call(L,m,w),m.experimental_prefetchInRender&&!Eo.isServer()&&Zw(w,a)){const I=g?fp(m,h,u):v==null?void 0:v.promise;I==null||I.catch(pt).finally(()=>{h.updateResult()})}return m.notifyOnChangeProps?w:h.trackResult(w)}function De(t,r){return Jw(t,Ow)}function e1(t,r){const i=rr(),[a]=O.useState(()=>new $w(i,t));O.useEffect(()=>{a.setOptions(t)},[a,t]);const u=O.useSyncExternalStore(O.useCallback(m=>a.subscribe(Ve.batchCalls(m)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),d=O.useCallback((m,v)=>{a.mutate(m,v).catch(pt)},[a]);if(u.error&&wc(a.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:d,mutateAsync:u.mutate}}function lt({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 xm({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 Oe({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:w,rel:x,...C}){const N=["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:E,form:I,formAction:D,formEncType:B,formMethod:b,formNoValidate:T,formTarget:A,name:V,value:oe,...ee}=C,se=w==="_blank"?x??"noopener noreferrer":x;return f.jsx("a",{...ee,className:N,href:g,download:h,target:w,rel:se,children:L})}return f.jsx("button",{type:m,className:N,...C,children:L})}function Sc({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 t1(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 Po(){return Po=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},Po.apply(null,arguments)}var Zu="data-focus-lock",Sm="data-focus-lock-disabled",n1="data-no-focus-lock",r1="data-autofocus-inside",i1="data-no-autofocus";function _u(t,r){return typeof t=="function"?t(r):t&&(t.current=r),t}function o1(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 s1=typeof window<"u"?O.useLayoutEffect:O.useEffect,hp=new WeakMap;function km(t,r){var i=o1(null,function(a){return t.forEach(function(u){return _u(u,a)})});return s1(function(){var a=hp.get(i);if(a){var u=new Set(a),d=new Set(t),m=i.current;u.forEach(function(v){d.has(v)||_u(v,null)}),d.forEach(function(v){u.has(v)||_u(v,m)})}hp.set(i,t)},[t]),i}var Eu={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 Cm(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 a1(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 _m(t){return t}function Em(t,r){r===void 0&&(r=_m);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 w=m;m=[],w.forEach(d)},h=function(){return Promise.resolve().then(g)};h(),i={push:function(w){m.push(w),h()},filter:function(w){return m=m.filter(w),i}}}};return u}function kc(t,r){return r===void 0&&(r=_m),Em(t,r)}function Pm(t){t===void 0&&(t={});var r=Em(null);return r.options=rn({async:!0,ssr:!1},t),r}var bm=function(t){var r=t.sideCar,i=Cm(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))};bm.isSideCarExport=!0;function l1(t,r){return t.useMedium(r),bm}var jm=kc({},function(t){var r=t.target,i=t.currentTarget;return{target:r,currentTarget:i}}),Tm=kc(),u1=kc(),c1=Pm({async:!0,ssr:typeof document<"u"}),d1=O.createContext(void 0),f1=[],Cc=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),w=O.useState({}),x=w[1],C=r.children,N=r.disabled,L=N===void 0?!1:N,E=r.noFocusGuards,I=E===void 0?!1:E,D=r.persistentFocus,B=D===void 0?!1:D,b=r.crossFrame,T=b===void 0?!0:b,A=r.autoFocus,V=A===void 0?!0:A;r.allowTextSelection;var oe=r.group,ee=r.className,se=r.whiteList,ce=r.hasPositiveIndices,Z=r.shards,Te=Z===void 0?f1:Z,Be=r.as,qe=Be===void 0?"div":Be,Ke=r.lockProps,nt=Ke===void 0?{}:Ke,Re=r.sideCar,W=r.returnFocus,ne=W===void 0?!1:W,Q=r.focusOptions,P=r.onActivation,F=r.onDeactivation,le=O.useState({}),de=le[0],ve=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]),ge=O.useCallback(function(){g.current=!1,F&&F(v.current),x()},[F]),Ce=O.useCallback(function(Tt){var Kt=h.current;if(Kt){var un=(typeof Kt=="function"?Kt():Kt)||document.body,Ft=typeof ne=="function"?ne(un):ne;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)}}},[ne]),xe=O.useCallback(function(Tt){g.current&&jm.useMedium(Tt)},[]),_e=Tm.useMedium,ct=O.useCallback(function(Tt){v.current!==Tt&&(v.current=Tt,m(Tt))},[]),Lr=Po((a={},a[Sm]=L&&"disabled",a[Zu]=oe,a),nt),Mi=I!==!0,Ar=Mi&&I!=="tail",Oi=km([i,ct]),Uo=O.useMemo(function(){return{observed:v,shards:Te,enabled:!L,get active(){return g.current}}},[L,g,Te,v]);return Jt.createElement(O.Fragment,null,Mi&&[Jt.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:L?-1:0,style:Eu}),ce?Jt.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:L?-1:1,style:Eu}):null],!L&&Jt.createElement(Re,{id:de,sideCar:c1,observed:d,disabled:L,persistentFocus:B,crossFrame:T,autoFocus:V,whiteList:se,shards:Te,onActivation:ve,onDeactivation:ge,returnFocus:Ce,focusOptions:Q,noFocusGuards:I}),Jt.createElement(qe,Po({ref:Oi},Lr,{className:ee,onBlur:_e,onFocus:xe}),Jt.createElement(d1.Provider,{value:Uo},C)),Ar&&Jt.createElement("div",{"data-focus-guard":!0,tabIndex:L?-1:0,style:Eu}))});Cc.propTypes={};function Xu(t,r){return Xu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,a){return i.__proto__=a,i},Xu(t,r)}function h1(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,Xu(t,r)}function bo(t){"@babel/helpers - typeof";return bo=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},bo(t)}function p1(t,r){if(bo(t)!="object"||!t)return t;var i=t[Symbol.toPrimitive];if(i!==void 0){var a=i.call(t,r);if(bo(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}function m1(t){var r=p1(t,"string");return bo(r)=="symbol"?r:r+""}function v1(t,r,i){return(r=m1(r))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,t}function g1(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){h1(w,h);function w(){return h.apply(this,arguments)||this}w.peek=function(){return m};var x=w.prototype;return x.componentDidMount=function(){d.push(this),v()},x.componentDidUpdate=function(){v()},x.componentWillUnmount=function(){var N=d.indexOf(this);d.splice(N,1),v()},x.render=function(){return Jt.createElement(u,this.props)},w})(O.PureComponent);return v1(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},Mr=function(t){return Array.isArray(t)?t:[t]},Rm=function(t){return Array.isArray(t)?t[0]:t},y1=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"},Nm=function(t){return t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t.parentNode.host:t.parentNode},Im=function(t){return t===document||t&&t.nodeType===Node.DOCUMENT_NODE},w1=function(t){return t.hasAttribute("inert")},x1=function(t,r){return!t||Im(t)||!y1(t)&&!w1(t)&&r(Nm(t))},Mm=function(t,r){var i=t.get(r);if(i!==void 0)return i;var a=x1(r,Mm.bind(void 0,t));return t.set(r,a),a},S1=function(t,r){return t&&!Im(t)?_1(t)?r(Nm(t)):!1:!0},Om=function(t,r){var i=t.get(r);if(i!==void 0)return i;var a=S1(r,Om.bind(void 0,t));return t.set(r,a),a},Lm=function(t){return t.dataset},k1=function(t){return t.tagName==="BUTTON"},Am=function(t){return t.tagName==="INPUT"},Dm=function(t){return Am(t)&&t.type==="radio"},C1=function(t){return!((Am(t)||k1(t))&&(t.type==="hidden"||t.disabled))},_1=function(t){var r=t.getAttribute(i1);return![!0,"true",""].includes(r)},_c=function(t){var r;return!!(t&&(!((r=Lm(t))===null||r===void 0)&&r.focusGuard))},Ju=function(t){return!_c(t)},E1=function(t){return!!t},P1=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},b1=function(t){return t.tabIndex<0&&!t.hasAttribute("tabindex")?0:t.tabIndex},Ec=function(t,r,i){return ln(t).map(function(a,u){var d=b1(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(P1)},j1=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],Pc=j1.join(","),T1="".concat(Pc,", [data-focus-guard]"),Fm=function(t,r){return ln((t.shadowRoot||t).children).reduce(function(i,a){return i.concat(a.matches(r?T1:Pc)?[a]:[],Fm(a))},[])},R1=function(t,r){var i;return t instanceof HTMLIFrameElement&&(!((i=t.contentDocument)===null||i===void 0)&&i.body)?Ri([t.contentDocument.body],r):[t]},Ri=function(t,r){return t.reduce(function(i,a){var u,d=Fm(a,r),m=(u=[]).concat.apply(u,d.map(function(v){return R1(v,r)}));return i.concat(m,a.parentNode?ln(a.parentNode.querySelectorAll(Pc)).filter(function(v){return v===a}):[])},[])},N1=function(t){var r=t.querySelectorAll("[".concat(r1,"]"));return ln(r).map(function(i){return Ri([i])}).reduce(function(i,a){return i.concat(a)},[])},bc=function(t,r){return ln(t).filter(function(i){return Mm(r,i)}).filter(function(i){return C1(i)})},pp=function(t,r){return r===void 0&&(r=new Map),ln(t).filter(function(i){return Om(r,i)})},jc=function(t,r,i){return Ec(bc(Ri(t,i),r),!0,i)},jo=function(t,r){return Ec(bc(Ri(t),r),!1)},I1=function(t,r){return bc(N1(t),r)},Tr=function(t,r){return t.shadowRoot?Tr(t.shadowRoot,r):Object.getPrototypeOf(t).contains!==void 0&&Object.getPrototypeOf(t).contains.call(t,r)?!0: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?Tr(u,r):!1}return Tr(i,r)})},M1=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)})},$m=function(t){return t.parentNode?$m(t.parentNode):t},Tc=function(t){var r=Mr(t);return r.filter(Boolean).reduce(function(i,a){var u=a.getAttribute(Zu);return i.push.apply(i,u?M1(ln($m(a).querySelectorAll("[".concat(Zu,'="').concat(u,'"]:not([').concat(Sm,'="disabled"])')))):[a]),i},[])},O1=function(t){try{return t()}catch{return}},To=function(t){if(t===void 0&&(t=document),!(!t||!t.activeElement)){var r=t.activeElement;return r.shadowRoot?To(r.shadowRoot):r instanceof HTMLIFrameElement&&O1(function(){return r.contentWindow.document})?To(r.contentWindow.document):r}},L1=function(t,r){return t===r},A1=function(t,r){return!!ln(t.querySelectorAll("iframe")).some(function(i){return L1(i,r)})},zm=function(t,r){return r===void 0&&(r=To(Rm(t).ownerDocument)),!r||r.dataset&&r.dataset.focusGuard?!1:Tc(t).some(function(i){return Tr(i,r)||A1(i,r)})},D1=function(t){t===void 0&&(t=document);var r=To(t);return r?ln(t.querySelectorAll("[".concat(n1,"]"))).some(function(i){return Tr(i,r)}):!1},F1=function(t,r){return r.filter(Dm).filter(function(i){return i.name===t.name}).filter(function(i){return i.checked})[0]||t},Rc=function(t,r){return Dm(t)&&t.name?F1(t,r):t},$1=function(t){var r=new Set;return t.forEach(function(i){return r.add(Rc(i,t))}),t.filter(function(i){return r.has(i)})},mp=function(t){return t[0]&&t.length>1?Rc(t[0],t):t[0]},vp=function(t,r){return t.indexOf(Rc(r,t))},ec="NEW_FOCUS",z1=function(t,r,i,a,u){var d=t.length,m=t[0],v=t[d-1],g=_c(a);if(!(a&&t.indexOf(a)>=0)){var h=a!==void 0?i.indexOf(a):-1,w=u?i.indexOf(u):h,x=u?t.indexOf(u):-1;if(h===-1)return x!==-1?x:ec;if(x===-1)return ec;var C=h-w,N=i.indexOf(m),L=i.indexOf(v),E=$1(i),I=a!==void 0?E.indexOf(a):-1,D=u?E.indexOf(u):I,B=E.filter(function(ee){return ee.tabIndex>=0}),b=a!==void 0?B.indexOf(a):-1,T=u?B.indexOf(u):b,A=b>=0&&T>=0?T-b:D-I;if(!C&&x>=0||r.length===0)return x;var V=vp(t,r[0]),oe=vp(t,r[r.length-1]);if(h<=N&&g&&Math.abs(C)>1)return oe;if(h>=L&&g&&Math.abs(C)>1)return V;if(C&&Math.abs(A)>1)return x;if(h<=N)return oe;if(h>L)return V;if(C)return Math.abs(C)>1?x:(d+x+C)%d}},U1=function(t){return function(r){var i,a=(i=Lm(r))===null||i===void 0?void 0:i.autofocus;return r.autofocus||a!==void 0&&a!=="false"||t.indexOf(r)>=0}},gp=function(t,r,i){var a=t.map(function(d){var m=d.node;return m}),u=pp(a.filter(U1(i)));return u&&u.length?mp(u):mp(pp(r))},tc=function(t,r){return r===void 0&&(r=[]),r.push(t),t.parentNode&&tc(t.parentNode.host||t.parentNode,r),r},Pu=function(t,r){for(var i=tc(t),a=tc(r),u=0;u<i.length;u+=1){var d=i[u];if(a.indexOf(d)>=0)return d}return!1},Um=function(t,r,i){var a=Mr(t),u=Mr(r),d=a[0],m=!1;return u.filter(Boolean).forEach(function(v){m=Pu(m||v,v)||m,i.filter(Boolean).forEach(function(g){var h=Pu(d,g);h&&(!m||Tr(h,m)?m=h:m=Pu(h,m))})}),m},yp=function(t,r){return t.reduce(function(i,a){return i.concat(I1(a,r))},[])},B1=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(E1)},H1=function(t,r){var i=To(Mr(t).length>0?document:Rm(t).ownerDocument),a=Tc(t).filter(Ju),u=Um(i||t,t,a),d=new Map,m=jo(a,d),v=m.filter(function(L){var E=L.node;return Ju(E)});if(v[0]){var g=jo([u],d).map(function(L){var E=L.node;return E}),h=B1(g,v),w=h.map(function(L){var E=L.node;return E}),x=h.filter(function(L){var E=L.tabIndex;return E>=0}).map(function(L){var E=L.node;return E}),C=z1(w,x,g,i,r);if(C===ec){var N=gp(m,x,yp(a,d))||gp(m,w,yp(a,d));if(N)return{node:N};console.warn("focus-lock: cannot find any node to move focus into");return}return C===void 0?C:h[C]}},W1=function(t){var r=Tc(t).filter(Ju),i=Um(t,t,r),a=Ec(Ri([i],!0),!0,!0),u=Ri(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:_c(m)}})},Nc=function(t,r){t&&("focus"in t&&t.focus(r),"contentWindow"in t&&t.contentWindow&&t.contentWindow.focus())},bu=0,ju=!1,Bm=function(t,r,i){i===void 0&&(i={});var a=H1(t,r);if(!ju&&a){if(bu>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),ju=!0,setTimeout(function(){ju=!1},1);return}bu++,Nc(a.node,i.focusOptions),bu--}};function So(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 V1=function(t){if(!t)return null;for(var r=[],i=t;i&&i!==document.body;)r.push({current:So(i),parent:So(i.parentElement),left:So(i.previousElementSibling),right:So(i.nextElementSibling)}),i=i.parentElement;return{element:So(t),stack:r,ownerDocument:t.ownerDocument}},q1=function(t){var r,i,a,u,d;if(t)for(var m=t.stack,v=t.ownerDocument,g=new Map,h=0,w=m;h<w.length;h++){var x=w[h],C=(r=x.parent)===null||r===void 0?void 0:r.call(x);if(C&&v.contains(C)){for(var N=(i=x.left)===null||i===void 0?void 0:i.call(x),L=x.current(),E=C.contains(L)?L:void 0,I=(a=x.right)===null||a===void 0?void 0:a.call(x),D=jc([C],g),B=(d=(u=E??(N==null?void 0:N.nextElementSibling))!==null&&u!==void 0?u:I)!==null&&d!==void 0?d:N;B;){for(var b=0,T=D;b<T.length;b++){var A=T[b];if(B!=null&&B.contains(A.node))return A.node}B=B.nextElementSibling}if(D.length)return D[0].node}}},Hm=function(t){var r=V1(t);return function(){return q1(r)}},K1=function(t,r,i){if(!t||!r)return console.error("no element or scope given"),{};var a=Mr(r);if(a.every(function(m){return!Tr(m,t)}))return console.error("Active element is not contained in the scope"),{};var u=i?jc(a,new Map):jo(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]}},Q1=function(t,r){var i=r?jc(Mr(t),new Map):jo(Mr(t),new Map);return{first:i[0],last:i[i.length-1]}},G1=function(t){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},t)},Wm=function(t,r,i){r===void 0&&(r={});var a=G1(r),u=K1(t,a.scope,a.onlyTabbable);if(u){var d=i(u,a.cycle);d&&Nc(d.node,a.focusOptions)}},Y1=function(t,r){r===void 0&&(r={}),Wm(t,r,function(i,a){var u=i.next,d=i.first;return u||a&&d})},Z1=function(t,r){r===void 0&&(r={}),Wm(t,r,function(i,a){var u=i.prev,d=i.last;return u||a&&d})},Vm=function(t,r,i){var a,u=Q1(t,(a=r.onlyTabbable)!==null&&a!==void 0?a:!0),d=u[i];d&&Nc(d.node,r.focusOptions)},X1=function(t,r){r===void 0&&(r={}),Vm(t,r,"first")},J1=function(t,r){r===void 0&&(r={}),Vm(t,r,"last")};function Ic(t){setTimeout(t,1)}var e0=function(r){return r&&"current"in r?r.current:r},qm=function(){return document&&document.activeElement===document.body},t0=function(){return qm()||D1()},pi=null,St=null,wp=function(){return null},mi=null,Ro=!1,Mc=!1,n0=function(){return!0},r0=function(r){return(pi.whiteList||n0)(r)},i0=function(r,i){mi={observerNode:r,portaledElement:i}},o0=function(r){return mi&&mi.portaledElement===r};function xp(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 s0=function(r){return r?!!Ro:Ro==="meanwhile"},a0=function t(r,i,a){return i&&(i.host===r&&(!i.activeElement||a.contains(i.activeElement))||i.parentNode&&t(r,i.parentNode,a))},l0=function(r,i){return i.some(function(a){return a0(r,a,a)})},Km=function(r){return jo(r,new Map)},u0=function(r){return!Km([r.parentNode]).some(function(i){return i.node===r})},pa=function(){var r=!1;if(pi){var i=pi,a=i.observed,u=i.persistentFocus,d=i.autoFocus,m=i.shards,v=i.crossFrame,g=i.focusOptions,h=i.noFocusGuards,w=a||mi&&mi.portaledElement;if(qm()&&St&&St!==document.body&&(!document.body.contains(St)||u0(St))){var x=wp();x&&x.focus()}var C=document&&document.activeElement;if(w){var N=[w].concat(m.map(e0).filter(Boolean)),L=function(){if(!s0(v)||!h||!St||Mc)return!1;var b=Km(N),T=b.findIndex(function(A){var V=A.node;return V===St});return T===0||T===b.length-1};if((!C||r0(C))&&(u||L()||!t0()||!St&&d)&&(w&&!(zm(N)||C&&l0(C,N)||o0(C))&&(document&&!St&&C&&!d?(C.blur&&C.blur(),document.body.focus()):(r=Bm(N,St,{focusOptions:g}),mi={})),St=document&&document.activeElement,St!==document.body&&(wp=Hm(St)),Ro=!1),document&&C!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var E=document&&document.activeElement,I=W1(N),D=I.map(function(B){var b=B.node;return b}).indexOf(E);D>-1&&(I.filter(function(B){var b=B.guard,T=B.node;return b&&T.dataset.focusAutoGuard}).forEach(function(B){var b=B.node;return b.removeAttribute("tabIndex")}),xp(D,I.length,1,I),xp(D,-1,-1,I))}}}return r},Qm=function(r){pa()&&r&&(r.stopPropagation(),r.preventDefault())},Oc=function(){return Ic(pa)},c0=function(r){var i=r.target,a=r.currentTarget;a.contains(i)||i0(a,i)},d0=function(){return null},Gm=function(){Mc=!0},Ym=function(){Mc=!1,Ro="just",Ic(function(){Ro="meanwhile"})},f0=function(){document.addEventListener("focusin",Qm),document.addEventListener("focusout",Oc),window.addEventListener("focus",Gm),window.addEventListener("blur",Ym)},h0=function(){document.removeEventListener("focusin",Qm),document.removeEventListener("focusout",Oc),window.removeEventListener("focus",Gm),window.removeEventListener("blur",Ym)};function p0(t){return t.filter(function(r){var i=r.disabled;return!i})}var Zm={moveFocusInside:Bm,focusInside:zm,focusNextElement:Y1,focusPrevElement:Z1,focusFirstElement:X1,focusLastElement:J1,captureFocusRestore:Hm};function m0(t){var r=t.slice(-1)[0];r&&!pi&&f0();var i=pi,a=i&&r&&r.id===i.id;pi=r,i&&!a&&(i.onDeactivation(),t.filter(function(u){var d=u.id;return d===i.id}).length||i.returnFocus(!r)),r?(St=null,(!a||i.observed!==r.observed)&&r.onActivation(Zm),pa(),Ic(pa)):(h0(),St=null)}jm.assignSyncMedium(c0);Tm.assignMedium(Oc);u1.assignMedium(function(t){return t(Zm)});const v0=g1(p0,m0)(d0);var Lc=O.forwardRef(function(r,i){return Jt.createElement(Cc,Po({sideCar:v0,ref:i},r))}),Xm=Cc.propTypes||{};Xm.sideCar;t1(Xm,["sideCar"]);Lc.propTypes={};var la="right-scroll-bar-position",ua="width-before-scroll-bar",g0="with-scroll-bars-hidden",y0="--removed-body-scroll-bar-size",Jm=Pm(),Tu=function(){},xa=O.forwardRef(function(t,r){var i=O.useRef(null),a=O.useState({onScrollCapture:Tu,onWheelCapture:Tu,onTouchMoveCapture:Tu}),u=a[0],d=a[1],m=t.forwardProps,v=t.children,g=t.className,h=t.removeScrollBar,w=t.enabled,x=t.shards,C=t.sideCar,N=t.noRelative,L=t.noIsolation,E=t.inert,I=t.allowPinchZoom,D=t.as,B=D===void 0?"div":D,b=t.gapMode,T=Cm(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=C,V=km([i,r]),oe=rn(rn({},T),u);return O.createElement(O.Fragment,null,w&&O.createElement(A,{sideCar:Jm,removeScrollBar:h,shards:x,noRelative:N,noIsolation:L,inert:E,setCallbacks:d,allowPinchZoom:!!I,lockRef:i,gapMode:b}),m?O.cloneElement(O.Children.only(v),rn(rn({},oe),{ref:V})):O.createElement(B,rn({},oe,{className:g,ref:V}),v))});xa.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xa.classNames={fullWidth:ua,zeroRight:la};var w0=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function x0(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var r=w0();return r&&t.setAttribute("nonce",r),t}function S0(t,r){t.styleSheet?t.styleSheet.cssText=r:t.appendChild(document.createTextNode(r))}function k0(t){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(t)}var C0=function(){var t=0,r=null;return{add:function(i){t==0&&(r=x0())&&(S0(r,i),k0(r)),t++},remove:function(){t--,!t&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},_0=function(){var t=C0();return function(r,i){O.useEffect(function(){return t.add(r),function(){t.remove()}},[r&&i])}},ev=function(){var t=_0(),r=function(i){var a=i.styles,u=i.dynamic;return t(a,u),null};return r},E0={left:0,top:0,right:0,gap:0},Ru=function(t){return parseInt(t||"",10)||0},P0=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[Ru(i),Ru(a),Ru(u)]},b0=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return E0;var r=P0(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])}},j0=ev(),vi="data-scroll-locked",T0=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(g0,` {
|
|
43
|
+
overflow: hidden `).concat(a,`;
|
|
44
|
+
padding-right: `).concat(v,"px ").concat(a,`;
|
|
45
|
+
}
|
|
46
|
+
body[`).concat(vi,`] {
|
|
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(la,` {
|
|
60
|
+
right: `).concat(v,"px ").concat(a,`;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.`).concat(ua,` {
|
|
64
|
+
margin-right: `).concat(v,"px ").concat(a,`;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.`).concat(la," .").concat(la,` {
|
|
68
|
+
right: 0 `).concat(a,`;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.`).concat(ua," .").concat(ua,` {
|
|
72
|
+
margin-right: 0 `).concat(a,`;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
body[`).concat(vi,`] {
|
|
76
|
+
`).concat(y0,": ").concat(v,`px;
|
|
77
|
+
}
|
|
78
|
+
`)},Sp=function(){var t=parseInt(document.body.getAttribute(vi)||"0",10);return isFinite(t)?t:0},R0=function(){O.useEffect(function(){return document.body.setAttribute(vi,(Sp()+1).toString()),function(){var t=Sp()-1;t<=0?document.body.removeAttribute(vi):document.body.setAttribute(vi,t.toString())}},[])},N0=function(t){var r=t.noRelative,i=t.noImportant,a=t.gapMode,u=a===void 0?"margin":a;R0();var d=O.useMemo(function(){return b0(u)},[u]);return O.createElement(j0,{styles:T0(d,!r,u,i?"":"!important")})},nc=!1;if(typeof window<"u")try{var Js=Object.defineProperty({},"passive",{get:function(){return nc=!0,!0}});window.addEventListener("test",Js,Js),window.removeEventListener("test",Js,Js)}catch{nc=!1}var li=nc?{passive:!1}:!1,I0=function(t){return t.tagName==="TEXTAREA"},tv=function(t,r){if(!(t instanceof Element))return!1;var i=window.getComputedStyle(t);return i[r]!=="hidden"&&!(i.overflowY===i.overflowX&&!I0(t)&&i[r]==="visible")},M0=function(t){return tv(t,"overflowY")},O0=function(t){return tv(t,"overflowX")},kp=function(t,r){var i=r.ownerDocument,a=r;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var u=nv(t,a);if(u){var d=rv(t,a),m=d[1],v=d[2];if(m>v)return!0}a=a.parentNode}while(a&&a!==i.body);return!1},L0=function(t){var r=t.scrollTop,i=t.scrollHeight,a=t.clientHeight;return[r,i,a]},A0=function(t){var r=t.scrollLeft,i=t.scrollWidth,a=t.clientWidth;return[r,i,a]},nv=function(t,r){return t==="v"?M0(r):O0(r)},rv=function(t,r){return t==="v"?L0(r):A0(r)},D0=function(t,r){return t==="h"&&r==="rtl"?-1:1},F0=function(t,r,i,a,u){var d=D0(t,window.getComputedStyle(r).direction),m=d*a,v=i.target,g=r.contains(v),h=!1,w=m>0,x=0,C=0;do{if(!v)break;var N=rv(t,v),L=N[0],E=N[1],I=N[2],D=E-I-d*L;(L||D)&&nv(t,v)&&(x+=D,C+=L);var B=v.parentNode;v=B&&B.nodeType===Node.DOCUMENT_FRAGMENT_NODE?B.host:B}while(!g&&v!==document.body||g&&(r.contains(v)||r===v));return(w&&Math.abs(x)<1||!w&&Math.abs(C)<1)&&(h=!0),h},ea=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},Cp=function(t){return[t.deltaX,t.deltaY]},_p=function(t){return t&&"current"in t?t.current:t},$0=function(t,r){return t[0]===r[0]&&t[1]===r[1]},z0=function(t){return`
|
|
79
|
+
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
80
|
+
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
81
|
+
`)},U0=0,ui=[];function B0(t){var r=O.useRef([]),i=O.useRef([0,0]),a=O.useRef(),u=O.useState(U0++)[0],d=O.useState(ev)[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 E=a1([t.lockRef.current],(t.shards||[]).map(_p),!0).filter(Boolean);return E.forEach(function(I){return I.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),E.forEach(function(I){return I.classList.remove("allow-interactivity-".concat(u))})}}},[t.inert,t.lockRef.current,t.shards]);var v=O.useCallback(function(E,I){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!m.current.allowPinchZoom;var D=ea(E),B=i.current,b="deltaX"in E?E.deltaX:B[0]-D[0],T="deltaY"in E?E.deltaY:B[1]-D[1],A,V=E.target,oe=Math.abs(b)>Math.abs(T)?"h":"v";if("touches"in E&&oe==="h"&&V.type==="range")return!1;var ee=window.getSelection(),se=ee&&ee.anchorNode,ce=se?se===V||se.contains(V):!1;if(ce)return!1;var Z=kp(oe,V);if(!Z)return!0;if(Z?A=oe:(A=oe==="v"?"h":"v",Z=kp(oe,V)),!Z)return!1;if(!a.current&&"changedTouches"in E&&(b||T)&&(a.current=A),!A)return!0;var Te=a.current||A;return F0(Te,I,E,Te==="h"?b:T)},[]),g=O.useCallback(function(E){var I=E;if(!(!ui.length||ui[ui.length-1]!==d)){var D="deltaY"in I?Cp(I):ea(I),B=r.current.filter(function(A){return A.name===I.type&&(A.target===I.target||I.target===A.shadowParent)&&$0(A.delta,D)})[0];if(B&&B.should){I.cancelable&&I.preventDefault();return}if(!B){var b=(m.current.shards||[]).map(_p).filter(Boolean).filter(function(A){return A.contains(I.target)}),T=b.length>0?v(I,b[0]):!m.current.noIsolation;T&&I.cancelable&&I.preventDefault()}}},[]),h=O.useCallback(function(E,I,D,B){var b={name:E,delta:I,target:D,should:B,shadowParent:H0(D)};r.current.push(b),setTimeout(function(){r.current=r.current.filter(function(T){return T!==b})},1)},[]),w=O.useCallback(function(E){i.current=ea(E),a.current=void 0},[]),x=O.useCallback(function(E){h(E.type,Cp(E),E.target,v(E,t.lockRef.current))},[]),C=O.useCallback(function(E){h(E.type,ea(E),E.target,v(E,t.lockRef.current))},[]);O.useEffect(function(){return ui.push(d),t.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:C}),document.addEventListener("wheel",g,li),document.addEventListener("touchmove",g,li),document.addEventListener("touchstart",w,li),function(){ui=ui.filter(function(E){return E!==d}),document.removeEventListener("wheel",g,li),document.removeEventListener("touchmove",g,li),document.removeEventListener("touchstart",w,li)}},[]);var N=t.removeScrollBar,L=t.inert;return O.createElement(O.Fragment,null,L?O.createElement(d,{styles:z0(u)}):null,N?O.createElement(N0,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function H0(t){for(var r=null;t!==null;)t instanceof ShadowRoot&&(r=t.host,t=t.host),t=t.parentNode;return r}const W0=l1(Jm,B0);var Ac=O.forwardRef(function(t,r){return O.createElement(xa,rn({},t,{ref:r,sideCar:W0}))});Ac.classNames=xa.classNames;var iv=function(t){if(typeof document>"u")return null;var r=Array.isArray(t)?t[0]:t;return r.ownerDocument.body},ci=new WeakMap,ta=new WeakMap,na={},Nu=0,ov=function(t){return t&&(t.host||ov(t.parentNode))},V0=function(t,r){return r.map(function(i){if(t.contains(i))return i;var a=ov(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})},sv=function(t,r,i,a){var u=V0(r,Array.isArray(t)?t:[t]);na[i]||(na[i]=new WeakMap);var d=na[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 w=function(x){!x||g.has(x)||Array.prototype.forEach.call(x.children,function(C){if(v.has(C))w(C);else try{var N=C.getAttribute(a),L=N!==null&&N!=="false",E=(ci.get(C)||0)+1,I=(d.get(C)||0)+1;ci.set(C,E),d.set(C,I),m.push(C),E===1&&L&&ta.set(C,!0),I===1&&C.setAttribute(i,"true"),L||C.setAttribute(a,"true")}catch(D){console.error("aria-hidden: cannot operate on ",C,D)}})};return w(r),v.clear(),Nu++,function(){m.forEach(function(x){var C=ci.get(x)-1,N=d.get(x)-1;ci.set(x,C),d.set(x,N),C||(ta.has(x)||x.removeAttribute(a),ta.delete(x)),N||x.removeAttribute(i)}),Nu--,Nu||(ci=new WeakMap,ci=new WeakMap,ta=new WeakMap,na={})}},q0=function(t,r,i){i===void 0&&(i="data-aria-hidden");var a=Array.from(Array.isArray(t)?t:[t]),u=r||iv(t);return u?(a.push.apply(a,Array.from(u.querySelectorAll("[aria-live], script"))),sv(a,u,i,"aria-hidden")):function(){return null}},K0=function(t,r,i){i===void 0&&(i="data-inert-ed");var a=r||iv(t);return a?sv(t,a,i,"inert"):function(){return null}},Q0=function(){return typeof HTMLElement<"u"&&HTMLElement.prototype.hasOwnProperty("inert")},G0=function(t,r,i){return i===void 0&&(i="data-suppressed"),(Q0()?K0:q0)(t,r,i)};let Rr=[];const rc=new Set;function av(){rc.forEach(t=>t())}function Y0(t){Rr=Rr.filter(r=>r!==t),Rr.push(t),av()}function Z0(t){Rr=Rr.filter(r=>r!==t),av()}function Iu(t){return Rr[Rr.length-1]===t}function lv(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 w=h;u.current=document.activeElement instanceof HTMLElement?document.activeElement:null,Y0(w),m(Iu(w));function x(){m(Iu(w))}function C(N){if(!Iu(w))return;const L=N.target instanceof Element?N.target:null,E=L==null?void 0:L.closest('[role="dialog"]');E&&E!==w&&!w.contains(E)||N.key==="Escape"&&(N.preventDefault(),N.stopPropagation(),N.stopImmediatePropagation(),g())}return rc.add(x),window.addEventListener("keydown",C,!0),()=>{window.removeEventListener("keydown",C,!0),rc.delete(x),Z0(w),v()}},[g,t,r,v]),O.useEffect(()=>{var x,C;if(!t||!d)return;const h=r.current;if(!h)return;const w=((C=(x=h.parentElement)==null?void 0:x.parentElement)==null?void 0:C.querySelectorAll("[data-focus-guard]"))??[];return G0([h,...w])},[t,d,r]),{closeDialog:g,isTopDialog:d}}const X0={sm:"24rem",md:"28.75rem",lg:"35rem",xl:"52rem"};function J0(){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 uv({bodyClassName:t,children:r,className:i,closeLabel:a="Close",eyebrow:u,footer:d,isOpen:m,onClose:v,overlayClassName:g,size:h="md",subtitle:w,title:x}){const C=O.useRef(null),N=O.useId(),L=O.useId(),{closeDialog:E,isTopDialog:I}=lv(m,C,v);if(!m)return null;const D=["as-modal-overlay",g].filter(Boolean).join(" "),B=["as-modal",`as-modal--${h}`,i].filter(Boolean).join(" "),b=["as-modal__body",t].filter(Boolean).join(" "),T={"--as-modal-width":X0[h]};return f.jsx("div",{className:D,role:"presentation",onMouseDown:E,children:f.jsx(Ac,{allowPinchZoom:!0,className:"as-modal__scroll-lock",enabled:I,style:T,children:f.jsx(Lc,{autoFocus:!0,className:"as-modal__focus-lock",disabled:!I,focusOptions:{preventScroll:!0},returnFocus:!1,children:f.jsxs("div",{"aria-describedby":w?L:void 0,"aria-hidden":I?void 0:!0,"aria-labelledby":N,"aria-modal":I?"true":void 0,className:B,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:N,children:x}),w&&f.jsx("p",{className:"as-modal__subtitle",id:L,children:w})]}),f.jsx(e2,{label:a,className:"as-modal__close",onClick:E,children:f.jsx(J0,{})})]}),f.jsx("div",{className:b,children:r}),d&&f.jsx("footer",{className:"as-modal__footer",children:d})]})})})})}function e2({children:t,className:r,label:i,onClick:a}){return f.jsx("button",{type:"button",className:r,onClick:a,"aria-label":i,children:t})}function t2(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 n2({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:w,onConfirm:x,onClose:C}){return f.jsx(uv,{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(lt,{tone:"danger",title:h,children:t2(g)}):null,f.jsxs("div",{className:"as-confirm__actions",children:[f.jsx(Oe,{variant:"ghost",onClick:C,disabled:v,children:u}),f.jsx(Oe,{variant:m,onClick:x,disabled:v||w,children:v?d:a})]})]})})}function $o({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 cv(t){try{return await navigator.clipboard.writeText(t),!0}catch{return!1}}function Ep(){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 Pp(){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 Dc({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),w=O.useRef(void 0);O.useEffect(()=>()=>window.clearTimeout(w.current),[]);const x=async()=>{await cv(t)&&(h(!0),v==null||v(),window.clearTimeout(w.current),w.current=window.setTimeout(()=>h(!1),1500))};return m?f.jsx($o,{label:g?i:r,size:"sm",className:d,onClick:()=>void x(),children:g?f.jsx(Pp,{}):f.jsx(Ep,{})}):f.jsx(Oe,{variant:u,size:a,className:d,leadingIcon:g?f.jsx(Pp,{}):f.jsx(Ep,{}),"aria-live":"polite",onClick:()=>void x(),children:g?i:r})}function r2(){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 i2({backdropClassName:t,bodyClassName:r,children:i,className:a,closeLabel:u="Close",eyebrow:d,isOpen:m,onClose:v,side:g="right",subtitle:h,title:w}){const x=O.useRef(null),C=O.useId(),N=O.useId(),{closeDialog:L,isTopDialog:E}=lv(m,x,v),I=m&&E,D=["as-drawer-backdrop",m?"as-drawer-backdrop--open":null,t].filter(Boolean).join(" "),B=["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||!E)return;function T(A){const V=x.current;V&&(A.target instanceof Node&&V.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,E]),f.jsxs(f.Fragment,{children:[f.jsx("div",{"aria-hidden":!m,className:D,onClick:L}),f.jsx(Ac,{allowPinchZoom:!0,className:"as-drawer__scroll-lock",enabled:m&&E,children:f.jsx(Lc,{autoFocus:!0,className:"as-drawer__focus-lock",disabled:!m||!E,focusOptions:{preventScroll:!0},returnFocus:!1,children:f.jsxs("aside",{"aria-describedby":h?N:void 0,"aria-hidden":I?void 0:!0,"aria-labelledby":C,"aria-modal":I?"true":void 0,className:B,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:w}),h&&f.jsx("p",{className:"as-drawer__subtitle",id:N,children:h})]}),f.jsx("button",{type:"button",className:"as-drawer__close",onClick:L,"aria-label":u,children:f.jsx(r2,{})})]}),f.jsx("div",{className:b,children:i})]})})})]})}const o2=["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"],dv=["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"],fv="#10B981";function s2({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:[dv.map(i=>f.jsx("path",{d:i,fill:fv},i)),o2.map(i=>f.jsx("path",{d:i,fill:"currentColor"},i))]})}function a2({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:dv.map(i=>f.jsx("path",{d:i,fill:fv},i))})}function No({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 fk({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 hk({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(Sc,{className:"as-panel__card",children:f.jsx("div",{className:u?"as-panel__body as-panel__body--flush":"as-panel__body",children:a})})]})}function l2(t){return t!==null&&t>=1?"danger":t!==null&&t>=.8?"warning":"default"}function pk({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(Sc,{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??l2(d)}`,role:"meter","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(d*100),children:f.jsx("span",{style:{width:`${d*100}%`}})})]})}function mk({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 Ni({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(No,{height:r},a))})}function vk({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 gk({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(Dc,{value:t})]}),f.jsx("pre",{children:f.jsx("code",{children:t})})]})}function yk({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(Dc,{value:t})]}),f.jsx("p",{className:"as-secret__note",children:r})]})}function u2(t,r){return["as-field",r==="sm"?"as-field--sm":null,t].filter(Boolean).join(" ")}function c2(t,r){return["as-field__input",t,r?"as-field__input--mono":null].filter(Boolean).join(" ")}function d2({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 f2({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:u2(t,d),htmlFor:h,children:[u&&f.jsx("span",{className:"as-field__label",children:u}),f.jsx("input",{id:h,className:c2(void 0,m),"aria-invalid":r?!0:void 0,...v}),f.jsx(d2,{error:r,hint:i})]})}const hv=O.createContext(()=>{});function pv(){return O.useContext(hv)}let h2=1;function p2({children:t}){const[r,i]=O.useState([]),a=O.useCallback((u,d="success")=>{const m=h2++;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(hv.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 m2="/console/api",v2="x-antseed-console";class Sa extends Error{constructor(i,a,u,d={}){super(u);gu(this,"details");this.status=i,this.code=a,this.name="ConsoleApiError",this.details=d}}function Or(t,r){return t instanceof Sa&&(r===void 0||t.code===r)}const bp={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 ka(t){return t instanceof Sa&&Object.hasOwn(bp,t.code)?bp[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 ra(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 g2(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 Sa(t.status,r,i,a)}function y2(t=(i,a)=>fetch(i,a),r=m2){async function i(h,w,x={}){const C={accept:"application/json"};h!=="GET"&&h!=="HEAD"&&(C[v2]="1");let L;x.body!==void 0&&(C["content-type"]="application/json",L=JSON.stringify(x.body));let E;try{E=await t(`${r}${w}${ra(x.query)}`,{method:h,headers:C,body:L,credentials:"same-origin"})}catch{throw new Sa(0,"network_error","Could not reach the gateway.")}if(!E.ok)throw await g2(E);return E.status===204?void 0:(E.headers.get("content-type")??"").includes("json")?await E.json():await E.text()}const a=(h,w)=>i("GET",h,{query:w}),u=(h,w)=>i("POST",h,{body:w??{}}),d=(h,w)=>i("PATCH",h,{body:w}),m=(h,w)=>i("PUT",h,{body:w}),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,w)=>u("/auth/passkey/register/verify",{enrollment:w,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,w,x)=>u("/auth/wallet/verify",{message:h,signature:w,enrollment:x}),oidcStartUrl:h=>`${r}/auth/oidc/start${ra({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,w)=>u("/auth/reauth/wallet/verify",{message:h,signature:w}),apiKey:h=>u("/auth/api-key",{key:h}),logout:()=>u("/auth/logout")},members:{list:()=>a("/members"),update:(h,w,x)=>d(`/members/${g(h)}`,yr(w,x)),disable:h=>u(`/members/${g(h)}/disable`),enable:h=>u(`/members/${g(h)}/enable`),removeCredential:(h,w)=>v(`/members/${g(h)}/credentials/${g(w)}`)},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,w)=>u("/workspaces",yr(h,w)),update:(h,w,x)=>d(`/workspaces/${g(h)}`,yr(w,x)),remove:h=>v(`/workspaces/${g(h)}`),members:h=>a(`/workspaces/${g(h)}/members`),setMember:(h,w,x)=>m(`/workspaces/${g(h)}/members/${g(w)}`,{role:x}),removeMember:(h,w)=>v(`/workspaces/${g(h)}/members/${g(w)}`)},keys:{list:(h={})=>a("/keys",h),create:(h,w)=>u("/keys",yr(h,w)),update:(h,w,x)=>d(`/keys/${g(h)}`,yr(w,x)),rotate:h=>u(`/keys/${g(h)}/rotate`),revoke:h=>u(`/keys/${g(h)}/revoke`)},adminTokens:{list:()=>a("/admin-tokens"),create:(h,w,x)=>u("/admin-tokens",{label:h,scope:w,...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${ra(h)}`},audit:{list:h=>a("/audit",h)},wallet:{get:h=>a(`/workspaces/${g(h)}/wallet`),cardLink:(h,w,x)=>u(`/workspaces/${g(h)}/wallet/card-link`,{amountUsd:w,provider:x}),watch:(h,w)=>u(`/workspaces/${g(h)}/wallet/watch`,{mode:w}),operator:(h,w=!1)=>a(`/workspaces/${g(h)}/wallet/operator`,{fresh:w?1:void 0}),operators:()=>a("/wallet/operators"),operatorSync:(h,w)=>u(`/workspaces/${g(h)}/wallet/operator/sync`,w?{txHash:w}:{}),operatorAuth:(h,w)=>u(`/workspaces/${g(h)}/wallet/operator-auth`,{operator:w}),channels:(h,w=!1,x=!1)=>a(`/workspaces/${g(h)}/channels`,{all:w?1:void 0,fresh:x?1:void 0}),closeChannel:(h,w)=>u(`/workspaces/${g(h)}/channels/close`,{peerId:w}),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,w)=>a(`/chat/threads/${g(w)}`,{workspace:h}),deleteThread:(h,w)=>v(`/chat/threads/${g(w)}${ra({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,w)=>i("PUT","/routing",{body:h,query:{confirmEmpty:w!=null&&w.confirmEmpty?1:void 0,acceptNarrowed:w!=null&&w.acceptNarrowed?1:void 0}}),peerLists:()=>a("/peer-lists"),createPeerList:h=>u("/peer-lists",h),updatePeerList:(h,w)=>d(`/peer-lists/${g(h)}`,w),removePeerList:h=>v(`/peer-lists/${g(h)}`)},presets:{list:h=>a("/presets",{workspace:h}),create:(h,w)=>u("/presets",yr(h,w)),update:(h,w,x)=>d(`/presets/${g(h)}`,yr(w,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 mv(t){return!!t&&"ownerRoutingPolicy"in t}const fe=y2();function Ca(t){return t.orgRole==="owner"||t.orgRole==="admin"}function Fc(t){return Ca(t)||t.workspaceRole==="admin"}const $c=[{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 zc(t,r){const i=$c.find(a=>a.id===t);return i?i.access==="orgAdmin"?Ca(r):i.access==="workspaceAdmin"?Fc(r):!0:!1}function w2(t){return $c.filter(r=>zc(r.id,t))}function x2(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 Uc={owner:"Owner",admin:"Admin",member:"Member"};function S2(t,r){return r?`${t}/${encodeURIComponent(r)}`:t}function k2(t){const r=t.join("/");return r===""?null:r}function C2(t,r){return t==="network"?S2("providers",k2(r)):null}const vv=O.createContext(null);function ir(){const t=O.useContext(vv);if(!t)throw new Error("useConsole outside the console shell");return t}const gv="antseed-console-workspace";function _2(){try{return localStorage.getItem(gv)}catch{return null}}function E2(t){try{localStorage.setItem(gv,t)}catch{}}function jp(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 wk(){const{workspace:t,viewer:r,me:i}=ir();return Fc(r)?{workspace:t.id}:{workspace:t.id,member:i.member.id}}const ic="antseed-console-theme";function yv(){try{const t=localStorage.getItem(ic);return t==="light"||t==="dark"?t:"system"}catch{return"system"}}function P2(){const t=yv();t!=="system"&&(document.documentElement.dataset.theme=t)}function b2(){const[t,r]=O.useState(yv);return O.useEffect(()=>{t==="system"?delete document.documentElement.dataset.theme:document.documentElement.dataset.theme=t;try{t==="system"?localStorage.removeItem(ic):localStorage.setItem(ic,t)}catch{}},[t]),[t,r]}function xk(){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 Io="/console";function j2(t){try{return decodeURIComponent(t)}catch{return t}}function wv(t,r="",i=""){const u=(t.startsWith(Io)?t.slice(Io.length):t).split("/").filter(Boolean).map(j2);return{page:u[0]??"",rest:u.slice(1),query:new URLSearchParams(r),hash:i.replace(/^#/,"")}}function Tp(){return wv(window.location.pathname,window.location.search,window.location.hash)}const oc=new Set;function an(t,r={}){const i=t.startsWith("/")?`${Io}${t}`:`${Io}/${t}`;r.replace?window.history.replaceState(null,"",i):window.history.pushState(null,"",i),oc.forEach(a=>a())}function Bc(){const[t,r]=O.useState(Tp);return O.useEffect(()=>{const i=()=>r(Tp());return oc.add(i),window.addEventListener("popstate",i),()=>{oc.delete(i),window.removeEventListener("popstate",i)}},[]),t}function _a(t){return`${Io}/${t.replace(/^\//,"")}`}function Hc(t){return r=>{r.defaultPrevented||r.button!==0||r.metaKey||r.ctrlKey||r.shiftKey||r.altKey||(r.preventDefault(),an(t))}}const T2=6;function Xe(t){if(t==null||t==="")return 0;const r=Number(t);return Number.isFinite(r)?r:0}function R2(t,r={}){if(t==null)return"—";const i=typeof t=="number"?t:Xe(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 Sk(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(T2,"0");return`${a}.${u}`}function kk(t){return t==null?"":t.includes(".")?t.replace(/0+$/,"").replace(/\.$/,""):t}function N2(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 Ck(t){return N2(t,{compact:!0})}function gi(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 _k(t){return t?t.min===t.max?gi(t.min):`${t.min===0?"$0":gi(t.min)}–${gi(t.max)}`:"—"}function Ek(t){return t==null?"—":t>=1e3?`${(t/1e3).toFixed(t>=1e4?0:1)} s`:`${Math.round(t)} ms`}function Pk(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 I2(t){return t?new Date(t).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"—"}function M2(t){return t?new Date(t).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):"—"}function Rp(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 M2(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 xv=["daily","weekly","monthly","total"],bk={daily:"Daily",weekly:"Weekly",monthly:"Monthly",total:"Total"};function O2(t){if(!t)return"No limits";const r={daily:"/day",weekly:"/week",monthly:"/month",total:" total"},i=xv.filter(a=>t[a]!==null).map(a=>`${R2(t[a])}${r[a]}`);return i.length>0?i.join(" · "):"No limits"}function jk(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 L2=15*6e4;function A2(t){return t.status==="active"||t.status==="open"||t.status==="closing"||t.status==="withdrawable"}function Tk(t,r){return t.status==="withdrawable"?"withdraw":t.status!=="active"&&t.status!=="open"?"none":t.canCooperativeClose&&!r?"cooperative":"on-chain"}function D2(t){return t.closeRequestedAt===null?null:t.closeRequestedAt+L2}function F2(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 Rk(t,r=Date.now()){if(t.status==="closing"){const i=D2(t);return i===null?"closing":`closing · ${F2(i,r)} left`}return t.status==="withdrawable"?"ready to withdraw":t.status==="timedout"?"withdrawn":t.status}function Nk(t){return t.status==="active"||t.status==="open"?"success":t.status==="withdrawable"?"warning":t.status==="closing"?"info":"neutral"}function $2(t){return Math.max(0,Xe(t.reserved)-Xe(t.spent))}function z2(t){const r=t.filter(i=>i.status==="withdrawable");return{count:r.length,amount:r.reduce((i,a)=>i+$2(a),0)}}function Ik(t){return t.filter(A2).reduce((r,i)=>r+Math.max(0,Xe(i.spent)-Xe(i.settled??"0")),0)}function Mk(t){return Xe(t.reserved)>0&&Xe(t.available)<=0&&Xe(t.walletUsdc)<=0}function U2(t){const r=Xe(t.walletUsdc);if(r<=0)return!1;const i=t.creditLimit===null?0:Xe(t.creditLimit),a=Math.max(0,i-Xe(t.available)-Xe(t.reserved));return!(i>0&&r>a)}function Ok(t){const r=Xe(t.walletUsdc),i=t.creditLimit===null?0:Xe(t.creditLimit),a=Math.max(0,i-Xe(t.available)-Xe(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 Lk(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 B2={usdc:["usdc","USDC","usdcToken"],deposits:["deposits","AntseedDeposits","antseedDeposits"],usageRewards:["usageRewards","AntseedUsageRewards","UsageRewards"],channels:["channels","AntseedChannels","antseedChannels"]};function Ak(t,r){if(!t)return null;const i=Object.entries(t.contracts);for(const a of B2[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 Mo(t,r){return!!t&&!!r&&t.toLowerCase()===r.toLowerCase()}const H2="0x0000000000000000000000000000000000000000";function Wc(t){return!!t&&/^0x[0-9a-fA-F]{40}$/.test(t)&&t.toLowerCase()!==H2}function Dk(t,r){return t!=null&&t.explorerUrl?`${t.explorerUrl.replace(/\/+$/,"")}/tx/${r}`:null}const Pe={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"]},Fk=["routing","workspaces","members","keys","presets"];function W2(t,r=fe){return{queryKey:Pe.workspace(t),queryFn:()=>r.workspaces.get(t)}}function $k(t,r=!0){return De({...W2(t),enabled:r})}function zk(t=!0){return De({queryKey:Pe.peers,queryFn:fe.network.peers,staleTime:3e4,enabled:t})}function Uk(){return De({queryKey:Pe.models,queryFn:fe.network.models,staleTime:3e4})}function Bk(t=!0){return De({queryKey:Pe.peerLists,queryFn:fe.network.peerLists,staleTime:3e4,enabled:t})}function Hk(){return De({queryKey:Pe.workspaces,queryFn:fe.workspaces.list})}function Wk(t,r=!0){return De({queryKey:Pe.workspaceMembers(t),queryFn:()=>fe.workspaces.members(t),enabled:r})}function Vk(t=!0){return De({queryKey:Pe.members,queryFn:fe.members.list,enabled:t})}function qk(){return De({queryKey:Pe.invites,queryFn:fe.invites.list})}function Kk(t,r=!0){return De({queryKey:Pe.keys(t),queryFn:()=>fe.keys.list(t),enabled:r})}function Qk(t,r=!0){return De({queryKey:Pe.presets(t),queryFn:()=>fe.presets.list(t),enabled:r})}function Gk(t,r=!0){return De({queryKey:Pe.wallet(t),queryFn:()=>fe.wallet.get(t),enabled:r,refetchInterval:i=>i.state.data&&U2(i.state.data)?5e3:!1})}function Yk(){return De({queryKey:Pe.gatewayPolicy,queryFn:fe.network.gatewayPolicy})}function Zk(){return De({queryKey:Pe.buyerLimits,queryFn:fe.network.buyerLimits})}function Xk(){return De({queryKey:Pe.adminTokens,queryFn:fe.adminTokens.list})}function V2(){return De({queryKey:Pe.me,queryFn:fe.auth.me})}function Vc(t=!0){return De({queryKey:Pe.authConfig,queryFn:fe.auth.config,enabled:t})}function qc(){return De({queryKey:Pe.status,queryFn:fe.settings.status,refetchInterval:3e4})}function Jk(t=!0){return De({queryKey:Pe.chain,queryFn:fe.wallet.chain,staleTime:1/0,enabled:t})}function eC(t){const r=new Set;for(const i of t??[])for(const a of i.services)r.add(a.service);return[...r].sort()}const Sv=t=>["wallet-operator",t],kv={get:(t,r=!1)=>fe.wallet.operator(t,r),sync:(t,r)=>fe.wallet.operatorSync(t,r),authorize:(t,r)=>fe.wallet.operatorAuth(t,r)};function tC(t,r=!0){return De({queryKey:Sv(t),queryFn:()=>kv.get(t),staleTime:3e4,enabled:r})}function q2(t=!0){return De({queryKey:Pe.operators,queryFn:()=>fe.wallet.operators(),staleTime:6e4,enabled:t})}function K2(t){return(t==null?void 0:t.relation)==="none"}function nC(t){const r=rr(),i=a=>{r.setQueryData(Sv(t),a),r.invalidateQueries({queryKey:Pe.operators}),r.invalidateQueries({queryKey:Pe.wallet(t)}),r.invalidateQueries({queryKey:Pe.rewards(t)})};return{apply:i,refresh:async()=>i(await kv.get(t,!0))}}function rC(t,r){const i=t.operator,a=sn(i),u=Wc(i)&&Mo(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 iC(t,r,i){if(!t)return{ok:!1,reason:"Checking the authorized wallet…",operator:null};const a=Wc(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?Mo(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 oC(t,r=Date.now()){return t.eligibleWallets.map(i=>({...i,ready:i.eligibleAt<=r}))}function sC(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=>Mo(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 ${I2(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 Cv={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 Q2(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(Cv).find(u=>a.includes(u))??null}function aC(t){const r=Q2(t);return r?Cv[r]??null:null}class ko extends Error{constructor(r,i,a=!1){super(r),this.refresh=i,this.retryAuth=a,this.name="OperatorPreflightError"}}function lC(t,r,i){if(t.chainId!==void 0&&t.chainId!==i.chainId)throw new ko(`The gateway signed for chain ${t.chainId} but the console is set up for chain ${i.chainId}.`,!1);if(t.depositsContract&&i.depositsContract&&!Mo(t.depositsContract,i.depositsContract))throw new ko("The gateway signed for a different deposits contract than the one the console reports. Reload the page.",!1);if(t.operator&&!Mo(t.operator,i.operator))throw new ko(`The authorization is for ${sn(t.operator)}, not ${sn(i.operator)}.`,!1);if(Wc(r.operator))throw new ko(`An authorized wallet is already set (${sn(r.operator)}). The panel now shows it.`,!0);if(r.nonce.toString()!==t.nonce)throw new ko("The operator nonce changed since the gateway signed. Getting a fresh authorization…",!0,!0)}function G2(t,r=!0){return De({queryKey:Pe.channels(t,!1),queryFn:()=>fe.wallet.channels(t,!1),enabled:r})}function _v(){const{workspace:t,viewer:r}=ir(),i=Fc(r),a=q2(i),u=G2(t.id,i),d=a.data??[],m=new Set(d.filter(K2).map(w=>w.workspaceId)),v=d.find(w=>w.workspaceId===t.id),g=z2(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 Ev=["pointerdown","mousedown","pointerup","mouseup","click"],sc=new WeakMap;function Pv(t,r,i){Kc(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 Ev)document.addEventListener(u,a,!0);sc.set(t,a)}function Kc(t){let r=sc.get(t);if(r){for(let i of Ev)document.removeEventListener(i,r,!0);sc.delete(t)}}function Y2(t,r){let i=t.wrapper.getBoundingClientRect();return{width:i.width+r,height:i.height+r,realWidth:i.width,realHeight:i.height}}function Np(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 Ip(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 Qc(t,r,i){let{align:a,side:u}=i,d=i.centered?"over":u,m=i.padding,v=Y2(t,i.offset),g=t.arrow.getBoundingClientRect(),h=r.getBoundingClientRect(),w=h.top-v.height,x=w>=0,C=window.innerHeight-(h.bottom+v.height),N=C>=0,L=h.left-v.width,E=L>=0,I=window.innerWidth-(h.right+v.width),D=I>=0,B=!x&&!N&&!E&&!D,b=d;if(d==="top"&&x?D=E=N=!1:d==="bottom"&&N?D=E=x=!1:d==="left"&&E?D=x=N=!1:d==="right"&&D&&(E=x=N=!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(B){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(E){let T=Math.min(L,window.innerWidth-(v==null?void 0:v.realWidth)-g.width),A=Np(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(I,window.innerWidth-(v==null?void 0:v.realWidth)-g.width),A=Np(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(w,window.innerHeight-v.realHeight-g.width),A=Ip(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(N){let T=Math.min(C,window.innerHeight-(v==null?void 0:v.realHeight)-g.width),A=Ip(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"}X2(t,B?"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 Mp(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 Op(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 Z2(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 X2(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=Z2(r,d,m);u.classList.add(`driver-popover-arrow-side-${v}`);let g=u.getBoundingClientRect().width||10;if(v==="left"||v==="right"){let h=Mp(d.top,d.bottom,m.top,m.bottom,i,g);u.style.top=`${Op(h,m.height,g)}px`}else{let h=Mp(d.left,d.right,m.left,m.right,i,g);u.style.left=`${Op(h,m.width,g)}px`}}function ma(t){return typeof t=="function"?t():typeof t=="string"?document.querySelector(t):t}function J2(t){let r=window.getComputedStyle(t);return[r.overflow,r.overflowX,r.overflowY].some(i=>i==="auto"||i==="scroll")}function ia(t,r,i,a){return(t/=a/2)<1?i/2*t*t+r:-i/2*(--t*(t-2)-1)+r}function bv(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"&&nx(i))}function jv(t,r){if(!t||tx(t))return;let i=t.offsetHeight>window.innerHeight;t.scrollIntoView({behavior:!r||ex(t)?"auto":"smooth",inline:"center",block:i?"start":"center"})}function ex(t){if(!t||!t.parentElement)return;let r=t.parentElement;return r.scrollHeight>r.clientHeight}function tx(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 nx(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function Tv(t){t&&(t.wrapper.style.display="none")}function rx(t,r){var E;let i=ox();document.body.appendChild(i.wrapper);let{title:a,description:u,showButtons:d,disableButtons:m,showProgress:v,nextBtnText:g,prevBtnText:h,progressText:w}=r;i.nextButton.innerHTML=g,i.previousButton.innerHTML=h,i.progress.innerHTML=w,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 N=i.arrow;N.className="driver-popover-arrow",C.className=`driver-popover ${r.popoverClass||""}`.trim(),Pv(i.wrapper,I=>{var B,b,T;let D=I.target;if(D.closest(".driver-popover-next-btn"))return(B=r.onNextClick)==null?void 0:B.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)},I=>i.description.contains(I)||i.title.contains(I)?!1:!!I.closest(".driver-popover-prev-btn, .driver-popover-next-btn, .driver-popover-close-btn")),(E=r.onRender)==null||E.call(r,i),Qc(i,t,r.position),ix(i,t,r.position),jv(C,r.smoothScroll);let L=bv([C,t]);return L.length>0&&L[0].focus(),i}function ix(t,r,i){t.wrapper.querySelectorAll("img").forEach(a=>{if(a.complete)return;let u=()=>Qc(t,r,i);a.addEventListener("load",u,{once:!0}),a.addEventListener("error",u,{once:!0})})}function ox(){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 Rv(t){var r;t&&(Kc(t.wrapper),(r=t.wrapper.parentElement)==null||r.removeChild(t.wrapper))}function Nv(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)),w=t.x-u+h,x=t.y-u,C=m-h*2,N=v-h*2;return`M${i},0L0,0L0,${a}L${i},${a}L${i},0Z
|
|
82
|
+
M${w},${x} h${C} a${h},${h} 0 0 1 ${h},${h} v${N} a${h},${h} 0 0 1 -${h},${h} h-${C} a${h},${h} 0 0 1 -${h},-${h} v-${N} a${h},${h} 0 0 1 ${h},-${h} z`}function sx(t,r,i,a,u){let d=t.getState("__activeStagePosition"),m=d||a.getBoundingClientRect(),v=u.getBoundingClientRect();d={x:ia(r,m.x,v.x-m.x,i),y:ia(r,m.y,v.y-m.y,i),width:ia(r,m.width,v.width-m.width,i),height:ia(r,m.height,v.height-m.height,i)},Mv(t,d),t.setState("__activeStagePosition",d)}function Iv(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),Mv(t,a)}function ax(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 lx(t,r){let i=ux(t,r);document.body.appendChild(i),Pv(i,a=>{a.target.tagName==="path"&&t.emit("overlayClick")}),t.setState("__overlaySvg",i)}function Mv(t,r){let i=t.getState("__overlaySvg");if(!i){lx(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",Nv(r,Ov(t)))}function Ov(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 ux(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",Nv(r,Ov(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 cx(t){let r=t.getState("__overlaySvg");r&&(Kc(r),r.remove())}const Lv="{{current}} of {{total}}";function Av(t,r){return!(r.skipMissingElement??t.getConfig("skipMissingElement"))||!r.element?!1:!ma(r.element)}function _n(t,r,i){let a=t.getConfig("steps")||[];for(let u=r;u>=0&&u<a.length;u+=i)if(!Av(t,a[u]))return u}function ca(t,r){var d,m;let i=t.getState("activeIndex"),a=i!==void 0&&_n(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 Dv(t,r){var i;return((i=r==null?void 0:r.popover)==null?void 0:i.onPrevClick)||t.getConfig("onPrevClick")}function dx(t,r){var i;return((i=r==null?void 0:r.popover)==null?void 0:i.onCloseClick)||t.getConfig("onCloseClick")}function fx(t,r,i){let a=t.getConfig("steps")||[],u=a[r],d=u.popover||{},m=_n(t,r+1,1)!==void 0,v=_n(t,r-1,-1)!==void 0,g=d.doneBtnText||t.getConfig("doneBtnText")||"Done",h=t.getConfig("allowClose"),w=d.showProgress===void 0?t.getConfig("showProgress"):d.showProgress,x=(d.progressText||t.getConfig("progressText")||Lv).replace("{{current}}",`${r+1}`).replace("{{total}}",`${a.length}`),C=d.showButtons||t.getConfig("showButtons"),N=["next","previous",...h?["close"]:[]].filter(D=>!(C!=null&&C.length)||C.includes(D)),L=d.onNextClick||t.getConfig("onNextClick"),E=d.onPrevClick||t.getConfig("onPrevClick"),I=d.onCloseClick||t.getConfig("onCloseClick");return{...u,popover:{showButtons:N,nextBtnText:m?void 0:g,disableButtons:[...t.getConfig("disableButtons")||[],...v?[]:["previous"]],showProgress:w,onNextClick:L||i.onNextClick,onPrevClick:E||i.onPrevClick,onCloseClick:I||i.onCloseClick,...d,progressText:x}}}function ac(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 Fv(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 hx(t,r,i){let a=i.popover||{},u=t.getState("activeIndex"),d=u!==void 0&&_n(t,u+1,1)===void 0;return{title:a.title,description:a.description,...ac(t,i),showProgress:a.showProgress||t.getConfig("showProgress")||!1,progressText:a.progressText??(t.getConfig("progressText")||Lv),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=ca(t,i);return m?m(r,i,t.getHookOpts()):t.emit("nextClick")},onPrevClick:()=>{let m=Dv(t,i);return m?m(r,i,t.getHookOpts()):t.emit("prevClick")},onCloseClick:()=>{let m=dx(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:Fv(t,r,i)}}function Lp(t,r,i){Rv(t.getState("popover")),rx(r,hx(t,r,i))}function px(t,r,i){let a=t.getState("popover");a&&Qc(a,r,Fv(t,r,i))}const Ap={"aria-haspopup":"dialog","aria-expanded":"true","aria-controls":"driver-popover-content"},va=new WeakMap;function mx(t){if(!va.has(t)){let r=Object.fromEntries(Object.keys(Ap).map(i=>[i,t.getAttribute(i)]));va.set(t,r)}for(let[r,i]of Object.entries(Ap))t.setAttribute(r,i)}function $v(t){let r=va.get(t);if(r){for(let[i,a]of Object.entries(r))a===null?t.removeAttribute(i):t.setAttribute(i,a);va.delete(t)}}function vx(){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 Dp(t,r){let i=ma(r.element);i||(i=vx()),yx(t,i,r)}function gx(t){let r=t.getState("__activeElement"),i=t.getState("__activeStep");r&&(Iv(t,r),ax(t),px(t,r,i))}function yx(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",w=t.getConfig("animate"),x=i.onHighlightStarted||t.getConfig("onHighlightStarted"),C=(i==null?void 0:i.onHighlighted)||t.getConfig("onHighlighted"),N=(d==null?void 0:d.onDeselected)||t.getConfig("onDeselected"),L=t.getHookOpts();d&&d!==i&&N&&N(h?void 0:m,d,L),x&&x(g?void 0:r,i,L);let E=!v&&w,I=!1;Tv(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&&!I&&E&&(Lp(t,r,i),I=!0),t.getConfig("animate")&&b<a?sx(t,b,a,m,r):(Iv(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),jv(r,t.getConfig("smoothScroll")),!E&&i.popover&&Lp(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"),$v(b)}),(i.disableActiveInteraction??t.getConfig("disableActiveInteraction"))&&r.classList.add("driver-no-interaction");let B=r.parentElement;B&&B!==document.body&&(B.classList.add("driver-active-element-parent"),J2(B)&&B.classList.add("driver-active-element-parent-no-scroll")),r.classList.add("driver-active-element"),mx(r)}function wx(){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"),$v(r)})}function lc(t){let r=t.getState("__resizeTimeout");r&&window.cancelAnimationFrame(r),t.setState("__resizeTimeout",window.requestAnimationFrame(()=>gx(t)))}function xx(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=bv([...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 Sx(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 kx(t,r){let i=t.getState("__activeElement"),a=r.target;!i||!a||!i.contains(a)||t.emit("activeElementClick")}function Cx(t){let r=m=>Sx(t,m),i=m=>xx(t,m),a=()=>lc(t),u=()=>lc(t),d=m=>kx(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 _x(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 Ex(){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 Px(){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 bx(){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 jx(t={}){let r=Ex();r.configure(t);let i=Px(),a=bx(),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 di;function Tx(t={}){let r=jx(t),i=()=>D(!1);function a(){r.getConfig("allowClose")&&D()}function u(){let{disableButtons:b}=ac(r,r.getState("__activeStep"));b.includes("close")||a()}function d(b){let{showButtons:T,disableButtons:A}=ac(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"),V=ca(r,T);if(V){V(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]?I(A):D()}function g(){let b=r.getState("activeIndex"),T=r.getConfig("steps")||[];if(b===void 0)return;let A=b-1;T[A]?I(A):D()}function h(b){(r.getConfig("steps")||[])[b]?I(b):D()}function w(){if(r.getState("__transitionCallback"))return;let b=r.getState("__activeStep");if(!b||!(b.advanceOnClick??r.getConfig("advanceOnClick")))return;let T=r.getState("__activeElement"),A=ca(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 V=Dv(r,T);if(V)return V(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 V=ca(r,T);if(V)return V(A,T,r.getHookOpts());v()}function N(){r.getState("isInitialized")||(di&&di!==i&&di(),di=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`),Cx(r),r.listen("overlayClick",m),r.listen("activeElementClick",w),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 E(b,T,A){let V=()=>{oe.disconnect(),window.clearTimeout(ee),r.setState("__pendingWaitCancel",void 0),A()},oe=new MutationObserver(()=>{ma(b.element)&&V()}),ee=window.setTimeout(V,T);r.setState("__pendingWaitCancel",()=>{oe.disconnect(),window.clearTimeout(ee)}),oe.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0})}function I(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 V=A[b],oe=V.waitForElement??r.getConfig("waitForElement")??0;if(!T&&oe>0&&V.element&&!ma(V.element)){Tv(r.getState("popover")),E(V,oe,()=>I(b,!0));return}if(Av(r,V)){let se=r.getState("activeIndex"),ce=typeof se=="number"&&b<se?-1:1;A[b+ce]?I(b+ce):ce===1&&D();return}r.setState("__activeOnDestroyed",document.activeElement),r.setState("activeIndex",b);let ee=A[b+1];Dp(r,fx(r,b,{onNextClick:()=>{ee?I(b+1):D()},onPrevClick:()=>{I(b-1)},onCloseClick:()=>{D()}}))}function D(b=!0){if(!r.getState("isInitialized"))return;let T=r.getState("__activeElement"),A=r.getState("__activeStep"),V=r.getState("__activeOnDestroyed"),oe=r.getConfig("onDestroyStarted");if(b&&oe){oe(!T||(T==null?void 0:T.id)==="driver-dummy-element"?void 0:T,A,r.getHookOpts());return}di===i&&(di=void 0);let ee=(A==null?void 0:A.onDeselected)||r.getConfig("onDeselected"),se=r.getConfig("onDestroyed");document.body.classList.remove("driver-active","driver-fade","driver-simple","driver-no-scroll"),document.body.style.removeProperty("--driver-animation-duration"),L(),_x(r),Rv(r.getState("popover")),wx(),cx(r),r.resetEmitter();let ce=r.getState();if(r.resetState(),T&&A){let Z=T.id==="driver-dummy-element";ee&&ee(Z?void 0:T,A,r.getHookOpts(ce)),se&&se(Z?void 0:T,A,r.getHookOpts(ce))}V&&V.focus()}let B={isActive:()=>r.getState("isInitialized")||!1,refresh:()=>lc(r),drive:(b=0)=>{N(),I(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&&_n(r,b-1,-1)===void 0},isLastStep:()=>{let b=r.getState("activeIndex");return b!==void 0&&_n(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=_n(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&&_n(r,b+1,1)!==void 0},hasPreviousStep:()=>{let b=r.getState("activeIndex");return b!==void 0&&_n(r,b-1,-1)!==void 0},highlight:b=>{N(),Dp(r,{...b,popover:b.popover?{showButtons:[],showProgress:!1,progressText:"",...b.popover}:void 0})},destroy:()=>{D(!1)}};return r.setDriver(B),B}const Rx="antseed-console:tour-seen",Nx=t=>`nav-${t}`;function Ix(t){const r=(i,a)=>zc(i,t)?[{target:Nx(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."}),...Ca(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 Mx(t){return t instanceof HTMLElement&&t.getClientRects().length>0}function Ox(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{...Mx(r)?{element:r}:{},popover:{title:t.title,description:t.description,side:i,align:"start"}}}function zv(t){return`${Rx}:${t}`}function Lx(t){try{return localStorage.getItem(zv(t))==="1"}catch{return!0}}function Ax(t){try{localStorage.setItem(zv(t),"1")}catch{}}function Fp(t,r){const i=Ix(t).map(Ox);Tx({steps:i,showProgress:!0,progressText:"{{current}} of {{total}}",nextBtnText:"Next",prevBtnText:"Back",doneBtnText:"Done",popoverClass:"gc-tour",stagePadding:4,stageRadius:8,onDestroyed:()=>Ax(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 ga(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 zo(){return Dx.stubThis((globalThis==null?void 0:globalThis.PublicKeyCredential)!==void 0&&typeof globalThis.PublicKeyCredential=="function")}const Dx={stubThis:t=>t};function Uv(t){const{id:r}=t;return{...t,id:ga(r),transports:t.transports}}function Bv(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 Fx({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(Bv(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 $x{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 Hv=new $x,zx=["cross-platform","platform"];function Wv(t){if(t&&!(zx.indexOf(t)<0))return t}async function Vv(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(!zo())throw new Error("WebAuthn is not supported in this browser");const a={...r,challenge:ga(r.challenge),user:{...r.user,id:ga(r.user.id)},excludeCredentials:(L=r.excludeCredentials)==null?void 0:L.map(Uv)},u={};i&&(u.mediation="conditional"),u.publicKey=a,u.signal=Hv.createNewAbortSignal();let d;try{d=await navigator.credentials.create(u)}catch(E){throw Fx({error:E,options:u})}if(!d)throw new Error("Registration was not completed");const{id:m,rawId:v,response:g,type:h}=d;let w;typeof g.getTransports=="function"&&(w=g.getTransports());let x;if(typeof g.getPublicKeyAlgorithm=="function")try{x=g.getPublicKeyAlgorithm()}catch(E){Mu("getPublicKeyAlgorithm()",E)}let C;if(typeof g.getPublicKey=="function")try{const E=g.getPublicKey();E!==null&&(C=on(E))}catch(E){Mu("getPublicKey()",E)}let N;if(typeof g.getAuthenticatorData=="function")try{N=on(g.getAuthenticatorData())}catch(E){Mu("getAuthenticatorData()",E)}return{id:m,rawId:on(v),response:{attestationObject:on(g.attestationObject),clientDataJSON:on(g.clientDataJSON),transports:w,publicKeyAlgorithm:x,publicKey:C,authenticatorData:N},type:h,clientExtensionResults:d.getClientExtensionResults(),authenticatorAttachment:Wv(d.authenticatorAttachment)}}function Mu(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 Ux(){if(!zo())return Ou.stubThis(new Promise(r=>r(!1)));const t=globalThis.PublicKeyCredential;return(t==null?void 0:t.isConditionalMediationAvailable)===void 0?Ou.stubThis(new Promise(r=>r(!1))):Ou.stubThis(t.isConditionalMediationAvailable())}const Ou={stubThis:t=>t};function Bx({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(Bv(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 qv(t){var N,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(!zo())throw new Error("WebAuthn is not supported in this browser");let u;((N=r.allowCredentials)==null?void 0:N.length)!==0&&(u=(L=r.allowCredentials)==null?void 0:L.map(Uv));const d={...r,challenge:ga(r.challenge),allowCredentials:u},m={};if(i){if(!await Ux())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=Hv.createNewAbortSignal();let v;try{v=await navigator.credentials.get(m)}catch(E){throw Bx({error:E,options:m})}if(!v)throw new Error("Authentication was not completed");const{id:g,rawId:h,response:w,type:x}=v;let C;return w.userHandle&&(C=on(w.userHandle)),{id:g,rawId:on(h),response:{authenticatorData:on(w.authenticatorData),clientDataJSON:on(w.clientDataJSON),signature:on(w.signature),userHandle:C},type:x,clientExtensionResults:v.getClientExtensionResults(),authenticatorAttachment:Wv(v.authenticatorAttachment)}}function Nr(t){return t.trim().toLowerCase().replace(/^0x/,"")}function Kv(t,r){return Nr(t)===Nr(r)}const Hx={balanced:"Balanced",price:"Lowest price",latency:"Lowest latency",trust:"Highest trust"};function Gc(){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 fi(t){return t===void 0?"":String(t)}function Wx(t){return t===void 0?"inherit":t?"yes":"no"}function Vx(t){const r=Gc();return t?{...r,allowMode:t.allowedPeerIds||t.allowedPeerLists?"only":"any",allowedPeerIds:[...t.allowedPeerIds??[]],allowedListIds:[...t.allowedPeerLists??[]],blockedPeerIds:[...t.blockedPeerIds??[]],blockedListIds:[...t.blockedPeerLists??[]],minTrustScore:fi(t.minTrustScore),minReputation:fi(t.minReputation),requireVerified:t.requireVerified===!0,requireTee:t.requireTee===!0,maxInputUsdPerMillion:fi(t.maxInputUsdPerMillion),maxOutputUsdPerMillion:fi(t.maxOutputUsdPerMillion),maxCachedInputUsdPerMillion:fi(t.maxCachedInputUsdPerMillion),maxImageUsdPerImage:fi(t.maxImageUsdPerImage),preferFreePeers:Wx(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 ya extends Error{}function Lu(t,r,i){const a=r.trim();if(a==="")return;const u=Number(a);if(!Number.isFinite(u)||u<0)throw new ya(`${t} must be a positive number.`);if(i!==void 0&&u>i)throw new ya(`${t} must be at most ${i}.`);return u}function hi(t){return[...new Set(t.map(r=>r.trim()).filter(Boolean))]}function $p(t,r){const i=hi(t);return r?i.filter(a=>r.some(u=>u.id===a)):i}function uC(t,r=null){const i={};if(t.allowMode==="only"){const h=$p(t.allowedListIds,r),w=hi(t.allowedPeerIds);(w.length>0||h.length===0)&&(i.allowedPeerIds=w),h.length>0&&(i.allowedPeerLists=h)}const a=hi(t.blockedPeerIds);a.length>0&&(i.blockedPeerIds=a);const u=$p(t.blockedListIds,r);u.length>0&&(i.blockedPeerLists=u);const d=Lu("Minimum trust",t.minTrustScore,100);d!==void 0&&(i.minTrustScore=d);const m=Lu("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,w]of v){const x=Lu(w,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=hi(t.allowedModels));const g=t.routes.filter(h=>h.model.trim()!=="");if(g.length>0){const h=new Set;i.modelRoutes={};for(const w of g){const x=w.model.trim();if(h.has(x))throw new ya(`Model "${x}" has two fallback chains.`);h.add(x);const C=hi(w.peerIds);if(C.length===0)throw new ya(`Add at least one seller to the "${x}" chain.`);i.modelRoutes[x]=w.strict?{peerIds:C,strict:!0}:{peerIds:C}}}return i}function Yc(t){return!t||Object.keys(t).length===0}function cC(t){return Yc(t)?null:t}function qx(t){var a,u,d,m,v,g;if(Yc(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(Hx[r.sort].toLowerCase()),r.preferFreePeers&&i.push("free first"),i.join(" · ")||"Custom"}function dC(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 fC(t){const r=[];t.minPeerReputation>0&&r.push(`reputation ≥ ${t.minPeerReputation}`),t.requireVerifier&&r.push("verified sellers only"),t.maxPricing&&(r.push(`≤ ${gi(t.maxPricing.inputUsdPerMillion)}/M in`),r.push(`≤ ${gi(t.maxPricing.outputUsdPerMillion)}/M out`),t.maxPricing.cachedInputUsdPerMillion!==null&&r.push(`≤ ${gi(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"}`,Kx={balanced:"balanced",price:"price",latency:"latency",trust:"trust"};function hC(t){var u,d,m,v,g,h,w;if(Yc(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((w=r.blockedPeerLists)==null?void 0:w.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: ${Kx[r.sort]}`),r.preferFreePeers!==void 0&&i.push(r.preferFreePeers?"Free sellers first":"Free sellers not first"),i}const pC=[{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 mC(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:hi(r)}}}function vC(t,r,i,a){var m,v,g;const u=structuredClone(t??{}),d=h=>h==null?void 0:h.filter(w=>!Kv(w,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??{}},w=h[a];h[a]={...w??{},peerIds:[i,...d(w==null?void 0:w.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,w])=>[h,{...w,peerIds:d(w.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 gC(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=>Kv(u,r))}const Qx={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 yC(t){const r=Vx(t),i=Gc(),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 wC(t,r){const i=Gc(),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=Qx[u]??(u==="allowedPeerIds"||u==="allowedListIds"?"allowed sellers":null);m&&a.add(m)}return[...a]}function xC(t,r){return{...t,...r}}function SC(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 kC(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 Gx(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 Yx(t,r){return t===void 0?r:r===void 0?t:[...new Set([...t,...r])]}function Zc(t,r,i){return t===void 0?r:r===void 0?t:i(t,r)}const zp=(t,r)=>Zc(t,r,Math.max),oa=(t,r)=>Zc(t,r,Math.min),Zx=(t,r)=>t.filter(i=>r.some(a=>a.toLowerCase()===i.toLowerCase()));function Xx(t,r){const{allowedPeerLists:i,blockedPeerLists:a,...u}=t,d=v=>v.flatMap(g=>{var h;return((h=r.find(w=>w.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 Jx(...t){let r={};for(const i of t){if(!i)continue;const a={allowedPeerIds:Gx(r.allowedPeerIds,i.allowedPeerIds),blockedPeerIds:Yx(r.blockedPeerIds,i.blockedPeerIds),minTrustScore:zp(r.minTrustScore,i.minTrustScore),minReputation:zp(r.minReputation,i.minReputation),requireVerified:r.requireVerified||i.requireVerified?!0:void 0,requireTee:r.requireTee||i.requireTee?!0:void 0,maxInputUsdPerMillion:oa(r.maxInputUsdPerMillion,i.maxInputUsdPerMillion),maxOutputUsdPerMillion:oa(r.maxOutputUsdPerMillion,i.maxOutputUsdPerMillion),maxCachedInputUsdPerMillion:oa(r.maxCachedInputUsdPerMillion,i.maxCachedInputUsdPerMillion),maxImageUsdPerImage:oa(r.maxImageUsdPerImage,i.maxImageUsdPerImage),preferFreePeers:i.preferFreePeers??r.preferFreePeers,sort:i.sort??r.sort,allowedModels:Zc(r.allowedModels,i.allowedModels,Zx),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 eS(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 CC(t,r,i=[]){const a=Xx(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=>eS(a,g))})}function _C(t){return!!t&&t.some(r=>r.reputationScore!==null)}function EC(t,r,i=!1){const a=t?t.ownerMemberId===r.memberId:!0;return{admin:r.workspaceAdmin,owner:a,layered:t?mv(t):i}}function tS(t,r){return t===null?r:r===null||Xe(t)<=Xe(r)?t:r}function nS(t,r){const i={};for(const a of xv)i[a]=tS((t==null?void 0:t[a])??null,(r==null?void 0:r[a])??null);return i}function PC(t){const r=mv(t)?t:null;return{limits:nS(t.limits,r==null?void 0:r.ownerLimits),policy:Jx(t.routingPolicy,(r==null?void 0:r.ownerRoutingPolicy)??null)}}function bC(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 rS={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 iS(t){const[,r=t]=t.split(".");return/Limits$|^limits$/.test(t.split(".")[0]??"")?`${r} limit`:rS[r]??r}function oS(t){const r=[],i=t.fields;Array.isArray(i)&&i.length&&r.push(`Narrowed by the levels above: ${[...new Set(i.map(d=>iS(String(d))))].join(", ")}.`);const a=t.effectiveRoutingPolicy;a&&typeof a=="object"&&r.push(`Routing that would apply: ${qx(a)}.`);const u=t.effectiveLimits;return u&&typeof u=="object"&&r.push(`Limits that would apply: ${O2(u)}.`),r}const da=Symbol("cancelled");async function jC(t,r,i){const a={};if(t){if(!await i({kind:"empty"}))return da;a.confirmEmpty=!0}for(;;)try{return await r({...a})}catch(u){if(Or(u,"empty_allow_list")&&!a.confirmEmpty){if(!await i({kind:"empty"}))return da;a.confirmEmpty=!0}else if(Or(u,"narrowed")&&!a.acceptNarrowed){if(!await i({kind:"narrowed",message:u.message,lines:oS(u.details)}))return da;a.acceptNarrowed=!0}else throw u}}function sS(t){const r=rr(),i=pv();return e1({mutationFn:t.mutationFn,onSuccess:(a,u)=>{var v;if(a===da)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 aS(t=fe){const r=await t.auth.reauthPasskeyOptions(),i=await qv({optionsJSON:r});return t.auth.reauthPasskeyVerify(i)}async function TC(t,r,i=fe){const{message:a}=await i.auth.reauthWalletNonce(t);return i.auth.reauthWalletVerify(a,await r(a))}function lS(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 uc="The passkey prompt was closed.";function cc(t){return t instanceof Error&&t.name==="NotAllowedError"}function Xc({error:t,onRetry:r,title:i="Could not load this"}){return f.jsx(lt,{tone:"danger",title:i,action:r?f.jsx(Oe,{variant:"outline",size:"sm",onClick:r,children:"Retry"}):void 0,children:ka(t)})}function RC({query:t,children:r,rows:i}){return t.isLoading?f.jsx(Ni,{rows:i}):t.error?f.jsx(Xc,{error:t.error,onRetry:()=>void t.refetch()}):t.data===void 0?null:f.jsx(f.Fragment,{children:r(t.data)})}function NC({children:t,title:r}){return f.jsx("code",{className:"gc-mono",title:r,children:t})}function IC({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 MC({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 OC({at:t,format:r}){return t===null?f.jsx(f.Fragment,{children:"Never"}):t<Date.now()?f.jsx(xm,{tone:"warning",children:"Expired"}):f.jsx(f.Fragment,{children:r(t)})}const uS="Showing last known values — the chain RPC is busy.";function LC({stale:t}){return t?f.jsx("p",{className:"gc-muted",role:"status",children:uS}):null}function AC({to:t,children:r}){return f.jsx("a",{className:"gc-link",href:_a(t),onClick:Hc(t),children:r})}const cS=O.lazy(()=>Ue(()=>import("./WalletSignIn-B9g_MY0h.js"),__vite__mapDeps([0,1,2,3,4,5]))),dS=O.lazy(()=>Ue(()=>import("./WalletConfirm-BQCbOnNv.js"),__vite__mapDeps([6,7,1,2,3,4,5])));function fS({isOpen:t,onClose:r,startWith:i,intro:a,onCredentialAdded:u}){const{me:d}=ir(),m=rr(),v=Vc(t),[g,h]=O.useState("idle"),[w,x]=O.useState(i==="wallet"?"add":null),[C,N]=O.useState(null),[L,E]=O.useState(null),[I,D]=O.useState(!1),B=d.member.credentials,b=B.some(Z=>Z.kind==="passkey"),T=B.some(Z=>Z.kind==="wallet");function A(Z){lS(Z,d.member.id),m.setQueryData(Pe.me,Z)}function V(Z){return Or(Z,"reauth_required")?(h("needed"),N(null)):N(Z),!0}async function oe(){D(!0),N(null);try{const Z=await fe.auth.passkeyRegisterOptions(),Te=await Vv({optionsJSON:Z});A(await fe.auth.passkeyRegisterVerify(Te)),h("idle"),u==null||u()}catch(Z){cc(Z)?N(new Error(uc)):V(Z)}finally{D(!1)}}async function ee(){D(!0),N(null);try{A(await aS()),h("done")}catch(Z){N(cc(Z)?new Error(uc):Z)}finally{D(!1)}}const se=sS({mutationFn:Z=>fe.members.removeCredential(d.member.id,Z.id),onSuccess:()=>E(null),onError:Z=>{Or(Z,"reauth_required")&&(E(null),h("needed"))},invalidate:[Pe.me]}),ce=B.length<=1;return f.jsxs(uv,{isOpen:t,onClose:r,size:"lg",eyebrow:Uc[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"}),B.length===0?f.jsx(lt,{tone:"info",children:"You signed in through your organization's access proxy and have no passkey or wallet here. Add one to approve sensitive actions, such as authorizing a withdrawal wallet."}):f.jsx("ul",{className:"gc-list gc-credentials",children:B.map(Z=>f.jsxs("li",{className:"gc-inline gc-inline--between",children:[f.jsxs("span",{className:"gc-credential",children:[f.jsx(xm,{children:Z.kind})," ",f.jsx("span",{className:"gc-credential__label",children:Z.label}),f.jsxs("span",{className:"gc-muted",children:[" · added ",Rp(Z.createdAt)," · last used ",Rp(Z.lastUsedAt)]})]}),f.jsx(Oe,{variant:"ghost",size:"sm",disabled:ce,title:ce?"Add another sign-in method first":void 0,onClick:()=>{se.reset(),E(Z)},children:"Remove"})]},Z.id))}),ce&&B.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(lt,{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(Oe,{size:"sm",disabled:I,onClick:()=>void ee(),children:"Confirm with a passkey"}),T&&w!=="confirm"&&f.jsx(Oe,{size:"sm",variant:"outline",onClick:()=>x("confirm"),children:"Confirm with a wallet"})]}),w==="confirm"&&f.jsx(O.Suspense,{fallback:f.jsx(Oe,{size:"sm",disabled:!0,children:"Loading wallets…"}),children:f.jsx(dS,{onConfirmed:Z=>{A(Z),h("done"),x(null)}})}),!b&&!T&&f.jsx("span",{children:"Sign out and sign in again, then add it."})]})}),g==="done"&&f.jsx(lt,{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(Oe,{variant:"outline",size:"sm",disabled:I||!zo(),onClick:()=>void oe(),children:I?"Waiting for your passkey…":"Add a passkey"}),v.data.wallet&&w!=="add"&&f.jsx(Oe,{variant:"outline",size:"sm",onClick:()=>x("add"),children:"Add a wallet"}),v.data.oidc&&f.jsxs(Oe,{variant:"outline",size:"sm",href:fe.auth.oidcLinkUrl(),children:["Link ",v.data.oidc.label]})]}),w==="add"&&f.jsx(O.Suspense,{fallback:f.jsx(Oe,{size:"sm",disabled:!0,children:"Loading wallets…"}),children:f.jsx(cS,{autoConnect:!0,actionLabel:Z=>`Add ${Z} as a sign-in method`,onError:V,onSignedIn:Z=>{A(Z),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(lt,{tone:"danger",children:ka(C)}):null,f.jsx("div",{className:"gc-actions",children:f.jsx(Oe,{onClick:r,children:"Done"})})]}),f.jsx(n2,{isOpen:L!==null,busy:se.isPending,error:se.error,onClose:()=>{E(null),se.reset()},onConfirm:()=>L&&se.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 Qv="antseed-console-exposure-dismissed";function hS(t,r,i){return!r||r.mode==="public"||i?!1:Ca(t)}function Up(t){if(!t)return!1;try{return sessionStorage.getItem(Qv)===t}catch{return!1}}function pS(t){try{sessionStorage.setItem(Qv,t)}catch{}}function mS(t){return t.mode==="local"?"This gateway runs on this computer":"This gateway is only reachable on your network"}function vS(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 gS=/^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,63}$/;function DC(t){const r=t.trim().toLowerCase().replace(/^https?:\/\//,"").replace(/[/:].*$/,"");return gS.test(r)?r:null}const sa="antseed-gateway.bundle";function FC(t){const r=t.domain??"llm.example.com",i=t.server.trim()||"user@your-server",a=`/tmp/${sa}`;return{exportBundle:`antseed gateway export --out ${sa}`,copy:`scp ${sa} ${i}:${a}`,install:`curl -fsSL https://antseed.com/install-gateway.sh | sudo bash -s -- --domain ${r} --import ${a}`,baseUrl:`https://${r}/v1`,stop:`rm ${sa}`,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 pe({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 ut={overview:t=>f.jsxs(pe,{...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(pe,{...t,children:[f.jsx("path",{d:"M4 5h16v11H9l-5 4z"}),f.jsx("path",{d:"M8 9.5h8M8 12.5h5"})]}),activity:t=>f.jsx(pe,{...t,children:f.jsx("path",{d:"M3 12h4l3 8 4-16 3 8h4"})}),logs:t=>f.jsx(pe,{...t,children:f.jsx("path",{d:"M8 6h13M8 12h13M8 18h13M3 6h.01M3 12h.01M3 18h.01"})}),keys:t=>f.jsxs(pe,{...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(pe,{...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(pe,{...t,children:f.jsx("path",{d:"M3 7h18v13H3zM8 7V4h8v3"})}),wallet:t=>f.jsxs(pe,{...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(pe,{...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(pe,{...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(pe,{...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(pe,{...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(pe,{...t,children:f.jsx("path",{d:"M6 3v6a4 4 0 0 0 4 4h8M14 9l4 4-4 4M6 21v-4"})}),presets:t=>f.jsxs(pe,{...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(pe,{...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(pe,{...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(pe,{...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(pe,{...t,children:f.jsx("path",{d:"m5 12 5 5L20 7"})}),right:t=>f.jsx(pe,{...t,children:f.jsx("path",{d:"m9 6 6 6-6 6"})}),left:t=>f.jsx(pe,{...t,children:f.jsx("path",{d:"m15 6-6 6 6 6"})}),qr:t=>f.jsxs(pe,{...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(pe,{...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(pe,{...t,children:f.jsx("path",{d:"M12 5v14M5 12h14"})}),up:t=>f.jsx(pe,{...t,children:f.jsx("path",{d:"m6 15 6-6 6 6"})}),down:t=>f.jsx(pe,{...t,children:f.jsx("path",{d:"m6 9 6 6 6-6"})}),x:t=>f.jsx(pe,{...t,children:f.jsx("path",{d:"M6 6l12 12M18 6 6 18"})}),menu:t=>f.jsx(pe,{...t,children:f.jsx("path",{d:"M4 6h16M4 12h16M4 18h16"})}),sun:t=>f.jsxs(pe,{...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(pe,{...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(pe,{...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(pe,{...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(pe,{...t,children:f.jsx("path",{d:"M12 4v11M7 10l5 5 5-5M4 20h16"})}),more:t=>f.jsxs(pe,{...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(pe,{...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(pe,{...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(pe,{...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 yS(t){t.button!==0||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||(t.preventDefault(),an("migrate"))}function wS(){var d;const{viewer:t}=ir(),i=(d=qc().data)==null?void 0:d.exposure,[a,u]=O.useState(()=>Up(i==null?void 0:i.mode));return!hS(t,i,a||Up(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(ut.monitor,{size:16})}),f.jsxs("div",{className:"gc-exposure__text",children:[f.jsxs("strong",{children:[mS(i),"."]})," ",f.jsx("span",{children:vS(i)})]}),f.jsxs("div",{className:"gc-exposure__actions",children:[f.jsxs(Oe,{size:"sm",variant:"outline",href:_a("migrate"),onClick:yS,className:"gc-exposure__cta",children:["Move to a server ",f.jsx("span",{className:"gc-exposure__rec",children:"(recommended)"})]}),f.jsx($o,{label:"Dismiss for this session",className:"gc-exposure__close",onClick:()=>{pS(i.mode),u(!0)},children:f.jsx(ut.x,{size:14})})]})]})}function xS(t,r){return(t||r).replace(/\/+$/,"")}function SS(t){return`${t}/v1`}const Ea="ANTSEED_API_KEY",Pa={env:Ea};function kS(t){return"secret"in t?t.secret:`$${t.env}`}function Gv(t){return"secret"in t?`'${t.secret}'`:`process.env.${t.env}`}function CS(t){return"secret"in t?`"${t.secret}"`:`os.environ["${t.env}"]`}function Yv(t,r){return`${t.trim().toLowerCase().replace(/^0x/,"")}@${r.trim()}`}function _S(t){const r=t.apiProtocols??[];if(r.includes("openai-chat-completions"))return"openai-chat-completions";if(r.includes("anthropic-messages"))return"anthropic-messages";if(r.includes("openai-responses"))return"openai-responses";if(r.includes("openai-images"))return"openai-images";const i=t.provider.toLowerCase();return i.includes("anthropic")||i.includes("claude")?"anthropic-messages":i.includes("responses")?"openai-responses":"openai-chat-completions"}const ES={"anthropic-messages":"/v1/messages","openai-responses":"/v1/responses","openai-chat-completions":"/v1/chat/completions","openai-images":"/v1/images/generations"};function $C(t,r){if(t==="image")return"openai-images";if(t!=="text")return null;if(!r)return"openai-chat-completions";const i=_S({provider:r.provider,apiProtocols:r.protocols});return i==="openai-images"?"openai-chat-completions":i}const Jc="A lighthouse on a cliff at dawn, watercolor";function PS(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:Jc,n:1}:{model:r,messages:[{role:"user",content:"Hello"}]})}function Zv(t,r,i="openai-chat-completions",a=Pa){return[`curl ${t}${ES[i]} \\`,` -H "Authorization: Bearer ${kS(a)}" \\`,' -H "Content-Type: application/json" \\',` -d '${PS(i,r).replaceAll("'","'\\''")}'`].join(`
|
|
85
|
+
`)}function Xv(t,r,i="openai-chat-completions",a=Pa){return["import OpenAI from 'openai'","","const client = new OpenAI({",` baseURL: '${t}/v1',`,` apiKey: ${Gv(a)},`,"})","",...i==="openai-images"?["const result = await client.images.generate({",` model: '${r}',`,` prompt: '${Jc}',`,"})","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 bS(t,r,i="openai-chat-completions",a=Pa){return[..."env"in a?["import os"]:[],"from openai import OpenAI","",`client = OpenAI(base_url="${t}/v1", api_key=${CS(a)})`,"",...i==="openai-images"?[`result = client.images.generate(model="${r}", prompt="${Jc}")`,"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 Jv(t,r,i=Pa){return["import Anthropic from '@anthropic-ai/sdk'","","const client = new Anthropic({",` baseURL: '${t}',`,` authToken: ${Gv(i)}, // sent as Authorization: Bearer`,"})","","const reply = await client.messages.create({",` model: '${r}',`," max_tokens: 1024,"," messages: [{ role: 'user', content: 'Hello' }],","})"].join(`
|
|
88
|
+
`)}function jS(t,r){return["# ~/.codex/config.toml",`model = "${r}"`,'model_provider = "antseed"',"","[model_providers.antseed]",'name = "Antseed gateway"',`base_url = "${t}/v1"`,`env_key = "${Ea}"`,'wire_api = "responses"'].join(`
|
|
89
|
+
`)}function TS(t,r){return[`export ANTHROPIC_BASE_URL="${t}"`,`export ANTHROPIC_AUTH_TOKEN="$${Ea}"`,`export ANTHROPIC_MODEL="${r}"`,"claude"].join(`
|
|
90
|
+
`)}function RS(t,r){return[`Base URL: ${t}/v1`,`API key: $${Ea} (your Antseed key)`,`Model: ${r}`].join(`
|
|
91
|
+
`)}function zC(t,r,i="<model>"){const a={secret:r};return[{id:"curl",label:"curl",code:Zv(t,i,"openai-chat-completions",a)},{id:"openai",label:"OpenAI SDK",code:Xv(t,i,"openai-chat-completions",a)},{id:"anthropic",label:"Anthropic SDK",code:Jv(t,i,a)}]}function NS(t,r,i){const a=[{id:"curl",label:"curl",language:"shell",code:Zv(t,r,i)},{id:"openai-python",label:"Python",language:"python",code:bS(t,r,i)},{id:"openai-js",label:"JavaScript",language:"javascript",code:Xv(t,r,i)}];return i==="anthropic-messages"&&a.push({id:"anthropic",label:"Anthropic SDK",language:"javascript",code:Jv(t,r)}),a}function UC(t,r,i,a,u){const d=Yv(r,i),m=NS(t,d,a);return a==="openai-images"||m.push({id:"codex",label:"Codex",language:"toml",code:jS(t,u??"@preset/<your-preset>")},{id:"claude-code",label:"Claude Code",language:"shell",code:TS(t,d)},{id:"openai-compatible",label:"Cursor / OpenAI-compatible",language:"text",code:RS(t,d)}),m}function IS(){var r;const t=qc();return xS((r=t.data)==null?void 0:r.publicUrl,window.location.origin)}function MS(){const t=pv();return async r=>{await cv(r)?t("Copied"):t("Could not copy to the clipboard","danger")}}function BC(t,r,i){return{label:"Copy model id",onSelect:()=>void t(Yv(r,i))}}function HC({value:t,label:r}){const i=MS();return f.jsx($o,{label:r,size:"sm",className:"gc-copy-id",onClick:a=>{a.stopPropagation(),i(t)},children:f.jsx(ut.copy,{size:13})})}function Bp({className:t}){const r=SS(IS());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(Dc,{iconOnly:!0,value:r,label:"Copy the gateway API URL",className:"gc-endpoint__copy"})]})}const eg="https://antseed.com/docs/gateway",OS=O.lazy(()=>Ue(()=>import("./Migrate-I3FULNOQ.js"),[]));function dc({to:t="overview",tagged:r,size:i=26}){const a=f.jsxs(f.Fragment,{children:[f.jsx(s2,{height:i,className:"gc-brand__full"}),f.jsx(a2,{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:_a(t),onClick:Hc(t),"aria-label":"Antseed console home",children:a})}const fc="No authorized wallet: nobody can withdraw funds or claim ANTS rewards";function LS(){const{me:t,workspace:r,setWorkspaceId:i}=ir(),{missingOperator:a,currentMissingOperator:u}=_v(),d=u&&f.jsx("span",{className:"gc-attention",role:"img","aria-label":fc,title:fc});return t.workspaces.length<=1?f.jsxs("span",{className:"gc-ws",title:"Workspace","data-tour":"workspace",children:[f.jsx(ut.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(ut.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(ut.down,{size:14,className:"gc-ws__chevron"})]})}function AS(t,r){return t!=="wallet"?null:r.currentMissingOperator?fc:r.withdrawable.count>0?`${r.withdrawable.count} channel${r.withdrawable.count===1?"":"s"} ready to withdraw`:null}function Hp({current:t,onNavigate:r}){const{viewer:i}=ir(),a=_v(),u=w2(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=ut[v.id]??ut.overview;return f.jsxs("a",{href:_a(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=>{Hc(v.id)(h),r==null||r()},children:[f.jsx(g,{size:16}),f.jsx("span",{children:v.label}),(()=>{const h=AS(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 Wp={system:"System",dark:"Dark",light:"Light"},DS={system:"dark",dark:"light",light:"system"},FS={system:ut.monitor,dark:ut.moon,light:ut.sun};function tg(){const[t,r]=b2(),i=DS[t],a=FS[t];return f.jsx($o,{className:"gc-topbar__icon",label:`Color theme: ${Wp[t]}. Switch to ${Wp[i]}.`,onClick:()=>r(i),children:f.jsx(a,{size:16})})}function $S(){const t=rr();return async()=>{try{await fe.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 US({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 N,L;if(!u)return;const x=E=>{var I;(I=m.current)!=null&&I.contains(E.target)||d(!1)},C=E=>{var I;E.key==="Escape"&&(d(!1),(I=v.current)==null||I.focus())};return document.addEventListener("mousedown",x),document.addEventListener("keydown",C),(L=(N=m.current)==null?void 0:N.querySelector('[role="menuitem"]'))==null||L.focus(),()=>{document.removeEventListener("mousedown",x),document.removeEventListener("keydown",C)}},[u]);const g=x=>()=>{d(!1),x()},h=Uc[a.member.orgRole],w=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:w})]}),f.jsxs("button",{type:"button",role:"menuitem",className:"gc-account__item",onClick:g(t),children:[f.jsx(ut.shield,{size:15}),"Account and sign-in"]}),f.jsxs("button",{type:"button",role:"menuitem",className:"gc-account__item",onClick:g(r),children:[f.jsx(ut.compass,{size:15}),"Take the tour"]}),f.jsxs("a",{role:"menuitem",className:"gc-account__item",href:eg,target:"_blank",rel:"noreferrer",onClick:()=>d(!1),children:[f.jsx(ut.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(ut.logout,{size:15}),"Sign out"]})]})]})}function Vp(){var r;const t=(r=qc().data)==null?void 0:r.version;return t?f.jsxs("p",{className:"gc-version",children:["Antseed v",t]}):null}function BS({page:t,children:r}){const[i,a]=O.useState(!1),[u,d]=O.useState(()=>new URLSearchParams(window.location.search).get("account")==="1"),m=$S(),v=Bc().page==="migrate",g=v?null:t,{me:h,viewer:w}=ir();return O.useEffect(()=>{if(v||Lx(h.member.id))return;const x=window.setTimeout(()=>Fp(w,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($o,{label:"Open menu",className:"gc-topbar__menu gc-topbar__icon",onClick:()=>a(!0),children:f.jsx(ut.menu,{size:16})}),f.jsx(dc,{}),f.jsx("span",{className:"gc-topbar__sep","aria-hidden":"true",children:"/"}),f.jsx(LS,{}),f.jsx("div",{className:"gc-topbar__spacer"}),f.jsx(Bp,{className:"gc-endpoint--inline"}),f.jsx("a",{className:"gc-topbar__link",href:eg,target:"_blank",rel:"noreferrer",children:"Docs"}),f.jsx(tg,{}),f.jsx(US,{onAccount:()=>d(!0),onTour:()=>Fp(w,h.member.id),onSignOut:()=>void m()})]}),f.jsx("div",{className:"gc-topbar__strip",children:f.jsx(Bp,{})})]}),f.jsxs("div",{className:"gc-body",children:[f.jsxs("aside",{className:"gc-rail",children:[f.jsx(Hp,{current:g}),f.jsx(Vp,{})]}),f.jsx("main",{id:"gc-main",className:"gc-main",tabIndex:-1,children:v?f.jsx(O.Suspense,{fallback:f.jsx(Ni,{rows:6}),children:f.jsx(OS,{})}):f.jsxs(f.Fragment,{children:[f.jsx(wS,{}),r]})})]})]}),f.jsxs(i2,{isOpen:i,onClose:()=>a(!1),side:"left",title:f.jsx(dc,{to:null}),className:"gc-mobile-nav",children:[f.jsx(Hp,{current:g,onNavigate:()=>a(!1)}),f.jsx(Vp,{})]}),f.jsx(fS,{isOpen:u,onClose:()=>d(!1)})]})}const HS=O.lazy(()=>Ue(()=>import("./WalletSignIn-B9g_MY0h.js"),__vite__mapDeps([0,1,2,3,4,5]))),qp={not_invited:"This account has not been invited to this console. Ask an admin for an invite link.",invite_expired:"This invite link has expired. Ask an admin for a new one.",invite_used:"This invite link was already used. Sign in instead.",invalid_token:"This link is not valid. Check that you copied all of it.",setup_complete:"This console is already set up. Sign in instead.",member_disabled:"Your access to this console has been turned off.",unknown_credential:"This passkey or wallet is not registered here.",key_revoked:"This API key has been revoked.",invalid_key:"That API key is not valid.",rate_limited:"Too many attempts. Wait a minute and try again.",key_expired:"This API key has expired.",not_linked:"This account is not linked to a member yet. Sign in another way and link it from your profile, or use your invite link.",invalid_enrollment:"This sign-up link has expired. Open your invite link again, or ask for a new one.",unauthenticated:"Sign in first.",oidc_denied:"Single sign-on was cancelled.",oidc_state:"The single sign-on attempt expired. Try again.",oidc_failed:"Single sign-on could not be verified. Try again, or use another sign-in method.",oidc_unavailable:"The single sign-on provider could not be reached. Try again later.",reauth_required:"Linking a sign-in provider needs a fresh sign-in. Go back to the console, confirm it is you under Your sign-in methods, then link it again.",access_reauth_required:"Your Cloudflare Access sign-in is more than 5 minutes old. Sign out of Cloudflare Access, sign in again, then link the provider again.",credential_exists:"This single sign-on account is already linked to another member."},WS=new Set(["reauth_required","access_reauth_required","credential_exists"]);function ng(t){return Object.hasOwn(qp,t)?qp[t]:void 0}function ed(t){return Or(t)&&ng(t.code)||ka(t)}function hc({title:t,subtitle:r,children:i}){return f.jsxs("div",{className:"gc-auth",children:[f.jsx("div",{className:"gc-auth__theme",children:f.jsx(tg,{})}),f.jsx("div",{className:"gc-auth__logo",children:f.jsx(dc,{to:null,tagged:!0,size:30})}),f.jsxs(Sc,{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 rg(){const t=rr();return r=>{t.setQueryData(Pe.me,r),an(r.kind==="key"?"key":"overview",{replace:!0})}}function Kp({label:t,run:r,primary:i}){const[a,u]=O.useState(!1),[d,m]=O.useState(null),v=zo();return f.jsxs("div",{className:"gc-stack gc-stack--tight",children:[f.jsx(Oe,{fullWidth:!0,variant:i?"primary":"outline",disabled:a||!v,onClick:async()=>{u(!0),m(null);try{await r()}catch(g){m(cc(g)?uc:ed(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(lt,{tone:"danger",children:d})]})}function VS({enrollment:t,onSignedIn:r}){const[i,a]=O.useState(!1);return i?f.jsx(O.Suspense,{fallback:f.jsx(Oe,{variant:"outline",fullWidth:!0,disabled:!0,children:"Loading wallets…"}),children:f.jsx(HS,{enrollment:t,onSignedIn:r,autoConnect:!0})}):f.jsx(Oe,{variant:"outline",fullWidth:!0,onClick:()=>a(!0),children:"Sign in with a wallet"})}function qS(){return f.jsx("div",{className:"gc-divider",children:f.jsx("span",{children:"or"})})}function KS({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 fe.auth.apiKey(r.trim()))}catch(g){m(ed(g))}finally{u(!1)}},children:[f.jsx(f2,{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(Oe,{type:"submit",variant:"outline",fullWidth:!0,disabled:a||!r.trim(),children:a?"Checking…":"View key usage"}),d&&f.jsx(lt,{tone:"danger",children:d})]})}function QS({mode:t,enrollment:r,onSignedIn:i}){return t==="login"?f.jsx(Kp,{primary:!0,label:"Sign in with a passkey",run:async()=>{const a=await fe.auth.passkeyLoginOptions(),u=await qv({optionsJSON:a});i(await fe.auth.passkeyLoginVerify(u))}}):f.jsx(Kp,{primary:!0,label:"Create a passkey",run:async()=>{const a=await fe.auth.passkeyRegisterOptions(r),u=await Vv({optionsJSON:a});i(await fe.auth.passkeyRegisterVerify(u,r))}})}function ig({config:t,enrollment:r,onSignedIn:i,mode:a}){const u=[];return t.passkey&&u.push(f.jsx(QS,{mode:a,enrollment:r,onSignedIn:i},"passkey")),t.wallet&&u.push(f.jsx(VS,{enrollment:r,onSignedIn:i},"wallet")),t.oidc&&u.push(f.jsxs(Oe,{variant:"outline",fullWidth:!0,href:fe.auth.oidcStartUrl(r),children:["Continue with ",t.oidc.label]},"oidc")),u.length===0?f.jsx(lt,{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 GS(){const t=Vc(),r=rg(),i=new URLSearchParams(window.location.search).get("error");return f.jsxs(hc,{title:"Sign in",subtitle:"Manage keys, budgets, routing and funding for this gateway.",children:[i&&f.jsx(lt,{tone:"danger",action:WS.has(i)?f.jsx(Oe,{size:"sm",variant:"outline",onClick:()=>an("overview?account=1",{replace:!0}),children:"Back to the console"}):void 0,children:ng(i)??"Sign-in did not complete. Try again."}),t.isLoading&&f.jsxs("div",{className:"gc-stack",children:[f.jsx(No,{height:34}),f.jsx(No,{height:34})]}),t.error?f.jsx(lt,{tone:"danger",title:"Could not reach the gateway",children:ka(t.error)}):null,t.data&&f.jsxs("div",{className:"gc-stack",children:[t.data.setupRequired&&f.jsxs(lt,{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(ig,{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(qS,{}),f.jsx(KS,{onSignedIn:r})]})]})]})}function YS({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=rg(),u=Vc(),d=De({queryKey:["enrollment",t,r],queryFn:()=>t==="setup"?fe.auth.setup(r):t==="recover"?fe.request("POST","/auth/recover",{body:{token:r}}):fe.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(hc,{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 ",Uc[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(No,{height:34}),f.jsx(No,{height:34})]}),d.error?f.jsxs("div",{className:"gc-stack",children:[f.jsx(lt,{tone:"danger",children:ed(d.error)}),f.jsx(Oe,{variant:"ghost",onClick:()=>an("login"),children:"Go to sign in"})]}):null,d.data&&u.data&&f.jsxs("div",{className:"gc-stack",children:[f.jsx(ig,{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(hc,{title:m,children:[f.jsx(lt,{tone:"danger",children:"This link is missing its token. Open the full link you were given."}),f.jsx(Oe,{variant:"ghost",onClick:()=>an("login"),children:"Go to sign in"})]})}const wa={overview:()=>Ue(()=>import("./Overview-zEyUG_qA.js"),__vite__mapDeps([8,9,10,11,12,13])),chat:()=>Ue(()=>import("./Chat-DznobJkE.js").then(t=>t.C),__vite__mapDeps([14,2,3,15])),activity:()=>Ue(()=>import("./Activity-BsmDMcni.js"),__vite__mapDeps([16,9,10,11,12,13,17,18,3])),logs:()=>Ue(()=>import("./Logs-CNCQTTeZ.js"),__vite__mapDeps([19,20,21,10,18,3,22,17])),keys:()=>Ue(()=>import("./Keys-CxaYteT3.js"),__vite__mapDeps([23,24,25,17,12,13,26,27,28,29,22,10,18,3,11])),members:()=>Ue(()=>import("./Members-Bme-PLUh.js"),__vite__mapDeps([30,24,25,17,12,13,26,27,29,18,3])),workspaces:()=>Ue(()=>import("./Workspaces-DUn5iA_D.js"),__vite__mapDeps([31,24,25,17,12,13,26,27,29,18,3])),wallet:()=>Ue(()=>import("./Wallet-DggtuX-0.js"),__vite__mapDeps([32,33,4,34,27,18,3,26])),rewards:()=>Ue(()=>import("./Rewards-XyWhpm9Z.js"),__vite__mapDeps([35,33,36,18,3])),providers:()=>Ue(()=>import("./Providers-BxpNjH9s.js"),__vite__mapDeps([37,25,17,12,13,26,27,18,3,38,36,39,24,40,28])),models:()=>Ue(()=>import("./Models-Bt59XWgD.js"),__vite__mapDeps([41,28,13,38,17,26,18,3])),routing:()=>Ue(()=>import("./Routing-Du8GLQCH.js"),__vite__mapDeps([42,24,25,17,12,13,26,27,18,3,28])),presets:()=>Ue(()=>import("./Presets-CoTmwoy_.js"),__vite__mapDeps([39,24,25,17,12,13,26,27,18,3,40])),audit:()=>Ue(()=>import("./Audit-TIDz29y6.js"),__vite__mapDeps([43,21,17,18,3])),settings:()=>Ue(()=>import("./Settings-CvfS7lxA.js"),__vite__mapDeps([44,25,17,12,13,26,27,40,28,18,3]))},og={};for(const t of Object.keys(wa))og[t]=O.lazy(wa[t]);const Qp=wv(window.location.pathname).page;sg(Qp)&&wa[Qp]().catch(()=>{});const Gp=()=>{wa.chat().catch(()=>{})};"requestIdleCallback"in window?window.requestIdleCallback(Gp,{timeout:4e3}):setTimeout(Gp,2e3);const ZS=O.lazy(()=>Ue(()=>import("./KeyHolder-e5NvqLQn.js"),__vite__mapDeps([45,20,21,10,18,3,11]))),XS=new Uw({defaultOptions:{queries:{staleTime:1e4,refetchOnWindowFocus:!1,retry:(t,r)=>!(Or(r)&&r.status>=400&&r.status<500)&&t<2}}});class JS extends O.Component{constructor(){super(...arguments);gu(this,"state",{failed:!1})}static getDerivedStateFromError(i){return{failed:!0,error:i}}render(){return this.state.failed?f.jsx(Xc,{error:this.state.error,title:"This page failed to load",onRetry:()=>this.setState({failed:!1,error:void 0})}):this.props.children}}function sg(t){return $c.some(r=>r.id===t)}function ek({me:t,page:r}){const[i,a]=O.useState(()=>{var C;return((C=jp(t,_2()))==null?void 0:C.id)??null}),u=jp(t,i),d=rr(),m=Bc(),v=C2(m.page,m.rest);O.useEffect(()=>{v&&an(v,{replace:!0})},[v]);const g=O.useMemo(()=>{if(!u)return null;const C=x2({me:t},u.id);return{me:t,workspace:u,workspaceRole:C.workspaceRole,viewer:C,setWorkspaceId:N=>{E2(N),a(N),d.invalidateQueries()}}},[t,u,d]);if(v)return f.jsx("div",{className:"gc-centered",children:f.jsx(Ni,{rows:3})});if(!g)return f.jsx("div",{className:"gc-centered",children:f.jsx(lt,{tone:"warning",title:"No workspace",children:"You are not a member of any workspace yet. Ask an admin to add you."})});const h=sg(r)?r:"overview",w=zc(h,g.viewer),x=og[h];return f.jsx(vv.Provider,{value:g,children:f.jsx(BS,{page:h,children:f.jsx(JS,{children:f.jsx(O.Suspense,{fallback:f.jsx(Ni,{rows:6}),children:w?f.jsx(x,{}):f.jsx(lt,{tone:"warning",title:"Not available",children:"Your role cannot open this page."})})},m.page)})})}function tk({page:t}){const r=V2(),i=Or(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(Ni,{rows:3})}):r.error?f.jsxs("div",{className:"gc-centered gc-stack",children:[f.jsx(Xc,{error:r.error,title:"Could not open the console",onRetry:()=>void r.refetch()}),f.jsx(Oe,{variant:"ghost",onClick:()=>an("login"),children:"Go to sign in"})]}):r.data?r.data.kind==="key"?f.jsx(O.Suspense,{fallback:f.jsx(Ni,{rows:6}),children:f.jsx(ZS,{})}):f.jsx(ek,{me:r.data.me,page:t}):null}function nk(){const t=Bc();return t.page==="login"?f.jsx(GS,{}):t.page==="setup"||t.page==="invite"||t.page==="recover"?f.jsx(YS,{kind:t.page}):f.jsx(tk,{page:t.page})}function rk(){return f.jsx(Bw,{client:XS,children:f.jsx(p2,{children:f.jsx(nk,{})})})}P2();async function ik(){const t=document.getElementById("root");if(!t)throw new Error("#root element is missing");gw.createRoot(t).render(f.jsx(O.StrictMode,{children:f.jsx(rk,{})}))}ik();export{d2 as $,uv as A,Oe as B,n2 as C,rr as D,mk as E,pv as F,Jk as G,tC as H,ut as I,LC as J,Wc as K,Ni as L,NC as M,AC as N,Vk as O,fk as P,RC as Q,Xk as R,pk as S,f2 as T,i2 as U,vk as V,gk as W,I2 as X,Or as Y,c2 as Z,Ue as _,wk as a,S2 as a$,u2 as a0,$S as a1,V2 as a2,dc as a3,Bp as a4,tg as a5,xv as a6,bk as a7,Rp as a8,M2 as a9,cc as aA,lC as aB,kv as aC,xS as aD,zC as aE,yk as aF,MC as aG,PC as aH,mv as aI,EC as aJ,$k as aK,bC as aL,da as aM,Uc as aN,qk as aO,OC as aP,kk as aQ,Sk as aR,IS as aS,NS as aT,Ea as aU,Bc as aV,k2 as aW,Uk as aX,MS as aY,HC as aZ,_k as a_,jk as aa,Ek as ab,lt as ac,qc as ad,DC as ae,FC as af,ka as ag,TC as ah,mw as ai,nC as aj,Ak as ak,iC as al,D2 as am,$2 as an,F2 as ao,Dc as ap,ko as aq,L2 as ar,sC as as,oC as at,Mo as au,rC as av,H2 as aw,aS as ax,lS as ay,uc as az,Kk as b,UC as b$,Yv as b0,$C as b1,zk as b2,eC as b3,Qk as b4,gi as b5,BC as b6,Zk as b7,fC as b8,Bk as b9,uk as bA,Jw as bB,jC as bC,kC as bD,hC as bE,Ii as bF,Ve as bG,fa as bH,lm as bI,Hw as bJ,qw as bK,Yw as bL,Kw as bM,Qw as bN,pt as bO,Xw as bP,fp as bQ,Gw as bR,Gk as bS,_v as bT,IC as bU,Pk as bV,vC as bW,gC as bX,oS as bY,Fk as bZ,_S as b_,Yk as ba,Xx as bb,Jx as bc,cC as bd,Vx as be,e1 as bf,uC as bg,Kv as bh,$o as bi,SC as bj,dC as bk,zc as bl,Hc as bm,_a as bn,_C as bo,pC as bp,Gc as bq,Hx as br,xC as bs,CC as bt,yC as bu,mC as bv,wC as bw,Ow as bx,dp as by,ck as bz,Wk as c,Dk as c0,aC as c1,sk as c2,lw as c3,G2 as c4,Ik as c5,fS as c6,U2 as c7,Mk as c8,Ok as c9,z2 as ca,Rk as cb,Nk as cc,A2 as cd,Tk as ce,Lk as cf,ak as cg,lk as ch,Ac as ci,q0 as cj,m2 as ck,v2 as cl,mc as cm,Pm as cn,Cm as co,km as cp,rn as cq,la as cr,ua as cs,ev as ct,a1 as cu,N0 as cv,l1 as cw,Jt as cx,xk as cy,De as d,fe as e,R2 as f,N2 as g,Ck as h,Fc as i,f as j,hk as k,Xe as l,Ca as m,Xc as n,Hk as o,q2 as p,Pe as q,O as r,sS as s,xm as t,ir as u,sn as v,K2 as w,an as x,O2 as y,qx as z};
|