@abtnode/webapp 1.16.49-beta-20250815-032308-7bcf0b85 → 1.16.49-beta-20250819-084933-3bcbd851
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-DI9xVdft.js → AdapterDayjs-C8dPnrGM.js} +1 -1
- package/dist/assets/{Add-CVnnproP.js → Add-BUmeg99N.js} +1 -1
- package/dist/assets/ArrowDropDown-DbYwG-2r.js +1 -0
- package/dist/assets/{Autocomplete-bScEq7nv.js → Autocomplete-CR1OhXeT.js} +1 -1
- package/dist/assets/{Breadcrumbs-DT_W7m-v.js → Breadcrumbs-C-xiaIRv.js} +1 -1
- package/dist/assets/{ButtonGroup-DGPsEPvC.js → ButtonGroup-DqcghEBL.js} +1 -1
- package/dist/assets/{CSSTransition-Mlf9GCd4.js → CSSTransition-B7AzTkxP.js} +1 -1
- package/dist/assets/{CallMerge-DhNwNe9k.js → CallMerge-BszU10uK.js} +1 -1
- package/dist/assets/{CardContent-DL3tHEH2.js → CardContent-D9ezd-hv.js} +1 -1
- package/dist/assets/{ChevronLeft-BT5CPukw.js → ChevronLeft-C_E4Vdm_.js} +1 -1
- package/dist/assets/{ChevronRight-BgaDG7TR.js → ChevronRight-uwggdZOR.js} +1 -1
- package/dist/assets/{Clear-BhAooNeY.js → Clear-DFMyXHSl.js} +1 -1
- package/dist/assets/{DeleteOutline-B1JtcD-N.js → DeleteOutline-B9PO5oip.js} +1 -1
- package/dist/assets/{Done-C9mrBMtJ.js → Done-DxRUgVi2.js} +1 -1
- package/dist/assets/{Edit-B0-Hz2aR.js → Edit-DxEmetY9.js} +1 -1
- package/dist/assets/{ErrorOutline-CGGfWx_o.js → ErrorOutline-uAfMXeIr.js} +1 -1
- package/dist/assets/{FilterList-DOXHRdqB.js → FilterList-BUqML99F.js} +1 -1
- package/dist/assets/{Google-C4H347Z_.js → Google-Ci9E-Oia.js} +1 -1
- package/dist/assets/{HelpOutline-BQaPhaiu.js → HelpOutline-D86dIL1f.js} +1 -1
- package/dist/assets/{Launch-fyJtRy6i.js → Launch-BmCBCOSU.js} +1 -1
- package/dist/assets/{Link-COlmHskq.js → Link-CCUNtQFD.js} +1 -1
- package/dist/assets/{ListItemButton-RWQDDTnG.js → ListItemButton-wndtKhBj.js} +1 -1
- package/dist/assets/{ListSubheader-CiNw6aDZ.js → ListSubheader-BdNtsHiU.js} +1 -1
- package/dist/assets/{LoadingButton-Bny-Ce3e.js → LoadingButton-D5wP-VQn.js} +1 -1
- package/dist/assets/{MoreVert-4uLUnU4a.js → MoreVert-FIQQDa7b.js} +1 -1
- package/dist/assets/{OpenInNew-xlkHjYWh.js → OpenInNew-Cs7sHLkj.js} +1 -1
- package/dist/assets/{Refresh-BGMud3C4.js → Refresh-CD8wMN8U.js} +1 -1
- package/dist/assets/{Search-B2m_yoTb.js → Search-CHrgUgdp.js} +1 -1
- package/dist/assets/{Slider-CN0w52zi.js → Slider-B4jLERjG.js} +1 -1
- package/dist/assets/{Stepper-CA3sQBnX.js → Stepper-CI-IC2Li.js} +1 -1
- package/dist/assets/{Switch-D7_wVs3b.js → Switch-BHe20raP.js} +1 -1
- package/dist/assets/{TableSearch-DznuAnMT.js → TableSearch-NaUl363C.js} +1 -1
- package/dist/assets/{ToggleButtonGroup-BWR5Vk9N.js → ToggleButtonGroup-DV2mkhQ4.js} +1 -1
- package/dist/assets/{Verified-B3KteJlV.js → Verified-BxTo2JWk.js} +1 -1
- package/dist/assets/{VerifiedUser-BNTtiyBh.js → VerifiedUser-MGt4b3xv.js} +1 -1
- package/dist/assets/{ViewList-CfEu2OH2.js → ViewList-S9dWs9V4.js} +1 -1
- package/dist/assets/{_createAggregator-BOYHBI4S.js → _createAggregator-97TMuwkC.js} +1 -1
- package/dist/assets/{actions-B3YDAeKX.js → actions-CaKXieiI.js} +1 -1
- package/dist/assets/{actions-3PI2MAhn.js → actions-Dh0Nc1rL.js} +1 -1
- package/dist/assets/{agreement-DaZzRmJq.js → agreement-BT6ruzL6.js} +1 -1
- package/dist/assets/api-CzMRZ4sk.js +1 -0
- package/dist/assets/{appearance-CSh14DEi.js → appearance-Dqp5gWNJ.js} +1 -1
- package/dist/assets/{ar-RVOyZ73G.js → ar-B5ZCU4Ws.js} +1 -1
- package/dist/assets/{audit-logs-BuYaIzSU.js → audit-logs-Bh9ww0fz.js} +1 -1
- package/dist/assets/{base-chart-DnUu5MKP.js → base-chart-rF7WqCvL.js} +1 -1
- package/dist/assets/{blocklet-Cu7NUdbv.js → blocklet-BRutkJDd.js} +1 -1
- package/dist/assets/chain-crL3_bNl.js +6 -0
- package/dist/assets/{click-to-copy-CxQtWx0h.js → click-to-copy-C-7Z5eHb.js} +1 -1
- package/dist/assets/client-Dvy7M-P4.js +1 -0
- package/dist/assets/cloneDeep-kki8WkkO.js +1 -0
- package/dist/assets/{collapse-CbgK57uT.js → collapse-f_30h8g8.js} +1 -1
- package/dist/assets/{config-navigation-2_jvzm3v.js → config-navigation-Dw_t6wpC.js} +40 -40
- package/dist/assets/connect-to-Dc450LFC.js +29 -0
- package/dist/assets/{cssMode-0W5CQRUU.js → cssMode-BPTYgqYe.js} +1 -1
- package/dist/assets/{de-BXIXPwxt.js → de-Bt2QRaGQ.js} +1 -1
- package/dist/assets/{delete-confirm-C0N0xOLi.js → delete-confirm-th9ByHhi.js} +1 -1
- package/dist/assets/{depsEqual-CUUy9J_f.js → depsEqual-DkabmuYg.js} +1 -1
- package/dist/assets/{detail-D-Bf2X4b.js → detail-D3ltooLR.js} +3 -3
- package/dist/assets/{domains-CHxeY5RL.js → domains-BVgrXU3z.js} +2 -2
- package/dist/assets/{download-BkhmhYof.js → download-Mz76CUAv.js} +11 -11
- package/dist/assets/{edit.svg-D_iaZeMd.js → edit.svg-ubDP6JCu.js} +1 -1
- package/dist/assets/emotion-cache.browser.esm-tedM04Rc.js +1 -0
- package/dist/assets/engine-C5iqo0HY.js +1 -0
- package/dist/assets/{es-DJvu101w.js → es-RcHRYKIM.js} +1 -1
- package/dist/assets/{fr-D9eGKSnG.js → fr-CQKeqjRX.js} +1 -1
- package/dist/assets/{freemarker2-DvgRVbdQ.js → freemarker2-B_qu4Wtk.js} +1 -1
- package/dist/assets/{get-safe-url-CzLgUUoe.js → get-safe-url-CqJr_qN4.js} +1 -1
- package/dist/assets/getValidReactChildren-CJL7bv57.js +1 -0
- package/dist/assets/{graphqlMode-C8_O-uAu.js → graphqlMode-DBB95Td7.js} +2 -2
- package/dist/assets/{handlebars-0aZLf-3v.js → handlebars-DluJnSWM.js} +1 -1
- package/dist/assets/{hi-CSHwUi_Z.js → hi-C3FQ6j4Z.js} +1 -1
- package/dist/assets/{html-C1ZSp3l7.js → html-DIxB3AM9.js} +1 -1
- package/dist/assets/{html-title-SrM7nvGF.js → html-title--WvhXygR.js} +1 -1
- package/dist/assets/{htmlMode-gYGBWxiU.js → htmlMode-OR6hrsal.js} +1 -1
- package/dist/assets/{id-Dc-m_i57.js → id-B2v2gNB3.js} +1 -1
- package/dist/assets/{iframe-wtq3Nwgj.js → iframe-QdPpK8YR.js} +1 -1
- package/dist/assets/{index-NgbD3BmD.js → index-1edhASbu.js} +1 -1
- package/dist/assets/{index-OgF41Wtt.js → index-2KgxRSKz.js} +1 -1
- package/dist/assets/{index-B8-doyNt.js → index-3NBAbcAO.js} +1 -1
- package/dist/assets/{index-DB5FEYbg.js → index-8HK7J0Cg.js} +1 -1
- package/dist/assets/{index--7YJtOHn.js → index-B0HBY8ap.js} +1 -1
- package/dist/assets/{index-BmoaGkjb.js → index-B3lfNrCS.js} +1 -1
- package/dist/assets/{index-DKjIcWre.js → index-BEdpQIko.js} +287 -290
- package/dist/assets/{index-C-dz_3rV.js → index-BS_QxCgT.js} +1 -1
- package/dist/assets/{index-cjRmiM--.js → index-BjxOQ1Ny.js} +1 -1
- package/dist/assets/{index-C1GrPwce.js → index-BmbmKON0.js} +2 -2
- package/dist/assets/{index-A_F5pDpL.js → index-BrDp7omq.js} +1 -1
- package/dist/assets/{index-DpomJ3B2.js → index-C9DjHWG9.js} +1 -1
- package/dist/assets/{index-EZeJbEA-.js → index-CC5vp_3b.js} +1 -1
- package/dist/assets/{index-DpFF3qPe.js → index-CGWB-xor.js} +1 -1
- package/dist/assets/{index-Di5JV_Tq.js → index-CNZU7f-m.js} +1 -1
- package/dist/assets/{index-DcXHOQmT.js → index-CW3wJfVR.js} +1 -1
- package/dist/assets/{index-Ci-Y8hhj.js → index-CXHHz0sp.js} +1 -1
- package/dist/assets/{index-Bni_Ys-s.js → index-Cd5AX9-_.js} +1 -1
- package/dist/assets/{index-BkxxTjwn.js → index-Ceis642M.js} +3 -3
- package/dist/assets/{index-DBeu8uE9.js → index-Cgr-cQTp.js} +1 -1
- package/dist/assets/{index-BbeYSCv2.js → index-Ciid7ISz.js} +1 -1
- package/dist/assets/index-CjuQ46XL.js +79 -0
- package/dist/assets/{index-B79IIkxS.js → index-CosfiZ8o.js} +1 -1
- package/dist/assets/index-Ct4U_7-G.js +1 -0
- package/dist/assets/{index-XAVc9qct.js → index-CuMoBOiv.js} +1 -1
- package/dist/assets/{index-DAF7Se3z.js → index-D2-csfNE.js} +1 -1
- package/dist/assets/{index-C1wmQ0Zo.js → index-DGuHxI3o.js} +1 -1
- package/dist/assets/{index-Bs5MwZ8m.js → index-DKy98PaT.js} +9 -9
- package/dist/assets/{index-D3_cCsAg.js → index-DPD42zBL.js} +1 -1
- package/dist/assets/{index-w3jat0wp.js → index-Dk7p-MIf.js} +3 -3
- package/dist/assets/{index-DalCI32l.js → index-DnSoGphY.js} +1 -1
- package/dist/assets/{index-poSKx1_l.js → index-DnmTiFy6.js} +1 -1
- package/dist/assets/{index-CZIqg2zk.js → index-DtbGqGuQ.js} +1 -1
- package/dist/assets/{index-Bd8NAHyz.js → index-DvN-I4gx.js} +1 -1
- package/dist/assets/{index-yLKT0_F8.js → index-My_GdmCG.js} +4 -4
- package/dist/assets/{index-DQKEmYJ_.js → index-NIFGPvHX.js} +2 -2
- package/dist/assets/{index-s23nDSrM.js → index-OKsTLxpV.js} +1 -1
- package/dist/assets/{index-DzwCNtkH.js → index-VKzyPYyv.js} +2 -2
- package/dist/assets/{index-8P_2QTeY.js → index-Xd3Pijtx.js} +2 -2
- package/dist/assets/{index-CH5ejNx-.js → index-YT8LEZQA.js} +1 -1
- package/dist/assets/{index-aSpvnapu.js → index-_0XhysfT.js} +1 -1
- package/dist/assets/{index-D87cFICD.js → index-a7HextsB.js} +4 -4
- package/dist/assets/{index-WS73yyaB.js → index-kAyUHbWu.js} +1 -1
- package/dist/assets/{index-PN_nwwOK.js → index-yq4IwsYM.js} +1 -1
- package/dist/assets/{index-Cudh2gAg.js → index-zRP-yqPD.js} +1 -1
- package/dist/assets/{index.esm-CJDPJkDt.js → index.esm-jG2eR2XZ.js} +1 -1
- package/dist/assets/{install-from-url-D1-y2Ocl.js → install-from-url-C01Ziyxr.js} +1 -1
- package/dist/assets/{invitation-BMRYQXIS.js → invitation-CpHxOTsA.js} +1 -1
- package/dist/assets/{is-path-prefix-equal-Dgzej_r-.js → is-path-prefix-equal-rN87MU4J.js} +1 -1
- package/dist/assets/{item-BsKeRM2B.js → item-D8dC3ZdB.js} +1 -1
- package/dist/assets/{ja-DuWRl1OM.js → ja-BweNHYYv.js} +1 -1
- package/dist/assets/{javascript-CEWuth7z.js → javascript-0BUFzoSw.js} +1 -1
- package/dist/assets/{jsonMode-CojUuIYC.js → jsonMode-CPff5L2K.js} +1 -1
- package/dist/assets/{ko-YalU3HfD.js → ko-BrUV9qyv.js} +1 -1
- package/dist/assets/{liquid-CUYg6HPR.js → liquid-CHTQXp9t.js} +1 -1
- package/dist/assets/{list-header-EJjQPfjY.js → list-header-CHtPMhGq.js} +1 -1
- package/dist/assets/{log-4LBvbsKM.js → log-DCTkRWdv.js} +1 -1
- package/dist/assets/{lottie-react.esm-D4MXwFwS.js → lottie-react.esm-CgKFw0MV.js} +1 -1
- package/dist/assets/{mdx-wR19-wIn.js → mdx-CW0YeS23.js} +1 -1
- package/dist/assets/{memory-B705BOtR.js → memory-xJ8H7V_n.js} +1 -1
- package/dist/assets/{metric-eprOGNso.js → metric-CCHaqVKq.js} +1 -1
- package/dist/assets/omit-BtF_WywT.js +1 -0
- package/dist/assets/{overview-DCsPIpC8.js → overview-BMZCdKg5.js} +1 -1
- package/dist/assets/{permission-Bbk6yXJh.js → permission-tTnX4xHe.js} +1 -1
- package/dist/assets/{preference-BonbggI8.js → preference-DYeW0YxX.js} +3 -3
- package/dist/assets/pt-DopXhOk4.js +5 -0
- package/dist/assets/{python-DM7kU4Q6.js → python-SIT9agnG.js} +1 -1
- package/dist/assets/{raf-schd.esm-z0ZD9lfq.js → raf-schd.esm-1H23oRvU.js} +1 -1
- package/dist/assets/{razor-BLEva8Ev.js → razor-TaBWpiVm.js} +1 -1
- package/dist/assets/{rotate-session-key-RX_GGtS5.js → rotate-session-key-DRRiCVnh.js} +1 -1
- package/dist/assets/ru-pXOMfITZ.js +5 -0
- package/dist/assets/{runtime-iRG91DG9.js → runtime-BDiSAwIH.js} +1 -1
- package/dist/assets/schema-CZ007jGI.js +1 -0
- package/dist/assets/sdk-Ckc3vruM.js +1 -0
- package/dist/assets/{service-DbTssqgb.js → service-Bzt17VWu.js} +1 -1
- package/dist/assets/{shorten-label--oSKNWUo.js → shorten-label-B93aCDT_.js} +1 -1
- package/dist/assets/{simple-select-DnZ0Wokk.js → simple-select-CXZRuqpv.js} +1 -1
- package/dist/assets/{spaces-aCe1kYiI.js → spaces-B0v2tyUc.js} +1 -1
- package/dist/assets/{status-CCSCecRC.js → status-Cd-CTYNu.js} +1 -1
- package/dist/assets/{status-5AJjPzHg.js → status-DHPuWVH2.js} +1 -1
- package/dist/assets/{switch-control-DOm8qAmq.js → switch-control-Ddfr8OBl.js} +1 -1
- package/dist/assets/{table-icons-GjIbys6_.js → table-icons-Zku9R30R.js} +1 -1
- package/dist/assets/{team-Dw7hS6Bc.js → team-DTPT2zKS.js} +1 -1
- package/dist/assets/{th-DYSyn_pj.js → th-Dt7avnjd.js} +1 -1
- package/dist/assets/{toLower-BinVt74l.js → toLower-BT1Oa455.js} +1 -1
- package/dist/assets/toUpper-BVYTJB_c.js +1 -0
- package/dist/assets/{traffic-MGLusjBr.js → traffic-LSTHAB9M.js} +1 -1
- package/dist/assets/{tsMode-C-zh41uv.js → tsMode-C1yo5R4n.js} +1 -1
- package/dist/assets/{typescript-BIzegp0-.js → typescript-yzRglWo7.js} +1 -1
- package/dist/assets/{url-evaluation-fJhr4k6U.js → url-evaluation-pwwnMHz2.js} +1 -1
- package/dist/assets/{url-join-DlomnNeb.js → url-join-CgDG402A.js} +1 -1
- package/dist/assets/{use-mobile-BgyIeM_C.js → use-mobile-50Zk88eg.js} +1 -1
- package/dist/assets/{use-mobile-CjprZz34.js → use-mobile-DC_ahzbz.js} +1 -1
- package/dist/assets/{useAsync-BiLMNSAI.js → useAsync-D_Js-vHQ.js} +1 -1
- package/dist/assets/{useAsyncRetry-BT3DBK7F.js → useAsyncRetry-CV-Y76E0.js} +1 -1
- package/dist/assets/{useLocalStorage-DYsBBPSS.js → useLocalStorage-BEYz7VNL.js} +1 -1
- package/dist/assets/{useThemeProps-Sm38RiTN.js → useThemeProps-Bgkwc3BW.js} +1 -1
- package/dist/assets/{util-D4si24OH.js → util-BgYn2ykE.js} +1 -1
- package/dist/assets/vi-BbB_zl6_.js +5 -0
- package/dist/assets/{wait-container-DufqEdNT.js → wait-container-CfFgier6.js} +1 -1
- package/dist/assets/{without-wallet-BAMPTN5t.js → without-wallet-DJX-cCOb.js} +2 -2
- package/dist/assets/wrap-locale-OhzyJAwM.js +1 -0
- package/dist/assets/{xml-ShorgZ4K.js → xml-QusHk6Xn.js} +1 -1
- package/dist/assets/{yaml-BLdL0c9B.js → yaml-84Db8p2_.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-CAKNo0Ke.js +0 -1
- package/dist/assets/api-0rpyoHFy.js +0 -1
- package/dist/assets/chain-E2cyGnLe.js +0 -6
- package/dist/assets/client-BXRk5e6n.js +0 -1
- package/dist/assets/cloneDeep-tKXvm490.js +0 -1
- package/dist/assets/connect-to-0_BuJVlh.js +0 -30
- package/dist/assets/emotion-cache.browser.esm-C7Q3LdH3.js +0 -1
- package/dist/assets/engine-dEDx1XcI.js +0 -1
- package/dist/assets/getValidReactChildren-BPfGVQXT.js +0 -1
- package/dist/assets/index-BF40lbZk.js +0 -1
- package/dist/assets/index-DKmzn8Kb.js +0 -79
- package/dist/assets/omit-w4TE1hrN.js +0 -1
- package/dist/assets/pt-B3IRBzK6.js +0 -5
- package/dist/assets/ru-BEEcST35.js +0 -5
- package/dist/assets/schema-D4jtQyjN.js +0 -1
- package/dist/assets/sdk-MiTc38GP.js +0 -1
- package/dist/assets/toUpper-anXo-ggR.js +0 -1
- package/dist/assets/vi-BvKqvojn.js +0 -5
- package/dist/assets/wrap-locale-CO874YZ_.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aG as Ge,j as e,bn as gt,r as g,by as X,bf as K,H as q,E as D,p as xt,o as d,h as te,au as bt,az as jt,N as y,T as $,m as Q,eN as Fe,Q as Pe,id as Ye,bj as Te,aU as Ie,V as Ee,dH as we,b3 as Ue,b1 as Ae,C as Xe,f as Qe,e$ as Je,aP as De,W as yt,at as Ze,ie as et,v as Oe,f1 as tt,fr as ye,fH as st,dB as St,s as ie,ag as pe,G as qe,av as vt,ig as Ct,ih as Nt,$ as nt,ii as wt,ij as Rt,ik as Tt,il as It,P as Et,bt as it,M as At,R as Dt,S as Ot,U as $e,im as Lt,a4 as kt}from"./index-DKjIcWre.js";import{d as Ft,H as at,g as Pt}from"./index-poSKx1_l.js";import{R as _e,S as _t}from"./actions-3PI2MAhn.js";import{B as Bt}from"./index--7YJtOHn.js";import{S as me}from"./shorten-label--oSKNWUo.js";import{v as ot}from"./index-DpFF3qPe.js";import{T as zt}from"./html-title-SrM7nvGF.js";import{R as Wt}from"./Refresh-BGMud3C4.js";import{D as Mt,g as Ht}from"./traffic-MGLusjBr.js";import{u as Kt}from"./use-mobile-BgyIeM_C.js";import"./FilterList-DOXHRdqB.js";import"./CSSTransition-Mlf9GCd4.js";import"./emotion-cache.browser.esm-C7Q3LdH3.js";import"./index-DpomJ3B2.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-CUUy9J_f.js";import"./index-C1GrPwce.js";import"./TableSearch-DznuAnMT.js";import"./Search-B2m_yoTb.js";import"./Clear-BhAooNeY.js";import"./MoreVert-4uLUnU4a.js";import"./useLocalStorage-DYsBBPSS.js";import"./url-evaluation-fJhr4k6U.js";import"./get-safe-url-CzLgUUoe.js";import"./ButtonGroup-DGPsEPvC.js";import"./getValidReactChildren-BPfGVQXT.js";import"./permission-Bbk6yXJh.js";import"./index.esm-CJDPJkDt.js";import"./collapse-CbgK57uT.js";import"./blocklet-Cu7NUdbv.js";import"./Switch-D7_wVs3b.js";import"./iframe-wtq3Nwgj.js";import"./ChevronLeft-BT5CPukw.js";import"./ChevronRight-BgaDG7TR.js";import"./index-DBii9-f-.js";import"./base-chart-DnUu5MKP.js";import"./index-Ci-Y8hhj.js";import"./AdapterDayjs-DI9xVdft.js";import"./useThemeProps-Sm38RiTN.js";import"./visuallyHidden-Dan1xhjv.js";const Ut=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"})),qt=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?[K(I.dateRange[0]).toISOString(),K(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 q.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}})},U=g.useCallback(async h=>(await n.getUser({input:{teamDid:f,user:{did:h}}})).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?[K(I.dateRange[0]).toISOString(),K(I.dateRange[1]).toISOString()]:void 0};return await n.getReceivers({input:w})}catch(w){throw q.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:U,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=K().startOf("day");return t.filter(n=>K(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=K().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){q.error("Please select a date range");return}if(K(f.startDate).isAfter(f.endDate)||!K(f.startDate).isValid()||!K(f.endDate).isValid()){q.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:[Ue(t[0],n)," - ",Ue(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:Ht(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 He({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}:{}})}He.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,U]=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:[K().subtract(1,"month").startOf("day").toDate(),K().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){q.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=[],H=[]]=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(H,h.emailSendStatus)||S(M=>({...M,emailSendStatus:H,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,U(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){q.error(j.response?j.response.statusText:j.message)}},R=async(i,o,c,j=[],z=!0)=>{if(i.stopPropagation(),ts(o,c)>=4){q.warning(r("notification.resendLimit"));return}if(!ke.includes(c)){await b(o,j,z);return}if(i){const H=i.currentTarget,M=H.getBoundingClientRect();P.anchorEl=H,P.position={top:M.top+window.scrollY,left:M.left+window.scrollX}}U({channel:c});try{const H=await oe(c,o.receiver);await be(1),U({channel:c,result:H}),(typeof H=="boolean"&&H||St(H)&&Object.values(H).every(M=>!!M))&&(await s([c],[o.receiver],z),L.anchorEl||(await be(.5),re()))}catch(H){q.error(H.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:H=>R(H,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(He,{...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(qt,{}):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(Ut,{}),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{aG as Ge,j as e,bn as gt,r as g,by as X,bf as K,H as q,E as D,p as xt,o as d,h as te,au as bt,az as jt,N as y,T as $,m as Q,eN as Fe,Q as Pe,ic as Ye,bj as Te,aU as Ie,V as Ee,dH as we,b3 as Ue,b1 as Ae,C as Xe,f as Qe,e$ as Je,aP as De,W as yt,at as Ze,id as et,v as Oe,f1 as tt,fr as ye,fH as st,dB as St,s as ie,ag as pe,G as qe,av as vt,ie as Ct,ig as Nt,$ as nt,ih as wt,ii as Rt,ij as Tt,ik as It,P as Et,bt as it,M as At,R as Dt,S as Ot,U as $e,il as Lt,a4 as kt}from"./index-BEdpQIko.js";import{d as Ft,H as at,g as Pt}from"./index-DnmTiFy6.js";import{R as _e,S as _t}from"./actions-Dh0Nc1rL.js";import{B as Bt}from"./index-B0HBY8ap.js";import{S as me}from"./shorten-label-B93aCDT_.js";import{v as ot}from"./index-CGWB-xor.js";import{T as zt}from"./html-title--WvhXygR.js";import{R as Wt}from"./Refresh-CD8wMN8U.js";import{D as Mt,g as Ht}from"./traffic-LSTHAB9M.js";import{u as Kt}from"./use-mobile-50Zk88eg.js";import"./FilterList-BUqML99F.js";import"./CSSTransition-B7AzTkxP.js";import"./emotion-cache.browser.esm-tedM04Rc.js";import"./index-C9DjHWG9.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-DkabmuYg.js";import"./index-BmbmKON0.js";import"./TableSearch-NaUl363C.js";import"./Search-CHrgUgdp.js";import"./Clear-DFMyXHSl.js";import"./MoreVert-FIQQDa7b.js";import"./useLocalStorage-BEYz7VNL.js";import"./url-evaluation-pwwnMHz2.js";import"./get-safe-url-CqJr_qN4.js";import"./ButtonGroup-DqcghEBL.js";import"./getValidReactChildren-CJL7bv57.js";import"./permission-tTnX4xHe.js";import"./index.esm-jG2eR2XZ.js";import"./collapse-f_30h8g8.js";import"./blocklet-BRutkJDd.js";import"./Switch-BHe20raP.js";import"./iframe-QdPpK8YR.js";import"./ChevronLeft-C_E4Vdm_.js";import"./ChevronRight-uwggdZOR.js";import"./index-DBii9-f-.js";import"./base-chart-rF7WqCvL.js";import"./index-CXHHz0sp.js";import"./AdapterDayjs-C8dPnrGM.js";import"./useThemeProps-Bgkwc3BW.js";import"./visuallyHidden-Dan1xhjv.js";const Ut=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"})),qt=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?[K(I.dateRange[0]).toISOString(),K(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 q.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}})},U=g.useCallback(async h=>(await n.getUser({input:{teamDid:f,user:{did:h}}})).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?[K(I.dateRange[0]).toISOString(),K(I.dateRange[1]).toISOString()]:void 0};return await n.getReceivers({input:w})}catch(w){throw q.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:U,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=K().startOf("day");return t.filter(n=>K(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=K().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){q.error("Please select a date range");return}if(K(f.startDate).isAfter(f.endDate)||!K(f.startDate).isValid()||!K(f.endDate).isValid()){q.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:[Ue(t[0],n)," - ",Ue(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:Ht(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 He({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}:{}})}He.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,U]=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:[K().subtract(1,"month").startOf("day").toDate(),K().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){q.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=[],H=[]]=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(H,h.emailSendStatus)||S(M=>({...M,emailSendStatus:H,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,U(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){q.error(j.response?j.response.statusText:j.message)}},R=async(i,o,c,j=[],z=!0)=>{if(i.stopPropagation(),ts(o,c)>=4){q.warning(r("notification.resendLimit"));return}if(!ke.includes(c)){await b(o,j,z);return}if(i){const H=i.currentTarget,M=H.getBoundingClientRect();P.anchorEl=H,P.position={top:M.top+window.scrollY,left:M.left+window.scrollX}}U({channel:c});try{const H=await oe(c,o.receiver);await be(1),U({channel:c,result:H}),(typeof H=="boolean"&&H||St(H)&&Object.values(H).every(M=>!!M))&&(await s([c],[o.receiver],z),L.anchorEl||(await be(.5),re()))}catch(H){q.error(H.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:H=>R(H,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(He,{...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(qt,{}):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(Ut,{}),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 +1 @@
|
|
|
1
|
-
import{ey as k}from"./index-
|
|
1
|
+
import{ey as k}from"./index-BEdpQIko.js";var m,C;function S(){if(C)return m;C=1;function v(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function A(o,e){for(var r="",i=0,f=-1,t=0,n,l=0;l<=o.length;++l){if(l<o.length)n=o.charCodeAt(l);else{if(n===47)break;n=47}if(n===47){if(!(f===l-1||t===1))if(f!==l-1&&t===2){if(r.length<2||i!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var s=r.lastIndexOf("/");if(s!==r.length-1){s===-1?(r="",i=0):(r=r.slice(0,s),i=r.length-1-r.lastIndexOf("/")),f=l,t=0;continue}}else if(r.length===2||r.length===1){r="",i=0,f=l,t=0;continue}}e&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+o.slice(f+1,l):r=o.slice(f+1,l),i=l-f-1;f=l,t=0}else n===46&&t!==-1?++t:t=-1}return r}function b(o,e){var r=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+i:r+o+i:i}var g={resolve:function(){for(var e="",r=!1,i,f=arguments.length-1;f>=-1&&!r;f--){var t;f>=0?t=arguments[f]:(i===void 0&&(i=k.cwd()),t=i),v(t),t.length!==0&&(e=t+"/"+e,r=t.charCodeAt(0)===47)}return e=A(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(v(e),e.length===0)return".";var r=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return e=A(e,!r),e.length===0&&!r&&(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return v(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,r=0;r<arguments.length;++r){var i=arguments[r];v(i),i.length>0&&(e===void 0?e=i:e+="/"+i)}return e===void 0?".":g.normalize(e)},relative:function(e,r){if(v(e),v(r),e===r||(e=g.resolve(e),r=g.resolve(r),e===r))return"";for(var i=1;i<e.length&&e.charCodeAt(i)===47;++i);for(var f=e.length,t=f-i,n=1;n<r.length&&r.charCodeAt(n)===47;++n);for(var l=r.length,s=l-n,c=t<s?t:s,u=-1,a=0;a<=c;++a){if(a===c){if(s>c){if(r.charCodeAt(n+a)===47)return r.slice(n+a+1);if(a===0)return r.slice(n+a)}else t>c&&(e.charCodeAt(i+a)===47?u=a:a===0&&(u=0));break}var h=e.charCodeAt(i+a),y=r.charCodeAt(n+a);if(h!==y)break;h===47&&(u=a)}var d="";for(a=i+u+1;a<=f;++a)(a===f||e.charCodeAt(a)===47)&&(d.length===0?d+="..":d+="/..");return d.length>0?d+r.slice(n+u):(n+=u,r.charCodeAt(n)===47&&++n,r.slice(n))},_makeLong:function(e){return e},dirname:function(e){if(v(e),e.length===0)return".";for(var r=e.charCodeAt(0),i=r===47,f=-1,t=!0,n=e.length-1;n>=1;--n)if(r=e.charCodeAt(n),r===47){if(!t){f=n;break}}else t=!1;return f===-1?i?"/":".":i&&f===1?"//":e.slice(0,f)},basename:function(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');v(e);var i=0,f=-1,t=!0,n;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var l=r.length-1,s=-1;for(n=e.length-1;n>=0;--n){var c=e.charCodeAt(n);if(c===47){if(!t){i=n+1;break}}else s===-1&&(t=!1,s=n+1),l>=0&&(c===r.charCodeAt(l)?--l===-1&&(f=n):(l=-1,f=s))}return i===f?f=s:f===-1&&(f=e.length),e.slice(i,f)}else{for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===47){if(!t){i=n+1;break}}else f===-1&&(t=!1,f=n+1);return f===-1?"":e.slice(i,f)}},extname:function(e){v(e);for(var r=-1,i=0,f=-1,t=!0,n=0,l=e.length-1;l>=0;--l){var s=e.charCodeAt(l);if(s===47){if(!t){i=l+1;break}continue}f===-1&&(t=!1,f=l+1),s===46?r===-1?r=l:n!==1&&(n=1):r!==-1&&(n=-1)}return r===-1||f===-1||n===0||n===1&&r===f-1&&r===i+1?"":e.slice(r,f)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return b("/",e)},parse:function(e){v(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;var i=e.charCodeAt(0),f=i===47,t;f?(r.root="/",t=1):t=0;for(var n=-1,l=0,s=-1,c=!0,u=e.length-1,a=0;u>=t;--u){if(i=e.charCodeAt(u),i===47){if(!c){l=u+1;break}continue}s===-1&&(c=!1,s=u+1),i===46?n===-1?n=u:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||s===-1||a===0||a===1&&n===s-1&&n===l+1?s!==-1&&(l===0&&f?r.base=r.name=e.slice(1,s):r.base=r.name=e.slice(l,s)):(l===0&&f?(r.name=e.slice(1,n),r.base=e.slice(1,s)):(r.name=e.slice(l,n),r.base=e.slice(l,s)),r.ext=e.slice(n,s)),l>0?r.dir=e.slice(0,l-1):f&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};return g.posix=g,m=g,m}export{S as r};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{eG as D}from"./index-DKjIcWre.js";function f(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function $(e){return f(e)==="object"}function re(e){return Array.isArray(e)&&e.length>0&&e.every(m=>"message"in m)}function Y(e,m){return e.length<124?e:m}const ne="graphql-transport-ws";var g;(function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"})(g||(g={}));var c;(function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"})(c||(c={}));function v(e){if(!$(e))throw new Error(`Message is expected to be an object, but got ${f(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${f(e.type)}`);switch(e.type){case c.ConnectionInit:case c.ConnectionAck:case c.Ping:case c.Pong:{if(e.payload!=null&&!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case c.Subscribe:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${f(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${f(e.payload.query)}`);if(e.payload.variables!=null&&!$(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${f(e.payload.variables)}`);if(e.payload.operationName!=null&&f(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${f(e.payload.operationName)}`);if(e.payload.extensions!=null&&!$(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${f(e.payload.extensions)}`);break}case c.Next:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${f(e.payload)}`);break}case c.Error:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!re(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case c.Complete:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function oe(e,m){return v(typeof e=="string"?JSON.parse(e,m):e)}function W(e,m){return v(e),JSON.stringify(e,m)}var A=function(e){return this instanceof A?(this.v=e,this):new A(e)},ie=function(e,m,R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var M=R.apply(e,m||[]),b,w=[];return b={},E("next"),E("throw"),E("return"),b[Symbol.asyncIterator]=function(){return this},b;function E(u){M[u]&&(b[u]=function(r){return new Promise(function(S,L){w.push([u,r,S,L])>1||I(u,r)})})}function I(u,r){try{q(M[u](r))}catch(S){G(w[0][3],S)}}function q(u){u.value instanceof A?Promise.resolve(u.value.v).then(z,F):G(w[0][2],u)}function z(u){I("next",u)}function F(u){I("throw",u)}function G(u,r){u(r),w.shift(),w.length&&I(w[0][0],w[0][1])}};function pe(e){const{url:m,connectionParams:R,lazy:M=!0,onNonLazyError:b=console.error,lazyCloseTimeout:w=0,keepAlive:E=0,disablePong:I,connectionAckWaitTimeout:q=0,retryAttempts:z=5,retryWait:F=async function(a){let t=1e3;for(let o=0;o<a;o++)t*=2;await new Promise(o=>setTimeout(o,t+Math.floor(Math.random()*2700+300)))},shouldRetry:G=J,isFatalConnectionProblem:u,on:r,webSocketImpl:S,generateID:L=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,a=>{const t=Math.random()*16|0;return(a=="x"?t:t&3|8).toString(16)})},jsonMessageReplacer:U,jsonMessageReviver:ee}=e;let T;if(S){if(!ae(S))throw new Error("Invalid WebSocket implementation provided");T=S}else typeof WebSocket<"u"?T=WebSocket:typeof D<"u"?T=D.WebSocket||D.MozWebSocket:typeof window<"u"&&(T=window.WebSocket||window.MozWebSocket);if(!T)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const N=T,d=(()=>{const n=(()=>{const t={};return{on(o,s){return t[o]=s,()=>{delete t[o]}},emit(o){var s;"id"in o&&((s=t[o.id])===null||s===void 0||s.call(t,o))}}})(),a={connecting:r?.connecting?[r.connecting]:[],opened:r?.opened?[r.opened]:[],connected:r?.connected?[r.connected]:[],ping:r?.ping?[r.ping]:[],pong:r?.pong?[r.pong]:[],message:r?.message?[n.emit,r.message]:[n.emit],closed:r?.closed?[r.closed]:[],error:r?.error?[r.error]:[]};return{onMessage:n.on,on(t,o){const s=a[t];return s.push(o),()=>{s.splice(s.indexOf(o),1)}},emit(t,...o){for(const s of[...a[t]])s(...o)}}})();function Q(n){const a=[d.on("error",t=>{a.forEach(o=>o()),n(t)}),d.on("closed",t=>{a.forEach(o=>o()),n(t)})]}let h,k=0,H,O=!1,j=0,C=!1;async function K(){clearTimeout(H);const[n,a]=await(h??(h=new Promise((s,y)=>(async()=>{if(O){if(await F(j),!k)return h=void 0,y({code:1e3,reason:"All Subscriptions Gone"});j++}d.emit("connecting",O);const i=new N(typeof m=="function"?await m():m,ne);let x,_;function B(){isFinite(E)&&E>0&&(clearTimeout(_),_=setTimeout(()=>{i.readyState===N.OPEN&&(i.send(W({type:c.Ping})),d.emit("ping",!1,void 0))},E))}Q(l=>{h=void 0,clearTimeout(x),clearTimeout(_),y(l),l instanceof Z&&(i.close(4499,"Terminated"),i.onerror=null,i.onclose=null)}),i.onerror=l=>d.emit("error",l),i.onclose=l=>d.emit("closed",l),i.onopen=async()=>{try{d.emit("opened",i);const l=typeof R=="function"?await R():R;if(i.readyState!==N.OPEN)return;i.send(W(l?{type:c.ConnectionInit,payload:l}:{type:c.ConnectionInit},U)),isFinite(q)&&q>0&&(x=setTimeout(()=>{i.close(g.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},q)),B()}catch(l){d.emit("error",l),i.close(g.InternalClientError,Y(l instanceof Error?l.message:new Error(l).message,"Internal client error"))}};let P=!1;i.onmessage=({data:l})=>{try{const p=oe(l,ee);if(d.emit("message",p),p.type==="ping"||p.type==="pong"){d.emit(p.type,!0,p.payload),p.type==="pong"?B():I||(i.send(W(p.payload?{type:c.Pong,payload:p.payload}:{type:c.Pong})),d.emit("pong",!1,p.payload));return}if(P)return;if(p.type!==c.ConnectionAck)throw new Error(`First message cannot be of type ${p.type}`);clearTimeout(x),P=!0,d.emit("connected",i,p.payload,O),O=!1,j=0,s([i,new Promise((ce,te)=>Q(te))])}catch(p){i.onmessage=null,d.emit("error",p),i.close(g.BadResponse,Y(p instanceof Error?p.message:new Error(p).message,"Bad response"))}}})())));n.readyState===N.CLOSING&&await a;let t=()=>{};const o=new Promise(s=>t=s);return[n,t,Promise.race([o.then(()=>{if(!k){const s=()=>n.close(1e3,"Normal Closure");isFinite(w)&&w>0?H=setTimeout(()=>{n.readyState===N.OPEN&&s()},w):s()}}),a])]}function V(n){if(J(n)&&(se(n.code)||[g.InternalServerError,g.InternalClientError,g.BadRequest,g.BadResponse,g.Unauthorized,g.SubprotocolNotAcceptable,g.SubscriberAlreadyExists,g.TooManyInitialisationRequests].includes(n.code)))throw n;if(C)return!1;if(J(n)&&n.code===1e3)return k>0;if(!z||j>=z||!G(n)||u?.(n))throw n;return O=!0}M||(async()=>{for(k++;;)try{const[,,n]=await K();await n}catch(n){try{if(!V(n))return}catch(a){return b?.(a)}}})();function X(n,a){const t=L(n);let o=!1,s=!1,y=()=>{k--,o=!0};return(async()=>{for(k++;;)try{const[i,x,_]=await K();if(o)return x();const B=d.onMessage(t,P=>{switch(P.type){case c.Next:{a.next(P.payload);return}case c.Error:{s=!0,o=!0,a.error(P.payload),y();return}case c.Complete:{o=!0,y();return}}});i.send(W({id:t,type:c.Subscribe,payload:n},U)),y=()=>{!o&&i.readyState===N.OPEN&&i.send(W({id:t,type:c.Complete},U)),k--,o=!0,x()},await _.finally(B);return}catch(i){if(!V(i))return}})().then(()=>{s||a.complete()}).catch(i=>{a.error(i)}),()=>{o||y()}}return{on:d.on,subscribe:X,iterate(n){const a=[],t={done:!1,error:null,resolve:()=>{}},o=X(n,{next(y){a.push(y),t.resolve()},error(y){t.done=!0,t.error=y,t.resolve()},complete(){t.done=!0,t.resolve()}}),s=function(){return ie(this,arguments,function*(){for(;;){for(a.length||(yield A(new Promise(x=>t.resolve=x)));a.length;)yield yield A(a.shift());if(t.error)throw t.error;if(t.done)return yield A(void 0)}})}();return s.throw=async y=>(t.done||(t.done=!0,t.error=y,t.resolve()),{done:!0,value:void 0}),s.return=async()=>(o(),{done:!0,value:void 0}),s},async dispose(){if(C=!0,h){const[n]=await h;n.close(1e3,"Normal Closure")}},terminate(){h&&d.emit("closed",new Z)}}}class Z extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function J(e){return $(e)&&"code"in e&&"reason"in e}function se(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function ae(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}export{g as CloseCode,ne as GRAPHQL_TRANSPORT_WS_PROTOCOL,c as MessageType,Z as TerminatedCloseEvent,pe as createClient,oe as parseMessage,W as stringifyMessage,v as validateMessage};
|
|
1
|
+
import{eG as D}from"./index-BEdpQIko.js";function f(e){return e===null?"null":Array.isArray(e)?"array":typeof e}function $(e){return f(e)==="object"}function re(e){return Array.isArray(e)&&e.length>0&&e.every(m=>"message"in m)}function Y(e,m){return e.length<124?e:m}const ne="graphql-transport-ws";var g;(function(e){e[e.InternalServerError=4500]="InternalServerError",e[e.InternalClientError=4005]="InternalClientError",e[e.BadRequest=4400]="BadRequest",e[e.BadResponse=4004]="BadResponse",e[e.Unauthorized=4401]="Unauthorized",e[e.Forbidden=4403]="Forbidden",e[e.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",e[e.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",e[e.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",e[e.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",e[e.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests"})(g||(g={}));var c;(function(e){e.ConnectionInit="connection_init",e.ConnectionAck="connection_ack",e.Ping="ping",e.Pong="pong",e.Subscribe="subscribe",e.Next="next",e.Error="error",e.Complete="complete"})(c||(c={}));function v(e){if(!$(e))throw new Error(`Message is expected to be an object, but got ${f(e)}`);if(!e.type)throw new Error("Message is missing the 'type' property");if(typeof e.type!="string")throw new Error(`Message is expects the 'type' property to be a string, but got ${f(e.type)}`);switch(e.type){case c.ConnectionInit:case c.ConnectionAck:case c.Ping:case c.Pong:{if(e.payload!=null&&!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break}case c.Subscribe:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${f(e.payload)}`);if(typeof e.payload.query!="string")throw new Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${f(e.payload.query)}`);if(e.payload.variables!=null&&!$(e.payload.variables))throw new Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${f(e.payload.variables)}`);if(e.payload.operationName!=null&&f(e.payload.operationName)!=="string")throw new Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${f(e.payload.operationName)}`);if(e.payload.extensions!=null&&!$(e.payload.extensions))throw new Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${f(e.payload.extensions)}`);break}case c.Next:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!$(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${f(e.payload)}`);break}case c.Error:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);if(!re(e.payload))throw new Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break}case c.Complete:{if(typeof e.id!="string")throw new Error(`"${e.type}" message expects the 'id' property to be a string, but got ${f(e.id)}`);if(!e.id)throw new Error(`"${e.type}" message requires a non-empty 'id' property`);break}default:throw new Error(`Invalid message 'type' property "${e.type}"`)}return e}function oe(e,m){return v(typeof e=="string"?JSON.parse(e,m):e)}function W(e,m){return v(e),JSON.stringify(e,m)}var A=function(e){return this instanceof A?(this.v=e,this):new A(e)},ie=function(e,m,R){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var M=R.apply(e,m||[]),b,w=[];return b={},E("next"),E("throw"),E("return"),b[Symbol.asyncIterator]=function(){return this},b;function E(u){M[u]&&(b[u]=function(r){return new Promise(function(S,L){w.push([u,r,S,L])>1||I(u,r)})})}function I(u,r){try{q(M[u](r))}catch(S){G(w[0][3],S)}}function q(u){u.value instanceof A?Promise.resolve(u.value.v).then(z,F):G(w[0][2],u)}function z(u){I("next",u)}function F(u){I("throw",u)}function G(u,r){u(r),w.shift(),w.length&&I(w[0][0],w[0][1])}};function pe(e){const{url:m,connectionParams:R,lazy:M=!0,onNonLazyError:b=console.error,lazyCloseTimeout:w=0,keepAlive:E=0,disablePong:I,connectionAckWaitTimeout:q=0,retryAttempts:z=5,retryWait:F=async function(a){let t=1e3;for(let o=0;o<a;o++)t*=2;await new Promise(o=>setTimeout(o,t+Math.floor(Math.random()*2700+300)))},shouldRetry:G=J,isFatalConnectionProblem:u,on:r,webSocketImpl:S,generateID:L=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,a=>{const t=Math.random()*16|0;return(a=="x"?t:t&3|8).toString(16)})},jsonMessageReplacer:U,jsonMessageReviver:ee}=e;let T;if(S){if(!ae(S))throw new Error("Invalid WebSocket implementation provided");T=S}else typeof WebSocket<"u"?T=WebSocket:typeof D<"u"?T=D.WebSocket||D.MozWebSocket:typeof window<"u"&&(T=window.WebSocket||window.MozWebSocket);if(!T)throw new Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");const N=T,d=(()=>{const n=(()=>{const t={};return{on(o,s){return t[o]=s,()=>{delete t[o]}},emit(o){var s;"id"in o&&((s=t[o.id])===null||s===void 0||s.call(t,o))}}})(),a={connecting:r?.connecting?[r.connecting]:[],opened:r?.opened?[r.opened]:[],connected:r?.connected?[r.connected]:[],ping:r?.ping?[r.ping]:[],pong:r?.pong?[r.pong]:[],message:r?.message?[n.emit,r.message]:[n.emit],closed:r?.closed?[r.closed]:[],error:r?.error?[r.error]:[]};return{onMessage:n.on,on(t,o){const s=a[t];return s.push(o),()=>{s.splice(s.indexOf(o),1)}},emit(t,...o){for(const s of[...a[t]])s(...o)}}})();function Q(n){const a=[d.on("error",t=>{a.forEach(o=>o()),n(t)}),d.on("closed",t=>{a.forEach(o=>o()),n(t)})]}let h,k=0,H,O=!1,j=0,C=!1;async function K(){clearTimeout(H);const[n,a]=await(h??(h=new Promise((s,y)=>(async()=>{if(O){if(await F(j),!k)return h=void 0,y({code:1e3,reason:"All Subscriptions Gone"});j++}d.emit("connecting",O);const i=new N(typeof m=="function"?await m():m,ne);let x,_;function B(){isFinite(E)&&E>0&&(clearTimeout(_),_=setTimeout(()=>{i.readyState===N.OPEN&&(i.send(W({type:c.Ping})),d.emit("ping",!1,void 0))},E))}Q(l=>{h=void 0,clearTimeout(x),clearTimeout(_),y(l),l instanceof Z&&(i.close(4499,"Terminated"),i.onerror=null,i.onclose=null)}),i.onerror=l=>d.emit("error",l),i.onclose=l=>d.emit("closed",l),i.onopen=async()=>{try{d.emit("opened",i);const l=typeof R=="function"?await R():R;if(i.readyState!==N.OPEN)return;i.send(W(l?{type:c.ConnectionInit,payload:l}:{type:c.ConnectionInit},U)),isFinite(q)&&q>0&&(x=setTimeout(()=>{i.close(g.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},q)),B()}catch(l){d.emit("error",l),i.close(g.InternalClientError,Y(l instanceof Error?l.message:new Error(l).message,"Internal client error"))}};let P=!1;i.onmessage=({data:l})=>{try{const p=oe(l,ee);if(d.emit("message",p),p.type==="ping"||p.type==="pong"){d.emit(p.type,!0,p.payload),p.type==="pong"?B():I||(i.send(W(p.payload?{type:c.Pong,payload:p.payload}:{type:c.Pong})),d.emit("pong",!1,p.payload));return}if(P)return;if(p.type!==c.ConnectionAck)throw new Error(`First message cannot be of type ${p.type}`);clearTimeout(x),P=!0,d.emit("connected",i,p.payload,O),O=!1,j=0,s([i,new Promise((ce,te)=>Q(te))])}catch(p){i.onmessage=null,d.emit("error",p),i.close(g.BadResponse,Y(p instanceof Error?p.message:new Error(p).message,"Bad response"))}}})())));n.readyState===N.CLOSING&&await a;let t=()=>{};const o=new Promise(s=>t=s);return[n,t,Promise.race([o.then(()=>{if(!k){const s=()=>n.close(1e3,"Normal Closure");isFinite(w)&&w>0?H=setTimeout(()=>{n.readyState===N.OPEN&&s()},w):s()}}),a])]}function V(n){if(J(n)&&(se(n.code)||[g.InternalServerError,g.InternalClientError,g.BadRequest,g.BadResponse,g.Unauthorized,g.SubprotocolNotAcceptable,g.SubscriberAlreadyExists,g.TooManyInitialisationRequests].includes(n.code)))throw n;if(C)return!1;if(J(n)&&n.code===1e3)return k>0;if(!z||j>=z||!G(n)||u?.(n))throw n;return O=!0}M||(async()=>{for(k++;;)try{const[,,n]=await K();await n}catch(n){try{if(!V(n))return}catch(a){return b?.(a)}}})();function X(n,a){const t=L(n);let o=!1,s=!1,y=()=>{k--,o=!0};return(async()=>{for(k++;;)try{const[i,x,_]=await K();if(o)return x();const B=d.onMessage(t,P=>{switch(P.type){case c.Next:{a.next(P.payload);return}case c.Error:{s=!0,o=!0,a.error(P.payload),y();return}case c.Complete:{o=!0,y();return}}});i.send(W({id:t,type:c.Subscribe,payload:n},U)),y=()=>{!o&&i.readyState===N.OPEN&&i.send(W({id:t,type:c.Complete},U)),k--,o=!0,x()},await _.finally(B);return}catch(i){if(!V(i))return}})().then(()=>{s||a.complete()}).catch(i=>{a.error(i)}),()=>{o||y()}}return{on:d.on,subscribe:X,iterate(n){const a=[],t={done:!1,error:null,resolve:()=>{}},o=X(n,{next(y){a.push(y),t.resolve()},error(y){t.done=!0,t.error=y,t.resolve()},complete(){t.done=!0,t.resolve()}}),s=function(){return ie(this,arguments,function*(){for(;;){for(a.length||(yield A(new Promise(x=>t.resolve=x)));a.length;)yield yield A(a.shift());if(t.error)throw t.error;if(t.done)return yield A(void 0)}})}();return s.throw=async y=>(t.done||(t.done=!0,t.error=y,t.resolve()),{done:!0,value:void 0}),s.return=async()=>(o(),{done:!0,value:void 0}),s},async dispose(){if(C=!0,h){const[n]=await h;n.close(1e3,"Normal Closure")}},terminate(){h&&d.emit("closed",new Z)}}}class Z extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function J(e){return $(e)&&"code"in e&&"reason"in e}function se(e){return[1e3,1001,1006,1005,1012,1013,1014].includes(e)?!1:e>=1e3&&e<=1999}function ae(e){return typeof e=="function"&&"constructor"in e&&"CLOSED"in e&&"CLOSING"in e&&"CONNECTING"in e&&"OPEN"in e}export{g as CloseCode,ne as GRAPHQL_TRANSPORT_WS_PROTOCOL,c as MessageType,Z as TerminatedCloseEvent,pe as createClient,oe as parseMessage,W as stringifyMessage,v as validateMessage};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aG as Yn,j as t,r as M,fI as io,fJ as oo,cr as He,bd as Gn,by as Ve,N as ae,at as Zn,az as ze,T as we,eN as so,aP as Qe,fK as ao,m as je,F as Qn,fL as _r,fM as lo,cV as Xn,cq as co,bk as Yr,dH as yt,P as vt,aU as gt,fN as uo,C as Xe,fO as wt,ey as Ae,fP as Jn,fQ as fo,fR as po,fS as mo,fT as ho,fU as go,fV as ei,fW as bo,fX as Lr,fY as yo,fZ as vo,f_ as wo,f$ as xo,ez as qr,g0 as ti,eA as Co,cE as Er,eB as So,dD as To,g1 as Eo,bW as at,bX as lt,cf as ri,dN as Oe,eZ as ce,bZ as jo,b8 as Se,db as Rt,d5 as ni,b_ as qe,b$ as tt,U as Je,av as At,dJ as ii,d8 as Po,g2 as Ut,bg as oi,g3 as si,o as b,bf as Te,Q as xt,t as st,g4 as Do,bn as ke,R as jr,S as Pr,dF as ko,g5 as Ot,g6 as Ro,H as Ue,au as Ct,$ as Ge,D as Ur,X as nt,v as Ee,Y as Ke,g7 as Ao,h as Dr,aW as Oo,w as Io,x as No,s as Pe,f4 as Mo,g as St,ad as Tt,bz as et,g8 as _o,dE as Lo,dl as qo,f as Uo,n as Et,E as Ye,dw as Bo,g9 as Fo,eC as Vo,ga as ai,gb as It,gc as $o,dG as Gr,b as Ze,W as Br,dI as zo,bq as li,br as Ko,bs as ci,aE as Wo,fH as ui,gd as di,aS as Ho,aF as Yo,a9 as Go,y as Zo,ge as Qo,a4 as Xo,bB as Jo,V as es,O as ts}from"./index-DKjIcWre.js";import{A as Nt}from"./Add-CVnnproP.js";import{V as rs}from"./ViewList-CfEu2OH2.js";import{H as Fr,g as ns}from"./index-poSKx1_l.js";import{u as is}from"./use-mobile-CjprZz34.js";import{e as Zr}from"./client-BXRk5e6n.js";import{R as fi,a as kt,W as pi,D as os}from"./url-evaluation-fJhr4k6U.js";import{u as Ie}from"./team-Dw7hS6Bc.js";import{u as mi}from"./blocklet-Cu7NUdbv.js";import{P as $e}from"./permission-Bbk6yXJh.js";import{C as Bt}from"./click-to-copy-CxQtWx0h.js";import{s as We,g as ss,S as as,u as Be,a as hi,b as jt,c as gi,d as Ft,e as bi,f as Vr,P as yi,D as vi,h as Mt,M as mt,i as wi,j as Qr,k as bt,v as ls,l as cs,m as Xr,n as us,o as ds,p as fs,q as ps,C as ms,r as hs,t as _t,w as it,x as Lt,y as Jr,z as en,A as gs,T as bs,B as $r,E as ys,F as vs,G as ws,H as xs,I as Cs,J as Ss,K as Ts,L as Pt,N as ot,O as xi,Q as Es,V as kr,R as Ci,U as js,W as tn,X as Ps,Y as Ds,Z as ks,_ as Rs,$ as As,a0 as Os}from"./AdapterDayjs-DI9xVdft.js";import{u as Ne}from"./useThemeProps-Sm38RiTN.js";import{a as rn,b as Is,t as Ns,T as Ms}from"./html-title-SrM7nvGF.js";import{v as De}from"./index-DpFF3qPe.js";import{V as _s}from"./Verified-B3KteJlV.js";import{D as Ls}from"./DeleteOutline-B1JtcD-N.js";import{E as nn}from"./ErrorOutline-CGGfWx_o.js";import{y as Si}from"./index-C1GrPwce.js";import{S as qs}from"./Search-B2m_yoTb.js";import{N as Us}from"./index-Di5JV_Tq.js";import{b as Bs}from"./sdk-MiTc38GP.js";import{A as Fs}from"./actions-B3YDAeKX.js";import{S as Vs}from"./shorten-label--oSKNWUo.js";const $s=Yn(t.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"})),zs=Yn(t.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"})),Ti=e=>M.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},M.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"}),M.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375}),M.createElement("rect",{x:15.3125,y:14.0625,width:7.5,height:1.875,rx:.9375,transform:"rotate(-90 15.3125 14.0625)"})),Ei=e=>M.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},M.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"}),M.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"}),M.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"}),M.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"})),ji=e=>M.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},M.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"}),M.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375})),Ks=e=>M.createElement("svg",{width:18,height:19,viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg",...e},M.createElement("g",{clipPath:"url(#clip0)"},M.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"})),M.createElement("defs",null,M.createElement("clipPath",{id:"clip0"},M.createElement("rect",{width:18,height:18,transform:"translate(0 0.5)"})))),Pi=e=>M.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},M.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 zt={},Kt,on;function Ws(){return on||(on=1,Kt=e=>encodeURIComponent(e).replace(/[!'()*]/g,a=>`%${a.charCodeAt(0).toString(16).toUpperCase()}`)),Kt}var Wt,sn;function Hs(){if(sn)return Wt;sn=1;var e="%[a-f0-9]{2}",a=new RegExp("("+e+")|([^%]+?)","gi"),s=new RegExp("("+e+")+","gi");function r(m,p){try{return[decodeURIComponent(m.join(""))]}catch{}if(m.length===1)return m;p=p||1;var o=m.slice(0,p),i=m.slice(p);return Array.prototype.concat.call([],r(o),r(i))}function x(m){try{return decodeURIComponent(m)}catch{for(var p=m.match(a)||[],o=1;o<p.length;o++)m=r(p,o).join(""),p=m.match(a)||[];return m}}function v(m){for(var p={"%FE%FF":"��","%FF%FE":"��"},o=s.exec(m);o;){try{p[o[0]]=decodeURIComponent(o[0])}catch{var i=x(o[0]);i!==o[0]&&(p[o[0]]=i)}o=s.exec(m)}p["%C2"]="�";for(var n=Object.keys(p),S=0;S<n.length;S++){var c=n[S];m=m.replace(new RegExp(c,"g"),p[c])}return m}return Wt=function(m){if(typeof m!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof m+"`");try{return m=m.replace(/\+/g," "),decodeURIComponent(m)}catch{return v(m)}},Wt}var Ht,an;function Ys(){return an||(an=1,Ht=(e,a)=>{if(!(typeof e=="string"&&typeof a=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(a==="")return[e];const s=e.indexOf(a);return s===-1?[e]:[e.slice(0,s),e.slice(s+a.length)]}),Ht}var Yt,ln;function Gs(){return ln||(ln=1,Yt=function(e,a){for(var s={},r=Object.keys(e),x=Array.isArray(a),v=0;v<r.length;v++){var m=r[v],p=e[m];(x?a.indexOf(m)!==-1:a(m,p,e))&&(s[m]=p)}return s}),Yt}var cn;function Zs(){return cn||(cn=1,function(e){const a=Ws(),s=Hs(),r=Ys(),x=Gs(),v=h=>h==null;function m(h){switch(h.arrayFormat){case"index":return f=>(g,w)=>{const T=g.length;return w===void 0||h.skipNull&&w===null||h.skipEmptyString&&w===""?g:w===null?[...g,[i(f,h),"[",T,"]"].join("")]:[...g,[i(f,h),"[",i(T,h),"]=",i(w,h)].join("")]};case"bracket":return f=>(g,w)=>w===void 0||h.skipNull&&w===null||h.skipEmptyString&&w===""?g:w===null?[...g,[i(f,h),"[]"].join("")]:[...g,[i(f,h),"[]=",i(w,h)].join("")];case"comma":case"separator":return f=>(g,w)=>w==null||w.length===0?g:g.length===0?[[i(f,h),"=",i(w,h)].join("")]:[[g,i(w,h)].join(h.arrayFormatSeparator)];default:return f=>(g,w)=>w===void 0||h.skipNull&&w===null||h.skipEmptyString&&w===""?g:w===null?[...g,i(f,h)]:[...g,[i(f,h),"=",i(w,h)].join("")]}}function p(h){let f;switch(h.arrayFormat){case"index":return(g,w,T)=>{if(f=/\[(\d*)\]$/.exec(g),g=g.replace(/\[\d*\]$/,""),!f){T[g]=w;return}T[g]===void 0&&(T[g]={}),T[g][f[1]]=w};case"bracket":return(g,w,T)=>{if(f=/(\[\])$/.exec(g),g=g.replace(/\[\]$/,""),!f){T[g]=w;return}if(T[g]===void 0){T[g]=[w];return}T[g]=[].concat(T[g],w)};case"comma":case"separator":return(g,w,T)=>{const A=typeof w=="string"&&w.includes(h.arrayFormatSeparator),R=typeof w=="string"&&!A&&n(w,h).includes(h.arrayFormatSeparator);w=R?n(w,h):w;const N=A||R?w.split(h.arrayFormatSeparator).map(k=>n(k,h)):w===null?w:n(w,h);T[g]=N};default:return(g,w,T)=>{if(T[g]===void 0){T[g]=w;return}T[g]=[].concat(T[g],w)}}}function o(h){if(typeof h!="string"||h.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function i(h,f){return f.encode?f.strict?a(h):encodeURIComponent(h):h}function n(h,f){return f.decode?s(h):h}function S(h){return Array.isArray(h)?h.sort():typeof h=="object"?S(Object.keys(h)).sort((f,g)=>Number(f)-Number(g)).map(f=>h[f]):h}function c(h){const f=h.indexOf("#");return f!==-1&&(h=h.slice(0,f)),h}function l(h){let f="";const g=h.indexOf("#");return g!==-1&&(f=h.slice(g)),f}function u(h){h=c(h);const f=h.indexOf("?");return f===-1?"":h.slice(f+1)}function d(h,f){return f.parseNumbers&&!Number.isNaN(Number(h))&&typeof h=="string"&&h.trim()!==""?h=Number(h):f.parseBooleans&&h!==null&&(h.toLowerCase()==="true"||h.toLowerCase()==="false")&&(h=h.toLowerCase()==="true"),h}function y(h,f){f=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},f),o(f.arrayFormatSeparator);const g=p(f),w=Object.create(null);if(typeof h!="string"||(h=h.trim().replace(/^[?#&]/,""),!h))return w;for(const T of h.split("&")){if(T==="")continue;let[A,R]=r(f.decode?T.replace(/\+/g," "):T,"=");R=R===void 0?null:["comma","separator"].includes(f.arrayFormat)?R:n(R,f),g(n(A,f),R,w)}for(const T of Object.keys(w)){const A=w[T];if(typeof A=="object"&&A!==null)for(const R of Object.keys(A))A[R]=d(A[R],f);else w[T]=d(A,f)}return f.sort===!1?w:(f.sort===!0?Object.keys(w).sort():Object.keys(w).sort(f.sort)).reduce((T,A)=>{const R=w[A];return R&&typeof R=="object"&&!Array.isArray(R)?T[A]=S(R):T[A]=R,T},Object.create(null))}e.extract=u,e.parse=y,e.stringify=(h,f)=>{if(!h)return"";f=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},f),o(f.arrayFormatSeparator);const g=R=>f.skipNull&&v(h[R])||f.skipEmptyString&&h[R]==="",w=m(f),T={};for(const R of Object.keys(h))g(R)||(T[R]=h[R]);const A=Object.keys(T);return f.sort!==!1&&A.sort(f.sort),A.map(R=>{const N=h[R];return N===void 0?"":N===null?i(R,f):Array.isArray(N)?N.reduce(w(R),[]).join("&"):i(R,f)+"="+i(N,f)}).filter(R=>R.length>0).join("&")},e.parseUrl=(h,f)=>{f=Object.assign({decode:!0},f);const[g,w]=r(h,"#");return Object.assign({url:g.split("?")[0]||"",query:y(u(h),f)},f&&f.parseFragmentIdentifier&&w?{fragmentIdentifier:n(w,f)}:{})},e.stringifyUrl=(h,f)=>{f=Object.assign({encode:!0,strict:!0},f);const g=c(h.url).split("?")[0]||"",w=e.extract(h.url),T=e.parse(w,{sort:!1}),A=Object.assign(T,h.query);let R=e.stringify(A,f);R&&(R=`?${R}`);let N=l(h.url);return h.fragmentIdentifier&&(N=`#${i(h.fragmentIdentifier,f)}`),`${g}${R}${N}`},e.pick=(h,f,g)=>{g=Object.assign({parseFragmentIdentifier:!0},g);const{url:w,query:T,fragmentIdentifier:A}=e.parseUrl(h,g);return e.stringifyUrl({url:w,query:x(T,f),fragmentIdentifier:A},g)},e.exclude=(h,f,g)=>{const w=Array.isArray(f)?T=>!f.includes(T):(T,A)=>!f(T,A);return e.pick(h,w,g)}}(zt)),zt}var Gt=Zs();const dt=io,Qs={parseNumbers:!1,parseBooleans:!1},Xs={skipNull:!1,skipEmptyString:!1},Js=(e,a)=>{var s,r;const{navigateMode:x="push",parseOptions:v,stringifyOptions:m}={},p=Object.assign(Object.assign({},Qs),v),o=Object.assign(Object.assign({},Xs),m),i=dt.useLocation(),n=(s=dt.useHistory)===null||s===void 0?void 0:s.call(dt),S=(r=dt.useNavigate)===null||r===void 0?void 0:r.call(dt),c=oo(),l=M.useRef(typeof e=="function"?e():e||{}),u=M.useMemo(()=>Gt.parse(i.search,p),[i.search]),d=M.useMemo(()=>Object.assign(Object.assign({},l.current),u),[u]);return[d,He(h=>{const f=typeof h=="function"?h(d):h;c(),n&&n[x]({hash:i.hash,search:Gt.stringify(Object.assign(Object.assign({},u),f),o)||"?"},i.state),S&&S({hash:i.hash,search:Gt.stringify(Object.assign(Object.assign({},u),f),o)||"?"},{replace:x==="replace",state:i.state})})]};var ht={exports:{}},ea=ht.exports,un;function ta(){return un||(un=1,function(e,a){(function(s,r){var x="1.0.40",v="",m="?",p="function",o="undefined",i="object",n="string",S="major",c="model",l="name",u="type",d="vendor",y="version",h="architecture",f="console",g="mobile",w="tablet",T="smarttv",A="wearable",R="embedded",N=500,k="Amazon",U="Apple",W="ASUS",Y="BlackBerry",re="Browser",fe="Chrome",ne="Edge",me="Firefox",ye="Google",te="Huawei",I="LG",L="Microsoft",H="Motorola",z="Opera",G="Samsung",D="Sharp",E="Sony",P="Xiaomi",B="Zebra",F="Facebook",$="Chromium OS",Q="Mac OS",le=" Browser",de=function(O,q){var _={};for(var Z in O)q[Z]&&q[Z].length%2===0?_[Z]=q[Z].concat(O[Z]):_[Z]=O[Z];return _},pe=function(O){for(var q={},_=0;_<O.length;_++)q[O[_].toUpperCase()]=O[_];return q},he=function(O,q){return typeof O===n?ve(q).indexOf(ve(O))!==-1:!1},ve=function(O){return O.toLowerCase()},Ce=function(O){return typeof O===n?O.replace(/[^\d\.]/g,v).split(".")[0]:r},xe=function(O,q){if(typeof O===n)return O=O.replace(/^\s\s*/,v),typeof q===o?O:O.substring(0,N)},be=function(O,q){for(var _=0,Z,ie,ue,ee,J,ge;_<q.length&&!J;){var Me=q[_],_e=q[_+1];for(Z=ie=0;Z<Me.length&&!J&&Me[Z];)if(J=Me[Z++].exec(O),J)for(ue=0;ue<_e.length;ue++)ge=J[++ie],ee=_e[ue],typeof ee===i&&ee.length>0?ee.length===2?typeof ee[1]==p?this[ee[0]]=ee[1].call(this,ge):this[ee[0]]=ee[1]:ee.length===3?typeof ee[1]===p&&!(ee[1].exec&&ee[1].test)?this[ee[0]]=ge?ee[1].call(this,ge,ee[2]):r:this[ee[0]]=ge?ge.replace(ee[1],ee[2]):r:ee.length===4&&(this[ee[0]]=ge?ee[3].call(this,ge.replace(ee[1],ee[2])):r):this[ee]=ge||r;_+=2}},se=function(O,q){for(var _ in q)if(typeof q[_]===i&&q[_].length>0){for(var Z=0;Z<q[_].length;Z++)if(he(q[_][Z],O))return _===m?r:_}else if(he(q[_],O))return _===m?r:_;return q.hasOwnProperty("*")?q["*"]:O},oe={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},X={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"},V={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[y,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[y,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,y],[/opios[\/ ]+([\w\.]+)/i],[y,[l,z+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[y,[l,z+" GX"]],[/\bopr\/([\w\.]+)/i],[y,[l,z]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[y,[l,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[y,[l,"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],[l,y],[/quark(?:pc)?\/([-\w\.]+)/i],[y,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[y,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[y,[l,"UC"+re]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[y,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[y,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[y,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[y,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[y,[l,"Smart Lenovo "+re]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+re],y],[/\bfocus\/([\w\.]+)/i],[y,[l,me+" Focus"]],[/\bopt\/([\w\.]+)/i],[y,[l,z+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[y,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[y,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[y,[l,z+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[y,[l,"MIUI"+le]],[/fxios\/([\w\.-]+)/i],[y,[l,me]],[/\bqihoobrowser\/?([\w\.]*)/i],[y,[l,"360"]],[/\b(qq)\/([\w\.]+)/i],[[l,/(.+)/,"$1Browser"],y],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1"+le],y],[/samsungbrowser\/([\w\.]+)/i],[y,[l,G+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[y,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],y],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[l,y],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[l],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[y,l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,F],y],[/(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],[l,y],[/\bgsa\/([\w\.]+) .*safari\//i],[y,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[y,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[y,[l,fe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,fe+" WebView"],y],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[y,[l,"Android "+re]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,y],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[y,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[y,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[y,se,oe]],[/(webkit|khtml)\/([\w\.]+)/i],[l,y],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],y],[/(wolvic|librewolf)\/([\w\.]+)/i],[l,y],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[y,[l,me+" 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],[l,[y,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[y,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,ve]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/windows (ce|mobile); ppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[h,/ower/,v,ve]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[h,ve]]],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],[c,[d,G],[u,w]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[c,[d,G],[u,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[d,U],[u,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[d,U],[u,w]],[/(macintosh);/i],[c,[d,U]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[d,D],[u,g]],[/(?:honor)([-\w ]+)[;\)]/i],[c,[d,"Honor"],[u,g]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[d,te],[u,w]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[d,te],[u,g]],[/\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],[[c,/_/g," "],[d,P],[u,g]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[d,P],[u,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[d,"OPPO"],[u,g]],[/\b(opd2\d{3}a?) bui/i],[c,[d,"OPPO"],[u,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[d,"Vivo"],[u,g]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[d,"Realme"],[u,g]],[/\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],[c,[d,H],[u,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[d,H],[u,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[d,I],[u,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[d,I],[u,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[d,"Lenovo"],[u,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[d,"Nokia"],[u,g]],[/(pixel c)\b/i],[c,[d,ye],[u,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[d,ye],[u,g]],[/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],[c,[d,E],[u,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[d,E],[u,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[d,"OnePlus"],[u,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[d,k],[u,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[d,k],[u,g]],[/(playbook);[-\w\),; ]+(rim)/i],[c,d,[u,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[d,Y],[u,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[d,W],[u,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[d,W],[u,g]],[/(nexus 9)/i],[c,[d,"HTC"],[u,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[c,/_/g," "],[u,g]],[/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],[c,[d,"TCL"],[u,w]],[/(itel) ((\w+))/i],[[d,ve],c,[u,se,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[d,"Acer"],[u,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[d,"Meizu"],[u,g]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[d,"Ulefone"],[u,g]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[c,[d,"Energizer"],[u,g]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[c,[d,"Cat"],[u,g]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[c,[d,"Smartfren"],[u,g]],[/droid.+; (a(?:015|06[35]|142p?))/i],[c,[d,"Nothing"],[u,g]],[/(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],[d,c,[u,g]],[/(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],[d,c,[u,w]],[/(surface duo)/i],[c,[d,L],[u,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[d,"Fairphone"],[u,g]],[/(u304aa)/i],[c,[d,"AT&T"],[u,g]],[/\bsie-(\w*)/i],[c,[d,"Siemens"],[u,g]],[/\b(rct\w+) b/i],[c,[d,"RCA"],[u,w]],[/\b(venue[\d ]{2,7}) b/i],[c,[d,"Dell"],[u,w]],[/\b(q(?:mv|ta)\w+) b/i],[c,[d,"Verizon"],[u,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[d,"Barnes & Noble"],[u,w]],[/\b(tm\d{3}\w+) b/i],[c,[d,"NuVision"],[u,w]],[/\b(k88) b/i],[c,[d,"ZTE"],[u,w]],[/\b(nx\d{3}j) b/i],[c,[d,"ZTE"],[u,g]],[/\b(gen\d{3}) b.+49h/i],[c,[d,"Swiss"],[u,g]],[/\b(zur\d{3}) b/i],[c,[d,"Swiss"],[u,w]],[/\b((zeki)?tb.*\b) b/i],[c,[d,"Zeki"],[u,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],c,[u,w]],[/\b(ns-?\w{0,9}) b/i],[c,[d,"Insignia"],[u,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[d,"NextBook"],[u,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],c,[u,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],c,[u,g]],[/\b(ph-1) /i],[c,[d,"Essential"],[u,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[d,"Envizen"],[u,w]],[/\b(trio[-\w\. ]+) b/i],[c,[d,"MachSpeed"],[u,w]],[/\btu_(1491) b/i],[c,[d,"Rotor"],[u,w]],[/(shield[\w ]+) b/i],[c,[d,"Nvidia"],[u,w]],[/(sprint) (\w+)/i],[d,c,[u,g]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[d,L],[u,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[d,B],[u,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[d,B],[u,g]],[/smart-tv.+(samsung)/i],[d,[u,T]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[d,G],[u,T]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,I],[u,T]],[/(apple) ?tv/i],[d,[c,U+" TV"],[u,T]],[/crkey/i],[[c,fe+"cast"],[d,ye],[u,T]],[/droid.+aft(\w+)( bui|\))/i],[c,[d,k],[u,T]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[d,D],[u,T]],[/(bravia[\w ]+)( bui|\))/i],[c,[d,E],[u,T]],[/(mitv-\w{5}) bui/i],[c,[d,P],[u,T]],[/Hbbtv.*(technisat) (.*);/i],[d,c,[u,T]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,xe],[c,xe],[u,T]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,T]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,c,[u,f]],[/droid.+; (shield) bui/i],[c,[d,"Nvidia"],[u,f]],[/(playstation [345portablevi]+)/i],[c,[d,E],[u,f]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[d,L],[u,f]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[c,[d,G],[u,A]],[/((pebble))app/i],[d,c,[u,A]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[d,U],[u,A]],[/droid.+; (glass) \d/i],[c,[d,ye],[u,A]],[/droid.+; (wt63?0{2,3})\)/i],[c,[d,B],[u,A]],[/droid.+; (glass) \d/i],[c,[d,ye],[u,A]],[/(pico) (4|neo3(?: link|pro)?)/i],[d,c,[u,A]],[/; (quest( \d| pro)?)/i],[c,[d,F],[u,A]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[u,R]],[/(aeobc)\b/i],[c,[d,k],[u,R]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[c,[u,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[u,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,g]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[y,[l,ne+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[l,y],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[y,[l,"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],[l,y],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[y,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,y],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[l,[y,se,X]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[y,se,X],[l,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[y,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,Q],[y,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[y,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,y],[/\(bb(10);/i],[y,[l,Y]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[y,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[y,[l,me+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[y,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[y,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[y,[l,fe+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,$],y],[/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],[l,y],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],y],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,y]]},K=function(O,q){if(typeof O===i&&(q=O,O=r),!(this instanceof K))return new K(O,q).getResult();var _=typeof s!==o&&s.navigator?s.navigator:r,Z=O||(_&&_.userAgent?_.userAgent:v),ie=_&&_.userAgentData?_.userAgentData:r,ue=q?de(V,q):V,ee=_&&_.userAgent==Z;return this.getBrowser=function(){var J={};return J[l]=r,J[y]=r,be.call(J,Z,ue.browser),J[S]=Ce(J[y]),ee&&_&&_.brave&&typeof _.brave.isBrave==p&&(J[l]="Brave"),J},this.getCPU=function(){var J={};return J[h]=r,be.call(J,Z,ue.cpu),J},this.getDevice=function(){var J={};return J[d]=r,J[c]=r,J[u]=r,be.call(J,Z,ue.device),ee&&!J[u]&&ie&&ie.mobile&&(J[u]=g),ee&&J[c]=="Macintosh"&&_&&typeof _.standalone!==o&&_.maxTouchPoints&&_.maxTouchPoints>2&&(J[c]="iPad",J[u]=w),J},this.getEngine=function(){var J={};return J[l]=r,J[y]=r,be.call(J,Z,ue.engine),J},this.getOS=function(){var J={};return J[l]=r,J[y]=r,be.call(J,Z,ue.os),ee&&!J[l]&&ie&&ie.platform&&ie.platform!="Unknown"&&(J[l]=ie.platform.replace(/chrome os/i,$).replace(/macos/i,Q)),J},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 Z},this.setUA=function(J){return Z=typeof J===n&&J.length>N?xe(J,N):J,this},this.setUA(Z),this};K.VERSION=x,K.BROWSER=pe([l,y,S]),K.CPU=pe([h]),K.DEVICE=pe([c,d,u,f,g,T,w,A,R]),K.ENGINE=K.OS=pe([l,y]),e.exports&&(a=e.exports=K),a.UAParser=K;var C=typeof s!==o&&(s.jQuery||s.Zepto);if(C&&!C.ua){var j=new K;C.ua=j.getResult(),C.ua.get=function(){return j.getUA()},C.ua.set=function(O){j.setUA(O);var q=j.getResult();for(var _ in q)C.ua[_]=q[_]}}})(typeof window=="object"?window:ea)}(ht,ht.exports)),ht.exports}var ra=ta();const Zt=Gn(ra);function na({user:e,sessionUser:a}){const s=Ve(()=>(e?.passports||[])?.find(r=>r.name===a.role),[e?.passports,a?.role]);return t.jsxs(ae,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.jsx(Zn,{size:40,variant:"circle",shape:"circle",src:a.avatar,did:a.did,sx:{flexShrink:0}}),t.jsxs(ae,{sx:{flex:1,overflow:"hidden"},children:[t.jsxs(ae,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.jsx(ze,{title:a.fullName,children:t.jsx(we,{sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1},children:a.fullName})}),t.jsx(so,{label:s?.title||s?.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"}})]}),t.jsx(ze,{title:a.email,children:t.jsx(we,{variant:"body2",color:"grey",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:a.email})})]})]})}const ia={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"}},Di="Reserved IP",dn="ip-region-cache";async function oa(e){const a=`https://ipapi.co/${e}/json/`,s=await(await fetch(a)).json();let r="";return s.error?s.reserved&&(r=Di):r=[s.country_name,s.region,s.city].filter(Boolean).join("/"),r}async function sa(e){const a=`https://api.ip.sb/geoip/${e}`,s=await(await fetch(a)).json();let r="";return s.error?s.reserved&&(r=Di):r=[s.country,s.region,s.city].filter(Boolean).join("/"),r}async function aa(e){let a="",s={};try{const r=localStorage.getItem(dn);r&&(s=JSON.parse(r))}catch{s={}}if(s[e])a=s[e];else{try{a=await sa(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!a)try{a=await oa(e)}catch{console.warn("Fail to get ip region from ip-api.co")}}if(a){const r=Object.keys(s);r.length>100&&delete s[r[0]],s[e]&&delete s[e],s[e]=a,localStorage.setItem(dn,JSON.stringify(s))}return a}const fn=e=>new Zt(e,{browser:[[/(ArcWallet)\/([\w\.]+)/i],[Zt.BROWSER.NAME,Zt.BROWSER.VERSION]]}).getResult(),pn={display:"flex",justifyContent:"flex-end",textAlign:"right"},la=new uo({concurrency:1}),ca=M.memo(({userSession:e,isMobile:a=!1})=>{const s=Qe({loading:!0,ipRegion:""}),{t:r}=je();return M.useEffect(()=>{la.add(async()=>{try{s.ipRegion=await aa(e.lastLoginIp)}finally{s.loading=!1}})},[s,e.lastLoginIp]),t.jsx(ae,{...a&&{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:1,flexWrap:"wrap"},children:s.ipRegion?t.jsxs(t.Fragment,{children:[t.jsx(we,{variant:"body2",children:s.ipRegion}),t.jsx(we,{variant:"body2",color:"grey",children:e.lastLoginIp||r("unknown")})]}):t.jsxs(t.Fragment,{children:[t.jsx(we,{children:e.lastLoginIp||r("unknown")}),s.loading?t.jsx(we,{variant:"body2",color:"grey",sx:{textAlign:"center"},children:t.jsx(Xe,{size:12,color:"inherit"})}):null]})})});function ua({user:e,showAction:a=!0,showUser:s=!0,getUserSessions:r,showOffline:x=!1}){const v=Qe({status:"online",page:1,pageSize:10}),m=Qe({online:0,expired:0,offline:0}),p=ao(),{locale:o}=je(),i=is({key:"md"}),n=Qn(N=>N.breakpoints.down("lg")),{confirmApi:S,confirmHolder:c}=_r(),l=He((N,k={})=>lo(ia,N,o,"en",k)),u=He(async()=>{const N=await r({page:v.page,pageSize:v.pageSize,status:v.status}),k=N?.paging?.total||0;return m[v.status]=k,{total:k,list:N?.list||[]}});Xn(async()=>{const N=await r({page:1,pageSize:1,status:"expired"});m.expired=N?.paging?.total||0;const k=await r({page:1,pageSize:1,status:"offline"});m.offline=k?.paging?.total||0});const d=co(u,{refreshDeps:[v.status,v.page,v.pageSize]}),y=Ve(()=>d.data?.list||[],[d.data?.list]),h=Ve(()=>{const N=v.status;return N==="online"?m[N]<=1:m[N]===0},[y,p]),f=Ve(()=>Yr({},i?pn:{}),[i]),g=He(({visitorId:N})=>{S.open({title:l("logoutThisSession"),content:l("logoutThisSessionConfirm"),confirmButtonText:l("confirm"),confirmButtonProps:{color:"error"},cancelButtonText:l("cancel"),onConfirm:async()=>{await Zr.user.logout({visitorId:N,includeFederated:!0});const{page:k=0}=v,{list:U=[]}=d.data||{},W=U.length||0;k>1&&W===1&&(v.page=Math.max(k-1,1)),d.refresh(),S.close()}})}),w=He(()=>{S.open({title:l("logoutAllSession",{type:l(v.status)}),content:l("logoutAllSessionConfirm",{type:l(v.status)}),confirmButtonText:l("confirm"),confirmButtonProps:{color:"error"},cancelButtonText:l("cancel"),onConfirm:async()=>{await Zr.user.logout({status:v.status,visitorId:p,includeFederated:!0}),v.page=1,d.refresh(),S.close()}})}),T=[];a&&T.push(t.jsx(ze,{title:l("logoutAllTips",{type:l(v.status)}),children:t.jsx(yt,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:w,disabled:h,children:l("logoutAll",{type:l(v.status)})})},"logoutAll"));const A=Ve(()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600,page:v.page-1,rowsPerPage:v.pageSize,count:d.data?.total||0}),[d.data?.total,v.page,v.pageSize]),R=[{label:l("platform"),name:"platform",options:{customBodyRenderLite:N=>{const k=y[N],U=fn(k?.ua);return t.jsx(ae,{sx:f,children:[U.os?.name,U.os?.version].filter(Boolean).join("/")||l("unknown")})}}},{label:l("deviceType"),name:"deviceType",options:{customBodyRenderLite:N=>{const k=y[N],U=fn(k?.ua);return t.jsx(ae,{sx:f,children:[U.browser?.name,U.browser?.version].filter(Boolean).join("/")||l("unknown")})}}},{label:l("walletOS"),name:"walletOS",options:{customBodyRenderLite:N=>{const k=y[N];return t.jsx(ae,{sx:f,children:k.extra?.walletOS||l("unknown")})}}},s&&{label:l("user"),name:"user",options:{customBodyRenderLite:N=>{const k=y[N];return t.jsx(ae,{sx:Yr({minWidth:150,maxWidth:250},i?pn:{}),children:t.jsx(na,{sessionUser:k.user,user:e})})}}},{label:l("createdAt"),name:"createdAt",options:{customBodyRenderLite:N=>{const k=y[N];return t.jsx(ae,{sx:f,children:k.createdAt?t.jsx(vt,{value:k.createdAt,relativeRange:3*86400*1e3,locale:o}):l("unknown")})}}},!x&&{label:l("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:N=>{const k=y[N];return t.jsx(ae,{sx:f,children:k.status==="expired"?l("expired"):t.jsx(vt,{value:k.updatedAt,relativeRange:3*86400*1e3,locale:o})})}}},{label:l("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:N=>{const k=y[N];return t.jsx(ca,{userSession:k,isMobile:i})}}},a&&{label:l("actions"),name:"actions",options:{customBodyRenderLite:N=>{const k=y[N];return t.jsx(ae,{sx:f,children:t.jsx(yt,{sx:{whiteSpace:"nowrap",fontSize:"12px !important",lineHeight:"1.25",px:1},disabled:p===k.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>g({visitorId:k.visitorId}),children:k.status==="expired"?l("remove"):p===k.visitorId?l("currentSession"):l("logout")})})}}}].filter(Boolean);return t.jsxs(ae,{className:"pc-user-sessions",sx:{maxWidth:i?"unset":n?"calc(100vw - 300px)":"100%",...i&&{".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:N=>`${N.palette.grey[50]} !important`}}},".MuiTableRow-hover":{"&:hover":{backgroundColor:"inherit !important"}},".MuiTableCell-root":{paddingRight:"8px",paddingLeft:"8px",color:"text.secondary",...i&&{padding:"8px !important","&:first-child":{paddingTop:"20px!important"},"&:last-child":{paddingBottom:"20px!important"}}}},children:[c,t.jsx(Fr,{count:d.data?.total||0,locale:o,data:y,columns:R,customButtons:T,options:A,loading:d.loading,className:"pc-user-sessions-table",title:t.jsxs(fi,{row:!0,sx:{lineHeight:1,ml:1},onChange:N=>{v.status=N.target.value},children:[t.jsx(gt,{value:"online",control:t.jsx(kt,{size:"small",sx:{lineHeight:1,fontSize:0},checked:v.status==="online"}),label:t.jsxs(we,{sx:{display:"flex",alignItems:"center"},children:[l("online"),t.jsxs(we,{component:"span",sx:{ml:.5,color:"text.secondary"},children:["(",m.online,")"]})]})}),t.jsx(gt,{value:"expired",control:t.jsx(kt,{size:"small",sx:{lineHeight:1,fontSize:0},checked:v.status==="expired"}),label:t.jsxs(we,{sx:{display:"flex",alignItems:"center"},children:[l("expired"),t.jsxs(we,{component:"span",sx:{ml:.5,color:"text.secondary"},children:["(",m.expired,")"]})]})}),x?t.jsx(gt,{value:"offline",control:t.jsx(kt,{size:"small",sx:{lineHeight:1,fontSize:0},checked:v.status==="offline"}),label:t.jsxs(we,{sx:{display:"flex",alignItems:"center"},children:[l("offline"),t.jsxs(we,{component:"span",sx:{ml:.5,color:"text.secondary"},children:["(",m.offline,")"]})]})}):null]}),onChange:N=>{v.page=N.page+1,v.pageSize=N.rowsPerPage}})]})}var Qt={exports:{}},Xt={},mn;function ki(){if(mn)return Xt;mn=1;function e(f){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},e(f)}function a(f,g,w){return Object.defineProperty(f,"prototype",{writable:!1}),f}function s(f,g){if(!(f instanceof g))throw new TypeError("Cannot call a class as a function")}function r(f,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(g&&g.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),g&&x(f,g)}function x(f,g){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,A){return T.__proto__=A,T},x(f,g)}function v(f){var g=o();return function(){var T=i(f),A;if(g){var R=i(this).constructor;A=Reflect.construct(T,arguments,R)}else A=T.apply(this,arguments);return m(this,A)}}function m(f,g){if(g&&(e(g)==="object"||typeof g=="function"))return g;if(g!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(f)}function p(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function o(){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 i(f){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(w){return w.__proto__||Object.getPrototypeOf(w)},i(f)}var n={},S,c;function l(f,g,w){w||(w=Error);function T(R,N,k){return typeof g=="string"?g:g(R,N,k)}var A=function(R){r(k,R);var N=v(k);function k(U,W,Y){var re;return s(this,k),re=N.call(this,T(U,W,Y)),re.code=f,re}return a(k)}(w);n[f]=A}function u(f,g){if(Array.isArray(f)){var w=f.length;return f=f.map(function(T){return String(T)}),w>2?"one of ".concat(g," ").concat(f.slice(0,w-1).join(", "),", or ")+f[w-1]:w===2?"one of ".concat(g," ").concat(f[0]," or ").concat(f[1]):"of ".concat(g," ").concat(f[0])}else return"of ".concat(g," ").concat(String(f))}function d(f,g,w){return f.substr(0,g.length)===g}function y(f,g,w){return(w===void 0||w>f.length)&&(w=f.length),f.substring(w-g.length,w)===g}function h(f,g,w){return typeof w!="number"&&(w=0),w+g.length>f.length?!1:f.indexOf(g,w)!==-1}return l("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),l("ERR_INVALID_ARG_TYPE",function(f,g,w){S===void 0&&(S=Rr()),S(typeof f=="string","'name' must be a string");var T;typeof g=="string"&&d(g,"not ")?(T="must not be",g=g.replace(/^not /,"")):T="must be";var A;if(y(f," argument"))A="The ".concat(f," ").concat(T," ").concat(u(g,"type"));else{var R=h(f,".")?"property":"argument";A='The "'.concat(f,'" ').concat(R," ").concat(T," ").concat(u(g,"type"))}return A+=". Received type ".concat(e(w)),A},TypeError),l("ERR_INVALID_ARG_VALUE",function(f,g){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";c===void 0&&(c=wt());var T=c.inspect(g);return T.length>128&&(T="".concat(T.slice(0,128),"...")),"The argument '".concat(f,"' ").concat(w,". Received ").concat(T)},TypeError),l("ERR_INVALID_RETURN_VALUE",function(f,g,w){var T;return w&&w.constructor&&w.constructor.name?T="instance of ".concat(w.constructor.name):T="type ".concat(e(w)),"Expected ".concat(f,' to be returned from the "').concat(g,'"')+" function but got ".concat(T,".")},TypeError),l("ERR_MISSING_ARGS",function(){for(var f=arguments.length,g=new Array(f),w=0;w<f;w++)g[w]=arguments[w];S===void 0&&(S=Rr()),S(g.length>0,"At least one arg needs to be specified");var T="The ",A=g.length;switch(g=g.map(function(R){return'"'.concat(R,'"')}),A){case 1:T+="".concat(g[0]," argument");break;case 2:T+="".concat(g[0]," and ").concat(g[1]," arguments");break;default:T+=g.slice(0,A-1).join(", "),T+=", and ".concat(g[A-1]," arguments");break}return"".concat(T," must be specified")},TypeError),Xt.codes=n,Xt}var Jt,hn;function da(){if(hn)return Jt;hn=1;function e(I,L){var H=Object.keys(I);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(I);L&&(z=z.filter(function(G){return Object.getOwnPropertyDescriptor(I,G).enumerable})),H.push.apply(H,z)}return H}function a(I){for(var L=1;L<arguments.length;L++){var H=arguments[L]!=null?arguments[L]:{};L%2?e(Object(H),!0).forEach(function(z){s(I,z,H[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(H)):e(Object(H)).forEach(function(z){Object.defineProperty(I,z,Object.getOwnPropertyDescriptor(H,z))})}return I}function s(I,L,H){return L=m(L),L in I?Object.defineProperty(I,L,{value:H,enumerable:!0,configurable:!0,writable:!0}):I[L]=H,I}function r(I,L){if(!(I instanceof L))throw new TypeError("Cannot call a class as a function")}function x(I,L){for(var H=0;H<L.length;H++){var z=L[H];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(I,m(z.key),z)}}function v(I,L,H){return L&&x(I.prototype,L),Object.defineProperty(I,"prototype",{writable:!1}),I}function m(I){var L=p(I,"string");return f(L)==="symbol"?L:String(L)}function p(I,L){if(f(I)!=="object"||I===null)return I;var H=I[Symbol.toPrimitive];if(H!==void 0){var z=H.call(I,L);if(f(z)!=="object")return z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(I)}function o(I,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(L&&L.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),Object.defineProperty(I,"prototype",{writable:!1}),L&&y(I,L)}function i(I){var L=u();return function(){var z=h(I),G;if(L){var D=h(this).constructor;G=Reflect.construct(z,arguments,D)}else G=z.apply(this,arguments);return n(this,G)}}function n(I,L){if(L&&(f(L)==="object"||typeof L=="function"))return L;if(L!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(I)}function S(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function c(I){var L=typeof Map=="function"?new Map:void 0;return c=function(z){if(z===null||!d(z))return z;if(typeof z!="function")throw new TypeError("Super expression must either be null or a function");if(typeof L<"u"){if(L.has(z))return L.get(z);L.set(z,G)}function G(){return l(z,arguments,h(this).constructor)}return G.prototype=Object.create(z.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}}),y(G,z)},c(I)}function l(I,L,H){return u()?l=Reflect.construct.bind():l=function(G,D,E){var P=[null];P.push.apply(P,D);var B=Function.bind.apply(G,P),F=new B;return E&&y(F,E.prototype),F},l.apply(null,arguments)}function u(){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 d(I){return Function.toString.call(I).indexOf("[native code]")!==-1}function y(I,L){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(z,G){return z.__proto__=G,z},y(I,L)}function h(I){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(H){return H.__proto__||Object.getPrototypeOf(H)},h(I)}function f(I){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},f(I)}var g=wt(),w=g.inspect,T=ki(),A=T.codes.ERR_INVALID_ARG_TYPE;function R(I,L,H){return(H===void 0||H>I.length)&&(H=I.length),I.substring(H-L.length,H)===L}function N(I,L){if(L=Math.floor(L),I.length==0||L==0)return"";var H=I.length*L;for(L=Math.floor(Math.log(L)/Math.log(2));L;)I+=I,L--;return I+=I.substring(0,H-I.length),I}var k="",U="",W="",Y="",re={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:"},fe=10;function ne(I){var L=Object.keys(I),H=Object.create(Object.getPrototypeOf(I));return L.forEach(function(z){H[z]=I[z]}),Object.defineProperty(H,"message",{value:I.message}),H}function me(I){return w(I,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function ye(I,L,H){var z="",G="",D=0,E="",P=!1,B=me(I),F=B.split(`
|
|
1
|
+
import{aG as Yn,j as t,r as M,fI as io,fJ as oo,cr as He,bd as Gn,by as Ve,N as ae,at as Zn,az as ze,T as we,eN as so,aP as Qe,fK as ao,m as je,F as Qn,fL as _r,fM as lo,cV as Xn,cq as co,bk as Yr,dH as yt,P as vt,aU as gt,fN as uo,C as Xe,fO as wt,ey as Ae,fP as Jn,fQ as fo,fR as po,fS as mo,fT as ho,fU as go,fV as ei,fW as bo,fX as Lr,fY as yo,fZ as vo,f_ as wo,f$ as xo,ez as qr,g0 as ti,eA as Co,cE as Er,eB as So,dD as To,g1 as Eo,bW as at,bX as lt,cf as ri,dN as Oe,eZ as ce,bZ as jo,b8 as Se,db as Rt,d5 as ni,b_ as qe,b$ as tt,U as Je,av as At,dJ as ii,d8 as Po,g2 as Ut,bg as oi,g3 as si,o as b,bf as Te,Q as xt,t as st,g4 as Do,bn as ke,R as jr,S as Pr,dF as ko,g5 as Ot,g6 as Ro,H as Ue,au as Ct,$ as Ge,D as Ur,X as nt,v as Ee,Y as Ke,g7 as Ao,h as Dr,aW as Oo,w as Io,x as No,s as Pe,f4 as Mo,g as St,ad as Tt,bz as et,g8 as _o,dE as Lo,dl as qo,f as Uo,n as Et,E as Ye,dw as Bo,g9 as Fo,eC as Vo,ga as ai,gb as It,gc as $o,dG as Gr,b as Ze,W as Br,dI as zo,bq as li,br as Ko,bs as ci,aE as Wo,fH as ui,gd as di,aS as Ho,aF as Yo,a9 as Go,y as Zo,ge as Qo,a4 as Xo,bB as Jo,V as es,O as ts}from"./index-BEdpQIko.js";import{A as Nt}from"./Add-BUmeg99N.js";import{V as rs}from"./ViewList-S9dWs9V4.js";import{H as Fr,g as ns}from"./index-DnmTiFy6.js";import{u as is}from"./use-mobile-DC_ahzbz.js";import{e as Zr}from"./client-Dvy7M-P4.js";import{R as fi,a as kt,W as pi,D as os}from"./url-evaluation-pwwnMHz2.js";import{u as Ie}from"./team-DTPT2zKS.js";import{u as mi}from"./blocklet-BRutkJDd.js";import{P as $e}from"./permission-tTnX4xHe.js";import{C as Bt}from"./click-to-copy-C-7Z5eHb.js";import{s as We,g as ss,S as as,u as Be,a as hi,b as jt,c as gi,d as Ft,e as bi,f as Vr,P as yi,D as vi,h as Mt,M as mt,i as wi,j as Qr,k as bt,v as ls,l as cs,m as Xr,n as us,o as ds,p as fs,q as ps,C as ms,r as hs,t as _t,w as it,x as Lt,y as Jr,z as en,A as gs,T as bs,B as $r,E as ys,F as vs,G as ws,H as xs,I as Cs,J as Ss,K as Ts,L as Pt,N as ot,O as xi,Q as Es,V as kr,R as Ci,U as js,W as tn,X as Ps,Y as Ds,Z as ks,_ as Rs,$ as As,a0 as Os}from"./AdapterDayjs-C8dPnrGM.js";import{u as Ne}from"./useThemeProps-Bgkwc3BW.js";import{a as rn,b as Is,t as Ns,T as Ms}from"./html-title--WvhXygR.js";import{v as De}from"./index-CGWB-xor.js";import{V as _s}from"./Verified-BxTo2JWk.js";import{D as Ls}from"./DeleteOutline-B9PO5oip.js";import{E as nn}from"./ErrorOutline-uAfMXeIr.js";import{y as Si}from"./index-BmbmKON0.js";import{S as qs}from"./Search-CHrgUgdp.js";import{N as Us}from"./index-CNZU7f-m.js";import{b as Bs}from"./sdk-Ckc3vruM.js";import{A as Fs}from"./actions-CaKXieiI.js";import{S as Vs}from"./shorten-label-B93aCDT_.js";const $s=Yn(t.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"})),zs=Yn(t.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"})),Ti=e=>M.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},M.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"}),M.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375}),M.createElement("rect",{x:15.3125,y:14.0625,width:7.5,height:1.875,rx:.9375,transform:"rotate(-90 15.3125 14.0625)"})),Ei=e=>M.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},M.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"}),M.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"}),M.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"}),M.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"})),ji=e=>M.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},M.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"}),M.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375})),Ks=e=>M.createElement("svg",{width:18,height:19,viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg",...e},M.createElement("g",{clipPath:"url(#clip0)"},M.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"})),M.createElement("defs",null,M.createElement("clipPath",{id:"clip0"},M.createElement("rect",{width:18,height:18,transform:"translate(0 0.5)"})))),Pi=e=>M.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},M.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 zt={},Kt,on;function Ws(){return on||(on=1,Kt=e=>encodeURIComponent(e).replace(/[!'()*]/g,a=>`%${a.charCodeAt(0).toString(16).toUpperCase()}`)),Kt}var Wt,sn;function Hs(){if(sn)return Wt;sn=1;var e="%[a-f0-9]{2}",a=new RegExp("("+e+")|([^%]+?)","gi"),s=new RegExp("("+e+")+","gi");function r(m,p){try{return[decodeURIComponent(m.join(""))]}catch{}if(m.length===1)return m;p=p||1;var o=m.slice(0,p),i=m.slice(p);return Array.prototype.concat.call([],r(o),r(i))}function x(m){try{return decodeURIComponent(m)}catch{for(var p=m.match(a)||[],o=1;o<p.length;o++)m=r(p,o).join(""),p=m.match(a)||[];return m}}function v(m){for(var p={"%FE%FF":"��","%FF%FE":"��"},o=s.exec(m);o;){try{p[o[0]]=decodeURIComponent(o[0])}catch{var i=x(o[0]);i!==o[0]&&(p[o[0]]=i)}o=s.exec(m)}p["%C2"]="�";for(var n=Object.keys(p),S=0;S<n.length;S++){var c=n[S];m=m.replace(new RegExp(c,"g"),p[c])}return m}return Wt=function(m){if(typeof m!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof m+"`");try{return m=m.replace(/\+/g," "),decodeURIComponent(m)}catch{return v(m)}},Wt}var Ht,an;function Ys(){return an||(an=1,Ht=(e,a)=>{if(!(typeof e=="string"&&typeof a=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(a==="")return[e];const s=e.indexOf(a);return s===-1?[e]:[e.slice(0,s),e.slice(s+a.length)]}),Ht}var Yt,ln;function Gs(){return ln||(ln=1,Yt=function(e,a){for(var s={},r=Object.keys(e),x=Array.isArray(a),v=0;v<r.length;v++){var m=r[v],p=e[m];(x?a.indexOf(m)!==-1:a(m,p,e))&&(s[m]=p)}return s}),Yt}var cn;function Zs(){return cn||(cn=1,function(e){const a=Ws(),s=Hs(),r=Ys(),x=Gs(),v=h=>h==null;function m(h){switch(h.arrayFormat){case"index":return f=>(g,w)=>{const T=g.length;return w===void 0||h.skipNull&&w===null||h.skipEmptyString&&w===""?g:w===null?[...g,[i(f,h),"[",T,"]"].join("")]:[...g,[i(f,h),"[",i(T,h),"]=",i(w,h)].join("")]};case"bracket":return f=>(g,w)=>w===void 0||h.skipNull&&w===null||h.skipEmptyString&&w===""?g:w===null?[...g,[i(f,h),"[]"].join("")]:[...g,[i(f,h),"[]=",i(w,h)].join("")];case"comma":case"separator":return f=>(g,w)=>w==null||w.length===0?g:g.length===0?[[i(f,h),"=",i(w,h)].join("")]:[[g,i(w,h)].join(h.arrayFormatSeparator)];default:return f=>(g,w)=>w===void 0||h.skipNull&&w===null||h.skipEmptyString&&w===""?g:w===null?[...g,i(f,h)]:[...g,[i(f,h),"=",i(w,h)].join("")]}}function p(h){let f;switch(h.arrayFormat){case"index":return(g,w,T)=>{if(f=/\[(\d*)\]$/.exec(g),g=g.replace(/\[\d*\]$/,""),!f){T[g]=w;return}T[g]===void 0&&(T[g]={}),T[g][f[1]]=w};case"bracket":return(g,w,T)=>{if(f=/(\[\])$/.exec(g),g=g.replace(/\[\]$/,""),!f){T[g]=w;return}if(T[g]===void 0){T[g]=[w];return}T[g]=[].concat(T[g],w)};case"comma":case"separator":return(g,w,T)=>{const A=typeof w=="string"&&w.includes(h.arrayFormatSeparator),R=typeof w=="string"&&!A&&n(w,h).includes(h.arrayFormatSeparator);w=R?n(w,h):w;const N=A||R?w.split(h.arrayFormatSeparator).map(k=>n(k,h)):w===null?w:n(w,h);T[g]=N};default:return(g,w,T)=>{if(T[g]===void 0){T[g]=w;return}T[g]=[].concat(T[g],w)}}}function o(h){if(typeof h!="string"||h.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function i(h,f){return f.encode?f.strict?a(h):encodeURIComponent(h):h}function n(h,f){return f.decode?s(h):h}function S(h){return Array.isArray(h)?h.sort():typeof h=="object"?S(Object.keys(h)).sort((f,g)=>Number(f)-Number(g)).map(f=>h[f]):h}function c(h){const f=h.indexOf("#");return f!==-1&&(h=h.slice(0,f)),h}function l(h){let f="";const g=h.indexOf("#");return g!==-1&&(f=h.slice(g)),f}function u(h){h=c(h);const f=h.indexOf("?");return f===-1?"":h.slice(f+1)}function d(h,f){return f.parseNumbers&&!Number.isNaN(Number(h))&&typeof h=="string"&&h.trim()!==""?h=Number(h):f.parseBooleans&&h!==null&&(h.toLowerCase()==="true"||h.toLowerCase()==="false")&&(h=h.toLowerCase()==="true"),h}function y(h,f){f=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},f),o(f.arrayFormatSeparator);const g=p(f),w=Object.create(null);if(typeof h!="string"||(h=h.trim().replace(/^[?#&]/,""),!h))return w;for(const T of h.split("&")){if(T==="")continue;let[A,R]=r(f.decode?T.replace(/\+/g," "):T,"=");R=R===void 0?null:["comma","separator"].includes(f.arrayFormat)?R:n(R,f),g(n(A,f),R,w)}for(const T of Object.keys(w)){const A=w[T];if(typeof A=="object"&&A!==null)for(const R of Object.keys(A))A[R]=d(A[R],f);else w[T]=d(A,f)}return f.sort===!1?w:(f.sort===!0?Object.keys(w).sort():Object.keys(w).sort(f.sort)).reduce((T,A)=>{const R=w[A];return R&&typeof R=="object"&&!Array.isArray(R)?T[A]=S(R):T[A]=R,T},Object.create(null))}e.extract=u,e.parse=y,e.stringify=(h,f)=>{if(!h)return"";f=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},f),o(f.arrayFormatSeparator);const g=R=>f.skipNull&&v(h[R])||f.skipEmptyString&&h[R]==="",w=m(f),T={};for(const R of Object.keys(h))g(R)||(T[R]=h[R]);const A=Object.keys(T);return f.sort!==!1&&A.sort(f.sort),A.map(R=>{const N=h[R];return N===void 0?"":N===null?i(R,f):Array.isArray(N)?N.reduce(w(R),[]).join("&"):i(R,f)+"="+i(N,f)}).filter(R=>R.length>0).join("&")},e.parseUrl=(h,f)=>{f=Object.assign({decode:!0},f);const[g,w]=r(h,"#");return Object.assign({url:g.split("?")[0]||"",query:y(u(h),f)},f&&f.parseFragmentIdentifier&&w?{fragmentIdentifier:n(w,f)}:{})},e.stringifyUrl=(h,f)=>{f=Object.assign({encode:!0,strict:!0},f);const g=c(h.url).split("?")[0]||"",w=e.extract(h.url),T=e.parse(w,{sort:!1}),A=Object.assign(T,h.query);let R=e.stringify(A,f);R&&(R=`?${R}`);let N=l(h.url);return h.fragmentIdentifier&&(N=`#${i(h.fragmentIdentifier,f)}`),`${g}${R}${N}`},e.pick=(h,f,g)=>{g=Object.assign({parseFragmentIdentifier:!0},g);const{url:w,query:T,fragmentIdentifier:A}=e.parseUrl(h,g);return e.stringifyUrl({url:w,query:x(T,f),fragmentIdentifier:A},g)},e.exclude=(h,f,g)=>{const w=Array.isArray(f)?T=>!f.includes(T):(T,A)=>!f(T,A);return e.pick(h,w,g)}}(zt)),zt}var Gt=Zs();const dt=io,Qs={parseNumbers:!1,parseBooleans:!1},Xs={skipNull:!1,skipEmptyString:!1},Js=(e,a)=>{var s,r;const{navigateMode:x="push",parseOptions:v,stringifyOptions:m}={},p=Object.assign(Object.assign({},Qs),v),o=Object.assign(Object.assign({},Xs),m),i=dt.useLocation(),n=(s=dt.useHistory)===null||s===void 0?void 0:s.call(dt),S=(r=dt.useNavigate)===null||r===void 0?void 0:r.call(dt),c=oo(),l=M.useRef(typeof e=="function"?e():e||{}),u=M.useMemo(()=>Gt.parse(i.search,p),[i.search]),d=M.useMemo(()=>Object.assign(Object.assign({},l.current),u),[u]);return[d,He(h=>{const f=typeof h=="function"?h(d):h;c(),n&&n[x]({hash:i.hash,search:Gt.stringify(Object.assign(Object.assign({},u),f),o)||"?"},i.state),S&&S({hash:i.hash,search:Gt.stringify(Object.assign(Object.assign({},u),f),o)||"?"},{replace:x==="replace",state:i.state})})]};var ht={exports:{}},ea=ht.exports,un;function ta(){return un||(un=1,function(e,a){(function(s,r){var x="1.0.40",v="",m="?",p="function",o="undefined",i="object",n="string",S="major",c="model",l="name",u="type",d="vendor",y="version",h="architecture",f="console",g="mobile",w="tablet",T="smarttv",A="wearable",R="embedded",N=500,k="Amazon",U="Apple",W="ASUS",Y="BlackBerry",re="Browser",fe="Chrome",ne="Edge",me="Firefox",ye="Google",te="Huawei",I="LG",L="Microsoft",H="Motorola",z="Opera",G="Samsung",D="Sharp",E="Sony",P="Xiaomi",B="Zebra",F="Facebook",$="Chromium OS",Q="Mac OS",le=" Browser",de=function(O,q){var _={};for(var Z in O)q[Z]&&q[Z].length%2===0?_[Z]=q[Z].concat(O[Z]):_[Z]=O[Z];return _},pe=function(O){for(var q={},_=0;_<O.length;_++)q[O[_].toUpperCase()]=O[_];return q},he=function(O,q){return typeof O===n?ve(q).indexOf(ve(O))!==-1:!1},ve=function(O){return O.toLowerCase()},Ce=function(O){return typeof O===n?O.replace(/[^\d\.]/g,v).split(".")[0]:r},xe=function(O,q){if(typeof O===n)return O=O.replace(/^\s\s*/,v),typeof q===o?O:O.substring(0,N)},be=function(O,q){for(var _=0,Z,ie,ue,ee,J,ge;_<q.length&&!J;){var Me=q[_],_e=q[_+1];for(Z=ie=0;Z<Me.length&&!J&&Me[Z];)if(J=Me[Z++].exec(O),J)for(ue=0;ue<_e.length;ue++)ge=J[++ie],ee=_e[ue],typeof ee===i&&ee.length>0?ee.length===2?typeof ee[1]==p?this[ee[0]]=ee[1].call(this,ge):this[ee[0]]=ee[1]:ee.length===3?typeof ee[1]===p&&!(ee[1].exec&&ee[1].test)?this[ee[0]]=ge?ee[1].call(this,ge,ee[2]):r:this[ee[0]]=ge?ge.replace(ee[1],ee[2]):r:ee.length===4&&(this[ee[0]]=ge?ee[3].call(this,ge.replace(ee[1],ee[2])):r):this[ee]=ge||r;_+=2}},se=function(O,q){for(var _ in q)if(typeof q[_]===i&&q[_].length>0){for(var Z=0;Z<q[_].length;Z++)if(he(q[_][Z],O))return _===m?r:_}else if(he(q[_],O))return _===m?r:_;return q.hasOwnProperty("*")?q["*"]:O},oe={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},X={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"},V={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[y,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[y,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,y],[/opios[\/ ]+([\w\.]+)/i],[y,[l,z+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[y,[l,z+" GX"]],[/\bopr\/([\w\.]+)/i],[y,[l,z]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[y,[l,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[y,[l,"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],[l,y],[/quark(?:pc)?\/([-\w\.]+)/i],[y,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[y,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[y,[l,"UC"+re]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[y,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[y,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[y,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[y,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[y,[l,"Smart Lenovo "+re]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+re],y],[/\bfocus\/([\w\.]+)/i],[y,[l,me+" Focus"]],[/\bopt\/([\w\.]+)/i],[y,[l,z+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[y,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[y,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[y,[l,z+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[y,[l,"MIUI"+le]],[/fxios\/([\w\.-]+)/i],[y,[l,me]],[/\bqihoobrowser\/?([\w\.]*)/i],[y,[l,"360"]],[/\b(qq)\/([\w\.]+)/i],[[l,/(.+)/,"$1Browser"],y],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1"+le],y],[/samsungbrowser\/([\w\.]+)/i],[y,[l,G+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[y,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],y],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[l,y],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[l],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[y,l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,F],y],[/(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],[l,y],[/\bgsa\/([\w\.]+) .*safari\//i],[y,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[y,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[y,[l,fe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,fe+" WebView"],y],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[y,[l,"Android "+re]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,y],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[y,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[y,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[y,se,oe]],[/(webkit|khtml)\/([\w\.]+)/i],[l,y],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],y],[/(wolvic|librewolf)\/([\w\.]+)/i],[l,y],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[y,[l,me+" 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],[l,[y,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[y,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,ve]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[h,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[h,"armhf"]],[/windows (ce|mobile); ppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[h,/ower/,v,ve]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[h,ve]]],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],[c,[d,G],[u,w]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[c,[d,G],[u,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[d,U],[u,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[d,U],[u,w]],[/(macintosh);/i],[c,[d,U]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[d,D],[u,g]],[/(?:honor)([-\w ]+)[;\)]/i],[c,[d,"Honor"],[u,g]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[d,te],[u,w]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[d,te],[u,g]],[/\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],[[c,/_/g," "],[d,P],[u,g]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[d,P],[u,w]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[d,"OPPO"],[u,g]],[/\b(opd2\d{3}a?) bui/i],[c,[d,"OPPO"],[u,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[d,"Vivo"],[u,g]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[d,"Realme"],[u,g]],[/\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],[c,[d,H],[u,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[d,H],[u,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[d,I],[u,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[d,I],[u,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[d,"Lenovo"],[u,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[d,"Nokia"],[u,g]],[/(pixel c)\b/i],[c,[d,ye],[u,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[d,ye],[u,g]],[/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],[c,[d,E],[u,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[d,E],[u,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[d,"OnePlus"],[u,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[d,k],[u,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[d,k],[u,g]],[/(playbook);[-\w\),; ]+(rim)/i],[c,d,[u,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[d,Y],[u,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[d,W],[u,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[d,W],[u,g]],[/(nexus 9)/i],[c,[d,"HTC"],[u,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[c,/_/g," "],[u,g]],[/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],[c,[d,"TCL"],[u,w]],[/(itel) ((\w+))/i],[[d,ve],c,[u,se,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[d,"Acer"],[u,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[d,"Meizu"],[u,g]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[d,"Ulefone"],[u,g]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[c,[d,"Energizer"],[u,g]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[c,[d,"Cat"],[u,g]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[c,[d,"Smartfren"],[u,g]],[/droid.+; (a(?:015|06[35]|142p?))/i],[c,[d,"Nothing"],[u,g]],[/(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],[d,c,[u,g]],[/(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],[d,c,[u,w]],[/(surface duo)/i],[c,[d,L],[u,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[d,"Fairphone"],[u,g]],[/(u304aa)/i],[c,[d,"AT&T"],[u,g]],[/\bsie-(\w*)/i],[c,[d,"Siemens"],[u,g]],[/\b(rct\w+) b/i],[c,[d,"RCA"],[u,w]],[/\b(venue[\d ]{2,7}) b/i],[c,[d,"Dell"],[u,w]],[/\b(q(?:mv|ta)\w+) b/i],[c,[d,"Verizon"],[u,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[d,"Barnes & Noble"],[u,w]],[/\b(tm\d{3}\w+) b/i],[c,[d,"NuVision"],[u,w]],[/\b(k88) b/i],[c,[d,"ZTE"],[u,w]],[/\b(nx\d{3}j) b/i],[c,[d,"ZTE"],[u,g]],[/\b(gen\d{3}) b.+49h/i],[c,[d,"Swiss"],[u,g]],[/\b(zur\d{3}) b/i],[c,[d,"Swiss"],[u,w]],[/\b((zeki)?tb.*\b) b/i],[c,[d,"Zeki"],[u,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],c,[u,w]],[/\b(ns-?\w{0,9}) b/i],[c,[d,"Insignia"],[u,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[d,"NextBook"],[u,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],c,[u,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],c,[u,g]],[/\b(ph-1) /i],[c,[d,"Essential"],[u,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[d,"Envizen"],[u,w]],[/\b(trio[-\w\. ]+) b/i],[c,[d,"MachSpeed"],[u,w]],[/\btu_(1491) b/i],[c,[d,"Rotor"],[u,w]],[/(shield[\w ]+) b/i],[c,[d,"Nvidia"],[u,w]],[/(sprint) (\w+)/i],[d,c,[u,g]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[d,L],[u,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[d,B],[u,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[d,B],[u,g]],[/smart-tv.+(samsung)/i],[d,[u,T]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[d,G],[u,T]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,I],[u,T]],[/(apple) ?tv/i],[d,[c,U+" TV"],[u,T]],[/crkey/i],[[c,fe+"cast"],[d,ye],[u,T]],[/droid.+aft(\w+)( bui|\))/i],[c,[d,k],[u,T]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[d,D],[u,T]],[/(bravia[\w ]+)( bui|\))/i],[c,[d,E],[u,T]],[/(mitv-\w{5}) bui/i],[c,[d,P],[u,T]],[/Hbbtv.*(technisat) (.*);/i],[d,c,[u,T]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,xe],[c,xe],[u,T]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,T]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,c,[u,f]],[/droid.+; (shield) bui/i],[c,[d,"Nvidia"],[u,f]],[/(playstation [345portablevi]+)/i],[c,[d,E],[u,f]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[d,L],[u,f]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[c,[d,G],[u,A]],[/((pebble))app/i],[d,c,[u,A]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[d,U],[u,A]],[/droid.+; (glass) \d/i],[c,[d,ye],[u,A]],[/droid.+; (wt63?0{2,3})\)/i],[c,[d,B],[u,A]],[/droid.+; (glass) \d/i],[c,[d,ye],[u,A]],[/(pico) (4|neo3(?: link|pro)?)/i],[d,c,[u,A]],[/; (quest( \d| pro)?)/i],[c,[d,F],[u,A]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[u,R]],[/(aeobc)\b/i],[c,[d,k],[u,R]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[c,[u,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[u,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,g]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[y,[l,ne+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[l,y],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[y,[l,"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],[l,y],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[y,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,y],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[l,[y,se,X]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[y,se,X],[l,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[y,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,Q],[y,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[y,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,y],[/\(bb(10);/i],[y,[l,Y]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[y,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[y,[l,me+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[y,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[y,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[y,[l,fe+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,$],y],[/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],[l,y],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],y],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,y]]},K=function(O,q){if(typeof O===i&&(q=O,O=r),!(this instanceof K))return new K(O,q).getResult();var _=typeof s!==o&&s.navigator?s.navigator:r,Z=O||(_&&_.userAgent?_.userAgent:v),ie=_&&_.userAgentData?_.userAgentData:r,ue=q?de(V,q):V,ee=_&&_.userAgent==Z;return this.getBrowser=function(){var J={};return J[l]=r,J[y]=r,be.call(J,Z,ue.browser),J[S]=Ce(J[y]),ee&&_&&_.brave&&typeof _.brave.isBrave==p&&(J[l]="Brave"),J},this.getCPU=function(){var J={};return J[h]=r,be.call(J,Z,ue.cpu),J},this.getDevice=function(){var J={};return J[d]=r,J[c]=r,J[u]=r,be.call(J,Z,ue.device),ee&&!J[u]&&ie&&ie.mobile&&(J[u]=g),ee&&J[c]=="Macintosh"&&_&&typeof _.standalone!==o&&_.maxTouchPoints&&_.maxTouchPoints>2&&(J[c]="iPad",J[u]=w),J},this.getEngine=function(){var J={};return J[l]=r,J[y]=r,be.call(J,Z,ue.engine),J},this.getOS=function(){var J={};return J[l]=r,J[y]=r,be.call(J,Z,ue.os),ee&&!J[l]&&ie&&ie.platform&&ie.platform!="Unknown"&&(J[l]=ie.platform.replace(/chrome os/i,$).replace(/macos/i,Q)),J},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 Z},this.setUA=function(J){return Z=typeof J===n&&J.length>N?xe(J,N):J,this},this.setUA(Z),this};K.VERSION=x,K.BROWSER=pe([l,y,S]),K.CPU=pe([h]),K.DEVICE=pe([c,d,u,f,g,T,w,A,R]),K.ENGINE=K.OS=pe([l,y]),e.exports&&(a=e.exports=K),a.UAParser=K;var C=typeof s!==o&&(s.jQuery||s.Zepto);if(C&&!C.ua){var j=new K;C.ua=j.getResult(),C.ua.get=function(){return j.getUA()},C.ua.set=function(O){j.setUA(O);var q=j.getResult();for(var _ in q)C.ua[_]=q[_]}}})(typeof window=="object"?window:ea)}(ht,ht.exports)),ht.exports}var ra=ta();const Zt=Gn(ra);function na({user:e,sessionUser:a}){const s=Ve(()=>(e?.passports||[])?.find(r=>r.name===a.role),[e?.passports,a?.role]);return t.jsxs(ae,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.jsx(Zn,{size:40,variant:"circle",shape:"circle",src:a.avatar,did:a.did,sx:{flexShrink:0}}),t.jsxs(ae,{sx:{flex:1,overflow:"hidden"},children:[t.jsxs(ae,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.jsx(ze,{title:a.fullName,children:t.jsx(we,{sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1},children:a.fullName})}),t.jsx(so,{label:s?.title||s?.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"}})]}),t.jsx(ze,{title:a.email,children:t.jsx(we,{variant:"body2",color:"grey",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:a.email})})]})]})}const ia={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"}},Di="Reserved IP",dn="ip-region-cache";async function oa(e){const a=`https://ipapi.co/${e}/json/`,s=await(await fetch(a)).json();let r="";return s.error?s.reserved&&(r=Di):r=[s.country_name,s.region,s.city].filter(Boolean).join("/"),r}async function sa(e){const a=`https://api.ip.sb/geoip/${e}`,s=await(await fetch(a)).json();let r="";return s.error?s.reserved&&(r=Di):r=[s.country,s.region,s.city].filter(Boolean).join("/"),r}async function aa(e){let a="",s={};try{const r=localStorage.getItem(dn);r&&(s=JSON.parse(r))}catch{s={}}if(s[e])a=s[e];else{try{a=await sa(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!a)try{a=await oa(e)}catch{console.warn("Fail to get ip region from ip-api.co")}}if(a){const r=Object.keys(s);r.length>100&&delete s[r[0]],s[e]&&delete s[e],s[e]=a,localStorage.setItem(dn,JSON.stringify(s))}return a}const fn=e=>new Zt(e,{browser:[[/(ArcWallet)\/([\w\.]+)/i],[Zt.BROWSER.NAME,Zt.BROWSER.VERSION]]}).getResult(),pn={display:"flex",justifyContent:"flex-end",textAlign:"right"},la=new uo({concurrency:1}),ca=M.memo(({userSession:e,isMobile:a=!1})=>{const s=Qe({loading:!0,ipRegion:""}),{t:r}=je();return M.useEffect(()=>{la.add(async()=>{try{s.ipRegion=await aa(e.lastLoginIp)}finally{s.loading=!1}})},[s,e.lastLoginIp]),t.jsx(ae,{...a&&{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:1,flexWrap:"wrap"},children:s.ipRegion?t.jsxs(t.Fragment,{children:[t.jsx(we,{variant:"body2",children:s.ipRegion}),t.jsx(we,{variant:"body2",color:"grey",children:e.lastLoginIp||r("unknown")})]}):t.jsxs(t.Fragment,{children:[t.jsx(we,{children:e.lastLoginIp||r("unknown")}),s.loading?t.jsx(we,{variant:"body2",color:"grey",sx:{textAlign:"center"},children:t.jsx(Xe,{size:12,color:"inherit"})}):null]})})});function ua({user:e,showAction:a=!0,showUser:s=!0,getUserSessions:r,showOffline:x=!1}){const v=Qe({status:"online",page:1,pageSize:10}),m=Qe({online:0,expired:0,offline:0}),p=ao(),{locale:o}=je(),i=is({key:"md"}),n=Qn(N=>N.breakpoints.down("lg")),{confirmApi:S,confirmHolder:c}=_r(),l=He((N,k={})=>lo(ia,N,o,"en",k)),u=He(async()=>{const N=await r({page:v.page,pageSize:v.pageSize,status:v.status}),k=N?.paging?.total||0;return m[v.status]=k,{total:k,list:N?.list||[]}});Xn(async()=>{const N=await r({page:1,pageSize:1,status:"expired"});m.expired=N?.paging?.total||0;const k=await r({page:1,pageSize:1,status:"offline"});m.offline=k?.paging?.total||0});const d=co(u,{refreshDeps:[v.status,v.page,v.pageSize]}),y=Ve(()=>d.data?.list||[],[d.data?.list]),h=Ve(()=>{const N=v.status;return N==="online"?m[N]<=1:m[N]===0},[y,p]),f=Ve(()=>Yr({},i?pn:{}),[i]),g=He(({visitorId:N})=>{S.open({title:l("logoutThisSession"),content:l("logoutThisSessionConfirm"),confirmButtonText:l("confirm"),confirmButtonProps:{color:"error"},cancelButtonText:l("cancel"),onConfirm:async()=>{await Zr.user.logout({visitorId:N,includeFederated:!0});const{page:k=0}=v,{list:U=[]}=d.data||{},W=U.length||0;k>1&&W===1&&(v.page=Math.max(k-1,1)),d.refresh(),S.close()}})}),w=He(()=>{S.open({title:l("logoutAllSession",{type:l(v.status)}),content:l("logoutAllSessionConfirm",{type:l(v.status)}),confirmButtonText:l("confirm"),confirmButtonProps:{color:"error"},cancelButtonText:l("cancel"),onConfirm:async()=>{await Zr.user.logout({status:v.status,visitorId:p,includeFederated:!0}),v.page=1,d.refresh(),S.close()}})}),T=[];a&&T.push(t.jsx(ze,{title:l("logoutAllTips",{type:l(v.status)}),children:t.jsx(yt,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:w,disabled:h,children:l("logoutAll",{type:l(v.status)})})},"logoutAll"));const A=Ve(()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600,page:v.page-1,rowsPerPage:v.pageSize,count:d.data?.total||0}),[d.data?.total,v.page,v.pageSize]),R=[{label:l("platform"),name:"platform",options:{customBodyRenderLite:N=>{const k=y[N],U=fn(k?.ua);return t.jsx(ae,{sx:f,children:[U.os?.name,U.os?.version].filter(Boolean).join("/")||l("unknown")})}}},{label:l("deviceType"),name:"deviceType",options:{customBodyRenderLite:N=>{const k=y[N],U=fn(k?.ua);return t.jsx(ae,{sx:f,children:[U.browser?.name,U.browser?.version].filter(Boolean).join("/")||l("unknown")})}}},{label:l("walletOS"),name:"walletOS",options:{customBodyRenderLite:N=>{const k=y[N];return t.jsx(ae,{sx:f,children:k.extra?.walletOS||l("unknown")})}}},s&&{label:l("user"),name:"user",options:{customBodyRenderLite:N=>{const k=y[N];return t.jsx(ae,{sx:Yr({minWidth:150,maxWidth:250},i?pn:{}),children:t.jsx(na,{sessionUser:k.user,user:e})})}}},{label:l("createdAt"),name:"createdAt",options:{customBodyRenderLite:N=>{const k=y[N];return t.jsx(ae,{sx:f,children:k.createdAt?t.jsx(vt,{value:k.createdAt,relativeRange:3*86400*1e3,locale:o}):l("unknown")})}}},!x&&{label:l("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:N=>{const k=y[N];return t.jsx(ae,{sx:f,children:k.status==="expired"?l("expired"):t.jsx(vt,{value:k.updatedAt,relativeRange:3*86400*1e3,locale:o})})}}},{label:l("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:N=>{const k=y[N];return t.jsx(ca,{userSession:k,isMobile:i})}}},a&&{label:l("actions"),name:"actions",options:{customBodyRenderLite:N=>{const k=y[N];return t.jsx(ae,{sx:f,children:t.jsx(yt,{sx:{whiteSpace:"nowrap",fontSize:"12px !important",lineHeight:"1.25",px:1},disabled:p===k.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>g({visitorId:k.visitorId}),children:k.status==="expired"?l("remove"):p===k.visitorId?l("currentSession"):l("logout")})})}}}].filter(Boolean);return t.jsxs(ae,{className:"pc-user-sessions",sx:{maxWidth:i?"unset":n?"calc(100vw - 300px)":"100%",...i&&{".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:N=>`${N.palette.grey[50]} !important`}}},".MuiTableRow-hover":{"&:hover":{backgroundColor:"inherit !important"}},".MuiTableCell-root":{paddingRight:"8px",paddingLeft:"8px",color:"text.secondary",...i&&{padding:"8px !important","&:first-child":{paddingTop:"20px!important"},"&:last-child":{paddingBottom:"20px!important"}}}},children:[c,t.jsx(Fr,{count:d.data?.total||0,locale:o,data:y,columns:R,customButtons:T,options:A,loading:d.loading,className:"pc-user-sessions-table",title:t.jsxs(fi,{row:!0,sx:{lineHeight:1,ml:1},onChange:N=>{v.status=N.target.value},children:[t.jsx(gt,{value:"online",control:t.jsx(kt,{size:"small",sx:{lineHeight:1,fontSize:0},checked:v.status==="online"}),label:t.jsxs(we,{sx:{display:"flex",alignItems:"center"},children:[l("online"),t.jsxs(we,{component:"span",sx:{ml:.5,color:"text.secondary"},children:["(",m.online,")"]})]})}),t.jsx(gt,{value:"expired",control:t.jsx(kt,{size:"small",sx:{lineHeight:1,fontSize:0},checked:v.status==="expired"}),label:t.jsxs(we,{sx:{display:"flex",alignItems:"center"},children:[l("expired"),t.jsxs(we,{component:"span",sx:{ml:.5,color:"text.secondary"},children:["(",m.expired,")"]})]})}),x?t.jsx(gt,{value:"offline",control:t.jsx(kt,{size:"small",sx:{lineHeight:1,fontSize:0},checked:v.status==="offline"}),label:t.jsxs(we,{sx:{display:"flex",alignItems:"center"},children:[l("offline"),t.jsxs(we,{component:"span",sx:{ml:.5,color:"text.secondary"},children:["(",m.offline,")"]})]})}):null]}),onChange:N=>{v.page=N.page+1,v.pageSize=N.rowsPerPage}})]})}var Qt={exports:{}},Xt={},mn;function ki(){if(mn)return Xt;mn=1;function e(f){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},e(f)}function a(f,g,w){return Object.defineProperty(f,"prototype",{writable:!1}),f}function s(f,g){if(!(f instanceof g))throw new TypeError("Cannot call a class as a function")}function r(f,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(g&&g.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),g&&x(f,g)}function x(f,g){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,A){return T.__proto__=A,T},x(f,g)}function v(f){var g=o();return function(){var T=i(f),A;if(g){var R=i(this).constructor;A=Reflect.construct(T,arguments,R)}else A=T.apply(this,arguments);return m(this,A)}}function m(f,g){if(g&&(e(g)==="object"||typeof g=="function"))return g;if(g!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p(f)}function p(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function o(){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 i(f){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(w){return w.__proto__||Object.getPrototypeOf(w)},i(f)}var n={},S,c;function l(f,g,w){w||(w=Error);function T(R,N,k){return typeof g=="string"?g:g(R,N,k)}var A=function(R){r(k,R);var N=v(k);function k(U,W,Y){var re;return s(this,k),re=N.call(this,T(U,W,Y)),re.code=f,re}return a(k)}(w);n[f]=A}function u(f,g){if(Array.isArray(f)){var w=f.length;return f=f.map(function(T){return String(T)}),w>2?"one of ".concat(g," ").concat(f.slice(0,w-1).join(", "),", or ")+f[w-1]:w===2?"one of ".concat(g," ").concat(f[0]," or ").concat(f[1]):"of ".concat(g," ").concat(f[0])}else return"of ".concat(g," ").concat(String(f))}function d(f,g,w){return f.substr(0,g.length)===g}function y(f,g,w){return(w===void 0||w>f.length)&&(w=f.length),f.substring(w-g.length,w)===g}function h(f,g,w){return typeof w!="number"&&(w=0),w+g.length>f.length?!1:f.indexOf(g,w)!==-1}return l("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),l("ERR_INVALID_ARG_TYPE",function(f,g,w){S===void 0&&(S=Rr()),S(typeof f=="string","'name' must be a string");var T;typeof g=="string"&&d(g,"not ")?(T="must not be",g=g.replace(/^not /,"")):T="must be";var A;if(y(f," argument"))A="The ".concat(f," ").concat(T," ").concat(u(g,"type"));else{var R=h(f,".")?"property":"argument";A='The "'.concat(f,'" ').concat(R," ").concat(T," ").concat(u(g,"type"))}return A+=". Received type ".concat(e(w)),A},TypeError),l("ERR_INVALID_ARG_VALUE",function(f,g){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";c===void 0&&(c=wt());var T=c.inspect(g);return T.length>128&&(T="".concat(T.slice(0,128),"...")),"The argument '".concat(f,"' ").concat(w,". Received ").concat(T)},TypeError),l("ERR_INVALID_RETURN_VALUE",function(f,g,w){var T;return w&&w.constructor&&w.constructor.name?T="instance of ".concat(w.constructor.name):T="type ".concat(e(w)),"Expected ".concat(f,' to be returned from the "').concat(g,'"')+" function but got ".concat(T,".")},TypeError),l("ERR_MISSING_ARGS",function(){for(var f=arguments.length,g=new Array(f),w=0;w<f;w++)g[w]=arguments[w];S===void 0&&(S=Rr()),S(g.length>0,"At least one arg needs to be specified");var T="The ",A=g.length;switch(g=g.map(function(R){return'"'.concat(R,'"')}),A){case 1:T+="".concat(g[0]," argument");break;case 2:T+="".concat(g[0]," and ").concat(g[1]," arguments");break;default:T+=g.slice(0,A-1).join(", "),T+=", and ".concat(g[A-1]," arguments");break}return"".concat(T," must be specified")},TypeError),Xt.codes=n,Xt}var Jt,hn;function da(){if(hn)return Jt;hn=1;function e(I,L){var H=Object.keys(I);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(I);L&&(z=z.filter(function(G){return Object.getOwnPropertyDescriptor(I,G).enumerable})),H.push.apply(H,z)}return H}function a(I){for(var L=1;L<arguments.length;L++){var H=arguments[L]!=null?arguments[L]:{};L%2?e(Object(H),!0).forEach(function(z){s(I,z,H[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(H)):e(Object(H)).forEach(function(z){Object.defineProperty(I,z,Object.getOwnPropertyDescriptor(H,z))})}return I}function s(I,L,H){return L=m(L),L in I?Object.defineProperty(I,L,{value:H,enumerable:!0,configurable:!0,writable:!0}):I[L]=H,I}function r(I,L){if(!(I instanceof L))throw new TypeError("Cannot call a class as a function")}function x(I,L){for(var H=0;H<L.length;H++){var z=L[H];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(I,m(z.key),z)}}function v(I,L,H){return L&&x(I.prototype,L),Object.defineProperty(I,"prototype",{writable:!1}),I}function m(I){var L=p(I,"string");return f(L)==="symbol"?L:String(L)}function p(I,L){if(f(I)!=="object"||I===null)return I;var H=I[Symbol.toPrimitive];if(H!==void 0){var z=H.call(I,L);if(f(z)!=="object")return z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(I)}function o(I,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(L&&L.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),Object.defineProperty(I,"prototype",{writable:!1}),L&&y(I,L)}function i(I){var L=u();return function(){var z=h(I),G;if(L){var D=h(this).constructor;G=Reflect.construct(z,arguments,D)}else G=z.apply(this,arguments);return n(this,G)}}function n(I,L){if(L&&(f(L)==="object"||typeof L=="function"))return L;if(L!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(I)}function S(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function c(I){var L=typeof Map=="function"?new Map:void 0;return c=function(z){if(z===null||!d(z))return z;if(typeof z!="function")throw new TypeError("Super expression must either be null or a function");if(typeof L<"u"){if(L.has(z))return L.get(z);L.set(z,G)}function G(){return l(z,arguments,h(this).constructor)}return G.prototype=Object.create(z.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}}),y(G,z)},c(I)}function l(I,L,H){return u()?l=Reflect.construct.bind():l=function(G,D,E){var P=[null];P.push.apply(P,D);var B=Function.bind.apply(G,P),F=new B;return E&&y(F,E.prototype),F},l.apply(null,arguments)}function u(){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 d(I){return Function.toString.call(I).indexOf("[native code]")!==-1}function y(I,L){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(z,G){return z.__proto__=G,z},y(I,L)}function h(I){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(H){return H.__proto__||Object.getPrototypeOf(H)},h(I)}function f(I){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(L){return typeof L}:function(L){return L&&typeof Symbol=="function"&&L.constructor===Symbol&&L!==Symbol.prototype?"symbol":typeof L},f(I)}var g=wt(),w=g.inspect,T=ki(),A=T.codes.ERR_INVALID_ARG_TYPE;function R(I,L,H){return(H===void 0||H>I.length)&&(H=I.length),I.substring(H-L.length,H)===L}function N(I,L){if(L=Math.floor(L),I.length==0||L==0)return"";var H=I.length*L;for(L=Math.floor(Math.log(L)/Math.log(2));L;)I+=I,L--;return I+=I.substring(0,H-I.length),I}var k="",U="",W="",Y="",re={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:"},fe=10;function ne(I){var L=Object.keys(I),H=Object.create(Object.getPrototypeOf(I));return L.forEach(function(z){H[z]=I[z]}),Object.defineProperty(H,"message",{value:I.message}),H}function me(I){return w(I,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function ye(I,L,H){var z="",G="",D=0,E="",P=!1,B=me(I),F=B.split(`
|
|
2
2
|
`),$=me(L).split(`
|
|
3
3
|
`),Q=0,le="";if(H==="strictEqual"&&f(I)==="object"&&f(L)==="object"&&I!==null&&L!==null&&(H="strictEqualObject"),F.length===1&&$.length===1&&F[0]!==$[0]){var de=F[0].length+$[0].length;if(de<=fe){if((f(I)!=="object"||I===null)&&(f(L)!=="object"||L===null)&&(I!==0||L!==0))return"".concat(re[H],`
|
|
4
4
|
|