@abtnode/webapp 1.16.31 → 1.16.32-beta-0b7f1250

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 (171) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{Add-YuGHCX93.js → Add-DWpKcN-u.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-Dq_r4Xqb.js → ArrowDropDown-DpRC8bmp.js} +1 -1
  5. package/dist/assets/{Autocomplete-BVeL1Yo7.js → Autocomplete-BRXMVx1_.js} +1 -1
  6. package/dist/assets/{Breadcrumbs-CMvJXPnU.js → Breadcrumbs-Jf_U-bpr.js} +1 -1
  7. package/dist/assets/{ButtonGroup-Dk1mLt3h.js → ButtonGroup-CjdeZXiQ.js} +1 -1
  8. package/dist/assets/{CheckCircle-Cn-sNTZK.js → CheckCircle-DAJDvaDs.js} +1 -1
  9. package/dist/assets/{ChevronLeft-CGibP5P0.js → ChevronLeft-BAD_V2NB.js} +1 -1
  10. package/dist/assets/{ChevronRight-DakQosJn.js → ChevronRight-C3N0vcYC.js} +1 -1
  11. package/dist/assets/{Close-DpmK9wKZ.js → Close-ONBFJtxs.js} +1 -1
  12. package/dist/assets/{Delete-ukzbwUp3.js → Delete-DyfYh5Dp.js} +1 -1
  13. package/dist/assets/{DeleteOutline-DWR_h5F3.js → DeleteOutline-BeNbF0Jm.js} +1 -1
  14. package/dist/assets/{Done-CvSFHISO.js → Done-BwUiAzln.js} +1 -1
  15. package/dist/assets/{Edit-qncNJ4F1.js → Edit-DNbPZJcj.js} +1 -1
  16. package/dist/assets/{EditIcon-BU_hSrvO.js → EditIcon-CQMDFxRX.js} +1 -1
  17. package/dist/assets/{ExpandMore-BzXUe6hQ.js → ExpandMore-OENv0Zf3.js} +1 -1
  18. package/dist/assets/{FilterList-B3q8z3Ai.js → FilterList-DOSX0qYn.js} +1 -1
  19. package/dist/assets/{Google-BFCcXFWg.js → Google-Clt2u7fs.js} +1 -1
  20. package/dist/assets/{Https-c9HUx4_F.js → Https-C1_btbm6.js} +1 -1
  21. package/dist/assets/{InputAdornment-CmItI7-a.js → InputAdornment--p8LCNNy.js} +1 -1
  22. package/dist/assets/{InputLabel-DiJjRX8c.js → InputLabel-CZjkqwQE.js} +1 -1
  23. package/dist/assets/{LastPage-BVKCAcZd.js → LastPage-BgqTQGsQ.js} +1 -1
  24. package/dist/assets/{Launch-ixFhPrIJ.js → Launch-4M4xlVcJ.js} +1 -1
  25. package/dist/assets/{Link-D21zoGLh.js → Link-B9IP_-Eb.js} +1 -1
  26. package/dist/assets/{LoadingButton-C-VdleqP.js → LoadingButton-D4Eem9Ye.js} +1 -1
  27. package/dist/assets/{LockIcon-DWwaclI2.js → LockIcon-DNmOq-UN.js} +1 -1
  28. package/dist/assets/{Loop-cNToB-Hw.js → Loop-BA9fveaw.js} +1 -1
  29. package/dist/assets/{MoreHoriz-BlJZBfL5.js → MoreHoriz-C2jn3juG.js} +1 -1
  30. package/dist/assets/{MoreVert-72FLA6F7.js → MoreVert-s_b5pzH1.js} +1 -1
  31. package/dist/assets/{Pagination-BE1Nzv5c.js → Pagination-C4LxOrMX.js} +1 -1
  32. package/dist/assets/{Public-DwfXfE3x.js → Public-E1EGIO8u.js} +1 -1
  33. package/dist/assets/{SchemaReference.es-DSZJxlJs.js → SchemaReference.es-BLA9DpAj.js} +1 -1
  34. package/dist/assets/{Search-DPoHYjEM.js → Search-DvHspZGZ.js} +1 -1
  35. package/dist/assets/{Select-CZslLkS9.js → Select-DPQiNjEZ.js} +1 -1
  36. package/dist/assets/{Skeleton-BRE8g3Nr.js → Skeleton-DhAVWnjB.js} +1 -1
  37. package/dist/assets/{Slider-BXYbXQK6.js → Slider-IM6xBGec.js} +1 -1
  38. package/dist/assets/{Stepper-C2cskkxs.js → Stepper-pjsUNGe-.js} +1 -1
  39. package/dist/assets/{TextField-FjVpB8_i.js → TextField-CK1WkVgK.js} +1 -1
  40. package/dist/assets/{ToggleButtonGroup-BLKzb8eH.js → ToggleButtonGroup-CxfQ5hQa.js} +1 -1
  41. package/dist/assets/{ViewList-BWR6vvRA.js → ViewList-CXsz8fEa.js} +1 -1
  42. package/dist/assets/{actions-DMatOIO9.js → actions-DZdlSYXZ.js} +1 -1
  43. package/dist/assets/{actions-DI7j7zyh.js → actions-nCvhQAHx.js} +1 -1
  44. package/dist/assets/{agreement-CLCrNvvc.js → agreement-DOGPCXwZ.js} +1 -1
  45. package/dist/assets/api-BiytJ2OL.js +1 -0
  46. package/dist/assets/{app-avatar-Dp7pMuua.js → app-avatar-BuBN13SD.js} +1 -1
  47. package/dist/assets/{audit-logs-BmIfy96g.js → audit-logs-CpNkISiG.js} +1 -1
  48. package/dist/assets/blocklet-CP5f1QgL.js +1 -0
  49. package/dist/assets/{brace-fold.es-CjpHnqaJ.js → brace-fold.es-CnVLaaYa.js} +1 -1
  50. package/dist/assets/{bundle-avatar-BOdLBYt_.js → bundle-avatar-I8HkXJpE.js} +1 -1
  51. package/dist/assets/{chart-ChpsdZ5w.js → chart-DYC16wN7.js} +1 -1
  52. package/dist/assets/{click-to-copy-qnXvH47O.js → click-to-copy-D1k0ZJxd.js} +1 -1
  53. package/dist/assets/{closebrackets.es-BAkyQEkz.js → closebrackets.es-CXrbbB3A.js} +1 -1
  54. package/dist/assets/{codemirror.es-DyYoQOkc.js → codemirror.es-BoWLOKcl.js} +1 -1
  55. package/dist/assets/{comment.es-B0snLVGE.js → comment.es-Di0JRU_Q.js} +1 -1
  56. package/dist/assets/{config-navigation-qB3p7zP-.js → config-navigation-BXaw3SS0.js} +1 -1
  57. package/dist/assets/{delete-confirm-BG1I5J0u.js → delete-confirm-H8kgJ4fp.js} +1 -1
  58. package/dist/assets/{detail-DHBrhfaQ.js → detail-BGzCRUYj.js} +3 -3
  59. package/dist/assets/{dialog.es-C9szbcAW.js → dialog.es-BCtBfsF1.js} +1 -1
  60. package/dist/assets/{download-CIK2Rd3G.js → download-DMPUUrms.js} +1 -1
  61. package/dist/assets/{foldgutter.es-B7n9tC8r.js → foldgutter.es-E4CQ752m.js} +1 -1
  62. package/dist/assets/getValidReactChildren-Ckfy1X1A.js +1 -0
  63. package/dist/assets/{hint.es-CBGKcJ0H.js → hint.es-C04g9UeS.js} +1 -1
  64. package/dist/assets/{hint.es2-9eR9yDN0.js → hint.es2-Yrv2ylTe.js} +1 -1
  65. package/dist/assets/{iframe-DeTHfFVQ.js → iframe-BqheM3L9.js} +1 -1
  66. package/dist/assets/{index-qm1NSTqx.js → index-59UIPqJD.js} +1 -1
  67. package/dist/assets/{index-ClNOtPm5.js → index-B-Ld-2Ly.js} +3 -3
  68. package/dist/assets/{index-15yTTSQp.js → index-B1Hn6vLR.js} +1 -1
  69. package/dist/assets/{index-CLbWUy8O.js → index-BIbeG_A4.js} +1 -1
  70. package/dist/assets/{index-oVy0lmae.js → index-BWXhDqh4.js} +1 -1
  71. package/dist/assets/{index-CANtQh-8.js → index-BXLcUio2.js} +1 -1
  72. package/dist/assets/{index-D8rh69R2.js → index-Bgn8IBLJ.js} +1 -1
  73. package/dist/assets/{index-KENXSHGT.js → index-BiC43zns.js} +1 -1
  74. package/dist/assets/{index-B4nATnEq.js → index-Bo3kA0GY.js} +1 -1
  75. package/dist/assets/{index-D3y-Mq0t.js → index-BqgCbQUh.js} +1 -1
  76. package/dist/assets/{index-BZQ6Sdlq.js → index-BwSVsn4U.js} +1 -1
  77. package/dist/assets/{index-y0r_CDsH.js → index-C2t5LWRf.js} +1 -1
  78. package/dist/assets/{index-vxqr_A7H.js → index-C7FHl3UZ.js} +1 -1
  79. package/dist/assets/{index-BuNJbfxi.js → index-CHZY388_.js} +1 -1
  80. package/dist/assets/{index-CG4MmDuK.js → index-CRPL3-Eg.js} +1 -1
  81. package/dist/assets/{index-DmdQsIN9.js → index-CSJhz71g.js} +1 -1
  82. package/dist/assets/{index-Dpawm4Ki.js → index-CX-CBC_8.js} +3 -3
  83. package/dist/assets/{index-7aCT4zwx.js → index-CbA7sl2z.js} +1 -1
  84. package/dist/assets/{index-DP0iPBNh.js → index-CfpEgOA0.js} +1 -1
  85. package/dist/assets/{index-CoOBWTGS.js → index-ChMuqQhO.js} +1 -1
  86. package/dist/assets/{index-DnBiGZ_C.js → index-ChS_Pc5m.js} +1 -1
  87. package/dist/assets/{index-04gl6pO4.js → index-ChmGkB6N.js} +1 -1
  88. package/dist/assets/{index-TFGhlmJg.js → index-CqJYYaWO.js} +1 -1
  89. package/dist/assets/{index-DJs7uyCT.js → index-CtwmcOKA.js} +1 -1
  90. package/dist/assets/{index-BjH9WeIg.js → index-CvxaH3or.js} +5 -5
  91. package/dist/assets/{index-DNivFScD.js → index-CzOBa7wa.js} +1 -1
  92. package/dist/assets/{index-WbFA75dB.js → index-D5BI_0Y3.js} +1 -1
  93. package/dist/assets/{index-3regrC4H.js → index-D8cKX9nz.js} +1 -1
  94. package/dist/assets/{index-l9RwTjEt.js → index-DBCkW9MN.js} +1 -1
  95. package/dist/assets/{index-Ct2fXBsa.js → index-DPaVhekN.js} +1 -1
  96. package/dist/assets/{index-CD-UcGPr.js → index-DQDFultN.js} +1 -1
  97. package/dist/assets/{index-C7m9dmdb.js → index-DSMtyaan.js} +1 -1
  98. package/dist/assets/{index-BwAMNnCK.js → index-DSe7TL0J.js} +3 -3
  99. package/dist/assets/{index-BtcEDL3C.js → index-DWMoLGgj.js} +1 -1
  100. package/dist/assets/{index-BIUglsRs.js → index-DfHODGgp.js} +1 -1
  101. package/dist/assets/{index-TMoSb8Hc.js → index-DrA6t9XN.js} +1 -1
  102. package/dist/assets/{index-6UQZCJ9z.js → index-Dytzeids.js} +1 -1
  103. package/dist/assets/{index-CupkOe8N.js → index-GxcCCStf.js} +1 -1
  104. package/dist/assets/{index-MRb9RAJK.js → index-Ir1Ynx3j.js} +1 -1
  105. package/dist/assets/{index-DDRhCg0G.js → index-bVh0eo8P.js} +1 -1
  106. package/dist/assets/{index-CJeF5ewa.js → index-cR-wh0v1.js} +1 -1
  107. package/dist/assets/{index-9o5SBOBg.js → index-pn9KZg_s.js} +1 -1
  108. package/dist/assets/{index-CUnYmZv8.js → index-wGYPkAW3.js} +1 -1
  109. package/dist/assets/{index.es-iY0s9qTe.js → index.es-DpBhdLHz.js} +1 -1
  110. package/dist/assets/{index.esm-Lol3I37E.js → index.esm-Cm5bDJvK.js} +1 -1
  111. package/dist/assets/{info-addon.es-U5Ih2Oar.js → info-addon.es-Bm6N_jGk.js} +1 -1
  112. package/dist/assets/{info.es-B24BQRjf.js → info.es-C1vDTqje.js} +1 -1
  113. package/dist/assets/{install-from-url-DrOGJntu.js → install-from-url-C5ZZLYX3.js} +1 -1
  114. package/dist/assets/{invitation-B4r3Uuqv.js → invitation-BuDjbT3x.js} +1 -1
  115. package/dist/assets/{is-path-prefix-equal-BsUunwOH.js → is-path-prefix-equal-MT4O3ono.js} +1 -1
  116. package/dist/assets/{isEqual-DvDsjofF.js → isEqual-C8jFbxEO.js} +1 -1
  117. package/dist/assets/{item-BQ-lq0dH.js → item-DmRpat8A.js} +1 -1
  118. package/dist/assets/{javascript.es-DmenNz71.js → javascript.es-CWA0V3mM.js} +1 -1
  119. package/dist/assets/{jump-to-line.es-BT9o4hFe.js → jump-to-line.es-BITLwcgJ.js} +1 -1
  120. package/dist/assets/{jump.es-BJH_IFbo.js → jump.es-fVm9xBWY.js} +1 -1
  121. package/dist/assets/{line-C7Ytimyk.js → line-vQYPOsJl.js} +3 -3
  122. package/dist/assets/{lint.es-BsdVLYYK.js → lint.es-BN9f3Hg9.js} +1 -1
  123. package/dist/assets/{lint.es2-CT9E8RI5.js → lint.es2-Dt2lwIVK.js} +1 -1
  124. package/dist/assets/{lint.es3-CjbW7OcU.js → lint.es3-sBho7ETd.js} +1 -1
  125. package/dist/assets/{list-header-C1ycqwNT.js → list-header-DkOo80YP.js} +1 -1
  126. package/dist/assets/{log-CrPoPCZq.js → log-CgFbIbvp.js} +1 -1
  127. package/dist/assets/{lottie-E7kaZ5f2.js → lottie-xnBjXQ5H.js} +1 -1
  128. package/dist/assets/{matchbrackets.es-Bdv2zR-T.js → matchbrackets.es-Ci37WRje.js} +1 -1
  129. package/dist/assets/{memory-Br7PUWs3.js → memory-rY7rc2Pr.js} +1 -1
  130. package/dist/assets/{mode.es-C0DC5igF.js → mode.es-CIMZsD3l.js} +1 -1
  131. package/dist/assets/{mode.es2-BvMpbvGY.js → mode.es2-Buy6Zs7Q.js} +1 -1
  132. package/dist/assets/{mode.es3-BzN1VyV9.js → mode.es3-CbjER9bZ.js} +1 -1
  133. package/dist/assets/{onlineParser.es-DhWzlYWG.js → onlineParser.es-DClTB48M.js} +1 -1
  134. package/dist/assets/{overview-RRUNlHLn.js → overview-GTzk3Rt6.js} +1 -1
  135. package/dist/assets/{react-Cw_CkYN1.js → react-BX4vljA0.js} +3 -3
  136. package/dist/assets/{redux-B9BtMJgi.js → redux-CiOMdG2L.js} +1 -1
  137. package/dist/assets/{resource-dialog-0uswwg4x.js → resource-dialog-aFD_HBXU.js} +1 -1
  138. package/dist/assets/{runtime-C6dWdPqY.js → runtime-B3RZCh1x.js} +1 -1
  139. package/dist/assets/{schema-rBztjvAB.js → schema-BzCltIyc.js} +1 -1
  140. package/dist/assets/sdk-DmktCVPV.js +1 -0
  141. package/dist/assets/{search.es-lkmhiqmF.js → search.es-kY0vSJsp.js} +1 -1
  142. package/dist/assets/{searchcursor.es-CyKx0v-U.js → searchcursor.es-DdxQrbfv.js} +1 -1
  143. package/dist/assets/service-YfGgRaf0.js +1 -0
  144. package/dist/assets/{shorten-label-MAGXebJW.js → shorten-label-C-ljprxl.js} +1 -1
  145. package/dist/assets/{show-hint.es-DiObn3_W.js → show-hint.es-DiJd2cnC.js} +1 -1
  146. package/dist/assets/{slicedToArray-Cd-fJo2i.js → slicedToArray-BRqOgi_5.js} +1 -1
  147. package/dist/assets/{spaces-q5OlP__P.js → spaces-DcSM3WjO.js} +1 -1
  148. package/dist/assets/{status-93gUV3__.js → status-DPLxEBYu.js} +1 -1
  149. package/dist/assets/{sublime.es-CaUPtnXc.js → sublime.es-2rWUK1DK.js} +1 -1
  150. package/dist/assets/{switch-control-Dd1suGf_.js → switch-control-C2T6recO.js} +1 -1
  151. package/dist/assets/{table-icons-BuE8hjls.js → table-icons-Cw9lvDU6.js} +1 -1
  152. package/dist/assets/{team-B75Qqpfx.js → team-CoOZjBzx.js} +1 -1
  153. package/dist/assets/{toUpper-BPjfk0vW.js → toUpper-MM-LMl4h.js} +1 -1
  154. package/dist/assets/{traffic-Dm5MXy9S.js → traffic-CSlS8nHX.js} +1 -1
  155. package/dist/assets/{url-evaluation-BfNZVzn8.js → url-evaluation-C5psqheg.js} +1 -1
  156. package/dist/assets/{url-join-uVmSvxHB.js → url-join-CN9FagN9.js} +1 -1
  157. package/dist/assets/{use-blocklet-info-for-connect-did-spaces--c0ZcRNe.js → use-blocklet-info-for-connect-did-spaces-DtrHJjly.js} +1 -1
  158. package/dist/assets/{useLocalStorage-C-9FT6wS.js → useLocalStorage-DoHM0_RD.js} +1 -1
  159. package/dist/assets/{useThemeProps-D2picXH9.js → useThemeProps-DCfy4AlW.js} +1 -1
  160. package/dist/assets/{util-B3g0jIJB.js → util-KSqE9V0r.js} +1 -1
  161. package/dist/assets/{wait-container-CS2sL203.js → wait-container-e8XKZH24.js} +1 -1
  162. package/dist/assets/{withStyles-D9ls3p7Y.js → withStyles-2CEBfzYU.js} +1 -1
  163. package/dist/assets/{wrap-locale-CJcLTW-n.js → wrap-locale-VUVZgNw_.js} +1 -1
  164. package/dist/index.html +1 -1
  165. package/dist/service-worker.js +1 -1
  166. package/package.json +1 -1
  167. package/dist/assets/api-BxXFuqVr.js +0 -1
  168. package/dist/assets/blocklet-xgPL6JoP.js +0 -1
  169. package/dist/assets/getValidReactChildren-anMSyFv4.js +0 -1
  170. package/dist/assets/sdk-B77IQB17.js +0 -1
  171. package/dist/assets/service-DumyHxMs.js +0 -1
