@abtnode/blocklet-services 1.16.34-beta-20241204-140321-4d75ca21 → 1.16.34-beta-20241205-145120-3a7aa096

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 (285) hide show
  1. package/api/libs/connect/session.js +4 -4
  2. package/api/middlewares/check-federated.js +157 -0
  3. package/api/routes/federated.js +529 -573
  4. package/api/routes/oauth.js +32 -54
  5. package/api/routes/user-session.js +239 -214
  6. package/api/routes/user.js +52 -45
  7. package/api/services/auth/connect/invite.js +1 -1
  8. package/api/services/auth/connect/issue-passport.js +1 -1
  9. package/api/services/auth/session.js +31 -9
  10. package/api/util/attach-shared-utils.js +6 -6
  11. package/api/util/federated.js +28 -72
  12. package/dist/assets/Add-CEkiASJk.js +1 -0
  13. package/dist/assets/{Alert-XwCbbCdw.js → Alert-D7cZ7kYh.js} +1 -1
  14. package/dist/assets/ArrowDropDown-CNA2YBpw.js +1 -0
  15. package/dist/assets/{Autocomplete-CtKfl8OV.js → Autocomplete-DqOPJmfP.js} +1 -1
  16. package/dist/assets/{Avatar-BuTYVz6S.js → Avatar-CC2uCgJO.js} +1 -1
  17. package/dist/assets/{ButtonGroup-9mTO_MUt.js → ButtonGroup-DVkbPyCf.js} +1 -1
  18. package/dist/assets/{CSSTransition-VPmtoKE7.js → CSSTransition-CAyoWadY.js} +1 -1
  19. package/dist/assets/CheckCircle-ne5PaInr.js +1 -0
  20. package/dist/assets/ChevronLeft-CzFyG6B9.js +1 -0
  21. package/dist/assets/ChevronRight-D28wkT_7.js +1 -0
  22. package/dist/assets/Delete-W0XHLr5E.js +1 -0
  23. package/dist/assets/DeleteOutline-CBAPet9Y.js +1 -0
  24. package/dist/assets/DialogContentText-DF6wXq4v.js +1 -0
  25. package/dist/assets/Done-BMgw3G29.js +1 -0
  26. package/dist/assets/Download-CWu1DNgF.js +1 -0
  27. package/dist/assets/{EditIcon-D5uy6dXe.js → EditIcon-L7k3tqrQ.js} +1 -1
  28. package/dist/assets/Error-DewSa72i.js +1 -0
  29. package/dist/assets/ExpandMore-dR0m3faK.js +1 -0
  30. package/dist/assets/FormControl-C3U9aSdK.js +1 -0
  31. package/dist/assets/{FormControlLabel-Ka9Y3VW4.js → FormControlLabel-uhzkWhIR.js} +1 -1
  32. package/dist/assets/FormGroup-zmk2zBRp.js +1 -0
  33. package/dist/assets/{Google-fmIzZ4SE.js → Google-BJOVX6-i.js} +1 -1
  34. package/dist/assets/{Grid-CLg9BKgo.js → Grid-CRcYquo8.js} +1 -1
  35. package/dist/assets/HelpOutline-1C4eFcXT.js +1 -0
  36. package/dist/assets/Hidden-C6Nsczh0.js +1 -0
  37. package/dist/assets/InfoOutlined-0F0dMk0M.js +1 -0
  38. package/dist/assets/{InputAdornment-7bcT-OxU.js → InputAdornment-HjZlszj5.js} +1 -1
  39. package/dist/assets/{LastPage-BNIPjfIv.js → LastPage-C8Ibu_ZS.js} +1 -1
  40. package/dist/assets/Launch-_9WY6qT8.js +1 -0
  41. package/dist/assets/LaunchOutlined-DpBWMSDU.js +1 -0
  42. package/dist/assets/{Link-Dgz_hg-A.js → Link-BHzX6Bty.js} +1 -1
  43. package/dist/assets/{ListItemButton-COVroopz.js → ListItemButton-Bg2hcpe4.js} +1 -1
  44. package/dist/assets/{ListSubheader-DoFPqSxT.js → ListSubheader-BnOsaMFL.js} +1 -1
  45. package/dist/assets/{LoadingButton-Cpsng3ic.js → LoadingButton-DHvQ4mj0.js} +1 -1
  46. package/dist/assets/{LockIcon-xMd6TgDT.js → LockIcon-BF2LVzIr.js} +1 -1
  47. package/dist/assets/Loop-DwW0YmEY.js +1 -0
  48. package/dist/assets/MarkEmailRead-BUgtVfuj.js +1 -0
  49. package/dist/assets/Menu-C0_eNw-R.js +1 -0
  50. package/dist/assets/MoreHoriz-B3eBOSmM.js +1 -0
  51. package/dist/assets/MoreVert-9FUIKqvo.js +1 -0
  52. package/dist/assets/OpenInNew-IfJ9_ovA.js +1 -0
  53. package/dist/assets/{Pagination-BdODbVsE.js → Pagination-KTMAbLPe.js} +1 -1
  54. package/dist/assets/PlayArrow-BzCvLnOA.js +1 -0
  55. package/dist/assets/{QuestionMarkCircle-CeLvEIhA.js → QuestionMarkCircle-Bp1qdiMj.js} +1 -1
  56. package/dist/assets/{RadioGroup-CkuUb_-r.js → RadioGroup-D6iB2v9N.js} +1 -1
  57. package/dist/assets/Search-CeQJr6Zd.js +1 -0
  58. package/dist/assets/{Select-BM5xijW7.js → Select-63T17LTs.js} +2 -2
  59. package/dist/assets/{ServerLogo-CocwN-L6.js → ServerLogo-BjD55kNo.js} +1 -1
  60. package/dist/assets/{Skeleton-BQ4gLbdR.js → Skeleton-Cguhg4Uf.js} +5 -5
  61. package/dist/assets/{Stack-690-8aHU.js → Stack-B2wvO5ch.js} +1 -1
  62. package/dist/assets/{Stepper-DPFFvB9h.js → Stepper-Cf6EXzKT.js} +1 -1
  63. package/dist/assets/{TextField-CFRK87D0.js → TextField-DaxOve82.js} +1 -1
  64. package/dist/assets/{Toolbar-Ba22YRhW.js → Toolbar-CbY6pPMn.js} +1 -1
  65. package/dist/assets/ViewColumn-BSkUFzQn.js +1 -0
  66. package/dist/assets/ViewList-BJW4-xJh.js +1 -0
  67. package/dist/assets/{_createAggregator-Ct5VkIH5.js → _createAggregator-gmWpxOiT.js} +1 -1
  68. package/dist/assets/access-control-hkwSmrDz.js +13 -0
  69. package/dist/assets/{actions-R7d7-bh3.js → actions-mviDIL98.js} +1 -1
  70. package/dist/assets/{add-component-core-qARkFBQB.js → add-component-core-D8ycTCOD.js} +10 -10
  71. package/dist/assets/add-resource-Dvlc6tV9.js +1 -0
  72. package/dist/assets/{addon-BJli1WRW.js → addon-CBWbLYEt.js} +1 -1
  73. package/dist/assets/{analytics-B3iUwhYK.js → analytics-DEYYvSpr.js} +7 -7
  74. package/dist/assets/api-09lpjN_y.js +1 -0
  75. package/dist/assets/{ar-7AvHBDLJ.js → ar-BENken66.js} +1 -1
  76. package/dist/assets/audit-logs-CKasQ1r7.js +58 -0
  77. package/dist/assets/{base32-Mo2B3fHT.js → base32-BodeVrwr.js} +1 -1
  78. package/dist/assets/{branding-BThKyvoW.js → branding-C6L3eHHi.js} +2 -2
  79. package/dist/assets/bundle-avatar-DGCY6XtV.js +1 -0
  80. package/dist/assets/{button-eTEsJSJ0.js → button-_kh3esRx.js} +1 -1
  81. package/dist/assets/{click-to-copy-CkFI8a1W.js → click-to-copy-Dhz68Zb7.js} +1 -1
  82. package/dist/assets/{complete-Bb-6z_26.js → complete-CbF_9acR.js} +4 -4
  83. package/dist/assets/{component-kGv-hUvT.js → component-TW3Q8q-H.js} +2 -2
  84. package/dist/assets/{config-BVYueZpV.js → config-DOKBlczF.js} +2 -2
  85. package/dist/assets/config-NLq72VC7.js +1 -0
  86. package/dist/assets/{config-navigation-NUbYVs4N.js → config-navigation-BrZYJfdX.js} +5 -5
  87. package/dist/assets/config-space-CgNK0LkG.js +1 -0
  88. package/dist/assets/{confirm-CIF7Vu-X.js → confirm-CgBlPewa.js} +1 -1
  89. package/dist/assets/{connect-Dj-BrpmM.js → connect-BLWlkmzZ.js} +2 -2
  90. package/dist/assets/connect-BoJDz_r9.js +1 -0
  91. package/dist/assets/{connect-to-ZJr8_Nq9.js → connect-to-Bjjro7dm.js} +1 -1
  92. package/dist/assets/{content-layout-DSpN7kL2.js → content-layout-De6X9MfH.js} +1 -1
  93. package/dist/assets/{dashboard-BUsMb2Wm.js → dashboard-DNfo36ET.js} +7 -7
  94. package/dist/assets/{de-S6ufmRx0.js → de-C8d8saMJ.js} +1 -1
  95. package/dist/assets/{deprecate-W6wP2f1U.js → deprecate-C8CVzteH.js} +1 -1
  96. package/dist/assets/{did-address-DpP51eII.js → did-address-CQAHayeq.js} +1 -1
  97. package/dist/assets/domain-4tz_iUAg.js +9 -0
  98. package/dist/assets/domain-list-CSCowbSF.js +15 -0
  99. package/dist/assets/{email-DETfN-BC.js → email-B7GCHFcD.js} +3 -3
  100. package/dist/assets/emotion-cache.browser.esm-7imm0F3K.js +1 -0
  101. package/dist/assets/{es-Sth9cv6C.js → es-8ZzWXB3U.js} +1 -1
  102. package/dist/assets/exchange-passport-BMGoDnTe.js +1 -0
  103. package/dist/assets/{fallback-CTOpqcoo.js → fallback-xgYg9R2J.js} +1 -1
  104. package/dist/assets/form-text-input-D8gtQI8g.js +11 -0
  105. package/dist/assets/{format-error-jTY-wvGv.js → format-error-kGGriKiA.js} +2 -2
  106. package/dist/assets/{fr-BX6bo8e1.js → fr-CDmTLuDM.js} +1 -1
  107. package/dist/assets/{fuel-Dx06V-YR.js → fuel-NUdjiJCN.js} +1 -1
  108. package/dist/assets/{fullpage-Dz8PPWdq.js → fullpage-BVHpRAYk.js} +1 -1
  109. package/dist/assets/{hi-pYobKga6.js → hi-DfYUKMCb.js} +1 -1
  110. package/dist/assets/{home-BCoo1Guo.js → home-rJKruo1j.js} +1 -1
  111. package/dist/assets/{id-Xei40tOm.js → id-BeY7iur-.js} +1 -1
  112. package/dist/assets/{iframe-GN8AUKA4.js → iframe-Cv3PJcvz.js} +1 -1
  113. package/dist/assets/index-6GwWrwWj.js +16 -0
  114. package/dist/assets/{index-cIe0Ged1.js → index-B2zxMB5n.js} +1 -1
  115. package/dist/assets/{index-B019qXp1.js → index-BHrceiDz.js} +1 -1
  116. package/dist/assets/{index-BDxuBkP1.js → index-BIDxxb9t.js} +1 -1
  117. package/dist/assets/{index-COdSzYad.js → index-BILgagmI.js} +2 -2
  118. package/dist/assets/{index-Bs9TLgSC.js → index-BM0eHOUA.js} +2 -2
  119. package/dist/assets/index-BaLRQJTh.js +102 -0
  120. package/dist/assets/{index-B3pPqycI.js → index-BlTIDXDG.js} +1 -1
  121. package/dist/assets/{index-BidszMO2.js → index-BnljNGH7.js} +38 -38
  122. package/dist/assets/{index-W2CQmt_X.js → index-BxZgdCUX.js} +2 -2
  123. package/dist/assets/{index-delqLXRr.js → index-C-s0lU62.js} +8 -8
  124. package/dist/assets/index-CBp5iNXP.js +1 -0
  125. package/dist/assets/{index-4RJk4AiM.js → index-CETPQNRT.js} +1 -1
  126. package/dist/assets/{index-yi-655mj.js → index-CKLF9fLH.js} +1 -1
  127. package/dist/assets/{index-BjfhU-QW.js → index-CMY8zSjT.js} +1 -1
  128. package/dist/assets/{index-ZPFypmuO.js → index-CTGtgEeG.js} +1 -1
  129. package/dist/assets/{index-BXHMtAUn.js → index-C_vk9fqw.js} +2 -2
  130. package/dist/assets/{index-q1m8Euwz.js → index-CuHWguJg.js} +1 -1
  131. package/dist/assets/{index-BxKrUgd9.js → index-Cu_bNPbk.js} +70 -70
  132. package/dist/assets/index-D1YHjvRT.js +4 -0
  133. package/dist/assets/{index-CG1XIXZC.js → index-D1YU1vFk.js} +1 -1
  134. package/dist/assets/{index-BzVm0XuZ.js → index-D2d4qfN2.js} +1 -1
  135. package/dist/assets/{index-UEoZJA9L.js → index-DAKGZhdR.js} +1 -1
  136. package/dist/assets/index-DQrMXKph.js +1 -0
  137. package/dist/assets/{index-CYQV6023.js → index-DToO2H3Q.js} +12 -12
  138. package/dist/assets/{index-DgonWrzm.js → index-DeYzXL4z.js} +4 -4
  139. package/dist/assets/{index-BP0LEaeg.js → index-DpZHKufu.js} +8 -8
  140. package/dist/assets/index-DqjLLD7P.js +5 -0
  141. package/dist/assets/{index-CjkNshyI.js → index-Dt4OruAC.js} +1 -1
  142. package/dist/assets/{index-B_EeAcSB.js → index-HYjTpFy9.js} +1 -1
  143. package/dist/assets/index-J3ZVv3j-.js +316 -0
  144. package/dist/assets/{index-rA_BKM5G.js → index-MtDT2QJN.js} +3 -3
  145. package/dist/assets/{index-8OiEpVkg.js → index-ag_Qlo60.js} +1 -1
  146. package/dist/assets/{index-B3Z8DzsY.js → index-mFPL7bdj.js} +3 -3
  147. package/dist/assets/{index-Db_Y81_-.js → index-nKobfUQ1.js} +1 -1
  148. package/dist/assets/{invitation-BPrK4inJ.js → invitation-DLNLgy6r.js} +5 -5
  149. package/dist/assets/invite-DPYR6t3s.js +5 -0
  150. package/dist/assets/{isEmail-BnC4loew.js → isEmail-i2tngnJi.js} +1 -1
  151. package/dist/assets/{issue-passport-573OuQnm.js → issue-passport-CBrIp3jc.js} +1 -1
  152. package/dist/assets/item-Brjh4PLo.js +1 -0
  153. package/dist/assets/{ja-DG0a06x8.js → ja-DvJTZg_Q.js} +1 -1
  154. package/dist/assets/{jss-plugin-props-sort.esm-Bp0MqRVc.js → jss-plugin-props-sort.esm-BX_bur4g.js} +4 -4
  155. package/dist/assets/{ko-BBC-RcU5.js → ko-C1lnK-Gx.js} +1 -1
  156. package/dist/assets/{launch-result-message-4m30f0Ag.js → launch-result-message-DF58OHNC.js} +1 -1
  157. package/dist/assets/{layout-Btp-_hcD.js → layout-BZwnld0E.js} +2 -2
  158. package/dist/assets/{list-header-DQEePd_T.js → list-header-DKFtTh4o.js} +1 -1
  159. package/dist/assets/localization-DIaD7pty.js +1 -0
  160. package/dist/assets/{log-DGIf8qzM.js → log-DcFRCLCX.js} +1 -1
  161. package/dist/assets/login-Bf5SQlPn.js +1 -0
  162. package/dist/assets/login-oauth-callback-BU7Pl33l.js +1 -0
  163. package/dist/assets/{logo-uploader-CC8WqbW-.js → logo-uploader-BbCcpszA.js} +4 -4
  164. package/dist/assets/{lost-passport-D_HnDqKr.js → lost-passport-D3RvUegp.js} +4 -4
  165. package/dist/assets/{lottie-react.esm-CtltdV0t.js → lottie-react.esm-ZH4Wk5XO.js} +1 -1
  166. package/dist/assets/notifications-BkSUBEzY.js +65 -0
  167. package/dist/assets/{open-window-CmBy5HkH.js → open-window-CSdTLwaf.js} +1 -1
  168. package/dist/assets/overview-DXC_j46y.js +12 -0
  169. package/dist/assets/{page-header-B5a7RE0E.js → page-header-Cri_UHX5.js} +1 -1
  170. package/dist/assets/{permission-CBfa-qlX.js → permission-DSn8EOQ9.js} +1 -1
  171. package/dist/assets/{preferences-CuRLxM0K.js → preferences-JFVWkPL4.js} +1 -1
  172. package/dist/assets/{pt-CNmFfxJU.js → pt-C86mXB8Z.js} +1 -1
  173. package/dist/assets/publish-resource-gk91W1J0.js +1 -0
  174. package/dist/assets/{raf-schd.esm-KaxPdV64.js → raf-schd.esm-CpouI05w.js} +1 -1
  175. package/dist/assets/{react-beautiful-dnd.esm-BlBywA4z.js → react-beautiful-dnd.esm-ChA2xoay.js} +1 -1
  176. package/dist/assets/refType-BXcUP-YS.js +1 -0
  177. package/dist/assets/{resource-dialog-DpLtB_Fw.js → resource-dialog-DZPqi5pw.js} +1 -1
  178. package/dist/assets/{ru-BVNv9w91.js → ru-Dxm-iAqn.js} +1 -1
  179. package/dist/assets/sdk-neE1aE7y.js +1 -0
  180. package/dist/assets/{selector-Drr6pXp9.js → selector--uPvisem.js} +4 -4
  181. package/dist/assets/session-D7-00CVs.js +1 -0
  182. package/dist/assets/{setup-cPNeqLVK.js → setup-CMaryrU8.js} +3 -3
  183. package/dist/assets/{shorten-label-DK0L2sJV.js → shorten-label-uAzGTCBy.js} +1 -1
  184. package/dist/assets/{simple-select-CHsQAOYZ.js → simple-select-M9sKVVQT.js} +1 -1
  185. package/dist/assets/{slicedToArray-n9LJBwV4.js → slicedToArray-CHm_9UsL.js} +2 -2
  186. package/dist/assets/{start-CcvndivR.js → start-D5P3Y_Mp.js} +1 -1
  187. package/dist/assets/{step-actions-D_1mpc4C.js → step-actions-DRDtE9i9.js} +2 -2
  188. package/dist/assets/studio-DDRR9uTH.js +6 -0
  189. package/dist/assets/{switch-control-2C3bwebR.js → switch-control-C8d_eiWi.js} +1 -1
  190. package/dist/assets/{th-CObnQ6OH.js → th-BamIf1b8.js} +1 -1
  191. package/dist/assets/{toUpper-DtTJYJCz.js → toUpper-Bq-NIfax.js} +1 -1
  192. package/dist/assets/{transfer-BNPHc5-e.js → transfer-COMtxr-_.js} +2 -2
  193. package/dist/assets/{trim-Boaje3e9.js → trim-Bn0r8NiZ.js} +1 -1
  194. package/dist/assets/{uniqBy-B2B_OSuq.js → uniqBy-Baa3ApX9.js} +1 -1
  195. package/dist/assets/unsubscribe-BUf0fqE6.js +1 -0
  196. package/dist/assets/{url-join-aL0dlRwK.js → url-join-BUPuIN5Z.js} +1 -1
  197. package/dist/assets/use-mobile-BexDu-6x.js +1 -0
  198. package/dist/assets/use-mobile-CUJBViwc.js +1 -0
  199. package/dist/assets/{useAsync-B5aCa8BU.js → useAsync-DlT-wYlz.js} +1 -1
  200. package/dist/assets/{useFormControl-De83T2k8.js → useFormControl-CW2PoJes.js} +1 -1
  201. package/dist/assets/{useLocalStorage-Cg4UWbtJ.js → useLocalStorage-BfN8jDuG.js} +1 -1
  202. package/dist/assets/{useSetState-C5EefhmT.js → useSetState-CKmZy4S9.js} +1 -1
  203. package/dist/assets/useSlot-BDokg4R-.js +1 -0
  204. package/dist/assets/{useSlotProps-9EZsnKiK.js → useSlotProps-BvV0G0yb.js} +1 -1
  205. package/dist/assets/{useThemeProps-DFbMvLjq.js → useThemeProps-28x2bH1r.js} +1 -1
  206. package/dist/assets/user-center-D6WQO8xG.js +1 -0
  207. package/dist/assets/user-sessions-DRnCKb0z.js +1 -0
  208. package/dist/assets/util-ZRcOJEuz.js +1 -0
  209. package/dist/assets/{vi-DPE1cpvE.js → vi-CTEgHnG8.js} +1 -1
  210. package/dist/assets/wrap-locale-Bsx6I5ww.js +1 -0
  211. package/dist/assets/{zh-ZJh718gR.js → zh-C9pcKSvk.js} +1 -1
  212. package/dist/assets/{zh-tw-q3KEUdcz.js → zh-tw-CuhSzmQN.js} +1 -1
  213. package/dist/index.html +1 -1
  214. package/dist/service-worker.js +1 -1
  215. package/package.json +26 -25
  216. package/api/middlewares/verify-federated-call.js +0 -36
  217. package/dist/assets/Add-DtejxYv7.js +0 -1
  218. package/dist/assets/ArrowDropDown-DLu5ghJ6.js +0 -1
  219. package/dist/assets/CheckCircle-BvTAg_Vb.js +0 -1
  220. package/dist/assets/ChevronLeft-CogeEPev.js +0 -1
  221. package/dist/assets/ChevronRight-BATWClLP.js +0 -1
  222. package/dist/assets/Delete-BvK_hDyw.js +0 -1
  223. package/dist/assets/DeleteOutline-CFkN2u6G.js +0 -1
  224. package/dist/assets/DialogContentText-BSTFqlB8.js +0 -1
  225. package/dist/assets/Done-BCayGyaP.js +0 -1
  226. package/dist/assets/Download-3v1IPpRg.js +0 -1
  227. package/dist/assets/Error-KMHXOqQS.js +0 -1
  228. package/dist/assets/ExpandMore-XeiYcXA0.js +0 -1
  229. package/dist/assets/FormControl-D9UzJGr3.js +0 -1
  230. package/dist/assets/FormGroup-BqZ71koG.js +0 -1
  231. package/dist/assets/HelpOutline-D-mVzldg.js +0 -1
  232. package/dist/assets/Hidden-B_FCIv2F.js +0 -1
  233. package/dist/assets/InfoOutlined-fhivWooJ.js +0 -1
  234. package/dist/assets/Launch-B6-uAhbQ.js +0 -1
  235. package/dist/assets/LaunchOutlined-BEenLVbN.js +0 -1
  236. package/dist/assets/Loop-tJ6uJkRI.js +0 -1
  237. package/dist/assets/MarkEmailRead-BNHtpgz2.js +0 -1
  238. package/dist/assets/Menu-CkD81HZ5.js +0 -1
  239. package/dist/assets/MoreHoriz-qqmi4YRC.js +0 -1
  240. package/dist/assets/MoreVert-BZZ4IBOf.js +0 -1
  241. package/dist/assets/OpenInNew-C5XvRsRC.js +0 -1
  242. package/dist/assets/PlayArrow-Cn0cfGNW.js +0 -1
  243. package/dist/assets/Search-DXRr3XZy.js +0 -1
  244. package/dist/assets/ViewColumn-GTnSFOFd.js +0 -1
  245. package/dist/assets/ViewList-BtVWmZJ0.js +0 -1
  246. package/dist/assets/access-control-BmMbklSe.js +0 -13
  247. package/dist/assets/add-resource-lnxpvPO7.js +0 -1
  248. package/dist/assets/api-lbSHYKYc.js +0 -1
  249. package/dist/assets/audit-logs-0TJ_0Mvw.js +0 -58
  250. package/dist/assets/bundle-avatar-CcIs5XOV.js +0 -1
  251. package/dist/assets/config-kysZ8p5u.js +0 -1
  252. package/dist/assets/config-space-BPpdFWKx.js +0 -1
  253. package/dist/assets/connect-DPIWGg69.js +0 -1
  254. package/dist/assets/domain-CcBPnmmR.js +0 -9
  255. package/dist/assets/domain-list-CVn1TPCl.js +0 -15
  256. package/dist/assets/emotion-cache.browser.esm-DkJEKl9I.js +0 -1
  257. package/dist/assets/exchange-passport-BetHiKY_.js +0 -1
  258. package/dist/assets/form-text-input-BUB_rL9o.js +0 -11
  259. package/dist/assets/index-B2fUK0Jg.js +0 -16
  260. package/dist/assets/index-BArNVkrG.js +0 -1
  261. package/dist/assets/index-CQSz6hXt.js +0 -316
  262. package/dist/assets/index-CRK13xk6.js +0 -102
  263. package/dist/assets/index-D_g2YpF8.js +0 -1
  264. package/dist/assets/index-De1VedzO.js +0 -5
  265. package/dist/assets/index-PD8enw5a.js +0 -4
  266. package/dist/assets/invite-VzUmhGJg.js +0 -5
  267. package/dist/assets/item-BoFU04RW.js +0 -1
  268. package/dist/assets/localization-BJhiRnk-.js +0 -1
  269. package/dist/assets/login-Cu5oiCaE.js +0 -1
  270. package/dist/assets/login-oauth-callback-Dim9h4c3.js +0 -1
  271. package/dist/assets/notifications-tGIsoEd6.js +0 -65
  272. package/dist/assets/overview-CmwcUtDq.js +0 -12
  273. package/dist/assets/publish-resource-aoq2ZIeT.js +0 -1
  274. package/dist/assets/refType-CNi4gHMp.js +0 -1
  275. package/dist/assets/sdk-CrAhZvgC.js +0 -1
  276. package/dist/assets/session-BGDxwrDP.js +0 -1
  277. package/dist/assets/studio-BdIpZDRv.js +0 -6
  278. package/dist/assets/unsubscribe-eud8OqTh.js +0 -1
  279. package/dist/assets/use-mobile-D7IK9xm6.js +0 -1
  280. package/dist/assets/use-mobile-TJQ6s1hH.js +0 -1
  281. package/dist/assets/useSlot-DebDFCUQ.js +0 -1
  282. package/dist/assets/user-center-BWtnQHWR.js +0 -1
  283. package/dist/assets/user-sessions-DTvyZm5S.js +0 -1
  284. package/dist/assets/util-BBKZBp8H.js +0 -1
  285. package/dist/assets/wrap-locale-Ci8gmRb6.js +0 -1
