@abtnode/webapp 1.16.46 → 1.16.47-beta-20250710-073736-01b9c1bc

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.
Files changed (185) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{AdapterDayjs-B4EEI1nK.js → AdapterDayjs-B8AEZ3l4.js} +1 -1
  4. package/dist/assets/{Add-Clw8RkKN.js → Add-DyeL4-IK.js} +1 -1
  5. package/dist/assets/ArrowDropDown-QRrV-SM6.js +1 -0
  6. package/dist/assets/{Autocomplete-gxYza7s5.js → Autocomplete-B_fjNjcC.js} +1 -1
  7. package/dist/assets/{Breadcrumbs-C4BEBPis.js → Breadcrumbs-mIV7Y6jS.js} +1 -1
  8. package/dist/assets/{ButtonGroup-CPPdPq8H.js → ButtonGroup-gQqTXUWb.js} +1 -1
  9. package/dist/assets/{CSSTransition-CujxmWeH.js → CSSTransition-Cwsw3O0v.js} +1 -1
  10. package/dist/assets/{CallMerge-CcRkZzxX.js → CallMerge-_wPMIobV.js} +1 -1
  11. package/dist/assets/{CardContent-DiPVtGg0.js → CardContent-DZxc1v9r.js} +1 -1
  12. package/dist/assets/{ChevronLeft-BNoaRf3a.js → ChevronLeft-GfW6gg_h.js} +1 -1
  13. package/dist/assets/{ChevronRight-A_-fTRIz.js → ChevronRight-B3AWRgjb.js} +1 -1
  14. package/dist/assets/{Clear-ClQc69CC.js → Clear-TURgqjBD.js} +1 -1
  15. package/dist/assets/{DeleteOutline-BhORbRJB.js → DeleteOutline-BIpkPzjr.js} +1 -1
  16. package/dist/assets/{Done-De6rOS7P.js → Done-BI8Oqec5.js} +1 -1
  17. package/dist/assets/{Edit-CvUxpqSV.js → Edit-BBaBN2Wx.js} +1 -1
  18. package/dist/assets/{ErrorOutline-QvbHz9Zz.js → ErrorOutline-CGBCMbTc.js} +1 -1
  19. package/dist/assets/{FilterList-DrVbs05B.js → FilterList-CAcGuUFu.js} +1 -1
  20. package/dist/assets/{Google-BiT-YaK5.js → Google-VPfEXNga.js} +1 -1
  21. package/dist/assets/{HelpOutline-D_WMmdX2.js → HelpOutline-2t-W2bUr.js} +1 -1
  22. package/dist/assets/{Launch-p44wWut-.js → Launch-Cb9G2ztN.js} +1 -1
  23. package/dist/assets/{Link-BLZtgQVF.js → Link-DcMufYsw.js} +1 -1
  24. package/dist/assets/{ListItemButton-BCmmmtlq.js → ListItemButton-AVCY9rM6.js} +1 -1
  25. package/dist/assets/{ListSubheader-D4-WSAvX.js → ListSubheader-Y2ncSEte.js} +1 -1
  26. package/dist/assets/{LoadingButton-DYH4mgxh.js → LoadingButton-52ZmFaE1.js} +1 -1
  27. package/dist/assets/{MoreVert-3Ril4BaF.js → MoreVert-DrYkNse4.js} +1 -1
  28. package/dist/assets/{OpenInNew-Dg_PVVYU.js → OpenInNew-ChbbxgvU.js} +1 -1
  29. package/dist/assets/{Refresh-BuspPECP.js → Refresh-vx7O7y4X.js} +1 -1
  30. package/dist/assets/{Search-CveVLYRK.js → Search-DkAocH6B.js} +1 -1
  31. package/dist/assets/{Slider-CESm5SzK.js → Slider-Da_17JQt.js} +1 -1
  32. package/dist/assets/{Stepper-CazqSP6B.js → Stepper-D3djW5EG.js} +1 -1
  33. package/dist/assets/{Switch-Ce-0Lc8M.js → Switch-CnG_p51w.js} +1 -1
  34. package/dist/assets/{TableSearch-BezFlhKc.js → TableSearch-CcKxCotp.js} +1 -1
  35. package/dist/assets/{ToggleButtonGroup-CBj3NmRn.js → ToggleButtonGroup-B6TeC2WF.js} +1 -1
  36. package/dist/assets/{Verified-aOhYddnX.js → Verified-BdjRVajU.js} +1 -1
  37. package/dist/assets/{VerifiedUser-BWVM02FY.js → VerifiedUser-DW1wXQJo.js} +1 -1
  38. package/dist/assets/{ViewList-5nfbahYZ.js → ViewList-19cDup6i.js} +1 -1
  39. package/dist/assets/{_createAggregator-Bw2sNslm.js → _createAggregator-BMD9-JvY.js} +1 -1
  40. package/dist/assets/{actions-DUHD3OYP.js → actions-dM1fFrJf.js} +1 -1
  41. package/dist/assets/{actions-BFpxkOZ3.js → actions-pcPb_nyk.js} +1 -1
  42. package/dist/assets/{agreement-B1qJWzXq.js → agreement-3xBCMj9y.js} +1 -1
  43. package/dist/assets/api-BMl09Q0w.js +1 -0
  44. package/dist/assets/{appearance-BYuAhb11.js → appearance-mGPlk6SZ.js} +1 -1
  45. package/dist/assets/{audit-logs-CrbGepG6.js → audit-logs-CeGg2JLb.js} +1 -1
  46. package/dist/assets/{base-chart-C8SmgApV.js → base-chart-BF6eAaCN.js} +1 -1
  47. package/dist/assets/{blocklet-DXJr-xZq.js → blocklet-C7W1PCuU.js} +1 -1
  48. package/dist/assets/{chain-DZSCXq3Z.js → chain-tijIKSX3.js} +1 -1
  49. package/dist/assets/{click-to-copy-CTJTNpA1.js → click-to-copy-DO0vuZcs.js} +1 -1
  50. package/dist/assets/client-CchI0TAL.js +1 -0
  51. package/dist/assets/cloneDeep-CsZdKnsl.js +1 -0
  52. package/dist/assets/{collapse-CYNTI7Qd.js → collapse-DP5fcjjp.js} +1 -1
  53. package/dist/assets/{config-navigation-B2RlmMVN.js → config-navigation-B788AN8W.js} +3 -3
  54. package/dist/assets/{connect-to-CmnXJqsQ.js → connect-to-Ot5rJo4-.js} +1 -1
  55. package/dist/assets/{cssMode-DZxnsnyP.js → cssMode-CYkNuyBG.js} +1 -1
  56. package/dist/assets/{delete-confirm-itV6yjjb.js → delete-confirm-PlNf3ZY8.js} +1 -1
  57. package/dist/assets/{depsEqual-B5cFAumu.js → depsEqual-DTCuMri4.js} +1 -1
  58. package/dist/assets/{detail-nzbwZA_l.js → detail-VYVYEsd7.js} +3 -3
  59. package/dist/assets/{domains-DEBNKwmg.js → domains-DqEQeXv2.js} +1 -1
  60. package/dist/assets/{download-hD5L8LfI.js → download-CdhYUH8K.js} +1 -1
  61. package/dist/assets/emotion-cache.browser.esm-lCkFhcap.js +1 -0
  62. package/dist/assets/engine-1UwJZH7E.js +1 -0
  63. package/dist/assets/{freemarker2-B8K0tUnT.js → freemarker2-4v6jPdR9.js} +1 -1
  64. package/dist/assets/{get-safe-url-CkVD5JZ8.js → get-safe-url-DQLWIOcC.js} +1 -1
  65. package/dist/assets/getValidReactChildren-CCHlzmWC.js +1 -0
  66. package/dist/assets/{graphqlMode-qoJCyPf8.js → graphqlMode-vAk3UAoz.js} +2 -2
  67. package/dist/assets/{handlebars-DSYs6ELw.js → handlebars-DNYWpg3P.js} +1 -1
  68. package/dist/assets/{html-BQrix1LQ.js → html-CeoZB4uy.js} +1 -1
  69. package/dist/assets/{htmlMode-CvDerMSw.js → htmlMode-Wlt7zMIN.js} +1 -1
  70. package/dist/assets/{iframe-d_LXZhpi.js → iframe-cPjusDrL.js} +1 -1
  71. package/dist/assets/{index-Ci5mHjJo.js → index-7bdhHiFd.js} +1 -1
  72. package/dist/assets/{index-CkVoL_FA.js → index-B0gFqLsw.js} +1 -1
  73. package/dist/assets/{index-51UuxJbA.js → index-B4EnYouc.js} +1 -1
  74. package/dist/assets/{index-HQ4TKOad.js → index-B77hR8tk.js} +1 -1
  75. package/dist/assets/{index-CXW6fl1B.js → index-B8KJR-kx.js} +3 -3
  76. package/dist/assets/{index-BQ9Ts5av.js → index-BMjpfJjp.js} +1 -1
  77. package/dist/assets/{index-_ISHsU4A.js → index-BOa0y9pw.js} +1 -1
  78. package/dist/assets/{index--ktJL2Tx.js → index-BSnpJGoE.js} +3 -3
  79. package/dist/assets/{index-Ur2CzPm7.js → index-BT8ElUR8.js} +1 -1
  80. package/dist/assets/{index-CZH7Mn5H.js → index-Bn_tCgMM.js} +1 -1
  81. package/dist/assets/{index-DgeSWvC7.js → index-BopL1gny.js} +1 -1
  82. package/dist/assets/{index-B73hHdUc.js → index-C3Q09qgh.js} +1 -1
  83. package/dist/assets/{index-C4ni3qSD.js → index-CEerh854.js} +1 -1
  84. package/dist/assets/{index-Dp5rYjgm.js → index-CL-lqorQ.js} +1 -1
  85. package/dist/assets/{index-DTRD5V4Z.js → index-CLzlZAUr.js} +1 -1
  86. package/dist/assets/{index-CbZ9lYQN.js → index-CW3YXBwi.js} +1 -1
  87. package/dist/assets/{index-BMN0G3TX.js → index-CWJxufpA.js} +1 -1
  88. package/dist/assets/index-Ca_LO4tk.js +1 -0
  89. package/dist/assets/{index-CjyGkLY6.js → index-CaacW8ab.js} +1 -1
  90. package/dist/assets/{index-BQhkQ0WB.js → index-CcYCgG1Z.js} +1 -1
  91. package/dist/assets/{index-CgR_UwLm.js → index-ClxTVhfK.js} +1 -1
  92. package/dist/assets/{index-BJFK1iYB.js → index-CtqzIHrc.js} +1 -1
  93. package/dist/assets/{index-FTSHH2z1.js → index-D4cctk8L.js} +1 -1
  94. package/dist/assets/{index-Crckurao.js → index-D9724EWR.js} +1 -1
  95. package/dist/assets/{index-MAh0KZHB.js → index-DAE9de69.js} +1 -1
  96. package/dist/assets/{index-CGnZOo7d.js → index-DCks6vHm.js} +1 -1
  97. package/dist/assets/{index-MeuqPgEE.js → index-DDPnmngo.js} +3 -3
  98. package/dist/assets/{index-B9t-nPIq.js → index-DF5RUkIE.js} +9 -9
  99. package/dist/assets/{index-vh4u80PB.js → index-DLek0c1M.js} +1 -1
  100. package/dist/assets/{index-D8SeMuuf.js → index-DSNc2KaD.js} +1 -1
  101. package/dist/assets/{index-CEX6125H.js → index-Dea_aYC4.js} +1 -1
  102. package/dist/assets/{index-BbU3n2Hk.js → index-DhnJyZwE.js} +1 -1
  103. package/dist/assets/{index-BJrvhEw-.js → index-DkCZntCT.js} +1 -1
  104. package/dist/assets/{index-5o6sB1f4.js → index-Ds9W4oy6.js} +1 -1
  105. package/dist/assets/{index-DFZwyC09.js → index-FX5iYsIB.js} +3 -3
  106. package/dist/assets/{index-f15iWus7.js → index-GY5yIEI_.js} +1 -1
  107. package/dist/assets/{index-iLrPvwdH.js → index-LaWosXhV.js} +1 -1
  108. package/dist/assets/{index-Dv5txe8G.js → index-LkgRhqPx.js} +1 -1
  109. package/dist/assets/{index-DodEGet5.js → index-PhxXoWyN.js} +2 -2
  110. package/dist/assets/{index-a0VOLesk.js → index-SE-GYB_5.js} +1 -1
  111. package/dist/assets/{index-Clb2HKeU.js → index-Tlo-w0hj.js} +1 -1
  112. package/dist/assets/{index-DYPal8XU.js → index-W9Gf1H9j.js} +1 -1
  113. package/dist/assets/{index-BKrngGDQ.js → index-WqL2nOOx.js} +1 -1
  114. package/dist/assets/{index-DRXdQRdu.js → index-aIFNWMe4.js} +1 -1
  115. package/dist/assets/{index-VibrsnfQ.js → index-g74PYCpk.js} +3 -3
  116. package/dist/assets/{index-CPtXYlM0.js → index-qnSWPvFZ.js} +1 -1
  117. package/dist/assets/{index-Dv9qlze4.js → index-zkZ28xVo.js} +1 -1
  118. package/dist/assets/{index.esm-Dqj7a_ya.js → index.esm-D_e-DGUA.js} +1 -1
  119. package/dist/assets/{install-from-url-B4rawAqf.js → install-from-url-BPDe_bKf.js} +1 -1
  120. package/dist/assets/{invitation-DyVYJveL.js → invitation-6hqyeU5m.js} +1 -1
  121. package/dist/assets/{is-path-prefix-equal-RJLchj2H.js → is-path-prefix-equal-C3txExEQ.js} +1 -1
  122. package/dist/assets/{item-DqvYl0Bz.js → item--P9-hN20.js} +1 -1
  123. package/dist/assets/{javascript-D_OdapPL.js → javascript-kIEugVVR.js} +1 -1
  124. package/dist/assets/{jsonMode-iE2OrXad.js → jsonMode-ONNR1nc9.js} +1 -1
  125. package/dist/assets/{liquid-egzKcszN.js → liquid-CMNUpoTf.js} +1 -1
  126. package/dist/assets/{list-header-s7KnhaJP.js → list-header-BUNKlhMR.js} +1 -1
  127. package/dist/assets/{log-BO9Yemek.js → log-dlwp3mLo.js} +1 -1
  128. package/dist/assets/{lottie-react.esm-D0Of1jq5.js → lottie-react.esm-BljEU_TC.js} +1 -1
  129. package/dist/assets/{mdx--E2h1g-2.js → mdx-DgUx7uoV.js} +1 -1
  130. package/dist/assets/{memory-FyikFhq4.js → memory-Chxl7x-V.js} +1 -1
  131. package/dist/assets/{metric-Bbm9krzb.js → metric-NP4oz2zf.js} +1 -1
  132. package/dist/assets/omit-C_8qTv_V.js +1 -0
  133. package/dist/assets/{overview-ZNI6zxFE.js → overview-CszsVFZE.js} +1 -1
  134. package/dist/assets/{permission-Bd240jHS.js → permission-H1evTnCb.js} +1 -1
  135. package/dist/assets/{preference-DHBc5A-p.js → preference-BfV_QTqs.js} +3 -3
  136. package/dist/assets/{python-giqpzHx_.js → python-CjGdR_GC.js} +1 -1
  137. package/dist/assets/{raf-schd.esm-QI9cu6Me.js → raf-schd.esm-HKMr2ACZ.js} +1 -1
  138. package/dist/assets/{razor-C_I2nnqk.js → razor-DsHellmc.js} +1 -1
  139. package/dist/assets/{rotate-session-key-WcsLllKv.js → rotate-session-key-DQ5udzPb.js} +1 -1
  140. package/dist/assets/{runtime-beCFfh_D.js → runtime-ZzV-XHTb.js} +1 -1
  141. package/dist/assets/schema-D5kZzngV.js +1 -0
  142. package/dist/assets/sdk-DyOTm4mE.js +1 -0
  143. package/dist/assets/{service-Boq6QtTB.js → service-7YmgYbKe.js} +1 -1
  144. package/dist/assets/{shorten-label-BsB05cbU.js → shorten-label-CFhfsEFi.js} +1 -1
  145. package/dist/assets/{simple-select-CwzHbqQD.js → simple-select-Dzvve8t_.js} +1 -1
  146. package/dist/assets/{spaces-CO7vXdm4.js → spaces-DWMGdRvw.js} +1 -1
  147. package/dist/assets/{status-g9gqtunL.js → status-Bn1Jy6BO.js} +1 -1
  148. package/dist/assets/{status-CqnKmWlH.js → status-DRq_orW0.js} +1 -1
  149. package/dist/assets/{switch-control-DwCkU90q.js → switch-control-BRUsn1QH.js} +1 -1
  150. package/dist/assets/{table-icons-vuWhvyxJ.js → table-icons-BZwhGgGx.js} +1 -1
  151. package/dist/assets/{team-BroofdgP.js → team-Bs7pamcj.js} +1 -1
  152. package/dist/assets/{toLower-Co1lWVoz.js → toLower-CwadW2WB.js} +1 -1
  153. package/dist/assets/toUpper--bb03ucw.js +1 -0
  154. package/dist/assets/{traffic-D-aoJfLs.js → traffic-Dt3pbHoj.js} +1 -1
  155. package/dist/assets/{tsMode-yvNR09fH.js → tsMode-BPt1tSa5.js} +1 -1
  156. package/dist/assets/{typescript-CMLS3uhm.js → typescript-CNxwEuoy.js} +1 -1
  157. package/dist/assets/{url-evaluation-udVYSMO4.js → url-evaluation-CtqrahAV.js} +1 -1
  158. package/dist/assets/{url-join-vuArvvL1.js → url-join-Bq2inMBc.js} +1 -1
  159. package/dist/assets/{use-mobile-BM273ejS.js → use-mobile-CS1doB6k.js} +1 -1
  160. package/dist/assets/{use-mobile-DwZO5be8.js → use-mobile-Ln-4uJJU.js} +1 -1
  161. package/dist/assets/{useAsync-DLvWuoz4.js → useAsync-BD7m2qf0.js} +1 -1
  162. package/dist/assets/{useAsyncRetry-D5p_7oRt.js → useAsyncRetry-DbnUx5lB.js} +1 -1
  163. package/dist/assets/{useLocalStorage-Bj7q_OT_.js → useLocalStorage-BfxLT4Rw.js} +1 -1
  164. package/dist/assets/{useThemeProps-GIAqgoE8.js → useThemeProps-Drx-8hAL.js} +1 -1
  165. package/dist/assets/{util-SXSVGHBg.js → util-B5EfMVt6.js} +1 -1
  166. package/dist/assets/{wait-container-CDKA5Gem.js → wait-container-C3c19zLe.js} +1 -1
  167. package/dist/assets/{without-wallet-D7xWotBX.js → without-wallet-BI_47-FN.js} +2 -2
  168. package/dist/assets/{wrap-locale-DR1zYzoA.js → wrap-locale-D_s0ePXc.js} +1 -1
  169. package/dist/assets/{xml-B0YAwXot.js → xml-Dhxlz3O6.js} +1 -1
  170. package/dist/assets/{yaml-fECgnKXj.js → yaml-CqAJzLYA.js} +1 -1
  171. package/dist/index.html +1 -1
  172. package/dist/service-worker.js +1 -1
  173. package/package.json +2 -2
  174. package/dist/assets/ArrowDropDown-B47EydNm.js +0 -1
  175. package/dist/assets/api-BcYW4RGg.js +0 -1
  176. package/dist/assets/client-Bq43pXAg.js +0 -1
  177. package/dist/assets/cloneDeep-Q4iUxm_j.js +0 -1
  178. package/dist/assets/emotion-cache.browser.esm-BUnXReBA.js +0 -1
  179. package/dist/assets/engine-BwbWZmR_.js +0 -1
  180. package/dist/assets/getValidReactChildren-CutnuaBi.js +0 -1
  181. package/dist/assets/index-CCptkWcP.js +0 -1
  182. package/dist/assets/omit-BOKRrWcI.js +0 -1
  183. package/dist/assets/schema-DloAUG7Z.js +0 -1
  184. package/dist/assets/sdk-FGFC0J6F.js +0 -1
  185. package/dist/assets/toUpper-DEqJjuKZ.js +0 -1
