@abtnode/webapp 1.16.53-beta-20251013-005429-ca3b05de → 1.16.53-beta-20251013-075536-64fcb94b
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-wz3uJn5Q.js → AdapterDayjs-DAwAM0K6.js} +1 -1
- package/dist/assets/{Add-Cous1ji5.js → Add-B6Cmlfcj.js} +1 -1
- package/dist/assets/ArrowDropDown-BoUvFSCc.js +1 -0
- package/dist/assets/{Autocomplete-rgPa6avl.js → Autocomplete-BVNyvv5G.js} +1 -1
- package/dist/assets/{Breadcrumbs-BkQr1wmD.js → Breadcrumbs-Bt32Cc6o.js} +1 -1
- package/dist/assets/{ButtonGroup-8swvzNFE.js → ButtonGroup-BVtAFOxJ.js} +1 -1
- package/dist/assets/{CSSTransition-BoWO2BoO.js → CSSTransition-DDXf56QN.js} +1 -1
- package/dist/assets/{CallMerge-anZI78Di.js → CallMerge-BHqPVVEo.js} +1 -1
- package/dist/assets/{CardContent-DNK9-zja.js → CardContent-uQgjkzlO.js} +1 -1
- package/dist/assets/{ChevronLeft-CJzdK2eh.js → ChevronLeft-DI9gCcNA.js} +1 -1
- package/dist/assets/{ChevronRight-DLMDPIak.js → ChevronRight-MzIjPo02.js} +1 -1
- package/dist/assets/{Clear-DgL5cnLN.js → Clear-DZ2ckQwi.js} +1 -1
- package/dist/assets/{DeleteOutline-BJandZby.js → DeleteOutline-J28xWbg8.js} +1 -1
- package/dist/assets/{Done-C1929K34.js → Done-BMzuk3oe.js} +1 -1
- package/dist/assets/{Edit-CQdeHbZ-.js → Edit-C97KDLkZ.js} +1 -1
- package/dist/assets/{ErrorOutline-4kGDns30.js → ErrorOutline-B7uA5ni5.js} +1 -1
- package/dist/assets/{FilterList-DcRJLB8M.js → FilterList-DTo_uDHm.js} +1 -1
- package/dist/assets/{Google-CWXy-_sb.js → Google-BoK7t5mi.js} +1 -1
- package/dist/assets/{HelpOutline-UUyOHo3U.js → HelpOutline-CWnQgCme.js} +1 -1
- package/dist/assets/{KeyboardArrowDown-CgD9B0AF.js → KeyboardArrowDown-DBfKbamv.js} +1 -1
- package/dist/assets/{Launch-CryEv1ts.js → Launch-Bztlqboi.js} +1 -1
- package/dist/assets/{Link-Dk7IQFgE.js → Link-C1APq_2U.js} +1 -1
- package/dist/assets/{ListItemButton-B2QtbVrs.js → ListItemButton-LEdwxWwG.js} +1 -1
- package/dist/assets/{ListSubheader-BNX9gO02.js → ListSubheader-Dgw2hpKF.js} +1 -1
- package/dist/assets/{LoadingButton-D7vBmBXb.js → LoadingButton-Xh0qplXY.js} +1 -1
- package/dist/assets/{MoreVert-D4eir2r_.js → MoreVert-D94k9YTF.js} +1 -1
- package/dist/assets/{OpenInNew-BRfvIkPw.js → OpenInNew-fCTiIooX.js} +1 -1
- package/dist/assets/{Refresh-CEzviXq3.js → Refresh-BJgI71LN.js} +1 -1
- package/dist/assets/{Search-CJFu7Gaf.js → Search-D6dHxdTz.js} +1 -1
- package/dist/assets/{Stepper-JC9uh-tv.js → Stepper-C1Gn5a0M.js} +1 -1
- package/dist/assets/{Switch-D89bFzHz.js → Switch-9q8pyvkx.js} +1 -1
- package/dist/assets/{TableSearch-I0DQoJkT.js → TableSearch-Dgi91c1v.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-B4BB2eWk.js → ToggleButtonGroup-DQOUtUuo.js} +1 -1
- package/dist/assets/{UnfoldMore-Bi3VKM-P.js → UnfoldMore-uBcvQq1x.js} +1 -1
- package/dist/assets/{Verified-CNu8DyFD.js → Verified-BuOA2crV.js} +1 -1
- package/dist/assets/{VerifiedUser-Du1UW169.js → VerifiedUser-mcj_Y-5G.js} +1 -1
- package/dist/assets/{ViewList-CJ3pgiPv.js → ViewList-OCDsP8cv.js} +1 -1
- package/dist/assets/{_createAggregator-BrIYaxG5.js → _createAggregator-DAT8Viut.js} +1 -1
- package/dist/assets/{actions-qegZDW8a.js → actions-DPKf8S9T.js} +1 -1
- package/dist/assets/{actions-DiTDvakV.js → actions-wotb2et1.js} +1 -1
- package/dist/assets/{agreement-DYlE38yc.js → agreement-aV7npJLg.js} +1 -1
- package/dist/assets/api-DxkowFdp.js +1 -0
- package/dist/assets/{appearance-DMbZwb6t.js → appearance-DWpfQpUj.js} +1 -1
- package/dist/assets/{audit-logs-DypXoccn.js → audit-logs-DB76amdV.js} +1 -1
- package/dist/assets/{base-chart-BIsr5drw.js → base-chart-Dul1bHFm.js} +1 -1
- package/dist/assets/{blocklet-B517W-Ua.js → blocklet-D-C5_KT8.js} +1 -1
- package/dist/assets/{chain-DPDA2EQ2.js → chain-Cvasl9tr.js} +1 -1
- package/dist/assets/{click-to-copy-3JN8Y4Er.js → click-to-copy-DbbdyQLf.js} +1 -1
- package/dist/assets/client-DfQFJpJj.js +1 -0
- package/dist/assets/cloneDeep-CQjbyzNM.js +1 -0
- package/dist/assets/{collapse-BKLgvOSl.js → collapse-q4qT0dbm.js} +1 -1
- package/dist/assets/{config-navigation-BFkTbhwh.js → config-navigation-B0gxInyZ.js} +3 -3
- package/dist/assets/{connect-to-eFzWXxED.js → connect-to-Cajtuexr.js} +1 -1
- package/dist/assets/{cssMode-DkRpF_PR.js → cssMode-BmYUsRkQ.js} +1 -1
- package/dist/assets/{delete-confirm-CDl-fsIJ.js → delete-confirm-C0C9XNsZ.js} +1 -1
- package/dist/assets/{depsEqual-CSi6TcQv.js → depsEqual-BeaaXuRW.js} +1 -1
- package/dist/assets/{detail-Duk87a8e.js → detail-D1lWN5Ov.js} +3 -3
- package/dist/assets/{domains-CyLqrsuU.js → domains-DB1ZMdkE.js} +1 -1
- package/dist/assets/{download-C0UDp2VI.js → download-BjoLmfJN.js} +1 -1
- package/dist/assets/{edit.svg-BePrNRJc.js → edit.svg-But1Ec9v.js} +1 -1
- package/dist/assets/emotion-cache.browser.esm-Coyusglz.js +1 -0
- package/dist/assets/engine-D07huK5X.js +1 -0
- package/dist/assets/{freemarker2-D5qOoEBh.js → freemarker2-CRZrhFWr.js} +1 -1
- package/dist/assets/{get-safe-url-CUMicCqh.js → get-safe-url-OqBkbBpm.js} +1 -1
- package/dist/assets/getValidReactChildren-w4iI7cES.js +1 -0
- package/dist/assets/{graphqlMode-BiufiH9I.js → graphqlMode-DtS8CEe7.js} +2 -2
- package/dist/assets/{handlebars-C0jC6CCl.js → handlebars-Ck8T285E.js} +1 -1
- package/dist/assets/{html-CFsvvZoo.js → html-CSSlD3Xg.js} +1 -1
- package/dist/assets/{html-title-DVCSq6YQ.js → html-title-DrqnIfa0.js} +1 -1
- package/dist/assets/{htmlMode-CosfhNHV.js → htmlMode-z3pM18ce.js} +1 -1
- package/dist/assets/{iframe-D0APLep4.js → iframe-CxoFl3Ji.js} +1 -1
- package/dist/assets/{index-DBBnAIQs.js → index-2PDbQPH-.js} +1 -1
- package/dist/assets/{index-NuRrhPxS.js → index-3I7DyqhO.js} +1 -1
- package/dist/assets/{index-CbcxUqJf.js → index-8awDbg2D.js} +1 -1
- package/dist/assets/{index-C-oEFt7E.js → index-B0C2IZV3.js} +1 -1
- package/dist/assets/{index-iKywF7nl.js → index-BActWdb3.js} +1 -1
- package/dist/assets/index-BOFfy5T3.js +1 -0
- package/dist/assets/{index-DufKOlby.js → index-BTWstm49.js} +1 -1
- package/dist/assets/{index-p_tMzvnc.js → index-BWZUApiO.js} +1 -1
- package/dist/assets/{index-BeysmFqb.js → index-BYq_Oo0p.js} +1 -1
- package/dist/assets/{index-XPz8QVj4.js → index-BhhDAIQM.js} +1 -1
- package/dist/assets/{index-14CzihO_.js → index-Bj4af6TP.js} +1 -1
- package/dist/assets/{index-BFsyziHN.js → index-BwBVntP8.js} +1 -1
- package/dist/assets/{index-CwJ8EMCg.js → index-BxqUg2fc.js} +1 -1
- package/dist/assets/{index-r-glRWC4.js → index-C176ZrGY.js} +1 -1
- package/dist/assets/{index-WMqkdikj.js → index-C30ZGfpc.js} +1 -1
- package/dist/assets/{index-DPFLhZbE.js → index-C37AcqWN.js} +3 -3
- package/dist/assets/{index-BNZdZk2f.js → index-C6TQlck4.js} +1 -1
- package/dist/assets/{index-Bp3J1Bje.js → index-C8X0heNm.js} +9 -9
- package/dist/assets/{index-djmnhckV.js → index-CAdkJIOq.js} +1 -1
- package/dist/assets/{index-D8YITHzH.js → index-CBC_Wer9.js} +1 -1
- package/dist/assets/{index-C6h7Wn7k.js → index-CDHgI8H6.js} +2 -2
- package/dist/assets/{index-BOhdDUAw.js → index-CHw20FOr.js} +1 -1
- package/dist/assets/{index-OLtm4Vax.js → index-CN6Iz54D.js} +1 -1
- package/dist/assets/{index-DYwPfkqM.js → index-COqTHOsy.js} +1 -1
- package/dist/assets/{index-CHCOmcv5.js → index-CRA-E7vT.js} +3 -3
- package/dist/assets/{index-vAWTvgNz.js → index-Cjuq6jzz.js} +1 -1
- package/dist/assets/{index-C0-id_9j.js → index-CoPxD0IK.js} +1 -1
- package/dist/assets/{index-DRg3WiNb.js → index-D0FQ0PBW.js} +1 -1
- package/dist/assets/{index-DxNJKgOf.js → index-D2L3x-3e.js} +1 -1
- package/dist/assets/{index-DMT33Ol-.js → index-D9xx6dQg.js} +1 -1
- package/dist/assets/{index-B3tyE5tE.js → index-DDKKzJTd.js} +1 -1
- package/dist/assets/{index-0z8Wehkl.js → index-DNbMr0g9.js} +1 -1
- package/dist/assets/{index-DvuAChUi.js → index-DP8ZYeBn.js} +1 -1
- package/dist/assets/{index-CDcSsFCi.js → index-DQlx7R92.js} +1 -1
- package/dist/assets/index-DbnnEsWg.js +602 -0
- package/dist/assets/{index-Bae9JCD5.js → index-DkoZJLPb.js} +1 -1
- package/dist/assets/{index-BP2ItssN.js → index-Dx67tLI6.js} +1 -1
- package/dist/assets/{index-Dt6-hLLE.js → index-DxYmU62h.js} +1 -1
- package/dist/assets/{index-8dO6vHSp.js → index-Goo6Xm5g.js} +1 -1
- package/dist/assets/{index-BelkuInn.js → index-IFtqR9kB.js} +1 -1
- package/dist/assets/{index-CazcQIXS.js → index-UbWS86BP.js} +1 -1
- package/dist/assets/{index-DFYle5Dx.js → index-Uh9lnr1l.js} +3 -3
- package/dist/assets/{index-z2Pq7re4.js → index-aH2GqWbS.js} +3 -3
- package/dist/assets/{index-D82JKtTS.js → index-cqbphrGB.js} +1 -1
- package/dist/assets/{index-BnsRewaA.js → index-naTRWvF2.js} +1 -1
- package/dist/assets/{index-a5z0oLm0.js → index-xbEyjJXs.js} +1 -1
- package/dist/assets/{index.esm-11mV4JTB.js → index.esm-Bxym9bTh.js} +1 -1
- package/dist/assets/{install-from-url-DDvu1So2.js → install-from-url-CR63kcrv.js} +1 -1
- package/dist/assets/{invitation-CAfUwKLF.js → invitation-e5aFKh62.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-BSrFrDnM.js → is-path-prefix-equal-3mf0L7Kv.js} +1 -1
- package/dist/assets/{item-BVShF35E.js → item-BTVYfgZy.js} +1 -1
- package/dist/assets/{javascript-C-mWITaw.js → javascript-DbOCeLBK.js} +1 -1
- package/dist/assets/{jsonMode-zsidC2jX.js → jsonMode-KbdXs3_f.js} +1 -1
- package/dist/assets/{liquid-DLrpRYGV.js → liquid-BsIII-5-.js} +1 -1
- package/dist/assets/{list-header-D7AmzBnQ.js → list-header-Cgpqt2I_.js} +1 -1
- package/dist/assets/{lock.svg-BSMyvmiX.js → lock.svg-BMhEJCg9.js} +1 -1
- package/dist/assets/{log-BUaBiHj2.js → log-BWCIKjMX.js} +1 -1
- package/dist/assets/{lottie-react.esm-BECODwEW.js → lottie-react.esm-BZrNX8nd.js} +1 -1
- package/dist/assets/{mdx-Dg0NgEhj.js → mdx-BAZUiExq.js} +1 -1
- package/dist/assets/{memory-CYfF9LNL.js → memory-BpFDRFnL.js} +1 -1
- package/dist/assets/{metric-D_Rq7u0J.js → metric-C_oBH6Eh.js} +1 -1
- package/dist/assets/omit-B86ZTUNL.js +1 -0
- package/dist/assets/{overview-Bf0RacwG.js → overview-BtyHyhYr.js} +1 -1
- package/dist/assets/{permission-CE3f6duj.js → permission-Cgr1bkVx.js} +1 -1
- package/dist/assets/{preference-uMowSkVr.js → preference-CMBX7HYR.js} +3 -3
- package/dist/assets/{python-D4iKigf3.js → python-DDgHlCVD.js} +1 -1
- package/dist/assets/{raf-schd.esm-PaDKXX52.js → raf-schd.esm-bUMZC-O2.js} +1 -1
- package/dist/assets/{razor-a6RZRy4M.js → razor-BubtFDQk.js} +1 -1
- package/dist/assets/{rotate-session-key-D08RekVV.js → rotate-session-key-C_hbLYKj.js} +1 -1
- package/dist/assets/{runtime-DK4a2zRH.js → runtime-Do_clgOO.js} +1 -1
- package/dist/assets/schema-Dh7IXpmO.js +1 -0
- package/dist/assets/sdk-289D2t9a.js +1 -0
- package/dist/assets/{service-D-5L0qMb.js → service-h4DCqAhM.js} +1 -1
- package/dist/assets/{shorten-label-CnHc5b4P.js → shorten-label-MBA74Aur.js} +1 -1
- package/dist/assets/{simple-select-AxSwGalf.js → simple-select-B2DCxKN7.js} +1 -1
- package/dist/assets/{spaces-cJ664FRt.js → spaces-DpGRZXdx.js} +1 -1
- package/dist/assets/{status-BpSJKdrt.js → status-BWrDIruK.js} +1 -1
- package/dist/assets/{status-CqsLbSWy.js → status-CQl0zJ-m.js} +1 -1
- package/dist/assets/{switch-control-DoypOh17.js → switch-control-Clt68OLc.js} +1 -1
- package/dist/assets/{table-icons-BB3WCZ0c.js → table-icons-Cxo67uuA.js} +1 -1
- package/dist/assets/{team-CzLA5Wke.js → team-DiQIdeJt.js} +1 -1
- package/dist/assets/{toLower-DwM8Y4G7.js → toLower-BdySL1O3.js} +1 -1
- package/dist/assets/toUpper-DGKgw5Tb.js +1 -0
- package/dist/assets/{traffic-BvD_sqrg.js → traffic-Dc8IPZxP.js} +1 -1
- package/dist/assets/{tsMode-Dk3hYncm.js → tsMode-DtaJSHg3.js} +1 -1
- package/dist/assets/{typescript-BWhP65F5.js → typescript-CB-8x_Dv.js} +1 -1
- package/dist/assets/{url-evaluation-CeV7iBRh.js → url-evaluation-D57QAxkD.js} +1 -1
- package/dist/assets/{url-join-CSV8j2nv.js → url-join-D58Xyg1O.js} +1 -1
- package/dist/assets/{use-mobile-DT5aSwoH.js → use-mobile-BFExjs55.js} +1 -1
- package/dist/assets/{use-mobile-Dwu9jRCW.js → use-mobile-Dy6kqC8a.js} +1 -1
- package/dist/assets/{useAsync-d2jpJBOI.js → useAsync-MGrzXrZd.js} +1 -1
- package/dist/assets/{useAsyncRetry-CFOUpvIi.js → useAsyncRetry-BSt33Rd7.js} +1 -1
- package/dist/assets/{useLocalStorage-CFg3RYoG.js → useLocalStorage-CkF3pDw8.js} +1 -1
- package/dist/assets/{useThemeProps-DDkjiDuo.js → useThemeProps-DqFPOBha.js} +1 -1
- package/dist/assets/{util-gAeFf-vQ.js → util-C-akKhsO.js} +1 -1
- package/dist/assets/{wait-container-DINf0squ.js → wait-container-zcpyLf3J.js} +1 -1
- package/dist/assets/{without-wallet-Bpmf04-L.js → without-wallet-BgAtXg4L.js} +1 -1
- package/dist/assets/{wrap-locale-C7tS6amm.js → wrap-locale-B_YK-Dt8.js} +1 -1
- package/dist/assets/{xml-CyGyMNDw.js → xml-DtoveOEz.js} +1 -1
- package/dist/assets/{yaml-D-MTb9Eh.js → yaml-CZnhOaIo.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-BmpWVT5T.js +0 -1
- package/dist/assets/api-DK8kaMBV.js +0 -1
- package/dist/assets/client-CBX1Obzh.js +0 -1
- package/dist/assets/cloneDeep-Djkce8fU.js +0 -1
- package/dist/assets/emotion-cache.browser.esm-CTjwgjTJ.js +0 -1
- package/dist/assets/engine-DSc6bLAX.js +0 -1
- package/dist/assets/getValidReactChildren-B5PKhq5Y.js +0 -1
- package/dist/assets/index-BnwXywaJ.js +0 -1
- package/dist/assets/index-DDurY-dJ.js +0 -602
- package/dist/assets/omit-CoM-kG66.js +0 -1
- package/dist/assets/schema-BXwrjjXM.js +0 -1
- package/dist/assets/sdk-Z_sZEcD1.js +0 -1
- package/dist/assets/toUpper-DkAQpneV.js +0 -1
|
@@ -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-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(`
|
|
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-aH2GqWbS.js";import{A as Ft}from"./Add-B6Cmlfcj.js";import{V as pc}from"./ViewList-OCDsP8cv.js";import{c as mc,H as uo,g as hc}from"./index-D2L3x-3e.js";import{u as bc}from"./use-mobile-BFExjs55.js";import{e as No}from"./client-DfQFJpJj.js";import{R as xs,a as Cr,D as gc}from"./url-evaluation-D57QAxkD.js";import{v as Bo}from"./index-BhhDAIQM.js";import{u as He}from"./team-DiQIdeJt.js";import{u as ws}from"./blocklet-D-C5_KT8.js";import{S as Cs}from"./Search-D6dHxdTz.js";import{y as Nr}from"./index-BWZUApiO.js";import{u as yc,C as Gt}from"./index.esm-Bxym9bTh.js";import{S as vc}from"./Google-BoK7t5mi.js";import{A as xc,a as hr}from"./Autocomplete-BVNyvv5G.js";import{U as wc}from"./UnfoldMore-uBcvQq1x.js";import{P as Pt}from"./permission-Cgr1bkVx.js";import{C as Br}from"./click-to-copy-DbbdyQLf.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-DAwAM0K6.js";import{u as rt}from"./useThemeProps-DqFPOBha.js";import{a as zo,b as Gc,t as Zc,T as Xc}from"./html-title-DrqnIfa0.js";import{v as Ge}from"./index-DNbMr0g9.js";import{V as Qc}from"./Verified-BuOA2crV.js";import{D as Jc}from"./DeleteOutline-J28xWbg8.js";import{E as Wo}from"./ErrorOutline-B7uA5ni5.js";import{N as eu}from"./index-xbEyjJXs.js";import{b as tu}from"./sdk-289D2t9a.js";import{u as ru}from"./index-BwBVntP8.js";import{u as nu}from"./use-mobile-Dy6kqC8a.js";import{A as ou}from"./actions-DPKf8S9T.js";import{S as iu}from"./shorten-label-MBA74Aur.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
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aF as le,j as e,hA as ce,bd as ue,bn as Z,n as G,fP as ee,f9 as te,aP as re,cs as u,H as S,hB as M,M as R,v as x,hC as H,aU as V,P as p,ay as de,w as A,s as ie,aV as ne,A as me,z as fe,aH as he,r as B,g as xe,bz as pe}from"./index-z2Pq7re4.js";import{T as ve}from"./html-title-DVCSq6YQ.js";import{u as se,C as m}from"./index.esm-11mV4JTB.js";import{S as h,A as je,a as be,b as ge,c as ye}from"./collapse-BKLgvOSl.js";import{u as ae}from"./blocklet-B517W-Ua.js";import{S as $}from"./Switch-D89bFzHz.js";const Re=le(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 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}));var K={exports:{}},O={exports:{}},z={exports:{}},J;function Te(){return J||(J=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=t;function t(d){return d==null}c.exports=s.default,c.exports.default=s.default}(z,z.exports)),z.exports}var Q;function ke(){return Q||(Q=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=E;var t=b(ce()),d=b(Te());function b(n){return n&&n.__esModule?n:{default:n}}var f=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,P=/^[-+]?[0-9]+$/;function E(n,i){(0,t.default)(n),i=i||{};var _=i.allow_leading_zeroes===!1?f:P,q=!i.hasOwnProperty("min")||(0,d.default)(i.min)||n>=i.min,l=!i.hasOwnProperty("max")||(0,d.default)(i.max)||n<=i.max,a=!i.hasOwnProperty("lt")||(0,d.default)(i.lt)||n<i.lt,C=!i.hasOwnProperty("gt")||(0,d.default)(i.gt)||n>i.gt;return _.test(n)&&q&&l&&a&&C}c.exports=s.default,c.exports.default=s.default}(O,O.exports)),O.exports}var X;function we(){return X||(X=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=b;var t=d(ke());function d(f){return f&&f.__esModule?f:{default:f}}function b(f){return(0,t.default)(f,{allow_leading_zeroes:!1,min:0,max:65535})}c.exports=s.default,c.exports.default=s.default}(K,K.exports)),K.exports}var Se=we();const Ee=ue(Se),U={enabled:!1,secure:!1,from:"",host:"",port:"",user:"",password:"",companyName:"",companyLink:"",companyAddress:"",supportEmail:""};function Ce(){const{api:c}=Z(),{blocklet:s}=ae(),{t}=G(),{confirmApi:d,confirmHolder:b}=ee(),f=s?.meta?.did,P=Object.assign({...U},s?.settings?.notification?.email||{}),{handleSubmit:E,control:n,formState:i,watch:_,reset:q}=se({defaultValues:te(P,Object.keys(U))}),l=re({testReceiver:"",testReceiverError:""}),a=_("enabled"),C=u(async(r,g,w=!0)=>{try{const{blocklet:y}=await c.configNotification({input:{did:f,notification:JSON.stringify({email:r})}}),oe=Object.assign({...U},y?.settings?.notification?.email||{});q(oe),w&&S.success(t("oauth.saveSuccess"))}catch(y){if(w)S.error(y.message||t("oauth.saveFailed"));else throw y}}),N=u(async(r,g,w)=>{try{i.isDirty&&await C(r,g,!1),await c.sendEmail({input:{did:f,receiver:w,email:JSON.stringify({body:"Your SMTP configuration is correct!",title:"Test email",type:"notification",attachments:[{type:"link",data:{url:"https://community.arcblock.io",title:"Community",image:"https://community.arcblock.io/.well-known/service/blocklet/logo-rect-dark",utm:{campaign:"test-campaign"}}}],utm:{content:"test-email-button"}})}}),S.success(t("notification.email.testSuccess"))}catch(y){S.error(y.message||t("notification.email.testfailed"))}}),W=u((r,g)=>{l.testReceiver=localStorage.getItem("test-receiver")||"",l.testReceiverError="",d.open({title:t("notification.email.testSendEmail"),content:()=>e.jsx(R,{sx:{width:"300px"},children:e.jsx(x,{sx:{mt:1},fullWidth:!0,name:"testReceiver",label:t("notification.email.inputTestReceiver"),value:l.testReceiver,onChange:w=>{l.testReceiver=w.target.value},error:!!l.testReceiverError,helperText:l.testReceiverError||" "})}),confirmButtonText:t("common.confirm"),cancelButtonText:t("common.cancel"),async onConfirm(w){const y=l.testReceiver?.trim();if(!y){l.testReceiverError=t("notification.email.receiverRequired");return}if(!M(y)){l.testReceiverError=t("notification.email.receiverInvalid");return}l.testReceiverError="",await N(r,g,y),w()}})}),F=u(r=>{const g=r?.trim();return g?M(g)?!0:t("notification.email.fromInvalid"):t("notification.email.fromRequired")}),L=u(r=>{const g=r?.trim();return g?H(g,{require_host:!1,protocols:[]})?!0:t("notification.email.hostInvalid"):t("notification.email.hostRequired")}),o=u(r=>r?Ee(r)?!0:t("notification.email.portInvalid"):t("notification.email.portRequired")),T=u(r=>r?.trim()?!0:t("notification.email.userRequired")),v=u(r=>r?.trim()?!0:t("notification.email.passwordRequired")),k=u(r=>r?.trim()&&!H(r,{protocols:["http","https"],require_protocol:!0})?t("notification.email.linkInvalid"):!0),I=u(r=>r?.trim()&&!M(r)?t("notification.email.emailInvalid"):!0),j=u(()=>!0);return e.jsxs(R,{children:[e.jsxs(Pe,{component:"form",onSubmit:E(C),disabled:!0,sx:{".section-left":{width:"160px"}},children:[e.jsx(h,{title:t("notification.email.enable"),my:2.5,children:e.jsx(m,{name:"enabled",control:n,render:({field:r})=>e.jsx(V,{control:e.jsx($,{checked:r.value,...r})})})}),e.jsx(h,{title:t("notification.email.from"),children:e.jsx(m,{name:"from",control:n,rules:{validate:a?F:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,label:t("notification.email.from"),error:!!i.errors[r.name],helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.host"),children:e.jsx(m,{name:"host",control:n,rules:{validate:a?L:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,error:!!i.errors[r.name],label:t("notification.email.host"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.port"),children:e.jsx(m,{name:"port",control:n,rules:{validate:a?o:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,type:"number",error:!!i.errors[r.name],label:t("notification.email.port"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.user"),children:e.jsx(m,{name:"user",control:n,rules:{validate:a?T:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,error:!!i.errors[r.name],label:t("notification.email.user"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.password"),children:e.jsx(m,{name:"password",control:n,rules:{validate:a?v:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,type:"password",error:!!i.errors[r.name],label:t("notification.email.password"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.secure"),children:e.jsx(m,{name:"secure",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(V,{control:e.jsx($,{checked:r.value,...r,disabled:!a})})})})}),e.jsxs(je,{children:[e.jsxs(be,{expandIcon:e.jsx(ge,{fontSize:"small"}),"aria-controls":"panel1-content",id:"panel1-header",children:[t("notification.email.signature"),e.jsx(de,{title:t("notification.email.signatureTooltip"),children:e.jsx(Re,{fontSize:"small",sx:{ml:1,cursor:"help"}})})]}),e.jsxs(ye,{children:[e.jsx(h,{title:t("notification.email.companyName"),children:e.jsx(m,{name:"companyName",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyName"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.companyLink"),children:e.jsx(m,{name:"companyLink",control:n,rules:{validate:a?k:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyLink"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.companyAddress"),children:e.jsx(m,{name:"companyAddress",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyAddress"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.supportEmail"),children:e.jsx(m,{name:"supportEmail",control:n,rules:{validate:a?I:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",type:"email",error:!!i.errors[r.name],label:t("notification.email.supportEmail"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})})]})]}),e.jsxs(R,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3},children:[e.jsx(A,{variant:"outlined",color:"warning",onClick:E(W),disabled:!a,children:t("oauth.runTest")}),e.jsx(A,{type:"submit",variant:"contained",disabled:!i.isDirty,children:t("oauth.save")})]})]}),b]})}const Pe=ie(ne)``,D={enabled:!1,endpoint:"",did:void 0,pushPath:void 0};function _e(){const{api:c}=Z(),{blocklet:s}=ae(),{t}=G(),{confirmApi:d,confirmHolder:b}=ee(),f=s?.meta?.did,P=Object.assign({...D},s?.settings?.notification?.pushKit||{}),{handleSubmit:E,control:n,formState:i,watch:_,reset:q}=se({defaultValues:te(P,Object.keys(D))}),l=re({testReceiver:"",testReceiverError:""}),a=_("enabled"),C=u(async(o,T,v=!0)=>{try{const{blocklet:k}=await c.configNotification({input:{did:f,notification:JSON.stringify({pushKit:o})}}),I=Object.assign({...D},k?.settings?.notification?.pushKit||{});q(I),v&&S.success(t("oauth.saveSuccess"))}catch(k){if(v)S.error(k.message||t("oauth.saveFailed"));else throw k}}),N=u(async(o,T)=>{try{i.isDirty&&await C(o,T,!1);const v=(s?.configs||[]).find(j=>j.key==="BLOCKLET_APP_URL")?.value,k=me(fe(v,he.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo"),{v:s?.meta?.version,t:new Date(s?.updatedAt||0).getTime()}),I={type:"passthrough",passthroughType:"messageStatus",data:{message:{title:"Test push-kit notification",body:"This is message from push-kit config test",sender:{did:s?.appDid,fullName:s?.meta?.title,avatar:k}}}};await c.sendPush({input:{did:f,receiver:l.testReceiver,notification:JSON.stringify(I)}}),S.success(t("notification.pushKit.testSuccess"))}catch(v){S.error(v.message||t("notification.pushKit.testfailed"))}}),W=u((o,T)=>{l.testReceiverError="",d.open({title:t("notification.pushKit.testSend"),content:()=>e.jsx(R,{sx:{width:"450px",maxWidth:"100%"},children:e.jsx(x,{sx:{mt:1},fullWidth:!0,name:"testReceiver",label:t("notification.pushKit.inputTestReceiver"),value:l.testReceiver,onChange:v=>{l.testReceiver=v.target.value},error:!!l.testReceiverError,helperText:l.testReceiverError||" "})}),confirmButtonText:t("common.confirm"),cancelButtonText:t("common.cancel"),async onConfirm(v){if(!l.testReceiver?.trim()){l.testReceiverError=t("notification.pushKit.receiverRequired");return}l.testReceiverError="",await N(o,T),v()}})}),F=u(o=>{const T=o?.trim();return T?H(T)?!0:t("notification.pushKit.endpointInvalid"):t("notification.pushKit.endpointRequired")}),L=u(()=>!0);return e.jsxs(R,{children:[e.jsxs(qe,{component:"form",onSubmit:E(C),disabled:!0,sx:{".section-left":{width:"160px"}},children:[e.jsx(h,{title:t("notification.pushKit.enable"),my:2.5,children:e.jsx(m,{name:"enabled",control:n,render:({field:o})=>e.jsx(V,{control:e.jsx($,{checked:o.value,...o})})})}),e.jsx(h,{title:t("notification.pushKit.endpoint"),children:e.jsx(m,{name:"endpoint",control:n,rules:{validate:a?F:L},render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",required:!0,label:t("notification.pushKit.endpoint"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})})}),e.jsxs(h,{title:t("notification.pushKit.customOptions"),children:[e.jsx(m,{name:"did",control:n,render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",label:t("notification.pushKit.did"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})}),e.jsx(m,{name:"pushPath",control:n,render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",label:t("notification.pushKit.pushPath"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})})]}),e.jsxs(R,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3},children:[e.jsx(A,{variant:"outlined",color:"warning",onClick:E(W),disabled:!a,children:t("oauth.runTest")}),e.jsx(A,{type:"submit",variant:"contained",disabled:!i.isDirty,children:t("oauth.save")})]})]}),b]})}const qe=ie(ne)``,Y=[{label:e.jsx(R,{sx:{textAlign:"center",width:"100%"},children:"Email"}),value:"email"},{label:e.jsx(R,{sx:{textAlign:"center",width:"100%"},children:"Push Kit"}),value:"pushKit"}];function We(){const[c,s]=B.useState(Y[0].value),{locale:t}=B.useContext(xe),d=pe(()=>({email:e.jsx(Ce,{}),pushKit:e.jsx(_e,{})}),[t]),b=B.useMemo(()=>({padding:"10px 0"}),[]);return e.jsxs(R,{children:[e.jsx(ve,{tabs:Y,current:c,onChange:s}),e.jsx(R,{style:b,children:d[c]})]})}export{We as B};
|
|
1
|
+
import{aF as le,j as e,hA as ce,bd as ue,bn as Z,n as G,fP as ee,f9 as te,aP as re,cs as u,H as S,hB as M,M as R,v as x,hC as H,aU as V,P as p,ay as de,w as A,s as ie,aV as ne,A as me,z as fe,aH as he,r as B,g as xe,bz as pe}from"./index-aH2GqWbS.js";import{T as ve}from"./html-title-DrqnIfa0.js";import{u as se,C as m}from"./index.esm-Bxym9bTh.js";import{S as h,A as je,a as be,b as ge,c as ye}from"./collapse-q4qT0dbm.js";import{u as ae}from"./blocklet-D-C5_KT8.js";import{S as $}from"./Switch-9q8pyvkx.js";const Re=le(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 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}));var K={exports:{}},O={exports:{}},z={exports:{}},J;function Te(){return J||(J=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=t;function t(d){return d==null}c.exports=s.default,c.exports.default=s.default}(z,z.exports)),z.exports}var Q;function ke(){return Q||(Q=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=E;var t=b(ce()),d=b(Te());function b(n){return n&&n.__esModule?n:{default:n}}var f=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,P=/^[-+]?[0-9]+$/;function E(n,i){(0,t.default)(n),i=i||{};var _=i.allow_leading_zeroes===!1?f:P,q=!i.hasOwnProperty("min")||(0,d.default)(i.min)||n>=i.min,l=!i.hasOwnProperty("max")||(0,d.default)(i.max)||n<=i.max,a=!i.hasOwnProperty("lt")||(0,d.default)(i.lt)||n<i.lt,C=!i.hasOwnProperty("gt")||(0,d.default)(i.gt)||n>i.gt;return _.test(n)&&q&&l&&a&&C}c.exports=s.default,c.exports.default=s.default}(O,O.exports)),O.exports}var X;function we(){return X||(X=1,function(c,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=b;var t=d(ke());function d(f){return f&&f.__esModule?f:{default:f}}function b(f){return(0,t.default)(f,{allow_leading_zeroes:!1,min:0,max:65535})}c.exports=s.default,c.exports.default=s.default}(K,K.exports)),K.exports}var Se=we();const Ee=ue(Se),U={enabled:!1,secure:!1,from:"",host:"",port:"",user:"",password:"",companyName:"",companyLink:"",companyAddress:"",supportEmail:""};function Ce(){const{api:c}=Z(),{blocklet:s}=ae(),{t}=G(),{confirmApi:d,confirmHolder:b}=ee(),f=s?.meta?.did,P=Object.assign({...U},s?.settings?.notification?.email||{}),{handleSubmit:E,control:n,formState:i,watch:_,reset:q}=se({defaultValues:te(P,Object.keys(U))}),l=re({testReceiver:"",testReceiverError:""}),a=_("enabled"),C=u(async(r,g,w=!0)=>{try{const{blocklet:y}=await c.configNotification({input:{did:f,notification:JSON.stringify({email:r})}}),oe=Object.assign({...U},y?.settings?.notification?.email||{});q(oe),w&&S.success(t("oauth.saveSuccess"))}catch(y){if(w)S.error(y.message||t("oauth.saveFailed"));else throw y}}),N=u(async(r,g,w)=>{try{i.isDirty&&await C(r,g,!1),await c.sendEmail({input:{did:f,receiver:w,email:JSON.stringify({body:"Your SMTP configuration is correct!",title:"Test email",type:"notification",attachments:[{type:"link",data:{url:"https://community.arcblock.io",title:"Community",image:"https://community.arcblock.io/.well-known/service/blocklet/logo-rect-dark",utm:{campaign:"test-campaign"}}}],utm:{content:"test-email-button"}})}}),S.success(t("notification.email.testSuccess"))}catch(y){S.error(y.message||t("notification.email.testfailed"))}}),W=u((r,g)=>{l.testReceiver=localStorage.getItem("test-receiver")||"",l.testReceiverError="",d.open({title:t("notification.email.testSendEmail"),content:()=>e.jsx(R,{sx:{width:"300px"},children:e.jsx(x,{sx:{mt:1},fullWidth:!0,name:"testReceiver",label:t("notification.email.inputTestReceiver"),value:l.testReceiver,onChange:w=>{l.testReceiver=w.target.value},error:!!l.testReceiverError,helperText:l.testReceiverError||" "})}),confirmButtonText:t("common.confirm"),cancelButtonText:t("common.cancel"),async onConfirm(w){const y=l.testReceiver?.trim();if(!y){l.testReceiverError=t("notification.email.receiverRequired");return}if(!M(y)){l.testReceiverError=t("notification.email.receiverInvalid");return}l.testReceiverError="",await N(r,g,y),w()}})}),F=u(r=>{const g=r?.trim();return g?M(g)?!0:t("notification.email.fromInvalid"):t("notification.email.fromRequired")}),L=u(r=>{const g=r?.trim();return g?H(g,{require_host:!1,protocols:[]})?!0:t("notification.email.hostInvalid"):t("notification.email.hostRequired")}),o=u(r=>r?Ee(r)?!0:t("notification.email.portInvalid"):t("notification.email.portRequired")),T=u(r=>r?.trim()?!0:t("notification.email.userRequired")),v=u(r=>r?.trim()?!0:t("notification.email.passwordRequired")),k=u(r=>r?.trim()&&!H(r,{protocols:["http","https"],require_protocol:!0})?t("notification.email.linkInvalid"):!0),I=u(r=>r?.trim()&&!M(r)?t("notification.email.emailInvalid"):!0),j=u(()=>!0);return e.jsxs(R,{children:[e.jsxs(Pe,{component:"form",onSubmit:E(C),disabled:!0,sx:{".section-left":{width:"160px"}},children:[e.jsx(h,{title:t("notification.email.enable"),my:2.5,children:e.jsx(m,{name:"enabled",control:n,render:({field:r})=>e.jsx(V,{control:e.jsx($,{checked:r.value,...r})})})}),e.jsx(h,{title:t("notification.email.from"),children:e.jsx(m,{name:"from",control:n,rules:{validate:a?F:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,label:t("notification.email.from"),error:!!i.errors[r.name],helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.host"),children:e.jsx(m,{name:"host",control:n,rules:{validate:a?L:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,error:!!i.errors[r.name],label:t("notification.email.host"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.port"),children:e.jsx(m,{name:"port",control:n,rules:{validate:a?o:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,type:"number",error:!!i.errors[r.name],label:t("notification.email.port"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.user"),children:e.jsx(m,{name:"user",control:n,rules:{validate:a?T:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,error:!!i.errors[r.name],label:t("notification.email.user"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.password"),children:e.jsx(m,{name:"password",control:n,rules:{validate:a?v:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",required:!0,type:"password",error:!!i.errors[r.name],label:t("notification.email.password"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.secure"),children:e.jsx(m,{name:"secure",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(V,{control:e.jsx($,{checked:r.value,...r,disabled:!a})})})})}),e.jsxs(je,{children:[e.jsxs(be,{expandIcon:e.jsx(ge,{fontSize:"small"}),"aria-controls":"panel1-content",id:"panel1-header",children:[t("notification.email.signature"),e.jsx(de,{title:t("notification.email.signatureTooltip"),children:e.jsx(Re,{fontSize:"small",sx:{ml:1,cursor:"help"}})})]}),e.jsxs(ye,{children:[e.jsx(h,{title:t("notification.email.companyName"),children:e.jsx(m,{name:"companyName",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyName"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.companyLink"),children:e.jsx(m,{name:"companyLink",control:n,rules:{validate:a?k:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyLink"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.companyAddress"),children:e.jsx(m,{name:"companyAddress",control:n,rules:{validate:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",error:!!i.errors[r.name],label:t("notification.email.companyAddress"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})}),e.jsx(h,{title:t("notification.email.supportEmail"),children:e.jsx(m,{name:"supportEmail",control:n,rules:{validate:a?I:j},render:({field:r})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...r,size:"small",type:"email",error:!!i.errors[r.name],label:t("notification.email.supportEmail"),helperText:i.errors[r.name]?.message||" ",disabled:!a})})})})]})]}),e.jsxs(R,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3},children:[e.jsx(A,{variant:"outlined",color:"warning",onClick:E(W),disabled:!a,children:t("oauth.runTest")}),e.jsx(A,{type:"submit",variant:"contained",disabled:!i.isDirty,children:t("oauth.save")})]})]}),b]})}const Pe=ie(ne)``,D={enabled:!1,endpoint:"",did:void 0,pushPath:void 0};function _e(){const{api:c}=Z(),{blocklet:s}=ae(),{t}=G(),{confirmApi:d,confirmHolder:b}=ee(),f=s?.meta?.did,P=Object.assign({...D},s?.settings?.notification?.pushKit||{}),{handleSubmit:E,control:n,formState:i,watch:_,reset:q}=se({defaultValues:te(P,Object.keys(D))}),l=re({testReceiver:"",testReceiverError:""}),a=_("enabled"),C=u(async(o,T,v=!0)=>{try{const{blocklet:k}=await c.configNotification({input:{did:f,notification:JSON.stringify({pushKit:o})}}),I=Object.assign({...D},k?.settings?.notification?.pushKit||{});q(I),v&&S.success(t("oauth.saveSuccess"))}catch(k){if(v)S.error(k.message||t("oauth.saveFailed"));else throw k}}),N=u(async(o,T)=>{try{i.isDirty&&await C(o,T,!1);const v=(s?.configs||[]).find(j=>j.key==="BLOCKLET_APP_URL")?.value,k=me(fe(v,he.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo"),{v:s?.meta?.version,t:new Date(s?.updatedAt||0).getTime()}),I={type:"passthrough",passthroughType:"messageStatus",data:{message:{title:"Test push-kit notification",body:"This is message from push-kit config test",sender:{did:s?.appDid,fullName:s?.meta?.title,avatar:k}}}};await c.sendPush({input:{did:f,receiver:l.testReceiver,notification:JSON.stringify(I)}}),S.success(t("notification.pushKit.testSuccess"))}catch(v){S.error(v.message||t("notification.pushKit.testfailed"))}}),W=u((o,T)=>{l.testReceiverError="",d.open({title:t("notification.pushKit.testSend"),content:()=>e.jsx(R,{sx:{width:"450px",maxWidth:"100%"},children:e.jsx(x,{sx:{mt:1},fullWidth:!0,name:"testReceiver",label:t("notification.pushKit.inputTestReceiver"),value:l.testReceiver,onChange:v=>{l.testReceiver=v.target.value},error:!!l.testReceiverError,helperText:l.testReceiverError||" "})}),confirmButtonText:t("common.confirm"),cancelButtonText:t("common.cancel"),async onConfirm(v){if(!l.testReceiver?.trim()){l.testReceiverError=t("notification.pushKit.receiverRequired");return}l.testReceiverError="",await N(o,T),v()}})}),F=u(o=>{const T=o?.trim();return T?H(T)?!0:t("notification.pushKit.endpointInvalid"):t("notification.pushKit.endpointRequired")}),L=u(()=>!0);return e.jsxs(R,{children:[e.jsxs(qe,{component:"form",onSubmit:E(C),disabled:!0,sx:{".section-left":{width:"160px"}},children:[e.jsx(h,{title:t("notification.pushKit.enable"),my:2.5,children:e.jsx(m,{name:"enabled",control:n,render:({field:o})=>e.jsx(V,{control:e.jsx($,{checked:o.value,...o})})})}),e.jsx(h,{title:t("notification.pushKit.endpoint"),children:e.jsx(m,{name:"endpoint",control:n,rules:{validate:a?F:L},render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",required:!0,label:t("notification.pushKit.endpoint"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})})}),e.jsxs(h,{title:t("notification.pushKit.customOptions"),children:[e.jsx(m,{name:"did",control:n,render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",label:t("notification.pushKit.did"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})}),e.jsx(m,{name:"pushPath",control:n,render:({field:o})=>e.jsx(p,{fullWidth:!0,children:e.jsx(x,{...o,size:"small",label:t("notification.pushKit.pushPath"),error:!!i.errors[o.name],helperText:i.errors[o.name]?.message||" ",disabled:!a})})})]}),e.jsxs(R,{sx:{display:"flex",justifyContent:"flex-end",gap:2,mt:3},children:[e.jsx(A,{variant:"outlined",color:"warning",onClick:E(W),disabled:!a,children:t("oauth.runTest")}),e.jsx(A,{type:"submit",variant:"contained",disabled:!i.isDirty,children:t("oauth.save")})]})]}),b]})}const qe=ie(ne)``,Y=[{label:e.jsx(R,{sx:{textAlign:"center",width:"100%"},children:"Email"}),value:"email"},{label:e.jsx(R,{sx:{textAlign:"center",width:"100%"},children:"Push Kit"}),value:"pushKit"}];function We(){const[c,s]=B.useState(Y[0].value),{locale:t}=B.useContext(xe),d=pe(()=>({email:e.jsx(Ce,{}),pushKit:e.jsx(_e,{})}),[t]),b=B.useMemo(()=>({padding:"10px 0"}),[]);return e.jsxs(R,{children:[e.jsx(ve,{tabs:Y,current:c,onChange:s}),e.jsx(R,{style:b,children:d[c]})]})}export{We as B};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./lottie-react.esm-
|
|
2
|
-
import{c1 as ht,r as se,cu as dt,aF as Ze,j as B,hn as Ct,aP as De,fc as xt,M as K,T as pe,v as Et,P as Rt,S as mt,R as yt,dI as We,s as ce,dp as ct,a3 as bt,dq as wt,bF as he,f as vt,aQ as St,G as le,f5 as It,fS as ft,ez as Fe,bd as Lt,g9 as Bt,cr as Tt,C as _t}from"./index-z2Pq7re4.js";import{D as Ht}from"./url-evaluation-CeV7iBRh.js";import{k as Ot,m as Nt}from"./index-DPFLhZbE.js";import{r as je}from"./index-B3tyE5tE.js";import"./url-join-CSV8j2nv.js";import"./_createAggregator-BrIYaxG5.js";import"./depsEqual-CSi6TcQv.js";import"./index-BP2ItssN.js";import"./index-DRYJ0xIl.js";import"./toUpper-DkAQpneV.js";function Qt(g){var u=ht(se.useState(g),2),y=u[0],R=u[1],x=dt(y),b=se.useCallback(function(){return x.current},[]);return[y,R,b]}const qt=Ze([B.jsx("path",{d:"M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m-2 13-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z",opacity:".3"},"0"),B.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"},"1")]),Mt=Ze(B.jsx("path",{d:"M12 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"})),Wt=Ze(B.jsx("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2m-2-1h8v-2H5zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5m4.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94z"})),pt=se.createContext({}),At=()=>se.useContext(pt);function Zt({children:g,restrictions:u,i18n:y,theme:R}){const[x,b]=Qt({loading:!1}),n=t=>b(a=>({...a,loading:t})),e=se.useMemo(()=>({...x,onLoading:n,restrictions:u,i18n:y}),[x]);return B.jsx(Ct,{theme:R,children:B.jsx(pt.Provider,{value:e,children:g})})}const Dt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAskSURBVHgB7d3RcdTIGoZhcSJYMoAMIAIgAiACIALIwBCBIQIgA4jAkAEZQAYmAx+6iqnjM+vxjD3qX/qk56niYm92wYve6W790ty5+GMACPCfASCEYAExBAuIIVhADMECYggWEEOwgBiCBcQQLCCGYAExBAuIIVhADMECYggWEEOwgBiCBcQQLCCGYAExBAuIIVhADMECYggWEEOwgBiCBcQQLCCGYAExBAuIIVhADMECYggWEEOwgBiCBcQQLCCGYAExBAuIIVhADMECYggWEEOwgBiCBcQQLCCGYAExBAuIIVhADMECYggWEEOwgBiCBcQQLCCGYAExBAuIIVhADMECYggWEEOwgBiCBcQQLCCGYAExBAuIIVhADMECYggWEEOwgBiCBcQQLCCGYAExBAuIIVhADMECYggWEEOwgBiCBcQQLCCGYAExBAuIIVhADMECYggWEEOwgBiCBcQQLCCGYAExBAuIIVhADMECYghWsG/fvg137twp+/X8+fOhh9+/f5f9GdrPjFyCFezz589DpXaxt7iM7Z9//hkeP348VPj69etALsEK9uXLl6FSi1WvSL5+/Xqo8OnTpy7RpYZghZrqwus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L("bedrock-yFRPpe__.png",import.meta.url).href,Gt=""+new URL("deepseek-C3x42pq3.png",import.meta.url).href,Vt=""+new URL("doubao-yPqHSkLx.png",import.meta.url).href,Ft=""+new URL("gemini-DffKpc81.png",import.meta.url).href,kt=""+new URL("google-DT1VSJ0m.png",import.meta.url).href,Yt=""+new URL("ideogram-REIjy0Er.png",import.meta.url).href,Pt=""+new URL("ollama-C7MZn2d_.png",import.meta.url).href,Ut=""+new URL("openai-DlpqJdrb.png",import.meta.url).href,zt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA0dSURBVHgB7d1Nb1XXucDxlahAogQUUi6VSG+iQCT7CmJyS0FB5WYQRreT209wP1w7yqhpB3QSKrUgEYWQFkIlLCW4aTASxrGRbRryIqX7OXBSILzY2Od4P2v9ftIRBKkDv5x/13r23us89V2nACTwdAFIQrCANAQLSEOwgDQEC0hDsIA0BAtIQ7CANAQLSEOwgDQEC0hDsIA0BAtIQ7CANAQLSEOwgDQEC0hDsIA0BAtIQ7CANAQLSEOwgDQEC0hDsIA0BAtIQ7CANAQLSEOwgDQEC0hDsIA0BAtIQ7CANAQLSEOwgDQEC0hDsIA0BAtIQ7CANAQLSEOwgDQEC0hDsIA0BAtIQ7CANAQLSEOwgDQEC0hDsIA0BAtIQ7CANAQLSEOwgDQEC0hDsIA0BAtIQ7CANAQLSEOwgDQEC0hDsIA0BAtIQ7CANAQLSEOwgDQEC0hDsIA0BAtIQ7CANAQLSEOwgDQEC0hDsIA0BAtIQ7CANAQLSEOwqM7J9y+Wy1fmCvURLKqzvHKr/OHPfx2Ea2nly0I9flSgUpcuXx28jry+r0y8uqfseP7ZQm5WWFTvg48/Le+e/HAQL3ITLJqwfPPLwRbx1787ZZuYmGDRlAjXb35/ynwrKcGiSbE9jHCd7baL5CFYNC3mW7FNNN/KQbBo3nC+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QisBpaexT83vv3709+zp5b8Ea2nARWI7EXs1SbfaghJdG9tuAFVk4Cq4E+e0atRAAN3UPTgicLgdVAllFw7JOgteDn54DAcQTWwqLJ3rLNfsyUlZIWPBkIrAVlGgXjsL74mGJPLXh7WDkJrAVl2W+ZswiaqQW/5C8DgZWTwFpI7LNkebrxnH2qTC34GLVvbm469kNgLSBDm/1ehMvcY1ymFnx8LVrw+yGwFpClzR6roaWCUwueNQismVVrs4+1hxb8kvtYag3jCKwZxRsn0yi49JsiUws+vu9z7xnaeM9HYM0k0xOMozPVKjiztODvR0Mt+G0TWDPJMgq2bqVnasH3OVGV2gTWDDK12aON3nrFowVPKwJrokz3ts3RZh9riy14e1j5CKyJ4s2R5cbmtQudmVrwc/wSWfK1eFDrOAJrgnhTZBk/1hgFH8rUgo/RMM4gy8rqbRyBNVKmNvvV1VWq5nmWryXL6pf5CKyRMrXZs5xkei/LaKgFvz0Ca4S9tNnHylR1mNKC10bPR2ANtLc2+1jZWvBGw20QWAPstc0+VqYWfJxNRn0Ca4C9ttnHynSDdLTgs5z+GlwlHOfscKcDKMAKCyhDYAFlCCygDIEFlCGwgDIEFlCGwALKEFhAGQILKENgAWUILKAMgQWUIbCAMgQWUIbAAsoQWEAZAgsoQ2ABZQgsoAyBBZQhsIAyBBZQhsACyhBYQBkCCyhDYAFlCCygDIEFlCGwgDIEFlCGwALKEFhAGQILKENgAWUILKAMgQWUIbCAMgQWUIbAAsoQWEAZAgsoQ2ABZQgsoAyBBZQhsIAyBBZQhsACyhBYQBkCCyhDYAFlCCygDIEFlCGwgDIEFlCGwALKEFhAGQILKENgAWUILKAMgQWUIbCAMgQWUIbAAsoQWEAZAgsoQ2ABZQgsoIz/AWP7oZ6cDDZCAAAAAElFTkSuQmCC",ge={anthropic:Dt,bedrock:jt,deepseek:Gt,doubao:Vt,gemini:Ft,google:kt,ideogram:Yt,ollama:Pt,openai:Ut,openrouter:zt,poe:Kt,xai:Xt},ke={width:16,height:16,borderRadius:"2px",objectFit:"contain",backgroundColor:"transparent"};function $t({onSubmit:g,models:u}){const{loading:y,i18n:R}=At(),x=De({model:"",prompt:"",number:1}),b=()=>{const t=JSON.parse(JSON.stringify(x));Object.values(x).every(E=>!!E)&&g(t)},{run:n}=xt(b,{wait:500}),e=se.useMemo(()=>{const t=JSON.parse(JSON.stringify(x));return Object.values(t).some(a=>!a)},[JSON.stringify(x)]);return B.jsxs(Jt,{onSubmit:t=>t.preventDefault(),children:[B.jsxs(K,{sx:{flex:1,height:"100%",overflow:"hidden",flexDirection:"column",display:"flex",mt:2,gap:2},children:[B.jsxs(K,{sx:{mx:2,display:"flex",flexDirection:"column",gap:1},children:[B.jsx(pe,{gutterBottom:!0,className:"title label",sx:{color:"text.primary"},children:R("aiImagePrompt")}),B.jsx(Et,{sx:{width:1},size:"small",type:"text",required:!0,placeholder:R("aiImagePromptTip"),multiline:!0,minRows:5,maxRows:6,value:x.prompt??"",onChange:t=>{t.stopPropagation(),x.prompt=t.target.value},slotProps:{htmlInput:{maxLength:1e3}}})]}),B.jsxs(K,{sx:{px:2,display:"flex",flexDirection:"column",gap:1},children:[B.jsx(pe,{gutterBottom:!0,className:"title label",sx:{color:"text.primary"},children:`${R("aiImageModel")}`}),B.jsx(Rt,{fullWidth:!0,size:"small",children:B.jsx(mt,{sx:{width:1},value:x.model,onChange:t=>{x.number=1,x.model=t.target.value},MenuProps:{disablePortal:!0},renderValue:t=>{const a=u.find(i=>`${i.provider}/${i.model}`===t);return a?B.jsxs(K,{sx:{display:"flex",alignItems:"center",gap:1},children:[ge[a.provider]&&B.jsx(K,{component:"img",src:ge[a.provider],alt:a.provider,style:ke}),B.jsx(pe,{variant:"body2",children:a.model})]}):t},children:u.map(t=>B.jsx(yt,{value:`${t.provider}/${t.model}`,children:B.jsxs(K,{sx:{display:"flex",alignItems:"center",gap:1,width:"100%"},children:[ge[t.provider]&&B.jsx(K,{component:"img",src:ge[t.provider],alt:t.provider,style:ke}),B.jsx(pe,{variant:"body2",sx:{flex:1},children:t.model})]})},`${t.provider}/${t.model}`))})})]})]}),B.jsx(We,{sx:{m:2,transition:"all 0.3s"},className:"submit-ai",variant:"contained",onClick:n,disabled:y||e,children:R(y?"aiImageGenerating":"aiImageGenerate")},y?"loading-submit":"submit")]})}const Jt=ce(K)`
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./lottie-react.esm-BZrNX8nd.js","./index-aH2GqWbS.js","./index-DGkT7afN.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{c1 as ht,r as se,cu as dt,aF as Ze,j as B,hn as Ct,aP as De,fc as xt,M as K,T as pe,v as Et,P as Rt,S as mt,R as yt,dI as We,s as ce,dp as ct,a3 as bt,dq as wt,bF as he,f as vt,aQ as St,G as le,f5 as It,fS as ft,ez as Fe,bd as Lt,g9 as Bt,cr as Tt,C as _t}from"./index-aH2GqWbS.js";import{D as Ht}from"./url-evaluation-D57QAxkD.js";import{k as Ot,m as Nt}from"./index-C37AcqWN.js";import{r as je}from"./index-DDKKzJTd.js";import"./url-join-D58Xyg1O.js";import"./_createAggregator-DAT8Viut.js";import"./depsEqual-BeaaXuRW.js";import"./index-Dx67tLI6.js";import"./index-DRYJ0xIl.js";import"./toUpper-DGKgw5Tb.js";function Qt(g){var u=ht(se.useState(g),2),y=u[0],R=u[1],x=dt(y),b=se.useCallback(function(){return x.current},[]);return[y,R,b]}const qt=Ze([B.jsx("path",{d:"M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m-2 13-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9z",opacity:".3"},"0"),B.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"},"1")]),Mt=Ze(B.jsx("path",{d:"M12 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"})),Wt=Ze(B.jsx("path",{d:"M7 20h4c0 1.1-.9 2-2 2s-2-.9-2-2m-2-1h8v-2H5zm11.5-9.5c0 3.82-2.66 5.86-3.77 6.5H5.27c-1.11-.64-3.77-2.68-3.77-6.5C1.5 5.36 4.86 2 9 2s7.5 3.36 7.5 7.5m4.87-2.13L20 8l1.37.63L22 10l.63-1.37L24 8l-1.37-.63L22 6zM19 6l.94-2.06L22 3l-2.06-.94L19 0l-.94 2.06L16 3l2.06.94z"})),pt=se.createContext({}),At=()=>se.useContext(pt);function Zt({children:g,restrictions:u,i18n:y,theme:R}){const[x,b]=Qt({loading:!1}),n=t=>b(a=>({...a,loading:t})),e=se.useMemo(()=>({...x,onLoading:n,restrictions:u,i18n:y}),[x]);return B.jsx(Ct,{theme:R,children:B.jsx(pt.Provider,{value:e,children:g})})}const Dt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAskSURBVHgB7d3RcdTIGoZhcSJYMoAMIAIgAiACIALIwBCBIQIgA4jAkAEZQAYmAx+6iqnjM+vxjD3qX/qk56niYm92wYve6W790ty5+GMACPCfASCEYAExBAuIIVhADMECYggWEEOwgBiCBcQQLCCGYAExBAuIIVhADMECYggWEEOwgBiCBcQQLCCGYAExBAuIIVhADMECYggWEEOwgBiCBcQQLCCGYAExBAuIIVhADMECYggWEEOwgBiCBcQQLCCGYAExBAuIIVhADMECYggWEEOwgBiCBcQQLCCGYAExBAuIIVhADMECYggWEEOwgBiCBcQQLCCGYAExBAuIIVhADMECYggWEEOwgBiCBcQQLCCGYAExBAuIIVhADMECYggWEEOwgBiCBcQQLCCGYAExBAuIIVhADMECYggWEEOwgBiCB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ZgATEEC4ghWEAMwQJiCBYQQ7CAGIIFxBAsIIZgATEEC4ghWEAMwQJiCBYQQ7CAGIIFxBAsIIZgATEEC4ghWEAMwQJiCBYQQ7CAGIIFxBAsIIZgATEEC4ghWECM/wKc/Y0zpWLfuAAAAABJRU5ErkJggg==",jt=""+new URL("bedrock-yFRPpe__.png",import.meta.url).href,Gt=""+new URL("deepseek-C3x42pq3.png",import.meta.url).href,Vt=""+new URL("doubao-yPqHSkLx.png",import.meta.url).href,Ft=""+new URL("gemini-DffKpc81.png",import.meta.url).href,kt=""+new URL("google-DT1VSJ0m.png",import.meta.url).href,Yt=""+new URL("ideogram-REIjy0Er.png",import.meta.url).href,Pt=""+new URL("ollama-C7MZn2d_.png",import.meta.url).href,Ut=""+new URL("openai-DlpqJdrb.png",import.meta.url).href,zt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAEsCAYAAAB5fY51AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA0dSURBVHgB7d1Nb1XXucDxlahAogQUUi6VSG+iQCT7CmJyS0FB5WYQRreT209wP1w7yqhpB3QSKrUgEYWQFkIlLCW4aTASxrGRbRryIqX7OXBSILzY2Od4P2v9ftIRBKkDv5x/13r23us89V2nACTwdAFIQrCANAQLSEOwgDQEC0hDsIA0BAtIQ7CANAQLSEOwgDQEC0hDsIA0BAtIQ7CANAQLSEOwgDQEC0hDsIA0BAtIQ7CANAQLSEOwgDQEC0hDsIA0BAtIQ7CANAQLSEOwgDQEC0hDsIA0BAtIQ7CANAQLSEOwgDQEC0hDsIA0BAtIQ7CANAQLSEOwgDQEC0hDsIA0BAtIQ7CANAQLSEOwgDQEC0hDsIA0BAtIQ7CANAQLSEOwgDQEC0hDsIA0BAtIQ7CANAQLSEOwgDQEC0hDsIA0BAtIQ7CANAQLSEOwgDQEC0hDsIA0BAtIQ7CANAQLSEOwgDQEC0hDsIA0BAtIQ7CANAQLSEOwqM7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ABZQgsoIz/AWP7oZ6cDDZCAAAAAElFTkSuQmCC",ge={anthropic:Dt,bedrock:jt,deepseek:Gt,doubao:Vt,gemini:Ft,google:kt,ideogram:Yt,ollama:Pt,openai:Ut,openrouter:zt,poe:Kt,xai:Xt},ke={width:16,height:16,borderRadius:"2px",objectFit:"contain",backgroundColor:"transparent"};function $t({onSubmit:g,models:u}){const{loading:y,i18n:R}=At(),x=De({model:"",prompt:"",number:1}),b=()=>{const t=JSON.parse(JSON.stringify(x));Object.values(x).every(E=>!!E)&&g(t)},{run:n}=xt(b,{wait:500}),e=se.useMemo(()=>{const t=JSON.parse(JSON.stringify(x));return Object.values(t).some(a=>!a)},[JSON.stringify(x)]);return B.jsxs(Jt,{onSubmit:t=>t.preventDefault(),children:[B.jsxs(K,{sx:{flex:1,height:"100%",overflow:"hidden",flexDirection:"column",display:"flex",mt:2,gap:2},children:[B.jsxs(K,{sx:{mx:2,display:"flex",flexDirection:"column",gap:1},children:[B.jsx(pe,{gutterBottom:!0,className:"title label",sx:{color:"text.primary"},children:R("aiImagePrompt")}),B.jsx(Et,{sx:{width:1},size:"small",type:"text",required:!0,placeholder:R("aiImagePromptTip"),multiline:!0,minRows:5,maxRows:6,value:x.prompt??"",onChange:t=>{t.stopPropagation(),x.prompt=t.target.value},slotProps:{htmlInput:{maxLength:1e3}}})]}),B.jsxs(K,{sx:{px:2,display:"flex",flexDirection:"column",gap:1},children:[B.jsx(pe,{gutterBottom:!0,className:"title label",sx:{color:"text.primary"},children:`${R("aiImageModel")}`}),B.jsx(Rt,{fullWidth:!0,size:"small",children:B.jsx(mt,{sx:{width:1},value:x.model,onChange:t=>{x.number=1,x.model=t.target.value},MenuProps:{disablePortal:!0},renderValue:t=>{const a=u.find(i=>`${i.provider}/${i.model}`===t);return a?B.jsxs(K,{sx:{display:"flex",alignItems:"center",gap:1},children:[ge[a.provider]&&B.jsx(K,{component:"img",src:ge[a.provider],alt:a.provider,style:ke}),B.jsx(pe,{variant:"body2",children:a.model})]}):t},children:u.map(t=>B.jsx(yt,{value:`${t.provider}/${t.model}`,children:B.jsxs(K,{sx:{display:"flex",alignItems:"center",gap:1,width:"100%"},children:[ge[t.provider]&&B.jsx(K,{component:"img",src:ge[t.provider],alt:t.provider,style:ke}),B.jsx(pe,{variant:"body2",sx:{flex:1},children:t.model})]})},`${t.provider}/${t.model}`))})})]})]}),B.jsx(We,{sx:{m:2,transition:"all 0.3s"},className:"submit-ai",variant:"contained",onClick:n,disabled:y||e,children:R(y?"aiImageGenerating":"aiImageGenerate")},y?"loading-submit":"submit")]})}const Jt=ce(K)`
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
height: 100%;
|
|
@@ -93,7 +93,7 @@ import{c1 as ht,r as se,cu as dt,aF as Ze,j as B,hn as Ct,aP as De,fc as xt,M as
|
|
|
93
93
|
& path:last-child {
|
|
94
94
|
fill: white;
|
|
95
95
|
}
|
|
96
|
-
`,sr=se.lazy(()=>he(()=>import("./lottie-react.esm-
|
|
96
|
+
`,sr=se.lazy(()=>he(()=>import("./lottie-react.esm-BZrNX8nd.js"),__vite__mapDeps([0,1,2]),import.meta.url).then(g=>({default:g.Player})));function Re({src:g}){return B.jsx(sr,{src:g,loop:!0,autoplay:!0})}function ar({options:g,handleApi:u,onSelect:y,onFinish:R,onClose:x,isMobile:b}){const{loading:n,onLoading:e,restrictions:t,i18n:a}=At(),[i,E]=se.useState([]),[s,_]=se.useState(),T=vt(),M=t?.maxNumberOfFiles,[d,A]=se.useState({}),w=De({}),r=Object.keys(w).filter(h=>w[h]);se.useEffect(()=>{s&&!d.error&&he(()=>import("./lottie-error-DeJ4jU66.js"),[],import.meta.url).then(h=>{A(I=>({...I,error:h.default}))}),g&&!i.length&&!d.loading&&he(()=>import("./lottie-loading-Npqo86wA.js"),[],import.meta.url).then(h=>{A(I=>({...I,loading:h.default}))}),!g&&!d.welcome&&he(()=>import("./lottie-welcome-oyMgXGo-.js"),[],import.meta.url).then(h=>{A(I=>({...I,welcome:h.default}))})},[s,g,i.length,d]),St(async()=>{if(g){_(void 0),e(!0);try{const h=await u({...g,responseFormat:"base64"});if(h.images){const H=(h.images||[]).map(N=>({src:N.url||`data:image/png;base64,${N.base64}`,alt:g.prompt}));E(i?[...H,...i]:H)}else _(h)}catch(h){console.error("AIImage generate error: ",h),_(h?.response?.data||h)}finally{e(!1),R()}}},[g?.number,g?.prompt]);const C=h=>{const I=Object.keys(w).filter(N=>w[N]);if(M?I.length<M:!0)w[h]?w[h]=!1:w[h]=!0;else{const N=I.pop();N!==h&&(w[N]=!1),w[h]=!w[h]}},l=h=>{if(i){const I=i.findIndex(H=>H.src===h);I>-1&&(w[h]=!1,i.splice(I,1),E([...i]))}},v=()=>{const h={width:document.querySelector(".photo-item img")?.offsetWidth||0,height:document.querySelector(".photo-item img")?.offsetHeight||0};return B.jsx(B.Fragment,{children:Array.from({length:g?.number||1}).map((I,H)=>B.jsx(le,{children:B.jsx(ct,{className:"lazy-image-skeleton",animation:"wave",variant:"rectangular",style:{borderRadius:"12px",...h}})},H))})},p=()=>s?B.jsxs(K,{sx:{width:300,height:300,m:"auto"},children:[d.error&&B.jsx(Re,{src:d.error},"error"),B.jsx(K,{sx:{textAlign:"center",color:"#25292F",wordBreak:"break-all"},children:s?.message})]}):i&&Array.isArray(i)&&i.length>0?B.jsxs(B.Fragment,{children:[B.jsx(K,{sx:{flexGrow:1,height:0,overflowX:"hidden",overflowY:"auto"},children:B.jsx(or,{sx:b?{p:0,border:"none !important"}:{p:2},children:B.jsxs(le,{spacing:2,container:!0,className:"photo-wrapper",children:[n&&B.jsx(v,{}),i.map((h,I)=>B.jsx(le,{className:"photo-item",children:B.jsx(er,{...h,selected:w[h.src],style:{objectFit:"cover",cursor:"pointer",transition:"all 0.3s",border:w[h.src]?`2px solid ${T.palette.primary.main}`:"2px solid transparent",WebkitUserDrag:"none",width:"100%",height:"100%"},onClick:()=>{C(h.src)},onDelete:()=>{l(h.src)}})},h.src))]})})}),B.jsxs(K,{sx:{mt:2,display:"flex",justifyContent:x?"space-between":"flex-end",button:{borderRadius:"30px",height:40,textTransform:"none"}},children:[x&&typeof x=="function"&&B.jsx(We,{color:"primary",variant:"outlined",onClick:x,children:B.jsx(It,{})}),B.jsx(We,{color:"primary",variant:"contained",disabled:!r.length||n,onClick:()=>{const h=Ot(i,"src");y(r.map(I=>h[I]))},children:r.length?a("aiImageSelectedUse"):a("aiImageSelectedTip")})]})]}):g?B.jsx(K,{sx:{width:220,height:220,m:"auto"},children:d.loading&&B.jsx(Re,{src:d.loading},"loading")}):B.jsx(K,{sx:{width:300,height:300,m:"auto"},children:d.welcome&&B.jsx(Re,{src:d.welcome},"welcome")});return B.jsx(ir,{children:p()})}const ir=ce(K)`
|
|
97
97
|
min-height: 100%;
|
|
98
98
|
display: flex;
|
|
99
99
|
flex-direction: column;
|