@@ -1,102 +0,0 @@
1
- import{b9 as Ki,bu as Te,j as x,r as fe,cm as Dt,cn as Yi,co as Wi,B as jt,c3 as Jn,cp as qi,bW as Ji,cq as Qi,cr as Qn,bB as Di,cs as er,aO as tr}from"./index-BxKrUgd9.js";import{r as nr,a as ir}from"./emotion-cache.browser.esm-DkJEKl9I.js";import{p as rr}from"./purify.es-DutPtr9A.js";/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const ar=4,en=0,tn=1,sr=2;function Ae(e){let n=e.length;for(;--n>=0;)e[n]=0}const or=0,Dn=1,lr=2,fr=3,cr=258,Ut=29,We=256,Be=We+1+Ut,Ee=30,Bt=19,ei=2*Be+1,de=15,ut=16,dr=7,Mt=256,ti=16,ni=17,ii=18,At=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),rt=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),ur=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),ri=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),hr=512,J=new Array((Be+2)*2);Ae(J);const Ze=new Array(Ee*2);Ae(Ze);const Me=new Array(hr);Ae(Me);const He=new Array(cr-fr+1);Ae(He);const Ht=new Array(Ut);Ae(Ht);const at=new Array(Ee);Ae(at);function ht(e,n,t,i,r){this.static_tree=e,this.extra_bits=n,this.extra_base=t,this.elems=i,this.max_length=r,this.has_stree=e&&e.length}let ai,si,oi;function _t(e,n){this.dyn_tree=e,this.max_code=0,this.stat_desc=n}const li=e=>e<256?Me[e]:Me[256+(e>>>7)],Ve=(e,n)=>{e.pending_buf[e.pending++]=n&255,e.pending_buf[e.pending++]=n>>>8&255},j=(e,n,t)=>{e.bi_valid>ut-t?(e.bi_buf|=n<<e.bi_valid&65535,Ve(e,e.bi_buf),e.bi_buf=n>>ut-e.bi_valid,e.bi_valid+=t-ut):(e.bi_buf|=n<<e.bi_valid&65535,e.bi_valid+=t)},K=(e,n,t)=>{j(e,t[n*2],t[n*2+1])},fi=(e,n)=>{let t=0;do t|=e&1,e>>>=1,t<<=1;while(--n>0);return t>>>1},_r=e=>{e.bi_valid===16?(Ve(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},pr=(e,n)=>{const t=n.dyn_tree,i=n.max_code,r=n.stat_desc.static_tree,a=n.stat_desc.has_stree,l=n.stat_desc.extra_bits,s=n.stat_desc.extra_base,f=n.stat_desc.max_length;let o,c,_,u,d,b,v=0;for(u=0;u<=de;u++)e.bl_count[u]=0;for(t[e.heap[e.heap_max]*2+1]=0,o=e.heap_max+1;o<ei;o++)c=e.heap[o],u=t[t[c*2+1]*2+1]+1,u>f&&(u=f,v++),t[c*2+1]=u,!(c>i)&&(e.bl_count[u]++,d=0,c>=s&&(d=l[c-s]),b=t[c*2],e.opt_len+=b*(u+d),a&&(e.static_len+=b*(r[c*2+1]+d)));if(v!==0){do{for(u=f-1;e.bl_count[u]===0;)u--;e.bl_count[u]--,e.bl_count[u+1]+=2,e.bl_count[f]--,v-=2}while(v>0);for(u=f;u!==0;u--)for(c=e.bl_count[u];c!==0;)_=e.heap[--o],!(_>i)&&(t[_*2+1]!==u&&(e.opt_len+=(u-t[_*2+1])*t[_*2],t[_*2+1]=u),c--)}},ci=(e,n,t)=>{const i=new Array(de+1);let r=0,a,l;for(a=1;a<=de;a++)r=r+t[a-1]<<1,i[a]=r;for(l=0;l<=n;l++){let s=e[l*2+1];s!==0&&(e[l*2]=fi(i[s]++,s))}},gr=()=>{let e,n,t,i,r;const a=new Array(de+1);for(t=0,i=0;i<Ut-1;i++)for(Ht[i]=t,e=0;e<1<<At[i];e++)He[t++]=i;for(He[t-1]=i,r=0,i=0;i<16;i++)for(at[i]=r,e=0;e<1<<rt[i];e++)Me[r++]=i;for(r>>=7;i<Ee;i++)for(at[i]=r<<7,e=0;e<1<<rt[i]-7;e++)Me[256+r++]=i;for(n=0;n<=de;n++)a[n]=0;for(e=0;e<=143;)J[e*2+1]=8,e++,a[8]++;for(;e<=255;)J[e*2+1]=9,e++,a[9]++;for(;e<=279;)J[e*2+1]=7,e++,a[7]++;for(;e<=287;)J[e*2+1]=8,e++,a[8]++;for(ci(J,Be+1,a),e=0;e<Ee;e++)Ze[e*2+1]=5,Ze[e*2]=fi(e,5);ai=new ht(J,At,We+1,Be,de),si=new ht(Ze,rt,0,Ee,de),oi=new ht(new Array(0),ur,0,Bt,dr)},di=e=>{let n;for(n=0;n<Be;n++)e.dyn_ltree[n*2]=0;for(n=0;n<Ee;n++)e.dyn_dtree[n*2]=0;for(n=0;n<Bt;n++)e.bl_tree[n*2]=0;e.dyn_ltree[Mt*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},ui=e=>{e.bi_valid>8?Ve(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},nn=(e,n,t,i)=>{const r=n*2,a=t*2;return e[r]<e[a]||e[r]===e[a]&&i[n]<=i[t]},pt=(e,n,t)=>{const i=e.heap[t];let r=t<<1;for(;r<=e.heap_len&&(r<e.heap_len&&nn(n,e.heap[r+1],e.heap[r],e.depth)&&r++,!nn(n,i,e.heap[r],e.depth));)e.heap[t]=e.heap[r],t=r,r<<=1;e.heap[t]=i},rn=(e,n,t)=>{let i,r,a=0,l,s;if(e.sym_next!==0)do i=e.pending_buf[e.sym_buf+a++]&255,i+=(e.pending_buf[e.sym_buf+a++]&255)<<8,r=e.pending_buf[e.sym_buf+a++],i===0?K(e,r,n):(l=He[r],K(e,l+We+1,n),s=At[l],s!==0&&(r-=Ht[l],j(e,r,s)),i--,l=li(i),K(e,l,t),s=rt[l],s!==0&&(i-=at[l],j(e,i,s)));while(a<e.sym_next);K(e,Mt,n)},St=(e,n)=>{const t=n.dyn_tree,i=n.stat_desc.static_tree,r=n.stat_desc.has_stree,a=n.stat_desc.elems;let l,s,f=-1,o;for(e.heap_len=0,e.heap_max=ei,l=0;l<a;l++)t[l*2]!==0?(e.heap[++e.heap_len]=f=l,e.depth[l]=0):t[l*2+1]=0;for(;e.heap_len<2;)o=e.heap[++e.heap_len]=f<2?++f:0,t[o*2]=1,e.depth[o]=0,e.opt_len--,r&&(e.static_len-=i[o*2+1]);for(n.max_code=f,l=e.heap_len>>1;l>=1;l--)pt(e,t,l);o=a;do l=e.heap[1],e.heap[1]=e.heap[e.heap_len--],pt(e,t,1),s=e.heap[1],e.heap[--e.heap_max]=l,e.heap[--e.heap_max]=s,t[o*2]=t[l*2]+t[s*2],e.depth[o]=(e.depth[l]>=e.depth[s]?e.depth[l]:e.depth[s])+1,t[l*2+1]=t[s*2+1]=o,e.heap[1]=o++,pt(e,t,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],pr(e,n),ci(t,f,e.bl_count)},an=(e,n,t)=>{let i,r=-1,a,l=n[0*2+1],s=0,f=7,o=4;for(l===0&&(f=138,o=3),n[(t+1)*2+1]=65535,i=0;i<=t;i++)a=l,l=n[(i+1)*2+1],!(++s<f&&a===l)&&(s<o?e.bl_tree[a*2]+=s:a!==0?(a!==r&&e.bl_tree[a*2]++,e.bl_tree[ti*2]++):s<=10?e.bl_tree[ni*2]++:e.bl_tree[ii*2]++,s=0,r=a,l===0?(f=138,o=3):a===l?(f=6,o=3):(f=7,o=4))},sn=(e,n,t)=>{let i,r=-1,a,l=n[0*2+1],s=0,f=7,o=4;for(l===0&&(f=138,o=3),i=0;i<=t;i++)if(a=l,l=n[(i+1)*2+1],!(++s<f&&a===l)){if(s<o)do K(e,a,e.bl_tree);while(--s!==0);else a!==0?(a!==r&&(K(e,a,e.bl_tree),s--),K(e,ti,e.bl_tree),j(e,s-3,2)):s<=10?(K(e,ni,e.bl_tree),j(e,s-3,3)):(K(e,ii,e.bl_tree),j(e,s-11,7));s=0,r=a,l===0?(f=138,o=3):a===l?(f=6,o=3):(f=7,o=4)}},br=e=>{let n;for(an(e,e.dyn_ltree,e.l_desc.max_code),an(e,e.dyn_dtree,e.d_desc.max_code),St(e,e.bl_desc),n=Bt-1;n>=3&&e.bl_tree[ri[n]*2+1]===0;n--);return e.opt_len+=3*(n+1)+5+5+4,n},wr=(e,n,t,i)=>{let r;for(j(e,n-257,5),j(e,t-1,5),j(e,i-4,4),r=0;r<i;r++)j(e,e.bl_tree[ri[r]*2+1],3);sn(e,e.dyn_ltree,n-1),sn(e,e.dyn_dtree,t-1)},yr=e=>{let n=4093624447,t;for(t=0;t<=31;t++,n>>>=1)if(n&1&&e.dyn_ltree[t*2]!==0)return en;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return tn;for(t=32;t<We;t++)if(e.dyn_ltree[t*2]!==0)return tn;return en};let on=!1;const xr=e=>{on||(gr(),on=!0),e.l_desc=new _t(e.dyn_ltree,ai),e.d_desc=new _t(e.dyn_dtree,si),e.bl_desc=new _t(e.bl_tree,oi),e.bi_buf=0,e.bi_valid=0,di(e)},hi=(e,n,t,i)=>{j(e,(or<<1)+(i?1:0),3),ui(e),Ve(e,t),Ve(e,~t),t&&e.pending_buf.set(e.window.subarray(n,n+t),e.pending),e.pending+=t},vr=e=>{j(e,Dn<<1,3),K(e,Mt,J),_r(e)},mr=(e,n,t,i)=>{let r,a,l=0;e.level>0?(e.strm.data_type===sr&&(e.strm.data_type=yr(e)),St(e,e.l_desc),St(e,e.d_desc),l=br(e),r=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=r&&(r=a)):r=a=t+5,t+4<=r&&n!==-1?hi(e,n,t,i):e.strategy===ar||a===r?(j(e,(Dn<<1)+(i?1:0),3),rn(e,J,Ze)):(j(e,(lr<<1)+(i?1:0),3),wr(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),rn(e,e.dyn_ltree,e.dyn_dtree)),di(e),i&&ui(e)},Er=(e,n,t)=>(e.pending_buf[e.sym_buf+e.sym_next++]=n,e.pending_buf[e.sym_buf+e.sym_next++]=n>>8,e.pending_buf[e.sym_buf+e.sym_next++]=t,n===0?e.dyn_ltree[t*2]++:(e.matches++,n--,e.dyn_ltree[(He[t]+We+1)*2]++,e.dyn_dtree[li(n)*2]++),e.sym_next===e.sym_end);var Nr=xr,kr=hi,Tr=mr,Ar=Er,Sr=vr,Or={_tr_init:Nr,_tr_stored_block:kr,_tr_flush_block:Tr,_tr_tally:Ar,_tr_align:Sr};const Ir=(e,n,t,i)=>{let r=e&65535|0,a=e>>>16&65535|0,l=0;for(;t!==0;){l=t>2e3?2e3:t,t-=l;do r=r+n[i++]|0,a=a+r|0;while(--l);r%=65521,a%=65521}return r|a<<16|0};var Xe=Ir;const Rr=()=>{let e,n=[];for(var t=0;t<256;t++){e=t;for(var i=0;i<8;i++)e=e&1?3988292384^e>>>1:e>>>1;n[t]=e}return n},zr=new Uint32Array(Rr()),Fr=(e,n,t,i)=>{const r=zr,a=i+t;e^=-1;for(let l=i;l<a;l++)e=e>>>8^r[(e^n[l])&255];return e^-1};var C=Fr,pe={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},we={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:Cr,_tr_stored_block:Ot,_tr_flush_block:$r,_tr_tally:ie,_tr_align:Pr}=Or,{Z_NO_FLUSH:re,Z_PARTIAL_FLUSH:Lr,Z_FULL_FLUSH:Zr,Z_FINISH:H,Z_BLOCK:ln,Z_OK:$,Z_STREAM_END:fn,Z_STREAM_ERROR:Y,Z_DATA_ERROR:jr,Z_BUF_ERROR:gt,Z_DEFAULT_COMPRESSION:Ur,Z_FILTERED:Br,Z_HUFFMAN_ONLY:De,Z_RLE:Mr,Z_FIXED:Hr,Z_DEFAULT_STRATEGY:Vr,Z_UNKNOWN:Xr,Z_DEFLATED:lt}=we,Gr=9,Kr=15,Yr=8,Wr=29,qr=256,It=qr+1+Wr,Jr=30,Qr=19,Dr=2*It+1,ea=15,S=3,ne=258,W=ne+S+1,ta=32,Ne=42,Vt=57,Rt=69,zt=73,Ft=91,Ct=103,ue=113,Pe=666,Z=1,Se=2,ge=3,Oe=4,na=3,he=(e,n)=>(e.msg=pe[n],n),cn=e=>e*2-(e>4?9:0),te=e=>{let n=e.length;for(;--n>=0;)e[n]=0},ia=e=>{let n,t,i,r=e.w_size;n=e.hash_size,i=n;do t=e.head[--i],e.head[i]=t>=r?t-r:0;while(--n);n=r,i=n;do t=e.prev[--i],e.prev[i]=t>=r?t-r:0;while(--n)};let ra=(e,n,t)=>(n<<e.hash_shift^t)&e.hash_mask,ae=ra;const U=e=>{const n=e.state;let t=n.pending;t>e.avail_out&&(t=e.avail_out),t!==0&&(e.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+t),e.next_out),e.next_out+=t,n.pending_out+=t,e.total_out+=t,e.avail_out-=t,n.pending-=t,n.pending===0&&(n.pending_out=0))},B=(e,n)=>{$r(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,n),e.block_start=e.strstart,U(e.strm)},I=(e,n)=>{e.pending_buf[e.pending++]=n},ze=(e,n)=>{e.pending_buf[e.pending++]=n>>>8&255,e.pending_buf[e.pending++]=n&255},$t=(e,n,t,i)=>{let r=e.avail_in;return r>i&&(r=i),r===0?0:(e.avail_in-=r,n.set(e.input.subarray(e.next_in,e.next_in+r),t),e.state.wrap===1?e.adler=Xe(e.adler,n,r,t):e.state.wrap===2&&(e.adler=C(e.adler,n,r,t)),e.next_in+=r,e.total_in+=r,r)},_i=(e,n)=>{let t=e.max_chain_length,i=e.strstart,r,a,l=e.prev_length,s=e.nice_match;const f=e.strstart>e.w_size-W?e.strstart-(e.w_size-W):0,o=e.window,c=e.w_mask,_=e.prev,u=e.strstart+ne;let d=o[i+l-1],b=o[i+l];e.prev_length>=e.good_match&&(t>>=2),s>e.lookahead&&(s=e.lookahead);do if(r=n,!(o[r+l]!==b||o[r+l-1]!==d||o[r]!==o[i]||o[++r]!==o[i+1])){i+=2,r++;do;while(o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&o[++i]===o[++r]&&i<u);if(a=ne-(u-i),i=u-ne,a>l){if(e.match_start=n,l=a,a>=s)break;d=o[i+l-1],b=o[i+l]}}while((n=_[n&c])>f&&--t!==0);return l<=e.lookahead?l:e.lookahead},ke=e=>{const n=e.w_size;let t,i,r;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=n+(n-W)&&(e.window.set(e.window.subarray(n,n+n-i),0),e.match_start-=n,e.strstart-=n,e.block_start-=n,e.insert>e.strstart&&(e.insert=e.strstart),ia(e),i+=n),e.strm.avail_in===0)break;if(t=$t(e.strm,e.window,e.strstart+e.lookahead,i),e.lookahead+=t,e.lookahead+e.insert>=S)for(r=e.strstart-e.insert,e.ins_h=e.window[r],e.ins_h=ae(e,e.ins_h,e.window[r+1]);e.insert&&(e.ins_h=ae(e,e.ins_h,e.window[r+S-1]),e.prev[r&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=r,r++,e.insert--,!(e.lookahead+e.insert<S)););}while(e.lookahead<W&&e.strm.avail_in!==0)},pi=(e,n)=>{let t=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,i,r,a,l=0,s=e.strm.avail_in;do{if(i=65535,a=e.bi_valid+42>>3,e.strm.avail_out<a||(a=e.strm.avail_out-a,r=e.strstart-e.block_start,i>r+e.strm.avail_in&&(i=r+e.strm.avail_in),i>a&&(i=a),i<t&&(i===0&&n!==H||n===re||i!==r+e.strm.avail_in)))break;l=n===H&&i===r+e.strm.avail_in?1:0,Ot(e,0,0,l),e.pending_buf[e.pending-4]=i,e.pending_buf[e.pending-3]=i>>8,e.pending_buf[e.pending-2]=~i,e.pending_buf[e.pending-1]=~i>>8,U(e.strm),r&&(r>i&&(r=i),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,i-=r),i&&($t(e.strm,e.strm.output,e.strm.next_out,i),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i)}while(l===0);return s-=e.strm.avail_in,s&&(s>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=s&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-s,e.strm.next_in),e.strstart),e.strstart+=s,e.insert+=s>e.w_size-e.insert?e.w_size-e.insert:s),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),l?Oe:n!==re&&n!==H&&e.strm.avail_in===0&&e.strstart===e.block_start?Se:(a=e.window_size-e.strstart,e.strm.avail_in>a&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,a+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),a>e.strm.avail_in&&(a=e.strm.avail_in),a&&($t(e.strm,e.window,e.strstart,a),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.high_water<e.strstart&&(e.high_water=e.strstart),a=e.bi_valid+42>>3,a=e.pending_buf_size-a>65535?65535:e.pending_buf_size-a,t=a>e.w_size?e.w_size:a,r=e.strstart-e.block_start,(r>=t||(r||n===H)&&n!==re&&e.strm.avail_in===0&&r<=a)&&(i=r>a?a:r,l=n===H&&e.strm.avail_in===0&&i===r?1:0,Ot(e,e.block_start,i,l),e.block_start+=i,U(e.strm)),l?ge:Z)},bt=(e,n)=>{let t,i;for(;;){if(e.lookahead<W){if(ke(e),e.lookahead<W&&n===re)return Z;if(e.lookahead===0)break}if(t=0,e.lookahead>=S&&(e.ins_h=ae(e,e.ins_h,e.window[e.strstart+S-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),t!==0&&e.strstart-t<=e.w_size-W&&(e.match_length=_i(e,t)),e.match_length>=S)if(i=ie(e,e.strstart-e.match_start,e.match_length-S),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=S){e.match_length--;do e.strstart++,e.ins_h=ae(e,e.ins_h,e.window[e.strstart+S-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=ae(e,e.ins_h,e.window[e.strstart+1]);else i=ie(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(i&&(B(e,!1),e.strm.avail_out===0))return Z}return e.insert=e.strstart<S-1?e.strstart:S-1,n===H?(B(e,!0),e.strm.avail_out===0?ge:Oe):e.sym_next&&(B(e,!1),e.strm.avail_out===0)?Z:Se},ve=(e,n)=>{let t,i,r;for(;;){if(e.lookahead<W){if(ke(e),e.lookahead<W&&n===re)return Z;if(e.lookahead===0)break}if(t=0,e.lookahead>=S&&(e.ins_h=ae(e,e.ins_h,e.window[e.strstart+S-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=S-1,t!==0&&e.prev_length<e.max_lazy_match&&e.strstart-t<=e.w_size-W&&(e.match_length=_i(e,t),e.match_length<=5&&(e.strategy===Br||e.match_length===S&&e.strstart-e.match_start>4096)&&(e.match_length=S-1)),e.prev_length>=S&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-S,i=ie(e,e.strstart-1-e.prev_match,e.prev_length-S),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=r&&(e.ins_h=ae(e,e.ins_h,e.window[e.strstart+S-1]),t=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=S-1,e.strstart++,i&&(B(e,!1),e.strm.avail_out===0))return Z}else if(e.match_available){if(i=ie(e,0,e.window[e.strstart-1]),i&&B(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Z}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(i=ie(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<S-1?e.strstart:S-1,n===H?(B(e,!0),e.strm.avail_out===0?ge:Oe):e.sym_next&&(B(e,!1),e.strm.avail_out===0)?Z:Se},aa=(e,n)=>{let t,i,r,a;const l=e.window;for(;;){if(e.lookahead<=ne){if(ke(e),e.lookahead<=ne&&n===re)return Z;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=S&&e.strstart>0&&(r=e.strstart-1,i=l[r],i===l[++r]&&i===l[++r]&&i===l[++r])){a=e.strstart+ne;do;while(i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&i===l[++r]&&r<a);e.match_length=ne-(a-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=S?(t=ie(e,1,e.match_length-S),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(t=ie(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),t&&(B(e,!1),e.strm.avail_out===0))return Z}return e.insert=0,n===H?(B(e,!0),e.strm.avail_out===0?ge:Oe):e.sym_next&&(B(e,!1),e.strm.avail_out===0)?Z:Se},sa=(e,n)=>{let t;for(;;){if(e.lookahead===0&&(ke(e),e.lookahead===0)){if(n===re)return Z;break}if(e.match_length=0,t=ie(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,t&&(B(e,!1),e.strm.avail_out===0))return Z}return e.insert=0,n===H?(B(e,!0),e.strm.avail_out===0?ge:Oe):e.sym_next&&(B(e,!1),e.strm.avail_out===0)?Z:Se};function G(e,n,t,i,r){this.good_length=e,this.max_lazy=n,this.nice_length=t,this.max_chain=i,this.func=r}const Le=[new G(0,0,0,0,pi),new G(4,4,8,4,bt),new G(4,5,16,8,bt),new G(4,6,32,32,bt),new G(4,4,16,16,ve),new G(8,16,32,32,ve),new G(8,16,128,128,ve),new G(8,32,128,256,ve),new G(32,128,258,1024,ve),new G(32,258,258,4096,ve)],oa=e=>{e.window_size=2*e.w_size,te(e.head),e.max_lazy_match=Le[e.level].max_lazy,e.good_match=Le[e.level].good_length,e.nice_match=Le[e.level].nice_length,e.max_chain_length=Le[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=S-1,e.match_available=0,e.ins_h=0};function la(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=lt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(Dr*2),this.dyn_dtree=new Uint16Array((2*Jr+1)*2),this.bl_tree=new Uint16Array((2*Qr+1)*2),te(this.dyn_ltree),te(this.dyn_dtree),te(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(ea+1),this.heap=new Uint16Array(2*It+1),te(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*It+1),te(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const qe=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.status!==Ne&&n.status!==Vt&&n.status!==Rt&&n.status!==zt&&n.status!==Ft&&n.status!==Ct&&n.status!==ue&&n.status!==Pe?1:0},gi=e=>{if(qe(e))return he(e,Y);e.total_in=e.total_out=0,e.data_type=Xr;const n=e.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap===2?Vt:n.wrap?Ne:ue,e.adler=n.wrap===2?0:1,n.last_flush=-2,Cr(n),$},bi=e=>{const n=gi(e);return n===$&&oa(e.state),n},fa=(e,n)=>qe(e)||e.state.wrap!==2?Y:(e.state.gzhead=n,$),wi=(e,n,t,i,r,a)=>{if(!e)return Y;let l=1;if(n===Ur&&(n=6),i<0?(l=0,i=-i):i>15&&(l=2,i-=16),r<1||r>Gr||t!==lt||i<8||i>15||n<0||n>9||a<0||a>Hr||i===8&&l!==1)return he(e,Y);i===8&&(i=9);const s=new la;return e.state=s,s.strm=e,s.status=Ne,s.wrap=l,s.gzhead=null,s.w_bits=i,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=r+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+S-1)/S),s.window=new Uint8Array(s.w_size*2),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<r+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=(s.lit_bufsize-1)*3,s.level=n,s.strategy=a,s.method=t,bi(e)},ca=(e,n)=>wi(e,n,lt,Kr,Yr,Vr),da=(e,n)=>{if(qe(e)||n>ln||n<0)return e?he(e,Y):Y;const t=e.state;if(!e.output||e.avail_in!==0&&!e.input||t.status===Pe&&n!==H)return he(e,e.avail_out===0?gt:Y);const i=t.last_flush;if(t.last_flush=n,t.pending!==0){if(U(e),e.avail_out===0)return t.last_flush=-1,$}else if(e.avail_in===0&&cn(n)<=cn(i)&&n!==H)return he(e,gt);if(t.status===Pe&&e.avail_in!==0)return he(e,gt);if(t.status===Ne&&t.wrap===0&&(t.status=ue),t.status===Ne){let r=lt+(t.w_bits-8<<4)<<8,a=-1;if(t.strategy>=De||t.level<2?a=0:t.level<6?a=1:t.level===6?a=2:a=3,r|=a<<6,t.strstart!==0&&(r|=ta),r+=31-r%31,ze(t,r),t.strstart!==0&&(ze(t,e.adler>>>16),ze(t,e.adler&65535)),e.adler=1,t.status=ue,U(e),t.pending!==0)return t.last_flush=-1,$}if(t.status===Vt){if(e.adler=0,I(t,31),I(t,139),I(t,8),t.gzhead)I(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),I(t,t.gzhead.time&255),I(t,t.gzhead.time>>8&255),I(t,t.gzhead.time>>16&255),I(t,t.gzhead.time>>24&255),I(t,t.level===9?2:t.strategy>=De||t.level<2?4:0),I(t,t.gzhead.os&255),t.gzhead.extra&&t.gzhead.extra.length&&(I(t,t.gzhead.extra.length&255),I(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(e.adler=C(e.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=Rt;else if(I(t,0),I(t,0),I(t,0),I(t,0),I(t,0),I(t,t.level===9?2:t.strategy>=De||t.level<2?4:0),I(t,na),t.status=ue,U(e),t.pending!==0)return t.last_flush=-1,$}if(t.status===Rt){if(t.gzhead.extra){let r=t.pending,a=(t.gzhead.extra.length&65535)-t.gzindex;for(;t.pending+a>t.pending_buf_size;){let s=t.pending_buf_size-t.pending;if(t.pending_buf.set(t.gzhead.extra.subarray(t.gzindex,t.gzindex+s),t.pending),t.pending=t.pending_buf_size,t.gzhead.hcrc&&t.pending>r&&(e.adler=C(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex+=s,U(e),t.pending!==0)return t.last_flush=-1,$;r=0,a-=s}let l=new Uint8Array(t.gzhead.extra);t.pending_buf.set(l.subarray(t.gzindex,t.gzindex+a),t.pending),t.pending+=a,t.gzhead.hcrc&&t.pending>r&&(e.adler=C(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=zt}if(t.status===zt){if(t.gzhead.name){let r=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=C(e.adler,t.pending_buf,t.pending-r,r)),U(e),t.pending!==0)return t.last_flush=-1,$;r=0}t.gzindex<t.gzhead.name.length?a=t.gzhead.name.charCodeAt(t.gzindex++)&255:a=0,I(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>r&&(e.adler=C(e.adler,t.pending_buf,t.pending-r,r)),t.gzindex=0}t.status=Ft}if(t.status===Ft){if(t.gzhead.comment){let r=t.pending,a;do{if(t.pending===t.pending_buf_size){if(t.gzhead.hcrc&&t.pending>r&&(e.adler=C(e.adler,t.pending_buf,t.pending-r,r)),U(e),t.pending!==0)return t.last_flush=-1,$;r=0}t.gzindex<t.gzhead.comment.length?a=t.gzhead.comment.charCodeAt(t.gzindex++)&255:a=0,I(t,a)}while(a!==0);t.gzhead.hcrc&&t.pending>r&&(e.adler=C(e.adler,t.pending_buf,t.pending-r,r))}t.status=Ct}if(t.status===Ct){if(t.gzhead.hcrc){if(t.pending+2>t.pending_buf_size&&(U(e),t.pending!==0))return t.last_flush=-1,$;I(t,e.adler&255),I(t,e.adler>>8&255),e.adler=0}if(t.status=ue,U(e),t.pending!==0)return t.last_flush=-1,$}if(e.avail_in!==0||t.lookahead!==0||n!==re&&t.status!==Pe){let r=t.level===0?pi(t,n):t.strategy===De?sa(t,n):t.strategy===Mr?aa(t,n):Le[t.level].func(t,n);if((r===ge||r===Oe)&&(t.status=Pe),r===Z||r===ge)return e.avail_out===0&&(t.last_flush=-1),$;if(r===Se&&(n===Lr?Pr(t):n!==ln&&(Ot(t,0,0,!1),n===Zr&&(te(t.head),t.lookahead===0&&(t.strstart=0,t.block_start=0,t.insert=0))),U(e),e.avail_out===0))return t.last_flush=-1,$}return n!==H?$:t.wrap<=0?fn:(t.wrap===2?(I(t,e.adler&255),I(t,e.adler>>8&255),I(t,e.adler>>16&255),I(t,e.adler>>24&255),I(t,e.total_in&255),I(t,e.total_in>>8&255),I(t,e.total_in>>16&255),I(t,e.total_in>>24&255)):(ze(t,e.adler>>>16),ze(t,e.adler&65535)),U(e),t.wrap>0&&(t.wrap=-t.wrap),t.pending!==0?$:fn)},ua=e=>{if(qe(e))return Y;const n=e.state.status;return e.state=null,n===ue?he(e,jr):$},ha=(e,n)=>{let t=n.length;if(qe(e))return Y;const i=e.state,r=i.wrap;if(r===2||r===1&&i.status!==Ne||i.lookahead)return Y;if(r===1&&(e.adler=Xe(e.adler,n,t,0)),i.wrap=0,t>=i.w_size){r===0&&(te(i.head),i.strstart=0,i.block_start=0,i.insert=0);let f=new Uint8Array(i.w_size);f.set(n.subarray(t-i.w_size,t),0),n=f,t=i.w_size}const a=e.avail_in,l=e.next_in,s=e.input;for(e.avail_in=t,e.next_in=0,e.input=n,ke(i);i.lookahead>=S;){let f=i.strstart,o=i.lookahead-(S-1);do i.ins_h=ae(i,i.ins_h,i.window[f+S-1]),i.prev[f&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=f,f++;while(--o);i.strstart=f,i.lookahead=S-1,ke(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=S-1,i.match_available=0,e.next_in=l,e.input=s,e.avail_in=a,i.wrap=r,$};var _a=ca,pa=wi,ga=bi,ba=gi,wa=fa,ya=da,xa=ua,va=ha,ma="pako deflate (from Nodeca project)",je={deflateInit:_a,deflateInit2:pa,deflateReset:ga,deflateResetKeep:ba,deflateSetHeader:wa,deflate:ya,deflateEnd:xa,deflateSetDictionary:va,deflateInfo:ma};const Ea=(e,n)=>Object.prototype.hasOwnProperty.call(e,n);var Na=function(e){const n=Array.prototype.slice.call(arguments,1);for(;n.length;){const t=n.shift();if(t){if(typeof t!="object")throw new TypeError(t+"must be non-object");for(const i in t)Ea(t,i)&&(e[i]=t[i])}}return e},ka=e=>{let n=0;for(let i=0,r=e.length;i<r;i++)n+=e[i].length;const t=new Uint8Array(n);for(let i=0,r=0,a=e.length;i<a;i++){let l=e[i];t.set(l,r),r+=l.length}return t},ft={assign:Na,flattenChunks:ka};let yi=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{yi=!1}const Ge=new Uint8Array(256);for(let e=0;e<256;e++)Ge[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Ge[254]=Ge[254]=1;var Ta=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let n,t,i,r,a,l=e.length,s=0;for(r=0;r<l;r++)t=e.charCodeAt(r),(t&64512)===55296&&r+1<l&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),r++)),s+=t<128?1:t<2048?2:t<65536?3:4;for(n=new Uint8Array(s),a=0,r=0;a<s;r++)t=e.charCodeAt(r),(t&64512)===55296&&r+1<l&&(i=e.charCodeAt(r+1),(i&64512)===56320&&(t=65536+(t-55296<<10)+(i-56320),r++)),t<128?n[a++]=t:t<2048?(n[a++]=192|t>>>6,n[a++]=128|t&63):t<65536?(n[a++]=224|t>>>12,n[a++]=128|t>>>6&63,n[a++]=128|t&63):(n[a++]=240|t>>>18,n[a++]=128|t>>>12&63,n[a++]=128|t>>>6&63,n[a++]=128|t&63);return n};const Aa=(e,n)=>{if(n<65534&&e.subarray&&yi)return String.fromCharCode.apply(null,e.length===n?e:e.subarray(0,n));let t="";for(let i=0;i<n;i++)t+=String.fromCharCode(e[i]);return t};var Sa=(e,n)=>{const t=n||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,n));let i,r;const a=new Array(t*2);for(r=0,i=0;i<t;){let l=e[i++];if(l<128){a[r++]=l;continue}let s=Ge[l];if(s>4){a[r++]=65533,i+=s-1;continue}for(l&=s===2?31:s===3?15:7;s>1&&i<t;)l=l<<6|e[i++]&63,s--;if(s>1){a[r++]=65533;continue}l<65536?a[r++]=l:(l-=65536,a[r++]=55296|l>>10&1023,a[r++]=56320|l&1023)}return Aa(a,r)},Oa=(e,n)=>{n=n||e.length,n>e.length&&(n=e.length);let t=n-1;for(;t>=0&&(e[t]&192)===128;)t--;return t<0||t===0?n:t+Ge[e[t]]>n?t:n},Ke={string2buf:Ta,buf2string:Sa,utf8border:Oa};function Ia(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var xi=Ia;const vi=Object.prototype.toString,{Z_NO_FLUSH:Ra,Z_SYNC_FLUSH:za,Z_FULL_FLUSH:Fa,Z_FINISH:Ca,Z_OK:st,Z_STREAM_END:$a,Z_DEFAULT_COMPRESSION:Pa,Z_DEFAULT_STRATEGY:La,Z_DEFLATED:Za}=we;function Je(e){this.options=ft.assign({level:Pa,method:Za,chunkSize:16384,windowBits:15,memLevel:8,strategy:La},e||{});let n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new xi,this.strm.avail_out=0;let t=je.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(t!==st)throw new Error(pe[t]);if(n.header&&je.deflateSetHeader(this.strm,n.header),n.dictionary){let i;if(typeof n.dictionary=="string"?i=Ke.string2buf(n.dictionary):vi.call(n.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(n.dictionary):i=n.dictionary,t=je.deflateSetDictionary(this.strm,i),t!==st)throw new Error(pe[t]);this._dict_set=!0}}Je.prototype.push=function(e,n){const t=this.strm,i=this.options.chunkSize;let r,a;if(this.ended)return!1;for(n===~~n?a=n:a=n===!0?Ca:Ra,typeof e=="string"?t.input=Ke.string2buf(e):vi.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){if(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),(a===za||a===Fa)&&t.avail_out<=6){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(r=je.deflate(t,a),r===$a)return t.next_out>0&&this.onData(t.output.subarray(0,t.next_out)),r=je.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===st;if(t.avail_out===0){this.onData(t.output);continue}if(a>0&&t.next_out>0){this.onData(t.output.subarray(0,t.next_out)),t.avail_out=0;continue}if(t.avail_in===0)break}return!0};Je.prototype.onData=function(e){this.chunks.push(e)};Je.prototype.onEnd=function(e){e===st&&(this.result=ft.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Xt(e,n){const t=new Je(n);if(t.push(e,!0),t.err)throw t.msg||pe[t.err];return t.result}function ja(e,n){return n=n||{},n.raw=!0,Xt(e,n)}function Ua(e,n){return n=n||{},n.gzip=!0,Xt(e,n)}var Ba=Je,Ma=Xt,Ha=ja,Va=Ua,Xa=we,Ga={Deflate:Ba,deflate:Ma,deflateRaw:Ha,gzip:Va,constants:Xa};const et=16209,Ka=16191;var Ya=function(n,t){let i,r,a,l,s,f,o,c,_,u,d,b,v,h,g,E,y,p,k,N,w,O,A,m;const T=n.state;i=n.next_in,A=n.input,r=i+(n.avail_in-5),a=n.next_out,m=n.output,l=a-(t-n.avail_out),s=a+(n.avail_out-257),f=T.dmax,o=T.wsize,c=T.whave,_=T.wnext,u=T.window,d=T.hold,b=T.bits,v=T.lencode,h=T.distcode,g=(1<<T.lenbits)-1,E=(1<<T.distbits)-1;e:do{b<15&&(d+=A[i++]<<b,b+=8,d+=A[i++]<<b,b+=8),y=v[d&g];t:for(;;){if(p=y>>>24,d>>>=p,b-=p,p=y>>>16&255,p===0)m[a++]=y&65535;else if(p&16){k=y&65535,p&=15,p&&(b<p&&(d+=A[i++]<<b,b+=8),k+=d&(1<<p)-1,d>>>=p,b-=p),b<15&&(d+=A[i++]<<b,b+=8,d+=A[i++]<<b,b+=8),y=h[d&E];n:for(;;){if(p=y>>>24,d>>>=p,b-=p,p=y>>>16&255,p&16){if(N=y&65535,p&=15,b<p&&(d+=A[i++]<<b,b+=8,b<p&&(d+=A[i++]<<b,b+=8)),N+=d&(1<<p)-1,N>f){n.msg="invalid distance too far back",T.mode=et;break e}if(d>>>=p,b-=p,p=a-l,N>p){if(p=N-p,p>c&&T.sane){n.msg="invalid distance too far back",T.mode=et;break e}if(w=0,O=u,_===0){if(w+=o-p,p<k){k-=p;do m[a++]=u[w++];while(--p);w=a-N,O=m}}else if(_<p){if(w+=o+_-p,p-=_,p<k){k-=p;do m[a++]=u[w++];while(--p);if(w=0,_<k){p=_,k-=p;do m[a++]=u[w++];while(--p);w=a-N,O=m}}}else if(w+=_-p,p<k){k-=p;do m[a++]=u[w++];while(--p);w=a-N,O=m}for(;k>2;)m[a++]=O[w++],m[a++]=O[w++],m[a++]=O[w++],k-=3;k&&(m[a++]=O[w++],k>1&&(m[a++]=O[w++]))}else{w=a-N;do m[a++]=m[w++],m[a++]=m[w++],m[a++]=m[w++],k-=3;while(k>2);k&&(m[a++]=m[w++],k>1&&(m[a++]=m[w++]))}}else if(p&64){n.msg="invalid distance code",T.mode=et;break e}else{y=h[(y&65535)+(d&(1<<p)-1)];continue n}break}}else if(p&64)if(p&32){T.mode=Ka;break e}else{n.msg="invalid literal/length code",T.mode=et;break e}else{y=v[(y&65535)+(d&(1<<p)-1)];continue t}break}}while(i<r&&a<s);k=b>>3,i-=k,b-=k<<3,d&=(1<<b)-1,n.next_in=i,n.next_out=a,n.avail_in=i<r?5+(r-i):5-(i-r),n.avail_out=a<s?257+(s-a):257-(a-s),T.hold=d,T.bits=b};const me=15,dn=852,un=592,hn=0,wt=1,_n=2,Wa=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),qa=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Ja=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Qa=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),Da=(e,n,t,i,r,a,l,s)=>{const f=s.bits;let o=0,c=0,_=0,u=0,d=0,b=0,v=0,h=0,g=0,E=0,y,p,k,N,w,O=null,A;const m=new Uint16Array(me+1),T=new Uint16Array(me+1);let X=null,Ie,oe,xe;for(o=0;o<=me;o++)m[o]=0;for(c=0;c<i;c++)m[n[t+c]]++;for(d=f,u=me;u>=1&&m[u]===0;u--);if(d>u&&(d=u),u===0)return r[a++]=1<<24|64<<16|0,r[a++]=1<<24|64<<16|0,s.bits=1,0;for(_=1;_<u&&m[_]===0;_++);for(d<_&&(d=_),h=1,o=1;o<=me;o++)if(h<<=1,h-=m[o],h<0)return-1;if(h>0&&(e===hn||u!==1))return-1;for(T[1]=0,o=1;o<me;o++)T[o+1]=T[o]+m[o];for(c=0;c<i;c++)n[t+c]!==0&&(l[T[n[t+c]]++]=c);if(e===hn?(O=X=l,A=20):e===wt?(O=Wa,X=qa,A=257):(O=Ja,X=Qa,A=0),E=0,c=0,o=_,w=a,b=d,v=0,k=-1,g=1<<d,N=g-1,e===wt&&g>dn||e===_n&&g>un)return 1;for(;;){Ie=o-v,l[c]+1<A?(oe=0,xe=l[c]):l[c]>=A?(oe=X[l[c]-A],xe=O[l[c]-A]):(oe=96,xe=0),y=1<<o-v,p=1<<b,_=p;do p-=y,r[w+(E>>v)+p]=Ie<<24|oe<<16|xe|0;while(p!==0);for(y=1<<o-1;E&y;)y>>=1;if(y!==0?(E&=y-1,E+=y):E=0,c++,--m[o]===0){if(o===u)break;o=n[t+l[c]]}if(o>d&&(E&N)!==k){for(v===0&&(v=d),w+=_,b=o-v,h=1<<b;b+v<u&&(h-=m[b+v],!(h<=0));)b++,h<<=1;if(g+=1<<b,e===wt&&g>dn||e===_n&&g>un)return 1;k=E&N,r[k]=d<<24|b<<16|w-a|0}}return E!==0&&(r[w+E]=o-v<<24|64<<16|0),s.bits=d,0};var Ue=Da;const es=0,mi=1,Ei=2,{Z_FINISH:pn,Z_BLOCK:ts,Z_TREES:tt,Z_OK:be,Z_STREAM_END:ns,Z_NEED_DICT:is,Z_STREAM_ERROR:V,Z_DATA_ERROR:Ni,Z_MEM_ERROR:ki,Z_BUF_ERROR:rs,Z_DEFLATED:gn}=we,ct=16180,bn=16181,wn=16182,yn=16183,xn=16184,vn=16185,mn=16186,En=16187,Nn=16188,kn=16189,ot=16190,q=16191,yt=16192,Tn=16193,xt=16194,An=16195,Sn=16196,On=16197,In=16198,nt=16199,it=16200,Rn=16201,zn=16202,Fn=16203,Cn=16204,$n=16205,vt=16206,Pn=16207,Ln=16208,z=16209,Ti=16210,Ai=16211,as=852,ss=592,os=15,ls=os,Zn=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function fs(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const ye=e=>{if(!e)return 1;const n=e.state;return!n||n.strm!==e||n.mode<ct||n.mode>Ai?1:0},Si=e=>{if(ye(e))return V;const n=e.state;return e.total_in=e.total_out=n.total=0,e.msg="",n.wrap&&(e.adler=n.wrap&1),n.mode=ct,n.last=0,n.havedict=0,n.flags=-1,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new Int32Array(as),n.distcode=n.distdyn=new Int32Array(ss),n.sane=1,n.back=-1,be},Oi=e=>{if(ye(e))return V;const n=e.state;return n.wsize=0,n.whave=0,n.wnext=0,Si(e)},Ii=(e,n)=>{let t;if(ye(e))return V;const i=e.state;return n<0?(t=0,n=-n):(t=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?V:(i.window!==null&&i.wbits!==n&&(i.window=null),i.wrap=t,i.wbits=n,Oi(e))},Ri=(e,n)=>{if(!e)return V;const t=new fs;e.state=t,t.strm=e,t.window=null,t.mode=ct;const i=Ii(e,n);return i!==be&&(e.state=null),i},cs=e=>Ri(e,ls);let jn=!0,mt,Et;const ds=e=>{if(jn){mt=new Int32Array(512),Et=new Int32Array(32);let n=0;for(;n<144;)e.lens[n++]=8;for(;n<256;)e.lens[n++]=9;for(;n<280;)e.lens[n++]=7;for(;n<288;)e.lens[n++]=8;for(Ue(mi,e.lens,0,288,mt,0,e.work,{bits:9}),n=0;n<32;)e.lens[n++]=5;Ue(Ei,e.lens,0,32,Et,0,e.work,{bits:5}),jn=!1}e.lencode=mt,e.lenbits=9,e.distcode=Et,e.distbits=5},zi=(e,n,t,i)=>{let r;const a=e.state;return a.window===null&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new Uint8Array(a.wsize)),i>=a.wsize?(a.window.set(n.subarray(t-a.wsize,t),0),a.wnext=0,a.whave=a.wsize):(r=a.wsize-a.wnext,r>i&&(r=i),a.window.set(n.subarray(t-i,t-i+r),a.wnext),i-=r,i?(a.window.set(n.subarray(t-i,t),0),a.wnext=i,a.whave=a.wsize):(a.wnext+=r,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=r))),0},us=(e,n)=>{let t,i,r,a,l,s,f,o,c,_,u,d,b,v,h=0,g,E,y,p,k,N,w,O;const A=new Uint8Array(4);let m,T;const X=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ye(e)||!e.output||!e.input&&e.avail_in!==0)return V;t=e.state,t.mode===q&&(t.mode=yt),l=e.next_out,r=e.output,f=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,o=t.hold,c=t.bits,_=s,u=f,O=be;e:for(;;)switch(t.mode){case ct:if(t.wrap===0){t.mode=yt;break}for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.wrap&2&&o===35615){t.wbits===0&&(t.wbits=15),t.check=0,A[0]=o&255,A[1]=o>>>8&255,t.check=C(t.check,A,2,0),o=0,c=0,t.mode=bn;break}if(t.head&&(t.head.done=!1),!(t.wrap&1)||(((o&255)<<8)+(o>>8))%31){e.msg="incorrect header check",t.mode=z;break}if((o&15)!==gn){e.msg="unknown compression method",t.mode=z;break}if(o>>>=4,c-=4,w=(o&15)+8,t.wbits===0&&(t.wbits=w),w>15||w>t.wbits){e.msg="invalid window size",t.mode=z;break}t.dmax=1<<t.wbits,t.flags=0,e.adler=t.check=1,t.mode=o&512?kn:q,o=0,c=0;break;case bn:for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.flags=o,(t.flags&255)!==gn){e.msg="unknown compression method",t.mode=z;break}if(t.flags&57344){e.msg="unknown header flags set",t.mode=z;break}t.head&&(t.head.text=o>>8&1),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,t.check=C(t.check,A,2,0)),o=0,c=0,t.mode=wn;case wn:for(;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.head&&(t.head.time=o),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,A[2]=o>>>16&255,A[3]=o>>>24&255,t.check=C(t.check,A,4,0)),o=0,c=0,t.mode=yn;case yn:for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.head&&(t.head.xflags=o&255,t.head.os=o>>8),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,t.check=C(t.check,A,2,0)),o=0,c=0,t.mode=xn;case xn:if(t.flags&1024){for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.length=o,t.head&&(t.head.extra_len=o),t.flags&512&&t.wrap&4&&(A[0]=o&255,A[1]=o>>>8&255,t.check=C(t.check,A,2,0)),o=0,c=0}else t.head&&(t.head.extra=null);t.mode=vn;case vn:if(t.flags&1024&&(d=t.length,d>s&&(d=s),d&&(t.head&&(w=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Uint8Array(t.head.extra_len)),t.head.extra.set(i.subarray(a,a+d),w)),t.flags&512&&t.wrap&4&&(t.check=C(t.check,i,d,a)),s-=d,a+=d,t.length-=d),t.length))break e;t.length=0,t.mode=mn;case mn:if(t.flags&2048){if(s===0)break e;d=0;do w=i[a+d++],t.head&&w&&t.length<65536&&(t.head.name+=String.fromCharCode(w));while(w&&d<s);if(t.flags&512&&t.wrap&4&&(t.check=C(t.check,i,d,a)),s-=d,a+=d,w)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=En;case En:if(t.flags&4096){if(s===0)break e;d=0;do w=i[a+d++],t.head&&w&&t.length<65536&&(t.head.comment+=String.fromCharCode(w));while(w&&d<s);if(t.flags&512&&t.wrap&4&&(t.check=C(t.check,i,d,a)),s-=d,a+=d,w)break e}else t.head&&(t.head.comment=null);t.mode=Nn;case Nn:if(t.flags&512){for(;c<16;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.wrap&4&&o!==(t.check&65535)){e.msg="header crc mismatch",t.mode=z;break}o=0,c=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),e.adler=t.check=0,t.mode=q;break;case kn:for(;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}e.adler=t.check=Zn(o),o=0,c=0,t.mode=ot;case ot:if(t.havedict===0)return e.next_out=l,e.avail_out=f,e.next_in=a,e.avail_in=s,t.hold=o,t.bits=c,is;e.adler=t.check=1,t.mode=q;case q:if(n===ts||n===tt)break e;case yt:if(t.last){o>>>=c&7,c-=c&7,t.mode=vt;break}for(;c<3;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}switch(t.last=o&1,o>>>=1,c-=1,o&3){case 0:t.mode=Tn;break;case 1:if(ds(t),t.mode=nt,n===tt){o>>>=2,c-=2;break e}break;case 2:t.mode=Sn;break;case 3:e.msg="invalid block type",t.mode=z}o>>>=2,c-=2;break;case Tn:for(o>>>=c&7,c-=c&7;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if((o&65535)!==(o>>>16^65535)){e.msg="invalid stored block lengths",t.mode=z;break}if(t.length=o&65535,o=0,c=0,t.mode=xt,n===tt)break e;case xt:t.mode=An;case An:if(d=t.length,d){if(d>s&&(d=s),d>f&&(d=f),d===0)break e;r.set(i.subarray(a,a+d),l),s-=d,a+=d,f-=d,l+=d,t.length-=d;break}t.mode=q;break;case Sn:for(;c<14;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.nlen=(o&31)+257,o>>>=5,c-=5,t.ndist=(o&31)+1,o>>>=5,c-=5,t.ncode=(o&15)+4,o>>>=4,c-=4,t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols",t.mode=z;break}t.have=0,t.mode=On;case On:for(;t.have<t.ncode;){for(;c<3;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.lens[X[t.have++]]=o&7,o>>>=3,c-=3}for(;t.have<19;)t.lens[X[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,m={bits:t.lenbits},O=Ue(es,t.lens,0,19,t.lencode,0,t.work,m),t.lenbits=m.bits,O){e.msg="invalid code lengths set",t.mode=z;break}t.have=0,t.mode=In;case In:for(;t.have<t.nlen+t.ndist;){for(;h=t.lencode[o&(1<<t.lenbits)-1],g=h>>>24,E=h>>>16&255,y=h&65535,!(g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(y<16)o>>>=g,c-=g,t.lens[t.have++]=y;else{if(y===16){for(T=g+2;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(o>>>=g,c-=g,t.have===0){e.msg="invalid bit length repeat",t.mode=z;break}w=t.lens[t.have-1],d=3+(o&3),o>>>=2,c-=2}else if(y===17){for(T=g+3;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=g,c-=g,w=0,d=3+(o&7),o>>>=3,c-=3}else{for(T=g+7;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=g,c-=g,w=0,d=11+(o&127),o>>>=7,c-=7}if(t.have+d>t.nlen+t.ndist){e.msg="invalid bit length repeat",t.mode=z;break}for(;d--;)t.lens[t.have++]=w}}if(t.mode===z)break;if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block",t.mode=z;break}if(t.lenbits=9,m={bits:t.lenbits},O=Ue(mi,t.lens,0,t.nlen,t.lencode,0,t.work,m),t.lenbits=m.bits,O){e.msg="invalid literal/lengths set",t.mode=z;break}if(t.distbits=6,t.distcode=t.distdyn,m={bits:t.distbits},O=Ue(Ei,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,m),t.distbits=m.bits,O){e.msg="invalid distances set",t.mode=z;break}if(t.mode=nt,n===tt)break e;case nt:t.mode=it;case it:if(s>=6&&f>=258){e.next_out=l,e.avail_out=f,e.next_in=a,e.avail_in=s,t.hold=o,t.bits=c,Ya(e,u),l=e.next_out,r=e.output,f=e.avail_out,a=e.next_in,i=e.input,s=e.avail_in,o=t.hold,c=t.bits,t.mode===q&&(t.back=-1);break}for(t.back=0;h=t.lencode[o&(1<<t.lenbits)-1],g=h>>>24,E=h>>>16&255,y=h&65535,!(g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(E&&!(E&240)){for(p=g,k=E,N=y;h=t.lencode[N+((o&(1<<p+k)-1)>>p)],g=h>>>24,E=h>>>16&255,y=h&65535,!(p+g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=p,c-=p,t.back+=p}if(o>>>=g,c-=g,t.back+=g,t.length=y,E===0){t.mode=$n;break}if(E&32){t.back=-1,t.mode=q;break}if(E&64){e.msg="invalid literal/length code",t.mode=z;break}t.extra=E&15,t.mode=Rn;case Rn:if(t.extra){for(T=t.extra;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.length+=o&(1<<t.extra)-1,o>>>=t.extra,c-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=zn;case zn:for(;h=t.distcode[o&(1<<t.distbits)-1],g=h>>>24,E=h>>>16&255,y=h&65535,!(g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(!(E&240)){for(p=g,k=E,N=y;h=t.distcode[N+((o&(1<<p+k)-1)>>p)],g=h>>>24,E=h>>>16&255,y=h&65535,!(p+g<=c);){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}o>>>=p,c-=p,t.back+=p}if(o>>>=g,c-=g,t.back+=g,E&64){e.msg="invalid distance code",t.mode=z;break}t.offset=y,t.extra=E&15,t.mode=Fn;case Fn:if(t.extra){for(T=t.extra;c<T;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}t.offset+=o&(1<<t.extra)-1,o>>>=t.extra,c-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back",t.mode=z;break}t.mode=Cn;case Cn:if(f===0)break e;if(d=u-f,t.offset>d){if(d=t.offset-d,d>t.whave&&t.sane){e.msg="invalid distance too far back",t.mode=z;break}d>t.wnext?(d-=t.wnext,b=t.wsize-d):b=t.wnext-d,d>t.length&&(d=t.length),v=t.window}else v=r,b=l-t.offset,d=t.length;d>f&&(d=f),f-=d,t.length-=d;do r[l++]=v[b++];while(--d);t.length===0&&(t.mode=it);break;case $n:if(f===0)break e;r[l++]=t.length,f--,t.mode=it;break;case vt:if(t.wrap){for(;c<32;){if(s===0)break e;s--,o|=i[a++]<<c,c+=8}if(u-=f,e.total_out+=u,t.total+=u,t.wrap&4&&u&&(e.adler=t.check=t.flags?C(t.check,r,u,l-u):Xe(t.check,r,u,l-u)),u=f,t.wrap&4&&(t.flags?o:Zn(o))!==t.check){e.msg="incorrect data check",t.mode=z;break}o=0,c=0}t.mode=Pn;case Pn:if(t.wrap&&t.flags){for(;c<32;){if(s===0)break e;s--,o+=i[a++]<<c,c+=8}if(t.wrap&4&&o!==(t.total&4294967295)){e.msg="incorrect length check",t.mode=z;break}o=0,c=0}t.mode=Ln;case Ln:O=ns;break e;case z:O=Ni;break e;case Ti:return ki;case Ai:default:return V}return e.next_out=l,e.avail_out=f,e.next_in=a,e.avail_in=s,t.hold=o,t.bits=c,(t.wsize||u!==e.avail_out&&t.mode<z&&(t.mode<vt||n!==pn))&&zi(e,e.output,e.next_out,u-e.avail_out),_-=e.avail_in,u-=e.avail_out,e.total_in+=_,e.total_out+=u,t.total+=u,t.wrap&4&&u&&(e.adler=t.check=t.flags?C(t.check,r,u,e.next_out-u):Xe(t.check,r,u,e.next_out-u)),e.data_type=t.bits+(t.last?64:0)+(t.mode===q?128:0)+(t.mode===nt||t.mode===xt?256:0),(_===0&&u===0||n===pn)&&O===be&&(O=rs),O},hs=e=>{if(ye(e))return V;let n=e.state;return n.window&&(n.window=null),e.state=null,be},_s=(e,n)=>{if(ye(e))return V;const t=e.state;return t.wrap&2?(t.head=n,n.done=!1,be):V},ps=(e,n)=>{const t=n.length;let i,r,a;return ye(e)||(i=e.state,i.wrap!==0&&i.mode!==ot)?V:i.mode===ot&&(r=1,r=Xe(r,n,t,0),r!==i.check)?Ni:(a=zi(e,n,t,t),a?(i.mode=Ti,ki):(i.havedict=1,be))};var gs=Oi,bs=Ii,ws=Si,ys=cs,xs=Ri,vs=us,ms=hs,Es=_s,Ns=ps,ks="pako inflate (from Nodeca project)",Q={inflateReset:gs,inflateReset2:bs,inflateResetKeep:ws,inflateInit:ys,inflateInit2:xs,inflate:vs,inflateEnd:ms,inflateGetHeader:Es,inflateSetDictionary:Ns,inflateInfo:ks};function Ts(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var As=Ts;const Fi=Object.prototype.toString,{Z_NO_FLUSH:Ss,Z_FINISH:Os,Z_OK:Ye,Z_STREAM_END:Nt,Z_NEED_DICT:kt,Z_STREAM_ERROR:Is,Z_DATA_ERROR:Un,Z_MEM_ERROR:Rs}=we;function Qe(e){this.options=ft.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(e&&e.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15||(n.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new xi,this.strm.avail_out=0;let t=Q.inflateInit2(this.strm,n.windowBits);if(t!==Ye)throw new Error(pe[t]);if(this.header=new As,Q.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=Ke.string2buf(n.dictionary):Fi.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(t=Q.inflateSetDictionary(this.strm,n.dictionary),t!==Ye)))throw new Error(pe[t])}Qe.prototype.push=function(e,n){const t=this.strm,i=this.options.chunkSize,r=this.options.dictionary;let a,l,s;if(this.ended)return!1;for(n===~~n?l=n:l=n===!0?Os:Ss,Fi.call(e)==="[object ArrayBuffer]"?t.input=new Uint8Array(e):t.input=e,t.next_in=0,t.avail_in=t.input.length;;){for(t.avail_out===0&&(t.output=new Uint8Array(i),t.next_out=0,t.avail_out=i),a=Q.inflate(t,l),a===kt&&r&&(a=Q.inflateSetDictionary(t,r),a===Ye?a=Q.inflate(t,l):a===Un&&(a=kt));t.avail_in>0&&a===Nt&&t.state.wrap>0&&e[t.next_in]!==0;)Q.inflateReset(t),a=Q.inflate(t,l);switch(a){case Is:case Un:case kt:case Rs:return this.onEnd(a),this.ended=!0,!1}if(s=t.avail_out,t.next_out&&(t.avail_out===0||a===Nt))if(this.options.to==="string"){let f=Ke.utf8border(t.output,t.next_out),o=t.next_out-f,c=Ke.buf2string(t.output,f);t.next_out=o,t.avail_out=i-o,o&&t.output.set(t.output.subarray(f,f+o),0),this.onData(c)}else this.onData(t.output.length===t.next_out?t.output:t.output.subarray(0,t.next_out));if(!(a===Ye&&s===0)){if(a===Nt)return a=Q.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,!0;if(t.avail_in===0)break}}return!0};Qe.prototype.onData=function(e){this.chunks.push(e)};Qe.prototype.onEnd=function(e){e===Ye&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ft.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Gt(e,n){const t=new Qe(n);if(t.push(e),t.err)throw t.msg||pe[t.err];return t.result}function zs(e,n){return n=n||{},n.raw=!0,Gt(e,n)}var Fs=Qe,Cs=Gt,$s=zs,Ps=Gt,Ls=we,Zs={Inflate:Fs,inflate:Cs,inflateRaw:$s,ungzip:Ps,constants:Ls};const{Deflate:js,deflate:Us,deflateRaw:Bs,gzip:Ms}=Ga,{Inflate:Hs,inflate:Vs,inflateRaw:Xs,ungzip:Gs}=Zs;var Ks=js,Ys=Us,Ws=Bs,qs=Ms,Js=Hs,Qs=Vs,Ds=Xs,eo=Gs,to=we,no={Deflate:Ks,deflate:Ys,deflateRaw:Ws,gzip:qs,Inflate:Js,inflate:Qs,inflateRaw:Ds,ungzip:eo,constants:to},Kt={exports:{}},Yt={},dt={};(function(e){const n=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",t=n+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",i="["+n+"]["+t+"]*",r=new RegExp("^"+i+"$"),a=function(s,f){const o=[];let c=f.exec(s);for(;c;){const _=[];_.startIndex=f.lastIndex-c[0].length;const u=c.length;for(let d=0;d<u;d++)_.push(c[d]);o.push(_),c=f.exec(s)}return o},l=function(s){const f=r.exec(s);return!(f===null||typeof f>"u")};e.isExist=function(s){return typeof s<"u"},e.isEmptyObject=function(s){return Object.keys(s).length===0},e.merge=function(s,f,o){if(f){const c=Object.keys(f),_=c.length;for(let u=0;u<_;u++)o==="strict"?s[c[u]]=[f[c[u]]]:s[c[u]]=f[c[u]]}},e.getValue=function(s){return e.isExist(s)?s:""},e.isName=l,e.getAllMatches=a,e.nameRegexp=i})(dt);const Wt=dt,io={allowBooleanAttributes:!1,unpairedTags:[]};Yt.validate=function(e,n){n=Object.assign({},io,n);const t=[];let i=!1,r=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let a=0;a<e.length;a++)if(e[a]==="<"&&e[a+1]==="?"){if(a+=2,a=Mn(e,a),a.err)return a}else if(e[a]==="<"){let l=a;if(a++,e[a]==="!"){a=Hn(e,a);continue}else{let s=!1;e[a]==="/"&&(s=!0,a++);let f="";for(;a<e.length&&e[a]!==">"&&e[a]!==" "&&e[a]!==" "&&e[a]!==`
2
- `&&e[a]!=="\r";a++)f+=e[a];if(f=f.trim(),f[f.length-1]==="/"&&(f=f.substring(0,f.length-1),a--),!uo(f)){let _;return f.trim().length===0?_="Invalid space after '<'.":_="Tag '"+f+"' is an invalid name.",F("InvalidTag",_,L(e,a))}const o=so(e,a);if(o===!1)return F("InvalidAttr","Attributes for '"+f+"' have open quote.",L(e,a));let c=o.value;if(a=o.index,c[c.length-1]==="/"){const _=a-c.length;c=c.substring(0,c.length-1);const u=Vn(c,n);if(u===!0)i=!0;else return F(u.err.code,u.err.msg,L(e,_+u.err.line))}else if(s)if(o.tagClosed){if(c.trim().length>0)return F("InvalidTag","Closing tag '"+f+"' can't have attributes or invalid starting.",L(e,l));if(t.length===0)return F("InvalidTag","Closing tag '"+f+"' has not been opened.",L(e,l));{const _=t.pop();if(f!==_.tagName){let u=L(e,_.tagStartPos);return F("InvalidTag","Expected closing tag '"+_.tagName+"' (opened in line "+u.line+", col "+u.col+") instead of closing tag '"+f+"'.",L(e,l))}t.length==0&&(r=!0)}}else return F("InvalidTag","Closing tag '"+f+"' doesn't have proper closing.",L(e,a));else{const _=Vn(c,n);if(_!==!0)return F(_.err.code,_.err.msg,L(e,a-c.length+_.err.line));if(r===!0)return F("InvalidXml","Multiple possible root nodes found.",L(e,a));n.unpairedTags.indexOf(f)!==-1||t.push({tagName:f,tagStartPos:l}),i=!0}for(a++;a<e.length;a++)if(e[a]==="<")if(e[a+1]==="!"){a++,a=Hn(e,a);continue}else if(e[a+1]==="?"){if(a=Mn(e,++a),a.err)return a}else break;else if(e[a]==="&"){const _=fo(e,a);if(_==-1)return F("InvalidChar","char '&' is not expected.",L(e,a));a=_}else if(r===!0&&!Bn(e[a]))return F("InvalidXml","Extra text at the end",L(e,a));e[a]==="<"&&a--}}else{if(Bn(e[a]))continue;return F("InvalidChar","char '"+e[a]+"' is not expected.",L(e,a))}if(i){if(t.length==1)return F("InvalidTag","Unclosed tag '"+t[0].tagName+"'.",L(e,t[0].tagStartPos));if(t.length>0)return F("InvalidXml","Invalid '"+JSON.stringify(t.map(a=>a.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return F("InvalidXml","Start tag expected.",1);return!0};function Bn(e){return e===" "||e===" "||e===`
3
- `||e==="\r"}function Mn(e,n){const t=n;for(;n<e.length;n++)if(e[n]=="?"||e[n]==" "){const i=e.substr(t,n-t);if(n>5&&i==="xml")return F("InvalidXml","XML declaration allowed only at the start of the document.",L(e,n));if(e[n]=="?"&&e[n+1]==">"){n++;break}else continue}return n}function Hn(e,n){if(e.length>n+5&&e[n+1]==="-"&&e[n+2]==="-"){for(n+=3;n<e.length;n++)if(e[n]==="-"&&e[n+1]==="-"&&e[n+2]===">"){n+=2;break}}else if(e.length>n+8&&e[n+1]==="D"&&e[n+2]==="O"&&e[n+3]==="C"&&e[n+4]==="T"&&e[n+5]==="Y"&&e[n+6]==="P"&&e[n+7]==="E"){let t=1;for(n+=8;n<e.length;n++)if(e[n]==="<")t++;else if(e[n]===">"&&(t--,t===0))break}else if(e.length>n+9&&e[n+1]==="["&&e[n+2]==="C"&&e[n+3]==="D"&&e[n+4]==="A"&&e[n+5]==="T"&&e[n+6]==="A"&&e[n+7]==="["){for(n+=8;n<e.length;n++)if(e[n]==="]"&&e[n+1]==="]"&&e[n+2]===">"){n+=2;break}}return n}const ro='"',ao="'";function so(e,n){let t="",i="",r=!1;for(;n<e.length;n++){if(e[n]===ro||e[n]===ao)i===""?i=e[n]:i!==e[n]||(i="");else if(e[n]===">"&&i===""){r=!0;break}t+=e[n]}return i!==""?!1:{value:t,index:n,tagClosed:r}}const oo=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Vn(e,n){const t=Wt.getAllMatches(e,oo),i={};for(let r=0;r<t.length;r++){if(t[r][1].length===0)return F("InvalidAttr","Attribute '"+t[r][2]+"' has no space in starting.",Fe(t[r]));if(t[r][3]!==void 0&&t[r][4]===void 0)return F("InvalidAttr","Attribute '"+t[r][2]+"' is without value.",Fe(t[r]));if(t[r][3]===void 0&&!n.allowBooleanAttributes)return F("InvalidAttr","boolean attribute '"+t[r][2]+"' is not allowed.",Fe(t[r]));const a=t[r][2];if(!co(a))return F("InvalidAttr","Attribute '"+a+"' is an invalid name.",Fe(t[r]));if(!i.hasOwnProperty(a))i[a]=1;else return F("InvalidAttr","Attribute '"+a+"' is repeated.",Fe(t[r]))}return!0}function lo(e,n){let t=/\d/;for(e[n]==="x"&&(n++,t=/[\da-fA-F]/);n<e.length;n++){if(e[n]===";")return n;if(!e[n].match(t))break}return-1}function fo(e,n){if(n++,e[n]===";")return-1;if(e[n]==="#")return n++,lo(e,n);let t=0;for(;n<e.length;n++,t++)if(!(e[n].match(/\w/)&&t<20)){if(e[n]===";")break;return-1}return n}function F(e,n,t){return{err:{code:e,msg:n,line:t.line||t,col:t.col}}}function co(e){return Wt.isName(e)}function uo(e){return Wt.isName(e)}function L(e,n){const t=e.substring(0,n).split(/\r?\n/);return{line:t.length,col:t[t.length-1].length+1}}function Fe(e){return e.startIndex+e[1].length}var qt={};const Ci={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,n){return n},attributeValueProcessor:function(e,n){return n},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,n,t){return e}},ho=function(e){return Object.assign({},Ci,e)};qt.buildOptions=ho;qt.defaultOptions=Ci;class _o{constructor(n){this.tagname=n,this.child=[],this[":@"]={}}add(n,t){n==="__proto__"&&(n="#__proto__"),this.child.push({[n]:t})}addChild(n){n.tagname==="__proto__"&&(n.tagname="#__proto__"),n[":@"]&&Object.keys(n[":@"]).length>0?this.child.push({[n.tagname]:n.child,":@":n[":@"]}):this.child.push({[n.tagname]:n.child})}}var po=_o;const go=dt;function bo(e,n){const t={};if(e[n+3]==="O"&&e[n+4]==="C"&&e[n+5]==="T"&&e[n+6]==="Y"&&e[n+7]==="P"&&e[n+8]==="E"){n=n+9;let i=1,r=!1,a=!1,l="";for(;n<e.length;n++)if(e[n]==="<"&&!a){if(r&&xo(e,n))n+=7,[entityName,val,n]=wo(e,n+1),val.indexOf("&")===-1&&(t[No(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(r&&vo(e,n))n+=8;else if(r&&mo(e,n))n+=8;else if(r&&Eo(e,n))n+=9;else if(yo)a=!0;else throw new Error("Invalid DOCTYPE");i++,l=""}else if(e[n]===">"){if(a?e[n-1]==="-"&&e[n-2]==="-"&&(a=!1,i--):i--,i===0)break}else e[n]==="["?r=!0:l+=e[n];if(i!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:t,i:n}}function wo(e,n){let t="";for(;n<e.length&&e[n]!=="'"&&e[n]!=='"';n++)t+=e[n];if(t=t.trim(),t.indexOf(" ")!==-1)throw new Error("External entites are not supported");const i=e[n++];let r="";for(;n<e.length&&e[n]!==i;n++)r+=e[n];return[t,r,n]}function yo(e,n){return e[n+1]==="!"&&e[n+2]==="-"&&e[n+3]==="-"}function xo(e,n){return e[n+1]==="!"&&e[n+2]==="E"&&e[n+3]==="N"&&e[n+4]==="T"&&e[n+5]==="I"&&e[n+6]==="T"&&e[n+7]==="Y"}function vo(e,n){return e[n+1]==="!"&&e[n+2]==="E"&&e[n+3]==="L"&&e[n+4]==="E"&&e[n+5]==="M"&&e[n+6]==="E"&&e[n+7]==="N"&&e[n+8]==="T"}function mo(e,n){return e[n+1]==="!"&&e[n+2]==="A"&&e[n+3]==="T"&&e[n+4]==="T"&&e[n+5]==="L"&&e[n+6]==="I"&&e[n+7]==="S"&&e[n+8]==="T"}function Eo(e,n){return e[n+1]==="!"&&e[n+2]==="N"&&e[n+3]==="O"&&e[n+4]==="T"&&e[n+5]==="A"&&e[n+6]==="T"&&e[n+7]==="I"&&e[n+8]==="O"&&e[n+9]==="N"}function No(e){if(go.isName(e))return e;throw new Error(`Invalid entity name ${e}`)}var ko=bo;const To=/^[-+]?0x[a-fA-F0-9]+$/,Ao=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);const So={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function Oo(e,n={}){if(n=Object.assign({},So,n),!e||typeof e!="string")return e;let t=e.trim();if(n.skipLike!==void 0&&n.skipLike.test(t))return e;if(n.hex&&To.test(t))return Number.parseInt(t,16);{const i=Ao.exec(t);if(i){const r=i[1],a=i[2];let l=Io(i[3]);const s=i[4]||i[6];if(!n.leadingZeros&&a.length>0&&r&&t[2]!==".")return e;if(!n.leadingZeros&&a.length>0&&!r&&t[1]!==".")return e;{const f=Number(t),o=""+f;return o.search(/[eE]/)!==-1||s?n.eNotation?f:e:t.indexOf(".")!==-1?o==="0"&&l===""||o===l||r&&o==="-"+l?f:e:a?l===o||r+l===o?f:e:t===o||t===r+o?f:e}}else return e}}function Io(e){return e&&e.indexOf(".")!==-1&&(e=e.replace(/0+$/,""),e==="."?e="0":e[0]==="."?e="0"+e:e[e.length-1]==="."&&(e=e.substr(0,e.length-1))),e}var Ro=Oo;function zo(e){return typeof e=="function"?e:Array.isArray(e)?n=>{for(const t of e)if(typeof t=="string"&&n===t||t instanceof RegExp&&t.test(n))return!0}:()=>!1}var $i=zo;const Pi=dt,Ce=po,Fo=ko,Co=Ro,$o=$i;let Po=class{constructor(n){this.options=n,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(t,i)=>String.fromCharCode(Number.parseInt(i,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(t,i)=>String.fromCharCode(Number.parseInt(i,16))}},this.addExternalEntities=Lo,this.parseXml=Mo,this.parseTextData=Zo,this.resolveNameSpace=jo,this.buildAttributesMap=Bo,this.isItStopNode=Go,this.replaceEntitiesValue=Vo,this.readStopNodeData=Yo,this.saveTextToParentTag=Xo,this.addChild=Ho,this.ignoreAttributesFn=$o(this.options.ignoreAttributes)}};function Lo(e){const n=Object.keys(e);for(let t=0;t<n.length;t++){const i=n[t];this.lastEntities[i]={regex:new RegExp("&"+i+";","g"),val:e[i]}}}function Zo(e,n,t,i,r,a,l){if(e!==void 0&&(this.options.trimValues&&!i&&(e=e.trim()),e.length>0)){l||(e=this.replaceEntitiesValue(e));const s=this.options.tagValueProcessor(n,e,t,r,a);return s==null?e:typeof s!=typeof e||s!==e?s:this.options.trimValues?Lt(e,this.options.parseTagValue,this.options.numberParseOptions):e.trim()===e?Lt(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function jo(e){if(this.options.removeNSPrefix){const n=e.split(":"),t=e.charAt(0)==="/"?"/":"";if(n[0]==="xmlns")return"";n.length===2&&(e=t+n[1])}return e}const Uo=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function Bo(e,n,t){if(this.options.ignoreAttributes!==!0&&typeof e=="string"){const i=Pi.getAllMatches(e,Uo),r=i.length,a={};for(let l=0;l<r;l++){const s=this.resolveNameSpace(i[l][1]);if(this.ignoreAttributesFn(s,n))continue;let f=i[l][4],o=this.options.attributeNamePrefix+s;if(s.length)if(this.options.transformAttributeName&&(o=this.options.transformAttributeName(o)),o==="__proto__"&&(o="#__proto__"),f!==void 0){this.options.trimValues&&(f=f.trim()),f=this.replaceEntitiesValue(f);const c=this.options.attributeValueProcessor(s,f,n);c==null?a[o]=f:typeof c!=typeof f||c!==f?a[o]=c:a[o]=Lt(f,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(a[o]=!0)}if(!Object.keys(a).length)return;if(this.options.attributesGroupName){const l={};return l[this.options.attributesGroupName]=a,l}return a}}const Mo=function(e){e=e.replace(/\r\n?/g,`
4
- `);const n=new Ce("!xml");let t=n,i="",r="";for(let a=0;a<e.length;a++)if(e[a]==="<")if(e[a+1]==="/"){const s=_e(e,">",a,"Closing Tag is not closed.");let f=e.substring(a+2,s).trim();if(this.options.removeNSPrefix){const _=f.indexOf(":");_!==-1&&(f=f.substr(_+1))}this.options.transformTagName&&(f=this.options.transformTagName(f)),t&&(i=this.saveTextToParentTag(i,t,r));const o=r.substring(r.lastIndexOf(".")+1);if(f&&this.options.unpairedTags.indexOf(f)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${f}>`);let c=0;o&&this.options.unpairedTags.indexOf(o)!==-1?(c=r.lastIndexOf(".",r.lastIndexOf(".")-1),this.tagsNodeStack.pop()):c=r.lastIndexOf("."),r=r.substring(0,c),t=this.tagsNodeStack.pop(),i="",a=s}else if(e[a+1]==="?"){let s=Pt(e,a,!1,"?>");if(!s)throw new Error("Pi Tag is not closed.");if(i=this.saveTextToParentTag(i,t,r),!(this.options.ignoreDeclaration&&s.tagName==="?xml"||this.options.ignorePiTags)){const f=new Ce(s.tagName);f.add(this.options.textNodeName,""),s.tagName!==s.tagExp&&s.attrExpPresent&&(f[":@"]=this.buildAttributesMap(s.tagExp,r,s.tagName)),this.addChild(t,f,r)}a=s.closeIndex+1}else if(e.substr(a+1,3)==="!--"){const s=_e(e,"-->",a+4,"Comment is not closed.");if(this.options.commentPropName){const f=e.substring(a+4,s-2);i=this.saveTextToParentTag(i,t,r),t.add(this.options.commentPropName,[{[this.options.textNodeName]:f}])}a=s}else if(e.substr(a+1,2)==="!D"){const s=Fo(e,a);this.docTypeEntities=s.entities,a=s.i}else if(e.substr(a+1,2)==="!["){const s=_e(e,"]]>",a,"CDATA is not closed.")-2,f=e.substring(a+9,s);i=this.saveTextToParentTag(i,t,r);let o=this.parseTextData(f,t.tagname,r,!0,!1,!0,!0);o==null&&(o=""),this.options.cdataPropName?t.add(this.options.cdataPropName,[{[this.options.textNodeName]:f}]):t.add(this.options.textNodeName,o),a=s+2}else{let s=Pt(e,a,this.options.removeNSPrefix),f=s.tagName;const o=s.rawTagName;let c=s.tagExp,_=s.attrExpPresent,u=s.closeIndex;this.options.transformTagName&&(f=this.options.transformTagName(f)),t&&i&&t.tagname!=="!xml"&&(i=this.saveTextToParentTag(i,t,r,!1));const d=t;if(d&&this.options.unpairedTags.indexOf(d.tagname)!==-1&&(t=this.tagsNodeStack.pop(),r=r.substring(0,r.lastIndexOf("."))),f!==n.tagname&&(r+=r?"."+f:f),this.isItStopNode(this.options.stopNodes,r,f)){let b="";if(c.length>0&&c.lastIndexOf("/")===c.length-1)f[f.length-1]==="/"?(f=f.substr(0,f.length-1),r=r.substr(0,r.length-1),c=f):c=c.substr(0,c.length-1),a=s.closeIndex;else if(this.options.unpairedTags.indexOf(f)!==-1)a=s.closeIndex;else{const h=this.readStopNodeData(e,o,u+1);if(!h)throw new Error(`Unexpected end of ${o}`);a=h.i,b=h.tagContent}const v=new Ce(f);f!==c&&_&&(v[":@"]=this.buildAttributesMap(c,r,f)),b&&(b=this.parseTextData(b,f,r,!0,_,!0,!0)),r=r.substr(0,r.lastIndexOf(".")),v.add(this.options.textNodeName,b),this.addChild(t,v,r)}else{if(c.length>0&&c.lastIndexOf("/")===c.length-1){f[f.length-1]==="/"?(f=f.substr(0,f.length-1),r=r.substr(0,r.length-1),c=f):c=c.substr(0,c.length-1),this.options.transformTagName&&(f=this.options.transformTagName(f));const b=new Ce(f);f!==c&&_&&(b[":@"]=this.buildAttributesMap(c,r,f)),this.addChild(t,b,r),r=r.substr(0,r.lastIndexOf("."))}else{const b=new Ce(f);this.tagsNodeStack.push(t),f!==c&&_&&(b[":@"]=this.buildAttributesMap(c,r,f)),this.addChild(t,b,r),t=b}i="",a=u}}else i+=e[a];return n.child};function Ho(e,n,t){const i=this.options.updateTag(n.tagname,t,n[":@"]);i===!1||(typeof i=="string"&&(n.tagname=i),e.addChild(n))}const Vo=function(e){if(this.options.processEntities){for(let n in this.docTypeEntities){const t=this.docTypeEntities[n];e=e.replace(t.regx,t.val)}for(let n in this.lastEntities){const t=this.lastEntities[n];e=e.replace(t.regex,t.val)}if(this.options.htmlEntities)for(let n in this.htmlEntities){const t=this.htmlEntities[n];e=e.replace(t.regex,t.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function Xo(e,n,t,i){return e&&(i===void 0&&(i=Object.keys(n.child).length===0),e=this.parseTextData(e,n.tagname,t,!1,n[":@"]?Object.keys(n[":@"]).length!==0:!1,i),e!==void 0&&e!==""&&n.add(this.options.textNodeName,e),e=""),e}function Go(e,n,t){const i="*."+t;for(const r in e){const a=e[r];if(i===a||n===a)return!0}return!1}function Ko(e,n,t=">"){let i,r="";for(let a=n;a<e.length;a++){let l=e[a];if(i)l===i&&(i="");else if(l==='"'||l==="'")i=l;else if(l===t[0])if(t[1]){if(e[a+1]===t[1])return{data:r,index:a}}else return{data:r,index:a};else l===" "&&(l=" ");r+=l}}function _e(e,n,t,i){const r=e.indexOf(n,t);if(r===-1)throw new Error(i);return r+n.length-1}function Pt(e,n,t,i=">"){const r=Ko(e,n+1,i);if(!r)return;let a=r.data;const l=r.index,s=a.search(/\s/);let f=a,o=!0;s!==-1&&(f=a.substring(0,s),a=a.substring(s+1).trimStart());const c=f;if(t){const _=f.indexOf(":");_!==-1&&(f=f.substr(_+1),o=f!==r.data.substr(_+1))}return{tagName:f,tagExp:a,closeIndex:l,attrExpPresent:o,rawTagName:c}}function Yo(e,n,t){const i=t;let r=1;for(;t<e.length;t++)if(e[t]==="<")if(e[t+1]==="/"){const a=_e(e,">",t,`${n} is not closed`);if(e.substring(t+2,a).trim()===n&&(r--,r===0))return{tagContent:e.substring(i,t),i:a};t=a}else if(e[t+1]==="?")t=_e(e,"?>",t+1,"StopNode is not closed.");else if(e.substr(t+1,3)==="!--")t=_e(e,"-->",t+3,"StopNode is not closed.");else if(e.substr(t+1,2)==="![")t=_e(e,"]]>",t,"StopNode is not closed.")-2;else{const a=Pt(e,t,">");a&&((a&&a.tagName)===n&&a.tagExp[a.tagExp.length-1]!=="/"&&r++,t=a.closeIndex)}}function Lt(e,n,t){if(n&&typeof e=="string"){const i=e.trim();return i==="true"?!0:i==="false"?!1:Co(e,t)}else return Pi.isExist(e)?e:""}var Wo=Po,Li={};function qo(e,n){return Zi(e,n)}function Zi(e,n,t){let i;const r={};for(let a=0;a<e.length;a++){const l=e[a],s=Jo(l);let f="";if(t===void 0?f=s:f=t+"."+s,s===n.textNodeName)i===void 0?i=l[s]:i+=""+l[s];else{if(s===void 0)continue;if(l[s]){let o=Zi(l[s],n,f);const c=Do(o,n);l[":@"]?Qo(o,l[":@"],f,n):Object.keys(o).length===1&&o[n.textNodeName]!==void 0&&!n.alwaysCreateTextNode?o=o[n.textNodeName]:Object.keys(o).length===0&&(n.alwaysCreateTextNode?o[n.textNodeName]="":o=""),r[s]!==void 0&&r.hasOwnProperty(s)?(Array.isArray(r[s])||(r[s]=[r[s]]),r[s].push(o)):n.isArray(s,f,c)?r[s]=[o]:r[s]=o}}}return typeof i=="string"?i.length>0&&(r[n.textNodeName]=i):i!==void 0&&(r[n.textNodeName]=i),r}function Jo(e){const n=Object.keys(e);for(let t=0;t<n.length;t++){const i=n[t];if(i!==":@")return i}}function Qo(e,n,t,i){if(n){const r=Object.keys(n),a=r.length;for(let l=0;l<a;l++){const s=r[l];i.isArray(s,t+"."+s,!0,!0)?e[s]=[n[s]]:e[s]=n[s]}}}function Do(e,n){const{textNodeName:t}=n,i=Object.keys(e).length;return!!(i===0||i===1&&(e[t]||typeof e[t]=="boolean"||e[t]===0))}Li.prettify=qo;const{buildOptions:el}=qt,tl=Wo,{prettify:nl}=Li,il=Yt;let rl=class{constructor(n){this.externalEntities={},this.options=el(n)}parse(n,t){if(typeof n!="string")if(n.toString)n=n.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(t){t===!0&&(t={});const a=il.validate(n,t);if(a!==!0)throw Error(`${a.err.msg}:${a.err.line}:${a.err.col}`)}const i=new tl(this.options);i.addExternalEntities(this.externalEntities);const r=i.parseXml(n);return this.options.preserveOrder||r===void 0?r:nl(r,this.options)}addEntity(n,t){if(t.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(n.indexOf("&")!==-1||n.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(t==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[n]=t}};var al=rl;const sl=`
5
- `;function ol(e,n){let t="";return n.format&&n.indentBy.length>0&&(t=sl),ji(e,n,"",t)}function ji(e,n,t,i){let r="",a=!1;for(let l=0;l<e.length;l++){const s=e[l],f=ll(s);if(f===void 0)continue;let o="";if(t.length===0?o=f:o=`${t}.${f}`,f===n.textNodeName){let b=s[f];fl(o,n)||(b=n.tagValueProcessor(f,b),b=Ui(b,n)),a&&(r+=i),r+=b,a=!1;continue}else if(f===n.cdataPropName){a&&(r+=i),r+=`<![CDATA[${s[f][0][n.textNodeName]}]]>`,a=!1;continue}else if(f===n.commentPropName){r+=i+`<!--${s[f][0][n.textNodeName]}-->`,a=!0;continue}else if(f[0]==="?"){const b=Xn(s[":@"],n),v=f==="?xml"?"":i;let h=s[f][0][n.textNodeName];h=h.length!==0?" "+h:"",r+=v+`<${f}${h}${b}?>`,a=!0;continue}let c=i;c!==""&&(c+=n.indentBy);const _=Xn(s[":@"],n),u=i+`<${f}${_}`,d=ji(s[f],n,o,c);n.unpairedTags.indexOf(f)!==-1?n.suppressUnpairedNode?r+=u+">":r+=u+"/>":(!d||d.length===0)&&n.suppressEmptyNode?r+=u+"/>":d&&d.endsWith(">")?r+=u+`>${d}${i}</${f}>`:(r+=u+">",d&&i!==""&&(d.includes("/>")||d.includes("</"))?r+=i+n.indentBy+d+i:r+=d,r+=`</${f}>`),a=!0}return r}function ll(e){const n=Object.keys(e);for(let t=0;t<n.length;t++){const i=n[t];if(e.hasOwnProperty(i)&&i!==":@")return i}}function Xn(e,n){let t="";if(e&&!n.ignoreAttributes)for(let i in e){if(!e.hasOwnProperty(i))continue;let r=n.attributeValueProcessor(i,e[i]);r=Ui(r,n),r===!0&&n.suppressBooleanAttributes?t+=` ${i.substr(n.attributeNamePrefix.length)}`:t+=` ${i.substr(n.attributeNamePrefix.length)}="${r}"`}return t}function fl(e,n){e=e.substr(0,e.length-n.textNodeName.length-1);let t=e.substr(e.lastIndexOf(".")+1);for(let i in n.stopNodes)if(n.stopNodes[i]===e||n.stopNodes[i]==="*."+t)return!0;return!1}function Ui(e,n){if(e&&e.length>0&&n.processEntities)for(let t=0;t<n.entities.length;t++){const i=n.entities[t];e=e.replace(i.regex,i.val)}return e}var cl=ol;const dl=cl,ul=$i,hl={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,n){return n},attributeValueProcessor:function(e,n){return n},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};function se(e){this.options=Object.assign({},hl,e),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=ul(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=gl),this.processTextOrObjNode=_l,this.options.format?(this.indentate=pl,this.tagEndChar=`>
6
- `,this.newLine=`
7
- `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}se.prototype.build=function(e){return this.options.preserveOrder?dl(e,this.options):(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e}),this.j2x(e,0,[]).val)};se.prototype.j2x=function(e,n,t){let i="",r="";const a=t.join(".");for(let l in e)if(Object.prototype.hasOwnProperty.call(e,l))if(typeof e[l]>"u")this.isAttribute(l)&&(r+="");else if(e[l]===null)this.isAttribute(l)?r+="":l[0]==="?"?r+=this.indentate(n)+"<"+l+"?"+this.tagEndChar:r+=this.indentate(n)+"<"+l+"/"+this.tagEndChar;else if(e[l]instanceof Date)r+=this.buildTextValNode(e[l],l,"",n);else if(typeof e[l]!="object"){const s=this.isAttribute(l);if(s&&!this.ignoreAttributesFn(s,a))i+=this.buildAttrPairStr(s,""+e[l]);else if(!s)if(l===this.options.textNodeName){let f=this.options.tagValueProcessor(l,""+e[l]);r+=this.replaceEntitiesValue(f)}else r+=this.buildTextValNode(e[l],l,"",n)}else if(Array.isArray(e[l])){const s=e[l].length;let f="",o="";for(let c=0;c<s;c++){const _=e[l][c];if(!(typeof _>"u"))if(_===null)l[0]==="?"?r+=this.indentate(n)+"<"+l+"?"+this.tagEndChar:r+=this.indentate(n)+"<"+l+"/"+this.tagEndChar;else if(typeof _=="object")if(this.options.oneListGroup){const u=this.j2x(_,n+1,t.concat(l));f+=u.val,this.options.attributesGroupName&&_.hasOwnProperty(this.options.attributesGroupName)&&(o+=u.attrStr)}else f+=this.processTextOrObjNode(_,l,n,t);else if(this.options.oneListGroup){let u=this.options.tagValueProcessor(l,_);u=this.replaceEntitiesValue(u),f+=u}else f+=this.buildTextValNode(_,l,"",n)}this.options.oneListGroup&&(f=this.buildObjectNode(f,l,o,n)),r+=f}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){const s=Object.keys(e[l]),f=s.length;for(let o=0;o<f;o++)i+=this.buildAttrPairStr(s[o],""+e[l][s[o]])}else r+=this.processTextOrObjNode(e[l],l,n,t);return{attrStr:i,val:r}};se.prototype.buildAttrPairStr=function(e,n){return n=this.options.attributeValueProcessor(e,""+n),n=this.replaceEntitiesValue(n),this.options.suppressBooleanAttributes&&n==="true"?" "+e:" "+e+'="'+n+'"'};function _l(e,n,t,i){const r=this.j2x(e,t+1,i.concat(n));return e[this.options.textNodeName]!==void 0&&Object.keys(e).length===1?this.buildTextValNode(e[this.options.textNodeName],n,r.attrStr,t):this.buildObjectNode(r.val,n,r.attrStr,t)}se.prototype.buildObjectNode=function(e,n,t,i){if(e==="")return n[0]==="?"?this.indentate(i)+"<"+n+t+"?"+this.tagEndChar:this.indentate(i)+"<"+n+t+this.closeTag(n)+this.tagEndChar;{let r="</"+n+this.tagEndChar,a="";return n[0]==="?"&&(a="?",r=""),(t||t==="")&&e.indexOf("<")===-1?this.indentate(i)+"<"+n+t+a+">"+e+r:this.options.commentPropName!==!1&&n===this.options.commentPropName&&a.length===0?this.indentate(i)+`<!--${e}-->`+this.newLine:this.indentate(i)+"<"+n+t+a+this.tagEndChar+e+this.indentate(i)+r}};se.prototype.closeTag=function(e){let n="";return this.options.unpairedTags.indexOf(e)!==-1?this.options.suppressUnpairedNode||(n="/"):this.options.suppressEmptyNode?n="/":n=`></${e}`,n};se.prototype.buildTextValNode=function(e,n,t,i){if(this.options.cdataPropName!==!1&&n===this.options.cdataPropName)return this.indentate(i)+`<![CDATA[${e}]]>`+this.newLine;if(this.options.commentPropName!==!1&&n===this.options.commentPropName)return this.indentate(i)+`<!--${e}-->`+this.newLine;if(n[0]==="?")return this.indentate(i)+"<"+n+t+"?"+this.tagEndChar;{let r=this.options.tagValueProcessor(n,e);return r=this.replaceEntitiesValue(r),r===""?this.indentate(i)+"<"+n+t+this.closeTag(n)+this.tagEndChar:this.indentate(i)+"<"+n+t+">"+r+"</"+n+this.tagEndChar}};se.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let n=0;n<this.options.entities.length;n++){const t=this.options.entities[n];e=e.replace(t.regex,t.val)}return e};function pl(e){return this.options.indentBy.repeat(e)}function gl(e){return e.startsWith(this.options.attributeNamePrefix)&&e!==this.options.textNodeName?e.substr(this.attrPrefixLen):!1}var bl=se;const wl=Yt,yl=al,xl=bl;var vl={XMLParser:yl,XMLValidator:wl,XMLBuilder:xl};const{XMLParser:ml,XMLValidator:El}=vl,Bi=e=>{if(e==null||(e=e.toString().trim(),e.length===0)||El.validate(e)!==!0)return!1;let n;const t=new ml;try{n=t.parse(e)}catch{return!1}return!(!n||!("svg"in n))};Kt.exports=Bi;Kt.exports.default=Bi;var Nl=Kt.exports;const Gn=Ki(Nl);function kl({aspect:e,children:n,...t}){return x.jsx(Tl,{aspect:e,...t,children:x.jsx("span",{className:"aspect-ratio-container__inner",children:n})})}const Tl=Te("span")`
8
- display: block;
9
- position: relative;
10
- width: 100%;
11
- height: 0;
12
- padding-bottom: ${({aspect:e})=>1/e*100}%;
13
-
14
- .aspect-ratio-container__inner {
15
- position: absolute;
16
- top: 0;
17
- bottom: 0;
18
- left: 0;
19
- right: 0;
20
- }
21
- `;var Mi={};Object.defineProperty(Mi,"__esModule",{value:!0});var ce=fe,Al=nr,Sl=ir,Ol=Wi,Il=Yi;function Jt(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var D=Jt(ce),Rl=Jt(Sl),ee=Jt(Il),zl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof Dt<"u"?Dt:typeof self<"u"?self:{};function Hi(e,n){return e(n={exports:{}},n.exports),n.exports}var Fl=Hi(function(e){(function(n){var t=function(h,g,E){if(!f(g)||c(g)||_(g)||u(g)||s(g))return g;var y,p=0,k=0;if(o(g))for(y=[],k=g.length;p<k;p++)y.push(t(h,g[p],E));else for(var N in y={},g)Object.prototype.hasOwnProperty.call(g,N)&&(y[h(N,E)]=t(h,g[N],E));return y},i=function(h){return d(h)?h:(h=h.replace(/[\-_\s]+(.)?/g,function(g,E){return E?E.toUpperCase():""})).substr(0,1).toLowerCase()+h.substr(1)},r=function(h){var g=i(h);return g.substr(0,1).toUpperCase()+g.substr(1)},a=function(h,g){return function(E,y){var p=(y=y||{}).separator||"_",k=y.split||/(?=[A-Z])/;return E.split(k).join(p)}(h,g).toLowerCase()},l=Object.prototype.toString,s=function(h){return typeof h=="function"},f=function(h){return h===Object(h)},o=function(h){return l.call(h)=="[object Array]"},c=function(h){return l.call(h)=="[object Date]"},_=function(h){return l.call(h)=="[object RegExp]"},u=function(h){return l.call(h)=="[object Boolean]"},d=function(h){return(h-=0)==h},b=function(h,g){var E=g&&"process"in g?g.process:g;return typeof E!="function"?h:function(y,p){return E(y,h,p)}},v={camelize:i,decamelize:a,pascalize:r,depascalize:a,camelizeKeys:function(h,g){return t(b(i,g),h)},decamelizeKeys:function(h,g){return t(b(a,g),h,g)},pascalizeKeys:function(h,g){return t(b(r,g),h)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=v:n.humps=v})(zl)}).decamelize,Cl=Hi(function(e){function n(){return e.exports=n=Object.assign||function(t){for(var i=1;i<arguments.length;i++){var r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},n.apply(this,arguments)}e.exports=n}),$l=function(e){if(Array.isArray(e))return e},Pl=function(e,n){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var t=[],i=!0,r=!1,a=void 0;try{for(var l,s=e[Symbol.iterator]();!(i=(l=s.next()).done)&&(t.push(l.value),!n||t.length!==n);i=!0);}catch(f){r=!0,a=f}finally{try{i||s.return==null||s.return()}finally{if(r)throw a}}return t}},Kn=function(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t<n;t++)i[t]=e[t];return i},Ll=function(e,n){if(e){if(typeof e=="string")return Kn(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Kn(e,n):void 0}},Zl=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
22
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},jl=function(e,n){return $l(e)||Pl(e,n)||Ll(e,n)||Zl()},Ul=function(e,n){if(e==null)return{};var t,i,r={},a=Object.keys(e);for(i=0;i<a.length;i++)t=a[i],n.indexOf(t)>=0||(r[t]=e[t]);return r},Bl=function(e,n){if(e==null)return{};var t,i,r=Ul(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)t=a[i],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r},Ml=ce.createContext(null);function Zt(e){var n=e.root,t=e.children;return Ol.createPortal(t,n)}function Hl(e){var n=ce.forwardRef(function(t,i){var r,a,l=t.mode,s=t.delegatesFocus,f=t.styleSheets,o=t.ssr,c=t.children,_=Bl(t,["mode","delegatesFocus","styleSheets","ssr","children"]),u=(r=i,a=ce.useRef(r&&r.current),ce.useEffect(function(){r&&(r.current=a.current)},[r]),a),d=ce.useState(null),b=jl(d,2),v=b[0],h=b[1],g="node_".concat(l).concat(s);return ce.useLayoutEffect(function(){if(u.current)try{if(typeof i=="function"&&i(u.current),o){var E=u.current.shadowRoot;return void h(E)}var y=u.current.attachShadow({mode:l,delegatesFocus:s});f.length>0&&(y.adoptedStyleSheets=f),h(y)}catch(p){(function(k){var N=k.error,w=k.styleSheets,O=k.root;switch(N.name){case"NotSupportedError":w.length>0&&(O.adoptedStyleSheets=w);break;default:throw N}})({error:p,styleSheets:f,root:v})}},[i,u,f]),D.default.createElement(D.default.Fragment,null,D.default.createElement(e.tag,Cl({key:g,ref:u},_),(v||o)&&D.default.createElement(Ml.Provider,{value:v},o?D.default.createElement("template",{shadowroot:"open"},e.render({root:v,ssr:o,children:c})):D.default.createElement(Zt,{root:v},e.render({root:v,ssr:o,children:c})))))});return n.propTypes={mode:ee.default.oneOf(["open","closed"]),delegatesFocus:ee.default.bool,styleSheets:ee.default.arrayOf(ee.default.instanceOf(globalThis.CSSStyleSheet)),ssr:ee.default.bool,children:ee.default.node},n.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},n}Zt.propTypes={root:ee.default.object.isRequired,children:ee.default.node},Zt.defaultProps={children:null};var Tt=new Map;function Vi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(i){return i.children};return new Proxy(e,{get:function(i,r){var a=Fl(r,{separator:"-"}),l="".concat(n,"-").concat(a);return Tt.has(l)||Tt.set(l,Hl({tag:a,render:t})),Tt.get(l)}})}Vi();var Yn=new WeakMap,Vl=Vi({},"emotion",function(e){var n=e.root,t=e.children,i=Yn.get(n)||function(){var r=Rl.default({container:n,key:"react-shadow"});return Yn.set(n,r),r}();return D.default.createElement(Al.CacheProvider,{value:i},D.default.createElement(D.default.Fragment,null,t))}),Xl=Mi.default=Vl;function Qt({svg:e,...n}){return x.jsx(Gl,{...n,children:x.jsx(Kl,{dangerouslySetInnerHTML:{__html:e}})})}const Gl=Te(Xl.span)`
23
- display: block;
24
- width: 100%;
25
- height: 100%;
26
- `,Kl=Te("div")`
27
- &,
28
- & > svg {
29
- height: 100%;
30
- width: 100%;
31
- min-width: 100%;
32
- max-width: 100%;
33
- }
34
- `,Yl=e=>{const n=new Blob([e],{type:"image/svg+xml"});return URL.createObjectURL(n)};function Wl({svg:e,alt:n="",fallback:t=!0,...i}){if(t&&e.indexOf("</foreignObject>")>-1)return x.jsx(Qt,{svg:e});const r=Yl(e);return x.jsx("img",{src:r,onLoad:()=>URL.revokeObjectURL(r),alt:n,...i})}function ql(){return x.jsx(Jl,{className:"nft-display__loading",children:"Loading..."})}const Jl=Te("span")`
35
- display: flex;
36
- justify-content: center;
37
- align-items: center;
38
- position: absolute;
39
- width: 100%;
40
- height: 100%;
41
- color: #ccc;
42
- background-color: #eee;
43
- `;var Xi=function(n){return x.jsxs("svg",{...n,children:[x.jsxs("g",{clipPath:"url(#clip0_317_299)",children:[x.jsx("rect",{x:"60",width:"60",height:"60",fill:"#F3F4F6",style:{fill:"color(display-p3 0.9529 0.9569 0.9647)",fillOpacity:"1"}}),x.jsx("rect",{width:"60",height:"60",fill:"#F9FAFB",style:{fill:"color(display-p3 0.9765 0.9804 0.9843)",fillOpacity:"1"}}),x.jsx("rect",{x:"180",width:"60",height:"60",fill:"#F9FAFB",style:{fill:"color(display-p3 0.9765 0.9804 0.9843)",fillOpacity:"1"}}),x.jsx("rect",{x:"120",width:"60",height:"60",fill:"#E5E7EB",style:{fill:"color(display-p3 0.8980 0.9059 0.9216)",fillOpacity:"1"}}),x.jsx("rect",{x:"240",width:"60",height:"60",fill:"#E5E7EB",style:{fill:"color(display-p3 0.8980 0.9059 0.9216)",fillOpacity:"1"}}),x.jsx("rect",{y:"60",width:"60",height:"60",fill:"#E5E7EB",style:{fill:"color(display-p3 0.8980 0.9059 0.9216)",fillOpacity:"1"}}),x.jsx("rect",{x:"60",y:"60",width:"60",height:"60",fill:"#F9FAFB",style:{fill:"color(display-p3 0.9765 0.9804 0.9843)",fillOpacity:"1"}}),x.jsx("rect",{x:"120",y:"60",width:"60",height:"60",fill:"#F3F4F6",style:{fill:"color(display-p3 0.9529 0.9569 0.9647)",fillOpacity:"1"}}),x.jsx("rect",{x:"240",y:"59.9999",width:"60",height:"60",fill:"#F3F4F6",style:{fill:"color(display-p3 0.9529 0.9569 0.9647)",fillOpacity:"1"}}),x.jsx("rect",{x:"180",y:"59.9999",width:"60",height:"60",fill:"#E5E7EB",style:{fill:"color(display-p3 0.8980 0.9059 0.9216)",fillOpacity:"1"}}),x.jsx("rect",{y:"120",width:"60",height:"60",fill:"#F3F4F6",style:{fill:"color(display-p3 0.9529 0.9569 0.9647)",fillOpacity:"1"}}),x.jsx("rect",{y:"180",width:"60",height:"60",fill:"#F9FAFB",style:{fill:"color(display-p3 0.9765 0.9804 0.9843)",fillOpacity:"1"}}),x.jsx("rect",{y:"240",width:"60",height:"60",fill:"#F3F4F6",style:{fill:"color(display-p3 0.9529 0.9569 0.9647)",fillOpacity:"1"}}),x.jsx("rect",{x:"60",y:"120",width:"60",height:"60",fill:"#E5E7EB",style:{fill:"color(display-p3 0.8980 0.9059 0.9216)",fillOpacity:"1"}}),x.jsx("rect",{x:"60",y:"180",width:"60",height:"60",fill:"#F3F4F6",style:{fill:"color(display-p3 0.9529 0.9569 0.9647)",fillOpacity:"1"}}),x.jsx("rect",{x:"60",y:"240",width:"60",height:"60",fill:"#E5E7EB",style:{fill:"color(display-p3 0.8980 0.9059 0.9216)",fillOpacity:"1"}}),x.jsx("rect",{x:"120",y:"120",width:"60",height:"60",fill:"#F9FAFB",style:{fill:"color(display-p3 0.9765 0.9804 0.9843)",fillOpacity:"1"}}),x.jsx("rect",{x:"180",y:"180",width:"60",height:"60",fill:"#F9FAFB",style:{fill:"color(display-p3 0.9765 0.9804 0.9843)",fillOpacity:"1"}}),x.jsx("rect",{x:"120",y:"240",width:"60",height:"60",fill:"#F3F4F6",style:{fill:"color(display-p3 0.9529 0.9569 0.9647)",fillOpacity:"1"}}),x.jsx("rect",{x:"240",y:"120",width:"60",height:"60",fill:"#F9FAFB",style:{fill:"color(display-p3 0.9765 0.9804 0.9843)",fillOpacity:"1"}}),x.jsx("rect",{x:"120",y:"180",width:"60",height:"60",fill:"#E5E7EB",style:{fill:"color(display-p3 0.8980 0.9059 0.9216)",fillOpacity:"1"}}),x.jsx("rect",{x:"180",y:"240",width:"60",height:"60",fill:"#E5E7EB",style:{fill:"color(display-p3 0.8980 0.9059 0.9216)",fillOpacity:"1"}}),x.jsx("rect",{x:"180",y:"120",width:"60",height:"60",fill:"#F3F4F6",style:{fill:"color(display-p3 0.9529 0.9569 0.9647)",fillOpacity:"1"}}),x.jsx("rect",{x:"240",y:"180",width:"60",height:"60",fill:"#F3F4F6",style:{fill:"color(display-p3 0.9529 0.9569 0.9647)",fillOpacity:"1"}}),x.jsx("rect",{x:"240",y:"240",width:"60",height:"60",fill:"#F9FAFB",style:{fill:"color(display-p3 0.9765 0.9804 0.9843)",fillOpacity:"1"}})]}),x.jsx("defs",{children:x.jsx("clipPath",{id:"clip0_317_299",children:x.jsx("rect",{width:"300",height:"300",fill:"white",style:{fill:"white",fillOpacity:"1"}})})})]})};Xi.defaultProps={width:"300",height:"300",viewBox:"0 0 300 300",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Wn({children:e="Non-publicly accessible NFT"}={}){return x.jsxs(Ql,{children:[x.jsx(Xi,{className:"nft-display-broken-background"}),e&&x.jsx(jt,{className:"nft-display-broken-content",children:e})]})}const Ql=Te(jt)`
44
- width: 100%;
45
- height: 100%;
46
- position: relative;
47
-
48
- .nft-display-broken-background {
49
- width: 100%;
50
- height: 100%;
51
- }
52
-
53
- .nft-display-broken-content {
54
- display: flex;
55
- width: 100%;
56
- height: 100%;
57
- justify-content: center;
58
- align-items: center;
59
- position: absolute;
60
- top: 0;
61
- left: 0;
62
- right: 0;
63
- bottom: 0;
64
- margin: auto;
65
- mix-blend-mode: plus-darker;
66
- font-size: 13px;
67
- color: #9aa3b0;
68
- text-align: center;
69
- text-shadow:
70
- 0 0 2px #fff,
71
- 0 0 2px #fff,
72
- 0 0 2px #fff;
73
- user-select: none;
74
- }
75
- `,$e=new Map,Dl=10*60*1e3,ef=e=>{const{url:n,method:t}=e,i=JSON.stringify({url:n,method:t});if($e.has(i)){const r=$e.get(i);if(Date.now()-r.timestamp<Dl)return r.error?Promise.reject(r.error):Promise.resolve({headers:r.headers});$e.delete(i)}return qi(e).then(r=>($e.set(i,{headers:r.headers,timestamp:Date.now()}),r)).catch(r=>{throw $e.set(i,{error:r,timestamp:Date.now()}),r})},tf=Jn.create({adapter:ef,timeout:5e3});function nf({src:e,onLoad:n}){const[t,i]=fe.useState("");return Ji(async()=>{const r=await Jn.get(e),a=rr.sanitize(r.data);i(a),n==null||n()},[]),x.jsx(Qt,{svg:t})}function rf(e){if(typeof e!="string")throw new Error("fromBase64 requires input to be a string");return Qn.from(er.unescape(e),"base64")}const qn=e=>({img:Wl,svg:Qt})[e];function af({data:e,address:n,inset:t,aspect:i,component:r="span",className:a="",renderError:l,renderLoading:s,preferredSvgEmbedder:f="img",checkSvg:o=!1,minimumLoadingTime:c=0,onCompleted:_=Di,imageFilter:u=null,...d}){var h;const b=g=>x.jsx(sf,{component:r,...d,className:tr(a,{"nft-display--inset":t}),children:g}),v=fe.useRef({});try{typeof e=="string"?v.current=JSON.parse(e):v.current=e;const{vcId:g}=v.current,E=v.current.credentialSubject?Qi(v.current,"credentialSubject.display"):v.current,{content:y,type:p}=E,k=p==="url",[N,w]=fe.useState({loading:k,error:!1,loadingUrlType:!0,urlType:null}),[O,A]=fe.useState(c<=0),m=({useImageFilter:P=!1,t:M}={})=>{const R=new URL(y);return window.location.protocol==="https:"&&R.protocol==="http:"&&(R.protocol="https:"),R.searchParams.has("assetId")||R.searchParams.append("assetId",n),!R.searchParams.has("vcId")&&g&&R.searchParams.append("vcId",g),P&&u&&Object.entries(u).forEach(([le,Re])=>{R.searchParams.append(le,Re)}),M&&R.searchParams.append("t",M),R.href},T=async()=>{var P,M;try{const R=await tf({url:m({useImageFilter:!1,t:"nftdisplay"}),method:"HEAD"}),le=(P=R==null?void 0:R.headers)==null?void 0:P.get("Content-Type");w({...N,loadingUrlType:!1,urlType:le})}catch(R){if(console.error("Failed to fetch url content type",R),(M=R==null?void 0:R.message)!=null&&M.includes("timeout")){w({...N,loadingUrlType:!1,loading:!1,error:!0});return}w({...N,loadingUrlType:!1,urlType:null})}};if(fe.useEffect(()=>{let P;return c>0&&(P=setTimeout(()=>A(!0),c)),p==="url"&&T(),()=>clearTimeout(P)},[]),fe.useEffect(()=>{(!N.loading&&O||N.error)&&_()},[N,O]),N.error)throw new Error("Failed to render NFT Display.");const X=()=>{N.loading&&w({...N,loading:!1})},Ie=()=>{w({...N,error:!0,loading:!1})},oe=()=>{const P=m({useImageFilter:!0});return x.jsx("img",{src:P,onError:Ie,onLoad:X,alt:"NFT Display",style:{width:"auto",height:"auto"}})},xe=()=>{const P=N.urlType||"image/svg+xml",M=m(),R=new URL(M).pathname.toLowerCase();return[".jpg",".jpeg",".png",".gif",".bmp",".webp",".svg",".tiff",".tif",".ico",".jfif",".pjpeg",".pjp",".avif"].some(Re=>R.endsWith(Re))?oe():P.includes("text/html;")?x.jsx(Wn,{}):x.jsx("object",{type:P,data:M,onErrorCapture:Ie,onLoad:X,style:{width:"100%",height:"100%",pointerEvents:"none"}},M)},Gi=()=>{var P,M;if(y)switch(p){case"url":return N.loadingUrlType?null:(P=N.urlType)!=null&&P.startsWith("image/svg+xml")?x.jsx(nf,{src:m(),onLoad:X}):(M=N.urlType)!=null&&M.startsWith("image")?oe():xe();case"uri":return x.jsx("img",{src:y,onError:()=>w({...N,error:!0}),onLoad:()=>w({...N,loading:!1}),alt:"NFT Display"});case"svg_gzipped":{const R=no.ungzip(rf(y),{}),le=Qn.from(R).toString("utf8");if(o&&!Gn(le))throw new Error("Invalid SVG of type svg_gzipped");const Re=qn(f);return x.jsx(Re,{svg:le})}case"svg":{if(o&&!Gn(y))throw new Error("Invalid SVG of type svg");const R=qn(f);return x.jsx(R,{svg:y})}case"html":break;default:}throw new Error(`unsupported display protocol: ${E.type}`)};return b(x.jsxs(x.Fragment,{children:[(N.loading||!O)&&(s?s():x.jsx(ql,{})),Gi()]}))}catch(g){return console.error(g==null?void 0:g.message,{nftId:n,vcId:(h=v==null?void 0:v.current)==null?void 0:h.vcId}),b(l?l():x.jsx(Wn,{}))}}const sf=Te(jt)`
76
- display: flex;
77
- justify-content: center;
78
- align-items: center;
79
- position: relative;
80
- /* 默认尺寸 */
81
- width: 150px;
82
- height: 150px;
83
- overflow: hidden;
84
-
85
- &,
86
- img,
87
- object {
88
- max-width: 100%;
89
- max-height: 100%;
90
- }
91
-
92
- img,
93
- object {
94
- width: 100%;
95
- height: 100%;
96
- }
97
-
98
- &.nft-display--inset {
99
- width: 100%;
100
- height: 100%;
101
- }
102
- `;function of(e){return function({aspect:n,inset:t,...i}){return n&&n>0&&!t?x.jsx(kl,{aspect:n,children:x.jsx(e,{inset:!0,...i})}):x.jsx(e,{inset:t,...i})}}const hf=of(af);export{hf as N};
@@ -1 +0,0 @@
1
- import{aG as ht,aH as vt,aI as O,cR as jt,aJ as $t,aM as f,r as d,aK as mt,aL as st,aO as k,j as u,aP as St,av as Ht,cM as re,cS as At,cT as Ot,cU as Xt,aN as nt,al as ne,cV as ft,cW as se,bu as ae,bC as L}from"./index-BxKrUgd9.js";let K;function Dt(){if(K)return K;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),K="reverse",t.scrollLeft>0?K="default":(t.scrollLeft=1,t.scrollLeft===0&&(K="negative")),document.body.removeChild(t),K}function ie(t,e){const l=t.scrollLeft;if(e!=="rtl")return l;switch(Dt()){case"negative":return t.scrollWidth-t.clientWidth+l;case"reverse":return t.scrollWidth-t.clientWidth-l;default:return l}}function ce(t){return vt("MuiTab",t)}const N=ht("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),de=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ue=t=>{const{classes:e,textColor:l,fullWidth:s,wrapped:n,icon:a,label:h,selected:v,disabled:b}=t,g={root:["root",a&&h&&"labelIcon",`textColor${$t(l)}`,s&&"fullWidth",n&&"wrapped",v&&"selected",b&&"disabled"],iconWrapper:["iconWrapper"]};return St(g,ce,e)},be=O(jt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.label&&l.icon&&e.labelIcon,e[`textColor${$t(l.textColor)}`],l.fullWidth&&e.fullWidth,l.wrapped&&e.wrapped,{[`& .${N.iconWrapper}`]:e.iconWrapper}]}})(({theme:t,ownerState:e})=>f({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${N.iconWrapper}`]:f({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${N.selected}`]:{opacity:1},[`&.${N.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${N.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${N.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${N.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${N.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),gt=d.forwardRef(function(e,l){const s=mt({props:e,name:"MuiTab"}),{className:n,disabled:a=!1,disableFocusRipple:h=!1,fullWidth:v,icon:b,iconPosition:g="top",indicator:B,label:C,onChange:m,onClick:w,onFocus:F,selected:T,selectionFollowsFocus:x,textColor:X="inherit",value:E,wrapped:at=!1}=s,D=st(s,de),V=f({},s,{disabled:a,disableFocusRipple:h,selected:T,icon:!!b,iconPosition:g,label:!!C,fullWidth:v,textColor:X,wrapped:at}),_=ue(V),j=b&&C&&d.isValidElement(b)?d.cloneElement(b,{className:k(_.iconWrapper,b.props.className)}):b,Z=R=>{!T&&m&&m(R,E),w&&w(R)},U=R=>{x&&!T&&m&&m(R,E),F&&F(R)};return u.jsxs(be,f({focusRipple:!h,className:k(_.root,n),ref:l,role:"tab","aria-selected":T,disabled:a,onClick:Z,onFocus:U,ownerState:V,tabIndex:T?0:-1},D,{children:[g==="top"||g==="start"?u.jsxs(d.Fragment,{children:[j,C]}):u.jsxs(d.Fragment,{children:[C,j]}),B]}))}),fe=Ht(u.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),pe=Ht(u.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function he(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ve(t,e,l,s={},n=()=>{}){const{ease:a=he,duration:h=300}=s;let v=null;const b=e[t];let g=!1;const B=()=>{g=!0},C=m=>{if(g){n(new Error("Animation cancelled"));return}v===null&&(v=m);const w=Math.min(1,(m-v)/h);if(e[t]=a(w)*(l-b)+b,w>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(C)};return b===l?(n(new Error("Element already at target position")),B):(requestAnimationFrame(C),B)}const me=["onChange"],Se={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function ge(t){const{onChange:e}=t,l=st(t,me),s=d.useRef(),n=d.useRef(null),a=()=>{s.current=n.current.offsetHeight-n.current.clientHeight};return re(()=>{const h=At(()=>{const b=s.current;a(),b!==s.current&&e(s.current)}),v=Ot(n.current);return v.addEventListener("resize",h),()=>{h.clear(),v.removeEventListener("resize",h)}},[e]),d.useEffect(()=>{a(),e(s.current)},[e]),u.jsx("div",f({style:Se,ref:n},l))}function xe(t){return vt("MuiTabScrollButton",t)}const Ce=ht("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ye=["className","slots","slotProps","direction","orientation","disabled"],Be=t=>{const{classes:e,orientation:l,disabled:s}=t;return St({root:["root",l,s&&"disabled"]},xe,e)},we=O(jt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.root,l.orientation&&e[l.orientation]]}})(({ownerState:t})=>f({width:40,flexShrink:0,opacity:.8,[`&.${Ce.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),Te=d.forwardRef(function(e,l){var s,n;const a=mt({props:e,name:"MuiTabScrollButton"}),{className:h,slots:v={},slotProps:b={},direction:g}=a,B=st(a,ye),C=Xt(),m=f({isRtl:C},a),w=Be(m),F=(s=v.StartScrollButtonIcon)!=null?s:fe,T=(n=v.EndScrollButtonIcon)!=null?n:pe,x=nt({elementType:F,externalSlotProps:b.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m}),X=nt({elementType:T,externalSlotProps:b.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:m});return u.jsx(we,f({component:"div",className:k(w.root,h),ref:l,role:null,ownerState:m,tabIndex:null},B,{children:g==="left"?u.jsx(F,f({},x)):u.jsx(T,f({},X))}))});function Me(t){return vt("MuiTabs",t)}const pt=ht("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Ie=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Nt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,kt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,rt=(t,e,l)=>{let s=!1,n=l(t,e);for(;n;){if(n===t.firstChild){if(s)return;s=!0}const a=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||a)n=l(t,n);else{n.focus();return}}},Ee=t=>{const{vertical:e,fixed:l,hideScrollbar:s,scrollableX:n,scrollableY:a,centered:h,scrollButtonsHideMobile:v,classes:b}=t;return St({root:["root",e&&"vertical"],scroller:["scroller",l&&"fixed",s&&"hideScrollbar",n&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",v&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[s&&"hideScrollbar"]},Me,b)},Re=O("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[{[`& .${pt.scrollButtons}`]:e.scrollButtons},{[`& .${pt.scrollButtons}`]:l.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,l.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>f({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${pt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),ze=O("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.scroller,l.fixed&&e.fixed,l.hideScrollbar&&e.hideScrollbar,l.scrollableX&&e.scrollableX,l.scrollableY&&e.scrollableY]}})(({ownerState:t})=>f({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),We=O("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:l}=t;return[e.flexContainer,l.vertical&&e.flexContainerVertical,l.centered&&e.centered]}})(({ownerState:t})=>f({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),Pe=O("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>f({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),Ne=O(ge)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Lt={},xt=d.forwardRef(function(e,l){const s=mt({props:e,name:"MuiTabs"}),n=ne(),a=Xt(),{"aria-label":h,"aria-labelledby":v,action:b,centered:g=!1,children:B,className:C,component:m="div",allowScrollButtonsMobile:w=!1,indicatorColor:F="primary",onChange:T,orientation:x="horizontal",ScrollButtonComponent:X=Te,scrollButtons:E="auto",selectionFollowsFocus:at,slots:D={},slotProps:V={},TabIndicatorProps:_={},TabScrollButtonProps:j={},textColor:Z="primary",value:U,variant:R="standard",visibleScrollbar:it=!1}=s,_t=st(s,Ie),M=R==="scrollable",y=x==="vertical",G=y?"scrollTop":"scrollLeft",tt=y?"top":"left",et=y?"bottom":"right",ct=y?"clientHeight":"clientWidth",q=y?"height":"width",$=f({},s,{component:m,allowScrollButtonsMobile:w,indicatorColor:F,orientation:x,vertical:y,scrollButtons:E,textColor:Z,variant:R,visibleScrollbar:it,fixed:!M,hideScrollbar:M&&!it,scrollableX:M&&!y,scrollableY:M&&y,centered:g&&!M,scrollButtonsHideMobile:!w}),W=Ee($),Ut=nt({elementType:D.StartScrollButtonIcon,externalSlotProps:V.startScrollButtonIcon,ownerState:$}),Kt=nt({elementType:D.EndScrollButtonIcon,externalSlotProps:V.endScrollButtonIcon,ownerState:$}),[Ct,Yt]=d.useState(!1),[H,yt]=d.useState(Lt),[Bt,Vt]=d.useState(!1),[wt,Gt]=d.useState(!1),[Tt,qt]=d.useState(!1),[Mt,Jt]=d.useState({overflow:"hidden",scrollbarWidth:0}),It=new Map,z=d.useRef(null),A=d.useRef(null),Et=()=>{const o=z.current;let r;if(o){const i=o.getBoundingClientRect();r={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ie(o,a?"rtl":"ltr"),scrollWidth:o.scrollWidth,top:i.top,bottom:i.bottom,left:i.left,right:i.right}}let c;if(o&&U!==!1){const i=A.current.children;if(i.length>0){const p=i[It.get(U)];c=p?p.getBoundingClientRect():null}}return{tabsMeta:r,tabMeta:c}},J=ft(()=>{const{tabsMeta:o,tabMeta:r}=Et();let c=0,i;if(y)i="top",r&&o&&(c=r.top-o.top+o.scrollTop);else if(i=a?"right":"left",r&&o){const S=a?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;c=(a?-1:1)*(r[i]-o[i]+S)}const p={[i]:c,[q]:r?r[q]:0};if(isNaN(H[i])||isNaN(H[q]))yt(p);else{const S=Math.abs(H[i]-p[i]),I=Math.abs(H[q]-p[q]);(S>=1||I>=1)&&yt(p)}}),dt=(o,{animation:r=!0}={})=>{r?ve(G,z.current,o,{duration:n.transitions.duration.standard}):z.current[G]=o},Rt=o=>{let r=z.current[G];y?r+=o:(r+=o*(a?-1:1),r*=a&&Dt()==="reverse"?-1:1),dt(r)},zt=()=>{const o=z.current[ct];let r=0;const c=Array.from(A.current.children);for(let i=0;i<c.length;i+=1){const p=c[i];if(r+p[ct]>o){i===0&&(r=o);break}r+=p[ct]}return r},Qt=()=>{Rt(-1*zt())},Zt=()=>{Rt(zt())},te=d.useCallback(o=>{Jt({overflow:null,scrollbarWidth:o})},[]),ee=()=>{const o={};o.scrollbarSizeListener=M?u.jsx(Ne,{onChange:te,className:k(W.scrollableX,W.hideScrollbar)}):null;const c=M&&(E==="auto"&&(Bt||wt)||E===!0);return o.scrollButtonStart=c?u.jsx(X,f({slots:{StartScrollButtonIcon:D.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Ut},orientation:x,direction:a?"right":"left",onClick:Qt,disabled:!Bt},j,{className:k(W.scrollButtons,j.className)})):null,o.scrollButtonEnd=c?u.jsx(X,f({slots:{EndScrollButtonIcon:D.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Kt},orientation:x,direction:a?"left":"right",onClick:Zt,disabled:!wt},j,{className:k(W.scrollButtons,j.className)})):null,o},Wt=ft(o=>{const{tabsMeta:r,tabMeta:c}=Et();if(!(!c||!r)){if(c[tt]<r[tt]){const i=r[G]+(c[tt]-r[tt]);dt(i,{animation:o})}else if(c[et]>r[et]){const i=r[G]+(c[et]-r[et]);dt(i,{animation:o})}}}),ot=ft(()=>{M&&E!==!1&&qt(!Tt)});d.useEffect(()=>{const o=At(()=>{z.current&&J()});let r;const c=S=>{S.forEach(I=>{I.removedNodes.forEach(Q=>{var P;(P=r)==null||P.unobserve(Q)}),I.addedNodes.forEach(Q=>{var P;(P=r)==null||P.observe(Q)})}),o(),ot()},i=Ot(z.current);i.addEventListener("resize",o);let p;return typeof ResizeObserver<"u"&&(r=new ResizeObserver(o),Array.from(A.current.children).forEach(S=>{r.observe(S)})),typeof MutationObserver<"u"&&(p=new MutationObserver(c),p.observe(A.current,{childList:!0})),()=>{var S,I;o.clear(),i.removeEventListener("resize",o),(S=p)==null||S.disconnect(),(I=r)==null||I.disconnect()}},[J,ot]),d.useEffect(()=>{const o=Array.from(A.current.children),r=o.length;if(typeof IntersectionObserver<"u"&&r>0&&M&&E!==!1){const c=o[0],i=o[r-1],p={root:z.current,threshold:.99},S=bt=>{Vt(!bt[0].isIntersecting)},I=new IntersectionObserver(S,p);I.observe(c);const Q=bt=>{Gt(!bt[0].isIntersecting)},P=new IntersectionObserver(Q,p);return P.observe(i),()=>{I.disconnect(),P.disconnect()}}},[M,E,Tt,B==null?void 0:B.length]),d.useEffect(()=>{Yt(!0)},[]),d.useEffect(()=>{J()}),d.useEffect(()=>{Wt(Lt!==H)},[Wt,H]),d.useImperativeHandle(b,()=>({updateIndicator:J,updateScrollButtons:ot}),[J,ot]);const Pt=u.jsx(Pe,f({},_,{className:k(W.indicator,_.className),ownerState:$,style:f({},H,_.style)}));let lt=0;const oe=d.Children.map(B,o=>{if(!d.isValidElement(o))return null;const r=o.props.value===void 0?lt:o.props.value;It.set(r,lt);const c=r===U;return lt+=1,d.cloneElement(o,f({fullWidth:R==="fullWidth",indicator:c&&!Ct&&Pt,selected:c,selectionFollowsFocus:at,onChange:T,textColor:Z,value:r},lt===1&&U===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),le=o=>{const r=A.current,c=se(r).activeElement;if(c.getAttribute("role")!=="tab")return;let p=x==="horizontal"?"ArrowLeft":"ArrowUp",S=x==="horizontal"?"ArrowRight":"ArrowDown";switch(x==="horizontal"&&a&&(p="ArrowRight",S="ArrowLeft"),o.key){case p:o.preventDefault(),rt(r,c,kt);break;case S:o.preventDefault(),rt(r,c,Nt);break;case"Home":o.preventDefault(),rt(r,null,Nt);break;case"End":o.preventDefault(),rt(r,null,kt);break}},ut=ee();return u.jsxs(Re,f({className:k(W.root,C),ownerState:$,ref:l,as:m},_t,{children:[ut.scrollButtonStart,ut.scrollbarSizeListener,u.jsxs(ze,{className:W.scroller,ownerState:$,style:{overflow:Mt.overflow,[y?`margin${a?"Left":"Right"}`:"marginBottom"]:it?void 0:-Mt.scrollbarWidth},ref:z,children:[u.jsx(We,{"aria-label":h,"aria-labelledby":v,"aria-orientation":x==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:le,ref:A,role:"tablist",children:oe}),Ct&&Pt]}),ut.scrollButtonEnd]}))}),Ft="index",Y={tabs:`${Ft}-tabs`,tab:`${Ft}-tab`},ke=ae(xt)(({theme:t})=>({[`& .${Y.tabs}`]:{},[`& .${Y.tab}`]:{fontSize:"0.875rem",[t.breakpoints.up("md")]:{fontSize:"1rem"}}}));function Le({tabs:t,current:e,onChange:l,...s}){return u.jsx(xt,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{borderRadius:"100vw"},".MuiTabs-flexContainer":{borderRadius:"100vw",backgroundColor:L.backgroundsBgComponent,padding:.5,display:"inline-flex",columnGap:.25,maxWidth:"100%",overflowX:"auto"},".MuiTab-root":{borderRadius:"100vw",border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,color:L.foregroundsFgSubtile,fontSize:"13px",fontWeight:"normal",textTransform:"capitalize",transition:"background-color 0.2s ease","&.Mui-selected, &:hover":{backgroundColor:"white",borderColor:L.lineBorderBase,color:L.foregroundsFgBase}},".MuiTabs-indicator":{display:"none"},...s.sx},children:t.map(n=>u.jsx(gt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon},n.value))})}function Fe({tabs:t,current:e,onChange:l,...s}){return u.jsx(xt,{scrollButtons:"auto",value:e,onChange:(n,a)=>l(a),...s,variant:"scrollable",sx:{minHeight:"auto",".MuiTabs-scrollButtons.Mui-disabled":{opacity:.3,cursor:"not-allowed",pointerEvents:"auto"},".MuiTabs-scroller":{"&::after":{content:'""',display:"block",width:"100%",height:"1px",backgroundColor:L.strokeBorderStrong,bottom:0}},".MuiTabs-flexContainer":{display:"inline-flex",columnGap:2.5,px:0,pb:.5},".MuiTab-root":{border:"1px solid transparent",minHeight:"auto",lineHeight:1,py:1,px:0,color:L.foregroundsFgSubtile,fontSize:"14px",fontWeight:500,textTransform:"capitalize",minWidth:"auto","&.Mui-selected, &:hover":{color:L.foregroundsFgBase}},".MuiTabs-indicator":{height:"1px",backgroundColor:L.foregroundsFgBase},...s.sx},children:t.map(n=>u.jsx(gt,{className:Y.tab,value:n.value,label:n.label,icon:n.icon},n.value))})}function $e({tabs:t,current:e,onChange:l,variant:s,...n}){return s==="card"?u.jsx(Le,{...n,tabs:t,current:e,onChange:l}):s==="line"?u.jsx(Fe,{...n,tabs:t,current:e,onChange:l}):u.jsx(ke,{scrollButtons:"auto",variant:"scrollable",value:e,onChange:(a,h)=>l(h),indicatorColor:"primary",...n,className:[Y.tabs,n.className||""].join(" "),children:t.map(a=>u.jsx(gt,{className:Y.tab,value:a.value,label:a.label,icon:a.icon},a.value))})}export{pe as K,$e as T,fe as a,xt as b,gt as c,Dt as d,ie as g};
@@ -1,5 +0,0 @@
1
- import{Z as z,$ as H,j as e,bF as _,a_ as O,r as S,aR as P,bW as ye,t as B,iq as He,ac as T,ir as Ve,u as k,P as f,f0 as Ke,c3 as Be,c as ie,fu as Ge,a0 as Xe,T as v,a2 as Ye,n as b,is as qe,B as I,aV as X,ft as We,b as _e,aT as $e,a3 as ne,N as et,G as D,bi as G,a as tt,it as st,C as ve,k as ce,F as nt,aI as ot}from"./index-BxKrUgd9.js";import{T as at}from"./index-D_g2YpF8.js";import{u as Ce}from"./use-mobile-D7IK9xm6.js";import{A as rt,d as it,S as oe,b as ct}from"./index-BDxuBkP1.js";import"./index-B2fUK0Jg.js";import"./api-lbSHYKYc.js";import{u as Ie,C as lt,D as dt,a as pt}from"./connect-to-ZJr8_Nq9.js";import{g as ut,a as ht,b as mt,i as ft,c as gt,d as xt,h as St,e as le,C as jt,u as At}from"./config-space-BPpdFWKx.js";import{f as $}from"./format-error-jTY-wvGv.js";import{I as yt}from"./index-8OiEpVkg.js";import{d as Bt}from"./MoreHoriz-qqmi4YRC.js";import{d as vt}from"./DeleteOutline-CFkN2u6G.js";import{L as Y,a as q}from"./Delete-BvK_hDyw.js";import{T as ae}from"./index-Db_Y81_-.js";import{D as Ct}from"./index-yi-655mj.js";import{d as It}from"./HelpOutline-D-mVzldg.js";import{L as Et}from"./Link-Dgz_hg-A.js";import{S as kt}from"./switch-control-2C3bwebR.js";import{S as W}from"./Stack-690-8aHU.js";import{G as Q}from"./Grid-CLg9BKgo.js";import"./OpenInNew-C5XvRsRC.js";import"./index-CG1XIXZC.js";import"./Skeleton-BQ4gLbdR.js";import"./DialogContentText-BSTFqlB8.js";import"./TextField-CFRK87D0.js";import"./FormControl-D9UzJGr3.js";import"./useFormControl-De83T2k8.js";import"./Select-BM5xijW7.js";import"./ExpandMore-XeiYcXA0.js";import"./ButtonGroup-9mTO_MUt.js";import"./useThemeProps-DFbMvLjq.js";import"./toPropertyKey-PLuKRk1e.js";import"./emotion-cache.browser.esm-DkJEKl9I.js";import"./index-ZPFypmuO.js";import"./redux-CluOqhW1.js";import"./MoreVert-BZZ4IBOf.js";import"./FormControlLabel-Ka9Y3VW4.js";import"./ViewColumn-GTnSFOFd.js";import"./FormGroup-BqZ71koG.js";import"./LastPage-BNIPjfIv.js";import"./Toolbar-Ba22YRhW.js";import"./Search-DXRr3XZy.js";import"./index-BjfhU-QW.js";import"./index-4RJk4AiM.js";var de={},Rt=H;Object.defineProperty(de,"__esModule",{value:!0});var Ee=de.default=void 0,Dt=Rt(z()),Tt=e;Ee=de.default=(0,Dt.default)((0,Tt.jsx)("path",{d:"M14 12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2m-2-9c-4.97 0-9 4.03-9 9H0l4 4 4-4H5c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2.91-.49-4.06-1.3l-1.42 1.44C8.04 20.3 9.94 21 12 21c4.97 0 9-4.03 9-9s-4.03-9-9-9"}),"SettingsBackupRestoreOutlined");var pe={},Ot=H;Object.defineProperty(pe,"__esModule",{value:!0});var ke=pe.default=void 0,bt=Ot(z()),Ut=e;ke=pe.default=(0,bt.default)((0,Ut.jsx)("path",{d:"M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z"}),"StorageOutlined");async function Lt({blockletDid:t,nodeApi:s,spaceGateways:o}){let n=!1;const i=await Promise.all(o.map(async r=>{let{name:a}=r;const c=await ut(r.endpoint);return!_(c)&&c!==a&&(a=c,n=!0),{...r,name:a}}));return n&&await Promise.all(i.filter(r=>r.did).map(r=>s.updateBlockletSpaceGateway({input:{did:t,where:{did:r.did},spaceGateway:{...r}}}))),i}function wt({setLoading:t,refresh:s}={}){var c;const{blocklet:o}=O(),n=(c=o==null?void 0:o.meta)==null?void 0:c.did,[i,r]=S.useState([]),{api:a}=P();return ye(async()=>{try{if(!n){r([]);return}t==null||t(!0);const{spaceGateways:l}=await a.getBlockletSpaceGateways({input:{did:n}}),p=await Lt({blockletDid:n,nodeApi:a,spaceGateways:l});r(p??[])}catch(l){console.error(l),B.error($(l))}finally{t==null||t(!1)}},[n,s]),{spaceGateways:i}}function Re({deps:t,setLoading:s}={deps:[],setLoading:()=>{}}){var c;const{blocklet:o}=O(),[n,i]=S.useState([]),{api:r}=P(),a=He(async()=>{try{if(s(!0),!o){i([]);return}const{backups:l}=await r.getBlockletBackups({input:{did:o.meta.did}});i(l??[])}catch(l){console.error(l),B.error($(l))}finally{s(!1)}},2e3);return ye(async()=>{a()},[(c=o==null?void 0:o.meta)==null?void 0:c.did].concat(t)),{backups:n}}function Mt({appDid:t}){const{backups:s}=Re(),[o,n]=S.useState({message:"",progress:0,completed:!1}),i=P(),{ws:{useSubscription:r}}=i;return r(T.BlockletEvents.backupProgress,a=>{t===(a==null?void 0:a.appDid)&&n(()=>({...a}))},[t]),S.useEffect(()=>{var a;if(s!=null&&s.length&&Ve((a=s[0])==null?void 0:a.status)){const[c]=s;n(()=>({message:c.message,progress:c.progress,completed:c.progress>=100}))}},[s]),o}const De=S.createContext({}),{Provider:Ft,Consumer:zs}=De;function ue({children:t}){var V;const{t:s}=k(),{api:o}=P(),{blocklet:n}=O(),[i,r]=S.useState(!1),[a,c]=S.useState(!1),{spaceGateways:l}=wt({refresh:a,setLoading:r}),p=Mt({appDid:n==null?void 0:n.appDid}),[x,d]=S.useState(!1),u=S.useMemo(()=>ht(n==null?void 0:n.environments),[n,a,x]),[j,g]=S.useState(!1),{backups:A}=Re({deps:[p],setLoading:g}),[C,h]=S.useState(l==null?void 0:l.find(m=>m.endpoint===u)),U=(V=n==null?void 0:n.settings)==null?void 0:V.autoBackup,L=()=>{c(m=>!m)},ee=()=>{d(m=>!m)},R=async m=>{await o.updateAutoBackup({input:{did:n.meta.did,autoBackup:m}})},w=async(m,J)=>{l.push({...m,loading:!0}),await o.addBlockletSpaceGateway({input:{did:n.meta.did,spaceGateway:m}}),u!==J&&await o.configBlocklet({input:{did:[n.meta.did],configs:[{key:T.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:J}]}}),L(),h(m)},E=async m=>{m&&(m.endpoint===u&&(await o.configBlocklet({input:{did:[n.meta.did],configs:[{key:T.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:""}]}}),U!=null&&U.enabled&&await R({enabled:!1})),await o.deleteBlockletSpaceGateway({input:{did:n.meta.did,spaceGatewayDid:m==null?void 0:m.did}}),L(),h(m))},M=async m=>{await o.updateBlockletSpaceGateway({input:{did:n.meta.did,where:{did:m.did},spaceGateway:m}}),u!==m.endpoint&&await o.configBlocklet({input:{did:[n.meta.did],configs:[{key:T.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:m.endpoint}]}}),B.success(s("storage.spaces.connectedWithName",{name:(m==null?void 0:m.name)??"DID Spaces"})),L()},te=m=>(m==null?void 0:m.endpoint)===u;return e.jsx(Ft,{value:{spaceGateways:l,selectedSpaceGateway:C,addSpaceGateway:w,deleteSpaceGateway:E,updateSpaceGateway:M,refreshSpaceGateways:L,spaceGatewaysLoading:i,spaceGatewayIsSelected:te,updateAutoBackup:R,backupEndpoint:u,backupProgress:p,backups:A,backupsLoading:j,refreshBackupEndpoint:ee,autoBackup:U},children:t})}ue.propTypes={children:f.any.isRequired};ue.defaultProps={};function N(){return S.useContext(De)}function Z({...t}){const{blocklet:s}=O(),{info:o}=P(),{t:n}=k(),i=Ie({blocklet:s}),r=Ke(o),{spaceGateways:a,addSpaceGateway:c}=N(),l={checkFn:Be.create({baseURL:ie(window.location.origin,Ge())}).get,webWalletUrl:r,extraParams:{appPid:s.appPid,appDid:i.appDid,appName:i.appName,appDescription:i.appDescription,appUrl:i.appUrl,referrer:i.referrer,scopes:i.scopes,nodeDid:o.did}},p=async({endpoint:d,name:u,did:j})=>{const g=await mt(d);if(!await ft(g)){B.error(n("storage.spaces.gateway.add.invalidUrl"));return}if(a.some(h=>h.endpoint===d)){B.error(n("storage.spaces.gateway.add.duplicate",{name:u}));return}const C={name:u,did:j,url:g,endpoint:d};await c(C,d),B.success(n("storage.spaces.connectedWithName",{name:(C==null?void 0:C.name)??"DID Spaces"}))},x=async(d,u)=>{try{const j=it(d,u);await p(j)}catch(j){console.error(j),B.error($(j))}};return e.jsx(rt,{...t,options:l,onSuccess:x})}Z.propTypes={};Z.defaultProps={};function Te({...t}){const{t:s}=S.useContext(Ye),{blocklet:o,loadingDiskInfo:n,actions:i}=O();if(S.useEffect(()=>{i==null||i.refreshBlocklet({showError:!1,attachDiskInfo:!0})},[]),o.diskInfo){const r=(l,p,x)=>e.jsxs(v,{children:[l," ",e.jsx("strong",{children:p?qe(p):"empty"})]}),a=o.environments.reduce((l,p)=>(l[p.key]=p.value,l),{}),c=[{key:"appDir",name:s("blocklet.diskInfo.appDir"),value:r(a.BLOCKLET_APP_DIR,o.diskInfo.app)},{key:"dataDir",name:s("blocklet.diskInfo.dataDir"),value:r(a.BLOCKLET_DATA_DIR,o.diskInfo.data)},{key:"logDir",name:s("blocklet.diskInfo.logDir"),value:r(a.BLOCKLET_LOG_DIR,o.diskInfo.log)},{key:"cacheDir",name:s("blocklet.diskInfo.cacheDir"),value:r(a.BLOCKLET_CACHE_DIR,o.diskInfo.cache)}];return e.jsx(Pt,{component:"div",...t,children:c.map(l=>e.jsx(yt,{valueComponent:"div",nameWidth:120,name:l.name,children:l.value},l.key))})}return n?e.jsx(b,{}):e.jsx(v,{children:s("blocklet.diskInfo.empty")})}const Pt=Xe(v)``;var Oe=function(s){return e.jsxs("svg",{...s,children:[e.jsxs("g",{filter:"url(#a)",children:[e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#DDD"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m49.192 6.222-40.97 40.97A11 11 0 0 0 5 54.971V240c0 6.075 4.925 11 11 11h196c6.075 0 11-4.925 11-11V14c0-6.075-4.925-11-11-11H56.97a11 11 0 0 0-7.778 3.222Zm-.707-.707A12 12 0 0 1 56.971 2H212c6.627 0 12 5.373 12 12v226c0 6.627-5.373 12-12 12H16c-6.627 0-12-5.373-12-12V54.97a12 12 0 0 1 3.515-8.485l40.97-40.97Z",fill:"#000",fillOpacity:".08"}),e.jsx("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"4",y:"2",width:"220",height:"250",children:e.jsx("path",{d:"M56.97 2a12 12 0 0 0-8.485 3.515l-40.97 40.97A12 12 0 0 0 4 54.971V240c0 6.627 5.373 12 12 12h196c6.627 0 12-5.373 12-12V14c0-6.627-5.373-12-12-12H56.97Z",fill:"#D9D9D9"})}),e.jsxs("g",{mask:"url(#b)",children:[e.jsx("path",{opacity:".5",fill:"url(#c)",d:"M4 2h220v128H4z"}),e.jsx("path",{opacity:".1",fill:"url(#d)",d:"M4 130h220v122H4z"}),e.jsx("path",{d:"M33.045 169h-3.767v-11.636h3.887c1.14 0 2.12.233 2.937.698a4.61 4.61 0 0 1 1.881 1.995c.44.863.659 1.899.659 3.108 0 1.212-.222 2.254-.665 3.125a4.668 4.668 0 0 1-1.909 2.011c-.833.466-1.84.699-3.023.699Zm-2.01-1.534h1.914c.886 0 1.623-.167 2.21-.5a3.152 3.152 0 0 0 1.318-1.46c.292-.64.438-1.421.438-2.341 0-.913-.146-1.688-.438-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm11.546-10.102V169h-1.756v-11.636h1.756ZM48.905 169h-3.767v-11.636h3.886c1.14 0 2.12.233 2.938.698a4.609 4.609 0 0 1 1.88 1.995c.44.863.66 1.899.66 3.108 0 1.212-.222 2.254-.665 3.125a4.667 4.667 0 0 1-1.91 2.011c-.833.466-1.84.699-3.022.699Zm-2.011-1.534h1.914c.887 0 1.623-.167 2.21-.5a3.151 3.151 0 0 0 1.319-1.46c.291-.64.437-1.421.437-2.341 0-.913-.146-1.688-.437-2.324a3.095 3.095 0 0 0-1.29-1.449c-.572-.33-1.282-.494-2.13-.494h-2.023v8.568Zm20.372-7.046a1.662 1.662 0 0 0-.75-1.25c-.44-.299-.993-.448-1.66-.448-.477 0-.89.075-1.238.227a1.91 1.91 0 0 0-.813.613c-.189.258-.284.552-.284.881 0 .277.065.515.194.716.132.201.304.369.516.506.216.132.447.244.694.335.246.087.483.159.71.216l1.136.295c.371.091.752.214 1.142.37.39.155.752.36 1.086.613.333.254.602.568.806.944.209.374.313.823.313 1.346 0 .659-.17 1.244-.511 1.756-.338.511-.828.915-1.472 1.21-.64.295-1.415.443-2.324.443-.871 0-1.625-.138-2.261-.415-.637-.276-1.135-.668-1.495-1.176-.36-.511-.558-1.117-.596-1.818h1.761c.034.421.17.771.41 1.051.242.277.55.483.925.62.38.132.794.198 1.245.198.496 0 .937-.077 1.324-.233.39-.159.697-.378.92-.659a1.56 1.56 0 0 0 .335-.994c0-.345-.098-.627-.295-.847a2.191 2.191 0 0 0-.79-.545 7.725 7.725 0 0 0-1.12-.381l-1.374-.375c-.932-.253-1.67-.627-2.216-1.119-.542-.492-.813-1.144-.813-1.955 0-.67.182-1.255.546-1.755.363-.5.856-.888 1.477-1.165.621-.28 1.322-.42 2.102-.42.788 0 1.483.138 2.085.414.607.277 1.084.658 1.432 1.142.349.481.53 1.034.546 1.659h-1.693Zm3.813 11.853v-12h1.66v1.415h.142c.098-.182.24-.393.426-.631.185-.239.443-.447.772-.625.33-.182.766-.273 1.307-.273.705 0 1.334.178 1.887.534.553.356.987.869 1.3 1.54.319.67.478 1.477.478 2.42 0 .944-.157 1.752-.472 2.427-.314.67-.746 1.187-1.295 1.551-.55.36-1.176.539-1.88.539-.53 0-.965-.089-1.302-.267a2.457 2.457 0 0 1-.784-.625 4.667 4.667 0 0 1-.437-.636h-.103v4.631H71.08Zm1.665-7.637c0 .614.09 1.152.267 1.614.178.462.436.824.773 1.085.337.258.75.387 1.239.387.507 0 .931-.135 1.273-.404.34-.273.598-.642.772-1.108.178-.466.267-.99.267-1.574 0-.575-.087-1.092-.261-1.551-.17-.458-.428-.82-.773-1.085-.34-.265-.767-.398-1.278-.398-.493 0-.91.127-1.25.381-.337.254-.593.608-.767 1.062-.175.455-.262.985-.262 1.591Zm10.75 4.557a3.557 3.557 0 0 1-1.5-.307 2.523 2.523 0 0 1-1.062-.903c-.258-.394-.386-.877-.386-1.449 0-.492.094-.898.283-1.216.19-.318.446-.57.768-.756a4.036 4.036 0 0 1 1.08-.42c.397-.095.802-.167 1.215-.216l1.273-.148c.325-.041.562-.108.71-.198.148-.091.222-.239.222-.444v-.039c0-.497-.14-.881-.42-1.154-.277-.273-.69-.409-1.24-.409-.572 0-1.022.127-1.352.381-.325.25-.55.528-.676.835l-1.597-.364c.19-.53.466-.958.83-1.284.368-.329.79-.568 1.267-.716.477-.151.98-.227 1.506-.227.348 0 .718.042 1.108.125.394.08.761.227 1.102.443.345.216.627.525.847.926.22.398.33.915.33 1.552V169h-1.66v-1.193h-.068c-.11.22-.275.435-.495.648-.22.212-.501.388-.846.528s-.758.21-1.239.21Zm.37-1.363c.47 0 .87-.093 1.204-.279.337-.185.593-.428.767-.727.178-.303.267-.627.267-.972v-1.125c-.06.061-.178.118-.352.171-.17.049-.365.093-.585.13-.22.034-.434.067-.642.097l-.523.068c-.33.042-.63.112-.903.21a1.553 1.553 0 0 0-.648.427c-.16.181-.239.424-.239.727 0 .42.156.738.466.954.31.212.707.319 1.188.319Zm9.876 1.346c-.845 0-1.572-.191-2.182-.574a3.796 3.796 0 0 1-1.398-1.596c-.325-.678-.488-1.455-.488-2.33 0-.886.166-1.668.5-2.346a3.832 3.832 0 0 1 1.409-1.597c.606-.383 1.32-.574 2.142-.574.663 0 1.254.123 1.773.369.519.243.937.584 1.255 1.023.322.44.514.953.574 1.54h-1.653c-.091-.409-.3-.761-.625-1.057-.322-.295-.754-.443-1.296-.443a2.11 2.11 0 0 0-1.244.375c-.352.246-.627.598-.824 1.057-.197.454-.295.992-.295 1.613 0 .637.096 1.186.29 1.648.193.462.466.82.818 1.074.356.254.774.381 1.255.381.322 0 .614-.059.875-.177.266-.121.487-.293.665-.517.182-.223.309-.492.38-.806h1.654a3.211 3.211 0 0 1-.55 1.511 3.165 3.165 0 0 1-1.234 1.045c-.511.254-1.111.381-1.8.381Zm9.163 0c-.859 0-1.6-.184-2.221-.551a3.732 3.732 0 0 1-1.432-1.563c-.333-.674-.5-1.464-.5-2.369 0-.894.167-1.682.5-2.363a3.887 3.887 0 0 1 1.409-1.597c.606-.383 1.314-.574 2.125-.574.493 0 .97.082 1.432.244.462.163.877.419 1.244.767.368.349.657.802.87 1.358.212.553.318 1.226.318 2.017v.603H99.71v-1.273h5.273c0-.447-.091-.843-.273-1.187a2.052 2.052 0 0 0-.767-.824c-.326-.201-.708-.302-1.148-.302a2.22 2.22 0 0 0-1.25.353 2.364 2.364 0 0 0-.818.909 2.626 2.626 0 0 0-.284 1.21v.994c0 .584.102 1.08.307 1.489.208.409.498.722.869.938.372.212.805.318 1.301.318a2.7 2.7 0 0 0 .881-.137c.265-.094.494-.234.688-.42.193-.186.341-.415.443-.688l1.608.29c-.129.474-.36.888-.693 1.244-.33.353-.745.627-1.245.824-.496.194-1.062.29-1.699.29Z",fill:"#fff"}),e.jsx("path",{d:"M117.604 47.263 121.523 45h14.267v41.862h-14.267l-15.335-8.854V53.854l1.818-1.05 3.2 1.848-1.818 1.05V76.16l12.993 7.502h10.209V48.2h-10.209l-1.577.91-3.2-1.847Z",fill:"url(#e)"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M119.402 76.16V55.701L106.409 48.2H96.2v35.462h10.209l1.582-.913 3.2 1.847-3.924 2.266H93V45h14.267l15.335 8.854v24.154l-1.813 1.046-3.2-1.847 1.813-1.047Z",fill:"url(#f)"}),e.jsxs("g",{clipPath:"url(#g)",fillRule:"evenodd",clipRule:"evenodd",fill:"#fff",children:[e.jsx("path",{d:"m50.928 216.089 1.034 2.852h-2.503l1.028-2.842a4.95 4.95 0 0 0 .107-.338 7.17 7.17 0 0 0 .111-.409c.075.297.15.542.223.737Zm2.28 5.591h.796l-2.775-7.352h-1.043l-2.774 7.352h.795a.338.338 0 0 0 .223-.077.425.425 0 0 0 .127-.179l.615-1.705h3.07l.617 1.705a.399.399 0 0 0 .126.184.339.339 0 0 0 .223.072Zm4.823-.963a2.023 2.023 0 0 1-.67.098h-1.455v-2.453h1.456c.5 0 .871.106 1.11.318.24.208.36.495.36.86 0 .184-.028.355-.083.512a1.005 1.005 0 0 1-.262.399 1.2 1.2 0 0 1-.456.266Zm-2.125-3.128v-2.406h1.237c.498 0 .865.095 1.101.286.236.192.355.497.355.917 0 .369-.125.662-.374.881-.246.215-.623.322-1.13.322h-1.189Zm2.358-3.128a4.106 4.106 0 0 0-1.12-.133h-2.27v7.352h2.507c.391 0 .74-.051 1.048-.154.307-.102.566-.247.776-.435.21-.188.37-.409.48-.665.11-.26.165-.547.165-.861 0-.904-.506-1.462-1.518-1.674.22-.075.41-.169.572-.281a1.79 1.79 0 0 0 .403-.379c.106-.144.186-.297.237-.461.052-.164.078-.335.078-.512a2.1 2.1 0 0 0-.146-.804 1.49 1.49 0 0 0-.441-.609 2.073 2.073 0 0 0-.771-.384Zm7.535.778h-2.212v6.441h-1.028v-6.441h-2.222v-.911H65.8v.911Zm2.439.564h-1.13v1.193h1.13v-1.193Zm-1.13 2.983h1.13v1.193h-1.13v-1.193Z",fillOpacity:".8"}),e.jsx("path",{d:"M28.247 221.771V214h3.894c.99.072 1.765.944 1.765 1.998v3.77c0 1.106-.85 2.003-1.897 2.003h-3.762ZM36.355 214h-1.011v7.783h1.01V214Zm-7.097 6.704v-5.642h2.751c.49 0 .886.419.886.936v3.77c0 .517-.396.936-.886.936h-2.75ZM37.775 214v7.771h3.762c1.047 0 1.897-.897 1.897-2.003v-3.77c0-1.054-.774-1.926-1.765-1.998h-3.894Zm6.946 1.803h1.13v1.193h-1.13v-1.193Zm1.13 2.983h-1.13v1.193h1.13v-1.193Zm-7.065-3.724v5.642h2.75c.49 0 .887-.419.887-.936v-3.77c0-.517-.397-.936-.886-.936h-2.751Z"})]}),e.jsx("circle",{cx:"191.32",cy:"218",r:"10",fill:"url(#h)"}),e.jsx("path",{d:"m192.064 213.333.976-.564h3.554v10.427h-3.286a1 1 0 0 1-.5-.134l-3.588-2.071v-6.016l.453-.262.797.46-.453.262v5.096l3.237 1.868h2.543v-8.833h-2.543l-.393.227-.797-.46Z",fill:"#fff"}),e.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M192.512 220.531v-5.096l-3.237-1.869h-2.543v8.833h2.543l.394-.227.797.46-.977.564h-3.554v-10.427h3.554l3.82 2.206v6.016l-.452.261-.797-.461.452-.26Z",fill:"#fff"})]})]}),e.jsxs("defs",{children:[e.jsxs("linearGradient",{id:"d",x1:"114",y1:"130",x2:"114",y2:"252",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#101010"}),e.jsx("stop",{offset:"1",stopColor:"#272727"})]}),e.jsxs("linearGradient",{id:"e",x1:"120.989",y1:"45",x2:"120.989",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff",stopOpacity:".4"}),e.jsx("stop",{offset:"1",stopColor:"#fff"})]}),e.jsxs("linearGradient",{id:"f",x1:"107.801",y1:"45",x2:"107.801",y2:"86.862",gradientUnits:"userSpaceOnUse",children:[e.jsx("stop",{stopColor:"#fff"}),e.jsx("stop",{offset:"1",stopColor:"#fff",stopOpacity:".4"})]}),e.jsxs("radialGradient",{id:"h",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(17 -8.76924 6.97565 13.52294 183.166 221)",children:[e.jsx("stop",{stopColor:"#016BED"}),e.jsx("stop",{offset:".699",stopColor:"#4498FB"}),e.jsx("stop",{offset:"1",stopColor:"#9DFFE8"})]}),e.jsx("clipPath",{id:"g",children:e.jsx("path",{fill:"#fff",transform:"translate(28 214)",d:"M0 0h40.32v8H0z"})}),e.jsx("pattern",{id:"c",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:e.jsx("use",{xlinkHref:"#i",transform:"scale(.00455 .00781)"})}),e.jsxs("filter",{id:"a",x:"0",y:"0",width:"228",height:"258",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[e.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),e.jsx("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),e.jsx("feOffset",{dy:"2"}),e.jsx("feGaussianBlur",{stdDeviation:"2"}),e.jsx("feComposite",{in2:"hardAlpha",operator:"out"}),e.jsx("feColorMatrix",{values:"0 0 0 0 0.0631944 0 0 0 0 0.242785 0 0 0 0 0.403472 0 0 0 0.2 0"}),e.jsx("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1410_22507"}),e.jsx("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1410_22507",result:"shape"})]}),e.jsx("image",{id:"i",width:"220",height:"128",xlinkHref:"data:image/png;base64,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"})]})]})};Oe.defaultProps={width:"228",height:"258",fill:"none",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"};function be(){const{t}=k();return e.jsxs(I,{children:[e.jsxs(I,{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",alignContent:"center",children:[e.jsx(Oe,{style:{width:250,height:250}}),e.jsx(v,{marginTop:"24px",marginBottom:"24px",children:t("storage.spaces.connect.provider")}),e.jsx(Z,{})]}),e.jsx(v,{fontSize:"1.2rem",fontWeight:"bold",mb:2,mt:2,children:t("common.dataStorage")}),e.jsx(Te,{})]})}be.propTypes={};var he={},Nt=H;Object.defineProperty(he,"__esModule",{value:!0});var Ue=he.default=void 0,Jt=Nt(z()),Qt=e;Ue=he.default=(0,Jt.default)((0,Qt.jsx)("path",{d:"M6 6v2h8.59L5 17.59 6.41 19 16 9.41V18h2V6z"}),"ArrowOutward");var me={},Zt=H;Object.defineProperty(me,"__esModule",{value:!0});var Le=me.default=void 0,zt=Zt(z()),Ht=e;Le=me.default=(0,zt.default)((0,Ht.jsx)("path",{d:"M14.69 2.21 4.33 11.49c-.64.58-.28 1.65.58 1.73L13 14l-4.85 6.76c-.22.31-.19.74.08 1.01.3.3.77.31 1.08.02l10.36-9.28c.64-.58.28-1.65-.58-1.73L11 10l4.85-6.76c.22-.31.19-.74-.08-1.01-.3-.3-.77-.31-1.08-.02"}),"ElectricBoltOutlined");var fe={},Vt=H;Object.defineProperty(fe,"__esModule",{value:!0});var we=fe.default=void 0,Kt=Vt(z()),Gt=e;we=fe.default=(0,Kt.default)((0,Gt.jsx)("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"}),"FolderOutlined");function ge({spaceGateway:t,onConfirm:s,onCancel:o}){const{t:n}=k(),[i,r]=S.useState(!1),[a,c]=S.useState(!1),l=(d,u)=>{d==null||d.preventDefault(),d==null||d.stopPropagation(),r(u)},p=async d=>{try{d==null||d.stopPropagation(),c(!0),await(s==null?void 0:s(t)),r(!1)}catch(u){console.error(u),B.error(`${n("storage.space.gateway.delete.failed")}: ${$(u)}`)}finally{r(!1),c(!1)}},x=d=>{l(d,!1),o==null||o(d)};return e.jsxs(e.Fragment,{children:[e.jsxs(X,{color:"red",onClick:d=>l(d,!0),children:[e.jsx(Y,{style:{minWidth:24,color:"red"},children:e.jsx(vt,{fontSize:"small"})}),e.jsx(q,{style:{color:"red"},children:n("common.delete")})]}),e.jsx(We,{title:n("storage.spaces.gateway.delete.title"),open:i,confirmButton:{text:n("common.confirm"),props:{size:"small",variant:"contained",color:"error",loading:a}},cancelButton:{text:n("common.cancel"),props:{size:"small",variant:"outlined",loading:a}},onConfirm:p,onCancel:x,children:e.jsx(v,{sx:{wordBreak:"break-all"},children:n("common.delConfirmDescription",{data:`${t==null?void 0:t.name}`})})})]})}ge.propTypes={spaceGateway:f.shape({name:f.string.isRequired,url:f.string.isRequired,protected:f.bool}).isRequired,onConfirm:f.func,onCancel:f.func};ge.defaultProps={onConfirm:()=>{},onCancel:()=>{}};function xe({spaceGateway:t,selected:s,onDelete:o,onConnect:n,enableSwitchToSpace:i,backupInProgress:r,...a}){const[c,l]=S.useState(null),{t:p}=k(),[x,d]=S.useState(!1),u=(g,A)=>{g.stopPropagation(),g.preventDefault(),l(A&&g.currentTarget)},j=async g=>{try{d(!0),u(g,!1),await n(t)}catch(A){console.error(A),B.error(A.message)}finally{d(!1)}};return e.jsxs(e.Fragment,{children:[x||t!=null&&t.loading?e.jsx(b,{size:"24px"}):e.jsx(_e,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"trigger-blocklet-actions",variant:"outlined",size:"small",onClick:g=>u(g,!0),...a,children:e.jsx(Bt,{})}),e.jsxs($e,{id:"simple-menu",anchorEl:c,keepMounted:!0,open:!!c,onClose:g=>u(g,!1),children:[e.jsxs(X,{onClick:g=>{u(g,!1),window.open(t.endpoint?gt(t.endpoint):t.url)},children:[e.jsx(Y,{style:{minWidth:24},children:e.jsx(Ue,{fontSize:"small"})}),e.jsx(q,{children:p("common.open")})]}),e.jsxs(X,{onClick:g=>{u(g,!1),window.open(xt(t.endpoint))},children:[e.jsx(Y,{style:{minWidth:24},children:e.jsx(we,{fontSize:"small"})}),e.jsx(q,{children:p("storage.spaces.strategy.viewBackupFiles")})]}),!s&&i&&e.jsxs(X,{onClick:j,children:[e.jsx(Y,{style:{minWidth:24},children:e.jsx(Le,{fontSize:"small"})}),e.jsx(q,{children:p("storage.spaces.connect.switchToSpace")})]}),!r&&e.jsx(ge,{spaceGateway:t,onConfirm:async()=>{l(null),await(o==null?void 0:o(t))},onCancel:()=>l(null)})]})]})}xe.propTypes={spaceGateway:f.shape({name:f.string.isRequired,url:f.string.isRequired,protected:f.bool,endpoint:f.string.isRequired,loading:f.bool}).isRequired,selected:f.bool.isRequired,enableSwitchToSpace:f.bool,onDelete:f.func,onConnect:f.func,backupInProgress:f.bool};xe.defaultProps={onDelete:()=>{},onConnect:()=>{},enableSwitchToSpace:!0,backupInProgress:!1};function Se({spaceGateway:t,spaceStatus:s,selected:o,onConnected:n,onDeleted:i,onBackedUp:r}){const{t:a,locale:c}=k(),{blocklet:l}=O(),{api:p,info:{did:x}}=P(),{appDid:d,appName:u,appDescription:j,scopes:g,appUrl:A,referrer:C}=Ie({blocklet:l}),{backupProgress:h,updateSpaceGateway:U,deleteSpaceGateway:L,refreshBackupEndpoint:ee}=N(),[R,w]=S.useState(!1),[E,M]=S.useState({open:!1,action:"one-click-authorization",checkTimeout:1e3*300,messages:{title:a("storage.spaces.authorize.title",{appName:u},c),scan:a("storage.spaces.authorize.scan",{appName:u},c),confirm:"",success:e.jsx(v,{gutterBottom:!0,children:a("storage.spaces.authorize.success")})},onClose:()=>{M(y=>({...y,open:!1}))}}),te=o&&!R&&s===oe.DISCONNECTED,V=o&&!R&&!t.loading&&s===oe.CONNECTED,m=o&&R&&s===oe.CONNECTED,J=async()=>{try{if(await St(t==null?void 0:t.endpoint)){await p.configBlocklet({input:{did:[l.meta.did],configs:[{key:T.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_BACKUP_ENDPOINT,value:t.endpoint}]}}),ee(),B.success(a("storage.spaces.connect.switchToSpaceSucceeded",{name:t.name?`(${t.name})`:""})),n==null||n(null,t);return}}catch(y){console.error(y),n==null||n(y,t);return}M(y=>({...y,open:!0,prefix:ie(t.url,"space/api/did"),baseUrl:new URL(t.url).origin,checkFn:Be.create({baseURL:ie(t.url,"space")}).get,extraParams:{appDid:d,appName:u,appDescription:j,scopes:g,appUrl:A,referrer:C,nodeDid:x,spaceDid:t.did}}))},Ne=async(y,je)=>{const se=je(y.endpoint),Ze=le(se),F=y.space?je(y.space):{};if(t.did&&Ze!==t.did){M(ze=>({...ze,open:!1}));const K=a("storage.spaces.gateway.switch.failedForMismatchSpace",{name:F!=null&&F.name?F.name:""});B.error(K),n==null||n(new Error(K),t);return}const Ae={...t,name:F.name??"DID Space",did:F.did??le(se),endpoint:se};await U(Ae),M(K=>({...K,open:!1})),n==null||n(null,Ae)},Je=async()=>{try{if(R)return;w(!0),await p.backupBlocklet({input:{appDid:l.appDid,to:"spaces"}})}catch(y){console.error(y),B.error(y.message),r==null||r(y,t)}finally{w(!0)}},Qe=async()=>{try{await L(t),B.success(a("storage.spaces.gateway.delete.succeeded",{name:`(${t.name})`})),i==null||i(null,t)}catch(y){console.error(y),i==null||i(y,t)}};return S.useEffect(()=>{h!=null&&h.completed?(o&&((h==null?void 0:h.progress)===100?(B.success(a("storage.spaces.backupSuccessfully")),r==null||r(null,t)):h.message&&(r==null||r(new Error(h==null?void 0:h.message),t)),h.progress=0,h.message=""),w(!1)):h.progress&&w(!0)},[h]),e.jsxs(e.Fragment,{children:[e.jsxs(I,{sx:{".action-btn":{borderRadius:1,marginLeft:1}},display:"flex",alignItems:"center",children:[V&&e.jsx(ne,{className:"action-btn",variant:"outlined",size:"small",onClick:Je,children:a("storage.spaces.strategy.backupNow")}),te&&e.jsx(ne,{className:"action-btn",variant:"outlined",size:"small",onClick:J,children:a("storage.spaces.disconnected.reconnectNow")}),m&&e.jsxs(ne,{className:"action-btn",variant:"outlined",size:"small",sx:{minWidth:70},children:[e.jsx(b,{variant:"determinate",value:h==null?void 0:h.progress,size:14,sx:{mr:1}}),h==null?void 0:h.progress,"%"]}),e.jsx(et,{forceConnected:!1,saveConnect:!1,prefix:E.prefix,open:E.open,popup:!0,action:E.action,baseUrl:E.baseUrl,checkFn:E.checkFn,onSuccess:Ne,onClose:E.onClose,checkTimeout:E.checkTimeout,extraParams:E.extraParams,messages:E.messages,locale:c},"get-endpoint")]}),e.jsx(xe,{sx:{minWidth:32,padding:"2px 4px",ml:1},spaceGateway:t,selected:o,onDelete:Qe,onConnect:J,enableSwitchToSpace:(h==null?void 0:h.completed)||_(h==null?void 0:h.message),backupInProgress:m})]})}Se.propTypes={spaceGateway:f.shape({did:f.string.isRequired,name:f.string.isRequired,url:f.string.isRequired,endpoint:f.string.isRequired,protected:f.bool,loading:f.bool}).isRequired,spaceStatus:f.string.isRequired,selected:f.bool.isRequired,onConnected:f.func,onDeleted:f.func,onBackedUp:f.func};Se.defaultProps={onConnected:()=>{},onDeleted:()=>{},onBackedUp:()=>{}};function Me({...t}){const{t:s,locale:o}=k(),{spaceGateways:n,backups:i}=N(),r=[{label:"DID Spaces",name:"target",options:{customBodyRenderLite:a=>{var g;const{targetUrl:c,targetName:l,status:p,createdAt:x}=i[a],d=p===D.BACKUPS.STATUS.PROGRESS&&G().diff(x,"hours")>=D.BACKUPS.TIMEOUT_HOURS,u=p===D.BACKUPS.STATUS.SUCCEEDED&&!d,j=l||((g=n.find(A=>c==null?void 0:c.includes(le(A==null?void 0:A.endpoint))))==null?void 0:g.name)||"Unknown DID Space";return u?e.jsx(Et,{fontSize:"16px",href:c,target:"_blank",children:j}):e.jsx(v,{variant:"body1",fontSize:"16px",children:j})}}},{label:s("common.strategy"),name:"strategy",options:{customBodyRender:a=>{const c=s(a===0?"common.auto":"common.manual");return e.jsx(ae,{children:c})}}},{label:s("common.startTime"),name:"createdAt",options:{customBodyRender:a=>G(a).format("YYYY-MM-DD HH:mm:ss")}},{label:s("common.endTime"),name:"updatedAt",options:{customBodyRender:a=>_(a)?"":G(a).format("YYYY-MM-DD HH:mm:ss")}},{label:s("common.status"),name:"status",options:{customBodyRenderLite:a=>{const{status:c,message:l,createdAt:p}=(i==null?void 0:i[a])??{},x=c===D.BACKUPS.STATUS.PROGRESS&&G().diff(p,"hours")>=D.BACKUPS.TIMEOUT_HOURS,d=x&&s("common.timeoutError"),u=c===D.BACKUPS.STATUS.PROGRESS&&!x,j=c===D.BACKUPS.STATUS.SUCCEEDED&&!x;return u?e.jsxs(v,{display:"inline-flex",alignItems:"center",fontSize:"14px",children:[e.jsx(b,{sx:{marginRight:"4px"},size:"12px"}),s("common.progress")]}):j?e.jsx(ae,{type:"success",children:s("common.succeeded")}):e.jsxs(I,{display:"inline-flex",alignItems:"center",children:[e.jsx(ae,{type:"error",children:s("common.failed")}),"  ",e.jsx(tt,{style:{display:"flex",alignItems:"center",flexShrink:0},title:l||d,children:e.jsx(st,{children:e.jsx(It,{style:{width:"24px",height:"24px"},color:"error"})})})]})}}}];return e.jsx(I,{...t,children:i!=null&&i.length?e.jsx(Ct,{title:e.jsx(v,{fontSize:"1.2rem",fontWeight:"bold",children:s("storage.spaces.backup.records")}),data:i,columns:r,emptyNode:s("storage.spaces.record.emptyData",o),options:{download:!1,filter:!1,print:!1}}):e.jsxs(e.Fragment,{children:[e.jsx(I,{display:"flex",height:"56px",lineHeight:"56px",alignItems:"center",children:e.jsx(v,{fontSize:"1.2rem",fontWeight:"bold",children:s("storage.spaces.backup.records")})}),e.jsx(I,{color:"#9397A1",marginTop:"16px",marginBottom:"24px",children:s("storage.spaces.record.emptyData")})]})})}Me.propTypes={};function Fe({...t}){const{t:s}=k(),{autoBackup:o,updateAutoBackup:n}=N(),i=async()=>{try{const r=!(o!=null&&o.enabled);await n({enabled:r}),B.success(s(r?"storage.spaces.autoBackup.enabled":"storage.spaces.autoBackup.disabled"))}catch(r){B.error(r.message)}};return e.jsx(kt,{checked:!!(o!=null&&o.enabled),onChange:i,name:"enableWelcomePage",labelProps:{label:e.jsx(v,{marginRight:"8px",children:e.jsx("span",{children:s("storage.spaces.autoBackup.title")})})},style:{...t.style}})}Fe.propTypes={};function Xt(){const{t}=k(),s=Ce(),{spaceGateways:o,spaceGatewaysLoading:n,spaceGatewayIsSelected:i}=N(),r=n&&!(o!=null&&o.length),a=({spaceGateway:c,spaceStatus:l,selected:p,refresh:x})=>e.jsx(Se,{spaceGateway:c,spaceStatus:l,selected:p,onConnected:()=>x(),onBackedUp:d=>d&&x()});return e.jsxs(I,{display:"flex",flexDirection:"column",children:[e.jsxs(W,{spacing:s?1:4,direction:s?"column":"row",alignItems:s?"space-between":"center",justifyContent:s?"center":"space-between",marginBottom:"12px",children:[e.jsx(v,{fontSize:"1.2rem",fontWeight:"bold",flexGrow:1,children:t("storage.spaces.connected.title")}),e.jsx(Fe,{}),s?e.jsx(Z,{sx:{width:"100%","& button:first-of-type":{width:"100%"}}}):e.jsx(Z,{})]}),e.jsx(I,{children:r?e.jsx(I,{display:"flex",justifyContent:"center",children:e.jsx(b,{})}):e.jsx(Q,{container:!0,spacing:1,children:e.jsx(e.Fragment,{children:o.map(c=>e.jsx(Q,{item:!0,xs:12,md:6,children:e.jsx(ct,{sx:{marginTop:"12px"},endpoint:c.endpoint,selected:i(c),action:a},c.endpoint)}))})})}),e.jsx(Me,{sx:{marginTop:"24px"}}),e.jsx(v,{fontSize:"1.2rem",fontWeight:"bold",mb:2,children:t("common.dataStorage")}),e.jsx(Te,{})]})}function Yt(){const{spaceGatewaysLoading:t,spaceGateways:s}=N();return t?e.jsx(ve,{relative:"parent",children:e.jsx(b,{})}):_(s)?e.jsx(be,{}):e.jsx(Xt,{})}function qt(){return e.jsx(ue,{children:e.jsx(Yt,{})})}function Wt(){const{spaceGateway:t,settingStorageEndpoint:s,updateSpaceGateway:o,hasStorageEndpoint:n,loading:i,storageEndpoint:r}=At(),a=ce(()=>({display:"flex",alignItems:"center",justifyContent:"center",paddingTop:"16px"}));return i?e.jsx(ve,{relative:"parent",children:e.jsx(b,{})}):e.jsxs(I,{sx:{maxWidth:"md",position:"relative"},children:[n?e.jsx(lt,{spaceGateway:t,settingStorageEndpoint:s}):e.jsx(dt,{}),e.jsx(I,{sx:a,children:e.jsx(pt,{onConnect:o,storageEndpoint:r})})]})}function _t(){const{t}=k();return e.jsxs(jt,{children:[e.jsxs(W,{spacing:1,marginBottom:2,children:[e.jsx(v,{fontSize:"1.2rem",fontWeight:"bold",children:t("storage.appLevel.title")}),e.jsx(v,{color:"text.secondary",children:t("storage.appLevel.description")})]}),e.jsx(Wt,{})]})}function Pe({navOrientation:t,...s}){const{t:o,locale:n}=k(),{blocklet:i}=O(),r=Ce({key:"md"}),[a,c]=nt(),l=a.get("tab")||"backup",p=r?"horizontal":t,x=ce(()=>{var h;const A=[{label:e.jsxs(W,{direction:"row",alignItems:"center",alignSelf:"flex-start",spacing:2,children:[e.jsx(Ee,{}),e.jsx("span",{children:o("common.backup")})]}),value:"backup"}],C=(h=i==null?void 0:i.capabilities)==null?void 0:h.didSpace;return(C===T.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED||C===T.BLOCKLET_APP_SPACE_REQUIREMENT.REQUIRED_ON_SETUP)&&A.push({label:e.jsxs(W,{direction:"row",alignItems:"center",alignSelf:"flex-start",spacing:2,children:[e.jsx(ke,{}),e.jsx("span",{children:o("common.storage")})]}),value:"storage"}),A},[n,p]),u=ce(()=>({backup:e.jsx(qt,{}),storage:e.jsx(_t,{})}))[l],j=A=>{c(C=>(A==="backup"?C.delete("tab"):C.set("tab",A),C))};if(x.length<=1)return e.jsx(re,{children:u});const g=e.jsx(at,{tabs:x,current:l,orientation:p,onChange:j,sx:[{borderRight:1,height:"100%",borderColor:"divider"},p==="horizontal"&&{borderRight:0}]});if(p==="vertical")return e.jsx(I,{...s,children:e.jsxs(Q,{container:!0,columnSpacing:4,columns:24,sx:{mt:-1},children:[e.jsx(Q,{item:!0,md:5,lg:4,children:g}),e.jsx(Q,{item:!0,md:19,lg:20,children:e.jsx(re,{sx:{mt:1},children:u})})]})});if(p==="horizontal")return e.jsxs(I,{...s,children:[g,e.jsx(re,{sx:{mt:2},children:u})]})}Pe.propTypes={navOrientation:f.oneOf(["vertical","horizontal"])};Pe.defaultProps={navOrientation:"vertical"};const re=ot(I)`
2
- position: relative;
3
- min-height: 66vh;
4
- overflow: hidden;
5
- `;export{Pe as default};
@@ -1,4 +0,0 @@
1
- import{r as h,a2 as g,a_ as y,j as t,C as P,n as v,B as c,a3 as d,P as m,a0 as w}from"./index-BxKrUgd9.js";import{P as T}from"./page-header-B5a7RE0E.js";import{u as B}from"./config-space-BPpdFWKx.js";import{C as E,D,a as N}from"./connect-to-ZJr8_Nq9.js";import{S as u}from"./step-actions-D_1mpc4C.js";import{S as b}from"./layout-Btp-_hcD.js";import"./index-CG1XIXZC.js";import"./api-lbSHYKYc.js";import"./index-BDxuBkP1.js";import"./OpenInNew-C5XvRsRC.js";import"./Link-Dgz_hg-A.js";import"./Stack-690-8aHU.js";import"./Skeleton-BQ4gLbdR.js";import"./HelpOutline-D-mVzldg.js";import"./index-B2fUK0Jg.js";import"./ExpandMore-XeiYcXA0.js";import"./ButtonGroup-9mTO_MUt.js";import"./DialogContentText-BSTFqlB8.js";import"./TextField-CFRK87D0.js";import"./FormControl-D9UzJGr3.js";import"./useFormControl-De83T2k8.js";import"./Select-BM5xijW7.js";import"./DeleteOutline-CFkN2u6G.js";import"./format-error-jTY-wvGv.js";import"./content-layout-DSpN7kL2.js";function l({onNext:a,onPrevious:x}){var n,r,p;const{t:i}=h.useContext(g),{blocklet:e}=y(),{spaceGateway:C,settingStorageEndpoint:j,updateSpaceGateway:f,hasStorageEndpoint:S,loading:o,storageEndpoint:s}=B();return o?t.jsx(P,{relative:"parent",children:t.jsx(v,{})}):t.jsxs(G,{children:[t.jsx("div",{className:"header",children:t.jsx(T,{title:i("setup.didSpace.title"),subTitle:i("setup.didSpace.subTitle"),onClickBack:x})}),t.jsx(c,{sx:{width:"100%",maxWidth:"720px"},children:S?t.jsx(E,{spaceGateway:C,settingStorageEndpoint:j}):t.jsx(D,{})}),((n=e==null?void 0:e.capabilities)==null?void 0:n.didSpace)&&t.jsx(c,{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:"24px",children:t.jsx(N,{onConnect:f,storageEndpoint:s})}),((r=e==null?void 0:e.capabilities)==null?void 0:r.didSpace)==="required"&&t.jsx(u,{mt:8,children:t.jsx(d,{loading:o,variant:"contained",disabled:o||!s,onClick:()=>a(),children:i("setup.continue")})}),((p=e==null?void 0:e.capabilities)==null?void 0:p.didSpace)==="optional"&&t.jsx(u,{blocklet:e,onStartNow:()=>a("complete"),children:t.jsx(d,{className:"start-now",loading:o,variant:"contained",disabled:o,onClick:()=>a(),children:i(s?"setup.continue":"setup.skip")})})]})}l.propTypes={onNext:m.func,onPrevious:m.func};l.defaultProps={onNext:()=>{},onPrevious:()=>{}};const G=w(b)`
2
- height: 100%;
3
- overflow-y: auto;
4
- `;export{l as default};
@@ -1,5 +0,0 @@
1
- import{e as w,d as x,u as f,r as g,a7 as u,l as I,j as i,H as S,V as j,a0 as k,v as E,x as P,y as R,G as T}from"./index-BxKrUgd9.js";import{I as F}from"./invitation-BPrK4inJ.js";import{F as C}from"./fullpage-Dz8PPWdq.js";import"./index-CRK13xk6.js";import"./emotion-cache.browser.esm-DkJEKl9I.js";import"./purify.es-DutPtr9A.js";import"./index-B_EeAcSB.js";import"./use-passport-id-B-b-_oYF.js";import"./session-BGDxwrDP.js";import"./sdk-CrAhZvgC.js";import"./CheckCircle-BvTAg_Vb.js";import"./wrap-locale-Ci8gmRb6.js";import"./Link-Dgz_hg-A.js";function M(c){var r;const p=w(),{searchParams:o}=new URL(window.location.href),{api:d,session:m}=x(),{t:l}=f(),a=o.get("inviteId"),n=o.get("redirect"),h=g.useCallback(async()=>{const{data:t}=await u.get("invitation",{params:{inviteId:a}});return t},[a]),v=I(async(t,s=e=>e)=>{t&&(E(s(t.sessionToken)),P(s(t.refreshToken)),t.visitorId&&R(s(t.visitorId))),await m.refresh(),setTimeout(()=>{if(n){const e=decodeURIComponent(n);e.startsWith(T.WELLKNOWN_SERVICE_PATH_PREFIX)?p(e,{replace:!0}):window.location=e}else window.location=window.env.pathPrefix||"/"},50)});return i.jsxs(C,{did:(r=window.blocklet)==null?void 0:r.appPid,children:[i.jsx(S,{children:i.jsx("title",{children:l("pageTitle.invite")})}),i.jsx(L,{className:"page-invite",children:i.jsx(F,{...c,getDataFn:h,checkFn:d.get,createPassportSvg:j,onLoginSuccess:v,inService:!0})})]})}const L=k.div`
2
- width: 560px;
3
- max-width: 100%;
4
- height: 100%;
5
- `;export{M as default};
@@ -1 +0,0 @@
1
- import{fn as _e,aM as R,r as g,aL as B,aJ as W,dt as Q,eE as Ee,aO as ee,j as s,G as ae,aR as F,u as z,T as E,aw as $e,a3 as te,n as O,fm as De,P as i,Z as V,$ as H,a_ as Ne,al as Pe,b as D,t as $,ac as Ie,aT as Me,aV as ne,B as N,eV as ce,c as L,l as Le,et as ze,a as Oe}from"./index-BxKrUgd9.js";import{d as qe}from"./Add-DtejxYv7.js";import{L as Be,d as Ue}from"./MoreVert-BZZ4IBOf.js";import{D as Ae}from"./DialogContentText-BSTFqlB8.js";import{T as le}from"./TextField-CFRK87D0.js";import{A as de}from"./Alert-XwCbbCdw.js";import{f as q}from"./format-error-jTY-wvGv.js";import{d as ue}from"./Launch-B6-uAhbQ.js";import{d as We}from"./Done-BCayGyaP.js";import{d as fe}from"./DeleteOutline-CFkN2u6G.js";import{C as Fe}from"./click-to-copy-CkFI8a1W.js";import{S as Ve}from"./shorten-label-DK0L2sJV.js";import{u as He,C as pe}from"./confirm-CIF7Vu-X.js";import{u as Ge}from"./session-BGDxwrDP.js";import{W as Je}from"./did-address-DpP51eII.js";import{A as Ke}from"./Avatar-BuTYVz6S.js";import{B as se}from"./ButtonGroup-9mTO_MUt.js";import{f as Xe,j as Ye,a as Ze,c as Qe,d as et,b as tt,e as nt,g as st,h as rt}from"./jss-plugin-props-sort.esm-Bp0MqRVc.js";const ot=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function it(e={}){const{disableGlobal:r=!1,productionPrefix:n="jss",seed:t=""}=e,o=t===""?"":`${t}-`;let u=0;const d=()=>(u+=1,u);return(c,l)=>{const a=l.options.name;if(a&&a.indexOf("Mui")===0&&!l.options.link&&!r){if(ot.indexOf(c.key)!==-1)return`Mui-${c.key}`;const f=`${o}${a}-${c.key}`;return!l.options.theme[_e]||t!==""?f:`${f}-${d()}`}return`${o}${n}${d()}`}}function at(){return{plugins:[Xe(),Ye(),Ze(),Qe(),et(),typeof window>"u"?null:tt(),nt()]}}function me(e={}){const{baseClasses:r,newClasses:n,Component:t}=e;if(!n)return r;const o=R({},r);return Object.keys(n).forEach(u=>{n[u]&&(o[u]=`${r[u]} ${n[u]}`)}),o}const M={set:(e,r,n,t)=>{let o=e.get(r);o||(o=new Map,e.set(r,o)),o.set(n,t)},get:(e,r,n)=>{const t=e.get(r);return t?t.get(n):void 0},delete:(e,r,n)=>{e.get(r).delete(n)}},ct=st(at()),lt=it(),dt=new Map,ut={disableGeneration:!1,generateClassName:lt,jss:ct,sheetsCache:null,sheetsManager:dt,sheetsRegistry:null},ft=g.createContext(ut);let re=-1e9;function pt(){return re+=1,re}const mt=["variant"];function oe(e){return e.length===0}function ht(e){const{variant:r}=e,n=B(e,mt);let t=r||"";return Object.keys(n).sort().forEach(o=>{o==="color"?t+=oe(t)?e[o]:W(e[o]):t+=`${oe(t)?o:W(o)}${W(e[o].toString())}`}),t}const gt={};function xt(e){const r=typeof e=="function";return{create:(n,t)=>{let o;try{o=r?e(n):e}catch(l){throw l}if(!t||!n.components||!n.components[t]||!n.components[t].styleOverrides&&!n.components[t].variants)return o;const u=n.components[t].styleOverrides||{},d=n.components[t].variants||[],c=R({},o);return Object.keys(u).forEach(l=>{c[l]=Q(c[l]||{},u[l])}),d.forEach(l=>{const a=ht(l.props);c[a]=Q(c[a]||{},l.style)}),c},options:{}}}const vt=["name","classNamePrefix","Component","defaultTheme"];function yt({state:e,stylesOptions:r},n,t){if(r.disableGeneration)return n||{};e.cacheClasses||(e.cacheClasses={value:null,lastProp:null,lastJSS:{}});let o=!1;return e.classes!==e.cacheClasses.lastJSS&&(e.cacheClasses.lastJSS=e.classes,o=!0),n!==e.cacheClasses.lastProp&&(e.cacheClasses.lastProp=n,o=!0),o&&(e.cacheClasses.value=me({baseClasses:e.cacheClasses.lastJSS,newClasses:n,Component:t})),e.cacheClasses.value}function jt({state:e,theme:r,stylesOptions:n,stylesCreator:t,name:o},u){if(n.disableGeneration)return;let d=M.get(n.sheetsManager,t,r);d||(d={refs:0,staticSheet:null,dynamicStyles:null},M.set(n.sheetsManager,t,r,d));const c=R({},t.options,n,{theme:r,flip:typeof n.flip=="boolean"?n.flip:r.direction==="rtl"});c.generateId=c.serverGenerateClassName||c.generateClassName;const l=n.sheetsRegistry;if(d.refs===0){let a;n.sheetsCache&&(a=M.get(n.sheetsCache,t,r));const f=t.create(r,o);a||(a=n.jss.createStyleSheet(f,R({link:!1},c)),a.attach(),n.sheetsCache&&M.set(n.sheetsCache,t,r,a)),l&&l.add(a),d.staticSheet=a,d.dynamicStyles=rt(f)}if(d.dynamicStyles){const a=n.jss.createStyleSheet(d.dynamicStyles,R({link:!0},c));a.update(u),a.attach(),e.dynamicSheet=a,e.classes=me({baseClasses:d.staticSheet.classes,newClasses:a.classes}),l&&l.add(a)}else e.classes=d.staticSheet.classes;d.refs+=1}function St({state:e},r){e.dynamicSheet&&e.dynamicSheet.update(r)}function Ct({state:e,theme:r,stylesOptions:n,stylesCreator:t}){if(n.disableGeneration)return;const o=M.get(n.sheetsManager,t,r);o.refs-=1;const u=n.sheetsRegistry;o.refs===0&&(M.delete(n.sheetsManager,t,r),n.jss.removeStyleSheet(o.staticSheet),u&&u.remove(o.staticSheet)),e.dynamicSheet&&(n.jss.removeStyleSheet(e.dynamicSheet),u&&u.remove(e.dynamicSheet))}function bt(e,r){const n=g.useRef([]);let t;const o=g.useMemo(()=>({}),r);n.current!==o&&(n.current=o,t=e()),g.useEffect(()=>()=>{t&&t()},[o])}function G(e,r={}){const{name:n,classNamePrefix:t,Component:o,defaultTheme:u=gt}=r,d=B(r,vt),c=xt(e),l=n||t||"makeStyles";return c.options={index:pt(),name:n,meta:l,classNamePrefix:l},(f={})=>{const h=He()||u,v=R({},g.useContext(ft),d),S=g.useRef(),m=g.useRef();return bt(()=>{const C={name:n,state:{},stylesCreator:c,stylesOptions:v,theme:h};return jt(C,f),m.current=!1,S.current=C,()=>{Ct(C)}},[h,c]),g.useEffect(()=>{m.current&&St(S.current,f),m.current=!0}),yt(S.current,f.classes,o)}}const wt=["name"],Rt=["children","className","clone","component"];function kt(e,r){const n={};return Object.keys(e).forEach(t=>{r.indexOf(t)===-1&&(n[t]=e[t])}),n}function Tt(e){return(n,t={})=>{const{name:o}=t,u=B(t,wt);let d=o;const l=G(typeof n=="function"?h=>({root:v=>n(R({theme:h},v))}):{root:n},R({Component:e,name:o||e.displayName,classNamePrefix:d},u));let a;n.filterProps&&(a=n.filterProps,delete n.filterProps),n.propTypes&&(n.propTypes,delete n.propTypes);const f=g.forwardRef(function(v,S){const{children:m,className:j,clone:C,component:w}=v,y=B(v,Rt),p=l(v),b=ee(p.root,j);let k=y;if(a&&(k=kt(k,a)),C)return g.cloneElement(m,R({className:ee(m.props.className,b)},k));if(typeof m=="function")return m(R({className:b},k));const T=w||e;return s.jsx(T,R({ref:S,className:b},k,{children:m}))});return Ee(f,e),f}}const{NODE_MODES:ie}=ae,_t=({mode:e,previousMode:r}={})=>e===ie.SERVERLESS||r===ie.SERVERLESS;var Et={isInServerlessMode:_t};const $t=G(e=>({addMenuItemRoot:{marginTop:"8px",justifyContent:"center",color:e.palette.primary.main,lineHeight:"3.2"}}));function he({disabled:e,storeList:r,teamDid:n,onAdd:t,scope:o,hiddenChildren:u,open:d,onClose:c}){const{api:l}=F(),[a,f]=g.useState(!1),[h,v]=g.useState(!0),[S,m]=g.useState(!1),[j,C]=g.useState(""),[w,y]=g.useState(""),{t:p}=z(),b=$t(),k=async()=>{f(!0);try{const{decoded:x}=De(j,r);await l.addBlockletStore({input:{teamDid:n,url:x,scope:o}}),t(x),m(!1),c()}catch(x){const P=`${p("store.blockletRegistry.addFailed")} ${q(x)}`;y(P)}finally{f(!1)}},T=()=>{m(!1),c()};return s.jsxs(s.Fragment,{children:[!u&&s.jsxs(Be,{button:!0,disabled:e,className:b.addMenuItemRoot,onClick:()=>{m(!0)},children:[s.jsx(qe,{font:!0}),s.jsx(E,{variant:"inherit",children:p("store.blockletRegistry.addRegistry")})]}),s.jsxs($e,{title:p("store.blockletRegistry.addRegistry"),fullWidth:!0,maxWidth:"md",open:d||S,onClose:T,PaperProps:{style:{minHeight:"auto"}},actions:s.jsxs(s.Fragment,{children:[s.jsx(te,{onClick:x=>{x.stopPropagation(),T()},color:"inherit",children:p("common.cancel")}),s.jsxs(te,{onClick:x=>{x.stopPropagation(),k()},color:"primary","data-cy":"install-blocklet-next-step",disabled:a||!j||h,variant:"contained",autoFocus:!0,children:[a&&s.jsx(O,{size:16}),p("common.confirm")]})]}),children:[s.jsx("div",{style:{paddingTop:12,overflowY:"hidden"},children:s.jsx(Ae,{component:"div",children:s.jsx(E,{component:"div",children:s.jsx(le,{label:p("store.blockletRegistry.registryUrl"),autoComplete:"off",variant:"outlined",name:"url","data-cy":"add-blocklet-store-url",fullWidth:!0,value:j,onChange:x=>{y(null);let P=!1;x.target.value.trim()||(P=!0),x.target.value.trim()||y(p("store.blockletRegistry.registryUrlEmpty")),C(x.target.value),v(P)},disabled:a,onKeyPress:x=>{x.key==="Enter"&&(x.preventDefault(),x.target.value.trim()?k():y(p("store.blockletRegistry.registryUrlEmpty")))}})})})}),!!w&&s.jsx(de,{severity:"error",style:{width:"100%"},children:w})]})]})}he.propTypes={teamDid:i.string.isRequired,disabled:i.bool,storeList:i.array,onAdd:i.func,scope:i.string,hiddenChildren:i.bool,open:i.bool,onClose:i.func};he.defaultProps={disabled:!1,storeList:[],onAdd:()=>{},scope:"",hiddenChildren:!1,open:!1,onClose:()=>{}};var J={},Dt=H;Object.defineProperty(J,"__esModule",{value:!0});var ge=J.default=void 0,Nt=Dt(V()),Pt=s;ge=J.default=(0,Nt.default)((0,Pt.jsx)("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"}),"LinkOutlined");var K={},It=H;Object.defineProperty(K,"__esModule",{value:!0});var xe=K.default=void 0,Mt=It(V()),Lt=s;xe=K.default=(0,Mt.default)((0,Lt.jsx)("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95C8.08 7.14 9.94 6 12 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11c1.56.1 2.78 1.41 2.78 2.96 0 1.65-1.35 3-3 3M8 13h2.55v3h2.9v-3H16l-4-4z"}),"BackupOutlined");function X({title:e,description:r,confirmPlaceholder:n,cancel:t,confirm:o,params:u,onCancel:d,onConfirm:c,keyName:l}){const{t:a}=z(),f={title:()=>s.jsxs("div",{children:[e,s.jsx(Ve,{sx:{fontSize:"14px"},maxLength:64,children:` (${l})`})]}),description:(h,v)=>{const S=m=>{v({...m,__disableConfirm:m.__disableConfirm})};return s.jsxs("div",{children:[s.jsx(de,{severity:"warning",style:{width:"100%"},children:a("common.notice")}),s.jsx("div",{style:{marginTop:24,marginBottom:24},dangerouslySetInnerHTML:{__html:r}}),s.jsxs("div",{style:{marginBottom:24},children:[a("common.click"),":",s.jsx(Fe,{"data-cy":"click-copy",children:l})]}),s.jsx(E,{component:"div",children:s.jsx(le,{label:n,autoComplete:"off","data-cy":"delete-confirm-input",variant:"outlined",fullWidth:!0,autoFocus:!0,value:h.inputVal,onChange:m=>{S({...h,inputVal:m.target.value,__disableConfirm:l!==m.target.value})}})})]})},confirm:o,cancel:t,onConfirm:c,onCancel:d,params:{inputVal:"",__disableConfirm:!0,...u}};return s.jsx(pe,{title:f.title,description:f.description,confirm:f.confirm,cancel:f.cancel,params:f.params,onConfirm:f.onConfirm,onCancel:f.onCancel})}X.propTypes={title:i.any.isRequired,keyName:i.any.isRequired,description:i.any.isRequired,confirmPlaceholder:i.any.isRequired,cancel:i.string,confirm:i.string,params:i.object,onCancel:i.func,onConfirm:i.func.isRequired};X.defaultProps={onCancel:()=>{},cancel:"",confirm:"Confirm",params:{}};function A({store:e,teamDid:r,onDelete:n,children:t,projectId:o="",scope:u=""}){const{api:d}=F(),{t:c}=z(),l=Ne(),[a,f]=g.useState(!1),[h,v]=g.useState(null),S=Pe(),m=()=>{f(!1),v(null)},j=async()=>{var y;try{f(!0),await d.deleteBlockletStore({input:{teamDid:r,url:e.url,projectId:o,scope:u}}),await((y=l==null?void 0:l.actions)==null?void 0:y.refreshBlocklet()),n&&typeof n=="function"&&n()}catch(p){$.error(`Remove Blocklet Store Error: ${q(p)}`)}finally{f(!1),v(null)}},C={keyName:e.url,title:c("store.blockletRegistry.deleteRegistry"),description:c("store.blockletRegistry.deleteDesc",{name:`<b>${e.url}</b>`,color:S.palette.error.main}),confirmPlaceholder:c("store.blockletRegistry.confirmDesc",{name:e.url}),confirm:c("common.delConfirm"),cancel:c("common.cancel"),onConfirm:j,onCancel:m},w=y=>{e.protected||(y.stopPropagation(),v(C))};return s.jsxs(s.Fragment,{children:[t?s.jsx("span",{onClick:w,children:t}):s.jsx(D,{"data-cy":"store-action-delete",color:"primary",disabled:a,onClick:w,size:"small",children:s.jsx(fe,{sx:{zoom:.95}})}),h&&s.jsx(X,{keyName:h.keyName,title:h.title,description:h.description,confirmPlaceholder:h.confirmPlaceholder,confirm:h.confirm,cancel:h.cancel,params:h.params,onConfirm:h.onConfirm,onCancel:h.onCancel})]})}A.propTypes={children:i.node,teamDid:i.string.isRequired,store:i.object.isRequired,onDelete:i.func,projectId:i.string,scope:i.string};A.defaultProps={children:null,projectId:"",scope:"",onDelete:()=>{}};var Y={},zt=H;Object.defineProperty(Y,"__esModule",{value:!0});var ve=Y.default=void 0,Ot=zt(V()),qt=s;ve=Y.default=(0,Ot.default)((0,qt.jsx)("path",{d:"M17 7h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1 0 1.43-.98 2.63-2.31 2.98l1.46 1.46C20.88 15.61 22 13.95 22 12c0-2.76-2.24-5-5-5m-1 4h-2.19l2 2H16zM2 4.27l3.11 3.11C3.29 8.12 2 9.91 2 12c0 2.76 2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1 0-1.59 1.21-2.9 2.76-3.07L8.73 11H8v2h2.73L13 15.27V17h1.73l4.01 4L20 19.74 3.27 3z"}),"LinkOff");const Bt=({store:e,userDid:r})=>{var t;const n=((t=window.blocklet)==null?void 0:t.tenantMode)!==Ie.BLOCKLET_TENANT_MODES.MULTIPLE;return e.protected?!1:e.scope&&e.scope===r?!0:n?e.scope==="studio":!1};function Z({connectedStore:e,onDisconnect:r,onDelete:n,store:t,teamDid:o,projectId:u}){var y;const[d,c]=g.useState(null),l=!!d,{t:a}=z(),{session:f}=Ge(),[h,v]=g.useState(!1),S=p=>{if(p.stopPropagation(),e!=null&&e.developerDid){const b=ce.from(JSON.stringify({forceConnected:e==null?void 0:e.developerDid}),"utf8").toString("base64");window.open(`${L(t.url,"developer/blocklets")}?__did-connect__=${b}`)}else window.open(`${L(t.url,"developer/blocklets")}`)},m=p=>{c(p.currentTarget)},j=()=>{c(null)},C=()=>{v(!1),r()},w=[{label:a("common.visitStore"),action:S,icon:ue},{label:a("common.disconnect"),action:()=>{j(),v(!0)},icon:ve,hidden:!e}];return s.jsxs(s.Fragment,{children:[s.jsx(D,{ref:d,color:"primary",onClick:m,size:"small",children:s.jsx(Ue,{sx:{zoom:.95}})}),s.jsxs(Me,{anchorEl:d,open:l,onClose:j,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:[w.map(p=>p.hidden?null:s.jsxs(ne,{dense:!0,onClick:p.action,disabled:p.disabled,children:[p.icon&&s.jsx(p.icon,{color:"action",sx:{marginRight:1}}),s.jsx(N,{color:"action",children:p.label})]},p.label)),Bt({store:t,userDid:(y=f==null?void 0:f.user)==null?void 0:y.did})&&s.jsx(A,{store:t,onDelete:n,teamDid:o,projectId:u,scope:t.scope||"studio",children:s.jsxs(ne,{dense:!0,disabled:t.protected,children:[s.jsx(fe,{sx:{color:t.protected?"action":"error.main",marginRight:1}}),s.jsx(N,{color:t.protected?"action":"error.main",children:a("common.delete")})]})})]}),h&&s.jsx(pe,{displayError:!0,title:`${a("common.disconnect")} ${t.name}`,description:a("blocklet.publish.disconnectStoreTip"),confirm:a("common.confirm"),onConfirm:C,onCancel:()=>v(!1)})]})}Z.propTypes={connectedStore:i.object.isRequired,onDisconnect:i.func,onDelete:i.func,store:i.object.isRequired,teamDid:i.string.isRequired,projectId:i.string};Z.defaultProps={projectId:"",onDelete:()=>{},onDisconnect:()=>{}};function Ut({messageType:e,onOpen:r,onClose:n}){const t=g.useRef(null),o=g.useRef(null),u=async c=>{setTimeout(()=>{try{n==null||n()}catch{}},10*1e3),t.current&&(clearInterval(o.current),t.current.close());const l=Math.random().toString(36).slice(2);t.current=window.open(`${ae.WELLKNOWN_SERVICE_PATH_PREFIX}/open-window?key=${l}`,"_blank"),r==null||r(t.current),o.current=setInterval(()=>{(!t.current||t.current.closed)&&(t.current=null,clearInterval(o.current),setTimeout(()=>{n==null||n()},1100))},200),await Promise.resolve(c(t.current,a=>{if(!t.current){localStorage.setItem(`open-window-url-${l}`,JSON.stringify({url:a,time:Date.now()}));return}t.current.location.href=a}))},d=Le(c=>{const{type:l,error:a}=c.data;t.current&&l===e&&a&&($.error(a),n==null||n())});return g.useEffect(()=>(window.addEventListener("message",d),()=>{window.removeEventListener("message",d)}),[d]),u}function U({connectedStore:e,sx:r,...n}){return s.jsx(Ke,{sx:{width:24,height:24,...r},src:L(e.storeUrl,`/.well-known/service/user/avatar/${e.developerDid}?imageFilter=resize&w=120&h=120`),...n})}U.propTypes={connectedStore:i.object.isRequired,sx:i.object};U.defaultProps={sx:{}};function ye({storeUrl:e,storeName:r,developerDid:n,published:t}){const{t:o}=z(),u=()=>{if(n){const d=ce.from(JSON.stringify({forceConnected:n}),"utf8").toString("base64");window.open(`${L(e,"developer/blocklets")}?__did-connect__=${d}`)}else window.open(`${L(e,"developer/blocklets")}`)};return s.jsxs(N,{children:[s.jsx(E,{variant:"subtitle2",children:o(t?"blocklet.publish.publishToStoreSuccess":"blocklet.publish.uploadToStoreSuccess",{name:r})}),s.jsx(D,{size:"small",sx:{mt:1},onClick:u,variant:"contained",color:"success",children:o("common.visitTarget",{name:r})})]})}ye.propTypes={storeName:i.string.isRequired,storeUrl:i.string.isRequired,developerDid:i.string.isRequired,published:i.bool.isRequired};const je={CONNECT:"connect",SELECT:"select"},At=G(()=>({buttonText:{textTransform:"none !important"},iconRoot:{minWidth:24},box:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",overflow:"hidden",width:"100%"},menuName:{flexShrink:1,display:"flex",flexDirection:"column",overflow:"hidden",flex:1},actions:{flex:1,display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"center"},title:{fontSize:16,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},url:{fontSize:14,opacity:.5,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},buttonLine:{height:"100%",width:"1px",backgroundColor:"#e0e0e0"}})),Wt=Tt(({className:e,...r})=>s.jsx(Oe,{...r,classes:{popper:e}}))(({theme:e})=>({[`& .${ze.tooltip}`]:{backgroundColor:"#fff",color:"rgba(0, 0, 0, 0.87)",borderRadius:8,padding:e.spacing(2),fontSize:e.typography.pxToRem(12),border:"1px solid rgba(0,0,0,0.08)",boxShadow:"0px 4px 8px rgba(0, 0, 0, 0.05)"}}));function Se({teamDid:e,projectId:r,releaseId:n,store:t,onDelete:o,kind:u,published:d,connectedStore:c,releaseType:l,onPublish:a,onOpenConnectStore:f,onSelectConnectStore:h,behavior:v,scope:S=""}){const m=At(),{t:j}=z(),{api:C,info:w,inService:y}=F(),[p,b]=g.useState(!1),k=Ut({messageType:"connect-store-message",onOpen:()=>b(!0),onClose:()=>b(!1)}),T=u==="publish",x=!!c,P=_=>{if(_.stopPropagation(),T){window.open(L(t.url,"developer/blocklets"));return}window.open(t.url)},Ce=()=>{if(v===je.SELECT){h(t);return}k(async(_,ke)=>{try{const I=await C.connectToStore({input:{did:e,storeUrl:t.url,storeId:t.id,storeName:t.name,projectId:r}});if(!(I!=null&&I.url)){$.error("failed to connect to store");return}ke(I.url),await f({did:e,projectId:r,storeId:t.id}),b(!1)}catch(I){const Te=q(I);$.error(Te),b(!1)}})},be=async()=>{try{await C.disconnectFromStore({input:{did:e,storeId:t.id,projectId:r,storeScope:S}}),o()}catch(_){$.error(q(_))}},we=()=>{b(!0),C.publishToStore({input:{did:e,storeId:t.id,storeName:t.name,projectId:r,releaseId:n,type:l}}).then(_=>{$.success(s.jsx(ye,{storeName:c.storeName,storeUrl:c.storeUrl,developerDid:c.developerDid,published:_.url==="published"}),{duration:1e4}),a==null||a(null)}).catch(_=>{$.error(q(_)),a==null||a(_)}).finally(()=>{b(!1)})};g.useEffect(()=>{x&&b(!1)},[x]);const Re=g.useMemo(()=>!(y&&Et.isInServerlessMode(w)),[y,w]);return s.jsxs("div",{className:m.box,children:[!T&&p&&s.jsx(O,{sx:{marginRight:2},size:16}),s.jsxs("div",{className:m.menuName,children:[s.jsx(N,{sx:{display:"flex",flexDirection:"row"},children:s.jsx(E,{component:"span",className:m.title,variant:"subtitle1",children:t.name})}),s.jsx(E,{className:m.url,component:"span",variant:"inherit",children:`${t.url}`})]}),s.jsxs("div",{className:m.actions,children:[c&&s.jsx(Wt,{placement:"top",title:s.jsxs(N,{children:[s.jsx(E,{component:"span",variant:"caption",sx:{opacity:.7},children:j("blocklet.publish.developerInfo")}),s.jsxs(N,{sx:{display:"flex",flexDirection:"row",alignItems:"center",gap:1,mt:1},children:[s.jsx(U,{connectedStore:c,sx:{width:42,height:42}}),s.jsxs(N,{sx:{flex:1},children:[s.jsx(E,{component:"span",variant:"subtitle1",children:c.developerName}),s.jsx(Je,{size:14,copyable:!0,compact:!0,responsive:!1,did:c.developerDid})]})]})]}),children:s.jsx("div",{children:s.jsx(U,{connectedStore:c,sx:{marginRight:1,cursor:"help"}})})}),T&&s.jsxs(se,{disabled:p,variant:"outlined",sx:{height:38},size:"small",children:[!x&&s.jsxs(D,{sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130},onClick:Ce,children:[p?s.jsx(O,{sx:{marginRight:1},size:16}):s.jsx(ge,{sx:{marginRight:1}}),j("common.connect")]}),x&&d&&s.jsxs(D,{disabled:!0,sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130},children:[p?s.jsx(O,{sx:{marginRight:1},size:16}):s.jsx(We,{sx:{marginRight:1}}),j("common.uploaded")]}),x&&!d&&s.jsxs(D,{sx:{paddingLeft:2,paddingRight:2,fontSize:15,width:130},onClick:we,children:[p?s.jsx(O,{sx:{marginRight:1},size:16}):s.jsx(xe,{sx:{marginRight:1,fontSize:20}}),j("common.upload")]}),s.jsx(Z,{projectId:r,connectedStore:c,store:t,onDelete:o,teamDid:e,onDisconnect:be})]}),!T&&s.jsxs(se,{disabled:p,variant:"outlined",sx:{height:36},size:"small",children:[s.jsx(D,{"data-cy":"store-open-url",onClick:P,children:s.jsx(ue,{sx:{zoom:.9}})}),!t.protected&&Re&&s.jsx(A,{store:t,onDelete:o,teamDid:e,scope:""})]})]})]})}Se.propTypes={kind:i.string,teamDid:i.string.isRequired,published:i.bool,connectedStore:i.shape({storeName:i.string,storeId:i.string,storeUrl:i.string,developerDid:i.string,developerName:i.string}),projectId:i.string,releaseId:i.string,releaseType:i.string,store:i.shape({id:i.string.isRequired,name:i.string.isRequired,url:i.string.isRequired,protected:i.bool,connected:i.bool}).isRequired,scope:i.string,onDelete:i.func,onPublish:i.func,onOpenConnectStore:i.func,behavior:i.string,onSelectConnectStore:i.func};Se.defaultProps={kind:"store",published:!1,connectedStore:null,releaseId:"",projectId:"",releaseType:"",scope:"",behavior:je.CONNECT,onPublish:()=>{},onDelete:()=>{},onOpenConnectStore:()=>{},onSelectConnectStore:()=>{}};export{he as A,X as C,Se as S,ye as U,Bt as c,G as m,Et as s,Ut as u};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-BxKrUgd9.js";import{S as t}from"./studio-BdIpZDRv.js";import"./index-CYQV6023.js";import"./Menu-CkD81HZ5.js";import"./Toolbar-Ba22YRhW.js";import"./Hidden-B_FCIv2F.js";import"./fallback-CTOpqcoo.js";function a(){return o.jsx(t,{children:"Coming soon..."})}export{a as default};