@@ -1 +1 @@
1
- import{u,j as s,C as d,A as x,ay as v,cq as C,cr as f,af as j,E as I,N as P,bw as E}from"./index--ktJL2Tx.js";import{I as S}from"./invitation-DyVYJveL.js";import{g as N}from"./get-safe-url-CkVD5JZ8.js";import"./index-BQhkQ0WB.js";import"./index-BKrngGDQ.js";import"./emotion-cache.browser.esm-BUnXReBA.js";import"./index-CZH7Mn5H.js";import"./sdk-FGFC0J6F.js";import"./wrap-locale-DR1zYzoA.js";function R(n){const{searchParams:i}=new URL(window.location.href),g=x(),{api:a,session:r}=v(),{info:l}=u(),c=i.get("redirect"),p=i.get("id"),o=C(async()=>{if(!p)return null;const{data:t}=await a.get("/api/invitation",{params:{inviteId:p,mode:"issue-passport"}});return t}),m=f(()=>{if(o.error)throw o.error;return o?.data}),h=f(async(t,w=e=>e)=>{t&&(t.sessionToken&&j(w(t.sessionToken)),await r.refresh()),setTimeout(()=>{if(c){const e=decodeURIComponent(c);e.startsWith(I.WELLKNOWN_SERVICE_PATH_PREFIX)?g(e,{replace:!0}):window.location.href=N(e)}else window.location.href=window.env.pathPrefix||"/"},50)});return o.loading?s.jsx(d,{}):s.jsx(P,{className:"page-invite",sx:{width:"100vw",height:"100%",minHeight:"100vh",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"#f6f8fa",overflow:"auto",padding:"20px"},children:s.jsx(S,{...n,action:"issue-passport",getDataFn:m,createPassportSvg:t=>E(t,l),checkFn:a.get,onLoginSuccess:h,passportColor:"default",onLogin:r.login})})}function q(){return u().loading?s.jsx(d,{}):s.jsx(R,{})}export{q as default};
1
+ import{u,j as s,C as d,A as x,ay as v,cq as C,cr as f,af as j,E as I,N as P,bw as E}from"./index-BSnpJGoE.js";import{I as S}from"./invitation-6hqyeU5m.js";import{g as N}from"./get-safe-url-DQLWIOcC.js";import"./index-CcYCgG1Z.js";import"./index-WqL2nOOx.js";import"./emotion-cache.browser.esm-lCkFhcap.js";import"./index-Bn_tCgMM.js";import"./sdk-DyOTm4mE.js";import"./wrap-locale-D_s0ePXc.js";function R(n){const{searchParams:i}=new URL(window.location.href),g=x(),{api:a,session:r}=v(),{info:l}=u(),c=i.get("redirect"),p=i.get("id"),o=C(async()=>{if(!p)return null;const{data:t}=await a.get("/api/invitation",{params:{inviteId:p,mode:"issue-passport"}});return t}),m=f(()=>{if(o.error)throw o.error;return o?.data}),h=f(async(t,w=e=>e)=>{t&&(t.sessionToken&&j(w(t.sessionToken)),await r.refresh()),setTimeout(()=>{if(c){const e=decodeURIComponent(c);e.startsWith(I.WELLKNOWN_SERVICE_PATH_PREFIX)?g(e,{replace:!0}):window.location.href=N(e)}else window.location.href=window.env.pathPrefix||"/"},50)});return o.loading?s.jsx(d,{}):s.jsx(P,{className:"page-invite",sx:{width:"100vw",height:"100%",minHeight:"100vh",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"#f6f8fa",overflow:"auto",padding:"20px"},children:s.jsx(S,{...n,action:"issue-passport",getDataFn:m,createPassportSvg:t=>E(t,l),checkFn:a.get,onLoginSuccess:h,passportColor:"default",onLogin:r.login})})}function q(){return u().loading?s.jsx(d,{}):s.jsx(R,{})}export{q as default};
@@ -1,4 +1,4 @@
1
- import{aG as Yn,j as t,r as N,fF as no,fG as io,cr as We,bd as Gn,by as He,N as ae,at as Zn,az as $e,T as we,eK as oo,aP as ot,fH as so,m as Ee,F as Qn,fI as Lr,fJ as ao,cU as Xn,cq as lo,bk as Yr,dE as bt,P as yt,aU as Dt,fK as co,C as Qe,fL as vt,ev as Ae,fM as Jn,fN as uo,fO as fo,fP as po,fQ as mo,fR as ho,fS as ei,fT as go,fU as _r,fV as bo,fW as yo,fX as vo,fY as wo,ew as qr,fZ as ti,ex as xo,cE as Er,ey as Co,dA as So,f_ as To,bW as at,bX as lt,cf as ri,dK as Oe,eW as ce,bZ as Eo,b8 as Se,da as Rt,d4 as ni,b_ as qe,b$ as et,U as Xe,av as kt,dG as ii,d7 as jo,f$ as qt,bg as oi,g0 as si,o as b,bf as De,Q as wt,bi as Po,t as st,g1 as Do,bn as Re,R as jr,S as Pr,dC as Ro,g2 as At,g3 as ko,H as Ue,au as xt,$ as Ge,D as Ur,X as rt,v as Te,Y as ze,g4 as Ao,i as Dr,aW as Oo,w as Io,x as No,s as je,f1 as Mo,g as Ct,ad as St,bz as Je,g5 as Lo,dB as _o,di as qo,f as Uo,n as Tt,E as Ye,dt as Fo,g6 as Bo,ez as Vo,g7 as ai,g8 as Ot,g9 as $o,dD as Gr,b as Ze,W as Fr,dF as zo,bq as li,br as Ko,bs as ci,aE as Wo,fE as ui,ga as di,aS as Ho,aF as Yo,a9 as Go,y as Zo,gb as Qo,a4 as Xo,bB as Jo,V as es,O as ts}from"./index--ktJL2Tx.js";import{A as It}from"./Add-Clw8RkKN.js";import{V as rs}from"./ViewList-5nfbahYZ.js";import{H as Br,g as ns}from"./index-DTRD5V4Z.js";import{u as is}from"./use-mobile-BM273ejS.js";import{e as Zr}from"./client-Bq43pXAg.js";import{R as os,a as $t,W as fi,D as ss}from"./url-evaluation-udVYSMO4.js";import{u as Ie}from"./team-BroofdgP.js";import{u as pi}from"./blocklet-DXJr-xZq.js";import{P as Ve}from"./permission-Bd240jHS.js";import{C as Ut}from"./click-to-copy-CTJTNpA1.js";import{s as Ke,g as as,S as ls,u as Fe,a as mi,b as Et,c as hi,d as Ft,e as gi,f as Vr,P as bi,D as yi,h as Nt,M as mt,i as vi,j as Qr,k as gt,v as cs,l as us,m as Xr,n as ds,o as fs,p as ps,q as ms,C as hs,r as gs,t as Mt,w as nt,x as Lt,y as Jr,z as en,A as bs,T as ys,B as $r,E as vs,F as ws,G as xs,H as Cs,I as Ss,J as Ts,K as Es,L as jt,N as it,O as wi,Q as js,V as Rr,R as xi,U as Ps,W as tn,X as Ds,Y as Rs,Z as ks,_ as As,$ as Os,a0 as Is}from"./AdapterDayjs-B4EEI1nK.js";import{u as Ne}from"./useThemeProps-GIAqgoE8.js";import{a as rn,b as Ns,t as Ms,T as Ls}from"./index-BMN0G3TX.js";import{v as Pe}from"./index-DYPal8XU.js";import{V as _s}from"./Verified-aOhYddnX.js";import{D as qs}from"./DeleteOutline-BhORbRJB.js";import{E as nn}from"./ErrorOutline-QvbHz9Zz.js";import{y as Ci}from"./index-CPtXYlM0.js";import{S as Us}from"./Search-CveVLYRK.js";import{N as Fs}from"./index-BKrngGDQ.js";import{b as Bs}from"./sdk-FGFC0J6F.js";import{A as Vs}from"./actions-BFpxkOZ3.js";import{S as $s}from"./shorten-label-BsB05cbU.js";const zs=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"})),Ks=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"})),Si=e=>N.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},N.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"}),N.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"}),N.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"}),N.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"})),Ti=e=>N.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},N.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"}),N.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375}),N.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=>N.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},N.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"}),N.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375})),Ws=e=>N.createElement("svg",{width:18,height:19,viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg",...e},N.createElement("g",{clipPath:"url(#clip0)"},N.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"})),N.createElement("defs",null,N.createElement("clipPath",{id:"clip0"},N.createElement("rect",{width:18,height:18,transform:"translate(0 0.5)"})))),ji=e=>N.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},N.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 Hs(){return on||(on=1,Kt=e=>encodeURIComponent(e).replace(/[!'()*]/g,c=>`%${c.charCodeAt(0).toString(16).toUpperCase()}`)),Kt}var Wt,sn;function Ys(){if(sn)return Wt;sn=1;var e="%[a-f0-9]{2}",c=new RegExp("("+e+")|([^%]+?)","gi"),o=new RegExp("("+e+")+","gi");function r(m,p){try{return[decodeURIComponent(m.join(""))]}catch{}if(m.length===1)return m;p=p||1;var s=m.slice(0,p),i=m.slice(p);return Array.prototype.concat.call([],r(s),r(i))}function y(m){try{return decodeURIComponent(m)}catch{for(var p=m.match(c)||[],s=1;s<p.length;s++)m=r(p,s).join(""),p=m.match(c)||[];return m}}function x(m){for(var p={"%FE%FF":"��","%FF%FE":"��"},s=o.exec(m);s;){try{p[s[0]]=decodeURIComponent(s[0])}catch{var i=y(s[0]);i!==s[0]&&(p[s[0]]=i)}s=o.exec(m)}p["%C2"]="�";for(var n=Object.keys(p),S=0;S<n.length;S++){var a=n[S];m=m.replace(new RegExp(a,"g"),p[a])}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 x(m)}},Wt}var Ht,an;function Gs(){return an||(an=1,Ht=(e,c)=>{if(!(typeof e=="string"&&typeof c=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(c==="")return[e];const o=e.indexOf(c);return o===-1?[e]:[e.slice(0,o),e.slice(o+c.length)]}),Ht}var Yt,ln;function Zs(){return ln||(ln=1,Yt=function(e,c){for(var o={},r=Object.keys(e),y=Array.isArray(c),x=0;x<r.length;x++){var m=r[x],p=e[m];(y?c.indexOf(m)!==-1:c(m,p,e))&&(o[m]=p)}return o}),Yt}var cn;function Qs(){return cn||(cn=1,function(e){const c=Hs(),o=Ys(),r=Gs(),y=Zs(),x=g=>g==null;function m(g){switch(g.arrayFormat){case"index":return f=>(h,w)=>{const T=h.length;return w===void 0||g.skipNull&&w===null||g.skipEmptyString&&w===""?h:w===null?[...h,[i(f,g),"[",T,"]"].join("")]:[...h,[i(f,g),"[",i(T,g),"]=",i(w,g)].join("")]};case"bracket":return f=>(h,w)=>w===void 0||g.skipNull&&w===null||g.skipEmptyString&&w===""?h:w===null?[...h,[i(f,g),"[]"].join("")]:[...h,[i(f,g),"[]=",i(w,g)].join("")];case"comma":case"separator":return f=>(h,w)=>w==null||w.length===0?h:h.length===0?[[i(f,g),"=",i(w,g)].join("")]:[[h,i(w,g)].join(g.arrayFormatSeparator)];default:return f=>(h,w)=>w===void 0||g.skipNull&&w===null||g.skipEmptyString&&w===""?h:w===null?[...h,i(f,g)]:[...h,[i(f,g),"=",i(w,g)].join("")]}}function p(g){let f;switch(g.arrayFormat){case"index":return(h,w,T)=>{if(f=/\[(\d*)\]$/.exec(h),h=h.replace(/\[\d*\]$/,""),!f){T[h]=w;return}T[h]===void 0&&(T[h]={}),T[h][f[1]]=w};case"bracket":return(h,w,T)=>{if(f=/(\[\])$/.exec(h),h=h.replace(/\[\]$/,""),!f){T[h]=w;return}if(T[h]===void 0){T[h]=[w];return}T[h]=[].concat(T[h],w)};case"comma":case"separator":return(h,w,T)=>{const A=typeof w=="string"&&w.includes(g.arrayFormatSeparator),k=typeof w=="string"&&!A&&n(w,g).includes(g.arrayFormatSeparator);w=k?n(w,g):w;const I=A||k?w.split(g.arrayFormatSeparator).map(D=>n(D,g)):w===null?w:n(w,g);T[h]=I};default:return(h,w,T)=>{if(T[h]===void 0){T[h]=w;return}T[h]=[].concat(T[h],w)}}}function s(g){if(typeof g!="string"||g.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function i(g,f){return f.encode?f.strict?c(g):encodeURIComponent(g):g}function n(g,f){return f.decode?o(g):g}function S(g){return Array.isArray(g)?g.sort():typeof g=="object"?S(Object.keys(g)).sort((f,h)=>Number(f)-Number(h)).map(f=>g[f]):g}function a(g){const f=g.indexOf("#");return f!==-1&&(g=g.slice(0,f)),g}function l(g){let f="";const h=g.indexOf("#");return h!==-1&&(f=g.slice(h)),f}function u(g){g=a(g);const f=g.indexOf("?");return f===-1?"":g.slice(f+1)}function d(g,f){return f.parseNumbers&&!Number.isNaN(Number(g))&&typeof g=="string"&&g.trim()!==""?g=Number(g):f.parseBooleans&&g!==null&&(g.toLowerCase()==="true"||g.toLowerCase()==="false")&&(g=g.toLowerCase()==="true"),g}function v(g,f){f=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},f),s(f.arrayFormatSeparator);const h=p(f),w=Object.create(null);if(typeof g!="string"||(g=g.trim().replace(/^[?#&]/,""),!g))return w;for(const T of g.split("&")){if(T==="")continue;let[A,k]=r(f.decode?T.replace(/\+/g," "):T,"=");k=k===void 0?null:["comma","separator"].includes(f.arrayFormat)?k:n(k,f),h(n(A,f),k,w)}for(const T of Object.keys(w)){const A=w[T];if(typeof A=="object"&&A!==null)for(const k of Object.keys(A))A[k]=d(A[k],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 k=w[A];return k&&typeof k=="object"&&!Array.isArray(k)?T[A]=S(k):T[A]=k,T},Object.create(null))}e.extract=u,e.parse=v,e.stringify=(g,f)=>{if(!g)return"";f=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},f),s(f.arrayFormatSeparator);const h=k=>f.skipNull&&x(g[k])||f.skipEmptyString&&g[k]==="",w=m(f),T={};for(const k of Object.keys(g))h(k)||(T[k]=g[k]);const A=Object.keys(T);return f.sort!==!1&&A.sort(f.sort),A.map(k=>{const I=g[k];return I===void 0?"":I===null?i(k,f):Array.isArray(I)?I.reduce(w(k),[]).join("&"):i(k,f)+"="+i(I,f)}).filter(k=>k.length>0).join("&")},e.parseUrl=(g,f)=>{f=Object.assign({decode:!0},f);const[h,w]=r(g,"#");return Object.assign({url:h.split("?")[0]||"",query:v(u(g),f)},f&&f.parseFragmentIdentifier&&w?{fragmentIdentifier:n(w,f)}:{})},e.stringifyUrl=(g,f)=>{f=Object.assign({encode:!0,strict:!0},f);const h=a(g.url).split("?")[0]||"",w=e.extract(g.url),T=e.parse(w,{sort:!1}),A=Object.assign(T,g.query);let k=e.stringify(A,f);k&&(k=`?${k}`);let I=l(g.url);return g.fragmentIdentifier&&(I=`#${i(g.fragmentIdentifier,f)}`),`${h}${k}${I}`},e.pick=(g,f,h)=>{h=Object.assign({parseFragmentIdentifier:!0},h);const{url:w,query:T,fragmentIdentifier:A}=e.parseUrl(g,h);return e.stringifyUrl({url:w,query:y(T,f),fragmentIdentifier:A},h)},e.exclude=(g,f,h)=>{const w=Array.isArray(f)?T=>!f.includes(T):(T,A)=>!f(T,A);return e.pick(g,w,h)}}(zt)),zt}var Gt=Qs();const dt=no,Xs={parseNumbers:!1,parseBooleans:!1},Js={skipNull:!1,skipEmptyString:!1},ea=(e,c)=>{var o,r;const{navigateMode:y="push",parseOptions:x,stringifyOptions:m}={},p=Object.assign(Object.assign({},Xs),x),s=Object.assign(Object.assign({},Js),m),i=dt.useLocation(),n=(o=dt.useHistory)===null||o===void 0?void 0:o.call(dt),S=(r=dt.useNavigate)===null||r===void 0?void 0:r.call(dt),a=io(),l=N.useRef(typeof e=="function"?e():e||{}),u=N.useMemo(()=>Gt.parse(i.search,p),[i.search]),d=N.useMemo(()=>Object.assign(Object.assign({},l.current),u),[u]);return[d,We(g=>{const f=typeof g=="function"?g(d):g;a(),n&&n[y]({hash:i.hash,search:Gt.stringify(Object.assign(Object.assign({},u),f),s)||"?"},i.state),S&&S({hash:i.hash,search:Gt.stringify(Object.assign(Object.assign({},u),f),s)||"?"},{replace:y==="replace",state:i.state})})]};var ht={exports:{}},ta=ht.exports,un;function ra(){return un||(un=1,function(e,c){(function(o,r){var y="1.0.40",x="",m="?",p="function",s="undefined",i="object",n="string",S="major",a="model",l="name",u="type",d="vendor",v="version",g="architecture",f="console",h="mobile",w="tablet",T="smarttv",A="wearable",k="embedded",I=500,D="Amazon",B="Apple",W="ASUS",G="BlackBerry",te="Browser",pe="Chrome",ne="Edge",re="Firefox",fe="Google",ye="Huawei",M="LG",q="Microsoft",H="Motorola",z="Opera",Y="Samsung",R="Sharp",E="Sony",P="Xiaomi",U="Zebra",F="Facebook",$="Chromium OS",Q="Mac OS",le=" Browser",de=function(O,_){var L={};for(var Z in O)_[Z]&&_[Z].length%2===0?L[Z]=_[Z].concat(O[Z]):L[Z]=O[Z];return L},me=function(O){for(var _={},L=0;L<O.length;L++)_[O[L].toUpperCase()]=O[L];return _},he=function(O,_){return typeof O===n?ve(_).indexOf(ve(O))!==-1:!1},ve=function(O){return O.toLowerCase()},Ce=function(O){return typeof O===n?O.replace(/[^\d\.]/g,x).split(".")[0]:r},xe=function(O,_){if(typeof O===n)return O=O.replace(/^\s\s*/,x),typeof _===s?O:O.substring(0,I)},be=function(O,_){for(var L=0,Z,ie,ue,ee,J,ge;L<_.length&&!J;){var Me=_[L],Le=_[L+1];for(Z=ie=0;Z<Me.length&&!J&&Me[Z];)if(J=Me[Z++].exec(O),J)for(ue=0;ue<Le.length;ue++)ge=J[++ie],ee=Le[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;L+=2}},se=function(O,_){for(var L in _)if(typeof _[L]===i&&_[L].length>0){for(var Z=0;Z<_[L].length;Z++)if(he(_[L][Z],O))return L===m?r:L}else if(he(_[L],O))return L===m?r:L;return _.hasOwnProperty("*")?_["*"]: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],[v,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,v],[/opios[\/ ]+([\w\.]+)/i],[v,[l,z+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[v,[l,z+" GX"]],[/\bopr\/([\w\.]+)/i],[v,[l,z]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[v,[l,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[v,[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,v],[/quark(?:pc)?\/([-\w\.]+)/i],[v,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[v,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[l,"UC"+te]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[v,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[v,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[v,[l,"Smart Lenovo "+te]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+te],v],[/\bfocus\/([\w\.]+)/i],[v,[l,re+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[l,z+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[l,z+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[l,"MIUI"+le]],[/fxios\/([\w\.-]+)/i],[v,[l,re]],[/\bqihoobrowser\/?([\w\.]*)/i],[v,[l,"360"]],[/\b(qq)\/([\w\.]+)/i],[[l,/(.+)/,"$1Browser"],v],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1"+le],v],[/samsungbrowser\/([\w\.]+)/i],[v,[l,Y+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[v,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[l,v],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[l],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[v,l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,F],v],[/(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,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[v,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[l,pe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,pe+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[l,"Android "+te]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,v],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[v,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[v,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[v,se,oe]],[/(webkit|khtml)\/([\w\.]+)/i],[l,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],v],[/(wolvic|librewolf)\/([\w\.]+)/i],[l,v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[l,re+" 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,[v,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,ve]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,x,ve]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,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],[a,[d,Y],[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],[a,[d,Y],[u,h]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[a,[d,B],[u,h]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[a,[d,B],[u,w]],[/(macintosh);/i],[a,[d,B]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[a,[d,R],[u,h]],[/(?:honor)([-\w ]+)[;\)]/i],[a,[d,"Honor"],[u,h]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[a,[d,ye],[u,w]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[a,[d,ye],[u,h]],[/\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],[[a,/_/g," "],[d,P],[u,h]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[a,/_/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],[a,[d,"OPPO"],[u,h]],[/\b(opd2\d{3}a?) bui/i],[a,[d,"OPPO"],[u,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[a,[d,"Vivo"],[u,h]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[a,[d,"Realme"],[u,h]],[/\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],[a,[d,H],[u,h]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[a,[d,H],[u,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[a,[d,M],[u,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[a,[d,M],[u,h]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[a,[d,"Lenovo"],[u,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[a,/_/g," "],[d,"Nokia"],[u,h]],[/(pixel c)\b/i],[a,[d,fe],[u,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[a,[d,fe],[u,h]],[/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],[a,[d,E],[u,h]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[a,"Xperia Tablet"],[d,E],[u,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[a,[d,"OnePlus"],[u,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[a,[d,D],[u,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[a,/(.+)/g,"Fire Phone $1"],[d,D],[u,h]],[/(playbook);[-\w\),; ]+(rim)/i],[a,d,[u,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[a,[d,G],[u,h]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[a,[d,W],[u,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[a,[d,W],[u,h]],[/(nexus 9)/i],[a,[d,"HTC"],[u,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[a,/_/g," "],[u,h]],[/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],[a,[d,"TCL"],[u,w]],[/(itel) ((\w+))/i],[[d,ve],a,[u,se,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[a,[d,"Acer"],[u,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[a,[d,"Meizu"],[u,h]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[a,[d,"Ulefone"],[u,h]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[a,[d,"Energizer"],[u,h]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[a,[d,"Cat"],[u,h]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[a,[d,"Smartfren"],[u,h]],[/droid.+; (a(?:015|06[35]|142p?))/i],[a,[d,"Nothing"],[u,h]],[/(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,a,[u,h]],[/(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,a,[u,w]],[/(surface duo)/i],[a,[d,q],[u,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[a,[d,"Fairphone"],[u,h]],[/(u304aa)/i],[a,[d,"AT&T"],[u,h]],[/\bsie-(\w*)/i],[a,[d,"Siemens"],[u,h]],[/\b(rct\w+) b/i],[a,[d,"RCA"],[u,w]],[/\b(venue[\d ]{2,7}) b/i],[a,[d,"Dell"],[u,w]],[/\b(q(?:mv|ta)\w+) b/i],[a,[d,"Verizon"],[u,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[a,[d,"Barnes & Noble"],[u,w]],[/\b(tm\d{3}\w+) b/i],[a,[d,"NuVision"],[u,w]],[/\b(k88) b/i],[a,[d,"ZTE"],[u,w]],[/\b(nx\d{3}j) b/i],[a,[d,"ZTE"],[u,h]],[/\b(gen\d{3}) b.+49h/i],[a,[d,"Swiss"],[u,h]],[/\b(zur\d{3}) b/i],[a,[d,"Swiss"],[u,w]],[/\b((zeki)?tb.*\b) b/i],[a,[d,"Zeki"],[u,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],a,[u,w]],[/\b(ns-?\w{0,9}) b/i],[a,[d,"Insignia"],[u,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[a,[d,"NextBook"],[u,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],a,[u,h]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],a,[u,h]],[/\b(ph-1) /i],[a,[d,"Essential"],[u,h]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[a,[d,"Envizen"],[u,w]],[/\b(trio[-\w\. ]+) b/i],[a,[d,"MachSpeed"],[u,w]],[/\btu_(1491) b/i],[a,[d,"Rotor"],[u,w]],[/(shield[\w ]+) b/i],[a,[d,"Nvidia"],[u,w]],[/(sprint) (\w+)/i],[d,a,[u,h]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[d,q],[u,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[a,[d,U],[u,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[a,[d,U],[u,h]],[/smart-tv.+(samsung)/i],[d,[u,T]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[d,Y],[u,T]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,M],[u,T]],[/(apple) ?tv/i],[d,[a,B+" TV"],[u,T]],[/crkey/i],[[a,pe+"cast"],[d,fe],[u,T]],[/droid.+aft(\w+)( bui|\))/i],[a,[d,D],[u,T]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[a,[d,R],[u,T]],[/(bravia[\w ]+)( bui|\))/i],[a,[d,E],[u,T]],[/(mitv-\w{5}) bui/i],[a,[d,P],[u,T]],[/Hbbtv.*(technisat) (.*);/i],[d,a,[u,T]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,xe],[a,xe],[u,T]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,T]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,a,[u,f]],[/droid.+; (shield) bui/i],[a,[d,"Nvidia"],[u,f]],[/(playstation [345portablevi]+)/i],[a,[d,E],[u,f]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[a,[d,q],[u,f]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[a,[d,Y],[u,A]],[/((pebble))app/i],[d,a,[u,A]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[a,[d,B],[u,A]],[/droid.+; (glass) \d/i],[a,[d,fe],[u,A]],[/droid.+; (wt63?0{2,3})\)/i],[a,[d,U],[u,A]],[/droid.+; (glass) \d/i],[a,[d,fe],[u,A]],[/(pico) (4|neo3(?: link|pro)?)/i],[d,a,[u,A]],[/; (quest( \d| pro)?)/i],[a,[d,F],[u,A]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[u,k]],[/(aeobc)\b/i],[a,[d,D],[u,k]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[a,[u,h]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[a,[u,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,h]],[/(android[-\w\. ]{0,9});.+buil/i],[a,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[l,ne+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[l,v],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[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,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,v],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[l,[v,se,X]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[v,se,X],[l,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,Q],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[v,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,v],[/\(bb(10);/i],[v,[l,G]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[l,re+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[v,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[v,[l,pe+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,$],v],[/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,v],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,v]]},K=function(O,_){if(typeof O===i&&(_=O,O=r),!(this instanceof K))return new K(O,_).getResult();var L=typeof o!==s&&o.navigator?o.navigator:r,Z=O||(L&&L.userAgent?L.userAgent:x),ie=L&&L.userAgentData?L.userAgentData:r,ue=_?de(V,_):V,ee=L&&L.userAgent==Z;return this.getBrowser=function(){var J={};return J[l]=r,J[v]=r,be.call(J,Z,ue.browser),J[S]=Ce(J[v]),ee&&L&&L.brave&&typeof L.brave.isBrave==p&&(J[l]="Brave"),J},this.getCPU=function(){var J={};return J[g]=r,be.call(J,Z,ue.cpu),J},this.getDevice=function(){var J={};return J[d]=r,J[a]=r,J[u]=r,be.call(J,Z,ue.device),ee&&!J[u]&&ie&&ie.mobile&&(J[u]=h),ee&&J[a]=="Macintosh"&&L&&typeof L.standalone!==s&&L.maxTouchPoints&&L.maxTouchPoints>2&&(J[a]="iPad",J[u]=w),J},this.getEngine=function(){var J={};return J[l]=r,J[v]=r,be.call(J,Z,ue.engine),J},this.getOS=function(){var J={};return J[l]=r,J[v]=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>I?xe(J,I):J,this},this.setUA(Z),this};K.VERSION=y,K.BROWSER=me([l,v,S]),K.CPU=me([g]),K.DEVICE=me([a,d,u,f,h,T,w,A,k]),K.ENGINE=K.OS=me([l,v]),e.exports&&(c=e.exports=K),c.UAParser=K;var C=typeof o!==s&&(o.jQuery||o.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 _=j.getResult();for(var L in _)C.ua[L]=_[L]}}})(typeof window=="object"?window:ta)}(ht,ht.exports)),ht.exports}var na=ra();const Zt=Gn(na);function ia({user:e,sessionUser:c}){const o=He(()=>(e?.passports||[])?.find(r=>r.name===c.role),[e?.passports,c?.role]);return t.jsxs(ae,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.jsx(Zn,{size:40,variant:"circle",shape:"circle",src:c.avatar,did:c.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($e,{title:c.fullName,children:t.jsx(we,{sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1},children:c.fullName})}),t.jsx(oo,{label:o?.title||o?.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($e,{title:c.email,children:t.jsx(we,{variant:"body2",color:"grey",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:c.email})})]})]})}const oa={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"}},Pi="Reserved IP",dn="ip-region-cache";async function sa(e){const c=`https://ipapi.co/${e}/json/`,o=await(await fetch(c)).json();let r="";return o.error?o.reserved&&(r=Pi):r=[o.country_name,o.region,o.city].filter(Boolean).join("/"),r}async function aa(e){const c=`https://api.ip.sb/geoip/${e}`,o=await(await fetch(c)).json();let r="";return o.error?o.reserved&&(r=Pi):r=[o.country,o.region,o.city].filter(Boolean).join("/"),r}async function la(e){let c="",o={};try{const r=localStorage.getItem(dn);r&&(o=JSON.parse(r))}catch{o={}}if(o[e])c=o[e];else{try{c=await aa(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!c)try{c=await sa(e)}catch{console.warn("Fail to get ip region from ip-api.co")}}if(c){const r=Object.keys(o);r.length>100&&delete o[r[0]],o[e]&&delete o[e],o[e]=c,localStorage.setItem(dn,JSON.stringify(o))}return c}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"},ca=new co({concurrency:1}),ua=N.memo(({userSession:e,isMobile:c=!1})=>{const o=ot({loading:!0,ipRegion:""}),{t:r}=Ee();return N.useEffect(()=>{ca.add(async()=>{try{o.ipRegion=await la(e.lastLoginIp)}finally{o.loading=!1}})},[o,e.lastLoginIp]),t.jsx(ae,{...c&&{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:1,flexWrap:"wrap"},children:o.ipRegion?t.jsxs(t.Fragment,{children:[t.jsx(we,{variant:"body2",children:o.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")}),o.loading?t.jsx(we,{variant:"body2",color:"grey",sx:{textAlign:"center"},children:t.jsx(Qe,{size:12,color:"inherit"})}):null]})})});function da({user:e,showAction:c=!0,showUser:o=!0,getUserSessions:r,showOffline:y=!1}){const x=ot({status:"online",page:1,pageSize:10}),m=ot({online:0,expired:0,offline:0}),p=so(),{locale:s}=Ee(),i=is({key:"md"}),n=Qn(I=>I.breakpoints.down("lg")),{confirmApi:S,confirmHolder:a}=Lr(),l=We((I,D={})=>ao(oa,I,s,"en",D)),u=We(async()=>{const I=await r({page:x.page,pageSize:x.pageSize,status:x.status}),D=I?.paging?.total||0;return m[x.status]=D,{total:D,list:I?.list||[]}});Xn(async()=>{const I=await r({page:1,pageSize:1,status:"expired"});m.expired=I?.paging?.total||0;const D=await r({page:1,pageSize:1,status:"offline"});m.offline=D?.paging?.total||0});const d=lo(u,{refreshDeps:[x.status,x.page,x.pageSize]}),v=He(()=>d.data?.list||[],[d.data?.list]),g=He(()=>{const I=x.status;return I==="online"?m[I]<=1:m[I]===0},[v,p]),f=He(()=>Yr({},i?pn:{}),[i]),h=We(({visitorId:I})=>{S.open({title:l("logoutThisSession"),content:l("logoutThisSessionConfirm"),confirmButtonText:l("confirm"),confirmButtonProps:{color:"error"},cancelButtonText:l("cancel"),onConfirm:async()=>{await Zr.user.logout({visitorId:I,includeFederated:!0});const{page:D=0}=x,{list:B=[]}=d.data||{},W=B.length||0;D>1&&W===1&&(x.page=Math.max(D-1,1)),d.refresh(),S.close()}})}),w=We(()=>{S.open({title:l("logoutAllSession",{type:l(x.status)}),content:l("logoutAllSessionConfirm",{type:l(x.status)}),confirmButtonText:l("confirm"),confirmButtonProps:{color:"error"},cancelButtonText:l("cancel"),onConfirm:async()=>{await Zr.user.logout({status:x.status,visitorId:p,includeFederated:!0}),x.page=1,d.refresh(),S.close()}})}),T=[];c&&T.push(t.jsx($e,{title:l("logoutAllTips",{type:l(x.status)}),children:t.jsx(bt,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:w,disabled:g,children:l("logoutAll",{type:l(x.status)})})},"logoutAll"));const A=He(()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600,page:x.page-1,rowsPerPage:x.pageSize,count:d.data?.total||0}),[d.data?.total,x.page,x.pageSize]),k=[{label:l("platform"),name:"platform",options:{customBodyRenderLite:I=>{const D=v[I],B=fn(D?.ua);return t.jsx(ae,{sx:f,children:[B.os?.name,B.os?.version].filter(Boolean).join("/")||l("unknown")})}}},{label:l("deviceType"),name:"deviceType",options:{customBodyRenderLite:I=>{const D=v[I],B=fn(D?.ua);return t.jsx(ae,{sx:f,children:[B.browser?.name,B.browser?.version].filter(Boolean).join("/")||l("unknown")})}}},{label:l("walletOS"),name:"walletOS",options:{customBodyRenderLite:I=>{const D=v[I];return t.jsx(ae,{sx:f,children:D.extra?.walletOS||l("unknown")})}}},o&&{label:l("user"),name:"user",options:{customBodyRenderLite:I=>{const D=v[I];return t.jsx(ae,{sx:Yr({minWidth:150,maxWidth:250},i?pn:{}),children:t.jsx(ia,{sessionUser:D.user,user:e})})}}},{label:l("createdAt"),name:"createdAt",options:{customBodyRenderLite:I=>{const D=v[I];return t.jsx(ae,{sx:f,children:D.createdAt?t.jsx(yt,{value:D.createdAt,relativeRange:3*86400*1e3,locale:s}):l("unknown")})}}},!y&&{label:l("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:I=>{const D=v[I];return t.jsx(ae,{sx:f,children:D.status==="expired"?l("expired"):t.jsx(yt,{value:D.updatedAt,relativeRange:3*86400*1e3,locale:s})})}}},{label:l("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:I=>{const D=v[I];return t.jsx(ua,{userSession:D,isMobile:i})}}},c&&{label:l("actions"),name:"actions",options:{customBodyRenderLite:I=>{const D=v[I];return t.jsx(ae,{sx:f,children:t.jsx(bt,{sx:{whiteSpace:"nowrap",fontSize:"12px !important",lineHeight:"1.25",px:1},disabled:p===D.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>h({visitorId:D.visitorId}),children:D.status==="expired"?l("remove"):p===D.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:I=>`${I.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:[a,t.jsx(Br,{count:d.data?.total||0,locale:s,data:v,columns:k,customButtons:T,options:A,loading:d.loading,className:"pc-user-sessions-table",title:t.jsxs(os,{row:!0,sx:{lineHeight:1,ml:1},onChange:I=>{x.status=I.target.value},children:[t.jsx(Dt,{value:"online",control:t.jsx($t,{size:"small",sx:{lineHeight:1,fontSize:0},checked:x.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(Dt,{value:"expired",control:t.jsx($t,{size:"small",sx:{lineHeight:1,fontSize:0},checked:x.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,")"]})]})}),y?t.jsx(Dt,{value:"offline",control:t.jsx($t,{size:"small",sx:{lineHeight:1,fontSize:0},checked:x.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:I=>{x.page=I.page+1,x.pageSize=I.rowsPerPage}})]})}var Qt={exports:{}},Xt={},mn;function Di(){if(mn)return Xt;mn=1;function e(f){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},e(f)}function c(f,h,w){return Object.defineProperty(f,"prototype",{writable:!1}),f}function o(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}function r(f,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),h&&y(f,h)}function y(f,h){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,A){return T.__proto__=A,T},y(f,h)}function x(f){var h=s();return function(){var T=i(f),A;if(h){var k=i(this).constructor;A=Reflect.construct(T,arguments,k)}else A=T.apply(this,arguments);return m(this,A)}}function m(f,h){if(h&&(e(h)==="object"||typeof h=="function"))return h;if(h!==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 s(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function i(f){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(w){return w.__proto__||Object.getPrototypeOf(w)},i(f)}var n={},S,a;function l(f,h,w){w||(w=Error);function T(k,I,D){return typeof h=="string"?h:h(k,I,D)}var A=function(k){r(D,k);var I=x(D);function D(B,W,G){var te;return o(this,D),te=I.call(this,T(B,W,G)),te.code=f,te}return c(D)}(w);n[f]=A}function u(f,h){if(Array.isArray(f)){var w=f.length;return f=f.map(function(T){return String(T)}),w>2?"one of ".concat(h," ").concat(f.slice(0,w-1).join(", "),", or ")+f[w-1]:w===2?"one of ".concat(h," ").concat(f[0]," or ").concat(f[1]):"of ".concat(h," ").concat(f[0])}else return"of ".concat(h," ").concat(String(f))}function d(f,h,w){return f.substr(0,h.length)===h}function v(f,h,w){return(w===void 0||w>f.length)&&(w=f.length),f.substring(w-h.length,w)===h}function g(f,h,w){return typeof w!="number"&&(w=0),w+h.length>f.length?!1:f.indexOf(h,w)!==-1}return l("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),l("ERR_INVALID_ARG_TYPE",function(f,h,w){S===void 0&&(S=kr()),S(typeof f=="string","'name' must be a string");var T;typeof h=="string"&&d(h,"not ")?(T="must not be",h=h.replace(/^not /,"")):T="must be";var A;if(v(f," argument"))A="The ".concat(f," ").concat(T," ").concat(u(h,"type"));else{var k=g(f,".")?"property":"argument";A='The "'.concat(f,'" ').concat(k," ").concat(T," ").concat(u(h,"type"))}return A+=". Received type ".concat(e(w)),A},TypeError),l("ERR_INVALID_ARG_VALUE",function(f,h){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";a===void 0&&(a=vt());var T=a.inspect(h);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,h,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(h,'"')+" function but got ".concat(T,".")},TypeError),l("ERR_MISSING_ARGS",function(){for(var f=arguments.length,h=new Array(f),w=0;w<f;w++)h[w]=arguments[w];S===void 0&&(S=kr()),S(h.length>0,"At least one arg needs to be specified");var T="The ",A=h.length;switch(h=h.map(function(k){return'"'.concat(k,'"')}),A){case 1:T+="".concat(h[0]," argument");break;case 2:T+="".concat(h[0]," and ").concat(h[1]," arguments");break;default:T+=h.slice(0,A-1).join(", "),T+=", and ".concat(h[A-1]," arguments");break}return"".concat(T," must be specified")},TypeError),Xt.codes=n,Xt}var Jt,hn;function fa(){if(hn)return Jt;hn=1;function e(M,q){var H=Object.keys(M);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(M);q&&(z=z.filter(function(Y){return Object.getOwnPropertyDescriptor(M,Y).enumerable})),H.push.apply(H,z)}return H}function c(M){for(var q=1;q<arguments.length;q++){var H=arguments[q]!=null?arguments[q]:{};q%2?e(Object(H),!0).forEach(function(z){o(M,z,H[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(H)):e(Object(H)).forEach(function(z){Object.defineProperty(M,z,Object.getOwnPropertyDescriptor(H,z))})}return M}function o(M,q,H){return q=m(q),q in M?Object.defineProperty(M,q,{value:H,enumerable:!0,configurable:!0,writable:!0}):M[q]=H,M}function r(M,q){if(!(M instanceof q))throw new TypeError("Cannot call a class as a function")}function y(M,q){for(var H=0;H<q.length;H++){var z=q[H];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(M,m(z.key),z)}}function x(M,q,H){return q&&y(M.prototype,q),Object.defineProperty(M,"prototype",{writable:!1}),M}function m(M){var q=p(M,"string");return f(q)==="symbol"?q:String(q)}function p(M,q){if(f(M)!=="object"||M===null)return M;var H=M[Symbol.toPrimitive];if(H!==void 0){var z=H.call(M,q);if(f(z)!=="object")return z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}function s(M,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(q&&q.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),q&&v(M,q)}function i(M){var q=u();return function(){var z=g(M),Y;if(q){var R=g(this).constructor;Y=Reflect.construct(z,arguments,R)}else Y=z.apply(this,arguments);return n(this,Y)}}function n(M,q){if(q&&(f(q)==="object"||typeof q=="function"))return q;if(q!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(M)}function S(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function a(M){var q=typeof Map=="function"?new Map:void 0;return a=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 q<"u"){if(q.has(z))return q.get(z);q.set(z,Y)}function Y(){return l(z,arguments,g(this).constructor)}return Y.prototype=Object.create(z.prototype,{constructor:{value:Y,enumerable:!1,writable:!0,configurable:!0}}),v(Y,z)},a(M)}function l(M,q,H){return u()?l=Reflect.construct.bind():l=function(Y,R,E){var P=[null];P.push.apply(P,R);var U=Function.bind.apply(Y,P),F=new U;return E&&v(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(M){return Function.toString.call(M).indexOf("[native code]")!==-1}function v(M,q){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(z,Y){return z.__proto__=Y,z},v(M,q)}function g(M){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(H){return H.__proto__||Object.getPrototypeOf(H)},g(M)}function f(M){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},f(M)}var h=vt(),w=h.inspect,T=Di(),A=T.codes.ERR_INVALID_ARG_TYPE;function k(M,q,H){return(H===void 0||H>M.length)&&(H=M.length),M.substring(H-q.length,H)===q}function I(M,q){if(q=Math.floor(q),M.length==0||q==0)return"";var H=M.length*q;for(q=Math.floor(Math.log(q)/Math.log(2));q;)M+=M,q--;return M+=M.substring(0,H-M.length),M}var D="",B="",W="",G="",te={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:"},pe=10;function ne(M){var q=Object.keys(M),H=Object.create(Object.getPrototypeOf(M));return q.forEach(function(z){H[z]=M[z]}),Object.defineProperty(H,"message",{value:M.message}),H}function re(M){return w(M,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function fe(M,q,H){var z="",Y="",R=0,E="",P=!1,U=re(M),F=U.split(`
1
+ import{aG as Yn,j as t,r as N,fF as no,fG as io,cr as We,bd as Gn,by as He,N as ae,at as Zn,az as $e,T as we,eK as oo,aP as ot,fH as so,m as Ee,F as Qn,fI as Lr,fJ as ao,cU as Xn,cq as lo,bk as Yr,dE as bt,P as yt,aU as Dt,fK as co,C as Qe,fL as vt,ev as Ae,fM as Jn,fN as uo,fO as fo,fP as po,fQ as mo,fR as ho,fS as ei,fT as go,fU as _r,fV as bo,fW as yo,fX as vo,fY as wo,ew as qr,fZ as ti,ex as xo,cE as Er,ey as Co,dA as So,f_ as To,bW as at,bX as lt,cf as ri,dK as Oe,eW as ce,bZ as Eo,b8 as Se,da as Rt,d4 as ni,b_ as qe,b$ as et,U as Xe,av as kt,dG as ii,d7 as jo,f$ as qt,bg as oi,g0 as si,o as b,bf as De,Q as wt,bi as Po,t as st,g1 as Do,bn as Re,R as jr,S as Pr,dC as Ro,g2 as At,g3 as ko,H as Ue,au as xt,$ as Ge,D as Ur,X as rt,v as Te,Y as ze,g4 as Ao,i as Dr,aW as Oo,w as Io,x as No,s as je,f1 as Mo,g as Ct,ad as St,bz as Je,g5 as Lo,dB as _o,di as qo,f as Uo,n as Tt,E as Ye,dt as Fo,g6 as Bo,ez as Vo,g7 as ai,g8 as Ot,g9 as $o,dD as Gr,b as Ze,W as Fr,dF as zo,bq as li,br as Ko,bs as ci,aE as Wo,fE as ui,ga as di,aS as Ho,aF as Yo,a9 as Go,y as Zo,gb as Qo,a4 as Xo,bB as Jo,V as es,O as ts}from"./index-BSnpJGoE.js";import{A as It}from"./Add-DyeL4-IK.js";import{V as rs}from"./ViewList-19cDup6i.js";import{H as Br,g as ns}from"./index-CLzlZAUr.js";import{u as is}from"./use-mobile-CS1doB6k.js";import{e as Zr}from"./client-CchI0TAL.js";import{R as os,a as $t,W as fi,D as ss}from"./url-evaluation-CtqrahAV.js";import{u as Ie}from"./team-Bs7pamcj.js";import{u as pi}from"./blocklet-C7W1PCuU.js";import{P as Ve}from"./permission-H1evTnCb.js";import{C as Ut}from"./click-to-copy-DO0vuZcs.js";import{s as Ke,g as as,S as ls,u as Fe,a as mi,b as Et,c as hi,d as Ft,e as gi,f as Vr,P as bi,D as yi,h as Nt,M as mt,i as vi,j as Qr,k as gt,v as cs,l as us,m as Xr,n as ds,o as fs,p as ps,q as ms,C as hs,r as gs,t as Mt,w as nt,x as Lt,y as Jr,z as en,A as bs,T as ys,B as $r,E as vs,F as ws,G as xs,H as Cs,I as Ss,J as Ts,K as Es,L as jt,N as it,O as wi,Q as js,V as Rr,R as xi,U as Ps,W as tn,X as Ds,Y as Rs,Z as ks,_ as As,$ as Os,a0 as Is}from"./AdapterDayjs-B8AEZ3l4.js";import{u as Ne}from"./useThemeProps-Drx-8hAL.js";import{a as rn,b as Ns,t as Ms,T as Ls}from"./index-CWJxufpA.js";import{v as Pe}from"./index-W9Gf1H9j.js";import{V as _s}from"./Verified-BdjRVajU.js";import{D as qs}from"./DeleteOutline-BIpkPzjr.js";import{E as nn}from"./ErrorOutline-CGBCMbTc.js";import{y as Ci}from"./index-qnSWPvFZ.js";import{S as Us}from"./Search-DkAocH6B.js";import{N as Fs}from"./index-WqL2nOOx.js";import{b as Bs}from"./sdk-DyOTm4mE.js";import{A as Vs}from"./actions-pcPb_nyk.js";import{S as $s}from"./shorten-label-CFhfsEFi.js";const zs=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"})),Ks=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"})),Si=e=>N.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},N.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"}),N.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"}),N.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"}),N.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"})),Ti=e=>N.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},N.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"}),N.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375}),N.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=>N.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},N.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"}),N.createElement("rect",{x:12.5,y:9.375,width:7.5,height:1.875,rx:.9375})),Ws=e=>N.createElement("svg",{width:18,height:19,viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg",...e},N.createElement("g",{clipPath:"url(#clip0)"},N.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"})),N.createElement("defs",null,N.createElement("clipPath",{id:"clip0"},N.createElement("rect",{width:18,height:18,transform:"translate(0 0.5)"})))),ji=e=>N.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",...e},N.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 Hs(){return on||(on=1,Kt=e=>encodeURIComponent(e).replace(/[!'()*]/g,c=>`%${c.charCodeAt(0).toString(16).toUpperCase()}`)),Kt}var Wt,sn;function Ys(){if(sn)return Wt;sn=1;var e="%[a-f0-9]{2}",c=new RegExp("("+e+")|([^%]+?)","gi"),o=new RegExp("("+e+")+","gi");function r(m,p){try{return[decodeURIComponent(m.join(""))]}catch{}if(m.length===1)return m;p=p||1;var s=m.slice(0,p),i=m.slice(p);return Array.prototype.concat.call([],r(s),r(i))}function y(m){try{return decodeURIComponent(m)}catch{for(var p=m.match(c)||[],s=1;s<p.length;s++)m=r(p,s).join(""),p=m.match(c)||[];return m}}function x(m){for(var p={"%FE%FF":"��","%FF%FE":"��"},s=o.exec(m);s;){try{p[s[0]]=decodeURIComponent(s[0])}catch{var i=y(s[0]);i!==s[0]&&(p[s[0]]=i)}s=o.exec(m)}p["%C2"]="�";for(var n=Object.keys(p),S=0;S<n.length;S++){var a=n[S];m=m.replace(new RegExp(a,"g"),p[a])}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 x(m)}},Wt}var Ht,an;function Gs(){return an||(an=1,Ht=(e,c)=>{if(!(typeof e=="string"&&typeof c=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(c==="")return[e];const o=e.indexOf(c);return o===-1?[e]:[e.slice(0,o),e.slice(o+c.length)]}),Ht}var Yt,ln;function Zs(){return ln||(ln=1,Yt=function(e,c){for(var o={},r=Object.keys(e),y=Array.isArray(c),x=0;x<r.length;x++){var m=r[x],p=e[m];(y?c.indexOf(m)!==-1:c(m,p,e))&&(o[m]=p)}return o}),Yt}var cn;function Qs(){return cn||(cn=1,function(e){const c=Hs(),o=Ys(),r=Gs(),y=Zs(),x=g=>g==null;function m(g){switch(g.arrayFormat){case"index":return f=>(h,w)=>{const T=h.length;return w===void 0||g.skipNull&&w===null||g.skipEmptyString&&w===""?h:w===null?[...h,[i(f,g),"[",T,"]"].join("")]:[...h,[i(f,g),"[",i(T,g),"]=",i(w,g)].join("")]};case"bracket":return f=>(h,w)=>w===void 0||g.skipNull&&w===null||g.skipEmptyString&&w===""?h:w===null?[...h,[i(f,g),"[]"].join("")]:[...h,[i(f,g),"[]=",i(w,g)].join("")];case"comma":case"separator":return f=>(h,w)=>w==null||w.length===0?h:h.length===0?[[i(f,g),"=",i(w,g)].join("")]:[[h,i(w,g)].join(g.arrayFormatSeparator)];default:return f=>(h,w)=>w===void 0||g.skipNull&&w===null||g.skipEmptyString&&w===""?h:w===null?[...h,i(f,g)]:[...h,[i(f,g),"=",i(w,g)].join("")]}}function p(g){let f;switch(g.arrayFormat){case"index":return(h,w,T)=>{if(f=/\[(\d*)\]$/.exec(h),h=h.replace(/\[\d*\]$/,""),!f){T[h]=w;return}T[h]===void 0&&(T[h]={}),T[h][f[1]]=w};case"bracket":return(h,w,T)=>{if(f=/(\[\])$/.exec(h),h=h.replace(/\[\]$/,""),!f){T[h]=w;return}if(T[h]===void 0){T[h]=[w];return}T[h]=[].concat(T[h],w)};case"comma":case"separator":return(h,w,T)=>{const A=typeof w=="string"&&w.includes(g.arrayFormatSeparator),k=typeof w=="string"&&!A&&n(w,g).includes(g.arrayFormatSeparator);w=k?n(w,g):w;const I=A||k?w.split(g.arrayFormatSeparator).map(D=>n(D,g)):w===null?w:n(w,g);T[h]=I};default:return(h,w,T)=>{if(T[h]===void 0){T[h]=w;return}T[h]=[].concat(T[h],w)}}}function s(g){if(typeof g!="string"||g.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function i(g,f){return f.encode?f.strict?c(g):encodeURIComponent(g):g}function n(g,f){return f.decode?o(g):g}function S(g){return Array.isArray(g)?g.sort():typeof g=="object"?S(Object.keys(g)).sort((f,h)=>Number(f)-Number(h)).map(f=>g[f]):g}function a(g){const f=g.indexOf("#");return f!==-1&&(g=g.slice(0,f)),g}function l(g){let f="";const h=g.indexOf("#");return h!==-1&&(f=g.slice(h)),f}function u(g){g=a(g);const f=g.indexOf("?");return f===-1?"":g.slice(f+1)}function d(g,f){return f.parseNumbers&&!Number.isNaN(Number(g))&&typeof g=="string"&&g.trim()!==""?g=Number(g):f.parseBooleans&&g!==null&&(g.toLowerCase()==="true"||g.toLowerCase()==="false")&&(g=g.toLowerCase()==="true"),g}function v(g,f){f=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},f),s(f.arrayFormatSeparator);const h=p(f),w=Object.create(null);if(typeof g!="string"||(g=g.trim().replace(/^[?#&]/,""),!g))return w;for(const T of g.split("&")){if(T==="")continue;let[A,k]=r(f.decode?T.replace(/\+/g," "):T,"=");k=k===void 0?null:["comma","separator"].includes(f.arrayFormat)?k:n(k,f),h(n(A,f),k,w)}for(const T of Object.keys(w)){const A=w[T];if(typeof A=="object"&&A!==null)for(const k of Object.keys(A))A[k]=d(A[k],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 k=w[A];return k&&typeof k=="object"&&!Array.isArray(k)?T[A]=S(k):T[A]=k,T},Object.create(null))}e.extract=u,e.parse=v,e.stringify=(g,f)=>{if(!g)return"";f=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},f),s(f.arrayFormatSeparator);const h=k=>f.skipNull&&x(g[k])||f.skipEmptyString&&g[k]==="",w=m(f),T={};for(const k of Object.keys(g))h(k)||(T[k]=g[k]);const A=Object.keys(T);return f.sort!==!1&&A.sort(f.sort),A.map(k=>{const I=g[k];return I===void 0?"":I===null?i(k,f):Array.isArray(I)?I.reduce(w(k),[]).join("&"):i(k,f)+"="+i(I,f)}).filter(k=>k.length>0).join("&")},e.parseUrl=(g,f)=>{f=Object.assign({decode:!0},f);const[h,w]=r(g,"#");return Object.assign({url:h.split("?")[0]||"",query:v(u(g),f)},f&&f.parseFragmentIdentifier&&w?{fragmentIdentifier:n(w,f)}:{})},e.stringifyUrl=(g,f)=>{f=Object.assign({encode:!0,strict:!0},f);const h=a(g.url).split("?")[0]||"",w=e.extract(g.url),T=e.parse(w,{sort:!1}),A=Object.assign(T,g.query);let k=e.stringify(A,f);k&&(k=`?${k}`);let I=l(g.url);return g.fragmentIdentifier&&(I=`#${i(g.fragmentIdentifier,f)}`),`${h}${k}${I}`},e.pick=(g,f,h)=>{h=Object.assign({parseFragmentIdentifier:!0},h);const{url:w,query:T,fragmentIdentifier:A}=e.parseUrl(g,h);return e.stringifyUrl({url:w,query:y(T,f),fragmentIdentifier:A},h)},e.exclude=(g,f,h)=>{const w=Array.isArray(f)?T=>!f.includes(T):(T,A)=>!f(T,A);return e.pick(g,w,h)}}(zt)),zt}var Gt=Qs();const dt=no,Xs={parseNumbers:!1,parseBooleans:!1},Js={skipNull:!1,skipEmptyString:!1},ea=(e,c)=>{var o,r;const{navigateMode:y="push",parseOptions:x,stringifyOptions:m}={},p=Object.assign(Object.assign({},Xs),x),s=Object.assign(Object.assign({},Js),m),i=dt.useLocation(),n=(o=dt.useHistory)===null||o===void 0?void 0:o.call(dt),S=(r=dt.useNavigate)===null||r===void 0?void 0:r.call(dt),a=io(),l=N.useRef(typeof e=="function"?e():e||{}),u=N.useMemo(()=>Gt.parse(i.search,p),[i.search]),d=N.useMemo(()=>Object.assign(Object.assign({},l.current),u),[u]);return[d,We(g=>{const f=typeof g=="function"?g(d):g;a(),n&&n[y]({hash:i.hash,search:Gt.stringify(Object.assign(Object.assign({},u),f),s)||"?"},i.state),S&&S({hash:i.hash,search:Gt.stringify(Object.assign(Object.assign({},u),f),s)||"?"},{replace:y==="replace",state:i.state})})]};var ht={exports:{}},ta=ht.exports,un;function ra(){return un||(un=1,function(e,c){(function(o,r){var y="1.0.40",x="",m="?",p="function",s="undefined",i="object",n="string",S="major",a="model",l="name",u="type",d="vendor",v="version",g="architecture",f="console",h="mobile",w="tablet",T="smarttv",A="wearable",k="embedded",I=500,D="Amazon",B="Apple",W="ASUS",G="BlackBerry",te="Browser",pe="Chrome",ne="Edge",re="Firefox",fe="Google",ye="Huawei",M="LG",q="Microsoft",H="Motorola",z="Opera",Y="Samsung",R="Sharp",E="Sony",P="Xiaomi",U="Zebra",F="Facebook",$="Chromium OS",Q="Mac OS",le=" Browser",de=function(O,_){var L={};for(var Z in O)_[Z]&&_[Z].length%2===0?L[Z]=_[Z].concat(O[Z]):L[Z]=O[Z];return L},me=function(O){for(var _={},L=0;L<O.length;L++)_[O[L].toUpperCase()]=O[L];return _},he=function(O,_){return typeof O===n?ve(_).indexOf(ve(O))!==-1:!1},ve=function(O){return O.toLowerCase()},Ce=function(O){return typeof O===n?O.replace(/[^\d\.]/g,x).split(".")[0]:r},xe=function(O,_){if(typeof O===n)return O=O.replace(/^\s\s*/,x),typeof _===s?O:O.substring(0,I)},be=function(O,_){for(var L=0,Z,ie,ue,ee,J,ge;L<_.length&&!J;){var Me=_[L],Le=_[L+1];for(Z=ie=0;Z<Me.length&&!J&&Me[Z];)if(J=Me[Z++].exec(O),J)for(ue=0;ue<Le.length;ue++)ge=J[++ie],ee=Le[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;L+=2}},se=function(O,_){for(var L in _)if(typeof _[L]===i&&_[L].length>0){for(var Z=0;Z<_[L].length;Z++)if(he(_[L][Z],O))return L===m?r:L}else if(he(_[L],O))return L===m?r:L;return _.hasOwnProperty("*")?_["*"]: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],[v,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,v],[/opios[\/ ]+([\w\.]+)/i],[v,[l,z+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[v,[l,z+" GX"]],[/\bopr\/([\w\.]+)/i],[v,[l,z]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[v,[l,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[v,[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,v],[/quark(?:pc)?\/([-\w\.]+)/i],[v,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[v,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[l,"UC"+te]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[v,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[v,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[v,[l,"Smart Lenovo "+te]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+te],v],[/\bfocus\/([\w\.]+)/i],[v,[l,re+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[l,z+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[l,z+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[l,"MIUI"+le]],[/fxios\/([\w\.-]+)/i],[v,[l,re]],[/\bqihoobrowser\/?([\w\.]*)/i],[v,[l,"360"]],[/\b(qq)\/([\w\.]+)/i],[[l,/(.+)/,"$1Browser"],v],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1"+le],v],[/samsungbrowser\/([\w\.]+)/i],[v,[l,Y+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[v,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[l,v],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[l],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[v,l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,F],v],[/(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,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[v,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[l,pe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,pe+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[l,"Android "+te]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,v],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[v,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[v,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[v,se,oe]],[/(webkit|khtml)\/([\w\.]+)/i],[l,v],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],v],[/(wolvic|librewolf)\/([\w\.]+)/i],[l,v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[l,re+" 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,[v,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,ve]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,x,ve]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,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],[a,[d,Y],[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],[a,[d,Y],[u,h]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[a,[d,B],[u,h]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[a,[d,B],[u,w]],[/(macintosh);/i],[a,[d,B]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[a,[d,R],[u,h]],[/(?:honor)([-\w ]+)[;\)]/i],[a,[d,"Honor"],[u,h]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[a,[d,ye],[u,w]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[a,[d,ye],[u,h]],[/\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],[[a,/_/g," "],[d,P],[u,h]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[a,/_/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],[a,[d,"OPPO"],[u,h]],[/\b(opd2\d{3}a?) bui/i],[a,[d,"OPPO"],[u,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[a,[d,"Vivo"],[u,h]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[a,[d,"Realme"],[u,h]],[/\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],[a,[d,H],[u,h]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[a,[d,H],[u,w]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[a,[d,M],[u,w]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[a,[d,M],[u,h]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[a,[d,"Lenovo"],[u,w]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[a,/_/g," "],[d,"Nokia"],[u,h]],[/(pixel c)\b/i],[a,[d,fe],[u,w]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[a,[d,fe],[u,h]],[/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],[a,[d,E],[u,h]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[a,"Xperia Tablet"],[d,E],[u,w]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[a,[d,"OnePlus"],[u,h]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[a,[d,D],[u,w]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[a,/(.+)/g,"Fire Phone $1"],[d,D],[u,h]],[/(playbook);[-\w\),; ]+(rim)/i],[a,d,[u,w]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[a,[d,G],[u,h]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[a,[d,W],[u,w]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[a,[d,W],[u,h]],[/(nexus 9)/i],[a,[d,"HTC"],[u,w]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[a,/_/g," "],[u,h]],[/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],[a,[d,"TCL"],[u,w]],[/(itel) ((\w+))/i],[[d,ve],a,[u,se,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[a,[d,"Acer"],[u,w]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[a,[d,"Meizu"],[u,h]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[a,[d,"Ulefone"],[u,h]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[a,[d,"Energizer"],[u,h]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[a,[d,"Cat"],[u,h]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[a,[d,"Smartfren"],[u,h]],[/droid.+; (a(?:015|06[35]|142p?))/i],[a,[d,"Nothing"],[u,h]],[/(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,a,[u,h]],[/(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,a,[u,w]],[/(surface duo)/i],[a,[d,q],[u,w]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[a,[d,"Fairphone"],[u,h]],[/(u304aa)/i],[a,[d,"AT&T"],[u,h]],[/\bsie-(\w*)/i],[a,[d,"Siemens"],[u,h]],[/\b(rct\w+) b/i],[a,[d,"RCA"],[u,w]],[/\b(venue[\d ]{2,7}) b/i],[a,[d,"Dell"],[u,w]],[/\b(q(?:mv|ta)\w+) b/i],[a,[d,"Verizon"],[u,w]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[a,[d,"Barnes & Noble"],[u,w]],[/\b(tm\d{3}\w+) b/i],[a,[d,"NuVision"],[u,w]],[/\b(k88) b/i],[a,[d,"ZTE"],[u,w]],[/\b(nx\d{3}j) b/i],[a,[d,"ZTE"],[u,h]],[/\b(gen\d{3}) b.+49h/i],[a,[d,"Swiss"],[u,h]],[/\b(zur\d{3}) b/i],[a,[d,"Swiss"],[u,w]],[/\b((zeki)?tb.*\b) b/i],[a,[d,"Zeki"],[u,w]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],a,[u,w]],[/\b(ns-?\w{0,9}) b/i],[a,[d,"Insignia"],[u,w]],[/\b((nxa|next)-?\w{0,9}) b/i],[a,[d,"NextBook"],[u,w]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],a,[u,h]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],a,[u,h]],[/\b(ph-1) /i],[a,[d,"Essential"],[u,h]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[a,[d,"Envizen"],[u,w]],[/\b(trio[-\w\. ]+) b/i],[a,[d,"MachSpeed"],[u,w]],[/\btu_(1491) b/i],[a,[d,"Rotor"],[u,w]],[/(shield[\w ]+) b/i],[a,[d,"Nvidia"],[u,w]],[/(sprint) (\w+)/i],[d,a,[u,h]],[/(kin\.[onetw]{3})/i],[[a,/\./g," "],[d,q],[u,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[a,[d,U],[u,w]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[a,[d,U],[u,h]],[/smart-tv.+(samsung)/i],[d,[u,T]],[/hbbtv.+maple;(\d+)/i],[[a,/^/,"SmartTV"],[d,Y],[u,T]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,M],[u,T]],[/(apple) ?tv/i],[d,[a,B+" TV"],[u,T]],[/crkey/i],[[a,pe+"cast"],[d,fe],[u,T]],[/droid.+aft(\w+)( bui|\))/i],[a,[d,D],[u,T]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[a,[d,R],[u,T]],[/(bravia[\w ]+)( bui|\))/i],[a,[d,E],[u,T]],[/(mitv-\w{5}) bui/i],[a,[d,P],[u,T]],[/Hbbtv.*(technisat) (.*);/i],[d,a,[u,T]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,xe],[a,xe],[u,T]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[u,T]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,a,[u,f]],[/droid.+; (shield) bui/i],[a,[d,"Nvidia"],[u,f]],[/(playstation [345portablevi]+)/i],[a,[d,E],[u,f]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[a,[d,q],[u,f]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[a,[d,Y],[u,A]],[/((pebble))app/i],[d,a,[u,A]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[a,[d,B],[u,A]],[/droid.+; (glass) \d/i],[a,[d,fe],[u,A]],[/droid.+; (wt63?0{2,3})\)/i],[a,[d,U],[u,A]],[/droid.+; (glass) \d/i],[a,[d,fe],[u,A]],[/(pico) (4|neo3(?: link|pro)?)/i],[d,a,[u,A]],[/; (quest( \d| pro)?)/i],[a,[d,F],[u,A]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[u,k]],[/(aeobc)\b/i],[a,[d,D],[u,k]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[a,[u,h]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[a,[u,w]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[u,w]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[u,h]],[/(android[-\w\. ]{0,9});.+buil/i],[a,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[l,ne+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[l,v],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[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,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,v],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[l,[v,se,X]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[v,se,X],[l,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,Q],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[v,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,v],[/\(bb(10);/i],[v,[l,G]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[l,re+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[v,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[v,[l,pe+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,$],v],[/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,v],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,v]]},K=function(O,_){if(typeof O===i&&(_=O,O=r),!(this instanceof K))return new K(O,_).getResult();var L=typeof o!==s&&o.navigator?o.navigator:r,Z=O||(L&&L.userAgent?L.userAgent:x),ie=L&&L.userAgentData?L.userAgentData:r,ue=_?de(V,_):V,ee=L&&L.userAgent==Z;return this.getBrowser=function(){var J={};return J[l]=r,J[v]=r,be.call(J,Z,ue.browser),J[S]=Ce(J[v]),ee&&L&&L.brave&&typeof L.brave.isBrave==p&&(J[l]="Brave"),J},this.getCPU=function(){var J={};return J[g]=r,be.call(J,Z,ue.cpu),J},this.getDevice=function(){var J={};return J[d]=r,J[a]=r,J[u]=r,be.call(J,Z,ue.device),ee&&!J[u]&&ie&&ie.mobile&&(J[u]=h),ee&&J[a]=="Macintosh"&&L&&typeof L.standalone!==s&&L.maxTouchPoints&&L.maxTouchPoints>2&&(J[a]="iPad",J[u]=w),J},this.getEngine=function(){var J={};return J[l]=r,J[v]=r,be.call(J,Z,ue.engine),J},this.getOS=function(){var J={};return J[l]=r,J[v]=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>I?xe(J,I):J,this},this.setUA(Z),this};K.VERSION=y,K.BROWSER=me([l,v,S]),K.CPU=me([g]),K.DEVICE=me([a,d,u,f,h,T,w,A,k]),K.ENGINE=K.OS=me([l,v]),e.exports&&(c=e.exports=K),c.UAParser=K;var C=typeof o!==s&&(o.jQuery||o.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 _=j.getResult();for(var L in _)C.ua[L]=_[L]}}})(typeof window=="object"?window:ta)}(ht,ht.exports)),ht.exports}var na=ra();const Zt=Gn(na);function ia({user:e,sessionUser:c}){const o=He(()=>(e?.passports||[])?.find(r=>r.name===c.role),[e?.passports,c?.role]);return t.jsxs(ae,{sx:{display:"flex",alignItems:"center",gap:1},children:[t.jsx(Zn,{size:40,variant:"circle",shape:"circle",src:c.avatar,did:c.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($e,{title:c.fullName,children:t.jsx(we,{sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1},children:c.fullName})}),t.jsx(oo,{label:o?.title||o?.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($e,{title:c.email,children:t.jsx(we,{variant:"body2",color:"grey",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:c.email})})]})]})}const oa={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"}},Pi="Reserved IP",dn="ip-region-cache";async function sa(e){const c=`https://ipapi.co/${e}/json/`,o=await(await fetch(c)).json();let r="";return o.error?o.reserved&&(r=Pi):r=[o.country_name,o.region,o.city].filter(Boolean).join("/"),r}async function aa(e){const c=`https://api.ip.sb/geoip/${e}`,o=await(await fetch(c)).json();let r="";return o.error?o.reserved&&(r=Pi):r=[o.country,o.region,o.city].filter(Boolean).join("/"),r}async function la(e){let c="",o={};try{const r=localStorage.getItem(dn);r&&(o=JSON.parse(r))}catch{o={}}if(o[e])c=o[e];else{try{c=await aa(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!c)try{c=await sa(e)}catch{console.warn("Fail to get ip region from ip-api.co")}}if(c){const r=Object.keys(o);r.length>100&&delete o[r[0]],o[e]&&delete o[e],o[e]=c,localStorage.setItem(dn,JSON.stringify(o))}return c}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"},ca=new co({concurrency:1}),ua=N.memo(({userSession:e,isMobile:c=!1})=>{const o=ot({loading:!0,ipRegion:""}),{t:r}=Ee();return N.useEffect(()=>{ca.add(async()=>{try{o.ipRegion=await la(e.lastLoginIp)}finally{o.loading=!1}})},[o,e.lastLoginIp]),t.jsx(ae,{...c&&{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:1,flexWrap:"wrap"},children:o.ipRegion?t.jsxs(t.Fragment,{children:[t.jsx(we,{variant:"body2",children:o.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")}),o.loading?t.jsx(we,{variant:"body2",color:"grey",sx:{textAlign:"center"},children:t.jsx(Qe,{size:12,color:"inherit"})}):null]})})});function da({user:e,showAction:c=!0,showUser:o=!0,getUserSessions:r,showOffline:y=!1}){const x=ot({status:"online",page:1,pageSize:10}),m=ot({online:0,expired:0,offline:0}),p=so(),{locale:s}=Ee(),i=is({key:"md"}),n=Qn(I=>I.breakpoints.down("lg")),{confirmApi:S,confirmHolder:a}=Lr(),l=We((I,D={})=>ao(oa,I,s,"en",D)),u=We(async()=>{const I=await r({page:x.page,pageSize:x.pageSize,status:x.status}),D=I?.paging?.total||0;return m[x.status]=D,{total:D,list:I?.list||[]}});Xn(async()=>{const I=await r({page:1,pageSize:1,status:"expired"});m.expired=I?.paging?.total||0;const D=await r({page:1,pageSize:1,status:"offline"});m.offline=D?.paging?.total||0});const d=lo(u,{refreshDeps:[x.status,x.page,x.pageSize]}),v=He(()=>d.data?.list||[],[d.data?.list]),g=He(()=>{const I=x.status;return I==="online"?m[I]<=1:m[I]===0},[v,p]),f=He(()=>Yr({},i?pn:{}),[i]),h=We(({visitorId:I})=>{S.open({title:l("logoutThisSession"),content:l("logoutThisSessionConfirm"),confirmButtonText:l("confirm"),confirmButtonProps:{color:"error"},cancelButtonText:l("cancel"),onConfirm:async()=>{await Zr.user.logout({visitorId:I,includeFederated:!0});const{page:D=0}=x,{list:B=[]}=d.data||{},W=B.length||0;D>1&&W===1&&(x.page=Math.max(D-1,1)),d.refresh(),S.close()}})}),w=We(()=>{S.open({title:l("logoutAllSession",{type:l(x.status)}),content:l("logoutAllSessionConfirm",{type:l(x.status)}),confirmButtonText:l("confirm"),confirmButtonProps:{color:"error"},cancelButtonText:l("cancel"),onConfirm:async()=>{await Zr.user.logout({status:x.status,visitorId:p,includeFederated:!0}),x.page=1,d.refresh(),S.close()}})}),T=[];c&&T.push(t.jsx($e,{title:l("logoutAllTips",{type:l(x.status)}),children:t.jsx(bt,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:w,disabled:g,children:l("logoutAll",{type:l(x.status)})})},"logoutAll"));const A=He(()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600,page:x.page-1,rowsPerPage:x.pageSize,count:d.data?.total||0}),[d.data?.total,x.page,x.pageSize]),k=[{label:l("platform"),name:"platform",options:{customBodyRenderLite:I=>{const D=v[I],B=fn(D?.ua);return t.jsx(ae,{sx:f,children:[B.os?.name,B.os?.version].filter(Boolean).join("/")||l("unknown")})}}},{label:l("deviceType"),name:"deviceType",options:{customBodyRenderLite:I=>{const D=v[I],B=fn(D?.ua);return t.jsx(ae,{sx:f,children:[B.browser?.name,B.browser?.version].filter(Boolean).join("/")||l("unknown")})}}},{label:l("walletOS"),name:"walletOS",options:{customBodyRenderLite:I=>{const D=v[I];return t.jsx(ae,{sx:f,children:D.extra?.walletOS||l("unknown")})}}},o&&{label:l("user"),name:"user",options:{customBodyRenderLite:I=>{const D=v[I];return t.jsx(ae,{sx:Yr({minWidth:150,maxWidth:250},i?pn:{}),children:t.jsx(ia,{sessionUser:D.user,user:e})})}}},{label:l("createdAt"),name:"createdAt",options:{customBodyRenderLite:I=>{const D=v[I];return t.jsx(ae,{sx:f,children:D.createdAt?t.jsx(yt,{value:D.createdAt,relativeRange:3*86400*1e3,locale:s}):l("unknown")})}}},!y&&{label:l("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:I=>{const D=v[I];return t.jsx(ae,{sx:f,children:D.status==="expired"?l("expired"):t.jsx(yt,{value:D.updatedAt,relativeRange:3*86400*1e3,locale:s})})}}},{label:l("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:I=>{const D=v[I];return t.jsx(ua,{userSession:D,isMobile:i})}}},c&&{label:l("actions"),name:"actions",options:{customBodyRenderLite:I=>{const D=v[I];return t.jsx(ae,{sx:f,children:t.jsx(bt,{sx:{whiteSpace:"nowrap",fontSize:"12px !important",lineHeight:"1.25",px:1},disabled:p===D.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>h({visitorId:D.visitorId}),children:D.status==="expired"?l("remove"):p===D.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:I=>`${I.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:[a,t.jsx(Br,{count:d.data?.total||0,locale:s,data:v,columns:k,customButtons:T,options:A,loading:d.loading,className:"pc-user-sessions-table",title:t.jsxs(os,{row:!0,sx:{lineHeight:1,ml:1},onChange:I=>{x.status=I.target.value},children:[t.jsx(Dt,{value:"online",control:t.jsx($t,{size:"small",sx:{lineHeight:1,fontSize:0},checked:x.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(Dt,{value:"expired",control:t.jsx($t,{size:"small",sx:{lineHeight:1,fontSize:0},checked:x.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,")"]})]})}),y?t.jsx(Dt,{value:"offline",control:t.jsx($t,{size:"small",sx:{lineHeight:1,fontSize:0},checked:x.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:I=>{x.page=I.page+1,x.pageSize=I.rowsPerPage}})]})}var Qt={exports:{}},Xt={},mn;function Di(){if(mn)return Xt;mn=1;function e(f){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},e(f)}function c(f,h,w){return Object.defineProperty(f,"prototype",{writable:!1}),f}function o(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}function r(f,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(h&&h.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),h&&y(f,h)}function y(f,h){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(T,A){return T.__proto__=A,T},y(f,h)}function x(f){var h=s();return function(){var T=i(f),A;if(h){var k=i(this).constructor;A=Reflect.construct(T,arguments,k)}else A=T.apply(this,arguments);return m(this,A)}}function m(f,h){if(h&&(e(h)==="object"||typeof h=="function"))return h;if(h!==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 s(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function i(f){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(w){return w.__proto__||Object.getPrototypeOf(w)},i(f)}var n={},S,a;function l(f,h,w){w||(w=Error);function T(k,I,D){return typeof h=="string"?h:h(k,I,D)}var A=function(k){r(D,k);var I=x(D);function D(B,W,G){var te;return o(this,D),te=I.call(this,T(B,W,G)),te.code=f,te}return c(D)}(w);n[f]=A}function u(f,h){if(Array.isArray(f)){var w=f.length;return f=f.map(function(T){return String(T)}),w>2?"one of ".concat(h," ").concat(f.slice(0,w-1).join(", "),", or ")+f[w-1]:w===2?"one of ".concat(h," ").concat(f[0]," or ").concat(f[1]):"of ".concat(h," ").concat(f[0])}else return"of ".concat(h," ").concat(String(f))}function d(f,h,w){return f.substr(0,h.length)===h}function v(f,h,w){return(w===void 0||w>f.length)&&(w=f.length),f.substring(w-h.length,w)===h}function g(f,h,w){return typeof w!="number"&&(w=0),w+h.length>f.length?!1:f.indexOf(h,w)!==-1}return l("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),l("ERR_INVALID_ARG_TYPE",function(f,h,w){S===void 0&&(S=kr()),S(typeof f=="string","'name' must be a string");var T;typeof h=="string"&&d(h,"not ")?(T="must not be",h=h.replace(/^not /,"")):T="must be";var A;if(v(f," argument"))A="The ".concat(f," ").concat(T," ").concat(u(h,"type"));else{var k=g(f,".")?"property":"argument";A='The "'.concat(f,'" ').concat(k," ").concat(T," ").concat(u(h,"type"))}return A+=". Received type ".concat(e(w)),A},TypeError),l("ERR_INVALID_ARG_VALUE",function(f,h){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";a===void 0&&(a=vt());var T=a.inspect(h);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,h,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(h,'"')+" function but got ".concat(T,".")},TypeError),l("ERR_MISSING_ARGS",function(){for(var f=arguments.length,h=new Array(f),w=0;w<f;w++)h[w]=arguments[w];S===void 0&&(S=kr()),S(h.length>0,"At least one arg needs to be specified");var T="The ",A=h.length;switch(h=h.map(function(k){return'"'.concat(k,'"')}),A){case 1:T+="".concat(h[0]," argument");break;case 2:T+="".concat(h[0]," and ").concat(h[1]," arguments");break;default:T+=h.slice(0,A-1).join(", "),T+=", and ".concat(h[A-1]," arguments");break}return"".concat(T," must be specified")},TypeError),Xt.codes=n,Xt}var Jt,hn;function fa(){if(hn)return Jt;hn=1;function e(M,q){var H=Object.keys(M);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(M);q&&(z=z.filter(function(Y){return Object.getOwnPropertyDescriptor(M,Y).enumerable})),H.push.apply(H,z)}return H}function c(M){for(var q=1;q<arguments.length;q++){var H=arguments[q]!=null?arguments[q]:{};q%2?e(Object(H),!0).forEach(function(z){o(M,z,H[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(H)):e(Object(H)).forEach(function(z){Object.defineProperty(M,z,Object.getOwnPropertyDescriptor(H,z))})}return M}function o(M,q,H){return q=m(q),q in M?Object.defineProperty(M,q,{value:H,enumerable:!0,configurable:!0,writable:!0}):M[q]=H,M}function r(M,q){if(!(M instanceof q))throw new TypeError("Cannot call a class as a function")}function y(M,q){for(var H=0;H<q.length;H++){var z=q[H];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(M,m(z.key),z)}}function x(M,q,H){return q&&y(M.prototype,q),Object.defineProperty(M,"prototype",{writable:!1}),M}function m(M){var q=p(M,"string");return f(q)==="symbol"?q:String(q)}function p(M,q){if(f(M)!=="object"||M===null)return M;var H=M[Symbol.toPrimitive];if(H!==void 0){var z=H.call(M,q);if(f(z)!=="object")return z;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(M)}function s(M,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(q&&q.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),q&&v(M,q)}function i(M){var q=u();return function(){var z=g(M),Y;if(q){var R=g(this).constructor;Y=Reflect.construct(z,arguments,R)}else Y=z.apply(this,arguments);return n(this,Y)}}function n(M,q){if(q&&(f(q)==="object"||typeof q=="function"))return q;if(q!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return S(M)}function S(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function a(M){var q=typeof Map=="function"?new Map:void 0;return a=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 q<"u"){if(q.has(z))return q.get(z);q.set(z,Y)}function Y(){return l(z,arguments,g(this).constructor)}return Y.prototype=Object.create(z.prototype,{constructor:{value:Y,enumerable:!1,writable:!0,configurable:!0}}),v(Y,z)},a(M)}function l(M,q,H){return u()?l=Reflect.construct.bind():l=function(Y,R,E){var P=[null];P.push.apply(P,R);var U=Function.bind.apply(Y,P),F=new U;return E&&v(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(M){return Function.toString.call(M).indexOf("[native code]")!==-1}function v(M,q){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(z,Y){return z.__proto__=Y,z},v(M,q)}function g(M){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(H){return H.__proto__||Object.getPrototypeOf(H)},g(M)}function f(M){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},f(M)}var h=vt(),w=h.inspect,T=Di(),A=T.codes.ERR_INVALID_ARG_TYPE;function k(M,q,H){return(H===void 0||H>M.length)&&(H=M.length),M.substring(H-q.length,H)===q}function I(M,q){if(q=Math.floor(q),M.length==0||q==0)return"";var H=M.length*q;for(q=Math.floor(Math.log(q)/Math.log(2));q;)M+=M,q--;return M+=M.substring(0,H-M.length),M}var D="",B="",W="",G="",te={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:"},pe=10;function ne(M){var q=Object.keys(M),H=Object.create(Object.getPrototypeOf(M));return q.forEach(function(z){H[z]=M[z]}),Object.defineProperty(H,"message",{value:M.message}),H}function re(M){return w(M,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function fe(M,q,H){var z="",Y="",R=0,E="",P=!1,U=re(M),F=U.split(`
2
2
  `),$=re(q).split(`
3
3
  `),Q=0,le="";if(H==="strictEqual"&&f(M)==="object"&&f(q)==="object"&&M!==null&&q!==null&&(H="strictEqualObject"),F.length===1&&$.length===1&&F[0]!==$[0]){var de=F[0].length+$[0].length;if(de<=pe){if((f(M)!=="object"||M===null)&&(f(q)!=="object"||q===null)&&(M!==0||q!==0))return"".concat(te[H],`
4
4
 
@@ -1,4 +1,4 @@
1
- import{dD as b,r as o,U as d,j as e,dE as c,b5 as C,dF as E,bu as I,dG as z,dc as u,dH as A}from"./index--ktJL2Tx.js";import{B as L}from"./ButtonGroup-CPPdPq8H.js";function P({...r}){const{size:m="medium",color:i="primary",menu:a=[],children:s=null,variant:p="contained",onClick:x=b,menuButtonProps:f={},...h}=r,[j,l]=o.useState(!1),n=o.useRef(null),g=Array.isArray(a)?a.map((t,B)=>o.isValidElement(t)?t:o.createElement(d,{...t,key:B})):a,y=()=>{l(t=>!t)},M=t=>{n.current&&n.current.contains(t.target)||l(!1)},k=t=>{t.target.closest(".MuiMenuItem-root")&&l(!1)};return e.jsxs(e.Fragment,{children:[e.jsxs(v,{variant:p,size:m,color:i,ref:n,...h,children:[typeof s=="function"?s():e.jsx(c,{onClick:x,color:i,children:s}),e.jsx(c,{onClick:y,color:i,...f,"aria-label":"more functions",children:e.jsx(C,{})})]}),e.jsx(w,{open:j,anchorEl:n.current,placement:"bottom-end",disablePortal:!1,children:e.jsx(E,{children:e.jsx(I,{onClickAway:M,children:e.jsx(z,{onClick:k,children:g})})})})]})}P.Item=d;const v=u(L)`
1
+ import{dD as b,r as o,U as d,j as e,dE as c,b5 as C,dF as E,bu as I,dG as z,dc as u,dH as A}from"./index-BSnpJGoE.js";import{B as L}from"./ButtonGroup-gQqTXUWb.js";function P({...r}){const{size:m="medium",color:i="primary",menu:a=[],children:s=null,variant:p="contained",onClick:x=b,menuButtonProps:f={},...h}=r,[j,l]=o.useState(!1),n=o.useRef(null),g=Array.isArray(a)?a.map((t,B)=>o.isValidElement(t)?t:o.createElement(d,{...t,key:B})):a,y=()=>{l(t=>!t)},M=t=>{n.current&&n.current.contains(t.target)||l(!1)},k=t=>{t.target.closest(".MuiMenuItem-root")&&l(!1)};return e.jsxs(e.Fragment,{children:[e.jsxs(v,{variant:p,size:m,color:i,ref:n,...h,children:[typeof s=="function"?s():e.jsx(c,{onClick:x,color:i,children:s}),e.jsx(c,{onClick:y,color:i,...f,"aria-label":"more functions",children:e.jsx(C,{})})]}),e.jsx(w,{open:j,anchorEl:n.current,placement:"bottom-end",disablePortal:!1,children:e.jsx(E,{children:e.jsx(I,{onClickAway:M,children:e.jsx(z,{onClick:k,children:g})})})})]})}P.Item=d;const v=u(L)`
2
2
  > .MuiButtonBase-root:last-of-type {
3
3
  min-width: 2em;
4
4
  padding-left: 0;
@@ -1,4 +1,4 @@
1
- import{aG as ce,j as e,r as W,aV as A,N as j,T as ue,s as G,o as _,hs as de,bd as me,bn as te,m as re,fI as ie,f9 as ne,aP as se,cr as m,H as k,ht as B,t as x,hu as $,aU as J,Q as p,az as fe,v as L,z as he,y as xe,E as pe,g as je,by as ve}from"./index--ktJL2Tx.js";import{T as ge}from"./index-BMN0G3TX.js";import{u as ae,C as f}from"./index.esm-Dqj7a_ya.js";import{A as be,a as ye,b as we,c as Re}from"./collapse-CYNTI7Qd.js";import{u as oe}from"./blocklet-DXJr-xZq.js";import{S as Q}from"./Switch-Ce-0Lc8M.js";const Te=ce(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}));function h({title:c,desc:n="",link:t="",sectionLeftSx:u={width:"384px"},sectionRightSx:v={},children:d,...C}){const R=W.useMemo(()=>t?n?n.replace(/<b>(.*?)<\/b>/g,`<a href="${t}" target="_blank" rel="noopener noreferrer">$1</a>`):"":n,[n,t]);return e.jsx(Se,{...C,children:e.jsxs(A,{className:"section",direction:{sm:"column",md:"row"},sx:{gap:{xs:3,md:6}},children:[e.jsxs(j,{className:"section-left",sx:u,children:[e.jsx(ue,{className:"section-title",children:c}),e.jsx(j,{className:"section-desc",sx:{color:"text.secondary"},dangerouslySetInnerHTML:{__html:R}})]}),e.jsx(A,{className:"section-content",direction:"column",sx:{width:"100%",...v},children:d})]})})}h.propTypes={title:_.string.isRequired,children:_.node.isRequired,desc:_.string,sectionLeftSx:_.object,sectionRightSx:_.object,link:_.node};const Se=G(j)`
1
+ import{aG as ce,j as e,r as W,aV as A,N as j,T as ue,s as G,o as _,hs as de,bd as me,bn as te,m as re,fI as ie,f9 as ne,aP as se,cr as m,H as k,ht as B,t as x,hu as $,aU as J,Q as p,az as fe,v as L,z as he,y as xe,E as pe,g as je,by as ve}from"./index-BSnpJGoE.js";import{T as ge}from"./index-CWJxufpA.js";import{u as ae,C as f}from"./index.esm-D_e-DGUA.js";import{A as be,a as ye,b as we,c as Re}from"./collapse-DP5fcjjp.js";import{u as oe}from"./blocklet-C7W1PCuU.js";import{S as Q}from"./Switch-CnG_p51w.js";const Te=ce(e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25"}));function h({title:c,desc:n="",link:t="",sectionLeftSx:u={width:"384px"},sectionRightSx:v={},children:d,...C}){const R=W.useMemo(()=>t?n?n.replace(/<b>(.*?)<\/b>/g,`<a href="${t}" target="_blank" rel="noopener noreferrer">$1</a>`):"":n,[n,t]);return e.jsx(Se,{...C,children:e.jsxs(A,{className:"section",direction:{sm:"column",md:"row"},sx:{gap:{xs:3,md:6}},children:[e.jsxs(j,{className:"section-left",sx:u,children:[e.jsx(ue,{className:"section-title",children:c}),e.jsx(j,{className:"section-desc",sx:{color:"text.secondary"},dangerouslySetInnerHTML:{__html:R}})]}),e.jsx(A,{className:"section-content",direction:"column",sx:{width:"100%",...v},children:d})]})})}h.propTypes={title:_.string.isRequired,children:_.node.isRequired,desc:_.string,sectionLeftSx:_.object,sectionRightSx:_.object,link:_.node};const Se=G(j)`
2
2
  display: flex;
3
3
  align-items: flex-start;
4
4
  width: 100%;
@@ -1,4 +1,4 @@
1
- import{aG as Ge,j as e,bn as gt,r as g,by as X,bf as H,H as q,E as D,h as xt,o as d,i as te,au as bt,az as jt,N as y,T as $,m as Q,eK as Fe,Q as Pe,ib as Ye,bj as Te,aU as Ie,V as Ee,dE as we,b3 as Ue,b1 as Ae,C as Xe,f as Qe,eY as Je,aP as De,W as yt,at as Ze,ic as et,v as Oe,e_ as tt,fo as ye,fE as st,dy as St,s as ie,ag as pe,G as qe,av as vt,id as Ct,ie as Nt,$ as nt,ig as wt,ih as Rt,ii as Tt,ij as It,P as Et,bt as it,M as At,R as Dt,S as Ot,U as $e,ik as Lt,a4 as kt}from"./index--ktJL2Tx.js";import{d as Ft,H as at,g as Pt}from"./index-DTRD5V4Z.js";import{R as _e,S as _t}from"./actions-DUHD3OYP.js";import{B as Bt}from"./index-BbU3n2Hk.js";import{S as me}from"./shorten-label-BsB05cbU.js";import{v as ot}from"./index-DYPal8XU.js";import{T as zt}from"./index-BMN0G3TX.js";import{R as Wt}from"./Refresh-BuspPECP.js";import{D as Mt,g as Kt}from"./traffic-D-aoJfLs.js";import{u as Ht}from"./use-mobile-DwZO5be8.js";import"./FilterList-DrVbs05B.js";import"./CSSTransition-CujxmWeH.js";import"./emotion-cache.browser.esm-BUnXReBA.js";import"./index-FTSHH2z1.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-B5cFAumu.js";import"./index-CPtXYlM0.js";import"./TableSearch-BezFlhKc.js";import"./Search-CveVLYRK.js";import"./Clear-ClQc69CC.js";import"./MoreVert-3Ril4BaF.js";import"./useLocalStorage-Bj7q_OT_.js";import"./url-evaluation-udVYSMO4.js";import"./get-safe-url-CkVD5JZ8.js";import"./ButtonGroup-CPPdPq8H.js";import"./getValidReactChildren-CutnuaBi.js";import"./permission-Bd240jHS.js";import"./index.esm-Dqj7a_ya.js";import"./collapse-CYNTI7Qd.js";import"./blocklet-DXJr-xZq.js";import"./Switch-Ce-0Lc8M.js";import"./iframe-d_LXZhpi.js";import"./ChevronLeft-BNoaRf3a.js";import"./ChevronRight-A_-fTRIz.js";import"./index-DBii9-f-.js";import"./base-chart-C8SmgApV.js";import"./index-Dv5txe8G.js";import"./AdapterDayjs-B4EEI1nK.js";import"./useThemeProps-GIAqgoE8.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?[H(I.dateRange[0]).toISOString(),H(I.dateRange[1]).toISOString()]:void 0},{dids:E,...k}=w;let B="";E&&E.includes("system")&&(B="system");const ae=E?E.filter(oe=>oe!=="system"):[],ne={...k,source:B,componentDids:ae},ee=await n.getNotificationSendLog({input:ne});return _(ne),x(ee.list),T(ee.paging),ee.list}catch(w){return 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?[H(I.dateRange[0]).toISOString(),H(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=H().startOf("day");return t.filter(n=>H(n.sendAt).isSame(s,"day")).length},ts=(t,s="")=>{if(s&&ke.includes(s)){const l=`${s}SendRecord`,x=te(t,l,[]);return je(x)}const n=te(t,"webhook",{}),r=Object.keys(n??{})??[];if(s&&r.includes(s)){const l=n[s]??[];return je(l)}const a={};return ke.forEach(l=>{const x=`${l}SendRecord`,u=te(t,x,[]),T=je(u);a[l]=T}),r.length>0&&r.forEach(l=>{const x=n[l]??[],u=je(x);a[l]=u}),a},Se=(t,s,n)=>{if(!Array.isArray(t))throw new Error("Invalid filterList or index");return t[n].splice(s,1),t},ve=(t,s)=>{if(!Array.isArray(s))throw new Error("filters must be an array");return s.length?!s.includes(t):!1},ss=t=>{switch(t){case D.NOTIFICATION_SEND_CHANNEL.WALLET:return"Wallet";case D.NOTIFICATION_SEND_CHANNEL.PUSH:return"Push Kit";case D.NOTIFICATION_SEND_CHANNEL.EMAIL:return"Email";case D.NOTIFICATION_SEND_CHANNEL.WEBHOOK:return"Webhook";default:return""}},ut=()=>({components:{MUIDataTableFilter:{styleOverrides:{header:{marginBottom:0,p:{margin:0}},root:{"& .MuiGrid-container":{marginTop:0,"& .MuiGrid-item":{paddingTop:0}}}}},MuiPopover:{styleOverrides:{root:{"&.MuiPopover-root":{"& .MuiPaper-root:has(.filter-container)":{width:"420px"}}}}}}});function se({config:t,enableTooltip:s=!0,showTitle:n=!1,children:r=null}){const{status:a,title:l="",sentTime:x="",reason:u=""}=t,T=[l,u].filter(Boolean).join(", ");return e.jsx(jt,{title:s?e.jsxs(e.Fragment,{children:[e.jsx($,{color:"inherit",sx:{fontSize:12},children:T}),e.jsx("span",{children:x})]}):null,arrow:!0,placement:"top",children:e.jsxs(y,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px"},children:[e.jsxs(y,{sx:{position:"relative",minHeight:14,minWidth:14,display:"flex",alignItems:"center",justifyContent:"center"},children:[e.jsx(y,{style:{opacity:.15},sx:{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:Le[a]}}),e.jsx(y,{sx:{position:"absolute",width:"55%",height:"55%",borderRadius:"50%",bgcolor:Le[a]}})]}),e.jsx($,{color:"inherit",sx:{fontSize:12},children:n?l:r})]})})}se.propTypes={config:d.object.isRequired,enableTooltip:d.bool,showTitle:d.bool,children:d.node};Ce.propTypes={list:d.array.isRequired,label:d.string.isRequired,onDelete:d.func};function Ce({list:t,label:s,onDelete:n=()=>{}}){const{t:r,locale:a}=Q();return e.jsxs(y,{sx:{display:"flex",gap:1,alignItems:"center"},children:[e.jsxs($,{children:[s,": "]}),t.map(l=>{const x=lt(r,a,{status:l});return e.jsx(Fe,{size:"small",label:e.jsx(y,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:e.jsx(se,{config:x,enableTooltip:!1,children:x.title})}),onDelete:u=>n(u,l)},l)})]})}ze.propTypes={filterList:d.array.isRequired,onChange:d.func.isRequired,index:d.number.isRequired,column:d.object.isRequired,filterValues:d.array.isRequired,label:d.string.isRequired,renderLabel:d.func.isRequired};function ze({filterList:t,onChange:s,index:n,column:r,filterValues:a,label:l,renderLabel:x}){return e.jsxs(Pe,{className:"filter-container",children:[e.jsx(Ye,{component:"legend",children:l}),e.jsx(Te,{row:!0,children:a.map(u=>e.jsx(Ie,{control:e.jsx(Ee,{checked:t[n].indexOf(u.value??u)>-1,onChange:T=>{const f=[...t];T.target.checked?f[n]=[...f[n],u.value??u]:f[n]=f[n].filter(v=>v!==(u.value??u)),s(f[n],n,r)},name:u.value??u}),label:e.jsx("span",{style:{display:"flex",alignItems:"center"},children:x(u)})},u.value??u))})]})}function Re(t){return e.jsx(ze,{...t,renderLabel:s=>e.jsx(se,{enableTooltip:!1,config:{status:s.status},children:s.label})})}ce.propTypes={status:d.number.isRequired,updatedAt:d.string.isRequired,reason:d.string,channel:d.string,onResend:d.func};function ce({status:t,updatedAt:s,reason:n="",channel:r="wallet",onResend:a}){const{t:l,locale:x}=Q(),u=lt(l,x,{status:t,updatedAt:s,reason:n,channel:r});return e.jsxs(y,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(se,{config:u,showTitle:!0}),u.status!=="success"&&e.jsx(we,{className:"resend-btn",size:"small",startIcon:e.jsx(_e,{}),sx:{fontSize:12,color:"rgba(0, 0, 0, 0.87)",fontWeight:400,".MuiButton-startIcon":{mr:"2px"}},onClick:a,children:l("notification.resend")})]})}We.propTypes={value:d.array.isRequired,onChange:d.func};function We({value:t,onChange:s}){const{locale:n}=Q(),r=H().toDate(),[a,l]=g.useState(null),x=g.useCallback(f=>{l(a?null:f.currentTarget)},[a]),u=!!a,T=g.useCallback(f=>{if(!f.startDate||!f.endDate){q.error("Please select a date range");return}if(H(f.startDate).isAfter(f.endDate)||!H(f.startDate).isValid()||!H(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:Kt(r),onChange:T})})]})}Me.propTypes={itemComponent:d.elementType.isRequired};function Me({itemComponent:t,...s}){const{t:n}=Q();return!s?.filterList?.filter(a=>a.length).length?null:e.jsxs(y,{sx:{display:"flex",gap:1,alignItems:"center"},children:[e.jsx("div",{className:"toolbar-filter-title",children:n("notification.filter")}),e.jsx("div",{className:"toolbar-filter-content",children:e.jsx(Ft.TableFilterList,{...s,ItemComponent:t})})]})}function Ke({label:t,onDelete:s,canDelete:n=()=>!0,...r}){const a=s&&typeof s=="function"?s:void 0;let l=!0;return n&&typeof n=="function"&&(l=n({label:t,...r})),e.jsx(Fe,{label:t,variant:"outlined",...a&&l?{onDelete:a}:{}})}Ke.propTypes={label:d.string.isRequired,onDelete:d.func,canDelete:d.func};const ns=[{label:"Wallet",value:"app",checked:!0},{label:"Email",value:"email",checked:!0},{label:"Push Kit",value:"push",checked:!0},{label:"Webhook",value:"webhook",checked:!0}];pt.propTypes={loading:d.bool,onCancel:d.func,onConfirm:d.func};function pt({loading:t=!1,onCancel:s=()=>{},onConfirm:n=()=>{}}){const{t:r}=Q(),[a,l]=g.useState(ns),[x,u]=g.useState(!0),T=(v,C)=>{C.checked=v.target.checked;const F=a.map(_=>({..._,checked:_.value===C.value?C.checked:_.checked}));l(F)},f=v=>{v.stopPropagation(),n({channels:a.filter(C=>C.checked).map(C=>C.value),isResendFailedOnly:x})};return e.jsxs(y,{className:"resend-config",sx:{padding:"16px 24px"},children:[e.jsx($,{variant:"body1",component:"div",className:"check-title",sx:{fontWeight:700,mb:1},children:r("notification.config")}),e.jsx(y,{className:"choose-channel",children:e.jsxs(Pe,{component:"fieldset",variant:"standard",children:[e.jsx(Ye,{component:"legend",children:r("notification.selectChannels")}),e.jsx(Te,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:1},children:a.map(v=>e.jsx(Ie,{control:e.jsx(Ee,{checked:v.checked,onChange:C=>T(C,v),name:v.value}),label:v.label},v.value))})]})}),e.jsx(y,{className:"resend-config-footer",children:e.jsx(Te,{children:e.jsx(Ie,{control:e.jsx(Ee,{checked:x,onChange:v=>u(v.target.checked)}),label:r("notification.resendFailedOnly")})})}),e.jsxs(y,{className:"resend-config-footer-tip",sx:{display:"flex",justifyContent:"flex-end",gap:1},children:[e.jsx(we,{onClick:v=>{v.stopPropagation(),s()},color:"inherit",children:r("common.cancel")}),e.jsxs(we,{onClick:f,color:"primary",disabled:t,variant:"contained",autoFocus:!0,style:{marginLeft:8},children:[t&&e.jsx(Xe,{size:16}),r("common.confirm")]})]})]})}ft.propTypes={notificationId:d.string.isRequired,handleResend:d.func,resending:d.bool};function ft({notificationId:t,handleResend:s,resending:n=!1}){const{t:r,locale:a}=Q(),l=Qe(),x=g.useMemo(()=>Je(l,ut()),[l]),{getReceivers:u,inService:T,teamDid:f,getUser:v,blocklet:C}=Be(),[F,_]=g.useState(!1),[N,V]=g.useState([]),P=De({anchorEl:null,position:null}),L=De({anchorEl:null,position:null}),[W,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:[H().subtract(1,"month").startOf("day").toDate(),H().endOf("day").toDate()]}),[I,w]=g.useState([]),E=[{label:r("notification.sendStatus.pending"),value:0,status:"pending"},{label:r("notification.sendStatus.success"),value:1,status:"success"},{label:r("notification.sendStatus.failed"),value:2,status:"failed"}],k=async()=>{if(!F&&t)try{_(!0);const i=await u({notificationId:t,...h}),o=i.list.map(c=>({...c,receiverUser:{...c.receiverUser,avatar:st(c.receiverUser.avatar,f,T)}}));V(o),Z(i.paging),_(!1)}catch(i){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=[],K=[]]=j;h.pageSize!==o?S(M=>({...M,pageSize:o,page:1})):h.page!==i+1?S(M=>({...M,page:i+1})):h.searchText!==c?S(M=>({...M,searchText:c,page:1})):pe(z,h.walletSendStatus)?pe(G,h.pushKitSendStatus)?pe(K,h.emailSendStatus)||S(M=>({...M,emailSendStatus:K,page:1})):S(M=>({...M,pushKitSendStatus:G,page:1})):S(M=>({...M,walletSendStatus:z,page:1}))},oe=g.useCallback(async(i,o)=>{if(!o)return!1;const c=await v(o);return c?i==="wallet"?Jt(c):i==="email"?Xt(C,c):i==="pushKit"?Qt(C,c):i==="webhook"?Zt(c):!0:!1},[v,C]),ge=g.useCallback(i=>es(r,i),[r]),re=()=>{P.anchorEl=null,P.position=null,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 K=i.currentTarget,M=K.getBoundingClientRect();P.anchorEl=K,P.position={top:M.top+window.scrollY,left:M.left+window.scrollX}}U({channel:c});try{const K=await oe(c,o.receiver);await be(1),U({channel:c,result:K}),(typeof K=="boolean"&&K||St(K)&&Object.values(K).every(M=>!!M))&&(await s([c],[o.receiver],z),L.anchorEl||(await be(.5),re()))}catch(K){q.error(K.message)}},O=i=>{S(o=>({...o,dateRange:i,page:1}))},A=(i,o,c,j)=>{i.stopPropagation();const z=c.filter(G=>G!==o);S(G=>({...G,[j]:z,page:1}))},J=X(()=>[{label:r("notification.receiver"),name:"receiver",width:200,options:{filter:!1,customBodyRenderLite:i=>{const{receiverUser:o,receiver:c}=N[i];return o?e.jsxs(y,{"data-cy":`member-name-${o.fullName}`,sx:{display:"flex",alignItems:"center",gap:1,justifyContent:"flex-start"},children:[e.jsx(Ze,{src:`${o.avatar}?imageFilter=resize&w=48&h=48`,size:32,did:c,shape:"circle",style:{borderRadius:"100%",overflow:"hidden"}}),e.jsx(me,{children:o.fullName})]},c):e.jsx(yt,{size:14,responsive:!1,compact:!0,copyable:!1,did:c})}}},{label:"Wallet",name:"walletSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),filter:!0,filterType:"custom",filterList:h.walletSendStatus??[],customFilterListOptions:{render:i=>e.jsx(Ce,{list:i,label:"Wallet",onDelete:(o,c)=>{o.stopPropagation(),A(o,c,J[1].options.filterList,"walletSendStatus")}}),update:Se},filterOptions:{names:E,fullWidth:!0,logic:ve,display:(i,o,c,j)=>e.jsx(Re,{label:"Wallet",filterList:i,onChange:o,index:c,column:j,filterValues:E})},customBodyRenderLite:i=>{const{walletSendStatus:o,walletSendAt:c,walletSendFailedReason:j}=N[i];return e.jsx(ce,{status:o,updatedAt:c,reason:j,channel:"wallet",onResend:z=>R(z,N[i],"wallet",[],!1)})}}},{label:"Push Kit",name:"pushKitSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:i=>{const{pushKitSendStatus:o,pushKitSendAt:c,pushKitSendFailedReason:j}=N[i];return e.jsx(ce,{status:o,updatedAt:c,reason:j,channel:"pushkit",onResend:z=>R(z,N[i],"pushKit",[],!1)})},filter:!0,filterType:"custom",filterList:h.pushKitSendStatus??[],customFilterListOptions:{render:i=>e.jsx(Ce,{list:i,label:"Push Kit",onDelete:(o,c)=>{o.stopPropagation(),A(o,c,J[2].options.filterList,"pushKitSendStatus")}}),update:Se},filterOptions:{names:E,fullWidth:!0,logic:ve,display:(i,o,c,j)=>e.jsx(Re,{label:"Push Kit",filterList:i,onChange:o,index:c,column:j,filterValues:E})}}},{label:"Email",name:"emailSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:i=>{const{emailSendStatus:o,emailSendAt:c,emailSendFailedReason:j}=N[i];return e.jsx(ce,{status:o,updatedAt:c,reason:j,channel:"email",onResend:z=>R(z,N[i],"email",[],!1)})},filter:!0,filterType:"custom",filterList:h.emailSendStatus??[],customFilterListOptions:{render:i=>e.jsx(Ce,{list:i,label:"Email",onDelete:(o,c)=>{o.stopPropagation(),A(o,c,J[3].options.filterList,"emailSendStatus")}}),update:Se},filterOptions:{names:E,fullWidth:!0,logic:ve,display:(i,o,c,j)=>e.jsx(Re,{label:"Email",filterList:i,onChange:o,index:c,column:j,filterValues:E})}}},{label:"Webhook",name:"webhook",width:200,options:{filter:!1,setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:i=>{const{webhook:o}=N[i];if(!o)return null;const c=Object.entries(o)[0];if(!c)return null;const[j,z]=c,G=z[0];return e.jsx(y,{sx:{display:"flex",flexDirection:"column",gap:1},children:e.jsxs(y,{className:"webhook-item",sx:{fontSize:12},children:[e.jsx(me,{maxLength:30,children:j},j),e.jsx(ce,{status:G.status,updatedAt:G.sendAt,reason:G.failedReason,channel:"webhook",onResend:K=>R(K,N[i],"webhook",[j],!1)})]},j)})}}},{label:r("common.createdAt"),name:"createdAt",width:100,options:{filter:!1,customBodyRenderLite:i=>{const{createdAt:o}=N[i];return e.jsx(et,{value:o,locale:a,shouldUpdate:!0})}}}],[N,a,h,r]),xe=[e.jsx(We,{value:h.dateRange,onChange:O},"date-picker"),e.jsx(Oe,{variant:"contained",size:"small",color:"primary",loading:F,startIcon:e.jsx(Wt,{}),onClick:()=>k(),sx:{".MuiButton-startIcon":{mr:"2px"}},style:{marginLeft:8},children:r("common.refresh")},"refresh")];return e.jsx(y,{sx:{overflow:"auto",".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"},".MuiTableCell-root":{paddingRight:"8px",whiteSpace:"nowrap"}},children:e.jsx(as,{children:e.jsxs(tt,{theme:x,children:[e.jsx(at,{className:"receivers-table",locale:a,loading:F,columns:J,data:N,onChange:ee,options:ne,customButtons:xe,components:{TableFilterList:i=>e.jsx(Me,{...i,itemComponent:o=>e.jsx(Ke,{...o,canDelete:()=>!1})})}}),P.anchorEl&&e.jsx(Ae,{open:!!P.anchorEl,anchorReference:"anchorPosition",anchorPosition:P.position,onClose:re,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:e.jsxs(os,{children:[e.jsxs($,{variant:"body1",component:"div",className:"check-title",children:[W?.channel," Checking"]}),e.jsx(y,{sx:{display:"flex",flexDirection:"column",gap:"4px"},children:ge(W?.channel).map(i=>{const{type:o,pass:c,fail:j}=i;return!W?.result||W?.result?.[o]?e.jsxs($,{variant:"body1",component:"div",className:"check-item",sx:{display:"flex",alignItems:"center",gap:"4px",color:W?.result?.[o]?ye.success.main:"inherit"},children:[W?.result?e.jsx(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 H,H as q,E as D,h as xt,o as d,i as te,au as bt,az as jt,N as y,T as $,m as Q,eK as Fe,Q as Pe,ib as Ye,bj as Te,aU as Ie,V as Ee,dE as we,b3 as Ue,b1 as Ae,C as Xe,f as Qe,eY as Je,aP as De,W as yt,at as Ze,ic as et,v as Oe,e_ as tt,fo as ye,fE as st,dy as St,s as ie,ag as pe,G as qe,av as vt,id as Ct,ie as Nt,$ as nt,ig as wt,ih as Rt,ii as Tt,ij as It,P as Et,bt as it,M as At,R as Dt,S as Ot,U as $e,ik as Lt,a4 as kt}from"./index-BSnpJGoE.js";import{d as Ft,H as at,g as Pt}from"./index-CLzlZAUr.js";import{R as _e,S as _t}from"./actions-dM1fFrJf.js";import{B as Bt}from"./index-DhnJyZwE.js";import{S as me}from"./shorten-label-CFhfsEFi.js";import{v as ot}from"./index-W9Gf1H9j.js";import{T as zt}from"./index-CWJxufpA.js";import{R as Wt}from"./Refresh-vx7O7y4X.js";import{D as Mt,g as Kt}from"./traffic-Dt3pbHoj.js";import{u as Ht}from"./use-mobile-Ln-4uJJU.js";import"./FilterList-CAcGuUFu.js";import"./CSSTransition-Cwsw3O0v.js";import"./emotion-cache.browser.esm-lCkFhcap.js";import"./index-D4cctk8L.js";import"./redux-DfszZyTl.js";import"./typeof-QjJsDpFa.js";import"./depsEqual-DTCuMri4.js";import"./index-qnSWPvFZ.js";import"./TableSearch-CcKxCotp.js";import"./Search-DkAocH6B.js";import"./Clear-TURgqjBD.js";import"./MoreVert-DrYkNse4.js";import"./useLocalStorage-BfxLT4Rw.js";import"./url-evaluation-CtqrahAV.js";import"./get-safe-url-DQLWIOcC.js";import"./ButtonGroup-gQqTXUWb.js";import"./getValidReactChildren-CCHlzmWC.js";import"./permission-H1evTnCb.js";import"./index.esm-D_e-DGUA.js";import"./collapse-DP5fcjjp.js";import"./blocklet-C7W1PCuU.js";import"./Switch-CnG_p51w.js";import"./iframe-cPjusDrL.js";import"./ChevronLeft-GfW6gg_h.js";import"./ChevronRight-B3AWRgjb.js";import"./index-DBii9-f-.js";import"./base-chart-BF6eAaCN.js";import"./index-LkgRhqPx.js";import"./AdapterDayjs-B8AEZ3l4.js";import"./useThemeProps-Drx-8hAL.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?[H(I.dateRange[0]).toISOString(),H(I.dateRange[1]).toISOString()]:void 0},{dids:E,...k}=w;let B="";E&&E.includes("system")&&(B="system");const ae=E?E.filter(oe=>oe!=="system"):[],ne={...k,source:B,componentDids:ae},ee=await n.getNotificationSendLog({input:ne});return _(ne),x(ee.list),T(ee.paging),ee.list}catch(w){return 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?[H(I.dateRange[0]).toISOString(),H(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=H().startOf("day");return t.filter(n=>H(n.sendAt).isSame(s,"day")).length},ts=(t,s="")=>{if(s&&ke.includes(s)){const l=`${s}SendRecord`,x=te(t,l,[]);return je(x)}const n=te(t,"webhook",{}),r=Object.keys(n??{})??[];if(s&&r.includes(s)){const l=n[s]??[];return je(l)}const a={};return ke.forEach(l=>{const x=`${l}SendRecord`,u=te(t,x,[]),T=je(u);a[l]=T}),r.length>0&&r.forEach(l=>{const x=n[l]??[],u=je(x);a[l]=u}),a},Se=(t,s,n)=>{if(!Array.isArray(t))throw new Error("Invalid filterList or index");return t[n].splice(s,1),t},ve=(t,s)=>{if(!Array.isArray(s))throw new Error("filters must be an array");return s.length?!s.includes(t):!1},ss=t=>{switch(t){case D.NOTIFICATION_SEND_CHANNEL.WALLET:return"Wallet";case D.NOTIFICATION_SEND_CHANNEL.PUSH:return"Push Kit";case D.NOTIFICATION_SEND_CHANNEL.EMAIL:return"Email";case D.NOTIFICATION_SEND_CHANNEL.WEBHOOK:return"Webhook";default:return""}},ut=()=>({components:{MUIDataTableFilter:{styleOverrides:{header:{marginBottom:0,p:{margin:0}},root:{"& .MuiGrid-container":{marginTop:0,"& .MuiGrid-item":{paddingTop:0}}}}},MuiPopover:{styleOverrides:{root:{"&.MuiPopover-root":{"& .MuiPaper-root:has(.filter-container)":{width:"420px"}}}}}}});function se({config:t,enableTooltip:s=!0,showTitle:n=!1,children:r=null}){const{status:a,title:l="",sentTime:x="",reason:u=""}=t,T=[l,u].filter(Boolean).join(", ");return e.jsx(jt,{title:s?e.jsxs(e.Fragment,{children:[e.jsx($,{color:"inherit",sx:{fontSize:12},children:T}),e.jsx("span",{children:x})]}):null,arrow:!0,placement:"top",children:e.jsxs(y,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:"4px"},children:[e.jsxs(y,{sx:{position:"relative",minHeight:14,minWidth:14,display:"flex",alignItems:"center",justifyContent:"center"},children:[e.jsx(y,{style:{opacity:.15},sx:{position:"absolute",width:"100%",height:"100%",borderRadius:"50%",bgcolor:Le[a]}}),e.jsx(y,{sx:{position:"absolute",width:"55%",height:"55%",borderRadius:"50%",bgcolor:Le[a]}})]}),e.jsx($,{color:"inherit",sx:{fontSize:12},children:n?l:r})]})})}se.propTypes={config:d.object.isRequired,enableTooltip:d.bool,showTitle:d.bool,children:d.node};Ce.propTypes={list:d.array.isRequired,label:d.string.isRequired,onDelete:d.func};function Ce({list:t,label:s,onDelete:n=()=>{}}){const{t:r,locale:a}=Q();return e.jsxs(y,{sx:{display:"flex",gap:1,alignItems:"center"},children:[e.jsxs($,{children:[s,": "]}),t.map(l=>{const x=lt(r,a,{status:l});return e.jsx(Fe,{size:"small",label:e.jsx(y,{sx:{display:"flex",alignItems:"center",gap:"4px"},children:e.jsx(se,{config:x,enableTooltip:!1,children:x.title})}),onDelete:u=>n(u,l)},l)})]})}ze.propTypes={filterList:d.array.isRequired,onChange:d.func.isRequired,index:d.number.isRequired,column:d.object.isRequired,filterValues:d.array.isRequired,label:d.string.isRequired,renderLabel:d.func.isRequired};function ze({filterList:t,onChange:s,index:n,column:r,filterValues:a,label:l,renderLabel:x}){return e.jsxs(Pe,{className:"filter-container",children:[e.jsx(Ye,{component:"legend",children:l}),e.jsx(Te,{row:!0,children:a.map(u=>e.jsx(Ie,{control:e.jsx(Ee,{checked:t[n].indexOf(u.value??u)>-1,onChange:T=>{const f=[...t];T.target.checked?f[n]=[...f[n],u.value??u]:f[n]=f[n].filter(v=>v!==(u.value??u)),s(f[n],n,r)},name:u.value??u}),label:e.jsx("span",{style:{display:"flex",alignItems:"center"},children:x(u)})},u.value??u))})]})}function Re(t){return e.jsx(ze,{...t,renderLabel:s=>e.jsx(se,{enableTooltip:!1,config:{status:s.status},children:s.label})})}ce.propTypes={status:d.number.isRequired,updatedAt:d.string.isRequired,reason:d.string,channel:d.string,onResend:d.func};function ce({status:t,updatedAt:s,reason:n="",channel:r="wallet",onResend:a}){const{t:l,locale:x}=Q(),u=lt(l,x,{status:t,updatedAt:s,reason:n,channel:r});return e.jsxs(y,{sx:{display:"flex",alignItems:"center",gap:1},children:[e.jsx(se,{config:u,showTitle:!0}),u.status!=="success"&&e.jsx(we,{className:"resend-btn",size:"small",startIcon:e.jsx(_e,{}),sx:{fontSize:12,color:"rgba(0, 0, 0, 0.87)",fontWeight:400,".MuiButton-startIcon":{mr:"2px"}},onClick:a,children:l("notification.resend")})]})}We.propTypes={value:d.array.isRequired,onChange:d.func};function We({value:t,onChange:s}){const{locale:n}=Q(),r=H().toDate(),[a,l]=g.useState(null),x=g.useCallback(f=>{l(a?null:f.currentTarget)},[a]),u=!!a,T=g.useCallback(f=>{if(!f.startDate||!f.endDate){q.error("Please select a date range");return}if(H(f.startDate).isAfter(f.endDate)||!H(f.startDate).isValid()||!H(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:Kt(r),onChange:T})})]})}Me.propTypes={itemComponent:d.elementType.isRequired};function Me({itemComponent:t,...s}){const{t:n}=Q();return!s?.filterList?.filter(a=>a.length).length?null:e.jsxs(y,{sx:{display:"flex",gap:1,alignItems:"center"},children:[e.jsx("div",{className:"toolbar-filter-title",children:n("notification.filter")}),e.jsx("div",{className:"toolbar-filter-content",children:e.jsx(Ft.TableFilterList,{...s,ItemComponent:t})})]})}function Ke({label:t,onDelete:s,canDelete:n=()=>!0,...r}){const a=s&&typeof s=="function"?s:void 0;let l=!0;return n&&typeof n=="function"&&(l=n({label:t,...r})),e.jsx(Fe,{label:t,variant:"outlined",...a&&l?{onDelete:a}:{}})}Ke.propTypes={label:d.string.isRequired,onDelete:d.func,canDelete:d.func};const ns=[{label:"Wallet",value:"app",checked:!0},{label:"Email",value:"email",checked:!0},{label:"Push Kit",value:"push",checked:!0},{label:"Webhook",value:"webhook",checked:!0}];pt.propTypes={loading:d.bool,onCancel:d.func,onConfirm:d.func};function pt({loading:t=!1,onCancel:s=()=>{},onConfirm:n=()=>{}}){const{t:r}=Q(),[a,l]=g.useState(ns),[x,u]=g.useState(!0),T=(v,C)=>{C.checked=v.target.checked;const F=a.map(_=>({..._,checked:_.value===C.value?C.checked:_.checked}));l(F)},f=v=>{v.stopPropagation(),n({channels:a.filter(C=>C.checked).map(C=>C.value),isResendFailedOnly:x})};return e.jsxs(y,{className:"resend-config",sx:{padding:"16px 24px"},children:[e.jsx($,{variant:"body1",component:"div",className:"check-title",sx:{fontWeight:700,mb:1},children:r("notification.config")}),e.jsx(y,{className:"choose-channel",children:e.jsxs(Pe,{component:"fieldset",variant:"standard",children:[e.jsx(Ye,{component:"legend",children:r("notification.selectChannels")}),e.jsx(Te,{sx:{display:"flex",flexDirection:"row",flexWrap:"wrap",gap:1},children:a.map(v=>e.jsx(Ie,{control:e.jsx(Ee,{checked:v.checked,onChange:C=>T(C,v),name:v.value}),label:v.label},v.value))})]})}),e.jsx(y,{className:"resend-config-footer",children:e.jsx(Te,{children:e.jsx(Ie,{control:e.jsx(Ee,{checked:x,onChange:v=>u(v.target.checked)}),label:r("notification.resendFailedOnly")})})}),e.jsxs(y,{className:"resend-config-footer-tip",sx:{display:"flex",justifyContent:"flex-end",gap:1},children:[e.jsx(we,{onClick:v=>{v.stopPropagation(),s()},color:"inherit",children:r("common.cancel")}),e.jsxs(we,{onClick:f,color:"primary",disabled:t,variant:"contained",autoFocus:!0,style:{marginLeft:8},children:[t&&e.jsx(Xe,{size:16}),r("common.confirm")]})]})]})}ft.propTypes={notificationId:d.string.isRequired,handleResend:d.func,resending:d.bool};function ft({notificationId:t,handleResend:s,resending:n=!1}){const{t:r,locale:a}=Q(),l=Qe(),x=g.useMemo(()=>Je(l,ut()),[l]),{getReceivers:u,inService:T,teamDid:f,getUser:v,blocklet:C}=Be(),[F,_]=g.useState(!1),[N,V]=g.useState([]),P=De({anchorEl:null,position:null}),L=De({anchorEl:null,position:null}),[W,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:[H().subtract(1,"month").startOf("day").toDate(),H().endOf("day").toDate()]}),[I,w]=g.useState([]),E=[{label:r("notification.sendStatus.pending"),value:0,status:"pending"},{label:r("notification.sendStatus.success"),value:1,status:"success"},{label:r("notification.sendStatus.failed"),value:2,status:"failed"}],k=async()=>{if(!F&&t)try{_(!0);const i=await u({notificationId:t,...h}),o=i.list.map(c=>({...c,receiverUser:{...c.receiverUser,avatar:st(c.receiverUser.avatar,f,T)}}));V(o),Z(i.paging),_(!1)}catch(i){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=[],K=[]]=j;h.pageSize!==o?S(M=>({...M,pageSize:o,page:1})):h.page!==i+1?S(M=>({...M,page:i+1})):h.searchText!==c?S(M=>({...M,searchText:c,page:1})):pe(z,h.walletSendStatus)?pe(G,h.pushKitSendStatus)?pe(K,h.emailSendStatus)||S(M=>({...M,emailSendStatus:K,page:1})):S(M=>({...M,pushKitSendStatus:G,page:1})):S(M=>({...M,walletSendStatus:z,page:1}))},oe=g.useCallback(async(i,o)=>{if(!o)return!1;const c=await v(o);return c?i==="wallet"?Jt(c):i==="email"?Xt(C,c):i==="pushKit"?Qt(C,c):i==="webhook"?Zt(c):!0:!1},[v,C]),ge=g.useCallback(i=>es(r,i),[r]),re=()=>{P.anchorEl=null,P.position=null,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 K=i.currentTarget,M=K.getBoundingClientRect();P.anchorEl=K,P.position={top:M.top+window.scrollY,left:M.left+window.scrollX}}U({channel:c});try{const K=await oe(c,o.receiver);await be(1),U({channel:c,result:K}),(typeof K=="boolean"&&K||St(K)&&Object.values(K).every(M=>!!M))&&(await s([c],[o.receiver],z),L.anchorEl||(await be(.5),re()))}catch(K){q.error(K.message)}},O=i=>{S(o=>({...o,dateRange:i,page:1}))},A=(i,o,c,j)=>{i.stopPropagation();const z=c.filter(G=>G!==o);S(G=>({...G,[j]:z,page:1}))},J=X(()=>[{label:r("notification.receiver"),name:"receiver",width:200,options:{filter:!1,customBodyRenderLite:i=>{const{receiverUser:o,receiver:c}=N[i];return o?e.jsxs(y,{"data-cy":`member-name-${o.fullName}`,sx:{display:"flex",alignItems:"center",gap:1,justifyContent:"flex-start"},children:[e.jsx(Ze,{src:`${o.avatar}?imageFilter=resize&w=48&h=48`,size:32,did:c,shape:"circle",style:{borderRadius:"100%",overflow:"hidden"}}),e.jsx(me,{children:o.fullName})]},c):e.jsx(yt,{size:14,responsive:!1,compact:!0,copyable:!1,did:c})}}},{label:"Wallet",name:"walletSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),filter:!0,filterType:"custom",filterList:h.walletSendStatus??[],customFilterListOptions:{render:i=>e.jsx(Ce,{list:i,label:"Wallet",onDelete:(o,c)=>{o.stopPropagation(),A(o,c,J[1].options.filterList,"walletSendStatus")}}),update:Se},filterOptions:{names:E,fullWidth:!0,logic:ve,display:(i,o,c,j)=>e.jsx(Re,{label:"Wallet",filterList:i,onChange:o,index:c,column:j,filterValues:E})},customBodyRenderLite:i=>{const{walletSendStatus:o,walletSendAt:c,walletSendFailedReason:j}=N[i];return e.jsx(ce,{status:o,updatedAt:c,reason:j,channel:"wallet",onResend:z=>R(z,N[i],"wallet",[],!1)})}}},{label:"Push Kit",name:"pushKitSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:i=>{const{pushKitSendStatus:o,pushKitSendAt:c,pushKitSendFailedReason:j}=N[i];return e.jsx(ce,{status:o,updatedAt:c,reason:j,channel:"pushkit",onResend:z=>R(z,N[i],"pushKit",[],!1)})},filter:!0,filterType:"custom",filterList:h.pushKitSendStatus??[],customFilterListOptions:{render:i=>e.jsx(Ce,{list:i,label:"Push Kit",onDelete:(o,c)=>{o.stopPropagation(),A(o,c,J[2].options.filterList,"pushKitSendStatus")}}),update:Se},filterOptions:{names:E,fullWidth:!0,logic:ve,display:(i,o,c,j)=>e.jsx(Re,{label:"Push Kit",filterList:i,onChange:o,index:c,column:j,filterValues:E})}}},{label:"Email",name:"emailSendStatus",width:200,options:{setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:i=>{const{emailSendStatus:o,emailSendAt:c,emailSendFailedReason:j}=N[i];return e.jsx(ce,{status:o,updatedAt:c,reason:j,channel:"email",onResend:z=>R(z,N[i],"email",[],!1)})},filter:!0,filterType:"custom",filterList:h.emailSendStatus??[],customFilterListOptions:{render:i=>e.jsx(Ce,{list:i,label:"Email",onDelete:(o,c)=>{o.stopPropagation(),A(o,c,J[3].options.filterList,"emailSendStatus")}}),update:Se},filterOptions:{names:E,fullWidth:!0,logic:ve,display:(i,o,c,j)=>e.jsx(Re,{label:"Email",filterList:i,onChange:o,index:c,column:j,filterValues:E})}}},{label:"Webhook",name:"webhook",width:200,options:{filter:!1,setCellProps:()=>({className:"sent-status-cell"}),customBodyRenderLite:i=>{const{webhook:o}=N[i];if(!o)return null;const c=Object.entries(o)[0];if(!c)return null;const[j,z]=c,G=z[0];return e.jsx(y,{sx:{display:"flex",flexDirection:"column",gap:1},children:e.jsxs(y,{className:"webhook-item",sx:{fontSize:12},children:[e.jsx(me,{maxLength:30,children:j},j),e.jsx(ce,{status:G.status,updatedAt:G.sendAt,reason:G.failedReason,channel:"webhook",onResend:K=>R(K,N[i],"webhook",[j],!1)})]},j)})}}},{label:r("common.createdAt"),name:"createdAt",width:100,options:{filter:!1,customBodyRenderLite:i=>{const{createdAt:o}=N[i];return e.jsx(et,{value:o,locale:a,shouldUpdate:!0})}}}],[N,a,h,r]),xe=[e.jsx(We,{value:h.dateRange,onChange:O},"date-picker"),e.jsx(Oe,{variant:"contained",size:"small",color:"primary",loading:F,startIcon:e.jsx(Wt,{}),onClick:()=>k(),sx:{".MuiButton-startIcon":{mr:"2px"}},style:{marginLeft:8},children:r("common.refresh")},"refresh")];return e.jsx(y,{sx:{overflow:"auto",".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"},".MuiTableCell-root":{paddingRight:"8px",whiteSpace:"nowrap"}},children:e.jsx(as,{children:e.jsxs(tt,{theme:x,children:[e.jsx(at,{className:"receivers-table",locale:a,loading:F,columns:J,data:N,onChange:ee,options:ne,customButtons:xe,components:{TableFilterList:i=>e.jsx(Me,{...i,itemComponent:o=>e.jsx(Ke,{...o,canDelete:()=>!1})})}}),P.anchorEl&&e.jsx(Ae,{open:!!P.anchorEl,anchorReference:"anchorPosition",anchorPosition:P.position,onClose:re,anchorOrigin:{vertical:"center",horizontal:"right"},transformOrigin:{vertical:"center",horizontal:"left"},children:e.jsxs(os,{children:[e.jsxs($,{variant:"body1",component:"div",className:"check-title",children:[W?.channel," Checking"]}),e.jsx(y,{sx:{display:"flex",flexDirection:"column",gap:"4px"},children:ge(W?.channel).map(i=>{const{type:o,pass:c,fail:j}=i;return!W?.result||W?.result?.[o]?e.jsxs($,{variant:"body1",component:"div",className:"check-item",sx:{display:"flex",alignItems:"center",gap:"4px",color:W?.result?.[o]?ye.success.main:"inherit"},children:[W?.result?e.jsx(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
  }