@abtnode/webapp 1.16.54-beta-20251031-043051-f3b56e3a → 1.17.0-beta-20251101-021648-3f521a7e
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/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/dist/assets/{AdapterDayjs-B30A4e9V.js → AdapterDayjs-BQhqZd8R.js} +1 -1
- package/dist/assets/{Add-BqMKSndg.js → Add-DaNU9Vkn.js} +1 -1
- package/dist/assets/ArrowDropDown-DMPX6uVd.js +1 -0
- package/dist/assets/{Autocomplete-DNyfxOFp.js → Autocomplete-DB_xZW4q.js} +1 -1
- package/dist/assets/{Breadcrumbs-D07iUOi2.js → Breadcrumbs-DzUXRqKQ.js} +1 -1
- package/dist/assets/{ButtonGroup-Dh6lYgZM.js → ButtonGroup-BAvFNy2i.js} +1 -1
- package/dist/assets/{CSSTransition-BfkQpTwd.js → CSSTransition-YK8aX8nK.js} +1 -1
- package/dist/assets/{CallMerge-B-Wn3wH-.js → CallMerge-D_gwsj0k.js} +1 -1
- package/dist/assets/{CardContent-D50ZN2XJ.js → CardContent-BCchlH2G.js} +1 -1
- package/dist/assets/{ChevronLeft-Uf3Zj0ny.js → ChevronLeft-CSCmHm5m.js} +1 -1
- package/dist/assets/{ChevronRight-CqQwaL1d.js → ChevronRight-qIIkSnQ7.js} +1 -1
- package/dist/assets/{Clear-G8IA_JS7.js → Clear-4n0vKAse.js} +1 -1
- package/dist/assets/{DeleteOutline-BVyycjCe.js → DeleteOutline-CoQ7wmqT.js} +1 -1
- package/dist/assets/{Done-C3Xrj0cc.js → Done-Cc4L9Foc.js} +1 -1
- package/dist/assets/{Edit-0Bz5MCrU.js → Edit-BNY88SKu.js} +1 -1
- package/dist/assets/{ErrorOutline-Da9J9PWf.js → ErrorOutline-BzGlqq16.js} +1 -1
- package/dist/assets/{FilterList-Cid-oBR0.js → FilterList-B1C7unqT.js} +1 -1
- package/dist/assets/{Google-zFyeAexf.js → Google-CwyoAMMB.js} +1 -1
- package/dist/assets/{HelpOutline-kYF98cPy.js → HelpOutline-DTDV8qzL.js} +1 -1
- package/dist/assets/{KeyboardArrowDown-PDLBPIxK.js → KeyboardArrowDown-Mi5aUj7A.js} +1 -1
- package/dist/assets/{Launch-Cw0IvqYQ.js → Launch-Bgnt4dnJ.js} +1 -1
- package/dist/assets/{Link-AjRLM7zT.js → Link-DNvDZnMC.js} +1 -1
- package/dist/assets/{ListItemButton-BH7vk_M8.js → ListItemButton-8ftrSfoo.js} +1 -1
- package/dist/assets/{ListSubheader-XzhijlHC.js → ListSubheader-Dtz-xi9-.js} +1 -1
- package/dist/assets/{LoadingButton-DX-iBNkr.js → LoadingButton-C4EStBea.js} +1 -1
- package/dist/assets/{MoreVert-YC-2RtuS.js → MoreVert-B909vYzl.js} +1 -1
- package/dist/assets/{OpenInNew-Cs4iLXNI.js → OpenInNew-Izq7Bt-3.js} +1 -1
- package/dist/assets/{Refresh-4WpQ7G17.js → Refresh-VB_fFdY-.js} +1 -1
- package/dist/assets/{Search-DVAqIV8y.js → Search-DYBL-x4y.js} +1 -1
- package/dist/assets/{Stepper-cPSi1Mx5.js → Stepper-tTKANW81.js} +1 -1
- package/dist/assets/{Switch-7IuDphWe.js → Switch-Bb-rNPtt.js} +1 -1
- package/dist/assets/{TableSearch-CuYawmb9.js → TableSearch-U9rZfIzu.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-DzPH8xLQ.js → ToggleButtonGroup-DllrYs9I.js} +1 -1
- package/dist/assets/{UnfoldMore-BkCizcCL.js → UnfoldMore-CvwQJb-a.js} +1 -1
- package/dist/assets/{Verified-C_RgwaGs.js → Verified-DRT_g89L.js} +1 -1
- package/dist/assets/{VerifiedUser-cla-gxoO.js → VerifiedUser-C11cj6r8.js} +1 -1
- package/dist/assets/{ViewList-Bb5x5Htb.js → ViewList-D4XmJ9U0.js} +1 -1
- package/dist/assets/{_createAggregator-lATQ9S4G.js → _createAggregator-BEnlFxIE.js} +1 -1
- package/dist/assets/{actions-BTuanQTE.js → actions-BeMJBeZS.js} +1 -1
- package/dist/assets/{actions-DHHW8Ne9.js → actions-CQRwSERj.js} +1 -1
- package/dist/assets/{agreement-Dtg6hLTZ.js → agreement-CZn2P4zt.js} +1 -1
- package/dist/assets/api-CFN0QrWp.js +1 -0
- package/dist/assets/{appearance-DW09NETq.js → appearance-pSINhSXc.js} +1 -1
- package/dist/assets/{audit-logs-DBzxIdH4.js → audit-logs-CROZ_WeS.js} +1 -1
- package/dist/assets/{base-chart-mE2yuOdY.js → base-chart-SmGCWPp4.js} +1 -1
- package/dist/assets/{blocklet-Dr_LK1Q2.js → blocklet-DAH77r3I.js} +1 -1
- package/dist/assets/{chain-Dc18Nz_k.js → chain-Cx_Kwvvk.js} +1 -1
- package/dist/assets/{click-to-copy-PtCfJ87M.js → click-to-copy-DUObPiIX.js} +1 -1
- package/dist/assets/cloneDeep-BqrZti_p.js +1 -0
- package/dist/assets/{collapse-DXrrkJjt.js → collapse-XOI3eY05.js} +1 -1
- package/dist/assets/{config-navigation-C2qj2cw-.js → config-navigation-DkbC13Wz.js} +3 -3
- package/dist/assets/{connect-to-CQ8x9XUb.js → connect-to-BBdZysbI.js} +1 -1
- package/dist/assets/{cssMode-BKzDL91g.js → cssMode-C61rzvz6.js} +1 -1
- package/dist/assets/{delete-confirm-B5zJVhDV.js → delete-confirm-DmwS-waR.js} +1 -1
- package/dist/assets/{depsEqual-Dxl6Fkos.js → depsEqual-BKRl_wlt.js} +1 -1
- package/dist/assets/{detail-Qa1bqakf.js → detail-CMFXn2sE.js} +3 -3
- package/dist/assets/{domains-pIwj2yNQ.js → domains-BJ95cum-.js} +1 -1
- package/dist/assets/{download-sLIfOCnR.js → download-CJgs-EUD.js} +1 -1
- package/dist/assets/{edit.svg-BBcWA2Yv.js → edit.svg-CTCbuAl5.js} +1 -1
- package/dist/assets/emotion-cache.browser.esm-B4PDkYd9.js +1 -0
- package/dist/assets/engine-WQwoCQo7.js +1 -0
- package/dist/assets/{freemarker2-HuIW7jf4.js → freemarker2-DecxbyLU.js} +1 -1
- package/dist/assets/{get-safe-url-D_h8kBns.js → get-safe-url-GLo4lMcu.js} +1 -1
- package/dist/assets/getValidReactChildren-DmUPqavH.js +1 -0
- package/dist/assets/{graphqlMode-Dy0N-jd0.js → graphqlMode-RRYdnqJj.js} +2 -2
- package/dist/assets/{handlebars-BiP-Y0Yn.js → handlebars-BLvfXb97.js} +1 -1
- package/dist/assets/{html-xIZVKqOO.js → html-sJ4Nfb5L.js} +1 -1
- package/dist/assets/{html-title-BGLe2_e3.js → html-title-3cSvLxbM.js} +1 -1
- package/dist/assets/{htmlMode-CP4qCSLp.js → htmlMode-BH8IFPfN.js} +1 -1
- package/dist/assets/{iframe-C807ybR2.js → iframe-b7qWsXni.js} +1 -1
- package/dist/assets/{index-BMhMlOF3.js → index-5_DkNrKV.js} +1 -1
- package/dist/assets/{index-xeIZXHWV.js → index-9PkC8D-D.js} +1 -1
- package/dist/assets/{index-DoFlCh-O.js → index-B4qKQt-w.js} +1 -1
- package/dist/assets/{index-dbT-WrDi.js → index-B8gee_2L.js} +1 -1
- package/dist/assets/{index-DIAjkldX.js → index-BCXR4Ftk.js} +1 -1
- package/dist/assets/{index-CnHjhHdP.js → index-BGo2ji7B.js} +1 -1
- package/dist/assets/{index-ZBdt2zLB.js → index-BKazYwLa.js} +1 -1
- package/dist/assets/{index-DoLUCdoo.js → index-BPe78k6O.js} +1 -1
- package/dist/assets/{index-Bq1Ow9Ag.js → index-BTeQyE9h.js} +1 -1
- package/dist/assets/{index-YMUJi64L.js → index-BUXGT_ps.js} +1 -1
- package/dist/assets/{index-Cax6HGSy.js → index-BUsRmWrQ.js} +1 -1
- package/dist/assets/{index-CcbY3K1e.js → index-BdCFcn5n.js} +1 -1
- package/dist/assets/{index-C_WCV7QS.js → index-BpbQbuPw.js} +1 -1
- package/dist/assets/{index-jGiUSwaE.js → index-C4Up6pys.js} +1 -1
- package/dist/assets/{index-BSuv2S-j.js → index-C5x2cR57.js} +2 -2
- package/dist/assets/{index-CUY9KYjX.js → index-C76P2oZA.js} +3 -3
- package/dist/assets/{index-CZle5CbS.js → index-C7u44WUx.js} +1 -1
- package/dist/assets/{index-DfnCJwAx.js → index-C8k-wIkI.js} +1 -1
- package/dist/assets/{index-wvWBQjSc.js → index-CKujShY4.js} +1 -1
- package/dist/assets/{index-BveOElcP.js → index-CQXhp4qK.js} +3 -3
- package/dist/assets/{index-eA_btxYY.js → index-CY-DQJlJ.js} +9 -9
- package/dist/assets/{index-T0ij7gEZ.js → index-CY7IUyTQ.js} +1 -1
- package/dist/assets/{index-zI6sbIgD.js → index-CdTvqOME.js} +1 -1
- package/dist/assets/{index-CFpGjsgX.js → index-CeSdCZbW.js} +3 -3
- package/dist/assets/{index-aDyspHb_.js → index-ClNNfRgL.js} +1 -1
- package/dist/assets/{index-eWsGrR-q.js → index-CnKKagRA.js} +1 -1
- package/dist/assets/{index-Cww9znhR.js → index-CwQXKxtM.js} +1 -1
- package/dist/assets/{index-jRVN_1vm.js → index-D8P50S6m.js} +1 -1
- package/dist/assets/{index-Fs3E_gDS.js → index-D9BFE-KZ.js} +1 -1
- package/dist/assets/{index-BQjC5QVz.js → index-DCku-75F.js} +1 -1
- package/dist/assets/{index-Dea9QPzX.js → index-DEol2fO5.js} +1 -1
- package/dist/assets/{index-DZoHX92P.js → index-DM_ZE9pB.js} +1 -1
- package/dist/assets/{index-C76LlcBP.js → index-DQDzrpet.js} +1 -1
- package/dist/assets/{index-Cq343AIm.js → index-DR4wKA9U.js} +1 -1
- package/dist/assets/{index-VAKOMEgj.js → index-Daqes2Jo.js} +1 -1
- package/dist/assets/{index-DmY-ECSO.js → index-DuXo6h3x.js} +1 -1
- package/dist/assets/{index-C5LYAduR.js → index-DzMtvg-l.js} +1 -1
- package/dist/assets/{index-BfokqgHy.js → index-Dzuc8iT3.js} +2 -2
- package/dist/assets/{index-CfO1ocPd.js → index-R1YPOZ_R.js} +1 -1
- package/dist/assets/{index-C4kLAKHD.js → index-RiT8KfYO.js} +1 -1
- package/dist/assets/{index-DTOWo4jq.js → index-V6W4s-Vq.js} +1 -1
- package/dist/assets/index-aNMEeMCp.js +1 -0
- package/dist/assets/{index-DAP7V0hj.js → index-d0DSkbLN.js} +1 -1
- package/dist/assets/{index-BkVWAwPz.js → index-kdOFyCzK.js} +1 -1
- package/dist/assets/{index-fRxZFZ5g.js → index-qTsCZuXh.js} +3 -3
- package/dist/assets/{index-DUCYys1s.js → index-wAxFAH22.js} +1 -1
- package/dist/assets/{index-B840ZI2-.js → index-yJnNzvvC.js} +1 -1
- package/dist/assets/{index.esm-DzozubHa.js → index.esm-DfXlzNxJ.js} +1 -1
- package/dist/assets/{install-from-url-CgprkeO6.js → install-from-url-C-sswCsg.js} +1 -1
- package/dist/assets/{invitation-BKHc6hH4.js → invitation-DYBpGYHd.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-B-eGi6RZ.js → is-path-prefix-equal-D9JGKIeT.js} +1 -1
- package/dist/assets/{item-lCXo2qau.js → item-B_RGzu57.js} +1 -1
- package/dist/assets/{javascript-Dpm5asP_.js → javascript-G_Ki5rLs.js} +1 -1
- package/dist/assets/{jsonMode-C1BoXm9W.js → jsonMode-CgCjEry4.js} +1 -1
- package/dist/assets/{liquid-DPLK1AAV.js → liquid-8Y_Hjzxa.js} +1 -1
- package/dist/assets/{list-header-C68bt277.js → list-header-BgLs_nU8.js} +1 -1
- package/dist/assets/{lock.svg-CvsvGAq6.js → lock.svg-DKwAmrmM.js} +1 -1
- package/dist/assets/{log-DvrNFWSu.js → log-SquOXmP7.js} +1 -1
- package/dist/assets/{lottie-react.esm-OxE6_tus.js → lottie-react.esm-B4tYA9FY.js} +1 -1
- package/dist/assets/{mdx-3eKvkGDE.js → mdx-CejS69kk.js} +1 -1
- package/dist/assets/{memory-CA11HykX.js → memory-Cuur0WuU.js} +1 -1
- package/dist/assets/{metric-DmeCDHRO.js → metric-D7ZLfEZL.js} +1 -1
- package/dist/assets/omit-B6Em65Pi.js +1 -0
- package/dist/assets/{overview-Ccocwg3J.js → overview-Dit0jZd_.js} +1 -1
- package/dist/assets/{permission-B-96KXQR.js → permission-DCAf_gW3.js} +1 -1
- package/dist/assets/{preference-D8eTwplp.js → preference-USV6ZnpJ.js} +3 -3
- package/dist/assets/{python-OBbKDfQA.js → python-9xl8LFOF.js} +1 -1
- package/dist/assets/{raf-schd.esm-Y4eP19zD.js → raf-schd.esm-DOQwQgek.js} +1 -1
- package/dist/assets/{razor-CtidL9Xi.js → razor-Bh3jB7rP.js} +1 -1
- package/dist/assets/{rotate-session-key-BxXPHSLd.js → rotate-session-key-C0GGERLw.js} +1 -1
- package/dist/assets/{runtime-Dcq9x2vY.js → runtime-a63NycI4.js} +1 -1
- package/dist/assets/schema-DILw2ZhE.js +1 -0
- package/dist/assets/sdk-CrF6oAGx.js +1 -0
- package/dist/assets/{service-SNwwJvI1.js → service-p6Kz-Ebl.js} +1 -1
- package/dist/assets/{shorten-label-Rku853mZ.js → shorten-label-ByAddcRT.js} +1 -1
- package/dist/assets/{simple-select-D-ySkAbw.js → simple-select-54E6Mx7r.js} +1 -1
- package/dist/assets/{spaces-BltTDIy4.js → spaces-D11mVhTA.js} +1 -1
- package/dist/assets/{status-vKMdrOM1.js → status-BOrqQCOU.js} +1 -1
- package/dist/assets/{status-CeJnlK1J.js → status-DN8224TB.js} +1 -1
- package/dist/assets/{switch-control-C_8dVEZN.js → switch-control-DIsd4bYh.js} +1 -1
- package/dist/assets/{table-icons-rcNxsEUa.js → table-icons-DE8O65AZ.js} +1 -1
- package/dist/assets/{team-Bz9weh46.js → team-D5YTqCCQ.js} +1 -1
- package/dist/assets/{toLower-Cg3LtCaI.js → toLower-BLHPf6nS.js} +1 -1
- package/dist/assets/toUpper-BO6HuJgG.js +1 -0
- package/dist/assets/{traffic-0lJHbFOR.js → traffic-D2tJoibq.js} +1 -1
- package/dist/assets/{tsMode-CU1vw8A1.js → tsMode-BP4eh0TA.js} +1 -1
- package/dist/assets/{typescript-A4RDRVZM.js → typescript-CO8UB8Ph.js} +1 -1
- package/dist/assets/{url-evaluation-D_cqsSRO.js → url-evaluation-CRBdYFML.js} +1 -1
- package/dist/assets/{url-join-CI8YXAz9.js → url-join-D0OB7xve.js} +1 -1
- package/dist/assets/{use-mobile-DzC9s-qv.js → use-mobile-CplJbK7t.js} +1 -1
- package/dist/assets/{use-mobile-BW2lFrSI.js → use-mobile-ENQw9KmE.js} +1 -1
- package/dist/assets/{useAsync-wJrllzXI.js → useAsync-ng0xVRWA.js} +1 -1
- package/dist/assets/{useAsyncRetry-JUvvbo59.js → useAsyncRetry-DQznqjsq.js} +1 -1
- package/dist/assets/{useLocalStorage-C-HC7dIw.js → useLocalStorage-BfHKsdtC.js} +1 -1
- package/dist/assets/{useThemeProps-xP0TFqAL.js → useThemeProps-BqRQljgd.js} +1 -1
- package/dist/assets/{util-DilHH-kW.js → util-BrkrFgTY.js} +1 -1
- package/dist/assets/{wait-container-0kquAukH.js → wait-container-CaFqAYZl.js} +1 -1
- package/dist/assets/{without-wallet-DRpZoYCR.js → without-wallet-DT7YhPXQ.js} +1 -1
- package/dist/assets/wrap-locale-BucbsnFR.js +1 -0
- package/dist/assets/{xml-C21FWWuV.js → xml-sQyE-LAY.js} +1 -1
- package/dist/assets/{yaml-Bw6oRx8U.js → yaml-DVrLI7b8.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/service-worker.js +1 -1
- package/package.json +1 -1
- package/dist/assets/ArrowDropDown-CQnQ9y90.js +0 -1
- package/dist/assets/api-2w3ONNYp.js +0 -1
- package/dist/assets/cloneDeep-ClEOqAIj.js +0 -1
- package/dist/assets/emotion-cache.browser.esm-CHE9Rgf-.js +0 -1
- package/dist/assets/engine-V2gGW1_S.js +0 -1
- package/dist/assets/getValidReactChildren-2xps4qz5.js +0 -1
- package/dist/assets/index-ChGhj4bz.js +0 -1
- package/dist/assets/omit-DyDj32t1.js +0 -1
- package/dist/assets/schema-B9mRrKya.js +0 -1
- package/dist/assets/sdk-COh1FZhu.js +0 -1
- package/dist/assets/toUpper-RY2q0HbV.js +0 -1
- package/dist/assets/wrap-locale-CEzbOAhF.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as I,fI as al,c1 as Oo,fJ as ll,fs as _o,fK as cl,cS as Mo,aF as ur,j as a,fL as ul,fM as fl,cs as Tt,fN as or,ex as Qe,fO as Xs,fP as dl,fQ as pl,fR as ml,fS as hl,fT as gl,fU as Qs,fV as bl,fW as eo,fX as yl,fY as xl,fZ as vl,f_ as wl,ey as to,f$ as Js,ez as Cl,cF as qn,eA as jl,dC as Sl,g0 as Tl,g1 as El,V as Ee,bn as Fe,aP as ut,g2 as ei,H as Me,X as qe,o as b,f as ro,eM as ti,f3 as ri,n as xt,K as q,bU as kl,dJ as Pl,bv as Il,au as ft,g3 as ni,S as Sr,bk as Tr,g4 as oi,a_ as Rl,$ as Je,t as lt,b1 as Dl,dG as $e,aU as Nt,E as no,fc as Al,g5 as Ol,g6 as _l,g7 as Ml,D as Lr,T as ke,bg as oo,a3 as rr,g8 as Ll,U as St,bX as Vt,bY as zt,cg as si,dM as tt,eY as ae,b_ as Nl,b8 as _e,da as Er,d4 as ii,b$ as dt,c0 as Rt,Q as Pt,dI as ai,d7 as Bl,g9 as Nr,ga as li,bz as it,bf as Ue,O as sr,bp as Fl,P as $n,as as ci,dE as ql,gb as kr,gc as $l,at as ir,v as Ve,C as bt,gd as Ul,h as Un,aW as Vl,w as zl,x as Wl,s as Ke,p as fr,ac as dr,bA as Ft,ge as Kl,dD as Hl,dk as Yl,aH as gt,ay as yt,dv as Gl,gf as Zl,eB as Xl,gg as ui,gh as Pr,gi as Ql,dF as ar,b as Et,W as so,dH as Jl,cr as fi,z as ec,br as io,bs as di,bt as ao,dm as hr,aD as tc,fH as pi,N as lr,aS as rc,gj as mi,aE as nc,a8 as oc,gk as sc,cW as hi,gl as ic,bw as Lo,y as ac,gm as lc,bC as cc,R as uc,M as fc}from"./index-BfokqgHy.js";import{A as qt}from"./Add-BqMKSndg.js";import{V as dc}from"./ViewList-Bb5x5Htb.js";import{c as pc,H as lo,g as mc}from"./index-CnHjhHdP.js";import{v as No}from"./index-DIAjkldX.js";import{u as He}from"./team-Bz9weh46.js";import{u as gi}from"./blocklet-Dr_LK1Q2.js";import{S as bi}from"./Search-DVAqIV8y.js";import{y as Br}from"./index-zI6sbIgD.js";import{u as hc,C as Zt}from"./index.esm-DzozubHa.js";import{S as gc}from"./Google-zFyeAexf.js";import{A as bc,a as gr}from"./Autocomplete-DNyfxOFp.js";import{U as yc}from"./UnfoldMore-BkCizcCL.js";import{P as It}from"./permission-B-96KXQR.js";import{C as Fr}from"./click-to-copy-PtCfJ87M.js";import{s as vt,g as xc,S as vc,u as mt,a as yi,b as pr,c as xi,d as qr,e as vi,f as co,P as wi,D as Ci,h as Ir,M as tr,i as ji,j as Bo,k as nr,v as wc,l as Cc,m as Fo,n as jc,o as Sc,p as Tc,q as Ec,C as kc,r as Pc,t as Rr,w as Lt,x as Dr,y as qo,z as $o,A as Ic,T as Rc,B as uo,E as Dc,F as Ac,G as Oc,H as _c,I as Mc,J as Lc,K as Nc,L as br,N as Bt,O as Si,Q as Bc,V as Vn,R as Ti,U as Fc,W as Uo,X as qc,Y as $c,Z as Uc,_ as Vc,$ as zc,a0 as Wc}from"./AdapterDayjs-B30A4e9V.js";import{u as rt}from"./useThemeProps-xP0TFqAL.js";import{a as Vo,b as Kc,t as Hc,T as Yc}from"./html-title-BGLe2_e3.js";import{v as Ye}from"./index-Bq1Ow9Ag.js";import{V as Gc}from"./Verified-C_RgwaGs.js";import{D as Zc}from"./DeleteOutline-BVyycjCe.js";import{E as zo}from"./ErrorOutline-Da9J9PWf.js";import{N as Xc}from"./index-C4kLAKHD.js";import{R as Ei,a as jr,D as Qc}from"./url-evaluation-D_cqsSRO.js";import{b as zn}from"./sdk-COh1FZhu.js";import{u as Jc}from"./index-eWsGrR-q.js";import{u as ki}from"./use-mobile-BW2lFrSI.js";import{A as eu}from"./actions-BTuanQTE.js";import{S as tu}from"./shorten-label-Rku853mZ.js";import{U as Yr}from"./ua-parser-DP5omx3I.js";const ru=pc(I.useLayoutEffect);var Wo={},Ko;function nu(){return Ko||(Ko=1,function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(d){try{return d.defaultView&&d.defaultView.frameElement||null}catch{return null}}var t=function(d){for(var p=d,x=e(p);x;)p=x.ownerDocument,x=e(p);return p}(window.document),r=[],n=null,o=null;function c(d){this.time=d.time,this.target=d.target,this.rootBounds=j(d.rootBounds),this.boundingClientRect=j(d.boundingClientRect),this.intersectionRect=j(d.intersectionRect||C()),this.isIntersecting=!!d.intersectionRect;var p=this.boundingClientRect,x=p.width*p.height,T=this.intersectionRect,w=T.width*T.height;x?this.intersectionRatio=Number((w/x).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function s(d,p){var x=p||{};if(typeof d!="function")throw new Error("callback must be a function");if(x.root&&x.root.nodeType!=1&&x.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=i(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=d,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(x.rootMargin),this.thresholds=this._initThresholds(x.threshold),this.root=x.root||null,this.rootMargin=this._rootMarginValues.map(function(T){return T.value+T.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(d,p){!d||!p?o=C():o=S(d,p),r.forEach(function(x){x._checkForIntersections()})}),n},s._resetCrossOriginUpdater=function(){n=null,o=null},s.prototype.observe=function(d){var p=this._observationTargets.some(function(x){return x.element==d});if(!p){if(!(d&&d.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:d,entry:null}),this._monitorIntersections(d.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(d){this._observationTargets=this._observationTargets.filter(function(p){return p.element!=d}),this._unmonitorIntersections(d.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var d=this._queuedEntries.slice();return this._queuedEntries=[],d},s.prototype._initThresholds=function(d){var p=d||[0];return Array.isArray(p)||(p=[p]),p.sort().filter(function(x,T,w){if(typeof x!="number"||isNaN(x)||x<0||x>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return x!==w[T-1]})},s.prototype._parseRootMargin=function(d){var p=d||"0px",x=p.split(/\s+/).map(function(T){var w=/^(-?\d*\.?\d+)(px|%)$/.exec(T);if(!w)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(w[1]),unit:w[2]}});return x[1]=x[1]||x[0],x[2]=x[2]||x[0],x[3]=x[3]||x[1],x},s.prototype._monitorIntersections=function(d){var p=d.defaultView;if(p&&this._monitoringDocuments.indexOf(d)==-1){var x=this._checkForIntersections,T=null,w=null;this.POLL_INTERVAL?T=p.setInterval(x,this.POLL_INTERVAL):(u(p,"resize",x,!0),u(d,"scroll",x,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in p&&(w=new p.MutationObserver(x),w.observe(d,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(d),this._monitoringUnsubscribes.push(function(){var D=d.defaultView;D&&(T&&D.clearInterval(T),f(D,"resize",x,!0)),f(d,"scroll",x,!0),w&&w.disconnect()});var k=this.root&&(this.root.ownerDocument||this.root)||t;if(d!=k){var E=e(d);E&&this._monitorIntersections(E.ownerDocument)}}},s.prototype._unmonitorIntersections=function(d){var p=this._monitoringDocuments.indexOf(d);if(p!=-1){var x=this.root&&(this.root.ownerDocument||this.root)||t,T=this._observationTargets.some(function(E){var D=E.element.ownerDocument;if(D==d)return!0;for(;D&&D!=x;){var N=e(D);if(D=N&&N.ownerDocument,D==d)return!0}return!1});if(!T){var w=this._monitoringUnsubscribes[p];if(this._monitoringDocuments.splice(p,1),this._monitoringUnsubscribes.splice(p,1),w(),d!=x){var k=e(d);k&&this._unmonitorIntersections(k.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var d=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var p=0;p<d.length;p++)d[p]()},s.prototype._checkForIntersections=function(){if(!(!this.root&&n&&!o)){var d=this._rootIsInDom(),p=d?this._getRootRect():C();this._observationTargets.forEach(function(x){var T=x.element,w=v(T),k=this._rootContainsTarget(T),E=x.entry,D=d&&k&&this._computeTargetAndRootIntersection(T,w,p),N=null;this._rootContainsTarget(T)?(!n||this.root)&&(N=p):N=C();var B=x.entry=new c({time:l(),target:T,boundingClientRect:w,rootBounds:N,intersectionRect:D});E?d&&k?this._hasCrossedThreshold(E,B)&&this._queuedEntries.push(B):E&&E.isIntersecting&&this._queuedEntries.push(B):this._queuedEntries.push(B)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(d,p,x){if(window.getComputedStyle(d).display!="none"){for(var T=p,w=h(d),k=!1;!k&&w;){var E=null,D=w.nodeType==1?window.getComputedStyle(w):{};if(D.display=="none")return null;if(w==this.root||w.nodeType==9)if(k=!0,w==this.root||w==t)n&&!this.root?!o||o.width==0&&o.height==0?(w=null,E=null,T=null):E=o:E=x;else{var N=h(w),B=N&&v(N),W=N&&this._computeTargetAndRootIntersection(N,B,x);B&&W?(w=N,E=S(B,W)):(w=null,T=null)}else{var oe=w.ownerDocument;w!=oe.body&&w!=oe.documentElement&&D.overflow!="visible"&&(E=v(w))}if(E&&(T=y(E,T)),!T)break;w=w&&h(w)}return T}},s.prototype._getRootRect=function(){var d;if(this.root&&!m(this.root))d=v(this.root);else{var p=m(this.root)?this.root:t,x=p.documentElement,T=p.body;d={top:0,left:0,right:x.clientWidth||T.clientWidth,width:x.clientWidth||T.clientWidth,bottom:x.clientHeight||T.clientHeight,height:x.clientHeight||T.clientHeight}}return this._expandRectByRootMargin(d)},s.prototype._expandRectByRootMargin=function(d){var p=this._rootMarginValues.map(function(T,w){return T.unit=="px"?T.value:T.value*(w%2?d.width:d.height)/100}),x={top:d.top-p[0],right:d.right+p[1],bottom:d.bottom+p[2],left:d.left-p[3]};return x.width=x.right-x.left,x.height=x.bottom-x.top,x},s.prototype._hasCrossedThreshold=function(d,p){var x=d&&d.isIntersecting?d.intersectionRatio||0:-1,T=p.isIntersecting?p.intersectionRatio||0:-1;if(x!==T)for(var w=0;w<this.thresholds.length;w++){var k=this.thresholds[w];if(k==x||k==T||k<x!=k<T)return!0}},s.prototype._rootIsInDom=function(){return!this.root||g(t,this.root)},s.prototype._rootContainsTarget=function(d){var p=this.root&&(this.root.ownerDocument||this.root)||t;return g(p,d)&&(!this.root||p==d.ownerDocument)},s.prototype._registerInstance=function(){r.indexOf(this)<0&&r.push(this)},s.prototype._unregisterInstance=function(){var d=r.indexOf(this);d!=-1&&r.splice(d,1)};function l(){return window.performance&&performance.now&&performance.now()}function i(d,p){var x=null;return function(){x||(x=setTimeout(function(){d(),x=null},p))}}function u(d,p,x,T){typeof d.addEventListener=="function"?d.addEventListener(p,x,T):typeof d.attachEvent=="function"&&d.attachEvent("on"+p,x)}function f(d,p,x,T){typeof d.removeEventListener=="function"?d.removeEventListener(p,x,T):typeof d.detachEvent=="function"&&d.detachEvent("on"+p,x)}function y(d,p){var x=Math.max(d.top,p.top),T=Math.min(d.bottom,p.bottom),w=Math.max(d.left,p.left),k=Math.min(d.right,p.right),E=k-w,D=T-x;return E>=0&&D>=0&&{top:x,bottom:T,left:w,right:k,width:E,height:D}||null}function v(d){var p;try{p=d.getBoundingClientRect()}catch{}return p?(p.width&&p.height||(p={top:p.top,right:p.right,bottom:p.bottom,left:p.left,width:p.right-p.left,height:p.bottom-p.top}),p):C()}function C(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function j(d){return!d||"x"in d?d:{top:d.top,y:d.top,bottom:d.bottom,left:d.left,x:d.left,right:d.right,width:d.width,height:d.height}}function S(d,p){var x=p.top-d.top,T=p.left-d.left;return{top:x,left:T,height:p.height,width:p.width,bottom:x+p.height,right:T+p.width}}function g(d,p){for(var x=p;x;){if(x==d)return!0;x=h(x)}return!1}function h(d){var p=d.parentNode;return d.nodeType==9&&d!=t?e(d):(p&&p.assignedSlot&&(p=p.assignedSlot.parentNode),p&&p.nodeType==11&&p.host?p.host:p)}function m(d){return d&&d.nodeType===9}window.IntersectionObserver=s,window.IntersectionObserverEntry=c}()),Wo}nu();function ou(e,t){var r={},n=r.callback,o=al(r,["callback"]),c=Oo(I.useState(),2),s=c[0],l=c[1],i=Oo(I.useState(),2),u=i[0],f=i[1];return ll(function(){var y=Array.isArray(e)?e:[e],v=y.map(function(j){return _o(j)}).filter(Boolean);if(v.length){var C=new IntersectionObserver(function(j){var S,g;try{for(var h=cl(j),m=h.next();!m.done;m=h.next()){var d=m.value;f(d.intersectionRatio),l(d.isIntersecting),n?.(d)}}catch(p){S={error:p}}finally{try{m&&!m.done&&(g=h.return)&&g.call(h)}finally{if(S)throw S.error}}},Mo(Mo({},o),{root:_o(void 0)}));return v.forEach(function(j){return C.observe(j)}),function(){C.disconnect()}}},[void 0,void 0,n],e),[s,u]}const su=ur(a.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"})),iu=ur(a.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"})),$r=ur([a.jsx("path",{d:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42M13 20.01 4 11V4h7v-.01l9 9z"},"0"),a.jsx("circle",{cx:"6.5",cy:"6.5",r:"1.5"},"1")]),au=ur(a.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"})),lu=ur(a.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})),Pi=e=>I.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.88619 1.875C5.0541 1.875 4.24071 2.12174 3.54885 2.58402C2.857 3.0463 2.31777 3.70336 1.99934 4.47211C1.68092 5.24085 1.5976 6.08676 1.75994 6.90285C1.92227 7.71895 2.32295 8.46858 2.91133 9.05695C3.4997 9.64532 4.24933 10.046 5.06543 10.2083C5.88152 10.3707 6.72743 10.2874 7.49617 9.96893C8.26492 9.65051 8.92198 9.11128 9.38426 8.41942C9.84654 7.72757 10.0933 6.91417 10.0933 6.08209C10.0933 4.9663 9.65003 3.89621 8.86105 3.10723C8.07207 2.31825 7.00198 1.875 5.88619 1.875ZM4.11182 4.30773C4.58242 3.83714 5.22067 3.57276 5.88619 3.57276C6.38249 3.57276 6.86764 3.71993 7.2803 3.99566C7.69295 4.27139 8.01458 4.66329 8.20451 5.12181C8.39443 5.58033 8.44413 6.08487 8.3473 6.57164C8.25048 7.0584 8.01149 7.50552 7.66055 7.85645C7.30962 8.20739 6.8625 8.44638 6.37574 8.5432C5.88897 8.64003 5.38443 8.59033 4.92591 8.40041C4.46739 8.21048 4.07549 7.88885 3.79976 7.4762C3.52403 7.06354 3.37686 6.57839 3.37686 6.08209C3.37686 5.41657 3.64123 4.77832 4.11182 4.30773ZM4.20709 10.8302C3.0913 10.8302 2.02121 11.2735 1.23223 12.0624C0.443246 12.8514 0 13.9215 0 15.0373V17.8358C0 17.9955 0.12947 18.125 0.289179 18.125H1.40858C1.56829 18.125 1.69776 17.9955 1.69776 17.8358V15.0373C1.69776 14.3718 1.96214 13.7335 2.43273 13.2629C2.90332 12.7924 3.54157 12.528 4.20709 12.528H7.5653C7.89483 12.528 8.22113 12.5929 8.52558 12.719C8.83002 12.8451 9.10665 13.0299 9.33966 13.2629C9.57267 13.496 9.75751 13.7726 9.88361 14.077C10.0097 14.3815 10.0746 14.7078 10.0746 15.0373V17.8358C10.0746 17.9955 10.2041 18.125 10.3638 18.125H11.4832C11.6429 18.125 11.7724 17.9955 11.7724 17.8358V15.0373C11.7724 13.9215 11.3291 12.8514 10.5402 12.0624C9.75118 11.2735 8.68109 10.8302 7.5653 10.8302H4.20709Z"}),I.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375}),I.createElement("rect",{x:15.3125,y:14.0625,width:7.5,height:1.875,rx:.9375,transform:"rotate(-90 15.3125 14.0625)"})),Ii=e=>I.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},I.createElement("path",{d:"M1.25 2.7087C1.25 2.24826 1.62326 1.875 2.0837 1.875H14.339C14.7995 1.875 15.1727 2.24826 15.1727 2.7087V9.31574C15.1727 9.77618 14.7995 10.1494 14.339 10.1494C13.8786 10.1494 13.5053 9.77618 13.5053 9.31574V3.54239H2.91739V16.7565H6.53772H8.34788H9.32435C9.78479 16.7565 10.158 17.1297 10.158 17.5902C10.158 18.0506 9.78479 18.4239 9.32435 18.4239H8.34788H2.0837C1.62326 18.4239 1.25 18.0506 1.25 17.5902V2.7087Z"}),I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.21129 7.91935C7.70481 7.91935 7.29422 8.32993 7.29422 8.83641C7.29422 9.34289 7.70481 9.75348 8.21129 9.75348C8.71777 9.75348 9.12836 9.34289 9.12836 8.83641C9.12836 8.32993 8.71777 7.91935 8.21129 7.91935ZM5.62683 8.83641C5.62683 7.40905 6.78393 6.25195 8.21129 6.25195C9.63865 6.25195 10.7957 7.40905 10.7957 8.83641C10.7957 10.2638 9.63865 11.4209 8.21129 11.4209C6.78393 11.4209 5.62683 10.2638 5.62683 8.83641Z"}),I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.62683 13.2133C5.62683 12.7529 6.00009 12.3796 6.46053 12.3796H9.96205C10.4225 12.3796 10.7957 12.7529 10.7957 13.2133C10.7957 13.6737 10.4225 14.047 9.96205 14.047H6.46053C6.00009 14.047 5.62683 13.6737 5.62683 13.2133Z"}),I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6406 11.3125C15.8547 11.3125 16.0503 11.434 16.145 11.626L17.1779 13.7184L19.4876 14.056C19.6994 14.087 19.8753 14.2355 19.9413 14.4391C20.0074 14.6427 19.9521 14.8662 19.7987 15.0156L18.1279 16.643L18.5222 18.9421C18.5584 19.1532 18.4716 19.3665 18.2984 19.4923C18.1252 19.6182 17.8955 19.6347 17.706 19.5351L15.6406 18.4489L13.5753 19.5351C13.3858 19.6347 13.1561 19.6182 12.9829 19.4923C12.8096 19.3665 12.7229 19.1532 12.7591 18.9421L13.1534 16.643L11.4825 15.0156C11.3292 14.8662 11.2739 14.6427 11.3399 14.4391C11.406 14.2355 11.5818 14.087 11.7937 14.056L14.1034 13.7184L15.1362 11.626C15.231 11.434 15.4265 11.3125 15.6406 11.3125ZM15.6406 13.1458L14.9815 14.4813C14.8996 14.6471 14.7414 14.7621 14.5584 14.7889L13.0835 15.0044L14.1503 16.0435C14.283 16.1727 14.3435 16.359 14.3122 16.5416L14.0606 18.0088L15.3788 17.3155C15.5427 17.2293 15.7386 17.2293 15.9025 17.3155L17.2207 18.0088L16.969 16.5416C16.9377 16.359 16.9983 16.1727 17.131 16.0435L18.1978 15.0044L16.7229 14.7889C16.5399 14.7621 16.3817 14.6471 16.2998 14.4813L15.6406 13.1458Z"})),Ri=e=>I.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.88619 1.875C5.0541 1.875 4.24071 2.12174 3.54885 2.58402C2.857 3.0463 2.31777 3.70336 1.99934 4.47211C1.68092 5.24085 1.5976 6.08676 1.75994 6.90285C1.92227 7.71895 2.32295 8.46858 2.91133 9.05695C3.4997 9.64532 4.24933 10.046 5.06543 10.2083C5.88152 10.3707 6.72743 10.2874 7.49617 9.96893C8.26492 9.65051 8.92198 9.11128 9.38426 8.41942C9.84654 7.72757 10.0933 6.91417 10.0933 6.08209C10.0933 4.9663 9.65003 3.89621 8.86105 3.10723C8.07207 2.31825 7.00198 1.875 5.88619 1.875ZM4.11182 4.30773C4.58242 3.83714 5.22067 3.57276 5.88619 3.57276C6.38249 3.57276 6.86764 3.71993 7.2803 3.99566C7.69295 4.27139 8.01458 4.66329 8.20451 5.12181C8.39443 5.58033 8.44413 6.08487 8.3473 6.57164C8.25048 7.0584 8.01149 7.50552 7.66055 7.85645C7.30962 8.20739 6.8625 8.44638 6.37574 8.5432C5.88897 8.64003 5.38443 8.59033 4.92591 8.40041C4.46739 8.21048 4.07549 7.88885 3.79976 7.4762C3.52403 7.06354 3.37686 6.57839 3.37686 6.08209C3.37686 5.41657 3.64123 4.77832 4.11182 4.30773ZM4.20709 10.8302C3.0913 10.8302 2.02121 11.2735 1.23223 12.0624C0.443246 12.8514 0 13.9215 0 15.0373V17.8358C0 17.9955 0.12947 18.125 0.289179 18.125H1.40858C1.56829 18.125 1.69776 17.9955 1.69776 17.8358V15.0373C1.69776 14.3718 1.96214 13.7335 2.43273 13.2629C2.90332 12.7924 3.54157 12.528 4.20709 12.528H7.5653C7.89483 12.528 8.22113 12.5929 8.52558 12.719C8.83002 12.8451 9.10665 13.0299 9.33966 13.2629C9.57267 13.496 9.75751 13.7726 9.88361 14.077C10.0097 14.3815 10.0746 14.7078 10.0746 15.0373V17.8358C10.0746 17.9955 10.2041 18.125 10.3638 18.125H11.4832C11.6429 18.125 11.7724 17.9955 11.7724 17.8358V15.0373C11.7724 13.9215 11.3291 12.8514 10.5402 12.0624C9.75118 11.2735 8.68109 10.8302 7.5653 10.8302H4.20709Z"}),I.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375})),cu=e=>I.createElement("svg",{width:18,height:19,viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg",...e},I.createElement("g",{clipPath:"url(#clip0)"},I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99997 1.59778C8.19071 1.59778 7.39961 1.83775 6.72673 2.28736C6.05385 2.73697 5.5294 3.37601 5.21971 4.12367C4.91001 4.87134 4.82898 5.69405 4.98686 6.48777C5.14474 7.28149 5.53444 8.01056 6.10668 8.5828C6.67892 9.15504 7.408 9.54474 8.20172 9.70262C8.99544 9.8605 9.81815 9.77947 10.5658 9.46978C11.3135 9.16009 11.9525 8.63564 12.4021 7.96276C12.8517 7.28987 13.0917 6.49878 13.0917 5.68951C13.0917 4.60432 12.6606 3.56357 11.8933 2.79622C11.1259 2.02887 10.0852 1.59778 8.99997 1.59778ZM7.27426 3.9638C7.73195 3.50611 8.35271 3.24899 8.99997 3.24899C9.48266 3.24899 9.95452 3.39212 10.3559 3.66029C10.7572 3.92846 11.07 4.30962 11.2547 4.75556C11.4394 5.20151 11.4878 5.69222 11.3936 6.16563C11.2994 6.63905 11.067 7.07391 10.7257 7.41522C10.3844 7.75654 9.94951 7.98897 9.4761 8.08314C9.00268 8.17731 8.51197 8.12898 8.06603 7.94426C7.62008 7.75954 7.23892 7.44674 6.97075 7.04539C6.70258 6.64405 6.55945 6.1722 6.55945 5.68951C6.55945 5.04224 6.81658 4.42149 7.27426 3.9638ZM7.36691 10.3075C6.28172 10.3075 5.24097 10.7385 4.47362 11.5059C3.70627 12.2732 3.27518 13.314 3.27518 14.3992V17.121C3.27518 17.2763 3.4011 17.4022 3.55643 17.4022H4.64514C4.80047 17.4022 4.92639 17.2763 4.92639 17.121V14.3992C4.92639 13.7519 5.18351 13.1312 5.6412 12.6735C6.09889 12.2158 6.71964 11.9587 7.36691 11.9587H10.633C10.9535 11.9587 11.2709 12.0218 11.567 12.1444C11.8631 12.2671 12.1321 12.4469 12.3588 12.6735C12.5854 12.9001 12.7651 13.1691 12.8878 13.4652C13.0104 13.7613 13.0736 14.0787 13.0736 14.3992V17.121C13.0736 17.2763 13.1995 17.4022 13.3548 17.4022H14.4435C14.5989 17.4022 14.7248 17.2763 14.7248 17.121V14.3992C14.7248 13.314 14.2937 12.2732 13.5263 11.5059C12.759 10.7385 11.7182 10.3075 10.633 10.3075H7.36691Z"})),I.createElement("defs",null,I.createElement("clipPath",{id:"clip0"},I.createElement("rect",{width:18,height:18,transform:"translate(0 0.5)"})))),Di=e=>I.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.25 10C3.25 6.27208 6.27208 3.25 10 3.25C13.7279 3.25 16.75 6.27208 16.75 10C16.75 13.7279 13.7279 16.75 10 16.75C6.27208 16.75 3.25 13.7279 3.25 10ZM10 1.75C5.44365 1.75 1.75 5.44365 1.75 10C1.75 14.5564 5.44365 18.25 10 18.25C14.5563 18.25 18.25 14.5564 18.25 10C18.25 5.44365 14.5563 1.75 10 1.75ZM8.03033 6.96967C7.73744 6.67678 7.26256 6.67678 6.96967 6.96967C6.67678 7.26256 6.67678 7.73744 6.96967 8.03033L11.9697 13.0303C12.2626 13.3232 12.7374 13.3232 13.0303 13.0303C13.3232 12.7374 13.3232 12.2626 13.0303 11.9697L8.03033 6.96967Z"}));var Gr={},Zr,Ho;function uu(){return Ho||(Ho=1,Zr=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Zr}var Xr,Yo;function fu(){if(Yo)return Xr;Yo=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(s,l){try{return[decodeURIComponent(s.join(""))]}catch{}if(s.length===1)return s;l=l||1;var i=s.slice(0,l),u=s.slice(l);return Array.prototype.concat.call([],n(i),n(u))}function o(s){try{return decodeURIComponent(s)}catch{for(var l=s.match(t)||[],i=1;i<l.length;i++)s=n(l,i).join(""),l=s.match(t)||[];return s}}function c(s){for(var l={"%FE%FF":"��","%FF%FE":"��"},i=r.exec(s);i;){try{l[i[0]]=decodeURIComponent(i[0])}catch{var u=o(i[0]);u!==i[0]&&(l[i[0]]=u)}i=r.exec(s)}l["%C2"]="�";for(var f=Object.keys(l),y=0;y<f.length;y++){var v=f[y];s=s.replace(new RegExp(v,"g"),l[v])}return s}return Xr=function(s){if(typeof s!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof s+"`");try{return s=s.replace(/\+/g," "),decodeURIComponent(s)}catch{return c(s)}},Xr}var Qr,Go;function du(){return Go||(Go=1,Qr=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}),Qr}var Jr,Zo;function pu(){return Zo||(Zo=1,Jr=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),c=0;c<n.length;c++){var s=n[c],l=e[s];(o?t.indexOf(s)!==-1:t(s,l,e))&&(r[s]=l)}return r}),Jr}var Xo;function mu(){return Xo||(Xo=1,function(e){const t=uu(),r=fu(),n=du(),o=pu(),c=h=>h==null;function s(h){switch(h.arrayFormat){case"index":return m=>(d,p)=>{const x=d.length;return p===void 0||h.skipNull&&p===null||h.skipEmptyString&&p===""?d:p===null?[...d,[u(m,h),"[",x,"]"].join("")]:[...d,[u(m,h),"[",u(x,h),"]=",u(p,h)].join("")]};case"bracket":return m=>(d,p)=>p===void 0||h.skipNull&&p===null||h.skipEmptyString&&p===""?d:p===null?[...d,[u(m,h),"[]"].join("")]:[...d,[u(m,h),"[]=",u(p,h)].join("")];case"comma":case"separator":return m=>(d,p)=>p==null||p.length===0?d:d.length===0?[[u(m,h),"=",u(p,h)].join("")]:[[d,u(p,h)].join(h.arrayFormatSeparator)];default:return m=>(d,p)=>p===void 0||h.skipNull&&p===null||h.skipEmptyString&&p===""?d:p===null?[...d,u(m,h)]:[...d,[u(m,h),"=",u(p,h)].join("")]}}function l(h){let m;switch(h.arrayFormat){case"index":return(d,p,x)=>{if(m=/\[(\d*)\]$/.exec(d),d=d.replace(/\[\d*\]$/,""),!m){x[d]=p;return}x[d]===void 0&&(x[d]={}),x[d][m[1]]=p};case"bracket":return(d,p,x)=>{if(m=/(\[\])$/.exec(d),d=d.replace(/\[\]$/,""),!m){x[d]=p;return}if(x[d]===void 0){x[d]=[p];return}x[d]=[].concat(x[d],p)};case"comma":case"separator":return(d,p,x)=>{const T=typeof p=="string"&&p.includes(h.arrayFormatSeparator),w=typeof p=="string"&&!T&&f(p,h).includes(h.arrayFormatSeparator);p=w?f(p,h):p;const k=T||w?p.split(h.arrayFormatSeparator).map(E=>f(E,h)):p===null?p:f(p,h);x[d]=k};default:return(d,p,x)=>{if(x[d]===void 0){x[d]=p;return}x[d]=[].concat(x[d],p)}}}function i(h){if(typeof h!="string"||h.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function u(h,m){return m.encode?m.strict?t(h):encodeURIComponent(h):h}function f(h,m){return m.decode?r(h):h}function y(h){return Array.isArray(h)?h.sort():typeof h=="object"?y(Object.keys(h)).sort((m,d)=>Number(m)-Number(d)).map(m=>h[m]):h}function v(h){const m=h.indexOf("#");return m!==-1&&(h=h.slice(0,m)),h}function C(h){let m="";const d=h.indexOf("#");return d!==-1&&(m=h.slice(d)),m}function j(h){h=v(h);const m=h.indexOf("?");return m===-1?"":h.slice(m+1)}function S(h,m){return m.parseNumbers&&!Number.isNaN(Number(h))&&typeof h=="string"&&h.trim()!==""?h=Number(h):m.parseBooleans&&h!==null&&(h.toLowerCase()==="true"||h.toLowerCase()==="false")&&(h=h.toLowerCase()==="true"),h}function g(h,m){m=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},m),i(m.arrayFormatSeparator);const d=l(m),p=Object.create(null);if(typeof h!="string"||(h=h.trim().replace(/^[?#&]/,""),!h))return p;for(const x of h.split("&")){if(x==="")continue;let[T,w]=n(m.decode?x.replace(/\+/g," "):x,"=");w=w===void 0?null:["comma","separator"].includes(m.arrayFormat)?w:f(w,m),d(f(T,m),w,p)}for(const x of Object.keys(p)){const T=p[x];if(typeof T=="object"&&T!==null)for(const w of Object.keys(T))T[w]=S(T[w],m);else p[x]=S(T,m)}return m.sort===!1?p:(m.sort===!0?Object.keys(p).sort():Object.keys(p).sort(m.sort)).reduce((x,T)=>{const w=p[T];return w&&typeof w=="object"&&!Array.isArray(w)?x[T]=y(w):x[T]=w,x},Object.create(null))}e.extract=j,e.parse=g,e.stringify=(h,m)=>{if(!h)return"";m=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},m),i(m.arrayFormatSeparator);const d=w=>m.skipNull&&c(h[w])||m.skipEmptyString&&h[w]==="",p=s(m),x={};for(const w of Object.keys(h))d(w)||(x[w]=h[w]);const T=Object.keys(x);return m.sort!==!1&&T.sort(m.sort),T.map(w=>{const k=h[w];return k===void 0?"":k===null?u(w,m):Array.isArray(k)?k.reduce(p(w),[]).join("&"):u(w,m)+"="+u(k,m)}).filter(w=>w.length>0).join("&")},e.parseUrl=(h,m)=>{m=Object.assign({decode:!0},m);const[d,p]=n(h,"#");return Object.assign({url:d.split("?")[0]||"",query:g(j(h),m)},m&&m.parseFragmentIdentifier&&p?{fragmentIdentifier:f(p,m)}:{})},e.stringifyUrl=(h,m)=>{m=Object.assign({encode:!0,strict:!0},m);const d=v(h.url).split("?")[0]||"",p=e.extract(h.url),x=e.parse(p,{sort:!1}),T=Object.assign(x,h.query);let w=e.stringify(T,m);w&&(w=`?${w}`);let k=C(h.url);return h.fragmentIdentifier&&(k=`#${u(h.fragmentIdentifier,m)}`),`${d}${w}${k}`},e.pick=(h,m,d)=>{d=Object.assign({parseFragmentIdentifier:!0},d);const{url:p,query:x,fragmentIdentifier:T}=e.parseUrl(h,d);return e.stringifyUrl({url:p,query:o(x,m),fragmentIdentifier:T},d)},e.exclude=(h,m,d)=>{const p=Array.isArray(m)?x=>!m.includes(x):(x,T)=>!m(x,T);return e.pick(h,p,d)}}(Gr)),Gr}var en=mu();const Xt=ul,hu={parseNumbers:!1,parseBooleans:!1},gu={skipNull:!1,skipEmptyString:!1},bu=(e,t)=>{var r,n;const{navigateMode:o="push",parseOptions:c,stringifyOptions:s}={},l=Object.assign(Object.assign({},hu),c),i=Object.assign(Object.assign({},gu),s),u=Xt.useLocation(),f=(r=Xt.useHistory)===null||r===void 0?void 0:r.call(Xt),y=(n=Xt.useNavigate)===null||n===void 0?void 0:n.call(Xt),v=fl(),C=I.useRef(typeof e=="function"?e():e||{}),j=I.useMemo(()=>en.parse(u.search,l),[u.search]),S=I.useMemo(()=>Object.assign(Object.assign({},C.current),j),[j]);return[S,Tt(h=>{const m=typeof h=="function"?h(S):h;v(),f&&f[o]({hash:u.hash,search:en.stringify(Object.assign(Object.assign({},j),m),i)||"?"},u.state),y&&y({hash:u.hash,search:en.stringify(Object.assign(Object.assign({},j),m),i)||"?"},{replace:o==="replace",state:u.state})})]};var jt={},Qt={},tn={exports:{}},rn={},Qo;function Ai(){if(Qo)return rn;Qo=1;function e(m){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(m)}function t(m,d,p){return Object.defineProperty(m,"prototype",{writable:!1}),m}function r(m,d){if(!(m instanceof d))throw new TypeError("Cannot call a class as a function")}function n(m,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(d&&d.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),d&&o(m,d)}function o(m,d){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(x,T){return x.__proto__=T,x},o(m,d)}function c(m){var d=i();return function(){var x=u(m),T;if(d){var w=u(this).constructor;T=Reflect.construct(x,arguments,w)}else T=x.apply(this,arguments);return s(this,T)}}function s(m,d){if(d&&(e(d)==="object"||typeof d=="function"))return d;if(d!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l(m)}function l(m){if(m===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m}function i(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function u(m){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},u(m)}var f={},y,v;function C(m,d,p){p||(p=Error);function x(w,k,E){return typeof d=="string"?d:d(w,k,E)}var T=function(w){n(E,w);var k=c(E);function E(D,N,B){var W;return r(this,E),W=k.call(this,x(D,N,B)),W.code=m,W}return t(E)}(p);f[m]=T}function j(m,d){if(Array.isArray(m)){var p=m.length;return m=m.map(function(x){return String(x)}),p>2?"one of ".concat(d," ").concat(m.slice(0,p-1).join(", "),", or ")+m[p-1]:p===2?"one of ".concat(d," ").concat(m[0]," or ").concat(m[1]):"of ".concat(d," ").concat(m[0])}else return"of ".concat(d," ").concat(String(m))}function S(m,d,p){return m.substr(0,d.length)===d}function g(m,d,p){return(p===void 0||p>m.length)&&(p=m.length),m.substring(p-d.length,p)===d}function h(m,d,p){return typeof p!="number"&&(p=0),p+d.length>m.length?!1:m.indexOf(d,p)!==-1}return C("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),C("ERR_INVALID_ARG_TYPE",function(m,d,p){y===void 0&&(y=Wn()),y(typeof m=="string","'name' must be a string");var x;typeof d=="string"&&S(d,"not ")?(x="must not be",d=d.replace(/^not /,"")):x="must be";var T;if(g(m," argument"))T="The ".concat(m," ").concat(x," ").concat(j(d,"type"));else{var w=h(m,".")?"property":"argument";T='The "'.concat(m,'" ').concat(w," ").concat(x," ").concat(j(d,"type"))}return T+=". Received type ".concat(e(p)),T},TypeError),C("ERR_INVALID_ARG_VALUE",function(m,d){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";v===void 0&&(v=or());var x=v.inspect(d);return x.length>128&&(x="".concat(x.slice(0,128),"...")),"The argument '".concat(m,"' ").concat(p,". Received ").concat(x)},TypeError),C("ERR_INVALID_RETURN_VALUE",function(m,d,p){var x;return p&&p.constructor&&p.constructor.name?x="instance of ".concat(p.constructor.name):x="type ".concat(e(p)),"Expected ".concat(m,' to be returned from the "').concat(d,'"')+" function but got ".concat(x,".")},TypeError),C("ERR_MISSING_ARGS",function(){for(var m=arguments.length,d=new Array(m),p=0;p<m;p++)d[p]=arguments[p];y===void 0&&(y=Wn()),y(d.length>0,"At least one arg needs to be specified");var x="The ",T=d.length;switch(d=d.map(function(w){return'"'.concat(w,'"')}),T){case 1:x+="".concat(d[0]," argument");break;case 2:x+="".concat(d[0]," and ").concat(d[1]," arguments");break;default:x+=d.slice(0,T-1).join(", "),x+=", and ".concat(d[T-1]," arguments");break}return"".concat(x," must be specified")},TypeError),rn.codes=f,rn}var nn,Jo;function yu(){if(Jo)return nn;Jo=1;function e(A,F){var G=Object.keys(A);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(A);F&&(H=H.filter(function(X){return Object.getOwnPropertyDescriptor(A,X).enumerable})),G.push.apply(G,H)}return G}function t(A){for(var F=1;F<arguments.length;F++){var G=arguments[F]!=null?arguments[F]:{};F%2?e(Object(G),!0).forEach(function(H){r(A,H,G[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(G)):e(Object(G)).forEach(function(H){Object.defineProperty(A,H,Object.getOwnPropertyDescriptor(G,H))})}return A}function r(A,F,G){return F=s(F),F in A?Object.defineProperty(A,F,{value:G,enumerable:!0,configurable:!0,writable:!0}):A[F]=G,A}function n(A,F){if(!(A instanceof F))throw new TypeError("Cannot call a class as a function")}function o(A,F){for(var G=0;G<F.length;G++){var H=F[G];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(A,s(H.key),H)}}function c(A,F,G){return F&&o(A.prototype,F),Object.defineProperty(A,"prototype",{writable:!1}),A}function s(A){var F=l(A,"string");return m(F)==="symbol"?F:String(F)}function l(A,F){if(m(A)!=="object"||A===null)return A;var G=A[Symbol.toPrimitive];if(G!==void 0){var H=G.call(A,F);if(m(H)!=="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(A)}function i(A,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(F&&F.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),F&&g(A,F)}function u(A){var F=j();return function(){var H=h(A),X;if(F){var _=h(this).constructor;X=Reflect.construct(H,arguments,_)}else X=H.apply(this,arguments);return f(this,X)}}function f(A,F){if(F&&(m(F)==="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y(A)}function y(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function v(A){var F=typeof Map=="function"?new Map:void 0;return v=function(H){if(H===null||!S(H))return H;if(typeof H!="function")throw new TypeError("Super expression must either be null or a function");if(typeof F<"u"){if(F.has(H))return F.get(H);F.set(H,X)}function X(){return C(H,arguments,h(this).constructor)}return X.prototype=Object.create(H.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}),g(X,H)},v(A)}function C(A,F,G){return j()?C=Reflect.construct.bind():C=function(X,_,R){var M=[null];M.push.apply(M,_);var z=Function.bind.apply(X,M),L=new z;return R&&g(L,R.prototype),L},C.apply(null,arguments)}function j(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function S(A){return Function.toString.call(A).indexOf("[native code]")!==-1}function g(A,F){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,X){return H.__proto__=X,H},g(A,F)}function h(A){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(G){return G.__proto__||Object.getPrototypeOf(G)},h(A)}function m(A){"@babel/helpers - typeof";return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},m(A)}var d=or(),p=d.inspect,x=Ai(),T=x.codes.ERR_INVALID_ARG_TYPE;function w(A,F,G){return(G===void 0||G>A.length)&&(G=A.length),A.substring(G-F.length,G)===F}function k(A,F){if(F=Math.floor(F),A.length==0||F==0)return"";var G=A.length*F;for(F=Math.floor(Math.log(F)/Math.log(2));F;)A+=A,F--;return A+=A.substring(0,G-A.length),A}var E="",D="",N="",B="",W={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},oe=10;function te(A){var F=Object.keys(A),G=Object.create(Object.getPrototypeOf(A));return F.forEach(function(H){G[H]=A[H]}),Object.defineProperty(G,"message",{value:A.message}),G}function ge(A){return p(A,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function je(A,F,G){var H="",X="",_=0,R="",M=!1,z=ge(A),L=z.split(`
|
|
1
|
+
import{r as I,fI as al,c1 as Oo,fJ as ll,fs as _o,fK as cl,cS as Mo,aF as ur,j as a,fL as ul,fM as fl,cs as Tt,fN as or,ex as Qe,fO as Xs,fP as dl,fQ as pl,fR as ml,fS as hl,fT as gl,fU as Qs,fV as bl,fW as eo,fX as yl,fY as xl,fZ as vl,f_ as wl,ey as to,f$ as Js,ez as Cl,cF as qn,eA as jl,dC as Sl,g0 as Tl,g1 as El,V as Ee,bn as Fe,aP as ut,g2 as ei,H as Me,X as qe,o as b,f as ro,eM as ti,f3 as ri,n as xt,K as q,bU as kl,dJ as Pl,bv as Il,au as ft,g3 as ni,S as Sr,bk as Tr,g4 as oi,a_ as Rl,$ as Je,t as lt,b1 as Dl,dG as $e,aU as Nt,E as no,fc as Al,g5 as Ol,g6 as _l,g7 as Ml,D as Lr,T as ke,bg as oo,a3 as rr,g8 as Ll,U as St,bX as Vt,bY as zt,cg as si,dM as tt,eY as ae,b_ as Nl,b8 as _e,da as Er,d4 as ii,b$ as dt,c0 as Rt,Q as Pt,dI as ai,d7 as Bl,g9 as Nr,ga as li,bz as it,bf as Ue,O as sr,bp as Fl,P as $n,as as ci,dE as ql,gb as kr,gc as $l,at as ir,v as Ve,C as bt,gd as Ul,h as Un,aW as Vl,w as zl,x as Wl,s as Ke,p as fr,ac as dr,bA as Ft,ge as Kl,dD as Hl,dk as Yl,aH as gt,ay as yt,dv as Gl,gf as Zl,eB as Xl,gg as ui,gh as Pr,gi as Ql,dF as ar,b as Et,W as so,dH as Jl,cr as fi,z as ec,br as io,bs as di,bt as ao,dm as hr,aD as tc,fH as pi,N as lr,aS as rc,gj as mi,aE as nc,a8 as oc,gk as sc,cW as hi,gl as ic,bw as Lo,y as ac,gm as lc,bC as cc,R as uc,M as fc}from"./index-Dzuc8iT3.js";import{A as qt}from"./Add-DaNU9Vkn.js";import{V as dc}from"./ViewList-D4XmJ9U0.js";import{c as pc,H as lo,g as mc}from"./index-BGo2ji7B.js";import{v as No}from"./index-BCXR4Ftk.js";import{u as He}from"./team-D5YTqCCQ.js";import{u as gi}from"./blocklet-DAH77r3I.js";import{S as bi}from"./Search-DYBL-x4y.js";import{y as Br}from"./index-CdTvqOME.js";import{u as hc,C as Zt}from"./index.esm-DfXlzNxJ.js";import{S as gc}from"./Google-CwyoAMMB.js";import{A as bc,a as gr}from"./Autocomplete-DB_xZW4q.js";import{U as yc}from"./UnfoldMore-CvwQJb-a.js";import{P as It}from"./permission-DCAf_gW3.js";import{C as Fr}from"./click-to-copy-DUObPiIX.js";import{s as vt,g as xc,S as vc,u as mt,a as yi,b as pr,c as xi,d as qr,e as vi,f as co,P as wi,D as Ci,h as Ir,M as tr,i as ji,j as Bo,k as nr,v as wc,l as Cc,m as Fo,n as jc,o as Sc,p as Tc,q as Ec,C as kc,r as Pc,t as Rr,w as Lt,x as Dr,y as qo,z as $o,A as Ic,T as Rc,B as uo,E as Dc,F as Ac,G as Oc,H as _c,I as Mc,J as Lc,K as Nc,L as br,N as Bt,O as Si,Q as Bc,V as Vn,R as Ti,U as Fc,W as Uo,X as qc,Y as $c,Z as Uc,_ as Vc,$ as zc,a0 as Wc}from"./AdapterDayjs-BQhqZd8R.js";import{u as rt}from"./useThemeProps-BqRQljgd.js";import{a as Vo,b as Kc,t as Hc,T as Yc}from"./html-title-3cSvLxbM.js";import{v as Ye}from"./index-BTeQyE9h.js";import{V as Gc}from"./Verified-DRT_g89L.js";import{D as Zc}from"./DeleteOutline-CoQ7wmqT.js";import{E as zo}from"./ErrorOutline-BzGlqq16.js";import{N as Xc}from"./index-RiT8KfYO.js";import{R as Ei,a as jr,D as Qc}from"./url-evaluation-CRBdYFML.js";import{b as zn}from"./sdk-CrF6oAGx.js";import{u as Jc}from"./index-CnKKagRA.js";import{u as ki}from"./use-mobile-ENQw9KmE.js";import{A as eu}from"./actions-BeMJBeZS.js";import{S as tu}from"./shorten-label-ByAddcRT.js";import{U as Yr}from"./ua-parser-DP5omx3I.js";const ru=pc(I.useLayoutEffect);var Wo={},Ko;function nu(){return Ko||(Ko=1,function(){if(typeof window!="object")return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype){"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});return}function e(d){try{return d.defaultView&&d.defaultView.frameElement||null}catch{return null}}var t=function(d){for(var p=d,x=e(p);x;)p=x.ownerDocument,x=e(p);return p}(window.document),r=[],n=null,o=null;function c(d){this.time=d.time,this.target=d.target,this.rootBounds=j(d.rootBounds),this.boundingClientRect=j(d.boundingClientRect),this.intersectionRect=j(d.intersectionRect||C()),this.isIntersecting=!!d.intersectionRect;var p=this.boundingClientRect,x=p.width*p.height,T=this.intersectionRect,w=T.width*T.height;x?this.intersectionRatio=Number((w/x).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function s(d,p){var x=p||{};if(typeof d!="function")throw new Error("callback must be a function");if(x.root&&x.root.nodeType!=1&&x.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=i(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=d,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(x.rootMargin),this.thresholds=this._initThresholds(x.threshold),this.root=x.root||null,this.rootMargin=this._rootMarginValues.map(function(T){return T.value+T.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return n||(n=function(d,p){!d||!p?o=C():o=S(d,p),r.forEach(function(x){x._checkForIntersections()})}),n},s._resetCrossOriginUpdater=function(){n=null,o=null},s.prototype.observe=function(d){var p=this._observationTargets.some(function(x){return x.element==d});if(!p){if(!(d&&d.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:d,entry:null}),this._monitorIntersections(d.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(d){this._observationTargets=this._observationTargets.filter(function(p){return p.element!=d}),this._unmonitorIntersections(d.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var d=this._queuedEntries.slice();return this._queuedEntries=[],d},s.prototype._initThresholds=function(d){var p=d||[0];return Array.isArray(p)||(p=[p]),p.sort().filter(function(x,T,w){if(typeof x!="number"||isNaN(x)||x<0||x>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return x!==w[T-1]})},s.prototype._parseRootMargin=function(d){var p=d||"0px",x=p.split(/\s+/).map(function(T){var w=/^(-?\d*\.?\d+)(px|%)$/.exec(T);if(!w)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(w[1]),unit:w[2]}});return x[1]=x[1]||x[0],x[2]=x[2]||x[0],x[3]=x[3]||x[1],x},s.prototype._monitorIntersections=function(d){var p=d.defaultView;if(p&&this._monitoringDocuments.indexOf(d)==-1){var x=this._checkForIntersections,T=null,w=null;this.POLL_INTERVAL?T=p.setInterval(x,this.POLL_INTERVAL):(u(p,"resize",x,!0),u(d,"scroll",x,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in p&&(w=new p.MutationObserver(x),w.observe(d,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(d),this._monitoringUnsubscribes.push(function(){var D=d.defaultView;D&&(T&&D.clearInterval(T),f(D,"resize",x,!0)),f(d,"scroll",x,!0),w&&w.disconnect()});var k=this.root&&(this.root.ownerDocument||this.root)||t;if(d!=k){var E=e(d);E&&this._monitorIntersections(E.ownerDocument)}}},s.prototype._unmonitorIntersections=function(d){var p=this._monitoringDocuments.indexOf(d);if(p!=-1){var x=this.root&&(this.root.ownerDocument||this.root)||t,T=this._observationTargets.some(function(E){var D=E.element.ownerDocument;if(D==d)return!0;for(;D&&D!=x;){var N=e(D);if(D=N&&N.ownerDocument,D==d)return!0}return!1});if(!T){var w=this._monitoringUnsubscribes[p];if(this._monitoringDocuments.splice(p,1),this._monitoringUnsubscribes.splice(p,1),w(),d!=x){var k=e(d);k&&this._unmonitorIntersections(k.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var d=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var p=0;p<d.length;p++)d[p]()},s.prototype._checkForIntersections=function(){if(!(!this.root&&n&&!o)){var d=this._rootIsInDom(),p=d?this._getRootRect():C();this._observationTargets.forEach(function(x){var T=x.element,w=v(T),k=this._rootContainsTarget(T),E=x.entry,D=d&&k&&this._computeTargetAndRootIntersection(T,w,p),N=null;this._rootContainsTarget(T)?(!n||this.root)&&(N=p):N=C();var B=x.entry=new c({time:l(),target:T,boundingClientRect:w,rootBounds:N,intersectionRect:D});E?d&&k?this._hasCrossedThreshold(E,B)&&this._queuedEntries.push(B):E&&E.isIntersecting&&this._queuedEntries.push(B):this._queuedEntries.push(B)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(d,p,x){if(window.getComputedStyle(d).display!="none"){for(var T=p,w=h(d),k=!1;!k&&w;){var E=null,D=w.nodeType==1?window.getComputedStyle(w):{};if(D.display=="none")return null;if(w==this.root||w.nodeType==9)if(k=!0,w==this.root||w==t)n&&!this.root?!o||o.width==0&&o.height==0?(w=null,E=null,T=null):E=o:E=x;else{var N=h(w),B=N&&v(N),W=N&&this._computeTargetAndRootIntersection(N,B,x);B&&W?(w=N,E=S(B,W)):(w=null,T=null)}else{var oe=w.ownerDocument;w!=oe.body&&w!=oe.documentElement&&D.overflow!="visible"&&(E=v(w))}if(E&&(T=y(E,T)),!T)break;w=w&&h(w)}return T}},s.prototype._getRootRect=function(){var d;if(this.root&&!m(this.root))d=v(this.root);else{var p=m(this.root)?this.root:t,x=p.documentElement,T=p.body;d={top:0,left:0,right:x.clientWidth||T.clientWidth,width:x.clientWidth||T.clientWidth,bottom:x.clientHeight||T.clientHeight,height:x.clientHeight||T.clientHeight}}return this._expandRectByRootMargin(d)},s.prototype._expandRectByRootMargin=function(d){var p=this._rootMarginValues.map(function(T,w){return T.unit=="px"?T.value:T.value*(w%2?d.width:d.height)/100}),x={top:d.top-p[0],right:d.right+p[1],bottom:d.bottom+p[2],left:d.left-p[3]};return x.width=x.right-x.left,x.height=x.bottom-x.top,x},s.prototype._hasCrossedThreshold=function(d,p){var x=d&&d.isIntersecting?d.intersectionRatio||0:-1,T=p.isIntersecting?p.intersectionRatio||0:-1;if(x!==T)for(var w=0;w<this.thresholds.length;w++){var k=this.thresholds[w];if(k==x||k==T||k<x!=k<T)return!0}},s.prototype._rootIsInDom=function(){return!this.root||g(t,this.root)},s.prototype._rootContainsTarget=function(d){var p=this.root&&(this.root.ownerDocument||this.root)||t;return g(p,d)&&(!this.root||p==d.ownerDocument)},s.prototype._registerInstance=function(){r.indexOf(this)<0&&r.push(this)},s.prototype._unregisterInstance=function(){var d=r.indexOf(this);d!=-1&&r.splice(d,1)};function l(){return window.performance&&performance.now&&performance.now()}function i(d,p){var x=null;return function(){x||(x=setTimeout(function(){d(),x=null},p))}}function u(d,p,x,T){typeof d.addEventListener=="function"?d.addEventListener(p,x,T):typeof d.attachEvent=="function"&&d.attachEvent("on"+p,x)}function f(d,p,x,T){typeof d.removeEventListener=="function"?d.removeEventListener(p,x,T):typeof d.detachEvent=="function"&&d.detachEvent("on"+p,x)}function y(d,p){var x=Math.max(d.top,p.top),T=Math.min(d.bottom,p.bottom),w=Math.max(d.left,p.left),k=Math.min(d.right,p.right),E=k-w,D=T-x;return E>=0&&D>=0&&{top:x,bottom:T,left:w,right:k,width:E,height:D}||null}function v(d){var p;try{p=d.getBoundingClientRect()}catch{}return p?(p.width&&p.height||(p={top:p.top,right:p.right,bottom:p.bottom,left:p.left,width:p.right-p.left,height:p.bottom-p.top}),p):C()}function C(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function j(d){return!d||"x"in d?d:{top:d.top,y:d.top,bottom:d.bottom,left:d.left,x:d.left,right:d.right,width:d.width,height:d.height}}function S(d,p){var x=p.top-d.top,T=p.left-d.left;return{top:x,left:T,height:p.height,width:p.width,bottom:x+p.height,right:T+p.width}}function g(d,p){for(var x=p;x;){if(x==d)return!0;x=h(x)}return!1}function h(d){var p=d.parentNode;return d.nodeType==9&&d!=t?e(d):(p&&p.assignedSlot&&(p=p.assignedSlot.parentNode),p&&p.nodeType==11&&p.host?p.host:p)}function m(d){return d&&d.nodeType===9}window.IntersectionObserver=s,window.IntersectionObserverEntry=c}()),Wo}nu();function ou(e,t){var r={},n=r.callback,o=al(r,["callback"]),c=Oo(I.useState(),2),s=c[0],l=c[1],i=Oo(I.useState(),2),u=i[0],f=i[1];return ll(function(){var y=Array.isArray(e)?e:[e],v=y.map(function(j){return _o(j)}).filter(Boolean);if(v.length){var C=new IntersectionObserver(function(j){var S,g;try{for(var h=cl(j),m=h.next();!m.done;m=h.next()){var d=m.value;f(d.intersectionRatio),l(d.isIntersecting),n?.(d)}}catch(p){S={error:p}}finally{try{m&&!m.done&&(g=h.return)&&g.call(h)}finally{if(S)throw S.error}}},Mo(Mo({},o),{root:_o(void 0)}));return v.forEach(function(j){return C.observe(j)}),function(){C.disconnect()}}},[void 0,void 0,n],e),[s,u]}const su=ur(a.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"})),iu=ur(a.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"})),$r=ur([a.jsx("path",{d:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42M13 20.01 4 11V4h7v-.01l9 9z"},"0"),a.jsx("circle",{cx:"6.5",cy:"6.5",r:"1.5"},"1")]),au=ur(a.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"})),lu=ur(a.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z"})),Pi=e=>I.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.88619 1.875C5.0541 1.875 4.24071 2.12174 3.54885 2.58402C2.857 3.0463 2.31777 3.70336 1.99934 4.47211C1.68092 5.24085 1.5976 6.08676 1.75994 6.90285C1.92227 7.71895 2.32295 8.46858 2.91133 9.05695C3.4997 9.64532 4.24933 10.046 5.06543 10.2083C5.88152 10.3707 6.72743 10.2874 7.49617 9.96893C8.26492 9.65051 8.92198 9.11128 9.38426 8.41942C9.84654 7.72757 10.0933 6.91417 10.0933 6.08209C10.0933 4.9663 9.65003 3.89621 8.86105 3.10723C8.07207 2.31825 7.00198 1.875 5.88619 1.875ZM4.11182 4.30773C4.58242 3.83714 5.22067 3.57276 5.88619 3.57276C6.38249 3.57276 6.86764 3.71993 7.2803 3.99566C7.69295 4.27139 8.01458 4.66329 8.20451 5.12181C8.39443 5.58033 8.44413 6.08487 8.3473 6.57164C8.25048 7.0584 8.01149 7.50552 7.66055 7.85645C7.30962 8.20739 6.8625 8.44638 6.37574 8.5432C5.88897 8.64003 5.38443 8.59033 4.92591 8.40041C4.46739 8.21048 4.07549 7.88885 3.79976 7.4762C3.52403 7.06354 3.37686 6.57839 3.37686 6.08209C3.37686 5.41657 3.64123 4.77832 4.11182 4.30773ZM4.20709 10.8302C3.0913 10.8302 2.02121 11.2735 1.23223 12.0624C0.443246 12.8514 0 13.9215 0 15.0373V17.8358C0 17.9955 0.12947 18.125 0.289179 18.125H1.40858C1.56829 18.125 1.69776 17.9955 1.69776 17.8358V15.0373C1.69776 14.3718 1.96214 13.7335 2.43273 13.2629C2.90332 12.7924 3.54157 12.528 4.20709 12.528H7.5653C7.89483 12.528 8.22113 12.5929 8.52558 12.719C8.83002 12.8451 9.10665 13.0299 9.33966 13.2629C9.57267 13.496 9.75751 13.7726 9.88361 14.077C10.0097 14.3815 10.0746 14.7078 10.0746 15.0373V17.8358C10.0746 17.9955 10.2041 18.125 10.3638 18.125H11.4832C11.6429 18.125 11.7724 17.9955 11.7724 17.8358V15.0373C11.7724 13.9215 11.3291 12.8514 10.5402 12.0624C9.75118 11.2735 8.68109 10.8302 7.5653 10.8302H4.20709Z"}),I.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375}),I.createElement("rect",{x:15.3125,y:14.0625,width:7.5,height:1.875,rx:.9375,transform:"rotate(-90 15.3125 14.0625)"})),Ii=e=>I.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},I.createElement("path",{d:"M1.25 2.7087C1.25 2.24826 1.62326 1.875 2.0837 1.875H14.339C14.7995 1.875 15.1727 2.24826 15.1727 2.7087V9.31574C15.1727 9.77618 14.7995 10.1494 14.339 10.1494C13.8786 10.1494 13.5053 9.77618 13.5053 9.31574V3.54239H2.91739V16.7565H6.53772H8.34788H9.32435C9.78479 16.7565 10.158 17.1297 10.158 17.5902C10.158 18.0506 9.78479 18.4239 9.32435 18.4239H8.34788H2.0837C1.62326 18.4239 1.25 18.0506 1.25 17.5902V2.7087Z"}),I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.21129 7.91935C7.70481 7.91935 7.29422 8.32993 7.29422 8.83641C7.29422 9.34289 7.70481 9.75348 8.21129 9.75348C8.71777 9.75348 9.12836 9.34289 9.12836 8.83641C9.12836 8.32993 8.71777 7.91935 8.21129 7.91935ZM5.62683 8.83641C5.62683 7.40905 6.78393 6.25195 8.21129 6.25195C9.63865 6.25195 10.7957 7.40905 10.7957 8.83641C10.7957 10.2638 9.63865 11.4209 8.21129 11.4209C6.78393 11.4209 5.62683 10.2638 5.62683 8.83641Z"}),I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.62683 13.2133C5.62683 12.7529 6.00009 12.3796 6.46053 12.3796H9.96205C10.4225 12.3796 10.7957 12.7529 10.7957 13.2133C10.7957 13.6737 10.4225 14.047 9.96205 14.047H6.46053C6.00009 14.047 5.62683 13.6737 5.62683 13.2133Z"}),I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.6406 11.3125C15.8547 11.3125 16.0503 11.434 16.145 11.626L17.1779 13.7184L19.4876 14.056C19.6994 14.087 19.8753 14.2355 19.9413 14.4391C20.0074 14.6427 19.9521 14.8662 19.7987 15.0156L18.1279 16.643L18.5222 18.9421C18.5584 19.1532 18.4716 19.3665 18.2984 19.4923C18.1252 19.6182 17.8955 19.6347 17.706 19.5351L15.6406 18.4489L13.5753 19.5351C13.3858 19.6347 13.1561 19.6182 12.9829 19.4923C12.8096 19.3665 12.7229 19.1532 12.7591 18.9421L13.1534 16.643L11.4825 15.0156C11.3292 14.8662 11.2739 14.6427 11.3399 14.4391C11.406 14.2355 11.5818 14.087 11.7937 14.056L14.1034 13.7184L15.1362 11.626C15.231 11.434 15.4265 11.3125 15.6406 11.3125ZM15.6406 13.1458L14.9815 14.4813C14.8996 14.6471 14.7414 14.7621 14.5584 14.7889L13.0835 15.0044L14.1503 16.0435C14.283 16.1727 14.3435 16.359 14.3122 16.5416L14.0606 18.0088L15.3788 17.3155C15.5427 17.2293 15.7386 17.2293 15.9025 17.3155L17.2207 18.0088L16.969 16.5416C16.9377 16.359 16.9983 16.1727 17.131 16.0435L18.1978 15.0044L16.7229 14.7889C16.5399 14.7621 16.3817 14.6471 16.2998 14.4813L15.6406 13.1458Z"})),Ri=e=>I.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.88619 1.875C5.0541 1.875 4.24071 2.12174 3.54885 2.58402C2.857 3.0463 2.31777 3.70336 1.99934 4.47211C1.68092 5.24085 1.5976 6.08676 1.75994 6.90285C1.92227 7.71895 2.32295 8.46858 2.91133 9.05695C3.4997 9.64532 4.24933 10.046 5.06543 10.2083C5.88152 10.3707 6.72743 10.2874 7.49617 9.96893C8.26492 9.65051 8.92198 9.11128 9.38426 8.41942C9.84654 7.72757 10.0933 6.91417 10.0933 6.08209C10.0933 4.9663 9.65003 3.89621 8.86105 3.10723C8.07207 2.31825 7.00198 1.875 5.88619 1.875ZM4.11182 4.30773C4.58242 3.83714 5.22067 3.57276 5.88619 3.57276C6.38249 3.57276 6.86764 3.71993 7.2803 3.99566C7.69295 4.27139 8.01458 4.66329 8.20451 5.12181C8.39443 5.58033 8.44413 6.08487 8.3473 6.57164C8.25048 7.0584 8.01149 7.50552 7.66055 7.85645C7.30962 8.20739 6.8625 8.44638 6.37574 8.5432C5.88897 8.64003 5.38443 8.59033 4.92591 8.40041C4.46739 8.21048 4.07549 7.88885 3.79976 7.4762C3.52403 7.06354 3.37686 6.57839 3.37686 6.08209C3.37686 5.41657 3.64123 4.77832 4.11182 4.30773ZM4.20709 10.8302C3.0913 10.8302 2.02121 11.2735 1.23223 12.0624C0.443246 12.8514 0 13.9215 0 15.0373V17.8358C0 17.9955 0.12947 18.125 0.289179 18.125H1.40858C1.56829 18.125 1.69776 17.9955 1.69776 17.8358V15.0373C1.69776 14.3718 1.96214 13.7335 2.43273 13.2629C2.90332 12.7924 3.54157 12.528 4.20709 12.528H7.5653C7.89483 12.528 8.22113 12.5929 8.52558 12.719C8.83002 12.8451 9.10665 13.0299 9.33966 13.2629C9.57267 13.496 9.75751 13.7726 9.88361 14.077C10.0097 14.3815 10.0746 14.7078 10.0746 15.0373V17.8358C10.0746 17.9955 10.2041 18.125 10.3638 18.125H11.4832C11.6429 18.125 11.7724 17.9955 11.7724 17.8358V15.0373C11.7724 13.9215 11.3291 12.8514 10.5402 12.0624C9.75118 11.2735 8.68109 10.8302 7.5653 10.8302H4.20709Z"}),I.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375})),cu=e=>I.createElement("svg",{width:18,height:19,viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg",...e},I.createElement("g",{clipPath:"url(#clip0)"},I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.99997 1.59778C8.19071 1.59778 7.39961 1.83775 6.72673 2.28736C6.05385 2.73697 5.5294 3.37601 5.21971 4.12367C4.91001 4.87134 4.82898 5.69405 4.98686 6.48777C5.14474 7.28149 5.53444 8.01056 6.10668 8.5828C6.67892 9.15504 7.408 9.54474 8.20172 9.70262C8.99544 9.8605 9.81815 9.77947 10.5658 9.46978C11.3135 9.16009 11.9525 8.63564 12.4021 7.96276C12.8517 7.28987 13.0917 6.49878 13.0917 5.68951C13.0917 4.60432 12.6606 3.56357 11.8933 2.79622C11.1259 2.02887 10.0852 1.59778 8.99997 1.59778ZM7.27426 3.9638C7.73195 3.50611 8.35271 3.24899 8.99997 3.24899C9.48266 3.24899 9.95452 3.39212 10.3559 3.66029C10.7572 3.92846 11.07 4.30962 11.2547 4.75556C11.4394 5.20151 11.4878 5.69222 11.3936 6.16563C11.2994 6.63905 11.067 7.07391 10.7257 7.41522C10.3844 7.75654 9.94951 7.98897 9.4761 8.08314C9.00268 8.17731 8.51197 8.12898 8.06603 7.94426C7.62008 7.75954 7.23892 7.44674 6.97075 7.04539C6.70258 6.64405 6.55945 6.1722 6.55945 5.68951C6.55945 5.04224 6.81658 4.42149 7.27426 3.9638ZM7.36691 10.3075C6.28172 10.3075 5.24097 10.7385 4.47362 11.5059C3.70627 12.2732 3.27518 13.314 3.27518 14.3992V17.121C3.27518 17.2763 3.4011 17.4022 3.55643 17.4022H4.64514C4.80047 17.4022 4.92639 17.2763 4.92639 17.121V14.3992C4.92639 13.7519 5.18351 13.1312 5.6412 12.6735C6.09889 12.2158 6.71964 11.9587 7.36691 11.9587H10.633C10.9535 11.9587 11.2709 12.0218 11.567 12.1444C11.8631 12.2671 12.1321 12.4469 12.3588 12.6735C12.5854 12.9001 12.7651 13.1691 12.8878 13.4652C13.0104 13.7613 13.0736 14.0787 13.0736 14.3992V17.121C13.0736 17.2763 13.1995 17.4022 13.3548 17.4022H14.4435C14.5989 17.4022 14.7248 17.2763 14.7248 17.121V14.3992C14.7248 13.314 14.2937 12.2732 13.5263 11.5059C12.759 10.7385 11.7182 10.3075 10.633 10.3075H7.36691Z"})),I.createElement("defs",null,I.createElement("clipPath",{id:"clip0"},I.createElement("rect",{width:18,height:18,transform:"translate(0 0.5)"})))),Di=e=>I.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},I.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.25 10C3.25 6.27208 6.27208 3.25 10 3.25C13.7279 3.25 16.75 6.27208 16.75 10C16.75 13.7279 13.7279 16.75 10 16.75C6.27208 16.75 3.25 13.7279 3.25 10ZM10 1.75C5.44365 1.75 1.75 5.44365 1.75 10C1.75 14.5564 5.44365 18.25 10 18.25C14.5563 18.25 18.25 14.5564 18.25 10C18.25 5.44365 14.5563 1.75 10 1.75ZM8.03033 6.96967C7.73744 6.67678 7.26256 6.67678 6.96967 6.96967C6.67678 7.26256 6.67678 7.73744 6.96967 8.03033L11.9697 13.0303C12.2626 13.3232 12.7374 13.3232 13.0303 13.0303C13.3232 12.7374 13.3232 12.2626 13.0303 11.9697L8.03033 6.96967Z"}));var Gr={},Zr,Ho;function uu(){return Ho||(Ho=1,Zr=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Zr}var Xr,Yo;function fu(){if(Yo)return Xr;Yo=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(s,l){try{return[decodeURIComponent(s.join(""))]}catch{}if(s.length===1)return s;l=l||1;var i=s.slice(0,l),u=s.slice(l);return Array.prototype.concat.call([],n(i),n(u))}function o(s){try{return decodeURIComponent(s)}catch{for(var l=s.match(t)||[],i=1;i<l.length;i++)s=n(l,i).join(""),l=s.match(t)||[];return s}}function c(s){for(var l={"%FE%FF":"��","%FF%FE":"��"},i=r.exec(s);i;){try{l[i[0]]=decodeURIComponent(i[0])}catch{var u=o(i[0]);u!==i[0]&&(l[i[0]]=u)}i=r.exec(s)}l["%C2"]="�";for(var f=Object.keys(l),y=0;y<f.length;y++){var v=f[y];s=s.replace(new RegExp(v,"g"),l[v])}return s}return Xr=function(s){if(typeof s!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof s+"`");try{return s=s.replace(/\+/g," "),decodeURIComponent(s)}catch{return c(s)}},Xr}var Qr,Go;function du(){return Go||(Go=1,Qr=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}),Qr}var Jr,Zo;function pu(){return Zo||(Zo=1,Jr=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),c=0;c<n.length;c++){var s=n[c],l=e[s];(o?t.indexOf(s)!==-1:t(s,l,e))&&(r[s]=l)}return r}),Jr}var Xo;function mu(){return Xo||(Xo=1,function(e){const t=uu(),r=fu(),n=du(),o=pu(),c=h=>h==null;function s(h){switch(h.arrayFormat){case"index":return m=>(d,p)=>{const x=d.length;return p===void 0||h.skipNull&&p===null||h.skipEmptyString&&p===""?d:p===null?[...d,[u(m,h),"[",x,"]"].join("")]:[...d,[u(m,h),"[",u(x,h),"]=",u(p,h)].join("")]};case"bracket":return m=>(d,p)=>p===void 0||h.skipNull&&p===null||h.skipEmptyString&&p===""?d:p===null?[...d,[u(m,h),"[]"].join("")]:[...d,[u(m,h),"[]=",u(p,h)].join("")];case"comma":case"separator":return m=>(d,p)=>p==null||p.length===0?d:d.length===0?[[u(m,h),"=",u(p,h)].join("")]:[[d,u(p,h)].join(h.arrayFormatSeparator)];default:return m=>(d,p)=>p===void 0||h.skipNull&&p===null||h.skipEmptyString&&p===""?d:p===null?[...d,u(m,h)]:[...d,[u(m,h),"=",u(p,h)].join("")]}}function l(h){let m;switch(h.arrayFormat){case"index":return(d,p,x)=>{if(m=/\[(\d*)\]$/.exec(d),d=d.replace(/\[\d*\]$/,""),!m){x[d]=p;return}x[d]===void 0&&(x[d]={}),x[d][m[1]]=p};case"bracket":return(d,p,x)=>{if(m=/(\[\])$/.exec(d),d=d.replace(/\[\]$/,""),!m){x[d]=p;return}if(x[d]===void 0){x[d]=[p];return}x[d]=[].concat(x[d],p)};case"comma":case"separator":return(d,p,x)=>{const T=typeof p=="string"&&p.includes(h.arrayFormatSeparator),w=typeof p=="string"&&!T&&f(p,h).includes(h.arrayFormatSeparator);p=w?f(p,h):p;const k=T||w?p.split(h.arrayFormatSeparator).map(E=>f(E,h)):p===null?p:f(p,h);x[d]=k};default:return(d,p,x)=>{if(x[d]===void 0){x[d]=p;return}x[d]=[].concat(x[d],p)}}}function i(h){if(typeof h!="string"||h.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function u(h,m){return m.encode?m.strict?t(h):encodeURIComponent(h):h}function f(h,m){return m.decode?r(h):h}function y(h){return Array.isArray(h)?h.sort():typeof h=="object"?y(Object.keys(h)).sort((m,d)=>Number(m)-Number(d)).map(m=>h[m]):h}function v(h){const m=h.indexOf("#");return m!==-1&&(h=h.slice(0,m)),h}function C(h){let m="";const d=h.indexOf("#");return d!==-1&&(m=h.slice(d)),m}function j(h){h=v(h);const m=h.indexOf("?");return m===-1?"":h.slice(m+1)}function S(h,m){return m.parseNumbers&&!Number.isNaN(Number(h))&&typeof h=="string"&&h.trim()!==""?h=Number(h):m.parseBooleans&&h!==null&&(h.toLowerCase()==="true"||h.toLowerCase()==="false")&&(h=h.toLowerCase()==="true"),h}function g(h,m){m=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},m),i(m.arrayFormatSeparator);const d=l(m),p=Object.create(null);if(typeof h!="string"||(h=h.trim().replace(/^[?#&]/,""),!h))return p;for(const x of h.split("&")){if(x==="")continue;let[T,w]=n(m.decode?x.replace(/\+/g," "):x,"=");w=w===void 0?null:["comma","separator"].includes(m.arrayFormat)?w:f(w,m),d(f(T,m),w,p)}for(const x of Object.keys(p)){const T=p[x];if(typeof T=="object"&&T!==null)for(const w of Object.keys(T))T[w]=S(T[w],m);else p[x]=S(T,m)}return m.sort===!1?p:(m.sort===!0?Object.keys(p).sort():Object.keys(p).sort(m.sort)).reduce((x,T)=>{const w=p[T];return w&&typeof w=="object"&&!Array.isArray(w)?x[T]=y(w):x[T]=w,x},Object.create(null))}e.extract=j,e.parse=g,e.stringify=(h,m)=>{if(!h)return"";m=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},m),i(m.arrayFormatSeparator);const d=w=>m.skipNull&&c(h[w])||m.skipEmptyString&&h[w]==="",p=s(m),x={};for(const w of Object.keys(h))d(w)||(x[w]=h[w]);const T=Object.keys(x);return m.sort!==!1&&T.sort(m.sort),T.map(w=>{const k=h[w];return k===void 0?"":k===null?u(w,m):Array.isArray(k)?k.reduce(p(w),[]).join("&"):u(w,m)+"="+u(k,m)}).filter(w=>w.length>0).join("&")},e.parseUrl=(h,m)=>{m=Object.assign({decode:!0},m);const[d,p]=n(h,"#");return Object.assign({url:d.split("?")[0]||"",query:g(j(h),m)},m&&m.parseFragmentIdentifier&&p?{fragmentIdentifier:f(p,m)}:{})},e.stringifyUrl=(h,m)=>{m=Object.assign({encode:!0,strict:!0},m);const d=v(h.url).split("?")[0]||"",p=e.extract(h.url),x=e.parse(p,{sort:!1}),T=Object.assign(x,h.query);let w=e.stringify(T,m);w&&(w=`?${w}`);let k=C(h.url);return h.fragmentIdentifier&&(k=`#${u(h.fragmentIdentifier,m)}`),`${d}${w}${k}`},e.pick=(h,m,d)=>{d=Object.assign({parseFragmentIdentifier:!0},d);const{url:p,query:x,fragmentIdentifier:T}=e.parseUrl(h,d);return e.stringifyUrl({url:p,query:o(x,m),fragmentIdentifier:T},d)},e.exclude=(h,m,d)=>{const p=Array.isArray(m)?x=>!m.includes(x):(x,T)=>!m(x,T);return e.pick(h,p,d)}}(Gr)),Gr}var en=mu();const Xt=ul,hu={parseNumbers:!1,parseBooleans:!1},gu={skipNull:!1,skipEmptyString:!1},bu=(e,t)=>{var r,n;const{navigateMode:o="push",parseOptions:c,stringifyOptions:s}={},l=Object.assign(Object.assign({},hu),c),i=Object.assign(Object.assign({},gu),s),u=Xt.useLocation(),f=(r=Xt.useHistory)===null||r===void 0?void 0:r.call(Xt),y=(n=Xt.useNavigate)===null||n===void 0?void 0:n.call(Xt),v=fl(),C=I.useRef(typeof e=="function"?e():e||{}),j=I.useMemo(()=>en.parse(u.search,l),[u.search]),S=I.useMemo(()=>Object.assign(Object.assign({},C.current),j),[j]);return[S,Tt(h=>{const m=typeof h=="function"?h(S):h;v(),f&&f[o]({hash:u.hash,search:en.stringify(Object.assign(Object.assign({},j),m),i)||"?"},u.state),y&&y({hash:u.hash,search:en.stringify(Object.assign(Object.assign({},j),m),i)||"?"},{replace:o==="replace",state:u.state})})]};var jt={},Qt={},tn={exports:{}},rn={},Qo;function Ai(){if(Qo)return rn;Qo=1;function e(m){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},e(m)}function t(m,d,p){return Object.defineProperty(m,"prototype",{writable:!1}),m}function r(m,d){if(!(m instanceof d))throw new TypeError("Cannot call a class as a function")}function n(m,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");m.prototype=Object.create(d&&d.prototype,{constructor:{value:m,writable:!0,configurable:!0}}),Object.defineProperty(m,"prototype",{writable:!1}),d&&o(m,d)}function o(m,d){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(x,T){return x.__proto__=T,x},o(m,d)}function c(m){var d=i();return function(){var x=u(m),T;if(d){var w=u(this).constructor;T=Reflect.construct(x,arguments,w)}else T=x.apply(this,arguments);return s(this,T)}}function s(m,d){if(d&&(e(d)==="object"||typeof d=="function"))return d;if(d!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l(m)}function l(m){if(m===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m}function i(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function u(m){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},u(m)}var f={},y,v;function C(m,d,p){p||(p=Error);function x(w,k,E){return typeof d=="string"?d:d(w,k,E)}var T=function(w){n(E,w);var k=c(E);function E(D,N,B){var W;return r(this,E),W=k.call(this,x(D,N,B)),W.code=m,W}return t(E)}(p);f[m]=T}function j(m,d){if(Array.isArray(m)){var p=m.length;return m=m.map(function(x){return String(x)}),p>2?"one of ".concat(d," ").concat(m.slice(0,p-1).join(", "),", or ")+m[p-1]:p===2?"one of ".concat(d," ").concat(m[0]," or ").concat(m[1]):"of ".concat(d," ").concat(m[0])}else return"of ".concat(d," ").concat(String(m))}function S(m,d,p){return m.substr(0,d.length)===d}function g(m,d,p){return(p===void 0||p>m.length)&&(p=m.length),m.substring(p-d.length,p)===d}function h(m,d,p){return typeof p!="number"&&(p=0),p+d.length>m.length?!1:m.indexOf(d,p)!==-1}return C("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),C("ERR_INVALID_ARG_TYPE",function(m,d,p){y===void 0&&(y=Wn()),y(typeof m=="string","'name' must be a string");var x;typeof d=="string"&&S(d,"not ")?(x="must not be",d=d.replace(/^not /,"")):x="must be";var T;if(g(m," argument"))T="The ".concat(m," ").concat(x," ").concat(j(d,"type"));else{var w=h(m,".")?"property":"argument";T='The "'.concat(m,'" ').concat(w," ").concat(x," ").concat(j(d,"type"))}return T+=". Received type ".concat(e(p)),T},TypeError),C("ERR_INVALID_ARG_VALUE",function(m,d){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";v===void 0&&(v=or());var x=v.inspect(d);return x.length>128&&(x="".concat(x.slice(0,128),"...")),"The argument '".concat(m,"' ").concat(p,". Received ").concat(x)},TypeError),C("ERR_INVALID_RETURN_VALUE",function(m,d,p){var x;return p&&p.constructor&&p.constructor.name?x="instance of ".concat(p.constructor.name):x="type ".concat(e(p)),"Expected ".concat(m,' to be returned from the "').concat(d,'"')+" function but got ".concat(x,".")},TypeError),C("ERR_MISSING_ARGS",function(){for(var m=arguments.length,d=new Array(m),p=0;p<m;p++)d[p]=arguments[p];y===void 0&&(y=Wn()),y(d.length>0,"At least one arg needs to be specified");var x="The ",T=d.length;switch(d=d.map(function(w){return'"'.concat(w,'"')}),T){case 1:x+="".concat(d[0]," argument");break;case 2:x+="".concat(d[0]," and ").concat(d[1]," arguments");break;default:x+=d.slice(0,T-1).join(", "),x+=", and ".concat(d[T-1]," arguments");break}return"".concat(x," must be specified")},TypeError),rn.codes=f,rn}var nn,Jo;function yu(){if(Jo)return nn;Jo=1;function e(A,F){var G=Object.keys(A);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(A);F&&(H=H.filter(function(X){return Object.getOwnPropertyDescriptor(A,X).enumerable})),G.push.apply(G,H)}return G}function t(A){for(var F=1;F<arguments.length;F++){var G=arguments[F]!=null?arguments[F]:{};F%2?e(Object(G),!0).forEach(function(H){r(A,H,G[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(G)):e(Object(G)).forEach(function(H){Object.defineProperty(A,H,Object.getOwnPropertyDescriptor(G,H))})}return A}function r(A,F,G){return F=s(F),F in A?Object.defineProperty(A,F,{value:G,enumerable:!0,configurable:!0,writable:!0}):A[F]=G,A}function n(A,F){if(!(A instanceof F))throw new TypeError("Cannot call a class as a function")}function o(A,F){for(var G=0;G<F.length;G++){var H=F[G];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(A,s(H.key),H)}}function c(A,F,G){return F&&o(A.prototype,F),Object.defineProperty(A,"prototype",{writable:!1}),A}function s(A){var F=l(A,"string");return m(F)==="symbol"?F:String(F)}function l(A,F){if(m(A)!=="object"||A===null)return A;var G=A[Symbol.toPrimitive];if(G!==void 0){var H=G.call(A,F);if(m(H)!=="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(A)}function i(A,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(F&&F.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),F&&g(A,F)}function u(A){var F=j();return function(){var H=h(A),X;if(F){var _=h(this).constructor;X=Reflect.construct(H,arguments,_)}else X=H.apply(this,arguments);return f(this,X)}}function f(A,F){if(F&&(m(F)==="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y(A)}function y(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function v(A){var F=typeof Map=="function"?new Map:void 0;return v=function(H){if(H===null||!S(H))return H;if(typeof H!="function")throw new TypeError("Super expression must either be null or a function");if(typeof F<"u"){if(F.has(H))return F.get(H);F.set(H,X)}function X(){return C(H,arguments,h(this).constructor)}return X.prototype=Object.create(H.prototype,{constructor:{value:X,enumerable:!1,writable:!0,configurable:!0}}),g(X,H)},v(A)}function C(A,F,G){return j()?C=Reflect.construct.bind():C=function(X,_,R){var M=[null];M.push.apply(M,_);var z=Function.bind.apply(X,M),L=new z;return R&&g(L,R.prototype),L},C.apply(null,arguments)}function j(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function S(A){return Function.toString.call(A).indexOf("[native code]")!==-1}function g(A,F){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,X){return H.__proto__=X,H},g(A,F)}function h(A){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(G){return G.__proto__||Object.getPrototypeOf(G)},h(A)}function m(A){"@babel/helpers - typeof";return m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},m(A)}var d=or(),p=d.inspect,x=Ai(),T=x.codes.ERR_INVALID_ARG_TYPE;function w(A,F,G){return(G===void 0||G>A.length)&&(G=A.length),A.substring(G-F.length,G)===F}function k(A,F){if(F=Math.floor(F),A.length==0||F==0)return"";var G=A.length*F;for(F=Math.floor(Math.log(F)/Math.log(2));F;)A+=A,F--;return A+=A.substring(0,G-A.length),A}var E="",D="",N="",B="",W={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},oe=10;function te(A){var F=Object.keys(A),G=Object.create(Object.getPrototypeOf(A));return F.forEach(function(H){G[H]=A[H]}),Object.defineProperty(G,"message",{value:A.message}),G}function ge(A){return p(A,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function je(A,F,G){var H="",X="",_=0,R="",M=!1,z=ge(A),L=z.split(`
|
|
2
2
|
`),$=ge(F).split(`
|
|
3
3
|
`),Z=0,se="";if(G==="strictEqual"&&m(A)==="object"&&m(F)==="object"&&A!==null&&F!==null&&(G="strictEqualObject"),L.length===1&&$.length===1&&L[0]!==$[0]){var fe=L[0].length+$[0].length;if(fe<=oe){if((m(A)!=="object"||A===null)&&(m(F)!=="object"||F===null)&&(A!==0||F!==0))return"".concat(W[G],`
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aF as G,j as e,r as b,aV as V,cx as Le,T as N,ay as K,o as y,V as F,be as ie,b8 as je,K as g,N as oe,W as Q,eM as ve,fH as be,bz as Nt,br as Lt,bs as Bt,bt as Mt,aO as Be,aP as $t,$ as H,s as W,bn as A,cr as le,C as O,U as Ke,at as Ot,dj as Et,bf as Ze,bg as _t,aH as U,H as z,bA as X,gn as qt,go as Ht,i as Wt,v as B,b as Ut,a2 as J,t as E,Q as ce,a3 as q,aS as ae,X as ne,F as Qe,ac as Ce,bd as Je,gp as Vt,q as Gt,fl as Yt,P as Xe,fd as et,bi as tt,g as Kt,D as Zt,c5 as st,aU as Qt,R as Jt,dG as Xt,E as es,gq as Me,fF as ts,gr as ss,S as rs}from"./index-BfokqgHy.js";import{H as Se,g as ns}from"./index-CnHjhHdP.js";import{T as as}from"./html-title-BGLe2_e3.js";import{u as M}from"./team-Bz9weh46.js";import{U as os}from"./ua-parser-DP5omx3I.js";import{u as is}from"./use-mobile-BW2lFrSI.js";import{v as se}from"./index-DIAjkldX.js";import{w as Y,P as rt}from"./permission-B-96KXQR.js";import{C as ls}from"./Google-zFyeAexf.js";import{u as cs}from"./blocklet-Dr_LK1Q2.js";import{A as we}from"./Add-BqMKSndg.js";import{y as Te}from"./index-zI6sbIgD.js";import{e as pe}from"./edit.svg-BBcWA2Yv.js";import{M as nt}from"./TableSearch-CuYawmb9.js";import{L as at}from"./list-header-C68bt277.js";import{g as ds}from"./chain-Dc18Nz_k.js";import{T as ot,a as re}from"./ToggleButtonGroup-DzPH8xLQ.js";import{C as ps}from"./lock.svg-CvsvGAq6.js";const us=G(e.jsx("path",{d:"m17.6 9.48 1.84-3.18c.16-.31.04-.69-.26-.85-.29-.15-.65-.06-.83.22l-1.88 3.24c-2.86-1.21-6.08-1.21-8.94 0L5.65 5.67c-.19-.29-.58-.38-.87-.2-.28.18-.37.54-.22.83L6.4 9.48C3.3 11.25 1.28 14.44 1 18h22c-.28-3.56-2.3-6.75-5.4-8.52M7 15.25c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25m10 0c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25"})),$e=G(e.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})),it=G(e.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"})),me=G(e.jsx("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6v2H8v2h8v-2h-2v-2h6c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"})),ms=G(e.jsx("path",{d:"M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2zM4 6h16v10H4z"})),fs=G(e.jsx("path",{d:"M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1m-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m4.5-4H7V4h9z"})),xs=G(e.jsx("path",{d:"M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2m-2 14H5V6h14z"})),fe=G(e.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-5 14H4v-4h11zm0-5H4V9h11zm5 5h-4V9h4z"})),ue=s=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s},b.createElement("path",{d:"M8.4375 4.3125H8.25C8.35313 4.3125 8.4375 4.22812 8.4375 4.125V4.3125H15.5625V4.125C15.5625 4.22812 15.6469 4.3125 15.75 4.3125H15.5625V6H17.25V4.125C17.25 3.29766 16.5773 2.625 15.75 2.625H8.25C7.42266 2.625 6.75 3.29766 6.75 4.125V6H8.4375V4.3125ZM20.25 6H3.75C3.33516 6 3 6.33516 3 6.75V7.5C3 7.60313 3.08437 7.6875 3.1875 7.6875H4.60312L5.18203 19.9453C5.21953 20.7445 5.88047 21.375 6.67969 21.375H17.3203C18.1219 21.375 18.7805 20.7469 18.818 19.9453L19.3969 7.6875H20.8125C20.9156 7.6875 21 7.60313 21 7.5V6.75C21 6.33516 20.6648 6 20.25 6ZM17.1398 19.6875H6.86016L6.29297 7.6875H17.707L17.1398 19.6875Z"}));function hs(s){return!s||typeof s!="string"?"break-all":s.includes(" ")?"break-word":"break-all"}function lt({logo:s="",name:n="",description:l="",size:p=40,variant:c="rounded",sx:u={},className:f="",logoName:a="",tooltip:d=null}){const r={width:p,height:p,...u},o=typeof n=="string"?n:s,i=e.jsxs(V,{direction:"row",spacing:1,className:`info-card-wrapper ${f}`,sx:{alignItems:"center",cursor:d?"pointer":"default"},children:[s?e.jsx(Le,{src:s,alt:a??o,variant:c,sx:r}):e.jsx(Le,{variant:c,sx:r,children:o?.slice(0,1)}),e.jsxs(V,{direction:"column",sx:{alignItems:"flex-start",justifyContent:"space-around",wordBreak:hs(n),minWidth:{xs:100,sm:140}},children:[e.jsx(N,{variant:"body1",component:"div",sx:{color:"text.primary"},children:n}),l&&e.jsx(N,{variant:"subtitle1",sx:{color:"text.secondary"},children:l})]})]});return d?e.jsx(K,{title:d,placement:"top-start",slotProps:{tooltip:{sx:{bgcolor:t=>t.palette.mode==="dark"?"#2a2e37":"#ffffff",color:t=>t.palette.mode==="dark"?"#ffffff":t.palette.text.primary,boxShadow:"0 2px 10px rgba(0, 0, 0, 0.15)",borderRadius:2,padding:"10px 16px",fontSize:14,maxWidth:400,minWidth:240,wordBreak:"break-word",border:t=>t.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0","& .MuiTooltip-arrow":{color:t=>t.palette.mode==="dark"?"#2a2e37":"#ffffff","&::before":{border:t=>t.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0",backgroundColor:t=>t.palette.mode==="dark"?"#2a2e37":"#ffffff"}}}}},children:i}):i}lt.propTypes={logo:y.string,name:y.oneOfType([y.string,y.node]).isRequired,description:y.oneOfType([y.string,y.node]),size:y.oneOfType([y.number,y.string]),variant:y.oneOf(["square","rounded","circular"]),sx:y.object,className:y.string,logoName:y.string,tooltip:y.oneOfType([y.string,y.node])};function gs(s){try{if(!s.trim())return{device:{icon:e.jsx(me,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:e.jsx(fe,{fontSize:"small"}),text:"Unknown Browser"}};const l=new os(s).getResult();let p="";const c=s.split(/\s+/).find(d=>d.startsWith("arcwallet"));if(c){const d=c.split("/");d.length>1&&Be.coerce(d[1])&&(p=Be.coerce(d[1]).version)}const u=(()=>{const{type:d="",model:r=""}=l.device;return d==="mobile"?{icon:e.jsx(fs,{fontSize:"small"}),text:r||"Mobile Device"}:d==="tablet"?{icon:e.jsx(xs,{fontSize:"small"}),text:r||"Tablet"}:{icon:e.jsx(ms,{fontSize:"small"}),text:r||"Desktop"}})(),f=(()=>{const{name:d="",version:r=""}=l.os;return d.toLowerCase().includes("mac")?{icon:e.jsx($e,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("ios")?{icon:e.jsx($e,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("android")?{icon:e.jsx(us,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("windows")?{icon:e.jsx(me,{fontSize:"small"}),text:`${d} ${r}`}:{icon:null,text:d?`${d} ${r}`:"Unknown OS"}})(),a=(()=>{const{name:d="",version:r=""}=l.browser;return{icon:e.jsx(fe,{fontSize:"small"}),text:d?`${d} ${r}`:"Unknown Browser"}})();return{device:u,os:f,browser:a,...p?{walletVersion:{icon:null,text:p}}:{}}}catch(n){return console.error("Error parsing user agent:",n),{device:{icon:e.jsx(me,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:e.jsx(fe,{fontSize:"small"}),text:"Unknown Browser"}}}}function ct({ua:s}){const n=gs(s);return e.jsx(V,{spacing:1,children:Object.entries(n).map(([l,{icon:p,text:c}])=>e.jsxs(g,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(g,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:p}),e.jsx(N,{variant:"body2",sx:{display:"flex"},children:c})]},l))})}ct.propTypes={ua:y.string.isRequired};const dt=()=>{const{t:s}=F(),n={$all:s("common.all"),owner:"Owner",admin:"Admin",member:"Member",guest:"Guest"};return{SYSTEM_ROLES:n,formatRoleName:p=>{const c=(p||"").toLowerCase();return c.startsWith("$")?n[c]||c.slice(1):n[c]||c}}},ys=(s,n=!1)=>{const l=n?1:.6;switch(s){case"owner":return`rgba(232, 222, 255, ${l})`;case"admin":return`rgba(227, 242, 253, ${l})`;case"member":return`rgba(232, 245, 233, ${l})`;case"guest":return`rgba(245, 245, 245, ${l})`;default:return`rgba(245, 245, 245, ${l})`}},js=je(ve)(({role:s})=>({backgroundColor:ys(s.toLowerCase()),color:"#000000"})),vs=s=>{switch(s){case"valid":return n=>n.palette.success.light;case"expired":return n=>n.palette.text.disabled;case"revoked":return n=>n.palette.error.light;default:return n=>n.palette.warning.light}},bs=je(ve)(({theme:s,status:n})=>({backgroundColor:vs(n)(s),color:"#FFFFFF"}));function pt({did:s}){return e.jsx(Q,{size:14,responsive:!1,compact:!0,copyable:!1,did:s})}pt.propTypes={did:y.string.isRequired};function ut({timestamp:s,locale:n}){return e.jsx(g,{sx:{minWidth:"100px"},children:e.jsx(oe,{value:s,locale:n})})}ut.propTypes={timestamp:y.number.isRequired,locale:y.string.isRequired};function mt({name:s="",role:n}){const{formatRoleName:l}=dt();return e.jsx(js,{label:l(s||n),size:"small",role:s||n,sx:{borderRadius:1}})}mt.propTypes={role:y.string.isRequired,name:y.string};function ft({status:s}){const{t:n}=F();return e.jsx(bs,{label:n(`team.passport.statusMap.${s}`),size:"small",status:s,sx:{borderRadius:1}})}ft.propTypes={status:y.string.isRequired};function xt({source:s}){const{t:n}=F();return s?n(`team.passport.sourceMaps.${s}`):"-"}xt.propTypes={source:y.string.isRequired};function ht({user:s,size:n="default",tooltip:l=!1,inService:p=!1}){const{teamDid:c}=M(),u=ie.useMemo(()=>be(s.avatar,c,p),[s.avatar,c,p]),f=ie.useMemo(()=>e.jsx(Q,{did:s?.did,compact:!0,responsive:!1,sx:{whiteSpace:"nowrap"},size:12}),[s?.did]),a=Nt(()=>({...s,avatar:u}),[s,u]);return n==="small"?e.jsx(lt,{variant:"circular",logo:u,name:e.jsx(N,{sx:{maxWidth:320,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},className:"customer-link-name",children:s.fullName||s.email}),...n==="small"?{tooltip:l?e.jsx(Q,{did:s?.did}):!1,size:24}:{description:f,size:36}}):e.jsx(Lt,{user:a,avatarSize:n==="small"?24:36,cardType:Mt.Detailed,infoType:Bt.Minimal,sx:{padding:0,border:"none"},showDid:!0,didProps:{compact:!0,responsive:!1},showHoverCard:!1})}ht.propTypes={user:y.object.isRequired,size:y.string,tooltip:y.bool,inService:y.bool};const Cs=ie.memo(ht),Ss=s=>e.jsx(pt,{did:s}),Ie=(s,n)=>e.jsx(mt,{name:s,role:n}),Re=s=>e.jsx(ft,{status:s}),gt=(s,n)=>e.jsx(ut,{timestamp:s,locale:n}),de=s=>e.jsx(xt,{source:s}),De=(s,n=!1)=>e.jsx(Cs,{user:s,inService:n}),ws=s=>e.jsx(ct,{ua:s}),Oe="info";function yt({createPassportSvg:s,passport:n,onCancel:l,onSwitchPassport:p=()=>{}}){const{t:c}=F(),u=$t({tab:Oe}),f={info:{label:c("common.basicInfo"),value:Oe,component:()=>e.jsx(jt,{passport:n,createPassportSvg:s})},logs:{label:c("common.logs"),value:"logs",component:()=>e.jsx(Ct,{passport:n})},related:{label:c("team.passport.related"),value:"related",component:()=>e.jsx(St,{passport:n,onSwitchPassport:p})}},a=Object.values(f).map(({label:o,value:i})=>({label:o,value:i})).filter(o=>o.value==="related"?n.parentDid:!0),d=f[u.tab]||f.info,r=o=>{u.tab=o};return e.jsx(H,{title:c("common.passport"),onClose:l,open:!0,PaperProps:{style:{maxWidth:800,minHeight:"80vh"}},fullWidth:!0,children:e.jsxs(Ts,{children:[e.jsx(g,{className:"tabs",children:e.jsx(as,{tabs:a,current:u.tab,onChange:r,scrollButtons:"auto"})}),e.jsx(g,{className:"body",children:e.jsx(d.component,{})})]})})}yt.propTypes={createPassportSvg:y.func.isRequired,passport:y.object.isRequired,onCancel:y.func.isRequired,onSwitchPassport:y.func};const Ts=W(g)`
|
|
1
|
+
import{aF as G,j as e,r as b,aV as V,cx as Le,T as N,ay as K,o as y,V as F,be as ie,b8 as je,K as g,N as oe,W as Q,eM as ve,fH as be,bz as Nt,br as Lt,bs as Bt,bt as Mt,aO as Be,aP as $t,$ as H,s as W,bn as A,cr as le,C as O,U as Ke,at as Ot,dj as Et,bf as Ze,bg as _t,aH as U,H as z,bA as X,gn as qt,go as Ht,i as Wt,v as B,b as Ut,a2 as J,t as E,Q as ce,a3 as q,aS as ae,X as ne,F as Qe,ac as Ce,bd as Je,gp as Vt,q as Gt,fl as Yt,P as Xe,fd as et,bi as tt,g as Kt,D as Zt,c5 as st,aU as Qt,R as Jt,dG as Xt,E as es,gq as Me,fF as ts,gr as ss,S as rs}from"./index-Dzuc8iT3.js";import{H as Se,g as ns}from"./index-BGo2ji7B.js";import{T as as}from"./html-title-3cSvLxbM.js";import{u as M}from"./team-D5YTqCCQ.js";import{U as os}from"./ua-parser-DP5omx3I.js";import{u as is}from"./use-mobile-ENQw9KmE.js";import{v as se}from"./index-BCXR4Ftk.js";import{w as Y,P as rt}from"./permission-DCAf_gW3.js";import{C as ls}from"./Google-CwyoAMMB.js";import{u as cs}from"./blocklet-DAH77r3I.js";import{A as we}from"./Add-DaNU9Vkn.js";import{y as Te}from"./index-CdTvqOME.js";import{e as pe}from"./edit.svg-CTCbuAl5.js";import{M as nt}from"./TableSearch-U9rZfIzu.js";import{L as at}from"./list-header-BgLs_nU8.js";import{g as ds}from"./chain-Cx_Kwvvk.js";import{T as ot,a as re}from"./ToggleButtonGroup-DllrYs9I.js";import{C as ps}from"./lock.svg-DKwAmrmM.js";const us=G(e.jsx("path",{d:"m17.6 9.48 1.84-3.18c.16-.31.04-.69-.26-.85-.29-.15-.65-.06-.83.22l-1.88 3.24c-2.86-1.21-6.08-1.21-8.94 0L5.65 5.67c-.19-.29-.58-.38-.87-.2-.28.18-.37.54-.22.83L6.4 9.48C3.3 11.25 1.28 14.44 1 18h22c-.28-3.56-2.3-6.75-5.4-8.52M7 15.25c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25m10 0c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25"})),$e=G(e.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})),it=G(e.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"})),me=G(e.jsx("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6v2H8v2h8v-2h-2v-2h6c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"})),ms=G(e.jsx("path",{d:"M20 18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2zM4 6h16v10H4z"})),fs=G(e.jsx("path",{d:"M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1m-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m4.5-4H7V4h9z"})),xs=G(e.jsx("path",{d:"M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2m-2 14H5V6h14z"})),fe=G(e.jsx("path",{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-5 14H4v-4h11zm0-5H4V9h11zm5 5h-4V9h4z"})),ue=s=>b.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...s},b.createElement("path",{d:"M8.4375 4.3125H8.25C8.35313 4.3125 8.4375 4.22812 8.4375 4.125V4.3125H15.5625V4.125C15.5625 4.22812 15.6469 4.3125 15.75 4.3125H15.5625V6H17.25V4.125C17.25 3.29766 16.5773 2.625 15.75 2.625H8.25C7.42266 2.625 6.75 3.29766 6.75 4.125V6H8.4375V4.3125ZM20.25 6H3.75C3.33516 6 3 6.33516 3 6.75V7.5C3 7.60313 3.08437 7.6875 3.1875 7.6875H4.60312L5.18203 19.9453C5.21953 20.7445 5.88047 21.375 6.67969 21.375H17.3203C18.1219 21.375 18.7805 20.7469 18.818 19.9453L19.3969 7.6875H20.8125C20.9156 7.6875 21 7.60313 21 7.5V6.75C21 6.33516 20.6648 6 20.25 6ZM17.1398 19.6875H6.86016L6.29297 7.6875H17.707L17.1398 19.6875Z"}));function hs(s){return!s||typeof s!="string"?"break-all":s.includes(" ")?"break-word":"break-all"}function lt({logo:s="",name:n="",description:l="",size:p=40,variant:c="rounded",sx:u={},className:f="",logoName:a="",tooltip:d=null}){const r={width:p,height:p,...u},o=typeof n=="string"?n:s,i=e.jsxs(V,{direction:"row",spacing:1,className:`info-card-wrapper ${f}`,sx:{alignItems:"center",cursor:d?"pointer":"default"},children:[s?e.jsx(Le,{src:s,alt:a??o,variant:c,sx:r}):e.jsx(Le,{variant:c,sx:r,children:o?.slice(0,1)}),e.jsxs(V,{direction:"column",sx:{alignItems:"flex-start",justifyContent:"space-around",wordBreak:hs(n),minWidth:{xs:100,sm:140}},children:[e.jsx(N,{variant:"body1",component:"div",sx:{color:"text.primary"},children:n}),l&&e.jsx(N,{variant:"subtitle1",sx:{color:"text.secondary"},children:l})]})]});return d?e.jsx(K,{title:d,placement:"top-start",slotProps:{tooltip:{sx:{bgcolor:t=>t.palette.mode==="dark"?"#2a2e37":"#ffffff",color:t=>t.palette.mode==="dark"?"#ffffff":t.palette.text.primary,boxShadow:"0 2px 10px rgba(0, 0, 0, 0.15)",borderRadius:2,padding:"10px 16px",fontSize:14,maxWidth:400,minWidth:240,wordBreak:"break-word",border:t=>t.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0","& .MuiTooltip-arrow":{color:t=>t.palette.mode==="dark"?"#2a2e37":"#ffffff","&::before":{border:t=>t.palette.mode==="dark"?"1px solid #3a3f48":"1px solid #e0e0e0",backgroundColor:t=>t.palette.mode==="dark"?"#2a2e37":"#ffffff"}}}}},children:i}):i}lt.propTypes={logo:y.string,name:y.oneOfType([y.string,y.node]).isRequired,description:y.oneOfType([y.string,y.node]),size:y.oneOfType([y.number,y.string]),variant:y.oneOf(["square","rounded","circular"]),sx:y.object,className:y.string,logoName:y.string,tooltip:y.oneOfType([y.string,y.node])};function gs(s){try{if(!s.trim())return{device:{icon:e.jsx(me,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:e.jsx(fe,{fontSize:"small"}),text:"Unknown Browser"}};const l=new os(s).getResult();let p="";const c=s.split(/\s+/).find(d=>d.startsWith("arcwallet"));if(c){const d=c.split("/");d.length>1&&Be.coerce(d[1])&&(p=Be.coerce(d[1]).version)}const u=(()=>{const{type:d="",model:r=""}=l.device;return d==="mobile"?{icon:e.jsx(fs,{fontSize:"small"}),text:r||"Mobile Device"}:d==="tablet"?{icon:e.jsx(xs,{fontSize:"small"}),text:r||"Tablet"}:{icon:e.jsx(ms,{fontSize:"small"}),text:r||"Desktop"}})(),f=(()=>{const{name:d="",version:r=""}=l.os;return d.toLowerCase().includes("mac")?{icon:e.jsx($e,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("ios")?{icon:e.jsx($e,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("android")?{icon:e.jsx(us,{fontSize:"small"}),text:`${d} ${r}`}:d.toLowerCase().includes("windows")?{icon:e.jsx(me,{fontSize:"small"}),text:`${d} ${r}`}:{icon:null,text:d?`${d} ${r}`:"Unknown OS"}})(),a=(()=>{const{name:d="",version:r=""}=l.browser;return{icon:e.jsx(fe,{fontSize:"small"}),text:d?`${d} ${r}`:"Unknown Browser"}})();return{device:u,os:f,browser:a,...p?{walletVersion:{icon:null,text:p}}:{}}}catch(n){return console.error("Error parsing user agent:",n),{device:{icon:e.jsx(me,{fontSize:"small"}),text:"Unknown Device"},os:{icon:null,text:"Unknown OS"},browser:{icon:e.jsx(fe,{fontSize:"small"}),text:"Unknown Browser"}}}}function ct({ua:s}){const n=gs(s);return e.jsx(V,{spacing:1,children:Object.entries(n).map(([l,{icon:p,text:c}])=>e.jsxs(g,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(g,{sx:{display:"flex",alignItems:"center",justifyContent:"center"},children:p}),e.jsx(N,{variant:"body2",sx:{display:"flex"},children:c})]},l))})}ct.propTypes={ua:y.string.isRequired};const dt=()=>{const{t:s}=F(),n={$all:s("common.all"),owner:"Owner",admin:"Admin",member:"Member",guest:"Guest"};return{SYSTEM_ROLES:n,formatRoleName:p=>{const c=(p||"").toLowerCase();return c.startsWith("$")?n[c]||c.slice(1):n[c]||c}}},ys=(s,n=!1)=>{const l=n?1:.6;switch(s){case"owner":return`rgba(232, 222, 255, ${l})`;case"admin":return`rgba(227, 242, 253, ${l})`;case"member":return`rgba(232, 245, 233, ${l})`;case"guest":return`rgba(245, 245, 245, ${l})`;default:return`rgba(245, 245, 245, ${l})`}},js=je(ve)(({role:s})=>({backgroundColor:ys(s.toLowerCase()),color:"#000000"})),vs=s=>{switch(s){case"valid":return n=>n.palette.success.light;case"expired":return n=>n.palette.text.disabled;case"revoked":return n=>n.palette.error.light;default:return n=>n.palette.warning.light}},bs=je(ve)(({theme:s,status:n})=>({backgroundColor:vs(n)(s),color:"#FFFFFF"}));function pt({did:s}){return e.jsx(Q,{size:14,responsive:!1,compact:!0,copyable:!1,did:s})}pt.propTypes={did:y.string.isRequired};function ut({timestamp:s,locale:n}){return e.jsx(g,{sx:{minWidth:"100px"},children:e.jsx(oe,{value:s,locale:n})})}ut.propTypes={timestamp:y.number.isRequired,locale:y.string.isRequired};function mt({name:s="",role:n}){const{formatRoleName:l}=dt();return e.jsx(js,{label:l(s||n),size:"small",role:s||n,sx:{borderRadius:1}})}mt.propTypes={role:y.string.isRequired,name:y.string};function ft({status:s}){const{t:n}=F();return e.jsx(bs,{label:n(`team.passport.statusMap.${s}`),size:"small",status:s,sx:{borderRadius:1}})}ft.propTypes={status:y.string.isRequired};function xt({source:s}){const{t:n}=F();return s?n(`team.passport.sourceMaps.${s}`):"-"}xt.propTypes={source:y.string.isRequired};function ht({user:s,size:n="default",tooltip:l=!1,inService:p=!1}){const{teamDid:c}=M(),u=ie.useMemo(()=>be(s.avatar,c,p),[s.avatar,c,p]),f=ie.useMemo(()=>e.jsx(Q,{did:s?.did,compact:!0,responsive:!1,sx:{whiteSpace:"nowrap"},size:12}),[s?.did]),a=Nt(()=>({...s,avatar:u}),[s,u]);return n==="small"?e.jsx(lt,{variant:"circular",logo:u,name:e.jsx(N,{sx:{maxWidth:320,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},className:"customer-link-name",children:s.fullName||s.email}),...n==="small"?{tooltip:l?e.jsx(Q,{did:s?.did}):!1,size:24}:{description:f,size:36}}):e.jsx(Lt,{user:a,avatarSize:n==="small"?24:36,cardType:Mt.Detailed,infoType:Bt.Minimal,sx:{padding:0,border:"none"},showDid:!0,didProps:{compact:!0,responsive:!1},showHoverCard:!1})}ht.propTypes={user:y.object.isRequired,size:y.string,tooltip:y.bool,inService:y.bool};const Cs=ie.memo(ht),Ss=s=>e.jsx(pt,{did:s}),Ie=(s,n)=>e.jsx(mt,{name:s,role:n}),Re=s=>e.jsx(ft,{status:s}),gt=(s,n)=>e.jsx(ut,{timestamp:s,locale:n}),de=s=>e.jsx(xt,{source:s}),De=(s,n=!1)=>e.jsx(Cs,{user:s,inService:n}),ws=s=>e.jsx(ct,{ua:s}),Oe="info";function yt({createPassportSvg:s,passport:n,onCancel:l,onSwitchPassport:p=()=>{}}){const{t:c}=F(),u=$t({tab:Oe}),f={info:{label:c("common.basicInfo"),value:Oe,component:()=>e.jsx(jt,{passport:n,createPassportSvg:s})},logs:{label:c("common.logs"),value:"logs",component:()=>e.jsx(Ct,{passport:n})},related:{label:c("team.passport.related"),value:"related",component:()=>e.jsx(St,{passport:n,onSwitchPassport:p})}},a=Object.values(f).map(({label:o,value:i})=>({label:o,value:i})).filter(o=>o.value==="related"?n.parentDid:!0),d=f[u.tab]||f.info,r=o=>{u.tab=o};return e.jsx(H,{title:c("common.passport"),onClose:l,open:!0,PaperProps:{style:{maxWidth:800,minHeight:"80vh"}},fullWidth:!0,children:e.jsxs(Ts,{children:[e.jsx(g,{className:"tabs",children:e.jsx(as,{tabs:a,current:u.tab,onChange:r,scrollButtons:"auto"})}),e.jsx(g,{className:"body",children:e.jsx(d.component,{})})]})})}yt.propTypes={createPassportSvg:y.func.isRequired,passport:y.object.isRequired,onCancel:y.func.isRequired,onSwitchPassport:y.func};const Ts=W(g)`
|
|
2
2
|
margin-top: -16px;
|
|
3
3
|
|
|
4
4
|
.tabs {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{be as v,r as at}from"./index-BfokqgHy.js";var he=e=>e.type==="checkbox",ue=e=>e instanceof Date,$=e=>e==null;const _t=e=>typeof e=="object";var P=e=>!$(e)&&!Array.isArray(e)&&_t(e)&&!ue(e),ht=e=>P(e)&&e.target?he(e.target)?e.target.checked:e.target.value:e,Nt=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,mt=(e,r)=>e.has(Nt(r)),Bt=e=>{const r=e.constructor&&e.constructor.prototype;return P(r)&&r.hasOwnProperty("isPrototypeOf")},je=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function T(e){let r;const t=Array.isArray(e),i=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(e instanceof Set)r=new Set(e);else if(!(je&&(e instanceof Blob||i))&&(t||P(e)))if(r=t?[]:{},!t&&!Bt(e))r=e;else for(const n in e)e.hasOwnProperty(n)&&(r[n]=T(e[n]));else return e;return r}var Se=e=>/^\w*$/.test(e),U=e=>e===void 0,we=e=>Array.isArray(e)?e.filter(Boolean):[],Ke=e=>we(e.replace(/["|']|\]/g,"").split(/\.|\[/)),c=(e,r,t)=>{if(!r||!P(e))return t;const i=(Se(r)?[r]:Ke(r)).reduce((n,l)=>$(n)?n:n[l],e);return U(i)||i===e?U(e[r])?t:e[r]:i},Q=e=>typeof e=="boolean",E=(e,r,t)=>{let i=-1;const n=Se(r)?[r]:Ke(r),l=n.length,f=l-1;for(;++i<l;){const d=n[i];let b=t;if(i!==f){const x=e[d];b=P(x)||Array.isArray(x)?x:isNaN(+n[i+1])?{}:[]}if(d==="__proto__"||d==="constructor"||d==="prototype")return;e[d]=b,e=e[d]}};const Fe={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Z={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ie={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},vt=v.createContext(null);vt.displayName="HookFormContext";const ke=()=>v.useContext(vt);var bt=(e,r,t,i=!0)=>{const n={defaultValues:r._defaultValues};for(const l in e)Object.defineProperty(n,l,{get:()=>{const f=l;return r._proxyFormState[f]!==Z.all&&(r._proxyFormState[f]=!i||Z.all),t&&(t[f]=!0),e[f]}});return n};const De=typeof window<"u"?at.useLayoutEffect:at.useEffect;function Pt(e){const r=ke(),{control:t=r.control,disabled:i,name:n,exact:l}=e||{},[f,d]=v.useState(t._formState),b=v.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return De(()=>t._subscribe({name:n,formState:b.current,exact:l,callback:x=>{!i&&d({...t._formState,...x})}}),[n,i,l]),v.useEffect(()=>{b.current.isValid&&t._setValid(!0)},[t]),v.useMemo(()=>bt(f,t,b.current,!1),[f,t])}var se=e=>typeof e=="string",Ft=(e,r,t,i,n)=>se(e)?(i&&r.watch.add(e),c(t,e,n)):Array.isArray(e)?e.map(l=>(i&&r.watch.add(l),c(t,l))):(i&&(r.watchAll=!0),t);function Wt(e){const r=ke(),{control:t=r.control,name:i,defaultValue:n,disabled:l,exact:f}=e||{},d=v.useRef(n),[b,x]=v.useState(t._getWatch(i,d.current));return De(()=>t._subscribe({name:i,formState:{values:!0},exact:f,callback:D=>!l&&x(Ft(i,t._names,D.values||t._formValues,!1,d.current))}),[i,t,l,f]),v.useEffect(()=>t._removeUnmounted()),b}function qt(e){const r=ke(),{name:t,disabled:i,control:n=r.control,shouldUnregister:l}=e,f=mt(n._names.array,t),d=Wt({control:n,name:t,defaultValue:c(n._formValues,t,c(n._defaultValues,t,e.defaultValue)),exact:!0}),b=Pt({control:n,name:t,exact:!0}),x=v.useRef(e),D=v.useRef(n.register(t,{...e.rules,value:d,...Q(e.disabled)?{disabled:e.disabled}:{}})),C=v.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!c(b.errors,t)},isDirty:{enumerable:!0,get:()=>!!c(b.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!c(b.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!c(b.validatingFields,t)},error:{enumerable:!0,get:()=>c(b.errors,t)}}),[b,t]),F=v.useCallback(L=>D.current.onChange({target:{value:ht(L),name:t},type:Fe.CHANGE}),[t]),M=v.useCallback(()=>D.current.onBlur({target:{value:c(n._formValues,t),name:t},type:Fe.BLUR}),[t,n._formValues]),z=v.useCallback(L=>{const ee=c(n._fields,t);ee&&L&&(ee._f.ref={focus:()=>L.focus&&L.focus(),select:()=>L.select&&L.select(),setCustomValidity:V=>L.setCustomValidity(V),reportValidity:()=>L.reportValidity()})},[n._fields,t]),R=v.useMemo(()=>({name:t,value:d,...Q(i)||b.disabled?{disabled:b.disabled||i}:{},onChange:F,onBlur:M,ref:z}),[t,i,b.disabled,F,M,z,d]);return v.useEffect(()=>{const L=n._options.shouldUnregister||l;n.register(t,{...x.current.rules,...Q(x.current.disabled)?{disabled:x.current.disabled}:{}});const ee=(V,G)=>{const W=c(n._fields,V);W&&W._f&&(W._f.mount=G)};if(ee(t,!0),L){const V=T(c(n._options.defaultValues,t));E(n._defaultValues,t,V),U(c(n._formValues,t))&&E(n._formValues,t,V)}return!f&&n.register(t),()=>{(f?L&&!n._state.action:L)?n.unregister(t):ee(t,!1)}},[t,n,f,l]),v.useEffect(()=>{n._setDisabledField({disabled:i,name:t})},[i,t,n]),v.useMemo(()=>({field:R,formState:b,fieldState:C}),[R,b,C])}const ar=e=>e.render(qt(e));var Ht=(e,r,t,i,n)=>r?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[i]:n||!0}}:{},K=e=>Array.isArray(e)?e:[e],nt=()=>{let e=[];return{get observers(){return e},next:n=>{for(const l of e)l.next&&l.next(n)},subscribe:n=>(e.push(n),{unsubscribe:()=>{e=e.filter(l=>l!==n)}}),unsubscribe:()=>{e=[]}}},qe=e=>$(e)||!_t(e);function le(e,r,t=new WeakSet){if(qe(e)||qe(r))return e===r;if(ue(e)&&ue(r))return e.getTime()===r.getTime();const i=Object.keys(e),n=Object.keys(r);if(i.length!==n.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const l of i){const f=e[l];if(!n.includes(l))return!1;if(l!=="ref"){const d=r[l];if(ue(f)&&ue(d)||P(f)&&P(d)||Array.isArray(f)&&Array.isArray(d)?!le(f,d,t):f!==d)return!1}}return!0}var H=e=>P(e)&&!Object.keys(e).length,ze=e=>e.type==="file",te=e=>typeof e=="function",Ve=e=>{if(!je)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},Vt=e=>e.type==="select-multiple",Ge=e=>e.type==="radio",$t=e=>Ge(e)||he(e),Me=e=>Ve(e)&&e.isConnected;function jt(e,r){const t=r.slice(0,-1).length;let i=0;for(;i<t;)e=U(e)?i++:e[r[i++]];return e}function Kt(e){for(const r in e)if(e.hasOwnProperty(r)&&!U(e[r]))return!1;return!0}function B(e,r){const t=Array.isArray(r)?r:Se(r)?[r]:Ke(r),i=t.length===1?e:jt(e,t),n=t.length-1,l=t[n];return i&&delete i[l],n!==0&&(P(i)&&H(i)||Array.isArray(i)&&Kt(i))&&B(e,t.slice(0,-1)),e}var At=e=>{for(const r in e)if(te(e[r]))return!0;return!1};function Ae(e,r={}){const t=Array.isArray(e);if(P(e)||t)for(const i in e)Array.isArray(e[i])||P(e[i])&&!At(e[i])?(r[i]=Array.isArray(e[i])?[]:{},Ae(e[i],r[i])):$(e[i])||(r[i]=!0);return r}function xt(e,r,t){const i=Array.isArray(e);if(P(e)||i)for(const n in e)Array.isArray(e[n])||P(e[n])&&!At(e[n])?U(r)||qe(t[n])?t[n]=Array.isArray(e[n])?Ae(e[n],[]):{...Ae(e[n])}:xt(e[n],$(r)?{}:r[n],t[n]):t[n]=!le(e[n],r[n]);return t}var ge=(e,r)=>xt(e,r,Ae(r));const lt={value:!1,isValid:!1},ut={value:!0,isValid:!0};var St=e=>{if(Array.isArray(e)){if(e.length>1){const r=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:r,isValid:!!r.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!U(e[0].attributes.value)?U(e[0].value)||e[0].value===""?ut:{value:e[0].value,isValid:!0}:ut:lt}return lt},wt=(e,{valueAsNumber:r,valueAsDate:t,setValueAs:i})=>U(e)?e:r?e===""?NaN:e&&+e:t&&se(e)?new Date(e):i?i(e):e;const ot={isValid:!1,value:null};var kt=e=>Array.isArray(e)?e.reduce((r,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:r,ot):ot;function ct(e){const r=e.ref;return ze(r)?r.files:Ge(r)?kt(e.refs).value:Vt(r)?[...r.selectedOptions].map(({value:t})=>t):he(r)?St(e.refs).value:wt(U(r.value)?e.ref.value:r.value,e)}var zt=(e,r,t,i)=>{const n={};for(const l of e){const f=c(r,l);f&&E(n,l,f._f)}return{criteriaMode:t,names:[...e],fields:n,shouldUseNativeValidation:i}},xe=e=>e instanceof RegExp,_e=e=>U(e)?e:xe(e)?e.source:P(e)?xe(e.value)?e.value.source:e.value:e,de=e=>({isOnSubmit:!e||e===Z.onSubmit,isOnBlur:e===Z.onBlur,isOnChange:e===Z.onChange,isOnAll:e===Z.all,isOnTouch:e===Z.onTouched});const dt="AsyncFunction";var Gt=e=>!!e&&!!e.validate&&!!(te(e.validate)&&e.validate.constructor.name===dt||P(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===dt)),Yt=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),He=(e,r,t)=>!t&&(r.watchAll||r.watch.has(e)||[...r.watch].some(i=>e.startsWith(i)&&/^\.\w+/.test(e.slice(i.length))));const fe=(e,r,t,i)=>{for(const n of t||Object.keys(e)){const l=c(e,n);if(l){const{_f:f,...d}=l;if(f){if(f.refs&&f.refs[0]&&r(f.refs[0],n)&&!i)return!0;if(f.ref&&r(f.ref,f.name)&&!i)return!0;if(fe(d,r))break}else if(P(d)&&fe(d,r))break}}};function ft(e,r,t){const i=c(e,t);if(i||Se(t))return{error:i,name:t};const n=t.split(".");for(;n.length;){const l=n.join("."),f=c(r,l),d=c(e,l);if(f&&!Array.isArray(f)&&t!==l)return{name:t};if(d&&d.type)return{name:l,error:d};if(d&&d.root&&d.root.type)return{name:`${l}.root`,error:d.root};n.pop()}return{name:t}}var Jt=(e,r,t,i)=>{t(e);const{name:n,...l}=e;return H(l)||Object.keys(l).length>=Object.keys(r).length||Object.keys(l).find(f=>r[f]===(!i||Z.all))},Qt=(e,r,t)=>!e||!r||e===r||K(e).some(i=>i&&(t?i===r:i.startsWith(r)||r.startsWith(i))),Xt=(e,r,t,i,n)=>n.isOnAll?!1:!t&&n.isOnTouch?!(r||e):(t?i.isOnBlur:n.isOnBlur)?!e:(t?i.isOnChange:n.isOnChange)?e:!0,Zt=(e,r)=>!we(c(e,r)).length&&B(e,r),Dt=(e,r,t)=>{const i=K(c(e,t));return E(i,"root",r[t]),E(e,t,i),e},be=e=>se(e);function yt(e,r,t="validate"){if(be(e)||Array.isArray(e)&&e.every(be)||Q(e)&&!e)return{type:t,message:be(e)?e:"",ref:r}}var ce=e=>P(e)&&!xe(e)?e:{value:e,message:""},$e=async(e,r,t,i,n,l)=>{const{ref:f,refs:d,required:b,maxLength:x,minLength:D,min:C,max:F,pattern:M,validate:z,name:R,valueAsNumber:L,mount:ee}=e._f,V=c(t,R);if(!ee||r.has(R))return{};const G=d?d[0]:f,W=w=>{n&&G.reportValidity&&(G.setCustomValidity(Q(w)?"":w||""),G.reportValidity())},I={},m=Ge(f),h=he(f),A=m||h,S=(L||ze(f))&&U(f.value)&&U(V)||Ve(f)&&f.value===""||V===""||Array.isArray(V)&&!V.length,Y=Ht.bind(null,R,i,I),J=(w,p,N,q=ie.maxLength,j=ie.minLength)=>{const re=w?p:N;I[R]={type:w?q:j,message:re,ref:f,...Y(w?q:j,re)}};if(l?!Array.isArray(V)||!V.length:b&&(!A&&(S||$(V))||Q(V)&&!V||h&&!St(d).isValid||m&&!kt(d).isValid)){const{value:w,message:p}=be(b)?{value:!!b,message:b}:ce(b);if(w&&(I[R]={type:ie.required,message:p,ref:G,...Y(ie.required,p)},!i))return W(p),I}if(!S&&(!$(C)||!$(F))){let w,p;const N=ce(F),q=ce(C);if(!$(V)&&!isNaN(V)){const j=f.valueAsNumber||V&&+V;$(N.value)||(w=j>N.value),$(q.value)||(p=j<q.value)}else{const j=f.valueAsDate||new Date(V),re=me=>new Date(new Date().toDateString()+" "+me),ye=f.type=="time",oe=f.type=="week";se(N.value)&&V&&(w=ye?re(V)>re(N.value):oe?V>N.value:j>new Date(N.value)),se(q.value)&&V&&(p=ye?re(V)<re(q.value):oe?V<q.value:j<new Date(q.value))}if((w||p)&&(J(!!w,N.message,q.message,ie.max,ie.min),!i))return W(I[R].message),I}if((x||D)&&!S&&(se(V)||l&&Array.isArray(V))){const w=ce(x),p=ce(D),N=!$(w.value)&&V.length>+w.value,q=!$(p.value)&&V.length<+p.value;if((N||q)&&(J(N,w.message,p.message),!i))return W(I[R].message),I}if(M&&!S&&se(V)){const{value:w,message:p}=ce(M);if(xe(w)&&!V.match(w)&&(I[R]={type:ie.pattern,message:p,ref:f,...Y(ie.pattern,p)},!i))return W(p),I}if(z){if(te(z)){const w=await z(V,t),p=yt(w,G);if(p&&(I[R]={...p,...Y(ie.validate,p.message)},!i))return W(p.message),I}else if(P(z)){let w={};for(const p in z){if(!H(w)&&!i)break;const N=yt(await z[p](V,t),G,p);N&&(w={...N,...Y(p,N.message)},W(N.message),i&&(I[R]=w))}if(!H(w)&&(I[R]={ref:G,...w},!i))return I}}return W(!0),I};const er={mode:Z.onSubmit,reValidateMode:Z.onChange,shouldFocusError:!0};function tr(e={}){let r={...er,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:te(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1};const i={};let n=P(r.defaultValues)||P(r.values)?T(r.defaultValues||r.values)||{}:{},l=r.shouldUnregister?{}:T(n),f={action:!1,mount:!1,watch:!1},d={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},b,x=0;const D={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let C={...D};const F={array:nt(),state:nt()},M=r.criteriaMode===Z.all,z=s=>a=>{clearTimeout(x),x=setTimeout(s,a)},R=async s=>{if(!r.disabled&&(D.isValid||C.isValid||s)){const a=r.resolver?H((await h()).errors):await S(i,!0);a!==t.isValid&&F.state.next({isValid:a})}},L=(s,a)=>{!r.disabled&&(D.isValidating||D.validatingFields||C.isValidating||C.validatingFields)&&((s||Array.from(d.mount)).forEach(u=>{u&&(a?E(t.validatingFields,u,a):B(t.validatingFields,u))}),F.state.next({validatingFields:t.validatingFields,isValidating:!H(t.validatingFields)}))},ee=(s,a=[],u,g,y=!0,o=!0)=>{if(g&&u&&!r.disabled){if(f.action=!0,o&&Array.isArray(c(i,s))){const _=u(c(i,s),g.argA,g.argB);y&&E(i,s,_)}if(o&&Array.isArray(c(t.errors,s))){const _=u(c(t.errors,s),g.argA,g.argB);y&&E(t.errors,s,_),Zt(t.errors,s)}if((D.touchedFields||C.touchedFields)&&o&&Array.isArray(c(t.touchedFields,s))){const _=u(c(t.touchedFields,s),g.argA,g.argB);y&&E(t.touchedFields,s,_)}(D.dirtyFields||C.dirtyFields)&&(t.dirtyFields=ge(n,l)),F.state.next({name:s,isDirty:J(s,a),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else E(l,s,a)},V=(s,a)=>{E(t.errors,s,a),F.state.next({errors:t.errors})},G=s=>{t.errors=s,F.state.next({errors:t.errors,isValid:!1})},W=(s,a,u,g)=>{const y=c(i,s);if(y){const o=c(l,s,U(u)?c(n,s):u);U(o)||g&&g.defaultChecked||a?E(l,s,a?o:ct(y._f)):N(s,o),f.mount&&R()}},I=(s,a,u,g,y)=>{let o=!1,_=!1;const k={name:s};if(!r.disabled){if(!u||g){(D.isDirty||C.isDirty)&&(_=t.isDirty,t.isDirty=k.isDirty=J(),o=_!==k.isDirty);const O=le(c(n,s),a);_=!!c(t.dirtyFields,s),O?B(t.dirtyFields,s):E(t.dirtyFields,s,!0),k.dirtyFields=t.dirtyFields,o=o||(D.dirtyFields||C.dirtyFields)&&_!==!O}if(u){const O=c(t.touchedFields,s);O||(E(t.touchedFields,s,u),k.touchedFields=t.touchedFields,o=o||(D.touchedFields||C.touchedFields)&&O!==u)}o&&y&&F.state.next(k)}return o?k:{}},m=(s,a,u,g)=>{const y=c(t.errors,s),o=(D.isValid||C.isValid)&&Q(a)&&t.isValid!==a;if(r.delayError&&u?(b=z(()=>V(s,u)),b(r.delayError)):(clearTimeout(x),b=null,u?E(t.errors,s,u):B(t.errors,s)),(u?!le(y,u):y)||!H(g)||o){const _={...g,...o&&Q(a)?{isValid:a}:{},errors:t.errors,name:s};t={...t,..._},F.state.next(_)}},h=async s=>{L(s,!0);const a=await r.resolver(l,r.context,zt(s||d.mount,i,r.criteriaMode,r.shouldUseNativeValidation));return L(s),a},A=async s=>{const{errors:a}=await h(s);if(s)for(const u of s){const g=c(a,u);g?E(t.errors,u,g):B(t.errors,u)}else t.errors=a;return a},S=async(s,a,u={valid:!0})=>{for(const g in s){const y=s[g];if(y){const{_f:o,..._}=y;if(o){const k=d.array.has(o.name),O=y._f&&Gt(y._f);O&&D.validatingFields&&L([g],!0);const X=await $e(y,d.disabled,l,M,r.shouldUseNativeValidation&&!a,k);if(O&&D.validatingFields&&L([g]),X[o.name]&&(u.valid=!1,a))break;!a&&(c(X,o.name)?k?Dt(t.errors,X,o.name):E(t.errors,o.name,X[o.name]):B(t.errors,o.name))}!H(_)&&await S(_,a,u)}}return u.valid},Y=()=>{for(const s of d.unMount){const a=c(i,s);a&&(a._f.refs?a._f.refs.every(u=>!Me(u)):!Me(a._f.ref))&&Ee(s)}d.unMount=new Set},J=(s,a)=>!r.disabled&&(s&&a&&E(l,s,a),!le(me(),n)),w=(s,a,u)=>Ft(s,d,{...f.mount?l:U(a)?n:se(s)?{[s]:a}:a},u,a),p=s=>we(c(f.mount?l:n,s,r.shouldUnregister?c(n,s,[]):[])),N=(s,a,u={})=>{const g=c(i,s);let y=a;if(g){const o=g._f;o&&(!o.disabled&&E(l,s,wt(a,o)),y=Ve(o.ref)&&$(a)?"":a,Vt(o.ref)?[...o.ref.options].forEach(_=>_.selected=y.includes(_.value)):o.refs?he(o.ref)?o.refs.forEach(_=>{(!_.defaultChecked||!_.disabled)&&(Array.isArray(y)?_.checked=!!y.find(k=>k===_.value):_.checked=y===_.value||!!y)}):o.refs.forEach(_=>_.checked=_.value===y):ze(o.ref)?o.ref.value="":(o.ref.value=y,o.ref.type||F.state.next({name:s,values:T(l)})))}(u.shouldDirty||u.shouldTouch)&&I(s,y,u.shouldTouch,u.shouldDirty,!0),u.shouldValidate&&oe(s)},q=(s,a,u)=>{for(const g in a){if(!a.hasOwnProperty(g))return;const y=a[g],o=s+"."+g,_=c(i,o);(d.array.has(s)||P(y)||_&&!_._f)&&!ue(y)?q(o,y,u):N(o,y,u)}},j=(s,a,u={})=>{const g=c(i,s),y=d.array.has(s),o=T(a);E(l,s,o),y?(F.array.next({name:s,values:T(l)}),(D.isDirty||D.dirtyFields||C.isDirty||C.dirtyFields)&&u.shouldDirty&&F.state.next({name:s,dirtyFields:ge(n,l),isDirty:J(s,o)})):g&&!g._f&&!$(o)?q(s,o,u):N(s,o,u),He(s,d)&&F.state.next({...t}),F.state.next({name:f.mount?s:void 0,values:T(l)})},re=async s=>{f.mount=!0;const a=s.target;let u=a.name,g=!0;const y=c(i,u),o=O=>{g=Number.isNaN(O)||ue(O)&&isNaN(O.getTime())||le(O,c(l,u,O))},_=de(r.mode),k=de(r.reValidateMode);if(y){let O,X;const ve=a.type?ct(y._f):ht(s),ae=s.type===Fe.BLUR||s.type===Fe.FOCUS_OUT,Lt=!Yt(y._f)&&!r.resolver&&!c(t.errors,u)&&!y._f.deps||Xt(ae,c(t.touchedFields,u),t.isSubmitted,k,_),Oe=He(u,d,ae);E(l,u,ve),ae?(y._f.onBlur&&y._f.onBlur(s),b&&b(0)):y._f.onChange&&y._f.onChange(s);const Ue=I(u,ve,ae),Tt=!H(Ue)||Oe;if(!ae&&F.state.next({name:u,type:s.type,values:T(l)}),Lt)return(D.isValid||C.isValid)&&(r.mode==="onBlur"?ae&&R():ae||R()),Tt&&F.state.next({name:u,...Oe?{}:Ue});if(!ae&&Oe&&F.state.next({...t}),r.resolver){const{errors:st}=await h([u]);if(o(ve),g){const It=ft(t.errors,i,u),it=ft(st,i,It.name||u);O=it.error,u=it.name,X=H(st)}}else L([u],!0),O=(await $e(y,d.disabled,l,M,r.shouldUseNativeValidation))[u],L([u]),o(ve),g&&(O?X=!1:(D.isValid||C.isValid)&&(X=await S(i,!0)));g&&(y._f.deps&&oe(y._f.deps),m(u,X,O,Ue))}},ye=(s,a)=>{if(c(t.errors,a)&&s.focus)return s.focus(),1},oe=async(s,a={})=>{let u,g;const y=K(s);if(r.resolver){const o=await A(U(s)?s:y);u=H(o),g=s?!y.some(_=>c(o,_)):u}else s?(g=(await Promise.all(y.map(async o=>{const _=c(i,o);return await S(_&&_._f?{[o]:_}:_)}))).every(Boolean),!(!g&&!t.isValid)&&R()):g=u=await S(i);return F.state.next({...!se(s)||(D.isValid||C.isValid)&&u!==t.isValid?{}:{name:s},...r.resolver||!s?{isValid:u}:{},errors:t.errors}),a.shouldFocus&&!g&&fe(i,ye,s?y:d.mount),g},me=s=>{const a={...f.mount?l:n};return U(s)?a:se(s)?c(a,s):s.map(u=>c(a,u))},Ye=(s,a)=>({invalid:!!c((a||t).errors,s),isDirty:!!c((a||t).dirtyFields,s),error:c((a||t).errors,s),isValidating:!!c(t.validatingFields,s),isTouched:!!c((a||t).touchedFields,s)}),Et=s=>{s&&K(s).forEach(a=>B(t.errors,a)),F.state.next({errors:s?t.errors:{}})},Je=(s,a,u)=>{const g=(c(i,s,{_f:{}})._f||{}).ref,y=c(t.errors,s)||{},{ref:o,message:_,type:k,...O}=y;E(t.errors,s,{...O,...a,ref:g}),F.state.next({name:s,errors:t.errors,isValid:!1}),u&&u.shouldFocus&&g&&g.focus&&g.focus()},pt=(s,a)=>te(s)?F.state.subscribe({next:u=>s(w(void 0,a),u)}):w(s,a,!0),Qe=s=>F.state.subscribe({next:a=>{Qt(s.name,a.name,s.exact)&&Jt(a,s.formState||D,Rt,s.reRenderRoot)&&s.callback({values:{...l},...t,...a})}}).unsubscribe,Ct=s=>(f.mount=!0,C={...C,...s.formState},Qe({...s,formState:C})),Ee=(s,a={})=>{for(const u of s?K(s):d.mount)d.mount.delete(u),d.array.delete(u),a.keepValue||(B(i,u),B(l,u)),!a.keepError&&B(t.errors,u),!a.keepDirty&&B(t.dirtyFields,u),!a.keepTouched&&B(t.touchedFields,u),!a.keepIsValidating&&B(t.validatingFields,u),!r.shouldUnregister&&!a.keepDefaultValue&&B(n,u);F.state.next({values:T(l)}),F.state.next({...t,...a.keepDirty?{isDirty:J()}:{}}),!a.keepIsValid&&R()},Xe=({disabled:s,name:a})=>{(Q(s)&&f.mount||s||d.disabled.has(a))&&(s?d.disabled.add(a):d.disabled.delete(a))},pe=(s,a={})=>{let u=c(i,s);const g=Q(a.disabled)||Q(r.disabled);return E(i,s,{...u||{},_f:{...u&&u._f?u._f:{ref:{name:s}},name:s,mount:!0,...a}}),d.mount.add(s),u?Xe({disabled:Q(a.disabled)?a.disabled:r.disabled,name:s}):W(s,!0,a.value),{...g?{disabled:a.disabled||r.disabled}:{},...r.progressive?{required:!!a.required,min:_e(a.min),max:_e(a.max),minLength:_e(a.minLength),maxLength:_e(a.maxLength),pattern:_e(a.pattern)}:{},name:s,onChange:re,onBlur:re,ref:y=>{if(y){pe(s,a),u=c(i,s);const o=U(y.value)&&y.querySelectorAll&&y.querySelectorAll("input,select,textarea")[0]||y,_=$t(o),k=u._f.refs||[];if(_?k.find(O=>O===o):o===u._f.ref)return;E(i,s,{_f:{...u._f,..._?{refs:[...k.filter(Me),o,...Array.isArray(c(n,s))?[{}]:[]],ref:{type:o.type,name:s}}:{ref:o}}}),W(s,!1,void 0,o)}else u=c(i,s,{}),u._f&&(u._f.mount=!1),(r.shouldUnregister||a.shouldUnregister)&&!(mt(d.array,s)&&f.action)&&d.unMount.add(s)}}},Ce=()=>r.shouldFocusError&&fe(i,ye,d.mount),Ot=s=>{Q(s)&&(F.state.next({disabled:s}),fe(i,(a,u)=>{const g=c(i,u);g&&(a.disabled=g._f.disabled||s,Array.isArray(g._f.refs)&&g._f.refs.forEach(y=>{y.disabled=g._f.disabled||s}))},0,!1))},Ze=(s,a)=>async u=>{let g;u&&(u.preventDefault&&u.preventDefault(),u.persist&&u.persist());let y=T(l);if(F.state.next({isSubmitting:!0}),r.resolver){const{errors:o,values:_}=await h();t.errors=o,y=T(_)}else await S(i);if(d.disabled.size)for(const o of d.disabled)B(y,o);if(B(t.errors,"root"),H(t.errors)){F.state.next({errors:{}});try{await s(y,u)}catch(o){g=o}}else a&&await a({...t.errors},u),Ce(),setTimeout(Ce);if(F.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:H(t.errors)&&!g,submitCount:t.submitCount+1,errors:t.errors}),g)throw g},Ut=(s,a={})=>{c(i,s)&&(U(a.defaultValue)?j(s,T(c(n,s))):(j(s,a.defaultValue),E(n,s,T(a.defaultValue))),a.keepTouched||B(t.touchedFields,s),a.keepDirty||(B(t.dirtyFields,s),t.isDirty=a.defaultValue?J(s,T(c(n,s))):J()),a.keepError||(B(t.errors,s),D.isValid&&R()),F.state.next({...t}))},et=(s,a={})=>{const u=s?T(s):n,g=T(u),y=H(s),o=y?n:g;if(a.keepDefaultValues||(n=u),!a.keepValues){if(a.keepDirtyValues){const _=new Set([...d.mount,...Object.keys(ge(n,l))]);for(const k of Array.from(_))c(t.dirtyFields,k)?E(o,k,c(l,k)):j(k,c(o,k))}else{if(je&&U(s))for(const _ of d.mount){const k=c(i,_);if(k&&k._f){const O=Array.isArray(k._f.refs)?k._f.refs[0]:k._f.ref;if(Ve(O)){const X=O.closest("form");if(X){X.reset();break}}}}for(const _ of d.mount){const k=c(o,_,c(n,_));U(k)||(E(o,_,k),j(_,c(o,_)))}}l=T(o),F.array.next({values:{...o}}),F.state.next({values:{...o}})}d={mount:a.keepDirtyValues?d.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},f.mount=!D.isValid||!!a.keepIsValid||!!a.keepDirtyValues,f.watch=!!r.shouldUnregister,F.state.next({submitCount:a.keepSubmitCount?t.submitCount:0,isDirty:y?!1:a.keepDirty?t.isDirty:!!(a.keepDefaultValues&&!le(s,n)),isSubmitted:a.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:y?{}:a.keepDirtyValues?a.keepDefaultValues&&l?ge(n,l):t.dirtyFields:a.keepDefaultValues&&s?ge(n,s):a.keepDirty?t.dirtyFields:{},touchedFields:a.keepTouched?t.touchedFields:{},errors:a.keepErrors?t.errors:{},isSubmitSuccessful:a.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1})},tt=(s,a)=>et(te(s)?s(l):s,a),Mt=(s,a={})=>{const u=c(i,s),g=u&&u._f;if(g){const y=g.refs?g.refs[0]:g.ref;y.focus&&(y.focus(),a.shouldSelect&&te(y.select)&&y.select())}},Rt=s=>{t={...t,...s}},rt={control:{register:pe,unregister:Ee,getFieldState:Ye,handleSubmit:Ze,setError:Je,_subscribe:Qe,_runSchema:h,_focusError:Ce,_getWatch:w,_getDirty:J,_setValid:R,_setFieldArray:ee,_setDisabledField:Xe,_setErrors:G,_getFieldArray:p,_reset:et,_resetDefaultValues:()=>te(r.defaultValues)&&r.defaultValues().then(s=>{tt(s,r.resetOptions),F.state.next({isLoading:!1})}),_removeUnmounted:Y,_disableForm:Ot,_subjects:F,_proxyFormState:D,get _fields(){return i},get _formValues(){return l},get _state(){return f},set _state(s){f=s},get _defaultValues(){return n},get _names(){return d},set _names(s){d=s},get _formState(){return t},get _options(){return r},set _options(s){r={...r,...s}}},subscribe:Ct,trigger:oe,register:pe,handleSubmit:Ze,watch:pt,setValue:j,getValues:me,reset:tt,resetField:Ut,clearErrors:Et,unregister:Ee,setError:Je,setFocus:Mt,getFieldState:Ye};return{...rt,formControl:rt}}var ne=()=>{if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,r=>{const t=(Math.random()*16+e)%16|0;return(r=="x"?t:t&3|8).toString(16)})},Re=(e,r,t={})=>t.shouldFocus||U(t.shouldFocus)?t.focusName||`${e}.${U(t.focusIndex)?r:t.focusIndex}.`:"",Le=(e,r)=>[...e,...K(r)],Te=e=>Array.isArray(e)?e.map(()=>{}):void 0;function Ie(e,r,t){return[...e.slice(0,r),...K(t),...e.slice(r)]}var Ne=(e,r,t)=>Array.isArray(e)?(U(e[t])&&(e[t]=void 0),e.splice(t,0,e.splice(r,1)[0]),e):[],Be=(e,r)=>[...K(r),...K(e)];function rr(e,r){let t=0;const i=[...e];for(const n of r)i.splice(n-t,1),t++;return we(i).length?i:[]}var Pe=(e,r)=>U(r)?[]:rr(e,K(r).sort((t,i)=>t-i)),We=(e,r,t)=>{[e[r],e[t]]=[e[t],e[r]]},gt=(e,r,t)=>(e[r]=t,e);function nr(e){const r=ke(),{control:t=r.control,name:i,keyName:n="id",shouldUnregister:l,rules:f}=e,[d,b]=v.useState(t._getFieldArray(i)),x=v.useRef(t._getFieldArray(i).map(ne)),D=v.useRef(d),C=v.useRef(i),F=v.useRef(!1);C.current=i,D.current=d,t._names.array.add(i),f&&t.register(i,f),De(()=>t._subjects.array.subscribe({next:({values:m,name:h})=>{if(h===C.current||!h){const A=c(m,C.current);Array.isArray(A)&&(b(A),x.current=A.map(ne))}}}).unsubscribe,[t]);const M=v.useCallback(m=>{F.current=!0,t._setFieldArray(i,m)},[t,i]),z=(m,h)=>{const A=K(T(m)),S=Le(t._getFieldArray(i),A);t._names.focus=Re(i,S.length-1,h),x.current=Le(x.current,A.map(ne)),M(S),b(S),t._setFieldArray(i,S,Le,{argA:Te(m)})},R=(m,h)=>{const A=K(T(m)),S=Be(t._getFieldArray(i),A);t._names.focus=Re(i,0,h),x.current=Be(x.current,A.map(ne)),M(S),b(S),t._setFieldArray(i,S,Be,{argA:Te(m)})},L=m=>{const h=Pe(t._getFieldArray(i),m);x.current=Pe(x.current,m),M(h),b(h),!Array.isArray(c(t._fields,i))&&E(t._fields,i,void 0),t._setFieldArray(i,h,Pe,{argA:m})},ee=(m,h,A)=>{const S=K(T(h)),Y=Ie(t._getFieldArray(i),m,S);t._names.focus=Re(i,m,A),x.current=Ie(x.current,m,S.map(ne)),M(Y),b(Y),t._setFieldArray(i,Y,Ie,{argA:m,argB:Te(h)})},V=(m,h)=>{const A=t._getFieldArray(i);We(A,m,h),We(x.current,m,h),M(A),b(A),t._setFieldArray(i,A,We,{argA:m,argB:h},!1)},G=(m,h)=>{const A=t._getFieldArray(i);Ne(A,m,h),Ne(x.current,m,h),M(A),b(A),t._setFieldArray(i,A,Ne,{argA:m,argB:h},!1)},W=(m,h)=>{const A=T(h),S=gt(t._getFieldArray(i),m,A);x.current=[...S].map((Y,J)=>!Y||J===m?ne():x.current[J]),M(S),b([...S]),t._setFieldArray(i,S,gt,{argA:m,argB:A},!0,!1)},I=m=>{const h=K(T(m));x.current=h.map(ne),M([...h]),b([...h]),t._setFieldArray(i,[...h],A=>A,{},!0,!1)};return v.useEffect(()=>{if(t._state.action=!1,He(i,t._names)&&t._subjects.state.next({...t._formState}),F.current&&(!de(t._options.mode).isOnSubmit||t._formState.isSubmitted)&&!de(t._options.reValidateMode).isOnSubmit)if(t._options.resolver)t._runSchema([i]).then(m=>{const h=c(m.errors,i),A=c(t._formState.errors,i);(A?!h&&A.type||h&&(A.type!==h.type||A.message!==h.message):h&&h.type)&&(h?E(t._formState.errors,i,h):B(t._formState.errors,i),t._subjects.state.next({errors:t._formState.errors}))});else{const m=c(t._fields,i);m&&m._f&&!(de(t._options.reValidateMode).isOnSubmit&&de(t._options.mode).isOnSubmit)&&$e(m,t._names.disabled,t._formValues,t._options.criteriaMode===Z.all,t._options.shouldUseNativeValidation,!0).then(h=>!H(h)&&t._subjects.state.next({errors:Dt(t._formState.errors,h,i)}))}t._subjects.state.next({name:i,values:T(t._formValues)}),t._names.focus&&fe(t._fields,(m,h)=>{if(t._names.focus&&h.startsWith(t._names.focus)&&m.focus)return m.focus(),1}),t._names.focus="",t._setValid(),F.current=!1},[d,i,t]),v.useEffect(()=>(!c(t._formValues,i)&&t._setFieldArray(i),()=>{const m=(h,A)=>{const S=c(t._fields,h);S&&S._f&&(S._f.mount=A)};t._options.shouldUnregister||l?t.unregister(i):m(i,!1)}),[i,t,n,l]),{swap:v.useCallback(V,[M,i,t]),move:v.useCallback(G,[M,i,t]),prepend:v.useCallback(R,[M,i,t]),append:v.useCallback(z,[M,i,t]),remove:v.useCallback(L,[M,i,t]),insert:v.useCallback(ee,[M,i,t]),update:v.useCallback(W,[M,i,t]),replace:v.useCallback(I,[M,i,t]),fields:v.useMemo(()=>d.map((m,h)=>({...m,[n]:x.current[h]||ne()})),[d,n])}}function lr(e={}){const r=v.useRef(void 0),t=v.useRef(void 0),[i,n]=v.useState({isDirty:!1,isValidating:!1,isLoading:te(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:te(e.defaultValues)?void 0:e.defaultValues});if(!r.current)if(e.formControl)r.current={...e.formControl,formState:i},e.defaultValues&&!te(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:f,...d}=tr(e);r.current={...d,formState:i}}const l=r.current.control;return l._options=e,De(()=>{const f=l._subscribe({formState:l._proxyFormState,callback:()=>n({...l._formState}),reRenderRoot:!0});return n(d=>({...d,isReady:!0})),l._formState.isReady=!0,f},[l]),v.useEffect(()=>l._disableForm(e.disabled),[l,e.disabled]),v.useEffect(()=>{e.mode&&(l._options.mode=e.mode),e.reValidateMode&&(l._options.reValidateMode=e.reValidateMode)},[l,e.mode,e.reValidateMode]),v.useEffect(()=>{e.errors&&(l._setErrors(e.errors),l._focusError())},[l,e.errors]),v.useEffect(()=>{e.shouldUnregister&&l._subjects.state.next({values:l._getWatch()})},[l,e.shouldUnregister]),v.useEffect(()=>{if(l._proxyFormState.isDirty){const f=l._getDirty();f!==i.isDirty&&l._subjects.state.next({isDirty:f})}},[l,i.isDirty]),v.useEffect(()=>{e.values&&!le(e.values,t.current)?(l._reset(e.values,l._options.resetOptions),t.current=e.values,n(f=>({...f}))):l._resetDefaultValues()},[l,e.values]),v.useEffect(()=>{l._state.mount||(l._setValid(),l._state.mount=!0),l._state.watch&&(l._state.watch=!1,l._subjects.state.next({...l._formState})),l._removeUnmounted()}),r.current.formState=bt(i,l),r.current}export{ar as C,Wt as a,nr as b,lr as u};
|
|
1
|
+
import{be as v,r as at}from"./index-Dzuc8iT3.js";var he=e=>e.type==="checkbox",ue=e=>e instanceof Date,$=e=>e==null;const _t=e=>typeof e=="object";var P=e=>!$(e)&&!Array.isArray(e)&&_t(e)&&!ue(e),ht=e=>P(e)&&e.target?he(e.target)?e.target.checked:e.target.value:e,Nt=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,mt=(e,r)=>e.has(Nt(r)),Bt=e=>{const r=e.constructor&&e.constructor.prototype;return P(r)&&r.hasOwnProperty("isPrototypeOf")},je=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function T(e){let r;const t=Array.isArray(e),i=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)r=new Date(e);else if(e instanceof Set)r=new Set(e);else if(!(je&&(e instanceof Blob||i))&&(t||P(e)))if(r=t?[]:{},!t&&!Bt(e))r=e;else for(const n in e)e.hasOwnProperty(n)&&(r[n]=T(e[n]));else return e;return r}var Se=e=>/^\w*$/.test(e),U=e=>e===void 0,we=e=>Array.isArray(e)?e.filter(Boolean):[],Ke=e=>we(e.replace(/["|']|\]/g,"").split(/\.|\[/)),c=(e,r,t)=>{if(!r||!P(e))return t;const i=(Se(r)?[r]:Ke(r)).reduce((n,l)=>$(n)?n:n[l],e);return U(i)||i===e?U(e[r])?t:e[r]:i},Q=e=>typeof e=="boolean",E=(e,r,t)=>{let i=-1;const n=Se(r)?[r]:Ke(r),l=n.length,f=l-1;for(;++i<l;){const d=n[i];let b=t;if(i!==f){const x=e[d];b=P(x)||Array.isArray(x)?x:isNaN(+n[i+1])?{}:[]}if(d==="__proto__"||d==="constructor"||d==="prototype")return;e[d]=b,e=e[d]}};const Fe={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Z={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ie={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},vt=v.createContext(null);vt.displayName="HookFormContext";const ke=()=>v.useContext(vt);var bt=(e,r,t,i=!0)=>{const n={defaultValues:r._defaultValues};for(const l in e)Object.defineProperty(n,l,{get:()=>{const f=l;return r._proxyFormState[f]!==Z.all&&(r._proxyFormState[f]=!i||Z.all),t&&(t[f]=!0),e[f]}});return n};const De=typeof window<"u"?at.useLayoutEffect:at.useEffect;function Pt(e){const r=ke(),{control:t=r.control,disabled:i,name:n,exact:l}=e||{},[f,d]=v.useState(t._formState),b=v.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return De(()=>t._subscribe({name:n,formState:b.current,exact:l,callback:x=>{!i&&d({...t._formState,...x})}}),[n,i,l]),v.useEffect(()=>{b.current.isValid&&t._setValid(!0)},[t]),v.useMemo(()=>bt(f,t,b.current,!1),[f,t])}var se=e=>typeof e=="string",Ft=(e,r,t,i,n)=>se(e)?(i&&r.watch.add(e),c(t,e,n)):Array.isArray(e)?e.map(l=>(i&&r.watch.add(l),c(t,l))):(i&&(r.watchAll=!0),t);function Wt(e){const r=ke(),{control:t=r.control,name:i,defaultValue:n,disabled:l,exact:f}=e||{},d=v.useRef(n),[b,x]=v.useState(t._getWatch(i,d.current));return De(()=>t._subscribe({name:i,formState:{values:!0},exact:f,callback:D=>!l&&x(Ft(i,t._names,D.values||t._formValues,!1,d.current))}),[i,t,l,f]),v.useEffect(()=>t._removeUnmounted()),b}function qt(e){const r=ke(),{name:t,disabled:i,control:n=r.control,shouldUnregister:l}=e,f=mt(n._names.array,t),d=Wt({control:n,name:t,defaultValue:c(n._formValues,t,c(n._defaultValues,t,e.defaultValue)),exact:!0}),b=Pt({control:n,name:t,exact:!0}),x=v.useRef(e),D=v.useRef(n.register(t,{...e.rules,value:d,...Q(e.disabled)?{disabled:e.disabled}:{}})),C=v.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!c(b.errors,t)},isDirty:{enumerable:!0,get:()=>!!c(b.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!c(b.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!c(b.validatingFields,t)},error:{enumerable:!0,get:()=>c(b.errors,t)}}),[b,t]),F=v.useCallback(L=>D.current.onChange({target:{value:ht(L),name:t},type:Fe.CHANGE}),[t]),M=v.useCallback(()=>D.current.onBlur({target:{value:c(n._formValues,t),name:t},type:Fe.BLUR}),[t,n._formValues]),z=v.useCallback(L=>{const ee=c(n._fields,t);ee&&L&&(ee._f.ref={focus:()=>L.focus&&L.focus(),select:()=>L.select&&L.select(),setCustomValidity:V=>L.setCustomValidity(V),reportValidity:()=>L.reportValidity()})},[n._fields,t]),R=v.useMemo(()=>({name:t,value:d,...Q(i)||b.disabled?{disabled:b.disabled||i}:{},onChange:F,onBlur:M,ref:z}),[t,i,b.disabled,F,M,z,d]);return v.useEffect(()=>{const L=n._options.shouldUnregister||l;n.register(t,{...x.current.rules,...Q(x.current.disabled)?{disabled:x.current.disabled}:{}});const ee=(V,G)=>{const W=c(n._fields,V);W&&W._f&&(W._f.mount=G)};if(ee(t,!0),L){const V=T(c(n._options.defaultValues,t));E(n._defaultValues,t,V),U(c(n._formValues,t))&&E(n._formValues,t,V)}return!f&&n.register(t),()=>{(f?L&&!n._state.action:L)?n.unregister(t):ee(t,!1)}},[t,n,f,l]),v.useEffect(()=>{n._setDisabledField({disabled:i,name:t})},[i,t,n]),v.useMemo(()=>({field:R,formState:b,fieldState:C}),[R,b,C])}const ar=e=>e.render(qt(e));var Ht=(e,r,t,i,n)=>r?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[i]:n||!0}}:{},K=e=>Array.isArray(e)?e:[e],nt=()=>{let e=[];return{get observers(){return e},next:n=>{for(const l of e)l.next&&l.next(n)},subscribe:n=>(e.push(n),{unsubscribe:()=>{e=e.filter(l=>l!==n)}}),unsubscribe:()=>{e=[]}}},qe=e=>$(e)||!_t(e);function le(e,r,t=new WeakSet){if(qe(e)||qe(r))return e===r;if(ue(e)&&ue(r))return e.getTime()===r.getTime();const i=Object.keys(e),n=Object.keys(r);if(i.length!==n.length)return!1;if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const l of i){const f=e[l];if(!n.includes(l))return!1;if(l!=="ref"){const d=r[l];if(ue(f)&&ue(d)||P(f)&&P(d)||Array.isArray(f)&&Array.isArray(d)?!le(f,d,t):f!==d)return!1}}return!0}var H=e=>P(e)&&!Object.keys(e).length,ze=e=>e.type==="file",te=e=>typeof e=="function",Ve=e=>{if(!je)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},Vt=e=>e.type==="select-multiple",Ge=e=>e.type==="radio",$t=e=>Ge(e)||he(e),Me=e=>Ve(e)&&e.isConnected;function jt(e,r){const t=r.slice(0,-1).length;let i=0;for(;i<t;)e=U(e)?i++:e[r[i++]];return e}function Kt(e){for(const r in e)if(e.hasOwnProperty(r)&&!U(e[r]))return!1;return!0}function B(e,r){const t=Array.isArray(r)?r:Se(r)?[r]:Ke(r),i=t.length===1?e:jt(e,t),n=t.length-1,l=t[n];return i&&delete i[l],n!==0&&(P(i)&&H(i)||Array.isArray(i)&&Kt(i))&&B(e,t.slice(0,-1)),e}var At=e=>{for(const r in e)if(te(e[r]))return!0;return!1};function Ae(e,r={}){const t=Array.isArray(e);if(P(e)||t)for(const i in e)Array.isArray(e[i])||P(e[i])&&!At(e[i])?(r[i]=Array.isArray(e[i])?[]:{},Ae(e[i],r[i])):$(e[i])||(r[i]=!0);return r}function xt(e,r,t){const i=Array.isArray(e);if(P(e)||i)for(const n in e)Array.isArray(e[n])||P(e[n])&&!At(e[n])?U(r)||qe(t[n])?t[n]=Array.isArray(e[n])?Ae(e[n],[]):{...Ae(e[n])}:xt(e[n],$(r)?{}:r[n],t[n]):t[n]=!le(e[n],r[n]);return t}var ge=(e,r)=>xt(e,r,Ae(r));const lt={value:!1,isValid:!1},ut={value:!0,isValid:!0};var St=e=>{if(Array.isArray(e)){if(e.length>1){const r=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:r,isValid:!!r.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!U(e[0].attributes.value)?U(e[0].value)||e[0].value===""?ut:{value:e[0].value,isValid:!0}:ut:lt}return lt},wt=(e,{valueAsNumber:r,valueAsDate:t,setValueAs:i})=>U(e)?e:r?e===""?NaN:e&&+e:t&&se(e)?new Date(e):i?i(e):e;const ot={isValid:!1,value:null};var kt=e=>Array.isArray(e)?e.reduce((r,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:r,ot):ot;function ct(e){const r=e.ref;return ze(r)?r.files:Ge(r)?kt(e.refs).value:Vt(r)?[...r.selectedOptions].map(({value:t})=>t):he(r)?St(e.refs).value:wt(U(r.value)?e.ref.value:r.value,e)}var zt=(e,r,t,i)=>{const n={};for(const l of e){const f=c(r,l);f&&E(n,l,f._f)}return{criteriaMode:t,names:[...e],fields:n,shouldUseNativeValidation:i}},xe=e=>e instanceof RegExp,_e=e=>U(e)?e:xe(e)?e.source:P(e)?xe(e.value)?e.value.source:e.value:e,de=e=>({isOnSubmit:!e||e===Z.onSubmit,isOnBlur:e===Z.onBlur,isOnChange:e===Z.onChange,isOnAll:e===Z.all,isOnTouch:e===Z.onTouched});const dt="AsyncFunction";var Gt=e=>!!e&&!!e.validate&&!!(te(e.validate)&&e.validate.constructor.name===dt||P(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===dt)),Yt=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),He=(e,r,t)=>!t&&(r.watchAll||r.watch.has(e)||[...r.watch].some(i=>e.startsWith(i)&&/^\.\w+/.test(e.slice(i.length))));const fe=(e,r,t,i)=>{for(const n of t||Object.keys(e)){const l=c(e,n);if(l){const{_f:f,...d}=l;if(f){if(f.refs&&f.refs[0]&&r(f.refs[0],n)&&!i)return!0;if(f.ref&&r(f.ref,f.name)&&!i)return!0;if(fe(d,r))break}else if(P(d)&&fe(d,r))break}}};function ft(e,r,t){const i=c(e,t);if(i||Se(t))return{error:i,name:t};const n=t.split(".");for(;n.length;){const l=n.join("."),f=c(r,l),d=c(e,l);if(f&&!Array.isArray(f)&&t!==l)return{name:t};if(d&&d.type)return{name:l,error:d};if(d&&d.root&&d.root.type)return{name:`${l}.root`,error:d.root};n.pop()}return{name:t}}var Jt=(e,r,t,i)=>{t(e);const{name:n,...l}=e;return H(l)||Object.keys(l).length>=Object.keys(r).length||Object.keys(l).find(f=>r[f]===(!i||Z.all))},Qt=(e,r,t)=>!e||!r||e===r||K(e).some(i=>i&&(t?i===r:i.startsWith(r)||r.startsWith(i))),Xt=(e,r,t,i,n)=>n.isOnAll?!1:!t&&n.isOnTouch?!(r||e):(t?i.isOnBlur:n.isOnBlur)?!e:(t?i.isOnChange:n.isOnChange)?e:!0,Zt=(e,r)=>!we(c(e,r)).length&&B(e,r),Dt=(e,r,t)=>{const i=K(c(e,t));return E(i,"root",r[t]),E(e,t,i),e},be=e=>se(e);function yt(e,r,t="validate"){if(be(e)||Array.isArray(e)&&e.every(be)||Q(e)&&!e)return{type:t,message:be(e)?e:"",ref:r}}var ce=e=>P(e)&&!xe(e)?e:{value:e,message:""},$e=async(e,r,t,i,n,l)=>{const{ref:f,refs:d,required:b,maxLength:x,minLength:D,min:C,max:F,pattern:M,validate:z,name:R,valueAsNumber:L,mount:ee}=e._f,V=c(t,R);if(!ee||r.has(R))return{};const G=d?d[0]:f,W=w=>{n&&G.reportValidity&&(G.setCustomValidity(Q(w)?"":w||""),G.reportValidity())},I={},m=Ge(f),h=he(f),A=m||h,S=(L||ze(f))&&U(f.value)&&U(V)||Ve(f)&&f.value===""||V===""||Array.isArray(V)&&!V.length,Y=Ht.bind(null,R,i,I),J=(w,p,N,q=ie.maxLength,j=ie.minLength)=>{const re=w?p:N;I[R]={type:w?q:j,message:re,ref:f,...Y(w?q:j,re)}};if(l?!Array.isArray(V)||!V.length:b&&(!A&&(S||$(V))||Q(V)&&!V||h&&!St(d).isValid||m&&!kt(d).isValid)){const{value:w,message:p}=be(b)?{value:!!b,message:b}:ce(b);if(w&&(I[R]={type:ie.required,message:p,ref:G,...Y(ie.required,p)},!i))return W(p),I}if(!S&&(!$(C)||!$(F))){let w,p;const N=ce(F),q=ce(C);if(!$(V)&&!isNaN(V)){const j=f.valueAsNumber||V&&+V;$(N.value)||(w=j>N.value),$(q.value)||(p=j<q.value)}else{const j=f.valueAsDate||new Date(V),re=me=>new Date(new Date().toDateString()+" "+me),ye=f.type=="time",oe=f.type=="week";se(N.value)&&V&&(w=ye?re(V)>re(N.value):oe?V>N.value:j>new Date(N.value)),se(q.value)&&V&&(p=ye?re(V)<re(q.value):oe?V<q.value:j<new Date(q.value))}if((w||p)&&(J(!!w,N.message,q.message,ie.max,ie.min),!i))return W(I[R].message),I}if((x||D)&&!S&&(se(V)||l&&Array.isArray(V))){const w=ce(x),p=ce(D),N=!$(w.value)&&V.length>+w.value,q=!$(p.value)&&V.length<+p.value;if((N||q)&&(J(N,w.message,p.message),!i))return W(I[R].message),I}if(M&&!S&&se(V)){const{value:w,message:p}=ce(M);if(xe(w)&&!V.match(w)&&(I[R]={type:ie.pattern,message:p,ref:f,...Y(ie.pattern,p)},!i))return W(p),I}if(z){if(te(z)){const w=await z(V,t),p=yt(w,G);if(p&&(I[R]={...p,...Y(ie.validate,p.message)},!i))return W(p.message),I}else if(P(z)){let w={};for(const p in z){if(!H(w)&&!i)break;const N=yt(await z[p](V,t),G,p);N&&(w={...N,...Y(p,N.message)},W(N.message),i&&(I[R]=w))}if(!H(w)&&(I[R]={ref:G,...w},!i))return I}}return W(!0),I};const er={mode:Z.onSubmit,reValidateMode:Z.onChange,shouldFocusError:!0};function tr(e={}){let r={...er,...e},t={submitCount:0,isDirty:!1,isReady:!1,isLoading:te(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1};const i={};let n=P(r.defaultValues)||P(r.values)?T(r.defaultValues||r.values)||{}:{},l=r.shouldUnregister?{}:T(n),f={action:!1,mount:!1,watch:!1},d={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},b,x=0;const D={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let C={...D};const F={array:nt(),state:nt()},M=r.criteriaMode===Z.all,z=s=>a=>{clearTimeout(x),x=setTimeout(s,a)},R=async s=>{if(!r.disabled&&(D.isValid||C.isValid||s)){const a=r.resolver?H((await h()).errors):await S(i,!0);a!==t.isValid&&F.state.next({isValid:a})}},L=(s,a)=>{!r.disabled&&(D.isValidating||D.validatingFields||C.isValidating||C.validatingFields)&&((s||Array.from(d.mount)).forEach(u=>{u&&(a?E(t.validatingFields,u,a):B(t.validatingFields,u))}),F.state.next({validatingFields:t.validatingFields,isValidating:!H(t.validatingFields)}))},ee=(s,a=[],u,g,y=!0,o=!0)=>{if(g&&u&&!r.disabled){if(f.action=!0,o&&Array.isArray(c(i,s))){const _=u(c(i,s),g.argA,g.argB);y&&E(i,s,_)}if(o&&Array.isArray(c(t.errors,s))){const _=u(c(t.errors,s),g.argA,g.argB);y&&E(t.errors,s,_),Zt(t.errors,s)}if((D.touchedFields||C.touchedFields)&&o&&Array.isArray(c(t.touchedFields,s))){const _=u(c(t.touchedFields,s),g.argA,g.argB);y&&E(t.touchedFields,s,_)}(D.dirtyFields||C.dirtyFields)&&(t.dirtyFields=ge(n,l)),F.state.next({name:s,isDirty:J(s,a),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else E(l,s,a)},V=(s,a)=>{E(t.errors,s,a),F.state.next({errors:t.errors})},G=s=>{t.errors=s,F.state.next({errors:t.errors,isValid:!1})},W=(s,a,u,g)=>{const y=c(i,s);if(y){const o=c(l,s,U(u)?c(n,s):u);U(o)||g&&g.defaultChecked||a?E(l,s,a?o:ct(y._f)):N(s,o),f.mount&&R()}},I=(s,a,u,g,y)=>{let o=!1,_=!1;const k={name:s};if(!r.disabled){if(!u||g){(D.isDirty||C.isDirty)&&(_=t.isDirty,t.isDirty=k.isDirty=J(),o=_!==k.isDirty);const O=le(c(n,s),a);_=!!c(t.dirtyFields,s),O?B(t.dirtyFields,s):E(t.dirtyFields,s,!0),k.dirtyFields=t.dirtyFields,o=o||(D.dirtyFields||C.dirtyFields)&&_!==!O}if(u){const O=c(t.touchedFields,s);O||(E(t.touchedFields,s,u),k.touchedFields=t.touchedFields,o=o||(D.touchedFields||C.touchedFields)&&O!==u)}o&&y&&F.state.next(k)}return o?k:{}},m=(s,a,u,g)=>{const y=c(t.errors,s),o=(D.isValid||C.isValid)&&Q(a)&&t.isValid!==a;if(r.delayError&&u?(b=z(()=>V(s,u)),b(r.delayError)):(clearTimeout(x),b=null,u?E(t.errors,s,u):B(t.errors,s)),(u?!le(y,u):y)||!H(g)||o){const _={...g,...o&&Q(a)?{isValid:a}:{},errors:t.errors,name:s};t={...t,..._},F.state.next(_)}},h=async s=>{L(s,!0);const a=await r.resolver(l,r.context,zt(s||d.mount,i,r.criteriaMode,r.shouldUseNativeValidation));return L(s),a},A=async s=>{const{errors:a}=await h(s);if(s)for(const u of s){const g=c(a,u);g?E(t.errors,u,g):B(t.errors,u)}else t.errors=a;return a},S=async(s,a,u={valid:!0})=>{for(const g in s){const y=s[g];if(y){const{_f:o,..._}=y;if(o){const k=d.array.has(o.name),O=y._f&&Gt(y._f);O&&D.validatingFields&&L([g],!0);const X=await $e(y,d.disabled,l,M,r.shouldUseNativeValidation&&!a,k);if(O&&D.validatingFields&&L([g]),X[o.name]&&(u.valid=!1,a))break;!a&&(c(X,o.name)?k?Dt(t.errors,X,o.name):E(t.errors,o.name,X[o.name]):B(t.errors,o.name))}!H(_)&&await S(_,a,u)}}return u.valid},Y=()=>{for(const s of d.unMount){const a=c(i,s);a&&(a._f.refs?a._f.refs.every(u=>!Me(u)):!Me(a._f.ref))&&Ee(s)}d.unMount=new Set},J=(s,a)=>!r.disabled&&(s&&a&&E(l,s,a),!le(me(),n)),w=(s,a,u)=>Ft(s,d,{...f.mount?l:U(a)?n:se(s)?{[s]:a}:a},u,a),p=s=>we(c(f.mount?l:n,s,r.shouldUnregister?c(n,s,[]):[])),N=(s,a,u={})=>{const g=c(i,s);let y=a;if(g){const o=g._f;o&&(!o.disabled&&E(l,s,wt(a,o)),y=Ve(o.ref)&&$(a)?"":a,Vt(o.ref)?[...o.ref.options].forEach(_=>_.selected=y.includes(_.value)):o.refs?he(o.ref)?o.refs.forEach(_=>{(!_.defaultChecked||!_.disabled)&&(Array.isArray(y)?_.checked=!!y.find(k=>k===_.value):_.checked=y===_.value||!!y)}):o.refs.forEach(_=>_.checked=_.value===y):ze(o.ref)?o.ref.value="":(o.ref.value=y,o.ref.type||F.state.next({name:s,values:T(l)})))}(u.shouldDirty||u.shouldTouch)&&I(s,y,u.shouldTouch,u.shouldDirty,!0),u.shouldValidate&&oe(s)},q=(s,a,u)=>{for(const g in a){if(!a.hasOwnProperty(g))return;const y=a[g],o=s+"."+g,_=c(i,o);(d.array.has(s)||P(y)||_&&!_._f)&&!ue(y)?q(o,y,u):N(o,y,u)}},j=(s,a,u={})=>{const g=c(i,s),y=d.array.has(s),o=T(a);E(l,s,o),y?(F.array.next({name:s,values:T(l)}),(D.isDirty||D.dirtyFields||C.isDirty||C.dirtyFields)&&u.shouldDirty&&F.state.next({name:s,dirtyFields:ge(n,l),isDirty:J(s,o)})):g&&!g._f&&!$(o)?q(s,o,u):N(s,o,u),He(s,d)&&F.state.next({...t}),F.state.next({name:f.mount?s:void 0,values:T(l)})},re=async s=>{f.mount=!0;const a=s.target;let u=a.name,g=!0;const y=c(i,u),o=O=>{g=Number.isNaN(O)||ue(O)&&isNaN(O.getTime())||le(O,c(l,u,O))},_=de(r.mode),k=de(r.reValidateMode);if(y){let O,X;const ve=a.type?ct(y._f):ht(s),ae=s.type===Fe.BLUR||s.type===Fe.FOCUS_OUT,Lt=!Yt(y._f)&&!r.resolver&&!c(t.errors,u)&&!y._f.deps||Xt(ae,c(t.touchedFields,u),t.isSubmitted,k,_),Oe=He(u,d,ae);E(l,u,ve),ae?(y._f.onBlur&&y._f.onBlur(s),b&&b(0)):y._f.onChange&&y._f.onChange(s);const Ue=I(u,ve,ae),Tt=!H(Ue)||Oe;if(!ae&&F.state.next({name:u,type:s.type,values:T(l)}),Lt)return(D.isValid||C.isValid)&&(r.mode==="onBlur"?ae&&R():ae||R()),Tt&&F.state.next({name:u,...Oe?{}:Ue});if(!ae&&Oe&&F.state.next({...t}),r.resolver){const{errors:st}=await h([u]);if(o(ve),g){const It=ft(t.errors,i,u),it=ft(st,i,It.name||u);O=it.error,u=it.name,X=H(st)}}else L([u],!0),O=(await $e(y,d.disabled,l,M,r.shouldUseNativeValidation))[u],L([u]),o(ve),g&&(O?X=!1:(D.isValid||C.isValid)&&(X=await S(i,!0)));g&&(y._f.deps&&oe(y._f.deps),m(u,X,O,Ue))}},ye=(s,a)=>{if(c(t.errors,a)&&s.focus)return s.focus(),1},oe=async(s,a={})=>{let u,g;const y=K(s);if(r.resolver){const o=await A(U(s)?s:y);u=H(o),g=s?!y.some(_=>c(o,_)):u}else s?(g=(await Promise.all(y.map(async o=>{const _=c(i,o);return await S(_&&_._f?{[o]:_}:_)}))).every(Boolean),!(!g&&!t.isValid)&&R()):g=u=await S(i);return F.state.next({...!se(s)||(D.isValid||C.isValid)&&u!==t.isValid?{}:{name:s},...r.resolver||!s?{isValid:u}:{},errors:t.errors}),a.shouldFocus&&!g&&fe(i,ye,s?y:d.mount),g},me=s=>{const a={...f.mount?l:n};return U(s)?a:se(s)?c(a,s):s.map(u=>c(a,u))},Ye=(s,a)=>({invalid:!!c((a||t).errors,s),isDirty:!!c((a||t).dirtyFields,s),error:c((a||t).errors,s),isValidating:!!c(t.validatingFields,s),isTouched:!!c((a||t).touchedFields,s)}),Et=s=>{s&&K(s).forEach(a=>B(t.errors,a)),F.state.next({errors:s?t.errors:{}})},Je=(s,a,u)=>{const g=(c(i,s,{_f:{}})._f||{}).ref,y=c(t.errors,s)||{},{ref:o,message:_,type:k,...O}=y;E(t.errors,s,{...O,...a,ref:g}),F.state.next({name:s,errors:t.errors,isValid:!1}),u&&u.shouldFocus&&g&&g.focus&&g.focus()},pt=(s,a)=>te(s)?F.state.subscribe({next:u=>s(w(void 0,a),u)}):w(s,a,!0),Qe=s=>F.state.subscribe({next:a=>{Qt(s.name,a.name,s.exact)&&Jt(a,s.formState||D,Rt,s.reRenderRoot)&&s.callback({values:{...l},...t,...a})}}).unsubscribe,Ct=s=>(f.mount=!0,C={...C,...s.formState},Qe({...s,formState:C})),Ee=(s,a={})=>{for(const u of s?K(s):d.mount)d.mount.delete(u),d.array.delete(u),a.keepValue||(B(i,u),B(l,u)),!a.keepError&&B(t.errors,u),!a.keepDirty&&B(t.dirtyFields,u),!a.keepTouched&&B(t.touchedFields,u),!a.keepIsValidating&&B(t.validatingFields,u),!r.shouldUnregister&&!a.keepDefaultValue&&B(n,u);F.state.next({values:T(l)}),F.state.next({...t,...a.keepDirty?{isDirty:J()}:{}}),!a.keepIsValid&&R()},Xe=({disabled:s,name:a})=>{(Q(s)&&f.mount||s||d.disabled.has(a))&&(s?d.disabled.add(a):d.disabled.delete(a))},pe=(s,a={})=>{let u=c(i,s);const g=Q(a.disabled)||Q(r.disabled);return E(i,s,{...u||{},_f:{...u&&u._f?u._f:{ref:{name:s}},name:s,mount:!0,...a}}),d.mount.add(s),u?Xe({disabled:Q(a.disabled)?a.disabled:r.disabled,name:s}):W(s,!0,a.value),{...g?{disabled:a.disabled||r.disabled}:{},...r.progressive?{required:!!a.required,min:_e(a.min),max:_e(a.max),minLength:_e(a.minLength),maxLength:_e(a.maxLength),pattern:_e(a.pattern)}:{},name:s,onChange:re,onBlur:re,ref:y=>{if(y){pe(s,a),u=c(i,s);const o=U(y.value)&&y.querySelectorAll&&y.querySelectorAll("input,select,textarea")[0]||y,_=$t(o),k=u._f.refs||[];if(_?k.find(O=>O===o):o===u._f.ref)return;E(i,s,{_f:{...u._f,..._?{refs:[...k.filter(Me),o,...Array.isArray(c(n,s))?[{}]:[]],ref:{type:o.type,name:s}}:{ref:o}}}),W(s,!1,void 0,o)}else u=c(i,s,{}),u._f&&(u._f.mount=!1),(r.shouldUnregister||a.shouldUnregister)&&!(mt(d.array,s)&&f.action)&&d.unMount.add(s)}}},Ce=()=>r.shouldFocusError&&fe(i,ye,d.mount),Ot=s=>{Q(s)&&(F.state.next({disabled:s}),fe(i,(a,u)=>{const g=c(i,u);g&&(a.disabled=g._f.disabled||s,Array.isArray(g._f.refs)&&g._f.refs.forEach(y=>{y.disabled=g._f.disabled||s}))},0,!1))},Ze=(s,a)=>async u=>{let g;u&&(u.preventDefault&&u.preventDefault(),u.persist&&u.persist());let y=T(l);if(F.state.next({isSubmitting:!0}),r.resolver){const{errors:o,values:_}=await h();t.errors=o,y=T(_)}else await S(i);if(d.disabled.size)for(const o of d.disabled)B(y,o);if(B(t.errors,"root"),H(t.errors)){F.state.next({errors:{}});try{await s(y,u)}catch(o){g=o}}else a&&await a({...t.errors},u),Ce(),setTimeout(Ce);if(F.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:H(t.errors)&&!g,submitCount:t.submitCount+1,errors:t.errors}),g)throw g},Ut=(s,a={})=>{c(i,s)&&(U(a.defaultValue)?j(s,T(c(n,s))):(j(s,a.defaultValue),E(n,s,T(a.defaultValue))),a.keepTouched||B(t.touchedFields,s),a.keepDirty||(B(t.dirtyFields,s),t.isDirty=a.defaultValue?J(s,T(c(n,s))):J()),a.keepError||(B(t.errors,s),D.isValid&&R()),F.state.next({...t}))},et=(s,a={})=>{const u=s?T(s):n,g=T(u),y=H(s),o=y?n:g;if(a.keepDefaultValues||(n=u),!a.keepValues){if(a.keepDirtyValues){const _=new Set([...d.mount,...Object.keys(ge(n,l))]);for(const k of Array.from(_))c(t.dirtyFields,k)?E(o,k,c(l,k)):j(k,c(o,k))}else{if(je&&U(s))for(const _ of d.mount){const k=c(i,_);if(k&&k._f){const O=Array.isArray(k._f.refs)?k._f.refs[0]:k._f.ref;if(Ve(O)){const X=O.closest("form");if(X){X.reset();break}}}}for(const _ of d.mount){const k=c(o,_,c(n,_));U(k)||(E(o,_,k),j(_,c(o,_)))}}l=T(o),F.array.next({values:{...o}}),F.state.next({values:{...o}})}d={mount:a.keepDirtyValues?d.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},f.mount=!D.isValid||!!a.keepIsValid||!!a.keepDirtyValues,f.watch=!!r.shouldUnregister,F.state.next({submitCount:a.keepSubmitCount?t.submitCount:0,isDirty:y?!1:a.keepDirty?t.isDirty:!!(a.keepDefaultValues&&!le(s,n)),isSubmitted:a.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:y?{}:a.keepDirtyValues?a.keepDefaultValues&&l?ge(n,l):t.dirtyFields:a.keepDefaultValues&&s?ge(n,s):a.keepDirty?t.dirtyFields:{},touchedFields:a.keepTouched?t.touchedFields:{},errors:a.keepErrors?t.errors:{},isSubmitSuccessful:a.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1})},tt=(s,a)=>et(te(s)?s(l):s,a),Mt=(s,a={})=>{const u=c(i,s),g=u&&u._f;if(g){const y=g.refs?g.refs[0]:g.ref;y.focus&&(y.focus(),a.shouldSelect&&te(y.select)&&y.select())}},Rt=s=>{t={...t,...s}},rt={control:{register:pe,unregister:Ee,getFieldState:Ye,handleSubmit:Ze,setError:Je,_subscribe:Qe,_runSchema:h,_focusError:Ce,_getWatch:w,_getDirty:J,_setValid:R,_setFieldArray:ee,_setDisabledField:Xe,_setErrors:G,_getFieldArray:p,_reset:et,_resetDefaultValues:()=>te(r.defaultValues)&&r.defaultValues().then(s=>{tt(s,r.resetOptions),F.state.next({isLoading:!1})}),_removeUnmounted:Y,_disableForm:Ot,_subjects:F,_proxyFormState:D,get _fields(){return i},get _formValues(){return l},get _state(){return f},set _state(s){f=s},get _defaultValues(){return n},get _names(){return d},set _names(s){d=s},get _formState(){return t},get _options(){return r},set _options(s){r={...r,...s}}},subscribe:Ct,trigger:oe,register:pe,handleSubmit:Ze,watch:pt,setValue:j,getValues:me,reset:tt,resetField:Ut,clearErrors:Et,unregister:Ee,setError:Je,setFocus:Mt,getFieldState:Ye};return{...rt,formControl:rt}}var ne=()=>{if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,r=>{const t=(Math.random()*16+e)%16|0;return(r=="x"?t:t&3|8).toString(16)})},Re=(e,r,t={})=>t.shouldFocus||U(t.shouldFocus)?t.focusName||`${e}.${U(t.focusIndex)?r:t.focusIndex}.`:"",Le=(e,r)=>[...e,...K(r)],Te=e=>Array.isArray(e)?e.map(()=>{}):void 0;function Ie(e,r,t){return[...e.slice(0,r),...K(t),...e.slice(r)]}var Ne=(e,r,t)=>Array.isArray(e)?(U(e[t])&&(e[t]=void 0),e.splice(t,0,e.splice(r,1)[0]),e):[],Be=(e,r)=>[...K(r),...K(e)];function rr(e,r){let t=0;const i=[...e];for(const n of r)i.splice(n-t,1),t++;return we(i).length?i:[]}var Pe=(e,r)=>U(r)?[]:rr(e,K(r).sort((t,i)=>t-i)),We=(e,r,t)=>{[e[r],e[t]]=[e[t],e[r]]},gt=(e,r,t)=>(e[r]=t,e);function nr(e){const r=ke(),{control:t=r.control,name:i,keyName:n="id",shouldUnregister:l,rules:f}=e,[d,b]=v.useState(t._getFieldArray(i)),x=v.useRef(t._getFieldArray(i).map(ne)),D=v.useRef(d),C=v.useRef(i),F=v.useRef(!1);C.current=i,D.current=d,t._names.array.add(i),f&&t.register(i,f),De(()=>t._subjects.array.subscribe({next:({values:m,name:h})=>{if(h===C.current||!h){const A=c(m,C.current);Array.isArray(A)&&(b(A),x.current=A.map(ne))}}}).unsubscribe,[t]);const M=v.useCallback(m=>{F.current=!0,t._setFieldArray(i,m)},[t,i]),z=(m,h)=>{const A=K(T(m)),S=Le(t._getFieldArray(i),A);t._names.focus=Re(i,S.length-1,h),x.current=Le(x.current,A.map(ne)),M(S),b(S),t._setFieldArray(i,S,Le,{argA:Te(m)})},R=(m,h)=>{const A=K(T(m)),S=Be(t._getFieldArray(i),A);t._names.focus=Re(i,0,h),x.current=Be(x.current,A.map(ne)),M(S),b(S),t._setFieldArray(i,S,Be,{argA:Te(m)})},L=m=>{const h=Pe(t._getFieldArray(i),m);x.current=Pe(x.current,m),M(h),b(h),!Array.isArray(c(t._fields,i))&&E(t._fields,i,void 0),t._setFieldArray(i,h,Pe,{argA:m})},ee=(m,h,A)=>{const S=K(T(h)),Y=Ie(t._getFieldArray(i),m,S);t._names.focus=Re(i,m,A),x.current=Ie(x.current,m,S.map(ne)),M(Y),b(Y),t._setFieldArray(i,Y,Ie,{argA:m,argB:Te(h)})},V=(m,h)=>{const A=t._getFieldArray(i);We(A,m,h),We(x.current,m,h),M(A),b(A),t._setFieldArray(i,A,We,{argA:m,argB:h},!1)},G=(m,h)=>{const A=t._getFieldArray(i);Ne(A,m,h),Ne(x.current,m,h),M(A),b(A),t._setFieldArray(i,A,Ne,{argA:m,argB:h},!1)},W=(m,h)=>{const A=T(h),S=gt(t._getFieldArray(i),m,A);x.current=[...S].map((Y,J)=>!Y||J===m?ne():x.current[J]),M(S),b([...S]),t._setFieldArray(i,S,gt,{argA:m,argB:A},!0,!1)},I=m=>{const h=K(T(m));x.current=h.map(ne),M([...h]),b([...h]),t._setFieldArray(i,[...h],A=>A,{},!0,!1)};return v.useEffect(()=>{if(t._state.action=!1,He(i,t._names)&&t._subjects.state.next({...t._formState}),F.current&&(!de(t._options.mode).isOnSubmit||t._formState.isSubmitted)&&!de(t._options.reValidateMode).isOnSubmit)if(t._options.resolver)t._runSchema([i]).then(m=>{const h=c(m.errors,i),A=c(t._formState.errors,i);(A?!h&&A.type||h&&(A.type!==h.type||A.message!==h.message):h&&h.type)&&(h?E(t._formState.errors,i,h):B(t._formState.errors,i),t._subjects.state.next({errors:t._formState.errors}))});else{const m=c(t._fields,i);m&&m._f&&!(de(t._options.reValidateMode).isOnSubmit&&de(t._options.mode).isOnSubmit)&&$e(m,t._names.disabled,t._formValues,t._options.criteriaMode===Z.all,t._options.shouldUseNativeValidation,!0).then(h=>!H(h)&&t._subjects.state.next({errors:Dt(t._formState.errors,h,i)}))}t._subjects.state.next({name:i,values:T(t._formValues)}),t._names.focus&&fe(t._fields,(m,h)=>{if(t._names.focus&&h.startsWith(t._names.focus)&&m.focus)return m.focus(),1}),t._names.focus="",t._setValid(),F.current=!1},[d,i,t]),v.useEffect(()=>(!c(t._formValues,i)&&t._setFieldArray(i),()=>{const m=(h,A)=>{const S=c(t._fields,h);S&&S._f&&(S._f.mount=A)};t._options.shouldUnregister||l?t.unregister(i):m(i,!1)}),[i,t,n,l]),{swap:v.useCallback(V,[M,i,t]),move:v.useCallback(G,[M,i,t]),prepend:v.useCallback(R,[M,i,t]),append:v.useCallback(z,[M,i,t]),remove:v.useCallback(L,[M,i,t]),insert:v.useCallback(ee,[M,i,t]),update:v.useCallback(W,[M,i,t]),replace:v.useCallback(I,[M,i,t]),fields:v.useMemo(()=>d.map((m,h)=>({...m,[n]:x.current[h]||ne()})),[d,n])}}function lr(e={}){const r=v.useRef(void 0),t=v.useRef(void 0),[i,n]=v.useState({isDirty:!1,isValidating:!1,isLoading:te(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:te(e.defaultValues)?void 0:e.defaultValues});if(!r.current)if(e.formControl)r.current={...e.formControl,formState:i},e.defaultValues&&!te(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:f,...d}=tr(e);r.current={...d,formState:i}}const l=r.current.control;return l._options=e,De(()=>{const f=l._subscribe({formState:l._proxyFormState,callback:()=>n({...l._formState}),reRenderRoot:!0});return n(d=>({...d,isReady:!0})),l._formState.isReady=!0,f},[l]),v.useEffect(()=>l._disableForm(e.disabled),[l,e.disabled]),v.useEffect(()=>{e.mode&&(l._options.mode=e.mode),e.reValidateMode&&(l._options.reValidateMode=e.reValidateMode)},[l,e.mode,e.reValidateMode]),v.useEffect(()=>{e.errors&&(l._setErrors(e.errors),l._focusError())},[l,e.errors]),v.useEffect(()=>{e.shouldUnregister&&l._subjects.state.next({values:l._getWatch()})},[l,e.shouldUnregister]),v.useEffect(()=>{if(l._proxyFormState.isDirty){const f=l._getDirty();f!==i.isDirty&&l._subjects.state.next({isDirty:f})}},[l,i.isDirty]),v.useEffect(()=>{e.values&&!le(e.values,t.current)?(l._reset(e.values,l._options.resetOptions),t.current=e.values,n(f=>({...f}))):l._resetDefaultValues()},[l,e.values]),v.useEffect(()=>{l._state.mount||(l._setValid(),l._state.mount=!0),l._state.watch&&(l._state.watch=!1,l._subjects.state.next({...l._formState})),l._removeUnmounted()}),r.current.formState=bt(i,l),r.current}export{ar as C,Wt as a,nr as b,lr as u};
|