@abtnode/blocklet-services 1.16.22-beta-5bf86cd3 → 1.16.22-beta-cab2dffe

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 (161) hide show
  1. package/dist/assets/{Add-HY80r9Xl.js → Add-fjbSIcnc.js} +1 -1
  2. package/dist/assets/{Alert-cCkZfPX9.js → Alert-nav821gk.js} +1 -1
  3. package/dist/assets/{ArrowDropDown-Oh-T-P-J.js → ArrowDropDown-HzxvBXz1.js} +1 -1
  4. package/dist/assets/{Autocomplete-kezcFnoc.js → Autocomplete-FZ1Hog9u.js} +1 -1
  5. package/dist/assets/{Avatar-jwVmwAdK.js → Avatar-4W2iSGC-.js} +1 -1
  6. package/dist/assets/{ButtonGroup-VMcij_v9.js → ButtonGroup-qjjm6C6u.js} +1 -1
  7. package/dist/assets/{CardContent-56wHk5L-.js → CardContent-hsa9cKyn.js} +1 -1
  8. package/dist/assets/{CheckCircle-_9dSYOvH.js → CheckCircle-htlybHjr.js} +1 -1
  9. package/dist/assets/{Checkbox-1a8RFsS4.js → Checkbox-iS0aPWS5.js} +1 -1
  10. package/dist/assets/{ChevronRight-DuewvW-I.js → ChevronRight-7cKIhy5z.js} +1 -1
  11. package/dist/assets/{DeleteOutline-8lAl_yeQ.js → DeleteOutline-QxqDOFWu.js} +1 -1
  12. package/dist/assets/{DialogContentText-4V6Sm4oF.js → DialogContentText-2StByoPg.js} +1 -1
  13. package/dist/assets/{Done-FhqUT9hq.js → Done-ApQZxhfW.js} +1 -1
  14. package/dist/assets/{Download-tyWSwX6I.js → Download-eudDXSjG.js} +1 -1
  15. package/dist/assets/{Edit-5S1lkpDv.js → Edit-4h5n3zVg.js} +1 -1
  16. package/dist/assets/{EditIcon-np_ORzEB.js → EditIcon-CEHYlrp-.js} +1 -1
  17. package/dist/assets/{ExpandMore-dUKN4QRy.js → ExpandMore-JmnmUnd8.js} +1 -1
  18. package/dist/assets/{FilterList--9H9DyuC.js → FilterList-rU96K2al.js} +1 -1
  19. package/dist/assets/{FormControl-21-o3Ons.js → FormControl-U_6qW76h.js} +1 -1
  20. package/dist/assets/{FormControlLabel-1hNnMean.js → FormControlLabel-Yzi0VkLB.js} +1 -1
  21. package/dist/assets/{FormGroup-7d3FZFIj.js → FormGroup-6byJTUh5.js} +1 -1
  22. package/dist/assets/{Google-VkSesQr-.js → Google-0MAQRWrd.js} +1 -1
  23. package/dist/assets/{Grid-EWzEHkzI.js → Grid-G2b-U3nu.js} +1 -1
  24. package/dist/assets/{Hidden-V9GBUhSY.js → Hidden-SKwxA9k1.js} +1 -1
  25. package/dist/assets/{Icon-4r9LeAsN.js → Icon-9CFlKIHS.js} +1 -1
  26. package/dist/assets/{InfoOutlined-pdQhXF08.js → InfoOutlined-0GqWWO-f.js} +1 -1
  27. package/dist/assets/{InputAdornment--qKRyOTU.js → InputAdornment-iwL7P_Vm.js} +1 -1
  28. package/dist/assets/{InputLabel-5mwp9YPR.js → InputLabel-qtx_TKpe.js} +1 -1
  29. package/dist/assets/{LastPage-pSqTT0C0.js → LastPage-pHa4HGK_.js} +1 -1
  30. package/dist/assets/{Launch-NG3M5y72.js → Launch-gJCQmpyL.js} +1 -1
  31. package/dist/assets/{LaunchOutlined-XOhr4FLd.js → LaunchOutlined-WAN0Led7.js} +1 -1
  32. package/dist/assets/{ListItem-wpvL3uzC.js → ListItem-kYIyq9wN.js} +1 -1
  33. package/dist/assets/{LockIcon-agQ4kFqe.js → LockIcon-e6UtCqfh.js} +1 -1
  34. package/dist/assets/{Loop-IzHJ-Vey.js → Loop-PXldOGkJ.js} +1 -1
  35. package/dist/assets/{MoreHoriz-KVrwkgt7.js → MoreHoriz-1QS3N81v.js} +1 -1
  36. package/dist/assets/{MoreVert-glDwWv1Q.js → MoreVert-b_wUncc4.js} +1 -1
  37. package/dist/assets/{OpenInNew-gFVniujG.js → OpenInNew-cyQNIeON.js} +1 -1
  38. package/dist/assets/{Pagination-R_vvTBsr.js → Pagination-yeBOKJgc.js} +1 -1
  39. package/dist/assets/{PlayArrow-ZBpW76Bk.js → PlayArrow-DsCR1WAD.js} +1 -1
  40. package/dist/assets/{RadioGroup-auvSkCcq.js → RadioGroup-MeoNWf5B.js} +1 -1
  41. package/dist/assets/{Search-b15PzLFw.js → Search-pq50dDMP.js} +1 -1
  42. package/dist/assets/{Select-wrtQaiA7.js → Select-1vnu6Wod.js} +1 -1
  43. package/dist/assets/{ServerLogo-vGEnqfsW.js → ServerLogo-RRmp6mc-.js} +1 -1
  44. package/dist/assets/{Skeleton-JafD3Ykz.js → Skeleton-bmmJmS0u.js} +1 -1
  45. package/dist/assets/{Slider-7ZGPyLpu.js → Slider-24UR9uuQ.js} +1 -1
  46. package/dist/assets/{Stepper-5Hb9COkE.js → Stepper-V9gE9w3-.js} +1 -1
  47. package/dist/assets/{TableRow-iLylb6bH.js → TableRow-7b-DLFKT.js} +1 -1
  48. package/dist/assets/{TextField-F6GRkv0f.js → TextField-HfFRez76.js} +1 -1
  49. package/dist/assets/{Toolbar-PzPFhxha.js → Toolbar-z-FYIGbv.js} +1 -1
  50. package/dist/assets/{access-control-ivdVi3Zl.js → access-control-140xtlbD.js} +1 -1
  51. package/dist/assets/{actions-RmsyI4AF.js → actions-c_BF9d9e.js} +1 -1
  52. package/dist/assets/{add-component-core-pThuc3SC.js → add-component-core-cwUA8ONY.js} +1 -1
  53. package/dist/assets/add-resource-iCbxZ67X.js +1 -0
  54. package/dist/assets/{addon-1k5Qtdur.js → addon-7yjXaIX_.js} +1 -1
  55. package/dist/assets/{analytics-uuu9J4YR.js → analytics-b1UCJ6Cn.js} +6 -6
  56. package/dist/assets/api-Rgr2QdHb.js +1 -0
  57. package/dist/assets/{audit-logs-lr4aoBwP.js → audit-logs-poKE0OY8.js} +1 -1
  58. package/dist/assets/{button-49q1l_Jk.js → button-lOeSUgmq.js} +1 -1
  59. package/dist/assets/{click-to-copy-7zmc8KM7.js → click-to-copy-H2O9ZAs8.js} +1 -1
  60. package/dist/assets/{complete-ksaTDs1d.js → complete--aJHmuMX.js} +1 -1
  61. package/dist/assets/{component-cmCcdsTc.js → component-O_4jZEKT.js} +1 -1
  62. package/dist/assets/{config-zfsyTfJt.js → config-Fxb0qTJ0.js} +1 -1
  63. package/dist/assets/{config-LAgF_LFO.js → config-_s2-tqfS.js} +1 -1
  64. package/dist/assets/{config-navigation-kgGhXvRG.js → config-navigation-YoH5FRo8.js} +1 -1
  65. package/dist/assets/{confirm-IbJOM7N5.js → confirm-Q5y49s7X.js} +1 -1
  66. package/dist/assets/{confirm-K5PhyaSE.js → confirm-yusCbmM9.js} +1 -1
  67. package/dist/assets/{connect-BZeJn_ku.js → connect-91kkXTrG.js} +1 -1
  68. package/dist/assets/{connect-iXFYp-0V.js → connect-tamQdAs3.js} +1 -1
  69. package/dist/assets/{content-layout-tLfWld_B.js → content-layout-P9P08qyU.js} +1 -1
  70. package/dist/assets/{dashboard-5KQ5Ur-Q.js → dashboard-wLNTNF45.js} +3 -3
  71. package/dist/assets/{did-address-5kO4ybvH.js → did-address-fR8IBME6.js} +1 -1
  72. package/dist/assets/{did-utils-N2ScOA2Z.js → did-utils-LIvwQDYN.js} +1 -1
  73. package/dist/assets/domain-list-lVne43El.js +12 -0
  74. package/dist/assets/{domain-1ugSZkUL.js → domain-zuaklUGn.js} +1 -1
  75. package/dist/assets/{exchange-passport-1R-azVMk.js → exchange-passport-T-h-OnRN.js} +1 -1
  76. package/dist/assets/{fallback-ZY6DEOHk.js → fallback-wCdaTD2t.js} +1 -1
  77. package/dist/assets/{format-error-fstt_Fgi.js → format-error-iCYgDtF5.js} +1 -1
  78. package/dist/assets/{fuel-tuPlyXKK.js → fuel-KNzdaW-g.js} +1 -1
  79. package/dist/assets/{fullpage-NJyn5uuM.js → fullpage-JCH-m3GS.js} +1 -1
  80. package/dist/assets/{home-0It-dY_Q.js → home-Po2ga9wZ.js} +1 -1
  81. package/dist/assets/{iframe-s-BtzLfM.js → iframe-5bCtjLAp.js} +1 -1
  82. package/dist/assets/{index-YqUiAZGc.js → index-2HiYYWCO.js} +1 -1
  83. package/dist/assets/{index-w1QUchsj.js → index-3S1MajfA.js} +1 -1
  84. package/dist/assets/{index-oY9Vc1OW.js → index-3kUoZ2Ef.js} +1 -1
  85. package/dist/assets/{index-d8x_hsVZ.js → index-4MBFFo4b.js} +1 -1
  86. package/dist/assets/{index-jlbXeg5y.js → index-7N0uMPlx.js} +1 -1
  87. package/dist/assets/{index-ibSCib5c.js → index-8qpwDSzw.js} +3 -3
  88. package/dist/assets/{index-FjIp0UlP.js → index-C7hr4YV8.js} +1 -1
  89. package/dist/assets/{index-akHKEyYq.js → index-FMCeh-OO.js} +1 -1
  90. package/dist/assets/{index-bZ3vw6Xd.js → index-FT9kP6qN.js} +1 -1
  91. package/dist/assets/{index-6Ubs0JHb.js → index-GG6_BZrf.js} +1 -1
  92. package/dist/assets/{index-BptLF0Yu.js → index-GsSFMKbP.js} +1 -1
  93. package/dist/assets/{index-FKI4Ry1a.js → index-KswRO1Cx.js} +1 -1
  94. package/dist/assets/{index-qpETE7Qh.js → index-NURviigq.js} +1 -1
  95. package/dist/assets/{index-CVik65v1.js → index-R3dXtQXo.js} +1 -1
  96. package/dist/assets/{index-Y2RH7k2W.js → index-SVSv1xqW.js} +1 -1
  97. package/dist/assets/{index-lDqI9_-C.js → index-_typwRVC.js} +1 -1
  98. package/dist/assets/{index-Q3a71wh1.js → index-auhYXn_h.js} +1 -1
  99. package/dist/assets/{index-0Rghu4i-.js → index-ax5KBcO9.js} +3 -3
  100. package/dist/assets/{index-7WXVYQMt.js → index-dQP0j7rR.js} +1 -1
  101. package/dist/assets/{index-gKtAtARS.js → index-hnUD7mNC.js} +1 -1
  102. package/dist/assets/{index-DUU1rMX-.js → index-lnLE9M77.js} +1 -1
  103. package/dist/assets/{index-MReLu9-n.js → index-nBzqT-lu.js} +1 -1
  104. package/dist/assets/{index-vU8oFfNB.js → index-nNJj_XhL.js} +1 -1
  105. package/dist/assets/{index-5ZG2oxzS.js → index-nXJuMgJq.js} +1 -1
  106. package/dist/assets/{index-YQvahN6T.js → index-p4r1RVIJ.js} +1 -1
  107. package/dist/assets/{index-QDdzoXvu.js → index-q4YuEk6Y.js} +1 -1
  108. package/dist/assets/{index-feKj5cCa.js → index-uIKkPDx2.js} +3 -3
  109. package/dist/assets/{index.es-KNfd6PLa.js → index.es-vxViMQsn.js} +1 -1
  110. package/dist/assets/{index.esm-MvqHB13x.js → index.esm-xVa55Zup.js} +1 -1
  111. package/dist/assets/{invite-U7HV2bOf.js → invite-EUhwRkSk.js} +1 -1
  112. package/dist/assets/{issue-passport--ANeRPcP.js → issue-passport-Z7ofkA6K.js} +1 -1
  113. package/dist/assets/{jss-plugin-props-sort.esm-HmYxbLE7.js → jss-plugin-props-sort.esm-NWykbogG.js} +1 -1
  114. package/dist/assets/{launch-result-message-TcQH4jpT.js → launch-result-message-E79l1MGN.js} +1 -1
  115. package/dist/assets/{layout-zmTL5DYX.js → layout-ZhSAbpLd.js} +1 -1
  116. package/dist/assets/{list-header--Vhbpfw2.js → list-header-OJgTzNF1.js} +1 -1
  117. package/dist/assets/localization-cO5MmVsH.js +1 -0
  118. package/dist/assets/{log-kNDVvJse.js → log-4VclxlhZ.js} +1 -1
  119. package/dist/assets/{login-05AF3rUX.js → login-7XksV0rI.js} +1 -1
  120. package/dist/assets/{logo-uploader-e3Of5exH.js → logo-uploader-enkwnhCD.js} +3 -3
  121. package/dist/assets/{lost-passport-0uO9Guj6.js → lost-passport-cJF6p-67.js} +3 -3
  122. package/dist/assets/{lottie-GIsmz4wu.js → lottie-2uuZhpDU.js} +1 -1
  123. package/dist/assets/{memoize-one.esm-pefuu-zN.js → memoize-one.esm-Y0hnttfr.js} +1 -1
  124. package/dist/assets/{nav-menu-_j09OYoV.js → nav-menu-2LU_iiMs.js} +1 -1
  125. package/dist/assets/{notifications-Ldr7opjk.js → notifications-Y8Uw-nJi.js} +1 -1
  126. package/dist/assets/{overview-1XL_Qiy2.js → overview-9xOIDQ82.js} +1 -1
  127. package/dist/assets/{page-header-LWFGDoxM.js → page-header-CBzxlYad.js} +1 -1
  128. package/dist/assets/{permission-sTjN-J07.js → permission-K-J3su8S.js} +1 -1
  129. package/dist/assets/preferences-d-eWeFvi.js +1 -0
  130. package/dist/assets/publish-resource-4G2Mwb1d.js +1 -0
  131. package/dist/assets/{react-Z9fqICoT.js → react-QMgqj51s.js} +3 -3
  132. package/dist/assets/{selector-r-EEnzvL.js → selector-ykYLL3HG.js} +1 -1
  133. package/dist/assets/session-4pK31v9z.js +1 -0
  134. package/dist/assets/{setup-yyKjCHgl.js → setup-vcogg-M1.js} +3 -3
  135. package/dist/assets/{slicedToArray-VCxJChO9.js → slicedToArray-ttVd16Np.js} +2 -2
  136. package/dist/assets/{spaces-3IB4aUW-.js → spaces-ciJpOZGt.js} +1 -1
  137. package/dist/assets/{start-_dD57MgC.js → start-uztJSUel.js} +1 -1
  138. package/dist/assets/{step-actions-u5wVgCmC.js → step-actions-DJIhDuRf.js} +1 -1
  139. package/dist/assets/{studio-HE-dnqpB.js → studio--sQ-x80O.js} +1 -1
  140. package/dist/assets/{switch-control-QtA6jhKG.js → switch-control-HdRcPAzs.js} +1 -1
  141. package/dist/assets/{transfer-jfS_LJKL.js → transfer-3Gc3ycMl.js} +1 -1
  142. package/dist/assets/{uniqBy-VUHiGwLF.js → uniqBy-k-IuKA35.js} +1 -1
  143. package/dist/assets/{unsubscribe-dTRW-kgU.js → unsubscribe-XLKaVY1Y.js} +1 -1
  144. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-0kF4SQU7.js → use-blocklet-info-for-connect-did-spaces-3Ylh35kg.js} +1 -1
  145. package/dist/assets/{useAsync-Dmz5YLn0.js → useAsync-eueWQMQv.js} +1 -1
  146. package/dist/assets/{useFormControl-mI0MPYsh.js → useFormControl-egCRc-oY.js} +1 -1
  147. package/dist/assets/{useLocalStorage-aRRflkTR.js → useLocalStorage--e-ZnzAS.js} +1 -1
  148. package/dist/assets/{useSetState-a6nBCmZL.js → useSetState-FhUMbwgE.js} +1 -1
  149. package/dist/assets/{user-7RZ8cZci.js → user-waJ6JIkq.js} +1 -1
  150. package/dist/assets/{util-rU2tRtqs.js → util-ScgYi65n.js} +1 -1
  151. package/dist/assets/{wallet-hidden-topbar-fLm2f0hp.js → wallet-hidden-topbar-4xE3Zmur.js} +3 -3
  152. package/dist/assets/{wrap-locale-A7IdT91x.js → wrap-locale-eKtYETDv.js} +1 -1
  153. package/dist/index.html +1 -1
  154. package/package.json +18 -18
  155. package/dist/assets/add-resource-6vlgGZkJ.js +0 -1
  156. package/dist/assets/api-JcbF2ZX8.js +0 -1
  157. package/dist/assets/domain-list-UlkqWCsm.js +0 -12
  158. package/dist/assets/localization-vCyo8i6n.js +0 -1
  159. package/dist/assets/preferences-VK9P9jKD.js +0 -1
  160. package/dist/assets/publish-resource-sQE_SSQq.js +0 -1
  161. package/dist/assets/session-otHGC7d2.js +0 -1
