@abtnode/webapp 1.16.52-beta-20251002-030549-0f91dab2 → 1.16.52-beta-20251003-083412-fdfc4e36
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-V0ywFO6Q.js → AdapterDayjs-ynIynV8Q.js} +1 -1
- package/dist/assets/{Add-CzkO3Pzz.js → Add-jM4hRnB8.js} +1 -1
- package/dist/assets/ArrowDropDown-DRP1t_Je.js +1 -0
- package/dist/assets/{Autocomplete-BW388eBP.js → Autocomplete-DDWyM-RF.js} +1 -1
- package/dist/assets/{Breadcrumbs-NrwCYnz0.js → Breadcrumbs-Cf7tjXMM.js} +1 -1
- package/dist/assets/{ButtonGroup-o6LmfxeX.js → ButtonGroup-CmmNlsZu.js} +1 -1
- package/dist/assets/{CSSTransition-DsMKw-p5.js → CSSTransition-BxoecrqG.js} +1 -1
- package/dist/assets/{CallMerge-D1XWrRjM.js → CallMerge-D5vw1D-8.js} +1 -1
- package/dist/assets/{CardContent-D4rz6FRp.js → CardContent-DcoNfxTj.js} +1 -1
- package/dist/assets/{ChevronLeft-D4CgzTJY.js → ChevronLeft-B91P9EIM.js} +1 -1
- package/dist/assets/{ChevronRight-DXz-F6L7.js → ChevronRight-CRdUgf3M.js} +1 -1
- package/dist/assets/{Clear-NASbJHS6.js → Clear-z1mronWh.js} +1 -1
- package/dist/assets/{DeleteOutline-DsnSViGb.js → DeleteOutline-D3OFK2IX.js} +1 -1
- package/dist/assets/{Done-D4PPkPui.js → Done-DdxHjl7Y.js} +1 -1
- package/dist/assets/{Edit-V0eiBsGU.js → Edit-DE-EVJBw.js} +1 -1
- package/dist/assets/{ErrorOutline-DA3_RUVz.js → ErrorOutline-8GJFRZb7.js} +1 -1
- package/dist/assets/{FilterList-Y719g2Zi.js → FilterList-D9zUGXf3.js} +1 -1
- package/dist/assets/{Google-B3YPvJDV.js → Google-BNdTixOG.js} +1 -1
- package/dist/assets/{HelpOutline-c-XuWHxw.js → HelpOutline-wBkMgJgc.js} +1 -1
- package/dist/assets/{Launch-COjBPQdg.js → Launch-h5Mm_fSk.js} +1 -1
- package/dist/assets/{Link-qCg-dCX5.js → Link-0gkXi8Uc.js} +1 -1
- package/dist/assets/{ListItemButton-BTbVPhQ8.js → ListItemButton-gdaIHWxW.js} +1 -1
- package/dist/assets/{ListSubheader-CA8Y4o8o.js → ListSubheader-DEo9Y0oE.js} +1 -1
- package/dist/assets/{LoadingButton-DN5HznZc.js → LoadingButton-CQaWNIUw.js} +1 -1
- package/dist/assets/{MoreVert-BQ022_rm.js → MoreVert-Pb124BOp.js} +1 -1
- package/dist/assets/{OpenInNew-BB6MBnzE.js → OpenInNew-Dw52Y_B1.js} +1 -1
- package/dist/assets/{Refresh-r7y4CgN5.js → Refresh-BnuukUzy.js} +1 -1
- package/dist/assets/{Search-CGTjTzzo.js → Search-Tb99rXM1.js} +1 -1
- package/dist/assets/{Stepper-CfXniFN2.js → Stepper-CbGLljx1.js} +1 -1
- package/dist/assets/{Switch-DYjTi7gg.js → Switch-CcE13x07.js} +1 -1
- package/dist/assets/{TableSearch-BwtXbQG-.js → TableSearch-DuFRIymX.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-DvCR9SNw.js → ToggleButtonGroup-DnQIM247.js} +1 -1
- package/dist/assets/{UnfoldMore-B3amhCTg.js → UnfoldMore-Cs9UJfod.js} +1 -1
- package/dist/assets/{Verified-DmBfm1uD.js → Verified-BXDCprZ6.js} +1 -1
- package/dist/assets/{VerifiedUser-mZGHgzQb.js → VerifiedUser-DSq46JpK.js} +1 -1
- package/dist/assets/{ViewList-DtqzxGZt.js → ViewList-Bwmsjb-W.js} +1 -1
- package/dist/assets/{_createAggregator-nGamgeOn.js → _createAggregator-BxcwvNpY.js} +1 -1
- package/dist/assets/{actions-DheKYBlc.js → actions-DLLKZONE.js} +1 -1
- package/dist/assets/{actions-6ll7jsa3.js → actions-rTa6xTCO.js} +1 -1
- package/dist/assets/{agreement-CHm-YwcP.js → agreement-B-C6k3dh.js} +1 -1
- package/dist/assets/api-DU97-L5w.js +1 -0
- package/dist/assets/{appearance-BISi6FkN.js → appearance-C_ZrIb6T.js} +1 -1
- package/dist/assets/{audit-logs-DylpExtV.js → audit-logs-a8TDzTpJ.js} +1 -1
- package/dist/assets/{base-chart-DWjEmmtF.js → base-chart-CsfVVVaW.js} +1 -1
- package/dist/assets/{blocklet-DwOY6PM2.js → blocklet-D2v2yrD1.js} +1 -1
- package/dist/assets/{chain-CrqO5ZBK.js → chain-BVuGoB9F.js} +1 -1
- package/dist/assets/{click-to-copy-QDhx8_BO.js → click-to-copy-YqLtfgdJ.js} +1 -1
- package/dist/assets/client-CygehW6E.js +1 -0
- package/dist/assets/cloneDeep-CtzOdLpG.js +1 -0
- package/dist/assets/{collapse-C5JgD0iT.js → collapse-VOXCvZgb.js} +1 -1
- package/dist/assets/{config-navigation-CBsV4a0j.js → config-navigation-DM0b2Cg-.js} +3 -3
- package/dist/assets/{connect-to-CKdf31e5.js → connect-to-COqS5MEC.js} +1 -1
- package/dist/assets/{cssMode-aqWJN-f_.js → cssMode-B2Davz55.js} +1 -1
- package/dist/assets/{delete-confirm-DFLlapHl.js → delete-confirm-D9u95VbB.js} +1 -1
- package/dist/assets/{depsEqual-CHA3TYmk.js → depsEqual-CWwWddzp.js} +1 -1
- package/dist/assets/{detail-CNTenkKV.js → detail-BFkqhGo0.js} +3 -3
- package/dist/assets/{domains-WhieF3AY.js → domains-BMwan0Xl.js} +1 -1
- package/dist/assets/{download-BH2P43wY.js → download-DR111TNZ.js} +1 -1
- package/dist/assets/{edit.svg-CkS6r8rY.js → edit.svg-BNeKaJEn.js} +1 -1
- package/dist/assets/emotion-cache.browser.esm-C8ljUt78.js +1 -0
- package/dist/assets/engine-bdQJ6xaO.js +1 -0
- package/dist/assets/{freemarker2-Cybw0O8m.js → freemarker2-DmpJxbr-.js} +1 -1
- package/dist/assets/{get-safe-url-CwiNWKY8.js → get-safe-url-rlvCCO-T.js} +1 -1
- package/dist/assets/getValidReactChildren-CcUpWB9N.js +1 -0
- package/dist/assets/{graphqlMode-gSVowOId.js → graphqlMode-ByGCv6UF.js} +2 -2
- package/dist/assets/{handlebars-63KuA5s0.js → handlebars-MEqJtqfP.js} +1 -1
- package/dist/assets/{html-DV0Fd3Kx.js → html-CCGCdbw9.js} +1 -1
- package/dist/assets/{html-title-8eEQvwSm.js → html-title-COubPnYH.js} +1 -1
- package/dist/assets/{htmlMode-DeseqIni.js → htmlMode-CjFv--lV.js} +1 -1
- package/dist/assets/{iframe-BS88FRwX.js → iframe-e7rmLwl_.js} +1 -1
- package/dist/assets/{index-Cka3nP81.js → index-4MzySaef.js} +1 -1
- package/dist/assets/{index-7KYdF6ej.js → index-4hZA714y.js} +1 -1
- package/dist/assets/{index-B93qsZTj.js → index-9P62KwUj.js} +9 -9
- package/dist/assets/{index-BOv_-aOp.js → index-B08J5Jou.js} +1 -1
- package/dist/assets/{index-CzA1rttv.js → index-B2L8DxHf.js} +1 -1
- package/dist/assets/{index-DGINP96S.js → index-B3IDuYIq.js} +1 -1
- package/dist/assets/{index-B3uFEeJa.js → index-BGr1EEHV.js} +1 -1
- package/dist/assets/{index-DHL_Vi4i.js → index-BJ_u2LJr.js} +3 -3
- package/dist/assets/{index-BjWva3kW.js → index-BP3CDZwK.js} +1 -1
- package/dist/assets/{index-_d7QPgTP.js → index-BRRa2CU0.js} +1 -1
- package/dist/assets/{index-BNPmFilX.js → index-BVHVc8MF.js} +1 -1
- package/dist/assets/{index-CI4dlXTe.js → index-Bikf4Jgw.js} +3 -3
- package/dist/assets/{index-CQ74V8K8.js → index-BoRTaxzn.js} +1 -1
- package/dist/assets/{index-BsAylPTP.js → index-BuDXXzgj.js} +1 -1
- package/dist/assets/{index-w_ABp53I.js → index-BxGJp4lK.js} +1 -1
- package/dist/assets/{index-nOMeb0Cp.js → index-CDxpCxHc.js} +1 -1
- package/dist/assets/{index-BwKc3rqr.js → index-CHtEyM-j.js} +2 -2
- package/dist/assets/{index-DgzKW9Ex.js → index-CSewbl1C.js} +3 -3
- package/dist/assets/{index-CT8o9Y85.js → index-CUBS2Stp.js} +3 -3
- package/dist/assets/{index-Uzc8DiTP.js → index-CY5zCs97.js} +1 -1
- package/dist/assets/{index-DFdk3ofB.js → index-CdtdLCAn.js} +1 -1
- package/dist/assets/{index-TwUe_Tvk.js → index-CevdVAv0.js} +1 -1
- package/dist/assets/{index-DZM3J5Wp.js → index-Co4oyryj.js} +1 -1
- package/dist/assets/{index-BMFG6xYn.js → index-Cq4PGV-y.js} +1 -1
- package/dist/assets/{index-B0bwsr2k.js → index-Cut2JJAu.js} +1 -1
- package/dist/assets/{index-9hx_-WS9.js → index-CvxYF7xI.js} +1 -1
- package/dist/assets/{index-DZ4p_r8e.js → index-D6p8W37K.js} +1 -1
- package/dist/assets/{index-BMbE3uR8.js → index-DBbBuJUS.js} +1 -1
- package/dist/assets/{index-DgZWZUlS.js → index-DDZY7Qyb.js} +1 -1
- package/dist/assets/{index-BkM0NufG.js → index-DEh5WwZP.js} +1 -1
- package/dist/assets/{index-QSBtrt6h.js → index-DYopKv7j.js} +1 -1
- package/dist/assets/{index-h_zu579g.js → index-D_ljjR6n.js} +1 -1
- package/dist/assets/{index-CEIY_r6h.js → index-Dk909d5m.js} +3 -3
- package/dist/assets/{index-C0ZKfJQm.js → index-Dxbv4luZ.js} +1 -1
- package/dist/assets/index-Dy5upDeP.js +1 -0
- package/dist/assets/{index-phRP0JhX.js → index-E6rXB0d3.js} +1 -1
- package/dist/assets/{index-CbEOHXQc.js → index-Gcmb5nmv.js} +1 -1
- package/dist/assets/{index-IlXLx7We.js → index-IXall6H-.js} +1 -1
- package/dist/assets/{index-DXLVGozs.js → index-WgoWvXv7.js} +1 -1
- package/dist/assets/{index-Bj3vXLSw.js → index-aL7xy5h_.js} +2 -2
- package/dist/assets/{index-CB1cOH1l.js → index-g2rGps1V.js} +1 -1
- package/dist/assets/{index-BlmPoc3t.js → index-jdVhK-k1.js} +1 -1
- package/dist/assets/{index-C5HHk93s.js → index-mwjKB0fy.js} +1 -1
- package/dist/assets/{index-BjhmwRPF.js → index-s2DiZ-3m.js} +1 -1
- package/dist/assets/{index-Cw4aE7m_.js → index-vtO4pJl8.js} +1 -1
- package/dist/assets/{index.esm-ItCPJOAO.js → index.esm-CqU9DX3V.js} +1 -1
- package/dist/assets/{install-from-url-DvUzVhpS.js → install-from-url-sgmF5wLe.js} +1 -1
- package/dist/assets/{invitation-DbyKhAZm.js → invitation-DK0ruxeD.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-BvAHrQj-.js → is-path-prefix-equal-CZJiFi6V.js} +1 -1
- package/dist/assets/{item-gJv-5KQT.js → item-C0jYlCp1.js} +1 -1
- package/dist/assets/{javascript-BIMIemmE.js → javascript-BnP9zVyR.js} +1 -1
- package/dist/assets/{jsonMode-3N-YuMar.js → jsonMode-CruNLq9W.js} +1 -1
- package/dist/assets/{liquid-CQYhn0Yk.js → liquid-DKrj-4IB.js} +1 -1
- package/dist/assets/{list-header-D5PvV4Ns.js → list-header-BHHhumVP.js} +1 -1
- package/dist/assets/{lock.svg-Dml_SUcw.js → lock.svg-D-lwd6lB.js} +1 -1
- package/dist/assets/{log-hCli4ygZ.js → log-B_cskpjf.js} +1 -1
- package/dist/assets/{lottie-react.esm-C1KoLgaH.js → lottie-react.esm-Cp8h5uwb.js} +1 -1
- package/dist/assets/{mdx-Fu7jp7wB.js → mdx-BO7bGrp9.js} +1 -1
- package/dist/assets/{memory-Da1Mktb-.js → memory-BZKspppZ.js} +1 -1
- package/dist/assets/{metric-DKt7Dv_o.js → metric-DbkD5azW.js} +1 -1
- package/dist/assets/omit-DrNnhRu8.js +1 -0
- package/dist/assets/{overview-CKMQGhx9.js → overview-BPESm6K2.js} +1 -1
- package/dist/assets/{permission-CY9xhitI.js → permission-C2JVndtl.js} +1 -1
- package/dist/assets/{preference-DV6_upOl.js → preference-C0didjRQ.js} +3 -3
- package/dist/assets/{python-Bi1toJg2.js → python-BX_FzZjV.js} +1 -1
- package/dist/assets/{raf-schd.esm-pJPdUflv.js → raf-schd.esm-BN6bIoLi.js} +1 -1
- package/dist/assets/{razor-DrpZeVMl.js → razor-4cOe7uw1.js} +1 -1
- package/dist/assets/{rotate-session-key-efxghCi1.js → rotate-session-key-M6G1sqqU.js} +1 -1
- package/dist/assets/{runtime-jGUL5QuT.js → runtime-bS4jHIMk.js} +1 -1
- package/dist/assets/schema-Cley8WjX.js +1 -0
- package/dist/assets/sdk-Hf9i-HPB.js +1 -0
- package/dist/assets/{service-MB0T2aB0.js → service-Bntba9IH.js} +1 -1
- package/dist/assets/{shorten-label-DTPTvpJ1.js → shorten-label-kkxGuhZA.js} +1 -1
- package/dist/assets/{simple-select-DAk8AY1P.js → simple-select-B90IPWAE.js} +1 -1
- package/dist/assets/{spaces-DH7TZUlN.js → spaces-dDTrbarI.js} +1 -1
- package/dist/assets/{status-DX1yJUTs.js → status-DCPe7gNc.js} +1 -1
- package/dist/assets/{status--V5SQYgM.js → status-DCyrqGHF.js} +1 -1
- package/dist/assets/{switch-control-D1F-cHNq.js → switch-control-C69ynf_5.js} +1 -1
- package/dist/assets/{table-icons-CcdGfjTh.js → table-icons-Bs8Y0nBG.js} +1 -1
- package/dist/assets/{team-BrSgmhmc.js → team-BxwSb9mM.js} +1 -1
- package/dist/assets/{toLower-ByD7rJFr.js → toLower-P06CgXse.js} +1 -1
- package/dist/assets/toUpper-Dy3QdQYT.js +1 -0
- package/dist/assets/{traffic-wbGiv6hW.js → traffic-BZ8lLw4J.js} +1 -1
- package/dist/assets/{tsMode-C7gy9xLC.js → tsMode-CgD-kexT.js} +1 -1
- package/dist/assets/{typescript-DJoWvhbC.js → typescript-DJbVGDUE.js} +1 -1
- package/dist/assets/{url-evaluation-Bsg9-ill.js → url-evaluation-MOJQy0H3.js} +1 -1
- package/dist/assets/{url-join-DpnUEv7-.js → url-join-K5H16-b7.js} +1 -1
- package/dist/assets/{use-mobile-CuAbTch1.js → use-mobile-BkYXnir8.js} +1 -1
- package/dist/assets/{use-mobile-CeVGXvtj.js → use-mobile-DqkbOKR3.js} +1 -1
- package/dist/assets/{useAsync-DxwaXQxu.js → useAsync-Di0F7xU-.js} +1 -1
- package/dist/assets/{useAsyncRetry-C_rRPNUy.js → useAsyncRetry-CbN3xpzM.js} +1 -1
- package/dist/assets/{useLocalStorage-CoABMXGW.js → useLocalStorage-h56BQKDt.js} +1 -1
- package/dist/assets/{useThemeProps-DJWWp5kh.js → useThemeProps-CYFIeocr.js} +1 -1
- package/dist/assets/{util-BdUmm2ZH.js → util-hZD8H1s2.js} +1 -1
- package/dist/assets/{wait-container-DJAGSnuK.js → wait-container-oi7GlZZ2.js} +1 -1
- package/dist/assets/{without-wallet-v9tjrlHV.js → without-wallet-CE92wsIs.js} +1 -1
- package/dist/assets/{wrap-locale-Ba4TE2iy.js → wrap-locale-GMObIRQ7.js} +1 -1
- package/dist/assets/{xml-avm6PJAG.js → xml-Dq1tM5aU.js} +1 -1
- package/dist/assets/{yaml-DO7DaC1O.js → yaml-BUwJ6zQB.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-190S9d7I.js +0 -1
- package/dist/assets/api-D4aKRawp.js +0 -1
- package/dist/assets/client-Beap4FeV.js +0 -1
- package/dist/assets/cloneDeep-BGXXbqSz.js +0 -1
- package/dist/assets/emotion-cache.browser.esm-BVx7paDx.js +0 -1
- package/dist/assets/engine-BcZHSV9-.js +0 -1
- package/dist/assets/getValidReactChildren-BiC2BfQo.js +0 -1
- package/dist/assets/index-BqWVYrv4.js +0 -1
- package/dist/assets/omit-VPuIA8hg.js +0 -1
- package/dist/assets/schema-D7YjS37r.js +0 -1
- package/dist/assets/sdk-BEqYN1lC.js +0 -1
- package/dist/assets/toUpper-jya-zxKt.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as A,fJ as il,c1 as Ao,fK as sl,ft as Do,fL as al,cS as Oo,aF as ar,j as l,fM as ll,fN as cl,cs as pt,bd as Ji,bz as mt,M as $,as as es,ay as bt,T as Re,eO as ts,aP as gt,fO as ul,m as Ie,E as Qn,fP as Jn,fQ as dl,cW as rs,cr as ns,bk as Cr,dI as qe,dG as os,O as rr,aU as Mt,fR as fl,C as yt,fS as nr,ez as Je,fT as is,fU as pl,fV as ml,fW as hl,fX as bl,fY as gl,fZ as ss,f_ as yl,f$ as eo,g0 as vl,g1 as wl,g2 as xl,g3 as Cl,eA as to,g4 as as,eB as jl,cF as Fn,eC as Sl,dE as Tl,g5 as El,g6 as kl,bn as Fe,g7 as Pl,H as Me,X as Ue,o as C,f as ro,f5 as ls,n as vt,bU as Il,dL as Rl,bv as Al,au as lt,g8 as cs,S as jr,g9 as us,$ as st,t as Et,a_ as Dl,b1 as Ol,fd as _l,ga as Ml,gb as Ll,gc as Nl,D as _r,bg as no,a3 as er,gd as Bl,V as jt,bX as Ut,bY as $t,cg as ds,dO as tt,e_ as pe,b_ as Fl,b8 as _e,dc as Sr,d6 as fs,b$ as ct,c0 as It,R as kt,dK as ps,d9 as ql,ge as Mr,gf as ms,bf as $e,P as or,bp as Ul,Q as qn,gg as Tr,gh as $l,at as ir,v as Ve,gi as Vl,h as Un,aW as zl,w as Wl,x as Kl,s as Ke,g as lr,ac as cr,bA as Nt,gj as Hl,dF as Yl,dm as Gl,aH as ht,dx as Zl,gk as Xl,eD as Ql,gl as hs,gm as Er,gn as Jl,dH as _o,b as St,W as oo,dJ as ec,z as tc,br as io,bs,bt as so,dp as fr,aD as rc,fI as gs,aS as nc,aE as oc,a8 as ic,y as sc,go as ac,bC as lc,U as cc,N as uc}from"./index-CI4dlXTe.js";import{A as Bt}from"./Add-CzkO3Pzz.js";import{V as dc}from"./ViewList-DtqzxGZt.js";import{c as fc,H as ao,g as pc}from"./index-h_zu579g.js";import{u as mc}from"./use-mobile-CeVGXvtj.js";import{e as Mo}from"./client-Beap4FeV.js";import{R as ys,a as wr,D as hc}from"./url-evaluation-Bsg9-ill.js";import{v as Lo}from"./index-DGINP96S.js";import{u as He}from"./team-BrSgmhmc.js";import{u as vs}from"./blocklet-DwOY6PM2.js";import{S as ws}from"./Search-CGTjTzzo.js";import{y as Lr}from"./index-w_ABp53I.js";import{u as bc}from"./index-BqWVYrv4.js";import{S as gc}from"./Google-B3YPvJDV.js";import{A as yc,a as pr}from"./Autocomplete-BW388eBP.js";import{U as vc}from"./UnfoldMore-B3amhCTg.js";import{P as Pt}from"./permission-CY9xhitI.js";import{C as Nr}from"./click-to-copy-QDhx8_BO.js";import{s as wt,g as wc,S as xc,u as dt,a as xs,b as ur,c as Cs,d as Br,e as js,f as lo,P as Ss,D as Ts,h as kr,M as Qt,i as Es,j as No,k as tr,v as Cc,l as jc,m as Bo,n as Sc,o as Tc,p as Ec,q as kc,C as Pc,r as Ic,t as Pr,w as _t,x as Ir,y as Fo,z as qo,A as Rc,T as Ac,B as co,E as Dc,F as Oc,G as _c,H as Mc,I as Lc,J as Nc,K as Bc,L as mr,N as Lt,O as ks,Q as Fc,V as $n,R as Ps,U as qc,W as Uo,X as Uc,Y as $c,Z as Vc,_ as zc,$ as Wc,a0 as Kc}from"./AdapterDayjs-V0ywFO6Q.js";import{u as rt}from"./useThemeProps-DJWWp5kh.js";import{a as $o,b as Hc,t as Yc,T as Gc}from"./html-title-8eEQvwSm.js";import{v as Ge}from"./index-BkM0NufG.js";import{u as Zc,V as Xc}from"./Verified-DmBfm1uD.js";import{D as Qc}from"./DeleteOutline-DsnSViGb.js";import{E as Vo}from"./ErrorOutline-DA3_RUVz.js";import{N as Jc}from"./index-phRP0JhX.js";import{b as eu}from"./sdk-BEqYN1lC.js";import{u as tu}from"./use-mobile-CuAbTch1.js";import{A as ru}from"./actions-6ll7jsa3.js";import{S as nu}from"./shorten-label-DTPTvpJ1.js";const ou=fc(A.useLayoutEffect);var zo={},Wo;function iu(){return Wo||(Wo=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 h=f,j=e(h);j;)h=j.ownerDocument,j=e(h);return h}(window.document),r=[],n=null,o=null;function u(f){this.time=f.time,this.target=f.target,this.rootBounds=g(f.rootBounds),this.boundingClientRect=g(f.boundingClientRect),this.intersectionRect=g(f.intersectionRect||v()),this.isIntersecting=!!f.intersectionRect;var h=this.boundingClientRect,j=h.width*h.height,T=this.intersectionRect,S=T.width*T.height;j?this.intersectionRatio=Number((S/j).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function i(f,h){var j=h||{};if(typeof f!="function")throw new Error("callback must be a function");if(j.root&&j.root.nodeType!=1&&j.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=s(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=f,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(j.rootMargin),this.thresholds=this._initThresholds(j.threshold),this.root=j.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,h){!f||!h?o=v():o=x(f,h),r.forEach(function(j){j._checkForIntersections()})}),n},i._resetCrossOriginUpdater=function(){n=null,o=null},i.prototype.observe=function(f){var h=this._observationTargets.some(function(j){return j.element==f});if(!h){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(h){return h.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 h=f||[0];return Array.isArray(h)||(h=[h]),h.sort().filter(function(j,T,S){if(typeof j!="number"||isNaN(j)||j<0||j>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return j!==S[T-1]})},i.prototype._parseRootMargin=function(f){var h=f||"0px",j=h.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 j[1]=j[1]||j[0],j[2]=j[2]||j[0],j[3]=j[3]||j[1],j},i.prototype._monitorIntersections=function(f){var h=f.defaultView;if(h&&this._monitoringDocuments.indexOf(f)==-1){var j=this._checkForIntersections,T=null,S=null;this.POLL_INTERVAL?T=h.setInterval(j,this.POLL_INTERVAL):(c(h,"resize",j,!0),c(f,"scroll",j,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in h&&(S=new h.MutationObserver(j),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",j,!0)),d(f,"scroll",j,!0),S&&S.disconnect()});var R=this.root&&(this.root.ownerDocument||this.root)||t;if(f!=R){var E=e(f);E&&this._monitorIntersections(E.ownerDocument)}}},i.prototype._unmonitorIntersections=function(f){var h=this._monitoringDocuments.indexOf(f);if(h!=-1){var j=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!=j;){var B=e(k);if(k=B&&B.ownerDocument,k==f)return!0}return!1});if(!T){var S=this._monitoringUnsubscribes[h];if(this._monitoringDocuments.splice(h,1),this._monitoringUnsubscribes.splice(h,1),S(),f!=j){var R=e(f);R&&this._unmonitorIntersections(R.ownerDocument)}}}},i.prototype._unmonitorAllIntersections=function(){var f=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var h=0;h<f.length;h++)f[h]()},i.prototype._checkForIntersections=function(){if(!(!this.root&&n&&!o)){var f=this._rootIsInDom(),h=f?this._getRootRect():v();this._observationTargets.forEach(function(j){var T=j.element,S=m(T),R=this._rootContainsTarget(T),E=j.entry,k=f&&R&&this._computeTargetAndRootIntersection(T,S,h),B=null;this._rootContainsTarget(T)?(!n||this.root)&&(B=h):B=v();var q=j.entry=new u({time:a(),target:T,boundingClientRect:S,rootBounds:B,intersectionRect:k});E?f&&R?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,h,j){if(window.getComputedStyle(f).display!="none"){for(var T=h,S=b(f),R=!1;!R&&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(R=!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=j;else{var B=b(S),q=B&&m(B),H=B&&this._computeTargetAndRootIntersection(B,q,j);q&&H?(S=B,E=x(q,H)):(S=null,T=null)}else{var se=S.ownerDocument;S!=se.body&&S!=se.documentElement&&k.overflow!="visible"&&(E=m(S))}if(E&&(T=w(E,T)),!T)break;S=S&&b(S)}return T}},i.prototype._getRootRect=function(){var f;if(this.root&&!y(this.root))f=m(this.root);else{var h=y(this.root)?this.root:t,j=h.documentElement,T=h.body;f={top:0,left:0,right:j.clientWidth||T.clientWidth,width:j.clientWidth||T.clientWidth,bottom:j.clientHeight||T.clientHeight,height:j.clientHeight||T.clientHeight}}return this._expandRectByRootMargin(f)},i.prototype._expandRectByRootMargin=function(f){var h=this._rootMarginValues.map(function(T,S){return T.unit=="px"?T.value:T.value*(S%2?f.width:f.height)/100}),j={top:f.top-h[0],right:f.right+h[1],bottom:f.bottom+h[2],left:f.left-h[3]};return j.width=j.right-j.left,j.height=j.bottom-j.top,j},i.prototype._hasCrossedThreshold=function(f,h){var j=f&&f.isIntersecting?f.intersectionRatio||0:-1,T=h.isIntersecting?h.intersectionRatio||0:-1;if(j!==T)for(var S=0;S<this.thresholds.length;S++){var R=this.thresholds[S];if(R==j||R==T||R<j!=R<T)return!0}},i.prototype._rootIsInDom=function(){return!this.root||p(t,this.root)},i.prototype._rootContainsTarget=function(f){var h=this.root&&(this.root.ownerDocument||this.root)||t;return p(h,f)&&(!this.root||h==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 a(){return window.performance&&performance.now&&performance.now()}function s(f,h){var j=null;return function(){j||(j=setTimeout(function(){f(),j=null},h))}}function c(f,h,j,T){typeof f.addEventListener=="function"?f.addEventListener(h,j,T):typeof f.attachEvent=="function"&&f.attachEvent("on"+h,j)}function d(f,h,j,T){typeof f.removeEventListener=="function"?f.removeEventListener(h,j,T):typeof f.detachEvent=="function"&&f.detachEvent("on"+h,j)}function w(f,h){var j=Math.max(f.top,h.top),T=Math.min(f.bottom,h.bottom),S=Math.max(f.left,h.left),R=Math.min(f.right,h.right),E=R-S,k=T-j;return E>=0&&k>=0&&{top:j,bottom:T,left:S,right:R,width:E,height:k}||null}function m(f){var h;try{h=f.getBoundingClientRect()}catch{}return h?(h.width&&h.height||(h={top:h.top,right:h.right,bottom:h.bottom,left:h.left,width:h.right-h.left,height:h.bottom-h.top}),h):v()}function v(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function g(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 x(f,h){var j=h.top-f.top,T=h.left-f.left;return{top:j,left:T,height:h.height,width:h.width,bottom:j+h.height,right:T+h.width}}function p(f,h){for(var j=h;j;){if(j==f)return!0;j=b(j)}return!1}function b(f){var h=f.parentNode;return f.nodeType==9&&f!=t?e(f):(h&&h.assignedSlot&&(h=h.assignedSlot.parentNode),h&&h.nodeType==11&&h.host?h.host:h)}function y(f){return f&&f.nodeType===9}window.IntersectionObserver=i,window.IntersectionObserverEntry=u}()),zo}iu();function su(e,t){var r={},n=r.callback,o=il(r,["callback"]),u=Ao(A.useState(),2),i=u[0],a=u[1],s=Ao(A.useState(),2),c=s[0],d=s[1];return sl(function(){var w=Array.isArray(e)?e:[e],m=w.map(function(g){return Do(g)}).filter(Boolean);if(m.length){var v=new IntersectionObserver(function(g){var x,p;try{for(var b=al(g),y=b.next();!y.done;y=b.next()){var f=y.value;d(f.intersectionRatio),a(f.isIntersecting),n?.(f)}}catch(h){x={error:h}}finally{try{y&&!y.done&&(p=b.return)&&p.call(b)}finally{if(x)throw x.error}}},Oo(Oo({},o),{root:Do(void 0)}));return m.forEach(function(g){return v.observe(g)}),function(){v.disconnect()}}},[void 0,void 0,n],e),[i,c]}const au=ar(l.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"})),lu=ar(l.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"})),Fr=ar([l.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"),l.jsx("circle",{cx:"6.5",cy:"6.5",r:"1.5"},"1")]),cu=ar(l.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"})),uu=ar(l.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"})),Is=e=>A.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},A.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"}),A.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375}),A.createElement("rect",{x:15.3125,y:14.0625,width:7.5,height:1.875,rx:.9375,transform:"rotate(-90 15.3125 14.0625)"})),Rs=e=>A.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},A.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"}),A.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"}),A.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"}),A.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"})),As=e=>A.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},A.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"}),A.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375})),du=e=>A.createElement("svg",{width:18,height:19,viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg",...e},A.createElement("g",{clipPath:"url(#clip0)"},A.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"})),A.createElement("defs",null,A.createElement("clipPath",{id:"clip0"},A.createElement("rect",{width:18,height:18,transform:"translate(0 0.5)"})))),Ds=e=>A.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},A.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 Hr={},Yr,Ko;function fu(){return Ko||(Ko=1,Yr=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Yr}var Gr,Ho;function pu(){if(Ho)return Gr;Ho=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(i,a){try{return[decodeURIComponent(i.join(""))]}catch{}if(i.length===1)return i;a=a||1;var s=i.slice(0,a),c=i.slice(a);return Array.prototype.concat.call([],n(s),n(c))}function o(i){try{return decodeURIComponent(i)}catch{for(var a=i.match(t)||[],s=1;s<a.length;s++)i=n(a,s).join(""),a=i.match(t)||[];return i}}function u(i){for(var a={"%FE%FF":"��","%FF%FE":"��"},s=r.exec(i);s;){try{a[s[0]]=decodeURIComponent(s[0])}catch{var c=o(s[0]);c!==s[0]&&(a[s[0]]=c)}s=r.exec(i)}a["%C2"]="�";for(var d=Object.keys(a),w=0;w<d.length;w++){var m=d[w];i=i.replace(new RegExp(m,"g"),a[m])}return i}return Gr=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 u(i)}},Gr}var Zr,Yo;function mu(){return Yo||(Yo=1,Zr=(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)]}),Zr}var Xr,Go;function hu(){return Go||(Go=1,Xr=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),u=0;u<n.length;u++){var i=n[u],a=e[i];(o?t.indexOf(i)!==-1:t(i,a,e))&&(r[i]=a)}return r}),Xr}var Zo;function bu(){return Zo||(Zo=1,function(e){const t=fu(),r=pu(),n=mu(),o=hu(),u=b=>b==null;function i(b){switch(b.arrayFormat){case"index":return y=>(f,h)=>{const j=f.length;return h===void 0||b.skipNull&&h===null||b.skipEmptyString&&h===""?f:h===null?[...f,[c(y,b),"[",j,"]"].join("")]:[...f,[c(y,b),"[",c(j,b),"]=",c(h,b)].join("")]};case"bracket":return y=>(f,h)=>h===void 0||b.skipNull&&h===null||b.skipEmptyString&&h===""?f:h===null?[...f,[c(y,b),"[]"].join("")]:[...f,[c(y,b),"[]=",c(h,b)].join("")];case"comma":case"separator":return y=>(f,h)=>h==null||h.length===0?f:f.length===0?[[c(y,b),"=",c(h,b)].join("")]:[[f,c(h,b)].join(b.arrayFormatSeparator)];default:return y=>(f,h)=>h===void 0||b.skipNull&&h===null||b.skipEmptyString&&h===""?f:h===null?[...f,c(y,b)]:[...f,[c(y,b),"=",c(h,b)].join("")]}}function a(b){let y;switch(b.arrayFormat){case"index":return(f,h,j)=>{if(y=/\[(\d*)\]$/.exec(f),f=f.replace(/\[\d*\]$/,""),!y){j[f]=h;return}j[f]===void 0&&(j[f]={}),j[f][y[1]]=h};case"bracket":return(f,h,j)=>{if(y=/(\[\])$/.exec(f),f=f.replace(/\[\]$/,""),!y){j[f]=h;return}if(j[f]===void 0){j[f]=[h];return}j[f]=[].concat(j[f],h)};case"comma":case"separator":return(f,h,j)=>{const T=typeof h=="string"&&h.includes(b.arrayFormatSeparator),S=typeof h=="string"&&!T&&d(h,b).includes(b.arrayFormatSeparator);h=S?d(h,b):h;const R=T||S?h.split(b.arrayFormatSeparator).map(E=>d(E,b)):h===null?h:d(h,b);j[f]=R};default:return(f,h,j)=>{if(j[f]===void 0){j[f]=h;return}j[f]=[].concat(j[f],h)}}}function s(b){if(typeof b!="string"||b.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(b,y){return y.encode?y.strict?t(b):encodeURIComponent(b):b}function d(b,y){return y.decode?r(b):b}function w(b){return Array.isArray(b)?b.sort():typeof b=="object"?w(Object.keys(b)).sort((y,f)=>Number(y)-Number(f)).map(y=>b[y]):b}function m(b){const y=b.indexOf("#");return y!==-1&&(b=b.slice(0,y)),b}function v(b){let y="";const f=b.indexOf("#");return f!==-1&&(y=b.slice(f)),y}function g(b){b=m(b);const y=b.indexOf("?");return y===-1?"":b.slice(y+1)}function x(b,y){return y.parseNumbers&&!Number.isNaN(Number(b))&&typeof b=="string"&&b.trim()!==""?b=Number(b):y.parseBooleans&&b!==null&&(b.toLowerCase()==="true"||b.toLowerCase()==="false")&&(b=b.toLowerCase()==="true"),b}function p(b,y){y=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},y),s(y.arrayFormatSeparator);const f=a(y),h=Object.create(null);if(typeof b!="string"||(b=b.trim().replace(/^[?#&]/,""),!b))return h;for(const j of b.split("&")){if(j==="")continue;let[T,S]=n(y.decode?j.replace(/\+/g," "):j,"=");S=S===void 0?null:["comma","separator"].includes(y.arrayFormat)?S:d(S,y),f(d(T,y),S,h)}for(const j of Object.keys(h)){const T=h[j];if(typeof T=="object"&&T!==null)for(const S of Object.keys(T))T[S]=x(T[S],y);else h[j]=x(T,y)}return y.sort===!1?h:(y.sort===!0?Object.keys(h).sort():Object.keys(h).sort(y.sort)).reduce((j,T)=>{const S=h[T];return S&&typeof S=="object"&&!Array.isArray(S)?j[T]=w(S):j[T]=S,j},Object.create(null))}e.extract=g,e.parse=p,e.stringify=(b,y)=>{if(!b)return"";y=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},y),s(y.arrayFormatSeparator);const f=S=>y.skipNull&&u(b[S])||y.skipEmptyString&&b[S]==="",h=i(y),j={};for(const S of Object.keys(b))f(S)||(j[S]=b[S]);const T=Object.keys(j);return y.sort!==!1&&T.sort(y.sort),T.map(S=>{const R=b[S];return R===void 0?"":R===null?c(S,y):Array.isArray(R)?R.reduce(h(S),[]).join("&"):c(S,y)+"="+c(R,y)}).filter(S=>S.length>0).join("&")},e.parseUrl=(b,y)=>{y=Object.assign({decode:!0},y);const[f,h]=n(b,"#");return Object.assign({url:f.split("?")[0]||"",query:p(g(b),y)},y&&y.parseFragmentIdentifier&&h?{fragmentIdentifier:d(h,y)}:{})},e.stringifyUrl=(b,y)=>{y=Object.assign({encode:!0,strict:!0},y);const f=m(b.url).split("?")[0]||"",h=e.extract(b.url),j=e.parse(h,{sort:!1}),T=Object.assign(j,b.query);let S=e.stringify(T,y);S&&(S=`?${S}`);let R=v(b.url);return b.fragmentIdentifier&&(R=`#${c(b.fragmentIdentifier,y)}`),`${f}${S}${R}`},e.pick=(b,y,f)=>{f=Object.assign({parseFragmentIdentifier:!0},f);const{url:h,query:j,fragmentIdentifier:T}=e.parseUrl(b,f);return e.stringifyUrl({url:h,query:o(j,y),fragmentIdentifier:T},f)},e.exclude=(b,y,f)=>{const h=Array.isArray(y)?j=>!y.includes(j):(j,T)=>!y(j,T);return e.pick(b,h,f)}}(Hr)),Hr}var Qr=bu();const Yt=ll,gu={parseNumbers:!1,parseBooleans:!1},yu={skipNull:!1,skipEmptyString:!1},vu=(e,t)=>{var r,n;const{navigateMode:o="push",parseOptions:u,stringifyOptions:i}={},a=Object.assign(Object.assign({},gu),u),s=Object.assign(Object.assign({},yu),i),c=Yt.useLocation(),d=(r=Yt.useHistory)===null||r===void 0?void 0:r.call(Yt),w=(n=Yt.useNavigate)===null||n===void 0?void 0:n.call(Yt),m=cl(),v=A.useRef(typeof e=="function"?e():e||{}),g=A.useMemo(()=>Qr.parse(c.search,a),[c.search]),x=A.useMemo(()=>Object.assign(Object.assign({},v.current),g),[g]);return[x,pt(b=>{const y=typeof b=="function"?b(x):b;m(),d&&d[o]({hash:c.hash,search:Qr.stringify(Object.assign(Object.assign({},g),y),s)||"?"},c.state),w&&w({hash:c.hash,search:Qr.stringify(Object.assign(Object.assign({},g),y),s)||"?"},{replace:o==="replace",state:c.state})})]};var Jt={exports:{}},wu=Jt.exports,Xo;function xu(){return Xo||(Xo=1,function(e,t){(function(r,n){var o="1.0.40",u="",i="?",a="function",s="undefined",c="object",d="string",w="major",m="model",v="name",g="type",x="vendor",p="version",b="architecture",y="console",f="mobile",h="tablet",j="smarttv",T="wearable",S="embedded",R=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},xe=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,u).split(".")[0]:n},ye=function(N,z){if(typeof N===d)return N=N.replace(/^\s\s*/,u),typeof z===s?N:N.substring(0,R)},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===c&&ne.length>0?ne.length===2?typeof ne[1]==a?this[ne[0]]=ne[1].call(this,Ee):this[ne[0]]=ne[1]:ne.length===3?typeof ne[1]===a&&!(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]===c&&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],[p,[v,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[v,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[v,p],[/opios[\/ ]+([\w\.]+)/i],[p,[v,G+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[p,[v,G+" GX"]],[/\bopr\/([\w\.]+)/i],[p,[v,G]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[p,[v,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[p,[v,"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],[v,p],[/quark(?:pc)?\/([-\w\.]+)/i],[p,[v,"Quark"]],[/\bddg\/([\w\.]+)/i],[p,[v,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[v,"UC"+H]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[p,[v,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[v,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[v,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[v,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[p,[v,"Smart Lenovo "+H]],[/(avast|avg)\/([\w\.]+)/i],[[v,/(.+)/,"$1 Secure "+H],p],[/\bfocus\/([\w\.]+)/i],[p,[v,ge+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[v,G+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[v,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[v,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[v,G+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[v,"MIUI"+le]],[/fxios\/([\w\.-]+)/i],[p,[v,ge]],[/\bqihoobrowser\/?([\w\.]*)/i],[p,[v,"360"]],[/\b(qq)\/([\w\.]+)/i],[[v,/(.+)/,"$1Browser"],p],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[v,/(.+)/,"$1"+le],p],[/samsungbrowser\/([\w\.]+)/i],[p,[v,J+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[p,[v,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[v,"Sogou Mobile"],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[v,p],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[v],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[p,v],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[v,L],p],[/(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],[v,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[v,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[v,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[v,se+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[v,se+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[v,"Android "+H]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[v,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[v,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,v],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[v,[p,ue,ce]],[/(webkit|khtml)\/([\w\.]+)/i],[v,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[v,"Netscape"],p],[/(wolvic|librewolf)\/([\w\.]+)/i],[v,p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[v,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],[v,[p,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[v,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[b,"amd64"]],[/(ia32(?=;))/i],[[b,Ae]],[/((?:i[346]|x)86)[;\)]/i],[[b,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[b,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[b,"armhf"]],[/windows (ce|mobile); ppc;/i],[[b,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[b,/ower/,u,Ae]],[/(sun4\w)[;\)]/i],[[b,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[b,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],[m,[x,J],[g,h]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[m,[x,J],[g,f]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[m,[x,k],[g,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[m,[x,k],[g,h]],[/(macintosh);/i],[m,[x,k]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[m,[x,_],[g,f]],[/(?:honor)([-\w ]+)[;\)]/i],[m,[x,"Honor"],[g,f]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[m,[x,Y],[g,h]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[m,[x,Y],[g,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],[[m,/_/g," "],[x,M],[g,f]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[m,/_/g," "],[x,M],[g,h]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[m,[x,"OPPO"],[g,f]],[/\b(opd2\d{3}a?) bui/i],[m,[x,"OPPO"],[g,h]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[m,[x,"Vivo"],[g,f]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[m,[x,"Realme"],[g,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],[m,[x,X],[g,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[m,[x,X],[g,h]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[m,[x,O],[g,h]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[m,[x,O],[g,f]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[m,[x,"Lenovo"],[g,h]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[m,/_/g," "],[x,"Nokia"],[g,f]],[/(pixel c)\b/i],[m,[x,Se],[g,h]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[m,[x,Se],[g,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],[m,[x,I],[g,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[m,"Xperia Tablet"],[x,I],[g,h]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[m,[x,"OnePlus"],[g,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[m,[x,E],[g,h]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[m,/(.+)/g,"Fire Phone $1"],[x,E],[g,f]],[/(playbook);[-\w\),; ]+(rim)/i],[m,x,[g,h]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[m,[x,q],[g,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[m,[x,B],[g,h]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[m,[x,B],[g,f]],[/(nexus 9)/i],[m,[x,"HTC"],[g,h]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[x,[m,/_/g," "],[g,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],[m,[x,"TCL"],[g,h]],[/(itel) ((\w+))/i],[[x,Ae],m,[g,ue,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[m,[x,"Acer"],[g,h]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[m,[x,"Meizu"],[g,f]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[m,[x,"Ulefone"],[g,f]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[m,[x,"Energizer"],[g,f]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[m,[x,"Cat"],[g,f]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[m,[x,"Smartfren"],[g,f]],[/droid.+; (a(?:015|06[35]|142p?))/i],[m,[x,"Nothing"],[g,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],[x,m,[g,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],[x,m,[g,h]],[/(surface duo)/i],[m,[x,F],[g,h]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[m,[x,"Fairphone"],[g,f]],[/(u304aa)/i],[m,[x,"AT&T"],[g,f]],[/\bsie-(\w*)/i],[m,[x,"Siemens"],[g,f]],[/\b(rct\w+) b/i],[m,[x,"RCA"],[g,h]],[/\b(venue[\d ]{2,7}) b/i],[m,[x,"Dell"],[g,h]],[/\b(q(?:mv|ta)\w+) b/i],[m,[x,"Verizon"],[g,h]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[m,[x,"Barnes & Noble"],[g,h]],[/\b(tm\d{3}\w+) b/i],[m,[x,"NuVision"],[g,h]],[/\b(k88) b/i],[m,[x,"ZTE"],[g,h]],[/\b(nx\d{3}j) b/i],[m,[x,"ZTE"],[g,f]],[/\b(gen\d{3}) b.+49h/i],[m,[x,"Swiss"],[g,f]],[/\b(zur\d{3}) b/i],[m,[x,"Swiss"],[g,h]],[/\b((zeki)?tb.*\b) b/i],[m,[x,"Zeki"],[g,h]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[x,"Dragon Touch"],m,[g,h]],[/\b(ns-?\w{0,9}) b/i],[m,[x,"Insignia"],[g,h]],[/\b((nxa|next)-?\w{0,9}) b/i],[m,[x,"NextBook"],[g,h]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[x,"Voice"],m,[g,f]],[/\b(lvtel\-)?(v1[12]) b/i],[[x,"LvTel"],m,[g,f]],[/\b(ph-1) /i],[m,[x,"Essential"],[g,f]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[m,[x,"Envizen"],[g,h]],[/\b(trio[-\w\. ]+) b/i],[m,[x,"MachSpeed"],[g,h]],[/\btu_(1491) b/i],[m,[x,"Rotor"],[g,h]],[/(shield[\w ]+) b/i],[m,[x,"Nvidia"],[g,h]],[/(sprint) (\w+)/i],[x,m,[g,f]],[/(kin\.[onetw]{3})/i],[[m,/\./g," "],[x,F],[g,f]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[m,[x,W],[g,h]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[m,[x,W],[g,f]],[/smart-tv.+(samsung)/i],[x,[g,j]],[/hbbtv.+maple;(\d+)/i],[[m,/^/,"SmartTV"],[x,J],[g,j]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[x,O],[g,j]],[/(apple) ?tv/i],[x,[m,k+" TV"],[g,j]],[/crkey/i],[[m,se+"cast"],[x,Se],[g,j]],[/droid.+aft(\w+)( bui|\))/i],[m,[x,E],[g,j]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[m,[x,_],[g,j]],[/(bravia[\w ]+)( bui|\))/i],[m,[x,I],[g,j]],[/(mitv-\w{5}) bui/i],[m,[x,M],[g,j]],[/Hbbtv.*(technisat) (.*);/i],[x,m,[g,j]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[x,ye],[m,ye],[g,j]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[g,j]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[x,m,[g,y]],[/droid.+; (shield) bui/i],[m,[x,"Nvidia"],[g,y]],[/(playstation [345portablevi]+)/i],[m,[x,I],[g,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[m,[x,F],[g,y]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[m,[x,J],[g,T]],[/((pebble))app/i],[x,m,[g,T]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[m,[x,k],[g,T]],[/droid.+; (glass) \d/i],[m,[x,Se],[g,T]],[/droid.+; (wt63?0{2,3})\)/i],[m,[x,W],[g,T]],[/droid.+; (glass) \d/i],[m,[x,Se],[g,T]],[/(pico) (4|neo3(?: link|pro)?)/i],[x,m,[g,T]],[/; (quest( \d| pro)?)/i],[m,[x,L],[g,T]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[x,[g,S]],[/(aeobc)\b/i],[m,[x,E],[g,S]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[m,[g,f]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[m,[g,h]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[g,h]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[g,f]],[/(android[-\w\. ]{0,9});.+buil/i],[m,[x,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[v,oe+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[v,p],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[v,"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],[v,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,v]],os:[[/microsoft (windows) (vista|xp)/i],[v,p],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[v,[p,ue,te]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,ue,te],[v,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[v,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[v,Q],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,v],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[v,p],[/\(bb(10);/i],[p,[v,q]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[v,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[v,ge+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[v,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[v,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[v,se+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[v,U],p],[/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],[v,p],[/(sunos) ?([\w\.\d]*)/i],[[v,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[v,p]]},je=function(N,z){if(typeof N===c&&(z=N,N=n),!(this instanceof je))return new je(N,z).getResult();var V=typeof r!==s&&r.navigator?r.navigator:n,ee=N||(V&&V.userAgent?V.userAgent:u),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[v]=n,re[p]=n,Te.call(re,ee,fe.browser),re[w]=Ne(re[p]),ne&&V&&V.brave&&typeof V.brave.isBrave==a&&(re[v]="Brave"),re},this.getCPU=function(){var re={};return re[b]=n,Te.call(re,ee,fe.cpu),re},this.getDevice=function(){var re={};return re[x]=n,re[m]=n,re[g]=n,Te.call(re,ee,fe.device),ne&&!re[g]&&ae&&ae.mobile&&(re[g]=f),ne&&re[m]=="Macintosh"&&V&&typeof V.standalone!==s&&V.maxTouchPoints&&V.maxTouchPoints>2&&(re[m]="iPad",re[g]=h),re},this.getEngine=function(){var re={};return re[v]=n,re[p]=n,Te.call(re,ee,fe.engine),re},this.getOS=function(){var re={};return re[v]=n,re[p]=n,Te.call(re,ee,fe.os),ne&&!re[v]&&ae&&ae.platform&&ae.platform!="Unknown"&&(re[v]=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>R?ye(re,R):re,this},this.setUA(ee),this};je.VERSION=o,je.BROWSER=xe([v,p,w]),je.CPU=xe([b]),je.DEVICE=xe([m,x,g,y,f,j,h,T,S]),je.ENGINE=je.OS=xe([v,p]),e.exports&&(t=e.exports=je),t.UAParser=je;var P=typeof r!==s&&(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:wu)}(Jt,Jt.exports)),Jt.exports}var Cu=xu();const Jr=Ji(Cu);function ju({user:e,sessionUser:t}){const r=mt(()=>(e?.passports||[])?.find(n=>n.name===t.role),[e?.passports,t?.role]);return l.jsxs($,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(es,{size:40,variant:"circle",shape:"circle",src:t.avatar,did:t.did,sx:{flexShrink:0}}),l.jsxs($,{sx:{flex:1,overflow:"hidden"},children:[l.jsxs($,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(bt,{title:t.fullName,children:l.jsx(Re,{sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1},children:t.fullName})}),l.jsx(ts,{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"}})]}),l.jsx(bt,{title:t.email,children:l.jsx(Re,{variant:"body2",color:"grey",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.email})})]})]})}const Su={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"}},Os="Reserved IP",Qo="ip-region-cache";async function Tu(e){const t=`https://ipapi.co/${e}/json/`,r=await(await fetch(t)).json();let n="";return r.error?r.reserved&&(n=Os):n=[r.country_name,r.region,r.city].filter(Boolean).join("/"),n}async function Eu(e){const t=`https://api.ip.sb/geoip/${e}`,r=await(await fetch(t)).json();let n="";return r.error?r.reserved&&(n=Os):n=[r.country,r.region,r.city].filter(Boolean).join("/"),n}async function ku(e){let t="",r={};try{const n=localStorage.getItem(Qo);n&&(r=JSON.parse(n))}catch{r={}}if(r[e])t=r[e];else{try{t=await Eu(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!t)try{t=await Tu(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(Qo,JSON.stringify(r))}return t}const Jo=e=>new Jr(e,{browser:[[/(ArcWallet)\/([\w\.]+)/i],[Jr.BROWSER.NAME,Jr.BROWSER.VERSION]]}).getResult(),ei={display:"flex",justifyContent:"flex-end",textAlign:"right"},Pu=new fl({concurrency:1}),Iu=A.memo(({userSession:e,isMobile:t=!1})=>{const r=gt({loading:!0,ipRegion:""}),{t:n}=Ie();return A.useEffect(()=>{Pu.add(async()=>{try{r.ipRegion=await ku(e.lastLoginIp)}finally{r.loading=!1}})},[r,e.lastLoginIp]),l.jsx($,{...t&&{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:1,flexWrap:"wrap"},children:r.ipRegion?l.jsxs(l.Fragment,{children:[l.jsx(Re,{variant:"body2",children:r.ipRegion}),l.jsx(Re,{variant:"body2",color:"grey",children:e.lastLoginIp||n("unknown")})]}):l.jsxs(l.Fragment,{children:[l.jsx(Re,{children:e.lastLoginIp||n("unknown")}),r.loading?l.jsx(Re,{variant:"body2",color:"grey",sx:{textAlign:"center"},children:l.jsx(yt,{size:12,color:"inherit"})}):null]})})});function Ru({user:e,showAction:t=!0,showUser:r=!0,getUserSessions:n,showOffline:o=!1,showAppPid:u=!1}){const i=gt({status:"online",page:1,pageSize:10}),a=gt({online:0,expired:0,offline:0}),s=ul(),{locale:c}=Ie(),d=mc({key:"md"}),w=Qn(E=>E.breakpoints.down("lg")),{confirmApi:m,confirmHolder:v}=Jn(),g=pt((E,k={})=>dl(Su,E,c,"en",k)),x=pt(async()=>{const E=await n({page:i.page,pageSize:i.pageSize,status:i.status}),k=E?.paging?.total||0;return a[i.status]=k,{total:k,list:E?.list||[]}});rs(async()=>{const E=await n({page:1,pageSize:1,status:"expired"});a.expired=E?.paging?.total||0;const k=await n({page:1,pageSize:1,status:"offline"});a.offline=k?.paging?.total||0});const p=ns(x,{refreshDeps:[i.status,i.page,i.pageSize]}),b=mt(()=>p.data?.list||[],[p.data?.list]),y=mt(()=>{const E=i.status;return E==="online"?a[E]<=1:a[E]===0},[b,s]),f=mt(()=>Cr({},d?ei:{}),[d]),h=pt(({visitorId:E})=>{m.open({title:g("logoutThisSession"),content:g("logoutThisSessionConfirm"),confirmButtonText:g("confirm"),confirmButtonProps:{color:"error"},cancelButtonText:g("cancel"),onConfirm:async()=>{await Mo.user.logout({visitorId:E,includeFederated:!0});const{page:k=0}=i,{list:B=[]}=p.data||{},q=B.length||0;k>1&&q===1&&(i.page=Math.max(k-1,1)),p.refresh(),m.close()}})}),j=pt(()=>{m.open({title:g("logoutAllSession",{type:g(i.status)}),content:g("logoutAllSessionConfirm",{type:g(i.status)}),confirmButtonText:g("confirm"),confirmButtonProps:{color:"error"},cancelButtonText:g("cancel"),onConfirm:async()=>{await Mo.user.logout({status:i.status,visitorId:s,includeFederated:!0}),i.page=1,p.refresh(),m.close()}})}),T=[];t&&T.push(l.jsx(bt,{title:g("logoutAllTips",{type:g(i.status)}),children:l.jsx(qe,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:j,disabled:y,children:g("logoutAll",{type:g(i.status)})})},"logoutAll"));const S=mt(()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600,page:i.page-1,rowsPerPage:i.pageSize,count:p.data?.total||0}),[p.data?.total,i.page,i.pageSize]),R=[{label:g("platform"),name:"platform",options:{customBodyRenderLite:E=>{const k=b[E],B=Jo(k?.ua);return l.jsx($,{sx:f,children:[B.os?.name,B.os?.version].filter(Boolean).join("/")||g("unknown")})}}},{label:g("deviceType"),name:"deviceType",options:{customBodyRenderLite:E=>{const k=b[E],B=Jo(k?.ua);return l.jsx($,{sx:f,children:[B.browser?.name,B.browser?.version].filter(Boolean).join("/")||g("unknown")})}}},{label:g("walletOS"),name:"walletOS",options:{customBodyRenderLite:E=>{const k=b[E];return l.jsx($,{sx:f,children:k.extra?.walletOS||g("unknown")})}}},u&&{label:"App Pid",name:"appPid",options:{customBodyRenderLite:E=>{const k=b[E];return k.appPid?l.jsx(os,{size:14,responsive:!1,compact:!0,did:k.appPid}):null}}},r&&{label:g("user"),name:"user",options:{customBodyRenderLite:E=>{const k=b[E];return l.jsx($,{sx:Cr({minWidth:150,maxWidth:250},d?ei:{}),children:l.jsx(ju,{sessionUser:k.user,user:e})})}}},{label:g("createdAt"),name:"createdAt",options:{customBodyRenderLite:E=>{const k=b[E];return l.jsx($,{sx:f,children:k.createdAt?l.jsx(rr,{value:k.createdAt,relativeRange:3*86400*1e3,locale:c}):g("unknown")})}}},!o&&{label:g("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:E=>{const k=b[E];return l.jsx($,{sx:f,children:k.status==="expired"?g("expired"):l.jsx(rr,{value:k.updatedAt,relativeRange:3*86400*1e3,locale:c})})}}},{label:g("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:E=>{const k=b[E];return l.jsx(Iu,{userSession:k,isMobile:d})}}},t&&{label:g("actions"),name:"actions",options:{customBodyRenderLite:E=>{const k=b[E];return l.jsx($,{sx:f,children:l.jsx(qe,{sx:{whiteSpace:"nowrap",fontSize:"12px !important",lineHeight:"1.25",px:1},disabled:s===k.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>h({visitorId:k.visitorId}),children:k.status==="expired"?g("remove"):s===k.visitorId?g("currentSession"):g("logout")})})}}}].filter(Boolean);return l.jsxs($,{className:"pc-user-sessions",sx:{maxWidth:d?"unset":w?"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:[v,l.jsx(ao,{count:p.data?.total||0,locale:c,data:b,columns:R,customButtons:T,options:S,loading:p.loading,className:"pc-user-sessions-table",title:l.jsxs(ys,{row:!0,sx:{lineHeight:1,ml:1},onChange:E=>{i.status=E.target.value},children:[l.jsx(Mt,{value:"online",control:l.jsx(wr,{size:"small",sx:{lineHeight:1,fontSize:0},checked:i.status==="online"}),label:l.jsxs(Re,{sx:{display:"flex",alignItems:"center"},children:[g("online"),l.jsxs(Re,{component:"span",sx:{ml:.5,color:"text.secondary"},children:["(",a.online,")"]})]})}),l.jsx(Mt,{value:"expired",control:l.jsx(wr,{size:"small",sx:{lineHeight:1,fontSize:0},checked:i.status==="expired"}),label:l.jsxs(Re,{sx:{display:"flex",alignItems:"center"},children:[g("expired"),l.jsxs(Re,{component:"span",sx:{ml:.5,color:"text.secondary"},children:["(",a.expired,")"]})]})}),o?l.jsx(Mt,{value:"offline",control:l.jsx(wr,{size:"small",sx:{lineHeight:1,fontSize:0},checked:i.status==="offline"}),label:l.jsxs(Re,{sx:{display:"flex",alignItems:"center"},children:[g("offline"),l.jsxs(Re,{component:"span",sx:{ml:.5,color:"text.secondary"},children:["(",a.offline,")"]})]})}):null]}),onChange:E=>{i.page=E.page+1,i.pageSize=E.rowsPerPage}})]})}var en={exports:{}},tn={},ti;function _s(){if(ti)return tn;ti=1;function e(y){"@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(y)}function t(y,f,h){return Object.defineProperty(y,"prototype",{writable:!1}),y}function r(y,f){if(!(y instanceof f))throw new TypeError("Cannot call a class as a function")}function n(y,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(f&&f.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),f&&o(y,f)}function o(y,f){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(j,T){return j.__proto__=T,j},o(y,f)}function u(y){var f=s();return function(){var j=c(y),T;if(f){var S=c(this).constructor;T=Reflect.construct(j,arguments,S)}else T=j.apply(this,arguments);return i(this,T)}}function i(y,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 a(y)}function a(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function s(){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 c(y){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(h){return h.__proto__||Object.getPrototypeOf(h)},c(y)}var d={},w,m;function v(y,f,h){h||(h=Error);function j(S,R,E){return typeof f=="string"?f:f(S,R,E)}var T=function(S){n(E,S);var R=u(E);function E(k,B,q){var H;return r(this,E),H=R.call(this,j(k,B,q)),H.code=y,H}return t(E)}(h);d[y]=T}function g(y,f){if(Array.isArray(y)){var h=y.length;return y=y.map(function(j){return String(j)}),h>2?"one of ".concat(f," ").concat(y.slice(0,h-1).join(", "),", or ")+y[h-1]:h===2?"one of ".concat(f," ").concat(y[0]," or ").concat(y[1]):"of ".concat(f," ").concat(y[0])}else return"of ".concat(f," ").concat(String(y))}function x(y,f,h){return y.substr(0,f.length)===f}function p(y,f,h){return(h===void 0||h>y.length)&&(h=y.length),y.substring(h-f.length,h)===f}function b(y,f,h){return typeof h!="number"&&(h=0),h+f.length>y.length?!1:y.indexOf(f,h)!==-1}return v("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),v("ERR_INVALID_ARG_TYPE",function(y,f,h){w===void 0&&(w=Vn()),w(typeof y=="string","'name' must be a string");var j;typeof f=="string"&&x(f,"not ")?(j="must not be",f=f.replace(/^not /,"")):j="must be";var T;if(p(y," argument"))T="The ".concat(y," ").concat(j," ").concat(g(f,"type"));else{var S=b(y,".")?"property":"argument";T='The "'.concat(y,'" ').concat(S," ").concat(j," ").concat(g(f,"type"))}return T+=". Received type ".concat(e(h)),T},TypeError),v("ERR_INVALID_ARG_VALUE",function(y,f){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";m===void 0&&(m=nr());var j=m.inspect(f);return j.length>128&&(j="".concat(j.slice(0,128),"...")),"The argument '".concat(y,"' ").concat(h,". Received ").concat(j)},TypeError),v("ERR_INVALID_RETURN_VALUE",function(y,f,h){var j;return h&&h.constructor&&h.constructor.name?j="instance of ".concat(h.constructor.name):j="type ".concat(e(h)),"Expected ".concat(y,' to be returned from the "').concat(f,'"')+" function but got ".concat(j,".")},TypeError),v("ERR_MISSING_ARGS",function(){for(var y=arguments.length,f=new Array(y),h=0;h<y;h++)f[h]=arguments[h];w===void 0&&(w=Vn()),w(f.length>0,"At least one arg needs to be specified");var j="The ",T=f.length;switch(f=f.map(function(S){return'"'.concat(S,'"')}),T){case 1:j+="".concat(f[0]," argument");break;case 2:j+="".concat(f[0]," and ").concat(f[1]," arguments");break;default:j+=f.slice(0,T-1).join(", "),j+=", and ".concat(f[T-1]," arguments");break}return"".concat(j," must be specified")},TypeError),tn.codes=d,tn}var rn,ri;function Au(){if(ri)return rn;ri=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 u(O,F,X){return F&&o(O.prototype,F),Object.defineProperty(O,"prototype",{writable:!1}),O}function i(O){var F=a(O,"string");return y(F)==="symbol"?F:String(F)}function a(O,F){if(y(O)!=="object"||O===null)return O;var X=O[Symbol.toPrimitive];if(X!==void 0){var G=X.call(O,F);if(y(G)!=="object")return G;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(O)}function s(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&&p(O,F)}function c(O){var F=g();return function(){var G=b(O),J;if(F){var _=b(this).constructor;J=Reflect.construct(G,arguments,_)}else J=G.apply(this,arguments);return d(this,J)}}function d(O,F){if(F&&(y(F)==="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return w(O)}function w(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}function m(O){var F=typeof Map=="function"?new Map:void 0;return m=function(G){if(G===null||!x(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 v(G,arguments,b(this).constructor)}return J.prototype=Object.create(G.prototype,{constructor:{value:J,enumerable:!1,writable:!0,configurable:!0}}),p(J,G)},m(O)}function v(O,F,X){return g()?v=Reflect.construct.bind():v=function(J,_,I){var M=[null];M.push.apply(M,_);var W=Function.bind.apply(J,M),L=new W;return I&&p(L,I.prototype),L},v.apply(null,arguments)}function g(){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 x(O){return Function.toString.call(O).indexOf("[native code]")!==-1}function p(O,F){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(G,J){return G.__proto__=J,G},p(O,F)}function b(O){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(X){return X.__proto__||Object.getPrototypeOf(X)},b(O)}function y(O){"@babel/helpers - typeof";return y=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},y(O)}var f=nr(),h=f.inspect,j=_s(),T=j.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 R(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 h(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 A,fJ as il,c1 as Ao,fK as sl,ft as Do,fL as al,cS as Oo,aF as ar,j as l,fM as ll,fN as cl,cs as pt,bd as Ji,bz as mt,M as $,as as es,ay as bt,T as Re,eO as ts,aP as gt,fO as ul,m as Ie,E as Qn,fP as Jn,fQ as dl,cW as rs,cr as ns,bk as Cr,dI as qe,dG as os,O as rr,aU as Mt,fR as fl,C as yt,fS as nr,ez as Je,fT as is,fU as pl,fV as ml,fW as hl,fX as bl,fY as gl,fZ as ss,f_ as yl,f$ as eo,g0 as vl,g1 as wl,g2 as xl,g3 as Cl,eA as to,g4 as as,eB as jl,cF as Fn,eC as Sl,dE as Tl,g5 as El,g6 as kl,bn as Fe,g7 as Pl,H as Me,X as Ue,o as C,f as ro,f5 as ls,n as vt,bU as Il,dL as Rl,bv as Al,au as lt,g8 as cs,S as jr,g9 as us,$ as st,t as Et,a_ as Dl,b1 as Ol,fd as _l,ga as Ml,gb as Ll,gc as Nl,D as _r,bg as no,a3 as er,gd as Bl,V as jt,bX as Ut,bY as $t,cg as ds,dO as tt,e_ as pe,b_ as Fl,b8 as _e,dc as Sr,d6 as fs,b$ as ct,c0 as It,R as kt,dK as ps,d9 as ql,ge as Mr,gf as ms,bf as $e,P as or,bp as Ul,Q as qn,gg as Tr,gh as $l,at as ir,v as Ve,gi as Vl,h as Un,aW as zl,w as Wl,x as Kl,s as Ke,g as lr,ac as cr,bA as Nt,gj as Hl,dF as Yl,dm as Gl,aH as ht,dx as Zl,gk as Xl,eD as Ql,gl as hs,gm as Er,gn as Jl,dH as _o,b as St,W as oo,dJ as ec,z as tc,br as io,bs,bt as so,dp as fr,aD as rc,fI as gs,aS as nc,aE as oc,a8 as ic,y as sc,go as ac,bC as lc,U as cc,N as uc}from"./index-Bikf4Jgw.js";import{A as Bt}from"./Add-jM4hRnB8.js";import{V as dc}from"./ViewList-Bwmsjb-W.js";import{c as fc,H as ao,g as pc}from"./index-D_ljjR6n.js";import{u as mc}from"./use-mobile-DqkbOKR3.js";import{e as Mo}from"./client-CygehW6E.js";import{R as ys,a as wr,D as hc}from"./url-evaluation-MOJQy0H3.js";import{v as Lo}from"./index-B3IDuYIq.js";import{u as He}from"./team-BxwSb9mM.js";import{u as vs}from"./blocklet-D2v2yrD1.js";import{S as ws}from"./Search-Tb99rXM1.js";import{y as Lr}from"./index-BxGJp4lK.js";import{u as bc}from"./index-Dy5upDeP.js";import{S as gc}from"./Google-BNdTixOG.js";import{A as yc,a as pr}from"./Autocomplete-DDWyM-RF.js";import{U as vc}from"./UnfoldMore-Cs9UJfod.js";import{P as Pt}from"./permission-C2JVndtl.js";import{C as Nr}from"./click-to-copy-YqLtfgdJ.js";import{s as wt,g as wc,S as xc,u as dt,a as xs,b as ur,c as Cs,d as Br,e as js,f as lo,P as Ss,D as Ts,h as kr,M as Qt,i as Es,j as No,k as tr,v as Cc,l as jc,m as Bo,n as Sc,o as Tc,p as Ec,q as kc,C as Pc,r as Ic,t as Pr,w as _t,x as Ir,y as Fo,z as qo,A as Rc,T as Ac,B as co,E as Dc,F as Oc,G as _c,H as Mc,I as Lc,J as Nc,K as Bc,L as mr,N as Lt,O as ks,Q as Fc,V as $n,R as Ps,U as qc,W as Uo,X as Uc,Y as $c,Z as Vc,_ as zc,$ as Wc,a0 as Kc}from"./AdapterDayjs-ynIynV8Q.js";import{u as rt}from"./useThemeProps-CYFIeocr.js";import{a as $o,b as Hc,t as Yc,T as Gc}from"./html-title-COubPnYH.js";import{v as Ge}from"./index-DEh5WwZP.js";import{u as Zc,V as Xc}from"./Verified-BXDCprZ6.js";import{D as Qc}from"./DeleteOutline-D3OFK2IX.js";import{E as Vo}from"./ErrorOutline-8GJFRZb7.js";import{N as Jc}from"./index-E6rXB0d3.js";import{b as eu}from"./sdk-Hf9i-HPB.js";import{u as tu}from"./use-mobile-BkYXnir8.js";import{A as ru}from"./actions-rTa6xTCO.js";import{S as nu}from"./shorten-label-kkxGuhZA.js";const ou=fc(A.useLayoutEffect);var zo={},Wo;function iu(){return Wo||(Wo=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 h=f,j=e(h);j;)h=j.ownerDocument,j=e(h);return h}(window.document),r=[],n=null,o=null;function u(f){this.time=f.time,this.target=f.target,this.rootBounds=g(f.rootBounds),this.boundingClientRect=g(f.boundingClientRect),this.intersectionRect=g(f.intersectionRect||v()),this.isIntersecting=!!f.intersectionRect;var h=this.boundingClientRect,j=h.width*h.height,T=this.intersectionRect,S=T.width*T.height;j?this.intersectionRatio=Number((S/j).toFixed(4)):this.intersectionRatio=this.isIntersecting?1:0}function i(f,h){var j=h||{};if(typeof f!="function")throw new Error("callback must be a function");if(j.root&&j.root.nodeType!=1&&j.root.nodeType!=9)throw new Error("root must be a Document or Element");this._checkForIntersections=s(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=f,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(j.rootMargin),this.thresholds=this._initThresholds(j.threshold),this.root=j.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,h){!f||!h?o=v():o=x(f,h),r.forEach(function(j){j._checkForIntersections()})}),n},i._resetCrossOriginUpdater=function(){n=null,o=null},i.prototype.observe=function(f){var h=this._observationTargets.some(function(j){return j.element==f});if(!h){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(h){return h.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 h=f||[0];return Array.isArray(h)||(h=[h]),h.sort().filter(function(j,T,S){if(typeof j!="number"||isNaN(j)||j<0||j>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return j!==S[T-1]})},i.prototype._parseRootMargin=function(f){var h=f||"0px",j=h.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 j[1]=j[1]||j[0],j[2]=j[2]||j[0],j[3]=j[3]||j[1],j},i.prototype._monitorIntersections=function(f){var h=f.defaultView;if(h&&this._monitoringDocuments.indexOf(f)==-1){var j=this._checkForIntersections,T=null,S=null;this.POLL_INTERVAL?T=h.setInterval(j,this.POLL_INTERVAL):(c(h,"resize",j,!0),c(f,"scroll",j,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in h&&(S=new h.MutationObserver(j),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",j,!0)),d(f,"scroll",j,!0),S&&S.disconnect()});var R=this.root&&(this.root.ownerDocument||this.root)||t;if(f!=R){var E=e(f);E&&this._monitorIntersections(E.ownerDocument)}}},i.prototype._unmonitorIntersections=function(f){var h=this._monitoringDocuments.indexOf(f);if(h!=-1){var j=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!=j;){var B=e(k);if(k=B&&B.ownerDocument,k==f)return!0}return!1});if(!T){var S=this._monitoringUnsubscribes[h];if(this._monitoringDocuments.splice(h,1),this._monitoringUnsubscribes.splice(h,1),S(),f!=j){var R=e(f);R&&this._unmonitorIntersections(R.ownerDocument)}}}},i.prototype._unmonitorAllIntersections=function(){var f=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var h=0;h<f.length;h++)f[h]()},i.prototype._checkForIntersections=function(){if(!(!this.root&&n&&!o)){var f=this._rootIsInDom(),h=f?this._getRootRect():v();this._observationTargets.forEach(function(j){var T=j.element,S=m(T),R=this._rootContainsTarget(T),E=j.entry,k=f&&R&&this._computeTargetAndRootIntersection(T,S,h),B=null;this._rootContainsTarget(T)?(!n||this.root)&&(B=h):B=v();var q=j.entry=new u({time:a(),target:T,boundingClientRect:S,rootBounds:B,intersectionRect:k});E?f&&R?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,h,j){if(window.getComputedStyle(f).display!="none"){for(var T=h,S=b(f),R=!1;!R&&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(R=!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=j;else{var B=b(S),q=B&&m(B),H=B&&this._computeTargetAndRootIntersection(B,q,j);q&&H?(S=B,E=x(q,H)):(S=null,T=null)}else{var se=S.ownerDocument;S!=se.body&&S!=se.documentElement&&k.overflow!="visible"&&(E=m(S))}if(E&&(T=w(E,T)),!T)break;S=S&&b(S)}return T}},i.prototype._getRootRect=function(){var f;if(this.root&&!y(this.root))f=m(this.root);else{var h=y(this.root)?this.root:t,j=h.documentElement,T=h.body;f={top:0,left:0,right:j.clientWidth||T.clientWidth,width:j.clientWidth||T.clientWidth,bottom:j.clientHeight||T.clientHeight,height:j.clientHeight||T.clientHeight}}return this._expandRectByRootMargin(f)},i.prototype._expandRectByRootMargin=function(f){var h=this._rootMarginValues.map(function(T,S){return T.unit=="px"?T.value:T.value*(S%2?f.width:f.height)/100}),j={top:f.top-h[0],right:f.right+h[1],bottom:f.bottom+h[2],left:f.left-h[3]};return j.width=j.right-j.left,j.height=j.bottom-j.top,j},i.prototype._hasCrossedThreshold=function(f,h){var j=f&&f.isIntersecting?f.intersectionRatio||0:-1,T=h.isIntersecting?h.intersectionRatio||0:-1;if(j!==T)for(var S=0;S<this.thresholds.length;S++){var R=this.thresholds[S];if(R==j||R==T||R<j!=R<T)return!0}},i.prototype._rootIsInDom=function(){return!this.root||p(t,this.root)},i.prototype._rootContainsTarget=function(f){var h=this.root&&(this.root.ownerDocument||this.root)||t;return p(h,f)&&(!this.root||h==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 a(){return window.performance&&performance.now&&performance.now()}function s(f,h){var j=null;return function(){j||(j=setTimeout(function(){f(),j=null},h))}}function c(f,h,j,T){typeof f.addEventListener=="function"?f.addEventListener(h,j,T):typeof f.attachEvent=="function"&&f.attachEvent("on"+h,j)}function d(f,h,j,T){typeof f.removeEventListener=="function"?f.removeEventListener(h,j,T):typeof f.detachEvent=="function"&&f.detachEvent("on"+h,j)}function w(f,h){var j=Math.max(f.top,h.top),T=Math.min(f.bottom,h.bottom),S=Math.max(f.left,h.left),R=Math.min(f.right,h.right),E=R-S,k=T-j;return E>=0&&k>=0&&{top:j,bottom:T,left:S,right:R,width:E,height:k}||null}function m(f){var h;try{h=f.getBoundingClientRect()}catch{}return h?(h.width&&h.height||(h={top:h.top,right:h.right,bottom:h.bottom,left:h.left,width:h.right-h.left,height:h.bottom-h.top}),h):v()}function v(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function g(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 x(f,h){var j=h.top-f.top,T=h.left-f.left;return{top:j,left:T,height:h.height,width:h.width,bottom:j+h.height,right:T+h.width}}function p(f,h){for(var j=h;j;){if(j==f)return!0;j=b(j)}return!1}function b(f){var h=f.parentNode;return f.nodeType==9&&f!=t?e(f):(h&&h.assignedSlot&&(h=h.assignedSlot.parentNode),h&&h.nodeType==11&&h.host?h.host:h)}function y(f){return f&&f.nodeType===9}window.IntersectionObserver=i,window.IntersectionObserverEntry=u}()),zo}iu();function su(e,t){var r={},n=r.callback,o=il(r,["callback"]),u=Ao(A.useState(),2),i=u[0],a=u[1],s=Ao(A.useState(),2),c=s[0],d=s[1];return sl(function(){var w=Array.isArray(e)?e:[e],m=w.map(function(g){return Do(g)}).filter(Boolean);if(m.length){var v=new IntersectionObserver(function(g){var x,p;try{for(var b=al(g),y=b.next();!y.done;y=b.next()){var f=y.value;d(f.intersectionRatio),a(f.isIntersecting),n?.(f)}}catch(h){x={error:h}}finally{try{y&&!y.done&&(p=b.return)&&p.call(b)}finally{if(x)throw x.error}}},Oo(Oo({},o),{root:Do(void 0)}));return m.forEach(function(g){return v.observe(g)}),function(){v.disconnect()}}},[void 0,void 0,n],e),[i,c]}const au=ar(l.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"})),lu=ar(l.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"})),Fr=ar([l.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"),l.jsx("circle",{cx:"6.5",cy:"6.5",r:"1.5"},"1")]),cu=ar(l.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"})),uu=ar(l.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"})),Is=e=>A.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},A.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"}),A.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375}),A.createElement("rect",{x:15.3125,y:14.0625,width:7.5,height:1.875,rx:.9375,transform:"rotate(-90 15.3125 14.0625)"})),Rs=e=>A.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},A.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"}),A.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"}),A.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"}),A.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"})),As=e=>A.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},A.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"}),A.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375})),du=e=>A.createElement("svg",{width:18,height:19,viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg",...e},A.createElement("g",{clipPath:"url(#clip0)"},A.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"})),A.createElement("defs",null,A.createElement("clipPath",{id:"clip0"},A.createElement("rect",{width:18,height:18,transform:"translate(0 0.5)"})))),Ds=e=>A.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},A.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 Hr={},Yr,Ko;function fu(){return Ko||(Ko=1,Yr=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)),Yr}var Gr,Ho;function pu(){if(Ho)return Gr;Ho=1;var e="%[a-f0-9]{2}",t=new RegExp("("+e+")|([^%]+?)","gi"),r=new RegExp("("+e+")+","gi");function n(i,a){try{return[decodeURIComponent(i.join(""))]}catch{}if(i.length===1)return i;a=a||1;var s=i.slice(0,a),c=i.slice(a);return Array.prototype.concat.call([],n(s),n(c))}function o(i){try{return decodeURIComponent(i)}catch{for(var a=i.match(t)||[],s=1;s<a.length;s++)i=n(a,s).join(""),a=i.match(t)||[];return i}}function u(i){for(var a={"%FE%FF":"��","%FF%FE":"��"},s=r.exec(i);s;){try{a[s[0]]=decodeURIComponent(s[0])}catch{var c=o(s[0]);c!==s[0]&&(a[s[0]]=c)}s=r.exec(i)}a["%C2"]="�";for(var d=Object.keys(a),w=0;w<d.length;w++){var m=d[w];i=i.replace(new RegExp(m,"g"),a[m])}return i}return Gr=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 u(i)}},Gr}var Zr,Yo;function mu(){return Yo||(Yo=1,Zr=(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)]}),Zr}var Xr,Go;function hu(){return Go||(Go=1,Xr=function(e,t){for(var r={},n=Object.keys(e),o=Array.isArray(t),u=0;u<n.length;u++){var i=n[u],a=e[i];(o?t.indexOf(i)!==-1:t(i,a,e))&&(r[i]=a)}return r}),Xr}var Zo;function bu(){return Zo||(Zo=1,function(e){const t=fu(),r=pu(),n=mu(),o=hu(),u=b=>b==null;function i(b){switch(b.arrayFormat){case"index":return y=>(f,h)=>{const j=f.length;return h===void 0||b.skipNull&&h===null||b.skipEmptyString&&h===""?f:h===null?[...f,[c(y,b),"[",j,"]"].join("")]:[...f,[c(y,b),"[",c(j,b),"]=",c(h,b)].join("")]};case"bracket":return y=>(f,h)=>h===void 0||b.skipNull&&h===null||b.skipEmptyString&&h===""?f:h===null?[...f,[c(y,b),"[]"].join("")]:[...f,[c(y,b),"[]=",c(h,b)].join("")];case"comma":case"separator":return y=>(f,h)=>h==null||h.length===0?f:f.length===0?[[c(y,b),"=",c(h,b)].join("")]:[[f,c(h,b)].join(b.arrayFormatSeparator)];default:return y=>(f,h)=>h===void 0||b.skipNull&&h===null||b.skipEmptyString&&h===""?f:h===null?[...f,c(y,b)]:[...f,[c(y,b),"=",c(h,b)].join("")]}}function a(b){let y;switch(b.arrayFormat){case"index":return(f,h,j)=>{if(y=/\[(\d*)\]$/.exec(f),f=f.replace(/\[\d*\]$/,""),!y){j[f]=h;return}j[f]===void 0&&(j[f]={}),j[f][y[1]]=h};case"bracket":return(f,h,j)=>{if(y=/(\[\])$/.exec(f),f=f.replace(/\[\]$/,""),!y){j[f]=h;return}if(j[f]===void 0){j[f]=[h];return}j[f]=[].concat(j[f],h)};case"comma":case"separator":return(f,h,j)=>{const T=typeof h=="string"&&h.includes(b.arrayFormatSeparator),S=typeof h=="string"&&!T&&d(h,b).includes(b.arrayFormatSeparator);h=S?d(h,b):h;const R=T||S?h.split(b.arrayFormatSeparator).map(E=>d(E,b)):h===null?h:d(h,b);j[f]=R};default:return(f,h,j)=>{if(j[f]===void 0){j[f]=h;return}j[f]=[].concat(j[f],h)}}}function s(b){if(typeof b!="string"||b.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function c(b,y){return y.encode?y.strict?t(b):encodeURIComponent(b):b}function d(b,y){return y.decode?r(b):b}function w(b){return Array.isArray(b)?b.sort():typeof b=="object"?w(Object.keys(b)).sort((y,f)=>Number(y)-Number(f)).map(y=>b[y]):b}function m(b){const y=b.indexOf("#");return y!==-1&&(b=b.slice(0,y)),b}function v(b){let y="";const f=b.indexOf("#");return f!==-1&&(y=b.slice(f)),y}function g(b){b=m(b);const y=b.indexOf("?");return y===-1?"":b.slice(y+1)}function x(b,y){return y.parseNumbers&&!Number.isNaN(Number(b))&&typeof b=="string"&&b.trim()!==""?b=Number(b):y.parseBooleans&&b!==null&&(b.toLowerCase()==="true"||b.toLowerCase()==="false")&&(b=b.toLowerCase()==="true"),b}function p(b,y){y=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},y),s(y.arrayFormatSeparator);const f=a(y),h=Object.create(null);if(typeof b!="string"||(b=b.trim().replace(/^[?#&]/,""),!b))return h;for(const j of b.split("&")){if(j==="")continue;let[T,S]=n(y.decode?j.replace(/\+/g," "):j,"=");S=S===void 0?null:["comma","separator"].includes(y.arrayFormat)?S:d(S,y),f(d(T,y),S,h)}for(const j of Object.keys(h)){const T=h[j];if(typeof T=="object"&&T!==null)for(const S of Object.keys(T))T[S]=x(T[S],y);else h[j]=x(T,y)}return y.sort===!1?h:(y.sort===!0?Object.keys(h).sort():Object.keys(h).sort(y.sort)).reduce((j,T)=>{const S=h[T];return S&&typeof S=="object"&&!Array.isArray(S)?j[T]=w(S):j[T]=S,j},Object.create(null))}e.extract=g,e.parse=p,e.stringify=(b,y)=>{if(!b)return"";y=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},y),s(y.arrayFormatSeparator);const f=S=>y.skipNull&&u(b[S])||y.skipEmptyString&&b[S]==="",h=i(y),j={};for(const S of Object.keys(b))f(S)||(j[S]=b[S]);const T=Object.keys(j);return y.sort!==!1&&T.sort(y.sort),T.map(S=>{const R=b[S];return R===void 0?"":R===null?c(S,y):Array.isArray(R)?R.reduce(h(S),[]).join("&"):c(S,y)+"="+c(R,y)}).filter(S=>S.length>0).join("&")},e.parseUrl=(b,y)=>{y=Object.assign({decode:!0},y);const[f,h]=n(b,"#");return Object.assign({url:f.split("?")[0]||"",query:p(g(b),y)},y&&y.parseFragmentIdentifier&&h?{fragmentIdentifier:d(h,y)}:{})},e.stringifyUrl=(b,y)=>{y=Object.assign({encode:!0,strict:!0},y);const f=m(b.url).split("?")[0]||"",h=e.extract(b.url),j=e.parse(h,{sort:!1}),T=Object.assign(j,b.query);let S=e.stringify(T,y);S&&(S=`?${S}`);let R=v(b.url);return b.fragmentIdentifier&&(R=`#${c(b.fragmentIdentifier,y)}`),`${f}${S}${R}`},e.pick=(b,y,f)=>{f=Object.assign({parseFragmentIdentifier:!0},f);const{url:h,query:j,fragmentIdentifier:T}=e.parseUrl(b,f);return e.stringifyUrl({url:h,query:o(j,y),fragmentIdentifier:T},f)},e.exclude=(b,y,f)=>{const h=Array.isArray(y)?j=>!y.includes(j):(j,T)=>!y(j,T);return e.pick(b,h,f)}}(Hr)),Hr}var Qr=bu();const Yt=ll,gu={parseNumbers:!1,parseBooleans:!1},yu={skipNull:!1,skipEmptyString:!1},vu=(e,t)=>{var r,n;const{navigateMode:o="push",parseOptions:u,stringifyOptions:i}={},a=Object.assign(Object.assign({},gu),u),s=Object.assign(Object.assign({},yu),i),c=Yt.useLocation(),d=(r=Yt.useHistory)===null||r===void 0?void 0:r.call(Yt),w=(n=Yt.useNavigate)===null||n===void 0?void 0:n.call(Yt),m=cl(),v=A.useRef(typeof e=="function"?e():e||{}),g=A.useMemo(()=>Qr.parse(c.search,a),[c.search]),x=A.useMemo(()=>Object.assign(Object.assign({},v.current),g),[g]);return[x,pt(b=>{const y=typeof b=="function"?b(x):b;m(),d&&d[o]({hash:c.hash,search:Qr.stringify(Object.assign(Object.assign({},g),y),s)||"?"},c.state),w&&w({hash:c.hash,search:Qr.stringify(Object.assign(Object.assign({},g),y),s)||"?"},{replace:o==="replace",state:c.state})})]};var Jt={exports:{}},wu=Jt.exports,Xo;function xu(){return Xo||(Xo=1,function(e,t){(function(r,n){var o="1.0.40",u="",i="?",a="function",s="undefined",c="object",d="string",w="major",m="model",v="name",g="type",x="vendor",p="version",b="architecture",y="console",f="mobile",h="tablet",j="smarttv",T="wearable",S="embedded",R=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},xe=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,u).split(".")[0]:n},ye=function(N,z){if(typeof N===d)return N=N.replace(/^\s\s*/,u),typeof z===s?N:N.substring(0,R)},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===c&&ne.length>0?ne.length===2?typeof ne[1]==a?this[ne[0]]=ne[1].call(this,Ee):this[ne[0]]=ne[1]:ne.length===3?typeof ne[1]===a&&!(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]===c&&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],[p,[v,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[v,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[v,p],[/opios[\/ ]+([\w\.]+)/i],[p,[v,G+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[p,[v,G+" GX"]],[/\bopr\/([\w\.]+)/i],[p,[v,G]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[p,[v,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[p,[v,"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],[v,p],[/quark(?:pc)?\/([-\w\.]+)/i],[p,[v,"Quark"]],[/\bddg\/([\w\.]+)/i],[p,[v,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[v,"UC"+H]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[p,[v,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[v,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[v,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[p,[v,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[p,[v,"Smart Lenovo "+H]],[/(avast|avg)\/([\w\.]+)/i],[[v,/(.+)/,"$1 Secure "+H],p],[/\bfocus\/([\w\.]+)/i],[p,[v,ge+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[v,G+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[v,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[v,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[v,G+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[v,"MIUI"+le]],[/fxios\/([\w\.-]+)/i],[p,[v,ge]],[/\bqihoobrowser\/?([\w\.]*)/i],[p,[v,"360"]],[/\b(qq)\/([\w\.]+)/i],[[v,/(.+)/,"$1Browser"],p],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[v,/(.+)/,"$1"+le],p],[/samsungbrowser\/([\w\.]+)/i],[p,[v,J+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[p,[v,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[v,"Sogou Mobile"],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[v,p],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[v],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[p,v],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[v,L],p],[/(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],[v,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[v,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[p,[v,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[v,se+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[v,se+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[v,"Android "+H]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[v,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[v,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,v],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[v,[p,ue,ce]],[/(webkit|khtml)\/([\w\.]+)/i],[v,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[v,"Netscape"],p],[/(wolvic|librewolf)\/([\w\.]+)/i],[v,p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[v,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],[v,[p,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[v,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[b,"amd64"]],[/(ia32(?=;))/i],[[b,Ae]],[/((?:i[346]|x)86)[;\)]/i],[[b,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[b,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[b,"armhf"]],[/windows (ce|mobile); ppc;/i],[[b,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[b,/ower/,u,Ae]],[/(sun4\w)[;\)]/i],[[b,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[b,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],[m,[x,J],[g,h]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[m,[x,J],[g,f]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[m,[x,k],[g,f]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[m,[x,k],[g,h]],[/(macintosh);/i],[m,[x,k]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[m,[x,_],[g,f]],[/(?:honor)([-\w ]+)[;\)]/i],[m,[x,"Honor"],[g,f]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[m,[x,Y],[g,h]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[m,[x,Y],[g,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],[[m,/_/g," "],[x,M],[g,f]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[m,/_/g," "],[x,M],[g,h]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[m,[x,"OPPO"],[g,f]],[/\b(opd2\d{3}a?) bui/i],[m,[x,"OPPO"],[g,h]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[m,[x,"Vivo"],[g,f]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[m,[x,"Realme"],[g,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],[m,[x,X],[g,f]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[m,[x,X],[g,h]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[m,[x,O],[g,h]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[m,[x,O],[g,f]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[m,[x,"Lenovo"],[g,h]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[m,/_/g," "],[x,"Nokia"],[g,f]],[/(pixel c)\b/i],[m,[x,Se],[g,h]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[m,[x,Se],[g,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],[m,[x,I],[g,f]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[m,"Xperia Tablet"],[x,I],[g,h]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[m,[x,"OnePlus"],[g,f]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[m,[x,E],[g,h]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[m,/(.+)/g,"Fire Phone $1"],[x,E],[g,f]],[/(playbook);[-\w\),; ]+(rim)/i],[m,x,[g,h]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[m,[x,q],[g,f]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[m,[x,B],[g,h]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[m,[x,B],[g,f]],[/(nexus 9)/i],[m,[x,"HTC"],[g,h]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[x,[m,/_/g," "],[g,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],[m,[x,"TCL"],[g,h]],[/(itel) ((\w+))/i],[[x,Ae],m,[g,ue,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[m,[x,"Acer"],[g,h]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[m,[x,"Meizu"],[g,f]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[m,[x,"Ulefone"],[g,f]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[m,[x,"Energizer"],[g,f]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[m,[x,"Cat"],[g,f]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[m,[x,"Smartfren"],[g,f]],[/droid.+; (a(?:015|06[35]|142p?))/i],[m,[x,"Nothing"],[g,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],[x,m,[g,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],[x,m,[g,h]],[/(surface duo)/i],[m,[x,F],[g,h]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[m,[x,"Fairphone"],[g,f]],[/(u304aa)/i],[m,[x,"AT&T"],[g,f]],[/\bsie-(\w*)/i],[m,[x,"Siemens"],[g,f]],[/\b(rct\w+) b/i],[m,[x,"RCA"],[g,h]],[/\b(venue[\d ]{2,7}) b/i],[m,[x,"Dell"],[g,h]],[/\b(q(?:mv|ta)\w+) b/i],[m,[x,"Verizon"],[g,h]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[m,[x,"Barnes & Noble"],[g,h]],[/\b(tm\d{3}\w+) b/i],[m,[x,"NuVision"],[g,h]],[/\b(k88) b/i],[m,[x,"ZTE"],[g,h]],[/\b(nx\d{3}j) b/i],[m,[x,"ZTE"],[g,f]],[/\b(gen\d{3}) b.+49h/i],[m,[x,"Swiss"],[g,f]],[/\b(zur\d{3}) b/i],[m,[x,"Swiss"],[g,h]],[/\b((zeki)?tb.*\b) b/i],[m,[x,"Zeki"],[g,h]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[x,"Dragon Touch"],m,[g,h]],[/\b(ns-?\w{0,9}) b/i],[m,[x,"Insignia"],[g,h]],[/\b((nxa|next)-?\w{0,9}) b/i],[m,[x,"NextBook"],[g,h]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[x,"Voice"],m,[g,f]],[/\b(lvtel\-)?(v1[12]) b/i],[[x,"LvTel"],m,[g,f]],[/\b(ph-1) /i],[m,[x,"Essential"],[g,f]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[m,[x,"Envizen"],[g,h]],[/\b(trio[-\w\. ]+) b/i],[m,[x,"MachSpeed"],[g,h]],[/\btu_(1491) b/i],[m,[x,"Rotor"],[g,h]],[/(shield[\w ]+) b/i],[m,[x,"Nvidia"],[g,h]],[/(sprint) (\w+)/i],[x,m,[g,f]],[/(kin\.[onetw]{3})/i],[[m,/\./g," "],[x,F],[g,f]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[m,[x,W],[g,h]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[m,[x,W],[g,f]],[/smart-tv.+(samsung)/i],[x,[g,j]],[/hbbtv.+maple;(\d+)/i],[[m,/^/,"SmartTV"],[x,J],[g,j]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[x,O],[g,j]],[/(apple) ?tv/i],[x,[m,k+" TV"],[g,j]],[/crkey/i],[[m,se+"cast"],[x,Se],[g,j]],[/droid.+aft(\w+)( bui|\))/i],[m,[x,E],[g,j]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[m,[x,_],[g,j]],[/(bravia[\w ]+)( bui|\))/i],[m,[x,I],[g,j]],[/(mitv-\w{5}) bui/i],[m,[x,M],[g,j]],[/Hbbtv.*(technisat) (.*);/i],[x,m,[g,j]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[x,ye],[m,ye],[g,j]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[g,j]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[x,m,[g,y]],[/droid.+; (shield) bui/i],[m,[x,"Nvidia"],[g,y]],[/(playstation [345portablevi]+)/i],[m,[x,I],[g,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[m,[x,F],[g,y]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[m,[x,J],[g,T]],[/((pebble))app/i],[x,m,[g,T]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[m,[x,k],[g,T]],[/droid.+; (glass) \d/i],[m,[x,Se],[g,T]],[/droid.+; (wt63?0{2,3})\)/i],[m,[x,W],[g,T]],[/droid.+; (glass) \d/i],[m,[x,Se],[g,T]],[/(pico) (4|neo3(?: link|pro)?)/i],[x,m,[g,T]],[/; (quest( \d| pro)?)/i],[m,[x,L],[g,T]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[x,[g,S]],[/(aeobc)\b/i],[m,[x,E],[g,S]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[m,[g,f]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[m,[g,h]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[g,h]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[g,f]],[/(android[-\w\. ]{0,9});.+buil/i],[m,[x,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[p,[v,oe+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[v,p],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[v,"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],[v,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,v]],os:[[/microsoft (windows) (vista|xp)/i],[v,p],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[v,[p,ue,te]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,ue,te],[v,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[v,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[v,Q],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,v],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[v,p],[/\(bb(10);/i],[p,[v,q]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[v,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[v,ge+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[v,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[p,[v,"watchOS"]],[/crkey\/([\d\.]+)/i],[p,[v,se+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[v,U],p],[/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],[v,p],[/(sunos) ?([\w\.\d]*)/i],[[v,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[v,p]]},je=function(N,z){if(typeof N===c&&(z=N,N=n),!(this instanceof je))return new je(N,z).getResult();var V=typeof r!==s&&r.navigator?r.navigator:n,ee=N||(V&&V.userAgent?V.userAgent:u),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[v]=n,re[p]=n,Te.call(re,ee,fe.browser),re[w]=Ne(re[p]),ne&&V&&V.brave&&typeof V.brave.isBrave==a&&(re[v]="Brave"),re},this.getCPU=function(){var re={};return re[b]=n,Te.call(re,ee,fe.cpu),re},this.getDevice=function(){var re={};return re[x]=n,re[m]=n,re[g]=n,Te.call(re,ee,fe.device),ne&&!re[g]&&ae&&ae.mobile&&(re[g]=f),ne&&re[m]=="Macintosh"&&V&&typeof V.standalone!==s&&V.maxTouchPoints&&V.maxTouchPoints>2&&(re[m]="iPad",re[g]=h),re},this.getEngine=function(){var re={};return re[v]=n,re[p]=n,Te.call(re,ee,fe.engine),re},this.getOS=function(){var re={};return re[v]=n,re[p]=n,Te.call(re,ee,fe.os),ne&&!re[v]&&ae&&ae.platform&&ae.platform!="Unknown"&&(re[v]=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>R?ye(re,R):re,this},this.setUA(ee),this};je.VERSION=o,je.BROWSER=xe([v,p,w]),je.CPU=xe([b]),je.DEVICE=xe([m,x,g,y,f,j,h,T,S]),je.ENGINE=je.OS=xe([v,p]),e.exports&&(t=e.exports=je),t.UAParser=je;var P=typeof r!==s&&(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:wu)}(Jt,Jt.exports)),Jt.exports}var Cu=xu();const Jr=Ji(Cu);function ju({user:e,sessionUser:t}){const r=mt(()=>(e?.passports||[])?.find(n=>n.name===t.role),[e?.passports,t?.role]);return l.jsxs($,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(es,{size:40,variant:"circle",shape:"circle",src:t.avatar,did:t.did,sx:{flexShrink:0}}),l.jsxs($,{sx:{flex:1,overflow:"hidden"},children:[l.jsxs($,{sx:{display:"flex",alignItems:"center",gap:1},children:[l.jsx(bt,{title:t.fullName,children:l.jsx(Re,{sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1},children:t.fullName})}),l.jsx(ts,{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"}})]}),l.jsx(bt,{title:t.email,children:l.jsx(Re,{variant:"body2",color:"grey",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.email})})]})]})}const Su={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"}},Os="Reserved IP",Qo="ip-region-cache";async function Tu(e){const t=`https://ipapi.co/${e}/json/`,r=await(await fetch(t)).json();let n="";return r.error?r.reserved&&(n=Os):n=[r.country_name,r.region,r.city].filter(Boolean).join("/"),n}async function Eu(e){const t=`https://api.ip.sb/geoip/${e}`,r=await(await fetch(t)).json();let n="";return r.error?r.reserved&&(n=Os):n=[r.country,r.region,r.city].filter(Boolean).join("/"),n}async function ku(e){let t="",r={};try{const n=localStorage.getItem(Qo);n&&(r=JSON.parse(n))}catch{r={}}if(r[e])t=r[e];else{try{t=await Eu(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!t)try{t=await Tu(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(Qo,JSON.stringify(r))}return t}const Jo=e=>new Jr(e,{browser:[[/(ArcWallet)\/([\w\.]+)/i],[Jr.BROWSER.NAME,Jr.BROWSER.VERSION]]}).getResult(),ei={display:"flex",justifyContent:"flex-end",textAlign:"right"},Pu=new fl({concurrency:1}),Iu=A.memo(({userSession:e,isMobile:t=!1})=>{const r=gt({loading:!0,ipRegion:""}),{t:n}=Ie();return A.useEffect(()=>{Pu.add(async()=>{try{r.ipRegion=await ku(e.lastLoginIp)}finally{r.loading=!1}})},[r,e.lastLoginIp]),l.jsx($,{...t&&{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:1,flexWrap:"wrap"},children:r.ipRegion?l.jsxs(l.Fragment,{children:[l.jsx(Re,{variant:"body2",children:r.ipRegion}),l.jsx(Re,{variant:"body2",color:"grey",children:e.lastLoginIp||n("unknown")})]}):l.jsxs(l.Fragment,{children:[l.jsx(Re,{children:e.lastLoginIp||n("unknown")}),r.loading?l.jsx(Re,{variant:"body2",color:"grey",sx:{textAlign:"center"},children:l.jsx(yt,{size:12,color:"inherit"})}):null]})})});function Ru({user:e,showAction:t=!0,showUser:r=!0,getUserSessions:n,showOffline:o=!1,showAppPid:u=!1}){const i=gt({status:"online",page:1,pageSize:10}),a=gt({online:0,expired:0,offline:0}),s=ul(),{locale:c}=Ie(),d=mc({key:"md"}),w=Qn(E=>E.breakpoints.down("lg")),{confirmApi:m,confirmHolder:v}=Jn(),g=pt((E,k={})=>dl(Su,E,c,"en",k)),x=pt(async()=>{const E=await n({page:i.page,pageSize:i.pageSize,status:i.status}),k=E?.paging?.total||0;return a[i.status]=k,{total:k,list:E?.list||[]}});rs(async()=>{const E=await n({page:1,pageSize:1,status:"expired"});a.expired=E?.paging?.total||0;const k=await n({page:1,pageSize:1,status:"offline"});a.offline=k?.paging?.total||0});const p=ns(x,{refreshDeps:[i.status,i.page,i.pageSize]}),b=mt(()=>p.data?.list||[],[p.data?.list]),y=mt(()=>{const E=i.status;return E==="online"?a[E]<=1:a[E]===0},[b,s]),f=mt(()=>Cr({},d?ei:{}),[d]),h=pt(({visitorId:E})=>{m.open({title:g("logoutThisSession"),content:g("logoutThisSessionConfirm"),confirmButtonText:g("confirm"),confirmButtonProps:{color:"error"},cancelButtonText:g("cancel"),onConfirm:async()=>{await Mo.user.logout({visitorId:E,includeFederated:!0});const{page:k=0}=i,{list:B=[]}=p.data||{},q=B.length||0;k>1&&q===1&&(i.page=Math.max(k-1,1)),p.refresh(),m.close()}})}),j=pt(()=>{m.open({title:g("logoutAllSession",{type:g(i.status)}),content:g("logoutAllSessionConfirm",{type:g(i.status)}),confirmButtonText:g("confirm"),confirmButtonProps:{color:"error"},cancelButtonText:g("cancel"),onConfirm:async()=>{await Mo.user.logout({status:i.status,visitorId:s,includeFederated:!0}),i.page=1,p.refresh(),m.close()}})}),T=[];t&&T.push(l.jsx(bt,{title:g("logoutAllTips",{type:g(i.status)}),children:l.jsx(qe,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:j,disabled:y,children:g("logoutAll",{type:g(i.status)})})},"logoutAll"));const S=mt(()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600,page:i.page-1,rowsPerPage:i.pageSize,count:p.data?.total||0}),[p.data?.total,i.page,i.pageSize]),R=[{label:g("platform"),name:"platform",options:{customBodyRenderLite:E=>{const k=b[E],B=Jo(k?.ua);return l.jsx($,{sx:f,children:[B.os?.name,B.os?.version].filter(Boolean).join("/")||g("unknown")})}}},{label:g("deviceType"),name:"deviceType",options:{customBodyRenderLite:E=>{const k=b[E],B=Jo(k?.ua);return l.jsx($,{sx:f,children:[B.browser?.name,B.browser?.version].filter(Boolean).join("/")||g("unknown")})}}},{label:g("walletOS"),name:"walletOS",options:{customBodyRenderLite:E=>{const k=b[E];return l.jsx($,{sx:f,children:k.extra?.walletOS||g("unknown")})}}},u&&{label:"App Pid",name:"appPid",options:{customBodyRenderLite:E=>{const k=b[E];return k.appPid?l.jsx(os,{size:14,responsive:!1,compact:!0,did:k.appPid}):null}}},r&&{label:g("user"),name:"user",options:{customBodyRenderLite:E=>{const k=b[E];return l.jsx($,{sx:Cr({minWidth:150,maxWidth:250},d?ei:{}),children:l.jsx(ju,{sessionUser:k.user,user:e})})}}},{label:g("createdAt"),name:"createdAt",options:{customBodyRenderLite:E=>{const k=b[E];return l.jsx($,{sx:f,children:k.createdAt?l.jsx(rr,{value:k.createdAt,relativeRange:3*86400*1e3,locale:c}):g("unknown")})}}},!o&&{label:g("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:E=>{const k=b[E];return l.jsx($,{sx:f,children:k.status==="expired"?g("expired"):l.jsx(rr,{value:k.updatedAt,relativeRange:3*86400*1e3,locale:c})})}}},{label:g("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:E=>{const k=b[E];return l.jsx(Iu,{userSession:k,isMobile:d})}}},t&&{label:g("actions"),name:"actions",options:{customBodyRenderLite:E=>{const k=b[E];return l.jsx($,{sx:f,children:l.jsx(qe,{sx:{whiteSpace:"nowrap",fontSize:"12px !important",lineHeight:"1.25",px:1},disabled:s===k.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>h({visitorId:k.visitorId}),children:k.status==="expired"?g("remove"):s===k.visitorId?g("currentSession"):g("logout")})})}}}].filter(Boolean);return l.jsxs($,{className:"pc-user-sessions",sx:{maxWidth:d?"unset":w?"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:[v,l.jsx(ao,{count:p.data?.total||0,locale:c,data:b,columns:R,customButtons:T,options:S,loading:p.loading,className:"pc-user-sessions-table",title:l.jsxs(ys,{row:!0,sx:{lineHeight:1,ml:1},onChange:E=>{i.status=E.target.value},children:[l.jsx(Mt,{value:"online",control:l.jsx(wr,{size:"small",sx:{lineHeight:1,fontSize:0},checked:i.status==="online"}),label:l.jsxs(Re,{sx:{display:"flex",alignItems:"center"},children:[g("online"),l.jsxs(Re,{component:"span",sx:{ml:.5,color:"text.secondary"},children:["(",a.online,")"]})]})}),l.jsx(Mt,{value:"expired",control:l.jsx(wr,{size:"small",sx:{lineHeight:1,fontSize:0},checked:i.status==="expired"}),label:l.jsxs(Re,{sx:{display:"flex",alignItems:"center"},children:[g("expired"),l.jsxs(Re,{component:"span",sx:{ml:.5,color:"text.secondary"},children:["(",a.expired,")"]})]})}),o?l.jsx(Mt,{value:"offline",control:l.jsx(wr,{size:"small",sx:{lineHeight:1,fontSize:0},checked:i.status==="offline"}),label:l.jsxs(Re,{sx:{display:"flex",alignItems:"center"},children:[g("offline"),l.jsxs(Re,{component:"span",sx:{ml:.5,color:"text.secondary"},children:["(",a.offline,")"]})]})}):null]}),onChange:E=>{i.page=E.page+1,i.pageSize=E.rowsPerPage}})]})}var en={exports:{}},tn={},ti;function _s(){if(ti)return tn;ti=1;function e(y){"@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(y)}function t(y,f,h){return Object.defineProperty(y,"prototype",{writable:!1}),y}function r(y,f){if(!(y instanceof f))throw new TypeError("Cannot call a class as a function")}function n(y,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(f&&f.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),Object.defineProperty(y,"prototype",{writable:!1}),f&&o(y,f)}function o(y,f){return o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(j,T){return j.__proto__=T,j},o(y,f)}function u(y){var f=s();return function(){var j=c(y),T;if(f){var S=c(this).constructor;T=Reflect.construct(j,arguments,S)}else T=j.apply(this,arguments);return i(this,T)}}function i(y,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 a(y)}function a(y){if(y===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}function s(){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 c(y){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(h){return h.__proto__||Object.getPrototypeOf(h)},c(y)}var d={},w,m;function v(y,f,h){h||(h=Error);function j(S,R,E){return typeof f=="string"?f:f(S,R,E)}var T=function(S){n(E,S);var R=u(E);function E(k,B,q){var H;return r(this,E),H=R.call(this,j(k,B,q)),H.code=y,H}return t(E)}(h);d[y]=T}function g(y,f){if(Array.isArray(y)){var h=y.length;return y=y.map(function(j){return String(j)}),h>2?"one of ".concat(f," ").concat(y.slice(0,h-1).join(", "),", or ")+y[h-1]:h===2?"one of ".concat(f," ").concat(y[0]," or ").concat(y[1]):"of ".concat(f," ").concat(y[0])}else return"of ".concat(f," ").concat(String(y))}function x(y,f,h){return y.substr(0,f.length)===f}function p(y,f,h){return(h===void 0||h>y.length)&&(h=y.length),y.substring(h-f.length,h)===f}function b(y,f,h){return typeof h!="number"&&(h=0),h+f.length>y.length?!1:y.indexOf(f,h)!==-1}return v("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),v("ERR_INVALID_ARG_TYPE",function(y,f,h){w===void 0&&(w=Vn()),w(typeof y=="string","'name' must be a string");var j;typeof f=="string"&&x(f,"not ")?(j="must not be",f=f.replace(/^not /,"")):j="must be";var T;if(p(y," argument"))T="The ".concat(y," ").concat(j," ").concat(g(f,"type"));else{var S=b(y,".")?"property":"argument";T='The "'.concat(y,'" ').concat(S," ").concat(j," ").concat(g(f,"type"))}return T+=". Received type ".concat(e(h)),T},TypeError),v("ERR_INVALID_ARG_VALUE",function(y,f){var h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";m===void 0&&(m=nr());var j=m.inspect(f);return j.length>128&&(j="".concat(j.slice(0,128),"...")),"The argument '".concat(y,"' ").concat(h,". Received ").concat(j)},TypeError),v("ERR_INVALID_RETURN_VALUE",function(y,f,h){var j;return h&&h.constructor&&h.constructor.name?j="instance of ".concat(h.constructor.name):j="type ".concat(e(h)),"Expected ".concat(y,' to be returned from the "').concat(f,'"')+" function but got ".concat(j,".")},TypeError),v("ERR_MISSING_ARGS",function(){for(var y=arguments.length,f=new Array(y),h=0;h<y;h++)f[h]=arguments[h];w===void 0&&(w=Vn()),w(f.length>0,"At least one arg needs to be specified");var j="The ",T=f.length;switch(f=f.map(function(S){return'"'.concat(S,'"')}),T){case 1:j+="".concat(f[0]," argument");break;case 2:j+="".concat(f[0]," and ").concat(f[1]," arguments");break;default:j+=f.slice(0,T-1).join(", "),j+=", and ".concat(f[T-1]," arguments");break}return"".concat(j," must be specified")},TypeError),tn.codes=d,tn}var rn,ri;function Au(){if(ri)return rn;ri=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 u(O,F,X){return F&&o(O.prototype,F),Object.defineProperty(O,"prototype",{writable:!1}),O}function i(O){var F=a(O,"string");return y(F)==="symbol"?F:String(F)}function a(O,F){if(y(O)!=="object"||O===null)return O;var X=O[Symbol.toPrimitive];if(X!==void 0){var G=X.call(O,F);if(y(G)!=="object")return G;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(O)}function s(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&&p(O,F)}function c(O){var F=g();return function(){var G=b(O),J;if(F){var _=b(this).constructor;J=Reflect.construct(G,arguments,_)}else J=G.apply(this,arguments);return d(this,J)}}function d(O,F){if(F&&(y(F)==="object"||typeof F=="function"))return F;if(F!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return w(O)}function w(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}function m(O){var F=typeof Map=="function"?new Map:void 0;return m=function(G){if(G===null||!x(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 v(G,arguments,b(this).constructor)}return J.prototype=Object.create(G.prototype,{constructor:{value:J,enumerable:!1,writable:!0,configurable:!0}}),p(J,G)},m(O)}function v(O,F,X){return g()?v=Reflect.construct.bind():v=function(J,_,I){var M=[null];M.push.apply(M,_);var W=Function.bind.apply(J,M),L=new W;return I&&p(L,I.prototype),L},v.apply(null,arguments)}function g(){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 x(O){return Function.toString.call(O).indexOf("[native code]")!==-1}function p(O,F){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(G,J){return G.__proto__=J,G},p(O,F)}function b(O){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(X){return X.__proto__||Object.getPrototypeOf(X)},b(O)}function y(O){"@babel/helpers - typeof";return y=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},y(O)}var f=nr(),h=f.inspect,j=_s(),T=j.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 R(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 h(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"&&y(O)==="object"&&y(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((y(O)!=="object"||O===null)&&(y(F)!=="object"||F===null)&&(O!==0||F!==0))return"".concat(H[X],`
|
|
4
4
|
|
|
@@ -258,7 +258,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
258
258
|
fill: #999;
|
|
259
259
|
`;function qm(){const{api:e,inService:t}=Fe(),{t:r,locale:n}=A.useContext(lr),{teamDid:o,invitations:u,refresh:i,endpoint:a,roles:s}=He(),[c,d]=A.useState(null),[w,m]=A.useState(!1),v=async({inviteId:b})=>{if(!w){m(!0);try{await e.deleteInvitation({input:{teamDid:o,inviteId:b}}),i(),await nc(800)}catch(y){console.error(y)}finally{m(!1),d(null)}}},g=()=>{m(!1),d(null)},x=b=>a?Tr({inviteId:b.inviteId,endpoint:a}):"",p=[{label:r("team.inviting.link"),name:"inviteId",options:{sort:!1,customBodyRenderLite:b=>{const y=u[b];return a?l.jsx(Nr,{children:x(y)}):l.jsx(yt,{size:16})}}},{label:r("common.role"),name:"role",widtn:70,options:{sort:!1,customBodyRender:b=>{const y=s.find(f=>f.name===b);return y?.title?l.jsx(bt,{title:b,children:y.title}):b||"--"}}},{label:r("common.remark"),name:"remark",options:{sort:!1,customBodyRender:b=>b||"--"}},{label:r("team.inviting.inviter"),name:"inviter.fullName",options:{sort:!1,customBodyRender:(b,{rowIndex:y})=>u[y]?.inviter?.fullName}},{label:r("common.expires"),name:"expireDate",options:{sort:!1,customBodyRender:b=>l.jsx($,{children:$e(b).format("YYYY-MM-DD HH:mm")})}},{label:r("common.actions"),name:"",width:100,align:"center",options:{sort:!1,customBodyRenderLite:b=>{const y=u[b];return l.jsx(Pt,{permission:t?"":"mutate_team",role:t?Nt:[],children:l.jsxs(Ve,{onClick:()=>d({title:r("team.inviting.delete.title"),description:r("team.inviting.delete.description",{link:x(y)}),confirm:r("common.delConfirm"),cancel:r("common.cancel"),onConfirm:()=>v(y),onCancel:g}),size:"small",color:"error",variant:"text",children:[l.jsx(hc,{style:{fontSize:"1.2em"}}),r("common.delete")]})})}}}];return l.jsxs(Um,{children:[u.length?l.jsx(ao,{locale:n,data:[...u],columns:p,verticalKeyWidth:100,options:{download:!1,filter:!1,print:!1,search:!1,viewColumns:!1}}):l.jsx(Lr,{sx:{minHeight:200},children:r("common.empty")}),c&&l.jsx(cr,{title:c.title,description:c.description,confirm:c.confirm,cancel:c.cancel,params:c.params,onConfirm:c.onConfirm,onCancel:c.onCancel})]})}const Um=Ke.div`
|
|
260
260
|
margin-top: -20px;
|
|
261
|
-
`;function tl({type:e,user:t,onIssuePassport:r=()=>{},onRefresh:n=()=>{}}){const{teamDid:o,roles:u}=He(),{confirmHolder:i,confirmApi:a}=Jn(),{t:s}=A.useContext(lr),[c,d]=A.useState(!1),{api:w}=Fe(),m=pt(async(v=!1)=>{await w.logoutUser({input:{teamDid:o,appPid:o,userDid:t.did,remove:v}})});return l.jsxs(l.Fragment,{children:[i,l.jsx(ru,{"data-cy":"member-actions",actions:[{icon:l.jsx(Bt,{fontSize:"small"}),text:s("team.passport.issue"),"data-cy":"action-issue-passport",onClick:v=>{v.stopPropagation(),d(!0)}},({close:v})=>l.jsx(Eo,{user:t,children:({open:g})=>l.jsxs(kt,{dense:!0,onClick:x=>{x.stopPropagation(),v(),g(x)},"data-cy":"action-toggle-block",children:[l.jsx(oc,{style:{minWidth:24,marginRight:8},children:t.approved?l.jsx(As,{}):l.jsx(Is,{})}),l.jsx(ic,{primary:t.approved?s("team.member.blockAccess"):s("team.member.allowAccess")})]})},"toggle-approval"),e==="blocklet"&&{icon:l.jsx(cu,{fontSize:"small"}),text:s("team.member.forceLogout"),onClick:v=>{v.stopPropagation(),a.open({title:s("team.member.forceLogout"),content:v.altKey?s("team.member.forceLogoutRemoveDescription"):s("team.member.forceLogoutDescription"),confirmButtonText:s("common.confirm"),cancelButtonText:s("common.cancel"),onClick:g=>g.stopPropagation(),onConfirm:async()=>{await m(v.altKey),await a.close(),n()}})}}].filter(Boolean)}),c&&l.jsx(To,{teamDid:o,ownerDid:t.did,needReceive:qa.getWalletDid(t)===t.did,roles:u,onCancel:()=>d(!1),onSuccess:()=>{r(),d(!1)}})]})}tl.propTypes={type:C.oneOf(["server","blocklet"]).isRequired,user:C.object.isRequired,onIssuePassport:C.func,onRefresh:C.func};const Bn="$all",Xi="$none",Qi="$blocked",vr=(e,t)=>e.find(n=>n.key===t)?.value||0,$m=(e,t)=>{const r=e.passports||[];return r.length?!r.some(n=>t.includes(n.issuer?.id)):!1};function rl({user:e}){const{t}=A.useContext(lr),r=mt(()=>({...e,avatar:`${e.avatar}?imageFilter=resize&w=48&h=48`}),[e]),n=l.jsxs("div",{className:"member-block",children:[l.jsxs("div",{className:"member-avatar",children:[l.jsx(io,{user:r,avatarSize:32,cardType:so.AvatarOnly,showHoverCard:!1}),!e.approved&&l.jsx("did",{className:"badge-block"}),e.isFromExternal&&l.jsx(bt,{title:t("team.passport.externalPassport"),children:l.jsx($,{className:"icon",sx:{ml:1},children:l.jsx(Rs,{})})})]}),l.jsxs("div",{className:"member-meta",children:[l.jsx("div",{className:"member-text",children:l.jsx(nu,{children:e.fullName})}),Array.isArray(e.tags)&&e.tags.length>0&&l.jsx($,{className:"member-tags",sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:.5},children:e.tags.map(o=>l.jsx(ut,{label:o},o.id))})]})]});return e.approved?n:l.jsx($,{sx:{display:"flex",alignItems:"center"},children:l.jsx(bt,{title:t("team.member.blockAccessDescription"),children:n})})}rl.propTypes={user:C.object.isRequired};function Io({type:e,createPassportSvg:t}){const{session:r}=vt(),{confirmApi:n,confirmHolder:o}=Jn({sx:{".MuiDialog-paper":{borderRadius:2,maxWidth:1e3},".ux-dialog_title":{fontWeight:600},".ux-dialog_closeButton":{p:1},".MuiDialogActions-root":{display:{xs:"none",md:"flex"}}}}),{appIdList:u=[],blocklet:i}=vs(),{refetch:a}=Ht(),{teamDid:s,invitations:c,teamIssuerDid:d,roles:w,refresh:m,enablePassportIssuance:v,endpoint:g,api:x}=He(),{showManageLabels:p,setShowManageLabels:b,labelManageActions:y}=Ja(),{api:f,inService:h,ws:{useSubscription:j},info:T}=Fe(),S=[];if(i){const Z=(i.settings?.federated?.sites||[]).find(de=>de.isMaster!==!1),ie=(i.settings?.federated?.sites||[]).find(de=>de.appId===i.appDid);if(ie?.status==="approved"&&S.push({appId:Z?.appId,appName:Z?.appName,appDescription:Z?.appDescription,appLogo:Z?.appLogo,appPid:Z?.appPid,appUrl:Z?.appUrl,version:Z?.version,sourceAppPid:Z?.appPid,provider:"wallet"}),ie)S.push({appId:ie?.appId||i.appDid,appName:ie?.appName,appDescription:ie?.appDescription,appLogo:ie?.appLogo,appPid:ie?.appPid,appUrl:ie?.appUrl,version:ie?.version,sourceAppPid:null,provider:"wallet"});else{const de=Xu(i,void 0,{returnWallet:!1});S.push({appId:de.did,appName:de.name,appDescription:de.description,appLogo:sc(de.appUrl,ht.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo"),appPid:i?.appPid,appUrl:de.appUrl,version:de.version,sourceAppPid:null,provider:"wallet"})}}const{t:R,locale:E}=A.useContext(lr),[k,B]=A.useState(!1),[q,H]=A.useState(!1),[se,oe]=A.useState(!1),[ge,Se]=A.useState(!1),[Y,O]=A.useState(!1),[F,X]=A.useState([]),[G,J]=A.useState(),[_,I]=A.useState([]),[M]=vu({did:void 0}),[W,L]=A.useState(""),[U,Q]=A.useState([]),[le,be]=A.useState([]),[xe,ke]=A.useState([]),Ae=`members-${s}`,Ne=pc(Ae),[ye,Te]=A.useState({role:Bn,searchText:Ne.searchText||"",hideBlocked:!1,pageSize:Ne.rowsPerPage||10,page:1}),ue=A.useMemo(()=>{if(!h)return!1;if(!r?.user)return!0;const Z=r?.user?.role,de=(r?.user?.passports||[]).filter(Pe=>Pe.role===Z);return de.length===0?!0:de.every(Pe=>Pe.expirationDate)},[r?.user,h]),ce=A.useCallback(async()=>{if(s===T.did){L("");return}const Z=await ac(i);L(Z)},[i,s,T.did]);rs(async()=>{if(M.did){const{user:Z}=await x.getUser({did:M.did});Z&&Se(Z)}}),A.useEffect(()=>{ce()},[ce]);const te=(w||[]).map(Z=>({name:Z.name,title:Z.title,num:vr(_,Z.name)}));te.unshift({name:Bn,title:"All Members",num:vr(_,Bn)}),te.push({name:Xi,title:"Other",num:vr(_,Xi)}),te.push({name:Qi,title:"Blocked",num:vr(_,Qi)});const Ce=()=>{const Z={includeTags:!0,includeUserSessions:e==="blocklet"};ye.hideBlocked&&(Z.approved=!0),Z.role=ye.role,ye.searchText&&(Z.search=ye.searchText),Z.tags=xe,x.getUsers({query:Z,paging:{page:ye.page,pageSize:ye.pageSize}}).then(ie=>{O(!1),(ie.users||[]).forEach(de=>{de.isFromExternal=$m(de,uc(u)?[d]:u),de.avatar=gs(de.avatar,s,h),de.passports=(de.passports||[]).filter(Pe=>Pe.issuer)}),X(ie.users||[]),J(ie.paging.total)}).catch(ie=>{O(!1),Me.error(ie.message)})},je=()=>{O(!0),Ce()},P=()=>{x.getUsersCountPerRole().then(Z=>{I(Z.counts||[])}).catch(Z=>{Me.error(Z.message)})},D=Z=>{Z.teamDid===s&&(je(),P())};A.useEffect(()=>{je()},[`${ye.hideBlocked}-${ye.role}-${ye.page}-${ye.pageSize}-${ye.searchText}-${xe.join(",")}`]),A.useEffect(()=>{P()},[]),j(St.TeamEvents.userUpdated,D,[ye]),j(St.TeamEvents.userAdded,D,[ye]);const N=v,z=pt((Z,ie=!1)=>{const de=async({page:Pe=1,pageSize:Kr=10,status:ol}={})=>{const Ro={userDid:Z.did,status:ol};return ie||(Ro.appPid=s),await f.getUserSessions({input:{teamDid:s,query:Ro,paging:{pageSize:Kr,page:Pe}}})};n.open({title:l.jsxs("div",{children:["User Sessions",ie?" (Show All)":""]}),content:l.jsx(Ru,{showAppPid:ie,user:Z,showAction:!1,showUser:!1,showOffline:!0,getUserSessions:de}),onConfirm(){n.close()},confirmButtonText:R("common.close"),showCancelButton:!1})}),V=[{label:R("common.name"),name:"fullName",options:{customBodyRenderLite:Z=>{const ie=F[Z];return l.jsx("div",{"data-cy":`member-name-${ie.fullName}`,children:l.jsx(rl,{user:ie})},ie.did)}}},{label:R("common.address"),name:"did",options:{customBodyRender:Z=>l.jsx(oo,{size:14,responsive:!1,compact:!0,copyable:!1,did:Z})}},{label:R("team.member.lastLogin"),name:"lastLoginAt",options:{customBodyRender:Z=>l.jsx($,{sx:{minWidth:"100px"},children:l.jsx(rr,{value:Z,locale:E})})}},{label:R("team.member.lastLoginIp"),name:"lastLoginIp",options:{customBodyRender:Z=>Z||"-"}},{label:R("team.member.source"),name:"sourceProvider",options:{customBodyRenderLite:Z=>{const ie=F[Z],de=ie.sourceProvider||ht.USER_TYPE.WALLET,Pe=St.PROVIDER_NAME[de]||de;return ie.sourceAppPid?`${Pe} (${R("team.member.federated")})`:Pe}}},e==="blocklet"&&{label:R("team.member.activeUserSessions"),name:"userSessions",options:{customBodyRenderLite:Z=>{const ie=F[Z];return l.jsx(er,{onClick:de=>{de.stopPropagation(),z(ie,de.altKey)},children:l.jsx(lc,{badgeContent:ie?.userSessionsCount,color:ie?.userSessionsCount>0?"primary":"default",sx:ie?.userSessionsCount>0?{}:{".MuiBadge-badge":{backgroundColor:"grey",color:"white"}},showZero:!0,children:l.jsx(dc,{})})})}}},{label:R("common.actions"),name:"",width:100,align:"center",verticalKeyAlign:"center",options:{customBodyRenderLite:Z=>{const ie=F[Z];return l.jsx(Pt,{permission:h?"":"mutate_team",role:h?Nt:[],children:l.jsx(tl,{type:e,user:ie,onIssuePassport:()=>Se({...ie,initTab:"issuances"}),onRefresh:()=>D({teamDid:s})})})}}}].filter(Boolean),ee=[];ee.push(l.jsx(Co,{value:xe,onChange:ke,sx:{maxWidth:300,height:36},LabelPickerProps:{enableAccessControl:!1,actions:y}})),N&&(ue||ee.push(l.jsx(Lo,{variant:"contained",menuButtonProps:{"data-cy":"invite-member-more"},menu:l.jsx(Lo.Item,{variant:"outlined",style:{flexShrink:0},color:"primary",size:"small",onClick:()=>{oe(!0)},children:l.jsxs($,{sx:{display:"flex",alignItems:"center"},children:[l.jsx(du,{style:{height:"1em",marginRight:4}}),R("common.inviting"),c.length?` (${c.length})`:""]})}),children:()=>l.jsxs(Ve,{style:{flexShrink:0,marginLeft:16},edge:"end",color:"primary",size:"small","data-cy":"invite-member",onClick:()=>B(!0),children:[l.jsx(Bt,{style:{fontSize:"1.3em",marginRight:4}}),R("team.invite.action")]})})),e==="server"&&ee.push(l.jsx(Pt,{role:"owner",children:l.jsxs(Ve,{style:{flexShrink:0,marginLeft:16},variant:"contained",edge:"end",color:"error","data-cy":"invite-member",onClick:()=>H(!0),children:[l.jsx(uu,{style:{fontSize:"1.3em",marginRight:4}}),R("team.transferNode.name")]})})));const ae=Z=>{Y||Te(ie=>({...ie,role:Z,hideBlocked:!1,searchText:"",page:1}))},fe=Z=>{Te(ie=>({...ie,hideBlocked:Z,page:1}))},ne=({page:Z,rowsPerPage:ie,searchText:de})=>{ye.pageSize!==ie?Te(Pe=>({...Pe,pageSize:ie,page:1})):ye.page!==Z+1?Te(Pe=>({...Pe,page:Z+1})):ye.searchText!==de&&Te(Pe=>({...Pe,searchText:de,page:1}))},re=A.useRef(null),Ee=Z=>Z.data.length?l.jsx($,{sx:{display:"flex",alignItems:"center"},children:l.jsx(dr,{value:[le],onChange:ie=>{be([...le,ie[0]]),f.createTagging({input:{teamDid:s,tagging:{tagId:ie[0],taggableIds:U,taggableType:"user"}}}).then(()=>{Ce(),Q([])})},trigger:l.jsx(Ve,{className:"resend-btn",color:"primary",variant:"contained",sx:{my:"2px",".MuiButton-startIcon":{mr:"2px"}},onClick:()=>{},children:R("label.actionLabel")}),multiple:!1,actions:y})}):null,Ye={sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!0,onRowClick(Z,{dataIndex:ie},de){if(re.current?.contains(de.target)){const Pe=F[ie];Se(Pe)}},page:ye.page-1,rowsPerPage:ye.pageSize,count:G,searchDebounceTime:600,selectableRows:"multiple",filterType:"checkbox",onRowSelectionChange:(Z,ie,de)=>{const Pe=de.map(Kr=>F[Kr].did);Q(Pe)},rowsSelected:F.map((Z,ie)=>U.includes(Z.did)?ie:null).filter(Z=>Z!==null),customToolbarSelect:Ee};return l.jsxs(Vm,{children:[o,l.jsxs($,{className:"main",sx:{display:"flex",gap:3},children:[l.jsx($,{className:"left",children:l.jsx($,{className:"tabs",children:te.map(Z=>l.jsxs($,{className:`tab ${ye.role===Z.name?"active":""}`,onClick:()=>ae(Z.name),children:[l.jsx("span",{className:"text",children:Z.title}),l.jsx($,{sx:{color:"text.secondary"},children:Z.num})]},Z.name))})}),l.jsx($,{ref:re,className:"right",sx:{".MuiPaper-root":{flex:0}},children:l.jsx(ao,{className:"main-table",verticalKeyWidth:100,locale:E,durable:Ae,durableKeys:["page","rowsPerPage"],title:l.jsx($,{className:"table-toolbar-left",sx:{pl:"12px !important"},children:l.jsx(Mt,{control:l.jsx(cc,{sx:{display:"flex !important"},disabled:Y,color:"primary",checked:ye.hideBlocked,onChange:Z=>fe(Z.target.checked)}),label:R("team.member.onlyApprovedMember")})}),data:F,columns:V,customButtons:ee,options:Ye,loading:Y,onChange:ne})})]}),l.jsx(st,{title:R("common.inviting"),onClose:()=>oe(!1),open:se,maxWidth:"lg",fullWidth:!0,children:l.jsx(qm,{})}),ge&&l.jsx(el,{onCancel:()=>Se(null),userDid:ge.did,createPassportSvg:t,initTab:ge.initTab,handleChangeLabels:()=>Ce()}),k&&l.jsx(Na,{teamDid:s,endpoint:W||g,roles:w,apps:S,onCancel:()=>B(!1),onSuccess:()=>{m(),B(!1)}}),q&&l.jsx(Ba,{teamDid:s,endpoint:W||g,roles:w,onCancel:()=>H(!1),onSuccess:()=>{m(),H(!1)}}),p&&l.jsx(st,{title:R("label.manage"),onClose:()=>b(!1),open:p,maxWidth:"lg",fullWidth:!0,PaperProps:{style:{height:"80vh"}},children:l.jsx(Ta,{onReload:()=>{Ce(),a()}})})]})}const Vm=Ke.div`
|
|
261
|
+
`;function tl({type:e,user:t,onIssuePassport:r=()=>{},onRefresh:n=()=>{}}){const{teamDid:o,roles:u}=He(),{confirmHolder:i,confirmApi:a}=Jn(),{t:s}=A.useContext(lr),[c,d]=A.useState(!1),{api:w}=Fe(),m=pt(async(v=!1)=>{const g={teamDid:o,userDid:t.did,remove:v};v||(g.appPid=o),await w.logoutUser({input:g})});return l.jsxs(l.Fragment,{children:[i,l.jsx(ru,{"data-cy":"member-actions",actions:[{icon:l.jsx(Bt,{fontSize:"small"}),text:s("team.passport.issue"),"data-cy":"action-issue-passport",onClick:v=>{v.stopPropagation(),d(!0)}},({close:v})=>l.jsx(Eo,{user:t,children:({open:g})=>l.jsxs(kt,{dense:!0,onClick:x=>{x.stopPropagation(),v(),g(x)},"data-cy":"action-toggle-block",children:[l.jsx(oc,{style:{minWidth:24,marginRight:8},children:t.approved?l.jsx(As,{}):l.jsx(Is,{})}),l.jsx(ic,{primary:t.approved?s("team.member.blockAccess"):s("team.member.allowAccess")})]})},"toggle-approval"),e==="blocklet"&&{icon:l.jsx(cu,{fontSize:"small"}),text:s("team.member.forceLogout"),onClick:v=>{v.stopPropagation(),a.open({title:s("team.member.forceLogout"),content:v.altKey?s("team.member.forceLogoutRemoveDescription"):s("team.member.forceLogoutDescription"),confirmButtonText:s("common.confirm"),cancelButtonText:s("common.cancel"),onClick:g=>g.stopPropagation(),onConfirm:async()=>{await m(v.altKey),await a.close(),n()}})}}].filter(Boolean)}),c&&l.jsx(To,{teamDid:o,ownerDid:t.did,needReceive:qa.getWalletDid(t)===t.did,roles:u,onCancel:()=>d(!1),onSuccess:()=>{r(),d(!1)}})]})}tl.propTypes={type:C.oneOf(["server","blocklet"]).isRequired,user:C.object.isRequired,onIssuePassport:C.func,onRefresh:C.func};const Bn="$all",Xi="$none",Qi="$blocked",vr=(e,t)=>e.find(n=>n.key===t)?.value||0,$m=(e,t)=>{const r=e.passports||[];return r.length?!r.some(n=>t.includes(n.issuer?.id)):!1};function rl({user:e}){const{t}=A.useContext(lr),r=mt(()=>({...e,avatar:`${e.avatar}?imageFilter=resize&w=48&h=48`}),[e]),n=l.jsxs("div",{className:"member-block",children:[l.jsxs("div",{className:"member-avatar",children:[l.jsx(io,{user:r,avatarSize:32,cardType:so.AvatarOnly,showHoverCard:!1}),!e.approved&&l.jsx("did",{className:"badge-block"}),e.isFromExternal&&l.jsx(bt,{title:t("team.passport.externalPassport"),children:l.jsx($,{className:"icon",sx:{ml:1},children:l.jsx(Rs,{})})})]}),l.jsxs("div",{className:"member-meta",children:[l.jsx("div",{className:"member-text",children:l.jsx(nu,{children:e.fullName})}),Array.isArray(e.tags)&&e.tags.length>0&&l.jsx($,{className:"member-tags",sx:{display:"flex",alignItems:"center",flexWrap:"wrap",gap:.5},children:e.tags.map(o=>l.jsx(ut,{label:o},o.id))})]})]});return e.approved?n:l.jsx($,{sx:{display:"flex",alignItems:"center"},children:l.jsx(bt,{title:t("team.member.blockAccessDescription"),children:n})})}rl.propTypes={user:C.object.isRequired};function Io({type:e,createPassportSvg:t}){const{session:r}=vt(),{confirmApi:n,confirmHolder:o}=Jn({sx:{".MuiDialog-paper":{borderRadius:2,maxWidth:1e3},".ux-dialog_title":{fontWeight:600},".ux-dialog_closeButton":{p:1},".MuiDialogActions-root":{display:{xs:"none",md:"flex"}}}}),{appIdList:u=[],blocklet:i}=vs(),{refetch:a}=Ht(),{teamDid:s,invitations:c,teamIssuerDid:d,roles:w,refresh:m,enablePassportIssuance:v,endpoint:g,api:x}=He(),{showManageLabels:p,setShowManageLabels:b,labelManageActions:y}=Ja(),{api:f,inService:h,ws:{useSubscription:j},info:T}=Fe(),S=[];if(i){const Z=(i.settings?.federated?.sites||[]).find(de=>de.isMaster!==!1),ie=(i.settings?.federated?.sites||[]).find(de=>de.appId===i.appDid);if(ie?.status==="approved"&&S.push({appId:Z?.appId,appName:Z?.appName,appDescription:Z?.appDescription,appLogo:Z?.appLogo,appPid:Z?.appPid,appUrl:Z?.appUrl,version:Z?.version,sourceAppPid:Z?.appPid,provider:"wallet"}),ie)S.push({appId:ie?.appId||i.appDid,appName:ie?.appName,appDescription:ie?.appDescription,appLogo:ie?.appLogo,appPid:ie?.appPid,appUrl:ie?.appUrl,version:ie?.version,sourceAppPid:null,provider:"wallet"});else{const de=Xu(i,void 0,{returnWallet:!1});S.push({appId:de.did,appName:de.name,appDescription:de.description,appLogo:sc(de.appUrl,ht.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo"),appPid:i?.appPid,appUrl:de.appUrl,version:de.version,sourceAppPid:null,provider:"wallet"})}}const{t:R,locale:E}=A.useContext(lr),[k,B]=A.useState(!1),[q,H]=A.useState(!1),[se,oe]=A.useState(!1),[ge,Se]=A.useState(!1),[Y,O]=A.useState(!1),[F,X]=A.useState([]),[G,J]=A.useState(),[_,I]=A.useState([]),[M]=vu({did:void 0}),[W,L]=A.useState(""),[U,Q]=A.useState([]),[le,be]=A.useState([]),[xe,ke]=A.useState([]),Ae=`members-${s}`,Ne=pc(Ae),[ye,Te]=A.useState({role:Bn,searchText:Ne.searchText||"",hideBlocked:!1,pageSize:Ne.rowsPerPage||10,page:1}),ue=A.useMemo(()=>{if(!h)return!1;if(!r?.user)return!0;const Z=r?.user?.role,de=(r?.user?.passports||[]).filter(Pe=>Pe.role===Z);return de.length===0?!0:de.every(Pe=>Pe.expirationDate)},[r?.user,h]),ce=A.useCallback(async()=>{if(s===T.did){L("");return}const Z=await ac(i);L(Z)},[i,s,T.did]);rs(async()=>{if(M.did){const{user:Z}=await x.getUser({did:M.did});Z&&Se(Z)}}),A.useEffect(()=>{ce()},[ce]);const te=(w||[]).map(Z=>({name:Z.name,title:Z.title,num:vr(_,Z.name)}));te.unshift({name:Bn,title:"All Members",num:vr(_,Bn)}),te.push({name:Xi,title:"Other",num:vr(_,Xi)}),te.push({name:Qi,title:"Blocked",num:vr(_,Qi)});const Ce=()=>{const Z={includeTags:!0,includeUserSessions:e==="blocklet"};ye.hideBlocked&&(Z.approved=!0),Z.role=ye.role,ye.searchText&&(Z.search=ye.searchText),Z.tags=xe,x.getUsers({query:Z,paging:{page:ye.page,pageSize:ye.pageSize}}).then(ie=>{O(!1),(ie.users||[]).forEach(de=>{de.isFromExternal=$m(de,uc(u)?[d]:u),de.avatar=gs(de.avatar,s,h),de.passports=(de.passports||[]).filter(Pe=>Pe.issuer)}),X(ie.users||[]),J(ie.paging.total)}).catch(ie=>{O(!1),Me.error(ie.message)})},je=()=>{O(!0),Ce()},P=()=>{x.getUsersCountPerRole().then(Z=>{I(Z.counts||[])}).catch(Z=>{Me.error(Z.message)})},D=Z=>{Z.teamDid===s&&(je(),P())};A.useEffect(()=>{je()},[`${ye.hideBlocked}-${ye.role}-${ye.page}-${ye.pageSize}-${ye.searchText}-${xe.join(",")}`]),A.useEffect(()=>{P()},[]),j(St.TeamEvents.userUpdated,D,[ye]),j(St.TeamEvents.userAdded,D,[ye]);const N=v,z=pt((Z,ie=!1)=>{const de=async({page:Pe=1,pageSize:Kr=10,status:ol}={})=>{const Ro={userDid:Z.did,status:ol};return ie||(Ro.appPid=s),await f.getUserSessions({input:{teamDid:s,query:Ro,paging:{pageSize:Kr,page:Pe}}})};n.open({title:l.jsxs("div",{children:["User Sessions",ie?" (Show All)":""]}),content:l.jsx(Ru,{showAppPid:ie,user:Z,showAction:!1,showUser:!1,showOffline:!0,getUserSessions:de}),onConfirm(){n.close()},confirmButtonText:R("common.close"),showCancelButton:!1})}),V=[{label:R("common.name"),name:"fullName",options:{customBodyRenderLite:Z=>{const ie=F[Z];return l.jsx("div",{"data-cy":`member-name-${ie.fullName}`,children:l.jsx(rl,{user:ie})},ie.did)}}},{label:R("common.address"),name:"did",options:{customBodyRender:Z=>l.jsx(oo,{size:14,responsive:!1,compact:!0,copyable:!1,did:Z})}},{label:R("team.member.lastLogin"),name:"lastLoginAt",options:{customBodyRender:Z=>l.jsx($,{sx:{minWidth:"100px"},children:l.jsx(rr,{value:Z,locale:E})})}},{label:R("team.member.lastLoginIp"),name:"lastLoginIp",options:{customBodyRender:Z=>Z||"-"}},{label:R("team.member.source"),name:"sourceProvider",options:{customBodyRenderLite:Z=>{const ie=F[Z],de=ie.sourceProvider||ht.USER_TYPE.WALLET,Pe=St.PROVIDER_NAME[de]||de;return ie.sourceAppPid?`${Pe} (${R("team.member.federated")})`:Pe}}},e==="blocklet"&&{label:R("team.member.activeUserSessions"),name:"userSessions",options:{customBodyRenderLite:Z=>{const ie=F[Z];return l.jsx(er,{onClick:de=>{de.stopPropagation(),z(ie,de.altKey)},children:l.jsx(lc,{badgeContent:ie?.userSessionsCount,color:ie?.userSessionsCount>0?"primary":"default",sx:ie?.userSessionsCount>0?{}:{".MuiBadge-badge":{backgroundColor:"grey",color:"white"}},showZero:!0,children:l.jsx(dc,{})})})}}},{label:R("common.actions"),name:"",width:100,align:"center",verticalKeyAlign:"center",options:{customBodyRenderLite:Z=>{const ie=F[Z];return l.jsx(Pt,{permission:h?"":"mutate_team",role:h?Nt:[],children:l.jsx(tl,{type:e,user:ie,onIssuePassport:()=>Se({...ie,initTab:"issuances"}),onRefresh:()=>D({teamDid:s})})})}}}].filter(Boolean),ee=[];ee.push(l.jsx(Co,{value:xe,onChange:ke,sx:{maxWidth:300,height:36},LabelPickerProps:{enableAccessControl:!1,actions:y}})),N&&(ue||ee.push(l.jsx(Lo,{variant:"contained",menuButtonProps:{"data-cy":"invite-member-more"},menu:l.jsx(Lo.Item,{variant:"outlined",style:{flexShrink:0},color:"primary",size:"small",onClick:()=>{oe(!0)},children:l.jsxs($,{sx:{display:"flex",alignItems:"center"},children:[l.jsx(du,{style:{height:"1em",marginRight:4}}),R("common.inviting"),c.length?` (${c.length})`:""]})}),children:()=>l.jsxs(Ve,{style:{flexShrink:0,marginLeft:16},edge:"end",color:"primary",size:"small","data-cy":"invite-member",onClick:()=>B(!0),children:[l.jsx(Bt,{style:{fontSize:"1.3em",marginRight:4}}),R("team.invite.action")]})})),e==="server"&&ee.push(l.jsx(Pt,{role:"owner",children:l.jsxs(Ve,{style:{flexShrink:0,marginLeft:16},variant:"contained",edge:"end",color:"error","data-cy":"invite-member",onClick:()=>H(!0),children:[l.jsx(uu,{style:{fontSize:"1.3em",marginRight:4}}),R("team.transferNode.name")]})})));const ae=Z=>{Y||Te(ie=>({...ie,role:Z,hideBlocked:!1,searchText:"",page:1}))},fe=Z=>{Te(ie=>({...ie,hideBlocked:Z,page:1}))},ne=({page:Z,rowsPerPage:ie,searchText:de})=>{ye.pageSize!==ie?Te(Pe=>({...Pe,pageSize:ie,page:1})):ye.page!==Z+1?Te(Pe=>({...Pe,page:Z+1})):ye.searchText!==de&&Te(Pe=>({...Pe,searchText:de,page:1}))},re=A.useRef(null),Ee=Z=>Z.data.length?l.jsx($,{sx:{display:"flex",alignItems:"center"},children:l.jsx(dr,{value:[le],onChange:ie=>{be([...le,ie[0]]),f.createTagging({input:{teamDid:s,tagging:{tagId:ie[0],taggableIds:U,taggableType:"user"}}}).then(()=>{Ce(),Q([])})},trigger:l.jsx(Ve,{className:"resend-btn",color:"primary",variant:"contained",sx:{my:"2px",".MuiButton-startIcon":{mr:"2px"}},onClick:()=>{},children:R("label.actionLabel")}),multiple:!1,actions:y})}):null,Ye={sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!0,onRowClick(Z,{dataIndex:ie},de){if(re.current?.contains(de.target)){const Pe=F[ie];Se(Pe)}},page:ye.page-1,rowsPerPage:ye.pageSize,count:G,searchDebounceTime:600,selectableRows:"multiple",filterType:"checkbox",onRowSelectionChange:(Z,ie,de)=>{const Pe=de.map(Kr=>F[Kr].did);Q(Pe)},rowsSelected:F.map((Z,ie)=>U.includes(Z.did)?ie:null).filter(Z=>Z!==null),customToolbarSelect:Ee};return l.jsxs(Vm,{children:[o,l.jsxs($,{className:"main",sx:{display:"flex",gap:3},children:[l.jsx($,{className:"left",children:l.jsx($,{className:"tabs",children:te.map(Z=>l.jsxs($,{className:`tab ${ye.role===Z.name?"active":""}`,onClick:()=>ae(Z.name),children:[l.jsx("span",{className:"text",children:Z.title}),l.jsx($,{sx:{color:"text.secondary"},children:Z.num})]},Z.name))})}),l.jsx($,{ref:re,className:"right",sx:{".MuiPaper-root":{flex:0}},children:l.jsx(ao,{className:"main-table",verticalKeyWidth:100,locale:E,durable:Ae,durableKeys:["page","rowsPerPage"],title:l.jsx($,{className:"table-toolbar-left",sx:{pl:"12px !important"},children:l.jsx(Mt,{control:l.jsx(cc,{sx:{display:"flex !important"},disabled:Y,color:"primary",checked:ye.hideBlocked,onChange:Z=>fe(Z.target.checked)}),label:R("team.member.onlyApprovedMember")})}),data:F,columns:V,customButtons:ee,options:Ye,loading:Y,onChange:ne})})]}),l.jsx(st,{title:R("common.inviting"),onClose:()=>oe(!1),open:se,maxWidth:"lg",fullWidth:!0,children:l.jsx(qm,{})}),ge&&l.jsx(el,{onCancel:()=>Se(null),userDid:ge.did,createPassportSvg:t,initTab:ge.initTab,handleChangeLabels:()=>Ce()}),k&&l.jsx(Na,{teamDid:s,endpoint:W||g,roles:w,apps:S,onCancel:()=>B(!1),onSuccess:()=>{m(),B(!1)}}),q&&l.jsx(Ba,{teamDid:s,endpoint:W||g,roles:w,onCancel:()=>H(!1),onSuccess:()=>{m(),H(!1)}}),p&&l.jsx(st,{title:R("label.manage"),onClose:()=>b(!1),open:p,maxWidth:"lg",fullWidth:!0,PaperProps:{style:{height:"80vh"}},children:l.jsx(Ta,{onReload:()=>{Ce(),a()}})})]})}const Vm=Ke.div`
|
|
262
262
|
.main {
|
|
263
263
|
.left {
|
|
264
264
|
width: 256px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aF as Ge,j as e,bn as gt,r as g,bz as X,bf as H,H as U,aH as D,p as xt,o as d,h as te,at as bt,ay as jt,M as y,T as $,m as Q,eO as Fe,P as Pe,ik as Ye,bj as Te,aU as Ie,U as Ee,dI as we,b3 as qe,b1 as Ae,C as Xe,f as Qe,f0 as Je,aP as De,W as yt,as as Ze,il as et,v as Oe,f2 as tt,fo as ye,fI as st,dC as St,s as ie,af as pe,G as Ue,au as vt,im as Ct,io as Nt,$ as nt,ip as wt,iq as Rt,ir as Tt,is as It,O as Et,bu as it,K as At,Q as Dt,S as Ot,R as $e,it as Lt,a3 as kt}from"./index-CI4dlXTe.js";import{d as Ft,H as at,g as Pt}from"./index-h_zu579g.js";import{R as _e,S as _t}from"./actions-DheKYBlc.js";import{B as Bt}from"./index-CzA1rttv.js";import{S as me}from"./shorten-label-DTPTvpJ1.js";import{v as ot}from"./index-BkM0NufG.js";import{T as zt}from"./html-title-8eEQvwSm.js";import{R as Wt}from"./Refresh-r7y4CgN5.js";import{D as Mt,g as Kt}from"./traffic-wbGiv6hW.js";import{u as Ht}from"./use-mobile-CuAbTch1.js";import"./FilterList-Y719g2Zi.js";import"./CSSTransition-DsMKw-p5.js";import"./emotion-cache.browser.esm-BVx7paDx.js";import"./index-_d7QPgTP.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-CHA3TYmk.js";import"./index-w_ABp53I.js";import"./TableSearch-BwtXbQG-.js";import"./Search-CGTjTzzo.js";import"./Clear-NASbJHS6.js";import"./MoreVert-BQ022_rm.js";import"./useLocalStorage-CoABMXGW.js";import"./url-evaluation-Bsg9-ill.js";import"./get-safe-url-CwiNWKY8.js";import"./ButtonGroup-o6LmfxeX.js";import"./getValidReactChildren-BiC2BfQo.js";import"./permission-CY9xhitI.js";import"./index.esm-ItCPJOAO.js";import"./collapse-C5JgD0iT.js";import"./blocklet-DwOY6PM2.js";import"./Switch-DYjTi7gg.js";import"./iframe-BS88FRwX.js";import"./ChevronLeft-D4CgzTJY.js";import"./ChevronRight-DXz-F6L7.js";import"./index-DBii9-f-.js";import"./base-chart-DWjEmmtF.js";import"./index-BlmPoc3t.js";import"./AdapterDayjs-V0ywFO6Q.js";import"./useThemeProps-DJWWp5kh.js";import"./visuallyHidden-Dan1xhjv.js";const qt=Ge(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"})),Ut=Ge(e.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"})),rt=g.createContext({}),{Provider:$t,Consumer:an}=rt;function Vt({children:t,blocklet:s=""}){const{api:n,inService:r,ws:{useSubscription:a}}=gt(),[l,x]=g.useState([]),[u,T]=g.useState({total:0,pageSize:20,pageCount:0,page:1}),f=X(()=>s.meta?.did,[s]),[v,C]=g.useState([]),[F,_]=g.useState({}),N=X(()=>l.length?new Set(l.map(h=>h.id)):new Set,[l]),V=async({page:h=1,pageSize:S=20,...I}={})=>{if(!f)return[];try{const w={paging:{page:h,pageSize:S},...I,teamDid:f,dateRange:I.dateRange?[H(I.dateRange[0]).toISOString(),H(I.dateRange[1]).toISOString()]:void 0},{dids:E,...k}=w;let B="";E&&E.includes("system")&&(B="system");const ae=E?E.filter(oe=>oe!=="system"):[],ne={...k,source:B,componentDids:ae},ee=await n.getNotificationSendLog({input:ne});return _(ne),x(ee.list),T(ee.paging),ee.list}catch(w){return U.error(w.message),[]}},P=async()=>{const h=await n.getNotificationComponents({input:{teamDid:f}});C(h.componentDids)},L=g.useCallback(h=>{const S=s.children.find(I=>I.meta?.did===h);if(S)return S.ancestors=[s],S},[s]),W=async({notificationId:h,receivers:S,channels:I,...w})=>{await n.resendNotification({input:{teamDid:f,notificationId:h,receivers:S,channels:I.map(E=>E==="wallet"?D.NOTIFICATION_SEND_CHANNEL.WALLET:E==="pushKit"?D.NOTIFICATION_SEND_CHANNEL.PUSH:E),...w}})},q=g.useCallback(async h=>(await n.getUser({input:{teamDid:f,user:{did:h},options:{enableConnectedAccount:!0}}})).user,[n,f]),Y=g.useCallback(async({page:h=1,pageSize:S=20,...I}={})=>{try{const w={paging:{page:h,pageSize:S},...I,userName:I.searchText||"",teamDid:f,dateRange:I.dateRange?[H(I.dateRange[0]).toISOString(),H(I.dateRange[1]).toISOString()]:void 0};return await n.getReceivers({input:w})}catch(w){throw U.error(w.message),w}},[n,f]);g.useEffect(()=>{f&&P()},[f]),a(D.EVENTS.NOTIFICATION_BLOCKLET_UPDATE,h=>{N.has(h.notificationId)&&V(F)},[N,F]),a(D.EVENTS.NOTIFICATION_BLOCKLET_CREATE,h=>{N.has(h.id)||V(F)},[N,F]);const Z={fetch:V,data:l,paging:u,blocklet:s,getComponent:L,resendNotification:W,getUser:q,componentDids:v,getReceivers:Y,inService:r,teamDid:f};return e.jsx($t,{value:{notificationRecords:Z},children:t})}function Be(){const{notificationRecords:t}=g.useContext(rt);return t}he.propTypes={severity:d.oneOf(Object.values(["info","success","error","warning"])).isRequired};const Gt={info:"primary",success:"success",error:"error",warning:"warning"};function he({severity:t="info"}){return e.jsx(xt,{type:Gt[t],children:t})}const Yt=(t,s,n="")=>{if(!n||!s)return"";switch(n){case D.NOTIFICATION_SEND_FAILED_REASON.USER_DISABLED:return t("notification.sendStatus.reason.disabled",{channel:s});case D.NOTIFICATION_SEND_FAILED_REASON.CHANNEL_UNAVAILABLE:return t("notification.sendStatus.reason.unavailable",{channel:s});case D.NOTIFICATION_SEND_FAILED_REASON.CHANNEL_DISABLED:return t("notification.sendStatus.reason.notSent",{channel:s});case D.NOTIFICATION_SEND_FAILED_REASON.NOT_ONLINE:return t("notification.sendStatus.reason.offline");default:return n}};function lt(t,s,n={}){const{status:r,updatedAt:a,reason:l="",channel:x="wallet"}=n,u=a?t("notification.sendStatus.sentTime",{date:bt(a,s)}):"",T=Yt(t,x,l);return r===D.NOTIFICATION_SEND_STATUS.FAILED?{status:"failed",title:t("notification.sendStatus.failed"),sentTime:u,reason:T}:r===D.NOTIFICATION_SEND_STATUS.SENT?{status:"success",title:t("notification.sendStatus.success"),sentTime:u}:{status:"pending",title:t("notification.sendStatus.pending"),reason:T,sentTime:u}}const Le={pending:"#aaaaaa",success:"#34BE74",failed:"#D0021B"},ke=["wallet","pushKit","email"],Ve=["info","success","error","warning"],ct=t=>{const{settings:s}=t;return s?.notification?.email?.enabled},dt=t=>{const{settings:s}=t;return s?.notification?.pushKit?.enabled},Xt=(t,s)=>{const n=te(s,"extra.notifications.email",!0);return{available:ct(t),enabled:n}},Qt=(t,s)=>{const n=te(s,"extra.notifications.push",!0);return{available:dt(t),enabled:n}},Jt=t=>({enabled:te(t,"extra.notifications.wallet",!0)}),Zt=t=>({enabled:te(t,"extra.webhooks",[]).length>0}),be=(t=3)=>new Promise(s=>{setTimeout(()=>{s()},t*1e3)}),es=(t,s)=>s==="wallet"||s==="webhook"?[{channel:s,type:"enabled",pass:t("notification.sendStatus.reason.enabled",{channel:s}),fail:t("notification.sendStatus.reason.disabled",{channel:s})}]:s==="pushKit"||s==="email"?[{channel:s,type:"available",pass:t("notification.sendStatus.reason.available",{channel:s}),fail:t("notification.sendStatus.reason.unavailable",{channel:s})},{channel:s,type:"enabled",pass:t("notification.sendStatus.reason.enabled",{channel:s}),fail:t("notification.sendStatus.reason.disabled",{channel:s})}]:[],je=(t=[])=>{const s=H().startOf("day");return t.filter(n=>H(n.sendAt).isSame(s,"day")).length},ts=(t,s="")=>{if(s&&ke.includes(s)){const l=`${s}SendRecord`,x=te(t,l,[]);return je(x)}const n=te(t,"webhook",{}),r=Object.keys(n??{})??[];if(s&&r.includes(s)){const l=n[s]??[];return je(l)}const a={};return ke.forEach(l=>{const x=`${l}SendRecord`,u=te(t,x,[]),T=je(u);a[l]=T}),r.length>0&&r.forEach(l=>{const x=n[l]??[],u=je(x);a[l]=u}),a},Se=(t,s,n)=>{if(!Array.isArray(t))throw new Error("Invalid filterList or index");return t[n].splice(s,1),t},ve=(t,s)=>{if(!Array.isArray(s))throw new Error("filters must be an array");return s.length?!s.includes(t):!1},ss=t=>{switch(t){case D.NOTIFICATION_SEND_CHANNEL.WALLET:return"Wallet";case D.NOTIFICATION_SEND_CHANNEL.PUSH:return"Push Kit";case D.NOTIFICATION_SEND_CHANNEL.EMAIL:return"Email";case D.NOTIFICATION_SEND_CHANNEL.WEBHOOK:return"Webhook";default:return""}},ut=()=>({components:{MUIDataTableFilter:{styleOverrides:{header:{marginBottom:0,p:{margin:0}},root:{"& .MuiGrid-container":{marginTop:0,"& .MuiGrid-item":{paddingTop:0}}}}},MuiPopover:{styleOverrides:{root:{"&.MuiPopover-root":{"& .MuiPaper-root:has(.filter-container)":{width:"420px"}}}}}}});function se({config:t,enableTooltip:s=!0,showTitle:n=!1,children:r=null}){const{status:a,title:l="",sentTime:x="",reason:u=""}=t,T=[l,u].filter(Boolean).join(", ");return e.jsx(jt,{title:s?e.jsxs(e.Fragment,{children:[e.jsx($,{color:"inherit",sx:{fontSize:12},children:T}),e.jsx("span",{children:x})]}):null,arrow:!0,placement:"top",children:e.jsxs(y,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px"},children:[e.jsxs(y,{sx:{position:"relative",minHeight:14,minWidth:14,display:"flex",alignItems:"center",justifyContent:"center"},children:[e.jsx(y,{style:{opacity:.15},sx:{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:Le[a]}}),e.jsx(y,{sx:{position:"absolute",width:"55%",height:"55%",borderRadius:"50%",bgcolor:Le[a]}})]}),e.jsx($,{color:"inherit",sx:{fontSize:12},children:n?l:r})]})})}se.propTypes={config:d.object.isRequired,enableTooltip:d.bool,showTitle:d.bool,children:d.node};Ce.propTypes={list:d.array.isRequired,label:d.string.isRequired,onDelete:d.func};function Ce({list:t,label:s,onDelete:n=()=>{}}){const{t:r,locale:a}=Q();return e.jsxs(y,{sx:{display:"flex",gap:1,alignItems:"center"},children:[e.jsxs($,{children:[s,": "]}),t.map(l=>{const x=lt(r,a,{status:l});return e.jsx(Fe,{size:"small",label:e.jsx(y,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:e.jsx(se,{config:x,enableTooltip:!1,children:x.title})}),onDelete:u=>n(u,l)},l)})]})}ze.propTypes={filterList:d.array.isRequired,onChange:d.func.isRequired,index:d.number.isRequired,column:d.object.isRequired,filterValues:d.array.isRequired,label:d.string.isRequired,renderLabel:d.func.isRequired};function ze({filterList:t,onChange:s,index:n,column:r,filterValues:a,label:l,renderLabel:x}){return e.jsxs(Pe,{className:"filter-container",children:[e.jsx(Ye,{component:"legend",children:l}),e.jsx(Te,{row:!0,children:a.map(u=>e.jsx(Ie,{control:e.jsx(Ee,{checked:t[n].indexOf(u.value??u)>-1,onChange:T=>{const f=[...t];T.target.checked?f[n]=[...f[n],u.value??u]:f[n]=f[n].filter(v=>v!==(u.value??u)),s(f[n],n,r)},name:u.value??u}),label:e.jsx("span",{style:{display:"flex",alignItems:"center"},children:x(u)})},u.value??u))})]})}function Re(t){return e.jsx(ze,{...t,renderLabel:s=>e.jsx(se,{enableTooltip:!1,config:{status:s.status},children:s.label})})}ce.propTypes={status:d.number.isRequired,updatedAt:d.string.isRequired,reason:d.string,channel:d.string,onResend:d.func};function ce({status:t,updatedAt:s,reason:n="",channel:r="wallet",onResend:a}){const{t:l,locale:x}=Q(),u=lt(l,x,{status:t,updatedAt:s,reason:n,channel:r});return e.jsxs(y,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(se,{config:u,showTitle:!0}),u.status!=="success"&&e.jsx(we,{className:"resend-btn",size:"small",startIcon:e.jsx(_e,{}),sx:{fontSize:12,color:"rgba(0, 0, 0, 0.87)",fontWeight:400,".MuiButton-startIcon":{mr:"2px"}},onClick:a,children:l("notification.resend")})]})}We.propTypes={value:d.array.isRequired,onChange:d.func};function We({value:t,onChange:s}){const{locale:n}=Q(),r=H().toDate(),[a,l]=g.useState(null),x=g.useCallback(f=>{l(a?null:f.currentTarget)},[a]),u=!!a,T=g.useCallback(f=>{if(!f.startDate||!f.endDate){U.error("Please select a date range");return}if(H(f.startDate).isAfter(f.endDate)||!H(f.startDate).isValid()||!H(f.endDate).isValid()){U.error("Invalid date range");return}s([f.startDate,f.endDate]),l(null)},[s]);return e.jsxs("div",{children:[e.jsx($,{component:"div",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},sx:{mb:0},children:e.jsxs(we,{onClick:x,variant:"outlined",size:"small",color:"inherit",children:[qe(t[0],n)," - ",qe(t[1],n)]})}),e.jsx(Ae,{open:u,anchorEl:a,onClose:()=>{l(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},children:e.jsx(Mt,{open:!0,maxDate:r,initialDateRange:{startDate:t[0],endDate:t[1]},toggle:x,definedRanges:Kt(r),onChange:T})})]})}Me.propTypes={itemComponent:d.elementType.isRequired};function Me({itemComponent:t,...s}){const{t:n}=Q();return!s?.filterList?.filter(a=>a.length).length?null:e.jsxs(y,{sx:{display:"flex",gap:1,alignItems:"center"},children:[e.jsx("div",{className:"toolbar-filter-title",children:n("notification.filter")}),e.jsx("div",{className:"toolbar-filter-content",children:e.jsx(Ft.TableFilterList,{...s,ItemComponent:t})})]})}function Ke({label:t,onDelete:s,canDelete:n=()=>!0,...r}){const a=s&&typeof s=="function"?s:void 0;let l=!0;return n&&typeof n=="function"&&(l=n({label:t,...r})),e.jsx(Fe,{label:t,variant:"outlined",...a&&l?{onDelete:a}:{}})}Ke.propTypes={label:d.string.isRequired,onDelete:d.func,canDelete:d.func};const ns=[{label:"Wallet",value:"app",checked:!0},{label:"Email",value:"email",checked:!0},{label:"Push Kit",value:"push",checked:!0},{label:"Webhook",value:"webhook",checked:!0}];pt.propTypes={loading:d.bool,onCancel:d.func,onConfirm:d.func};function pt({loading:t=!1,onCancel:s=()=>{},onConfirm:n=()=>{}}){const{t:r}=Q(),[a,l]=g.useState(ns),[x,u]=g.useState(!0),T=(v,C)=>{C.checked=v.target.checked;const F=a.map(_=>({..._,checked:_.value===C.value?C.checked:_.checked}));l(F)},f=v=>{v.stopPropagation(),n({channels:a.filter(C=>C.checked).map(C=>C.value),isResendFailedOnly:x})};return e.jsxs(y,{className:"resend-config",sx:{padding:"16px 24px"},children:[e.jsx($,{variant:"body1",component:"div",className:"check-title",sx:{fontWeight:700,mb:1},children:r("notification.config")}),e.jsx(y,{className:"choose-channel",children:e.jsxs(Pe,{component:"fieldset",variant:"standard",children:[e.jsx(Ye,{component:"legend",children:r("notification.selectChannels")}),e.jsx(Te,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:1},children:a.map(v=>e.jsx(Ie,{control:e.jsx(Ee,{checked:v.checked,onChange:C=>T(C,v),name:v.value}),label:v.label},v.value))})]})}),e.jsx(y,{className:"resend-config-footer",children:e.jsx(Te,{children:e.jsx(Ie,{control:e.jsx(Ee,{checked:x,onChange:v=>u(v.target.checked)}),label:r("notification.resendFailedOnly")})})}),e.jsxs(y,{className:"resend-config-footer-tip",sx:{display:"flex",justifyContent:"flex-end",gap:1},children:[e.jsx(we,{onClick:v=>{v.stopPropagation(),s()},color:"inherit",children:r("common.cancel")}),e.jsxs(we,{onClick:f,color:"primary",disabled:t,variant:"contained",autoFocus:!0,style:{marginLeft:8},children:[t&&e.jsx(Xe,{size:16}),r("common.confirm")]})]})]})}ft.propTypes={notificationId:d.string.isRequired,handleResend:d.func,resending:d.bool};function ft({notificationId:t,handleResend:s,resending:n=!1}){const{t:r,locale:a}=Q(),l=Qe(),x=g.useMemo(()=>Je(l,ut()),[l]),{getReceivers:u,inService:T,teamDid:f,getUser:v,blocklet:C}=Be(),[F,_]=g.useState(!1),[N,V]=g.useState([]),P=De({anchorEl:null,position:null}),L=De({anchorEl:null,position:null}),[W,q]=g.useState(null),[Y,Z]=g.useState({total:0,pageSize:10,pageCount:0,page:1}),[h,S]=g.useState({searchText:"",page:1,pageSize:10,walletSendStatus:[],pushKitSendStatus:[],emailSendStatus:[],dateRange:[H().subtract(1,"month").startOf("day").toDate(),H().endOf("day").toDate()]}),[I,w]=g.useState([]),E=[{label:r("notification.sendStatus.pending"),value:0,status:"pending"},{label:r("notification.sendStatus.success"),value:1,status:"success"},{label:r("notification.sendStatus.failed"),value:2,status:"failed"}],k=async()=>{if(!F&&t)try{_(!0);const i=await u({notificationId:t,...h}),o=i.list.map(c=>({...c,receiverUser:{...c.receiverUser,avatar:st(c.receiverUser.avatar,f,T)}}));V(o),Z(i.paging),_(!1)}catch(i){U.error(i.message),_(!1)}};g.useEffect(()=>{k()},[h]);const B=i=>{i.stopPropagation();const o=i.currentTarget;L.anchorEl=o;const c=o.getBoundingClientRect();L.position={top:c.top+window.scrollY,left:c.left+window.scrollX}},ae=i=>i.data.length?e.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px"},children:e.jsx(Oe,{className:"resend-btn",size:"small",color:"primary",variant:"contained",startIcon:e.jsx(_e,{}),sx:{".MuiButton-startIcon":{mr:"2px"}},onClick:B,children:r("notification.resend")})}):null,ne={sort:!1,download:!1,print:!1,selectableRows:"multiple",searchPlaceholder:r("common.search"),searchAlwaysOpen:!1,filterType:"checkbox",searchDebounceTime:300,page:Y.page-1,rowsPerPage:Y.pageSize,count:Y.total,searchText:h.searchText,tableBodyMaxHeight:"calc(80vh - 260px)",rowsSelected:I,onRowSelectionChange:(i,o)=>{w(o.map(c=>c.dataIndex))},customToolbarSelect:ae},ee=({page:i,rowsPerPage:o,searchText:c,filterList:j})=>{const[,z=[],G=[],K=[]]=j;h.pageSize!==o?S(M=>({...M,pageSize:o,page:1})):h.page!==i+1?S(M=>({...M,page:i+1})):h.searchText!==c?S(M=>({...M,searchText:c,page:1})):pe(z,h.walletSendStatus)?pe(G,h.pushKitSendStatus)?pe(K,h.emailSendStatus)||S(M=>({...M,emailSendStatus:K,page:1})):S(M=>({...M,pushKitSendStatus:G,page:1})):S(M=>({...M,walletSendStatus:z,page:1}))},oe=g.useCallback(async(i,o)=>{if(!o)return!1;const c=await v(o);return c?i==="wallet"?Jt(c):i==="email"?Xt(C,c):i==="pushKit"?Qt(C,c):i==="webhook"?Zt(c):!0:!1},[v,C]),ge=g.useCallback(i=>es(r,i),[r]),re=()=>{P.anchorEl=null,P.position=null,q(null)},le=()=>{L.anchorEl=null,L.position=null},m=async(i,o,c=!0,j="")=>{if(!(!o.length||!i.length))try{s(i,o,c,j),L.anchorEl||(await be(.5),re())}catch(z){console.error("handleResend error",{error:z})}},p=async({channels:i,isResendFailedOnly:o})=>{const c=I.map(j=>N[j].receiver);await m(i,c,o),await be(.5),le(),w([])},b=async(i,o=[],c=!0)=>{try{await m(["webhook"],[i.receiver],c,o)}catch(j){U.error(j.response?j.response.statusText:j.message)}},R=async(i,o,c,j=[],z=!0)=>{if(i.stopPropagation(),ts(o,c)>=4){U.warning(r("notification.resendLimit"));return}if(!ke.includes(c)){await b(o,j,z);return}if(i){const K=i.currentTarget,M=K.getBoundingClientRect();P.anchorEl=K,P.position={top:M.top+window.scrollY,left:M.left+window.scrollX}}q({channel:c});try{const K=await oe(c,o.receiver);await be(1),q({channel:c,result:K}),(typeof K=="boolean"&&K||St(K)&&Object.values(K).every(M=>!!M))&&(await s([c],[o.receiver],z),L.anchorEl||(await be(.5),re()))}catch(K){U.error(K.message)}},O=i=>{S(o=>({...o,dateRange:i,page:1}))},A=(i,o,c,j)=>{i.stopPropagation();const z=c.filter(G=>G!==o);S(G=>({...G,[j]:z,page:1}))},J=X(()=>[{label:r("notification.receiver"),name:"receiver",width:200,options:{filter:!1,customBodyRenderLite:i=>{const{receiverUser:o,receiver:c}=N[i];return o?e.jsxs(y,{"data-cy":`member-name-${o.fullName}`,sx:{display:"flex",alignItems:"center",gap:1,justifyContent:"flex-start"},children:[e.jsx(Ze,{src:`${o.avatar}?imageFilter=resize&w=48&h=48`,size:32,did:c,shape:"circle",style:{borderRadius:"100%",overflow:"hidden"}}),e.jsx(me,{children:o.fullName})]},c):e.jsx(yt,{size:14,responsive:!1,compact:!0,copyable:!1,did:c})}}},{label:"Wallet",name:"walletSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),filter:!0,filterType:"custom",filterList:h.walletSendStatus??[],customFilterListOptions:{render:i=>e.jsx(Ce,{list:i,label:"Wallet",onDelete:(o,c)=>{o.stopPropagation(),A(o,c,J[1].options.filterList,"walletSendStatus")}}),update:Se},filterOptions:{names:E,fullWidth:!0,logic:ve,display:(i,o,c,j)=>e.jsx(Re,{label:"Wallet",filterList:i,onChange:o,index:c,column:j,filterValues:E})},customBodyRenderLite:i=>{const{walletSendStatus:o,walletSendAt:c,walletSendFailedReason:j}=N[i];return e.jsx(ce,{status:o,updatedAt:c,reason:j,channel:"wallet",onResend:z=>R(z,N[i],"wallet",[],!1)})}}},{label:"Push Kit",name:"pushKitSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:i=>{const{pushKitSendStatus:o,pushKitSendAt:c,pushKitSendFailedReason:j}=N[i];return e.jsx(ce,{status:o,updatedAt:c,reason:j,channel:"pushkit",onResend:z=>R(z,N[i],"pushKit",[],!1)})},filter:!0,filterType:"custom",filterList:h.pushKitSendStatus??[],customFilterListOptions:{render:i=>e.jsx(Ce,{list:i,label:"Push Kit",onDelete:(o,c)=>{o.stopPropagation(),A(o,c,J[2].options.filterList,"pushKitSendStatus")}}),update:Se},filterOptions:{names:E,fullWidth:!0,logic:ve,display:(i,o,c,j)=>e.jsx(Re,{label:"Push Kit",filterList:i,onChange:o,index:c,column:j,filterValues:E})}}},{label:"Email",name:"emailSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:i=>{const{emailSendStatus:o,emailSendAt:c,emailSendFailedReason:j}=N[i];return e.jsx(ce,{status:o,updatedAt:c,reason:j,channel:"email",onResend:z=>R(z,N[i],"email",[],!1)})},filter:!0,filterType:"custom",filterList:h.emailSendStatus??[],customFilterListOptions:{render:i=>e.jsx(Ce,{list:i,label:"Email",onDelete:(o,c)=>{o.stopPropagation(),A(o,c,J[3].options.filterList,"emailSendStatus")}}),update:Se},filterOptions:{names:E,fullWidth:!0,logic:ve,display:(i,o,c,j)=>e.jsx(Re,{label:"Email",filterList:i,onChange:o,index:c,column:j,filterValues:E})}}},{label:"Webhook",name:"webhook",width:200,options:{filter:!1,setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:i=>{const{webhook:o}=N[i];if(!o)return null;const c=Object.entries(o)[0];if(!c)return null;const[j,z]=c,G=z[0];return e.jsx(y,{sx:{display:"flex",flexDirection:"column",gap:1},children:e.jsxs(y,{className:"webhook-item",sx:{fontSize:12},children:[e.jsx(me,{maxLength:30,children:j},j),e.jsx(ce,{status:G.status,updatedAt:G.sendAt,reason:G.failedReason,channel:"webhook",onResend:K=>R(K,N[i],"webhook",[j],!1)})]},j)})}}},{label:r("common.createdAt"),name:"createdAt",width:100,options:{filter:!1,customBodyRenderLite:i=>{const{createdAt:o}=N[i];return e.jsx(et,{value:o,locale:a,shouldUpdate:!0})}}}],[N,a,h,r]),xe=[e.jsx(We,{value:h.dateRange,onChange:O},"date-picker"),e.jsx(Oe,{variant:"contained",size:"small",color:"primary",loading:F,startIcon:e.jsx(Wt,{}),onClick:()=>k(),sx:{".MuiButton-startIcon":{mr:"2px"}},style:{marginLeft:8},children:r("common.refresh")},"refresh")];return e.jsx(y,{sx:{overflow:"auto",".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"},".MuiTableCell-root":{paddingRight:"8px",whiteSpace:"nowrap"}},children:e.jsx(as,{children:e.jsxs(tt,{theme:x,children:[e.jsx(at,{className:"receivers-table",locale:a,loading:F,columns:J,data:N,onChange:ee,options:ne,customButtons:xe,components:{TableFilterList:i=>e.jsx(Me,{...i,itemComponent:o=>e.jsx(Ke,{...o,canDelete:()=>!1})})}}),P.anchorEl&&e.jsx(Ae,{open:!!P.anchorEl,anchorReference:"anchorPosition",anchorPosition:P.position,onClose:re,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:e.jsxs(os,{children:[e.jsxs($,{variant:"body1",component:"div",className:"check-title",children:[W?.channel," Checking"]}),e.jsx(y,{sx:{display:"flex",flexDirection:"column",gap:"4px"},children:ge(W?.channel).map(i=>{const{type:o,pass:c,fail:j}=i;return!W?.result||W?.result?.[o]?e.jsxs($,{variant:"body1",component:"div",className:"check-item",sx:{display:"flex",alignItems:"center",gap:"4px",color:W?.result?.[o]?ye.success.main:"inherit"},children:[W?.result?e.jsx(Ut,{}):e.jsx(Xe,{size:12,sx:{color:ye.primary.main}}),e.jsx("span",{children:c})]},o):e.jsxs($,{variant:"body1",component:"div",className:"check-item",sx:{display:"flex",alignItems:"center",gap:"4px",color:ye.error.main},children:[e.jsx(qt,{}),e.jsx("span",{children:j})]},o)})})]})}),L.anchorEl&&e.jsx(Ae,{open:!!L.anchorEl,anchorReference:"anchorPosition",anchorPosition:L.position,onClose:le,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:e.jsx(pt,{loading:n,onCancel:le,onConfirm:p})})]})})})}const is=g.memo(ft),as=ie.div`
|
|
1
|
+
import{aF as Ge,j as e,bn as gt,r as g,bz as X,bf as H,H as U,aH as D,p as xt,o as d,h as te,at as bt,ay as jt,M as y,T as $,m as Q,eO as Fe,P as Pe,ik as Ye,bj as Te,aU as Ie,U as Ee,dI as we,b3 as qe,b1 as Ae,C as Xe,f as Qe,f0 as Je,aP as De,W as yt,as as Ze,il as et,v as Oe,f2 as tt,fo as ye,fI as st,dC as St,s as ie,af as pe,G as Ue,au as vt,im as Ct,io as Nt,$ as nt,ip as wt,iq as Rt,ir as Tt,is as It,O as Et,bu as it,K as At,Q as Dt,S as Ot,R as $e,it as Lt,a3 as kt}from"./index-Bikf4Jgw.js";import{d as Ft,H as at,g as Pt}from"./index-D_ljjR6n.js";import{R as _e,S as _t}from"./actions-DLLKZONE.js";import{B as Bt}from"./index-B2L8DxHf.js";import{S as me}from"./shorten-label-kkxGuhZA.js";import{v as ot}from"./index-DEh5WwZP.js";import{T as zt}from"./html-title-COubPnYH.js";import{R as Wt}from"./Refresh-BnuukUzy.js";import{D as Mt,g as Kt}from"./traffic-BZ8lLw4J.js";import{u as Ht}from"./use-mobile-BkYXnir8.js";import"./FilterList-D9zUGXf3.js";import"./CSSTransition-BxoecrqG.js";import"./emotion-cache.browser.esm-C8ljUt78.js";import"./index-BRRa2CU0.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-CWwWddzp.js";import"./index-BxGJp4lK.js";import"./TableSearch-DuFRIymX.js";import"./Search-Tb99rXM1.js";import"./Clear-z1mronWh.js";import"./MoreVert-Pb124BOp.js";import"./useLocalStorage-h56BQKDt.js";import"./url-evaluation-MOJQy0H3.js";import"./get-safe-url-rlvCCO-T.js";import"./ButtonGroup-CmmNlsZu.js";import"./getValidReactChildren-CcUpWB9N.js";import"./permission-C2JVndtl.js";import"./index.esm-CqU9DX3V.js";import"./collapse-VOXCvZgb.js";import"./blocklet-D2v2yrD1.js";import"./Switch-CcE13x07.js";import"./iframe-e7rmLwl_.js";import"./ChevronLeft-B91P9EIM.js";import"./ChevronRight-CRdUgf3M.js";import"./index-DBii9-f-.js";import"./base-chart-CsfVVVaW.js";import"./index-jdVhK-k1.js";import"./AdapterDayjs-ynIynV8Q.js";import"./useThemeProps-CYFIeocr.js";import"./visuallyHidden-Dan1xhjv.js";const qt=Ge(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9C4.63 15.55 4 13.85 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8"})),Ut=Ge(e.jsx("path",{d:"M16.59 7.58 10 14.17l-3.59-3.58L5 12l5 5 8-8zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8"})),rt=g.createContext({}),{Provider:$t,Consumer:an}=rt;function Vt({children:t,blocklet:s=""}){const{api:n,inService:r,ws:{useSubscription:a}}=gt(),[l,x]=g.useState([]),[u,T]=g.useState({total:0,pageSize:20,pageCount:0,page:1}),f=X(()=>s.meta?.did,[s]),[v,C]=g.useState([]),[F,_]=g.useState({}),N=X(()=>l.length?new Set(l.map(h=>h.id)):new Set,[l]),V=async({page:h=1,pageSize:S=20,...I}={})=>{if(!f)return[];try{const w={paging:{page:h,pageSize:S},...I,teamDid:f,dateRange:I.dateRange?[H(I.dateRange[0]).toISOString(),H(I.dateRange[1]).toISOString()]:void 0},{dids:E,...k}=w;let B="";E&&E.includes("system")&&(B="system");const ae=E?E.filter(oe=>oe!=="system"):[],ne={...k,source:B,componentDids:ae},ee=await n.getNotificationSendLog({input:ne});return _(ne),x(ee.list),T(ee.paging),ee.list}catch(w){return U.error(w.message),[]}},P=async()=>{const h=await n.getNotificationComponents({input:{teamDid:f}});C(h.componentDids)},L=g.useCallback(h=>{const S=s.children.find(I=>I.meta?.did===h);if(S)return S.ancestors=[s],S},[s]),W=async({notificationId:h,receivers:S,channels:I,...w})=>{await n.resendNotification({input:{teamDid:f,notificationId:h,receivers:S,channels:I.map(E=>E==="wallet"?D.NOTIFICATION_SEND_CHANNEL.WALLET:E==="pushKit"?D.NOTIFICATION_SEND_CHANNEL.PUSH:E),...w}})},q=g.useCallback(async h=>(await n.getUser({input:{teamDid:f,user:{did:h},options:{enableConnectedAccount:!0}}})).user,[n,f]),Y=g.useCallback(async({page:h=1,pageSize:S=20,...I}={})=>{try{const w={paging:{page:h,pageSize:S},...I,userName:I.searchText||"",teamDid:f,dateRange:I.dateRange?[H(I.dateRange[0]).toISOString(),H(I.dateRange[1]).toISOString()]:void 0};return await n.getReceivers({input:w})}catch(w){throw U.error(w.message),w}},[n,f]);g.useEffect(()=>{f&&P()},[f]),a(D.EVENTS.NOTIFICATION_BLOCKLET_UPDATE,h=>{N.has(h.notificationId)&&V(F)},[N,F]),a(D.EVENTS.NOTIFICATION_BLOCKLET_CREATE,h=>{N.has(h.id)||V(F)},[N,F]);const Z={fetch:V,data:l,paging:u,blocklet:s,getComponent:L,resendNotification:W,getUser:q,componentDids:v,getReceivers:Y,inService:r,teamDid:f};return e.jsx($t,{value:{notificationRecords:Z},children:t})}function Be(){const{notificationRecords:t}=g.useContext(rt);return t}he.propTypes={severity:d.oneOf(Object.values(["info","success","error","warning"])).isRequired};const Gt={info:"primary",success:"success",error:"error",warning:"warning"};function he({severity:t="info"}){return e.jsx(xt,{type:Gt[t],children:t})}const Yt=(t,s,n="")=>{if(!n||!s)return"";switch(n){case D.NOTIFICATION_SEND_FAILED_REASON.USER_DISABLED:return t("notification.sendStatus.reason.disabled",{channel:s});case D.NOTIFICATION_SEND_FAILED_REASON.CHANNEL_UNAVAILABLE:return t("notification.sendStatus.reason.unavailable",{channel:s});case D.NOTIFICATION_SEND_FAILED_REASON.CHANNEL_DISABLED:return t("notification.sendStatus.reason.notSent",{channel:s});case D.NOTIFICATION_SEND_FAILED_REASON.NOT_ONLINE:return t("notification.sendStatus.reason.offline");default:return n}};function lt(t,s,n={}){const{status:r,updatedAt:a,reason:l="",channel:x="wallet"}=n,u=a?t("notification.sendStatus.sentTime",{date:bt(a,s)}):"",T=Yt(t,x,l);return r===D.NOTIFICATION_SEND_STATUS.FAILED?{status:"failed",title:t("notification.sendStatus.failed"),sentTime:u,reason:T}:r===D.NOTIFICATION_SEND_STATUS.SENT?{status:"success",title:t("notification.sendStatus.success"),sentTime:u}:{status:"pending",title:t("notification.sendStatus.pending"),reason:T,sentTime:u}}const Le={pending:"#aaaaaa",success:"#34BE74",failed:"#D0021B"},ke=["wallet","pushKit","email"],Ve=["info","success","error","warning"],ct=t=>{const{settings:s}=t;return s?.notification?.email?.enabled},dt=t=>{const{settings:s}=t;return s?.notification?.pushKit?.enabled},Xt=(t,s)=>{const n=te(s,"extra.notifications.email",!0);return{available:ct(t),enabled:n}},Qt=(t,s)=>{const n=te(s,"extra.notifications.push",!0);return{available:dt(t),enabled:n}},Jt=t=>({enabled:te(t,"extra.notifications.wallet",!0)}),Zt=t=>({enabled:te(t,"extra.webhooks",[]).length>0}),be=(t=3)=>new Promise(s=>{setTimeout(()=>{s()},t*1e3)}),es=(t,s)=>s==="wallet"||s==="webhook"?[{channel:s,type:"enabled",pass:t("notification.sendStatus.reason.enabled",{channel:s}),fail:t("notification.sendStatus.reason.disabled",{channel:s})}]:s==="pushKit"||s==="email"?[{channel:s,type:"available",pass:t("notification.sendStatus.reason.available",{channel:s}),fail:t("notification.sendStatus.reason.unavailable",{channel:s})},{channel:s,type:"enabled",pass:t("notification.sendStatus.reason.enabled",{channel:s}),fail:t("notification.sendStatus.reason.disabled",{channel:s})}]:[],je=(t=[])=>{const s=H().startOf("day");return t.filter(n=>H(n.sendAt).isSame(s,"day")).length},ts=(t,s="")=>{if(s&&ke.includes(s)){const l=`${s}SendRecord`,x=te(t,l,[]);return je(x)}const n=te(t,"webhook",{}),r=Object.keys(n??{})??[];if(s&&r.includes(s)){const l=n[s]??[];return je(l)}const a={};return ke.forEach(l=>{const x=`${l}SendRecord`,u=te(t,x,[]),T=je(u);a[l]=T}),r.length>0&&r.forEach(l=>{const x=n[l]??[],u=je(x);a[l]=u}),a},Se=(t,s,n)=>{if(!Array.isArray(t))throw new Error("Invalid filterList or index");return t[n].splice(s,1),t},ve=(t,s)=>{if(!Array.isArray(s))throw new Error("filters must be an array");return s.length?!s.includes(t):!1},ss=t=>{switch(t){case D.NOTIFICATION_SEND_CHANNEL.WALLET:return"Wallet";case D.NOTIFICATION_SEND_CHANNEL.PUSH:return"Push Kit";case D.NOTIFICATION_SEND_CHANNEL.EMAIL:return"Email";case D.NOTIFICATION_SEND_CHANNEL.WEBHOOK:return"Webhook";default:return""}},ut=()=>({components:{MUIDataTableFilter:{styleOverrides:{header:{marginBottom:0,p:{margin:0}},root:{"& .MuiGrid-container":{marginTop:0,"& .MuiGrid-item":{paddingTop:0}}}}},MuiPopover:{styleOverrides:{root:{"&.MuiPopover-root":{"& .MuiPaper-root:has(.filter-container)":{width:"420px"}}}}}}});function se({config:t,enableTooltip:s=!0,showTitle:n=!1,children:r=null}){const{status:a,title:l="",sentTime:x="",reason:u=""}=t,T=[l,u].filter(Boolean).join(", ");return e.jsx(jt,{title:s?e.jsxs(e.Fragment,{children:[e.jsx($,{color:"inherit",sx:{fontSize:12},children:T}),e.jsx("span",{children:x})]}):null,arrow:!0,placement:"top",children:e.jsxs(y,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px"},children:[e.jsxs(y,{sx:{position:"relative",minHeight:14,minWidth:14,display:"flex",alignItems:"center",justifyContent:"center"},children:[e.jsx(y,{style:{opacity:.15},sx:{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:Le[a]}}),e.jsx(y,{sx:{position:"absolute",width:"55%",height:"55%",borderRadius:"50%",bgcolor:Le[a]}})]}),e.jsx($,{color:"inherit",sx:{fontSize:12},children:n?l:r})]})})}se.propTypes={config:d.object.isRequired,enableTooltip:d.bool,showTitle:d.bool,children:d.node};Ce.propTypes={list:d.array.isRequired,label:d.string.isRequired,onDelete:d.func};function Ce({list:t,label:s,onDelete:n=()=>{}}){const{t:r,locale:a}=Q();return e.jsxs(y,{sx:{display:"flex",gap:1,alignItems:"center"},children:[e.jsxs($,{children:[s,": "]}),t.map(l=>{const x=lt(r,a,{status:l});return e.jsx(Fe,{size:"small",label:e.jsx(y,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:e.jsx(se,{config:x,enableTooltip:!1,children:x.title})}),onDelete:u=>n(u,l)},l)})]})}ze.propTypes={filterList:d.array.isRequired,onChange:d.func.isRequired,index:d.number.isRequired,column:d.object.isRequired,filterValues:d.array.isRequired,label:d.string.isRequired,renderLabel:d.func.isRequired};function ze({filterList:t,onChange:s,index:n,column:r,filterValues:a,label:l,renderLabel:x}){return e.jsxs(Pe,{className:"filter-container",children:[e.jsx(Ye,{component:"legend",children:l}),e.jsx(Te,{row:!0,children:a.map(u=>e.jsx(Ie,{control:e.jsx(Ee,{checked:t[n].indexOf(u.value??u)>-1,onChange:T=>{const f=[...t];T.target.checked?f[n]=[...f[n],u.value??u]:f[n]=f[n].filter(v=>v!==(u.value??u)),s(f[n],n,r)},name:u.value??u}),label:e.jsx("span",{style:{display:"flex",alignItems:"center"},children:x(u)})},u.value??u))})]})}function Re(t){return e.jsx(ze,{...t,renderLabel:s=>e.jsx(se,{enableTooltip:!1,config:{status:s.status},children:s.label})})}ce.propTypes={status:d.number.isRequired,updatedAt:d.string.isRequired,reason:d.string,channel:d.string,onResend:d.func};function ce({status:t,updatedAt:s,reason:n="",channel:r="wallet",onResend:a}){const{t:l,locale:x}=Q(),u=lt(l,x,{status:t,updatedAt:s,reason:n,channel:r});return e.jsxs(y,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(se,{config:u,showTitle:!0}),u.status!=="success"&&e.jsx(we,{className:"resend-btn",size:"small",startIcon:e.jsx(_e,{}),sx:{fontSize:12,color:"rgba(0, 0, 0, 0.87)",fontWeight:400,".MuiButton-startIcon":{mr:"2px"}},onClick:a,children:l("notification.resend")})]})}We.propTypes={value:d.array.isRequired,onChange:d.func};function We({value:t,onChange:s}){const{locale:n}=Q(),r=H().toDate(),[a,l]=g.useState(null),x=g.useCallback(f=>{l(a?null:f.currentTarget)},[a]),u=!!a,T=g.useCallback(f=>{if(!f.startDate||!f.endDate){U.error("Please select a date range");return}if(H(f.startDate).isAfter(f.endDate)||!H(f.startDate).isValid()||!H(f.endDate).isValid()){U.error("Invalid date range");return}s([f.startDate,f.endDate]),l(null)},[s]);return e.jsxs("div",{children:[e.jsx($,{component:"div",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},sx:{mb:0},children:e.jsxs(we,{onClick:x,variant:"outlined",size:"small",color:"inherit",children:[qe(t[0],n)," - ",qe(t[1],n)]})}),e.jsx(Ae,{open:u,anchorEl:a,onClose:()=>{l(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},children:e.jsx(Mt,{open:!0,maxDate:r,initialDateRange:{startDate:t[0],endDate:t[1]},toggle:x,definedRanges:Kt(r),onChange:T})})]})}Me.propTypes={itemComponent:d.elementType.isRequired};function Me({itemComponent:t,...s}){const{t:n}=Q();return!s?.filterList?.filter(a=>a.length).length?null:e.jsxs(y,{sx:{display:"flex",gap:1,alignItems:"center"},children:[e.jsx("div",{className:"toolbar-filter-title",children:n("notification.filter")}),e.jsx("div",{className:"toolbar-filter-content",children:e.jsx(Ft.TableFilterList,{...s,ItemComponent:t})})]})}function Ke({label:t,onDelete:s,canDelete:n=()=>!0,...r}){const a=s&&typeof s=="function"?s:void 0;let l=!0;return n&&typeof n=="function"&&(l=n({label:t,...r})),e.jsx(Fe,{label:t,variant:"outlined",...a&&l?{onDelete:a}:{}})}Ke.propTypes={label:d.string.isRequired,onDelete:d.func,canDelete:d.func};const ns=[{label:"Wallet",value:"app",checked:!0},{label:"Email",value:"email",checked:!0},{label:"Push Kit",value:"push",checked:!0},{label:"Webhook",value:"webhook",checked:!0}];pt.propTypes={loading:d.bool,onCancel:d.func,onConfirm:d.func};function pt({loading:t=!1,onCancel:s=()=>{},onConfirm:n=()=>{}}){const{t:r}=Q(),[a,l]=g.useState(ns),[x,u]=g.useState(!0),T=(v,C)=>{C.checked=v.target.checked;const F=a.map(_=>({..._,checked:_.value===C.value?C.checked:_.checked}));l(F)},f=v=>{v.stopPropagation(),n({channels:a.filter(C=>C.checked).map(C=>C.value),isResendFailedOnly:x})};return e.jsxs(y,{className:"resend-config",sx:{padding:"16px 24px"},children:[e.jsx($,{variant:"body1",component:"div",className:"check-title",sx:{fontWeight:700,mb:1},children:r("notification.config")}),e.jsx(y,{className:"choose-channel",children:e.jsxs(Pe,{component:"fieldset",variant:"standard",children:[e.jsx(Ye,{component:"legend",children:r("notification.selectChannels")}),e.jsx(Te,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:1},children:a.map(v=>e.jsx(Ie,{control:e.jsx(Ee,{checked:v.checked,onChange:C=>T(C,v),name:v.value}),label:v.label},v.value))})]})}),e.jsx(y,{className:"resend-config-footer",children:e.jsx(Te,{children:e.jsx(Ie,{control:e.jsx(Ee,{checked:x,onChange:v=>u(v.target.checked)}),label:r("notification.resendFailedOnly")})})}),e.jsxs(y,{className:"resend-config-footer-tip",sx:{display:"flex",justifyContent:"flex-end",gap:1},children:[e.jsx(we,{onClick:v=>{v.stopPropagation(),s()},color:"inherit",children:r("common.cancel")}),e.jsxs(we,{onClick:f,color:"primary",disabled:t,variant:"contained",autoFocus:!0,style:{marginLeft:8},children:[t&&e.jsx(Xe,{size:16}),r("common.confirm")]})]})]})}ft.propTypes={notificationId:d.string.isRequired,handleResend:d.func,resending:d.bool};function ft({notificationId:t,handleResend:s,resending:n=!1}){const{t:r,locale:a}=Q(),l=Qe(),x=g.useMemo(()=>Je(l,ut()),[l]),{getReceivers:u,inService:T,teamDid:f,getUser:v,blocklet:C}=Be(),[F,_]=g.useState(!1),[N,V]=g.useState([]),P=De({anchorEl:null,position:null}),L=De({anchorEl:null,position:null}),[W,q]=g.useState(null),[Y,Z]=g.useState({total:0,pageSize:10,pageCount:0,page:1}),[h,S]=g.useState({searchText:"",page:1,pageSize:10,walletSendStatus:[],pushKitSendStatus:[],emailSendStatus:[],dateRange:[H().subtract(1,"month").startOf("day").toDate(),H().endOf("day").toDate()]}),[I,w]=g.useState([]),E=[{label:r("notification.sendStatus.pending"),value:0,status:"pending"},{label:r("notification.sendStatus.success"),value:1,status:"success"},{label:r("notification.sendStatus.failed"),value:2,status:"failed"}],k=async()=>{if(!F&&t)try{_(!0);const i=await u({notificationId:t,...h}),o=i.list.map(c=>({...c,receiverUser:{...c.receiverUser,avatar:st(c.receiverUser.avatar,f,T)}}));V(o),Z(i.paging),_(!1)}catch(i){U.error(i.message),_(!1)}};g.useEffect(()=>{k()},[h]);const B=i=>{i.stopPropagation();const o=i.currentTarget;L.anchorEl=o;const c=o.getBoundingClientRect();L.position={top:c.top+window.scrollY,left:c.left+window.scrollX}},ae=i=>i.data.length?e.jsx("div",{style:{display:"flex",alignItems:"center",padding:"10px"},children:e.jsx(Oe,{className:"resend-btn",size:"small",color:"primary",variant:"contained",startIcon:e.jsx(_e,{}),sx:{".MuiButton-startIcon":{mr:"2px"}},onClick:B,children:r("notification.resend")})}):null,ne={sort:!1,download:!1,print:!1,selectableRows:"multiple",searchPlaceholder:r("common.search"),searchAlwaysOpen:!1,filterType:"checkbox",searchDebounceTime:300,page:Y.page-1,rowsPerPage:Y.pageSize,count:Y.total,searchText:h.searchText,tableBodyMaxHeight:"calc(80vh - 260px)",rowsSelected:I,onRowSelectionChange:(i,o)=>{w(o.map(c=>c.dataIndex))},customToolbarSelect:ae},ee=({page:i,rowsPerPage:o,searchText:c,filterList:j})=>{const[,z=[],G=[],K=[]]=j;h.pageSize!==o?S(M=>({...M,pageSize:o,page:1})):h.page!==i+1?S(M=>({...M,page:i+1})):h.searchText!==c?S(M=>({...M,searchText:c,page:1})):pe(z,h.walletSendStatus)?pe(G,h.pushKitSendStatus)?pe(K,h.emailSendStatus)||S(M=>({...M,emailSendStatus:K,page:1})):S(M=>({...M,pushKitSendStatus:G,page:1})):S(M=>({...M,walletSendStatus:z,page:1}))},oe=g.useCallback(async(i,o)=>{if(!o)return!1;const c=await v(o);return c?i==="wallet"?Jt(c):i==="email"?Xt(C,c):i==="pushKit"?Qt(C,c):i==="webhook"?Zt(c):!0:!1},[v,C]),ge=g.useCallback(i=>es(r,i),[r]),re=()=>{P.anchorEl=null,P.position=null,q(null)},le=()=>{L.anchorEl=null,L.position=null},m=async(i,o,c=!0,j="")=>{if(!(!o.length||!i.length))try{s(i,o,c,j),L.anchorEl||(await be(.5),re())}catch(z){console.error("handleResend error",{error:z})}},p=async({channels:i,isResendFailedOnly:o})=>{const c=I.map(j=>N[j].receiver);await m(i,c,o),await be(.5),le(),w([])},b=async(i,o=[],c=!0)=>{try{await m(["webhook"],[i.receiver],c,o)}catch(j){U.error(j.response?j.response.statusText:j.message)}},R=async(i,o,c,j=[],z=!0)=>{if(i.stopPropagation(),ts(o,c)>=4){U.warning(r("notification.resendLimit"));return}if(!ke.includes(c)){await b(o,j,z);return}if(i){const K=i.currentTarget,M=K.getBoundingClientRect();P.anchorEl=K,P.position={top:M.top+window.scrollY,left:M.left+window.scrollX}}q({channel:c});try{const K=await oe(c,o.receiver);await be(1),q({channel:c,result:K}),(typeof K=="boolean"&&K||St(K)&&Object.values(K).every(M=>!!M))&&(await s([c],[o.receiver],z),L.anchorEl||(await be(.5),re()))}catch(K){U.error(K.message)}},O=i=>{S(o=>({...o,dateRange:i,page:1}))},A=(i,o,c,j)=>{i.stopPropagation();const z=c.filter(G=>G!==o);S(G=>({...G,[j]:z,page:1}))},J=X(()=>[{label:r("notification.receiver"),name:"receiver",width:200,options:{filter:!1,customBodyRenderLite:i=>{const{receiverUser:o,receiver:c}=N[i];return o?e.jsxs(y,{"data-cy":`member-name-${o.fullName}`,sx:{display:"flex",alignItems:"center",gap:1,justifyContent:"flex-start"},children:[e.jsx(Ze,{src:`${o.avatar}?imageFilter=resize&w=48&h=48`,size:32,did:c,shape:"circle",style:{borderRadius:"100%",overflow:"hidden"}}),e.jsx(me,{children:o.fullName})]},c):e.jsx(yt,{size:14,responsive:!1,compact:!0,copyable:!1,did:c})}}},{label:"Wallet",name:"walletSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),filter:!0,filterType:"custom",filterList:h.walletSendStatus??[],customFilterListOptions:{render:i=>e.jsx(Ce,{list:i,label:"Wallet",onDelete:(o,c)=>{o.stopPropagation(),A(o,c,J[1].options.filterList,"walletSendStatus")}}),update:Se},filterOptions:{names:E,fullWidth:!0,logic:ve,display:(i,o,c,j)=>e.jsx(Re,{label:"Wallet",filterList:i,onChange:o,index:c,column:j,filterValues:E})},customBodyRenderLite:i=>{const{walletSendStatus:o,walletSendAt:c,walletSendFailedReason:j}=N[i];return e.jsx(ce,{status:o,updatedAt:c,reason:j,channel:"wallet",onResend:z=>R(z,N[i],"wallet",[],!1)})}}},{label:"Push Kit",name:"pushKitSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:i=>{const{pushKitSendStatus:o,pushKitSendAt:c,pushKitSendFailedReason:j}=N[i];return e.jsx(ce,{status:o,updatedAt:c,reason:j,channel:"pushkit",onResend:z=>R(z,N[i],"pushKit",[],!1)})},filter:!0,filterType:"custom",filterList:h.pushKitSendStatus??[],customFilterListOptions:{render:i=>e.jsx(Ce,{list:i,label:"Push Kit",onDelete:(o,c)=>{o.stopPropagation(),A(o,c,J[2].options.filterList,"pushKitSendStatus")}}),update:Se},filterOptions:{names:E,fullWidth:!0,logic:ve,display:(i,o,c,j)=>e.jsx(Re,{label:"Push Kit",filterList:i,onChange:o,index:c,column:j,filterValues:E})}}},{label:"Email",name:"emailSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:i=>{const{emailSendStatus:o,emailSendAt:c,emailSendFailedReason:j}=N[i];return e.jsx(ce,{status:o,updatedAt:c,reason:j,channel:"email",onResend:z=>R(z,N[i],"email",[],!1)})},filter:!0,filterType:"custom",filterList:h.emailSendStatus??[],customFilterListOptions:{render:i=>e.jsx(Ce,{list:i,label:"Email",onDelete:(o,c)=>{o.stopPropagation(),A(o,c,J[3].options.filterList,"emailSendStatus")}}),update:Se},filterOptions:{names:E,fullWidth:!0,logic:ve,display:(i,o,c,j)=>e.jsx(Re,{label:"Email",filterList:i,onChange:o,index:c,column:j,filterValues:E})}}},{label:"Webhook",name:"webhook",width:200,options:{filter:!1,setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:i=>{const{webhook:o}=N[i];if(!o)return null;const c=Object.entries(o)[0];if(!c)return null;const[j,z]=c,G=z[0];return e.jsx(y,{sx:{display:"flex",flexDirection:"column",gap:1},children:e.jsxs(y,{className:"webhook-item",sx:{fontSize:12},children:[e.jsx(me,{maxLength:30,children:j},j),e.jsx(ce,{status:G.status,updatedAt:G.sendAt,reason:G.failedReason,channel:"webhook",onResend:K=>R(K,N[i],"webhook",[j],!1)})]},j)})}}},{label:r("common.createdAt"),name:"createdAt",width:100,options:{filter:!1,customBodyRenderLite:i=>{const{createdAt:o}=N[i];return e.jsx(et,{value:o,locale:a,shouldUpdate:!0})}}}],[N,a,h,r]),xe=[e.jsx(We,{value:h.dateRange,onChange:O},"date-picker"),e.jsx(Oe,{variant:"contained",size:"small",color:"primary",loading:F,startIcon:e.jsx(Wt,{}),onClick:()=>k(),sx:{".MuiButton-startIcon":{mr:"2px"}},style:{marginLeft:8},children:r("common.refresh")},"refresh")];return e.jsx(y,{sx:{overflow:"auto",".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"},".MuiTableCell-root":{paddingRight:"8px",whiteSpace:"nowrap"}},children:e.jsx(as,{children:e.jsxs(tt,{theme:x,children:[e.jsx(at,{className:"receivers-table",locale:a,loading:F,columns:J,data:N,onChange:ee,options:ne,customButtons:xe,components:{TableFilterList:i=>e.jsx(Me,{...i,itemComponent:o=>e.jsx(Ke,{...o,canDelete:()=>!1})})}}),P.anchorEl&&e.jsx(Ae,{open:!!P.anchorEl,anchorReference:"anchorPosition",anchorPosition:P.position,onClose:re,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:e.jsxs(os,{children:[e.jsxs($,{variant:"body1",component:"div",className:"check-title",children:[W?.channel," Checking"]}),e.jsx(y,{sx:{display:"flex",flexDirection:"column",gap:"4px"},children:ge(W?.channel).map(i=>{const{type:o,pass:c,fail:j}=i;return!W?.result||W?.result?.[o]?e.jsxs($,{variant:"body1",component:"div",className:"check-item",sx:{display:"flex",alignItems:"center",gap:"4px",color:W?.result?.[o]?ye.success.main:"inherit"},children:[W?.result?e.jsx(Ut,{}):e.jsx(Xe,{size:12,sx:{color:ye.primary.main}}),e.jsx("span",{children:c})]},o):e.jsxs($,{variant:"body1",component:"div",className:"check-item",sx:{display:"flex",alignItems:"center",gap:"4px",color:ye.error.main},children:[e.jsx(qt,{}),e.jsx("span",{children:j})]},o)})})]})}),L.anchorEl&&e.jsx(Ae,{open:!!L.anchorEl,anchorReference:"anchorPosition",anchorPosition:L.position,onClose:le,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:e.jsx(pt,{loading:n,onCancel:le,onConfirm:p})})]})})})}const is=g.memo(ft),as=ie.div`
|
|
2
2
|
td.MuiTableCell-footer {
|
|
3
3
|
border: none !important;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cF as $m,bd as jL,h4 as oT,ba as Xm,bb as Zm,cS as qm,be as JL,r as QL}from"./index-
|
|
1
|
+
import{cF as $m,bd as jL,h4 as oT,ba as Xm,bb as Zm,cS as qm,be as JL,r as QL}from"./index-Bikf4Jgw.js";/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|