@abtnode/blocklet-services 1.16.34-beta-20241204-140321-4d75ca21 → 1.16.34-beta-20241206-124652-493dbc39

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 (303) hide show
  1. package/api/libs/connect/session.js +4 -4
  2. package/api/libs/open-graph/index.js +1 -1
  3. package/api/middlewares/check-federated.js +157 -0
  4. package/api/routes/blocklet.js +19 -13
  5. package/api/routes/federated.js +529 -573
  6. package/api/routes/oauth.js +38 -55
  7. package/api/routes/user-session.js +239 -214
  8. package/api/routes/user.js +52 -45
  9. package/api/services/auth/connect/invite.js +1 -1
  10. package/api/services/auth/connect/issue-passport.js +1 -1
  11. package/api/services/auth/session.js +31 -9
  12. package/api/util/attach-shared-utils.js +6 -6
  13. package/api/util/federated.js +28 -72
  14. package/dist/assets/Add-Dr8htRSM.js +1 -0
  15. package/dist/assets/{Alert-XwCbbCdw.js → Alert-gRD_jJCj.js} +1 -1
  16. package/dist/assets/ArrowDropDown-DI04xnPr.js +1 -0
  17. package/dist/assets/{Autocomplete-CtKfl8OV.js → Autocomplete-DPolRnqk.js} +1 -1
  18. package/dist/assets/{Avatar-BuTYVz6S.js → Avatar-D6TPuXUP.js} +1 -1
  19. package/dist/assets/{ButtonGroup-9mTO_MUt.js → ButtonGroup-BcLw8gsE.js} +1 -1
  20. package/dist/assets/{CSSTransition-VPmtoKE7.js → CSSTransition-DdlHGsuR.js} +1 -1
  21. package/dist/assets/CheckCircle-BPxn_ieu.js +1 -0
  22. package/dist/assets/ChevronLeft-5FOp5_pf.js +1 -0
  23. package/dist/assets/ChevronRight-PVflalU6.js +1 -0
  24. package/dist/assets/Delete-CaO8fR6N.js +1 -0
  25. package/dist/assets/DeleteOutline-PIJBVOmm.js +1 -0
  26. package/dist/assets/{DialogContentText-BSTFqlB8.js → DialogContentText-BvYfkPC9.js} +1 -1
  27. package/dist/assets/Done-Cqnr64ll.js +1 -0
  28. package/dist/assets/Download-Bv95-VOA.js +1 -0
  29. package/dist/assets/{EditIcon-D5uy6dXe.js → EditIcon-B2INxzak.js} +1 -1
  30. package/dist/assets/Error-vrb7fyQU.js +1 -0
  31. package/dist/assets/ExpandMore-B3TZX84r.js +1 -0
  32. package/dist/assets/{FormControl-D9UzJGr3.js → FormControl-BlJhfvE4.js} +1 -1
  33. package/dist/assets/{FormControlLabel-Ka9Y3VW4.js → FormControlLabel-DUahNTJi.js} +1 -1
  34. package/dist/assets/FormGroup-BhKveWGx.js +1 -0
  35. package/dist/assets/{Google-fmIzZ4SE.js → Google-2VzbESXy.js} +1 -1
  36. package/dist/assets/{Grid-CLg9BKgo.js → Grid-HlOuSRmU.js} +1 -1
  37. package/dist/assets/HelpOutline-pRqeT6i_.js +1 -0
  38. package/dist/assets/{Hidden-B_FCIv2F.js → Hidden-BIaa-blE.js} +1 -1
  39. package/dist/assets/InfoOutlined-CvA_NzdD.js +1 -0
  40. package/dist/assets/InputAdornment-mbNfreso.js +1 -0
  41. package/dist/assets/{LastPage-BNIPjfIv.js → LastPage-BI2XzpBc.js} +1 -1
  42. package/dist/assets/Launch-DIHn67BI.js +1 -0
  43. package/dist/assets/LaunchOutlined-DBAHz0tb.js +1 -0
  44. package/dist/assets/{Link-Dgz_hg-A.js → Link-SvE6tGEV.js} +1 -1
  45. package/dist/assets/{ListItemButton-COVroopz.js → ListItemButton-DRswm1pu.js} +1 -1
  46. package/dist/assets/{ListSubheader-DoFPqSxT.js → ListSubheader-Cedlz0t5.js} +1 -1
  47. package/dist/assets/{LoadingButton-Cpsng3ic.js → LoadingButton-1nXdJV1_.js} +1 -1
  48. package/dist/assets/{LockIcon-xMd6TgDT.js → LockIcon-BlUU7Km8.js} +1 -1
  49. package/dist/assets/Loop-Do-1bTcZ.js +1 -0
  50. package/dist/assets/MarkEmailRead-DJzwbP2x.js +1 -0
  51. package/dist/assets/Menu-4JehMzAB.js +1 -0
  52. package/dist/assets/MoreHoriz-BiDBSm9w.js +1 -0
  53. package/dist/assets/MoreVert-BHPy5yQk.js +1 -0
  54. package/dist/assets/OpenInNew-Ox-Wg6B7.js +1 -0
  55. package/dist/assets/{Pagination-BdODbVsE.js → Pagination-DtmO1FEC.js} +1 -1
  56. package/dist/assets/PlayArrow-D8oFKkOl.js +1 -0
  57. package/dist/assets/{QuestionMarkCircle-CeLvEIhA.js → QuestionMarkCircle-CRCb7vLB.js} +1 -1
  58. package/dist/assets/RadioGroup-CAeo2G7k.js +1 -0
  59. package/dist/assets/Search-B4FkzoeR.js +1 -0
  60. package/dist/assets/{Select-BM5xijW7.js → Select-pOhG5uV8.js} +2 -2
  61. package/dist/assets/{ServerLogo-CocwN-L6.js → ServerLogo-C3qS1K9u.js} +1 -1
  62. package/dist/assets/{Skeleton-BQ4gLbdR.js → Skeleton-XhcFgkuH.js} +3 -3
  63. package/dist/assets/Stack-BGVSv0bm.js +1 -0
  64. package/dist/assets/{Stepper-DPFFvB9h.js → Stepper-1oUkII92.js} +1 -1
  65. package/dist/assets/{TextField-CFRK87D0.js → TextField-BYIMGo2O.js} +1 -1
  66. package/dist/assets/{Toolbar-Ba22YRhW.js → Toolbar-MXTUjpSN.js} +1 -1
  67. package/dist/assets/ViewColumn-Dl8WBRoz.js +1 -0
  68. package/dist/assets/ViewList-Dw7InfFl.js +1 -0
  69. package/dist/assets/_createAggregator-CF3Ywu_Z.js +1 -0
  70. package/dist/assets/access-control-CPDqmVDW.js +13 -0
  71. package/dist/assets/{actions-R7d7-bh3.js → actions-DB6zFAt9.js} +1 -1
  72. package/dist/assets/{add-component-core-qARkFBQB.js → add-component-core-DpqYAR-R.js} +11 -11
  73. package/dist/assets/add-resource-BY7yN1M7.js +1 -0
  74. package/dist/assets/{addon-BJli1WRW.js → addon-cSEDcT4t.js} +1 -1
  75. package/dist/assets/{analytics-B3iUwhYK.js → analytics-CObVf_QD.js} +8 -8
  76. package/dist/assets/api-SlMwqh4b.js +1 -0
  77. package/dist/assets/{ar-7AvHBDLJ.js → ar-BENken66.js} +1 -1
  78. package/dist/assets/audit-logs-BMMQleD-.js +58 -0
  79. package/dist/assets/{base32-Mo2B3fHT.js → base32-Cky7ZH4x.js} +1 -1
  80. package/dist/assets/{branding-BThKyvoW.js → branding-DD9lnLdg.js} +2 -2
  81. package/dist/assets/bundle-avatar-D1CsKnAr.js +1 -0
  82. package/dist/assets/{button-eTEsJSJ0.js → button-C2skqS2y.js} +1 -1
  83. package/dist/assets/{click-to-copy-CkFI8a1W.js → click-to-copy-B_U6uers.js} +1 -1
  84. package/dist/assets/complete-Cm1aTSRB.js +45 -0
  85. package/dist/assets/{component-kGv-hUvT.js → component-CU-7h3yK.js} +2 -2
  86. package/dist/assets/{config-BVYueZpV.js → config-CKVwTxh4.js} +2 -2
  87. package/dist/assets/config-GyMHYuIo.js +1 -0
  88. package/dist/assets/{config-navigation-NUbYVs4N.js → config-navigation-DqtZRu1x.js} +1 -1
  89. package/dist/assets/config-space-xHVn7Zw_.js +1 -0
  90. package/dist/assets/{confirm-CIF7Vu-X.js → confirm-BYGcMOdN.js} +1 -1
  91. package/dist/assets/{connect-Dj-BrpmM.js → connect-7KX0ip82.js} +1 -1
  92. package/dist/assets/connect-Cjg3Lm4D.js +1 -0
  93. package/dist/assets/connect-to-BWP8Cqu6.js +1 -0
  94. package/dist/assets/{content-layout-DSpN7kL2.js → content-layout-8jsNhe-5.js} +1 -1
  95. package/dist/assets/dashboard-BZreJCiA.js +165 -0
  96. package/dist/assets/{de-S6ufmRx0.js → de-C8d8saMJ.js} +1 -1
  97. package/dist/assets/{deprecate-W6wP2f1U.js → deprecate-Bj3Q5Wi_.js} +1 -1
  98. package/dist/assets/{did-address-DpP51eII.js → did-address-7Sb16VSB.js} +1 -1
  99. package/dist/assets/domain-D-DYyZbR.js +9 -0
  100. package/dist/assets/domain-list-p_9GKY-M.js +15 -0
  101. package/dist/assets/email-Canxuwlg.js +18 -0
  102. package/dist/assets/emotion-cache.browser.esm-DRs-CTgF.js +1 -0
  103. package/dist/assets/{es-Sth9cv6C.js → es-8ZzWXB3U.js} +1 -1
  104. package/dist/assets/exchange-passport-Dv2bo20G.js +1 -0
  105. package/dist/assets/{fallback-CTOpqcoo.js → fallback-BlcEp1VL.js} +1 -1
  106. package/dist/assets/form-text-input-D26GlKxQ.js +11 -0
  107. package/dist/assets/{format-error-jTY-wvGv.js → format-error-Dk89U0uh.js} +2 -2
  108. package/dist/assets/{fr-BX6bo8e1.js → fr-CDmTLuDM.js} +1 -1
  109. package/dist/assets/{fuel-Dx06V-YR.js → fuel-DeEVMoW6.js} +1 -1
  110. package/dist/assets/{fullpage-Dz8PPWdq.js → fullpage-CFHcuwWr.js} +1 -1
  111. package/dist/assets/{hi-pYobKga6.js → hi-DfYUKMCb.js} +1 -1
  112. package/dist/assets/{home-BCoo1Guo.js → home-D7XPwTjK.js} +1 -1
  113. package/dist/assets/{id-Xei40tOm.js → id-BeY7iur-.js} +1 -1
  114. package/dist/assets/{iframe-GN8AUKA4.js → iframe-tSt_So8C.js} +1 -1
  115. package/dist/assets/{index-delqLXRr.js → index-3lBO8ivG.js} +8 -8
  116. package/dist/assets/{index-BXHMtAUn.js → index-6dmWRa5a.js} +2 -2
  117. package/dist/assets/{index-rA_BKM5G.js → index-B6vN1Pjj.js} +3 -3
  118. package/dist/assets/{index-W2CQmt_X.js → index-BaYuwQfE.js} +1 -1
  119. package/dist/assets/index-BilCISvf.js +1 -0
  120. package/dist/assets/{index-B_EeAcSB.js → index-Bk-KtZtw.js} +1 -1
  121. package/dist/assets/index-C-OENO3T.js +16 -0
  122. package/dist/assets/{index-Db_Y81_-.js → index-C56N3wab.js} +2 -2
  123. package/dist/assets/{index-CG1XIXZC.js → index-C89kYDNU.js} +1 -1
  124. package/dist/assets/{index-B3Z8DzsY.js → index-CNE2uXX8.js} +6 -6
  125. package/dist/assets/index-CPFKRWiW.js +316 -0
  126. package/dist/assets/{index-COdSzYad.js → index-CQuGc78Y.js} +2 -2
  127. package/dist/assets/{index-cIe0Ged1.js → index-CswkYvFG.js} +1 -1
  128. package/dist/assets/index-CuJzImxJ.js +1 -0
  129. package/dist/assets/index-CwEyBOgW.js +4 -0
  130. package/dist/assets/{index-CjkNshyI.js → index-D-G-CrJO.js} +1 -1
  131. package/dist/assets/{index-8OiEpVkg.js → index-D0CXo93j.js} +1 -1
  132. package/dist/assets/{index-UEoZJA9L.js → index-D2m633vu.js} +1 -1
  133. package/dist/assets/index-DQjLOWie.js +5 -0
  134. package/dist/assets/{index-CYQV6023.js → index-DbUU7z6J.js} +11 -11
  135. package/dist/assets/{index-B019qXp1.js → index-DcWx2h61.js} +1 -1
  136. package/dist/assets/{index-B3pPqycI.js → index-DfQHFN6t.js} +1 -1
  137. package/dist/assets/{index-ZPFypmuO.js → index-DsLePqKc.js} +1 -1
  138. package/dist/assets/{index-DgonWrzm.js → index-DsZCBFlr.js} +9 -9
  139. package/dist/assets/{index-BxKrUgd9.js → index-DtdETaBU.js} +70 -70
  140. package/dist/assets/{index-yi-655mj.js → index-EWrqmue5.js} +1 -1
  141. package/dist/assets/{index-BjfhU-QW.js → index-Ed6XamYf.js} +1 -1
  142. package/dist/assets/{index-BzVm0XuZ.js → index-I4Wjjc9p.js} +1 -1
  143. package/dist/assets/index-K-RQRB6f.js +1 -0
  144. package/dist/assets/{index-q1m8Euwz.js → index-Qbrukcer.js} +1 -1
  145. package/dist/assets/index-fU8Snm90.js +102 -0
  146. package/dist/assets/{index-Bs9TLgSC.js → index-hcyZSWah.js} +2 -2
  147. package/dist/assets/index-tap0PKb5.js +29 -0
  148. package/dist/assets/{index-BP0LEaeg.js → index-vQSgatpS.js} +8 -8
  149. package/dist/assets/{index-BidszMO2.js → index-vRY4Eqk5.js} +39 -39
  150. package/dist/assets/{invitation-BPrK4inJ.js → invitation-BTS9OmKY.js} +5 -5
  151. package/dist/assets/invite-DdlZu1iK.js +5 -0
  152. package/dist/assets/{isEmail-BnC4loew.js → isEmail-CmNEnnPO.js} +1 -1
  153. package/dist/assets/issue-passport-BOYK0sdW.js +1 -0
  154. package/dist/assets/item-DiOlNyoQ.js +1 -0
  155. package/dist/assets/{ja-DG0a06x8.js → ja-DvJTZg_Q.js} +1 -1
  156. package/dist/assets/{jss-plugin-props-sort.esm-Bp0MqRVc.js → jss-plugin-props-sort.esm-B0GYUqad.js} +6 -6
  157. package/dist/assets/{ko-BBC-RcU5.js → ko-C1lnK-Gx.js} +1 -1
  158. package/dist/assets/{launch-result-message-4m30f0Ag.js → launch-result-message-CU6VqlMp.js} +1 -1
  159. package/dist/assets/{layout-Btp-_hcD.js → layout-BLLz87sa.js} +2 -2
  160. package/dist/assets/{list-header-DQEePd_T.js → list-header-XuCMCGCV.js} +1 -1
  161. package/dist/assets/localization-ClU7HEEr.js +1 -0
  162. package/dist/assets/{log-DGIf8qzM.js → log-CzdQsoGM.js} +6 -6
  163. package/dist/assets/login-DxPcP1jX.js +1 -0
  164. package/dist/assets/login-oauth-callback-6aacB0AP.js +1 -0
  165. package/dist/assets/{logo-uploader-CC8WqbW-.js → logo-uploader-FwiUnYYD.js} +4 -4
  166. package/dist/assets/lost-passport-CP1WD-6W.js +168 -0
  167. package/dist/assets/{lottie-react.esm-CtltdV0t.js → lottie-react.esm-D7IQJqb8.js} +1 -1
  168. package/dist/assets/notifications-BuECL_6T.js +65 -0
  169. package/dist/assets/open-window-Bg3rwEW-.js +1 -0
  170. package/dist/assets/overview-CjXvkE0B.js +12 -0
  171. package/dist/assets/{page-header-B5a7RE0E.js → page-header-ByFkqYoX.js} +1 -1
  172. package/dist/assets/{permission-CBfa-qlX.js → permission-DbhB5Z1v.js} +1 -1
  173. package/dist/assets/{preferences-CuRLxM0K.js → preferences-BYmMPHkz.js} +1 -1
  174. package/dist/assets/{pt-CNmFfxJU.js → pt-C86mXB8Z.js} +1 -1
  175. package/dist/assets/publish-resource-CRym3QNG.js +1 -0
  176. package/dist/assets/{raf-schd.esm-KaxPdV64.js → raf-schd.esm-B7lVwb88.js} +1 -1
  177. package/dist/assets/{react-beautiful-dnd.esm-BlBywA4z.js → react-beautiful-dnd.esm-DzxofBcj.js} +1 -1
  178. package/dist/assets/refType-C0MWXRP4.js +1 -0
  179. package/dist/assets/{resource-dialog-DpLtB_Fw.js → resource-dialog-DvLQ35FQ.js} +1 -1
  180. package/dist/assets/{ru-BVNv9w91.js → ru-Dxm-iAqn.js} +1 -1
  181. package/dist/assets/sdk-C9VDRIUH.js +1 -0
  182. package/dist/assets/{selector-Drr6pXp9.js → selector-CVbTF87I.js} +4 -4
  183. package/dist/assets/session-CfGQq4aA.js +1 -0
  184. package/dist/assets/setup-Cn5VZSrf.js +19 -0
  185. package/dist/assets/{shorten-label-DK0L2sJV.js → shorten-label-DkBNZBHq.js} +1 -1
  186. package/dist/assets/simple-select-Dar19mu0.js +1 -0
  187. package/dist/assets/{slicedToArray-n9LJBwV4.js → slicedToArray-Bh7YTn9v.js} +2 -2
  188. package/dist/assets/start-BeQmK9fc.js +187 -0
  189. package/dist/assets/{step-actions-D_1mpc4C.js → step-actions-DauWsHJ8.js} +2 -2
  190. package/dist/assets/studio-DsQEpBvk.js +6 -0
  191. package/dist/assets/{switch-control-2C3bwebR.js → switch-control-Dsh5_EeP.js} +1 -1
  192. package/dist/assets/{th-CObnQ6OH.js → th-BamIf1b8.js} +1 -1
  193. package/dist/assets/{toUpper-DtTJYJCz.js → toUpper-BzsouAll.js} +1 -1
  194. package/dist/assets/transfer-DaiNG55d.js +16 -0
  195. package/dist/assets/trim-BSxRkodT.js +1 -0
  196. package/dist/assets/uniqBy-DdK7WB2a.js +1 -0
  197. package/dist/assets/unsubscribe-QZHXePvC.js +1 -0
  198. package/dist/assets/{url-join-aL0dlRwK.js → url-join-Bz42DLTX.js} +1 -1
  199. package/dist/assets/{use-mobile-TJQ6s1hH.js → use-mobile-BORWdgFu.js} +1 -1
  200. package/dist/assets/{use-mobile-D7IK9xm6.js → use-mobile-BnLttn6s.js} +1 -1
  201. package/dist/assets/{useAsync-B5aCa8BU.js → useAsync-XGhszTqi.js} +1 -1
  202. package/dist/assets/{useFormControl-De83T2k8.js → useFormControl-CUbdx--c.js} +1 -1
  203. package/dist/assets/{useLocalStorage-Cg4UWbtJ.js → useLocalStorage-CQGh5cLr.js} +1 -1
  204. package/dist/assets/{useSetState-C5EefhmT.js → useSetState-DJ05e857.js} +1 -1
  205. package/dist/assets/useSlot-DcPzSHnC.js +1 -0
  206. package/dist/assets/{useSlotProps-9EZsnKiK.js → useSlotProps-D6DLjewQ.js} +1 -1
  207. package/dist/assets/{useThemeProps-DFbMvLjq.js → useThemeProps-D4tucCRV.js} +1 -1
  208. package/dist/assets/user-center-BA6Kltkg.js +1 -0
  209. package/dist/assets/user-sessions-DvMYo49k.js +1 -0
  210. package/dist/assets/util-CEeqN3nG.js +1 -0
  211. package/dist/assets/{vi-DPE1cpvE.js → vi-CTEgHnG8.js} +1 -1
  212. package/dist/assets/wrap-locale-Ce8iB_Ha.js +1 -0
  213. package/dist/assets/{zh-ZJh718gR.js → zh-C9pcKSvk.js} +1 -1
  214. package/dist/assets/{zh-tw-q3KEUdcz.js → zh-tw-CuhSzmQN.js} +1 -1
  215. package/dist/images/splash-landscape.png +0 -0
  216. package/dist/images/splash-portrait.png +0 -0
  217. package/dist/index.html +1 -1
  218. package/dist/service-worker.js +1 -1
  219. package/package.json +38 -37
  220. package/api/middlewares/verify-federated-call.js +0 -36
  221. package/dist/assets/Add-DtejxYv7.js +0 -1
  222. package/dist/assets/ArrowDropDown-DLu5ghJ6.js +0 -1
  223. package/dist/assets/CheckCircle-BvTAg_Vb.js +0 -1
  224. package/dist/assets/ChevronLeft-CogeEPev.js +0 -1
  225. package/dist/assets/ChevronRight-BATWClLP.js +0 -1
  226. package/dist/assets/Delete-BvK_hDyw.js +0 -1
  227. package/dist/assets/DeleteOutline-CFkN2u6G.js +0 -1
  228. package/dist/assets/Done-BCayGyaP.js +0 -1
  229. package/dist/assets/Download-3v1IPpRg.js +0 -1
  230. package/dist/assets/Error-KMHXOqQS.js +0 -1
  231. package/dist/assets/ExpandMore-XeiYcXA0.js +0 -1
  232. package/dist/assets/FormGroup-BqZ71koG.js +0 -1
  233. package/dist/assets/HelpOutline-D-mVzldg.js +0 -1
  234. package/dist/assets/InfoOutlined-fhivWooJ.js +0 -1
  235. package/dist/assets/InputAdornment-7bcT-OxU.js +0 -1
  236. package/dist/assets/Launch-B6-uAhbQ.js +0 -1
  237. package/dist/assets/LaunchOutlined-BEenLVbN.js +0 -1
  238. package/dist/assets/Loop-tJ6uJkRI.js +0 -1
  239. package/dist/assets/MarkEmailRead-BNHtpgz2.js +0 -1
  240. package/dist/assets/Menu-CkD81HZ5.js +0 -1
  241. package/dist/assets/MoreHoriz-qqmi4YRC.js +0 -1
  242. package/dist/assets/MoreVert-BZZ4IBOf.js +0 -1
  243. package/dist/assets/OpenInNew-C5XvRsRC.js +0 -1
  244. package/dist/assets/PlayArrow-Cn0cfGNW.js +0 -1
  245. package/dist/assets/RadioGroup-CkuUb_-r.js +0 -1
  246. package/dist/assets/Search-DXRr3XZy.js +0 -1
  247. package/dist/assets/Stack-690-8aHU.js +0 -1
  248. package/dist/assets/ViewColumn-GTnSFOFd.js +0 -1
  249. package/dist/assets/ViewList-BtVWmZJ0.js +0 -1
  250. package/dist/assets/_createAggregator-Ct5VkIH5.js +0 -1
  251. package/dist/assets/access-control-BmMbklSe.js +0 -13
  252. package/dist/assets/add-resource-lnxpvPO7.js +0 -1
  253. package/dist/assets/api-lbSHYKYc.js +0 -1
  254. package/dist/assets/audit-logs-0TJ_0Mvw.js +0 -58
  255. package/dist/assets/bundle-avatar-CcIs5XOV.js +0 -1
  256. package/dist/assets/complete-Bb-6z_26.js +0 -45
  257. package/dist/assets/config-kysZ8p5u.js +0 -1
  258. package/dist/assets/config-space-BPpdFWKx.js +0 -1
  259. package/dist/assets/connect-DPIWGg69.js +0 -1
  260. package/dist/assets/connect-to-ZJr8_Nq9.js +0 -1
  261. package/dist/assets/dashboard-BUsMb2Wm.js +0 -165
  262. package/dist/assets/domain-CcBPnmmR.js +0 -9
  263. package/dist/assets/domain-list-CVn1TPCl.js +0 -15
  264. package/dist/assets/email-DETfN-BC.js +0 -18
  265. package/dist/assets/emotion-cache.browser.esm-DkJEKl9I.js +0 -1
  266. package/dist/assets/exchange-passport-BetHiKY_.js +0 -1
  267. package/dist/assets/form-text-input-BUB_rL9o.js +0 -11
  268. package/dist/assets/index-4RJk4AiM.js +0 -1
  269. package/dist/assets/index-B2fUK0Jg.js +0 -16
  270. package/dist/assets/index-BArNVkrG.js +0 -1
  271. package/dist/assets/index-BDxuBkP1.js +0 -29
  272. package/dist/assets/index-CQSz6hXt.js +0 -316
  273. package/dist/assets/index-CRK13xk6.js +0 -102
  274. package/dist/assets/index-D_g2YpF8.js +0 -1
  275. package/dist/assets/index-De1VedzO.js +0 -5
  276. package/dist/assets/index-PD8enw5a.js +0 -4
  277. package/dist/assets/invite-VzUmhGJg.js +0 -5
  278. package/dist/assets/issue-passport-573OuQnm.js +0 -1
  279. package/dist/assets/item-BoFU04RW.js +0 -1
  280. package/dist/assets/localization-BJhiRnk-.js +0 -1
  281. package/dist/assets/login-Cu5oiCaE.js +0 -1
  282. package/dist/assets/login-oauth-callback-Dim9h4c3.js +0 -1
  283. package/dist/assets/lost-passport-D_HnDqKr.js +0 -168
  284. package/dist/assets/notifications-tGIsoEd6.js +0 -65
  285. package/dist/assets/open-window-CmBy5HkH.js +0 -1
  286. package/dist/assets/overview-CmwcUtDq.js +0 -12
  287. package/dist/assets/publish-resource-aoq2ZIeT.js +0 -1
  288. package/dist/assets/refType-CNi4gHMp.js +0 -1
  289. package/dist/assets/sdk-CrAhZvgC.js +0 -1
  290. package/dist/assets/session-BGDxwrDP.js +0 -1
  291. package/dist/assets/setup-cPNeqLVK.js +0 -19
  292. package/dist/assets/simple-select-CHsQAOYZ.js +0 -1
  293. package/dist/assets/start-CcvndivR.js +0 -187
  294. package/dist/assets/studio-BdIpZDRv.js +0 -6
  295. package/dist/assets/transfer-BNPHc5-e.js +0 -16
  296. package/dist/assets/trim-Boaje3e9.js +0 -1
  297. package/dist/assets/uniqBy-B2B_OSuq.js +0 -1
  298. package/dist/assets/unsubscribe-eud8OqTh.js +0 -1
  299. package/dist/assets/useSlot-DebDFCUQ.js +0 -1
  300. package/dist/assets/user-center-BWtnQHWR.js +0 -1
  301. package/dist/assets/user-sessions-DTvyZm5S.js +0 -1
  302. package/dist/assets/util-BBKZBp8H.js +0 -1
  303. package/dist/assets/wrap-locale-Ci8gmRb6.js +0 -1