@@ -1,4 +1,4 @@
1
- import{u as z,j as n,r as d,L as J,P as g,f as H,l as b,Q as m,m as S,d as Y,X as Z,C as ee,t as te,N as y,a as f,H as T,b as x,cT as re,G as v,E as R,p as ne,o as oe,A as se,bg as ie,n as ae}from"./index-Dpawm4Ki.js";import{T as me}from"./index-04gl6pO4.js";import le from"./traffic-Dm5MXy9S.js";import{D as ce}from"./index-vxqr_A7H.js";import{B as ue}from"./app-avatar-Dp7pMuua.js";import{B as de}from"./bundle-avatar-BOdLBYt_.js";import{C as pe,M as E}from"./memory-Br7PUWs3.js";import{I as fe}from"./chart-ChpsdZ5w.js";import{w as ge}from"./withStyles-D9ls3p7Y.js";import{_ as he}from"./useLocalStorage-C-9FT6wS.js";import{T as ye,a as ve}from"./ToggleButtonGroup-BLKzb8eH.js";import"./Delete-ukzbwUp3.js";import"./iframe-DeTHfFVQ.js";import"./ChevronLeft-CGibP5P0.js";import"./ChevronRight-DakQosJn.js";import"./Select-CZslLkS9.js";import"./useThemeProps-D2picXH9.js";import"./TextField-FjVpB8_i.js";import"./InputLabel-DiJjRX8c.js";import"./InputAdornment-CmItI7-a.js";import"./FilterList-B3q8z3Ai.js";import"./LastPage-BVKCAcZd.js";import"./index-DJs7uyCT.js";import"./redux-B9BtMJgi.js";import"./Search-DPoHYjEM.js";import"./index-DDRhCg0G.js";import"./MoreVert-72FLA6F7.js";import"./getValidReactChildren-anMSyFv4.js";function je(){const{api:e,info:r}=z();return n.jsx(le,{client:e,did:r.did})}var M={};Object.defineProperty(M,"__esModule",{value:!0});var V=M.default=void 0;xe(d);var C=n;function xe(e){return e&&e.__esModule?e:{default:e}}function L(e,r){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),i.push.apply(i,a)}return i}function _(e){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?L(Object(i),!0).forEach(function(a){be(e,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):L(Object(i)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(i,a))})}return e}function be(e,r,i){return(r=Ie(r))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e}function Ie(e){var r=Ne(e,"string");return typeof r=="symbol"?r:r+""}function Ne(e,r){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var a=i.call(e,r||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var k=function(r){return(0,C.jsxs)("svg",_(_({},r),{},{children:[(0,C.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.083 3.2c0-.619.501-1.12 1.12-1.12h25.6c.619 0 1.12.501 1.12 1.12v10.24a1.12 1.12 0 0 1-1.12 1.12h-25.6a1.12 1.12 0 0 1-1.12-1.12V3.2zm2.24 1.12v8h23.36v-8H4.323zm-2.24 14.24c0-.619.501-1.12 1.12-1.12h25.6c.619 0 1.12.501 1.12 1.12V28.8a1.12 1.12 0 0 1-1.12 1.12h-25.6a1.12 1.12 0 0 1-1.12-1.12V18.56zm2.24 1.12v8h23.36v-8H4.323z",fill:"currentColor"}),(0,C.jsx)("path",{d:"M8.963 7.04h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64V7.68a.64.64 0 0 0-.64-.64zm0 15.36h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64v-1.28a.64.64 0 0 0-.64-.64zm5.12-15.36h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64V7.68a.64.64 0 0 0-.64-.64zm0 15.36h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64v-1.28a.64.64 0 0 0-.64-.64z",fill:"currentColor"})]}))};k.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"};k.displayName="server";V=M.default=k;const Pe=ge(e=>({root:{height:10},colorPrimary:{backgroundColor:e.palette.grey[e.palette.mode==="light"?200:700]},bar:{backgroundColor:e.palette.secondary.main}}))(J);function A(e){const{value:r}=e;return n.jsxs(m,{display:"flex",alignItems:"center",mt:2,children:[n.jsx(m,{width:"100%",style:{overflow:"hidden"},mr:1,children:n.jsx(Pe,{variant:"determinate",...e})}),n.jsx(m,{minWidth:35,children:n.jsx(S,{variant:"body2",color:"textSecondary",children:`${Math.round(r)}%`})})]})}A.propTypes={value:g.number.isRequired};function O({disk:e}){const{t:r}=d.useContext(H),i=[{id:1,className:"used",title:r("system.used"),metric:b(e.used)},{id:2,className:"free",title:r("system.free"),metric:b(e.free)},{id:3,className:"total",title:r("system.total"),metric:b(e.total)}];return n.jsx(fe,{title:`${r("common.disk")} (${e.device})`,value:b(e.used),graph:n.jsx(m,{mt:3,children:n.jsx(A,{value:e.used/e.total*100})}),description:i.map((a,u)=>n.jsxs(m,{sx:{marginLeft:u===0?0:2},children:[a.title,": ",a.metric]},a.title))})}O.propTypes={disk:g.shape({used:g.number,free:g.number,total:g.number,device:g.string})};O.defaultProps={disk:{used:0,free:0,total:1,device:""}};const D={uptime:0,pid:-1,cpuUsage:0,memoryUsage:0},U="Blocklet Server";function $({initialBlocklets:e}){const{t:r,locale:i}=te(),{api:a}=z(),[u,I]=he("runtime-view-interval",6),j=d.useMemo(()=>{const t=[];return t.push({type:"server",groupId:"server",groupName:U,id:"server:daemon",name:"Server (Daemon)",runtimeInfo:D}),t.push({type:"server",groupId:"server",groupName:U,id:"server:service",name:"Server (Service)",runtimeInfo:D}),e.forEach(o=>{y.forEachBlockletSync(o,(s,{id:l,ancestors:c})=>{s.runtimeInfo&&t.push({type:"blocklet",groupId:o.meta.did,groupName:y.getDisplayName(o),id:l,name:y.getDisplayName(s,!0),blocklet:o,component:s,runtimeInfo:s.runtimeInfo,ancestors:c})})}),t},[]),[p,N]=d.useState(j),[h,F]=d.useState({os:{platform:""},mem:{used:0,free:0,total:1},cpu:{cpus:[],currentLoad:1},disks:[],daemon:{},service:{}}),[P,G]=d.useState({cpu:[],mem:[],daemonMem:[],serviceMem:[]});f(T.EVENTS.NODE_RUNTIME_INFO,t=>{t.mem.total=t.mem.total||0,t.mem.used=t.mem.total-(t.mem.available||0),F(t),N(o=>o.map(s=>s.id==="server:daemon"?{...s,runtimeInfo:{...s.runtimeInfo,...t.daemon}}:s.id==="server:service"?{...s,runtimeInfo:{...s.runtimeInfo,...t.service}}:s))}),f(T.EVENTS.BLOCKLETS_RUNTIME_INFO,t=>{if(!t||!t.length){console.error("incorrect blocklets runtime info format",t);return}N(o=>o.map(s=>{const l=t.find(c=>c.componentId===s.id);return l?{...s,runtimeInfo:{...s.runtimeInfo,...l.runtimeInfo}}:s}))});const w=t=>{N(o=>o.filter(s=>s.groupId!==t.meta.did))},B=async t=>{try{const{blocklet:o}=await a.getBlocklet({input:{did:t.meta.did,attachRuntimeInfo:!0}});o.status!=="running"&&w(o),N(s=>{const l=s.filter(c=>c.groupId!==o.meta.did);return y.forEachBlockletSync(o,(c,{id:Q,ancestors:X})=>{c.runtimeInfo&&l.push({type:"blocklet",groupId:o.meta.did,groupName:y.getDisplayName(o),id:Q,name:y.getDisplayName(c,!0),blocklet:o,component:c,runtimeInfo:c.runtimeInfo,ancestors:X})}),l})}catch(o){R.error(o.message)}};f(x.BlockletEvents.removed,w),f(x.BlockletEvents.startFailed,w),f(x.BlockletEvents.statusChange,t=>{if(t.status!=="running"){w(t);return}B(t)}),f(x.BlockletEvents.updated,B),f(x.BlockletEvents.started,B);const W=()=>{a.getNodeRuntimeHistory({input:{hours:u}}).then(t=>{const o=t.history||[];G({cpu:o.map(s=>({date:s.date,value:s.cpu})),mem:o.map(s=>({date:s.date,value:s.mem})),daemonMem:o.map(s=>({date:s.date,value:s.daemonMem})),serviceMem:o.map(s=>({date:s.date,value:s.serviceMem}))})}).catch(t=>{R.error(t.message)})};d.useEffect(()=>{W()},[u]);const q=t=>ne(Number(t||0),{locale:oe(i)}),K=[{label:r("common.group"),name:"groupName",options:{customBodyRenderLite(t){const{type:o,blocklet:s,groupName:l}=p[t];return o==="server"?n.jsxs(m,{display:"flex",alignItems:"center",children:[n.jsx(re,{width:"14",height:"14"}),n.jsx(m,{ml:1,children:l})]}):n.jsxs(m,{display:"flex",alignItems:"center",children:[n.jsx(ue,{size:14,blocklet:s}),n.jsx(m,{ml:1,children:l})]})}}},{label:r("common.name"),name:"name",options:{customBodyRenderLite(t){const{type:o,name:s,component:l,ancestors:c}=p[t];return o==="server"?n.jsxs(m,{display:"flex",alignItems:"center",children:[n.jsx(V,{width:"14",height:"14"}),n.jsx(m,{ml:1,children:s})]}):n.jsxs(m,{display:"flex",alignItems:"center",children:[n.jsx(de,{size:14,blocklet:l,ancestors:c}),n.jsx(m,{ml:1,children:s})]})}}},{label:r("common.uptime"),name:"runtimeInfo.uptime",options:{customBodyRenderLite(t){const{runtimeInfo:o}=p[t];return q(o.uptime)}}},{label:r("blocklet.runtimeInfo.memoryUsage"),name:"runtimeInfo.memoryUsage",options:{customBodyRenderLite(t){const{runtimeInfo:o}=p[t];return b((o==null?void 0:o.memoryUsage)||0)},sortDirection:"asc"}},{label:r("blocklet.runtimeInfo.cpuUsage"),name:"runtimeInfo.cpuUsage",options:{customBodyRenderLite(t){const{runtimeInfo:o}=p[t];return`${(o.cpuUsage||0).toFixed(1)}%`}}},{label:r("blocklet.runtimeInfo.processId"),name:"runtimeInfo.pid"},{label:r("blocklet.runtimeInfo.port"),name:"runtimeInfo.port"}];return n.jsxs("div",{children:[n.jsxs(m,{display:"flex",justifyContent:"space-between",flexDirection:"row",mb:2,children:[n.jsx(S,{component:"h3",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},children:r("analytics.trend")}),n.jsx(ye,{size:"small",exclusive:!0,value:u,onChange:(t,o)=>I(o),children:[1,3,6,12,24].map(t=>n.jsxs(ve,{value:t,children:[t,"H"]},t))})]}),n.jsxs(v,{mb:4,container:!0,spacing:4,children:[n.jsx(v,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(pe,{...h.cpu,history:P.cpu})},"cpu"),n.jsx(v,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(E,{...h.mem,history:P.mem})},"memory"),n.jsx(v,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(E,{title:`${r("common.memory")} (Daemon)`,used:h.daemon.memoryUsage||0,history:P.daemonMem})},"memory-daemon"),n.jsx(v,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(E,{title:`${r("common.memory")} (Service)`,instanceCount:h.service.instanceCount||0,used:h.service.memoryUsage||0,history:P.serviceMem})},"memory-service"),h.disks.map(t=>n.jsx(v,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(O,{disk:t})},"disk"))]}),n.jsx(ce,{className:"runtime-insight-list",title:r("analytics.detail"),locale:i,data:p,columns:K,options:{download:!1,filter:!1,print:!1,pagination:!1,rowsPerPage:100}})]})}$.propTypes={initialBlocklets:g.array.isRequired};function we(){const{data:e,externalData:r,initialized:i}=Y();if(!i)return n.jsx(Z,{relative:"parent",children:n.jsx(ee,{})});const a=[...e,...r];return n.jsx($,{initialBlocklets:a})}function tt(){const e=se(),{t:r}=d.useContext(H),{tab:i="traffic"}=ie(),a=p=>{e(`/analytics/${p}`)},u=[{label:r("common.traffic"),value:"traffic"},{label:r("common.runtime"),value:"runtime"}],I={traffic:je,runtime:we},j=I[i]||I.traffic;return n.jsxs(Be,{children:[n.jsx(S,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:r("common.analytics")}),n.jsx(me,{tabs:u,current:i,onChange:a}),n.jsx("div",{className:"page-content",children:d.isValidElement(j)?j:n.jsx(j,{})})]})}const Be=ae.main`
1
+ import{u as z,j as n,r as d,L as J,P as g,f as H,l as b,Q as m,m as S,d as Y,X as Z,C as ee,t as te,N as y,a as f,H as T,b as x,cT as re,G as v,E as R,p as ne,o as oe,A as se,bg as ie,n as ae}from"./index-CX-CBC_8.js";import{T as me}from"./index-ChmGkB6N.js";import le from"./traffic-CSlS8nHX.js";import{D as ce}from"./index-C7FHl3UZ.js";import{B as ue}from"./app-avatar-BuBN13SD.js";import{B as de}from"./bundle-avatar-I8HkXJpE.js";import{C as pe,M as E}from"./memory-rY7rc2Pr.js";import{I as fe}from"./chart-DYC16wN7.js";import{w as ge}from"./withStyles-2CEBfzYU.js";import{_ as he}from"./useLocalStorage-DoHM0_RD.js";import{T as ye,a as ve}from"./ToggleButtonGroup-CxfQ5hQa.js";import"./Delete-DyfYh5Dp.js";import"./iframe-BqheM3L9.js";import"./ChevronLeft-BAD_V2NB.js";import"./ChevronRight-C3N0vcYC.js";import"./Select-DPQiNjEZ.js";import"./useThemeProps-DCfy4AlW.js";import"./TextField-CK1WkVgK.js";import"./InputLabel-CZjkqwQE.js";import"./InputAdornment--p8LCNNy.js";import"./FilterList-DOSX0qYn.js";import"./LastPage-BgqTQGsQ.js";import"./index-CtwmcOKA.js";import"./redux-CiOMdG2L.js";import"./Search-DvHspZGZ.js";import"./index-bVh0eo8P.js";import"./MoreVert-s_b5pzH1.js";import"./getValidReactChildren-Ckfy1X1A.js";function je(){const{api:e,info:r}=z();return n.jsx(le,{client:e,did:r.did})}var M={};Object.defineProperty(M,"__esModule",{value:!0});var V=M.default=void 0;xe(d);var C=n;function xe(e){return e&&e.__esModule?e:{default:e}}function L(e,r){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),i.push.apply(i,a)}return i}function _(e){for(var r=1;r<arguments.length;r++){var i=arguments[r]!=null?arguments[r]:{};r%2?L(Object(i),!0).forEach(function(a){be(e,a,i[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):L(Object(i)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(i,a))})}return e}function be(e,r,i){return(r=Ie(r))in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e}function Ie(e){var r=Ne(e,"string");return typeof r=="symbol"?r:r+""}function Ne(e,r){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var a=i.call(e,r||"default");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var k=function(r){return(0,C.jsxs)("svg",_(_({},r),{},{children:[(0,C.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.083 3.2c0-.619.501-1.12 1.12-1.12h25.6c.619 0 1.12.501 1.12 1.12v10.24a1.12 1.12 0 0 1-1.12 1.12h-25.6a1.12 1.12 0 0 1-1.12-1.12V3.2zm2.24 1.12v8h23.36v-8H4.323zm-2.24 14.24c0-.619.501-1.12 1.12-1.12h25.6c.619 0 1.12.501 1.12 1.12V28.8a1.12 1.12 0 0 1-1.12 1.12h-25.6a1.12 1.12 0 0 1-1.12-1.12V18.56zm2.24 1.12v8h23.36v-8H4.323z",fill:"currentColor"}),(0,C.jsx)("path",{d:"M8.963 7.04h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64V7.68a.64.64 0 0 0-.64-.64zm0 15.36h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64v-1.28a.64.64 0 0 0-.64-.64zm5.12-15.36h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64V7.68a.64.64 0 0 0-.64-.64zm0 15.36h-1.28a.64.64 0 0 0-.64.64v1.28a.64.64 0 0 0 .64.64h1.28a.64.64 0 0 0 .64-.64v-1.28a.64.64 0 0 0-.64-.64z",fill:"currentColor"})]}))};k.defaultProps={width:"32",height:"32",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"};k.displayName="server";V=M.default=k;const Pe=ge(e=>({root:{height:10},colorPrimary:{backgroundColor:e.palette.grey[e.palette.mode==="light"?200:700]},bar:{backgroundColor:e.palette.secondary.main}}))(J);function A(e){const{value:r}=e;return n.jsxs(m,{display:"flex",alignItems:"center",mt:2,children:[n.jsx(m,{width:"100%",style:{overflow:"hidden"},mr:1,children:n.jsx(Pe,{variant:"determinate",...e})}),n.jsx(m,{minWidth:35,children:n.jsx(S,{variant:"body2",color:"textSecondary",children:`${Math.round(r)}%`})})]})}A.propTypes={value:g.number.isRequired};function O({disk:e}){const{t:r}=d.useContext(H),i=[{id:1,className:"used",title:r("system.used"),metric:b(e.used)},{id:2,className:"free",title:r("system.free"),metric:b(e.free)},{id:3,className:"total",title:r("system.total"),metric:b(e.total)}];return n.jsx(fe,{title:`${r("common.disk")} (${e.device})`,value:b(e.used),graph:n.jsx(m,{mt:3,children:n.jsx(A,{value:e.used/e.total*100})}),description:i.map((a,u)=>n.jsxs(m,{sx:{marginLeft:u===0?0:2},children:[a.title,": ",a.metric]},a.title))})}O.propTypes={disk:g.shape({used:g.number,free:g.number,total:g.number,device:g.string})};O.defaultProps={disk:{used:0,free:0,total:1,device:""}};const D={uptime:0,pid:-1,cpuUsage:0,memoryUsage:0},U="Blocklet Server";function $({initialBlocklets:e}){const{t:r,locale:i}=te(),{api:a}=z(),[u,I]=he("runtime-view-interval",6),j=d.useMemo(()=>{const t=[];return t.push({type:"server",groupId:"server",groupName:U,id:"server:daemon",name:"Server (Daemon)",runtimeInfo:D}),t.push({type:"server",groupId:"server",groupName:U,id:"server:service",name:"Server (Service)",runtimeInfo:D}),e.forEach(o=>{y.forEachBlockletSync(o,(s,{id:l,ancestors:c})=>{s.runtimeInfo&&t.push({type:"blocklet",groupId:o.meta.did,groupName:y.getDisplayName(o),id:l,name:y.getDisplayName(s,!0),blocklet:o,component:s,runtimeInfo:s.runtimeInfo,ancestors:c})})}),t},[]),[p,N]=d.useState(j),[h,F]=d.useState({os:{platform:""},mem:{used:0,free:0,total:1},cpu:{cpus:[],currentLoad:1},disks:[],daemon:{},service:{}}),[P,G]=d.useState({cpu:[],mem:[],daemonMem:[],serviceMem:[]});f(T.EVENTS.NODE_RUNTIME_INFO,t=>{t.mem.total=t.mem.total||0,t.mem.used=t.mem.total-(t.mem.available||0),F(t),N(o=>o.map(s=>s.id==="server:daemon"?{...s,runtimeInfo:{...s.runtimeInfo,...t.daemon}}:s.id==="server:service"?{...s,runtimeInfo:{...s.runtimeInfo,...t.service}}:s))}),f(T.EVENTS.BLOCKLETS_RUNTIME_INFO,t=>{if(!t||!t.length){console.error("incorrect blocklets runtime info format",t);return}N(o=>o.map(s=>{const l=t.find(c=>c.componentId===s.id);return l?{...s,runtimeInfo:{...s.runtimeInfo,...l.runtimeInfo}}:s}))});const w=t=>{N(o=>o.filter(s=>s.groupId!==t.meta.did))},B=async t=>{try{const{blocklet:o}=await a.getBlocklet({input:{did:t.meta.did,attachRuntimeInfo:!0}});o.status!=="running"&&w(o),N(s=>{const l=s.filter(c=>c.groupId!==o.meta.did);return y.forEachBlockletSync(o,(c,{id:Q,ancestors:X})=>{c.runtimeInfo&&l.push({type:"blocklet",groupId:o.meta.did,groupName:y.getDisplayName(o),id:Q,name:y.getDisplayName(c,!0),blocklet:o,component:c,runtimeInfo:c.runtimeInfo,ancestors:X})}),l})}catch(o){R.error(o.message)}};f(x.BlockletEvents.removed,w),f(x.BlockletEvents.startFailed,w),f(x.BlockletEvents.statusChange,t=>{if(t.status!=="running"){w(t);return}B(t)}),f(x.BlockletEvents.updated,B),f(x.BlockletEvents.started,B);const W=()=>{a.getNodeRuntimeHistory({input:{hours:u}}).then(t=>{const o=t.history||[];G({cpu:o.map(s=>({date:s.date,value:s.cpu})),mem:o.map(s=>({date:s.date,value:s.mem})),daemonMem:o.map(s=>({date:s.date,value:s.daemonMem})),serviceMem:o.map(s=>({date:s.date,value:s.serviceMem}))})}).catch(t=>{R.error(t.message)})};d.useEffect(()=>{W()},[u]);const q=t=>ne(Number(t||0),{locale:oe(i)}),K=[{label:r("common.group"),name:"groupName",options:{customBodyRenderLite(t){const{type:o,blocklet:s,groupName:l}=p[t];return o==="server"?n.jsxs(m,{display:"flex",alignItems:"center",children:[n.jsx(re,{width:"14",height:"14"}),n.jsx(m,{ml:1,children:l})]}):n.jsxs(m,{display:"flex",alignItems:"center",children:[n.jsx(ue,{size:14,blocklet:s}),n.jsx(m,{ml:1,children:l})]})}}},{label:r("common.name"),name:"name",options:{customBodyRenderLite(t){const{type:o,name:s,component:l,ancestors:c}=p[t];return o==="server"?n.jsxs(m,{display:"flex",alignItems:"center",children:[n.jsx(V,{width:"14",height:"14"}),n.jsx(m,{ml:1,children:s})]}):n.jsxs(m,{display:"flex",alignItems:"center",children:[n.jsx(de,{size:14,blocklet:l,ancestors:c}),n.jsx(m,{ml:1,children:s})]})}}},{label:r("common.uptime"),name:"runtimeInfo.uptime",options:{customBodyRenderLite(t){const{runtimeInfo:o}=p[t];return q(o.uptime)}}},{label:r("blocklet.runtimeInfo.memoryUsage"),name:"runtimeInfo.memoryUsage",options:{customBodyRenderLite(t){const{runtimeInfo:o}=p[t];return b((o==null?void 0:o.memoryUsage)||0)},sortDirection:"asc"}},{label:r("blocklet.runtimeInfo.cpuUsage"),name:"runtimeInfo.cpuUsage",options:{customBodyRenderLite(t){const{runtimeInfo:o}=p[t];return`${(o.cpuUsage||0).toFixed(1)}%`}}},{label:r("blocklet.runtimeInfo.processId"),name:"runtimeInfo.pid"},{label:r("blocklet.runtimeInfo.port"),name:"runtimeInfo.port"}];return n.jsxs("div",{children:[n.jsxs(m,{display:"flex",justifyContent:"space-between",flexDirection:"row",mb:2,children:[n.jsx(S,{component:"h3",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},children:r("analytics.trend")}),n.jsx(ye,{size:"small",exclusive:!0,value:u,onChange:(t,o)=>I(o),children:[1,3,6,12,24].map(t=>n.jsxs(ve,{value:t,children:[t,"H"]},t))})]}),n.jsxs(v,{mb:4,container:!0,spacing:4,children:[n.jsx(v,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(pe,{...h.cpu,history:P.cpu})},"cpu"),n.jsx(v,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(E,{...h.mem,history:P.mem})},"memory"),n.jsx(v,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(E,{title:`${r("common.memory")} (Daemon)`,used:h.daemon.memoryUsage||0,history:P.daemonMem})},"memory-daemon"),n.jsx(v,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(E,{title:`${r("common.memory")} (Service)`,instanceCount:h.service.instanceCount||0,used:h.service.memoryUsage||0,history:P.serviceMem})},"memory-service"),h.disks.map(t=>n.jsx(v,{item:!0,lg:3,md:6,sm:6,xs:12,children:n.jsx(O,{disk:t})},"disk"))]}),n.jsx(ce,{className:"runtime-insight-list",title:r("analytics.detail"),locale:i,data:p,columns:K,options:{download:!1,filter:!1,print:!1,pagination:!1,rowsPerPage:100}})]})}$.propTypes={initialBlocklets:g.array.isRequired};function we(){const{data:e,externalData:r,initialized:i}=Y();if(!i)return n.jsx(Z,{relative:"parent",children:n.jsx(ee,{})});const a=[...e,...r];return n.jsx($,{initialBlocklets:a})}function tt(){const e=se(),{t:r}=d.useContext(H),{tab:i="traffic"}=ie(),a=p=>{e(`/analytics/${p}`)},u=[{label:r("common.traffic"),value:"traffic"},{label:r("common.runtime"),value:"runtime"}],I={traffic:je,runtime:we},j=I[i]||I.traffic;return n.jsxs(Be,{children:[n.jsx(S,{component:"h2",variant:"h4",className:"page-header",color:"textPrimary",children:r("common.analytics")}),n.jsx(me,{tabs:u,current:i,onChange:a}),n.jsx("div",{className:"page-content",children:d.isValidElement(j)?j:n.jsx(j,{})})]})}const Be=ae.main`
2
2
  .page-header {
3
3
  display: flex;
4
4
  justify-content: space-between;
@@ -1,4 +1,4 @@
1
- import{r as H,j as o,fv as fo,ch as Ye,fw as po,fd as dt,Q,as as yr,ax as Ke,m as xe,ez as mo,d0 as zr,fx as ho,t as ke,fy as vr,fz as go,aG as yo,cg as vo,dM as ir,S as jt,dx as Rn,dA as Ct,fA as mt,eU as Ce,fB as bo,fj as Tn,fC as xo,fD as wo,fk as Cn,fE as br,fF as Eo,fG as jo,fH as So,fI as Ao,dw as ar,g as Po,cN as Wr,dD as Oo,N as Io,bl as _e,aO as Dn,U as St,dE as Ro,fJ as xr,at as ht,D as Ze,B as Ae,C as ot,x as wr,K as nt,M as Xe,P as $,fK as To,k as sr,aU as Co,y as Do,z as No,n as Be,fc as _o,f as gt,ac as Dt,V as Fe,cb as Qe,E as it,fL as Bo,aK as Nn,aL as _n,b as Je,d4 as Lo,v as Bn,H as Se,q as cr,W as At,cd as ko,fM as Uo,fN as Ln,aQ as qo,aD as Fo,a8 as Ko,cz as Mo,a2 as $o,bp as zo,aZ as Wo,a_ as Vo,R as Ho}from"./index-Dpawm4Ki.js";import{c as Go}from"./index-DnBiGZ_C.js";import{d as Pt}from"./Add-YuGHCX93.js";import{d as Yo}from"./Loop-cNToB-Hw.js";import{d as Zo}from"./ViewList-BWR6vvRA.js";import{L as Jo,S as Xo,d as kn}from"./list-header-C1ycqwNT.js";import{D as Er,g as Qo}from"./index-vxqr_A7H.js";import"./index-DP0iPBNh.js";import{c as qt,U as Ft,d as Un}from"./resource-dialog-0uswwg4x.js";import{T as ei}from"./index-04gl6pO4.js";import{E as qn}from"./index-DDRhCg0G.js";import"./index-CoOBWTGS.js";import"./index-TFGhlmJg.js";import{l as Fn}from"./index-BtcEDL3C.js";import{o as Kn}from"./index-ZG7jWpak.js";import{W as Mn}from"./url-evaluation-BfNZVzn8.js";import{a as $e}from"./team-B75Qqpfx.js";import{u as $n}from"./blocklet-xgPL6JoP.js";import{C as Nt}from"./click-to-copy-qnXvH47O.js";import{F as lr,S as ur}from"./Select-CZslLkS9.js";import{I as fr}from"./InputLabel-DiJjRX8c.js";import{T as zn}from"./TextField-FjVpB8_i.js";import{I as dr}from"./index-CUnYmZv8.js";import{b as ti}from"./sdk-B77IQB17.js";import{d as ri}from"./Delete-ukzbwUp3.js";import{A as ni}from"./actions-DMatOIO9.js";import{S as oi}from"./shorten-label-MAGXebJW.js";var jr={};Object.defineProperty(jr,"__esModule",{value:!0});var Wn=jr.default=void 0;ii(H);var tt=o;function ii(e){return e&&e.__esModule?e:{default:e}}function Vr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Hr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vr(Object(r),!0).forEach(function(n){ai(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ai(e,t,r){return(t=si(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function si(e){var t=ci(e,"string");return typeof t=="symbol"?t:t+""}function ci(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Sr=function(t){return(0,tt.jsxs)("svg",Hr(Hr({},t),{},{children:[(0,tt.jsx)("g",{clipPath:"url(#clip0)",children:(0,tt.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 1.598A4.092 4.092 0 1 0 9 9.78a4.092 4.092 0 0 0 0-8.183zM7.274 3.964a2.44 2.44 0 1 1 3.452 3.451 2.44 2.44 0 0 1-3.452-3.451zm.093 6.343A4.091 4.091 0 0 0 3.275 14.4v2.722c0 .155.126.281.281.281h1.09a.281.281 0 0 0 .28-.281v-2.722a2.44 2.44 0 0 1 2.44-2.44h3.267a2.442 2.442 0 0 1 2.44 2.44v2.722c0 .155.127.281.282.281h1.088a.281.281 0 0 0 .282-.281v-2.722a4.091 4.091 0 0 0-4.092-4.091H7.367z"})}),(0,tt.jsx)("defs",{children:(0,tt.jsx)("clipPath",{id:"clip0",children:(0,tt.jsx)("path",{transform:"translate(0 .5)",d:"M0 0h18v18H0z"})})})]}))};Sr.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};Sr.displayName="person";Wn=jr.default=Sr;var Et={},li=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),Vn="%[a-f0-9]{2}",Gr=new RegExp("("+Vn+")|([^%]+?)","gi"),Yr=new RegExp("("+Vn+")+","gi");function pr(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],pr(r),pr(n))}function ui(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(Gr)||[],r=1;r<t.length;r++)e=pr(t,r).join(""),t=e.match(Gr)||[];return e}}function fi(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=Yr.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{var n=ui(r[0]);n!==r[0]&&(t[r[0]]=n)}r=Yr.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),u=0;u<s.length;u++){var p=s[u];e=e.replace(new RegExp(p,"g"),t[p])}return e}var di=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return fi(e)}},pi=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},mi=function(e,t){for(var r={},n=Object.keys(e),s=Array.isArray(t),u=0;u<n.length;u++){var p=n[u],y=e[p];(s?t.indexOf(p)!==-1:t(p,y,e))&&(r[p]=y)}return r};(function(e){const t=li,r=di,n=pi,s=mi,u=c=>c==null;function p(c){switch(c.arrayFormat){case"index":return i=>(a,f)=>{const b=a.length;return f===void 0||c.skipNull&&f===null||c.skipEmptyString&&f===""?a:f===null?[...a,[E(i,c),"[",b,"]"].join("")]:[...a,[E(i,c),"[",E(b,c),"]=",E(f,c)].join("")]};case"bracket":return i=>(a,f)=>f===void 0||c.skipNull&&f===null||c.skipEmptyString&&f===""?a:f===null?[...a,[E(i,c),"[]"].join("")]:[...a,[E(i,c),"[]=",E(f,c)].join("")];case"comma":case"separator":return i=>(a,f)=>f==null||f.length===0?a:a.length===0?[[E(i,c),"=",E(f,c)].join("")]:[[a,E(f,c)].join(c.arrayFormatSeparator)];default:return i=>(a,f)=>f===void 0||c.skipNull&&f===null||c.skipEmptyString&&f===""?a:f===null?[...a,E(i,c)]:[...a,[E(i,c),"=",E(f,c)].join("")]}}function y(c){let i;switch(c.arrayFormat){case"index":return(a,f,b)=>{if(i=/\[(\d*)\]$/.exec(a),a=a.replace(/\[\d*\]$/,""),!i){b[a]=f;return}b[a]===void 0&&(b[a]={}),b[a][i[1]]=f};case"bracket":return(a,f,b)=>{if(i=/(\[\])$/.exec(a),a=a.replace(/\[\]$/,""),!i){b[a]=f;return}if(b[a]===void 0){b[a]=[f];return}b[a]=[].concat(b[a],f)};case"comma":case"separator":return(a,f,b)=>{const I=typeof f=="string"&&f.includes(c.arrayFormatSeparator),j=typeof f=="string"&&!I&&d(f,c).includes(c.arrayFormatSeparator);f=j?d(f,c):f;const B=I||j?f.split(c.arrayFormatSeparator).map(z=>d(z,c)):f===null?f:d(f,c);b[a]=B};default:return(a,f,b)=>{if(b[a]===void 0){b[a]=f;return}b[a]=[].concat(b[a],f)}}}function x(c){if(typeof c!="string"||c.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function E(c,i){return i.encode?i.strict?t(c):encodeURIComponent(c):c}function d(c,i){return i.decode?r(c):c}function O(c){return Array.isArray(c)?c.sort():typeof c=="object"?O(Object.keys(c)).sort((i,a)=>Number(i)-Number(a)).map(i=>c[i]):c}function w(c){const i=c.indexOf("#");return i!==-1&&(c=c.slice(0,i)),c}function A(c){let i="";const a=c.indexOf("#");return a!==-1&&(i=c.slice(a)),i}function S(c){c=w(c);const i=c.indexOf("?");return i===-1?"":c.slice(i+1)}function _(c,i){return i.parseNumbers&&!Number.isNaN(Number(c))&&typeof c=="string"&&c.trim()!==""?c=Number(c):i.parseBooleans&&c!==null&&(c.toLowerCase()==="true"||c.toLowerCase()==="false")&&(c=c.toLowerCase()==="true"),c}function P(c,i){i=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},i),x(i.arrayFormatSeparator);const a=y(i),f=Object.create(null);if(typeof c!="string"||(c=c.trim().replace(/^[?#&]/,""),!c))return f;for(const b of c.split("&")){if(b==="")continue;let[I,j]=n(i.decode?b.replace(/\+/g," "):b,"=");j=j===void 0?null:["comma","separator"].includes(i.arrayFormat)?j:d(j,i),a(d(I,i),j,f)}for(const b of Object.keys(f)){const I=f[b];if(typeof I=="object"&&I!==null)for(const j of Object.keys(I))I[j]=_(I[j],i);else f[b]=_(I,i)}return i.sort===!1?f:(i.sort===!0?Object.keys(f).sort():Object.keys(f).sort(i.sort)).reduce((b,I)=>{const j=f[I];return j&&typeof j=="object"&&!Array.isArray(j)?b[I]=O(j):b[I]=j,b},Object.create(null))}e.extract=S,e.parse=P,e.stringify=(c,i)=>{if(!c)return"";i=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},i),x(i.arrayFormatSeparator);const a=j=>i.skipNull&&u(c[j])||i.skipEmptyString&&c[j]==="",f=p(i),b={};for(const j of Object.keys(c))a(j)||(b[j]=c[j]);const I=Object.keys(b);return i.sort!==!1&&I.sort(i.sort),I.map(j=>{const B=c[j];return B===void 0?"":B===null?E(j,i):Array.isArray(B)?B.reduce(f(j),[]).join("&"):E(j,i)+"="+E(B,i)}).filter(j=>j.length>0).join("&")},e.parseUrl=(c,i)=>{i=Object.assign({decode:!0},i);const[a,f]=n(c,"#");return Object.assign({url:a.split("?")[0]||"",query:P(S(c),i)},i&&i.parseFragmentIdentifier&&f?{fragmentIdentifier:d(f,i)}:{})},e.stringifyUrl=(c,i)=>{i=Object.assign({encode:!0,strict:!0},i);const a=w(c.url).split("?")[0]||"",f=e.extract(c.url),b=e.parse(f,{sort:!1}),I=Object.assign(b,c.query);let j=e.stringify(I,i);j&&(j=`?${j}`);let B=A(c.url);return c.fragmentIdentifier&&(B=`#${E(c.fragmentIdentifier,i)}`),`${a}${j}${B}`},e.pick=(c,i,a)=>{a=Object.assign({parseFragmentIdentifier:!0},a);const{url:f,query:b,fragmentIdentifier:I}=e.parseUrl(c,a);return e.stringifyUrl({url:f,query:s(b,i),fragmentIdentifier:I},a)},e.exclude=(c,i,a)=>{const f=Array.isArray(i)?b=>!i.includes(b):(b,I)=>!i(b,I);return e.pick(c,f,a)}})(Et);const ut=po,hi={parseNumbers:!1,parseBooleans:!1},gi={skipNull:!1,skipEmptyString:!1},yi=(e,t)=>{var r,n;const{navigateMode:s="push",parseOptions:u,stringifyOptions:p}={},y=Object.assign(Object.assign({},hi),u),x=Object.assign(Object.assign({},gi),p),E=ut.useLocation(),d=(r=ut.useHistory)===null||r===void 0?void 0:r.call(ut),O=(n=ut.useNavigate)===null||n===void 0?void 0:n.call(ut),w=fo(),A=H.useRef(typeof e=="function"?e():e||{}),S=H.useMemo(()=>Et.parse(E.search,y),[E.search]),_=H.useMemo(()=>Object.assign(Object.assign({},A.current),S),[S]);return[_,Ye(c=>{const i=typeof c=="function"?c(_):c;w(),d&&d[s]({hash:E.hash,search:Et.stringify(Object.assign(Object.assign({},S),i),x)||"?"},E.state),O&&O({hash:E.hash,search:Et.stringify(Object.assign(Object.assign({},S),i),x)||"?"},{replace:s==="replace",state:E.state})})]},vi=yi;let bi=class extends Error{constructor(t){super(),this.name="AbortError",this.message=t}};const Zr=e=>globalThis.DOMException===void 0?new bi(e):new DOMException(e),Jr=e=>{const t=e.reason===void 0?Zr("This operation was aborted."):e.reason;return t instanceof Error?t:Zr(t)};async function xi(e,t,{concurrency:r=Number.POSITIVE_INFINITY,stopOnError:n=!0,signal:s}={}){return new Promise((u,p)=>{if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof t!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(r)||r===Number.POSITIVE_INFINITY)&&r>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);const y=[],x=[],E=new Map;let d=!1,O=!1,w=!1,A=0,S=0;const _=e[Symbol.iterator]===void 0?e[Symbol.asyncIterator]():e[Symbol.iterator](),P=i=>{d=!0,O=!0,p(i)};s&&(s.aborted&&P(Jr(s)),s.addEventListener("abort",()=>{P(Jr(s))}));const c=async()=>{if(O)return;const i=await _.next(),a=S;if(S++,i.done){if(w=!0,A===0&&!O){if(!n&&x.length>0){P(new AggregateError(x));return}if(O=!0,E.size===0){u(y);return}const f=[];for(const[b,I]of y.entries())E.get(b)!==Xr&&f.push(I);u(f)}return}A++,(async()=>{try{const f=await i.value;if(O)return;const b=await t(f,a);b===Xr&&E.set(a,b),y[a]=b,A--,await c()}catch(f){if(n)P(f);else{x.push(f),A--;try{await c()}catch(b){P(b)}}}})()};(async()=>{for(let i=0;i<r;i++){try{await c()}catch(a){P(a);break}if(w||d)break}})()})}const Xr=Symbol("skip");async function wi(e,t){return xi(e,r=>r(),t)}function Ei({user:e,sessionUser:t}){const r=dt(()=>{var n;return(n=(e==null?void 0:e.passports)||[])==null?void 0:n.find(s=>s.name===t.role)},[e==null?void 0:e.passports,t==null?void 0:t.role]);return o.jsxs(Q,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(yr,{size:40,variant:"circle",shape:"circle",src:t.avatar,did:t.did,sx:{flexShrink:0}}),o.jsxs(Q,{sx:{flex:1,overflow:"hidden"},children:[o.jsxs(Q,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(Ke,{title:t.fullName,children:o.jsx(xe,{sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1},children:t.fullName})}),o.jsx(mo,{label:(r==null?void 0:r.title)||(r==null?void 0:r.name)||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:zr.textBase,borderColor:zr.strokeBorderStrong,backgroundColor:"transparent",textTransform:"capitalize",pr:.5,pl:0,height:"auto"}})]}),o.jsx(Ke,{title:t.email,children:o.jsx(xe,{variant:"body2",color:"grey",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.email})})]})]})}const ji={zh:{confirm:"确认",cancel:"取消",visitorId:"设备标识",deviceType:"设备类型",platform:"操作系统",walletOS:"钱包类型",role:"角色",fullname:"姓名",email:"邮箱",avatar:"头像",user:"用户",createdAt:"首次活动时间",updatedAt:"最近活动时间",lastLoginIp:"最近活动地址",actions:"操作",logoutAll:"注销所有会话",logoutAllTips:"不会注销当前会话",logout:"注销",currentSession:"当前会话",unknown:"未知",expired:"已过期",remove:"删除",logoutThisSession:"注销指定会话",logoutThisSessionConfirm:"确定要注销此会话吗?",logoutAllSession:"注销所有会话",logoutAllSessionConfirm:"确定要注销所有会话吗?"},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",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 sessions",logoutAllSessionConfirm:"Are you sure to logout all sessions?"}},Hn="Reserved IP",Qr="ip-region-cache";async function Si(e){const t=`https://ipapi.co/${e}/json/`,n=await(await fetch(t)).json();let s="";return n.error?n.reserved&&(s=Hn):s=[n.country_name,n.region,n.city].filter(Boolean).join("/"),s}async function Ai(e){const t=`https://api.ip.sb/geoip/${e}`,n=await(await fetch(t)).json();let s="";return n.error?n.reserved&&(s=Hn):s=[n.country,n.region,n.city].filter(Boolean).join("/"),s}async function Pi(e){let t="",r={};try{const n=localStorage.getItem(Qr);n&&(r=JSON.parse(n))}catch{r={}}if(r[e])t=r[e];else{try{t=await Ai(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!t)try{t=await Si(e)}catch{console.warn("Fail to get ip region from ip-api.co")}}if(t){const n=Object.keys(r);n.length>100&&delete r[n[0]],r[e]&&delete r[e],r[e]=t,localStorage.setItem(Qr,JSON.stringify(r))}return t}async function Oi(e){return Promise.all(e.map(t=>Pi(t)))}const en=e=>new Ft(e,{browser:[[/(ArcWallet)\/([\w\.]+)/i],[Ft.BROWSER.NAME,Ft.BROWSER.VERSION]]}).getResult();function Ii({user:e,showAction:t=!0,showUser:r=!0}){const n=ho(),{locale:s}=ke(),{confirmApi:u,confirmHolder:p}=vr(),y=Ye((i,a={})=>go(ji,i,s,"en",a)),x=Ye(async()=>{let i=e==null?void 0:e.userSessions;i||(i=await qt.userSession.getUserSessions({did:e.did}));try{const f=i==null?void 0:i.map((j,B)=>[B,j.lastLoginIp]).filter(j=>!!j[1]),b=f==null?void 0:f.map(j=>j[1]),I=await Oi(b);for(let j=0;j<I.length;j++){const B=I[j],z=f[j],J=i[z[0]];J.ipRegion=B}}catch(f){console.warn("Failed to convert ip to region"),console.error(f)}const a=new Date().getTime();return yo(i,f=>f.visitorId===n?-1:a-new Date(f.updatedAt).getTime())}),E=vo(x),d=dt(()=>E.data||[],[E.data]),O=dt(()=>d.reduce((i,a)=>(i[a.lastLoginIp]=a.ipRegion,i),{}),[d]),w=Ye(({visitorId:i})=>{u.open({title:y("logoutThisSession"),content:y("logoutThisSessionConfirm"),confirmButtonText:y("confirm"),cancelButtonText:y("cancel"),onConfirm:async()=>{await qt.user.logout({visitorId:i}),E.refresh(),u.close()}})}),A=dt(()=>d.filter(a=>a.visitorId!==n),[d]),S=Ye(()=>{u.open({title:y("logoutAllSession"),content:y("logoutAllSessionConfirm"),confirmButtonText:y("confirm"),cancelButtonText:y("cancel"),onConfirm:async()=>{const i=A.map(a=>()=>qt.user.logout({visitorId:a.visitorId}));await wi(i,{concurrency:3,stopOnError:!1}),E.refresh(),u.close()}})}),_=[];t&&_.push(o.jsx(Ke,{title:y("logoutAllTips"),children:o.jsx(ir,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:S,disabled:A.length===0,children:y("logoutAll")})},"logoutAll"));const P=dt(()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600}),[]),c=[{label:y("platform"),name:"platform",options:{customBodyRenderLite:i=>{var b,I;const a=d[i],f=en(a.ua);return o.jsx(Q,{children:[(b=f.os)==null?void 0:b.name,(I=f.os)==null?void 0:I.version].filter(Boolean).join("/")||y("unknown")})}}},{label:y("deviceType"),name:"deviceType",options:{customBodyRenderLite:i=>{var b,I;const a=d[i],f=en(a.ua);return o.jsx(Q,{children:[(b=f.browser)==null?void 0:b.name,(I=f.browser)==null?void 0:I.version].filter(Boolean).join("/")||y("unknown")})}}},{label:y("walletOS"),name:"walletOS",options:{customBodyRenderLite:i=>{var f;const a=d[i];return o.jsx(Q,{children:((f=a.extra)==null?void 0:f.walletOS)||y("unknown")})}}},r&&{label:y("user"),name:"user",options:{customBodyRenderLite:i=>{const a=d[i];return o.jsx(Q,{sx:{minWidth:150,maxWidth:250},children:o.jsx(Ei,{sessionUser:a.user,user:e})})}}},{label:y("createdAt"),name:"createdAt",options:{customBodyRenderLite:i=>{const a=d[i];return a.createdAt?o.jsx(jt,{value:a.createdAt,relativeRange:3*86400*1e3,locale:s}):y("unknown")}}},{label:y("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:i=>{const a=d[i];return a.status==="expired"?y("expired"):o.jsx(jt,{value:a.updatedAt,relativeRange:3*86400*1e3,locale:s})}}},{label:y("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:i=>{const a=d[i];return o.jsx(Q,{children:O[a.lastLoginIp]?o.jsxs(o.Fragment,{children:[o.jsx(xe,{variant:"body2",children:O[a.lastLoginIp]}),o.jsx(xe,{variant:"body2",color:"grey",children:a.lastLoginIp||y("unknown")})]}):o.jsx(xe,{children:a.lastLoginIp||y("unknown")})})}}},t&&{label:y("actions"),name:"actions",options:{customBodyRenderLite:i=>{const a=d[i];return o.jsx(Q,{children:o.jsx(ir,{sx:{whiteSpace:"nowrap",fontSize:"12px",px:1},disabled:n===a.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>w({visitorId:a.visitorId}),children:a.status==="expired"?y("remove"):n===a.visitorId?y("currentSession"):y("logout")})})}}}].filter(Boolean);return o.jsxs(Q,{sx:{".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"}},children:[p,o.jsx(Er,{locale:s,data:d,columns:c,customButtons:_,options:P,loading:E.loading})]})}var he={};Object.defineProperty(he,"__esModule",{value:!0});he.isValid=he.fromJSON=he.fromRandom=he.fromAddress=he.fromPublicKey=he.fromSecretKey=he.Wallet=he.WalletType=void 0;const yt=Rn,Ot=Ct,Ie=Fn;he.WalletType=Ie.DidType;function at(e,t="default"){const r=(0,Ie.DidType)(t),n=(0,Ot.getSigner)(r.pk),s=(0,Ot.getHasher)(r.hash);return{type:r,secretKey:e.sk,publicKey:e.pk,address:e.pk?(0,Ie.fromPublicKey)(e.pk,r):e.address,hash(u,p=1,y="hex"){return s(u,p,y)},sign(u,p=!0,y="hex"){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(p){const x=s(u,1);return n.sign(x,e.sk,y)}return n.sign(u,e.sk,y)},verify(u,p,y=!0){if(!e.pk)throw new Error("Cannot verify data without a publicKey");const x=y?s(u,1):u;return n.verify(x,p,e.pk)},ethHash(u){if(typeof n.ethHash!="function")throw new Error("ethHash is not supported by signer");return n.ethHash(u)},ethSign(u,p=!0){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(typeof n.ethHash!="function")throw new Error("ethSign is not supported by signer");return p?n.ethSign(n.ethHash(u),(0,yt.toHex)(e.sk)):n.ethSign(u,(0,yt.toHex)(e.sk))},ethVerify(u,p,y=!0){if(typeof n.ethHash!="function")throw new Error("ethVerify is not supported by signer");const x=y?n.ethHash(u):u;return n.ethRecover(x,p)===this.address},toAddress(){return e.pk?(0,Ie.fromPublicKey)(e.pk,r):e.address},toJSON(){return{type:Ie.DidType.toJSON(r),sk:(0,yt.toHex)(e.sk),pk:(0,yt.toHex)(e.pk),address:this.address}}}}he.Wallet=at;function Ri(e,t="default"){const r=(0,Ie.DidType)(t),n={sk:e,pk:(0,Ot.getSigner)(r.pk).getPublicKey(e)};return at(n,r)}he.fromSecretKey=Ri;function Ti(e,t="default"){return at({pk:e},(0,Ie.DidType)(t))}he.fromPublicKey=Ti;function Ci(e){return at({address:(0,Ie.toAddress)(e)},(0,Ie.toTypeInfo)(e))}he.fromAddress=Ci;function Di(e="default"){const t=(0,Ie.DidType)(e),n=(0,Ot.getSigner)(t.pk).genKeyPair();return at({sk:n.secretKey,pk:n.publicKey},t)}he.fromRandom=Di;function Ni(e){const t=Ie.DidType.fromJSON(e.type);return at(e,t)}he.fromJSON=Ni;function _i(e,t=!0){return!(!e||typeof e!="object"||typeof e.verify!="function"||typeof e.toAddress!="function"||typeof e.toJSON!="function"||!e.type||!e.publicKey||t&&(!e.secretKey||typeof e.sign!="function"))}he.isValid=_i;var Kt={exports:{}},Mt={},tn;function Gn(){if(tn)return Mt;tn=1;function e(i){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},e(i)}function t(i,a,f){return Object.defineProperty(i,"prototype",{writable:!1}),i}function r(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function n(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(a&&a.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),a&&s(i,a)}function s(i,a){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,I){return b.__proto__=I,b},s(i,a)}function u(i){var a=x();return function(){var b=E(i),I;if(a){var j=E(this).constructor;I=Reflect.construct(b,arguments,j)}else I=b.apply(this,arguments);return p(this,I)}}function p(i,a){if(a&&(e(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y(i)}function y(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function x(){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 E(i){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(f){return f.__proto__||Object.getPrototypeOf(f)},E(i)}var d={},O,w;function A(i,a,f){f||(f=Error);function b(j,B,z){return typeof a=="string"?a:a(j,B,z)}var I=function(j){n(z,j);var B=u(z);function z(J,X,G){var ee;return r(this,z),ee=B.call(this,b(J,X,G)),ee.code=i,ee}return t(z)}(f);d[i]=I}function S(i,a){if(Array.isArray(i)){var f=i.length;return i=i.map(function(b){return String(b)}),f>2?"one of ".concat(a," ").concat(i.slice(0,f-1).join(", "),", or ")+i[f-1]:f===2?"one of ".concat(a," ").concat(i[0]," or ").concat(i[1]):"of ".concat(a," ").concat(i[0])}else return"of ".concat(a," ").concat(String(i))}function _(i,a,f){return i.substr(0,a.length)===a}function P(i,a,f){return(f===void 0||f>i.length)&&(f=i.length),i.substring(f-a.length,f)===a}function c(i,a,f){return typeof f!="number"&&(f=0),f+a.length>i.length?!1:i.indexOf(a,f)!==-1}return A("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),A("ERR_INVALID_ARG_TYPE",function(i,a,f){O===void 0&&(O=mr()),O(typeof i=="string","'name' must be a string");var b;typeof a=="string"&&_(a,"not ")?(b="must not be",a=a.replace(/^not /,"")):b="must be";var I;if(P(i," argument"))I="The ".concat(i," ").concat(b," ").concat(S(a,"type"));else{var j=c(i,".")?"property":"argument";I='The "'.concat(i,'" ').concat(j," ").concat(b," ").concat(S(a,"type"))}return I+=". Received type ".concat(e(f)),I},TypeError),A("ERR_INVALID_ARG_VALUE",function(i,a){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";w===void 0&&(w=mt);var b=w.inspect(a);return b.length>128&&(b="".concat(b.slice(0,128),"...")),"The argument '".concat(i,"' ").concat(f,". Received ").concat(b)},TypeError),A("ERR_INVALID_RETURN_VALUE",function(i,a,f){var b;return f&&f.constructor&&f.constructor.name?b="instance of ".concat(f.constructor.name):b="type ".concat(e(f)),"Expected ".concat(i,' to be returned from the "').concat(a,'"')+" function but got ".concat(b,".")},TypeError),A("ERR_MISSING_ARGS",function(){for(var i=arguments.length,a=new Array(i),f=0;f<i;f++)a[f]=arguments[f];O===void 0&&(O=mr()),O(a.length>0,"At least one arg needs to be specified");var b="The ",I=a.length;switch(a=a.map(function(j){return'"'.concat(j,'"')}),I){case 1:b+="".concat(a[0]," argument");break;case 2:b+="".concat(a[0]," and ").concat(a[1]," arguments");break;default:b+=a.slice(0,I-1).join(", "),b+=", and ".concat(a[I-1]," arguments");break}return"".concat(b," must be specified")},TypeError),Mt.codes=d,Mt}var $t,rn;function Bi(){if(rn)return $t;rn=1;function e(R,T){var F=Object.keys(R);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(R);T&&(D=D.filter(function(V){return Object.getOwnPropertyDescriptor(R,V).enumerable})),F.push.apply(F,D)}return F}function t(R){for(var T=1;T<arguments.length;T++){var F=arguments[T]!=null?arguments[T]:{};T%2?e(Object(F),!0).forEach(function(D){r(R,D,F[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(F)):e(Object(F)).forEach(function(D){Object.defineProperty(R,D,Object.getOwnPropertyDescriptor(F,D))})}return R}function r(R,T,F){return T=p(T),T in R?Object.defineProperty(R,T,{value:F,enumerable:!0,configurable:!0,writable:!0}):R[T]=F,R}function n(R,T){if(!(R instanceof T))throw new TypeError("Cannot call a class as a function")}function s(R,T){for(var F=0;F<T.length;F++){var D=T[F];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(R,p(D.key),D)}}function u(R,T,F){return T&&s(R.prototype,T),Object.defineProperty(R,"prototype",{writable:!1}),R}function p(R){var T=y(R,"string");return i(T)==="symbol"?T:String(T)}function y(R,T){if(i(R)!=="object"||R===null)return R;var F=R[Symbol.toPrimitive];if(F!==void 0){var D=F.call(R,T||"default");if(i(D)!=="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(R)}function x(R,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(T&&T.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),T&&P(R,T)}function E(R){var T=S();return function(){var D=c(R),V;if(T){var g=c(this).constructor;V=Reflect.construct(D,arguments,g)}else V=D.apply(this,arguments);return d(this,V)}}function d(R,T){if(T&&(i(T)==="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O(R)}function O(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function w(R){var T=typeof Map=="function"?new Map:void 0;return w=function(D){if(D===null||!_(D))return D;if(typeof D!="function")throw new TypeError("Super expression must either be null or a function");if(typeof T<"u"){if(T.has(D))return T.get(D);T.set(D,V)}function V(){return A(D,arguments,c(this).constructor)}return V.prototype=Object.create(D.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),P(V,D)},w(R)}function A(R,T,F){return S()?A=Reflect.construct.bind():A=function(V,g,m){var v=[null];v.push.apply(v,g);var L=Function.bind.apply(V,v),N=new L;return m&&P(N,m.prototype),N},A.apply(null,arguments)}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 _(R){return Function.toString.call(R).indexOf("[native code]")!==-1}function P(R,T){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,V){return D.__proto__=V,D},P(R,T)}function c(R){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},c(R)}function i(R){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},i(R)}var a=mt,f=a.inspect,b=Gn(),I=b.codes.ERR_INVALID_ARG_TYPE;function j(R,T,F){return(F===void 0||F>R.length)&&(F=R.length),R.substring(F-T.length,F)===T}function B(R,T){if(T=Math.floor(T),R.length==0||T==0)return"";var F=R.length*T;for(T=Math.floor(Math.log(T)/Math.log(2));T;)R+=R,T--;return R+=R.substring(0,F-R.length),R}var z="",J="",X="",G="",ee={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:"},we=10;function Y(R){var T=Object.keys(R),F=Object.create(Object.getPrototypeOf(R));return T.forEach(function(D){F[D]=R[D]}),Object.defineProperty(F,"message",{value:R.message}),F}function de(R){return f(R,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Ee(R,T,F){var D="",V="",g=0,m="",v=!1,L=de(R),N=L.split(`
1
+ import{r as H,j as o,fv as fo,ch as Ye,fw as po,fd as dt,Q,as as yr,ax as Ke,m as xe,ez as mo,d0 as zr,fx as ho,t as ke,fy as vr,fz as go,aG as yo,cg as vo,dM as ir,S as jt,dx as Rn,dA as Ct,fA as mt,eU as Ce,fB as bo,fj as Tn,fC as xo,fD as wo,fk as Cn,fE as br,fF as Eo,fG as jo,fH as So,fI as Ao,dw as ar,g as Po,cN as Wr,dD as Oo,N as Io,bl as _e,aO as Dn,U as St,dE as Ro,fJ as xr,at as ht,D as Ze,B as Ae,C as ot,x as wr,K as nt,M as Xe,P as $,fK as To,k as sr,aU as Co,y as Do,z as No,n as Be,fc as _o,f as gt,ac as Dt,V as Fe,cb as Qe,E as it,fL as Bo,aK as Nn,aL as _n,b as Je,d4 as Lo,v as Bn,H as Se,q as cr,W as At,cd as ko,fM as Uo,fN as Ln,aQ as qo,aD as Fo,a8 as Ko,cz as Mo,a2 as $o,bp as zo,aZ as Wo,a_ as Vo,R as Ho}from"./index-CX-CBC_8.js";import{c as Go}from"./index-ChS_Pc5m.js";import{d as Pt}from"./Add-DWpKcN-u.js";import{d as Yo}from"./Loop-BA9fveaw.js";import{d as Zo}from"./ViewList-CXsz8fEa.js";import{L as Jo,S as Xo,d as kn}from"./list-header-DkOo80YP.js";import{D as Er,g as Qo}from"./index-C7FHl3UZ.js";import"./index-CfpEgOA0.js";import{c as qt,U as Ft,d as Un}from"./resource-dialog-aFD_HBXU.js";import{T as ei}from"./index-ChmGkB6N.js";import{E as qn}from"./index-bVh0eo8P.js";import"./index-ChMuqQhO.js";import"./index-CqJYYaWO.js";import{l as Fn}from"./index-DWMoLGgj.js";import{o as Kn}from"./index-ZG7jWpak.js";import{W as Mn}from"./url-evaluation-C5psqheg.js";import{a as $e}from"./team-CoOZjBzx.js";import{u as $n}from"./blocklet-CP5f1QgL.js";import{C as Nt}from"./click-to-copy-D1k0ZJxd.js";import{F as lr,S as ur}from"./Select-DPQiNjEZ.js";import{I as fr}from"./InputLabel-CZjkqwQE.js";import{T as zn}from"./TextField-CK1WkVgK.js";import{I as dr}from"./index-wGYPkAW3.js";import{b as ti}from"./sdk-DmktCVPV.js";import{d as ri}from"./Delete-DyfYh5Dp.js";import{A as ni}from"./actions-DZdlSYXZ.js";import{S as oi}from"./shorten-label-C-ljprxl.js";var jr={};Object.defineProperty(jr,"__esModule",{value:!0});var Wn=jr.default=void 0;ii(H);var tt=o;function ii(e){return e&&e.__esModule?e:{default:e}}function Vr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,n)}return r}function Hr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vr(Object(r),!0).forEach(function(n){ai(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vr(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ai(e,t,r){return(t=si(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function si(e){var t=ci(e,"string");return typeof t=="symbol"?t:t+""}function ci(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Sr=function(t){return(0,tt.jsxs)("svg",Hr(Hr({},t),{},{children:[(0,tt.jsx)("g",{clipPath:"url(#clip0)",children:(0,tt.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 1.598A4.092 4.092 0 1 0 9 9.78a4.092 4.092 0 0 0 0-8.183zM7.274 3.964a2.44 2.44 0 1 1 3.452 3.451 2.44 2.44 0 0 1-3.452-3.451zm.093 6.343A4.091 4.091 0 0 0 3.275 14.4v2.722c0 .155.126.281.281.281h1.09a.281.281 0 0 0 .28-.281v-2.722a2.44 2.44 0 0 1 2.44-2.44h3.267a2.442 2.442 0 0 1 2.44 2.44v2.722c0 .155.127.281.282.281h1.088a.281.281 0 0 0 .282-.281v-2.722a4.091 4.091 0 0 0-4.092-4.091H7.367z"})}),(0,tt.jsx)("defs",{children:(0,tt.jsx)("clipPath",{id:"clip0",children:(0,tt.jsx)("path",{transform:"translate(0 .5)",d:"M0 0h18v18H0z"})})})]}))};Sr.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};Sr.displayName="person";Wn=jr.default=Sr;var Et={},li=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),Vn="%[a-f0-9]{2}",Gr=new RegExp("("+Vn+")|([^%]+?)","gi"),Yr=new RegExp("("+Vn+")+","gi");function pr(e,t){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],pr(r),pr(n))}function ui(e){try{return decodeURIComponent(e)}catch{for(var t=e.match(Gr)||[],r=1;r<t.length;r++)e=pr(t,r).join(""),t=e.match(Gr)||[];return e}}function fi(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=Yr.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch{var n=ui(r[0]);n!==r[0]&&(t[r[0]]=n)}r=Yr.exec(e)}t["%C2"]="�";for(var s=Object.keys(t),u=0;u<s.length;u++){var p=s[u];e=e.replace(new RegExp(p,"g"),t[p])}return e}var di=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return fi(e)}},pi=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];const r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]},mi=function(e,t){for(var r={},n=Object.keys(e),s=Array.isArray(t),u=0;u<n.length;u++){var p=n[u],y=e[p];(s?t.indexOf(p)!==-1:t(p,y,e))&&(r[p]=y)}return r};(function(e){const t=li,r=di,n=pi,s=mi,u=c=>c==null;function p(c){switch(c.arrayFormat){case"index":return i=>(a,f)=>{const b=a.length;return f===void 0||c.skipNull&&f===null||c.skipEmptyString&&f===""?a:f===null?[...a,[E(i,c),"[",b,"]"].join("")]:[...a,[E(i,c),"[",E(b,c),"]=",E(f,c)].join("")]};case"bracket":return i=>(a,f)=>f===void 0||c.skipNull&&f===null||c.skipEmptyString&&f===""?a:f===null?[...a,[E(i,c),"[]"].join("")]:[...a,[E(i,c),"[]=",E(f,c)].join("")];case"comma":case"separator":return i=>(a,f)=>f==null||f.length===0?a:a.length===0?[[E(i,c),"=",E(f,c)].join("")]:[[a,E(f,c)].join(c.arrayFormatSeparator)];default:return i=>(a,f)=>f===void 0||c.skipNull&&f===null||c.skipEmptyString&&f===""?a:f===null?[...a,E(i,c)]:[...a,[E(i,c),"=",E(f,c)].join("")]}}function y(c){let i;switch(c.arrayFormat){case"index":return(a,f,b)=>{if(i=/\[(\d*)\]$/.exec(a),a=a.replace(/\[\d*\]$/,""),!i){b[a]=f;return}b[a]===void 0&&(b[a]={}),b[a][i[1]]=f};case"bracket":return(a,f,b)=>{if(i=/(\[\])$/.exec(a),a=a.replace(/\[\]$/,""),!i){b[a]=f;return}if(b[a]===void 0){b[a]=[f];return}b[a]=[].concat(b[a],f)};case"comma":case"separator":return(a,f,b)=>{const I=typeof f=="string"&&f.includes(c.arrayFormatSeparator),j=typeof f=="string"&&!I&&d(f,c).includes(c.arrayFormatSeparator);f=j?d(f,c):f;const B=I||j?f.split(c.arrayFormatSeparator).map(z=>d(z,c)):f===null?f:d(f,c);b[a]=B};default:return(a,f,b)=>{if(b[a]===void 0){b[a]=f;return}b[a]=[].concat(b[a],f)}}}function x(c){if(typeof c!="string"||c.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function E(c,i){return i.encode?i.strict?t(c):encodeURIComponent(c):c}function d(c,i){return i.decode?r(c):c}function O(c){return Array.isArray(c)?c.sort():typeof c=="object"?O(Object.keys(c)).sort((i,a)=>Number(i)-Number(a)).map(i=>c[i]):c}function w(c){const i=c.indexOf("#");return i!==-1&&(c=c.slice(0,i)),c}function A(c){let i="";const a=c.indexOf("#");return a!==-1&&(i=c.slice(a)),i}function S(c){c=w(c);const i=c.indexOf("?");return i===-1?"":c.slice(i+1)}function _(c,i){return i.parseNumbers&&!Number.isNaN(Number(c))&&typeof c=="string"&&c.trim()!==""?c=Number(c):i.parseBooleans&&c!==null&&(c.toLowerCase()==="true"||c.toLowerCase()==="false")&&(c=c.toLowerCase()==="true"),c}function P(c,i){i=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},i),x(i.arrayFormatSeparator);const a=y(i),f=Object.create(null);if(typeof c!="string"||(c=c.trim().replace(/^[?#&]/,""),!c))return f;for(const b of c.split("&")){if(b==="")continue;let[I,j]=n(i.decode?b.replace(/\+/g," "):b,"=");j=j===void 0?null:["comma","separator"].includes(i.arrayFormat)?j:d(j,i),a(d(I,i),j,f)}for(const b of Object.keys(f)){const I=f[b];if(typeof I=="object"&&I!==null)for(const j of Object.keys(I))I[j]=_(I[j],i);else f[b]=_(I,i)}return i.sort===!1?f:(i.sort===!0?Object.keys(f).sort():Object.keys(f).sort(i.sort)).reduce((b,I)=>{const j=f[I];return j&&typeof j=="object"&&!Array.isArray(j)?b[I]=O(j):b[I]=j,b},Object.create(null))}e.extract=S,e.parse=P,e.stringify=(c,i)=>{if(!c)return"";i=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},i),x(i.arrayFormatSeparator);const a=j=>i.skipNull&&u(c[j])||i.skipEmptyString&&c[j]==="",f=p(i),b={};for(const j of Object.keys(c))a(j)||(b[j]=c[j]);const I=Object.keys(b);return i.sort!==!1&&I.sort(i.sort),I.map(j=>{const B=c[j];return B===void 0?"":B===null?E(j,i):Array.isArray(B)?B.reduce(f(j),[]).join("&"):E(j,i)+"="+E(B,i)}).filter(j=>j.length>0).join("&")},e.parseUrl=(c,i)=>{i=Object.assign({decode:!0},i);const[a,f]=n(c,"#");return Object.assign({url:a.split("?")[0]||"",query:P(S(c),i)},i&&i.parseFragmentIdentifier&&f?{fragmentIdentifier:d(f,i)}:{})},e.stringifyUrl=(c,i)=>{i=Object.assign({encode:!0,strict:!0},i);const a=w(c.url).split("?")[0]||"",f=e.extract(c.url),b=e.parse(f,{sort:!1}),I=Object.assign(b,c.query);let j=e.stringify(I,i);j&&(j=`?${j}`);let B=A(c.url);return c.fragmentIdentifier&&(B=`#${E(c.fragmentIdentifier,i)}`),`${a}${j}${B}`},e.pick=(c,i,a)=>{a=Object.assign({parseFragmentIdentifier:!0},a);const{url:f,query:b,fragmentIdentifier:I}=e.parseUrl(c,a);return e.stringifyUrl({url:f,query:s(b,i),fragmentIdentifier:I},a)},e.exclude=(c,i,a)=>{const f=Array.isArray(i)?b=>!i.includes(b):(b,I)=>!i(b,I);return e.pick(c,f,a)}})(Et);const ut=po,hi={parseNumbers:!1,parseBooleans:!1},gi={skipNull:!1,skipEmptyString:!1},yi=(e,t)=>{var r,n;const{navigateMode:s="push",parseOptions:u,stringifyOptions:p}={},y=Object.assign(Object.assign({},hi),u),x=Object.assign(Object.assign({},gi),p),E=ut.useLocation(),d=(r=ut.useHistory)===null||r===void 0?void 0:r.call(ut),O=(n=ut.useNavigate)===null||n===void 0?void 0:n.call(ut),w=fo(),A=H.useRef(typeof e=="function"?e():e||{}),S=H.useMemo(()=>Et.parse(E.search,y),[E.search]),_=H.useMemo(()=>Object.assign(Object.assign({},A.current),S),[S]);return[_,Ye(c=>{const i=typeof c=="function"?c(_):c;w(),d&&d[s]({hash:E.hash,search:Et.stringify(Object.assign(Object.assign({},S),i),x)||"?"},E.state),O&&O({hash:E.hash,search:Et.stringify(Object.assign(Object.assign({},S),i),x)||"?"},{replace:s==="replace",state:E.state})})]},vi=yi;let bi=class extends Error{constructor(t){super(),this.name="AbortError",this.message=t}};const Zr=e=>globalThis.DOMException===void 0?new bi(e):new DOMException(e),Jr=e=>{const t=e.reason===void 0?Zr("This operation was aborted."):e.reason;return t instanceof Error?t:Zr(t)};async function xi(e,t,{concurrency:r=Number.POSITIVE_INFINITY,stopOnError:n=!0,signal:s}={}){return new Promise((u,p)=>{if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof t!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(r)||r===Number.POSITIVE_INFINITY)&&r>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);const y=[],x=[],E=new Map;let d=!1,O=!1,w=!1,A=0,S=0;const _=e[Symbol.iterator]===void 0?e[Symbol.asyncIterator]():e[Symbol.iterator](),P=i=>{d=!0,O=!0,p(i)};s&&(s.aborted&&P(Jr(s)),s.addEventListener("abort",()=>{P(Jr(s))}));const c=async()=>{if(O)return;const i=await _.next(),a=S;if(S++,i.done){if(w=!0,A===0&&!O){if(!n&&x.length>0){P(new AggregateError(x));return}if(O=!0,E.size===0){u(y);return}const f=[];for(const[b,I]of y.entries())E.get(b)!==Xr&&f.push(I);u(f)}return}A++,(async()=>{try{const f=await i.value;if(O)return;const b=await t(f,a);b===Xr&&E.set(a,b),y[a]=b,A--,await c()}catch(f){if(n)P(f);else{x.push(f),A--;try{await c()}catch(b){P(b)}}}})()};(async()=>{for(let i=0;i<r;i++){try{await c()}catch(a){P(a);break}if(w||d)break}})()})}const Xr=Symbol("skip");async function wi(e,t){return xi(e,r=>r(),t)}function Ei({user:e,sessionUser:t}){const r=dt(()=>{var n;return(n=(e==null?void 0:e.passports)||[])==null?void 0:n.find(s=>s.name===t.role)},[e==null?void 0:e.passports,t==null?void 0:t.role]);return o.jsxs(Q,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(yr,{size:40,variant:"circle",shape:"circle",src:t.avatar,did:t.did,sx:{flexShrink:0}}),o.jsxs(Q,{sx:{flex:1,overflow:"hidden"},children:[o.jsxs(Q,{sx:{display:"flex",alignItems:"center",gap:1},children:[o.jsx(Ke,{title:t.fullName,children:o.jsx(xe,{sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flex:1},children:t.fullName})}),o.jsx(mo,{label:(r==null?void 0:r.title)||(r==null?void 0:r.name)||"Guest",size:"small",variant:"outlined",sx:{flexShrink:0,fontWeight:"bold",fontSize:"12px",color:zr.textBase,borderColor:zr.strokeBorderStrong,backgroundColor:"transparent",textTransform:"capitalize",pr:.5,pl:0,height:"auto"}})]}),o.jsx(Ke,{title:t.email,children:o.jsx(xe,{variant:"body2",color:"grey",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:t.email})})]})]})}const ji={zh:{confirm:"确认",cancel:"取消",visitorId:"设备标识",deviceType:"设备类型",platform:"操作系统",walletOS:"钱包类型",role:"角色",fullname:"姓名",email:"邮箱",avatar:"头像",user:"用户",createdAt:"首次活动时间",updatedAt:"最近活动时间",lastLoginIp:"最近活动地址",actions:"操作",logoutAll:"注销所有会话",logoutAllTips:"不会注销当前会话",logout:"注销",currentSession:"当前会话",unknown:"未知",expired:"已过期",remove:"删除",logoutThisSession:"注销指定会话",logoutThisSessionConfirm:"确定要注销此会话吗?",logoutAllSession:"注销所有会话",logoutAllSessionConfirm:"确定要注销所有会话吗?"},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",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 sessions",logoutAllSessionConfirm:"Are you sure to logout all sessions?"}},Hn="Reserved IP",Qr="ip-region-cache";async function Si(e){const t=`https://ipapi.co/${e}/json/`,n=await(await fetch(t)).json();let s="";return n.error?n.reserved&&(s=Hn):s=[n.country_name,n.region,n.city].filter(Boolean).join("/"),s}async function Ai(e){const t=`https://api.ip.sb/geoip/${e}`,n=await(await fetch(t)).json();let s="";return n.error?n.reserved&&(s=Hn):s=[n.country,n.region,n.city].filter(Boolean).join("/"),s}async function Pi(e){let t="",r={};try{const n=localStorage.getItem(Qr);n&&(r=JSON.parse(n))}catch{r={}}if(r[e])t=r[e];else{try{t=await Ai(e)}catch{console.warn("Fail to get ip region from ip.sb")}if(!t)try{t=await Si(e)}catch{console.warn("Fail to get ip region from ip-api.co")}}if(t){const n=Object.keys(r);n.length>100&&delete r[n[0]],r[e]&&delete r[e],r[e]=t,localStorage.setItem(Qr,JSON.stringify(r))}return t}async function Oi(e){return Promise.all(e.map(t=>Pi(t)))}const en=e=>new Ft(e,{browser:[[/(ArcWallet)\/([\w\.]+)/i],[Ft.BROWSER.NAME,Ft.BROWSER.VERSION]]}).getResult();function Ii({user:e,showAction:t=!0,showUser:r=!0}){const n=ho(),{locale:s}=ke(),{confirmApi:u,confirmHolder:p}=vr(),y=Ye((i,a={})=>go(ji,i,s,"en",a)),x=Ye(async()=>{let i=e==null?void 0:e.userSessions;i||(i=await qt.userSession.getUserSessions({did:e.did}));try{const f=i==null?void 0:i.map((j,B)=>[B,j.lastLoginIp]).filter(j=>!!j[1]),b=f==null?void 0:f.map(j=>j[1]),I=await Oi(b);for(let j=0;j<I.length;j++){const B=I[j],z=f[j],J=i[z[0]];J.ipRegion=B}}catch(f){console.warn("Failed to convert ip to region"),console.error(f)}const a=new Date().getTime();return yo(i,f=>f.visitorId===n?-1:a-new Date(f.updatedAt).getTime())}),E=vo(x),d=dt(()=>E.data||[],[E.data]),O=dt(()=>d.reduce((i,a)=>(i[a.lastLoginIp]=a.ipRegion,i),{}),[d]),w=Ye(({visitorId:i})=>{u.open({title:y("logoutThisSession"),content:y("logoutThisSessionConfirm"),confirmButtonText:y("confirm"),cancelButtonText:y("cancel"),onConfirm:async()=>{await qt.user.logout({visitorId:i}),E.refresh(),u.close()}})}),A=dt(()=>d.filter(a=>a.visitorId!==n),[d]),S=Ye(()=>{u.open({title:y("logoutAllSession"),content:y("logoutAllSessionConfirm"),confirmButtonText:y("confirm"),cancelButtonText:y("cancel"),onConfirm:async()=>{const i=A.map(a=>()=>qt.user.logout({visitorId:a.visitorId}));await wi(i,{concurrency:3,stopOnError:!1}),E.refresh(),u.close()}})}),_=[];t&&_.push(o.jsx(Ke,{title:y("logoutAllTips"),children:o.jsx(ir,{sx:{ml:.5},size:"small",variant:"contained",color:"error",onClick:S,disabled:A.length===0,children:y("logoutAll")})},"logoutAll"));const P=dt(()=>({search:!1,sort:!1,download:!1,filter:!1,print:!1,expandableRowsOnClick:!1,searchDebounceTime:600}),[]),c=[{label:y("platform"),name:"platform",options:{customBodyRenderLite:i=>{var b,I;const a=d[i],f=en(a.ua);return o.jsx(Q,{children:[(b=f.os)==null?void 0:b.name,(I=f.os)==null?void 0:I.version].filter(Boolean).join("/")||y("unknown")})}}},{label:y("deviceType"),name:"deviceType",options:{customBodyRenderLite:i=>{var b,I;const a=d[i],f=en(a.ua);return o.jsx(Q,{children:[(b=f.browser)==null?void 0:b.name,(I=f.browser)==null?void 0:I.version].filter(Boolean).join("/")||y("unknown")})}}},{label:y("walletOS"),name:"walletOS",options:{customBodyRenderLite:i=>{var f;const a=d[i];return o.jsx(Q,{children:((f=a.extra)==null?void 0:f.walletOS)||y("unknown")})}}},r&&{label:y("user"),name:"user",options:{customBodyRenderLite:i=>{const a=d[i];return o.jsx(Q,{sx:{minWidth:150,maxWidth:250},children:o.jsx(Ei,{sessionUser:a.user,user:e})})}}},{label:y("createdAt"),name:"createdAt",options:{customBodyRenderLite:i=>{const a=d[i];return a.createdAt?o.jsx(jt,{value:a.createdAt,relativeRange:3*86400*1e3,locale:s}):y("unknown")}}},{label:y("updatedAt"),name:"updatedAt",options:{customBodyRenderLite:i=>{const a=d[i];return a.status==="expired"?y("expired"):o.jsx(jt,{value:a.updatedAt,relativeRange:3*86400*1e3,locale:s})}}},{label:y("lastLoginIp"),name:"lastLoginIp",options:{customBodyRenderLite:i=>{const a=d[i];return o.jsx(Q,{children:O[a.lastLoginIp]?o.jsxs(o.Fragment,{children:[o.jsx(xe,{variant:"body2",children:O[a.lastLoginIp]}),o.jsx(xe,{variant:"body2",color:"grey",children:a.lastLoginIp||y("unknown")})]}):o.jsx(xe,{children:a.lastLoginIp||y("unknown")})})}}},t&&{label:y("actions"),name:"actions",options:{customBodyRenderLite:i=>{const a=d[i];return o.jsx(Q,{children:o.jsx(ir,{sx:{whiteSpace:"nowrap",fontSize:"12px",px:1},disabled:n===a.visitorId,variant:"outlined",size:"small",color:"error",onClick:()=>w({visitorId:a.visitorId}),children:a.status==="expired"?y("remove"):n===a.visitorId?y("currentSession"):y("logout")})})}}}].filter(Boolean);return o.jsxs(Q,{sx:{".MuiTableCell-head":{whiteSpace:"nowrap",fontWeight:"bold"}},children:[p,o.jsx(Er,{locale:s,data:d,columns:c,customButtons:_,options:P,loading:E.loading})]})}var he={};Object.defineProperty(he,"__esModule",{value:!0});he.isValid=he.fromJSON=he.fromRandom=he.fromAddress=he.fromPublicKey=he.fromSecretKey=he.Wallet=he.WalletType=void 0;const yt=Rn,Ot=Ct,Ie=Fn;he.WalletType=Ie.DidType;function at(e,t="default"){const r=(0,Ie.DidType)(t),n=(0,Ot.getSigner)(r.pk),s=(0,Ot.getHasher)(r.hash);return{type:r,secretKey:e.sk,publicKey:e.pk,address:e.pk?(0,Ie.fromPublicKey)(e.pk,r):e.address,hash(u,p=1,y="hex"){return s(u,p,y)},sign(u,p=!0,y="hex"){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(p){const x=s(u,1);return n.sign(x,e.sk,y)}return n.sign(u,e.sk,y)},verify(u,p,y=!0){if(!e.pk)throw new Error("Cannot verify data without a publicKey");const x=y?s(u,1):u;return n.verify(x,p,e.pk)},ethHash(u){if(typeof n.ethHash!="function")throw new Error("ethHash is not supported by signer");return n.ethHash(u)},ethSign(u,p=!0){if(!e.sk)throw new Error("Cannot sign data without a secretKey");if(typeof n.ethHash!="function")throw new Error("ethSign is not supported by signer");return p?n.ethSign(n.ethHash(u),(0,yt.toHex)(e.sk)):n.ethSign(u,(0,yt.toHex)(e.sk))},ethVerify(u,p,y=!0){if(typeof n.ethHash!="function")throw new Error("ethVerify is not supported by signer");const x=y?n.ethHash(u):u;return n.ethRecover(x,p)===this.address},toAddress(){return e.pk?(0,Ie.fromPublicKey)(e.pk,r):e.address},toJSON(){return{type:Ie.DidType.toJSON(r),sk:(0,yt.toHex)(e.sk),pk:(0,yt.toHex)(e.pk),address:this.address}}}}he.Wallet=at;function Ri(e,t="default"){const r=(0,Ie.DidType)(t),n={sk:e,pk:(0,Ot.getSigner)(r.pk).getPublicKey(e)};return at(n,r)}he.fromSecretKey=Ri;function Ti(e,t="default"){return at({pk:e},(0,Ie.DidType)(t))}he.fromPublicKey=Ti;function Ci(e){return at({address:(0,Ie.toAddress)(e)},(0,Ie.toTypeInfo)(e))}he.fromAddress=Ci;function Di(e="default"){const t=(0,Ie.DidType)(e),n=(0,Ot.getSigner)(t.pk).genKeyPair();return at({sk:n.secretKey,pk:n.publicKey},t)}he.fromRandom=Di;function Ni(e){const t=Ie.DidType.fromJSON(e.type);return at(e,t)}he.fromJSON=Ni;function _i(e,t=!0){return!(!e||typeof e!="object"||typeof e.verify!="function"||typeof e.toAddress!="function"||typeof e.toJSON!="function"||!e.type||!e.publicKey||t&&(!e.secretKey||typeof e.sign!="function"))}he.isValid=_i;var Kt={exports:{}},Mt={},tn;function Gn(){if(tn)return Mt;tn=1;function e(i){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},e(i)}function t(i,a,f){return Object.defineProperty(i,"prototype",{writable:!1}),i}function r(i,a){if(!(i instanceof a))throw new TypeError("Cannot call a class as a function")}function n(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(a&&a.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),a&&s(i,a)}function s(i,a){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(b,I){return b.__proto__=I,b},s(i,a)}function u(i){var a=x();return function(){var b=E(i),I;if(a){var j=E(this).constructor;I=Reflect.construct(b,arguments,j)}else I=b.apply(this,arguments);return p(this,I)}}function p(i,a){if(a&&(e(a)==="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y(i)}function y(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function x(){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 E(i){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(f){return f.__proto__||Object.getPrototypeOf(f)},E(i)}var d={},O,w;function A(i,a,f){f||(f=Error);function b(j,B,z){return typeof a=="string"?a:a(j,B,z)}var I=function(j){n(z,j);var B=u(z);function z(J,X,G){var ee;return r(this,z),ee=B.call(this,b(J,X,G)),ee.code=i,ee}return t(z)}(f);d[i]=I}function S(i,a){if(Array.isArray(i)){var f=i.length;return i=i.map(function(b){return String(b)}),f>2?"one of ".concat(a," ").concat(i.slice(0,f-1).join(", "),", or ")+i[f-1]:f===2?"one of ".concat(a," ").concat(i[0]," or ").concat(i[1]):"of ".concat(a," ").concat(i[0])}else return"of ".concat(a," ").concat(String(i))}function _(i,a,f){return i.substr(0,a.length)===a}function P(i,a,f){return(f===void 0||f>i.length)&&(f=i.length),i.substring(f-a.length,f)===a}function c(i,a,f){return typeof f!="number"&&(f=0),f+a.length>i.length?!1:i.indexOf(a,f)!==-1}return A("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),A("ERR_INVALID_ARG_TYPE",function(i,a,f){O===void 0&&(O=mr()),O(typeof i=="string","'name' must be a string");var b;typeof a=="string"&&_(a,"not ")?(b="must not be",a=a.replace(/^not /,"")):b="must be";var I;if(P(i," argument"))I="The ".concat(i," ").concat(b," ").concat(S(a,"type"));else{var j=c(i,".")?"property":"argument";I='The "'.concat(i,'" ').concat(j," ").concat(b," ").concat(S(a,"type"))}return I+=". Received type ".concat(e(f)),I},TypeError),A("ERR_INVALID_ARG_VALUE",function(i,a){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";w===void 0&&(w=mt);var b=w.inspect(a);return b.length>128&&(b="".concat(b.slice(0,128),"...")),"The argument '".concat(i,"' ").concat(f,". Received ").concat(b)},TypeError),A("ERR_INVALID_RETURN_VALUE",function(i,a,f){var b;return f&&f.constructor&&f.constructor.name?b="instance of ".concat(f.constructor.name):b="type ".concat(e(f)),"Expected ".concat(i,' to be returned from the "').concat(a,'"')+" function but got ".concat(b,".")},TypeError),A("ERR_MISSING_ARGS",function(){for(var i=arguments.length,a=new Array(i),f=0;f<i;f++)a[f]=arguments[f];O===void 0&&(O=mr()),O(a.length>0,"At least one arg needs to be specified");var b="The ",I=a.length;switch(a=a.map(function(j){return'"'.concat(j,'"')}),I){case 1:b+="".concat(a[0]," argument");break;case 2:b+="".concat(a[0]," and ").concat(a[1]," arguments");break;default:b+=a.slice(0,I-1).join(", "),b+=", and ".concat(a[I-1]," arguments");break}return"".concat(b," must be specified")},TypeError),Mt.codes=d,Mt}var $t,rn;function Bi(){if(rn)return $t;rn=1;function e(R,T){var F=Object.keys(R);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(R);T&&(D=D.filter(function(V){return Object.getOwnPropertyDescriptor(R,V).enumerable})),F.push.apply(F,D)}return F}function t(R){for(var T=1;T<arguments.length;T++){var F=arguments[T]!=null?arguments[T]:{};T%2?e(Object(F),!0).forEach(function(D){r(R,D,F[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(F)):e(Object(F)).forEach(function(D){Object.defineProperty(R,D,Object.getOwnPropertyDescriptor(F,D))})}return R}function r(R,T,F){return T=p(T),T in R?Object.defineProperty(R,T,{value:F,enumerable:!0,configurable:!0,writable:!0}):R[T]=F,R}function n(R,T){if(!(R instanceof T))throw new TypeError("Cannot call a class as a function")}function s(R,T){for(var F=0;F<T.length;F++){var D=T[F];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(R,p(D.key),D)}}function u(R,T,F){return T&&s(R.prototype,T),Object.defineProperty(R,"prototype",{writable:!1}),R}function p(R){var T=y(R,"string");return i(T)==="symbol"?T:String(T)}function y(R,T){if(i(R)!=="object"||R===null)return R;var F=R[Symbol.toPrimitive];if(F!==void 0){var D=F.call(R,T||"default");if(i(D)!=="object")return D;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(R)}function x(R,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(T&&T.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),Object.defineProperty(R,"prototype",{writable:!1}),T&&P(R,T)}function E(R){var T=S();return function(){var D=c(R),V;if(T){var g=c(this).constructor;V=Reflect.construct(D,arguments,g)}else V=D.apply(this,arguments);return d(this,V)}}function d(R,T){if(T&&(i(T)==="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O(R)}function O(R){if(R===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R}function w(R){var T=typeof Map=="function"?new Map:void 0;return w=function(D){if(D===null||!_(D))return D;if(typeof D!="function")throw new TypeError("Super expression must either be null or a function");if(typeof T<"u"){if(T.has(D))return T.get(D);T.set(D,V)}function V(){return A(D,arguments,c(this).constructor)}return V.prototype=Object.create(D.prototype,{constructor:{value:V,enumerable:!1,writable:!0,configurable:!0}}),P(V,D)},w(R)}function A(R,T,F){return S()?A=Reflect.construct.bind():A=function(V,g,m){var v=[null];v.push.apply(v,g);var L=Function.bind.apply(V,v),N=new L;return m&&P(N,m.prototype),N},A.apply(null,arguments)}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 _(R){return Function.toString.call(R).indexOf("[native code]")!==-1}function P(R,T){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(D,V){return D.__proto__=V,D},P(R,T)}function c(R){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},c(R)}function i(R){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},i(R)}var a=mt,f=a.inspect,b=Gn(),I=b.codes.ERR_INVALID_ARG_TYPE;function j(R,T,F){return(F===void 0||F>R.length)&&(F=R.length),R.substring(F-T.length,F)===T}function B(R,T){if(T=Math.floor(T),R.length==0||T==0)return"";var F=R.length*T;for(T=Math.floor(Math.log(T)/Math.log(2));T;)R+=R,T--;return R+=R.substring(0,F-R.length),R}var z="",J="",X="",G="",ee={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:"},we=10;function Y(R){var T=Object.keys(R),F=Object.create(Object.getPrototypeOf(R));return T.forEach(function(D){F[D]=R[D]}),Object.defineProperty(F,"message",{value:R.message}),F}function de(R){return f(R,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Ee(R,T,F){var D="",V="",g=0,m="",v=!1,L=de(R),N=L.split(`
2
2
  `),U=de(T).split(`
3
3
  `),K=0,oe="";if(F==="strictEqual"&&i(R)==="object"&&i(T)==="object"&&R!==null&&T!==null&&(F="strictEqualObject"),N.length===1&&U.length===1&&N[0]!==U[0]){var ue=N[0].length+U[0].length;if(ue<=we){if((i(R)!=="object"||R===null)&&(i(T)!=="object"||T===null)&&(R!==0||T!==0))return"".concat(ee[F],`
4
4
 
@@ -1,4 +1,4 @@
1
- import{fj as C,g as P,fk as R}from"./index-Dpawm4Ki.js";import{o as F}from"./index-ZG7jWpak.js";var O={},d,N;function $(){if(N)return d;N=1;var g,r,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
1
+ import{fj as C,g as P,fk as R}from"./index-CX-CBC_8.js";import{o as F}from"./index-ZG7jWpak.js";var O={},d,N;function $(){if(N)return d;N=1;var g,r,o={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:`
2
2
  `,r:"\r",t:" "},v;function s(i){throw{name:"SyntaxError",message:i,at:g,text:v}}function t(i){return i&&i!==r&&s("Expected '"+i+"' instead of '"+r+"'"),r=v.charAt(g),g+=1,r}function h(){var i,n="";for(r==="-"&&(n="-",t("-"));r>="0"&&r<="9";)n+=r,t();if(r===".")for(n+=".";t()&&r>="0"&&r<="9";)n+=r;if(r==="e"||r==="E")for(n+=r,t(),(r==="-"||r==="+")&&(n+=r,t());r>="0"&&r<="9";)n+=r,t();return i=Number(n),isFinite(i)||s("Bad number"),i}function p(){var i,n,a="",y;if(r==='"')for(;t();){if(r==='"')return t(),a;if(r==="\\")if(t(),r==="u"){for(y=0,n=0;n<4&&(i=parseInt(t(),16),!!isFinite(i));n+=1)y=y*16+i;a+=String.fromCharCode(y)}else if(typeof o[r]=="string")a+=o[r];else break;else a+=r}s("Bad string")}function f(){for(;r&&r<=" ";)t()}function u(){switch(r){case"t":return t("t"),t("r"),t("u"),t("e"),!0;case"f":return t("f"),t("a"),t("l"),t("s"),t("e"),!1;case"n":return t("n"),t("u"),t("l"),t("l"),null;default:s("Unexpected '"+r+"'")}}function l(){var i=[];if(r==="["){if(t("["),f(),r==="]")return t("]"),i;for(;r;){if(i.push(e()),f(),r==="]")return t("]"),i;t(","),f()}}s("Bad array")}function c(){var i,n={};if(r==="{"){if(t("{"),f(),r==="}")return t("}"),n;for(;r;){if(i=p(),f(),t(":"),Object.prototype.hasOwnProperty.call(n,i)&&s('Duplicate key "'+i+'"'),n[i]=e(),f(),r==="}")return t("}"),n;t(","),f()}}s("Bad object")}function e(){switch(f(),r){case"{":return c();case"[":return l();case'"':return p();case"-":return h();default:return r>="0"&&r<="9"?h():u()}}return d=function(i,n){var a;return v=i,g=0,r=" ",a=e(),f(),r&&s("Syntax error"),typeof n=="function"?function y(w,m){var b,S,j=w[m];if(j&&typeof j=="object")for(b in e)Object.prototype.hasOwnProperty.call(j,b)&&(S=y(j,b),typeof S>"u"?delete j[b]:j[b]=S);return n.call(w,m,j)}({"":a},""):a},d}var J,A;function D(){if(A)return J;A=1;var g=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,r,o,v={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},s;function t(p){return g.lastIndex=0,g.test(p)?'"'+p.replace(g,function(f){var u=v[f];return typeof u=="string"?u:"\\u"+("0000"+f.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+p+'"'}function h(p,f){var u,l,c,e,i=r,n,a=f[p];switch(a&&typeof a=="object"&&typeof a.toJSON=="function"&&(a=a.toJSON(p)),typeof s=="function"&&(a=s.call(f,p,a)),typeof a){case"string":return t(a);case"number":return isFinite(a)?String(a):"null";case"boolean":case"null":return String(a);case"object":if(!a)return"null";if(r+=o,n=[],Object.prototype.toString.apply(a)==="[object Array]"){for(e=a.length,u=0;u<e;u+=1)n[u]=h(u,a)||"null";return c=n.length===0?"[]":r?`[
3
3
  `+r+n.join(`,
4
4
  `+r)+`
@@ -1 +1 @@
1
- import{eU as b}from"./index-Dpawm4Ki.js";function c(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function A(o,e){for(var r="",i=0,l=-1,t=0,n,f=0;f<=o.length;++f){if(f<o.length)n=o.charCodeAt(f);else{if(n===47)break;n=47}if(n===47){if(!(l===f-1||t===1))if(l!==f-1&&t===2){if(r.length<2||i!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var s=r.lastIndexOf("/");if(s!==r.length-1){s===-1?(r="",i=0):(r=r.slice(0,s),i=r.length-1-r.lastIndexOf("/")),l=f,t=0;continue}}else if(r.length===2||r.length===1){r="",i=0,l=f,t=0;continue}}e&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+o.slice(l+1,f):r=o.slice(l+1,f),i=f-l-1;l=f,t=0}else n===46&&t!==-1?++t:t=-1}return r}function h(o,e){var r=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+i:r+o+i:i}var g={resolve:function(){for(var e="",r=!1,i,l=arguments.length-1;l>=-1&&!r;l--){var t;l>=0?t=arguments[l]:(i===void 0&&(i=b.cwd()),t=i),c(t),t.length!==0&&(e=t+"/"+e,r=t.charCodeAt(0)===47)}return e=A(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(c(e),e.length===0)return".";var r=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return e=A(e,!r),e.length===0&&!r&&(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return c(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,r=0;r<arguments.length;++r){var i=arguments[r];c(i),i.length>0&&(e===void 0?e=i:e+="/"+i)}return e===void 0?".":g.normalize(e)},relative:function(e,r){if(c(e),c(r),e===r||(e=g.resolve(e),r=g.resolve(r),e===r))return"";for(var i=1;i<e.length&&e.charCodeAt(i)===47;++i);for(var l=e.length,t=l-i,n=1;n<r.length&&r.charCodeAt(n)===47;++n);for(var f=r.length,s=f-n,v=t<s?t:s,u=-1,a=0;a<=v;++a){if(a===v){if(s>v){if(r.charCodeAt(n+a)===47)return r.slice(n+a+1);if(a===0)return r.slice(n+a)}else t>v&&(e.charCodeAt(i+a)===47?u=a:a===0&&(u=0));break}var m=e.charCodeAt(i+a),C=r.charCodeAt(n+a);if(m!==C)break;m===47&&(u=a)}var d="";for(a=i+u+1;a<=l;++a)(a===l||e.charCodeAt(a)===47)&&(d.length===0?d+="..":d+="/..");return d.length>0?d+r.slice(n+u):(n+=u,r.charCodeAt(n)===47&&++n,r.slice(n))},_makeLong:function(e){return e},dirname:function(e){if(c(e),e.length===0)return".";for(var r=e.charCodeAt(0),i=r===47,l=-1,t=!0,n=e.length-1;n>=1;--n)if(r=e.charCodeAt(n),r===47){if(!t){l=n;break}}else t=!1;return l===-1?i?"/":".":i&&l===1?"//":e.slice(0,l)},basename:function(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');c(e);var i=0,l=-1,t=!0,n;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var f=r.length-1,s=-1;for(n=e.length-1;n>=0;--n){var v=e.charCodeAt(n);if(v===47){if(!t){i=n+1;break}}else s===-1&&(t=!1,s=n+1),f>=0&&(v===r.charCodeAt(f)?--f===-1&&(l=n):(f=-1,l=s))}return i===l?l=s:l===-1&&(l=e.length),e.slice(i,l)}else{for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===47){if(!t){i=n+1;break}}else l===-1&&(t=!1,l=n+1);return l===-1?"":e.slice(i,l)}},extname:function(e){c(e);for(var r=-1,i=0,l=-1,t=!0,n=0,f=e.length-1;f>=0;--f){var s=e.charCodeAt(f);if(s===47){if(!t){i=f+1;break}continue}l===-1&&(t=!1,l=f+1),s===46?r===-1?r=f:n!==1&&(n=1):r!==-1&&(n=-1)}return r===-1||l===-1||n===0||n===1&&r===l-1&&r===i+1?"":e.slice(r,l)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return h("/",e)},parse:function(e){c(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;var i=e.charCodeAt(0),l=i===47,t;l?(r.root="/",t=1):t=0;for(var n=-1,f=0,s=-1,v=!0,u=e.length-1,a=0;u>=t;--u){if(i=e.charCodeAt(u),i===47){if(!v){f=u+1;break}continue}s===-1&&(v=!1,s=u+1),i===46?n===-1?n=u:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||s===-1||a===0||a===1&&n===s-1&&n===f+1?s!==-1&&(f===0&&l?r.base=r.name=e.slice(1,s):r.base=r.name=e.slice(f,s)):(f===0&&l?(r.name=e.slice(1,n),r.base=e.slice(1,s)):(r.name=e.slice(f,n),r.base=e.slice(f,s)),r.ext=e.slice(n,s)),f>0?r.dir=e.slice(0,f-1):l&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};g.posix=g;var y=g;export{y as p};
1
+ import{eU as b}from"./index-CX-CBC_8.js";function c(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function A(o,e){for(var r="",i=0,l=-1,t=0,n,f=0;f<=o.length;++f){if(f<o.length)n=o.charCodeAt(f);else{if(n===47)break;n=47}if(n===47){if(!(l===f-1||t===1))if(l!==f-1&&t===2){if(r.length<2||i!==2||r.charCodeAt(r.length-1)!==46||r.charCodeAt(r.length-2)!==46){if(r.length>2){var s=r.lastIndexOf("/");if(s!==r.length-1){s===-1?(r="",i=0):(r=r.slice(0,s),i=r.length-1-r.lastIndexOf("/")),l=f,t=0;continue}}else if(r.length===2||r.length===1){r="",i=0,l=f,t=0;continue}}e&&(r.length>0?r+="/..":r="..",i=2)}else r.length>0?r+="/"+o.slice(l+1,f):r=o.slice(l+1,f),i=f-l-1;l=f,t=0}else n===46&&t!==-1?++t:t=-1}return r}function h(o,e){var r=e.dir||e.root,i=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+i:r+o+i:i}var g={resolve:function(){for(var e="",r=!1,i,l=arguments.length-1;l>=-1&&!r;l--){var t;l>=0?t=arguments[l]:(i===void 0&&(i=b.cwd()),t=i),c(t),t.length!==0&&(e=t+"/"+e,r=t.charCodeAt(0)===47)}return e=A(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(e){if(c(e),e.length===0)return".";var r=e.charCodeAt(0)===47,i=e.charCodeAt(e.length-1)===47;return e=A(e,!r),e.length===0&&!r&&(e="."),e.length>0&&i&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return c(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,r=0;r<arguments.length;++r){var i=arguments[r];c(i),i.length>0&&(e===void 0?e=i:e+="/"+i)}return e===void 0?".":g.normalize(e)},relative:function(e,r){if(c(e),c(r),e===r||(e=g.resolve(e),r=g.resolve(r),e===r))return"";for(var i=1;i<e.length&&e.charCodeAt(i)===47;++i);for(var l=e.length,t=l-i,n=1;n<r.length&&r.charCodeAt(n)===47;++n);for(var f=r.length,s=f-n,v=t<s?t:s,u=-1,a=0;a<=v;++a){if(a===v){if(s>v){if(r.charCodeAt(n+a)===47)return r.slice(n+a+1);if(a===0)return r.slice(n+a)}else t>v&&(e.charCodeAt(i+a)===47?u=a:a===0&&(u=0));break}var m=e.charCodeAt(i+a),C=r.charCodeAt(n+a);if(m!==C)break;m===47&&(u=a)}var d="";for(a=i+u+1;a<=l;++a)(a===l||e.charCodeAt(a)===47)&&(d.length===0?d+="..":d+="/..");return d.length>0?d+r.slice(n+u):(n+=u,r.charCodeAt(n)===47&&++n,r.slice(n))},_makeLong:function(e){return e},dirname:function(e){if(c(e),e.length===0)return".";for(var r=e.charCodeAt(0),i=r===47,l=-1,t=!0,n=e.length-1;n>=1;--n)if(r=e.charCodeAt(n),r===47){if(!t){l=n;break}}else t=!1;return l===-1?i?"/":".":i&&l===1?"//":e.slice(0,l)},basename:function(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');c(e);var i=0,l=-1,t=!0,n;if(r!==void 0&&r.length>0&&r.length<=e.length){if(r.length===e.length&&r===e)return"";var f=r.length-1,s=-1;for(n=e.length-1;n>=0;--n){var v=e.charCodeAt(n);if(v===47){if(!t){i=n+1;break}}else s===-1&&(t=!1,s=n+1),f>=0&&(v===r.charCodeAt(f)?--f===-1&&(l=n):(f=-1,l=s))}return i===l?l=s:l===-1&&(l=e.length),e.slice(i,l)}else{for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===47){if(!t){i=n+1;break}}else l===-1&&(t=!1,l=n+1);return l===-1?"":e.slice(i,l)}},extname:function(e){c(e);for(var r=-1,i=0,l=-1,t=!0,n=0,f=e.length-1;f>=0;--f){var s=e.charCodeAt(f);if(s===47){if(!t){i=f+1;break}continue}l===-1&&(t=!1,l=f+1),s===46?r===-1?r=f:n!==1&&(n=1):r!==-1&&(n=-1)}return r===-1||l===-1||n===0||n===1&&r===l-1&&r===i+1?"":e.slice(r,l)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return h("/",e)},parse:function(e){c(e);var r={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return r;var i=e.charCodeAt(0),l=i===47,t;l?(r.root="/",t=1):t=0;for(var n=-1,f=0,s=-1,v=!0,u=e.length-1,a=0;u>=t;--u){if(i=e.charCodeAt(u),i===47){if(!v){f=u+1;break}continue}s===-1&&(v=!1,s=u+1),i===46?n===-1?n=u:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||s===-1||a===0||a===1&&n===s-1&&n===f+1?s!==-1&&(f===0&&l?r.base=r.name=e.slice(1,s):r.base=r.name=e.slice(f,s)):(f===0&&l?(r.name=e.slice(1,n),r.base=e.slice(1,s)):(r.name=e.slice(f,n),r.base=e.slice(f,s)),r.ext=e.slice(n,s)),f>0?r.dir=e.slice(0,f-1):l&&(r.dir="/"),r},sep:"/",delimiter:":",win32:null,posix:null};g.posix=g;var y=g;export{y as p};
@@ -1 +1 @@
1
- import{hf as W,r as L,hg as z,ck as R,f6 as N,hh as x,hi as P,ci as j,hj as S}from"./index-Dpawm4Ki.js";var V=function(r,a){return r===void 0&&(r=[]),a===void 0&&(a=[]),W(r,a)},I=function(r,a,n){var e=L.useRef(),u=L.useRef(0);V(a,e.current)||(u.current+=1),e.current=a,z(r,[u.current],n)},J=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),B={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:J?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},E={ctrl:function(r){return r.ctrlKey},shift:function(r){return r.shiftKey},alt:function(r){return r.altKey},meta:function(r){return r.type==="keyup"?B.meta.includes(r.keyCode):r.metaKey}};function G(r){return P(r)||j(r)}function Q(r){var a=Object.keys(E).reduce(function(n,e){return E[e](r)?n+1:n},0);return[16,17,18,91,92].includes(r.keyCode)?a:a+1}function T(r,a,n){var e,u;if(!r.key)return!1;if(j(a))return r.keyCode===a?a:!1;var o=a.split("."),s=0;try{for(var c=x(o),l=c.next();!l.done;l=c.next()){var p=l.value,y=E[p],m=B[p.toLowerCase()];(y&&y(r)||m&&m===r.keyCode)&&s++}}catch(k){e={error:k}}finally{try{l&&!l.done&&(u=c.return)&&u.call(c)}finally{if(e)throw e.error}}return n?s===o.length&&Q(r)===o.length?a:!1:s===o.length?a:!1}function U(r,a){return S(r)?r:G(r)?function(n){return T(n,r,a)}:Array.isArray(r)?function(n){return r.find(function(e){return T(n,e,a)})}:function(){return!!r}}var X=["keydown"];function Z(r,a,n){var e=n||{},u=e.events,o=u===void 0?X:u,s=e.target,c=e.exactMatch,l=c===void 0?!1:c,p=e.useCapture,y=p===void 0?!1:p,m=R(a),k=R(r);I(function(){var b,C,K,t=N(s,window);if(t){var q=function(i){var v,g=U(k.current,l),f=g(i),d=G(f)?f:i.key;if(f)return(v=m.current)===null||v===void 0?void 0:v.call(m,i,d)};try{for(var w=x(o),h=w.next();!h.done;h=w.next()){var H=h.value;(K=t==null?void 0:t.addEventListener)===null||K===void 0||K.call(t,H,q,y)}}catch(i){b={error:i}}finally{try{h&&!h.done&&(C=w.return)&&C.call(w)}finally{if(b)throw b.error}}return function(){var i,v,g;try{for(var f=x(o),d=f.next();!d.done;d=f.next()){var M=d.value;(g=t==null?void 0:t.removeEventListener)===null||g===void 0||g.call(t,M,q,y)}}catch(O){i={error:O}}finally{try{d&&!d.done&&(v=f.return)&&v.call(f)}finally{if(i)throw i.error}}}}},[o],s)}export{Z as u};
1
+ import{hf as W,r as L,hg as z,ck as R,f6 as N,hh as x,hi as P,ci as j,hj as S}from"./index-CX-CBC_8.js";var V=function(r,a){return r===void 0&&(r=[]),a===void 0&&(a=[]),W(r,a)},I=function(r,a,n){var e=L.useRef(),u=L.useRef(0);V(a,e.current)||(u.current+=1),e.current=a,z(r,[u.current],n)},J=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),B={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:J?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},E={ctrl:function(r){return r.ctrlKey},shift:function(r){return r.shiftKey},alt:function(r){return r.altKey},meta:function(r){return r.type==="keyup"?B.meta.includes(r.keyCode):r.metaKey}};function G(r){return P(r)||j(r)}function Q(r){var a=Object.keys(E).reduce(function(n,e){return E[e](r)?n+1:n},0);return[16,17,18,91,92].includes(r.keyCode)?a:a+1}function T(r,a,n){var e,u;if(!r.key)return!1;if(j(a))return r.keyCode===a?a:!1;var o=a.split("."),s=0;try{for(var c=x(o),l=c.next();!l.done;l=c.next()){var p=l.value,y=E[p],m=B[p.toLowerCase()];(y&&y(r)||m&&m===r.keyCode)&&s++}}catch(k){e={error:k}}finally{try{l&&!l.done&&(u=c.return)&&u.call(c)}finally{if(e)throw e.error}}return n?s===o.length&&Q(r)===o.length?a:!1:s===o.length?a:!1}function U(r,a){return S(r)?r:G(r)?function(n){return T(n,r,a)}:Array.isArray(r)?function(n){return r.find(function(e){return T(n,e,a)})}:function(){return!!r}}var X=["keydown"];function Z(r,a,n){var e=n||{},u=e.events,o=u===void 0?X:u,s=e.target,c=e.exactMatch,l=c===void 0?!1:c,p=e.useCapture,y=p===void 0?!1:p,m=R(a),k=R(r);I(function(){var b,C,K,t=N(s,window);if(t){var q=function(i){var v,g=U(k.current,l),f=g(i),d=G(f)?f:i.key;if(f)return(v=m.current)===null||v===void 0?void 0:v.call(m,i,d)};try{for(var w=x(o),h=w.next();!h.done;h=w.next()){var H=h.value;(K=t==null?void 0:t.addEventListener)===null||K===void 0||K.call(t,H,q,y)}}catch(i){b={error:i}}finally{try{h&&!h.done&&(C=w.return)&&C.call(w)}finally{if(b)throw b.error}}return function(){var i,v,g;try{for(var f=x(o),d=f.next();!d.done;d=f.next()){var M=d.value;(g=t==null?void 0:t.removeEventListener)===null||g===void 0||g.call(t,M,q,y)}}catch(O){i={error:O}}finally{try{d&&!d.done&&(v=f.return)&&v.call(f)}finally{if(i)throw i.error}}}}},[o],s)}export{Z as u};
@@ -1 +1 @@
1
- import{g as j,cN as O}from"./index-Dpawm4Ki.js";function N(i,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const e in a)if(e!=="default"&&!(e in i)){const s=Object.getOwnPropertyDescriptor(a,e);s&&Object.defineProperty(i,e,s.get?s:{enumerable:!0,get:()=>a[e]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var d={default:O,call:function(i,t,r){var a="";typeof t=="function"&&(r=t,t={});var e={data:t===void 0?null:t};if(typeof r=="function"){var s="dscb"+window.dscb++;window[s]=r,e._dscbstub=s}return e=JSON.stringify(e),window._dsbridge?a=_dsbridge.call(i,e):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(a=prompt("_dsbridge="+i,e)),JSON.parse(a||"{}").data},register:function(i,t,r){var a=r?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){d.call("_dsb.dsinit")},0)),typeof t=="object"?a._obs[i]=t:a[i]=t},registerAsyn:function(i,t){this.register(i,t,!0)},hasNativeMethod:function(i,t){return this.call("_dsb.hasNativeMethod",{name:i,type:t||"all"})},disableJavascriptDialogBlock:function(i){this.call("_dsb.disableJavascriptDialogBlock",{disable:i!==!1})}};(function(){if(!window._dsf){var i={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:d,close:function(){d.call("_dsb.closePage")},_handleMessageFromNative:function(r){var a=JSON.parse(r.data),e={id:r.callbackId,complete:!0},s=this._dsf[r.method],o=this._dsaf[r.method],p=function(u,_){e.data=u.apply(_,a),d.call("_dsb.returnValue",e)},v=function(u,_){a.push(function(w,y){e.data=w,e.complete=y!==!1,d.call("_dsb.returnValue",e)}),u.apply(_,a)};if(s)p(s,this._dsf);else if(o)v(o,this._dsaf);else{var l=r.method.split(".");if(l.length<2)return;var g=l.pop(),b=l.join("."),c=this._dsf._obs,f=c[b]||{},n=f[g];if(n&&typeof n=="function"){p(n,f);return}if(c=this._dsaf._obs,f=c[b]||{},n=f[g],n&&typeof n=="function"){v(n,f);return}}}};for(var t in i)window[t]=i[t];d.register("_hasJavascriptMethod",function(r,a){var e=r.split(".");if(e.length<2)return!!(_dsf[e]||_dsaf[e]);var r=e.pop(),s=e.join("."),o=_dsf._obs[s]||_dsaf._obs[s];return o&&!!o[r]})}})();var h=d;const J=j(h),k=N({__proto__:null,default:J},[h]);export{k as i};
1
+ import{g as j,cN as O}from"./index-CX-CBC_8.js";function N(i,t){for(var r=0;r<t.length;r++){const a=t[r];if(typeof a!="string"&&!Array.isArray(a)){for(const e in a)if(e!=="default"&&!(e in i)){const s=Object.getOwnPropertyDescriptor(a,e);s&&Object.defineProperty(i,e,s.get?s:{enumerable:!0,get:()=>a[e]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}var d={default:O,call:function(i,t,r){var a="";typeof t=="function"&&(r=t,t={});var e={data:t===void 0?null:t};if(typeof r=="function"){var s="dscb"+window.dscb++;window[s]=r,e._dscbstub=s}return e=JSON.stringify(e),window._dsbridge?a=_dsbridge.call(i,e):(window._dswk||navigator.userAgent.indexOf("_dsbridge")!=-1)&&(a=prompt("_dsbridge="+i,e)),JSON.parse(a||"{}").data},register:function(i,t,r){var a=r?window._dsaf:window._dsf;window._dsInit||(window._dsInit=!0,setTimeout(function(){d.call("_dsb.dsinit")},0)),typeof t=="object"?a._obs[i]=t:a[i]=t},registerAsyn:function(i,t){this.register(i,t,!0)},hasNativeMethod:function(i,t){return this.call("_dsb.hasNativeMethod",{name:i,type:t||"all"})},disableJavascriptDialogBlock:function(i){this.call("_dsb.disableJavascriptDialogBlock",{disable:i!==!1})}};(function(){if(!window._dsf){var i={_dsf:{_obs:{}},_dsaf:{_obs:{}},dscb:0,dsBridge:d,close:function(){d.call("_dsb.closePage")},_handleMessageFromNative:function(r){var a=JSON.parse(r.data),e={id:r.callbackId,complete:!0},s=this._dsf[r.method],o=this._dsaf[r.method],p=function(u,_){e.data=u.apply(_,a),d.call("_dsb.returnValue",e)},v=function(u,_){a.push(function(w,y){e.data=w,e.complete=y!==!1,d.call("_dsb.returnValue",e)}),u.apply(_,a)};if(s)p(s,this._dsf);else if(o)v(o,this._dsaf);else{var l=r.method.split(".");if(l.length<2)return;var g=l.pop(),b=l.join("."),c=this._dsf._obs,f=c[b]||{},n=f[g];if(n&&typeof n=="function"){p(n,f);return}if(c=this._dsaf._obs,f=c[b]||{},n=f[g],n&&typeof n=="function"){v(n,f);return}}}};for(var t in i)window[t]=i[t];d.register("_hasJavascriptMethod",function(r,a){var e=r.split(".");if(e.length<2)return!!(_dsf[e]||_dsaf[e]);var r=e.pop(),s=e.join("."),o=_dsf._obs[s]||_dsaf._obs[s];return o&&!!o[r]})}})();var h=d;const J=j(h),k=N({__proto__:null,default:J},[h]);export{k as i};
@@ -1,4 +1,4 @@
1
- import{g as We,Y as Ge,n as P,Q as v,Z as Q,j as e,$ as ke,r as x,P as E,t as _,a0 as ue,a1 as be,q as C,a2 as se,a3 as He,E as M,M as K,a4 as qe,m as A,T as Ve,a5 as Ye,B,D as Qe,C as ve,x as Ke,K as Se,a6 as Je,a7 as Ze,a8 as Xe,u as I,f as et,a9 as W,v as te,F as tt,aa as oe,A as je,w as re,ab as st,W as ne,i as J,y as Ce,z as Z,ac as ot,ad as rt,ae as Pe,af as nt,b as D,ag as at,O as it,ah as lt,R as ct,J as Re,ai as dt,aj as pt,ak as Te,al as Ee,am as De,an as Be,ao as Ue,ap as N,aq as Oe,ar as _e,as as Fe,at as ht}from"./index-Dpawm4Ki.js";import{P as H,L as mt,A as ut,S as Ae,a as Le}from"./index-BuNJbfxi.js";import{A as ft,D as ae,u as xt,W as gt,P as wt,L as $e,d as Ne,a as Me}from"./wait-container-CS2sL203.js";import{_ as fe}from"./useLocalStorage-C-9FT6wS.js";import{d as yt}from"./Launch-ixFhPrIJ.js";import{d as kt}from"./DeleteOutline-DWR_h5F3.js";import{g as bt,i as vt}from"./spaces-q5OlP__P.js";import{T as St}from"./TextField-FjVpB8_i.js";import{i as xe}from"./isEqual-DvDsjofF.js";import{d as jt}from"./MoreVert-72FLA6F7.js";import{E as Ct}from"./index-DDRhCg0G.js";import"./url-join-uVmSvxHB.js";import"./Skeleton-BRE8g3Nr.js";import"./Close-DpmK9wKZ.js";import"./lottie-E7kaZ5f2.js";import"./api-BxXFuqVr.js";import"./Select-CZslLkS9.js";import"./InputLabel-DiJjRX8c.js";var Pt=Ge;function Rt(t){return Pt(t).toLowerCase()}var Tt=Rt;const Et=We(Tt);function ie({children:t,selected:i}){return e.jsxs(Dt,{children:[t,e.jsx(v,{className:`selected-container ${i?"selected":""}`,children:e.jsx(ke,{className:"selected-icon"})})]})}const Dt=P(v)`
1
+ import{g as We,Y as Ge,n as P,Q as v,Z as Q,j as e,$ as ke,r as x,P as E,t as _,a0 as ue,a1 as be,q as C,a2 as se,a3 as He,E as M,M as K,a4 as qe,m as A,T as Ve,a5 as Ye,B,D as Qe,C as ve,x as Ke,K as Se,a6 as Je,a7 as Ze,a8 as Xe,u as I,f as et,a9 as W,v as te,F as tt,aa as oe,A as je,w as re,ab as st,W as ne,i as J,y as Ce,z as Z,ac as ot,ad as rt,ae as Pe,af as nt,b as D,ag as at,O as it,ah as lt,R as ct,J as Re,ai as dt,aj as pt,ak as Te,al as Ee,am as De,an as Be,ao as Ue,ap as N,aq as Oe,ar as _e,as as Fe,at as ht}from"./index-CX-CBC_8.js";import{P as H,L as mt,A as ut,S as Ae,a as Le}from"./index-CHZY388_.js";import{A as ft,D as ae,u as xt,W as gt,P as wt,L as $e,d as Ne,a as Me}from"./wait-container-e8XKZH24.js";import{_ as fe}from"./useLocalStorage-DoHM0_RD.js";import{d as yt}from"./Launch-4M4xlVcJ.js";import{d as kt}from"./DeleteOutline-BeNbF0Jm.js";import{g as bt,i as vt}from"./spaces-DcSM3WjO.js";import{T as St}from"./TextField-CK1WkVgK.js";import{i as xe}from"./isEqual-C8jFbxEO.js";import{d as jt}from"./MoreVert-s_b5pzH1.js";import{E as Ct}from"./index-bVh0eo8P.js";import"./url-join-CN9FagN9.js";import"./Skeleton-DhAVWnjB.js";import"./Close-ONBFJtxs.js";import"./lottie-xnBjXQ5H.js";import"./api-BiytJ2OL.js";import"./Select-DPQiNjEZ.js";import"./InputLabel-CZjkqwQE.js";var Pt=Ge;function Rt(t){return Pt(t).toLowerCase()}var Tt=Rt;const Et=We(Tt);function ie({children:t,selected:i}){return e.jsxs(Dt,{children:[t,e.jsx(v,{className:`selected-container ${i?"selected":""}`,children:e.jsx(ke,{className:"selected-icon"})})]})}const Dt=P(v)`
2
2
  position: relative;
3
3
 
4
4
  .selected-container {