@abtnode/webapp 1.16.53-beta-20251011-054719-4ed2f6b7 → 1.16.53-beta-20251013-005429-ca3b05de
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-DQepVz3x.js → AdapterDayjs-wz3uJn5Q.js} +1 -1
- package/dist/assets/{Add-CQt7mq1G.js → Add-Cous1ji5.js} +1 -1
- package/dist/assets/ArrowDropDown-BmpWVT5T.js +1 -0
- package/dist/assets/{Autocomplete-Bf1Ho3Hd.js → Autocomplete-rgPa6avl.js} +1 -1
- package/dist/assets/{Breadcrumbs-CPilcW9u.js → Breadcrumbs-BkQr1wmD.js} +1 -1
- package/dist/assets/{ButtonGroup-9zvLC_k0.js → ButtonGroup-8swvzNFE.js} +1 -1
- package/dist/assets/{CSSTransition-dwX1-RMJ.js → CSSTransition-BoWO2BoO.js} +1 -1
- package/dist/assets/{CallMerge-BYCLcH5E.js → CallMerge-anZI78Di.js} +1 -1
- package/dist/assets/{CardContent-C22npYBc.js → CardContent-DNK9-zja.js} +1 -1
- package/dist/assets/{ChevronLeft-Bmmo6bzu.js → ChevronLeft-CJzdK2eh.js} +1 -1
- package/dist/assets/{ChevronRight-X_FMXVA4.js → ChevronRight-DLMDPIak.js} +1 -1
- package/dist/assets/{Clear-B-e33dNn.js → Clear-DgL5cnLN.js} +1 -1
- package/dist/assets/{DeleteOutline-CIuy8JMu.js → DeleteOutline-BJandZby.js} +1 -1
- package/dist/assets/{Done-yHCWLz6K.js → Done-C1929K34.js} +1 -1
- package/dist/assets/{Edit-CLiO2h_l.js → Edit-CQdeHbZ-.js} +1 -1
- package/dist/assets/{ErrorOutline-B_qBOUnI.js → ErrorOutline-4kGDns30.js} +1 -1
- package/dist/assets/{FilterList-BOMn8eqm.js → FilterList-DcRJLB8M.js} +1 -1
- package/dist/assets/{Google-KOeLJ7n-.js → Google-CWXy-_sb.js} +1 -1
- package/dist/assets/{HelpOutline-BXdmHwaP.js → HelpOutline-UUyOHo3U.js} +1 -1
- package/dist/assets/{KeyboardArrowDown-CdK82Qsb.js → KeyboardArrowDown-CgD9B0AF.js} +1 -1
- package/dist/assets/{Launch-cxvym2iP.js → Launch-CryEv1ts.js} +1 -1
- package/dist/assets/{Link-DKb1MvxW.js → Link-Dk7IQFgE.js} +1 -1
- package/dist/assets/{ListItemButton-E5H4lrRx.js → ListItemButton-B2QtbVrs.js} +1 -1
- package/dist/assets/{ListSubheader-FJVGwx1O.js → ListSubheader-BNX9gO02.js} +1 -1
- package/dist/assets/{LoadingButton-C7IcO9Nb.js → LoadingButton-D7vBmBXb.js} +1 -1
- package/dist/assets/{MoreVert-bx--E19j.js → MoreVert-D4eir2r_.js} +1 -1
- package/dist/assets/{OpenInNew-BdVhgoOc.js → OpenInNew-BRfvIkPw.js} +1 -1
- package/dist/assets/{Refresh-mYLoMEkT.js → Refresh-CEzviXq3.js} +1 -1
- package/dist/assets/{Search-Dm2dt-Sr.js → Search-CJFu7Gaf.js} +1 -1
- package/dist/assets/{Stepper-B1wBWjZo.js → Stepper-JC9uh-tv.js} +1 -1
- package/dist/assets/{Switch-CE03jZ_8.js → Switch-D89bFzHz.js} +1 -1
- package/dist/assets/{TableSearch-Bj41g7St.js → TableSearch-I0DQoJkT.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-BEjde42R.js → ToggleButtonGroup-B4BB2eWk.js} +1 -1
- package/dist/assets/{UnfoldMore-zrMTJNOp.js → UnfoldMore-Bi3VKM-P.js} +1 -1
- package/dist/assets/{Verified-B-cFyGP0.js → Verified-CNu8DyFD.js} +1 -1
- package/dist/assets/{VerifiedUser-aSWRZr_Y.js → VerifiedUser-Du1UW169.js} +1 -1
- package/dist/assets/{ViewList-BbDrtZvr.js → ViewList-CJ3pgiPv.js} +1 -1
- package/dist/assets/{_createAggregator-OKIbDBKF.js → _createAggregator-BrIYaxG5.js} +1 -1
- package/dist/assets/{actions-BBls_wa0.js → actions-DiTDvakV.js} +1 -1
- package/dist/assets/{actions-DaOidt88.js → actions-qegZDW8a.js} +1 -1
- package/dist/assets/{agreement-B9tSzjmL.js → agreement-DYlE38yc.js} +1 -1
- package/dist/assets/api-DK8kaMBV.js +1 -0
- package/dist/assets/{appearance-BOeNpo6Y.js → appearance-DMbZwb6t.js} +1 -1
- package/dist/assets/{audit-logs-Bdg8Eitt.js → audit-logs-DypXoccn.js} +1 -1
- package/dist/assets/{base-chart-D7y6qq9u.js → base-chart-BIsr5drw.js} +1 -1
- package/dist/assets/{blocklet-C67aFvl7.js → blocklet-B517W-Ua.js} +1 -1
- package/dist/assets/{chain-se1xvUDC.js → chain-DPDA2EQ2.js} +1 -1
- package/dist/assets/{click-to-copy-D50kkiW4.js → click-to-copy-3JN8Y4Er.js} +1 -1
- package/dist/assets/client-CBX1Obzh.js +1 -0
- package/dist/assets/cloneDeep-Djkce8fU.js +1 -0
- package/dist/assets/{collapse-UPIFGGD9.js → collapse-BKLgvOSl.js} +1 -1
- package/dist/assets/{config-navigation-CutTRHe-.js → config-navigation-BFkTbhwh.js} +3 -3
- package/dist/assets/{connect-to-Dz9eH_td.js → connect-to-eFzWXxED.js} +1 -1
- package/dist/assets/{cssMode-73_XXe8t.js → cssMode-DkRpF_PR.js} +1 -1
- package/dist/assets/{delete-confirm-cbt-tN11.js → delete-confirm-CDl-fsIJ.js} +1 -1
- package/dist/assets/{depsEqual-BaUhqVSn.js → depsEqual-CSi6TcQv.js} +1 -1
- package/dist/assets/{detail-BR9P1Yx6.js → detail-Duk87a8e.js} +3 -3
- package/dist/assets/{domains-BDMd9S2d.js → domains-CyLqrsuU.js} +1 -1
- package/dist/assets/{download-Oh1d5P58.js → download-C0UDp2VI.js} +1 -1
- package/dist/assets/{edit.svg-BHG50OdM.js → edit.svg-BePrNRJc.js} +1 -1
- package/dist/assets/emotion-cache.browser.esm-CTjwgjTJ.js +1 -0
- package/dist/assets/engine-DSc6bLAX.js +1 -0
- package/dist/assets/{freemarker2-BQ02ePgw.js → freemarker2-D5qOoEBh.js} +1 -1
- package/dist/assets/{get-safe-url-CteWIr5a.js → get-safe-url-CUMicCqh.js} +1 -1
- package/dist/assets/getValidReactChildren-B5PKhq5Y.js +1 -0
- package/dist/assets/{graphqlMode-BTvp4HDh.js → graphqlMode-BiufiH9I.js} +2 -2
- package/dist/assets/{handlebars-DPMLBiwS.js → handlebars-C0jC6CCl.js} +1 -1
- package/dist/assets/{html-iuKRS8o1.js → html-CFsvvZoo.js} +1 -1
- package/dist/assets/{html-title-vsl-TT26.js → html-title-DVCSq6YQ.js} +1 -1
- package/dist/assets/{htmlMode-CvGrTtxZ.js → htmlMode-CosfhNHV.js} +1 -1
- package/dist/assets/{iframe-Dl-yNrp9.js → iframe-D0APLep4.js} +1 -1
- package/dist/assets/{index-DWy1kjL1.js → index-0z8Wehkl.js} +1 -1
- package/dist/assets/{index-D9p6b5Uq.js → index-14CzihO_.js} +1 -1
- package/dist/assets/{index-ClxIMfsM.js → index-8dO6vHSp.js} +1 -1
- package/dist/assets/{index-AKf23glP.js → index-B3tyE5tE.js} +1 -1
- package/dist/assets/{index-CC45e4UO.js → index-BFsyziHN.js} +1 -1
- package/dist/assets/{index-BvVI7Mxo.js → index-BNZdZk2f.js} +1 -1
- package/dist/assets/{index-CpuUG8Z1.js → index-BOhdDUAw.js} +1 -1
- package/dist/assets/{index-DnZwjPBr.js → index-BP2ItssN.js} +1 -1
- package/dist/assets/{index-BDFC1sP1.js → index-Bae9JCD5.js} +1 -1
- package/dist/assets/{index-BkGL3dW2.js → index-BelkuInn.js} +1 -1
- package/dist/assets/{index-DsOZQCxX.js → index-BeysmFqb.js} +1 -1
- package/dist/assets/{index-D_jr-SDL.js → index-BnsRewaA.js} +1 -1
- package/dist/assets/index-BnwXywaJ.js +1 -0
- package/dist/assets/{index-DbXGWrH9.js → index-Bp3J1Bje.js} +9 -9
- package/dist/assets/{index-CRZ7_NI2.js → index-C-oEFt7E.js} +1 -1
- package/dist/assets/{index-BGSPRFxN.js → index-C0-id_9j.js} +1 -1
- package/dist/assets/{index-Cwp0FKW3.js → index-C6h7Wn7k.js} +2 -2
- package/dist/assets/{index-BOBzLa1k.js → index-CDcSsFCi.js} +1 -1
- package/dist/assets/{index-GerkFFyW.js → index-CHCOmcv5.js} +3 -3
- package/dist/assets/{index-BP0DWBRY.js → index-CazcQIXS.js} +1 -1
- package/dist/assets/{index-Dxww66F8.js → index-CbcxUqJf.js} +1 -1
- package/dist/assets/{index-rrAKD-3O.js → index-CwJ8EMCg.js} +1 -1
- package/dist/assets/{index-DfPrMmoZ.js → index-D82JKtTS.js} +1 -1
- package/dist/assets/{index-DnNVPfHo.js → index-D8YITHzH.js} +1 -1
- package/dist/assets/{index-CFw_f03A.js → index-DBBnAIQs.js} +1 -1
- package/dist/assets/{index-2UXtfcoT.js → index-DDurY-dJ.js} +30 -30
- package/dist/assets/{index-BtY4M62T.js → index-DFYle5Dx.js} +3 -3
- package/dist/assets/{index-BYQEC6o1.js → index-DMT33Ol-.js} +1 -1
- package/dist/assets/{index-B5Z2178w.js → index-DPFLhZbE.js} +3 -3
- package/dist/assets/{index-C31TKs2j.js → index-DRg3WiNb.js} +1 -1
- package/dist/assets/{index-B28OSLEk.js → index-DYwPfkqM.js} +1 -1
- package/dist/assets/{index-CHmcCDqZ.js → index-Dt6-hLLE.js} +1 -1
- package/dist/assets/{index-ClSpNPOh.js → index-DufKOlby.js} +1 -1
- package/dist/assets/{index-DfEAejxd.js → index-DvuAChUi.js} +1 -1
- package/dist/assets/{index-8DgiLFWe.js → index-DxNJKgOf.js} +1 -1
- package/dist/assets/{index-W1Jg0zqO.js → index-NuRrhPxS.js} +1 -1
- package/dist/assets/{index-BzM5LY8-.js → index-OLtm4Vax.js} +1 -1
- package/dist/assets/{index-CgJV4oal.js → index-WMqkdikj.js} +1 -1
- package/dist/assets/{index-C-1MOEs6.js → index-XPz8QVj4.js} +1 -1
- package/dist/assets/{index-B2jTgxcq.js → index-a5z0oLm0.js} +1 -1
- package/dist/assets/{index-eYZIsLRo.js → index-djmnhckV.js} +1 -1
- package/dist/assets/{index-oHwXuk_n.js → index-iKywF7nl.js} +1 -1
- package/dist/assets/{index-BxxgnmFX.js → index-p_tMzvnc.js} +1 -1
- package/dist/assets/{index-Cisz7h7X.js → index-r-glRWC4.js} +1 -1
- package/dist/assets/{index-BIIfr0Cp.js → index-vAWTvgNz.js} +1 -1
- package/dist/assets/{index-C7egXf_h.js → index-z2Pq7re4.js} +2 -2
- package/dist/assets/{index.esm-DkqB0mnE.js → index.esm-11mV4JTB.js} +1 -1
- package/dist/assets/{install-from-url-DOR8ZaEG.js → install-from-url-DDvu1So2.js} +1 -1
- package/dist/assets/{invitation-BOK3Xmtg.js → invitation-CAfUwKLF.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-Cl2onSKX.js → is-path-prefix-equal-BSrFrDnM.js} +1 -1
- package/dist/assets/{item-BQYMoVUI.js → item-BVShF35E.js} +1 -1
- package/dist/assets/{javascript-BaLTUeT9.js → javascript-C-mWITaw.js} +1 -1
- package/dist/assets/{jsonMode-P_9C43Nc.js → jsonMode-zsidC2jX.js} +1 -1
- package/dist/assets/{liquid-amkaEf3E.js → liquid-DLrpRYGV.js} +1 -1
- package/dist/assets/{list-header-DAiEDwhs.js → list-header-D7AmzBnQ.js} +1 -1
- package/dist/assets/{lock.svg-CNAb9wZc.js → lock.svg-BSMyvmiX.js} +1 -1
- package/dist/assets/{log-1_m4xF_N.js → log-BUaBiHj2.js} +1 -1
- package/dist/assets/{lottie-react.esm-BmVAhuIy.js → lottie-react.esm-BECODwEW.js} +1 -1
- package/dist/assets/{mdx-Bd0pfo5p.js → mdx-Dg0NgEhj.js} +1 -1
- package/dist/assets/{memory-UJLIVuot.js → memory-CYfF9LNL.js} +1 -1
- package/dist/assets/{metric-DNUD7jbr.js → metric-D_Rq7u0J.js} +1 -1
- package/dist/assets/omit-CoM-kG66.js +1 -0
- package/dist/assets/{overview-DqrKT2dL.js → overview-Bf0RacwG.js} +1 -1
- package/dist/assets/{permission-ycsOOBwp.js → permission-CE3f6duj.js} +1 -1
- package/dist/assets/{preference-BhfekBAB.js → preference-uMowSkVr.js} +3 -3
- package/dist/assets/{python-B5XVaf0B.js → python-D4iKigf3.js} +1 -1
- package/dist/assets/{raf-schd.esm-yET3NUrL.js → raf-schd.esm-PaDKXX52.js} +1 -1
- package/dist/assets/{razor-TLp_5QYQ.js → razor-a6RZRy4M.js} +1 -1
- package/dist/assets/{rotate-session-key-B90qT4kq.js → rotate-session-key-D08RekVV.js} +1 -1
- package/dist/assets/{runtime-D_DvOf5h.js → runtime-DK4a2zRH.js} +1 -1
- package/dist/assets/schema-BXwrjjXM.js +1 -0
- package/dist/assets/sdk-Z_sZEcD1.js +1 -0
- package/dist/assets/{service-DjmXGMON.js → service-D-5L0qMb.js} +1 -1
- package/dist/assets/{shorten-label-BOfK6p4p.js → shorten-label-CnHc5b4P.js} +1 -1
- package/dist/assets/{simple-select-BZu6cCw3.js → simple-select-AxSwGalf.js} +1 -1
- package/dist/assets/{spaces-CNd41sir.js → spaces-cJ664FRt.js} +1 -1
- package/dist/assets/{status-C32bwmXC.js → status-BpSJKdrt.js} +1 -1
- package/dist/assets/{status-DnBUY_P3.js → status-CqsLbSWy.js} +1 -1
- package/dist/assets/{switch-control-Ce2o9ffJ.js → switch-control-DoypOh17.js} +1 -1
- package/dist/assets/{table-icons-BYT0kQuz.js → table-icons-BB3WCZ0c.js} +1 -1
- package/dist/assets/{team-CxcPF7A7.js → team-CzLA5Wke.js} +1 -1
- package/dist/assets/{toLower-DJOalyNw.js → toLower-DwM8Y4G7.js} +1 -1
- package/dist/assets/toUpper-DkAQpneV.js +1 -0
- package/dist/assets/{traffic-C17ygInL.js → traffic-BvD_sqrg.js} +1 -1
- package/dist/assets/{tsMode-YA-whx9N.js → tsMode-Dk3hYncm.js} +1 -1
- package/dist/assets/{typescript-Balm-M-7.js → typescript-BWhP65F5.js} +1 -1
- package/dist/assets/{url-evaluation-w8X_lgzG.js → url-evaluation-CeV7iBRh.js} +1 -1
- package/dist/assets/{url-join-3aXvW59g.js → url-join-CSV8j2nv.js} +1 -1
- package/dist/assets/{use-mobile-IHqsUzt1.js → use-mobile-DT5aSwoH.js} +1 -1
- package/dist/assets/{use-mobile-BxUSznYk.js → use-mobile-Dwu9jRCW.js} +1 -1
- package/dist/assets/{useAsync-Bkh8Rg6Z.js → useAsync-d2jpJBOI.js} +1 -1
- package/dist/assets/{useAsyncRetry-CwoOKXPC.js → useAsyncRetry-CFOUpvIi.js} +1 -1
- package/dist/assets/{useLocalStorage-DZYDHTFQ.js → useLocalStorage-CFg3RYoG.js} +1 -1
- package/dist/assets/{useThemeProps-Bs1lG48z.js → useThemeProps-DDkjiDuo.js} +1 -1
- package/dist/assets/{util-CC0K7Xya.js → util-gAeFf-vQ.js} +1 -1
- package/dist/assets/{wait-container-DeaT7Cuc.js → wait-container-DINf0squ.js} +1 -1
- package/dist/assets/{without-wallet-B5UEEmrQ.js → without-wallet-Bpmf04-L.js} +1 -1
- package/dist/assets/{wrap-locale-gBhiwBoM.js → wrap-locale-C7tS6amm.js} +1 -1
- package/dist/assets/{xml-CZ5H3llM.js → xml-CyGyMNDw.js} +1 -1
- package/dist/assets/{yaml-CL1tqltg.js → yaml-D-MTb9Eh.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-aNeHE2A2.js +0 -1
- package/dist/assets/api-r-_fEWsI.js +0 -1
- package/dist/assets/client-Dj0WAiOq.js +0 -1
- package/dist/assets/cloneDeep-Dqj81-8-.js +0 -1
- package/dist/assets/emotion-cache.browser.esm-B4ZmPeHk.js +0 -1
- package/dist/assets/engine-BWGbIQAy.js +0 -1
- package/dist/assets/getValidReactChildren-DDB1J2y7.js +0 -1
- package/dist/assets/index-DVAwbdhJ.js +0 -1
- package/dist/assets/omit-DVVVCRDp.js +0 -1
- package/dist/assets/schema-Db5OWlWL.js +0 -1
- package/dist/assets/sdk-BZ4-wJ5p.js +0 -1
- package/dist/assets/toUpper-B5TzdczN.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aF as Ge,j as e,bn as gt,r as g,bz as X,bf as H,H as U,aH as D,p as xt,o as d,h as te,at as bt,ay as jt,M as y,T as $,n as Q,eO as Fe,P as Pe,il as Ye,bj as Te,aU as Ie,U as Ee,dI as we,b3 as qe,b1 as Ae,C as Xe,f as Qe,f0 as Je,aP as De,W as yt,as as Ze,im as et,w as Oe,f2 as tt,fo as ye,fI as st,dC as St,s as ie,af as pe,G as Ue,au as vt,io as Ct,ip as Nt,$ as nt,iq as wt,ir as Rt,is as Tt,it as It,O as Et,bu as it,K as At,Q as Dt,S as Ot,R as $e,iu as Lt,a3 as kt}from"./index-C7egXf_h.js";import{d as Ft,H as at,g as Pt}from"./index-8DgiLFWe.js";import{R as _e,S as _t}from"./actions-BBls_wa0.js";import{B as Bt}from"./index-BP0DWBRY.js";import{S as me}from"./shorten-label-BOfK6p4p.js";import{v as ot}from"./index-DWy1kjL1.js";import{T as zt}from"./html-title-vsl-TT26.js";import{R as Wt}from"./Refresh-mYLoMEkT.js";import{D as Mt,g as Kt}from"./traffic-C17ygInL.js";import{u as Ht}from"./use-mobile-BxUSznYk.js";import"./FilterList-BOMn8eqm.js";import"./CSSTransition-dwX1-RMJ.js";import"./emotion-cache.browser.esm-B4ZmPeHk.js";import"./index-rrAKD-3O.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-BaUhqVSn.js";import"./index-BxxgnmFX.js";import"./TableSearch-Bj41g7St.js";import"./Search-Dm2dt-Sr.js";import"./Clear-B-e33dNn.js";import"./MoreVert-bx--E19j.js";import"./useLocalStorage-DZYDHTFQ.js";import"./url-evaluation-w8X_lgzG.js";import"./get-safe-url-CteWIr5a.js";import"./ButtonGroup-9zvLC_k0.js";import"./getValidReactChildren-DDB1J2y7.js";import"./permission-ycsOOBwp.js";import"./index.esm-DkqB0mnE.js";import"./collapse-UPIFGGD9.js";import"./blocklet-C67aFvl7.js";import"./Switch-CE03jZ_8.js";import"./iframe-Dl-yNrp9.js";import"./ChevronLeft-Bmmo6bzu.js";import"./ChevronRight-X_FMXVA4.js";import"./index-DBii9-f-.js";import"./base-chart-D7y6qq9u.js";import"./index-CpuUG8Z1.js";import"./AdapterDayjs-DQepVz3x.js";import"./useThemeProps-Bs1lG48z.js";import"./visuallyHidden-Dan1xhjv.js";const qt=Ge(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"})),Ut=Ge(e.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"})),rt=g.createContext({}),{Provider:$t,Consumer:an}=rt;function Vt({children:t,blocklet:s=""}){const{api:n,inService:r,ws:{useSubscription:a}}=gt(),[l,x]=g.useState([]),[u,T]=g.useState({total:0,pageSize:20,pageCount:0,page:1}),f=X(()=>s.meta?.did,[s]),[v,C]=g.useState([]),[F,_]=g.useState({}),N=X(()=>l.length?new Set(l.map(h=>h.id)):new Set,[l]),V=async({page:h=1,pageSize:S=20,...I}={})=>{if(!f)return[];try{const w={paging:{page:h,pageSize:S},...I,teamDid:f,dateRange:I.dateRange?[H(I.dateRange[0]).toISOString(),H(I.dateRange[1]).toISOString()]:void 0},{dids:E,...k}=w;let B="";E&&E.includes("system")&&(B="system");const ae=E?E.filter(oe=>oe!=="system"):[],ne={...k,source:B,componentDids:ae},ee=await n.getNotificationSendLog({input:ne});return _(ne),x(ee.list),T(ee.paging),ee.list}catch(w){return U.error(w.message),[]}},P=async()=>{const h=await n.getNotificationComponents({input:{teamDid:f}});C(h.componentDids)},L=g.useCallback(h=>{const S=s.children.find(I=>I.meta?.did===h);if(S)return S.ancestors=[s],S},[s]),W=async({notificationId:h,receivers:S,channels:I,...w})=>{await n.resendNotification({input:{teamDid:f,notificationId:h,receivers:S,channels:I.map(E=>E==="wallet"?D.NOTIFICATION_SEND_CHANNEL.WALLET:E==="pushKit"?D.NOTIFICATION_SEND_CHANNEL.PUSH:E),...w}})},q=g.useCallback(async h=>(await n.getUser({input:{teamDid:f,user:{did:h},options:{enableConnectedAccount:!0}}})).user,[n,f]),Y=g.useCallback(async({page:h=1,pageSize:S=20,...I}={})=>{try{const w={paging:{page:h,pageSize:S},...I,userName:I.searchText||"",teamDid:f,dateRange:I.dateRange?[H(I.dateRange[0]).toISOString(),H(I.dateRange[1]).toISOString()]:void 0};return await n.getReceivers({input:w})}catch(w){throw U.error(w.message),w}},[n,f]);g.useEffect(()=>{f&&P()},[f]),a(D.EVENTS.NOTIFICATION_BLOCKLET_UPDATE,h=>{N.has(h.notificationId)&&V(F)},[N,F]),a(D.EVENTS.NOTIFICATION_BLOCKLET_CREATE,h=>{N.has(h.id)||V(F)},[N,F]);const Z={fetch:V,data:l,paging:u,blocklet:s,getComponent:L,resendNotification:W,getUser:q,componentDids:v,getReceivers:Y,inService:r,teamDid:f};return e.jsx($t,{value:{notificationRecords:Z},children:t})}function Be(){const{notificationRecords:t}=g.useContext(rt);return t}he.propTypes={severity:d.oneOf(Object.values(["info","success","error","warning"])).isRequired};const Gt={info:"primary",success:"success",error:"error",warning:"warning"};function he({severity:t="info"}){return e.jsx(xt,{type:Gt[t],children:t})}const Yt=(t,s,n="")=>{if(!n||!s)return"";switch(n){case D.NOTIFICATION_SEND_FAILED_REASON.USER_DISABLED:return t("notification.sendStatus.reason.disabled",{channel:s});case D.NOTIFICATION_SEND_FAILED_REASON.CHANNEL_UNAVAILABLE:return t("notification.sendStatus.reason.unavailable",{channel:s});case D.NOTIFICATION_SEND_FAILED_REASON.CHANNEL_DISABLED:return t("notification.sendStatus.reason.notSent",{channel:s});case D.NOTIFICATION_SEND_FAILED_REASON.NOT_ONLINE:return t("notification.sendStatus.reason.offline");default:return n}};function lt(t,s,n={}){const{status:r,updatedAt:a,reason:l="",channel:x="wallet"}=n,u=a?t("notification.sendStatus.sentTime",{date:bt(a,s)}):"",T=Yt(t,x,l);return r===D.NOTIFICATION_SEND_STATUS.FAILED?{status:"failed",title:t("notification.sendStatus.failed"),sentTime:u,reason:T}:r===D.NOTIFICATION_SEND_STATUS.SENT?{status:"success",title:t("notification.sendStatus.success"),sentTime:u}:{status:"pending",title:t("notification.sendStatus.pending"),reason:T,sentTime:u}}const Le={pending:"#aaaaaa",success:"#34BE74",failed:"#D0021B"},ke=["wallet","pushKit","email"],Ve=["info","success","error","warning"],ct=t=>{const{settings:s}=t;return s?.notification?.email?.enabled},dt=t=>{const{settings:s}=t;return s?.notification?.pushKit?.enabled},Xt=(t,s)=>{const n=te(s,"extra.notifications.email",!0);return{available:ct(t),enabled:n}},Qt=(t,s)=>{const n=te(s,"extra.notifications.push",!0);return{available:dt(t),enabled:n}},Jt=t=>({enabled:te(t,"extra.notifications.wallet",!0)}),Zt=t=>({enabled:te(t,"extra.webhooks",[]).length>0}),be=(t=3)=>new Promise(s=>{setTimeout(()=>{s()},t*1e3)}),es=(t,s)=>s==="wallet"||s==="webhook"?[{channel:s,type:"enabled",pass:t("notification.sendStatus.reason.enabled",{channel:s}),fail:t("notification.sendStatus.reason.disabled",{channel:s})}]:s==="pushKit"||s==="email"?[{channel:s,type:"available",pass:t("notification.sendStatus.reason.available",{channel:s}),fail:t("notification.sendStatus.reason.unavailable",{channel:s})},{channel:s,type:"enabled",pass:t("notification.sendStatus.reason.enabled",{channel:s}),fail:t("notification.sendStatus.reason.disabled",{channel:s})}]:[],je=(t=[])=>{const s=H().startOf("day");return t.filter(n=>H(n.sendAt).isSame(s,"day")).length},ts=(t,s="")=>{if(s&&ke.includes(s)){const l=`${s}SendRecord`,x=te(t,l,[]);return je(x)}const n=te(t,"webhook",{}),r=Object.keys(n??{})??[];if(s&&r.includes(s)){const l=n[s]??[];return je(l)}const a={};return ke.forEach(l=>{const x=`${l}SendRecord`,u=te(t,x,[]),T=je(u);a[l]=T}),r.length>0&&r.forEach(l=>{const x=n[l]??[],u=je(x);a[l]=u}),a},Se=(t,s,n)=>{if(!Array.isArray(t))throw new Error("Invalid filterList or index");return t[n].splice(s,1),t},ve=(t,s)=>{if(!Array.isArray(s))throw new Error("filters must be an array");return s.length?!s.includes(t):!1},ss=t=>{switch(t){case D.NOTIFICATION_SEND_CHANNEL.WALLET:return"Wallet";case D.NOTIFICATION_SEND_CHANNEL.PUSH:return"Push Kit";case D.NOTIFICATION_SEND_CHANNEL.EMAIL:return"Email";case D.NOTIFICATION_SEND_CHANNEL.WEBHOOK:return"Webhook";default:return""}},ut=()=>({components:{MUIDataTableFilter:{styleOverrides:{header:{marginBottom:0,p:{margin:0}},root:{"& .MuiGrid-container":{marginTop:0,"& .MuiGrid-item":{paddingTop:0}}}}},MuiPopover:{styleOverrides:{root:{"&.MuiPopover-root":{"& .MuiPaper-root:has(.filter-container)":{width:"420px"}}}}}}});function se({config:t,enableTooltip:s=!0,showTitle:n=!1,children:r=null}){const{status:a,title:l="",sentTime:x="",reason:u=""}=t,T=[l,u].filter(Boolean).join(", ");return e.jsx(jt,{title:s?e.jsxs(e.Fragment,{children:[e.jsx($,{color:"inherit",sx:{fontSize:12},children:T}),e.jsx("span",{children:x})]}):null,arrow:!0,placement:"top",children:e.jsxs(y,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px"},children:[e.jsxs(y,{sx:{position:"relative",minHeight:14,minWidth:14,display:"flex",alignItems:"center",justifyContent:"center"},children:[e.jsx(y,{style:{opacity:.15},sx:{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:Le[a]}}),e.jsx(y,{sx:{position:"absolute",width:"55%",height:"55%",borderRadius:"50%",bgcolor:Le[a]}})]}),e.jsx($,{color:"inherit",sx:{fontSize:12},children:n?l:r})]})})}se.propTypes={config:d.object.isRequired,enableTooltip:d.bool,showTitle:d.bool,children:d.node};Ce.propTypes={list:d.array.isRequired,label:d.string.isRequired,onDelete:d.func};function Ce({list:t,label:s,onDelete:n=()=>{}}){const{t:r,locale:a}=Q();return e.jsxs(y,{sx:{display:"flex",gap:1,alignItems:"center"},children:[e.jsxs($,{children:[s,": "]}),t.map(l=>{const x=lt(r,a,{status:l});return e.jsx(Fe,{size:"small",label:e.jsx(y,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:e.jsx(se,{config:x,enableTooltip:!1,children:x.title})}),onDelete:u=>n(u,l)},l)})]})}ze.propTypes={filterList:d.array.isRequired,onChange:d.func.isRequired,index:d.number.isRequired,column:d.object.isRequired,filterValues:d.array.isRequired,label:d.string.isRequired,renderLabel:d.func.isRequired};function ze({filterList:t,onChange:s,index:n,column:r,filterValues:a,label:l,renderLabel:x}){return e.jsxs(Pe,{className:"filter-container",children:[e.jsx(Ye,{component:"legend",children:l}),e.jsx(Te,{row:!0,children:a.map(u=>e.jsx(Ie,{control:e.jsx(Ee,{checked:t[n].indexOf(u.value??u)>-1,onChange:T=>{const f=[...t];T.target.checked?f[n]=[...f[n],u.value??u]:f[n]=f[n].filter(v=>v!==(u.value??u)),s(f[n],n,r)},name:u.value??u}),label:e.jsx("span",{style:{display:"flex",alignItems:"center"},children:x(u)})},u.value??u))})]})}function Re(t){return e.jsx(ze,{...t,renderLabel:s=>e.jsx(se,{enableTooltip:!1,config:{status:s.status},children:s.label})})}ce.propTypes={status:d.number.isRequired,updatedAt:d.string.isRequired,reason:d.string,channel:d.string,onResend:d.func};function ce({status:t,updatedAt:s,reason:n="",channel:r="wallet",onResend:a}){const{t:l,locale:x}=Q(),u=lt(l,x,{status:t,updatedAt:s,reason:n,channel:r});return e.jsxs(y,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(se,{config:u,showTitle:!0}),u.status!=="success"&&e.jsx(we,{className:"resend-btn",size:"small",startIcon:e.jsx(_e,{}),sx:{fontSize:12,color:"rgba(0, 0, 0, 0.87)",fontWeight:400,".MuiButton-startIcon":{mr:"2px"}},onClick:a,children:l("notification.resend")})]})}We.propTypes={value:d.array.isRequired,onChange:d.func};function We({value:t,onChange:s}){const{locale:n}=Q(),r=H().toDate(),[a,l]=g.useState(null),x=g.useCallback(f=>{l(a?null:f.currentTarget)},[a]),u=!!a,T=g.useCallback(f=>{if(!f.startDate||!f.endDate){U.error("Please select a date range");return}if(H(f.startDate).isAfter(f.endDate)||!H(f.startDate).isValid()||!H(f.endDate).isValid()){U.error("Invalid date range");return}s([f.startDate,f.endDate]),l(null)},[s]);return e.jsxs("div",{children:[e.jsx($,{component:"div",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},sx:{mb:0},children:e.jsxs(we,{onClick:x,variant:"outlined",size:"small",color:"inherit",children:[qe(t[0],n)," - ",qe(t[1],n)]})}),e.jsx(Ae,{open:u,anchorEl:a,onClose:()=>{l(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},children:e.jsx(Mt,{open:!0,maxDate:r,initialDateRange:{startDate:t[0],endDate:t[1]},toggle:x,definedRanges:Kt(r),onChange:T})})]})}Me.propTypes={itemComponent:d.elementType.isRequired};function Me({itemComponent:t,...s}){const{t:n}=Q();return!s?.filterList?.filter(a=>a.length).length?null:e.jsxs(y,{sx:{display:"flex",gap:1,alignItems:"center"},children:[e.jsx("div",{className:"toolbar-filter-title",children:n("notification.filter")}),e.jsx("div",{className:"toolbar-filter-content",children:e.jsx(Ft.TableFilterList,{...s,ItemComponent:t})})]})}function Ke({label:t,onDelete:s,canDelete:n=()=>!0,...r}){const a=s&&typeof s=="function"?s:void 0;let l=!0;return n&&typeof n=="function"&&(l=n({label:t,...r})),e.jsx(Fe,{label:t,variant:"outlined",...a&&l?{onDelete:a}:{}})}Ke.propTypes={label:d.string.isRequired,onDelete:d.func,canDelete:d.func};const ns=[{label:"Wallet",value:"app",checked:!0},{label:"Email",value:"email",checked:!0},{label:"Push Kit",value:"push",checked:!0},{label:"Webhook",value:"webhook",checked:!0}];pt.propTypes={loading:d.bool,onCancel:d.func,onConfirm:d.func};function pt({loading:t=!1,onCancel:s=()=>{},onConfirm:n=()=>{}}){const{t:r}=Q(),[a,l]=g.useState(ns),[x,u]=g.useState(!0),T=(v,C)=>{C.checked=v.target.checked;const F=a.map(_=>({..._,checked:_.value===C.value?C.checked:_.checked}));l(F)},f=v=>{v.stopPropagation(),n({channels:a.filter(C=>C.checked).map(C=>C.value),isResendFailedOnly:x})};return e.jsxs(y,{className:"resend-config",sx:{padding:"16px 24px"},children:[e.jsx($,{variant:"body1",component:"div",className:"check-title",sx:{fontWeight:700,mb:1},children:r("notification.config")}),e.jsx(y,{className:"choose-channel",children:e.jsxs(Pe,{component:"fieldset",variant:"standard",children:[e.jsx(Ye,{component:"legend",children:r("notification.selectChannels")}),e.jsx(Te,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:1},children:a.map(v=>e.jsx(Ie,{control:e.jsx(Ee,{checked:v.checked,onChange:C=>T(C,v),name:v.value}),label:v.label},v.value))})]})}),e.jsx(y,{className:"resend-config-footer",children:e.jsx(Te,{children:e.jsx(Ie,{control:e.jsx(Ee,{checked:x,onChange:v=>u(v.target.checked)}),label:r("notification.resendFailedOnly")})})}),e.jsxs(y,{className:"resend-config-footer-tip",sx:{display:"flex",justifyContent:"flex-end",gap:1},children:[e.jsx(we,{onClick:v=>{v.stopPropagation(),s()},color:"inherit",children:r("common.cancel")}),e.jsxs(we,{onClick:f,color:"primary",disabled:t,variant:"contained",autoFocus:!0,style:{marginLeft:8},children:[t&&e.jsx(Xe,{size:16}),r("common.confirm")]})]})]})}ft.propTypes={notificationId:d.string.isRequired,handleResend:d.func,resending:d.bool};function ft({notificationId:t,handleResend:s,resending:n=!1}){const{t:r,locale:a}=Q(),l=Qe(),x=g.useMemo(()=>Je(l,ut()),[l]),{getReceivers:u,inService:T,teamDid:f,getUser:v,blocklet:C}=Be(),[F,_]=g.useState(!1),[N,V]=g.useState([]),P=De({anchorEl:null,position:null}),L=De({anchorEl:null,position:null}),[W,q]=g.useState(null),[Y,Z]=g.useState({total:0,pageSize:10,pageCount:0,page:1}),[h,S]=g.useState({searchText:"",page:1,pageSize:10,walletSendStatus:[],pushKitSendStatus:[],emailSendStatus:[],dateRange:[H().subtract(1,"month").startOf("day").toDate(),H().endOf("day").toDate()]}),[I,w]=g.useState([]),E=[{label:r("notification.sendStatus.pending"),value:0,status:"pending"},{label:r("notification.sendStatus.success"),value:1,status:"success"},{label:r("notification.sendStatus.failed"),value:2,status:"failed"}],k=async()=>{if(!F&&t)try{_(!0);const i=await u({notificationId:t,...h}),o=i.list.map(c=>({...c,receiverUser:{...c.receiverUser,avatar:st(c.receiverUser.avatar,f,T)}}));V(o),Z(i.paging),_(!1)}catch(i){U.error(i.message),_(!1)}};g.useEffect(()=>{k()},[h]);const B=i=>{i.stopPropagation();const o=i.currentTarget;L.anchorEl=o;const c=o.getBoundingClientRect();L.position={top:c.top+window.scrollY,left:c.left+window.scrollX}},ae=i=>i.data.length?e.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px"},children:e.jsx(Oe,{className:"resend-btn",size:"small",color:"primary",variant:"contained",startIcon:e.jsx(_e,{}),sx:{".MuiButton-startIcon":{mr:"2px"}},onClick:B,children:r("notification.resend")})}):null,ne={sort:!1,download:!1,print:!1,selectableRows:"multiple",searchPlaceholder:r("common.search"),searchAlwaysOpen:!1,filterType:"checkbox",searchDebounceTime:300,page:Y.page-1,rowsPerPage:Y.pageSize,count:Y.total,searchText:h.searchText,tableBodyMaxHeight:"calc(80vh - 260px)",rowsSelected:I,onRowSelectionChange:(i,o)=>{w(o.map(c=>c.dataIndex))},customToolbarSelect:ae},ee=({page:i,rowsPerPage:o,searchText:c,filterList:j})=>{const[,z=[],G=[],K=[]]=j;h.pageSize!==o?S(M=>({...M,pageSize:o,page:1})):h.page!==i+1?S(M=>({...M,page:i+1})):h.searchText!==c?S(M=>({...M,searchText:c,page:1})):pe(z,h.walletSendStatus)?pe(G,h.pushKitSendStatus)?pe(K,h.emailSendStatus)||S(M=>({...M,emailSendStatus:K,page:1})):S(M=>({...M,pushKitSendStatus:G,page:1})):S(M=>({...M,walletSendStatus:z,page:1}))},oe=g.useCallback(async(i,o)=>{if(!o)return!1;const c=await v(o);return c?i==="wallet"?Jt(c):i==="email"?Xt(C,c):i==="pushKit"?Qt(C,c):i==="webhook"?Zt(c):!0:!1},[v,C]),ge=g.useCallback(i=>es(r,i),[r]),re=()=>{P.anchorEl=null,P.position=null,q(null)},le=()=>{L.anchorEl=null,L.position=null},m=async(i,o,c=!0,j="")=>{if(!(!o.length||!i.length))try{s(i,o,c,j),L.anchorEl||(await be(.5),re())}catch(z){console.error("handleResend error",{error:z})}},p=async({channels:i,isResendFailedOnly:o})=>{const c=I.map(j=>N[j].receiver);await m(i,c,o),await be(.5),le(),w([])},b=async(i,o=[],c=!0)=>{try{await m(["webhook"],[i.receiver],c,o)}catch(j){U.error(j.response?j.response.statusText:j.message)}},R=async(i,o,c,j=[],z=!0)=>{if(i.stopPropagation(),ts(o,c)>=4){U.warning(r("notification.resendLimit"));return}if(!ke.includes(c)){await b(o,j,z);return}if(i){const K=i.currentTarget,M=K.getBoundingClientRect();P.anchorEl=K,P.position={top:M.top+window.scrollY,left:M.left+window.scrollX}}q({channel:c});try{const K=await oe(c,o.receiver);await be(1),q({channel:c,result:K}),(typeof K=="boolean"&&K||St(K)&&Object.values(K).every(M=>!!M))&&(await s([c],[o.receiver],z),L.anchorEl||(await be(.5),re()))}catch(K){U.error(K.message)}},O=i=>{S(o=>({...o,dateRange:i,page:1}))},A=(i,o,c,j)=>{i.stopPropagation();const z=c.filter(G=>G!==o);S(G=>({...G,[j]:z,page:1}))},J=X(()=>[{label:r("notification.receiver"),name:"receiver",width:200,options:{filter:!1,customBodyRenderLite:i=>{const{receiverUser:o,receiver:c}=N[i];return o?e.jsxs(y,{"data-cy":`member-name-${o.fullName}`,sx:{display:"flex",alignItems:"center",gap:1,justifyContent:"flex-start"},children:[e.jsx(Ze,{src:`${o.avatar}?imageFilter=resize&w=48&h=48`,size:32,did:c,shape:"circle",style:{borderRadius:"100%",overflow:"hidden"}}),e.jsx(me,{children:o.fullName})]},c):e.jsx(yt,{size:14,responsive:!1,compact:!0,copyable:!1,did:c})}}},{label:"Wallet",name:"walletSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),filter:!0,filterType:"custom",filterList:h.walletSendStatus??[],customFilterListOptions:{render:i=>e.jsx(Ce,{list:i,label:"Wallet",onDelete:(o,c)=>{o.stopPropagation(),A(o,c,J[1].options.filterList,"walletSendStatus")}}),update:Se},filterOptions:{names:E,fullWidth:!0,logic:ve,display:(i,o,c,j)=>e.jsx(Re,{label:"Wallet",filterList:i,onChange:o,index:c,column:j,filterValues:E})},customBodyRenderLite:i=>{const{walletSendStatus:o,walletSendAt:c,walletSendFailedReason:j}=N[i];return e.jsx(ce,{status:o,updatedAt:c,reason:j,channel:"wallet",onResend:z=>R(z,N[i],"wallet",[],!1)})}}},{label:"Push Kit",name:"pushKitSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:i=>{const{pushKitSendStatus:o,pushKitSendAt:c,pushKitSendFailedReason:j}=N[i];return e.jsx(ce,{status:o,updatedAt:c,reason:j,channel:"pushkit",onResend:z=>R(z,N[i],"pushKit",[],!1)})},filter:!0,filterType:"custom",filterList:h.pushKitSendStatus??[],customFilterListOptions:{render:i=>e.jsx(Ce,{list:i,label:"Push Kit",onDelete:(o,c)=>{o.stopPropagation(),A(o,c,J[2].options.filterList,"pushKitSendStatus")}}),update:Se},filterOptions:{names:E,fullWidth:!0,logic:ve,display:(i,o,c,j)=>e.jsx(Re,{label:"Push Kit",filterList:i,onChange:o,index:c,column:j,filterValues:E})}}},{label:"Email",name:"emailSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:i=>{const{emailSendStatus:o,emailSendAt:c,emailSendFailedReason:j}=N[i];return e.jsx(ce,{status:o,updatedAt:c,reason:j,channel:"email",onResend:z=>R(z,N[i],"email",[],!1)})},filter:!0,filterType:"custom",filterList:h.emailSendStatus??[],customFilterListOptions:{render:i=>e.jsx(Ce,{list:i,label:"Email",onDelete:(o,c)=>{o.stopPropagation(),A(o,c,J[3].options.filterList,"emailSendStatus")}}),update:Se},filterOptions:{names:E,fullWidth:!0,logic:ve,display:(i,o,c,j)=>e.jsx(Re,{label:"Email",filterList:i,onChange:o,index:c,column:j,filterValues:E})}}},{label:"Webhook",name:"webhook",width:200,options:{filter:!1,setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:i=>{const{webhook:o}=N[i];if(!o)return null;const c=Object.entries(o)[0];if(!c)return null;const[j,z]=c,G=z[0];return e.jsx(y,{sx:{display:"flex",flexDirection:"column",gap:1},children:e.jsxs(y,{className:"webhook-item",sx:{fontSize:12},children:[e.jsx(me,{maxLength:30,children:j},j),e.jsx(ce,{status:G.status,updatedAt:G.sendAt,reason:G.failedReason,channel:"webhook",onResend:K=>R(K,N[i],"webhook",[j],!1)})]},j)})}}},{label:r("common.createdAt"),name:"createdAt",width:100,options:{filter:!1,customBodyRenderLite:i=>{const{createdAt:o}=N[i];return e.jsx(et,{value:o,locale:a,shouldUpdate:!0})}}}],[N,a,h,r]),xe=[e.jsx(We,{value:h.dateRange,onChange:O},"date-picker"),e.jsx(Oe,{variant:"contained",size:"small",color:"primary",loading:F,startIcon:e.jsx(Wt,{}),onClick:()=>k(),sx:{".MuiButton-startIcon":{mr:"2px"}},style:{marginLeft:8},children:r("common.refresh")},"refresh")];return e.jsx(y,{sx:{overflow:"auto",".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"},".MuiTableCell-root":{paddingRight:"8px",whiteSpace:"nowrap"}},children:e.jsx(as,{children:e.jsxs(tt,{theme:x,children:[e.jsx(at,{className:"receivers-table",locale:a,loading:F,columns:J,data:N,onChange:ee,options:ne,customButtons:xe,components:{TableFilterList:i=>e.jsx(Me,{...i,itemComponent:o=>e.jsx(Ke,{...o,canDelete:()=>!1})})}}),P.anchorEl&&e.jsx(Ae,{open:!!P.anchorEl,anchorReference:"anchorPosition",anchorPosition:P.position,onClose:re,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:e.jsxs(os,{children:[e.jsxs($,{variant:"body1",component:"div",className:"check-title",children:[W?.channel," Checking"]}),e.jsx(y,{sx:{display:"flex",flexDirection:"column",gap:"4px"},children:ge(W?.channel).map(i=>{const{type:o,pass:c,fail:j}=i;return!W?.result||W?.result?.[o]?e.jsxs($,{variant:"body1",component:"div",className:"check-item",sx:{display:"flex",alignItems:"center",gap:"4px",color:W?.result?.[o]?ye.success.main:"inherit"},children:[W?.result?e.jsx(Ut,{}):e.jsx(Xe,{size:12,sx:{color:ye.primary.main}}),e.jsx("span",{children:c})]},o):e.jsxs($,{variant:"body1",component:"div",className:"check-item",sx:{display:"flex",alignItems:"center",gap:"4px",color:ye.error.main},children:[e.jsx(qt,{}),e.jsx("span",{children:j})]},o)})})]})}),L.anchorEl&&e.jsx(Ae,{open:!!L.anchorEl,anchorReference:"anchorPosition",anchorPosition:L.position,onClose:le,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:e.jsx(pt,{loading:n,onCancel:le,onConfirm:p})})]})})})}const is=g.memo(ft),as=ie.div`
|
|
1
|
+
import{aF as Ge,j as e,bn as gt,r as g,bz as X,bf as H,H as U,aH as D,p as xt,o as d,h as te,at as bt,ay as jt,M as y,T as $,n as Q,eO as Fe,P as Pe,il as Ye,bj as Te,aU as Ie,U as Ee,dI as we,b3 as qe,b1 as Ae,C as Xe,f as Qe,f0 as Je,aP as De,W as yt,as as Ze,im as et,w as Oe,f2 as tt,fo as ye,fI as st,dC as St,s as ie,af as pe,G as Ue,au as vt,io as Ct,ip as Nt,$ as nt,iq as wt,ir as Rt,is as Tt,it as It,O as Et,bu as it,K as At,Q as Dt,S as Ot,R as $e,iu as Lt,a3 as kt}from"./index-z2Pq7re4.js";import{d as Ft,H as at,g as Pt}from"./index-DxNJKgOf.js";import{R as _e,S as _t}from"./actions-DiTDvakV.js";import{B as Bt}from"./index-CazcQIXS.js";import{S as me}from"./shorten-label-CnHc5b4P.js";import{v as ot}from"./index-0z8Wehkl.js";import{T as zt}from"./html-title-DVCSq6YQ.js";import{R as Wt}from"./Refresh-CEzviXq3.js";import{D as Mt,g as Kt}from"./traffic-BvD_sqrg.js";import{u as Ht}from"./use-mobile-Dwu9jRCW.js";import"./FilterList-DcRJLB8M.js";import"./CSSTransition-BoWO2BoO.js";import"./emotion-cache.browser.esm-CTjwgjTJ.js";import"./index-CwJ8EMCg.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-CSi6TcQv.js";import"./index-p_tMzvnc.js";import"./TableSearch-I0DQoJkT.js";import"./Search-CJFu7Gaf.js";import"./Clear-DgL5cnLN.js";import"./MoreVert-D4eir2r_.js";import"./useLocalStorage-CFg3RYoG.js";import"./url-evaluation-CeV7iBRh.js";import"./get-safe-url-CUMicCqh.js";import"./ButtonGroup-8swvzNFE.js";import"./getValidReactChildren-B5PKhq5Y.js";import"./permission-CE3f6duj.js";import"./index.esm-11mV4JTB.js";import"./collapse-BKLgvOSl.js";import"./blocklet-B517W-Ua.js";import"./Switch-D89bFzHz.js";import"./iframe-D0APLep4.js";import"./ChevronLeft-CJzdK2eh.js";import"./ChevronRight-DLMDPIak.js";import"./index-DBii9-f-.js";import"./base-chart-BIsr5drw.js";import"./index-BOhdDUAw.js";import"./AdapterDayjs-wz3uJn5Q.js";import"./useThemeProps-DDkjiDuo.js";import"./visuallyHidden-Dan1xhjv.js";const qt=Ge(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"})),Ut=Ge(e.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"})),rt=g.createContext({}),{Provider:$t,Consumer:an}=rt;function Vt({children:t,blocklet:s=""}){const{api:n,inService:r,ws:{useSubscription:a}}=gt(),[l,x]=g.useState([]),[u,T]=g.useState({total:0,pageSize:20,pageCount:0,page:1}),f=X(()=>s.meta?.did,[s]),[v,C]=g.useState([]),[F,_]=g.useState({}),N=X(()=>l.length?new Set(l.map(h=>h.id)):new Set,[l]),V=async({page:h=1,pageSize:S=20,...I}={})=>{if(!f)return[];try{const w={paging:{page:h,pageSize:S},...I,teamDid:f,dateRange:I.dateRange?[H(I.dateRange[0]).toISOString(),H(I.dateRange[1]).toISOString()]:void 0},{dids:E,...k}=w;let B="";E&&E.includes("system")&&(B="system");const ae=E?E.filter(oe=>oe!=="system"):[],ne={...k,source:B,componentDids:ae},ee=await n.getNotificationSendLog({input:ne});return _(ne),x(ee.list),T(ee.paging),ee.list}catch(w){return U.error(w.message),[]}},P=async()=>{const h=await n.getNotificationComponents({input:{teamDid:f}});C(h.componentDids)},L=g.useCallback(h=>{const S=s.children.find(I=>I.meta?.did===h);if(S)return S.ancestors=[s],S},[s]),W=async({notificationId:h,receivers:S,channels:I,...w})=>{await n.resendNotification({input:{teamDid:f,notificationId:h,receivers:S,channels:I.map(E=>E==="wallet"?D.NOTIFICATION_SEND_CHANNEL.WALLET:E==="pushKit"?D.NOTIFICATION_SEND_CHANNEL.PUSH:E),...w}})},q=g.useCallback(async h=>(await n.getUser({input:{teamDid:f,user:{did:h},options:{enableConnectedAccount:!0}}})).user,[n,f]),Y=g.useCallback(async({page:h=1,pageSize:S=20,...I}={})=>{try{const w={paging:{page:h,pageSize:S},...I,userName:I.searchText||"",teamDid:f,dateRange:I.dateRange?[H(I.dateRange[0]).toISOString(),H(I.dateRange[1]).toISOString()]:void 0};return await n.getReceivers({input:w})}catch(w){throw U.error(w.message),w}},[n,f]);g.useEffect(()=>{f&&P()},[f]),a(D.EVENTS.NOTIFICATION_BLOCKLET_UPDATE,h=>{N.has(h.notificationId)&&V(F)},[N,F]),a(D.EVENTS.NOTIFICATION_BLOCKLET_CREATE,h=>{N.has(h.id)||V(F)},[N,F]);const Z={fetch:V,data:l,paging:u,blocklet:s,getComponent:L,resendNotification:W,getUser:q,componentDids:v,getReceivers:Y,inService:r,teamDid:f};return e.jsx($t,{value:{notificationRecords:Z},children:t})}function Be(){const{notificationRecords:t}=g.useContext(rt);return t}he.propTypes={severity:d.oneOf(Object.values(["info","success","error","warning"])).isRequired};const Gt={info:"primary",success:"success",error:"error",warning:"warning"};function he({severity:t="info"}){return e.jsx(xt,{type:Gt[t],children:t})}const Yt=(t,s,n="")=>{if(!n||!s)return"";switch(n){case D.NOTIFICATION_SEND_FAILED_REASON.USER_DISABLED:return t("notification.sendStatus.reason.disabled",{channel:s});case D.NOTIFICATION_SEND_FAILED_REASON.CHANNEL_UNAVAILABLE:return t("notification.sendStatus.reason.unavailable",{channel:s});case D.NOTIFICATION_SEND_FAILED_REASON.CHANNEL_DISABLED:return t("notification.sendStatus.reason.notSent",{channel:s});case D.NOTIFICATION_SEND_FAILED_REASON.NOT_ONLINE:return t("notification.sendStatus.reason.offline");default:return n}};function lt(t,s,n={}){const{status:r,updatedAt:a,reason:l="",channel:x="wallet"}=n,u=a?t("notification.sendStatus.sentTime",{date:bt(a,s)}):"",T=Yt(t,x,l);return r===D.NOTIFICATION_SEND_STATUS.FAILED?{status:"failed",title:t("notification.sendStatus.failed"),sentTime:u,reason:T}:r===D.NOTIFICATION_SEND_STATUS.SENT?{status:"success",title:t("notification.sendStatus.success"),sentTime:u}:{status:"pending",title:t("notification.sendStatus.pending"),reason:T,sentTime:u}}const Le={pending:"#aaaaaa",success:"#34BE74",failed:"#D0021B"},ke=["wallet","pushKit","email"],Ve=["info","success","error","warning"],ct=t=>{const{settings:s}=t;return s?.notification?.email?.enabled},dt=t=>{const{settings:s}=t;return s?.notification?.pushKit?.enabled},Xt=(t,s)=>{const n=te(s,"extra.notifications.email",!0);return{available:ct(t),enabled:n}},Qt=(t,s)=>{const n=te(s,"extra.notifications.push",!0);return{available:dt(t),enabled:n}},Jt=t=>({enabled:te(t,"extra.notifications.wallet",!0)}),Zt=t=>({enabled:te(t,"extra.webhooks",[]).length>0}),be=(t=3)=>new Promise(s=>{setTimeout(()=>{s()},t*1e3)}),es=(t,s)=>s==="wallet"||s==="webhook"?[{channel:s,type:"enabled",pass:t("notification.sendStatus.reason.enabled",{channel:s}),fail:t("notification.sendStatus.reason.disabled",{channel:s})}]:s==="pushKit"||s==="email"?[{channel:s,type:"available",pass:t("notification.sendStatus.reason.available",{channel:s}),fail:t("notification.sendStatus.reason.unavailable",{channel:s})},{channel:s,type:"enabled",pass:t("notification.sendStatus.reason.enabled",{channel:s}),fail:t("notification.sendStatus.reason.disabled",{channel:s})}]:[],je=(t=[])=>{const s=H().startOf("day");return t.filter(n=>H(n.sendAt).isSame(s,"day")).length},ts=(t,s="")=>{if(s&&ke.includes(s)){const l=`${s}SendRecord`,x=te(t,l,[]);return je(x)}const n=te(t,"webhook",{}),r=Object.keys(n??{})??[];if(s&&r.includes(s)){const l=n[s]??[];return je(l)}const a={};return ke.forEach(l=>{const x=`${l}SendRecord`,u=te(t,x,[]),T=je(u);a[l]=T}),r.length>0&&r.forEach(l=>{const x=n[l]??[],u=je(x);a[l]=u}),a},Se=(t,s,n)=>{if(!Array.isArray(t))throw new Error("Invalid filterList or index");return t[n].splice(s,1),t},ve=(t,s)=>{if(!Array.isArray(s))throw new Error("filters must be an array");return s.length?!s.includes(t):!1},ss=t=>{switch(t){case D.NOTIFICATION_SEND_CHANNEL.WALLET:return"Wallet";case D.NOTIFICATION_SEND_CHANNEL.PUSH:return"Push Kit";case D.NOTIFICATION_SEND_CHANNEL.EMAIL:return"Email";case D.NOTIFICATION_SEND_CHANNEL.WEBHOOK:return"Webhook";default:return""}},ut=()=>({components:{MUIDataTableFilter:{styleOverrides:{header:{marginBottom:0,p:{margin:0}},root:{"& .MuiGrid-container":{marginTop:0,"& .MuiGrid-item":{paddingTop:0}}}}},MuiPopover:{styleOverrides:{root:{"&.MuiPopover-root":{"& .MuiPaper-root:has(.filter-container)":{width:"420px"}}}}}}});function se({config:t,enableTooltip:s=!0,showTitle:n=!1,children:r=null}){const{status:a,title:l="",sentTime:x="",reason:u=""}=t,T=[l,u].filter(Boolean).join(", ");return e.jsx(jt,{title:s?e.jsxs(e.Fragment,{children:[e.jsx($,{color:"inherit",sx:{fontSize:12},children:T}),e.jsx("span",{children:x})]}):null,arrow:!0,placement:"top",children:e.jsxs(y,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px"},children:[e.jsxs(y,{sx:{position:"relative",minHeight:14,minWidth:14,display:"flex",alignItems:"center",justifyContent:"center"},children:[e.jsx(y,{style:{opacity:.15},sx:{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:Le[a]}}),e.jsx(y,{sx:{position:"absolute",width:"55%",height:"55%",borderRadius:"50%",bgcolor:Le[a]}})]}),e.jsx($,{color:"inherit",sx:{fontSize:12},children:n?l:r})]})})}se.propTypes={config:d.object.isRequired,enableTooltip:d.bool,showTitle:d.bool,children:d.node};Ce.propTypes={list:d.array.isRequired,label:d.string.isRequired,onDelete:d.func};function Ce({list:t,label:s,onDelete:n=()=>{}}){const{t:r,locale:a}=Q();return e.jsxs(y,{sx:{display:"flex",gap:1,alignItems:"center"},children:[e.jsxs($,{children:[s,": "]}),t.map(l=>{const x=lt(r,a,{status:l});return e.jsx(Fe,{size:"small",label:e.jsx(y,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:e.jsx(se,{config:x,enableTooltip:!1,children:x.title})}),onDelete:u=>n(u,l)},l)})]})}ze.propTypes={filterList:d.array.isRequired,onChange:d.func.isRequired,index:d.number.isRequired,column:d.object.isRequired,filterValues:d.array.isRequired,label:d.string.isRequired,renderLabel:d.func.isRequired};function ze({filterList:t,onChange:s,index:n,column:r,filterValues:a,label:l,renderLabel:x}){return e.jsxs(Pe,{className:"filter-container",children:[e.jsx(Ye,{component:"legend",children:l}),e.jsx(Te,{row:!0,children:a.map(u=>e.jsx(Ie,{control:e.jsx(Ee,{checked:t[n].indexOf(u.value??u)>-1,onChange:T=>{const f=[...t];T.target.checked?f[n]=[...f[n],u.value??u]:f[n]=f[n].filter(v=>v!==(u.value??u)),s(f[n],n,r)},name:u.value??u}),label:e.jsx("span",{style:{display:"flex",alignItems:"center"},children:x(u)})},u.value??u))})]})}function Re(t){return e.jsx(ze,{...t,renderLabel:s=>e.jsx(se,{enableTooltip:!1,config:{status:s.status},children:s.label})})}ce.propTypes={status:d.number.isRequired,updatedAt:d.string.isRequired,reason:d.string,channel:d.string,onResend:d.func};function ce({status:t,updatedAt:s,reason:n="",channel:r="wallet",onResend:a}){const{t:l,locale:x}=Q(),u=lt(l,x,{status:t,updatedAt:s,reason:n,channel:r});return e.jsxs(y,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(se,{config:u,showTitle:!0}),u.status!=="success"&&e.jsx(we,{className:"resend-btn",size:"small",startIcon:e.jsx(_e,{}),sx:{fontSize:12,color:"rgba(0, 0, 0, 0.87)",fontWeight:400,".MuiButton-startIcon":{mr:"2px"}},onClick:a,children:l("notification.resend")})]})}We.propTypes={value:d.array.isRequired,onChange:d.func};function We({value:t,onChange:s}){const{locale:n}=Q(),r=H().toDate(),[a,l]=g.useState(null),x=g.useCallback(f=>{l(a?null:f.currentTarget)},[a]),u=!!a,T=g.useCallback(f=>{if(!f.startDate||!f.endDate){U.error("Please select a date range");return}if(H(f.startDate).isAfter(f.endDate)||!H(f.startDate).isValid()||!H(f.endDate).isValid()){U.error("Invalid date range");return}s([f.startDate,f.endDate]),l(null)},[s]);return e.jsxs("div",{children:[e.jsx($,{component:"div",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},sx:{mb:0},children:e.jsxs(we,{onClick:x,variant:"outlined",size:"small",color:"inherit",children:[qe(t[0],n)," - ",qe(t[1],n)]})}),e.jsx(Ae,{open:u,anchorEl:a,onClose:()=>{l(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},children:e.jsx(Mt,{open:!0,maxDate:r,initialDateRange:{startDate:t[0],endDate:t[1]},toggle:x,definedRanges:Kt(r),onChange:T})})]})}Me.propTypes={itemComponent:d.elementType.isRequired};function Me({itemComponent:t,...s}){const{t:n}=Q();return!s?.filterList?.filter(a=>a.length).length?null:e.jsxs(y,{sx:{display:"flex",gap:1,alignItems:"center"},children:[e.jsx("div",{className:"toolbar-filter-title",children:n("notification.filter")}),e.jsx("div",{className:"toolbar-filter-content",children:e.jsx(Ft.TableFilterList,{...s,ItemComponent:t})})]})}function Ke({label:t,onDelete:s,canDelete:n=()=>!0,...r}){const a=s&&typeof s=="function"?s:void 0;let l=!0;return n&&typeof n=="function"&&(l=n({label:t,...r})),e.jsx(Fe,{label:t,variant:"outlined",...a&&l?{onDelete:a}:{}})}Ke.propTypes={label:d.string.isRequired,onDelete:d.func,canDelete:d.func};const ns=[{label:"Wallet",value:"app",checked:!0},{label:"Email",value:"email",checked:!0},{label:"Push Kit",value:"push",checked:!0},{label:"Webhook",value:"webhook",checked:!0}];pt.propTypes={loading:d.bool,onCancel:d.func,onConfirm:d.func};function pt({loading:t=!1,onCancel:s=()=>{},onConfirm:n=()=>{}}){const{t:r}=Q(),[a,l]=g.useState(ns),[x,u]=g.useState(!0),T=(v,C)=>{C.checked=v.target.checked;const F=a.map(_=>({..._,checked:_.value===C.value?C.checked:_.checked}));l(F)},f=v=>{v.stopPropagation(),n({channels:a.filter(C=>C.checked).map(C=>C.value),isResendFailedOnly:x})};return e.jsxs(y,{className:"resend-config",sx:{padding:"16px 24px"},children:[e.jsx($,{variant:"body1",component:"div",className:"check-title",sx:{fontWeight:700,mb:1},children:r("notification.config")}),e.jsx(y,{className:"choose-channel",children:e.jsxs(Pe,{component:"fieldset",variant:"standard",children:[e.jsx(Ye,{component:"legend",children:r("notification.selectChannels")}),e.jsx(Te,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:1},children:a.map(v=>e.jsx(Ie,{control:e.jsx(Ee,{checked:v.checked,onChange:C=>T(C,v),name:v.value}),label:v.label},v.value))})]})}),e.jsx(y,{className:"resend-config-footer",children:e.jsx(Te,{children:e.jsx(Ie,{control:e.jsx(Ee,{checked:x,onChange:v=>u(v.target.checked)}),label:r("notification.resendFailedOnly")})})}),e.jsxs(y,{className:"resend-config-footer-tip",sx:{display:"flex",justifyContent:"flex-end",gap:1},children:[e.jsx(we,{onClick:v=>{v.stopPropagation(),s()},color:"inherit",children:r("common.cancel")}),e.jsxs(we,{onClick:f,color:"primary",disabled:t,variant:"contained",autoFocus:!0,style:{marginLeft:8},children:[t&&e.jsx(Xe,{size:16}),r("common.confirm")]})]})]})}ft.propTypes={notificationId:d.string.isRequired,handleResend:d.func,resending:d.bool};function ft({notificationId:t,handleResend:s,resending:n=!1}){const{t:r,locale:a}=Q(),l=Qe(),x=g.useMemo(()=>Je(l,ut()),[l]),{getReceivers:u,inService:T,teamDid:f,getUser:v,blocklet:C}=Be(),[F,_]=g.useState(!1),[N,V]=g.useState([]),P=De({anchorEl:null,position:null}),L=De({anchorEl:null,position:null}),[W,q]=g.useState(null),[Y,Z]=g.useState({total:0,pageSize:10,pageCount:0,page:1}),[h,S]=g.useState({searchText:"",page:1,pageSize:10,walletSendStatus:[],pushKitSendStatus:[],emailSendStatus:[],dateRange:[H().subtract(1,"month").startOf("day").toDate(),H().endOf("day").toDate()]}),[I,w]=g.useState([]),E=[{label:r("notification.sendStatus.pending"),value:0,status:"pending"},{label:r("notification.sendStatus.success"),value:1,status:"success"},{label:r("notification.sendStatus.failed"),value:2,status:"failed"}],k=async()=>{if(!F&&t)try{_(!0);const i=await u({notificationId:t,...h}),o=i.list.map(c=>({...c,receiverUser:{...c.receiverUser,avatar:st(c.receiverUser.avatar,f,T)}}));V(o),Z(i.paging),_(!1)}catch(i){U.error(i.message),_(!1)}};g.useEffect(()=>{k()},[h]);const B=i=>{i.stopPropagation();const o=i.currentTarget;L.anchorEl=o;const c=o.getBoundingClientRect();L.position={top:c.top+window.scrollY,left:c.left+window.scrollX}},ae=i=>i.data.length?e.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px"},children:e.jsx(Oe,{className:"resend-btn",size:"small",color:"primary",variant:"contained",startIcon:e.jsx(_e,{}),sx:{".MuiButton-startIcon":{mr:"2px"}},onClick:B,children:r("notification.resend")})}):null,ne={sort:!1,download:!1,print:!1,selectableRows:"multiple",searchPlaceholder:r("common.search"),searchAlwaysOpen:!1,filterType:"checkbox",searchDebounceTime:300,page:Y.page-1,rowsPerPage:Y.pageSize,count:Y.total,searchText:h.searchText,tableBodyMaxHeight:"calc(80vh - 260px)",rowsSelected:I,onRowSelectionChange:(i,o)=>{w(o.map(c=>c.dataIndex))},customToolbarSelect:ae},ee=({page:i,rowsPerPage:o,searchText:c,filterList:j})=>{const[,z=[],G=[],K=[]]=j;h.pageSize!==o?S(M=>({...M,pageSize:o,page:1})):h.page!==i+1?S(M=>({...M,page:i+1})):h.searchText!==c?S(M=>({...M,searchText:c,page:1})):pe(z,h.walletSendStatus)?pe(G,h.pushKitSendStatus)?pe(K,h.emailSendStatus)||S(M=>({...M,emailSendStatus:K,page:1})):S(M=>({...M,pushKitSendStatus:G,page:1})):S(M=>({...M,walletSendStatus:z,page:1}))},oe=g.useCallback(async(i,o)=>{if(!o)return!1;const c=await v(o);return c?i==="wallet"?Jt(c):i==="email"?Xt(C,c):i==="pushKit"?Qt(C,c):i==="webhook"?Zt(c):!0:!1},[v,C]),ge=g.useCallback(i=>es(r,i),[r]),re=()=>{P.anchorEl=null,P.position=null,q(null)},le=()=>{L.anchorEl=null,L.position=null},m=async(i,o,c=!0,j="")=>{if(!(!o.length||!i.length))try{s(i,o,c,j),L.anchorEl||(await be(.5),re())}catch(z){console.error("handleResend error",{error:z})}},p=async({channels:i,isResendFailedOnly:o})=>{const c=I.map(j=>N[j].receiver);await m(i,c,o),await be(.5),le(),w([])},b=async(i,o=[],c=!0)=>{try{await m(["webhook"],[i.receiver],c,o)}catch(j){U.error(j.response?j.response.statusText:j.message)}},R=async(i,o,c,j=[],z=!0)=>{if(i.stopPropagation(),ts(o,c)>=4){U.warning(r("notification.resendLimit"));return}if(!ke.includes(c)){await b(o,j,z);return}if(i){const K=i.currentTarget,M=K.getBoundingClientRect();P.anchorEl=K,P.position={top:M.top+window.scrollY,left:M.left+window.scrollX}}q({channel:c});try{const K=await oe(c,o.receiver);await be(1),q({channel:c,result:K}),(typeof K=="boolean"&&K||St(K)&&Object.values(K).every(M=>!!M))&&(await s([c],[o.receiver],z),L.anchorEl||(await be(.5),re()))}catch(K){U.error(K.message)}},O=i=>{S(o=>({...o,dateRange:i,page:1}))},A=(i,o,c,j)=>{i.stopPropagation();const z=c.filter(G=>G!==o);S(G=>({...G,[j]:z,page:1}))},J=X(()=>[{label:r("notification.receiver"),name:"receiver",width:200,options:{filter:!1,customBodyRenderLite:i=>{const{receiverUser:o,receiver:c}=N[i];return o?e.jsxs(y,{"data-cy":`member-name-${o.fullName}`,sx:{display:"flex",alignItems:"center",gap:1,justifyContent:"flex-start"},children:[e.jsx(Ze,{src:`${o.avatar}?imageFilter=resize&w=48&h=48`,size:32,did:c,shape:"circle",style:{borderRadius:"100%",overflow:"hidden"}}),e.jsx(me,{children:o.fullName})]},c):e.jsx(yt,{size:14,responsive:!1,compact:!0,copyable:!1,did:c})}}},{label:"Wallet",name:"walletSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),filter:!0,filterType:"custom",filterList:h.walletSendStatus??[],customFilterListOptions:{render:i=>e.jsx(Ce,{list:i,label:"Wallet",onDelete:(o,c)=>{o.stopPropagation(),A(o,c,J[1].options.filterList,"walletSendStatus")}}),update:Se},filterOptions:{names:E,fullWidth:!0,logic:ve,display:(i,o,c,j)=>e.jsx(Re,{label:"Wallet",filterList:i,onChange:o,index:c,column:j,filterValues:E})},customBodyRenderLite:i=>{const{walletSendStatus:o,walletSendAt:c,walletSendFailedReason:j}=N[i];return e.jsx(ce,{status:o,updatedAt:c,reason:j,channel:"wallet",onResend:z=>R(z,N[i],"wallet",[],!1)})}}},{label:"Push Kit",name:"pushKitSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:i=>{const{pushKitSendStatus:o,pushKitSendAt:c,pushKitSendFailedReason:j}=N[i];return e.jsx(ce,{status:o,updatedAt:c,reason:j,channel:"pushkit",onResend:z=>R(z,N[i],"pushKit",[],!1)})},filter:!0,filterType:"custom",filterList:h.pushKitSendStatus??[],customFilterListOptions:{render:i=>e.jsx(Ce,{list:i,label:"Push Kit",onDelete:(o,c)=>{o.stopPropagation(),A(o,c,J[2].options.filterList,"pushKitSendStatus")}}),update:Se},filterOptions:{names:E,fullWidth:!0,logic:ve,display:(i,o,c,j)=>e.jsx(Re,{label:"Push Kit",filterList:i,onChange:o,index:c,column:j,filterValues:E})}}},{label:"Email",name:"emailSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:i=>{const{emailSendStatus:o,emailSendAt:c,emailSendFailedReason:j}=N[i];return e.jsx(ce,{status:o,updatedAt:c,reason:j,channel:"email",onResend:z=>R(z,N[i],"email",[],!1)})},filter:!0,filterType:"custom",filterList:h.emailSendStatus??[],customFilterListOptions:{render:i=>e.jsx(Ce,{list:i,label:"Email",onDelete:(o,c)=>{o.stopPropagation(),A(o,c,J[3].options.filterList,"emailSendStatus")}}),update:Se},filterOptions:{names:E,fullWidth:!0,logic:ve,display:(i,o,c,j)=>e.jsx(Re,{label:"Email",filterList:i,onChange:o,index:c,column:j,filterValues:E})}}},{label:"Webhook",name:"webhook",width:200,options:{filter:!1,setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:i=>{const{webhook:o}=N[i];if(!o)return null;const c=Object.entries(o)[0];if(!c)return null;const[j,z]=c,G=z[0];return e.jsx(y,{sx:{display:"flex",flexDirection:"column",gap:1},children:e.jsxs(y,{className:"webhook-item",sx:{fontSize:12},children:[e.jsx(me,{maxLength:30,children:j},j),e.jsx(ce,{status:G.status,updatedAt:G.sendAt,reason:G.failedReason,channel:"webhook",onResend:K=>R(K,N[i],"webhook",[j],!1)})]},j)})}}},{label:r("common.createdAt"),name:"createdAt",width:100,options:{filter:!1,customBodyRenderLite:i=>{const{createdAt:o}=N[i];return e.jsx(et,{value:o,locale:a,shouldUpdate:!0})}}}],[N,a,h,r]),xe=[e.jsx(We,{value:h.dateRange,onChange:O},"date-picker"),e.jsx(Oe,{variant:"contained",size:"small",color:"primary",loading:F,startIcon:e.jsx(Wt,{}),onClick:()=>k(),sx:{".MuiButton-startIcon":{mr:"2px"}},style:{marginLeft:8},children:r("common.refresh")},"refresh")];return e.jsx(y,{sx:{overflow:"auto",".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"},".MuiTableCell-root":{paddingRight:"8px",whiteSpace:"nowrap"}},children:e.jsx(as,{children:e.jsxs(tt,{theme:x,children:[e.jsx(at,{className:"receivers-table",locale:a,loading:F,columns:J,data:N,onChange:ee,options:ne,customButtons:xe,components:{TableFilterList:i=>e.jsx(Me,{...i,itemComponent:o=>e.jsx(Ke,{...o,canDelete:()=>!1})})}}),P.anchorEl&&e.jsx(Ae,{open:!!P.anchorEl,anchorReference:"anchorPosition",anchorPosition:P.position,onClose:re,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:e.jsxs(os,{children:[e.jsxs($,{variant:"body1",component:"div",className:"check-title",children:[W?.channel," Checking"]}),e.jsx(y,{sx:{display:"flex",flexDirection:"column",gap:"4px"},children:ge(W?.channel).map(i=>{const{type:o,pass:c,fail:j}=i;return!W?.result||W?.result?.[o]?e.jsxs($,{variant:"body1",component:"div",className:"check-item",sx:{display:"flex",alignItems:"center",gap:"4px",color:W?.result?.[o]?ye.success.main:"inherit"},children:[W?.result?e.jsx(Ut,{}):e.jsx(Xe,{size:12,sx:{color:ye.primary.main}}),e.jsx("span",{children:c})]},o):e.jsxs($,{variant:"body1",component:"div",className:"check-item",sx:{display:"flex",alignItems:"center",gap:"4px",color:ye.error.main},children:[e.jsx(qt,{}),e.jsx("span",{children:j})]},o)})})]})}),L.anchorEl&&e.jsx(Ae,{open:!!L.anchorEl,anchorReference:"anchorPosition",anchorPosition:L.position,onClose:le,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:e.jsx(pt,{loading:n,onCancel:le,onConfirm:p})})]})})})}const is=g.memo(ft),as=ie.div`
|
|
2
2
|
td.MuiTableCell-footer {
|
|
3
3
|
border: none !important;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cF as $m,bd as jL,h3 as oT,ba as Xm,bb as Zm,cS as qm,be as JL,r as QL}from"./index-
|
|
1
|
+
import{cF as $m,bd as jL,h3 as oT,ba as Xm,bb as Zm,cS as qm,be as JL,r as QL}from"./index-z2Pq7re4.js";/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aF as de,j as e,hl as Ts,hm as Es,bM as Is,r as q,s as xe,M as $,f5 as kt,v as U,eO as ft,a3 as ie,C as Ee,bi as Bt,dL as Ds,o as T,hn as Ls,b2 as Ht,cx as qs,cQ as Ms,dp as zs,T as Y,dG as at,bn as ne,bA as mt,g as ue,ho as Bs,bB as pt,b as W,bg as G,dI as ee,H as Z,aV as ae,n as oe,q as Nt,t as Hs,x as Ft,ac as Ns,i as Zt,gi as Fs,hp as Zs,at as Vs,aU as X,U as Te,$ as ke,D as Us,V as Ws,w as re,X as it,hq as Js,hr as Ks,eA as Gs,eC as Ys,I as je,aH as J,g6 as Xs,cY as St,W as Qs,fm as Vt,ay as te,aR as Ct,hs as er,f9 as Re,cs as E,bz as ge,aD as se,P as Q,aP as ye,ht as qe,a1 as tr,hu as Je,c3 as Ce,eD as sr,hv as rr,dH as ce,f as Oe,z as Ut,bw as ot,N as nr,cE as Wt,gh as ar,fP as Ze,hw as ir,b9 as or,L as lr,cr as ze,aK as He,hx as cr,R as dr,af as Rt,a2 as Jt,bj as Ne,hy as Kt,b6 as ur,gG as we,fa as Gt,cW as Yt,E as hr,b5 as Ot,fb as fr,fg as mr,G as Ke,K as pr,bu as gr}from"./index-C7egXf_h.js";import{F as yr,a as lt,s as xr,L as _e,S as vr,B as br}from"./preference-BhfekBAB.js";import{N as $t}from"./ChevronRight-X_FMXVA4.js";import{T as Fe}from"./html-title-vsl-TT26.js";import{w as Ie,P as jr}from"./permission-ycsOOBwp.js";import{u as gt}from"./index-DVAwbdhJ.js";import{D as _r}from"./Done-yHCWLz6K.js";import{R as wr,S as M}from"./collapse-UPIFGGD9.js";import{A as kr,a as At}from"./Autocomplete-Bf1Ho3Hd.js";import{C as Sr,R as Cr,S as Rr,P as Or}from"./rotate-session-key-B90qT4kq.js";import{u as le}from"./blocklet-C67aFvl7.js";import{C as $r}from"./click-to-copy-D50kkiW4.js";import{u as Ve}from"./team-CxcPF7A7.js";import{v as Xt}from"./index-DWy1kjL1.js";import{g as Ar}from"./chain-se1xvUDC.js";import{V as Pr,d as Tr}from"./status-DnBUY_P3.js";import{S as pe}from"./Switch-CE03jZ_8.js";import{B as Er}from"./index-BP0DWBRY.js";import{y as Ir}from"./index-BxxgnmFX.js";import{I as Dr,J as Lr,K as qr,L as Mr}from"./index-rrAKD-3O.js";import{u as ve,C as H,b as Pt}from"./index.esm-DkqB0mnE.js";import{S as Be,u as zr}from"./switch-control-Ce2o9ffJ.js";import{D as Tt,R as Qt,a as es}from"./url-evaluation-w8X_lgzG.js";import{A as Et}from"./Add-CQt7mq1G.js";import{H as Ue}from"./index-8DgiLFWe.js";import{l as Br}from"./index-W1Jg0zqO.js";import{u as ts}from"./use-mobile-BxUSznYk.js";import{S as Ge}from"./simple-select-BZu6cCw3.js";import{G as Hr}from"./actions-BBls_wa0.js";import{C as Nr}from"./CardContent-C22npYBc.js";import"./omit-DVVVCRDp.js";import"./index-AKf23glP.js";import"./edit.svg-BHG50OdM.js";import"./ArrowDropDown-aNeHE2A2.js";import"./ButtonGroup-9zvLC_k0.js";import"./getValidReactChildren-DDB1J2y7.js";import"./index-DnZwjPBr.js";import"./iframe-Dl-yNrp9.js";import"./ListSubheader-FJVGwx1O.js";import"./visuallyHidden-Dan1xhjv.js";import"./ErrorOutline-B_qBOUnI.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./FilterList-BOMn8eqm.js";import"./CSSTransition-dwX1-RMJ.js";import"./emotion-cache.browser.esm-B4ZmPeHk.js";import"./depsEqual-BaUhqVSn.js";import"./TableSearch-Bj41g7St.js";import"./Search-Dm2dt-Sr.js";import"./Clear-B-e33dNn.js";import"./MoreVert-bx--E19j.js";import"./useLocalStorage-DZYDHTFQ.js";import"./get-safe-url-CteWIr5a.js";const ss=de([e.jsx("path",{d:"M21 7.28V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-2.28c.59-.35 1-.98 1-1.72V9c0-.74-.41-1.37-1-1.72M20 9v6h-7V9zM5 19V5h14v2h-6c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h6v2z"},"0"),e.jsx("circle",{cx:"16",cy:"12",r:"1.5"},"1")]),Fr=de([e.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},"0"),e.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]),Zr=de(e.jsx("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"})),Vr=de(e.jsx("path",{d:"M24 9v2h-6V9zM8 4C5.79 4 4 5.79 4 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4m4.51-8.95C13.43 5.11 14 6.49 14 8s-.57 2.89-1.49 3.95C14.47 11.7 16 10.04 16 8s-1.53-3.7-3.49-3.95m4.02 9.78C17.42 14.66 18 15.7 18 17v3h2v-3c0-1.45-1.59-2.51-3.47-3.17"})),Ur=de(e.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),Wr=de(e.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),ct=de(e.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"})),Jr=de([e.jsx("path",{d:"M18 11c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.79-1.13-1.26-2.51-1.26-4 0-3.87 3.13-7 7-7M8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9z"},"0"),e.jsx("path",{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0 2c.83 0 1.5.67 1.5 1.5S18.83 18 18 18s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5m0 6c-1.03 0-1.94-.52-2.48-1.32.73-.42 1.57-.68 2.48-.68s1.75.26 2.48.68c-.54.8-1.45 1.32-2.48 1.32"},"1")]),Kr=de(e.jsx("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"})),Gr=de(e.jsx("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2m6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5z"})),rs=de(e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23z"})),Yr=de(e.jsx("path",{d:"M3 18c0 .55.45 1 1 1h5v-2H4c-.55 0-1 .45-1 1M3 6c0 .55.45 1 1 1h9V5H4c-.55 0-1 .45-1 1m10 14v-1h7c.55 0 1-.45 1-1s-.45-1-1-1h-7v-1c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1M7 10v1H4c-.55 0-1 .45-1 1s.45 1 1 1h3v1c0 .55.45 1 1 1s1-.45 1-1v-4c0-.55-.45-1-1-1s-1 .45-1 1m14 2c0-.55-.45-1-1-1h-9v2h9c.55 0 1-.45 1-1m-5-3c.55 0 1-.45 1-1V7h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V4c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1"})),Xr=de(e.jsx("path",{d:"M16 13c3.09-2.81 6-5.44 6-7.7C22 3.45 20.55 2 18.7 2c-1.04 0-2.05.49-2.7 1.25C15.34 2.49 14.34 2 13.3 2 11.45 2 10 3.45 10 5.3c0 2.26 2.91 4.89 6 7.7m-2.7-9c.44 0 .89.21 1.18.55L16 6.34l1.52-1.79c.29-.34.74-.55 1.18-.55.74 0 1.3.56 1.3 1.3 0 1.12-2.04 3.17-4 4.99-1.96-1.82-4-3.88-4-4.99 0-.74.56-1.3 1.3-1.3M19 16h-2c0-1.2-.75-2.28-1.87-2.7L8.97 11H1v11h6v-1.44l7 1.94 8-2.5v-1c0-1.66-1.34-3-3-3M3 20v-7h2v7zm10.97.41L7 18.48V13h1.61l5.82 2.17c.34.13.57.46.57.83 0 0-1.99-.05-2.3-.15l-2.38-.79-.63 1.9 2.38.79c.51.17 1.04.26 1.58.26H19c.39 0 .74.23.9.56z"}));var Qr=Array.prototype,It=Qr.splice;function en(v,R,O,C){var _=Es,j=-1,p=R.length,a=v;for(v===R&&(R=Ts(R));++j<p;)for(var m=0,f=R[j],h=f;(m=_(a,h,m))>-1;)a!==v&&It.call(a,m,1),It.call(v,m,1);return v}function tn(v,R){return v&&v.length&&R&&R.length?en(v,R):v}var sn=Is(tn);const rn={width:24,height:24,body:'<path fill="currentColor" d="M4.975 15q-.425 0-.7-.288T4 14q0-.425.288-.713T5 13h14.025q.425 0 .7.288T20 14q0 .425-.288.713T19 15H4.975Zm0 4q-.425 0-.7-.288T4 18q0-.425.288-.713T5 17h14.025q.425 0 .7.288T20 18q0 .425-.288.713T19 19H4.975Zm0-8q-.425 0-.7-.288T4 10q0-.425.288-.713T5 9h14.025q.425 0 .7.288T20 10q0 .425-.288.713T19 11H4.975Zm0-4q-.425 0-.7-.288T4 6q0-.425.288-.713T5 5h14.025q.425 0 .7.288T20 6q0 .425-.288.713T19 7H4.975Z"/>'};function ns({label:v="",disabled:R=!1,required:O=!1,initialValue:C="",onChange:_=()=>{},style:j={},onSubmit:p=()=>{},triggers:a=[],options:m=[],formatterBeforeSubmit:f=n=>n.join(","),helperText:h="",placeholder:t="",renderImage:l=()=>null,renderLabel:o=()=>"",filterKeys:r=["name"],noEmpty:s=!1,...c}){const[n,i]=q.useState(!1),[u,g]=q.useState(!1),[y,k]=q.useState(""),w=q.useRef(null),[d,x]=q.useState(C),[b,S]=q.useState(d),A=q.useMemo(()=>{if(!m)return{};const B={};return m.forEach(I=>{B[I.code]=I}),B},[m]),P=()=>{if(!m)return[];if(!y)return m.map(I=>I.code);const B=new RegExp(y.toLowerCase());return m.filter(I=>{for(let z=0;z<r.length;z++){const F=r[z];if(B.test(I[F]?.toLowerCase()))return!0}return!1}).map(I=>I.code)},L=async()=>{g(!0);try{await p(typeof f=="function"?f(b):b)===!1?S(d):s&&!b.length?(S(C),x(C)):(S(b),x(b))}catch{S(d)}finally{g(!1),i(!1)}},D=(B,I)=>{if(!Array.isArray(I)){S([]),_([]);return}const z=I.filter(F=>A[F]);if(!z.length){S([]),_([]);return}S(z),_(z)},N=B=>{B.stopPropagation(),i(!0),setTimeout(()=>{if(w.current){const I=w.current.querySelector("input");I&&I.focus()}},500)},V=n?e.jsx(kr,{ref:w,options:m,value:b,onChange:D,inputValue:y,onInputChange:(B,I)=>{k(I)},fullWidth:!0,multiple:!0,variant:"outlined",margin:"dense",filterOptions:P,getOptionLabel:B=>A[B]?.name,renderInput:B=>e.jsx(U,{...B,label:"",placeholder:t}),renderOption:(B,I)=>{const z=b.indexOf(I)!==-1;return q.createElement(nn,{component:"li",...B,key:I},l(A[I]||{}),e.jsx($,{sx:{"& > img":{mr:2,flexShrink:0}},style:{flex:1,fontWeight:z?"700":"normal"},children:o(I,A[I])||A[I]?.name}),e.jsx($,{component:kt,sx:{opacity:.5,width:18,height:18},style:{visibility:z?"visible":"hidden"}}))},...c,slots:{popper:an}}):e.jsx($,{className:"form-item-input slot",onClick:N,style:{whiteSpace:"pre-wrap",cursor:"text"},sx:{px:1},children:b.filter(B=>m.some(I=>I.code===B)).map(B=>e.jsx(ft,{label:m.find(I=>I.code===B).name,style:{marginRight:8},size:"small"},B))});return e.jsx(yr,{className:"form",style:j,children:e.jsxs($,{className:"form-item",children:[e.jsxs($,{className:"form-item-label",children:[v,O&&e.jsx(wr,{})]}),e.jsxs($,{className:"form-item-body",children:[e.jsx($,{className:"form-item-input",children:V}),n?e.jsx($,{className:"form-item-action",children:e.jsxs(e.Fragment,{children:[e.jsx(ie,{"data-cy":"schema-form-item-confirm",onClick:L,disabled:R||u,size:"large",children:u?e.jsx(Ee,{size:24}):e.jsx(_r,{})}),e.jsx(ie,{"data-cy":"schema-form-item-cancel",onClick:()=>{S(d),i(!1)},disabled:R||u,size:"large",children:e.jsx(kt,{})})]})}):null]}),n&&h&&e.jsx(Bt,{children:h})]})})}ns.propTypes={style:T.object,onSubmit:T.func,onChange:T.func,label:T.string,initialValue:T.string,required:T.bool,disabled:T.bool,triggers:T.array,options:T.array,helperText:T.string,formatterBeforeSubmit:T.func,placeholder:T.string,renderImage:T.func,filterKeys:T.arrayOf(T.string),noEmpty:T.bool,renderLabel:T.func};const nn=xe.div`
|
|
1
|
+
import{aF as de,j as e,hl as Ts,hm as Es,bM as Is,r as q,s as xe,M as $,f5 as kt,v as U,eO as ft,a3 as ie,C as Ee,bi as Bt,dL as Ds,o as T,hn as Ls,b2 as Ht,cx as qs,cQ as Ms,dp as zs,T as Y,dG as at,bn as ne,bA as mt,g as ue,ho as Bs,bB as pt,b as W,bg as G,dI as ee,H as Z,aV as ae,n as oe,q as Nt,t as Hs,x as Ft,ac as Ns,i as Zt,gi as Fs,hp as Zs,at as Vs,aU as X,U as Te,$ as ke,D as Us,V as Ws,w as re,X as it,hq as Js,hr as Ks,eA as Gs,eC as Ys,I as je,aH as J,g6 as Xs,cY as St,W as Qs,fm as Vt,ay as te,aR as Ct,hs as er,f9 as Re,cs as E,bz as ge,aD as se,P as Q,aP as ye,ht as qe,a1 as tr,hu as Je,c3 as Ce,eD as sr,hv as rr,dH as ce,f as Oe,z as Ut,bw as ot,N as nr,cE as Wt,gh as ar,fP as Ze,hw as ir,b9 as or,L as lr,cr as ze,aK as He,hx as cr,R as dr,af as Rt,a2 as Jt,bj as Ne,hy as Kt,b6 as ur,gG as we,fa as Gt,cW as Yt,E as hr,b5 as Ot,fb as fr,fg as mr,G as Ke,K as pr,bu as gr}from"./index-z2Pq7re4.js";import{F as yr,a as lt,s as xr,L as _e,S as vr,B as br}from"./preference-uMowSkVr.js";import{N as $t}from"./ChevronRight-DLMDPIak.js";import{T as Fe}from"./html-title-DVCSq6YQ.js";import{w as Ie,P as jr}from"./permission-CE3f6duj.js";import{u as gt}from"./index-BnwXywaJ.js";import{D as _r}from"./Done-C1929K34.js";import{R as wr,S as M}from"./collapse-BKLgvOSl.js";import{A as kr,a as At}from"./Autocomplete-rgPa6avl.js";import{C as Sr,R as Cr,S as Rr,P as Or}from"./rotate-session-key-D08RekVV.js";import{u as le}from"./blocklet-B517W-Ua.js";import{C as $r}from"./click-to-copy-3JN8Y4Er.js";import{u as Ve}from"./team-CzLA5Wke.js";import{v as Xt}from"./index-0z8Wehkl.js";import{g as Ar}from"./chain-DPDA2EQ2.js";import{V as Pr,d as Tr}from"./status-CqsLbSWy.js";import{S as pe}from"./Switch-D89bFzHz.js";import{B as Er}from"./index-CazcQIXS.js";import{y as Ir}from"./index-p_tMzvnc.js";import{I as Dr,J as Lr,K as qr,L as Mr}from"./index-CwJ8EMCg.js";import{u as ve,C as H,b as Pt}from"./index.esm-11mV4JTB.js";import{S as Be,u as zr}from"./switch-control-DoypOh17.js";import{D as Tt,R as Qt,a as es}from"./url-evaluation-CeV7iBRh.js";import{A as Et}from"./Add-Cous1ji5.js";import{H as Ue}from"./index-DxNJKgOf.js";import{l as Br}from"./index-NuRrhPxS.js";import{u as ts}from"./use-mobile-Dwu9jRCW.js";import{S as Ge}from"./simple-select-AxSwGalf.js";import{G as Hr}from"./actions-DiTDvakV.js";import{C as Nr}from"./CardContent-DNK9-zja.js";import"./omit-CoM-kG66.js";import"./index-B3tyE5tE.js";import"./edit.svg-BePrNRJc.js";import"./ArrowDropDown-BmpWVT5T.js";import"./ButtonGroup-8swvzNFE.js";import"./getValidReactChildren-B5PKhq5Y.js";import"./index-BP2ItssN.js";import"./iframe-D0APLep4.js";import"./ListSubheader-BNX9gO02.js";import"./visuallyHidden-Dan1xhjv.js";import"./ErrorOutline-4kGDns30.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./FilterList-DcRJLB8M.js";import"./CSSTransition-BoWO2BoO.js";import"./emotion-cache.browser.esm-CTjwgjTJ.js";import"./depsEqual-CSi6TcQv.js";import"./TableSearch-I0DQoJkT.js";import"./Search-CJFu7Gaf.js";import"./Clear-DgL5cnLN.js";import"./MoreVert-D4eir2r_.js";import"./useLocalStorage-CFg3RYoG.js";import"./get-safe-url-CUMicCqh.js";const ss=de([e.jsx("path",{d:"M21 7.28V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-2.28c.59-.35 1-.98 1-1.72V9c0-.74-.41-1.37-1-1.72M20 9v6h-7V9zM5 19V5h14v2h-6c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h6v2z"},"0"),e.jsx("circle",{cx:"16",cy:"12",r:"1.5"},"1")]),Fr=de([e.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"},"0"),e.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]),Zr=de(e.jsx("path",{d:"M21 8V7l-3 2-3-2v1l3 2zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2M8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3m6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1zm8-6h-8V6h8z"})),Vr=de(e.jsx("path",{d:"M24 9v2h-6V9zM8 4C5.79 4 4 5.79 4 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4m4.51-8.95C13.43 5.11 14 6.49 14 8s-.57 2.89-1.49 3.95C14.47 11.7 16 10.04 16 8s-1.53-3.7-3.49-3.95m4.02 9.78C17.42 14.66 18 15.7 18 17v3h2v-3c0-1.45-1.59-2.51-3.47-3.17"})),Ur=de(e.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),Wr=de(e.jsx("path",{d:"M21 10h-8.35C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H13l2 2 2-2 2 2 4-4.04zM7 15c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3"})),ct=de(e.jsx("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"})),Jr=de([e.jsx("path",{d:"M18 11c.7 0 1.37.1 2 .29V10c0-1.1-.9-2-2-2h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6.26c-.79-1.13-1.26-2.51-1.26-4 0-3.87 3.13-7 7-7M8.9 6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1v2H8.9z"},"0"),e.jsx("path",{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5m0 2c.83 0 1.5.67 1.5 1.5S18.83 18 18 18s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5m0 6c-1.03 0-1.94-.52-2.48-1.32.73-.42 1.57-.68 2.48-.68s1.75.26 2.48.68c-.54.8-1.45 1.32-2.48 1.32"},"1")]),Kr=de(e.jsx("path",{d:"M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z"})),Gr=de(e.jsx("path",{d:"M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2m6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5z"})),rs=de(e.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23z"})),Yr=de(e.jsx("path",{d:"M3 18c0 .55.45 1 1 1h5v-2H4c-.55 0-1 .45-1 1M3 6c0 .55.45 1 1 1h9V5H4c-.55 0-1 .45-1 1m10 14v-1h7c.55 0 1-.45 1-1s-.45-1-1-1h-7v-1c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1s1-.45 1-1M7 10v1H4c-.55 0-1 .45-1 1s.45 1 1 1h3v1c0 .55.45 1 1 1s1-.45 1-1v-4c0-.55-.45-1-1-1s-1 .45-1 1m14 2c0-.55-.45-1-1-1h-9v2h9c.55 0 1-.45 1-1m-5-3c.55 0 1-.45 1-1V7h3c.55 0 1-.45 1-1s-.45-1-1-1h-3V4c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1"})),Xr=de(e.jsx("path",{d:"M16 13c3.09-2.81 6-5.44 6-7.7C22 3.45 20.55 2 18.7 2c-1.04 0-2.05.49-2.7 1.25C15.34 2.49 14.34 2 13.3 2 11.45 2 10 3.45 10 5.3c0 2.26 2.91 4.89 6 7.7m-2.7-9c.44 0 .89.21 1.18.55L16 6.34l1.52-1.79c.29-.34.74-.55 1.18-.55.74 0 1.3.56 1.3 1.3 0 1.12-2.04 3.17-4 4.99-1.96-1.82-4-3.88-4-4.99 0-.74.56-1.3 1.3-1.3M19 16h-2c0-1.2-.75-2.28-1.87-2.7L8.97 11H1v11h6v-1.44l7 1.94 8-2.5v-1c0-1.66-1.34-3-3-3M3 20v-7h2v7zm10.97.41L7 18.48V13h1.61l5.82 2.17c.34.13.57.46.57.83 0 0-1.99-.05-2.3-.15l-2.38-.79-.63 1.9 2.38.79c.51.17 1.04.26 1.58.26H19c.39 0 .74.23.9.56z"}));var Qr=Array.prototype,It=Qr.splice;function en(v,R,O,C){var _=Es,j=-1,p=R.length,a=v;for(v===R&&(R=Ts(R));++j<p;)for(var m=0,f=R[j],h=f;(m=_(a,h,m))>-1;)a!==v&&It.call(a,m,1),It.call(v,m,1);return v}function tn(v,R){return v&&v.length&&R&&R.length?en(v,R):v}var sn=Is(tn);const rn={width:24,height:24,body:'<path fill="currentColor" d="M4.975 15q-.425 0-.7-.288T4 14q0-.425.288-.713T5 13h14.025q.425 0 .7.288T20 14q0 .425-.288.713T19 15H4.975Zm0 4q-.425 0-.7-.288T4 18q0-.425.288-.713T5 17h14.025q.425 0 .7.288T20 18q0 .425-.288.713T19 19H4.975Zm0-8q-.425 0-.7-.288T4 10q0-.425.288-.713T5 9h14.025q.425 0 .7.288T20 10q0 .425-.288.713T19 11H4.975Zm0-4q-.425 0-.7-.288T4 6q0-.425.288-.713T5 5h14.025q.425 0 .7.288T20 6q0 .425-.288.713T19 7H4.975Z"/>'};function ns({label:v="",disabled:R=!1,required:O=!1,initialValue:C="",onChange:_=()=>{},style:j={},onSubmit:p=()=>{},triggers:a=[],options:m=[],formatterBeforeSubmit:f=n=>n.join(","),helperText:h="",placeholder:t="",renderImage:l=()=>null,renderLabel:o=()=>"",filterKeys:r=["name"],noEmpty:s=!1,...c}){const[n,i]=q.useState(!1),[u,g]=q.useState(!1),[y,k]=q.useState(""),w=q.useRef(null),[d,x]=q.useState(C),[b,S]=q.useState(d),A=q.useMemo(()=>{if(!m)return{};const B={};return m.forEach(I=>{B[I.code]=I}),B},[m]),P=()=>{if(!m)return[];if(!y)return m.map(I=>I.code);const B=new RegExp(y.toLowerCase());return m.filter(I=>{for(let z=0;z<r.length;z++){const F=r[z];if(B.test(I[F]?.toLowerCase()))return!0}return!1}).map(I=>I.code)},L=async()=>{g(!0);try{await p(typeof f=="function"?f(b):b)===!1?S(d):s&&!b.length?(S(C),x(C)):(S(b),x(b))}catch{S(d)}finally{g(!1),i(!1)}},D=(B,I)=>{if(!Array.isArray(I)){S([]),_([]);return}const z=I.filter(F=>A[F]);if(!z.length){S([]),_([]);return}S(z),_(z)},N=B=>{B.stopPropagation(),i(!0),setTimeout(()=>{if(w.current){const I=w.current.querySelector("input");I&&I.focus()}},500)},V=n?e.jsx(kr,{ref:w,options:m,value:b,onChange:D,inputValue:y,onInputChange:(B,I)=>{k(I)},fullWidth:!0,multiple:!0,variant:"outlined",margin:"dense",filterOptions:P,getOptionLabel:B=>A[B]?.name,renderInput:B=>e.jsx(U,{...B,label:"",placeholder:t}),renderOption:(B,I)=>{const z=b.indexOf(I)!==-1;return q.createElement(nn,{component:"li",...B,key:I},l(A[I]||{}),e.jsx($,{sx:{"& > img":{mr:2,flexShrink:0}},style:{flex:1,fontWeight:z?"700":"normal"},children:o(I,A[I])||A[I]?.name}),e.jsx($,{component:kt,sx:{opacity:.5,width:18,height:18},style:{visibility:z?"visible":"hidden"}}))},...c,slots:{popper:an}}):e.jsx($,{className:"form-item-input slot",onClick:N,style:{whiteSpace:"pre-wrap",cursor:"text"},sx:{px:1},children:b.filter(B=>m.some(I=>I.code===B)).map(B=>e.jsx(ft,{label:m.find(I=>I.code===B).name,style:{marginRight:8},size:"small"},B))});return e.jsx(yr,{className:"form",style:j,children:e.jsxs($,{className:"form-item",children:[e.jsxs($,{className:"form-item-label",children:[v,O&&e.jsx(wr,{})]}),e.jsxs($,{className:"form-item-body",children:[e.jsx($,{className:"form-item-input",children:V}),n?e.jsx($,{className:"form-item-action",children:e.jsxs(e.Fragment,{children:[e.jsx(ie,{"data-cy":"schema-form-item-confirm",onClick:L,disabled:R||u,size:"large",children:u?e.jsx(Ee,{size:24}):e.jsx(_r,{})}),e.jsx(ie,{"data-cy":"schema-form-item-cancel",onClick:()=>{S(d),i(!1)},disabled:R||u,size:"large",children:e.jsx(kt,{})})]})}):null]}),n&&h&&e.jsx(Bt,{children:h})]})})}ns.propTypes={style:T.object,onSubmit:T.func,onChange:T.func,label:T.string,initialValue:T.string,required:T.bool,disabled:T.bool,triggers:T.array,options:T.array,helperText:T.string,formatterBeforeSubmit:T.func,placeholder:T.string,renderImage:T.func,filterKeys:T.arrayOf(T.string),noEmpty:T.bool,renderLabel:T.func};const nn=xe.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
justify-content: space-between;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as R,fJ as ll,c1 as _o,fK as cl,ft as Mo,fL as ul,cS as Lo,aF as cr,j as s,fM as dl,fN as fl,cs as mt,bd as es,bz as ht,M as $,as as ts,ay as gt,T as Re,eO as rs,aP as yt,fO as pl,n as Ie,F as to,fP as ro,fQ as ml,cW as ns,cr as os,bk as jr,dI as qe,dG as is,O as or,aU as Lt,fR as hl,C as vt,fS as ir,ez as Je,fT as ss,fU as bl,fV as gl,fW as yl,fX as vl,fY as xl,fZ as as,f_ as wl,f$ as no,g0 as Cl,g1 as jl,g2 as Sl,g3 as Tl,eA as oo,g4 as ls,eB as El,cF as Un,eC as kl,dE as Pl,g5 as Il,g6 as Rl,bn as Fe,g7 as cs,H as Me,X as Ue,o as j,f as io,f5 as us,q as xt,bU as Al,dL as Dl,bv as Ol,au as ct,g8 as ds,S as Sr,g9 as fs,a_ as _l,$ as st,v as at,b1 as Ml,fd as Ll,ga as Nl,gb as Bl,gc as Fl,D as Mr,bg as so,a3 as rr,gd as ql,V as St,bX as $t,bY as Vt,cg as ps,dO as tt,e_ as pe,b_ as Ul,b8 as _e,dc as Tr,d6 as ms,b$ as ut,c0 as It,R as kt,dK as hs,d9 as $l,ge as Lr,gf as bs,bf as $e,P as sr,bp as Vl,Q as $n,gg as Er,gh as zl,at as ar,w as Ve,gi as Wl,h as Vn,aW as Kl,x as Hl,y as Yl,s as Ke,g as ur,ac as dr,bA as Bt,gj as Gl,dF as Zl,dm as Xl,aH as bt,dx as Ql,gk as Jl,eD as ec,gl as gs,gm as kr,gn as tc,dH as zn,b as Tt,W as ao,dJ as rc,A as nc,br as lo,bs as ys,bt as co,dp as mr,aD as oc,fI as vs,aS as ic,aE as sc,a8 as ac,z as lc,go as cc,bC as uc,U as dc,N as fc}from"./index-C7egXf_h.js";import{A as Ft}from"./Add-CQt7mq1G.js";import{V as pc}from"./ViewList-BbDrtZvr.js";import{c as mc,H as uo,g as hc}from"./index-8DgiLFWe.js";import{u as bc}from"./use-mobile-IHqsUzt1.js";import{e as No}from"./client-Dj0WAiOq.js";import{R as xs,a as Cr,D as gc}from"./url-evaluation-w8X_lgzG.js";import{v as Bo}from"./index-C-1MOEs6.js";import{u as He}from"./team-CxcPF7A7.js";import{u as ws}from"./blocklet-C67aFvl7.js";import{S as Cs}from"./Search-Dm2dt-Sr.js";import{y as Nr}from"./index-BxxgnmFX.js";import{u as yc,C as Gt}from"./index.esm-DkqB0mnE.js";import{S as vc}from"./Google-KOeLJ7n-.js";import{A as xc,a as hr}from"./Autocomplete-Bf1Ho3Hd.js";import{U as wc}from"./UnfoldMore-zrMTJNOp.js";import{P as Pt}from"./permission-ycsOOBwp.js";import{C as Br}from"./click-to-copy-D50kkiW4.js";import{s as wt,g as Cc,S as jc,u as ft,a as js,b as fr,c as Ss,d as Fr,e as Ts,f as fo,P as Es,D as ks,h as Pr,M as er,i as Ps,j as Fo,k as nr,v as Sc,l as Tc,m as qo,n as Ec,o as kc,p as Pc,q as Ic,C as Rc,r as Ac,t as Ir,w as Mt,x as Rr,y as Uo,z as $o,A as Dc,T as Oc,B as po,E as _c,F as Mc,G as Lc,H as Nc,I as Bc,J as Fc,K as qc,L as br,N as Nt,O as Is,Q as Uc,V as Wn,R as Rs,U as $c,W as Vo,X as Vc,Y as zc,Z as Wc,_ as Kc,$ as Hc,a0 as Yc}from"./AdapterDayjs-DQepVz3x.js";import{u as rt}from"./useThemeProps-Bs1lG48z.js";import{a as zo,b as Gc,t as Zc,T as Xc}from"./html-title-vsl-TT26.js";import{v as Ge}from"./index-DWy1kjL1.js";import{V as Qc}from"./Verified-B-cFyGP0.js";import{D as Jc}from"./DeleteOutline-CIuy8JMu.js";import{E as Wo}from"./ErrorOutline-B_qBOUnI.js";import{N as eu}from"./index-B2jTgxcq.js";import{b as tu}from"./sdk-BZ4-wJ5p.js";import{u as ru}from"./index-CC45e4UO.js";import{u as nu}from"./use-mobile-BxUSznYk.js";import{A as ou}from"./actions-DaOidt88.js";import{S as iu}from"./shorten-label-BOfK6p4p.js";const su=mc(R.useLayoutEffect);var Ko={},Ho;function au(){return Ho||(Ho=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(f){try{return f.defaultView&&f.defaultView.frameElement||null}catch{return null}}var t=function(f){for(var p=f,C=e(p);C;)p=C.ownerDocument,C=e(p);return p}(window.document),r=[],n=null,o=null;function c(f){this.time=f.time,this.target=f.target,this.rootBounds=b(f.rootBounds),this.boundingClientRect=b(f.boundingClientRect),this.intersectionRect=b(f.intersectionRect||g()),this.isIntersecting=!!f.intersectionRect;var p=this.boundingClientRect,C=p.width*p.height,T=this.intersectionRect,S=T.width*T.height;C?this.intersectionRatio=Number((S/C).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function i(f,p){var C=p||{};if(typeof f!="function")throw new Error("callback must be a function");if(C.root&&C.root.nodeType!=1&&C.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=a(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=f,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(C.rootMargin),this.thresholds=this._initThresholds(C.threshold),this.root=C.root||null,this.rootMargin=this._rootMarginValues.map(function(T){return T.value+T.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i._setupCrossOriginUpdater=function(){return n||(n=function(f,p){!f||!p?o=g():o=w(f,p),r.forEach(function(C){C._checkForIntersections()})}),n},i._resetCrossOriginUpdater=function(){n=null,o=null},i.prototype.observe=function(f){var p=this._observationTargets.some(function(C){return C.element==f});if(!p){if(!(f&&f.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:f,entry:null}),this._monitorIntersections(f.ownerDocument),this._checkForIntersections()}},i.prototype.unobserve=function(f){this._observationTargets=this._observationTargets.filter(function(p){return p.element!=f}),this._unmonitorIntersections(f.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var f=this._queuedEntries.slice();return this._queuedEntries=[],f},i.prototype._initThresholds=function(f){var p=f||[0];return Array.isArray(p)||(p=[p]),p.sort().filter(function(C,T,S){if(typeof C!="number"||isNaN(C)||C<0||C>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return C!==S[T-1]})},i.prototype._parseRootMargin=function(f){var p=f||"0px",C=p.split(/\s+/).map(function(T){var S=/^(-?\d*\.?\d+)(px|%)$/.exec(T);if(!S)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(S[1]),unit:S[2]}});return C[1]=C[1]||C[0],C[2]=C[2]||C[0],C[3]=C[3]||C[1],C},i.prototype._monitorIntersections=function(f){var p=f.defaultView;if(p&&this._monitoringDocuments.indexOf(f)==-1){var C=this._checkForIntersections,T=null,S=null;this.POLL_INTERVAL?T=p.setInterval(C,this.POLL_INTERVAL):(u(p,"resize",C,!0),u(f,"scroll",C,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in p&&(S=new p.MutationObserver(C),S.observe(f,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(f),this._monitoringUnsubscribes.push(function(){var k=f.defaultView;k&&(T&&k.clearInterval(T),d(k,"resize",C,!0)),d(f,"scroll",C,!0),S&&S.disconnect()});var A=this.root&&(this.root.ownerDocument||this.root)||t;if(f!=A){var E=e(f);E&&this._monitorIntersections(E.ownerDocument)}}},i.prototype._unmonitorIntersections=function(f){var p=this._monitoringDocuments.indexOf(f);if(p!=-1){var C=this.root&&(this.root.ownerDocument||this.root)||t,T=this._observationTargets.some(function(E){var k=E.element.ownerDocument;if(k==f)return!0;for(;k&&k!=C;){var B=e(k);if(k=B&&B.ownerDocument,k==f)return!0}return!1});if(!T){var S=this._monitoringUnsubscribes[p];if(this._monitoringDocuments.splice(p,1),this._monitoringUnsubscribes.splice(p,1),S(),f!=C){var A=e(f);A&&this._unmonitorIntersections(A.ownerDocument)}}}},i.prototype._unmonitorAllIntersections=function(){var f=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var p=0;p<f.length;p++)f[p]()},i.prototype._checkForIntersections=function(){if(!(!this.root&&n&&!o)){var f=this._rootIsInDom(),p=f?this._getRootRect():g();this._observationTargets.forEach(function(C){var T=C.element,S=h(T),A=this._rootContainsTarget(T),E=C.entry,k=f&&A&&this._computeTargetAndRootIntersection(T,S,p),B=null;this._rootContainsTarget(T)?(!n||this.root)&&(B=p):B=g();var q=C.entry=new c({time:l(),target:T,boundingClientRect:S,rootBounds:B,intersectionRect:k});E?f&&A?this._hasCrossedThreshold(E,q)&&this._queuedEntries.push(q):E&&E.isIntersecting&&this._queuedEntries.push(q):this._queuedEntries.push(q)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},i.prototype._computeTargetAndRootIntersection=function(f,p,C){if(window.getComputedStyle(f).display!="none"){for(var T=p,S=y(f),A=!1;!A&&S;){var E=null,k=S.nodeType==1?window.getComputedStyle(S):{};if(k.display=="none")return null;if(S==this.root||S.nodeType==9)if(A=!0,S==this.root||S==t)n&&!this.root?!o||o.width==0&&o.height==0?(S=null,E=null,T=null):E=o:E=C;else{var B=y(S),q=B&&h(B),H=B&&this._computeTargetAndRootIntersection(B,q,C);q&&H?(S=B,E=w(q,H)):(S=null,T=null)}else{var se=S.ownerDocument;S!=se.body&&S!=se.documentElement&&k.overflow!="visible"&&(E=h(S))}if(E&&(T=x(E,T)),!T)break;S=S&&y(S)}return T}},i.prototype._getRootRect=function(){var f;if(this.root&&!v(this.root))f=h(this.root);else{var p=v(this.root)?this.root:t,C=p.documentElement,T=p.body;f={top:0,left:0,right:C.clientWidth||T.clientWidth,width:C.clientWidth||T.clientWidth,bottom:C.clientHeight||T.clientHeight,height:C.clientHeight||T.clientHeight}}return this._expandRectByRootMargin(f)},i.prototype._expandRectByRootMargin=function(f){var p=this._rootMarginValues.map(function(T,S){return T.unit=="px"?T.value:T.value*(S%2?f.width:f.height)/100}),C={top:f.top-p[0],right:f.right+p[1],bottom:f.bottom+p[2],left:f.left-p[3]};return C.width=C.right-C.left,C.height=C.bottom-C.top,C},i.prototype._hasCrossedThreshold=function(f,p){var C=f&&f.isIntersecting?f.intersectionRatio||0:-1,T=p.isIntersecting?p.intersectionRatio||0:-1;if(C!==T)for(var S=0;S<this.thresholds.length;S++){var A=this.thresholds[S];if(A==C||A==T||A<C!=A<T)return!0}},i.prototype._rootIsInDom=function(){return!this.root||m(t,this.root)},i.prototype._rootContainsTarget=function(f){var p=this.root&&(this.root.ownerDocument||this.root)||t;return m(p,f)&&(!this.root||p==f.ownerDocument)},i.prototype._registerInstance=function(){r.indexOf(this)<0&&r.push(this)},i.prototype._unregisterInstance=function(){var f=r.indexOf(this);f!=-1&&r.splice(f,1)};function l(){return window.performance&&performance.now&&performance.now()}function a(f,p){var C=null;return function(){C||(C=setTimeout(function(){f(),C=null},p))}}function u(f,p,C,T){typeof f.addEventListener=="function"?f.addEventListener(p,C,T):typeof f.attachEvent=="function"&&f.attachEvent("on"+p,C)}function d(f,p,C,T){typeof f.removeEventListener=="function"?f.removeEventListener(p,C,T):typeof f.detachEvent=="function"&&f.detachEvent("on"+p,C)}function x(f,p){var C=Math.max(f.top,p.top),T=Math.min(f.bottom,p.bottom),S=Math.max(f.left,p.left),A=Math.min(f.right,p.right),E=A-S,k=T-C;return E>=0&&k>=0&&{top:C,bottom:T,left:S,right:A,width:E,height:k}||null}function h(f){var p;try{p=f.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):g()}function g(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function b(f){return!f||"x"in f?f:{top:f.top,y:f.top,bottom:f.bottom,left:f.left,x:f.left,right:f.right,width:f.width,height:f.height}}function w(f,p){var C=p.top-f.top,T=p.left-f.left;return{top:C,left:T,height:p.height,width:p.width,bottom:C+p.height,right:T+p.width}}function m(f,p){for(var C=p;C;){if(C==f)return!0;C=y(C)}return!1}function y(f){var p=f.parentNode;return f.nodeType==9&&f!=t?e(f):(p&&p.assignedSlot&&(p=p.assignedSlot.parentNode),p&&p.nodeType==11&&p.host?p.host:p)}function v(f){return f&&f.nodeType===9}window.IntersectionObserver=i,window.IntersectionObserverEntry=c}()),Ko}au();function lu(e,t){var r={},n=r.callback,o=ll(r,["callback"]),c=_o(R.useState(),2),i=c[0],l=c[1],a=_o(R.useState(),2),u=a[0],d=a[1];return cl(function(){var x=Array.isArray(e)?e:[e],h=x.map(function(b){return Mo(b)}).filter(Boolean);if(h.length){var g=new IntersectionObserver(function(b){var w,m;try{for(var y=ul(b),v=y.next();!v.done;v=y.next()){var f=v.value;d(f.intersectionRatio),l(f.isIntersecting),n?.(f)}}catch(p){w={error:p}}finally{try{v&&!v.done&&(m=y.return)&&m.call(y)}finally{if(w)throw w.error}}},Lo(Lo({},o),{root:Mo(void 0)}));return h.forEach(function(b){return g.observe(b)}),function(){g.disconnect()}}},[void 0,void 0,n],e),[i,u]}const cu=cr(s.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"})),uu=cr(s.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"})),qr=cr([s.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"),s.jsx("circle",{cx:"6.5",cy:"6.5",r:"1.5"},"1")]),du=cr(s.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"})),fu=cr(s.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"})),As=e=>R.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},R.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"}),R.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375}),R.createElement("rect",{x:15.3125,y:14.0625,width:7.5,height:1.875,rx:.9375,transform:"rotate(-90 15.3125 14.0625)"})),Ds=e=>R.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},R.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"}),R.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"}),R.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"}),R.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"})),Os=e=>R.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},R.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"}),R.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375})),pu=e=>R.createElement("svg",{width:18,height:19,viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg",...e},R.createElement("g",{clipPath:"url(#clip0)"},R.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"})),R.createElement("defs",null,R.createElement("clipPath",{id:"clip0"},R.createElement("rect",{width:18,height:18,transform:"translate(0 0.5)"})))),_s=e=>R.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},R.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 Yr={},Gr,Yo;function mu(){return Yo||(Yo=1,Gr=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Gr}var Zr,Go;function hu(){if(Go)return Zr;Go=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(i,l){try{return[decodeURIComponent(i.join(""))]}catch{}if(i.length===1)return i;l=l||1;var a=i.slice(0,l),u=i.slice(l);return Array.prototype.concat.call([],n(a),n(u))}function o(i){try{return decodeURIComponent(i)}catch{for(var l=i.match(t)||[],a=1;a<l.length;a++)i=n(l,a).join(""),l=i.match(t)||[];return i}}function c(i){for(var l={"%FE%FF":"��","%FF%FE":"��"},a=r.exec(i);a;){try{l[a[0]]=decodeURIComponent(a[0])}catch{var u=o(a[0]);u!==a[0]&&(l[a[0]]=u)}a=r.exec(i)}l["%C2"]="�";for(var d=Object.keys(l),x=0;x<d.length;x++){var h=d[x];i=i.replace(new RegExp(h,"g"),l[h])}return i}return Zr=function(i){if(typeof i!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof i+"`");try{return i=i.replace(/\+/g," "),decodeURIComponent(i)}catch{return c(i)}},Zr}var Xr,Zo;function bu(){return Zo||(Zo=1,Xr=(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)]}),Xr}var Qr,Xo;function gu(){return Xo||(Xo=1,Qr=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),c=0;c<n.length;c++){var i=n[c],l=e[i];(o?t.indexOf(i)!==-1:t(i,l,e))&&(r[i]=l)}return r}),Qr}var Qo;function yu(){return Qo||(Qo=1,function(e){const t=mu(),r=hu(),n=bu(),o=gu(),c=y=>y==null;function i(y){switch(y.arrayFormat){case"index":return v=>(f,p)=>{const C=f.length;return p===void 0||y.skipNull&&p===null||y.skipEmptyString&&p===""?f:p===null?[...f,[u(v,y),"[",C,"]"].join("")]:[...f,[u(v,y),"[",u(C,y),"]=",u(p,y)].join("")]};case"bracket":return v=>(f,p)=>p===void 0||y.skipNull&&p===null||y.skipEmptyString&&p===""?f:p===null?[...f,[u(v,y),"[]"].join("")]:[...f,[u(v,y),"[]=",u(p,y)].join("")];case"comma":case"separator":return v=>(f,p)=>p==null||p.length===0?f:f.length===0?[[u(v,y),"=",u(p,y)].join("")]:[[f,u(p,y)].join(y.arrayFormatSeparator)];default:return v=>(f,p)=>p===void 0||y.skipNull&&p===null||y.skipEmptyString&&p===""?f:p===null?[...f,u(v,y)]:[...f,[u(v,y),"=",u(p,y)].join("")]}}function l(y){let v;switch(y.arrayFormat){case"index":return(f,p,C)=>{if(v=/\[(\d*)\]$/.exec(f),f=f.replace(/\[\d*\]$/,""),!v){C[f]=p;return}C[f]===void 0&&(C[f]={}),C[f][v[1]]=p};case"bracket":return(f,p,C)=>{if(v=/(\[\])$/.exec(f),f=f.replace(/\[\]$/,""),!v){C[f]=p;return}if(C[f]===void 0){C[f]=[p];return}C[f]=[].concat(C[f],p)};case"comma":case"separator":return(f,p,C)=>{const T=typeof p=="string"&&p.includes(y.arrayFormatSeparator),S=typeof p=="string"&&!T&&d(p,y).includes(y.arrayFormatSeparator);p=S?d(p,y):p;const A=T||S?p.split(y.arrayFormatSeparator).map(E=>d(E,y)):p===null?p:d(p,y);C[f]=A};default:return(f,p,C)=>{if(C[f]===void 0){C[f]=p;return}C[f]=[].concat(C[f],p)}}}function a(y){if(typeof y!="string"||y.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function u(y,v){return v.encode?v.strict?t(y):encodeURIComponent(y):y}function d(y,v){return v.decode?r(y):y}function x(y){return Array.isArray(y)?y.sort():typeof y=="object"?x(Object.keys(y)).sort((v,f)=>Number(v)-Number(f)).map(v=>y[v]):y}function h(y){const v=y.indexOf("#");return v!==-1&&(y=y.slice(0,v)),y}function g(y){let v="";const f=y.indexOf("#");return f!==-1&&(v=y.slice(f)),v}function b(y){y=h(y);const v=y.indexOf("?");return v===-1?"":y.slice(v+1)}function w(y,v){return v.parseNumbers&&!Number.isNaN(Number(y))&&typeof y=="string"&&y.trim()!==""?y=Number(y):v.parseBooleans&&y!==null&&(y.toLowerCase()==="true"||y.toLowerCase()==="false")&&(y=y.toLowerCase()==="true"),y}function m(y,v){v=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},v),a(v.arrayFormatSeparator);const f=l(v),p=Object.create(null);if(typeof y!="string"||(y=y.trim().replace(/^[?#&]/,""),!y))return p;for(const C of y.split("&")){if(C==="")continue;let[T,S]=n(v.decode?C.replace(/\+/g," "):C,"=");S=S===void 0?null:["comma","separator"].includes(v.arrayFormat)?S:d(S,v),f(d(T,v),S,p)}for(const C of Object.keys(p)){const T=p[C];if(typeof T=="object"&&T!==null)for(const S of Object.keys(T))T[S]=w(T[S],v);else p[C]=w(T,v)}return v.sort===!1?p:(v.sort===!0?Object.keys(p).sort():Object.keys(p).sort(v.sort)).reduce((C,T)=>{const S=p[T];return S&&typeof S=="object"&&!Array.isArray(S)?C[T]=x(S):C[T]=S,C},Object.create(null))}e.extract=b,e.parse=m,e.stringify=(y,v)=>{if(!y)return"";v=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},v),a(v.arrayFormatSeparator);const f=S=>v.skipNull&&c(y[S])||v.skipEmptyString&&y[S]==="",p=i(v),C={};for(const S of Object.keys(y))f(S)||(C[S]=y[S]);const T=Object.keys(C);return v.sort!==!1&&T.sort(v.sort),T.map(S=>{const A=y[S];return A===void 0?"":A===null?u(S,v):Array.isArray(A)?A.reduce(p(S),[]).join("&"):u(S,v)+"="+u(A,v)}).filter(S=>S.length>0).join("&")},e.parseUrl=(y,v)=>{v=Object.assign({decode:!0},v);const[f,p]=n(y,"#");return Object.assign({url:f.split("?")[0]||"",query:m(b(y),v)},v&&v.parseFragmentIdentifier&&p?{fragmentIdentifier:d(p,v)}:{})},e.stringifyUrl=(y,v)=>{v=Object.assign({encode:!0,strict:!0},v);const f=h(y.url).split("?")[0]||"",p=e.extract(y.url),C=e.parse(p,{sort:!1}),T=Object.assign(C,y.query);let S=e.stringify(T,v);S&&(S=`?${S}`);let A=g(y.url);return y.fragmentIdentifier&&(A=`#${u(y.fragmentIdentifier,v)}`),`${f}${S}${A}`},e.pick=(y,v,f)=>{f=Object.assign({parseFragmentIdentifier:!0},f);const{url:p,query:C,fragmentIdentifier:T}=e.parseUrl(y,f);return e.stringifyUrl({url:p,query:o(C,v),fragmentIdentifier:T},f)},e.exclude=(y,v,f)=>{const p=Array.isArray(v)?C=>!v.includes(C):(C,T)=>!v(C,T);return e.pick(y,p,f)}}(Yr)),Yr}var Jr=yu();const Zt=dl,vu={parseNumbers:!1,parseBooleans:!1},xu={skipNull:!1,skipEmptyString:!1},wu=(e,t)=>{var r,n;const{navigateMode:o="push",parseOptions:c,stringifyOptions:i}={},l=Object.assign(Object.assign({},vu),c),a=Object.assign(Object.assign({},xu),i),u=Zt.useLocation(),d=(r=Zt.useHistory)===null||r===void 0?void 0:r.call(Zt),x=(n=Zt.useNavigate)===null||n===void 0?void 0:n.call(Zt),h=fl(),g=R.useRef(typeof e=="function"?e():e||{}),b=R.useMemo(()=>Jr.parse(u.search,l),[u.search]),w=R.useMemo(()=>Object.assign(Object.assign({},g.current),b),[b]);return[w,mt(y=>{const v=typeof y=="function"?y(w):y;h(),d&&d[o]({hash:u.hash,search:Jr.stringify(Object.assign(Object.assign({},b),v),a)||"?"},u.state),x&&x({hash:u.hash,search:Jr.stringify(Object.assign(Object.assign({},b),v),a)||"?"},{replace:o==="replace",state:u.state})})]};var tr={exports:{}},Cu=tr.exports,Jo;function ju(){return Jo||(Jo=1,function(e,t){(function(r,n){var o="1.0.40",c="",i="?",l="function",a="undefined",u="object",d="string",x="major",h="model",g="name",b="type",w="vendor",m="version",y="architecture",v="console",f="mobile",p="tablet",C="smarttv",T="wearable",S="embedded",A=500,E="Amazon",k="Apple",B="ASUS",q="BlackBerry",H="Browser",se="Chrome",oe="Edge",ge="Firefox",Se="Google",Y="Huawei",O="LG",F="Microsoft",X="Motorola",G="Opera",J="Samsung",_="Sharp",I="Sony",M="Xiaomi",W="Zebra",L="Facebook",U="Chromium OS",Q="Mac OS",le=" Browser",be=function(N,z){var V={};for(var ee in N)z[ee]&&z[ee].length%2===0?V[ee]=z[ee].concat(N[ee]):V[ee]=N[ee];return V},we=function(N){for(var z={},V=0;V<N.length;V++)z[N[V].toUpperCase()]=N[V];return z},ke=function(N,z){return typeof N===d?Ae(z).indexOf(Ae(N))!==-1:!1},Ae=function(N){return N.toLowerCase()},Ne=function(N){return typeof N===d?N.replace(/[^\d\.]/g,c).split(".")[0]:n},ye=function(N,z){if(typeof N===d)return N=N.replace(/^\s\s*/,c),typeof z===a?N:N.substring(0,A)},Te=function(N,z){for(var V=0,ee,ae,fe,ne,re,Ee;V<z.length&&!re;){var Ye=z[V],Z=z[V+1];for(ee=ae=0;ee<Ye.length&&!re&&Ye[ee];)if(re=Ye[ee++].exec(N),re)for(fe=0;fe<Z.length;fe++)Ee=re[++ae],ne=Z[fe],typeof ne===u&&ne.length>0?ne.length===2?typeof ne[1]==l?this[ne[0]]=ne[1].call(this,Ee):this[ne[0]]=ne[1]:ne.length===3?typeof ne[1]===l&&!(ne[1].exec&&ne[1].test)?this[ne[0]]=Ee?ne[1].call(this,Ee,ne[2]):n:this[ne[0]]=Ee?Ee.replace(ne[1],ne[2]):n:ne.length===4&&(this[ne[0]]=Ee?ne[3].call(this,Ee.replace(ne[1],ne[2])):n):this[ne]=Ee||n;V+=2}},ue=function(N,z){for(var V in z)if(typeof z[V]===u&&z[V].length>0){for(var ee=0;ee<z[V].length;ee++)if(ke(z[V][ee],N))return V===i?n:V}else if(ke(z[V],N))return V===i?n:V;return z.hasOwnProperty("*")?z["*"]:N},ce={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},te={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Ce={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[g,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[g,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[g,m],[/opios[\/ ]+([\w\.]+)/i],[m,[g,G+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[g,G+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[g,G]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[g,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[m,[g,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[g,m],[/quark(?:pc)?\/([-\w\.]+)/i],[m,[g,"Quark"]],[/\bddg\/([\w\.]+)/i],[m,[g,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[g,"UC"+H]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[g,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[g,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[g,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[g,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[g,"Smart Lenovo "+H]],[/(avast|avg)\/([\w\.]+)/i],[[g,/(.+)/,"$1 Secure "+H],m],[/\bfocus\/([\w\.]+)/i],[m,[g,ge+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[g,G+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[g,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[g,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[g,G+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[g,"MIUI"+le]],[/fxios\/([\w\.-]+)/i],[m,[g,ge]],[/\bqihoobrowser\/?([\w\.]*)/i],[m,[g,"360"]],[/\b(qq)\/([\w\.]+)/i],[[g,/(.+)/,"$1Browser"],m],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[g,/(.+)/,"$1"+le],m],[/samsungbrowser\/([\w\.]+)/i],[m,[g,J+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[m,[g,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[g,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[g,m],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[g],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[m,g],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[g,L],m],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[g,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[g,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[g,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[g,se+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[g,se+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[g,"Android "+H]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[g,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[g,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,g],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[g,[m,ue,ce]],[/(webkit|khtml)\/([\w\.]+)/i],[g,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[g,"Netscape"],m],[/(wolvic|librewolf)\/([\w\.]+)/i],[g,m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[g,ge+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[g,[m,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[g,[m,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[y,"amd64"]],[/(ia32(?=;))/i],[[y,Ae]],[/((?:i[346]|x)86)[;\)]/i],[[y,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[y,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[y,"armhf"]],[/windows (ce|mobile); ppc;/i],[[y,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[y,/ower/,c,Ae]],[/(sun4\w)[;\)]/i],[[y,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[y,Ae]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[h,[w,J],[b,p]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[h,[w,J],[b,f]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[h,[w,k],[b,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[h,[w,k],[b,p]],[/(macintosh);/i],[h,[w,k]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[h,[w,_],[b,f]],[/(?:honor)([-\w ]+)[;\)]/i],[h,[w,"Honor"],[b,f]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[h,[w,Y],[b,p]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[h,[w,Y],[b,f]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[h,/_/g," "],[w,M],[b,f]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[h,/_/g," "],[w,M],[b,p]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[h,[w,"OPPO"],[b,f]],[/\b(opd2\d{3}a?) bui/i],[h,[w,"OPPO"],[b,p]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[h,[w,"Vivo"],[b,f]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[h,[w,"Realme"],[b,f]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[h,[w,X],[b,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[h,[w,X],[b,p]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[h,[w,O],[b,p]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[h,[w,O],[b,f]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[h,[w,"Lenovo"],[b,p]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[h,/_/g," "],[w,"Nokia"],[b,f]],[/(pixel c)\b/i],[h,[w,Se],[b,p]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[h,[w,Se],[b,f]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[h,[w,I],[b,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[h,"Xperia Tablet"],[w,I],[b,p]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[h,[w,"OnePlus"],[b,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[h,[w,E],[b,p]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[h,/(.+)/g,"Fire Phone $1"],[w,E],[b,f]],[/(playbook);[-\w\),; ]+(rim)/i],[h,w,[b,p]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[h,[w,q],[b,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[h,[w,B],[b,p]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[h,[w,B],[b,f]],[/(nexus 9)/i],[h,[w,"HTC"],[b,p]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[w,[h,/_/g," "],[b,f]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[h,[w,"TCL"],[b,p]],[/(itel) ((\w+))/i],[[w,Ae],h,[b,ue,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[h,[w,"Acer"],[b,p]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[h,[w,"Meizu"],[b,f]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[h,[w,"Ulefone"],[b,f]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[h,[w,"Energizer"],[b,f]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[h,[w,"Cat"],[b,f]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[h,[w,"Smartfren"],[b,f]],[/droid.+; (a(?:015|06[35]|142p?))/i],[h,[w,"Nothing"],[b,f]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[w,h,[b,f]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[w,h,[b,p]],[/(surface duo)/i],[h,[w,F],[b,p]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[h,[w,"Fairphone"],[b,f]],[/(u304aa)/i],[h,[w,"AT&T"],[b,f]],[/\bsie-(\w*)/i],[h,[w,"Siemens"],[b,f]],[/\b(rct\w+) b/i],[h,[w,"RCA"],[b,p]],[/\b(venue[\d ]{2,7}) b/i],[h,[w,"Dell"],[b,p]],[/\b(q(?:mv|ta)\w+) b/i],[h,[w,"Verizon"],[b,p]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[h,[w,"Barnes & Noble"],[b,p]],[/\b(tm\d{3}\w+) b/i],[h,[w,"NuVision"],[b,p]],[/\b(k88) b/i],[h,[w,"ZTE"],[b,p]],[/\b(nx\d{3}j) b/i],[h,[w,"ZTE"],[b,f]],[/\b(gen\d{3}) b.+49h/i],[h,[w,"Swiss"],[b,f]],[/\b(zur\d{3}) b/i],[h,[w,"Swiss"],[b,p]],[/\b((zeki)?tb.*\b) b/i],[h,[w,"Zeki"],[b,p]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[w,"Dragon Touch"],h,[b,p]],[/\b(ns-?\w{0,9}) b/i],[h,[w,"Insignia"],[b,p]],[/\b((nxa|next)-?\w{0,9}) b/i],[h,[w,"NextBook"],[b,p]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[w,"Voice"],h,[b,f]],[/\b(lvtel\-)?(v1[12]) b/i],[[w,"LvTel"],h,[b,f]],[/\b(ph-1) /i],[h,[w,"Essential"],[b,f]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[h,[w,"Envizen"],[b,p]],[/\b(trio[-\w\. ]+) b/i],[h,[w,"MachSpeed"],[b,p]],[/\btu_(1491) b/i],[h,[w,"Rotor"],[b,p]],[/(shield[\w ]+) b/i],[h,[w,"Nvidia"],[b,p]],[/(sprint) (\w+)/i],[w,h,[b,f]],[/(kin\.[onetw]{3})/i],[[h,/\./g," "],[w,F],[b,f]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[h,[w,W],[b,p]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[h,[w,W],[b,f]],[/smart-tv.+(samsung)/i],[w,[b,C]],[/hbbtv.+maple;(\d+)/i],[[h,/^/,"SmartTV"],[w,J],[b,C]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[w,O],[b,C]],[/(apple) ?tv/i],[w,[h,k+" TV"],[b,C]],[/crkey/i],[[h,se+"cast"],[w,Se],[b,C]],[/droid.+aft(\w+)( bui|\))/i],[h,[w,E],[b,C]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[h,[w,_],[b,C]],[/(bravia[\w ]+)( bui|\))/i],[h,[w,I],[b,C]],[/(mitv-\w{5}) bui/i],[h,[w,M],[b,C]],[/Hbbtv.*(technisat) (.*);/i],[w,h,[b,C]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[w,ye],[h,ye],[b,C]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[b,C]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[w,h,[b,v]],[/droid.+; (shield) bui/i],[h,[w,"Nvidia"],[b,v]],[/(playstation [345portablevi]+)/i],[h,[w,I],[b,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[h,[w,F],[b,v]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[h,[w,J],[b,T]],[/((pebble))app/i],[w,h,[b,T]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[h,[w,k],[b,T]],[/droid.+; (glass) \d/i],[h,[w,Se],[b,T]],[/droid.+; (wt63?0{2,3})\)/i],[h,[w,W],[b,T]],[/droid.+; (glass) \d/i],[h,[w,Se],[b,T]],[/(pico) (4|neo3(?: link|pro)?)/i],[w,h,[b,T]],[/; (quest( \d| pro)?)/i],[h,[w,L],[b,T]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[w,[b,S]],[/(aeobc)\b/i],[h,[w,E],[b,S]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[h,[b,f]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[h,[b,p]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[b,p]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[b,f]],[/(android[-\w\. ]{0,9});.+buil/i],[h,[w,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[g,oe+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[g,m],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[g,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[g,m],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,g]],os:[[/microsoft (windows) (vista|xp)/i],[g,m],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[g,[m,ue,te]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,ue,te],[g,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[g,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[g,Q],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,g],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[g,m],[/\(bb(10);/i],[m,[g,q]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[m,[g,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[g,ge+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[g,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[g,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[g,se+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[g,U],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[g,m],[/(sunos) ?([\w\.\d]*)/i],[[g,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[g,m]]},je=function(N,z){if(typeof N===u&&(z=N,N=n),!(this instanceof je))return new je(N,z).getResult();var V=typeof r!==a&&r.navigator?r.navigator:n,ee=N||(V&&V.userAgent?V.userAgent:c),ae=V&&V.userAgentData?V.userAgentData:n,fe=z?be(Ce,z):Ce,ne=V&&V.userAgent==ee;return this.getBrowser=function(){var re={};return re[g]=n,re[m]=n,Te.call(re,ee,fe.browser),re[x]=Ne(re[m]),ne&&V&&V.brave&&typeof V.brave.isBrave==l&&(re[g]="Brave"),re},this.getCPU=function(){var re={};return re[y]=n,Te.call(re,ee,fe.cpu),re},this.getDevice=function(){var re={};return re[w]=n,re[h]=n,re[b]=n,Te.call(re,ee,fe.device),ne&&!re[b]&&ae&&ae.mobile&&(re[b]=f),ne&&re[h]=="Macintosh"&&V&&typeof V.standalone!==a&&V.maxTouchPoints&&V.maxTouchPoints>2&&(re[h]="iPad",re[b]=p),re},this.getEngine=function(){var re={};return re[g]=n,re[m]=n,Te.call(re,ee,fe.engine),re},this.getOS=function(){var re={};return re[g]=n,re[m]=n,Te.call(re,ee,fe.os),ne&&!re[g]&&ae&&ae.platform&&ae.platform!="Unknown"&&(re[g]=ae.platform.replace(/chrome os/i,U).replace(/macos/i,Q)),re},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return ee},this.setUA=function(re){return ee=typeof re===d&&re.length>A?ye(re,A):re,this},this.setUA(ee),this};je.VERSION=o,je.BROWSER=we([g,m,x]),je.CPU=we([y]),je.DEVICE=we([h,w,b,v,f,C,p,T,S]),je.ENGINE=je.OS=we([g,m]),e.exports&&(t=e.exports=je),t.UAParser=je;var P=typeof r!==a&&(r.jQuery||r.Zepto);if(P&&!P.ua){var D=new je;P.ua=D.getResult(),P.ua.get=function(){return D.getUA()},P.ua.set=function(N){D.setUA(N);var z=D.getResult();for(var V in z)P.ua[V]=z[V]}}})(typeof window=="object"?window:Cu)}(tr,tr.exports)),tr.exports}var Su=ju();const en=es(Su);function Tu({user:e,sessionUser:t}){const r=ht(()=>(e?.passports||[])?.find(n=>n.name===t.role),[e?.passports,t?.role]);return s.jsxs($,{sx:{display:"flex",alignItems:"center",gap:1},children:[s.jsx(ts,{size:40,variant:"circle",shape:"circle",src:t.avatar,did:t.did,sx:{flexShrink:0}}),s.jsxs($,{sx:{flex:1,overflow:"hidden"},children:[s.jsxs($,{sx:{display:"flex",alignItems:"center",gap:1},children:[s.jsx(gt,{title:t.fullName,children:s.jsx(Re,{sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1},children:t.fullName})}),s.jsx(rs,{label:r?.title||r?.name||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:"text.primary",borderColor:"grey.300",backgroundColor:"transparent",textTransform:"capitalize",pr:.5,pl:0,height:"auto"}})]}),s.jsx(gt,{title:t.email,children:s.jsx(Re,{variant:"body2",color:"grey",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.email})})]})]})}const Eu={zh:{confirm:"确认",cancel:"取消",visitorId:"设备标识",deviceType:"设备类型",platform:"操作系统",walletOS:"钱包类型",role:"角色",fullname:"姓名",email:"邮箱",avatar:"头像",user:"用户",createdAt:"首次活动时间",updatedAt:"最近活动时间",lastLoginIp:"最近活动地址",actions:"操作",logoutAll:"注销所有{type}会话",logoutAllTips:"不会注销当前会话",logout:"注销",currentSession:"当前会话",unknown:"未知",expired:"已过期",remove:"删除",logoutThisSession:"注销指定会话",logoutThisSessionConfirm:"确定要注销此会话吗?",logoutAllSession:"注销所有{type}会话",logoutAllSessionConfirm:"确定要注销所有{type}会话吗?",online:"活跃"},en:{confirm:"Confirm",cancel:"Cancel",visitorId:"Device ID",deviceType:"Device Type",platform:"Platform",walletOS:"Wallet OS",role:"Role",fullname:"Fullname",email:"Email",avatar:"Avatar",user:"User",createdAt:"First Active Time",updatedAt:"Last Active Time",actions:"Actions",lastLoginIp:"Last Login IP",logoutAll:"Logout all {type} sessions",logoutAllTips:"Will not logout current session",logout:"Logout",currentSession:"Current Session",unknown:"Unknown",expired:"Expired",remove:"Remove",logoutThisSession:"Logout this session",logoutThisSessionConfirm:"Are you sure to logout this session?",logoutAllSession:"Logout all {type} sessions",logoutAllSessionConfirm:"Are you sure to logout all {type} sessions?",online:"Active"}},Ms="Reserved IP",ei="ip-region-cache";async function ku(e){const t=`https://ipapi.co/${e}/json/`,r=await(await fetch(t)).json();let n="";return r.error?r.reserved&&(n=Ms):n=[r.country_name,r.region,r.city].filter(Boolean).join("/"),n}async function Pu(e){const t=`https://api.ip.sb/geoip/${e}`,r=await(await fetch(t)).json();let n="";return r.error?r.reserved&&(n=Ms):n=[r.country,r.region,r.city].filter(Boolean).join("/"),n}async function Iu(e){let t="",r={};try{const n=localStorage.getItem(ei);n&&(r=JSON.parse(n))}catch{r={}}if(r[e])t=r[e];else{try{t=await Pu(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!t)try{t=await ku(e)}catch{console.warn("Fail to get ip region from ip-api.co")}}if(t){const n=Object.keys(r);n.length>100&&delete r[n[0]],r[e]&&delete r[e],r[e]=t,localStorage.setItem(ei,JSON.stringify(r))}return t}const ti=e=>new en(e,{browser:[[/(ArcWallet)\/([\w\.]+)/i],[en.BROWSER.NAME,en.BROWSER.VERSION]]}).getResult(),ri={display:"flex",justifyContent:"flex-end",textAlign:"right"},Ru=new hl({concurrency:1}),Au=R.memo(({userSession:e,isMobile:t=!1})=>{const r=yt({loading:!0,ipRegion:""}),{t:n}=Ie();return R.useEffect(()=>{Ru.add(async()=>{try{r.ipRegion=await Iu(e.lastLoginIp)}finally{r.loading=!1}})},[r,e.lastLoginIp]),s.jsx($,{...t&&{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:1,flexWrap:"wrap"},children:r.ipRegion?s.jsxs(s.Fragment,{children:[s.jsx(Re,{variant:"body2",children:r.ipRegion}),s.jsx(Re,{variant:"body2",color:"grey",children:e.lastLoginIp||n("unknown")})]}):s.jsxs(s.Fragment,{children:[s.jsx(Re,{children:e.lastLoginIp||n("unknown")}),r.loading?s.jsx(Re,{variant:"body2",color:"grey",sx:{textAlign:"center"},children:s.jsx(vt,{size:12,color:"inherit"})}):null]})})});function Du({user:e,showAction:t=!0,showUser:r=!0,getUserSessions:n,showOffline:o=!1,showAppPid:c=!1}){const i=yt({status:"online",page:1,pageSize:10}),l=yt({online:0,expired:0,offline:0}),a=pl(),{locale:u}=Ie(),d=bc({key:"md"}),x=to(E=>E.breakpoints.down("lg")),{confirmApi:h,confirmHolder:g}=ro(),b=mt((E,k={})=>ml(Eu,E,u,"en",k)),w=mt(async()=>{const E=await n({page:i.page,pageSize:i.pageSize,status:i.status}),k=E?.paging?.total||0;return l[i.status]=k,{total:k,list:E?.list||[]}});ns(async()=>{const E=await n({page:1,pageSize:1,status:"expired"});l.expired=E?.paging?.total||0;const k=await n({page:1,pageSize:1,status:"offline"});l.offline=k?.paging?.total||0});const m=os(w,{refreshDeps:[i.status,i.page,i.pageSize]}),y=ht(()=>m.data?.list||[],[m.data?.list]),v=ht(()=>{const E=i.status;return E==="online"?l[E]<=1:l[E]===0},[y,a]),f=ht(()=>jr({},d?ri:{}),[d]),p=mt(({visitorId:E})=>{h.open({title:b("logoutThisSession"),content:b("logoutThisSessionConfirm"),confirmButtonText:b("confirm"),confirmButtonProps:{color:"error"},cancelButtonText:b("cancel"),onConfirm:async()=>{await No.user.logout({visitorId:E,includeFederated:!0});const{page:k=0}=i,{list:B=[]}=m.data||{},q=B.length||0;k>1&&q===1&&(i.page=Math.max(k-1,1)),m.refresh(),h.close()}})}),C=mt(()=>{h.open({title:b("logoutAllSession",{type:b(i.status)}),content:b("logoutAllSessionConfirm",{type:b(i.status)}),confirmButtonText:b("confirm"),confirmButtonProps:{color:"error"},cancelButtonText:b("cancel"),onConfirm:async()=>{await No.user.logout({status:i.status,visitorId:a,includeFederated:!0}),i.page=1,m.refresh(),h.close()}})}),T=[];t&&T.push(s.jsx(gt,{title:b("logoutAllTips",{type:b(i.status)}),children:s.jsx(qe,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:C,disabled:v,children:b("logoutAll",{type:b(i.status)})})},"logoutAll"));const S=ht(()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600,page:i.page-1,rowsPerPage:i.pageSize,count:m.data?.total||0}),[m.data?.total,i.page,i.pageSize]),A=[{label:b("platform"),name:"platform",options:{customBodyRenderLite:E=>{const k=y[E],B=ti(k?.ua);return s.jsx($,{sx:f,children:[B.os?.name,B.os?.version].filter(Boolean).join("/")||b("unknown")})}}},{label:b("deviceType"),name:"deviceType",options:{customBodyRenderLite:E=>{const k=y[E],B=ti(k?.ua);return s.jsx($,{sx:f,children:[B.browser?.name,B.browser?.version].filter(Boolean).join("/")||b("unknown")})}}},{label:b("walletOS"),name:"walletOS",options:{customBodyRenderLite:E=>{const k=y[E];return s.jsx($,{sx:f,children:k.extra?.walletOS||b("unknown")})}}},c&&{label:"App Pid",name:"appPid",options:{customBodyRenderLite:E=>{const k=y[E];return k.appPid?s.jsx(is,{size:14,responsive:!1,compact:!0,did:k.appPid}):null}}},r&&{label:b("user"),name:"user",options:{customBodyRenderLite:E=>{const k=y[E];return s.jsx($,{sx:jr({minWidth:150,maxWidth:250},d?ri:{}),children:s.jsx(Tu,{sessionUser:k.user,user:e})})}}},{label:b("createdAt"),name:"createdAt",options:{customBodyRenderLite:E=>{const k=y[E];return s.jsx($,{sx:f,children:k.createdAt?s.jsx(or,{value:k.createdAt,relativeRange:3*86400*1e3,locale:u}):b("unknown")})}}},!o&&{label:b("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:E=>{const k=y[E];return s.jsx($,{sx:f,children:k.status==="expired"?b("expired"):s.jsx(or,{value:k.updatedAt,relativeRange:3*86400*1e3,locale:u})})}}},{label:b("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:E=>{const k=y[E];return s.jsx(Au,{userSession:k,isMobile:d})}}},t&&{label:b("actions"),name:"actions",options:{customBodyRenderLite:E=>{const k=y[E];return s.jsx($,{sx:f,children:s.jsx(qe,{sx:{whiteSpace:"nowrap",fontSize:"12px !important",lineHeight:"1.25",px:1},disabled:a===k.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>p({visitorId:k.visitorId}),children:k.status==="expired"?b("remove"):a===k.visitorId?b("currentSession"):b("logout")})})}}}].filter(Boolean);return s.jsxs($,{className:"pc-user-sessions",sx:{maxWidth:d?"unset":x?"calc(100vw - 300px)":"100%",...d&&{".pc-user-sessions-table > div:nth-child(2)":{border:"1px solid",borderColor:"divider",borderRadius:1}},".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"},".MuiTableRow-root":{border:"unset","&:nth-child(even)":{backgroundColor:"grey.50","&:hover":{backgroundColor:E=>`${E.palette.grey[50]} !important`}}},".MuiTableRow-hover":{"&:hover":{backgroundColor:"inherit !important"}},".MuiTableCell-root":{paddingRight:"8px",paddingLeft:"8px",color:"text.secondary",...d&&{padding:"8px !important","&:first-child":{paddingTop:"20px!important"},"&:last-child":{paddingBottom:"20px!important"}}}},children:[g,s.jsx(uo,{count:m.data?.total||0,locale:u,data:y,columns:A,customButtons:T,options:S,loading:m.loading,className:"pc-user-sessions-table",title:s.jsxs(xs,{row:!0,sx:{lineHeight:1,ml:1},onChange:E=>{i.status=E.target.value},children:[s.jsx(Lt,{value:"online",control:s.jsx(Cr,{size:"small",sx:{lineHeight:1,fontSize:0},checked:i.status==="online"}),label:s.jsxs(Re,{sx:{display:"flex",alignItems:"center"},children:[b("online"),s.jsxs(Re,{component:"span",sx:{ml:.5,color:"text.secondary"},children:["(",l.online,")"]})]})}),s.jsx(Lt,{value:"expired",control:s.jsx(Cr,{size:"small",sx:{lineHeight:1,fontSize:0},checked:i.status==="expired"}),label:s.jsxs(Re,{sx:{display:"flex",alignItems:"center"},children:[b("expired"),s.jsxs(Re,{component:"span",sx:{ml:.5,color:"text.secondary"},children:["(",l.expired,")"]})]})}),o?s.jsx(Lt,{value:"offline",control:s.jsx(Cr,{size:"small",sx:{lineHeight:1,fontSize:0},checked:i.status==="offline"}),label:s.jsxs(Re,{sx:{display:"flex",alignItems:"center"},children:[b("offline"),s.jsxs(Re,{component:"span",sx:{ml:.5,color:"text.secondary"},children:["(",l.offline,")"]})]})}):null]}),onChange:E=>{i.page=E.page+1,i.pageSize=E.rowsPerPage}})]})}var tn={exports:{}},rn={},ni;function Ls(){if(ni)return rn;ni=1;function e(v){"@babel/helpers - typeof";return e=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},e(v)}function t(v,f,p){return Object.defineProperty(v,"prototype",{writable:!1}),v}function r(v,f){if(!(v instanceof f))throw new TypeError("Cannot call a class as a function")}function n(v,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(f&&f.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),f&&o(v,f)}function o(v,f){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,T){return C.__proto__=T,C},o(v,f)}function c(v){var f=a();return function(){var C=u(v),T;if(f){var S=u(this).constructor;T=Reflect.construct(C,arguments,S)}else T=C.apply(this,arguments);return i(this,T)}}function i(v,f){if(f&&(e(f)==="object"||typeof f=="function"))return f;if(f!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l(v)}function l(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function a(){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(v){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},u(v)}var d={},x,h;function g(v,f,p){p||(p=Error);function C(S,A,E){return typeof f=="string"?f:f(S,A,E)}var T=function(S){n(E,S);var A=c(E);function E(k,B,q){var H;return r(this,E),H=A.call(this,C(k,B,q)),H.code=v,H}return t(E)}(p);d[v]=T}function b(v,f){if(Array.isArray(v)){var p=v.length;return v=v.map(function(C){return String(C)}),p>2?"one of ".concat(f," ").concat(v.slice(0,p-1).join(", "),", or ")+v[p-1]:p===2?"one of ".concat(f," ").concat(v[0]," or ").concat(v[1]):"of ".concat(f," ").concat(v[0])}else return"of ".concat(f," ").concat(String(v))}function w(v,f,p){return v.substr(0,f.length)===f}function m(v,f,p){return(p===void 0||p>v.length)&&(p=v.length),v.substring(p-f.length,p)===f}function y(v,f,p){return typeof p!="number"&&(p=0),p+f.length>v.length?!1:v.indexOf(f,p)!==-1}return g("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),g("ERR_INVALID_ARG_TYPE",function(v,f,p){x===void 0&&(x=Kn()),x(typeof v=="string","'name' must be a string");var C;typeof f=="string"&&w(f,"not ")?(C="must not be",f=f.replace(/^not /,"")):C="must be";var T;if(m(v," argument"))T="The ".concat(v," ").concat(C," ").concat(b(f,"type"));else{var S=y(v,".")?"property":"argument";T='The "'.concat(v,'" ').concat(S," ").concat(C," ").concat(b(f,"type"))}return T+=". Received type ".concat(e(p)),T},TypeError),g("ERR_INVALID_ARG_VALUE",function(v,f){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";h===void 0&&(h=ir());var C=h.inspect(f);return C.length>128&&(C="".concat(C.slice(0,128),"...")),"The argument '".concat(v,"' ").concat(p,". Received ").concat(C)},TypeError),g("ERR_INVALID_RETURN_VALUE",function(v,f,p){var C;return p&&p.constructor&&p.constructor.name?C="instance of ".concat(p.constructor.name):C="type ".concat(e(p)),"Expected ".concat(v,' to be returned from the "').concat(f,'"')+" function but got ".concat(C,".")},TypeError),g("ERR_MISSING_ARGS",function(){for(var v=arguments.length,f=new Array(v),p=0;p<v;p++)f[p]=arguments[p];x===void 0&&(x=Kn()),x(f.length>0,"At least one arg needs to be specified");var C="The ",T=f.length;switch(f=f.map(function(S){return'"'.concat(S,'"')}),T){case 1:C+="".concat(f[0]," argument");break;case 2:C+="".concat(f[0]," and ").concat(f[1]," arguments");break;default:C+=f.slice(0,T-1).join(", "),C+=", and ".concat(f[T-1]," arguments");break}return"".concat(C," must be specified")},TypeError),rn.codes=d,rn}var nn,oi;function Ou(){if(oi)return nn;oi=1;function e(O,F){var X=Object.keys(O);if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(O);F&&(G=G.filter(function(J){return Object.getOwnPropertyDescriptor(O,J).enumerable})),X.push.apply(X,G)}return X}function t(O){for(var F=1;F<arguments.length;F++){var X=arguments[F]!=null?arguments[F]:{};F%2?e(Object(X),!0).forEach(function(G){r(O,G,X[G])}):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(X)):e(Object(X)).forEach(function(G){Object.defineProperty(O,G,Object.getOwnPropertyDescriptor(X,G))})}return O}function r(O,F,X){return F=i(F),F in O?Object.defineProperty(O,F,{value:X,enumerable:!0,configurable:!0,writable:!0}):O[F]=X,O}function n(O,F){if(!(O instanceof F))throw new TypeError("Cannot call a class as a function")}function o(O,F){for(var X=0;X<F.length;X++){var G=F[X];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(O,i(G.key),G)}}function c(O,F,X){return F&&o(O.prototype,F),Object.defineProperty(O,"prototype",{writable:!1}),O}function i(O){var F=l(O,"string");return v(F)==="symbol"?F:String(F)}function l(O,F){if(v(O)!=="object"||O===null)return O;var X=O[Symbol.toPrimitive];if(X!==void 0){var G=X.call(O,F);if(v(G)!=="object")return G;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(O)}function a(O,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(F&&F.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),Object.defineProperty(O,"prototype",{writable:!1}),F&&m(O,F)}function u(O){var F=b();return function(){var G=y(O),J;if(F){var _=y(this).constructor;J=Reflect.construct(G,arguments,_)}else J=G.apply(this,arguments);return d(this,J)}}function d(O,F){if(F&&(v(F)==="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x(O)}function x(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}function h(O){var F=typeof Map=="function"?new Map:void 0;return h=function(G){if(G===null||!w(G))return G;if(typeof G!="function")throw new TypeError("Super expression must either be null or a function");if(typeof F<"u"){if(F.has(G))return F.get(G);F.set(G,J)}function J(){return g(G,arguments,y(this).constructor)}return J.prototype=Object.create(G.prototype,{constructor:{value:J,enumerable:!1,writable:!0,configurable:!0}}),m(J,G)},h(O)}function g(O,F,X){return b()?g=Reflect.construct.bind():g=function(J,_,I){var M=[null];M.push.apply(M,_);var W=Function.bind.apply(J,M),L=new W;return I&&m(L,I.prototype),L},g.apply(null,arguments)}function b(){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 w(O){return Function.toString.call(O).indexOf("[native code]")!==-1}function m(O,F){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(G,J){return G.__proto__=J,G},m(O,F)}function y(O){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(X){return X.__proto__||Object.getPrototypeOf(X)},y(O)}function v(O){"@babel/helpers - typeof";return v=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},v(O)}var f=ir(),p=f.inspect,C=Ls(),T=C.codes.ERR_INVALID_ARG_TYPE;function S(O,F,X){return(X===void 0||X>O.length)&&(X=O.length),O.substring(X-F.length,X)===F}function A(O,F){if(F=Math.floor(F),O.length==0||F==0)return"";var X=O.length*F;for(F=Math.floor(Math.log(F)/Math.log(2));F;)O+=O,F--;return O+=O.substring(0,X-O.length),O}var E="",k="",B="",q="",H={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:"},se=10;function oe(O){var F=Object.keys(O),X=Object.create(Object.getPrototypeOf(O));return F.forEach(function(G){X[G]=O[G]}),Object.defineProperty(X,"message",{value:O.message}),X}function ge(O){return p(O,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Se(O,F,X){var G="",J="",_=0,I="",M=!1,W=ge(O),L=W.split(`
|
|
1
|
+
import{r as R,fJ as ll,c1 as _o,fK as cl,ft as Mo,fL as ul,cS as Lo,aF as cr,j as s,fM as dl,fN as fl,cs as mt,bd as es,bz as ht,M as $,as as ts,ay as gt,T as Re,eO as rs,aP as yt,fO as pl,n as Ie,F as to,fP as ro,fQ as ml,cW as ns,cr as os,bk as jr,dI as qe,dG as is,O as or,aU as Lt,fR as hl,C as vt,fS as ir,ez as Je,fT as ss,fU as bl,fV as gl,fW as yl,fX as vl,fY as xl,fZ as as,f_ as wl,f$ as no,g0 as Cl,g1 as jl,g2 as Sl,g3 as Tl,eA as oo,g4 as ls,eB as El,cF as Un,eC as kl,dE as Pl,g5 as Il,g6 as Rl,bn as Fe,g7 as cs,H as Me,X as Ue,o as j,f as io,f5 as us,q as xt,bU as Al,dL as Dl,bv as Ol,au as ct,g8 as ds,S as Sr,g9 as fs,a_ as _l,$ as st,v as at,b1 as Ml,fd as Ll,ga as Nl,gb as Bl,gc as Fl,D as Mr,bg as so,a3 as rr,gd as ql,V as St,bX as $t,bY as Vt,cg as ps,dO as tt,e_ as pe,b_ as Ul,b8 as _e,dc as Tr,d6 as ms,b$ as ut,c0 as It,R as kt,dK as hs,d9 as $l,ge as Lr,gf as bs,bf as $e,P as sr,bp as Vl,Q as $n,gg as Er,gh as zl,at as ar,w as Ve,gi as Wl,h as Vn,aW as Kl,x as Hl,y as Yl,s as Ke,g as ur,ac as dr,bA as Bt,gj as Gl,dF as Zl,dm as Xl,aH as bt,dx as Ql,gk as Jl,eD as ec,gl as gs,gm as kr,gn as tc,dH as zn,b as Tt,W as ao,dJ as rc,A as nc,br as lo,bs as ys,bt as co,dp as mr,aD as oc,fI as vs,aS as ic,aE as sc,a8 as ac,z as lc,go as cc,bC as uc,U as dc,N as fc}from"./index-z2Pq7re4.js";import{A as Ft}from"./Add-Cous1ji5.js";import{V as pc}from"./ViewList-CJ3pgiPv.js";import{c as mc,H as uo,g as hc}from"./index-DxNJKgOf.js";import{u as bc}from"./use-mobile-DT5aSwoH.js";import{e as No}from"./client-CBX1Obzh.js";import{R as xs,a as Cr,D as gc}from"./url-evaluation-CeV7iBRh.js";import{v as Bo}from"./index-XPz8QVj4.js";import{u as He}from"./team-CzLA5Wke.js";import{u as ws}from"./blocklet-B517W-Ua.js";import{S as Cs}from"./Search-CJFu7Gaf.js";import{y as Nr}from"./index-p_tMzvnc.js";import{u as yc,C as Gt}from"./index.esm-11mV4JTB.js";import{S as vc}from"./Google-CWXy-_sb.js";import{A as xc,a as hr}from"./Autocomplete-rgPa6avl.js";import{U as wc}from"./UnfoldMore-Bi3VKM-P.js";import{P as Pt}from"./permission-CE3f6duj.js";import{C as Br}from"./click-to-copy-3JN8Y4Er.js";import{s as wt,g as Cc,S as jc,u as ft,a as js,b as fr,c as Ss,d as Fr,e as Ts,f as fo,P as Es,D as ks,h as Pr,M as er,i as Ps,j as Fo,k as nr,v as Sc,l as Tc,m as qo,n as Ec,o as kc,p as Pc,q as Ic,C as Rc,r as Ac,t as Ir,w as Mt,x as Rr,y as Uo,z as $o,A as Dc,T as Oc,B as po,E as _c,F as Mc,G as Lc,H as Nc,I as Bc,J as Fc,K as qc,L as br,N as Nt,O as Is,Q as Uc,V as Wn,R as Rs,U as $c,W as Vo,X as Vc,Y as zc,Z as Wc,_ as Kc,$ as Hc,a0 as Yc}from"./AdapterDayjs-wz3uJn5Q.js";import{u as rt}from"./useThemeProps-DDkjiDuo.js";import{a as zo,b as Gc,t as Zc,T as Xc}from"./html-title-DVCSq6YQ.js";import{v as Ge}from"./index-0z8Wehkl.js";import{V as Qc}from"./Verified-CNu8DyFD.js";import{D as Jc}from"./DeleteOutline-BJandZby.js";import{E as Wo}from"./ErrorOutline-4kGDns30.js";import{N as eu}from"./index-a5z0oLm0.js";import{b as tu}from"./sdk-Z_sZEcD1.js";import{u as ru}from"./index-BFsyziHN.js";import{u as nu}from"./use-mobile-Dwu9jRCW.js";import{A as ou}from"./actions-qegZDW8a.js";import{S as iu}from"./shorten-label-CnHc5b4P.js";const su=mc(R.useLayoutEffect);var Ko={},Ho;function au(){return Ho||(Ho=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(f){try{return f.defaultView&&f.defaultView.frameElement||null}catch{return null}}var t=function(f){for(var p=f,C=e(p);C;)p=C.ownerDocument,C=e(p);return p}(window.document),r=[],n=null,o=null;function c(f){this.time=f.time,this.target=f.target,this.rootBounds=b(f.rootBounds),this.boundingClientRect=b(f.boundingClientRect),this.intersectionRect=b(f.intersectionRect||g()),this.isIntersecting=!!f.intersectionRect;var p=this.boundingClientRect,C=p.width*p.height,T=this.intersectionRect,S=T.width*T.height;C?this.intersectionRatio=Number((S/C).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function i(f,p){var C=p||{};if(typeof f!="function")throw new Error("callback must be a function");if(C.root&&C.root.nodeType!=1&&C.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=a(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=f,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(C.rootMargin),this.thresholds=this._initThresholds(C.threshold),this.root=C.root||null,this.rootMargin=this._rootMarginValues.map(function(T){return T.value+T.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i._setupCrossOriginUpdater=function(){return n||(n=function(f,p){!f||!p?o=g():o=w(f,p),r.forEach(function(C){C._checkForIntersections()})}),n},i._resetCrossOriginUpdater=function(){n=null,o=null},i.prototype.observe=function(f){var p=this._observationTargets.some(function(C){return C.element==f});if(!p){if(!(f&&f.nodeType==1))throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:f,entry:null}),this._monitorIntersections(f.ownerDocument),this._checkForIntersections()}},i.prototype.unobserve=function(f){this._observationTargets=this._observationTargets.filter(function(p){return p.element!=f}),this._unmonitorIntersections(f.ownerDocument),this._observationTargets.length==0&&this._unregisterInstance()},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var f=this._queuedEntries.slice();return this._queuedEntries=[],f},i.prototype._initThresholds=function(f){var p=f||[0];return Array.isArray(p)||(p=[p]),p.sort().filter(function(C,T,S){if(typeof C!="number"||isNaN(C)||C<0||C>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return C!==S[T-1]})},i.prototype._parseRootMargin=function(f){var p=f||"0px",C=p.split(/\s+/).map(function(T){var S=/^(-?\d*\.?\d+)(px|%)$/.exec(T);if(!S)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(S[1]),unit:S[2]}});return C[1]=C[1]||C[0],C[2]=C[2]||C[0],C[3]=C[3]||C[1],C},i.prototype._monitorIntersections=function(f){var p=f.defaultView;if(p&&this._monitoringDocuments.indexOf(f)==-1){var C=this._checkForIntersections,T=null,S=null;this.POLL_INTERVAL?T=p.setInterval(C,this.POLL_INTERVAL):(u(p,"resize",C,!0),u(f,"scroll",C,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in p&&(S=new p.MutationObserver(C),S.observe(f,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))),this._monitoringDocuments.push(f),this._monitoringUnsubscribes.push(function(){var k=f.defaultView;k&&(T&&k.clearInterval(T),d(k,"resize",C,!0)),d(f,"scroll",C,!0),S&&S.disconnect()});var A=this.root&&(this.root.ownerDocument||this.root)||t;if(f!=A){var E=e(f);E&&this._monitorIntersections(E.ownerDocument)}}},i.prototype._unmonitorIntersections=function(f){var p=this._monitoringDocuments.indexOf(f);if(p!=-1){var C=this.root&&(this.root.ownerDocument||this.root)||t,T=this._observationTargets.some(function(E){var k=E.element.ownerDocument;if(k==f)return!0;for(;k&&k!=C;){var B=e(k);if(k=B&&B.ownerDocument,k==f)return!0}return!1});if(!T){var S=this._monitoringUnsubscribes[p];if(this._monitoringDocuments.splice(p,1),this._monitoringUnsubscribes.splice(p,1),S(),f!=C){var A=e(f);A&&this._unmonitorIntersections(A.ownerDocument)}}}},i.prototype._unmonitorAllIntersections=function(){var f=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var p=0;p<f.length;p++)f[p]()},i.prototype._checkForIntersections=function(){if(!(!this.root&&n&&!o)){var f=this._rootIsInDom(),p=f?this._getRootRect():g();this._observationTargets.forEach(function(C){var T=C.element,S=h(T),A=this._rootContainsTarget(T),E=C.entry,k=f&&A&&this._computeTargetAndRootIntersection(T,S,p),B=null;this._rootContainsTarget(T)?(!n||this.root)&&(B=p):B=g();var q=C.entry=new c({time:l(),target:T,boundingClientRect:S,rootBounds:B,intersectionRect:k});E?f&&A?this._hasCrossedThreshold(E,q)&&this._queuedEntries.push(q):E&&E.isIntersecting&&this._queuedEntries.push(q):this._queuedEntries.push(q)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},i.prototype._computeTargetAndRootIntersection=function(f,p,C){if(window.getComputedStyle(f).display!="none"){for(var T=p,S=y(f),A=!1;!A&&S;){var E=null,k=S.nodeType==1?window.getComputedStyle(S):{};if(k.display=="none")return null;if(S==this.root||S.nodeType==9)if(A=!0,S==this.root||S==t)n&&!this.root?!o||o.width==0&&o.height==0?(S=null,E=null,T=null):E=o:E=C;else{var B=y(S),q=B&&h(B),H=B&&this._computeTargetAndRootIntersection(B,q,C);q&&H?(S=B,E=w(q,H)):(S=null,T=null)}else{var se=S.ownerDocument;S!=se.body&&S!=se.documentElement&&k.overflow!="visible"&&(E=h(S))}if(E&&(T=x(E,T)),!T)break;S=S&&y(S)}return T}},i.prototype._getRootRect=function(){var f;if(this.root&&!v(this.root))f=h(this.root);else{var p=v(this.root)?this.root:t,C=p.documentElement,T=p.body;f={top:0,left:0,right:C.clientWidth||T.clientWidth,width:C.clientWidth||T.clientWidth,bottom:C.clientHeight||T.clientHeight,height:C.clientHeight||T.clientHeight}}return this._expandRectByRootMargin(f)},i.prototype._expandRectByRootMargin=function(f){var p=this._rootMarginValues.map(function(T,S){return T.unit=="px"?T.value:T.value*(S%2?f.width:f.height)/100}),C={top:f.top-p[0],right:f.right+p[1],bottom:f.bottom+p[2],left:f.left-p[3]};return C.width=C.right-C.left,C.height=C.bottom-C.top,C},i.prototype._hasCrossedThreshold=function(f,p){var C=f&&f.isIntersecting?f.intersectionRatio||0:-1,T=p.isIntersecting?p.intersectionRatio||0:-1;if(C!==T)for(var S=0;S<this.thresholds.length;S++){var A=this.thresholds[S];if(A==C||A==T||A<C!=A<T)return!0}},i.prototype._rootIsInDom=function(){return!this.root||m(t,this.root)},i.prototype._rootContainsTarget=function(f){var p=this.root&&(this.root.ownerDocument||this.root)||t;return m(p,f)&&(!this.root||p==f.ownerDocument)},i.prototype._registerInstance=function(){r.indexOf(this)<0&&r.push(this)},i.prototype._unregisterInstance=function(){var f=r.indexOf(this);f!=-1&&r.splice(f,1)};function l(){return window.performance&&performance.now&&performance.now()}function a(f,p){var C=null;return function(){C||(C=setTimeout(function(){f(),C=null},p))}}function u(f,p,C,T){typeof f.addEventListener=="function"?f.addEventListener(p,C,T):typeof f.attachEvent=="function"&&f.attachEvent("on"+p,C)}function d(f,p,C,T){typeof f.removeEventListener=="function"?f.removeEventListener(p,C,T):typeof f.detachEvent=="function"&&f.detachEvent("on"+p,C)}function x(f,p){var C=Math.max(f.top,p.top),T=Math.min(f.bottom,p.bottom),S=Math.max(f.left,p.left),A=Math.min(f.right,p.right),E=A-S,k=T-C;return E>=0&&k>=0&&{top:C,bottom:T,left:S,right:A,width:E,height:k}||null}function h(f){var p;try{p=f.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):g()}function g(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function b(f){return!f||"x"in f?f:{top:f.top,y:f.top,bottom:f.bottom,left:f.left,x:f.left,right:f.right,width:f.width,height:f.height}}function w(f,p){var C=p.top-f.top,T=p.left-f.left;return{top:C,left:T,height:p.height,width:p.width,bottom:C+p.height,right:T+p.width}}function m(f,p){for(var C=p;C;){if(C==f)return!0;C=y(C)}return!1}function y(f){var p=f.parentNode;return f.nodeType==9&&f!=t?e(f):(p&&p.assignedSlot&&(p=p.assignedSlot.parentNode),p&&p.nodeType==11&&p.host?p.host:p)}function v(f){return f&&f.nodeType===9}window.IntersectionObserver=i,window.IntersectionObserverEntry=c}()),Ko}au();function lu(e,t){var r={},n=r.callback,o=ll(r,["callback"]),c=_o(R.useState(),2),i=c[0],l=c[1],a=_o(R.useState(),2),u=a[0],d=a[1];return cl(function(){var x=Array.isArray(e)?e:[e],h=x.map(function(b){return Mo(b)}).filter(Boolean);if(h.length){var g=new IntersectionObserver(function(b){var w,m;try{for(var y=ul(b),v=y.next();!v.done;v=y.next()){var f=v.value;d(f.intersectionRatio),l(f.isIntersecting),n?.(f)}}catch(p){w={error:p}}finally{try{v&&!v.done&&(m=y.return)&&m.call(y)}finally{if(w)throw w.error}}},Lo(Lo({},o),{root:Mo(void 0)}));return h.forEach(function(b){return g.observe(b)}),function(){g.disconnect()}}},[void 0,void 0,n],e),[i,u]}const cu=cr(s.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"})),uu=cr(s.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"})),qr=cr([s.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"),s.jsx("circle",{cx:"6.5",cy:"6.5",r:"1.5"},"1")]),du=cr(s.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"})),fu=cr(s.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"})),As=e=>R.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},R.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"}),R.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375}),R.createElement("rect",{x:15.3125,y:14.0625,width:7.5,height:1.875,rx:.9375,transform:"rotate(-90 15.3125 14.0625)"})),Ds=e=>R.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},R.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"}),R.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"}),R.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"}),R.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"})),Os=e=>R.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},R.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"}),R.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375})),pu=e=>R.createElement("svg",{width:18,height:19,viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg",...e},R.createElement("g",{clipPath:"url(#clip0)"},R.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"})),R.createElement("defs",null,R.createElement("clipPath",{id:"clip0"},R.createElement("rect",{width:18,height:18,transform:"translate(0 0.5)"})))),_s=e=>R.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},R.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 Yr={},Gr,Yo;function mu(){return Yo||(Yo=1,Gr=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Gr}var Zr,Go;function hu(){if(Go)return Zr;Go=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(i,l){try{return[decodeURIComponent(i.join(""))]}catch{}if(i.length===1)return i;l=l||1;var a=i.slice(0,l),u=i.slice(l);return Array.prototype.concat.call([],n(a),n(u))}function o(i){try{return decodeURIComponent(i)}catch{for(var l=i.match(t)||[],a=1;a<l.length;a++)i=n(l,a).join(""),l=i.match(t)||[];return i}}function c(i){for(var l={"%FE%FF":"��","%FF%FE":"��"},a=r.exec(i);a;){try{l[a[0]]=decodeURIComponent(a[0])}catch{var u=o(a[0]);u!==a[0]&&(l[a[0]]=u)}a=r.exec(i)}l["%C2"]="�";for(var d=Object.keys(l),x=0;x<d.length;x++){var h=d[x];i=i.replace(new RegExp(h,"g"),l[h])}return i}return Zr=function(i){if(typeof i!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof i+"`");try{return i=i.replace(/\+/g," "),decodeURIComponent(i)}catch{return c(i)}},Zr}var Xr,Zo;function bu(){return Zo||(Zo=1,Xr=(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)]}),Xr}var Qr,Xo;function gu(){return Xo||(Xo=1,Qr=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),c=0;c<n.length;c++){var i=n[c],l=e[i];(o?t.indexOf(i)!==-1:t(i,l,e))&&(r[i]=l)}return r}),Qr}var Qo;function yu(){return Qo||(Qo=1,function(e){const t=mu(),r=hu(),n=bu(),o=gu(),c=y=>y==null;function i(y){switch(y.arrayFormat){case"index":return v=>(f,p)=>{const C=f.length;return p===void 0||y.skipNull&&p===null||y.skipEmptyString&&p===""?f:p===null?[...f,[u(v,y),"[",C,"]"].join("")]:[...f,[u(v,y),"[",u(C,y),"]=",u(p,y)].join("")]};case"bracket":return v=>(f,p)=>p===void 0||y.skipNull&&p===null||y.skipEmptyString&&p===""?f:p===null?[...f,[u(v,y),"[]"].join("")]:[...f,[u(v,y),"[]=",u(p,y)].join("")];case"comma":case"separator":return v=>(f,p)=>p==null||p.length===0?f:f.length===0?[[u(v,y),"=",u(p,y)].join("")]:[[f,u(p,y)].join(y.arrayFormatSeparator)];default:return v=>(f,p)=>p===void 0||y.skipNull&&p===null||y.skipEmptyString&&p===""?f:p===null?[...f,u(v,y)]:[...f,[u(v,y),"=",u(p,y)].join("")]}}function l(y){let v;switch(y.arrayFormat){case"index":return(f,p,C)=>{if(v=/\[(\d*)\]$/.exec(f),f=f.replace(/\[\d*\]$/,""),!v){C[f]=p;return}C[f]===void 0&&(C[f]={}),C[f][v[1]]=p};case"bracket":return(f,p,C)=>{if(v=/(\[\])$/.exec(f),f=f.replace(/\[\]$/,""),!v){C[f]=p;return}if(C[f]===void 0){C[f]=[p];return}C[f]=[].concat(C[f],p)};case"comma":case"separator":return(f,p,C)=>{const T=typeof p=="string"&&p.includes(y.arrayFormatSeparator),S=typeof p=="string"&&!T&&d(p,y).includes(y.arrayFormatSeparator);p=S?d(p,y):p;const A=T||S?p.split(y.arrayFormatSeparator).map(E=>d(E,y)):p===null?p:d(p,y);C[f]=A};default:return(f,p,C)=>{if(C[f]===void 0){C[f]=p;return}C[f]=[].concat(C[f],p)}}}function a(y){if(typeof y!="string"||y.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function u(y,v){return v.encode?v.strict?t(y):encodeURIComponent(y):y}function d(y,v){return v.decode?r(y):y}function x(y){return Array.isArray(y)?y.sort():typeof y=="object"?x(Object.keys(y)).sort((v,f)=>Number(v)-Number(f)).map(v=>y[v]):y}function h(y){const v=y.indexOf("#");return v!==-1&&(y=y.slice(0,v)),y}function g(y){let v="";const f=y.indexOf("#");return f!==-1&&(v=y.slice(f)),v}function b(y){y=h(y);const v=y.indexOf("?");return v===-1?"":y.slice(v+1)}function w(y,v){return v.parseNumbers&&!Number.isNaN(Number(y))&&typeof y=="string"&&y.trim()!==""?y=Number(y):v.parseBooleans&&y!==null&&(y.toLowerCase()==="true"||y.toLowerCase()==="false")&&(y=y.toLowerCase()==="true"),y}function m(y,v){v=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},v),a(v.arrayFormatSeparator);const f=l(v),p=Object.create(null);if(typeof y!="string"||(y=y.trim().replace(/^[?#&]/,""),!y))return p;for(const C of y.split("&")){if(C==="")continue;let[T,S]=n(v.decode?C.replace(/\+/g," "):C,"=");S=S===void 0?null:["comma","separator"].includes(v.arrayFormat)?S:d(S,v),f(d(T,v),S,p)}for(const C of Object.keys(p)){const T=p[C];if(typeof T=="object"&&T!==null)for(const S of Object.keys(T))T[S]=w(T[S],v);else p[C]=w(T,v)}return v.sort===!1?p:(v.sort===!0?Object.keys(p).sort():Object.keys(p).sort(v.sort)).reduce((C,T)=>{const S=p[T];return S&&typeof S=="object"&&!Array.isArray(S)?C[T]=x(S):C[T]=S,C},Object.create(null))}e.extract=b,e.parse=m,e.stringify=(y,v)=>{if(!y)return"";v=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},v),a(v.arrayFormatSeparator);const f=S=>v.skipNull&&c(y[S])||v.skipEmptyString&&y[S]==="",p=i(v),C={};for(const S of Object.keys(y))f(S)||(C[S]=y[S]);const T=Object.keys(C);return v.sort!==!1&&T.sort(v.sort),T.map(S=>{const A=y[S];return A===void 0?"":A===null?u(S,v):Array.isArray(A)?A.reduce(p(S),[]).join("&"):u(S,v)+"="+u(A,v)}).filter(S=>S.length>0).join("&")},e.parseUrl=(y,v)=>{v=Object.assign({decode:!0},v);const[f,p]=n(y,"#");return Object.assign({url:f.split("?")[0]||"",query:m(b(y),v)},v&&v.parseFragmentIdentifier&&p?{fragmentIdentifier:d(p,v)}:{})},e.stringifyUrl=(y,v)=>{v=Object.assign({encode:!0,strict:!0},v);const f=h(y.url).split("?")[0]||"",p=e.extract(y.url),C=e.parse(p,{sort:!1}),T=Object.assign(C,y.query);let S=e.stringify(T,v);S&&(S=`?${S}`);let A=g(y.url);return y.fragmentIdentifier&&(A=`#${u(y.fragmentIdentifier,v)}`),`${f}${S}${A}`},e.pick=(y,v,f)=>{f=Object.assign({parseFragmentIdentifier:!0},f);const{url:p,query:C,fragmentIdentifier:T}=e.parseUrl(y,f);return e.stringifyUrl({url:p,query:o(C,v),fragmentIdentifier:T},f)},e.exclude=(y,v,f)=>{const p=Array.isArray(v)?C=>!v.includes(C):(C,T)=>!v(C,T);return e.pick(y,p,f)}}(Yr)),Yr}var Jr=yu();const Zt=dl,vu={parseNumbers:!1,parseBooleans:!1},xu={skipNull:!1,skipEmptyString:!1},wu=(e,t)=>{var r,n;const{navigateMode:o="push",parseOptions:c,stringifyOptions:i}={},l=Object.assign(Object.assign({},vu),c),a=Object.assign(Object.assign({},xu),i),u=Zt.useLocation(),d=(r=Zt.useHistory)===null||r===void 0?void 0:r.call(Zt),x=(n=Zt.useNavigate)===null||n===void 0?void 0:n.call(Zt),h=fl(),g=R.useRef(typeof e=="function"?e():e||{}),b=R.useMemo(()=>Jr.parse(u.search,l),[u.search]),w=R.useMemo(()=>Object.assign(Object.assign({},g.current),b),[b]);return[w,mt(y=>{const v=typeof y=="function"?y(w):y;h(),d&&d[o]({hash:u.hash,search:Jr.stringify(Object.assign(Object.assign({},b),v),a)||"?"},u.state),x&&x({hash:u.hash,search:Jr.stringify(Object.assign(Object.assign({},b),v),a)||"?"},{replace:o==="replace",state:u.state})})]};var tr={exports:{}},Cu=tr.exports,Jo;function ju(){return Jo||(Jo=1,function(e,t){(function(r,n){var o="1.0.40",c="",i="?",l="function",a="undefined",u="object",d="string",x="major",h="model",g="name",b="type",w="vendor",m="version",y="architecture",v="console",f="mobile",p="tablet",C="smarttv",T="wearable",S="embedded",A=500,E="Amazon",k="Apple",B="ASUS",q="BlackBerry",H="Browser",se="Chrome",oe="Edge",ge="Firefox",Se="Google",Y="Huawei",O="LG",F="Microsoft",X="Motorola",G="Opera",J="Samsung",_="Sharp",I="Sony",M="Xiaomi",W="Zebra",L="Facebook",U="Chromium OS",Q="Mac OS",le=" Browser",be=function(N,z){var V={};for(var ee in N)z[ee]&&z[ee].length%2===0?V[ee]=z[ee].concat(N[ee]):V[ee]=N[ee];return V},we=function(N){for(var z={},V=0;V<N.length;V++)z[N[V].toUpperCase()]=N[V];return z},ke=function(N,z){return typeof N===d?Ae(z).indexOf(Ae(N))!==-1:!1},Ae=function(N){return N.toLowerCase()},Ne=function(N){return typeof N===d?N.replace(/[^\d\.]/g,c).split(".")[0]:n},ye=function(N,z){if(typeof N===d)return N=N.replace(/^\s\s*/,c),typeof z===a?N:N.substring(0,A)},Te=function(N,z){for(var V=0,ee,ae,fe,ne,re,Ee;V<z.length&&!re;){var Ye=z[V],Z=z[V+1];for(ee=ae=0;ee<Ye.length&&!re&&Ye[ee];)if(re=Ye[ee++].exec(N),re)for(fe=0;fe<Z.length;fe++)Ee=re[++ae],ne=Z[fe],typeof ne===u&&ne.length>0?ne.length===2?typeof ne[1]==l?this[ne[0]]=ne[1].call(this,Ee):this[ne[0]]=ne[1]:ne.length===3?typeof ne[1]===l&&!(ne[1].exec&&ne[1].test)?this[ne[0]]=Ee?ne[1].call(this,Ee,ne[2]):n:this[ne[0]]=Ee?Ee.replace(ne[1],ne[2]):n:ne.length===4&&(this[ne[0]]=Ee?ne[3].call(this,Ee.replace(ne[1],ne[2])):n):this[ne]=Ee||n;V+=2}},ue=function(N,z){for(var V in z)if(typeof z[V]===u&&z[V].length>0){for(var ee=0;ee<z[V].length;ee++)if(ke(z[V][ee],N))return V===i?n:V}else if(ke(z[V],N))return V===i?n:V;return z.hasOwnProperty("*")?z["*"]:N},ce={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},te={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Ce={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[g,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[g,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[g,m],[/opios[\/ ]+([\w\.]+)/i],[m,[g,G+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[m,[g,G+" GX"]],[/\bopr\/([\w\.]+)/i],[m,[g,G]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[m,[g,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[m,[g,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[g,m],[/quark(?:pc)?\/([-\w\.]+)/i],[m,[g,"Quark"]],[/\bddg\/([\w\.]+)/i],[m,[g,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[g,"UC"+H]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[m,[g,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[g,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[g,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[g,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[m,[g,"Smart Lenovo "+H]],[/(avast|avg)\/([\w\.]+)/i],[[g,/(.+)/,"$1 Secure "+H],m],[/\bfocus\/([\w\.]+)/i],[m,[g,ge+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[g,G+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[g,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[g,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[g,G+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[g,"MIUI"+le]],[/fxios\/([\w\.-]+)/i],[m,[g,ge]],[/\bqihoobrowser\/?([\w\.]*)/i],[m,[g,"360"]],[/\b(qq)\/([\w\.]+)/i],[[g,/(.+)/,"$1Browser"],m],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[g,/(.+)/,"$1"+le],m],[/samsungbrowser\/([\w\.]+)/i],[m,[g,J+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[m,[g,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[g,"Sogou Mobile"],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[g,m],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[g],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[m,g],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[g,L],m],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[g,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[g,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[g,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[g,se+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[g,se+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[g,"Android "+H]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[g,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[g,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,g],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[g,[m,ue,ce]],[/(webkit|khtml)\/([\w\.]+)/i],[g,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[g,"Netscape"],m],[/(wolvic|librewolf)\/([\w\.]+)/i],[g,m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[g,ge+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[g,[m,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[g,[m,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[y,"amd64"]],[/(ia32(?=;))/i],[[y,Ae]],[/((?:i[346]|x)86)[;\)]/i],[[y,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[y,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[y,"armhf"]],[/windows (ce|mobile); ppc;/i],[[y,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[y,/ower/,c,Ae]],[/(sun4\w)[;\)]/i],[[y,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[y,Ae]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[h,[w,J],[b,p]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[h,[w,J],[b,f]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[h,[w,k],[b,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[h,[w,k],[b,p]],[/(macintosh);/i],[h,[w,k]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[h,[w,_],[b,f]],[/(?:honor)([-\w ]+)[;\)]/i],[h,[w,"Honor"],[b,f]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[h,[w,Y],[b,p]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[h,[w,Y],[b,f]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[h,/_/g," "],[w,M],[b,f]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[h,/_/g," "],[w,M],[b,p]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[h,[w,"OPPO"],[b,f]],[/\b(opd2\d{3}a?) bui/i],[h,[w,"OPPO"],[b,p]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[h,[w,"Vivo"],[b,f]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[h,[w,"Realme"],[b,f]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[h,[w,X],[b,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[h,[w,X],[b,p]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[h,[w,O],[b,p]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[h,[w,O],[b,f]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[h,[w,"Lenovo"],[b,p]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[h,/_/g," "],[w,"Nokia"],[b,f]],[/(pixel c)\b/i],[h,[w,Se],[b,p]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[h,[w,Se],[b,f]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[h,[w,I],[b,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[h,"Xperia Tablet"],[w,I],[b,p]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[h,[w,"OnePlus"],[b,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[h,[w,E],[b,p]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[h,/(.+)/g,"Fire Phone $1"],[w,E],[b,f]],[/(playbook);[-\w\),; ]+(rim)/i],[h,w,[b,p]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[h,[w,q],[b,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[h,[w,B],[b,p]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[h,[w,B],[b,f]],[/(nexus 9)/i],[h,[w,"HTC"],[b,p]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[w,[h,/_/g," "],[b,f]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[h,[w,"TCL"],[b,p]],[/(itel) ((\w+))/i],[[w,Ae],h,[b,ue,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[h,[w,"Acer"],[b,p]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[h,[w,"Meizu"],[b,f]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[h,[w,"Ulefone"],[b,f]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[h,[w,"Energizer"],[b,f]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[h,[w,"Cat"],[b,f]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[h,[w,"Smartfren"],[b,f]],[/droid.+; (a(?:015|06[35]|142p?))/i],[h,[w,"Nothing"],[b,f]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[w,h,[b,f]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[w,h,[b,p]],[/(surface duo)/i],[h,[w,F],[b,p]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[h,[w,"Fairphone"],[b,f]],[/(u304aa)/i],[h,[w,"AT&T"],[b,f]],[/\bsie-(\w*)/i],[h,[w,"Siemens"],[b,f]],[/\b(rct\w+) b/i],[h,[w,"RCA"],[b,p]],[/\b(venue[\d ]{2,7}) b/i],[h,[w,"Dell"],[b,p]],[/\b(q(?:mv|ta)\w+) b/i],[h,[w,"Verizon"],[b,p]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[h,[w,"Barnes & Noble"],[b,p]],[/\b(tm\d{3}\w+) b/i],[h,[w,"NuVision"],[b,p]],[/\b(k88) b/i],[h,[w,"ZTE"],[b,p]],[/\b(nx\d{3}j) b/i],[h,[w,"ZTE"],[b,f]],[/\b(gen\d{3}) b.+49h/i],[h,[w,"Swiss"],[b,f]],[/\b(zur\d{3}) b/i],[h,[w,"Swiss"],[b,p]],[/\b((zeki)?tb.*\b) b/i],[h,[w,"Zeki"],[b,p]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[w,"Dragon Touch"],h,[b,p]],[/\b(ns-?\w{0,9}) b/i],[h,[w,"Insignia"],[b,p]],[/\b((nxa|next)-?\w{0,9}) b/i],[h,[w,"NextBook"],[b,p]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[w,"Voice"],h,[b,f]],[/\b(lvtel\-)?(v1[12]) b/i],[[w,"LvTel"],h,[b,f]],[/\b(ph-1) /i],[h,[w,"Essential"],[b,f]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[h,[w,"Envizen"],[b,p]],[/\b(trio[-\w\. ]+) b/i],[h,[w,"MachSpeed"],[b,p]],[/\btu_(1491) b/i],[h,[w,"Rotor"],[b,p]],[/(shield[\w ]+) b/i],[h,[w,"Nvidia"],[b,p]],[/(sprint) (\w+)/i],[w,h,[b,f]],[/(kin\.[onetw]{3})/i],[[h,/\./g," "],[w,F],[b,f]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[h,[w,W],[b,p]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[h,[w,W],[b,f]],[/smart-tv.+(samsung)/i],[w,[b,C]],[/hbbtv.+maple;(\d+)/i],[[h,/^/,"SmartTV"],[w,J],[b,C]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[w,O],[b,C]],[/(apple) ?tv/i],[w,[h,k+" TV"],[b,C]],[/crkey/i],[[h,se+"cast"],[w,Se],[b,C]],[/droid.+aft(\w+)( bui|\))/i],[h,[w,E],[b,C]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[h,[w,_],[b,C]],[/(bravia[\w ]+)( bui|\))/i],[h,[w,I],[b,C]],[/(mitv-\w{5}) bui/i],[h,[w,M],[b,C]],[/Hbbtv.*(technisat) (.*);/i],[w,h,[b,C]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[w,ye],[h,ye],[b,C]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[b,C]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[w,h,[b,v]],[/droid.+; (shield) bui/i],[h,[w,"Nvidia"],[b,v]],[/(playstation [345portablevi]+)/i],[h,[w,I],[b,v]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[h,[w,F],[b,v]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[h,[w,J],[b,T]],[/((pebble))app/i],[w,h,[b,T]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[h,[w,k],[b,T]],[/droid.+; (glass) \d/i],[h,[w,Se],[b,T]],[/droid.+; (wt63?0{2,3})\)/i],[h,[w,W],[b,T]],[/droid.+; (glass) \d/i],[h,[w,Se],[b,T]],[/(pico) (4|neo3(?: link|pro)?)/i],[w,h,[b,T]],[/; (quest( \d| pro)?)/i],[h,[w,L],[b,T]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[w,[b,S]],[/(aeobc)\b/i],[h,[w,E],[b,S]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[h,[b,f]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[h,[b,p]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[b,p]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[b,f]],[/(android[-\w\. ]{0,9});.+buil/i],[h,[w,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[g,oe+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[g,m],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[g,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[g,m],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,g]],os:[[/microsoft (windows) (vista|xp)/i],[g,m],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[g,[m,ue,te]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[m,ue,te],[g,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[g,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[g,Q],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,g],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[g,m],[/\(bb(10);/i],[m,[g,q]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[m,[g,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[g,ge+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[g,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[g,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[g,se+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[g,U],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[g,m],[/(sunos) ?([\w\.\d]*)/i],[[g,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[g,m]]},je=function(N,z){if(typeof N===u&&(z=N,N=n),!(this instanceof je))return new je(N,z).getResult();var V=typeof r!==a&&r.navigator?r.navigator:n,ee=N||(V&&V.userAgent?V.userAgent:c),ae=V&&V.userAgentData?V.userAgentData:n,fe=z?be(Ce,z):Ce,ne=V&&V.userAgent==ee;return this.getBrowser=function(){var re={};return re[g]=n,re[m]=n,Te.call(re,ee,fe.browser),re[x]=Ne(re[m]),ne&&V&&V.brave&&typeof V.brave.isBrave==l&&(re[g]="Brave"),re},this.getCPU=function(){var re={};return re[y]=n,Te.call(re,ee,fe.cpu),re},this.getDevice=function(){var re={};return re[w]=n,re[h]=n,re[b]=n,Te.call(re,ee,fe.device),ne&&!re[b]&&ae&&ae.mobile&&(re[b]=f),ne&&re[h]=="Macintosh"&&V&&typeof V.standalone!==a&&V.maxTouchPoints&&V.maxTouchPoints>2&&(re[h]="iPad",re[b]=p),re},this.getEngine=function(){var re={};return re[g]=n,re[m]=n,Te.call(re,ee,fe.engine),re},this.getOS=function(){var re={};return re[g]=n,re[m]=n,Te.call(re,ee,fe.os),ne&&!re[g]&&ae&&ae.platform&&ae.platform!="Unknown"&&(re[g]=ae.platform.replace(/chrome os/i,U).replace(/macos/i,Q)),re},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return ee},this.setUA=function(re){return ee=typeof re===d&&re.length>A?ye(re,A):re,this},this.setUA(ee),this};je.VERSION=o,je.BROWSER=we([g,m,x]),je.CPU=we([y]),je.DEVICE=we([h,w,b,v,f,C,p,T,S]),je.ENGINE=je.OS=we([g,m]),e.exports&&(t=e.exports=je),t.UAParser=je;var P=typeof r!==a&&(r.jQuery||r.Zepto);if(P&&!P.ua){var D=new je;P.ua=D.getResult(),P.ua.get=function(){return D.getUA()},P.ua.set=function(N){D.setUA(N);var z=D.getResult();for(var V in z)P.ua[V]=z[V]}}})(typeof window=="object"?window:Cu)}(tr,tr.exports)),tr.exports}var Su=ju();const en=es(Su);function Tu({user:e,sessionUser:t}){const r=ht(()=>(e?.passports||[])?.find(n=>n.name===t.role),[e?.passports,t?.role]);return s.jsxs($,{sx:{display:"flex",alignItems:"center",gap:1},children:[s.jsx(ts,{size:40,variant:"circle",shape:"circle",src:t.avatar,did:t.did,sx:{flexShrink:0}}),s.jsxs($,{sx:{flex:1,overflow:"hidden"},children:[s.jsxs($,{sx:{display:"flex",alignItems:"center",gap:1},children:[s.jsx(gt,{title:t.fullName,children:s.jsx(Re,{sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1},children:t.fullName})}),s.jsx(rs,{label:r?.title||r?.name||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:"text.primary",borderColor:"grey.300",backgroundColor:"transparent",textTransform:"capitalize",pr:.5,pl:0,height:"auto"}})]}),s.jsx(gt,{title:t.email,children:s.jsx(Re,{variant:"body2",color:"grey",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.email})})]})]})}const Eu={zh:{confirm:"确认",cancel:"取消",visitorId:"设备标识",deviceType:"设备类型",platform:"操作系统",walletOS:"钱包类型",role:"角色",fullname:"姓名",email:"邮箱",avatar:"头像",user:"用户",createdAt:"首次活动时间",updatedAt:"最近活动时间",lastLoginIp:"最近活动地址",actions:"操作",logoutAll:"注销所有{type}会话",logoutAllTips:"不会注销当前会话",logout:"注销",currentSession:"当前会话",unknown:"未知",expired:"已过期",remove:"删除",logoutThisSession:"注销指定会话",logoutThisSessionConfirm:"确定要注销此会话吗?",logoutAllSession:"注销所有{type}会话",logoutAllSessionConfirm:"确定要注销所有{type}会话吗?",online:"活跃"},en:{confirm:"Confirm",cancel:"Cancel",visitorId:"Device ID",deviceType:"Device Type",platform:"Platform",walletOS:"Wallet OS",role:"Role",fullname:"Fullname",email:"Email",avatar:"Avatar",user:"User",createdAt:"First Active Time",updatedAt:"Last Active Time",actions:"Actions",lastLoginIp:"Last Login IP",logoutAll:"Logout all {type} sessions",logoutAllTips:"Will not logout current session",logout:"Logout",currentSession:"Current Session",unknown:"Unknown",expired:"Expired",remove:"Remove",logoutThisSession:"Logout this session",logoutThisSessionConfirm:"Are you sure to logout this session?",logoutAllSession:"Logout all {type} sessions",logoutAllSessionConfirm:"Are you sure to logout all {type} sessions?",online:"Active"}},Ms="Reserved IP",ei="ip-region-cache";async function ku(e){const t=`https://ipapi.co/${e}/json/`,r=await(await fetch(t)).json();let n="";return r.error?r.reserved&&(n=Ms):n=[r.country_name,r.region,r.city].filter(Boolean).join("/"),n}async function Pu(e){const t=`https://api.ip.sb/geoip/${e}`,r=await(await fetch(t)).json();let n="";return r.error?r.reserved&&(n=Ms):n=[r.country,r.region,r.city].filter(Boolean).join("/"),n}async function Iu(e){let t="",r={};try{const n=localStorage.getItem(ei);n&&(r=JSON.parse(n))}catch{r={}}if(r[e])t=r[e];else{try{t=await Pu(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!t)try{t=await ku(e)}catch{console.warn("Fail to get ip region from ip-api.co")}}if(t){const n=Object.keys(r);n.length>100&&delete r[n[0]],r[e]&&delete r[e],r[e]=t,localStorage.setItem(ei,JSON.stringify(r))}return t}const ti=e=>new en(e,{browser:[[/(ArcWallet)\/([\w\.]+)/i],[en.BROWSER.NAME,en.BROWSER.VERSION]]}).getResult(),ri={display:"flex",justifyContent:"flex-end",textAlign:"right"},Ru=new hl({concurrency:1}),Au=R.memo(({userSession:e,isMobile:t=!1})=>{const r=yt({loading:!0,ipRegion:""}),{t:n}=Ie();return R.useEffect(()=>{Ru.add(async()=>{try{r.ipRegion=await Iu(e.lastLoginIp)}finally{r.loading=!1}})},[r,e.lastLoginIp]),s.jsx($,{...t&&{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:1,flexWrap:"wrap"},children:r.ipRegion?s.jsxs(s.Fragment,{children:[s.jsx(Re,{variant:"body2",children:r.ipRegion}),s.jsx(Re,{variant:"body2",color:"grey",children:e.lastLoginIp||n("unknown")})]}):s.jsxs(s.Fragment,{children:[s.jsx(Re,{children:e.lastLoginIp||n("unknown")}),r.loading?s.jsx(Re,{variant:"body2",color:"grey",sx:{textAlign:"center"},children:s.jsx(vt,{size:12,color:"inherit"})}):null]})})});function Du({user:e,showAction:t=!0,showUser:r=!0,getUserSessions:n,showOffline:o=!1,showAppPid:c=!1}){const i=yt({status:"online",page:1,pageSize:10}),l=yt({online:0,expired:0,offline:0}),a=pl(),{locale:u}=Ie(),d=bc({key:"md"}),x=to(E=>E.breakpoints.down("lg")),{confirmApi:h,confirmHolder:g}=ro(),b=mt((E,k={})=>ml(Eu,E,u,"en",k)),w=mt(async()=>{const E=await n({page:i.page,pageSize:i.pageSize,status:i.status}),k=E?.paging?.total||0;return l[i.status]=k,{total:k,list:E?.list||[]}});ns(async()=>{const E=await n({page:1,pageSize:1,status:"expired"});l.expired=E?.paging?.total||0;const k=await n({page:1,pageSize:1,status:"offline"});l.offline=k?.paging?.total||0});const m=os(w,{refreshDeps:[i.status,i.page,i.pageSize]}),y=ht(()=>m.data?.list||[],[m.data?.list]),v=ht(()=>{const E=i.status;return E==="online"?l[E]<=1:l[E]===0},[y,a]),f=ht(()=>jr({},d?ri:{}),[d]),p=mt(({visitorId:E})=>{h.open({title:b("logoutThisSession"),content:b("logoutThisSessionConfirm"),confirmButtonText:b("confirm"),confirmButtonProps:{color:"error"},cancelButtonText:b("cancel"),onConfirm:async()=>{await No.user.logout({visitorId:E,includeFederated:!0});const{page:k=0}=i,{list:B=[]}=m.data||{},q=B.length||0;k>1&&q===1&&(i.page=Math.max(k-1,1)),m.refresh(),h.close()}})}),C=mt(()=>{h.open({title:b("logoutAllSession",{type:b(i.status)}),content:b("logoutAllSessionConfirm",{type:b(i.status)}),confirmButtonText:b("confirm"),confirmButtonProps:{color:"error"},cancelButtonText:b("cancel"),onConfirm:async()=>{await No.user.logout({status:i.status,visitorId:a,includeFederated:!0}),i.page=1,m.refresh(),h.close()}})}),T=[];t&&T.push(s.jsx(gt,{title:b("logoutAllTips",{type:b(i.status)}),children:s.jsx(qe,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:C,disabled:v,children:b("logoutAll",{type:b(i.status)})})},"logoutAll"));const S=ht(()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600,page:i.page-1,rowsPerPage:i.pageSize,count:m.data?.total||0}),[m.data?.total,i.page,i.pageSize]),A=[{label:b("platform"),name:"platform",options:{customBodyRenderLite:E=>{const k=y[E],B=ti(k?.ua);return s.jsx($,{sx:f,children:[B.os?.name,B.os?.version].filter(Boolean).join("/")||b("unknown")})}}},{label:b("deviceType"),name:"deviceType",options:{customBodyRenderLite:E=>{const k=y[E],B=ti(k?.ua);return s.jsx($,{sx:f,children:[B.browser?.name,B.browser?.version].filter(Boolean).join("/")||b("unknown")})}}},{label:b("walletOS"),name:"walletOS",options:{customBodyRenderLite:E=>{const k=y[E];return s.jsx($,{sx:f,children:k.extra?.walletOS||b("unknown")})}}},c&&{label:"App Pid",name:"appPid",options:{customBodyRenderLite:E=>{const k=y[E];return k.appPid?s.jsx(is,{size:14,responsive:!1,compact:!0,did:k.appPid}):null}}},r&&{label:b("user"),name:"user",options:{customBodyRenderLite:E=>{const k=y[E];return s.jsx($,{sx:jr({minWidth:150,maxWidth:250},d?ri:{}),children:s.jsx(Tu,{sessionUser:k.user,user:e})})}}},{label:b("createdAt"),name:"createdAt",options:{customBodyRenderLite:E=>{const k=y[E];return s.jsx($,{sx:f,children:k.createdAt?s.jsx(or,{value:k.createdAt,relativeRange:3*86400*1e3,locale:u}):b("unknown")})}}},!o&&{label:b("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:E=>{const k=y[E];return s.jsx($,{sx:f,children:k.status==="expired"?b("expired"):s.jsx(or,{value:k.updatedAt,relativeRange:3*86400*1e3,locale:u})})}}},{label:b("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:E=>{const k=y[E];return s.jsx(Au,{userSession:k,isMobile:d})}}},t&&{label:b("actions"),name:"actions",options:{customBodyRenderLite:E=>{const k=y[E];return s.jsx($,{sx:f,children:s.jsx(qe,{sx:{whiteSpace:"nowrap",fontSize:"12px !important",lineHeight:"1.25",px:1},disabled:a===k.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>p({visitorId:k.visitorId}),children:k.status==="expired"?b("remove"):a===k.visitorId?b("currentSession"):b("logout")})})}}}].filter(Boolean);return s.jsxs($,{className:"pc-user-sessions",sx:{maxWidth:d?"unset":x?"calc(100vw - 300px)":"100%",...d&&{".pc-user-sessions-table > div:nth-child(2)":{border:"1px solid",borderColor:"divider",borderRadius:1}},".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"},".MuiTableRow-root":{border:"unset","&:nth-child(even)":{backgroundColor:"grey.50","&:hover":{backgroundColor:E=>`${E.palette.grey[50]} !important`}}},".MuiTableRow-hover":{"&:hover":{backgroundColor:"inherit !important"}},".MuiTableCell-root":{paddingRight:"8px",paddingLeft:"8px",color:"text.secondary",...d&&{padding:"8px !important","&:first-child":{paddingTop:"20px!important"},"&:last-child":{paddingBottom:"20px!important"}}}},children:[g,s.jsx(uo,{count:m.data?.total||0,locale:u,data:y,columns:A,customButtons:T,options:S,loading:m.loading,className:"pc-user-sessions-table",title:s.jsxs(xs,{row:!0,sx:{lineHeight:1,ml:1},onChange:E=>{i.status=E.target.value},children:[s.jsx(Lt,{value:"online",control:s.jsx(Cr,{size:"small",sx:{lineHeight:1,fontSize:0},checked:i.status==="online"}),label:s.jsxs(Re,{sx:{display:"flex",alignItems:"center"},children:[b("online"),s.jsxs(Re,{component:"span",sx:{ml:.5,color:"text.secondary"},children:["(",l.online,")"]})]})}),s.jsx(Lt,{value:"expired",control:s.jsx(Cr,{size:"small",sx:{lineHeight:1,fontSize:0},checked:i.status==="expired"}),label:s.jsxs(Re,{sx:{display:"flex",alignItems:"center"},children:[b("expired"),s.jsxs(Re,{component:"span",sx:{ml:.5,color:"text.secondary"},children:["(",l.expired,")"]})]})}),o?s.jsx(Lt,{value:"offline",control:s.jsx(Cr,{size:"small",sx:{lineHeight:1,fontSize:0},checked:i.status==="offline"}),label:s.jsxs(Re,{sx:{display:"flex",alignItems:"center"},children:[b("offline"),s.jsxs(Re,{component:"span",sx:{ml:.5,color:"text.secondary"},children:["(",l.offline,")"]})]})}):null]}),onChange:E=>{i.page=E.page+1,i.pageSize=E.rowsPerPage}})]})}var tn={exports:{}},rn={},ni;function Ls(){if(ni)return rn;ni=1;function e(v){"@babel/helpers - typeof";return e=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},e(v)}function t(v,f,p){return Object.defineProperty(v,"prototype",{writable:!1}),v}function r(v,f){if(!(v instanceof f))throw new TypeError("Cannot call a class as a function")}function n(v,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");v.prototype=Object.create(f&&f.prototype,{constructor:{value:v,writable:!0,configurable:!0}}),Object.defineProperty(v,"prototype",{writable:!1}),f&&o(v,f)}function o(v,f){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,T){return C.__proto__=T,C},o(v,f)}function c(v){var f=a();return function(){var C=u(v),T;if(f){var S=u(this).constructor;T=Reflect.construct(C,arguments,S)}else T=C.apply(this,arguments);return i(this,T)}}function i(v,f){if(f&&(e(f)==="object"||typeof f=="function"))return f;if(f!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l(v)}function l(v){if(v===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v}function a(){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(v){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},u(v)}var d={},x,h;function g(v,f,p){p||(p=Error);function C(S,A,E){return typeof f=="string"?f:f(S,A,E)}var T=function(S){n(E,S);var A=c(E);function E(k,B,q){var H;return r(this,E),H=A.call(this,C(k,B,q)),H.code=v,H}return t(E)}(p);d[v]=T}function b(v,f){if(Array.isArray(v)){var p=v.length;return v=v.map(function(C){return String(C)}),p>2?"one of ".concat(f," ").concat(v.slice(0,p-1).join(", "),", or ")+v[p-1]:p===2?"one of ".concat(f," ").concat(v[0]," or ").concat(v[1]):"of ".concat(f," ").concat(v[0])}else return"of ".concat(f," ").concat(String(v))}function w(v,f,p){return v.substr(0,f.length)===f}function m(v,f,p){return(p===void 0||p>v.length)&&(p=v.length),v.substring(p-f.length,p)===f}function y(v,f,p){return typeof p!="number"&&(p=0),p+f.length>v.length?!1:v.indexOf(f,p)!==-1}return g("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),g("ERR_INVALID_ARG_TYPE",function(v,f,p){x===void 0&&(x=Kn()),x(typeof v=="string","'name' must be a string");var C;typeof f=="string"&&w(f,"not ")?(C="must not be",f=f.replace(/^not /,"")):C="must be";var T;if(m(v," argument"))T="The ".concat(v," ").concat(C," ").concat(b(f,"type"));else{var S=y(v,".")?"property":"argument";T='The "'.concat(v,'" ').concat(S," ").concat(C," ").concat(b(f,"type"))}return T+=". Received type ".concat(e(p)),T},TypeError),g("ERR_INVALID_ARG_VALUE",function(v,f){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";h===void 0&&(h=ir());var C=h.inspect(f);return C.length>128&&(C="".concat(C.slice(0,128),"...")),"The argument '".concat(v,"' ").concat(p,". Received ").concat(C)},TypeError),g("ERR_INVALID_RETURN_VALUE",function(v,f,p){var C;return p&&p.constructor&&p.constructor.name?C="instance of ".concat(p.constructor.name):C="type ".concat(e(p)),"Expected ".concat(v,' to be returned from the "').concat(f,'"')+" function but got ".concat(C,".")},TypeError),g("ERR_MISSING_ARGS",function(){for(var v=arguments.length,f=new Array(v),p=0;p<v;p++)f[p]=arguments[p];x===void 0&&(x=Kn()),x(f.length>0,"At least one arg needs to be specified");var C="The ",T=f.length;switch(f=f.map(function(S){return'"'.concat(S,'"')}),T){case 1:C+="".concat(f[0]," argument");break;case 2:C+="".concat(f[0]," and ").concat(f[1]," arguments");break;default:C+=f.slice(0,T-1).join(", "),C+=", and ".concat(f[T-1]," arguments");break}return"".concat(C," must be specified")},TypeError),rn.codes=d,rn}var nn,oi;function Ou(){if(oi)return nn;oi=1;function e(O,F){var X=Object.keys(O);if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(O);F&&(G=G.filter(function(J){return Object.getOwnPropertyDescriptor(O,J).enumerable})),X.push.apply(X,G)}return X}function t(O){for(var F=1;F<arguments.length;F++){var X=arguments[F]!=null?arguments[F]:{};F%2?e(Object(X),!0).forEach(function(G){r(O,G,X[G])}):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(X)):e(Object(X)).forEach(function(G){Object.defineProperty(O,G,Object.getOwnPropertyDescriptor(X,G))})}return O}function r(O,F,X){return F=i(F),F in O?Object.defineProperty(O,F,{value:X,enumerable:!0,configurable:!0,writable:!0}):O[F]=X,O}function n(O,F){if(!(O instanceof F))throw new TypeError("Cannot call a class as a function")}function o(O,F){for(var X=0;X<F.length;X++){var G=F[X];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(O,i(G.key),G)}}function c(O,F,X){return F&&o(O.prototype,F),Object.defineProperty(O,"prototype",{writable:!1}),O}function i(O){var F=l(O,"string");return v(F)==="symbol"?F:String(F)}function l(O,F){if(v(O)!=="object"||O===null)return O;var X=O[Symbol.toPrimitive];if(X!==void 0){var G=X.call(O,F);if(v(G)!=="object")return G;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(O)}function a(O,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(F&&F.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),Object.defineProperty(O,"prototype",{writable:!1}),F&&m(O,F)}function u(O){var F=b();return function(){var G=y(O),J;if(F){var _=y(this).constructor;J=Reflect.construct(G,arguments,_)}else J=G.apply(this,arguments);return d(this,J)}}function d(O,F){if(F&&(v(F)==="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x(O)}function x(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}function h(O){var F=typeof Map=="function"?new Map:void 0;return h=function(G){if(G===null||!w(G))return G;if(typeof G!="function")throw new TypeError("Super expression must either be null or a function");if(typeof F<"u"){if(F.has(G))return F.get(G);F.set(G,J)}function J(){return g(G,arguments,y(this).constructor)}return J.prototype=Object.create(G.prototype,{constructor:{value:J,enumerable:!1,writable:!0,configurable:!0}}),m(J,G)},h(O)}function g(O,F,X){return b()?g=Reflect.construct.bind():g=function(J,_,I){var M=[null];M.push.apply(M,_);var W=Function.bind.apply(J,M),L=new W;return I&&m(L,I.prototype),L},g.apply(null,arguments)}function b(){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 w(O){return Function.toString.call(O).indexOf("[native code]")!==-1}function m(O,F){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(G,J){return G.__proto__=J,G},m(O,F)}function y(O){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(X){return X.__proto__||Object.getPrototypeOf(X)},y(O)}function v(O){"@babel/helpers - typeof";return v=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},v(O)}var f=ir(),p=f.inspect,C=Ls(),T=C.codes.ERR_INVALID_ARG_TYPE;function S(O,F,X){return(X===void 0||X>O.length)&&(X=O.length),O.substring(X-F.length,X)===F}function A(O,F){if(F=Math.floor(F),O.length==0||F==0)return"";var X=O.length*F;for(F=Math.floor(Math.log(F)/Math.log(2));F;)O+=O,F--;return O+=O.substring(0,X-O.length),O}var E="",k="",B="",q="",H={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:"},se=10;function oe(O){var F=Object.keys(O),X=Object.create(Object.getPrototypeOf(O));return F.forEach(function(G){X[G]=O[G]}),Object.defineProperty(X,"message",{value:O.message}),X}function ge(O){return p(O,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Se(O,F,X){var G="",J="",_=0,I="",M=!1,W=ge(O),L=W.split(`
|
|
2
2
|
`),U=ge(F).split(`
|
|
3
3
|
`),Q=0,le="";if(X==="strictEqual"&&v(O)==="object"&&v(F)==="object"&&O!==null&&F!==null&&(X="strictEqualObject"),L.length===1&&U.length===1&&L[0]!==U[0]){var be=L[0].length+U[0].length;if(be<=se){if((v(O)!=="object"||O===null)&&(v(F)!=="object"||F===null)&&(O!==0||F!==0))return"".concat(H[X],`
|
|
4
4
|
|