@@ -1,4 +1,4 @@
1
- var ft=Object.defineProperty;var dt=(e,n,t)=>n in e?ft(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var D=(e,n,t)=>dt(e,typeof n!="symbol"?n+"":n,t);import{P as f,r as P,Q as ht,l as pt,j as g,aE as gt,bD as ye,bo as mt,bp as yt,di as bt,ak as xt,bC as A,bm as wt,B as It,dj as St,T as vt,dk as Tt,dl as Ct,a3 as At,dm as jt,bA as Ne,u as Fe,aF as Pt,f as kt,E as Lt,ae as Mt}from"./index-BxKrUgd9.js";import{D as Et}from"./index-CYQV6023.js";import{L as Ot}from"./MoreVert-BZZ4IBOf.js";import{L as Rt}from"./ListItemButton-COVroopz.js";import{L as _t}from"./selector-Drr6pXp9.js";/**
1
+ var ft=Object.defineProperty;var dt=(e,n,t)=>n in e?ft(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var D=(e,n,t)=>dt(e,typeof n!="symbol"?n+"":n,t);import{P as f,r as P,J as ht,l as pt,j as g,aI as gt,bH as ye,bs as mt,bt as yt,dl as bt,ao as xt,bG as A,bq as wt,B as It,dm as St,T as vt,dn as Tt,dp as Ct,a7 as At,dq as jt,bE as Ne,u as Fe,aJ as Pt,f as kt,G as Lt,ai as Mt}from"./index-DtdETaBU.js";import{D as Et}from"./index-DbUU7z6J.js";import{L as Ot}from"./MoreVert-BHPy5yQk.js";import{L as Rt}from"./ListItemButton-DRswm1pu.js";import{L as qt}from"./selector-CVbTF87I.js";/**
2
2
  * (c) Iconify
3
3
  *
4
4
  * For the full copyright and license information, please view the license.txt
@@ -8,4 +8,4 @@ var ft=Object.defineProperty;var dt=(e,n,t)=>n in e?ft(e,n,{enumerable:!0,config
8
8
  *
9
9
  * @license MIT
10
10
  * @version 1.0.8
11
- */const ze=Object.freeze({left:0,top:0,width:16,height:16}),V=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),F=Object.freeze({...ze,...V}),te=Object.freeze({...F,body:"",hidden:!1}),qt=Object.freeze({width:null,height:null}),He=Object.freeze({...qt,...V});function Nt(e,n=0){const t=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(t===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(t!==e){let o=0;switch(t){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-t.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return n}const Ft=/[\s,]+/;function zt(e,n){n.split(Ft).forEach(t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const Be={...He,preserveAspectRatio:""};function be(e){const n={...Be},t=(r,o)=>e.getAttribute(r)||o;return n.width=t("width",null),n.height=t("height",null),n.rotate=Nt(t("rotate","")),zt(n,t("flip","")),n.preserveAspectRatio=t("preserveAspectRatio",t("preserveaspectratio","")),n}function Ht(e,n){for(const t in Be)if(e[t]!==n[t])return!0;return!1}const O=/^[a-z0-9]+(-[a-z0-9]+)*$/,z=(e,n,t,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),l={provider:o.length>0?o[0]:r,prefix:c,name:a};return n&&!U(l)?null:l}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return n&&!U(a)?null:a}if(t&&r===""){const a={provider:r,prefix:"",name:s};return n&&!U(a,t)?null:a}return null},U=(e,n)=>e?!!((e.provider===""||e.provider.match(O))&&(n&&e.prefix===""||e.prefix.match(O))&&e.name.match(O)):!1;function Bt(e,n){const t={};!e.hFlip!=!n.hFlip&&(t.hFlip=!0),!e.vFlip!=!n.vFlip&&(t.vFlip=!0);const r=((e.rotate||0)+(n.rotate||0))%4;return r&&(t.rotate=r),t}function xe(e,n){const t=Bt(e,n);for(const r in te)r in V?r in e&&!(r in t)&&(t[r]=V[r]):r in n?t[r]=n[r]:r in e&&(t[r]=e[r]);return t}function Dt(e,n){const t=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(t[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=r[i]&&r[i].parent,c=a&&s(a);c&&(o[i]=[a].concat(c))}return o[i]}return Object.keys(t).concat(Object.keys(r)).forEach(s),o}function $t(e,n,t){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=xe(r[a]||o[a],s)}return i(n),t.forEach(i),xe(e,s)}function De(e,n){const t=[];if(typeof e!="object"||typeof e.icons!="object")return t;e.not_found instanceof Array&&e.not_found.forEach(o=>{n(o,null),t.push(o)});const r=Dt(e);for(const o in r){const s=r[o];s&&(n(o,$t(e,o,s)),t.push(o))}return t}const Ut={provider:"",aliases:{},not_found:{},...ze};function X(e,n){for(const t in n)if(t in e&&typeof e[t]!=typeof n[t])return!1;return!0}function $e(e){if(typeof e!="object"||e===null)return null;const n=e;if(typeof n.prefix!="string"||!e.icons||typeof e.icons!="object"||!X(e,Ut))return null;const t=n.icons;for(const o in t){const s=t[o];if(!o.match(O)||typeof s.body!="string"||!X(s,te))return null}const r=n.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(O)||typeof i!="string"||!t[i]&&!r[i]||!X(s,te))return null}return n}const W=Object.create(null);function Qt(e,n){return{provider:e,prefix:n,icons:Object.create(null),missing:new Set}}function L(e,n){const t=W[e]||(W[e]=Object.create(null));return t[n]||(t[n]=Qt(e,n))}function ue(e,n){return $e(n)?De(n,(t,r)=>{r?e.icons[t]=r:e.missing.add(t)}):[]}function Vt(e,n,t){try{if(typeof t.body=="string")return e.icons[n]={...t},!0}catch{}return!1}function Wt(e,n){let t=[];return(typeof e=="string"?[e]:Object.keys(W)).forEach(o=>{(typeof o=="string"&&typeof n=="string"?[n]:Object.keys(W[o]||{})).forEach(i=>{const a=L(o,i);t=t.concat(Object.keys(a.icons).map(c=>(o!==""?"@"+o+":":"")+i+":"+c))})}),t}let _=!1;function Ue(e){return typeof e=="boolean"&&(_=e),_}function q(e){const n=typeof e=="string"?z(e,!0,_):e;if(n){const t=L(n.provider,n.prefix),r=n.name;return t.icons[r]||(t.missing.has(r)?null:void 0)}}function Qe(e,n){const t=z(e,!0,_);if(!t)return!1;const r=L(t.provider,t.prefix);return Vt(r,t.name,n)}function we(e,n){if(typeof e!="object")return!1;if(typeof n!="string"&&(n=e.provider||""),_&&!n&&!e.prefix){let o=!1;return $e(e)&&(e.prefix="",De(e,(s,i)=>{i&&Qe(s,i)&&(o=!0)})),o}const t=e.prefix;if(!U({provider:n,prefix:t,name:"a"}))return!1;const r=L(n,t);return!!ue(r,e)}function Zt(e){return!!q(e)}function Gt(e){const n=q(e);return n?{...F,...n}:null}function Jt(e){const n={loaded:[],missing:[],pending:[]},t=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,a=o.name,c=t[s]||(t[s]=Object.create(null)),l=c[i]||(c[i]=L(s,i));let u;a in l.icons?u=n.loaded:i===""||l.missing.has(a)?u=n.missing:u=n.pending;const d={provider:s,prefix:i,name:a};u.push(d)}),n}function Ve(e,n){e.forEach(t=>{const r=t.loaderCallbacks;r&&(t.loaderCallbacks=r.filter(o=>o.id!==n))})}function Xt(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const n=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!n.length)return;let t=!1;const r=e.provider,o=e.prefix;n.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const l=c.name;if(e.icons[l])i.loaded.push({provider:r,prefix:o,name:l});else if(e.missing.has(l))i.missing.push({provider:r,prefix:o,name:l});else return t=!0,!0;return!1}),i.pending.length!==a&&(t||Ve([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Yt=0;function Kt(e,n,t){const r=Yt++,o=Ve.bind(null,t,r);if(!n.pending.length)return o;const s={id:r,icons:n,callback:e,abort:o};return t.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}const ne=Object.create(null);function Ie(e,n){ne[e]=n}function oe(e){return ne[e]||ne[""]}function en(e,n=!0,t=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?z(o,n,t):o;s&&r.push(s)}),r}var tn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function nn(e,n,t,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let h=e.resources.slice(0);for(i=[];h.length>1;){const S=Math.floor(Math.random()*h.length);i.push(h[S]),h=h.slice(0,S).concat(h.slice(S+1))}i=i.concat(h)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let c="pending",l=0,u,d=null,p=[],m=[];typeof r=="function"&&m.push(r);function b(){d&&(clearTimeout(d),d=null)}function x(){c==="pending"&&(c="aborted"),b(),p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function T(h,S){S&&(m=[]),typeof h=="function"&&m.push(h)}function j(){return{startTime:a,payload:n,status:c,queriesSent:l,queriesPending:p.length,subscribe:T,abort:x}}function I(){c="failed",m.forEach(h=>{h(void 0,u)})}function y(){p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function B(h,S,k){const w=S!=="success";switch(p=p.filter(C=>C!==h),c){case"pending":break;case"failed":if(w||!e.dataAfterTimeout)return;break;default:return}if(S==="abort"){u=k,I();return}if(w){u=k,p.length||(i.length?v():I());return}if(b(),y(),!e.random){const C=e.resources.indexOf(h.resource);C!==-1&&C!==e.index&&(e.index=C)}c="completed",m.forEach(C=>{C(k)})}function v(){if(c!=="pending")return;b();const h=i.shift();if(h===void 0){if(p.length){d=setTimeout(()=>{b(),c==="pending"&&(y(),I())},e.timeout);return}I();return}const S={status:"pending",resource:h,callback:(k,w)=>{B(S,k,w)}};p.push(S),l++,d=setTimeout(v,e.rotate),t(h,n,S.callback)}return setTimeout(v),j}function We(e){const n={...tn,...e};let t=[];function r(){t=t.filter(a=>a().status==="pending")}function o(a,c,l){const u=nn(n,a,c,(d,p)=>{r(),l&&l(d,p)});return t.push(u),u}function s(a){return t.find(c=>a(c))||null}return{query:o,find:s,setIndex:a=>{n.index=a},getIndex:()=>n.index,cleanup:r}}function fe(e){let n;if(typeof e.resources=="string")n=[e.resources];else if(n=e.resources,!(n instanceof Array)||!n.length)return null;return{resources:n,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const G=Object.create(null),E=["https://api.simplesvg.com","https://api.unisvg.com"],Q=[];for(;E.length>0;)E.length===1||Math.random()>.5?Q.push(E.shift()):Q.push(E.pop());G[""]=fe({resources:["https://api.iconify.design"].concat(Q)});function Se(e,n){const t=fe(n);return t===null?!1:(G[e]=t,!0)}function J(e){return G[e]}function on(){return Object.keys(G)}function ve(){}const Y=Object.create(null);function rn(e){if(!Y[e]){const n=J(e);if(!n)return;const t=We(n),r={config:n,redundancy:t};Y[e]=r}return Y[e]}function Ze(e,n,t){let r,o;if(typeof e=="string"){const s=oe(e);if(!s)return t(void 0,424),ve;o=s.send;const i=rn(e);i&&(r=i.redundancy)}else{const s=fe(e);if(s){r=We(s);const i=e.resources?e.resources[0]:"",a=oe(i);a&&(o=a.send)}}return!r||!o?(t(void 0,424),ve):r.query(n,o,t)().abort}const Te="iconify2",N="iconify",Ge=N+"-count",Ce=N+"-version",Je=36e5,sn=168;function re(e,n){try{return e.getItem(n)}catch{}}function de(e,n,t){try{return e.setItem(n,t),!0}catch{}}function Ae(e,n){try{e.removeItem(n)}catch{}}function se(e,n){return de(e,Ge,n.toString())}function ie(e){return parseInt(re(e,Ge))||0}const M={local:!0,session:!0},Xe={local:new Set,session:new Set};let he=!1;function cn(e){he=e}let $=typeof window>"u"?{}:window;function Ye(e){const n=e+"Storage";try{if($&&$[n]&&typeof $[n].length=="number")return $[n]}catch{}M[e]=!1}function Ke(e,n){const t=Ye(e);if(!t)return;const r=re(t,Ce);if(r!==Te){if(r){const a=ie(t);for(let c=0;c<a;c++)Ae(t,N+c.toString())}de(t,Ce,Te),se(t,0);return}const o=Math.floor(Date.now()/Je)-sn,s=a=>{const c=N+a.toString(),l=re(t,c);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&n(u,a))return!0}catch{}Ae(t,c)}};let i=ie(t);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,se(t,i)):Xe[e].add(a))}function et(){if(!he){cn(!0);for(const e in M)Ke(e,n=>{const t=n.data,r=n.provider,o=t.prefix,s=L(r,o);if(!ue(s,t).length)return!1;const i=t.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function an(e,n){const t=e.lastModifiedCached;if(t&&t>=n)return t===n;if(e.lastModifiedCached=n,t)for(const r in M)Ke(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===n});return!0}function ln(e,n){he||et();function t(r){let o;if(!M[r]||!(o=Ye(r)))return;const s=Xe[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=ie(o),!se(o,i+1))return;const a={cached:Math.floor(Date.now()/Je),provider:e.provider,data:n};return de(o,N+i.toString(),JSON.stringify(a))}n.lastModified&&!an(e,n.lastModified)||Object.keys(n.icons).length&&(n.not_found&&(n=Object.assign({},n),delete n.not_found),t("local")||t("session"))}function je(){}function un(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Xt(e)}))}function fn(e,n){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(n).sort():e.iconsToLoad=n,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=oe(t)))return;s.prepare(t,r,o).forEach(a=>{Ze(t,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{e.missing.add(l)});else try{const l=ue(e,c);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(d=>{u.delete(d)}),ln(e,c)}catch(l){console.error(l)}un(e)})})}))}const pe=(e,n)=>{const t=en(e,!0,Ue()),r=Jt(t);if(!r.pending.length){let c=!0;return n&&setTimeout(()=>{c&&n(r.loaded,r.missing,r.pending,je)}),()=>{c=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(c=>{const{provider:l,prefix:u}=c;if(u===a&&l===i)return;i=l,a=u,s.push(L(l,u));const d=o[l]||(o[l]=Object.create(null));d[u]||(d[u]=[])}),r.pending.forEach(c=>{const{provider:l,prefix:u,name:d}=c,p=L(l,u),m=p.pendingIcons||(p.pendingIcons=new Set);m.has(d)||(m.add(d),o[l][u].push(d))}),s.forEach(c=>{const{provider:l,prefix:u}=c;o[l][u].length&&fn(c,o[l][u])}),n?Kt(n,r,s):je},dn=e=>new Promise((n,t)=>{const r=typeof e=="string"?z(e,!0):e;if(!r){t(e);return}pe([r||e],o=>{if(o.length&&r){const s=q(r);if(s){n({...F,...s});return}}t(e)})});function hn(e){try{const n=typeof e=="string"?JSON.parse(e):e;if(typeof n.body=="string")return{...n}}catch{}}function pn(e,n){const t=typeof e=="string"?z(e,!0,!0):null;if(!t){const s=hn(e);return{value:e,data:s}}const r=q(t);if(r!==void 0||!t.prefix)return{value:e,name:t,data:r};const o=pe([t],()=>n(e,t,q(t)));return{value:e,name:t,loading:o}}function K(e){return e.hasAttribute("inline")}let tt=!1;try{tt=navigator.vendor.indexOf("Apple")===0}catch{}function gn(e,n){switch(n){case"svg":case"bg":case"mask":return n}return n!=="style"&&(tt||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const mn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,yn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ce(e,n,t){if(n===1)return e;if(t=t||100,typeof e=="number")return Math.ceil(e*n*t)/t;if(typeof e!="string")return e;const r=e.split(mn);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=yn.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*n*t)/t)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const bn=e=>e==="unset"||e==="undefined"||e==="none";function nt(e,n){const t={...F,...e},r={...He,...n},o={left:t.left,top:t.top,width:t.width,height:t.height};let s=t.body;[t,r].forEach(b=>{const x=[],T=b.hFlip,j=b.vFlip;let I=b.rotate;T?j?I+=2:(x.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),x.push("scale(-1 1)"),o.top=o.left=0):j&&(x.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),x.push("scale(1 -1)"),o.top=o.left=0);let y;switch(I<0&&(I-=Math.floor(I/4)*4),I=I%4,I){case 1:y=o.height/2+o.top,x.unshift("rotate(90 "+y.toString()+" "+y.toString()+")");break;case 2:x.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:y=o.width/2+o.left,x.unshift("rotate(-90 "+y.toString()+" "+y.toString()+")");break}I%2===1&&(o.left!==o.top&&(y=o.left,o.left=o.top,o.top=y),o.width!==o.height&&(y=o.width,o.width=o.height,o.height=y)),x.length&&(s='<g transform="'+x.join(" ")+'">'+s+"</g>")});const i=r.width,a=r.height,c=o.width,l=o.height;let u,d;i===null?(d=a===null?"1em":a==="auto"?l:a,u=ce(d,c/l)):(u=i==="auto"?c:i,d=a===null?ce(u,l/c):a==="auto"?l:a);const p={},m=(b,x)=>{bn(x)||(p[b]=x.toString())};return m("width",u),m("height",d),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+l.toString(),{attributes:p,body:s}}const xn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Z=xn();function wn(e){Z=e}function In(){return Z}function Sn(e,n){const t=J(e);if(!t)return 0;let r;if(!t.maxURL)r=0;else{let o=0;t.resources.forEach(i=>{o=Math.max(o,i.length)});const s=n+".json?icons=";r=t.maxURL-o-t.path.length-s.length}return r}function vn(e){return e===404}const Tn=(e,n,t)=>{const r=[],o=Sn(e,n),s="icons";let i={type:s,provider:e,prefix:n,icons:[]},a=0;return t.forEach((c,l)=>{a+=c.length+1,a>=o&&l>0&&(r.push(i),i={type:s,provider:e,prefix:n,icons:[]},a=c.length),i.icons.push(c)}),r.push(i),r};function Cn(e){if(typeof e=="string"){const n=J(e);if(n)return n.path}return"/"}const An=(e,n,t)=>{if(!Z){t("abort",424);return}let r=Cn(n.provider);switch(n.type){case"icons":{const s=n.prefix,a=n.icons.join(","),c=new URLSearchParams({icons:a});r+=s+".json?"+c.toString();break}case"custom":{const s=n.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:t("abort",400);return}let o=503;Z(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{t(vn(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?t("abort",s):t("next",o)});return}setTimeout(()=>{t("success",s)})}).catch(()=>{t("next",o)})},jn={prepare:Tn,send:An};function Pe(e,n){switch(e){case"local":case"session":M[e]=n;break;case"all":for(const t in M)M[t]=n;break}}const ee="data-style";let ot="";function Pn(e){ot=e}function ke(e,n){let t=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(ee));t||(t=document.createElement("style"),t.setAttribute(ee,ee),e.appendChild(t)),t.textContent=":host{display:inline-block;vertical-align:"+(n?"-0.125em":"0")+"}span,svg{display:block}"+ot}function rt(){Ie("",jn),Ue(!0);let e;try{e=window}catch{}if(e){if(et(),e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!we(o))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const r in t){const o="IconifyProviders["+r+"] is invalid.";try{const s=t[r];if(typeof s!="object"||!s||s.resources===void 0)continue;Se(r,s)||console.error(o)}catch{console.error(o)}}}}return{enableCache:t=>Pe(t,!0),disableCache:t=>Pe(t,!1),iconExists:Zt,getIcon:Gt,listIcons:Wt,addIcon:Qe,addCollection:we,calculateSize:ce,buildIcon:nt,loadIcons:pe,loadIcon:dn,addAPIProvider:Se,appendCustomStyle:Pn,_api:{getAPIConfig:J,setAPIModule:Ie,sendAPIQuery:Ze,setFetch:wn,getFetch:In,listAPIProviders:on}}}function st(e,n){let t=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in n)t+=" "+r+'="'+n[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+t+">"+e+"</svg>"}function kn(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ln(e){return"data:image/svg+xml,"+kn(e)}function Mn(e){return'url("'+Ln(e)+'")'}const ae={"background-color":"currentColor"},it={"background-color":"transparent"},Le={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Me={"-webkit-mask":ae,mask:ae,background:it};for(const e in Me){const n=Me[e];for(const t in Le)n[e+"-"+t]=Le[t]}function Ee(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function En(e,n,t){const r=document.createElement("span");let o=e.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const s=e.attributes,i=st(o,{...s,width:n.width+"",height:n.height+""}),a=Mn(i),c=r.style,l={"--svg":a,width:Ee(s.width),height:Ee(s.height),...t?ae:it};for(const u in l)c.setProperty(u,l[u]);return r}let R;function On(){try{R=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{R=null}}function Rn(e){return R===void 0&&On(),R?R.createHTML(e):e}function _n(e){const n=document.createElement("span"),t=e.attributes;let r="";t.width||(r="width: inherit;"),t.height||(r+="height: inherit;"),r&&(t.style=r);const o=st(e.body,t);return n.innerHTML=Rn(o),n.firstChild}function Oe(e,n){const t=n.icon.data,r=n.customisations,o=nt(t,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const s=n.renderedMode;let i;switch(s){case"svg":i=_n(o);break;default:i=En(o,{...F,...t},s==="mask")}const a=Array.from(e.childNodes).find(c=>{const l=c.tagName&&c.tagName.toUpperCase();return l==="SPAN"||l==="SVG"});a?i.tagName==="SPAN"&&a.tagName===i.tagName?a.setAttribute("style",i.getAttribute("style")):e.replaceChild(i,a):e.appendChild(i)}function Re(e,n,t){const r=t&&(t.rendered?t:t.lastRender);return{rendered:!1,inline:n,icon:e,lastRender:r}}function qn(e="iconify-icon"){let n,t;try{n=window.customElements,t=window.HTMLElement}catch{return}if(!n||!t)return;const r=n.get(e);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],s=class extends t{constructor(){super();D(this,"_shadowRoot");D(this,"_state");D(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),l=K(this);ke(c,l),this._state=Re({value:""},l),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const l=K(this),u=this._state;l!==u.inline&&(u.inline=l,ke(this._shadowRoot,l))}else this._queueCheck()}get icon(){const c=this.getAttribute("icon");if(c&&c.slice(0,1)==="{")try{return JSON.parse(c)}catch{}return c}set icon(c){typeof c=="object"&&(c=JSON.stringify(c)),this.setAttribute("icon",c)}get inline(){return K(this)}set inline(c){c?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const c=this._state;if(c.rendered){const l=this._shadowRoot;if(c.renderedMode==="svg")try{l.lastChild.setCurrentTime(0);return}catch{}Oe(l,c)}}get status(){const c=this._state;return c.rendered?"rendered":c.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const c=this._state,l=this.getAttribute("icon");if(l!==c.icon.value){this._iconChanged(l);return}if(!c.rendered)return;const u=this.getAttribute("mode"),d=be(this);(c.attrMode!==u||Ht(c.customisations,d))&&this._renderIcon(c.icon,d,u)}_iconChanged(c){const l=pn(c,(u,d,p)=>{const m=this._state;if(m.rendered||this.getAttribute("icon")!==u)return;const b={value:u,name:d,data:p};b.data?this._gotIconData(b):m.icon=b});l.data?this._gotIconData(l):this._state=Re(l,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,be(this),this.getAttribute("mode"))}_renderIcon(c,l,u){const d=gn(c.data.body,u),p=this._state.inline;Oe(this._shadowRoot,this._state={rendered:!0,icon:c,inline:p,customisations:l,attrMode:u,renderedMode:d})}};o.forEach(a=>{a in s.prototype||Object.defineProperty(s.prototype,a,{get:function(){return this.getAttribute(a)},set:function(c){c!==null?this.setAttribute(a,c):this.removeAttribute(a)}})});const i=rt();for(const a in i)s[a]=s.prototype[a]=i[a];return n.define(e,s),s}qn()||rt();const Nn=f.shape({appLogo:f.node,appName:f.string,theme:f.shape({background:f.string}),enableConnect:f.bool,enableLocale:f.bool,navigation:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object]),icon:f.string,items:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object])}))}))}),ct=f.shape({showText:f.bool,showRole:f.bool,switchDid:f.bool,switchProfile:f.bool,switchPassport:f.bool,disableLogout:f.bool,onLogin:f.func,onLogout:f.func,onSwitchDid:f.func,onSwitchProfile:f.func,onSwitchPassport:f.func,menu:f.array,menuRender:f.func,dark:f.bool,size:f.number}),H=(e,n,t="children")=>e.map(r=>Array.isArray(r[t])?n({...r,[t]:H(r[t],n,t)}):n(r)),Fn=(e,n="children")=>{const t=[];return H(e,r=>t.push(r),n),t},ge=(e,n,t="children")=>e.map(r=>({...r})).filter(r=>{const o=r[t];if(Array.isArray(o)){const i=ge(o,n,t);r[t]=i!=null&&i.length?i:void 0}const s={filteredChildren:r[t],isLeaf:!(o!=null&&o.length)};return n(r,s)}),zn=e=>/^https?:\/\//.test(e),Hn=e=>{if(!e||!(e!=null&&e.startsWith("/")))return!1;const n=o=>o.endsWith("/")?o:`${o}/`,t=n(window.location.pathname),r=n(new URL(e,window.location.origin).pathname);return t.startsWith(r)},Bn=(e=[])=>{const n=e.map((r,o)=>({path:r,index:o})).filter(r=>Hn(r.path));return n!=null&&n.length?n.slice(1).reduce((r,o)=>r.path.length>=o.path.length?r:o,n[0]).index:-1};var _e,qe;const le=((_e=window==null?void 0:window.blocklet)==null?void 0:_e.groupPrefix)||((qe=window==null?void 0:window.blocklet)==null?void 0:qe.prefix)||"/",Dn=e=>{const n={...e},t=e==null?void 0:e.background;return typeof t=="string"?n.background={header:t,footer:t,default:t}:t&&typeof t=="object"&&(n.background={header:t.header||t.default,footer:t.footer||t.default,default:t.default}),n},at=(e,n="en")=>{if(!(e!=null&&e.length))return e;const t=(o,s)=>typeof o=="string"?o:typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o,r=(o,s)=>{if(typeof o=="string"){if(zn(o)){const a=new URL(o);return a.searchParams.set("locale",s),a.href}const i=new URL(o,window.location.origin);return i.searchParams.set("locale",s),i.pathname+i.search}return typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o};return H(e,o=>{var s;return{...o,title:t(o.title,n),link:(s=o.items)!=null&&s.length?o.link:r(o.link,n),_rawLink:o.link}},"items")},$n=e=>H(e,n=>n.role?{...n,role:Array.isArray(n.role)?n.role:[n.role]}:n,"items"),Un=e=>{if(!(e!=null&&e.length))return null;const n=$n(e),t={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return n.forEach(r=>{var o;r.section?Array.isArray(r.section)?r.section.forEach(s=>{var i;(i=t[s])==null||i.push(r)}):typeof r.section=="string"&&((o=t[r.section])==null||o.push(r)):t.header.push(r)}),t},Qn=e=>{if(!e)return null;const n={...e};return n.theme=Dn(n.theme),n.navigation=Un(Vn(n.navigation)),n},Vn=(e=[])=>ge(e,(n,t)=>{var r;return!!n.link||((r=t.filteredChildren)==null?void 0:r.length)},"items"),lt=(e,n)=>ge(e,(t,r)=>{var s;const o=!t.role||n&&(t.role.includes(n)||t.role.includes("guest"));return r.isLeaf?o:o&&((s=r.filteredChildren)==null?void 0:s.length)},"items"),Wn={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},Zn={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function Gn({session:e,locale:n="zh",size:t=24}){const r=(window==null?void 0:window.blocklet)||{},o=(r.navigation||[]).filter(c=>c.section==="sessionManager"&&!["/sessionManager"].includes(c.id)).filter(c=>{var l;return!!((c==null?void 0:c.role)||[]).includes(((l=e==null?void 0:e.user)==null?void 0:l.role)||"guest")}).map(c=>{const l=((r==null?void 0:r.componentMountPoints)||[]).find(u=>c.component===u.name);return{...c,component:l}}),s=P.useRef(null),i=ht({open:!1}),a=pt((c=!i.open)=>{i.open=c});return o.length===0||!(e!=null&&e.user)?null:g.jsxs(g.Fragment,{children:[g.jsx(gt,{size:"medium",ref:s,onClick:()=>a(),children:g.jsx(ye,{icon:Wn,fontSize:t,style:{transform:"scale(1.08)"}})}),g.jsx(mt,{open:i.open,anchorEl:s.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:c})=>g.jsx(yt,{onClickAway:l=>{l.preventDefault(),l.stopPropagation(),a(!1)},children:g.jsx(bt,{...c,timeout:350,children:g.jsxs(xt,{variant:"outlined",sx:{borderRadius:3,width:350,maxWidth:"90vw",borderColor:A.lineStep,p:2,border:"0 !important",boxShadow:`0px 8px 16px 0px ${A.gray6}, 0px 0px 0px 1px ${A.gray6}`},children:[g.jsx(wt,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:o.map(l=>{var u;return g.jsx(Ot,{disablePadding:!0,children:g.jsxs(Rt,{href:l.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:A.surfacePrimarySubtitle}},children:[(u=l==null?void 0:l.component)!=null&&u.did?g.jsx(It,{component:"img",src:`${St}/blocklet/logo-bundle/${l.component.did}`,sx:{borderRadius:2,width:50,height:50,objectFit:"contain"},alt:"SessionBlocklet component icon"}):g.jsx(ye,{fontSize:50,icon:l.icon||Zn,color:A.textSubtitle}),g.jsx(vt,{sx:{fontSize:"12px",color:A.textBase,textAlign:"center",lineHeight:"normal"},children:Tt(l.title,n)})]})},l.id)})}),g.jsx(Ct,{session:e,children:g.jsx(At,{variant:"outlined",fullWidth:!0,href:jt,sx:{mt:1,borderRadius:2,color:A.textBase,borderColor:A.lineBorderStrong,"&:hover":{color:A.primaryBase,borderColor:A.primaryBase}},children:n==="zh"?"管理":"Manage"})})]})})})})]})}function me({formattedBlocklet:e,addons:n,sessionManagerProps:t}){var p,m,b,x;const r=P.useContext(Ne),{locale:o}=Fe()||{},{enableConnect:s=!0,enableLocale:i=!0}=e,a=!!((p=r==null?void 0:r.session)!=null&&p.user);let c=at((m=e==null?void 0:e.navigation)==null?void 0:m.sessionManager,o)||[];c=lt(c,(x=(b=r==null?void 0:r.session)==null?void 0:b.user)==null?void 0:x.role);const u=(()=>{if(n&&typeof n!="function")return Array.isArray(n)?n:[n];let T=[];if(i&&o&&T.push(g.jsx(_t,{showText:!1},"locale-selector")),s&&r){const j=[];a&&(c?c.slice(0,5):[]).forEach(y=>{j.push({label:y.title,icon:y.icon?g.jsx("iconify-icon",{icon:y.icon,height:24,style:{marginRight:8}}):null,component:"a",href:y.link,key:y.link})}),T.push(g.jsx(Gn,{session:r.session,locale:o},"session-blocklet")),T.push(g.jsx(Pt,{session:r.session,locale:o,menu:j,showRole:!0,...t},"session-user"))}return typeof n=="function"&&(T=n(T)||[]),T})();return P.createElement(g.Fragment,null,...Array.isArray(u)?u:[u])}me.propTypes={formattedBlocklet:f.object.isRequired,addons:f.oneOfType([f.func,f.node]),sessionManagerProps:ct};me.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const Jn=()=>{const e=kt();P.useEffect(()=>{e.wallet&&Lt.call("arcHideTopBar","{}")},[e])};function ut({meta:e,fallbackUrl:n,invalidPathFallback:t,headerAddons:r,sessionManagerProps:o,links:s,...i}){var B;Jn();const a=P.useContext(Ne),c=(B=a==null?void 0:a.session)==null?void 0:B.user,l=c==null?void 0:c.role,{locale:u}=Fe()||{},d=P.useMemo(()=>{const v=Object.assign({},window.blocklet,e);try{return Qn(v)}catch(h){return console.error("Failed to format blocklet info",h,v),v}},[e]),{localizedNav:p,flattened:m,matchedIndex:b}=P.useMemo(()=>{var k;let v=at((k=d==null?void 0:d.navigation)==null?void 0:k.dashboard,u)||[];v=lt(v,l),v=H(v,w=>{let C=null;return w.icon&&(w.icon.startsWith("http")||w.icon.startsWith("data:")?C=g.jsx(Mt,{src:w.icon}):C=g.jsx("iconify-icon",{height:"100%",width:"100%",icon:w.icon})),{title:w.title,url:w.link,icon:C,external:!0,children:w.items}},"items");const h=Fn(v).filter(w=>!!w.url),S=Bn(h.map(w=>w.url));return S!==-1&&(h[S].active=!0),{localizedNav:v,flattened:h,matchedIndex:S}},[d,u,l]),x=typeof s=="function"?s(p):[...p,...s];if(P.useLayoutEffect(()=>{c&&!(m!=null&&m.length)&&n&&(window.location.href=n)},[n]),P.useLayoutEffect(()=>{c&&(m!=null&&m.length)&&b===-1&&t&&t()},[t,m,b]),!d.appName)return null;const{appLogo:T,appLogoRect:j,appName:I}=d,y=g.jsx(me,{formattedBlocklet:d,addons:r,sessionManagerProps:o});return g.jsx(Et,{title:I,fullWidth:!0,sidebarWidth:128,legacy:!1,links:x,...i,headerProps:{homeLink:le,logo:g.jsx("img",{src:j||T,alt:"logo"}),addons:y,...i.headerProps}})}ut.propTypes={meta:Nn,fallbackUrl:f.string,invalidPathFallback:f.func,headerAddons:f.oneOfType([f.func,f.node]),sessionManagerProps:ct,links:f.oneOfType([f.array,f.func])};ut.defaultProps={meta:{},fallbackUrl:le,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=le}},links:[]};export{Nn as B,ut as D,me as H,Fn as a,Bn as b,Qn as f,at as g,zn as i,H as m,le as p,Jn as u};
11
+ */const He=Object.freeze({left:0,top:0,width:16,height:16}),V=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),F=Object.freeze({...He,...V}),te=Object.freeze({...F,body:"",hidden:!1}),_t=Object.freeze({width:null,height:null}),ze=Object.freeze({..._t,...V});function Nt(e,n=0){const t=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(t===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(t!==e){let o=0;switch(t){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-t.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return n}const Ft=/[\s,]+/;function Ht(e,n){n.split(Ft).forEach(t=>{switch(t.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const Be={...ze,preserveAspectRatio:""};function be(e){const n={...Be},t=(r,o)=>e.getAttribute(r)||o;return n.width=t("width",null),n.height=t("height",null),n.rotate=Nt(t("rotate","")),Ht(n,t("flip","")),n.preserveAspectRatio=t("preserveAspectRatio",t("preserveaspectratio","")),n}function zt(e,n){for(const t in Be)if(e[t]!==n[t])return!0;return!1}const O=/^[a-z0-9]+(-[a-z0-9]+)*$/,H=(e,n,t,r="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),l={provider:o.length>0?o[0]:r,prefix:c,name:a};return n&&!U(l)?null:l}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return n&&!U(a)?null:a}if(t&&r===""){const a={provider:r,prefix:"",name:s};return n&&!U(a,t)?null:a}return null},U=(e,n)=>e?!!((e.provider===""||e.provider.match(O))&&(n&&e.prefix===""||e.prefix.match(O))&&e.name.match(O)):!1;function Bt(e,n){const t={};!e.hFlip!=!n.hFlip&&(t.hFlip=!0),!e.vFlip!=!n.vFlip&&(t.vFlip=!0);const r=((e.rotate||0)+(n.rotate||0))%4;return r&&(t.rotate=r),t}function xe(e,n){const t=Bt(e,n);for(const r in te)r in V?r in e&&!(r in t)&&(t[r]=V[r]):r in n?t[r]=n[r]:r in e&&(t[r]=e[r]);return t}function Dt(e,n){const t=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(t[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=r[i]&&r[i].parent,c=a&&s(a);c&&(o[i]=[a].concat(c))}return o[i]}return Object.keys(t).concat(Object.keys(r)).forEach(s),o}function $t(e,n,t){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=xe(r[a]||o[a],s)}return i(n),t.forEach(i),xe(e,s)}function De(e,n){const t=[];if(typeof e!="object"||typeof e.icons!="object")return t;e.not_found instanceof Array&&e.not_found.forEach(o=>{n(o,null),t.push(o)});const r=Dt(e);for(const o in r){const s=r[o];s&&(n(o,$t(e,o,s)),t.push(o))}return t}const Ut={provider:"",aliases:{},not_found:{},...He};function X(e,n){for(const t in n)if(t in e&&typeof e[t]!=typeof n[t])return!1;return!0}function $e(e){if(typeof e!="object"||e===null)return null;const n=e;if(typeof n.prefix!="string"||!e.icons||typeof e.icons!="object"||!X(e,Ut))return null;const t=n.icons;for(const o in t){const s=t[o];if(!o.match(O)||typeof s.body!="string"||!X(s,te))return null}const r=n.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(O)||typeof i!="string"||!t[i]&&!r[i]||!X(s,te))return null}return n}const W=Object.create(null);function Qt(e,n){return{provider:e,prefix:n,icons:Object.create(null),missing:new Set}}function L(e,n){const t=W[e]||(W[e]=Object.create(null));return t[n]||(t[n]=Qt(e,n))}function ue(e,n){return $e(n)?De(n,(t,r)=>{r?e.icons[t]=r:e.missing.add(t)}):[]}function Vt(e,n,t){try{if(typeof t.body=="string")return e.icons[n]={...t},!0}catch{}return!1}function Wt(e,n){let t=[];return(typeof e=="string"?[e]:Object.keys(W)).forEach(o=>{(typeof o=="string"&&typeof n=="string"?[n]:Object.keys(W[o]||{})).forEach(i=>{const a=L(o,i);t=t.concat(Object.keys(a.icons).map(c=>(o!==""?"@"+o+":":"")+i+":"+c))})}),t}let q=!1;function Ue(e){return typeof e=="boolean"&&(q=e),q}function _(e){const n=typeof e=="string"?H(e,!0,q):e;if(n){const t=L(n.provider,n.prefix),r=n.name;return t.icons[r]||(t.missing.has(r)?null:void 0)}}function Qe(e,n){const t=H(e,!0,q);if(!t)return!1;const r=L(t.provider,t.prefix);return Vt(r,t.name,n)}function we(e,n){if(typeof e!="object")return!1;if(typeof n!="string"&&(n=e.provider||""),q&&!n&&!e.prefix){let o=!1;return $e(e)&&(e.prefix="",De(e,(s,i)=>{i&&Qe(s,i)&&(o=!0)})),o}const t=e.prefix;if(!U({provider:n,prefix:t,name:"a"}))return!1;const r=L(n,t);return!!ue(r,e)}function Zt(e){return!!_(e)}function Gt(e){const n=_(e);return n?{...F,...n}:null}function Jt(e){const n={loaded:[],missing:[],pending:[]},t=Object.create(null);e.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return e.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,a=o.name,c=t[s]||(t[s]=Object.create(null)),l=c[i]||(c[i]=L(s,i));let u;a in l.icons?u=n.loaded:i===""||l.missing.has(a)?u=n.missing:u=n.pending;const d={provider:s,prefix:i,name:a};u.push(d)}),n}function Ve(e,n){e.forEach(t=>{const r=t.loaderCallbacks;r&&(t.loaderCallbacks=r.filter(o=>o.id!==n))})}function Xt(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const n=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!n.length)return;let t=!1;const r=e.provider,o=e.prefix;n.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const l=c.name;if(e.icons[l])i.loaded.push({provider:r,prefix:o,name:l});else if(e.missing.has(l))i.missing.push({provider:r,prefix:o,name:l});else return t=!0,!0;return!1}),i.pending.length!==a&&(t||Ve([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Yt=0;function Kt(e,n,t){const r=Yt++,o=Ve.bind(null,t,r);if(!n.pending.length)return o;const s={id:r,icons:n,callback:e,abort:o};return t.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}const ne=Object.create(null);function Ie(e,n){ne[e]=n}function oe(e){return ne[e]||ne[""]}function en(e,n=!0,t=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?H(o,n,t):o;s&&r.push(s)}),r}var tn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function nn(e,n,t,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let h=e.resources.slice(0);for(i=[];h.length>1;){const S=Math.floor(Math.random()*h.length);i.push(h[S]),h=h.slice(0,S).concat(h.slice(S+1))}i=i.concat(h)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let c="pending",l=0,u,d=null,p=[],m=[];typeof r=="function"&&m.push(r);function b(){d&&(clearTimeout(d),d=null)}function x(){c==="pending"&&(c="aborted"),b(),p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function T(h,S){S&&(m=[]),typeof h=="function"&&m.push(h)}function j(){return{startTime:a,payload:n,status:c,queriesSent:l,queriesPending:p.length,subscribe:T,abort:x}}function I(){c="failed",m.forEach(h=>{h(void 0,u)})}function y(){p.forEach(h=>{h.status==="pending"&&(h.status="aborted")}),p=[]}function B(h,S,k){const w=S!=="success";switch(p=p.filter(C=>C!==h),c){case"pending":break;case"failed":if(w||!e.dataAfterTimeout)return;break;default:return}if(S==="abort"){u=k,I();return}if(w){u=k,p.length||(i.length?v():I());return}if(b(),y(),!e.random){const C=e.resources.indexOf(h.resource);C!==-1&&C!==e.index&&(e.index=C)}c="completed",m.forEach(C=>{C(k)})}function v(){if(c!=="pending")return;b();const h=i.shift();if(h===void 0){if(p.length){d=setTimeout(()=>{b(),c==="pending"&&(y(),I())},e.timeout);return}I();return}const S={status:"pending",resource:h,callback:(k,w)=>{B(S,k,w)}};p.push(S),l++,d=setTimeout(v,e.rotate),t(h,n,S.callback)}return setTimeout(v),j}function We(e){const n={...tn,...e};let t=[];function r(){t=t.filter(a=>a().status==="pending")}function o(a,c,l){const u=nn(n,a,c,(d,p)=>{r(),l&&l(d,p)});return t.push(u),u}function s(a){return t.find(c=>a(c))||null}return{query:o,find:s,setIndex:a=>{n.index=a},getIndex:()=>n.index,cleanup:r}}function fe(e){let n;if(typeof e.resources=="string")n=[e.resources];else if(n=e.resources,!(n instanceof Array)||!n.length)return null;return{resources:n,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const G=Object.create(null),E=["https://api.simplesvg.com","https://api.unisvg.com"],Q=[];for(;E.length>0;)E.length===1||Math.random()>.5?Q.push(E.shift()):Q.push(E.pop());G[""]=fe({resources:["https://api.iconify.design"].concat(Q)});function Se(e,n){const t=fe(n);return t===null?!1:(G[e]=t,!0)}function J(e){return G[e]}function on(){return Object.keys(G)}function ve(){}const Y=Object.create(null);function rn(e){if(!Y[e]){const n=J(e);if(!n)return;const t=We(n),r={config:n,redundancy:t};Y[e]=r}return Y[e]}function Ze(e,n,t){let r,o;if(typeof e=="string"){const s=oe(e);if(!s)return t(void 0,424),ve;o=s.send;const i=rn(e);i&&(r=i.redundancy)}else{const s=fe(e);if(s){r=We(s);const i=e.resources?e.resources[0]:"",a=oe(i);a&&(o=a.send)}}return!r||!o?(t(void 0,424),ve):r.query(n,o,t)().abort}const Te="iconify2",N="iconify",Ge=N+"-count",Ce=N+"-version",Je=36e5,sn=168;function re(e,n){try{return e.getItem(n)}catch{}}function de(e,n,t){try{return e.setItem(n,t),!0}catch{}}function Ae(e,n){try{e.removeItem(n)}catch{}}function se(e,n){return de(e,Ge,n.toString())}function ie(e){return parseInt(re(e,Ge))||0}const M={local:!0,session:!0},Xe={local:new Set,session:new Set};let he=!1;function cn(e){he=e}let $=typeof window>"u"?{}:window;function Ye(e){const n=e+"Storage";try{if($&&$[n]&&typeof $[n].length=="number")return $[n]}catch{}M[e]=!1}function Ke(e,n){const t=Ye(e);if(!t)return;const r=re(t,Ce);if(r!==Te){if(r){const a=ie(t);for(let c=0;c<a;c++)Ae(t,N+c.toString())}de(t,Ce,Te),se(t,0);return}const o=Math.floor(Date.now()/Je)-sn,s=a=>{const c=N+a.toString(),l=re(t,c);if(typeof l=="string"){try{const u=JSON.parse(l);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&n(u,a))return!0}catch{}Ae(t,c)}};let i=ie(t);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,se(t,i)):Xe[e].add(a))}function et(){if(!he){cn(!0);for(const e in M)Ke(e,n=>{const t=n.data,r=n.provider,o=t.prefix,s=L(r,o);if(!ue(s,t).length)return!1;const i=t.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function an(e,n){const t=e.lastModifiedCached;if(t&&t>=n)return t===n;if(e.lastModifiedCached=n,t)for(const r in M)Ke(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===n});return!0}function ln(e,n){he||et();function t(r){let o;if(!M[r]||!(o=Ye(r)))return;const s=Xe[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=ie(o),!se(o,i+1))return;const a={cached:Math.floor(Date.now()/Je),provider:e.provider,data:n};return de(o,N+i.toString(),JSON.stringify(a))}n.lastModified&&!an(e,n.lastModified)||Object.keys(n.icons).length&&(n.not_found&&(n=Object.assign({},n),delete n.not_found),t("local")||t("session"))}function je(){}function un(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Xt(e)}))}function fn(e,n){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(n).sort():e.iconsToLoad=n,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:t,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=oe(t)))return;s.prepare(t,r,o).forEach(a=>{Ze(t,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{e.missing.add(l)});else try{const l=ue(e,c);if(!l.length)return;const u=e.pendingIcons;u&&l.forEach(d=>{u.delete(d)}),ln(e,c)}catch(l){console.error(l)}un(e)})})}))}const pe=(e,n)=>{const t=en(e,!0,Ue()),r=Jt(t);if(!r.pending.length){let c=!0;return n&&setTimeout(()=>{c&&n(r.loaded,r.missing,r.pending,je)}),()=>{c=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(c=>{const{provider:l,prefix:u}=c;if(u===a&&l===i)return;i=l,a=u,s.push(L(l,u));const d=o[l]||(o[l]=Object.create(null));d[u]||(d[u]=[])}),r.pending.forEach(c=>{const{provider:l,prefix:u,name:d}=c,p=L(l,u),m=p.pendingIcons||(p.pendingIcons=new Set);m.has(d)||(m.add(d),o[l][u].push(d))}),s.forEach(c=>{const{provider:l,prefix:u}=c;o[l][u].length&&fn(c,o[l][u])}),n?Kt(n,r,s):je},dn=e=>new Promise((n,t)=>{const r=typeof e=="string"?H(e,!0):e;if(!r){t(e);return}pe([r||e],o=>{if(o.length&&r){const s=_(r);if(s){n({...F,...s});return}}t(e)})});function hn(e){try{const n=typeof e=="string"?JSON.parse(e):e;if(typeof n.body=="string")return{...n}}catch{}}function pn(e,n){const t=typeof e=="string"?H(e,!0,!0):null;if(!t){const s=hn(e);return{value:e,data:s}}const r=_(t);if(r!==void 0||!t.prefix)return{value:e,name:t,data:r};const o=pe([t],()=>n(e,t,_(t)));return{value:e,name:t,loading:o}}function K(e){return e.hasAttribute("inline")}let tt=!1;try{tt=navigator.vendor.indexOf("Apple")===0}catch{}function gn(e,n){switch(n){case"svg":case"bg":case"mask":return n}return n!=="style"&&(tt||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const mn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,yn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ce(e,n,t){if(n===1)return e;if(t=t||100,typeof e=="number")return Math.ceil(e*n*t)/t;if(typeof e!="string")return e;const r=e.split(mn);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=yn.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*n*t)/t)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const bn=e=>e==="unset"||e==="undefined"||e==="none";function nt(e,n){const t={...F,...e},r={...ze,...n},o={left:t.left,top:t.top,width:t.width,height:t.height};let s=t.body;[t,r].forEach(b=>{const x=[],T=b.hFlip,j=b.vFlip;let I=b.rotate;T?j?I+=2:(x.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),x.push("scale(-1 1)"),o.top=o.left=0):j&&(x.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),x.push("scale(1 -1)"),o.top=o.left=0);let y;switch(I<0&&(I-=Math.floor(I/4)*4),I=I%4,I){case 1:y=o.height/2+o.top,x.unshift("rotate(90 "+y.toString()+" "+y.toString()+")");break;case 2:x.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:y=o.width/2+o.left,x.unshift("rotate(-90 "+y.toString()+" "+y.toString()+")");break}I%2===1&&(o.left!==o.top&&(y=o.left,o.left=o.top,o.top=y),o.width!==o.height&&(y=o.width,o.width=o.height,o.height=y)),x.length&&(s='<g transform="'+x.join(" ")+'">'+s+"</g>")});const i=r.width,a=r.height,c=o.width,l=o.height;let u,d;i===null?(d=a===null?"1em":a==="auto"?l:a,u=ce(d,c/l)):(u=i==="auto"?c:i,d=a===null?ce(u,l/c):a==="auto"?l:a);const p={},m=(b,x)=>{bn(x)||(p[b]=x.toString())};return m("width",u),m("height",d),p.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+l.toString(),{attributes:p,body:s}}const xn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Z=xn();function wn(e){Z=e}function In(){return Z}function Sn(e,n){const t=J(e);if(!t)return 0;let r;if(!t.maxURL)r=0;else{let o=0;t.resources.forEach(i=>{o=Math.max(o,i.length)});const s=n+".json?icons=";r=t.maxURL-o-t.path.length-s.length}return r}function vn(e){return e===404}const Tn=(e,n,t)=>{const r=[],o=Sn(e,n),s="icons";let i={type:s,provider:e,prefix:n,icons:[]},a=0;return t.forEach((c,l)=>{a+=c.length+1,a>=o&&l>0&&(r.push(i),i={type:s,provider:e,prefix:n,icons:[]},a=c.length),i.icons.push(c)}),r.push(i),r};function Cn(e){if(typeof e=="string"){const n=J(e);if(n)return n.path}return"/"}const An=(e,n,t)=>{if(!Z){t("abort",424);return}let r=Cn(n.provider);switch(n.type){case"icons":{const s=n.prefix,a=n.icons.join(","),c=new URLSearchParams({icons:a});r+=s+".json?"+c.toString();break}case"custom":{const s=n.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:t("abort",400);return}let o=503;Z(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{t(vn(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?t("abort",s):t("next",o)});return}setTimeout(()=>{t("success",s)})}).catch(()=>{t("next",o)})},jn={prepare:Tn,send:An};function Pe(e,n){switch(e){case"local":case"session":M[e]=n;break;case"all":for(const t in M)M[t]=n;break}}const ee="data-style";let ot="";function Pn(e){ot=e}function ke(e,n){let t=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(ee));t||(t=document.createElement("style"),t.setAttribute(ee,ee),e.appendChild(t)),t.textContent=":host{display:inline-block;vertical-align:"+(n?"-0.125em":"0")+"}span,svg{display:block}"+ot}function rt(){Ie("",jn),Ue(!0);let e;try{e=window}catch{}if(e){if(et(),e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!we(o))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(const r in t){const o="IconifyProviders["+r+"] is invalid.";try{const s=t[r];if(typeof s!="object"||!s||s.resources===void 0)continue;Se(r,s)||console.error(o)}catch{console.error(o)}}}}return{enableCache:t=>Pe(t,!0),disableCache:t=>Pe(t,!1),iconExists:Zt,getIcon:Gt,listIcons:Wt,addIcon:Qe,addCollection:we,calculateSize:ce,buildIcon:nt,loadIcons:pe,loadIcon:dn,addAPIProvider:Se,appendCustomStyle:Pn,_api:{getAPIConfig:J,setAPIModule:Ie,sendAPIQuery:Ze,setFetch:wn,getFetch:In,listAPIProviders:on}}}function st(e,n){let t=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in n)t+=" "+r+'="'+n[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+t+">"+e+"</svg>"}function kn(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Ln(e){return"data:image/svg+xml,"+kn(e)}function Mn(e){return'url("'+Ln(e)+'")'}const ae={"background-color":"currentColor"},it={"background-color":"transparent"},Le={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Me={"-webkit-mask":ae,mask:ae,background:it};for(const e in Me){const n=Me[e];for(const t in Le)n[e+"-"+t]=Le[t]}function Ee(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function En(e,n,t){const r=document.createElement("span");let o=e.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const s=e.attributes,i=st(o,{...s,width:n.width+"",height:n.height+""}),a=Mn(i),c=r.style,l={"--svg":a,width:Ee(s.width),height:Ee(s.height),...t?ae:it};for(const u in l)c.setProperty(u,l[u]);return r}let R;function On(){try{R=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{R=null}}function Rn(e){return R===void 0&&On(),R?R.createHTML(e):e}function qn(e){const n=document.createElement("span"),t=e.attributes;let r="";t.width||(r="width: inherit;"),t.height||(r+="height: inherit;"),r&&(t.style=r);const o=st(e.body,t);return n.innerHTML=Rn(o),n.firstChild}function Oe(e,n){const t=n.icon.data,r=n.customisations,o=nt(t,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const s=n.renderedMode;let i;switch(s){case"svg":i=qn(o);break;default:i=En(o,{...F,...t},s==="mask")}const a=Array.from(e.childNodes).find(c=>{const l=c.tagName&&c.tagName.toUpperCase();return l==="SPAN"||l==="SVG"});a?i.tagName==="SPAN"&&a.tagName===i.tagName?a.setAttribute("style",i.getAttribute("style")):e.replaceChild(i,a):e.appendChild(i)}function Re(e,n,t){const r=t&&(t.rendered?t:t.lastRender);return{rendered:!1,inline:n,icon:e,lastRender:r}}function _n(e="iconify-icon"){let n,t;try{n=window.customElements,t=window.HTMLElement}catch{return}if(!n||!t)return;const r=n.get(e);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],s=class extends t{constructor(){super();D(this,"_shadowRoot");D(this,"_state");D(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),l=K(this);ke(c,l),this._state=Re({value:""},l),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const l=K(this),u=this._state;l!==u.inline&&(u.inline=l,ke(this._shadowRoot,l))}else this._queueCheck()}get icon(){const c=this.getAttribute("icon");if(c&&c.slice(0,1)==="{")try{return JSON.parse(c)}catch{}return c}set icon(c){typeof c=="object"&&(c=JSON.stringify(c)),this.setAttribute("icon",c)}get inline(){return K(this)}set inline(c){c?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const c=this._state;if(c.rendered){const l=this._shadowRoot;if(c.renderedMode==="svg")try{l.lastChild.setCurrentTime(0);return}catch{}Oe(l,c)}}get status(){const c=this._state;return c.rendered?"rendered":c.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const c=this._state,l=this.getAttribute("icon");if(l!==c.icon.value){this._iconChanged(l);return}if(!c.rendered)return;const u=this.getAttribute("mode"),d=be(this);(c.attrMode!==u||zt(c.customisations,d))&&this._renderIcon(c.icon,d,u)}_iconChanged(c){const l=pn(c,(u,d,p)=>{const m=this._state;if(m.rendered||this.getAttribute("icon")!==u)return;const b={value:u,name:d,data:p};b.data?this._gotIconData(b):m.icon=b});l.data?this._gotIconData(l):this._state=Re(l,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,be(this),this.getAttribute("mode"))}_renderIcon(c,l,u){const d=gn(c.data.body,u),p=this._state.inline;Oe(this._shadowRoot,this._state={rendered:!0,icon:c,inline:p,customisations:l,attrMode:u,renderedMode:d})}};o.forEach(a=>{a in s.prototype||Object.defineProperty(s.prototype,a,{get:function(){return this.getAttribute(a)},set:function(c){c!==null?this.setAttribute(a,c):this.removeAttribute(a)}})});const i=rt();for(const a in i)s[a]=s.prototype[a]=i[a];return n.define(e,s),s}_n()||rt();const Nn=f.shape({appLogo:f.node,appName:f.string,theme:f.shape({background:f.string}),enableConnect:f.bool,enableLocale:f.bool,navigation:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object]),icon:f.string,items:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object])}))}))}),ct=f.shape({showText:f.bool,showRole:f.bool,switchDid:f.bool,switchProfile:f.bool,switchPassport:f.bool,disableLogout:f.bool,onLogin:f.func,onLogout:f.func,onSwitchDid:f.func,onSwitchProfile:f.func,onSwitchPassport:f.func,menu:f.array,menuRender:f.func,dark:f.bool,size:f.number}),z=(e,n,t="children")=>e.map(r=>Array.isArray(r[t])?n({...r,[t]:z(r[t],n,t)}):n(r)),Fn=(e,n="children")=>{const t=[];return z(e,r=>t.push(r),n),t},ge=(e,n,t="children")=>e.map(r=>({...r})).filter(r=>{const o=r[t];if(Array.isArray(o)){const i=ge(o,n,t);r[t]=i!=null&&i.length?i:void 0}const s={filteredChildren:r[t],isLeaf:!(o!=null&&o.length)};return n(r,s)}),Hn=e=>/^https?:\/\//.test(e),zn=e=>{if(!e||!(e!=null&&e.startsWith("/")))return!1;const n=o=>o.endsWith("/")?o:`${o}/`,t=n(window.location.pathname),r=n(new URL(e,window.location.origin).pathname);return t.startsWith(r)},Bn=(e=[])=>{const n=e.map((r,o)=>({path:r,index:o})).filter(r=>zn(r.path));return n!=null&&n.length?n.slice(1).reduce((r,o)=>r.path.length>=o.path.length?r:o,n[0]).index:-1};var qe,_e;const le=((qe=window==null?void 0:window.blocklet)==null?void 0:qe.groupPrefix)||((_e=window==null?void 0:window.blocklet)==null?void 0:_e.prefix)||"/",Dn=e=>{const n={...e},t=e==null?void 0:e.background;return typeof t=="string"?n.background={header:t,footer:t,default:t}:t&&typeof t=="object"&&(n.background={header:t.header||t.default,footer:t.footer||t.default,default:t.default}),n},at=(e,n="en")=>{if(!(e!=null&&e.length))return e;const t=(o,s)=>typeof o=="string"?o:typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o,r=(o,s)=>{if(typeof o=="string"){if(Hn(o)){const a=new URL(o);return a.searchParams.set("locale",s),a.href}const i=new URL(o,window.location.origin);return i.searchParams.set("locale",s),i.pathname+i.search}return typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o};return z(e,o=>{var s;return{...o,title:t(o.title,n),link:(s=o.items)!=null&&s.length?o.link:r(o.link,n),_rawLink:o.link}},"items")},$n=e=>z(e,n=>n.role?{...n,role:Array.isArray(n.role)?n.role:[n.role]}:n,"items"),Un=e=>{if(!(e!=null&&e.length))return null;const n=$n(e),t={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return n.forEach(r=>{var o;r.section?Array.isArray(r.section)?r.section.forEach(s=>{var i;(i=t[s])==null||i.push(r)}):typeof r.section=="string"&&((o=t[r.section])==null||o.push(r)):t.header.push(r)}),t},Qn=e=>{if(!e)return null;const n={...e};return n.theme=Dn(n.theme),n.navigation=Un(Vn(n.navigation)),n},Vn=(e=[])=>ge(e,(n,t)=>{var r;return!!n.link||((r=t.filteredChildren)==null?void 0:r.length)},"items"),lt=(e,n)=>ge(e,(t,r)=>{var s;const o=!t.role||n&&(t.role.includes(n)||t.role.includes("guest"));return r.isLeaf?o:o&&((s=r.filteredChildren)==null?void 0:s.length)},"items"),Wn={top:-960,width:960,height:960,body:'<path fill="currentColor" d="M510-600v-210q0-12.75 8.625-21.375T540-840h270q12.75 0 21.375 8.625T840-810v210q0 12.75-8.625 21.375T810-570H540q-12.75 0-21.375-8.625T510-600M120-480v-330q0-12.75 8.625-21.375T150-840h270q12.75 0 21.375 8.625T450-810v330q0 12.75-8.625 21.375T420-450H150q-12.75 0-21.375-8.625T120-480m390 330v-330q0-12.75 8.625-21.375T540-510h270q12.75 0 21.375 8.625T840-480v330q0 12.75-8.625 21.375T810-120H540q-12.75 0-21.375-8.625T510-150m-390 0v-210q0-12.75 8.625-21.375T150-390h270q12.75 0 21.375 8.625T450-360v210q0 12.75-8.625 21.375T420-120H150q-12.75 0-21.375-8.625T120-150m60-360h210v-270H180zm390 330h210v-270H570zm0-450h210v-150H570zM180-180h210v-150H180zm210-150"/>'},Zn={width:24,height:24,body:'<path fill="currentColor" d="M15.95 12.3L11.7 8.05q-.15-.15-.212-.325t-.063-.375q0-.2.063-.375t.212-.325l4.25-4.25q.15-.15.325-.212t.375-.063q.2 0 .375.063t.325.212l4.25 4.25q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.25 4.25q-.15.15-.325.213t-.375.062q-.2 0-.375-.062t-.325-.213ZM3 10V4q0-.425.288-.713T4 3h6q.425 0 .713.288T11 4v6q0 .425-.288.713T10 11H4q-.425 0-.713-.288T3 10Zm10 10v-6q0-.425.288-.713T14 13h6q.425 0 .713.288T21 14v6q0 .425-.288.713T20 21h-6q-.425 0-.713-.288T13 20ZM3 20v-6q0-.425.288-.713T4 13h6q.425 0 .713.288T11 14v6q0 .425-.288.713T10 21H4q-.425 0-.713-.288T3 20ZM5 9h4V5H5v4Zm11.675 1.2L19.5 7.375L16.675 4.55L13.85 7.375l2.825 2.825ZM15 19h4v-4h-4v4ZM5 19h4v-4H5v4ZM9 9Zm4.85-1.625ZM9 15Zm6 0Z"/>'};function Gn({session:e,locale:n="zh",size:t=24}){const r=(window==null?void 0:window.blocklet)||{},o=(r.navigation||[]).filter(c=>c.section==="sessionManager"&&!["/sessionManager"].includes(c.id)).filter(c=>{var l;return!!((c==null?void 0:c.role)||[]).includes(((l=e==null?void 0:e.user)==null?void 0:l.role)||"guest")}).map(c=>{const l=((r==null?void 0:r.componentMountPoints)||[]).find(u=>c.component===u.name);return{...c,component:l}}),s=P.useRef(null),i=ht({open:!1}),a=pt((c=!i.open)=>{i.open=c});return o.length===0||!(e!=null&&e.user)?null:g.jsxs(g.Fragment,{children:[g.jsx(gt,{size:"medium",ref:s,onClick:()=>a(),children:g.jsx(ye,{icon:Wn,fontSize:t,style:{transform:"scale(1.08)"}})}),g.jsx(mt,{open:i.open,anchorEl:s.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:c})=>g.jsx(yt,{onClickAway:l=>{l.preventDefault(),l.stopPropagation(),a(!1)},children:g.jsx(bt,{...c,timeout:350,children:g.jsxs(xt,{variant:"outlined",sx:{borderRadius:3,width:350,maxWidth:"90vw",borderColor:A.lineStep,p:2,border:"0 !important",boxShadow:`0px 8px 16px 0px ${A.gray6}, 0px 0px 0px 1px ${A.gray6}`},children:[g.jsx(wt,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, 100px)",gridAutoRows:"minmax(100px, max-content)",justifyContent:"space-between",maxHeight:350,overflowY:"auto",p:0},children:o.map(l=>{var u;return g.jsx(Ot,{disablePadding:!0,children:g.jsxs(Rt,{href:l.link,sx:{p:1,display:"flex",flexDirection:"column",alignItems:"center",gap:1,width:"100%",height:"100%",borderRadius:2,"&:hover":{backgroundColor:A.surfacePrimarySubtitle}},children:[(u=l==null?void 0:l.component)!=null&&u.did?g.jsx(It,{component:"img",src:`${St}/blocklet/logo-bundle/${l.component.did}`,sx:{borderRadius:2,width:50,height:50,objectFit:"contain"},alt:"SessionBlocklet component icon"}):g.jsx(ye,{fontSize:50,icon:l.icon||Zn,color:A.textSubtitle}),g.jsx(vt,{sx:{fontSize:"12px",color:A.textBase,textAlign:"center",lineHeight:"normal"},children:Tt(l.title,n)})]})},l.id)})}),g.jsx(Ct,{session:e,children:g.jsx(At,{variant:"outlined",fullWidth:!0,href:jt,sx:{mt:1,borderRadius:2,color:A.textBase,borderColor:A.lineBorderStrong,"&:hover":{color:A.primaryBase,borderColor:A.primaryBase}},children:n==="zh"?"管理":"Manage"})})]})})})})]})}function me({formattedBlocklet:e,addons:n,sessionManagerProps:t}){var p,m,b,x;const r=P.useContext(Ne),{locale:o}=Fe()||{},{enableConnect:s=!0,enableLocale:i=!0}=e,a=!!((p=r==null?void 0:r.session)!=null&&p.user);let c=at((m=e==null?void 0:e.navigation)==null?void 0:m.sessionManager,o)||[];c=lt(c,(x=(b=r==null?void 0:r.session)==null?void 0:b.user)==null?void 0:x.role);const u=(()=>{if(n&&typeof n!="function")return Array.isArray(n)?n:[n];let T=[];if(i&&o&&T.push(g.jsx(qt,{showText:!1},"locale-selector")),s&&r){const j=[];a&&(c?c.slice(0,5):[]).forEach(y=>{j.push({label:y.title,icon:y.icon?g.jsx("iconify-icon",{icon:y.icon,height:24,style:{marginRight:8}}):null,component:"a",href:y.link,key:y.link})}),T.push(g.jsx(Gn,{session:r.session,locale:o},"session-blocklet")),T.push(g.jsx(Pt,{session:r.session,locale:o,menu:j,showRole:!0,...t},"session-user"))}return typeof n=="function"&&(T=n(T)||[]),T})();return P.createElement(g.Fragment,null,...Array.isArray(u)?u:[u])}me.propTypes={formattedBlocklet:f.object.isRequired,addons:f.oneOfType([f.func,f.node]),sessionManagerProps:ct};me.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const Jn=()=>{const e=kt();P.useEffect(()=>{e.wallet&&Lt.call("arcHideTopBar","{}")},[e])};function ut({meta:e,fallbackUrl:n,invalidPathFallback:t,headerAddons:r,sessionManagerProps:o,links:s,...i}){var B;Jn();const a=P.useContext(Ne),c=(B=a==null?void 0:a.session)==null?void 0:B.user,l=c==null?void 0:c.role,{locale:u}=Fe()||{},d=P.useMemo(()=>{const v=Object.assign({},window.blocklet,e);try{return Qn(v)}catch(h){return console.error("Failed to format blocklet info",h,v),v}},[e]),{localizedNav:p,flattened:m,matchedIndex:b}=P.useMemo(()=>{var k;let v=at((k=d==null?void 0:d.navigation)==null?void 0:k.dashboard,u)||[];v=lt(v,l),v=z(v,w=>{let C=null;return w.icon&&(w.icon.startsWith("http")||w.icon.startsWith("data:")?C=g.jsx(Mt,{src:w.icon}):C=g.jsx("iconify-icon",{height:"100%",width:"100%",icon:w.icon})),{title:w.title,url:w.link,icon:C,external:!0,children:w.items}},"items");const h=Fn(v).filter(w=>!!w.url),S=Bn(h.map(w=>w.url));return S!==-1&&(h[S].active=!0),{localizedNav:v,flattened:h,matchedIndex:S}},[d,u,l]),x=typeof s=="function"?s(p):[...p,...s];if(P.useLayoutEffect(()=>{c&&!(m!=null&&m.length)&&n&&(window.location.href=n)},[n]),P.useLayoutEffect(()=>{c&&(m!=null&&m.length)&&b===-1&&t&&t()},[t,m,b]),!d.appName)return null;const{appLogo:T,appLogoRect:j,appName:I}=d,y=g.jsx(me,{formattedBlocklet:d,addons:r,sessionManagerProps:o});return g.jsx(Et,{title:I,fullWidth:!0,sidebarWidth:128,legacy:!1,links:x,...i,headerProps:{homeLink:le,logo:g.jsx("img",{src:j||T,alt:"logo"}),addons:y,...i.headerProps}})}ut.propTypes={meta:Nn,fallbackUrl:f.string,invalidPathFallback:f.func,headerAddons:f.oneOfType([f.func,f.node]),sessionManagerProps:ct,links:f.oneOfType([f.array,f.func])};ut.defaultProps={meta:{},fallbackUrl:le,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=le}},links:[]};export{Nn as B,ut as D,me as H,Fn as a,Bn as b,Qn as f,at as g,Hn as i,z as m,le as p,Jn as u};
@@ -1 +1 @@
1
- import{d as A,v as R,p as w,e as p}from"./index-CjkNshyI.js";const O=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,x=/^[a-zA-Z]:\\/;function N(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return x.test(e)?!1:O.test(e)}const _=["http","https"],z=["nofollow"],L={};function T(e){const r=e||L,g=r.protocols||_,u=A(r.test);return function(h){R(h,"element",function(t,y,E){if(t.tagName==="a"&&typeof t.properties.href=="string"&&u(t,y,E)){const o=t.properties.href;if(N(o)?g.includes(o.slice(0,o.indexOf(":"))):o.startsWith("//")){const n=s(r.content,t),c=n&&!Array.isArray(n)?[n]:n,i=s(r.rel,t)||z,a=typeof i=="string"?w(i):i,f=s(r.target,t),l=s(r.properties,t);if(l&&Object.assign(t.properties,p(l)),a.length>0&&(t.properties.rel=[...a]),f&&(t.properties.target=f),c){const m=s(r.contentProperties,t)||{};t.children.push({type:"element",tagName:"span",properties:p(m),children:p(c)})}}}})}}function s(e,r){return typeof e=="function"?e(r):e}export{T as r};
1
+ import{d as A,v as R,p as w,e as p}from"./index-D-G-CrJO.js";const O=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,x=/^[a-zA-Z]:\\/;function N(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return x.test(e)?!1:O.test(e)}const _=["http","https"],z=["nofollow"],L={};function T(e){const r=e||L,g=r.protocols||_,u=A(r.test);return function(h){R(h,"element",function(t,y,E){if(t.tagName==="a"&&typeof t.properties.href=="string"&&u(t,y,E)){const o=t.properties.href;if(N(o)?g.includes(o.slice(0,o.indexOf(":"))):o.startsWith("//")){const n=s(r.content,t),c=n&&!Array.isArray(n)?[n]:n,i=s(r.rel,t)||z,a=typeof i=="string"?w(i):i,f=s(r.target,t),l=s(r.properties,t);if(l&&Object.assign(t.properties,p(l)),a.length>0&&(t.properties.rel=[...a]),f&&(t.properties.target=f),c){const m=s(r.contentProperties,t)||{};t.children.push({type:"element",tagName:"span",properties:p(m),children:p(c)})}}}})}}function s(e,r){return typeof e=="function"?e(r):e}export{T as r};
@@ -0,0 +1 @@
1
+ import{$ as c,r as _,l as f,cB as S,cC as r}from"./index-DtdETaBU.js";var d=function(n){var a=c(_.useState(n),2),u=a[0],o=a[1],i=f(function(t){o(function(e){var s=S(t)?t(e):t;return s?r(r({},e),s):e})});return[u,i]};export{d as u};
@@ -0,0 +1,4 @@
1
+ import{r as h,a6 as g,b2 as y,j as t,C as P,n as v,B as c,a7 as d,P as m,a4 as w}from"./index-DtdETaBU.js";import{P as T}from"./page-header-ByFkqYoX.js";import{u as B}from"./config-space-xHVn7Zw_.js";import{C as E,D as b,a as D}from"./connect-to-BWP8Cqu6.js";import{S as u}from"./step-actions-DauWsHJ8.js";import{S as N}from"./layout-BLLz87sa.js";import"./index-C89kYDNU.js";import"./api-SlMwqh4b.js";import"./index-tap0PKb5.js";import"./OpenInNew-Ox-Wg6B7.js";import"./Stack-BGVSv0bm.js";import"./Link-SvE6tGEV.js";import"./Skeleton-XhcFgkuH.js";import"./HelpOutline-pRqeT6i_.js";import"./index-C-OENO3T.js";import"./ExpandMore-B3TZX84r.js";import"./ButtonGroup-BcLw8gsE.js";import"./DialogContentText-BvYfkPC9.js";import"./TextField-BYIMGo2O.js";import"./FormControl-BlJhfvE4.js";import"./useFormControl-CUbdx--c.js";import"./Select-pOhG5uV8.js";import"./DeleteOutline-PIJBVOmm.js";import"./format-error-Dk89U0uh.js";import"./content-layout-8jsNhe-5.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(b,{})}),((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(D,{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(N)`
2
+ height: 100%;
3
+ overflow-y: auto;
4
+ `;export{l as default};