@@ -0,0 +1,12 @@
1
+ import{K as U,M as W,j as e,ce as Ue,eW as We,P as o,eX as Ce,u as w,r as v,a9 as z,aX as Se,$ as xe,a as q,S as M,n as B,eY as He,aS as Ve,eZ as Je,e_ as Ke,e$ as Ge,f0 as Qe,f1 as Xe,f2 as Ze,f3 as Te,f4 as Ye,f5 as et,B as h,U as Ae,bl as H,T as A,f6 as tt,C as ge,H as nt,F as N,x as it,c0 as st,b4 as ee,bC as je,eV as we,b1 as Re,bj as Ie,bA as ot,f7 as ye,f8 as rt,G as at,bn as lt,bt as ct,f9 as dt,fa as mt,aW as ut,fb as pt,bB as ft,aw as ht}from"./index-uIKkPDx2.js";import{d as xt}from"./Add-fjbSIcnc.js";import{d as gt}from"./ExpandMore-JmnmUnd8.js";import{d as jt}from"./LockIcon-e6UtCqfh.js";import{W as yt}from"./did-address-fR8IBME6.js";import{_ as bt,D as be,w as _e}from"./permission-K-J3su8S.js";import{A as vt}from"./index-_typwRVC.js";import{C as te,L as Dt,a as Ct}from"./confirm-Q5y49s7X.js";import{_ as ne,d as Pe}from"./useSetState-FhUMbwgE.js";import{d as St}from"./InfoOutlined-0GqWWO-f.js";import{d as Tt}from"./OpenInNew-cyQNIeON.js";import{_ as At}from"./useAsync-eueWQMQv.js";import"./api-Rgr2QdHb.js";import{I as wt}from"./index-GsSFMKbP.js";import{p as ke}from"./util-ScgYi65n.js";import{T as Rt}from"./TextField-HfFRez76.js";import{A as It}from"./actions-c_BF9d9e.js";import{C as Ee,a as $e}from"./CardContent-hsa9cKyn.js";import{A as _t}from"./Alert-nav821gk.js";var ie={},Pt=W;Object.defineProperty(ie,"__esModule",{value:!0});var G=ie.default=void 0,kt=Pt(U()),Et=e;G=ie.default=(0,kt.default)((0,Et.jsx)("path",{d:"M12.16 3h-.32L9.21 8.25h5.58zm4.3 5.25h5.16L19 3h-5.16zm4.92 1.5h-8.63V20.1zM11.25 20.1V9.75H2.62zM7.54 8.25 10.16 3H5L2.38 8.25z"}),"Diamond");var se={},$t=W;Object.defineProperty(se,"__esModule",{value:!0});var Le=se.default=void 0,Lt=$t(U()),qt=e;Le=se.default=(0,Lt.default)((0,qt.jsx)("path",{d:"m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"}),"ExpandLess");class zt{constructor(t,i,s){this.name=t,this.prefix=i,this.baseEncode=s}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class Ft{constructor(t,i,s){if(this.name=t,this.prefix=i,i.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=i.codePointAt(0),this.baseDecode=s}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return qe(this,t)}}class Mt{constructor(t){this.decoders=t}or(t){return qe(this,t)}decode(t){const i=t[0],s=this.decoders[i];if(s)return s.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const qe=(n,t)=>new Mt({...n.decoders||{[n.prefix]:n},...t.decoders||{[t.prefix]:t}});class Nt{constructor(t,i,s,a){this.name=t,this.prefix=i,this.baseEncode=s,this.baseDecode=a,this.encoder=new zt(t,i,s),this.decoder=new Ft(t,i,a)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const Ot=({name:n,prefix:t,encode:i,decode:s})=>new Nt(n,t,i,s),Bt=(n,t,i,s)=>{const a={};for(let p=0;p<t.length;++p)a[t[p]]=p;let r=n.length;for(;n[r-1]==="=";)--r;const l=new Uint8Array(r*i/8|0);let c=0,d=0,u=0;for(let p=0;p<r;++p){const y=a[n[p]];if(y===void 0)throw new SyntaxError(`Non-${s} character`);d=d<<i|y,c+=i,c>=8&&(c-=8,l[u++]=255&d>>c)}if(c>=i||255&d<<8-c)throw new SyntaxError("Unexpected end of data");return l},Ut=(n,t,i)=>{const s=t[t.length-1]==="=",a=(1<<i)-1;let r="",l=0,c=0;for(let d=0;d<n.length;++d)for(c=c<<8|n[d],l+=8;l>i;)l-=i,r+=t[a&c>>l];if(l&&(r+=t[a&c<<i-l]),s)for(;r.length*i&7;)r+="=";return r},$=({name:n,prefix:t,bitsPerChar:i,alphabet:s})=>Ot({prefix:t,name:n,encode(a){return Ut(a,s,i)},decode(a){return Bt(a,s,i,n)}}),Wt=$({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Ht=$({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Vt=$({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Jt=$({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),Kt=$({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),Gt=$({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Qt=$({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Xt=$({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Zt=$({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),Yt=Object.freeze(Object.defineProperty({__proto__:null,base32:Wt,base32hex:Kt,base32hexpad:Qt,base32hexpadupper:Xt,base32hexupper:Gt,base32pad:Vt,base32padupper:Jt,base32upper:Ht,base32z:Zt},Symbol.toStringTag,{value:"Module"})),en=Ue(Yt),{toBuffer:tn,toAddress:nn}=We,{base32:sn}=en,on=n=>{if(!n)return n;const t=tn(nn(n));return sn.encode(t)};var rn={encode:on};const an=n=>["waiting","creating","renewaling"].includes(n);function oe(n){var k,F;const{t}=w(),[i,s]=v.useState(!1),{inService:a}=z(),[r,l]=v.useState(null),{siteId:c,domain:d,onAdd:u,children:p,did:y}=n,[g,S]=v.useState(!1),{api:_,ws:{useSubscription:j}}=z(),{mode:C,actions:{refreshDomainStatus:D}}=Se(),x=bt(async()=>{const{cert:f}=await _.findCertificateByDomain({input:{domain:d,did:y}});return f}),b=(f,I)=>{f.domain===d&&(S(!1),s(!1),a&&C!=="setup"&&(I==="success"?B.success(t("setup.domain.genCertSuccess",{domain:f.domain})):I==="error"&&B.error(t("setup.domain.genCertFailed",{domain:f.domain,message:f.message}))))};if(v.useEffect(()=>{var f;x.loading||S(an((f=x.value)==null?void 0:f.status))},[x.loading,(k=x.value)==null?void 0:k.status]),j(xe.BlockletEvents.certError,f=>b(f,"error")),j(xe.BlockletEvents.certIssued,f=>{x.retry(),D(f.domain),b(f,"success")}),x.loading||((F=x.value)==null?void 0:F.status)==="normal")return"";const P=()=>{s(!1),l(null)},m=async()=>{s(!0);try{await _.issueLetsEncryptCert({input:{siteId:c,domain:d,did:y,inBlockletSetup:C==="setup"}}),u(),S(!0)}catch(f){console.error(f),S(!1)}finally{s(!1),l(null)}},T={title:t("router.cert.genLetsEncryptCert.title"),description:e.jsxs("div",{children:[e.jsx(vt,{type:"success",children:t("router.cert.genLetsEncryptCert.dnsTip")}),t("router.cert.genLetsEncryptCert.description")]}),confirm:t("common.confirm"),onConfirm:m,onCancel:P},R=f=>{f.stopPropagation(),l(T)};return e.jsxs(e.Fragment,{children:[g?e.jsx(q,{title:t("router.cert.issuing"),children:e.jsx(M,{size:12})}):p({loading:i,open:R}),r&&e.jsx(te,{color:"primary",title:r.title,description:r.description,confirm:r.confirm,params:r.params,onConfirm:r.onConfirm,onCancel:r.onCancel})]})}oe.propTypes={domain:o.string.isRequired,did:o.string.isRequired,siteId:o.string.isRequired,onAdd:o.func,children:o.any};oe.defaultProps={onAdd:()=>{},children:null};function re(n){const{domain:t,domainStatus:i,...s}=n;return!Ce(t)||i!=null&&i.isHttps?"":e.jsx(oe,{domain:t,...s})}re.propTypes={domain:o.string.isRequired,domainStatus:o.shape({isHttps:o.bool}).isRequired,did:o.string.isRequired,onAdd:o.func,children:o.any};re.defaultProps={onAdd:()=>{},children:null};var ae={},ln=W;Object.defineProperty(ae,"__esModule",{value:!0});var ze=ae.default=void 0,cn=ln(U()),dn=e;ze=ae.default=(0,cn.default)((0,dn.jsx)("path",{d:"M17 20.41 18.41 19 15 15.59 13.59 17zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5z"}),"CallMerge");var mn=He;function un(n,t){for(var i=-1,s=n.length;++i<s&&mn(t,n[i],0)>-1;);return i}var pn=un,fn=Je,hn=Ke,xn=Ge,gn=Qe,jn=pn,ve=Xe,yn=Ze;function bn(n,t,i){if(n=yn(n),n&&(i||t===void 0))return hn(n);if(!n||!(t=fn(t)))return n;var s=ve(n),a=ve(t),r=jn(s,a),l=gn(s,a)+1;return xn(s,r,l).join("")}var vn=bn;const Fe=Ve(vn),Me=v.createContext({}),{Provider:Dn,Consumer:Zn}=Me;function Cn({children:n}){const[t,i]=ne({domain:"",error:null}),{locale:s,t:a}=w(),{api:r}=z(),l={error:t.error,domain:t.domain,setError:c=>{i({error:c})},setDomain:c=>{const d=Fe(c),u=Te(d,s);i({domain:d,error:u})},validateDomain:async(c,d)=>!t.error&&d&&d!=="nftDomain"&&(await r.isDidDomain({input:{domain:c}})).value===!0?(i({error:a("router.domainAlias.add.isDidDomainError")}),!1):!0};return e.jsx(Dn,{value:{value:l},children:n})}function Ne(){const{value:n}=v.useContext(Me);return n}const De=Ye,Sn=et,Oe="z2qaGosS3rZ7m5ttP3Nd4V4qczR9TryTcRV4p",Tn=async n=>{var c;if(!n||!(n!=null&&n.trim()))return null;const t=new URL(n);t.pathname="__blocklet__.js",t.searchParams.set("type","json");const{data:i}=await Sn.get(t.toString()),s=(c=i==null?void 0:i.componentMountPoints)==null?void 0:c.find(d=>d.did===Oe),a=new URL(n);a.pathname=s==null?void 0:s.mountPoint;const r=a.toString(),l=De(r,"/api");return{base:r,api:l,domain:De(l,"/domains")}};var An={DID_DOMAIN_SERVICE_DID:Oe,getDidDomainServiceURL:Tn};function le({domain:n,resolvedTarget:t,...i}){const{t:s,locale:a}=w();return e.jsxs(h,{sx:{backgroundColor:"rgb(236, 251, 253)",borderColor:"rgb(236, 251, 253)",borderRadius:"8px",padding:"12px"},...i,children:[e.jsxs(h,{display:"flex",children:[s("router.domain.setup.tipStart"),n&&e.jsx(h,{mx:.5,color:"primary.main",fontWeight:"fontWeightBold",children:n}),s("router.domain.setup.tipEnd"),":"]}),e.jsxs(h,{sx:{"&>div":{mb:0},marginTop:"8px"},children:[e.jsx(Q,{label:s("router.domain.setup.recordType"),value:"CNAME",locale:a}),e.jsx(Q,{label:s("router.domain.setup.recordValue"),value:t,locale:a})]})]})}le.propTypes={domain:o.string,resolvedTarget:o.string.isRequired};le.defaultProps={domain:""};function Q({locale:n,label:t,value:i}){const s=Ae(r=>r.breakpoints.down("md")),a=H();return e.jsx(wt,{name:t,nameWidth:120,children:e.jsxs(h,{sx:{display:"flex",alignItems:"center",lineHeight:1},children:[e.jsx(A,{component:"span",color:"primary.main",overflow:"auto",sx:s?{maxWidth:"95%",wordWrap:"break-word"}:{wordWrap:"break-word"},children:i}),e.jsx(tt,{content:i,locale:n,style:{marginLeft:"4px",color:a.palette.text.secondary}})]})})}Q.propTypes={locale:o.string.isRequired,label:o.string.isRequired,value:o.string.isRequired};function ce({siteId:n,teamDid:t,cnameDomain:i,defaultCustomDomain:s,onInputDomain:a,appId:r,appPk:l,onSuccess:c,disabled:d,autoFocus:u,inBlockletSetup:p,...y}){const{t:g,locale:S}=w(),{api:_,info:j}=z(),C=Ne(),D=H(),[x,b]=ne({domain:s,error:null,type:j!=null&&j.nftDomainUrl?"nftDomain":"inputDomain",showNFTDomainAuth:!1,showDnsTip:!1}),P=At(()=>An.getDidDomainServiceURL(j==null?void 0:j.nftDomainUrl));if(j!=null&&j.nftDomainUrl&&P.loading)return e.jsx(h,{...y,children:e.jsx(ge,{relative:"parent",children:e.jsx(M,{})})});if(P.error)return e.jsx(h,{...y,children:e.jsx(ge,{relative:"parent",children:P.error.message})});const m=async({domain:f,nftDid:I,chainHost:L})=>{try{const E=ke(f);await _.addDomainAlias({input:{id:n,type:"nft-domain",domainAlias:E,nftDid:I,chainHost:L,teamDid:t,inBlockletSetup:p}}),await ee(2e3),b({confirmSetting:null,showNFTDomainAuth:!1,type:"nftDomain"}),c({domain:E,type:x.type,nftDid:I,chainHost:L})}catch(E){B.error(E.message)}finally{b({showNFTDomainAuth:!1})}},T=C.error||x.error,R=P.value,k={inputDomain:{name:g("router.domainAlias.inputDomain"),component:e.jsxs(e.Fragment,{children:[e.jsx(Rt,{label:g("router.domainAlias.add.domainDescription"),helperText:x.type==="inputDomain"&&T||g("router.domainAlias.add.helperText"),inputProps:{"data-cy":"domain-name-input"},fullWidth:!0,disabled:d,value:x.domain,size:"small",variant:"outlined",error:!!T&&x.type==="inputDomain",onChange:f=>{var E;const I=Fe((E=f.target)==null?void 0:E.value);C.setDomain(I);const L=Te(I,S);b({domain:I,error:L,type:"inputDomain"}),a({domain:I,error:L,type:"inputDomain"})},autoFocus:u,onBlur:()=>{C.domain||(b({error:null}),C.setError(null))}}),e.jsxs(h,{sx:{cursor:"pointer",fontSize:"14px",display:"flex",alignItems:"center",gap:"4px",marginTop:"8px",lineHeight:1,color:D.palette.primary.main},onClick:()=>b({showDnsTip:!x.showDnsTip}),children:[e.jsx(St,{fontSize:"1em"}),g("router.domainAlias.showTipHint")]}),x.showDnsTip&&e.jsx(le,{domain:x.domain,resolvedTarget:i,style:{marginTop:"4px"}})]})}};j!=null&&j.nftDomainUrl&&R&&(k.nftDomain={name:g("router.domainAlias.nftDomain"),component:e.jsxs(e.Fragment,{children:[e.jsxs(h,{sx:{maxWidth:"640px",color:"text.secondary",fontSize:"14px"},children:[e.jsx("div",{children:g("router.domainAlias.addDomainNFT.tips")}),e.jsxs("div",{children:[g("router.domainAlias.addDomainNFT.buyTip"),e.jsxs(nt,{href:R.base,sx:{fontSize:"14px",display:"inline-flex",alignItems:"center"},target:"_blank",children:[e.jsx("i",{children:g("router.domainAlias.addDomainNFT.buy")}),e.jsx(Tt,{fontSize:"small"})]})]})]}),e.jsx(N,{sx:{marginTop:"8px"},disabled:d,onClick:()=>b({showNFTDomainAuth:!0}),variant:"contained",children:g("router.domainAlias.addDomainNFT.showNFT")}),e.jsx(it,{open:x.showNFTDomainAuth,popup:!0,useSocket:!1,action:"authorize",baseUrl:R.api,checkFn:st.create({baseURL:R.api}).get,extraParams:{delegatee:r,delegateePk:l},onSuccess:m,onClose:()=>b({showNFTDomainAuth:!1}),checkTimeout:60*5e3,showDownload:!1,messages:{title:g("router.domainAlias.addDomainNFT.connect.title"),scan:g("router.domainAlias.addDomainNFT.connect.scan"),confirm:g("router.domainAlias.addDomainNFT.connect.confirm"),success:g("router.domainAlias.addDomainNFT.connect.success")}})]})});const F=Object.keys(k);return F.sort(f=>f==="inputDomain"?1:-1),e.jsx(h,{...y,children:e.jsx(h,{sx:{display:"flex",flexDirection:"column",justifyContent:"flex-start",gap:"1em"},children:F.map((f,I)=>{var L,E;return e.jsxs(h,{children:[F.length>1&&e.jsx(h,{sx:{fontWeight:700,color:D.palette.text.primary},children:`${g(`optionsOrder.${I+1}`)}: ${(L=k[f])==null?void 0:L.name}`}),e.jsx(h,{sx:{marginTop:"8px"},children:(E=k[f])==null?void 0:E.component})]},f)})})})}ce.propTypes={siteId:o.string.isRequired,teamDid:o.string.isRequired,cnameDomain:o.string.isRequired,defaultCustomDomain:o.string,onInputDomain:o.func,onSuccess:o.func,appId:o.string,appPk:o.string,disabled:o.bool,autoFocus:o.bool,inBlockletSetup:o.bool};ce.defaultProps={defaultCustomDomain:"",onInputDomain:je,onSuccess:je,appId:"",appPk:"",disabled:!1,autoFocus:!0,inBlockletSetup:!1};function de({id:n,children:t,title:i,teamDid:s,systemDomains:a,appId:r,appPk:l}){const{t:c}=w(),{api:d}=z(),[u,p]=ne({loading:!1,confirmSetting:null}),y=a.find(D=>we.isDidDomain(D)),g=Ne(),S=()=>{p({loading:!1,confirmSetting:null})},_=async D=>{if(!u.loading){p({loading:!0});try{const x=ke(D.domain);if(!await g.validateDomain(x,D.type))return!1;await d.addDomainAlias({input:{id:n,domainAlias:x,teamDid:s}}),await ee(2e3),p({confirmSetting:null})}catch(x){return g.setError(x.message),!1}finally{p({loading:!1})}}},j={title:i||c("router.domainAlias.add.title"),description:function(x,b,P){return e.jsx(ce,{siteId:n,teamDid:s,cnameDomain:y,onSuccess:()=>p({confirmSetting:null}),onInputDomain:({domain:m,type:T,error:R})=>{b({...x,domain:m,type:T,__disableConfirm:!!R}),P(R)},appId:r,appPk:l})},confirm:c("common.confirm"),cancel:c("common.cancel"),params:{domain:"",__disableConfirm:!0},onConfirm:_,onCancel:S},C=D=>{D.stopPropagation(),p({confirmSetting:j})};return e.jsxs(e.Fragment,{children:[typeof t=="function"?t({loading:u.loading,open:C}):e.jsxs(Re,{onClick:C,className:"rule-action","data-cy":"action-add-domain-alias",children:[u.loading?e.jsx(M,{size:16}):e.jsx(ze,{style:{fontSize:18,marginRight:5}}),c("router.domainAlias.add.title")]}),u.confirmSetting&&e.jsx(te,{title:u.confirmSetting.title,description:u.confirmSetting.description,confirm:u.confirmSetting.confirm,cancel:u.confirmSetting.cancel,params:u.confirmSetting.params,onConfirm:u.confirmSetting.onConfirm,onCancel:u.confirmSetting.onCancel,displayError:!1,color:"primary",loading:u.loading,maxWidth:"lg"})]})}de.propTypes={id:o.string.isRequired,children:o.any,title:o.string,teamDid:o.string,systemDomains:o.arrayOf(o.string).isRequired,appId:o.string,appPk:o.string.isRequired};de.defaultProps={children:null,title:"",teamDid:"",appId:null};function wn(n){return e.jsx(Cn,{children:e.jsx(de,{...n})})}function me(n){const{t}=w(),[i,s]=v.useState(!1),[a,r]=v.useState(null),{id:l,domain:c,children:d,teamDid:u}=n,{api:p}=z(),y=()=>{s(!1),r(null)},g=async()=>{s(!0);try{await p.deleteDomainAlias({input:{id:l,domainAlias:c,teamDid:u}}),await ee(2e3)}catch(j){B.error(j.message)}finally{r(null),s(!1)}},S={title:t("router.domainAlias.delete.title"),description:t("router.domainAlias.delete.description"),confirm:t("common.confirm"),onConfirm:g,onCancel:y},_=j=>{j.stopPropagation(),r(S)};return e.jsxs(e.Fragment,{children:[typeof d=="function"?d({loading:i,open:_}):e.jsxs(N,{edge:"end",onClick:_,size:"small",className:"rule-action",color:"error","data-cy":"action-delete-domain-alias",children:[i?e.jsx(M,{size:16}):e.jsx(Pe,{style:{fontSize:16}}),t("router.domainAlias.delete.title")]}),a&&e.jsx(te,{title:a.title,description:a.description,confirm:a.confirm,params:a.params,onConfirm:a.onConfirm,onCancel:a.onCancel})]})}me.propTypes={id:o.string.isRequired,domain:o.string.isRequired,children:o.any,teamDid:o.string};me.defaultProps={children:null,teamDid:""};function ue({site:n,domain:t,blocklet:i}){const{t:s}=w(),a=t.value===window.location.hostname;return e.jsx(It,{"data-cy":"domain-actions",size:"large",actions:[({close:r})=>{var l;return e.jsx(me,{id:n.id,domain:t.value,teamDid:(l=i==null?void 0:i.meta)==null?void 0:l.did,children:({open:c})=>e.jsx(q,{title:a?s("blocklet.router.currentDomainTip"):"",children:e.jsx("span",{children:e.jsxs(Re,{disabled:t.isProtected||a,dense:!0,onClick:d=>{r(),c(d)},"data-cy":"action-toggle-block",children:[e.jsx(Dt,{style:{minWidth:24,marginRight:8},children:e.jsx(Pe,{})}),e.jsx(Ct,{primary:s("common.delete")})]},"remove")})})})}]})}ue.propTypes={site:o.object.isRequired,domain:o.object.isRequired,blocklet:o.object.isRequired};ue.defaultProps={};var pe={},Rn=W;Object.defineProperty(pe,"__esModule",{value:!0});var fe=pe.default=void 0,In=Rn(U()),_n=e;fe=pe.default=(0,In.default)((0,_n.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Https");const V=o.shape({href:o.string,accessibility:o.shape({loading:o.bool,accessible:o.bool}),domainStatus:o.shape({isHttps:o.bool,matchedCert:o.object}),dns:o.shape({resolved:o.bool,ip:o.string})});function he({certificate:n}){const[t,i]=v.useState(null),s=z(),{t:a,locale:r}=w(),l=u=>{i(u.currentTarget)},c=()=>{i(null)},d=!!t;return e.jsxs(e.Fragment,{children:[e.jsx(fe,{"aria-owns":d?"mouse-over-popover":void 0,onMouseEnter:l,onMouseLeave:c,style:{color:"#44cdc6",fontSize:20,cursor:"pointer"}}),e.jsx(Ie,{id:"mouse-over-popover",style:{pointerEvents:"none"},open:d,anchorEl:t,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:c,disableRestoreFocus:!0,children:e.jsx(Ee,{children:e.jsxs($e,{style:{display:"flex"},children:[e.jsx("div",{children:e.jsx("img",{src:`${s.imgPrefix}/https-certificate-icon.png`,alt:"certificate icon",style:{maxHeight:"100%",maxWidth:"100%"}})}),e.jsxs(A,{component:"div",style:{marginLeft:"16px"},children:[e.jsx(A,{component:"div",style:{fontWeight:"bold"},children:n.domain}),e.jsx(A,{component:"div",children:`${a("common.issuer")}: ${ot(n,"issuer.commonName","")}`}),e.jsx(A,{component:"div",children:`${a("router.cert.issuedOn")}: ${ye(n.validFrom,r)}`}),e.jsx(A,{component:"div",children:`${a("router.cert.expiryOn")}: ${ye(n.validTo,r)}`})]})]})})})]})}he.propTypes={certificate:o.object};he.defaultProps={certificate:{}};function O({domain:n,filters:t}){const{t:i}=w(),{value:s,domainStatus:a}=n;if(!Ce(s))return null;let r=null,l=null;const{isHttps:c,matchedCert:d}=a;if(!rt(s)){const{dns:{resolved:p,ip:y}={}}=a;p||y==="127.0.0.1"?r=e.jsx(q,{title:i("router.domain.verify.ok"),children:e.jsx(be,{color:"success"})}):r=e.jsx(q,{title:i("router.domain.verify.notResolved"),children:e.jsx(be,{color:"error"})})}c?l=e.jsx(he,{certificate:d}):l=e.jsx(q,{title:i("router.domain.https.bad"),children:e.jsx(fe,{style:{color:"#D0021B",fontSize:20,cursor:"pointer"}})});const u=t.map(p=>p==="domain"?r:p==="http"?l:null);return v.createElement(v.Fragment,null,...u)}O.propTypes={domain:V.isRequired,filters:o.array};O.defaultProps={filters:["domain","http"]};const Pn=_e(J,"mutate_blocklets"),kn=_e(J,"",lt);function Be(n){const{inService:t}=z(),{blocklet:i,loadingRuntimeInfo:s}=Se();let a=Pn;return t&&(a=kn),e.jsx(a,{...n,blocklet:i,inService:t,loadingRuntimeInfo:s})}Be.propTypes={listOnly:o.bool};Be.defaultProps={listOnly:!1};function J({hasPermission:n,blocklet:t,loadingRuntimeInfo:i,inService:s,listOnly:a}){var D,x,b,P;const{t:r}=w(),[l,c]=v.useState(!1),d=Ae(m=>m.breakpoints.down("md")),u=v.useMemo(()=>{let m=n;return ct(t)&&(m=m&&s),m},[n,s,t]),{site:p}=t,y=v.useMemo(()=>{var m;return dt((m=t.site)==null?void 0:m.domainAliases)},[(D=t.site)==null?void 0:D.domainAliases]),g=[],S=[],_=rn.encode(t.appPid),j=(b=(x=t.environments)==null?void 0:x.find(m=>m.key==="BLOCKLET_APP_PK"))==null?void 0:b.value,C=mt(y);return y.forEach(m=>{const T=m.value||"";we.isDidDomain(T)&&!T.startsWith(_)?S.push(m):g.push(m)}),e.jsxs(e.Fragment,{children:[!a&&e.jsxs(e.Fragment,{children:[e.jsxs(h,{className:"title first",display:"flex",justifyContent:"space-between",alignItems:"center",children:[e.jsx(h,{children:r("common.domain")}),u&&e.jsx(wn,{id:p.id,title:r("router.domain.add.title"),teamDid:(P=t.meta)==null?void 0:P.did,appId:t.appPid,appPk:j,systemDomains:C==null?void 0:C.map(m=>m.value),children:({open:m})=>e.jsxs(N,{style:{marginLeft:16},variant:"contained",color:"primary","data-cy":"add-domain-alias",onClick:m,disabled:ut(t.status),children:[e.jsx(xt,{style:{fontSize:"1.3em",marginRight:4}}),r("common.add")]})})]}),pt(t.status)===!1&&e.jsx(h,{mt:1.5,mb:1.5,children:e.jsx(_t,{severity:"warning",children:r("blocklet.router.noRunning")})})]}),e.jsx(h,{sx:{display:"flex",flexDirection:"column",gap:1},children:(l?y:g).map(m=>{var R,k;const T=m.value;return e.jsxs(v.Fragment,{children:[d&&e.jsxs(h,{display:"flex",flexDirection:"column",children:[e.jsx(h,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:e.jsx(X,{domain:m,target:"_blank",children:m.value})}),e.jsxs(h,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[e.jsxs(h,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:1},children:[e.jsx(O,{domain:m,filters:["domain"]},`${m.value}-domain`),e.jsx(Y,{siteId:(R=t.site)==null?void 0:R.id,domain:m,blocklet:t,hasMutatePermission:u})]}),e.jsx(h,{sx:{button:{padding:0}},children:e.jsx(Z,{hasMutatePermission:u,site:p,domain:m,blocklet:t})})]})]},T),!d&&e.jsxs(h,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[e.jsxs(h,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[e.jsx(O,{domain:m,filters:["domain"]},`${m.value}-domain`),e.jsx(h,{sx:{ml:2,mr:.5},children:e.jsx(X,{domain:m,target:"_blank",children:m.value})}),e.jsx(Y,{siteId:(k=t.site)==null?void 0:k.id,domain:m,blocklet:t,hasMutatePermission:u})]}),e.jsx(h,{sx:{button:{padding:0}},children:e.jsx(Z,{hasMutatePermission:u,site:p,domain:m,blocklet:t})})]},T)]},T)})}),S.length>0&&e.jsx("div",{style:{marginLeft:"20px",marginTop:"12px"},children:e.jsx(N,{endIcon:l?e.jsx(Le,{}):e.jsx(gt,{}),onClick:()=>c(!l),children:r(l?"common.collapseAll":"blocklet.router.showAllDomains")})}),!y.length&&(i?e.jsx(M,{size:16}):e.jsx(ft,{children:r("common.empty")}))]})}J.propTypes={hasPermission:o.bool,blocklet:o.object.isRequired,loadingRuntimeInfo:o.bool,inService:o.bool.isRequired,listOnly:o.bool};J.defaultProps={hasPermission:!1,loadingRuntimeInfo:!1,listOnly:!1};function X({domain:n,children:t,...i}){const{t:s}=w(),{href:a,accessibility:r}=n;return!r||r.loading?e.jsxs(K,{...i,children:[t,e.jsx(q,{title:s("blocklet.router.checkUrlAccessible"),placement:"top-end",children:e.jsx("span",{className:"status",children:e.jsx(M,{size:12})})})]}):r.accessible?e.jsx(K,{...i,children:e.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",children:t})}):e.jsx(K,{...i,children:e.jsx(q,{title:s("blocklet.router.urlInaccessible"),placement:"top-end",children:e.jsx("span",{children:t})})})}X.propTypes={domain:V.isRequired,children:o.any.isRequired};const K=at.span`
2
+ &,
3
+ & > * {
4
+ color: #222;
5
+ font-size: 18px;
6
+ word-break: break-all;
7
+ }
8
+
9
+ .status {
10
+ margin-left: 8px;
11
+ }
12
+ `;function Z({hasMutatePermission:n,site:t,domain:i,blocklet:s}){const a=H(),{t:r}=w();return n&&!i.isProtected?e.jsx(ue,{site:t,domain:i,blocklet:s}):e.jsx(q,{title:r("blocklet.router.domainLockTooltip"),placement:"top",children:e.jsx(ht,{disabled:!0,size:"large",style:{pointerEvents:"auto",paddingTop:0,paddingBottom:0},children:e.jsx(jt,{style:{fill:a.palette.text.disabled}})})})}Z.propTypes={hasMutatePermission:o.bool.isRequired,site:o.object.isRequired,domain:V.isRequired,blocklet:o.object.isRequired};function Y({siteId:n,domain:t,blocklet:i,hasMutatePermission:s}){const a=H(),{t:r}=w(),[l,c]=v.useState(null),d=p=>{c(p.currentTarget)},u=()=>{c(null)};return e.jsxs(h,{sx:{display:"flex",justifyContent:"flex-start",alignItems:"center",gap:1},children:[t.type==="nft-domain"&&e.jsxs(e.Fragment,{children:[e.jsx(G,{onMouseEnter:d,onMouseLeave:u,style:{cursor:"pointer",fill:a.palette.primary.main}}),e.jsx(Ie,{id:"mouse-over-popover",style:{pointerEvents:"none"},open:!!l,anchorEl:l,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:u,disableRestoreFocus:!0,children:e.jsx(Ee,{children:e.jsxs($e,{style:{display:"flex",flexDirection:"column"},children:[e.jsxs(A,{component:"div",style:{display:"flex",alignItems:"center"},children:[e.jsx(G,{style:{fill:a.palette.primary.main}}),e.jsx(A,{component:"span",style:{marginLeft:"8px",fontSize:"18px",fontWeight:"bolder"},children:r("router.domainAlias.nftDomain")})]}),e.jsxs(A,{component:"div",style:{display:"flex",marginTop:"12px"},children:[e.jsx(A,{component:"span",style:{width:"80px",marginRight:"8px"},children:r("common.domain")}),e.jsx(A,{component:"span",children:t.value})]}),e.jsxs(A,{component:"div",style:{display:"flex"},children:[e.jsx(A,{component:"span",style:{width:"80px",marginRight:"8px"},children:"NFT"}),e.jsx(yt,{did:t.nftDid})]})]})})})]}),e.jsx(O,{domain:t,filters:["http"]},`${t.value}-http`),s&&e.jsx(re,{siteId:n,domain:t.value,domainStatus:t.domainStatus,did:i.meta.did,children:({open:p})=>e.jsx(N,{sx:{padding:0},size:"small",onClick:y=>p(y),children:r("router.cert.genLetsEncryptCert.title")})})]})}Y.propTypes={siteId:o.string.isRequired,domain:V.isRequired,blocklet:o.object.isRequired,hasMutatePermission:o.bool.isRequired};export{ce as A,Cn as D,Be as a,Le as d,Ne as u};
@@ -1,4 +1,4 @@
1
- import{aS as O,j as e,r as f,E as V,a8 as Y,eU as q,eV as G,V as N,B as c,P as I,G as M,X as U,n as w}from"./index-feKj5cCa.js";import{D as X,u as J,a as Q,A as Z}from"./domain-list-UlkqWCsm.js";import{C as tt}from"./confirm-IbJOM7N5.js";import{P as rt}from"./page-header-LWFGDoxM.js";import{r as et}from"./index-akHKEyYq.js";import{_ as ot}from"./useSetState-a6nBCmZL.js";import{S as E}from"./button-49q1l_Jk.js";import{S as it}from"./layout-zmTL5DYX.js";import{S as nt}from"./step-actions-u5wVgCmC.js";import"./Add-HY80r9Xl.js";import"./ExpandMore-dUKN4QRy.js";import"./LockIcon-agQ4kFqe.js";import"./did-address-5kO4ybvH.js";import"./permission-sTjN-J07.js";import"./useAsync-Dmz5YLn0.js";import"./session-otHGC7d2.js";import"./index-lDqI9_-C.js";import"./InfoOutlined-pdQhXF08.js";import"./OpenInNew-gFVniujG.js";import"./api-JcbF2ZX8.js";import"./index-BptLF0Yu.js";import"./util-rU2tRtqs.js";import"./TextField-F6GRkv0f.js";import"./FormControl-21-o3Ons.js";import"./useFormControl-mI0MPYsh.js";import"./InputLabel-5mwp9YPR.js";import"./Select-wrtQaiA7.js";import"./actions-RmsyI4AF.js";import"./MoreHoriz-KVrwkgt7.js";import"./CardContent-56wHk5L-.js";import"./Alert-cCkZfPX9.js";import"./DialogContentText-4V6Sm4oF.js";import"./format-error-fstt_Fgi.js";import"./content-layout-tLfWld_B.js";var x={exports:{}};const st=et,at=["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"];class L extends Error{constructor(i){super(),i instanceof Error?(this.originalError=i,{message:i}=i):(this.originalError=new Error(i),this.originalError.stack=this.stack),this.name="AbortError",this.message=i}}const lt=(o,i,r)=>{const n=r.retries-(i-1);return o.attemptNumber=i,o.retriesLeft=n,o},dt=o=>at.includes(o),$=(o,i)=>new Promise((r,n)=>{i={onFailedAttempt:()=>{},retries:10,...i};const a=st.operation(i);a.attempt(async h=>{try{r(await o(h))}catch(s){if(!(s instanceof Error)){n(new TypeError(`Non-error was thrown: "${s}". You should only throw errors.`));return}if(s instanceof L)a.stop(),n(s.originalError);else if(s instanceof TypeError&&!dt(s.message))a.stop(),n(s);else{lt(s,h,i);try{await i.onFailedAttempt(s)}catch(l){n(l);return}a.retry(s)||n(a.mainError())}}})});x.exports=$;x.exports.default=$;x.exports.AbortError=L;var mt=x.exports;const ct=O(mt);function S({onNext:o,onPrevious:i}){var T,A;const{t:r}=f.useContext(V),[n,a]=f.useState(""),[h,s]=f.useState(!1),{blocklet:l}=Y(),[g,F]=f.useState(""),k=J(),W=(((l==null?void 0:l.site)||{}).domainAliases||[]).map(t=>q(t.value,g)),[p,u]=ot({domain:"",invalidDNSDomain:null,type:""}),_=(A=(T=l.environments)==null?void 0:T.find(t=>t.key==="BLOCKLET_APP_PK"))==null?void 0:A.value,z=W.find(t=>G.isDidDomain(t)),j=async(t,d)=>{a(r("setup.domain.addingDomain")),await k.validateDomain(t,d)&&(await U.addDomainAlias({input:{id:l.site.id,domainAlias:t,teamDid:l.meta.did,inBlockletSetup:!0}}).finally(()=>{u(null)}),o())},C=async({domain:t,type:d,nftDid:D,chainHost:P})=>{if(!n)try{if(a(r("setup.domain.checkingResolvable")),!await k.validateDomain(t,d)){a(""),s(r("setup.domain.invalidDomain"));return}let v=30;const y=3e3,K=v*1e3/y,R=setInterval(()=>{if(v<=0){clearInterval(R);return}a(`${r("setup.domain.checkingResolvable")} (${v--}s)`)},1e3),B=await ct(async()=>{const{data:m}=await N.get(`/dns-resolve?hostname=${t}`);if(!m.address)throw new Error("Cannot resolve domain");return m.address},{retries:K,minTimeout:y,maxTimeout:y,onFailedAttempt:console.error}).catch(console.error);if(clearInterval(R),!B){const m=r("setup.domain.cannotResolve",{domain:t});if(d==="nftDomain"){w.error(m),o();return}u({invalidDNSDomain:{domain:t,error:m},domain:t,type:d,nftDid:D,chainHost:P});return}if(B!==g){const m=r("setup.domain.resolvedAddressError",{domain:t,curDomain:window.location.hostname});if(d==="nftDomain"){w.error(m),o();return}u({invalidDNSDomain:{domain:t,error:m},domain:t,type:d,nftDid:D,chainHost:P});return}if(d==="nftDomain"){o();return}await j(t,d)}catch(b){w.error(b.message),a("")}},H=()=>{a(""),u({invalidDNSDomain:null})};return f.useEffect(()=>{N.get(`/dns-resolve?hostname=${window.location.hostname}`).then(({data:t})=>{F(t.address||"")}).catch(t=>{console.error(t.message)})},[]),e.jsxs(pt,{children:[e.jsx("div",{className:"header",children:e.jsx(rt,{title:r("setup.domain.title"),subTitle:r("setup.domain.subTitle"),onClickBack:i})}),e.jsxs(c,{className:"form",sx:{display:"flex",flexDirection:"column",gap:3,overflowY:"auto"},children:[e.jsxs(c,{children:[e.jsxs(c,{color:"text.primary",fontWeight:"fontWeightBold",fontSize:"1.125rem",children:[e.jsx(c,{display:"inline",children:r("setup.domain.skipStart")}),e.jsx(E,{variant:"text",size:"small",disabled:!!n,onClick:()=>o(),style:{paddingTop:0},children:e.jsx("span",{style:{textDecoration:"underline"},children:r("setup.domain.skip")})}),e.jsx(c,{display:"inline",children:r("setup.domain.skipEnd")})]}),e.jsx(c,{sx:{marginTop:"12px"},children:e.jsx(Q,{listOnly:!0,inSetup:!0})})]}),e.jsxs(c,{children:[e.jsx(c,{fontWeight:"fontWeightBold",fontSize:"1.125rem",children:r("setup.domain.addTitle")}),e.jsx(Z,{autoFocus:!1,appPk:_,disabled:!!n,appId:l.appPid,siteId:l.site.id,teamDid:l.meta.did,sx:{marginTop:"12px"},cnameDomain:z,inBlockletSetup:!0,onInputDomain:t=>{u({domain:t.domain,type:t.type}),s(t.error)},onSuccess:async t=>{const d={domain:t.domain,type:t.type,nftDid:t.nftDid,chainHost:t.chainHost};u(d),await C(d)},onError:s})]})]}),p.invalidDNSDomain&&e.jsx(tt,{title:r("common.reminder"),description:r("setup.domain.invalidDNSReminder",{error:p.invalidDNSDomain.error}),color:"primary",confirm:r("setup.domain.continueAdd"),onConfirm:()=>j(p.invalidDNSDomain.domain,p.type),onCancel:H}),e.jsx(nt,{mt:8,disabled:!!n,blocklet:l,onStartNow:()=>o("complete"),children:p.domain?e.jsx(E,{variant:"contained",loading:!!n,disabled:h||!!n||!p.domain,onClick:()=>C(p),children:n||r("setup.next")}):e.jsx(E,{variant:"contained",disabled:!!n,onClick:()=>o(),children:r("setup.skip")})})]})}function Ut(o){return e.jsx(X,{children:e.jsx(S,{...o})})}S.propTypes={onNext:I.func,onPrevious:I.func};S.defaultProps={onNext:()=>{},onPrevious:()=>{}};const pt=M(it)`
1
+ import{aS as O,j as e,r as f,E as V,a8 as Y,eU as q,eV as G,V as N,B as c,P as I,G as M,X as U,n as w}from"./index-uIKkPDx2.js";import{D as X,u as J,a as Q,A as Z}from"./domain-list-lVne43El.js";import{C as tt}from"./confirm-Q5y49s7X.js";import{P as rt}from"./page-header-CBzxlYad.js";import{r as et}from"./index-FMCeh-OO.js";import{_ as ot}from"./useSetState-FhUMbwgE.js";import{S as E}from"./button-lOeSUgmq.js";import{S as it}from"./layout-ZhSAbpLd.js";import{S as nt}from"./step-actions-DJIhDuRf.js";import"./Add-fjbSIcnc.js";import"./ExpandMore-JmnmUnd8.js";import"./LockIcon-e6UtCqfh.js";import"./did-address-fR8IBME6.js";import"./permission-K-J3su8S.js";import"./useAsync-eueWQMQv.js";import"./session-4pK31v9z.js";import"./index-_typwRVC.js";import"./InfoOutlined-0GqWWO-f.js";import"./OpenInNew-cyQNIeON.js";import"./api-Rgr2QdHb.js";import"./index-GsSFMKbP.js";import"./util-ScgYi65n.js";import"./TextField-HfFRez76.js";import"./FormControl-U_6qW76h.js";import"./useFormControl-egCRc-oY.js";import"./InputLabel-qtx_TKpe.js";import"./Select-1vnu6Wod.js";import"./actions-c_BF9d9e.js";import"./MoreHoriz-1QS3N81v.js";import"./CardContent-hsa9cKyn.js";import"./Alert-nav821gk.js";import"./DialogContentText-2StByoPg.js";import"./format-error-iCYgDtF5.js";import"./content-layout-P9P08qyU.js";var x={exports:{}};const st=et,at=["Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Network request failed"];class L extends Error{constructor(i){super(),i instanceof Error?(this.originalError=i,{message:i}=i):(this.originalError=new Error(i),this.originalError.stack=this.stack),this.name="AbortError",this.message=i}}const lt=(o,i,r)=>{const n=r.retries-(i-1);return o.attemptNumber=i,o.retriesLeft=n,o},dt=o=>at.includes(o),$=(o,i)=>new Promise((r,n)=>{i={onFailedAttempt:()=>{},retries:10,...i};const a=st.operation(i);a.attempt(async h=>{try{r(await o(h))}catch(s){if(!(s instanceof Error)){n(new TypeError(`Non-error was thrown: "${s}". You should only throw errors.`));return}if(s instanceof L)a.stop(),n(s.originalError);else if(s instanceof TypeError&&!dt(s.message))a.stop(),n(s);else{lt(s,h,i);try{await i.onFailedAttempt(s)}catch(l){n(l);return}a.retry(s)||n(a.mainError())}}})});x.exports=$;x.exports.default=$;x.exports.AbortError=L;var mt=x.exports;const ct=O(mt);function S({onNext:o,onPrevious:i}){var T,A;const{t:r}=f.useContext(V),[n,a]=f.useState(""),[h,s]=f.useState(!1),{blocklet:l}=Y(),[g,F]=f.useState(""),k=J(),W=(((l==null?void 0:l.site)||{}).domainAliases||[]).map(t=>q(t.value,g)),[p,u]=ot({domain:"",invalidDNSDomain:null,type:""}),_=(A=(T=l.environments)==null?void 0:T.find(t=>t.key==="BLOCKLET_APP_PK"))==null?void 0:A.value,z=W.find(t=>G.isDidDomain(t)),j=async(t,d)=>{a(r("setup.domain.addingDomain")),await k.validateDomain(t,d)&&(await U.addDomainAlias({input:{id:l.site.id,domainAlias:t,teamDid:l.meta.did,inBlockletSetup:!0}}).finally(()=>{u(null)}),o())},C=async({domain:t,type:d,nftDid:D,chainHost:P})=>{if(!n)try{if(a(r("setup.domain.checkingResolvable")),!await k.validateDomain(t,d)){a(""),s(r("setup.domain.invalidDomain"));return}let v=30;const y=3e3,K=v*1e3/y,R=setInterval(()=>{if(v<=0){clearInterval(R);return}a(`${r("setup.domain.checkingResolvable")} (${v--}s)`)},1e3),B=await ct(async()=>{const{data:m}=await N.get(`/dns-resolve?hostname=${t}`);if(!m.address)throw new Error("Cannot resolve domain");return m.address},{retries:K,minTimeout:y,maxTimeout:y,onFailedAttempt:console.error}).catch(console.error);if(clearInterval(R),!B){const m=r("setup.domain.cannotResolve",{domain:t});if(d==="nftDomain"){w.error(m),o();return}u({invalidDNSDomain:{domain:t,error:m},domain:t,type:d,nftDid:D,chainHost:P});return}if(B!==g){const m=r("setup.domain.resolvedAddressError",{domain:t,curDomain:window.location.hostname});if(d==="nftDomain"){w.error(m),o();return}u({invalidDNSDomain:{domain:t,error:m},domain:t,type:d,nftDid:D,chainHost:P});return}if(d==="nftDomain"){o();return}await j(t,d)}catch(b){w.error(b.message),a("")}},H=()=>{a(""),u({invalidDNSDomain:null})};return f.useEffect(()=>{N.get(`/dns-resolve?hostname=${window.location.hostname}`).then(({data:t})=>{F(t.address||"")}).catch(t=>{console.error(t.message)})},[]),e.jsxs(pt,{children:[e.jsx("div",{className:"header",children:e.jsx(rt,{title:r("setup.domain.title"),subTitle:r("setup.domain.subTitle"),onClickBack:i})}),e.jsxs(c,{className:"form",sx:{display:"flex",flexDirection:"column",gap:3,overflowY:"auto"},children:[e.jsxs(c,{children:[e.jsxs(c,{color:"text.primary",fontWeight:"fontWeightBold",fontSize:"1.125rem",children:[e.jsx(c,{display:"inline",children:r("setup.domain.skipStart")}),e.jsx(E,{variant:"text",size:"small",disabled:!!n,onClick:()=>o(),style:{paddingTop:0},children:e.jsx("span",{style:{textDecoration:"underline"},children:r("setup.domain.skip")})}),e.jsx(c,{display:"inline",children:r("setup.domain.skipEnd")})]}),e.jsx(c,{sx:{marginTop:"12px"},children:e.jsx(Q,{listOnly:!0,inSetup:!0})})]}),e.jsxs(c,{children:[e.jsx(c,{fontWeight:"fontWeightBold",fontSize:"1.125rem",children:r("setup.domain.addTitle")}),e.jsx(Z,{autoFocus:!1,appPk:_,disabled:!!n,appId:l.appPid,siteId:l.site.id,teamDid:l.meta.did,sx:{marginTop:"12px"},cnameDomain:z,inBlockletSetup:!0,onInputDomain:t=>{u({domain:t.domain,type:t.type}),s(t.error)},onSuccess:async t=>{const d={domain:t.domain,type:t.type,nftDid:t.nftDid,chainHost:t.chainHost};u(d),await C(d)},onError:s})]})]}),p.invalidDNSDomain&&e.jsx(tt,{title:r("common.reminder"),description:r("setup.domain.invalidDNSReminder",{error:p.invalidDNSDomain.error}),color:"primary",confirm:r("setup.domain.continueAdd"),onConfirm:()=>j(p.invalidDNSDomain.domain,p.type),onCancel:H}),e.jsx(nt,{mt:8,disabled:!!n,blocklet:l,onStartNow:()=>o("complete"),children:p.domain?e.jsx(E,{variant:"contained",loading:!!n,disabled:h||!!n||!p.domain,onClick:()=>C(p),children:n||r("setup.next")}):e.jsx(E,{variant:"contained",disabled:!!n,onClick:()=>o(),children:r("setup.skip")})})]})}function Ut(o){return e.jsx(X,{children:e.jsx(S,{...o})})}S.propTypes={onNext:I.func,onPrevious:I.func};S.defaultProps={onNext:()=>{},onPrevious:()=>{}};const pt=M(it)`
2
2
  height: 100%;
3
3
  overflow-y: hidden;
4
4
  .form {
@@ -1 +1 @@
1
- import{r as C,u as T,e as j,j as e,C as k,S as W,B as S,x as I,n as m,w as R,y as v,z as L,s as U,o as b}from"./index-feKj5cCa.js";import{F}from"./fullpage-NJyn5uuM.js";import{w as N}from"./wrap-locale-A7IdT91x.js";function _({SessionContext:a,webWalletUrl:t,onSuccess:s}){var g,h;const{api:n,session:i}=C.useContext(a),{t:o,locale:w}=T(),u=j(),{searchParams:l}=new URL(window.location.href),x=l.get("redirect"),f=async(c,E)=>{s(c,E),await i.refresh(),m.success(o("exchangePassport.success")),setTimeout(()=>{if(x){const r=decodeURIComponent(x);r.startsWith(R.WELLKNOWN_SERVICE_PATH_PREFIX)?u(r,{replace:!0}):window.location=r}else window.location=window.env.pathPrefix||window.env.apiPrefix||"/"},3e3)},P=c=>{m.error(c.message)},p={},d=l.get("componentId");return d&&(p.componentId=d),i.loading?e.jsx(k,{children:e.jsx(W,{})}):e.jsx(F,{did:((g=window==null?void 0:window.blocklet)==null?void 0:g.appPid)||((h=window==null?void 0:window.env)==null?void 0:h.appPid),children:e.jsx(S,{sx:{width:"560px",maxWidth:"100%",height:"100%"},children:e.jsx(I,{className:"connect",action:"exchange-passport",checkFn:n.get,checkTimeout:10*60*1e3,webWalletUrl:t,onSuccess:f,onError:P,locale:w,messages:{title:o("exchangePassport.dialog.title"),scan:o("exchangePassport.dialog.scan"),confirm:o("exchangePassport.dialog.confirm"),success:o("exchangePassport.dialog.success")},extraParams:p,extraContent:null})})})}const B=N(_);function A(){const a=v(),t=(s,n)=>{s.sessionToken&&(U(n(s.sessionToken)),b(n(s.refreshToken)))};return e.jsx(B,{SessionContext:L,webWalletUrl:a,onSuccess:t})}export{A as default};
1
+ import{r as C,u as T,e as j,j as e,C as k,S as W,B as S,x as I,n as m,w as R,y as v,z as L,s as U,o as b}from"./index-uIKkPDx2.js";import{F}from"./fullpage-JCH-m3GS.js";import{w as N}from"./wrap-locale-eKtYETDv.js";function _({SessionContext:a,webWalletUrl:t,onSuccess:s}){var g,h;const{api:n,session:i}=C.useContext(a),{t:o,locale:w}=T(),u=j(),{searchParams:l}=new URL(window.location.href),x=l.get("redirect"),f=async(c,E)=>{s(c,E),await i.refresh(),m.success(o("exchangePassport.success")),setTimeout(()=>{if(x){const r=decodeURIComponent(x);r.startsWith(R.WELLKNOWN_SERVICE_PATH_PREFIX)?u(r,{replace:!0}):window.location=r}else window.location=window.env.pathPrefix||window.env.apiPrefix||"/"},3e3)},P=c=>{m.error(c.message)},p={},d=l.get("componentId");return d&&(p.componentId=d),i.loading?e.jsx(k,{children:e.jsx(W,{})}):e.jsx(F,{did:((g=window==null?void 0:window.blocklet)==null?void 0:g.appPid)||((h=window==null?void 0:window.env)==null?void 0:h.appPid),children:e.jsx(S,{sx:{width:"560px",maxWidth:"100%",height:"100%"},children:e.jsx(I,{className:"connect",action:"exchange-passport",checkFn:n.get,checkTimeout:10*60*1e3,webWalletUrl:t,onSuccess:f,onError:P,locale:w,messages:{title:o("exchangePassport.dialog.title"),scan:o("exchangePassport.dialog.scan"),confirm:o("exchangePassport.dialog.confirm"),success:o("exchangePassport.dialog.success")},extraParams:p,extraContent:null})})})}const B=N(_);function A(){const a=v(),t=(s,n)=>{s.sessionToken&&(U(n(s.sessionToken)),b(n(s.refreshToken)))};return e.jsx(B,{SessionContext:L,webWalletUrl:a,onSuccess:t})}export{A as default};
@@ -1,4 +1,4 @@
1
- import{P as e,j as o,bQ as i,c4 as a,F as l}from"./index-feKj5cCa.js";function n({title:r,desc:t,retryFunc:s}){return o.jsxs(p,{role:"alert",children:[o.jsx("h3",{children:r}),o.jsx("pre",{children:t}),s&&o.jsx(l,{variant:"contained",color:"error",size:"small",onClick:s,children:"Try again"})]})}n.propTypes={title:e.string,desc:e.string.isRequired,retryFunc:e.func};n.defaultProps={title:"Something went wrong...",retryFunc:null};function c({error:r}){return o.jsx(n,{desc:r.message})}c.propTypes={error:e.instanceOf(Error).isRequired};e.instanceOf(Error).isRequired,e.func.isRequired;const p=i("div")`
1
+ import{P as e,j as o,bQ as i,c4 as a,F as l}from"./index-uIKkPDx2.js";function n({title:r,desc:t,retryFunc:s}){return o.jsxs(p,{role:"alert",children:[o.jsx("h3",{children:r}),o.jsx("pre",{children:t}),s&&o.jsx(l,{variant:"contained",color:"error",size:"small",onClick:s,children:"Try again"})]})}n.propTypes={title:e.string,desc:e.string.isRequired,retryFunc:e.func};n.defaultProps={title:"Something went wrong...",retryFunc:null};function c({error:r}){return o.jsx(n,{desc:r.message})}c.propTypes={error:e.instanceOf(Error).isRequired};e.instanceOf(Error).isRequired,e.func.isRequired;const p=i("div")`
2
2
  padding: 16px;
3
3
  border: 2px solid ${r=>r.theme.palette.error.main};
4
4
  border-radius: 4px;
@@ -1,2 +1,2 @@
1
- import{aS as i}from"./index-feKj5cCa.js";const f=t=>{const{details:a,errors:e,response:r}=t;return Array.isArray(e)?e.map(s=>s.message).join(`
1
+ import{aS as i}from"./index-uIKkPDx2.js";const f=t=>{const{details:a,errors:e,response:r}=t;return Array.isArray(e)?e.map(s=>s.message).join(`
2
2
  `):Array.isArray(a)?`Validate failed: ${a.map(o=>{const n=o.message.replace(/["]/g,"'");return`${o.path.join(".")}: ${n}`}).join(";")}`:r?`Request failed: ${r.status} ${r.statusText}: ${JSON.stringify(r.data)}`:t.message};var m=f;const c=i(m);export{c as f};
@@ -1,4 +1,4 @@
1
- import{r as l,E as N,a8 as P,d as W,j as e,B as t,S as v,H as E,c as I,x as $,P as p,G as D}from"./index-feKj5cCa.js";import{d as L}from"./Launch-NG3M5y72.js";import{W as T}from"./did-address-5kO4ybvH.js";import{P as z}from"./page-header-LWFGDoxM.js";import{S as A}from"./layout-zmTL5DYX.js";import{S as F}from"./step-actions-u5wVgCmC.js";import{S as u}from"./button-49q1l_Jk.js";import"./content-layout-tLfWld_B.js";function m({onNext:n,onPrevious:x}){const{locale:f,t:s}=l.useContext(N),{blocklet:a,gas:c,tokenInfo:h,actions:j}=P(),{api:y}=W(),[g,o]=l.useState(!1),{need:d="",current:S="",owe:r=99999,deficiency:k,symbol:b="",endpoint:i}=c||{},{origin:C="/"}=i?new URL(i):{};l.useEffect(()=>{const B=setInterval(()=>{j.refreshFuel()},2e3);return()=>{clearInterval(B)}},[]);const w=()=>{o(!1)};return c?e.jsxs(H,{children:[e.jsx("div",{className:"header",children:e.jsx(z,{title:s("setup.fuel.title"),onClickBack:x})}),e.jsxs(t,{className:"qr-body",children:[e.jsxs(t,{mb:6,className:"tip",children:[s("setup.fuel.tipStart").replace("slot",""),e.jsx("span",{className:"amount",children:`${d} ${b}`}),s("setup.fuel.tipEnd")]}),e.jsx(t,{fontSize:16,fontWeight:"fontWeightBold",mb:.5,children:s("setup.fuel.addressTitle")}),e.jsxs(t,{display:"flex",alignItems:"center",children:[e.jsx(T,{className:"address",did:a.appDid}),e.jsx(E,{style:{lineHeight:1},target:"_blank",href:I(C,"/explorer/accounts/",a.appDid),underline:"hover",children:e.jsx(L,{className:"icon-launch"})})]}),e.jsx(t,{my:2,children:e.jsx(u,{color:"primary",onClick:()=>o(!0),disabled:!r,children:s("setup.fuel.fuelApp")})}),e.jsx($,{popup:!0,open:g,action:"fuel",checkFn:y.get,checkTimeout:10*60*1e3,onSuccess:w,onClose:()=>o(!1),locale:f,messages:{title:s("setup.connect.title"),scan:s("setup.connect.scan"),confirm:s("setup.connect.confirm"),success:s("setup.connect.success")},extraParams:{amount:k,...h,endpoint:i}}),e.jsxs(t,{display:"flex",color:"text.secondary",children:[e.jsxs(t,{display:"flex",children:[e.jsxs(t,{children:[s("setup.fuel.need"),":"]}),e.jsx(t,{ml:.5,color:"primary.main",fontWeight:"fontWeightBold",children:d})]}),e.jsxs(t,{display:"flex",ml:3,children:[e.jsxs(t,{children:[s("setup.fuel.current"),":"]}),e.jsx(t,{ml:.5,color:r>0?"error.main":"primary.main",fontWeight:"fontWeightBold",children:S})]})]})]}),e.jsx(F,{mt:8,children:e.jsx(u,{disabled:r>0,onClick:()=>n(),children:s("setup.next")})})]}):e.jsx(t,{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",children:e.jsx(v,{})})}m.propTypes={onNext:p.func,onPrevious:p.func};m.defaultProps={onNext:()=>{},onPrevious:()=>{}};const H=D(A)`
1
+ import{r as l,E as N,a8 as P,d as W,j as e,B as t,S as v,H as E,c as I,x as $,P as p,G as D}from"./index-uIKkPDx2.js";import{d as L}from"./Launch-gJCQmpyL.js";import{W as T}from"./did-address-fR8IBME6.js";import{P as z}from"./page-header-CBzxlYad.js";import{S as A}from"./layout-ZhSAbpLd.js";import{S as F}from"./step-actions-DJIhDuRf.js";import{S as u}from"./button-lOeSUgmq.js";import"./content-layout-P9P08qyU.js";function m({onNext:n,onPrevious:x}){const{locale:f,t:s}=l.useContext(N),{blocklet:a,gas:c,tokenInfo:h,actions:j}=P(),{api:y}=W(),[g,o]=l.useState(!1),{need:d="",current:S="",owe:r=99999,deficiency:k,symbol:b="",endpoint:i}=c||{},{origin:C="/"}=i?new URL(i):{};l.useEffect(()=>{const B=setInterval(()=>{j.refreshFuel()},2e3);return()=>{clearInterval(B)}},[]);const w=()=>{o(!1)};return c?e.jsxs(H,{children:[e.jsx("div",{className:"header",children:e.jsx(z,{title:s("setup.fuel.title"),onClickBack:x})}),e.jsxs(t,{className:"qr-body",children:[e.jsxs(t,{mb:6,className:"tip",children:[s("setup.fuel.tipStart").replace("slot",""),e.jsx("span",{className:"amount",children:`${d} ${b}`}),s("setup.fuel.tipEnd")]}),e.jsx(t,{fontSize:16,fontWeight:"fontWeightBold",mb:.5,children:s("setup.fuel.addressTitle")}),e.jsxs(t,{display:"flex",alignItems:"center",children:[e.jsx(T,{className:"address",did:a.appDid}),e.jsx(E,{style:{lineHeight:1},target:"_blank",href:I(C,"/explorer/accounts/",a.appDid),underline:"hover",children:e.jsx(L,{className:"icon-launch"})})]}),e.jsx(t,{my:2,children:e.jsx(u,{color:"primary",onClick:()=>o(!0),disabled:!r,children:s("setup.fuel.fuelApp")})}),e.jsx($,{popup:!0,open:g,action:"fuel",checkFn:y.get,checkTimeout:10*60*1e3,onSuccess:w,onClose:()=>o(!1),locale:f,messages:{title:s("setup.connect.title"),scan:s("setup.connect.scan"),confirm:s("setup.connect.confirm"),success:s("setup.connect.success")},extraParams:{amount:k,...h,endpoint:i}}),e.jsxs(t,{display:"flex",color:"text.secondary",children:[e.jsxs(t,{display:"flex",children:[e.jsxs(t,{children:[s("setup.fuel.need"),":"]}),e.jsx(t,{ml:.5,color:"primary.main",fontWeight:"fontWeightBold",children:d})]}),e.jsxs(t,{display:"flex",ml:3,children:[e.jsxs(t,{children:[s("setup.fuel.current"),":"]}),e.jsx(t,{ml:.5,color:r>0?"error.main":"primary.main",fontWeight:"fontWeightBold",children:S})]})]})]}),e.jsx(F,{mt:8,children:e.jsx(u,{disabled:r>0,onClick:()=>n(),children:s("setup.next")})})]}):e.jsx(t,{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",children:e.jsx(v,{})})}m.propTypes={onNext:p.func,onPrevious:p.func};m.defaultProps={onNext:()=>{},onPrevious:()=>{}};const H=D(A)`
2
2
  .qr-body {
3
3
  width: 580px;
4
4
  ${n=>n.theme.breakpoints.down("md")} {
@@ -1 +1 @@
1
- import{j as e,T as g,H as h,P as i,I as v,B as r,A as w,J as c}from"./index-feKj5cCa.js";function u({linkProps:o,...a}){return e.jsxs(g,{...a,children:["Powered by"," ",e.jsx(h,{href:"https://www.arcblock.io",target:"_blank",underline:"hover",...o,children:"ArcBlock"}),"'s"," ",e.jsx(h,{href:"https://www.blocklet.io",target:"_blank",underline:"hover",...o,children:"Blocklet Technology"}),", the decentralized web engine."]})}u.propTypes={linkProps:i.object};u.defaultProps={linkProps:{}};const k="/.well-known/service/static/assets/login-bg-m34fVHNm.png";function j({did:o,children:a,title:l,description:d,logo:n,logoSize:x,appUrl:t}){var b,p,y,m;if(!o)return a;let s;try{s=v(o)}catch{console.warn("Invalid did:",o)}const f=(globalThis==null?void 0:globalThis.blocklet)||(globalThis==null?void 0:globalThis.env)||{};return l===void 0&&(l=f.appName),d===void 0&&(d=f.appDescription),n===void 0&&(n=((b=globalThis==null?void 0:globalThis.blocklet)==null?void 0:b.appLogoRect)||((p=globalThis==null?void 0:globalThis.blocklet)==null?void 0:p.appLogo)||""),typeof n=="string"&&(n?n=e.jsx(r,{sx:{height:x,maxHeight:x,maxWidth:"50%",objectFit:"contain"},component:"img",src:n}):n=e.jsx(w,{size:x,did:o,src:n,variant:"rounded"})),typeof t=="string"&&(t=((y=globalThis==null?void 0:globalThis.blocklet)==null?void 0:y.appUrl)||"",!t&&(globalThis!=null&&globalThis.env)&&(t=(m=globalThis==null?void 0:globalThis.env)==null?void 0:m.baseUrl)),e.jsxs(r,{sx:{width:"100vw",height:"100vh",display:"flex"},children:[e.jsxs(r,{sx:{position:"relative",fontSize:0,flex:30,display:{xs:"none",lg:"flex"},minWidth:"400px",backgroundColor:c.surfaceBgSubtitle},children:[e.jsx(r,{sx:{position:"absolute",top:0,bottom:0,left:0,right:0,background:s?`linear-gradient(0deg, ${s} 0%, ${s} 100%), url(${k}), lightgray 50% / cover no-repeat`:`url(${k}), lightgray 50% / cover no-repeat`,backgroundPosition:"center",backgroundSize:"cover",backgroundBlendMode:s?"soft-light, normal":"unset",mask:"linear-gradient(172deg, rgba(0, 0, 0, 0.0) 24.62%, rgba(0, 0, 0, 0.80) 44.47%, #000 100%)"}}),e.jsxs(r,{sx:{display:"flex",flexDirection:"column",position:"absolute",top:0,left:0,width:"100%",p:3},children:[t?e.jsx(r,{children:e.jsx(h,{href:t,underline:"none",color:"inherit",children:n})}):n,l&&e.jsx(g,{variant:"h4",sx:{mt:3,mb:1,p:0,mx:0,fontWeight:"bold"},children:t?e.jsx(h,{href:t,underline:"none",color:"inherit",children:l}):l}),d&&e.jsx(g,{variant:"body2",sx:{m:0,p:0,color:c.textSubtitle,fontSize:"14px",lineHeight:"24px"},children:d})]}),e.jsx(u,{linkProps:{underline:"always",color:c.textSubtitle},sx:{zIndex:10,position:"absolute",bottom:40,left:20,right:20,textAlign:"center",fontSize:"14px",color:c.textSubtitle}})]}),e.jsx(r,{sx:{display:"flex",justifyContent:"center",alignItems:"center",flex:70,maxWidth:"90%",margin:"auto",height:"100%"},children:a})]})}j.propTypes={did:i.string.isRequired,children:i.any.isRequired,title:i.any,description:i.any,logo:i.any,logoSize:i.number,appUrl:i.string};j.defaultProps={title:void 0,description:void 0,logo:void 0,logoSize:40,appUrl:""};export{j as F};
1
+ import{j as e,T as g,H as h,P as i,I as v,B as r,A as w,J as c}from"./index-uIKkPDx2.js";function u({linkProps:o,...a}){return e.jsxs(g,{...a,children:["Powered by"," ",e.jsx(h,{href:"https://www.arcblock.io",target:"_blank",underline:"hover",...o,children:"ArcBlock"}),"'s"," ",e.jsx(h,{href:"https://www.blocklet.io",target:"_blank",underline:"hover",...o,children:"Blocklet Technology"}),", the decentralized web engine."]})}u.propTypes={linkProps:i.object};u.defaultProps={linkProps:{}};const k="/.well-known/service/static/assets/login-bg-m34fVHNm.png";function j({did:o,children:a,title:l,description:d,logo:n,logoSize:x,appUrl:t}){var b,p,y,m;if(!o)return a;let s;try{s=v(o)}catch{console.warn("Invalid did:",o)}const f=(globalThis==null?void 0:globalThis.blocklet)||(globalThis==null?void 0:globalThis.env)||{};return l===void 0&&(l=f.appName),d===void 0&&(d=f.appDescription),n===void 0&&(n=((b=globalThis==null?void 0:globalThis.blocklet)==null?void 0:b.appLogoRect)||((p=globalThis==null?void 0:globalThis.blocklet)==null?void 0:p.appLogo)||""),typeof n=="string"&&(n?n=e.jsx(r,{sx:{height:x,maxHeight:x,maxWidth:"50%",objectFit:"contain"},component:"img",src:n}):n=e.jsx(w,{size:x,did:o,src:n,variant:"rounded"})),typeof t=="string"&&(t=((y=globalThis==null?void 0:globalThis.blocklet)==null?void 0:y.appUrl)||"",!t&&(globalThis!=null&&globalThis.env)&&(t=(m=globalThis==null?void 0:globalThis.env)==null?void 0:m.baseUrl)),e.jsxs(r,{sx:{width:"100vw",height:"100vh",display:"flex"},children:[e.jsxs(r,{sx:{position:"relative",fontSize:0,flex:30,display:{xs:"none",lg:"flex"},minWidth:"400px",backgroundColor:c.surfaceBgSubtitle},children:[e.jsx(r,{sx:{position:"absolute",top:0,bottom:0,left:0,right:0,background:s?`linear-gradient(0deg, ${s} 0%, ${s} 100%), url(${k}), lightgray 50% / cover no-repeat`:`url(${k}), lightgray 50% / cover no-repeat`,backgroundPosition:"center",backgroundSize:"cover",backgroundBlendMode:s?"soft-light, normal":"unset",mask:"linear-gradient(172deg, rgba(0, 0, 0, 0.0) 24.62%, rgba(0, 0, 0, 0.80) 44.47%, #000 100%)"}}),e.jsxs(r,{sx:{display:"flex",flexDirection:"column",position:"absolute",top:0,left:0,width:"100%",p:3},children:[t?e.jsx(r,{children:e.jsx(h,{href:t,underline:"none",color:"inherit",children:n})}):n,l&&e.jsx(g,{variant:"h4",sx:{mt:3,mb:1,p:0,mx:0,fontWeight:"bold"},children:t?e.jsx(h,{href:t,underline:"none",color:"inherit",children:l}):l}),d&&e.jsx(g,{variant:"body2",sx:{m:0,p:0,color:c.textSubtitle,fontSize:"14px",lineHeight:"24px"},children:d})]}),e.jsx(u,{linkProps:{underline:"always",color:c.textSubtitle},sx:{zIndex:10,position:"absolute",bottom:40,left:20,right:20,textAlign:"center",fontSize:"14px",color:c.textSubtitle}})]}),e.jsx(r,{sx:{display:"flex",justifyContent:"center",alignItems:"center",flex:70,maxWidth:"90%",margin:"auto",height:"100%"},children:a})]})}j.propTypes={did:i.string.isRequired,children:i.any.isRequired,title:i.any,description:i.any,logo:i.any,logoSize:i.number,appUrl:i.string};j.defaultProps={title:void 0,description:void 0,logo:void 0,logoSize:40,appUrl:""};export{j as F};
@@ -1 +1 @@
1
- import{j as o,B as e,F as t,L as r,w as i}from"./index-feKj5cCa.js";import{S as n}from"./studio-HE-dnqpB.js";import"./index-5ZG2oxzS.js";import"./nav-menu-_j09OYoV.js";import"./MoreHoriz-KVrwkgt7.js";import"./ExpandMore-dUKN4QRy.js";import"./Toolbar-PzPFhxha.js";import"./Hidden-V9GBUhSY.js";import"./fallback-ZY6DEOHk.js";function L(){return o.jsx(n,{children:o.jsxs(e,{m:4,children:[o.jsx(t,{component:r,to:`${i.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,size:"large",color:"primary",variant:"outlined",children:"Preference Builder"}),o.jsx(t,{component:r,style:{marginLeft:16},to:`${i.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,size:"large",color:"primary",variant:"outlined",children:"Localization"})]})})}export{L as default};
1
+ import{j as o,B as e,F as t,L as r,w as i}from"./index-uIKkPDx2.js";import{S as n}from"./studio--sQ-x80O.js";import"./index-nXJuMgJq.js";import"./nav-menu-2LU_iiMs.js";import"./MoreHoriz-1QS3N81v.js";import"./ExpandMore-JmnmUnd8.js";import"./Toolbar-z-FYIGbv.js";import"./Hidden-SKwxA9k1.js";import"./fallback-wCdaTD2t.js";function L(){return o.jsx(n,{children:o.jsxs(e,{m:4,children:[o.jsx(t,{component:r,to:`${i.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/preferences`,size:"large",color:"primary",variant:"outlined",children:"Preference Builder"}),o.jsx(t,{component:r,style:{marginLeft:16},to:`${i.WELLKNOWN_SERVICE_PATH_PREFIX}/studio/localization`,size:"large",color:"primary",variant:"outlined",children:"Localization"})]})})}export{L as default};
@@ -1 +1 @@
1
- import{bU as x}from"./index-feKj5cCa.js";import{o as E}from"./index-5ZG2oxzS.js";const L=({url:o,allowFullScreen:r,position:a,display:i,height:u,width:c,overflow:f,styles:y,onLoad:p,onMouseOver:m,onMouseOut:b,scrolling:w,id:d,frameBorder:n,ariaHidden:O,sandbox:s,allow:j,className:g,title:h,ariaLabel:k,ariaLabelledby:I,name:P,target:v,loading:A,importance:F,referrerpolicy:M,allowpaymentrequest:S,src:$,key:q})=>{const t=E({src:$||o,target:v||null,style:{position:a||null,display:i||"initial",overflow:f||null},scrolling:w||null,allowpaymentrequest:S||null,importance:F||null,sandbox:s&&[...s].join(" ")||null,loading:A||null,styles:y||null,name:P||null,className:g||null,allowFullScreen:"allowFullScreen",referrerpolicy:M||null,title:h||null,allow:j||null,id:d||null,"aria-labelledby":I||null,"aria-hidden":O||null,"aria-label":k||null,width:c||null,height:u||null,onLoad:p||null,onMouseOver:m||null,onMouseOut:b||null,key:q||"iframe"});let l=Object.create(null);for(let e of Object.keys(t))t[e]!=null&&(l[e]=t[e]);for(let e of Object.keys(l.style))l.style[e]==null&&delete l.style[e];if(l.styles)for(let e of Object.keys(l.styles))l.styles.hasOwnProperty(e)&&(l.style[e]=l.styles[e]),Object.keys(l.styles).pop()==e&&delete l.styles;if(r)if("allow"in l){const e=l.allow.replace("fullscreen","");l.allow=`fullscreen ${e.trim()}`.trim()}else l.allow="fullscreen";return n>=0&&(l.style.hasOwnProperty("border")||(l.style.border=n)),x.createElement("iframe",Object.assign({},l))},U=L;export{U as I};
1
+ import{bU as x}from"./index-uIKkPDx2.js";import{o as E}from"./index-nXJuMgJq.js";const L=({url:o,allowFullScreen:r,position:a,display:i,height:u,width:c,overflow:f,styles:y,onLoad:p,onMouseOver:m,onMouseOut:b,scrolling:w,id:d,frameBorder:n,ariaHidden:O,sandbox:s,allow:j,className:g,title:h,ariaLabel:k,ariaLabelledby:I,name:P,target:v,loading:A,importance:F,referrerpolicy:M,allowpaymentrequest:S,src:$,key:q})=>{const t=E({src:$||o,target:v||null,style:{position:a||null,display:i||"initial",overflow:f||null},scrolling:w||null,allowpaymentrequest:S||null,importance:F||null,sandbox:s&&[...s].join(" ")||null,loading:A||null,styles:y||null,name:P||null,className:g||null,allowFullScreen:"allowFullScreen",referrerpolicy:M||null,title:h||null,allow:j||null,id:d||null,"aria-labelledby":I||null,"aria-hidden":O||null,"aria-label":k||null,width:c||null,height:u||null,onLoad:p||null,onMouseOver:m||null,onMouseOut:b||null,key:q||"iframe"});let l=Object.create(null);for(let e of Object.keys(t))t[e]!=null&&(l[e]=t[e]);for(let e of Object.keys(l.style))l.style[e]==null&&delete l.style[e];if(l.styles)for(let e of Object.keys(l.styles))l.styles.hasOwnProperty(e)&&(l.style[e]=l.styles[e]),Object.keys(l.styles).pop()==e&&delete l.styles;if(r)if("allow"in l){const e=l.allow.replace("fullscreen","");l.allow=`fullscreen ${e.trim()}`.trim()}else l.allow="fullscreen";return n>=0&&(l.style.hasOwnProperty("border")||(l.style.border=n)),x.createElement("iframe",Object.assign({},l))},U=L;export{U as I};
@@ -1,4 +1,4 @@
1
- import{r as x,j as t,fd as kt,f as Et,fe as At,a9 as M,u as Q,T as ee,b1 as Oe,ff as Re,bk as ie,am as V,F as U,S as re,P as C,G as z,bd as Nt,bA as we,x as Ft,d8 as _t,b$ as Lt,E as ce,B as N,bn as H,n as ne,fg as $t,aX as it,w as _,a as me,bB as ct,c as Xe,N as Ut,$ as Bt,fh as lt,dO as dt,b4 as zt,h as Mt,A as qt,dh as Wt}from"./index-feKj5cCa.js";import{c as Kt}from"./index-qpETE7Qh.js";import{d as ue}from"./Add-HY80r9Xl.js";import{d as Vt}from"./Loop-IzHJ-Vey.js";import{L as Ht,S as Xt,d as mt}from"./list-header--Vhbpfw2.js";import{D as ut,g as Qt}from"./index-gKtAtARS.js";import{u as K,d as Qe,W as pt}from"./dashboard-5KQ5Ur-Q.js";import{W as ft}from"./did-address-5kO4ybvH.js";import{P as W}from"./permission-sTjN-J07.js";import{A as te}from"./index-lDqI9_-C.js";import{C as ge}from"./click-to-copy-7zmc8KM7.js";import{F as gt}from"./FormControl-21-o3Ons.js";import{I as ht}from"./InputLabel-5mwp9YPR.js";import{S as xt}from"./Select-wrtQaiA7.js";import{T as vt}from"./TextField-F6GRkv0f.js";import{D as De}from"./DialogContentText-4V6Sm4oF.js";import{f as X}from"./format-error-fstt_Fgi.js";import{_ as Gt}from"./useAsync-Dmz5YLn0.js";import{T as Yt}from"./index-bZ3vw6Xd.js";import{I as Ge}from"./index-BptLF0Yu.js";import{C as he,L as Jt,a as Zt}from"./confirm-IbJOM7N5.js";import{P as er,d as tr,g as yt,U as rr}from"./did-utils-N2ScOA2Z.js";import{u as bt}from"./session-otHGC7d2.js";import{A as nr}from"./Avatar-jwVmwAdK.js";import{d as sr}from"./useSetState-a6nBCmZL.js";import{A as ar}from"./actions-RmsyI4AF.js";import{F as or}from"./FormControlLabel-1hNnMean.js";import{C as ir}from"./Checkbox-1a8RFsS4.js";import"./Search-b15PzLFw.js";import"./FilterList--9H9DyuC.js";import"./TableRow-iLylb6bH.js";import"./useFormControl-mI0MPYsh.js";import"./FormGroup-7d3FZFIj.js";import"./LastPage-pSqTT0C0.js";import"./Toolbar-PzPFhxha.js";import"./index-oY9Vc1OW.js";import"./redux-XOuz_cVf.js";import"./toPropertyKey-NzAT2yhV.js";import"./Grid-EWzEHkzI.js";import"./MoreVert-glDwWv1Q.js";import"./useLocalStorage-aRRflkTR.js";import"./PlayArrow-ZBpW76Bk.js";import"./Alert-cCkZfPX9.js";import"./ButtonGroup-VMcij_v9.js";import"./RadioGroup-auvSkCcq.js";import"./spaces-3IB4aUW-.js";import"./index-FKI4Ry1a.js";import"./api-JcbF2ZX8.js";import"./fallback-ZY6DEOHk.js";import"./wallet-hidden-topbar-fLm2f0hp.js";import"./ListItem-wpvL3uzC.js";import"./selector-r-EEnzvL.js";import"./index-5ZG2oxzS.js";import"./nav-menu-_j09OYoV.js";import"./MoreHoriz-KVrwkgt7.js";import"./ExpandMore-dUKN4QRy.js";import"./Hidden-V9GBUhSY.js";var Te={};Object.defineProperty(Te,"__esModule",{value:!0});var jt=Te.default=void 0;cr(x);var Z=t;function cr(e){return e&&e.__esModule?e:{default:e}}function Ye(e,n){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(h){return Object.getOwnPropertyDescriptor(e,h).enumerable})),s.push.apply(s,o)}return s}function Je(e){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?Ye(Object(s),!0).forEach(function(o){lr(e,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Ye(Object(s)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(s,o))})}return e}function lr(e,n,s){return n=dr(n),n in e?Object.defineProperty(e,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[n]=s,e}function dr(e){var n=mr(e,"string");return typeof n=="symbol"?n:String(n)}function mr(e,n){if(typeof e!="object"||e===null)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var o=s.call(e,n||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}var Ie=function(n){return(0,Z.jsxs)("svg",Je(Je({},n),{},{children:[(0,Z.jsx)("g",{clipPath:"url(#clip0)",children:(0,Z.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,Z.jsx)("defs",{children:(0,Z.jsx)("clipPath",{id:"clip0",children:(0,Z.jsx)("path",{transform:"translate(0 .5)",d:"M0 0h18v18H0z"})})})]}))};Ie.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};Ie.displayName="person";var ur=Ie;jt=Te.default=ur;var de={},pr=e=>encodeURIComponent(e).replace(/[!'()*]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`),St="%[a-f0-9]{2}",Ze=new RegExp("("+St+")|([^%]+?)","gi"),et=new RegExp("("+St+")+","gi");function Pe(e,n){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;n=n||1;var s=e.slice(0,n),o=e.slice(n);return Array.prototype.concat.call([],Pe(s),Pe(o))}function fr(e){try{return decodeURIComponent(e)}catch{for(var n=e.match(Ze)||[],s=1;s<n.length;s++)e=Pe(n,s).join(""),n=e.match(Ze)||[];return e}}function gr(e){for(var n={"%FE%FF":"��","%FF%FE":"��"},s=et.exec(e);s;){try{n[s[0]]=decodeURIComponent(s[0])}catch{var o=fr(s[0]);o!==s[0]&&(n[s[0]]=o)}s=et.exec(e)}n["%C2"]="�";for(var h=Object.keys(n),P=0;P<h.length;P++){var O=h[P];e=e.replace(new RegExp(O,"g"),n[O])}return e}var hr=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 gr(e)}},xr=(e,n)=>{if(!(typeof e=="string"&&typeof n=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n==="")return[e];const s=e.indexOf(n);return s===-1?[e]:[e.slice(0,s),e.slice(s+n.length)]},vr=function(e,n){for(var s={},o=Object.keys(e),h=Array.isArray(n),P=0;P<o.length;P++){var O=o[P],w=e[O];(h?n.indexOf(O)!==-1:n(O,w,e))&&(s[O]=w)}return s};(function(e){const n=pr,s=hr,o=xr,h=vr,P=r=>r==null;function O(r){switch(r.arrayFormat){case"index":return a=>(i,c)=>{const p=i.length;return c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?i:c===null?[...i,[g(a,r),"[",p,"]"].join("")]:[...i,[g(a,r),"[",g(p,r),"]=",g(c,r)].join("")]};case"bracket":return a=>(i,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?i:c===null?[...i,[g(a,r),"[]"].join("")]:[...i,[g(a,r),"[]=",g(c,r)].join("")];case"comma":case"separator":return a=>(i,c)=>c==null||c.length===0?i:i.length===0?[[g(a,r),"=",g(c,r)].join("")]:[[i,g(c,r)].join(r.arrayFormatSeparator)];default:return a=>(i,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?i:c===null?[...i,g(a,r)]:[...i,[g(a,r),"=",g(c,r)].join("")]}}function w(r){let a;switch(r.arrayFormat){case"index":return(i,c,p)=>{if(a=/\[(\d*)\]$/.exec(i),i=i.replace(/\[\d*\]$/,""),!a){p[i]=c;return}p[i]===void 0&&(p[i]={}),p[i][a[1]]=c};case"bracket":return(i,c,p)=>{if(a=/(\[\])$/.exec(i),i=i.replace(/\[\]$/,""),!a){p[i]=c;return}if(p[i]===void 0){p[i]=[c];return}p[i]=[].concat(p[i],c)};case"comma":case"separator":return(i,c,p)=>{const u=typeof c=="string"&&c.includes(r.arrayFormatSeparator),m=typeof c=="string"&&!u&&l(c,r).includes(r.arrayFormatSeparator);c=m?l(c,r):c;const f=u||m?c.split(r.arrayFormatSeparator).map(D=>l(D,r)):c===null?c:l(c,r);p[i]=f};default:return(i,c,p)=>{if(p[i]===void 0){p[i]=c;return}p[i]=[].concat(p[i],c)}}}function v(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function g(r,a){return a.encode?a.strict?n(r):encodeURIComponent(r):r}function l(r,a){return a.decode?s(r):r}function b(r){return Array.isArray(r)?r.sort():typeof r=="object"?b(Object.keys(r)).sort((a,i)=>Number(a)-Number(i)).map(a=>r[a]):r}function d(r){const a=r.indexOf("#");return a!==-1&&(r=r.slice(0,a)),r}function j(r){let a="";const i=r.indexOf("#");return i!==-1&&(a=r.slice(i)),a}function T(r){r=d(r);const a=r.indexOf("?");return a===-1?"":r.slice(a+1)}function I(r,a){return a.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):a.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function y(r,a){a=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},a),v(a.arrayFormatSeparator);const i=w(a),c=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return c;for(const p of r.split("&")){if(p==="")continue;let[u,m]=o(a.decode?p.replace(/\+/g," "):p,"=");m=m===void 0?null:["comma","separator"].includes(a.arrayFormat)?m:l(m,a),i(l(u,a),m,c)}for(const p of Object.keys(c)){const u=c[p];if(typeof u=="object"&&u!==null)for(const m of Object.keys(u))u[m]=I(u[m],a);else c[p]=I(u,a)}return a.sort===!1?c:(a.sort===!0?Object.keys(c).sort():Object.keys(c).sort(a.sort)).reduce((p,u)=>{const m=c[u];return m&&typeof m=="object"&&!Array.isArray(m)?p[u]=b(m):p[u]=m,p},Object.create(null))}e.extract=T,e.parse=y,e.stringify=(r,a)=>{if(!r)return"";a=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},a),v(a.arrayFormatSeparator);const i=m=>a.skipNull&&P(r[m])||a.skipEmptyString&&r[m]==="",c=O(a),p={};for(const m of Object.keys(r))i(m)||(p[m]=r[m]);const u=Object.keys(p);return a.sort!==!1&&u.sort(a.sort),u.map(m=>{const f=r[m];return f===void 0?"":f===null?g(m,a):Array.isArray(f)?f.reduce(c(m),[]).join("&"):g(m,a)+"="+g(f,a)}).filter(m=>m.length>0).join("&")},e.parseUrl=(r,a)=>{a=Object.assign({decode:!0},a);const[i,c]=o(r,"#");return Object.assign({url:i.split("?")[0]||"",query:y(T(r),a)},a&&a.parseFragmentIdentifier&&c?{fragmentIdentifier:l(c,a)}:{})},e.stringifyUrl=(r,a)=>{a=Object.assign({encode:!0,strict:!0},a);const i=d(r.url).split("?")[0]||"",c=e.extract(r.url),p=e.parse(c,{sort:!1}),u=Object.assign(p,r.query);let m=e.stringify(u,a);m&&(m=`?${m}`);let f=j(r.url);return r.fragmentIdentifier&&(f=`#${g(r.fragmentIdentifier,a)}`),`${i}${m}${f}`},e.pick=(r,a,i)=>{i=Object.assign({parseFragmentIdentifier:!0},i);const{url:c,query:p,fragmentIdentifier:u}=e.parseUrl(r,i);return e.stringifyUrl({url:c,query:h(p,a),fragmentIdentifier:u},i)},e.exclude=(r,a,i)=>{const c=Array.isArray(a)?p=>!a.includes(p):(p,u)=>!a(p,u);return e.pick(r,c,i)}})(de);const ae=At,yr={parseNumbers:!1,parseBooleans:!1},br={skipNull:!1,skipEmptyString:!1},jr=(e,n)=>{var s,o;const{navigateMode:h="push",parseOptions:P,stringifyOptions:O}=n||{},w=Object.assign(Object.assign({},yr),P),v=Object.assign(Object.assign({},br),O),g=ae.useLocation(),l=(s=ae.useHistory)===null||s===void 0?void 0:s.call(ae),b=(o=ae.useNavigate)===null||o===void 0?void 0:o.call(ae),d=kt(),j=x.useRef(typeof e=="function"?e():e||{}),T=x.useMemo(()=>de.parse(g.search,w),[g.search]),I=x.useMemo(()=>Object.assign(Object.assign({},j.current),T),[T]);return[I,Et(r=>{const a=typeof r=="function"?r(I):r;d(),l&&l[h]({hash:g.hash,search:de.stringify(Object.assign(Object.assign({},T),a),v)||"?"},g.state),b&&b({hash:g.hash,search:de.stringify(Object.assign(Object.assign({},T),a),v)||"?"},{replace:h==="replace",state:g.state})})]},Sr=jr;function ke({teamDid:e,roles:n,onCancel:s,onSuccess:o,onError:h,endpoint:P}){const{api:O}=M(),[w,v]=x.useState(!1),[g,l]=x.useState(""),{t:b,locale:d}=Q(),[j,T]=x.useState(0),[I,y]=x.useState(""),[r,a]=x.useState(""),[i,c]=x.useState(""),p=async()=>{if(!r){l(b("team.member.error.passportEmpty"));return}const f=i.trim();l(null),v(!0);try{const{inviteInfo:D}=await O.createMemberInvitation({input:{teamDid:e,role:r,remark:f}});y(D),T(1)}catch(D){const B=X(D);l(B),h(D)}finally{v(!1)}},m=[{body:t.jsxs(ee,{component:"div",children:[t.jsxs(gt,{style:{width:"100%"},variant:"outlined",children:[t.jsx(ht,{children:b("common.passport")}),t.jsx(xt,{"data-cy":"invite-member-select-role",value:r,onChange:f=>{l(null),a(f.target.value)},fullWidth:!0,label:b("common.passport"),disabled:w,onKeyPress:f=>{f.key==="Enter"&&(f.preventDefault(),p())},children:n.filter(f=>f.name!=="owner").map(f=>t.jsx(Oe,{value:f.name,"data-cy":`invite-member-select-option-${f.name}`,children:t.jsx("span",{children:f.title||f.name})},f.name))})]}),t.jsx("div",{style:{marginTop:20,marginBottom:10}}),t.jsx(vt,{label:b("common.remark"),autoComplete:"off",variant:"outlined",fullWidth:!0,style:{marginBottom:8},value:i,onChange:f=>{l(null),c(f.target.value)},disabled:w,"data-cy":"invite-member-input-remark"}),t.jsx("div",{style:{marginTop:20,marginBottom:10}})]}),cancel:b("common.cancel"),confirm:b("team.member.inviteDialog.createInviteLink"),onCancel:s,onConfirm:p},{body:()=>{const f=Re({inviteId:I.inviteId,endpoint:P});return t.jsxs("div",{children:[t.jsx(Cr,{children:b("team.member.inviteDialog.createSuccessTip",{expireDate:ie(I.expireDate,d)})}),t.jsx("div",{style:{marginTop:"40px"}}),t.jsx(ge,{children:f})]})},confirm:b("common.confirm"),onConfirm:o}][j];return t.jsxs(V,{title:b("common.invite"),fullWidth:!0,open:!0,showCloseButton:!1,actions:t.jsxs(t.Fragment,{children:[m.cancel&&t.jsx(U,{onClick:m.onCancel,color:"inherit",children:m.cancel}),t.jsxs(U,{onClick:m.onConfirm,color:"primary",disabled:w||!r,variant:"contained",autoFocus:!0,children:[w&&t.jsx(re,{size:16}),m.confirm]})]}),children:[t.jsx(De,{component:"div",children:typeof m.body=="function"?m.body():m.body}),!!g&&t.jsx(te,{type:"error",variant:"icon",children:g})]})}ke.propTypes={teamDid:C.string.isRequired,onCancel:C.func.isRequired,onSuccess:C.func.isRequired,onError:C.func,roles:C.array,endpoint:C.string};ke.defaultProps={onError:()=>{},roles:[],endpoint:""};const Cr=z.div`
1
+ import{r as x,j as t,ff as kt,f as Et,fg as At,a9 as M,u as Q,T as ee,b1 as Oe,fh as Re,bk as ie,am as V,F as U,S as re,P as C,G as z,bd as Nt,bA as we,x as Ft,d8 as _t,b$ as Lt,E as ce,B as N,bn as H,n as ne,fi as $t,aX as it,w as _,a as me,bB as ct,c as Xe,N as Ut,$ as Bt,fj as lt,dO as dt,b4 as zt,h as Mt,A as qt,dh as Wt}from"./index-uIKkPDx2.js";import{c as Kt}from"./index-NURviigq.js";import{d as ue}from"./Add-fjbSIcnc.js";import{d as Vt}from"./Loop-PXldOGkJ.js";import{L as Ht,S as Xt,d as mt}from"./list-header-OJgTzNF1.js";import{D as ut,g as Qt}from"./index-hnUD7mNC.js";import{u as K,d as Qe,W as pt}from"./dashboard-wLNTNF45.js";import{W as ft}from"./did-address-fR8IBME6.js";import{P as W}from"./permission-K-J3su8S.js";import{A as te}from"./index-_typwRVC.js";import{C as ge}from"./click-to-copy-H2O9ZAs8.js";import{F as gt}from"./FormControl-U_6qW76h.js";import{I as ht}from"./InputLabel-qtx_TKpe.js";import{S as xt}from"./Select-1vnu6Wod.js";import{T as vt}from"./TextField-HfFRez76.js";import{D as De}from"./DialogContentText-2StByoPg.js";import{f as X}from"./format-error-iCYgDtF5.js";import{_ as Gt}from"./useAsync-eueWQMQv.js";import{T as Yt}from"./index-FT9kP6qN.js";import{I as Ge}from"./index-GsSFMKbP.js";import{C as he,L as Jt,a as Zt}from"./confirm-Q5y49s7X.js";import{P as er,d as tr,g as yt,U as rr}from"./did-utils-LIvwQDYN.js";import{u as bt}from"./session-4pK31v9z.js";import{A as nr}from"./Avatar-4W2iSGC-.js";import{d as sr}from"./useSetState-FhUMbwgE.js";import{A as ar}from"./actions-c_BF9d9e.js";import{F as or}from"./FormControlLabel-Yzi0VkLB.js";import{C as ir}from"./Checkbox-iS0aPWS5.js";import"./Search-pq50dDMP.js";import"./FilterList-rU96K2al.js";import"./TableRow-7b-DLFKT.js";import"./useFormControl-egCRc-oY.js";import"./FormGroup-6byJTUh5.js";import"./LastPage-pHa4HGK_.js";import"./Toolbar-z-FYIGbv.js";import"./index-3kUoZ2Ef.js";import"./redux-XOuz_cVf.js";import"./toPropertyKey-NzAT2yhV.js";import"./Grid-G2b-U3nu.js";import"./MoreVert-b_wUncc4.js";import"./useLocalStorage--e-ZnzAS.js";import"./PlayArrow-DsCR1WAD.js";import"./Alert-nav821gk.js";import"./ButtonGroup-qjjm6C6u.js";import"./RadioGroup-MeoNWf5B.js";import"./spaces-ciJpOZGt.js";import"./index-KswRO1Cx.js";import"./api-Rgr2QdHb.js";import"./fallback-wCdaTD2t.js";import"./wallet-hidden-topbar-4xE3Zmur.js";import"./ListItem-kYIyq9wN.js";import"./selector-ykYLL3HG.js";import"./index-nXJuMgJq.js";import"./nav-menu-2LU_iiMs.js";import"./MoreHoriz-1QS3N81v.js";import"./ExpandMore-JmnmUnd8.js";import"./Hidden-SKwxA9k1.js";var Te={};Object.defineProperty(Te,"__esModule",{value:!0});var jt=Te.default=void 0;cr(x);var Z=t;function cr(e){return e&&e.__esModule?e:{default:e}}function Ye(e,n){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(h){return Object.getOwnPropertyDescriptor(e,h).enumerable})),s.push.apply(s,o)}return s}function Je(e){for(var n=1;n<arguments.length;n++){var s=arguments[n]!=null?arguments[n]:{};n%2?Ye(Object(s),!0).forEach(function(o){lr(e,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):Ye(Object(s)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(s,o))})}return e}function lr(e,n,s){return n=dr(n),n in e?Object.defineProperty(e,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[n]=s,e}function dr(e){var n=mr(e,"string");return typeof n=="symbol"?n:String(n)}function mr(e,n){if(typeof e!="object"||e===null)return e;var s=e[Symbol.toPrimitive];if(s!==void 0){var o=s.call(e,n||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}var Ie=function(n){return(0,Z.jsxs)("svg",Je(Je({},n),{},{children:[(0,Z.jsx)("g",{clipPath:"url(#clip0)",children:(0,Z.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,Z.jsx)("defs",{children:(0,Z.jsx)("clipPath",{id:"clip0",children:(0,Z.jsx)("path",{transform:"translate(0 .5)",d:"M0 0h18v18H0z"})})})]}))};Ie.defaultProps={width:"18",height:"19",viewBox:"0 0 18 19",xmlns:"http://www.w3.org/2000/svg"};Ie.displayName="person";var ur=Ie;jt=Te.default=ur;var de={},pr=e=>encodeURIComponent(e).replace(/[!'()*]/g,n=>`%${n.charCodeAt(0).toString(16).toUpperCase()}`),St="%[a-f0-9]{2}",Ze=new RegExp("("+St+")|([^%]+?)","gi"),et=new RegExp("("+St+")+","gi");function Pe(e,n){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;n=n||1;var s=e.slice(0,n),o=e.slice(n);return Array.prototype.concat.call([],Pe(s),Pe(o))}function fr(e){try{return decodeURIComponent(e)}catch{for(var n=e.match(Ze)||[],s=1;s<n.length;s++)e=Pe(n,s).join(""),n=e.match(Ze)||[];return e}}function gr(e){for(var n={"%FE%FF":"��","%FF%FE":"��"},s=et.exec(e);s;){try{n[s[0]]=decodeURIComponent(s[0])}catch{var o=fr(s[0]);o!==s[0]&&(n[s[0]]=o)}s=et.exec(e)}n["%C2"]="�";for(var h=Object.keys(n),P=0;P<h.length;P++){var O=h[P];e=e.replace(new RegExp(O,"g"),n[O])}return e}var hr=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 gr(e)}},xr=(e,n)=>{if(!(typeof e=="string"&&typeof n=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(n==="")return[e];const s=e.indexOf(n);return s===-1?[e]:[e.slice(0,s),e.slice(s+n.length)]},vr=function(e,n){for(var s={},o=Object.keys(e),h=Array.isArray(n),P=0;P<o.length;P++){var O=o[P],w=e[O];(h?n.indexOf(O)!==-1:n(O,w,e))&&(s[O]=w)}return s};(function(e){const n=pr,s=hr,o=xr,h=vr,P=r=>r==null;function O(r){switch(r.arrayFormat){case"index":return a=>(i,c)=>{const p=i.length;return c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?i:c===null?[...i,[g(a,r),"[",p,"]"].join("")]:[...i,[g(a,r),"[",g(p,r),"]=",g(c,r)].join("")]};case"bracket":return a=>(i,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?i:c===null?[...i,[g(a,r),"[]"].join("")]:[...i,[g(a,r),"[]=",g(c,r)].join("")];case"comma":case"separator":return a=>(i,c)=>c==null||c.length===0?i:i.length===0?[[g(a,r),"=",g(c,r)].join("")]:[[i,g(c,r)].join(r.arrayFormatSeparator)];default:return a=>(i,c)=>c===void 0||r.skipNull&&c===null||r.skipEmptyString&&c===""?i:c===null?[...i,g(a,r)]:[...i,[g(a,r),"=",g(c,r)].join("")]}}function w(r){let a;switch(r.arrayFormat){case"index":return(i,c,p)=>{if(a=/\[(\d*)\]$/.exec(i),i=i.replace(/\[\d*\]$/,""),!a){p[i]=c;return}p[i]===void 0&&(p[i]={}),p[i][a[1]]=c};case"bracket":return(i,c,p)=>{if(a=/(\[\])$/.exec(i),i=i.replace(/\[\]$/,""),!a){p[i]=c;return}if(p[i]===void 0){p[i]=[c];return}p[i]=[].concat(p[i],c)};case"comma":case"separator":return(i,c,p)=>{const u=typeof c=="string"&&c.includes(r.arrayFormatSeparator),m=typeof c=="string"&&!u&&l(c,r).includes(r.arrayFormatSeparator);c=m?l(c,r):c;const f=u||m?c.split(r.arrayFormatSeparator).map(D=>l(D,r)):c===null?c:l(c,r);p[i]=f};default:return(i,c,p)=>{if(p[i]===void 0){p[i]=c;return}p[i]=[].concat(p[i],c)}}}function v(r){if(typeof r!="string"||r.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function g(r,a){return a.encode?a.strict?n(r):encodeURIComponent(r):r}function l(r,a){return a.decode?s(r):r}function b(r){return Array.isArray(r)?r.sort():typeof r=="object"?b(Object.keys(r)).sort((a,i)=>Number(a)-Number(i)).map(a=>r[a]):r}function d(r){const a=r.indexOf("#");return a!==-1&&(r=r.slice(0,a)),r}function j(r){let a="";const i=r.indexOf("#");return i!==-1&&(a=r.slice(i)),a}function T(r){r=d(r);const a=r.indexOf("?");return a===-1?"":r.slice(a+1)}function I(r,a){return a.parseNumbers&&!Number.isNaN(Number(r))&&typeof r=="string"&&r.trim()!==""?r=Number(r):a.parseBooleans&&r!==null&&(r.toLowerCase()==="true"||r.toLowerCase()==="false")&&(r=r.toLowerCase()==="true"),r}function y(r,a){a=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},a),v(a.arrayFormatSeparator);const i=w(a),c=Object.create(null);if(typeof r!="string"||(r=r.trim().replace(/^[?#&]/,""),!r))return c;for(const p of r.split("&")){if(p==="")continue;let[u,m]=o(a.decode?p.replace(/\+/g," "):p,"=");m=m===void 0?null:["comma","separator"].includes(a.arrayFormat)?m:l(m,a),i(l(u,a),m,c)}for(const p of Object.keys(c)){const u=c[p];if(typeof u=="object"&&u!==null)for(const m of Object.keys(u))u[m]=I(u[m],a);else c[p]=I(u,a)}return a.sort===!1?c:(a.sort===!0?Object.keys(c).sort():Object.keys(c).sort(a.sort)).reduce((p,u)=>{const m=c[u];return m&&typeof m=="object"&&!Array.isArray(m)?p[u]=b(m):p[u]=m,p},Object.create(null))}e.extract=T,e.parse=y,e.stringify=(r,a)=>{if(!r)return"";a=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},a),v(a.arrayFormatSeparator);const i=m=>a.skipNull&&P(r[m])||a.skipEmptyString&&r[m]==="",c=O(a),p={};for(const m of Object.keys(r))i(m)||(p[m]=r[m]);const u=Object.keys(p);return a.sort!==!1&&u.sort(a.sort),u.map(m=>{const f=r[m];return f===void 0?"":f===null?g(m,a):Array.isArray(f)?f.reduce(c(m),[]).join("&"):g(m,a)+"="+g(f,a)}).filter(m=>m.length>0).join("&")},e.parseUrl=(r,a)=>{a=Object.assign({decode:!0},a);const[i,c]=o(r,"#");return Object.assign({url:i.split("?")[0]||"",query:y(T(r),a)},a&&a.parseFragmentIdentifier&&c?{fragmentIdentifier:l(c,a)}:{})},e.stringifyUrl=(r,a)=>{a=Object.assign({encode:!0,strict:!0},a);const i=d(r.url).split("?")[0]||"",c=e.extract(r.url),p=e.parse(c,{sort:!1}),u=Object.assign(p,r.query);let m=e.stringify(u,a);m&&(m=`?${m}`);let f=j(r.url);return r.fragmentIdentifier&&(f=`#${g(r.fragmentIdentifier,a)}`),`${i}${m}${f}`},e.pick=(r,a,i)=>{i=Object.assign({parseFragmentIdentifier:!0},i);const{url:c,query:p,fragmentIdentifier:u}=e.parseUrl(r,i);return e.stringifyUrl({url:c,query:h(p,a),fragmentIdentifier:u},i)},e.exclude=(r,a,i)=>{const c=Array.isArray(a)?p=>!a.includes(p):(p,u)=>!a(p,u);return e.pick(r,c,i)}})(de);const ae=At,yr={parseNumbers:!1,parseBooleans:!1},br={skipNull:!1,skipEmptyString:!1},jr=(e,n)=>{var s,o;const{navigateMode:h="push",parseOptions:P,stringifyOptions:O}=n||{},w=Object.assign(Object.assign({},yr),P),v=Object.assign(Object.assign({},br),O),g=ae.useLocation(),l=(s=ae.useHistory)===null||s===void 0?void 0:s.call(ae),b=(o=ae.useNavigate)===null||o===void 0?void 0:o.call(ae),d=kt(),j=x.useRef(typeof e=="function"?e():e||{}),T=x.useMemo(()=>de.parse(g.search,w),[g.search]),I=x.useMemo(()=>Object.assign(Object.assign({},j.current),T),[T]);return[I,Et(r=>{const a=typeof r=="function"?r(I):r;d(),l&&l[h]({hash:g.hash,search:de.stringify(Object.assign(Object.assign({},T),a),v)||"?"},g.state),b&&b({hash:g.hash,search:de.stringify(Object.assign(Object.assign({},T),a),v)||"?"},{replace:h==="replace",state:g.state})})]},Sr=jr;function ke({teamDid:e,roles:n,onCancel:s,onSuccess:o,onError:h,endpoint:P}){const{api:O}=M(),[w,v]=x.useState(!1),[g,l]=x.useState(""),{t:b,locale:d}=Q(),[j,T]=x.useState(0),[I,y]=x.useState(""),[r,a]=x.useState(""),[i,c]=x.useState(""),p=async()=>{if(!r){l(b("team.member.error.passportEmpty"));return}const f=i.trim();l(null),v(!0);try{const{inviteInfo:D}=await O.createMemberInvitation({input:{teamDid:e,role:r,remark:f}});y(D),T(1)}catch(D){const B=X(D);l(B),h(D)}finally{v(!1)}},m=[{body:t.jsxs(ee,{component:"div",children:[t.jsxs(gt,{style:{width:"100%"},variant:"outlined",children:[t.jsx(ht,{children:b("common.passport")}),t.jsx(xt,{"data-cy":"invite-member-select-role",value:r,onChange:f=>{l(null),a(f.target.value)},fullWidth:!0,label:b("common.passport"),disabled:w,onKeyPress:f=>{f.key==="Enter"&&(f.preventDefault(),p())},children:n.filter(f=>f.name!=="owner").map(f=>t.jsx(Oe,{value:f.name,"data-cy":`invite-member-select-option-${f.name}`,children:t.jsx("span",{children:f.title||f.name})},f.name))})]}),t.jsx("div",{style:{marginTop:20,marginBottom:10}}),t.jsx(vt,{label:b("common.remark"),autoComplete:"off",variant:"outlined",fullWidth:!0,style:{marginBottom:8},value:i,onChange:f=>{l(null),c(f.target.value)},disabled:w,"data-cy":"invite-member-input-remark"}),t.jsx("div",{style:{marginTop:20,marginBottom:10}})]}),cancel:b("common.cancel"),confirm:b("team.member.inviteDialog.createInviteLink"),onCancel:s,onConfirm:p},{body:()=>{const f=Re({inviteId:I.inviteId,endpoint:P});return t.jsxs("div",{children:[t.jsx(Cr,{children:b("team.member.inviteDialog.createSuccessTip",{expireDate:ie(I.expireDate,d)})}),t.jsx("div",{style:{marginTop:"40px"}}),t.jsx(ge,{children:f})]})},confirm:b("common.confirm"),onConfirm:o}][j];return t.jsxs(V,{title:b("common.invite"),fullWidth:!0,open:!0,showCloseButton:!1,actions:t.jsxs(t.Fragment,{children:[m.cancel&&t.jsx(U,{onClick:m.onCancel,color:"inherit",children:m.cancel}),t.jsxs(U,{onClick:m.onConfirm,color:"primary",disabled:w||!r,variant:"contained",autoFocus:!0,children:[w&&t.jsx(re,{size:16}),m.confirm]})]}),children:[t.jsx(De,{component:"div",children:typeof m.body=="function"?m.body():m.body}),!!g&&t.jsx(te,{type:"error",variant:"icon",children:g})]})}ke.propTypes={teamDid:C.string.isRequired,onCancel:C.func.isRequired,onSuccess:C.func.isRequired,onError:C.func,roles:C.array,endpoint:C.string};ke.defaultProps={onError:()=>{},roles:[],endpoint:""};const Cr=z.div`
2
2
  font-size: 16px;
3
3
  font-weight: bold;
4
4
  `;function Ee({teamDid:e,onCancel:n,onSuccess:s,onError:o,endpoint:h}){const{api:P,info:O}=M(),{api:w}=x.useContext(Nt),[v,g]=x.useState(!1),{t:l,locale:b}=Q(),[d,j]=x.useState(""),[T,I]=x.useState(!1),[y,r]=x.useState(0),[a,i]=x.useState(""),[c,p]=x.useState(""),u=!!we(O,"ownerNft.did"),m=Gt(async()=>{if(u){const{state:A}=await P.getDelegationState();return A}return{delegated:!0}});if(m.loading)return t.jsx(V,{title:l("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,onClose:n,children:t.jsx("div",{style:{display:"flex",justifyContent:"center"},children:t.jsx(re,{})})});if(m.error)return t.jsx(V,{title:l("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,onClose:n,children:t.jsx(te,{type:"error",variant:"icon",children:X(m.error)})});const f=async()=>{j(null),g(!0);try{const{inviteInfo:A}=await P.createTransferInvitation({input:{teamDid:e,role:"owner",remark:c.trim()}});i(A),r(G.length-1)}catch(A){const Y=X(A);j(Y),o(A)}finally{g(!1)}},D=()=>{I(!0),r(1)},B=()=>{I(!1),r(0)},G=[{body:t.jsxs(ee,{component:"div",children:[t.jsxs(te,{type:"warning",children:[t.jsx(ee,{children:l("team.transferNode.inviteDialog.tips.progress")}),t.jsx(ee,{children:l("team.transferNode.inviteDialog.tips.newOwnerPermissions")})]}),t.jsx(te,{type:"warning",children:t.jsx(ee,{children:l("team.transferNode.inviteDialog.tips.revoke")})}),t.jsx("div",{style:{marginTop:20,marginBottom:10}}),t.jsx(vt,{label:l("common.remark"),autoComplete:"off",variant:"outlined",fullWidth:!0,style:{marginBottom:8},value:c,onChange:A=>{j(null),p(A.target.value)},disabled:v,"data-cy":"transfer-node-input-remark"}),t.jsx("div",{style:{marginTop:20,marginBottom:10}})]}),cancel:l("common.cancel"),confirm:l("team.transferNode.inviteDialog.createInviteLink"),onCancel:n,onConfirm:u&&!we(m,"value.delegated")?D:f},{body:()=>t.jsx(Ft,{action:"delegate-transfer-nft",open:T,locale:b,checkFn:w.get,onClose:B,onSuccess:f,checkTimeout:5*60*1e3,webWalletUrl:_t(O),extraParams:{targetDID:O.did},messages:{title:l("team.transferNode.delegateDialog.title"),scan:l("team.transferNode.delegateDialog.scan"),confirm:l("team.transferNode.delegateDialog.confirm"),success:l("team.transferNode.delegateDialog.success")},popup:!0})},{body:()=>{const A=Re({inviteId:a.inviteId,endpoint:h});return t.jsxs("div",{children:[t.jsx(wr,{children:l("team.transferNode.inviteDialog.createSuccessTip",{expireDate:ie(a.expireDate,b)})}),t.jsx("div",{style:{marginTop:"40px"}}),t.jsx(ge,{children:A})]})},confirm:l("common.confirm"),onConfirm:s}],L=G[y];return t.jsxs(V,{title:l("team.transferNode.inviteDialog.title"),fullWidth:!0,open:!0,showCloseButton:!1,actions:t.jsxs(t.Fragment,{children:[L.cancel&&t.jsx(U,{onClick:L.onCancel,color:"inherit",children:L.cancel}),t.jsxs(U,{onClick:L.onConfirm,color:"primary",disabled:v,variant:"contained",autoFocus:!0,children:[v&&t.jsx(re,{size:16}),L.confirm]})]}),children:[t.jsx(De,{component:"div",children:typeof L.body=="function"?L.body():L.body}),!!d&&t.jsx(te,{type:"error",variant:"icon",children:d})]})}Ee.propTypes={teamDid:C.string.isRequired,onCancel:C.func.isRequired,onSuccess:C.func.isRequired,onError:C.func,endpoint:C.string};Ee.defaultProps={onError:()=>{},endpoint:""};const wr=z.div`
@@ -1,4 +1,4 @@
1
- import{ay as _e,az as Ae,r as b,aA as Oe,bD as rt,aB as ie,aE as M,bF as oe,aD as xe,fi as ot,aC as Me,j as e,aG as We,aH as Ee,aS as Ge,a9 as L,u as H,T as K,am as q,F as k,S as W,P as S,G as U,bn as Y,e9 as J,fj as He,aw as O,n as z,aX as nt,dy as at,B as T,dz as it,Y as lt,$ as ct,K as dt,M as ut,w as qe,b1 as Ue,bB as ve,b4 as se,fk as pt,fl as ft,a as he,E as mt,U as ht}from"./index-feKj5cCa.js";import{d as je}from"./Add-HY80r9Xl.js";import{S as ne}from"./index-QDdzoXvu.js";import{d as le}from"./EditIcon-np_ORzEB.js";import{d as gt}from"./LockIcon-agQ4kFqe.js";import{L as Ce,S as be,d as xt}from"./list-header--Vhbpfw2.js";import{u as ee}from"./dashboard-5KQ5Ur-Q.js";import{w as E,P as De}from"./permission-sTjN-J07.js";import{C as Te}from"./confirm-IbJOM7N5.js";import{A as yt}from"./index-lDqI9_-C.js";import{T as _,F as vt}from"./TextField-F6GRkv0f.js";import{D as jt}from"./DialogContentText-4V6Sm4oF.js";import{f as te}from"./format-error-fstt_Fgi.js";import{F as Ct}from"./FormControlLabel-1hNnMean.js";import{C as bt}from"./Checkbox-1a8RFsS4.js";import{C as Tt}from"./Google-VkSesQr-.js";import{W as Ve}from"./did-address-5kO4ybvH.js";import{T as Bt}from"./MoreVert-glDwWv1Q.js";import{_ as St}from"./useSetState-a6nBCmZL.js";import{M as wt}from"./InputAdornment--qKRyOTU.js";import{I as Pt}from"./InputLabel-5mwp9YPR.js";import{g as Ft}from"./ButtonGroup-VMcij_v9.js";import{O as It}from"./Select-wrtQaiA7.js";import"./ExpandMore-dUKN4QRy.js";import"./Search-b15PzLFw.js";import"./index-bZ3vw6Xd.js";import"./useLocalStorage-aRRflkTR.js";import"./PlayArrow-ZBpW76Bk.js";import"./Alert-cCkZfPX9.js";import"./RadioGroup-auvSkCcq.js";import"./FormGroup-7d3FZFIj.js";import"./useFormControl-mI0MPYsh.js";import"./Avatar-jwVmwAdK.js";import"./session-otHGC7d2.js";import"./spaces-3IB4aUW-.js";import"./index-FKI4Ry1a.js";import"./api-JcbF2ZX8.js";import"./fallback-ZY6DEOHk.js";import"./wallet-hidden-topbar-fLm2f0hp.js";import"./ListItem-wpvL3uzC.js";import"./selector-r-EEnzvL.js";import"./index-5ZG2oxzS.js";import"./nav-menu-_j09OYoV.js";import"./MoreHoriz-KVrwkgt7.js";import"./Toolbar-PzPFhxha.js";import"./Hidden-V9GBUhSY.js";import"./useAsync-Dmz5YLn0.js";import"./FormControl-21-o3Ons.js";function $t(t){return Ae("MuiToggleButton",t)}const Dt=_e("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),V=Dt,Rt=b.createContext({}),Ke=Rt,kt=b.createContext(void 0),Ye=kt;function zt(t,r){return r===void 0||t===void 0?!1:Array.isArray(r)?r.indexOf(t)>=0:t===r}const Nt=["value"],Lt=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],_t=t=>{const{classes:r,fullWidth:l,selected:d,disabled:f,size:u,color:h}=t,s={root:["root",d&&"selected",f&&"disabled",l&&"fullWidth",`size${ie(u)}`,h]};return Ee(s,$t,r)},At=Oe(rt,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:l}=t;return[r.root,r[`size${ie(l.size)}`]]}})(({theme:t,ownerState:r})=>{let l=r.color==="standard"?t.palette.text.primary:t.palette[r.color].main,d;return t.vars&&(l=r.color==="standard"?t.vars.palette.text.primary:t.vars.palette[r.color].main,d=r.color==="standard"?t.vars.palette.text.primaryChannel:t.vars.palette[r.color].mainChannel),M({},t.typography.button,{borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active},r.fullWidth&&{width:"100%"},{[`&.${V.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:oe(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${V.selected}`]:{color:l,backgroundColor:t.vars?`rgba(${d} / ${t.vars.palette.action.selectedOpacity})`:oe(l,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${d} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:oe(l,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${d} / ${t.vars.palette.action.selectedOpacity})`:oe(l,t.palette.action.selectedOpacity)}}}},r.size==="small"&&{padding:7,fontSize:t.typography.pxToRem(13)},r.size==="large"&&{padding:15,fontSize:t.typography.pxToRem(15)})}),Ot=b.forwardRef(function(r,l){const d=b.useContext(Ke),{value:f}=d,u=xe(d,Nt),h=b.useContext(Ye),s=ot(M({},u,{selected:zt(r.value,f)}),r),p=Me({props:s,name:"MuiToggleButton"}),{children:o,className:a,color:i="standard",disabled:n=!1,disableFocusRipple:c=!1,fullWidth:v=!1,onChange:x,onClick:m,selected:j,size:g="medium",value:C}=p,y=xe(p,Lt),B=M({},p,{color:i,disabled:n,disableFocusRipple:c,fullWidth:v,size:g}),P=_t(B),$=D=>{m&&(m(D,C),D.defaultPrevented)||x&&x(D,C)},F=h||"";return e.jsx(At,M({className:We(u.className,P.root,a,F),disabled:n,focusRipple:!c,ref:l,onClick:$,onChange:x,value:C,ownerState:B,"aria-pressed":j},y,{children:o}))}),ge=Ot;function Mt(t){return Ae("MuiToggleButtonGroup",t)}const Wt=_e("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),w=Wt,Et=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],Gt=t=>{const{classes:r,orientation:l,fullWidth:d,disabled:f}=t,u={root:["root",l==="vertical"&&"vertical",d&&"fullWidth"],grouped:["grouped",`grouped${ie(l)}`,f&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Ee(u,Mt,r)},Ht=Oe("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:l}=t;return[{[`& .${w.grouped}`]:r.grouped},{[`& .${w.grouped}`]:r[`grouped${ie(l.orientation)}`]},{[`& .${w.firstButton}`]:r.firstButton},{[`& .${w.lastButton}`]:r.lastButton},{[`& .${w.middleButton}`]:r.middleButton},r.root,l.orientation==="vertical"&&r.vertical,l.fullWidth&&r.fullWidth]}})(({ownerState:t,theme:r})=>M({display:"inline-flex",borderRadius:(r.vars||r).shape.borderRadius},t.orientation==="vertical"&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{[`& .${w.grouped}`]:M({},t.orientation==="horizontal"?{[`&.${w.selected} + .${w.grouped}.${w.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${w.selected} + .${w.grouped}.${w.selected}`]:{borderTop:0,marginTop:0}})},t.orientation==="horizontal"?{[`& .${w.firstButton},& .${w.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${w.lastButton},& .${w.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${w.firstButton},& .${w.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${w.lastButton},& .${w.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},t.orientation==="horizontal"?{[`& .${w.lastButton}.${V.disabled},& .${w.middleButton}.${V.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${w.lastButton}.${V.disabled},& .${w.middleButton}.${V.disabled}`]:{borderTop:"1px solid transparent"}})),qt=b.forwardRef(function(r,l){const d=Me({props:r,name:"MuiToggleButtonGroup"}),{children:f,className:u,color:h="standard",disabled:s=!1,exclusive:p=!1,fullWidth:o=!1,onChange:a,orientation:i="horizontal",size:n="medium",value:c}=d,v=xe(d,Et),x=M({},d,{disabled:s,fullWidth:o,orientation:i,size:n}),m=Gt(x),j=b.useCallback(($,F)=>{if(!a)return;const D=c&&c.indexOf(F);let A;c&&D>=0?(A=c.slice(),A.splice(D,1)):A=c?c.concat(F):[F],a($,A)},[a,c]),g=b.useCallback(($,F)=>{a&&a($,c===F?null:F)},[a,c]),C=b.useMemo(()=>({className:m.grouped,onChange:p?g:j,value:c,size:n,fullWidth:o,color:h,disabled:s}),[m.grouped,p,g,j,c,n,o,h,s]),y=Ft(f),B=y.length,P=$=>{const F=$===0,D=$===B-1;return F&&D?"":F?m.firstButton:D?m.lastButton:m.middleButton};return e.jsx(Ht,M({role:"group",className:We(m.root,u),ref:l,ownerState:x},v,{children:e.jsx(Ke.Provider,{value:C,children:y.map(($,F)=>e.jsx(Ye.Provider,{value:P(F),children:$},F))})}))}),Ut=qt;var Be={};Object.defineProperty(Be,"__esModule",{value:!0});var re=Be.default=void 0;Vt(b);var Re=e;function Vt(t){return t&&t.__esModule?t:{default:t}}function ke(t,r){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);r&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(t,f).enumerable})),l.push.apply(l,d)}return l}function ze(t){for(var r=1;r<arguments.length;r++){var l=arguments[r]!=null?arguments[r]:{};r%2?ke(Object(l),!0).forEach(function(d){Kt(t,d,l[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):ke(Object(l)).forEach(function(d){Object.defineProperty(t,d,Object.getOwnPropertyDescriptor(l,d))})}return t}function Kt(t,r,l){return r=Yt(r),r in t?Object.defineProperty(t,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[r]=l,t}function Yt(t){var r=Jt(t,"string");return typeof r=="symbol"?r:String(r)}function Jt(t,r){if(typeof t!="object"||t===null)return t;var l=t[Symbol.toPrimitive];if(l!==void 0){var d=l.call(t,r||"default");if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var Se=function(r){return(0,Re.jsx)("svg",ze(ze({},r),{},{children:(0,Re.jsx)("path",{d:"M8.438 4.313H8.25a.188.188 0 0 0 .188-.188v.188h7.124v-.188c0 .103.085.188.188.188h-.188V6h1.688V4.125c0-.827-.673-1.5-1.5-1.5h-7.5c-.827 0-1.5.673-1.5 1.5V6h1.688V4.312zM20.25 6H3.75a.75.75 0 0 0-.75.75v.75c0 .103.084.188.188.188h1.415l.579 12.257c.038.8.698 1.43 1.498 1.43h10.64c.802 0 1.46-.628 1.498-1.43l.579-12.258h1.416A.188.188 0 0 0 21 7.5v-.75a.75.75 0 0 0-.75-.75zm-3.11 13.688H6.86l-.567-12h11.414l-.567 12z"})}))};Se.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};Se.displayName="delete";var Qt=Se;re=Be.default=Qt;var Je={exports:{}},Qe={exports:{}};(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(l,d){return l<<d|l>>>32-d},rotr:function(l,d){return l<<32-d|l>>>d},endian:function(l){if(l.constructor==Number)return r.rotl(l,8)&16711935|r.rotl(l,24)&4278255360;for(var d=0;d<l.length;d++)l[d]=r.endian(l[d]);return l},randomBytes:function(l){for(var d=[];l>0;l--)d.push(Math.floor(Math.random()*256));return d},bytesToWords:function(l){for(var d=[],f=0,u=0;f<l.length;f++,u+=8)d[u>>>5]|=l[f]<<24-u%32;return d},wordsToBytes:function(l){for(var d=[],f=0;f<l.length*32;f+=8)d.push(l[f>>>5]>>>24-f%32&255);return d},bytesToHex:function(l){for(var d=[],f=0;f<l.length;f++)d.push((l[f]>>>4).toString(16)),d.push((l[f]&15).toString(16));return d.join("")},hexToBytes:function(l){for(var d=[],f=0;f<l.length;f+=2)d.push(parseInt(l.substr(f,2),16));return d},bytesToBase64:function(l){for(var d=[],f=0;f<l.length;f+=3)for(var u=l[f]<<16|l[f+1]<<8|l[f+2],h=0;h<4;h++)f*8+h*6<=l.length*8?d.push(t.charAt(u>>>6*(3-h)&63)):d.push("=");return d.join("")},base64ToBytes:function(l){l=l.replace(/[^A-Z0-9+\/]/ig,"");for(var d=[],f=0,u=0;f<l.length;u=++f%4)u!=0&&d.push((t.indexOf(l.charAt(f-1))&Math.pow(2,-2*u+8)-1)<<u*2|t.indexOf(l.charAt(f))>>>6-u*2);return d}};Qe.exports=r})();var Xt=Qe.exports,ye={utf8:{stringToBytes:function(t){return ye.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(ye.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var r=[],l=0;l<t.length;l++)r.push(t.charCodeAt(l)&255);return r},bytesToString:function(t){for(var r=[],l=0;l<t.length;l++)r.push(String.fromCharCode(t[l]));return r.join("")}}},Ne=ye;/*!
1
+ import{ay as _e,az as Ae,r as b,aA as Oe,bD as rt,aB as ie,aE as M,bF as oe,aD as xe,fk as ot,aC as Me,j as e,aG as We,aH as Ee,aS as Ge,a9 as L,u as H,T as K,am as q,F as k,S as W,P as S,G as U,bn as Y,e9 as J,fl as He,aw as O,n as z,aX as nt,dy as at,B as T,dz as it,Y as lt,$ as ct,K as dt,M as ut,w as qe,b1 as Ue,bB as ve,b4 as se,fm as pt,fn as ft,a as he,E as mt,U as ht}from"./index-uIKkPDx2.js";import{d as je}from"./Add-fjbSIcnc.js";import{S as ne}from"./index-q4YuEk6Y.js";import{d as le}from"./EditIcon-CEHYlrp-.js";import{d as gt}from"./LockIcon-e6UtCqfh.js";import{L as Ce,S as be,d as xt}from"./list-header-OJgTzNF1.js";import{u as ee}from"./dashboard-wLNTNF45.js";import{w as E,P as De}from"./permission-K-J3su8S.js";import{C as Te}from"./confirm-Q5y49s7X.js";import{A as yt}from"./index-_typwRVC.js";import{T as _,F as vt}from"./TextField-HfFRez76.js";import{D as jt}from"./DialogContentText-2StByoPg.js";import{f as te}from"./format-error-iCYgDtF5.js";import{F as Ct}from"./FormControlLabel-Yzi0VkLB.js";import{C as bt}from"./Checkbox-iS0aPWS5.js";import{C as Tt}from"./Google-0MAQRWrd.js";import{W as Ve}from"./did-address-fR8IBME6.js";import{T as Bt}from"./MoreVert-b_wUncc4.js";import{_ as St}from"./useSetState-FhUMbwgE.js";import{M as wt}from"./InputAdornment-iwL7P_Vm.js";import{I as Pt}from"./InputLabel-qtx_TKpe.js";import{g as Ft}from"./ButtonGroup-qjjm6C6u.js";import{O as It}from"./Select-1vnu6Wod.js";import"./ExpandMore-JmnmUnd8.js";import"./Search-pq50dDMP.js";import"./index-FT9kP6qN.js";import"./useLocalStorage--e-ZnzAS.js";import"./PlayArrow-DsCR1WAD.js";import"./Alert-nav821gk.js";import"./RadioGroup-MeoNWf5B.js";import"./FormGroup-6byJTUh5.js";import"./useFormControl-egCRc-oY.js";import"./Avatar-4W2iSGC-.js";import"./session-4pK31v9z.js";import"./spaces-ciJpOZGt.js";import"./index-KswRO1Cx.js";import"./api-Rgr2QdHb.js";import"./fallback-wCdaTD2t.js";import"./wallet-hidden-topbar-4xE3Zmur.js";import"./ListItem-kYIyq9wN.js";import"./selector-ykYLL3HG.js";import"./index-nXJuMgJq.js";import"./nav-menu-2LU_iiMs.js";import"./MoreHoriz-1QS3N81v.js";import"./Toolbar-z-FYIGbv.js";import"./Hidden-SKwxA9k1.js";import"./useAsync-eueWQMQv.js";import"./FormControl-U_6qW76h.js";function $t(t){return Ae("MuiToggleButton",t)}const Dt=_e("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),V=Dt,Rt=b.createContext({}),Ke=Rt,kt=b.createContext(void 0),Ye=kt;function zt(t,r){return r===void 0||t===void 0?!1:Array.isArray(r)?r.indexOf(t)>=0:t===r}const Nt=["value"],Lt=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],_t=t=>{const{classes:r,fullWidth:l,selected:d,disabled:f,size:u,color:h}=t,s={root:["root",d&&"selected",f&&"disabled",l&&"fullWidth",`size${ie(u)}`,h]};return Ee(s,$t,r)},At=Oe(rt,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:l}=t;return[r.root,r[`size${ie(l.size)}`]]}})(({theme:t,ownerState:r})=>{let l=r.color==="standard"?t.palette.text.primary:t.palette[r.color].main,d;return t.vars&&(l=r.color==="standard"?t.vars.palette.text.primary:t.vars.palette[r.color].main,d=r.color==="standard"?t.vars.palette.text.primaryChannel:t.vars.palette[r.color].mainChannel),M({},t.typography.button,{borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active},r.fullWidth&&{width:"100%"},{[`&.${V.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:oe(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${V.selected}`]:{color:l,backgroundColor:t.vars?`rgba(${d} / ${t.vars.palette.action.selectedOpacity})`:oe(l,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${d} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:oe(l,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${d} / ${t.vars.palette.action.selectedOpacity})`:oe(l,t.palette.action.selectedOpacity)}}}},r.size==="small"&&{padding:7,fontSize:t.typography.pxToRem(13)},r.size==="large"&&{padding:15,fontSize:t.typography.pxToRem(15)})}),Ot=b.forwardRef(function(r,l){const d=b.useContext(Ke),{value:f}=d,u=xe(d,Nt),h=b.useContext(Ye),s=ot(M({},u,{selected:zt(r.value,f)}),r),p=Me({props:s,name:"MuiToggleButton"}),{children:o,className:a,color:i="standard",disabled:n=!1,disableFocusRipple:c=!1,fullWidth:v=!1,onChange:x,onClick:m,selected:j,size:g="medium",value:C}=p,y=xe(p,Lt),B=M({},p,{color:i,disabled:n,disableFocusRipple:c,fullWidth:v,size:g}),P=_t(B),$=D=>{m&&(m(D,C),D.defaultPrevented)||x&&x(D,C)},F=h||"";return e.jsx(At,M({className:We(u.className,P.root,a,F),disabled:n,focusRipple:!c,ref:l,onClick:$,onChange:x,value:C,ownerState:B,"aria-pressed":j},y,{children:o}))}),ge=Ot;function Mt(t){return Ae("MuiToggleButtonGroup",t)}const Wt=_e("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),w=Wt,Et=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],Gt=t=>{const{classes:r,orientation:l,fullWidth:d,disabled:f}=t,u={root:["root",l==="vertical"&&"vertical",d&&"fullWidth"],grouped:["grouped",`grouped${ie(l)}`,f&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Ee(u,Mt,r)},Ht=Oe("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:l}=t;return[{[`& .${w.grouped}`]:r.grouped},{[`& .${w.grouped}`]:r[`grouped${ie(l.orientation)}`]},{[`& .${w.firstButton}`]:r.firstButton},{[`& .${w.lastButton}`]:r.lastButton},{[`& .${w.middleButton}`]:r.middleButton},r.root,l.orientation==="vertical"&&r.vertical,l.fullWidth&&r.fullWidth]}})(({ownerState:t,theme:r})=>M({display:"inline-flex",borderRadius:(r.vars||r).shape.borderRadius},t.orientation==="vertical"&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{[`& .${w.grouped}`]:M({},t.orientation==="horizontal"?{[`&.${w.selected} + .${w.grouped}.${w.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${w.selected} + .${w.grouped}.${w.selected}`]:{borderTop:0,marginTop:0}})},t.orientation==="horizontal"?{[`& .${w.firstButton},& .${w.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${w.lastButton},& .${w.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${w.firstButton},& .${w.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${w.lastButton},& .${w.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},t.orientation==="horizontal"?{[`& .${w.lastButton}.${V.disabled},& .${w.middleButton}.${V.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${w.lastButton}.${V.disabled},& .${w.middleButton}.${V.disabled}`]:{borderTop:"1px solid transparent"}})),qt=b.forwardRef(function(r,l){const d=Me({props:r,name:"MuiToggleButtonGroup"}),{children:f,className:u,color:h="standard",disabled:s=!1,exclusive:p=!1,fullWidth:o=!1,onChange:a,orientation:i="horizontal",size:n="medium",value:c}=d,v=xe(d,Et),x=M({},d,{disabled:s,fullWidth:o,orientation:i,size:n}),m=Gt(x),j=b.useCallback(($,F)=>{if(!a)return;const D=c&&c.indexOf(F);let A;c&&D>=0?(A=c.slice(),A.splice(D,1)):A=c?c.concat(F):[F],a($,A)},[a,c]),g=b.useCallback(($,F)=>{a&&a($,c===F?null:F)},[a,c]),C=b.useMemo(()=>({className:m.grouped,onChange:p?g:j,value:c,size:n,fullWidth:o,color:h,disabled:s}),[m.grouped,p,g,j,c,n,o,h,s]),y=Ft(f),B=y.length,P=$=>{const F=$===0,D=$===B-1;return F&&D?"":F?m.firstButton:D?m.lastButton:m.middleButton};return e.jsx(Ht,M({role:"group",className:We(m.root,u),ref:l,ownerState:x},v,{children:e.jsx(Ke.Provider,{value:C,children:y.map(($,F)=>e.jsx(Ye.Provider,{value:P(F),children:$},F))})}))}),Ut=qt;var Be={};Object.defineProperty(Be,"__esModule",{value:!0});var re=Be.default=void 0;Vt(b);var Re=e;function Vt(t){return t&&t.__esModule?t:{default:t}}function ke(t,r){var l=Object.keys(t);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(t);r&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(t,f).enumerable})),l.push.apply(l,d)}return l}function ze(t){for(var r=1;r<arguments.length;r++){var l=arguments[r]!=null?arguments[r]:{};r%2?ke(Object(l),!0).forEach(function(d){Kt(t,d,l[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(l)):ke(Object(l)).forEach(function(d){Object.defineProperty(t,d,Object.getOwnPropertyDescriptor(l,d))})}return t}function Kt(t,r,l){return r=Yt(r),r in t?Object.defineProperty(t,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):t[r]=l,t}function Yt(t){var r=Jt(t,"string");return typeof r=="symbol"?r:String(r)}function Jt(t,r){if(typeof t!="object"||t===null)return t;var l=t[Symbol.toPrimitive];if(l!==void 0){var d=l.call(t,r||"default");if(typeof d!="object")return d;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(t)}var Se=function(r){return(0,Re.jsx)("svg",ze(ze({},r),{},{children:(0,Re.jsx)("path",{d:"M8.438 4.313H8.25a.188.188 0 0 0 .188-.188v.188h7.124v-.188c0 .103.085.188.188.188h-.188V6h1.688V4.125c0-.827-.673-1.5-1.5-1.5h-7.5c-.827 0-1.5.673-1.5 1.5V6h1.688V4.312zM20.25 6H3.75a.75.75 0 0 0-.75.75v.75c0 .103.084.188.188.188h1.415l.579 12.257c.038.8.698 1.43 1.498 1.43h10.64c.802 0 1.46-.628 1.498-1.43l.579-12.258h1.416A.188.188 0 0 0 21 7.5v-.75a.75.75 0 0 0-.75-.75zm-3.11 13.688H6.86l-.567-12h11.414l-.567 12z"})}))};Se.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};Se.displayName="delete";var Qt=Se;re=Be.default=Qt;var Je={exports:{}},Qe={exports:{}};(function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(l,d){return l<<d|l>>>32-d},rotr:function(l,d){return l<<32-d|l>>>d},endian:function(l){if(l.constructor==Number)return r.rotl(l,8)&16711935|r.rotl(l,24)&4278255360;for(var d=0;d<l.length;d++)l[d]=r.endian(l[d]);return l},randomBytes:function(l){for(var d=[];l>0;l--)d.push(Math.floor(Math.random()*256));return d},bytesToWords:function(l){for(var d=[],f=0,u=0;f<l.length;f++,u+=8)d[u>>>5]|=l[f]<<24-u%32;return d},wordsToBytes:function(l){for(var d=[],f=0;f<l.length*32;f+=8)d.push(l[f>>>5]>>>24-f%32&255);return d},bytesToHex:function(l){for(var d=[],f=0;f<l.length;f++)d.push((l[f]>>>4).toString(16)),d.push((l[f]&15).toString(16));return d.join("")},hexToBytes:function(l){for(var d=[],f=0;f<l.length;f+=2)d.push(parseInt(l.substr(f,2),16));return d},bytesToBase64:function(l){for(var d=[],f=0;f<l.length;f+=3)for(var u=l[f]<<16|l[f+1]<<8|l[f+2],h=0;h<4;h++)f*8+h*6<=l.length*8?d.push(t.charAt(u>>>6*(3-h)&63)):d.push("=");return d.join("")},base64ToBytes:function(l){l=l.replace(/[^A-Z0-9+\/]/ig,"");for(var d=[],f=0,u=0;f<l.length;u=++f%4)u!=0&&d.push((t.indexOf(l.charAt(f-1))&Math.pow(2,-2*u+8)-1)<<u*2|t.indexOf(l.charAt(f))>>>6-u*2);return d}};Qe.exports=r})();var Xt=Qe.exports,ye={utf8:{stringToBytes:function(t){return ye.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(ye.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var r=[],l=0;l<t.length;l++)r.push(t.charCodeAt(l)&255);return r},bytesToString:function(t){for(var r=[],l=0;l<t.length;l++)r.push(String.fromCharCode(t[l]));return r.join("")}}},Ne=ye;/*!
2
2
  * Determine if an object is a Buffer
3
3
  *
4
4
  * @author Feross Aboukhadijeh <https://feross.org>
@@ -1,4 +1,4 @@
1
- import{cf as Ce,aS as Ga,bT as je,r as D,eQ as Br,ce as Ba}from"./index-feKj5cCa.js";import{c as za}from"./redux-XOuz_cVf.js";var Le={exports:{}};Le.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",a=1,o=2,s=9007199254740991,c="[object Arguments]",f="[object Array]",d="[object AsyncFunction]",v="[object Boolean]",b="[object Date]",O="[object Error]",m="[object Function]",S="[object GeneratorFunction]",C="[object Map]",N="[object Number]",G="[object Null]",P="[object Object]",T="[object Promise]",p="[object Proxy]",A="[object RegExp]",$="[object Set]",k="[object String]",Y="[object Symbol]",ue="[object Undefined]",se="[object WeakMap]",Ot="[object ArrayBuffer]",ye="[object DataView]",Dn="[object Float32Array]",Sn="[object Float64Array]",On="[object Int8Array]",Tn="[object Int16Array]",wn="[object Int32Array]",In="[object Uint8Array]",Cn="[object Uint8ClampedArray]",_n="[object Uint16Array]",En="[object Uint32Array]",Pn=/[\\^$.*+?()[\]{}|]/g,An=/^\[object .+?Constructor\]$/,kn=/^(?:0|[1-9]\d*)$/,w={};w[Dn]=w[Sn]=w[On]=w[Tn]=w[wn]=w[In]=w[Cn]=w[_n]=w[En]=!0,w[c]=w[f]=w[Ot]=w[v]=w[ye]=w[b]=w[O]=w[m]=w[C]=w[N]=w[P]=w[A]=w[$]=w[k]=w[se]=!1;var Tt=typeof Ce=="object"&&Ce&&Ce.Object===Object&&Ce,Rn=typeof self=="object"&&self&&self.Object===Object&&self,W=Tt||Rn||Function("return this")(),wt=t&&!t.nodeType&&t,It=wt&&!0&&e&&!e.nodeType&&e,Ct=It&&It.exports===wt,Xe=Ct&&Tt.process,_t=function(){try{return Xe&&Xe.binding&&Xe.binding("util")}catch{}}(),Et=_t&&_t.isTypedArray;function Mn(i,u){for(var l=-1,g=i==null?0:i.length,I=0,y=[];++l<g;){var E=i[l];u(E,l,i)&&(y[I++]=E)}return y}function $n(i,u){for(var l=-1,g=u.length,I=i.length;++l<g;)i[I+l]=u[l];return i}function xn(i,u){for(var l=-1,g=i==null?0:i.length;++l<g;)if(u(i[l],l,i))return!0;return!1}function Nn(i,u){for(var l=-1,g=Array(i);++l<i;)g[l]=u(l);return g}function jn(i){return function(u){return i(u)}}function Ln(i,u){return i.has(u)}function Hn(i,u){return i==null?void 0:i[u]}function Un(i){var u=-1,l=Array(i.size);return i.forEach(function(g,I){l[++u]=[I,g]}),l}function Fn(i,u){return function(l){return i(u(l))}}function qn(i){var u=-1,l=Array(i.size);return i.forEach(function(g){l[++u]=g}),l}var Gn=Array.prototype,Bn=Function.prototype,me=Object.prototype,Ke=W["__core-js_shared__"],Pt=Bn.toString,B=me.hasOwnProperty,At=function(){var i=/[^.]+$/.exec(Ke&&Ke.keys&&Ke.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),kt=me.toString,zn=RegExp("^"+Pt.call(B).replace(Pn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rt=Ct?W.Buffer:void 0,be=W.Symbol,Mt=W.Uint8Array,$t=me.propertyIsEnumerable,Wn=Gn.splice,Z=be?be.toStringTag:void 0,xt=Object.getOwnPropertySymbols,Xn=Rt?Rt.isBuffer:void 0,Kn=Fn(Object.keys,Object),Ye=ie(W,"DataView"),ce=ie(W,"Map"),Ve=ie(W,"Promise"),Qe=ie(W,"Set"),Je=ie(W,"WeakMap"),fe=ie(Object,"create"),Yn=re(Ye),Vn=re(ce),Qn=re(Ve),Jn=re(Qe),Zn=re(Je),Nt=be?be.prototype:void 0,Ze=Nt?Nt.valueOf:void 0;function ee(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function ea(){this.__data__=fe?fe(null):{},this.size=0}function ta(i){var u=this.has(i)&&delete this.__data__[i];return this.size-=u?1:0,u}function ra(i){var u=this.__data__;if(fe){var l=u[i];return l===n?void 0:l}return B.call(u,i)?u[i]:void 0}function na(i){var u=this.__data__;return fe?u[i]!==void 0:B.call(u,i)}function aa(i,u){var l=this.__data__;return this.size+=this.has(i)?0:1,l[i]=fe&&u===void 0?n:u,this}ee.prototype.clear=ea,ee.prototype.delete=ta,ee.prototype.get=ra,ee.prototype.has=na,ee.prototype.set=aa;function X(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function ia(){this.__data__=[],this.size=0}function oa(i){var u=this.__data__,l=Se(u,i);if(l<0)return!1;var g=u.length-1;return l==g?u.pop():Wn.call(u,l,1),--this.size,!0}function ua(i){var u=this.__data__,l=Se(u,i);return l<0?void 0:u[l][1]}function sa(i){return Se(this.__data__,i)>-1}function ca(i,u){var l=this.__data__,g=Se(l,i);return g<0?(++this.size,l.push([i,u])):l[g][1]=u,this}X.prototype.clear=ia,X.prototype.delete=oa,X.prototype.get=ua,X.prototype.has=sa,X.prototype.set=ca;function te(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function fa(){this.size=0,this.__data__={hash:new ee,map:new(ce||X),string:new ee}}function la(i){var u=Oe(this,i).delete(i);return this.size-=u?1:0,u}function da(i){return Oe(this,i).get(i)}function ga(i){return Oe(this,i).has(i)}function ha(i,u){var l=Oe(this,i),g=l.size;return l.set(i,u),this.size+=l.size==g?0:1,this}te.prototype.clear=fa,te.prototype.delete=la,te.prototype.get=da,te.prototype.has=ga,te.prototype.set=ha;function De(i){var u=-1,l=i==null?0:i.length;for(this.__data__=new te;++u<l;)this.add(i[u])}function pa(i){return this.__data__.set(i,n),this}function va(i){return this.__data__.has(i)}De.prototype.add=De.prototype.push=pa,De.prototype.has=va;function V(i){var u=this.__data__=new X(i);this.size=u.size}function ya(){this.__data__=new X,this.size=0}function ma(i){var u=this.__data__,l=u.delete(i);return this.size=u.size,l}function ba(i){return this.__data__.get(i)}function Da(i){return this.__data__.has(i)}function Sa(i,u){var l=this.__data__;if(l instanceof X){var g=l.__data__;if(!ce||g.length<r-1)return g.push([i,u]),this.size=++l.size,this;l=this.__data__=new te(g)}return l.set(i,u),this.size=l.size,this}V.prototype.clear=ya,V.prototype.delete=ma,V.prototype.get=ba,V.prototype.has=Da,V.prototype.set=Sa;function Oa(i,u){var l=Te(i),g=!l&&ja(i),I=!l&&!g&&et(i),y=!l&&!g&&!I&&zt(i),E=l||g||I||y,R=E?Nn(i.length,String):[],M=R.length;for(var _ in i)(u||B.call(i,_))&&!(E&&(_=="length"||I&&(_=="offset"||_=="parent")||y&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||Ra(_,M)))&&R.push(_);return R}function Se(i,u){for(var l=i.length;l--;)if(Ft(i[l][0],u))return l;return-1}function Ta(i,u,l){var g=u(i);return Te(i)?g:$n(g,l(i))}function le(i){return i==null?i===void 0?ue:G:Z&&Z in Object(i)?Aa(i):Na(i)}function jt(i){return de(i)&&le(i)==c}function Lt(i,u,l,g,I){return i===u?!0:i==null||u==null||!de(i)&&!de(u)?i!==i&&u!==u:wa(i,u,l,g,Lt,I)}function wa(i,u,l,g,I,y){var E=Te(i),R=Te(u),M=E?f:Q(i),_=R?f:Q(u);M=M==c?P:M,_=_==c?P:_;var j=M==P,q=_==P,x=M==_;if(x&&et(i)){if(!et(u))return!1;E=!0,j=!1}if(x&&!j)return y||(y=new V),E||zt(i)?Ht(i,u,l,g,I,y):Ea(i,u,M,l,g,I,y);if(!(l&a)){var L=j&&B.call(i,"__wrapped__"),H=q&&B.call(u,"__wrapped__");if(L||H){var J=L?i.value():i,K=H?u.value():u;return y||(y=new V),I(J,K,l,g,y)}}return x?(y||(y=new V),Pa(i,u,l,g,I,y)):!1}function Ia(i){if(!Bt(i)||$a(i))return!1;var u=qt(i)?zn:An;return u.test(re(i))}function Ca(i){return de(i)&&Gt(i.length)&&!!w[le(i)]}function _a(i){if(!xa(i))return Kn(i);var u=[];for(var l in Object(i))B.call(i,l)&&l!="constructor"&&u.push(l);return u}function Ht(i,u,l,g,I,y){var E=l&a,R=i.length,M=u.length;if(R!=M&&!(E&&M>R))return!1;var _=y.get(i);if(_&&y.get(u))return _==u;var j=-1,q=!0,x=l&o?new De:void 0;for(y.set(i,u),y.set(u,i);++j<R;){var L=i[j],H=u[j];if(g)var J=E?g(H,L,j,u,i,y):g(L,H,j,i,u,y);if(J!==void 0){if(J)continue;q=!1;break}if(x){if(!xn(u,function(K,ne){if(!Ln(x,ne)&&(L===K||I(L,K,l,g,y)))return x.push(ne)})){q=!1;break}}else if(!(L===H||I(L,H,l,g,y))){q=!1;break}}return y.delete(i),y.delete(u),q}function Ea(i,u,l,g,I,y,E){switch(l){case ye:if(i.byteLength!=u.byteLength||i.byteOffset!=u.byteOffset)return!1;i=i.buffer,u=u.buffer;case Ot:return!(i.byteLength!=u.byteLength||!y(new Mt(i),new Mt(u)));case v:case b:case N:return Ft(+i,+u);case O:return i.name==u.name&&i.message==u.message;case A:case k:return i==u+"";case C:var R=Un;case $:var M=g&a;if(R||(R=qn),i.size!=u.size&&!M)return!1;var _=E.get(i);if(_)return _==u;g|=o,E.set(i,u);var j=Ht(R(i),R(u),g,I,y,E);return E.delete(i),j;case Y:if(Ze)return Ze.call(i)==Ze.call(u)}return!1}function Pa(i,u,l,g,I,y){var E=l&a,R=Ut(i),M=R.length,_=Ut(u),j=_.length;if(M!=j&&!E)return!1;for(var q=M;q--;){var x=R[q];if(!(E?x in u:B.call(u,x)))return!1}var L=y.get(i);if(L&&y.get(u))return L==u;var H=!0;y.set(i,u),y.set(u,i);for(var J=E;++q<M;){x=R[q];var K=i[x],ne=u[x];if(g)var Wt=E?g(ne,K,x,u,i,y):g(K,ne,x,i,u,y);if(!(Wt===void 0?K===ne||I(K,ne,l,g,y):Wt)){H=!1;break}J||(J=x=="constructor")}if(H&&!J){var we=i.constructor,Ie=u.constructor;we!=Ie&&"constructor"in i&&"constructor"in u&&!(typeof we=="function"&&we instanceof we&&typeof Ie=="function"&&Ie instanceof Ie)&&(H=!1)}return y.delete(i),y.delete(u),H}function Ut(i){return Ta(i,Ua,ka)}function Oe(i,u){var l=i.__data__;return Ma(u)?l[typeof u=="string"?"string":"hash"]:l.map}function ie(i,u){var l=Hn(i,u);return Ia(l)?l:void 0}function Aa(i){var u=B.call(i,Z),l=i[Z];try{i[Z]=void 0;var g=!0}catch{}var I=kt.call(i);return g&&(u?i[Z]=l:delete i[Z]),I}var ka=xt?function(i){return i==null?[]:(i=Object(i),Mn(xt(i),function(u){return $t.call(i,u)}))}:Fa,Q=le;(Ye&&Q(new Ye(new ArrayBuffer(1)))!=ye||ce&&Q(new ce)!=C||Ve&&Q(Ve.resolve())!=T||Qe&&Q(new Qe)!=$||Je&&Q(new Je)!=se)&&(Q=function(i){var u=le(i),l=u==P?i.constructor:void 0,g=l?re(l):"";if(g)switch(g){case Yn:return ye;case Vn:return C;case Qn:return T;case Jn:return $;case Zn:return se}return u});function Ra(i,u){return u=u??s,!!u&&(typeof i=="number"||kn.test(i))&&i>-1&&i%1==0&&i<u}function Ma(i){var u=typeof i;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?i!=="__proto__":i===null}function $a(i){return!!At&&At in i}function xa(i){var u=i&&i.constructor,l=typeof u=="function"&&u.prototype||me;return i===l}function Na(i){return kt.call(i)}function re(i){if(i!=null){try{return Pt.call(i)}catch{}try{return i+""}catch{}}return""}function Ft(i,u){return i===u||i!==i&&u!==u}var ja=jt(function(){return arguments}())?jt:function(i){return de(i)&&B.call(i,"callee")&&!$t.call(i,"callee")},Te=Array.isArray;function La(i){return i!=null&&Gt(i.length)&&!qt(i)}var et=Xn||qa;function Ha(i,u){return Lt(i,u)}function qt(i){if(!Bt(i))return!1;var u=le(i);return u==m||u==S||u==d||u==p}function Gt(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=s}function Bt(i){var u=typeof i;return i!=null&&(u=="object"||u=="function")}function de(i){return i!=null&&typeof i=="object"}var zt=Et?jn(Et):Ca;function Ua(i){return La(i)?Oa(i):_a(i)}function Fa(){return[]}function qa(){return!1}e.exports=Ha})(Le,Le.exports);var Wa=Le.exports;const As=Ga(Wa);var F;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(F||(F={}));function h(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];if(!e){var o;if(t===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=0;o=new Error(t.replace(/%s/g,function(){return n[s++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}var gt="dnd-core/INIT_COORDS",qe="dnd-core/BEGIN_DRAG",ht="dnd-core/PUBLISH_DRAG_SOURCE",Ge="dnd-core/HOVER",Be="dnd-core/DROP",ze="dnd-core/END_DRAG";function Xt(e,t){return{type:gt,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function Pe(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pe=function(r){return typeof r}:Pe=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Pe(e)}function Xa(e,t,r){return t.split(".").reduce(function(n,a){return n&&n[a]?n[a]:r||null},e)}function Ka(e,t){return e.filter(function(r){return r!==t})}function zr(e){return Pe(e)==="object"}function Ya(e,t){var r=new Map,n=function(s){r.set(s,r.has(s)?r.get(s)+1:1)};e.forEach(n),t.forEach(n);var a=[];return r.forEach(function(o,s){o===1&&a.push(s)}),a}function Va(e,t){return e.filter(function(r){return t.indexOf(r)>-1})}var Qa={type:gt,payload:{clientOffset:null,sourceClientOffset:null}};function Ja(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},a=n.publishSource,o=a===void 0?!0:a,s=n.clientOffset,c=n.getSourceClientOffset,f=e.getMonitor(),d=e.getRegistry();e.dispatch(Xt(s)),Za(r,f,d);var v=ri(r,f);if(v===null){e.dispatch(Qa);return}var b=null;if(s){if(!c)throw new Error("getSourceClientOffset must be defined");ei(c),b=c(v)}e.dispatch(Xt(s,b));var O=d.getSource(v),m=O.beginDrag(f,v);ti(m),d.pinSource(v);var S=d.getSourceType(v);return{type:qe,payload:{itemType:S,item:m,sourceId:v,clientOffset:s||null,sourceClientOffset:b||null,isSourcePublic:!!o}}}}function Za(e,t,r){h(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){h(r.getSource(n),"Expected sourceIds to be registered.")})}function ei(e){h(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function ti(e){h(zr(e),"Item must be an object.")}function ri(e,t){for(var r=null,n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function ni(e){return function(){var r=e.getMonitor();if(r.isDragging())return{type:ht}}}function ot(e,t){return t===null?e===null:Array.isArray(e)?e.some(function(r){return r===t}):e===t}function ai(e){return function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.clientOffset;ii(r);var o=r.slice(0),s=e.getMonitor(),c=e.getRegistry();oi(o,s,c);var f=s.getItemType();return ui(o,c,f),si(o,s,c),{type:Ge,payload:{targetIds:o,clientOffset:a||null}}}}function ii(e){h(Array.isArray(e),"Expected targetIds to be an array.")}function oi(e,t,r){h(t.isDragging(),"Cannot call hover while not dragging."),h(!t.didDrop(),"Cannot call hover after drop.");for(var n=0;n<e.length;n++){var a=e[n];h(e.lastIndexOf(a)===n,"Expected targetIds to be unique in the passed array.");var o=r.getTarget(a);h(o,"Expected targetIds to be registered.")}}function ui(e,t,r){for(var n=e.length-1;n>=0;n--){var a=e[n],o=t.getTargetType(a);ot(o,r)||e.splice(n,1)}}function si(e,t,r){e.forEach(function(n){var a=r.getTarget(n);a.hover(t,n)})}function Kt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Yt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kt(Object(r),!0).forEach(function(n){ci(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ci(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fi(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.getMonitor(),a=e.getRegistry();li(n);var o=hi(n);o.forEach(function(s,c){var f=di(s,c,a,n),d={type:Be,payload:{dropResult:Yt(Yt({},r),f)}};e.dispatch(d)})}}function li(e){h(e.isDragging(),"Cannot call drop while not dragging."),h(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function di(e,t,r,n){var a=r.getTarget(e),o=a?a.drop(n,e):void 0;return gi(o),typeof o>"u"&&(o=t===0?{}:n.getDropResult()),o}function gi(e){h(typeof e>"u"||zr(e),"Drop result must either be an object or undefined.")}function hi(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function pi(e){return function(){var r=e.getMonitor(),n=e.getRegistry();vi(r);var a=r.getSourceId();if(a!=null){var o=n.getSource(a,!0);o.endDrag(r,a),n.unpinSource()}return{type:ze}}}function vi(e){h(e.isDragging(),"Cannot call endDrag while not dragging.")}function yi(e){return{beginDrag:Ja(e),publishDragSource:ni(e),hover:ai(e),drop:fi(e),endDrag:pi(e)}}var mi=function(t,r){return t===r};function bi(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Di(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:mi;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function Vt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vt(Object(r),!0).forEach(function(n){Si(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Si(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Jt={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Oi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jt,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case gt:case qe:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Ge:return bi(e.clientOffset,r.clientOffset)?e:Qt(Qt({},e),{},{clientOffset:r.clientOffset});case ze:case Be:return Jt;default:return e}}var pt="dnd-core/ADD_SOURCE",vt="dnd-core/ADD_TARGET",yt="dnd-core/REMOVE_SOURCE",We="dnd-core/REMOVE_TARGET";function Ti(e){return{type:pt,payload:{sourceId:e}}}function wi(e){return{type:vt,payload:{targetId:e}}}function Ii(e){return{type:yt,payload:{sourceId:e}}}function Ci(e){return{type:We,payload:{targetId:e}}}function Zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function U(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zt(Object(r),!0).forEach(function(n){_i(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ei={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Pi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ei,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case qe:return U(U({},e),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case ht:return U(U({},e),{},{isSourcePublic:!0});case Ge:return U(U({},e),{},{targetIds:r.targetIds});case We:return e.targetIds.indexOf(r.targetId)===-1?e:U(U({},e),{},{targetIds:Ka(e.targetIds,r.targetId)});case Be:return U(U({},e),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case ze:return U(U({},e),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Ai(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case pt:case vt:return e+1;case yt:case We:return e-1;default:return e}}var He=[],mt=[];He.__IS_NONE__=!0;mt.__IS_ALL__=!0;function ki(e,t){if(e===He)return!1;if(e===mt||typeof t>"u")return!0;var r=Va(t,e);return r.length>0}function Ri(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case Ge:break;case pt:case vt:case We:case yt:return He;case qe:case ht:case ze:case Be:default:return mt}var t=e.payload,r=t.targetIds,n=r===void 0?[]:r,a=t.prevTargetIds,o=a===void 0?[]:a,s=Ya(n,o),c=s.length>0||!Di(n,o);if(!c)return He;var f=o[o.length-1],d=n[n.length-1];return f!==d&&(f&&s.push(f),d&&s.push(d)),s}function Mi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e+1}function er(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function tr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?er(Object(r),!0).forEach(function(n){$i(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):er(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:Ri(e.dirtyHandlerIds,{type:t.type,payload:tr(tr({},t.payload),{},{prevTargetIds:Xa(e,"dragOperation.targetIds",[])})}),dragOffset:Oi(e.dragOffset,t),refCount:Ai(e.refCount,t),dragOperation:Pi(e.dragOperation,t),stateId:Mi(e.stateId)}}function Ni(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Wr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ji(e){var t=e.clientOffset,r=e.initialClientOffset,n=e.initialSourceClientOffset;return!t||!r||!n?null:Wr(Ni(t,n),r)}function Li(e){var t=e.clientOffset,r=e.initialClientOffset;return!t||!r?null:Wr(t,r)}function Hi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ui(e,t,r){return t&&rr(e.prototype,t),r&&rr(e,r),e}var Fi=function(){function e(t,r){Hi(this,e),this.store=t,this.registry=r}return Ui(e,[{key:"subscribeToStateChange",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},o=a.handlerIds;h(typeof r=="function","listener must be a function."),h(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var s=this.store.getState().stateId,c=function(){var d=n.store.getState(),v=d.stateId;try{var b=v===s||v===s+1&&!ki(d.dirtyHandlerIds,o);b||r()}finally{s=v}};return this.store.subscribe(c)}},{key:"subscribeToOffsetChange",value:function(r){var n=this;h(typeof r=="function","listener must be a function.");var a=this.store.getState().dragOffset,o=function(){var c=n.store.getState().dragOffset;c!==a&&(a=c,r())};return this.store.subscribe(o)}},{key:"canDragSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r);return h(n,"Expected to find a valid source."),this.isDragging()?!1:n.canDrag(this,r)}},{key:"canDropOnTarget",value:function(r){if(!r)return!1;var n=this.registry.getTarget(r);if(h(n,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var a=this.registry.getTargetType(r),o=this.getItemType();return ot(a,o)&&n.canDrop(this,r)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r,!0);if(h(n,"Expected to find a valid source."),!this.isDragging()||!this.isSourcePublic())return!1;var a=this.registry.getSourceType(r),o=this.getItemType();return a!==o?!1:n.isDragging(this,r)}},{key:"isOverTarget",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!r)return!1;var a=n.shallow;if(!this.isDragging())return!1;var o=this.registry.getTargetType(r),s=this.getItemType();if(s&&!ot(o,s))return!1;var c=this.getTargetIds();if(!c.length)return!1;var f=c.indexOf(r);return a?f===c.length-1:f>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return!!this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return ji(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return Li(this.store.getState().dragOffset)}}]),e}(),qi=0;function Gi(){return qi++}function Ae(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ae=function(r){return typeof r}:Ae=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ae(e)}function Bi(e){h(typeof e.canDrag=="function","Expected canDrag to be a function."),h(typeof e.beginDrag=="function","Expected beginDrag to be a function."),h(typeof e.endDrag=="function","Expected endDrag to be a function.")}function zi(e){h(typeof e.canDrop=="function","Expected canDrop to be a function."),h(typeof e.hover=="function","Expected hover to be a function."),h(typeof e.drop=="function","Expected beginDrag to be a function.")}function ut(e,t){if(t&&Array.isArray(e)){e.forEach(function(r){return ut(r,!1)});return}h(typeof e=="string"||Ae(e)==="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const nr=typeof je<"u"?je:self,Xr=nr.MutationObserver||nr.WebKitMutationObserver;function Kr(e){return function(){const r=setTimeout(a,0),n=setInterval(a,50);function a(){clearTimeout(r),clearInterval(n),e()}}}function Wi(e){let t=1;const r=new Xr(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const Xi=typeof Xr=="function"?Wi:Kr;class Ki{enqueueTask(t){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const r=this.index;if(this.index++,t[r].call(),this.index>this.capacity){for(let n=0,a=t.length-this.index;n<a;n++)t[n]=t[n+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=Xi(this.flush),this.requestErrorThrow=Kr(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Yi{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,r){this.onError=t,this.release=r,this.task=null}}class Vi{create(t){const r=this.freeTasks,n=r.length?r.pop():new Yi(this.onError,a=>r[r.length]=a);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const Yr=new Ki,Qi=new Vi(Yr.registerPendingError);function Ji(e){Yr.enqueueTask(Qi.create(e))}function Zi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ar(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function eo(e,t,r){return t&&ar(e.prototype,t),r&&ar(e,r),e}function to(e,t){return io(e)||ao(e,t)||no(e,t)||ro()}function ro(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{cf as Ce,aS as Ga,bT as je,r as D,eQ as Br,ce as Ba}from"./index-uIKkPDx2.js";import{c as za}from"./redux-XOuz_cVf.js";var Le={exports:{}};Le.exports;(function(e,t){var r=200,n="__lodash_hash_undefined__",a=1,o=2,s=9007199254740991,c="[object Arguments]",f="[object Array]",d="[object AsyncFunction]",v="[object Boolean]",b="[object Date]",O="[object Error]",m="[object Function]",S="[object GeneratorFunction]",C="[object Map]",N="[object Number]",G="[object Null]",P="[object Object]",T="[object Promise]",p="[object Proxy]",A="[object RegExp]",$="[object Set]",k="[object String]",Y="[object Symbol]",ue="[object Undefined]",se="[object WeakMap]",Ot="[object ArrayBuffer]",ye="[object DataView]",Dn="[object Float32Array]",Sn="[object Float64Array]",On="[object Int8Array]",Tn="[object Int16Array]",wn="[object Int32Array]",In="[object Uint8Array]",Cn="[object Uint8ClampedArray]",_n="[object Uint16Array]",En="[object Uint32Array]",Pn=/[\\^$.*+?()[\]{}|]/g,An=/^\[object .+?Constructor\]$/,kn=/^(?:0|[1-9]\d*)$/,w={};w[Dn]=w[Sn]=w[On]=w[Tn]=w[wn]=w[In]=w[Cn]=w[_n]=w[En]=!0,w[c]=w[f]=w[Ot]=w[v]=w[ye]=w[b]=w[O]=w[m]=w[C]=w[N]=w[P]=w[A]=w[$]=w[k]=w[se]=!1;var Tt=typeof Ce=="object"&&Ce&&Ce.Object===Object&&Ce,Rn=typeof self=="object"&&self&&self.Object===Object&&self,W=Tt||Rn||Function("return this")(),wt=t&&!t.nodeType&&t,It=wt&&!0&&e&&!e.nodeType&&e,Ct=It&&It.exports===wt,Xe=Ct&&Tt.process,_t=function(){try{return Xe&&Xe.binding&&Xe.binding("util")}catch{}}(),Et=_t&&_t.isTypedArray;function Mn(i,u){for(var l=-1,g=i==null?0:i.length,I=0,y=[];++l<g;){var E=i[l];u(E,l,i)&&(y[I++]=E)}return y}function $n(i,u){for(var l=-1,g=u.length,I=i.length;++l<g;)i[I+l]=u[l];return i}function xn(i,u){for(var l=-1,g=i==null?0:i.length;++l<g;)if(u(i[l],l,i))return!0;return!1}function Nn(i,u){for(var l=-1,g=Array(i);++l<i;)g[l]=u(l);return g}function jn(i){return function(u){return i(u)}}function Ln(i,u){return i.has(u)}function Hn(i,u){return i==null?void 0:i[u]}function Un(i){var u=-1,l=Array(i.size);return i.forEach(function(g,I){l[++u]=[I,g]}),l}function Fn(i,u){return function(l){return i(u(l))}}function qn(i){var u=-1,l=Array(i.size);return i.forEach(function(g){l[++u]=g}),l}var Gn=Array.prototype,Bn=Function.prototype,me=Object.prototype,Ke=W["__core-js_shared__"],Pt=Bn.toString,B=me.hasOwnProperty,At=function(){var i=/[^.]+$/.exec(Ke&&Ke.keys&&Ke.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),kt=me.toString,zn=RegExp("^"+Pt.call(B).replace(Pn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Rt=Ct?W.Buffer:void 0,be=W.Symbol,Mt=W.Uint8Array,$t=me.propertyIsEnumerable,Wn=Gn.splice,Z=be?be.toStringTag:void 0,xt=Object.getOwnPropertySymbols,Xn=Rt?Rt.isBuffer:void 0,Kn=Fn(Object.keys,Object),Ye=ie(W,"DataView"),ce=ie(W,"Map"),Ve=ie(W,"Promise"),Qe=ie(W,"Set"),Je=ie(W,"WeakMap"),fe=ie(Object,"create"),Yn=re(Ye),Vn=re(ce),Qn=re(Ve),Jn=re(Qe),Zn=re(Je),Nt=be?be.prototype:void 0,Ze=Nt?Nt.valueOf:void 0;function ee(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function ea(){this.__data__=fe?fe(null):{},this.size=0}function ta(i){var u=this.has(i)&&delete this.__data__[i];return this.size-=u?1:0,u}function ra(i){var u=this.__data__;if(fe){var l=u[i];return l===n?void 0:l}return B.call(u,i)?u[i]:void 0}function na(i){var u=this.__data__;return fe?u[i]!==void 0:B.call(u,i)}function aa(i,u){var l=this.__data__;return this.size+=this.has(i)?0:1,l[i]=fe&&u===void 0?n:u,this}ee.prototype.clear=ea,ee.prototype.delete=ta,ee.prototype.get=ra,ee.prototype.has=na,ee.prototype.set=aa;function X(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function ia(){this.__data__=[],this.size=0}function oa(i){var u=this.__data__,l=Se(u,i);if(l<0)return!1;var g=u.length-1;return l==g?u.pop():Wn.call(u,l,1),--this.size,!0}function ua(i){var u=this.__data__,l=Se(u,i);return l<0?void 0:u[l][1]}function sa(i){return Se(this.__data__,i)>-1}function ca(i,u){var l=this.__data__,g=Se(l,i);return g<0?(++this.size,l.push([i,u])):l[g][1]=u,this}X.prototype.clear=ia,X.prototype.delete=oa,X.prototype.get=ua,X.prototype.has=sa,X.prototype.set=ca;function te(i){var u=-1,l=i==null?0:i.length;for(this.clear();++u<l;){var g=i[u];this.set(g[0],g[1])}}function fa(){this.size=0,this.__data__={hash:new ee,map:new(ce||X),string:new ee}}function la(i){var u=Oe(this,i).delete(i);return this.size-=u?1:0,u}function da(i){return Oe(this,i).get(i)}function ga(i){return Oe(this,i).has(i)}function ha(i,u){var l=Oe(this,i),g=l.size;return l.set(i,u),this.size+=l.size==g?0:1,this}te.prototype.clear=fa,te.prototype.delete=la,te.prototype.get=da,te.prototype.has=ga,te.prototype.set=ha;function De(i){var u=-1,l=i==null?0:i.length;for(this.__data__=new te;++u<l;)this.add(i[u])}function pa(i){return this.__data__.set(i,n),this}function va(i){return this.__data__.has(i)}De.prototype.add=De.prototype.push=pa,De.prototype.has=va;function V(i){var u=this.__data__=new X(i);this.size=u.size}function ya(){this.__data__=new X,this.size=0}function ma(i){var u=this.__data__,l=u.delete(i);return this.size=u.size,l}function ba(i){return this.__data__.get(i)}function Da(i){return this.__data__.has(i)}function Sa(i,u){var l=this.__data__;if(l instanceof X){var g=l.__data__;if(!ce||g.length<r-1)return g.push([i,u]),this.size=++l.size,this;l=this.__data__=new te(g)}return l.set(i,u),this.size=l.size,this}V.prototype.clear=ya,V.prototype.delete=ma,V.prototype.get=ba,V.prototype.has=Da,V.prototype.set=Sa;function Oa(i,u){var l=Te(i),g=!l&&ja(i),I=!l&&!g&&et(i),y=!l&&!g&&!I&&zt(i),E=l||g||I||y,R=E?Nn(i.length,String):[],M=R.length;for(var _ in i)(u||B.call(i,_))&&!(E&&(_=="length"||I&&(_=="offset"||_=="parent")||y&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||Ra(_,M)))&&R.push(_);return R}function Se(i,u){for(var l=i.length;l--;)if(Ft(i[l][0],u))return l;return-1}function Ta(i,u,l){var g=u(i);return Te(i)?g:$n(g,l(i))}function le(i){return i==null?i===void 0?ue:G:Z&&Z in Object(i)?Aa(i):Na(i)}function jt(i){return de(i)&&le(i)==c}function Lt(i,u,l,g,I){return i===u?!0:i==null||u==null||!de(i)&&!de(u)?i!==i&&u!==u:wa(i,u,l,g,Lt,I)}function wa(i,u,l,g,I,y){var E=Te(i),R=Te(u),M=E?f:Q(i),_=R?f:Q(u);M=M==c?P:M,_=_==c?P:_;var j=M==P,q=_==P,x=M==_;if(x&&et(i)){if(!et(u))return!1;E=!0,j=!1}if(x&&!j)return y||(y=new V),E||zt(i)?Ht(i,u,l,g,I,y):Ea(i,u,M,l,g,I,y);if(!(l&a)){var L=j&&B.call(i,"__wrapped__"),H=q&&B.call(u,"__wrapped__");if(L||H){var J=L?i.value():i,K=H?u.value():u;return y||(y=new V),I(J,K,l,g,y)}}return x?(y||(y=new V),Pa(i,u,l,g,I,y)):!1}function Ia(i){if(!Bt(i)||$a(i))return!1;var u=qt(i)?zn:An;return u.test(re(i))}function Ca(i){return de(i)&&Gt(i.length)&&!!w[le(i)]}function _a(i){if(!xa(i))return Kn(i);var u=[];for(var l in Object(i))B.call(i,l)&&l!="constructor"&&u.push(l);return u}function Ht(i,u,l,g,I,y){var E=l&a,R=i.length,M=u.length;if(R!=M&&!(E&&M>R))return!1;var _=y.get(i);if(_&&y.get(u))return _==u;var j=-1,q=!0,x=l&o?new De:void 0;for(y.set(i,u),y.set(u,i);++j<R;){var L=i[j],H=u[j];if(g)var J=E?g(H,L,j,u,i,y):g(L,H,j,i,u,y);if(J!==void 0){if(J)continue;q=!1;break}if(x){if(!xn(u,function(K,ne){if(!Ln(x,ne)&&(L===K||I(L,K,l,g,y)))return x.push(ne)})){q=!1;break}}else if(!(L===H||I(L,H,l,g,y))){q=!1;break}}return y.delete(i),y.delete(u),q}function Ea(i,u,l,g,I,y,E){switch(l){case ye:if(i.byteLength!=u.byteLength||i.byteOffset!=u.byteOffset)return!1;i=i.buffer,u=u.buffer;case Ot:return!(i.byteLength!=u.byteLength||!y(new Mt(i),new Mt(u)));case v:case b:case N:return Ft(+i,+u);case O:return i.name==u.name&&i.message==u.message;case A:case k:return i==u+"";case C:var R=Un;case $:var M=g&a;if(R||(R=qn),i.size!=u.size&&!M)return!1;var _=E.get(i);if(_)return _==u;g|=o,E.set(i,u);var j=Ht(R(i),R(u),g,I,y,E);return E.delete(i),j;case Y:if(Ze)return Ze.call(i)==Ze.call(u)}return!1}function Pa(i,u,l,g,I,y){var E=l&a,R=Ut(i),M=R.length,_=Ut(u),j=_.length;if(M!=j&&!E)return!1;for(var q=M;q--;){var x=R[q];if(!(E?x in u:B.call(u,x)))return!1}var L=y.get(i);if(L&&y.get(u))return L==u;var H=!0;y.set(i,u),y.set(u,i);for(var J=E;++q<M;){x=R[q];var K=i[x],ne=u[x];if(g)var Wt=E?g(ne,K,x,u,i,y):g(K,ne,x,i,u,y);if(!(Wt===void 0?K===ne||I(K,ne,l,g,y):Wt)){H=!1;break}J||(J=x=="constructor")}if(H&&!J){var we=i.constructor,Ie=u.constructor;we!=Ie&&"constructor"in i&&"constructor"in u&&!(typeof we=="function"&&we instanceof we&&typeof Ie=="function"&&Ie instanceof Ie)&&(H=!1)}return y.delete(i),y.delete(u),H}function Ut(i){return Ta(i,Ua,ka)}function Oe(i,u){var l=i.__data__;return Ma(u)?l[typeof u=="string"?"string":"hash"]:l.map}function ie(i,u){var l=Hn(i,u);return Ia(l)?l:void 0}function Aa(i){var u=B.call(i,Z),l=i[Z];try{i[Z]=void 0;var g=!0}catch{}var I=kt.call(i);return g&&(u?i[Z]=l:delete i[Z]),I}var ka=xt?function(i){return i==null?[]:(i=Object(i),Mn(xt(i),function(u){return $t.call(i,u)}))}:Fa,Q=le;(Ye&&Q(new Ye(new ArrayBuffer(1)))!=ye||ce&&Q(new ce)!=C||Ve&&Q(Ve.resolve())!=T||Qe&&Q(new Qe)!=$||Je&&Q(new Je)!=se)&&(Q=function(i){var u=le(i),l=u==P?i.constructor:void 0,g=l?re(l):"";if(g)switch(g){case Yn:return ye;case Vn:return C;case Qn:return T;case Jn:return $;case Zn:return se}return u});function Ra(i,u){return u=u??s,!!u&&(typeof i=="number"||kn.test(i))&&i>-1&&i%1==0&&i<u}function Ma(i){var u=typeof i;return u=="string"||u=="number"||u=="symbol"||u=="boolean"?i!=="__proto__":i===null}function $a(i){return!!At&&At in i}function xa(i){var u=i&&i.constructor,l=typeof u=="function"&&u.prototype||me;return i===l}function Na(i){return kt.call(i)}function re(i){if(i!=null){try{return Pt.call(i)}catch{}try{return i+""}catch{}}return""}function Ft(i,u){return i===u||i!==i&&u!==u}var ja=jt(function(){return arguments}())?jt:function(i){return de(i)&&B.call(i,"callee")&&!$t.call(i,"callee")},Te=Array.isArray;function La(i){return i!=null&&Gt(i.length)&&!qt(i)}var et=Xn||qa;function Ha(i,u){return Lt(i,u)}function qt(i){if(!Bt(i))return!1;var u=le(i);return u==m||u==S||u==d||u==p}function Gt(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=s}function Bt(i){var u=typeof i;return i!=null&&(u=="object"||u=="function")}function de(i){return i!=null&&typeof i=="object"}var zt=Et?jn(Et):Ca;function Ua(i){return La(i)?Oa(i):_a(i)}function Fa(){return[]}function qa(){return!1}e.exports=Ha})(Le,Le.exports);var Wa=Le.exports;const As=Ga(Wa);var F;(function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"})(F||(F={}));function h(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),a=2;a<r;a++)n[a-2]=arguments[a];if(!e){var o;if(t===void 0)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=0;o=new Error(t.replace(/%s/g,function(){return n[s++]})),o.name="Invariant Violation"}throw o.framesToPop=1,o}}var gt="dnd-core/INIT_COORDS",qe="dnd-core/BEGIN_DRAG",ht="dnd-core/PUBLISH_DRAG_SOURCE",Ge="dnd-core/HOVER",Be="dnd-core/DROP",ze="dnd-core/END_DRAG";function Xt(e,t){return{type:gt,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function Pe(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Pe=function(r){return typeof r}:Pe=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Pe(e)}function Xa(e,t,r){return t.split(".").reduce(function(n,a){return n&&n[a]?n[a]:r||null},e)}function Ka(e,t){return e.filter(function(r){return r!==t})}function zr(e){return Pe(e)==="object"}function Ya(e,t){var r=new Map,n=function(s){r.set(s,r.has(s)?r.get(s)+1:1)};e.forEach(n),t.forEach(n);var a=[];return r.forEach(function(o,s){o===1&&a.push(s)}),a}function Va(e,t){return e.filter(function(r){return t.indexOf(r)>-1})}var Qa={type:gt,payload:{clientOffset:null,sourceClientOffset:null}};function Ja(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},a=n.publishSource,o=a===void 0?!0:a,s=n.clientOffset,c=n.getSourceClientOffset,f=e.getMonitor(),d=e.getRegistry();e.dispatch(Xt(s)),Za(r,f,d);var v=ri(r,f);if(v===null){e.dispatch(Qa);return}var b=null;if(s){if(!c)throw new Error("getSourceClientOffset must be defined");ei(c),b=c(v)}e.dispatch(Xt(s,b));var O=d.getSource(v),m=O.beginDrag(f,v);ti(m),d.pinSource(v);var S=d.getSourceType(v);return{type:qe,payload:{itemType:S,item:m,sourceId:v,clientOffset:s||null,sourceClientOffset:b||null,isSourcePublic:!!o}}}}function Za(e,t,r){h(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach(function(n){h(r.getSource(n),"Expected sourceIds to be registered.")})}function ei(e){h(typeof e=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function ti(e){h(zr(e),"Item must be an object.")}function ri(e,t){for(var r=null,n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}function ni(e){return function(){var r=e.getMonitor();if(r.isDragging())return{type:ht}}}function ot(e,t){return t===null?e===null:Array.isArray(e)?e.some(function(r){return r===t}):e===t}function ai(e){return function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.clientOffset;ii(r);var o=r.slice(0),s=e.getMonitor(),c=e.getRegistry();oi(o,s,c);var f=s.getItemType();return ui(o,c,f),si(o,s,c),{type:Ge,payload:{targetIds:o,clientOffset:a||null}}}}function ii(e){h(Array.isArray(e),"Expected targetIds to be an array.")}function oi(e,t,r){h(t.isDragging(),"Cannot call hover while not dragging."),h(!t.didDrop(),"Cannot call hover after drop.");for(var n=0;n<e.length;n++){var a=e[n];h(e.lastIndexOf(a)===n,"Expected targetIds to be unique in the passed array.");var o=r.getTarget(a);h(o,"Expected targetIds to be registered.")}}function ui(e,t,r){for(var n=e.length-1;n>=0;n--){var a=e[n],o=t.getTargetType(a);ot(o,r)||e.splice(n,1)}}function si(e,t,r){e.forEach(function(n){var a=r.getTarget(n);a.hover(t,n)})}function Kt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Yt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Kt(Object(r),!0).forEach(function(n){ci(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ci(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fi(e){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.getMonitor(),a=e.getRegistry();li(n);var o=hi(n);o.forEach(function(s,c){var f=di(s,c,a,n),d={type:Be,payload:{dropResult:Yt(Yt({},r),f)}};e.dispatch(d)})}}function li(e){h(e.isDragging(),"Cannot call drop while not dragging."),h(!e.didDrop(),"Cannot call drop twice during one drag operation.")}function di(e,t,r,n){var a=r.getTarget(e),o=a?a.drop(n,e):void 0;return gi(o),typeof o>"u"&&(o=t===0?{}:n.getDropResult()),o}function gi(e){h(typeof e>"u"||zr(e),"Drop result must either be an object or undefined.")}function hi(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function pi(e){return function(){var r=e.getMonitor(),n=e.getRegistry();vi(r);var a=r.getSourceId();if(a!=null){var o=n.getSource(a,!0);o.endDrag(r,a),n.unpinSource()}return{type:ze}}}function vi(e){h(e.isDragging(),"Cannot call endDrag while not dragging.")}function yi(e){return{beginDrag:Ja(e),publishDragSource:ni(e),hover:ai(e),drop:fi(e),endDrag:pi(e)}}var mi=function(t,r){return t===r};function bi(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function Di(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:mi;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}function Vt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Qt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vt(Object(r),!0).forEach(function(n){Si(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Si(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Jt={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Oi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jt,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case gt:case qe:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case Ge:return bi(e.clientOffset,r.clientOffset)?e:Qt(Qt({},e),{},{clientOffset:r.clientOffset});case ze:case Be:return Jt;default:return e}}var pt="dnd-core/ADD_SOURCE",vt="dnd-core/ADD_TARGET",yt="dnd-core/REMOVE_SOURCE",We="dnd-core/REMOVE_TARGET";function Ti(e){return{type:pt,payload:{sourceId:e}}}function wi(e){return{type:vt,payload:{targetId:e}}}function Ii(e){return{type:yt,payload:{sourceId:e}}}function Ci(e){return{type:We,payload:{targetId:e}}}function Zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function U(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zt(Object(r),!0).forEach(function(n){_i(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ei={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Pi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ei,t=arguments.length>1?arguments[1]:void 0,r=t.payload;switch(t.type){case qe:return U(U({},e),{},{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case ht:return U(U({},e),{},{isSourcePublic:!0});case Ge:return U(U({},e),{},{targetIds:r.targetIds});case We:return e.targetIds.indexOf(r.targetId)===-1?e:U(U({},e),{},{targetIds:Ka(e.targetIds,r.targetId)});case Be:return U(U({},e),{},{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case ze:return U(U({},e),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function Ai(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case pt:case vt:return e+1;case yt:case We:return e-1;default:return e}}var He=[],mt=[];He.__IS_NONE__=!0;mt.__IS_ALL__=!0;function ki(e,t){if(e===He)return!1;if(e===mt||typeof t>"u")return!0;var r=Va(t,e);return r.length>0}function Ri(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case Ge:break;case pt:case vt:case We:case yt:return He;case qe:case ht:case ze:case Be:default:return mt}var t=e.payload,r=t.targetIds,n=r===void 0?[]:r,a=t.prevTargetIds,o=a===void 0?[]:a,s=Ya(n,o),c=s.length>0||!Di(n,o);if(!c)return He;var f=o[o.length-1],d=n[n.length-1];return f!==d&&(f&&s.push(f),d&&s.push(d)),s}function Mi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return e+1}function er(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function tr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?er(Object(r),!0).forEach(function(n){$i(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):er(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:Ri(e.dirtyHandlerIds,{type:t.type,payload:tr(tr({},t.payload),{},{prevTargetIds:Xa(e,"dragOperation.targetIds",[])})}),dragOffset:Oi(e.dragOffset,t),refCount:Ai(e.refCount,t),dragOperation:Pi(e.dragOperation,t),stateId:Mi(e.stateId)}}function Ni(e,t){return{x:e.x+t.x,y:e.y+t.y}}function Wr(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ji(e){var t=e.clientOffset,r=e.initialClientOffset,n=e.initialSourceClientOffset;return!t||!r||!n?null:Wr(Ni(t,n),r)}function Li(e){var t=e.clientOffset,r=e.initialClientOffset;return!t||!r?null:Wr(t,r)}function Hi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function Ui(e,t,r){return t&&rr(e.prototype,t),r&&rr(e,r),e}var Fi=function(){function e(t,r){Hi(this,e),this.store=t,this.registry=r}return Ui(e,[{key:"subscribeToStateChange",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{handlerIds:void 0},o=a.handlerIds;h(typeof r=="function","listener must be a function."),h(typeof o>"u"||Array.isArray(o),"handlerIds, when specified, must be an array of strings.");var s=this.store.getState().stateId,c=function(){var d=n.store.getState(),v=d.stateId;try{var b=v===s||v===s+1&&!ki(d.dirtyHandlerIds,o);b||r()}finally{s=v}};return this.store.subscribe(c)}},{key:"subscribeToOffsetChange",value:function(r){var n=this;h(typeof r=="function","listener must be a function.");var a=this.store.getState().dragOffset,o=function(){var c=n.store.getState().dragOffset;c!==a&&(a=c,r())};return this.store.subscribe(o)}},{key:"canDragSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r);return h(n,"Expected to find a valid source."),this.isDragging()?!1:n.canDrag(this,r)}},{key:"canDropOnTarget",value:function(r){if(!r)return!1;var n=this.registry.getTarget(r);if(h(n,"Expected to find a valid target."),!this.isDragging()||this.didDrop())return!1;var a=this.registry.getTargetType(r),o=this.getItemType();return ot(a,o)&&n.canDrop(this,r)}},{key:"isDragging",value:function(){return!!this.getItemType()}},{key:"isDraggingSource",value:function(r){if(!r)return!1;var n=this.registry.getSource(r,!0);if(h(n,"Expected to find a valid source."),!this.isDragging()||!this.isSourcePublic())return!1;var a=this.registry.getSourceType(r),o=this.getItemType();return a!==o?!1:n.isDragging(this,r)}},{key:"isOverTarget",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!r)return!1;var a=n.shallow;if(!this.isDragging())return!1;var o=this.registry.getTargetType(r),s=this.getItemType();if(s&&!ot(o,s))return!1;var c=this.getTargetIds();if(!c.length)return!1;var f=c.indexOf(r);return a?f===c.length-1:f>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return!!this.store.getState().dragOperation.isSourcePublic}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return ji(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return Li(this.store.getState().dragOffset)}}]),e}(),qi=0;function Gi(){return qi++}function Ae(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ae=function(r){return typeof r}:Ae=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ae(e)}function Bi(e){h(typeof e.canDrag=="function","Expected canDrag to be a function."),h(typeof e.beginDrag=="function","Expected beginDrag to be a function."),h(typeof e.endDrag=="function","Expected endDrag to be a function.")}function zi(e){h(typeof e.canDrop=="function","Expected canDrop to be a function."),h(typeof e.hover=="function","Expected hover to be a function."),h(typeof e.drop=="function","Expected beginDrag to be a function.")}function ut(e,t){if(t&&Array.isArray(e)){e.forEach(function(r){return ut(r,!1)});return}h(typeof e=="string"||Ae(e)==="symbol",t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const nr=typeof je<"u"?je:self,Xr=nr.MutationObserver||nr.WebKitMutationObserver;function Kr(e){return function(){const r=setTimeout(a,0),n=setInterval(a,50);function a(){clearTimeout(r),clearInterval(n),e()}}}function Wi(e){let t=1;const r=new Xr(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}const Xi=typeof Xr=="function"?Wi:Kr;class Ki{enqueueTask(t){const{queue:r,requestFlush:n}=this;r.length||(n(),this.flushing=!0),r[r.length]=t}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:t}=this;for(;this.index<t.length;){const r=this.index;if(this.index++,t[r].call(),this.index>this.capacity){for(let n=0,a=t.length-this.index;n<a;n++)t[n]=t[n+this.index];t.length-=this.index,this.index=0}}t.length=0,this.index=0,this.flushing=!1},this.registerPendingError=t=>{this.pendingErrors.push(t),this.requestErrorThrow()},this.requestFlush=Xi(this.flush),this.requestErrorThrow=Kr(()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()})}}class Yi{call(){try{this.task&&this.task()}catch(t){this.onError(t)}finally{this.task=null,this.release(this)}}constructor(t,r){this.onError=t,this.release=r,this.task=null}}class Vi{create(t){const r=this.freeTasks,n=r.length?r.pop():new Yi(this.onError,a=>r[r.length]=a);return n.task=t,n}constructor(t){this.onError=t,this.freeTasks=[]}}const Yr=new Ki,Qi=new Vi(Yr.registerPendingError);function Ji(e){Yr.enqueueTask(Qi.create(e))}function Zi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ar(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function eo(e,t,r){return t&&ar(e.prototype,t),r&&ar(e,r),e}function to(e,t){return io(e)||ao(e,t)||no(e,t)||ro()}function ro(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function no(e,t){if(e){if(typeof e=="string")return ir(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ir(e,t)}}function ir(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ao(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function io(e){if(Array.isArray(e))return e}function oo(e){var t=Gi().toString();switch(e){case F.SOURCE:return"S".concat(t);case F.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function or(e){switch(e[0]){case"S":return F.SOURCE;case"T":return F.TARGET;default:h(!1,"Cannot parse handler ID: ".concat(e))}}function ur(e,t){var r=e.entries(),n=!1;do{var a=r.next(),o=a.done,s=to(a.value,2),c=s[1];if(c===t)return!0;n=!!o}while(!n);return!1}var uo=function(){function e(t){Zi(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}return eo(e,[{key:"addSource",value:function(r,n){ut(r),Bi(n);var a=this.addHandler(F.SOURCE,r,n);return this.store.dispatch(Ti(a)),a}},{key:"addTarget",value:function(r,n){ut(r,!0),zi(n);var a=this.addHandler(F.TARGET,r,n);return this.store.dispatch(wi(a)),a}},{key:"containsHandler",value:function(r){return ur(this.dragSources,r)||ur(this.dropTargets,r)}},{key:"getSource",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;h(this.isSourceId(r),"Expected a valid source ID.");var a=n&&r===this.pinnedSourceId,o=a?this.pinnedSource:this.dragSources.get(r);return o}},{key:"getTarget",value:function(r){return h(this.isTargetId(r),"Expected a valid target ID."),this.dropTargets.get(r)}},{key:"getSourceType",value:function(r){return h(this.isSourceId(r),"Expected a valid source ID."),this.types.get(r)}},{key:"getTargetType",value:function(r){return h(this.isTargetId(r),"Expected a valid target ID."),this.types.get(r)}},{key:"isSourceId",value:function(r){var n=or(r);return n===F.SOURCE}},{key:"isTargetId",value:function(r){var n=or(r);return n===F.TARGET}},{key:"removeSource",value:function(r){var n=this;h(this.getSource(r),"Expected an existing source."),this.store.dispatch(Ii(r)),Ji(function(){n.dragSources.delete(r),n.types.delete(r)})}},{key:"removeTarget",value:function(r){h(this.getTarget(r),"Expected an existing target."),this.store.dispatch(Ci(r)),this.dropTargets.delete(r),this.types.delete(r)}},{key:"pinSource",value:function(r){var n=this.getSource(r);h(n,"Expected an existing source."),this.pinnedSourceId=r,this.pinnedSource=n}},{key:"unpinSource",value:function(){h(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(r,n,a){var o=oo(r);return this.types.set(o,n),r===F.SOURCE?this.dragSources.set(o,a):r===F.TARGET&&this.dropTargets.set(o,a),o}}]),e}();function so(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function co(e,t,r){return t&&sr(e.prototype,t),r&&sr(e,r),e}function fo(e){var t=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return za(xi,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}var lo=function(){function e(){var t=this,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;so(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var a=t.store.getState().refCount>0;t.backend&&(a&&!t.isSetUp?(t.backend.setup(),t.isSetUp=!0):!a&&t.isSetUp&&(t.backend.teardown(),t.isSetUp=!1))};var n=fo(r);this.store=n,this.monitor=new Fi(n,new uo(n)),n.subscribe(this.handleRefCountChange)}return co(e,[{key:"receiveBackend",value:function(r){this.backend=r}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var r=this,n=this.store.dispatch;function a(s){return function(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];var v=s.apply(r,f);typeof v<"u"&&n(v)}}var o=yi(this);return Object.keys(o).reduce(function(s,c){var f=o[c];return s[c]=a(f),s},{})}},{key:"dispatch",value:function(r){this.store.dispatch(r)}}]),e}();function go(e,t,r,n){var a=new lo(n),o=e(a,t,r);return a.receiveBackend(o),a}var ve=D.createContext({dragDropManager:void 0});function Vr(e,t,r,n){return{dragDropManager:go(e,t,r,n)}}function ho(e,t){return mo(e)||yo(e,t)||vo(e,t)||po()}function po(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vo(e,t){if(e){if(typeof e=="string")return cr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return cr(e,t)}}function cr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yo(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function mo(e){if(Array.isArray(e))return e}function bo(e,t){if(e==null)return{};var r=Do(e,t),n,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)n=o[a],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Do(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,o;for(o=0;o<n.length;o++)a=n[o],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var tt=0,Qr=D.memo(function(e){var t=e.children,r=bo(e,["children"]),n=So(r),a=ho(n,2),o=a[0],s=a[1];return D.useEffect(function(){return s&&tt++,function(){if(s&&(tt--,tt===0)){var c=Jr();c[ke]=null}}},[]),D.createElement(ve.Provider,{value:o},t)});Qr.displayName="DndProvider";function So(e){if("manager"in e){var t={dragDropManager:e.manager};return[t,!1]}var r=Oo(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[r,n]}var ke=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function Oo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Jr(),r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,a=t;return a[ke]||(a[ke]=Vr(e,t,r,n)),a[ke]}function Jr(){return typeof je<"u"?je:window}var Zr=D.memo(function(e){var t=e.connect,r=e.src;return D.useEffect(function(){if(!(typeof Image>"u")){var n=!1,a=new Image;return a.src=r,a.onload=function(){t(a),n=!0},function(){n&&t(null)}}}),null});Zr.displayName="DragPreviewImage";var ae=typeof window<"u"?D.useLayoutEffect:D.useEffect;function z(e,t,r,n){var a=r?r.call(n,e,t):void 0;if(a!==void 0)return!!a;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;var o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(t),f=0;f<o.length;f++){var d=o[f];if(!c(d))return!1;var v=e[d],b=t[d];if(a=r?r.call(n,v,b,d):void 0,a===!1||a===void 0&&v!==b)return!1}return!0}function To(e,t){return _o(e)||Co(e,t)||Io(e,t)||wo()}function wo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4
4
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Io(e,t){if(e){if(typeof e=="string")return fr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fr(e,t)}}function fr(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Co(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,o=void 0;try{for(var s=e[Symbol.iterator](),c;!(n=(c=s.next()).done)&&(r.push(c.value),!(t&&r.length===t));n=!0);}catch(f){a=!0,o=f}finally{try{!n&&s.return!=null&&s.return()}finally{if(a)throw o}}return r}}function _o(e){if(Array.isArray(e))return e}function en(e,t,r){var n=D.useState(function(){return t(e)}),a=To(n,2),o=a[0],s=a[1],c=D.useCallback(function(){var f=t(e);z(o,f)||(s(f),r&&r())},[o,e,r]);return ae(c,[]),[o,c]}function Eo(e,t){return Ro(e)||ko(e,t)||Ao(e,t)||Po()}function Po(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
@@ -1 +1 @@
1
- import{r as a,E as e,j as t,ar as n,G as o}from"./index-feKj5cCa.js";function p(){const{t:s}=a.useContext(e);return t.jsx(r,{style:{paddingTop:"25vh"},children:t.jsx(n,{status:"404",description:s("noMatch.desc"),style:{backgroundColor:"transparent"}})})}const r=o.main``;export{p as default};
1
+ import{r as a,E as e,j as t,ar as n,G as o}from"./index-uIKkPDx2.js";function p(){const{t:s}=a.useContext(e);return t.jsx(r,{style:{paddingTop:"25vh"},children:t.jsx(n,{status:"404",description:s("noMatch.desc"),style:{backgroundColor:"transparent"}})})}const r=o.main``;export{p as default};