@abtnode/webapp 1.16.29 → 1.16.30-beta-00e8bdd1

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 (198) hide show
  1. package/blocklet.js +1 -1
  2. package/blocklet.yml +1 -1
  3. package/dist/assets/{Add-BIVkDKiV.js → Add-LFKdL73O.js} +1 -1
  4. package/dist/assets/{ArrowDropDown-BSN8E-vL.js → ArrowDropDown-CSu51mHJ.js} +1 -1
  5. package/dist/assets/{Autocomplete-3iEbBt3p.js → Autocomplete-hpS9-5qj.js} +1 -1
  6. package/dist/assets/{Breadcrumbs-B1EjQ7_S.js → Breadcrumbs-CMca_d4s.js} +1 -1
  7. package/dist/assets/{ButtonGroup-5q10mUxm.js → ButtonGroup-0zcah4z_.js} +1 -1
  8. package/dist/assets/{CheckCircle-SQxexLA6.js → CheckCircle-CBkh2h5b.js} +1 -1
  9. package/dist/assets/{ChevronLeft-DGO3AjSX.js → ChevronLeft-B-7gRCbY.js} +1 -1
  10. package/dist/assets/{ChevronRight-DcNBTOQr.js → ChevronRight-D_yeHmtK.js} +1 -1
  11. package/dist/assets/{Close-Dr9bVY_7.js → Close-CNpsilFj.js} +1 -1
  12. package/dist/assets/{Delete-BA9-i54s.js → Delete-srKcBoMM.js} +1 -1
  13. package/dist/assets/{DeleteOutline-BQLCdvYk.js → DeleteOutline-Co4Q4Mxy.js} +1 -1
  14. package/dist/assets/DeleteOutline-DTfdQ1Ck.js +1 -0
  15. package/dist/assets/{Done-CCcZllux.js → Done-CPtHG1xe.js} +1 -1
  16. package/dist/assets/{Edit-BFcAkLvC.js → Edit-C-SmJ8-l.js} +1 -1
  17. package/dist/assets/{EditIcon-Bsk6W7fb.js → EditIcon-jhpUwOtu.js} +1 -1
  18. package/dist/assets/{ExpandMore-rt48LU-T.js → ExpandMore-XdKsbNWv.js} +1 -1
  19. package/dist/assets/{FilterList-qnkLmWiK.js → FilterList-DZulAb2m.js} +4 -4
  20. package/dist/assets/{Google-ZwJqo6k4.js → Google-C5CdgF1q.js} +3 -3
  21. package/dist/assets/{Https-D5FI5kRj.js → Https-BvcwyBP3.js} +1 -1
  22. package/dist/assets/{InputAdornment-O2bgTsbw.js → InputAdornment-BVxF9lVH.js} +1 -1
  23. package/dist/assets/{InputLabel-DKHlRadP.js → InputLabel-CsipaQrT.js} +1 -1
  24. package/dist/assets/{LastPage-DSz-M1aM.js → LastPage-BfMRR4RL.js} +1 -1
  25. package/dist/assets/{Launch-e9NpOcr5.js → Launch-DOqDWG_i.js} +1 -1
  26. package/dist/assets/{Link-CWm9FEnI.js → Link-62LBDRON.js} +1 -1
  27. package/dist/assets/{LoadingButton-D7VQLypv.js → LoadingButton-DSKkFqcs.js} +1 -1
  28. package/dist/assets/{LockIcon-BGABEZ6C.js → LockIcon-CvSsIiE2.js} +1 -1
  29. package/dist/assets/{Loop-v-roMehG.js → Loop-Bsc8xJWe.js} +1 -1
  30. package/dist/assets/{MoreVert-CpEsw2Tj.js → MoreVert-Dcu0-GMt.js} +1 -1
  31. package/dist/assets/{Pagination-BPPkQTXZ.js → Pagination-kp73--RG.js} +1 -1
  32. package/dist/assets/{Public-s40J-s3W.js → Public-GWTOZY7N.js} +1 -1
  33. package/dist/assets/{SchemaReference.es-yLf24oFH.js → SchemaReference.es-BpTVsxuV.js} +1 -1
  34. package/dist/assets/{Search-BvtdswCD.js → Search-BaA9ZKBf.js} +1 -1
  35. package/dist/assets/{Select-6AAHiQjm.js → Select-Djr-8j16.js} +2 -2
  36. package/dist/assets/{Skeleton-8M4ffKSP.js → Skeleton-CeiYEcKB.js} +1 -1
  37. package/dist/assets/{Slider-dM16D4dK.js → Slider-Cr-0XHP3.js} +1 -1
  38. package/dist/assets/{Stepper-qCoo64ls.js → Stepper-BK35oRco.js} +1 -1
  39. package/dist/assets/{TextField-D7-Vl4N2.js → TextField-D-fYaxFC.js} +1 -1
  40. package/dist/assets/{ToggleButtonGroup-C8YC_AbK.js → ToggleButtonGroup-Bq-C5nsv.js} +1 -1
  41. package/dist/assets/{ViewList-ww_Jy26j.js → ViewList-ClcomYiM.js} +1 -1
  42. package/dist/assets/{actions-CfLfEA5o.js → actions-B9RFo3PU.js} +1 -1
  43. package/dist/assets/{actions-DVIIvqI9.js → actions-DxYtgy4b.js} +1 -1
  44. package/dist/assets/{agreement-j9qZoXbi.js → agreement-QhMtmMQJ.js} +5 -5
  45. package/dist/assets/api-B76-JirA.js +1 -0
  46. package/dist/assets/{app-avatar-DX2Wz0PD.js → app-avatar-B_wkAPxy.js} +1 -1
  47. package/dist/assets/{ar-D-8bmv2Q.js → ar-CYspPmSu.js} +1 -1
  48. package/dist/assets/{audit-logs-DtLwS7ge.js → audit-logs-l3Bq0hXU.js} +1 -1
  49. package/dist/assets/blocklet-U0hwansK.js +1 -0
  50. package/dist/assets/{brace-fold.es-MaAtm0YJ.js → brace-fold.es-ify0m_jP.js} +1 -1
  51. package/dist/assets/{bundle-avatar-CzY4FWcT.js → bundle-avatar-DTb6oe8Y.js} +1 -1
  52. package/dist/assets/{chart-CL8fHlYj.js → chart-oYZiK-e5.js} +2 -2
  53. package/dist/assets/{click-to-copy-CRCcWlGf.js → click-to-copy-CVINfAkv.js} +1 -1
  54. package/dist/assets/{closebrackets.es-ClBbybwI.js → closebrackets.es-BqhK2kTP.js} +1 -1
  55. package/dist/assets/{codemirror.es-CVvRjjht.js → codemirror.es-Dt0TXafG.js} +1 -1
  56. package/dist/assets/{comment.es-C82zWRz0.js → comment.es-Ck-iETYS.js} +1 -1
  57. package/dist/assets/{config-navigation-Ba5IHsVi.js → config-navigation-Bg-UzLES.js} +5 -5
  58. package/dist/assets/{de-BXUm1QYV.js → de-DIG5UukX.js} +1 -1
  59. package/dist/assets/{delete-confirm-BGrzi75s.js → delete-confirm-BqGcpgiq.js} +1 -1
  60. package/dist/assets/{detail-dhpUaLCM.js → detail-B6MSmXGq.js} +3 -3
  61. package/dist/assets/{dialog.es-DqPlApF_.js → dialog.es-D_T7Yss2.js} +1 -1
  62. package/dist/assets/{download-C05PPT48.js → download-D0XkeC5D.js} +1 -1
  63. package/dist/assets/{es-CH6tZGrR.js → es-iIE-oygq.js} +1 -1
  64. package/dist/assets/{foldgutter.es-CeF_j6cJ.js → foldgutter.es-Booq0HN6.js} +1 -1
  65. package/dist/assets/{fr-roccVFT3.js → fr-D8XyKysR.js} +1 -1
  66. package/dist/assets/getValidReactChildren-CIj2C3j7.js +1 -0
  67. package/dist/assets/{hi-VN-lZj6f.js → hi-C12r029w.js} +1 -1
  68. package/dist/assets/{hint.es-DNAfoVMm.js → hint.es-CwpaOeu1.js} +1 -1
  69. package/dist/assets/{hint.es2-CU1qoYEt.js → hint.es2-0XlKH7eK.js} +1 -1
  70. package/dist/assets/{id-C-ovCb8b.js → id-BM1nX889.js} +1 -1
  71. package/dist/assets/{iframe-BvKPLFbb.js → iframe-BxFOjzAT.js} +1 -1
  72. package/dist/assets/{index-BwYDd0Tm.js → index-3S1oyYak.js} +1 -1
  73. package/dist/assets/index-3c50PzHB.js +54 -0
  74. package/dist/assets/{index-CcHjeoRT.js → index-69SfANaJ.js} +1 -1
  75. package/dist/assets/{index-CmC3_Eds.js → index-7V15c_6f.js} +1 -1
  76. package/dist/assets/{index-DeHtrQ7P.js → index-B6oAfScX.js} +1 -1
  77. package/dist/assets/{index-ZGnAW8k-.js → index-B9q4xTve.js} +68 -68
  78. package/dist/assets/index-BDqaMQSR.js +309 -0
  79. package/dist/assets/index-BHVuacU2.js +1 -0
  80. package/dist/assets/{index-CwFZQrLE.js → index-BKtKjId8.js} +1 -1
  81. package/dist/assets/{index-CBdRhIVO.js → index-BYxyp5Ck.js} +3 -3
  82. package/dist/assets/{index-CPISMYm_.js → index-Be1LfCt3.js} +1 -1
  83. package/dist/assets/{index-BOqdAGub.js → index-Bi5jIxEm.js} +1 -1
  84. package/dist/assets/{index-BTXMR9xa.js → index-BkF1zCMg.js} +2 -2
  85. package/dist/assets/{index-BmYxQtQ4.js → index-BmimSaL6.js} +1 -1
  86. package/dist/assets/{index-DShKrg-W.js → index-C-KPF3ku.js} +1 -1
  87. package/dist/assets/{index-C0k3BC5k.js → index-C2RJ0Opd.js} +3 -3
  88. package/dist/assets/{index-47g0cU0E.js → index-CO1tIkkw.js} +1 -1
  89. package/dist/assets/{index-CTuqdacw.js → index-CPw_3e9I.js} +1 -1
  90. package/dist/assets/index-CUJg_ZR6.js +262 -0
  91. package/dist/assets/{index-nSc0VxEZ.js → index-CjLebNEZ.js} +1 -1
  92. package/dist/assets/{index-CsDwstJh.js → index-Cvz2D2Se.js} +1 -1
  93. package/dist/assets/{index-DD86vUxF.js → index-DA53wNBt.js} +1 -1
  94. package/dist/assets/index-DS5HF6Nu.js +278 -0
  95. package/dist/assets/{index-COUqkfTn.js → index-DY2dSM6d.js} +1 -1
  96. package/dist/assets/{index-Ck3GPasE.js → index-D_6bopIl.js} +3 -3
  97. package/dist/assets/{index-B47niqg_.js → index-DavTgDQN.js} +3 -3
  98. package/dist/assets/{index-htQb1has.js → index-Dh9zXu4V.js} +1 -1
  99. package/dist/assets/{index-Dpm78Z5H.js → index-DkPTCGqW.js} +1 -1
  100. package/dist/assets/{index-BzvNtIY8.js → index-DrKkKhZU.js} +1 -1
  101. package/dist/assets/{index-C5QsMFdj.js → index-Dw2oEqk9.js} +1 -1
  102. package/dist/assets/{index-B2Ydaom7.js → index-Dwzroz2N.js} +1 -1
  103. package/dist/assets/{index-DbPVOvSO.js → index-KKJRKkcL.js} +1 -1
  104. package/dist/assets/{index-DbXIo2GY.js → index-Pyhbpymd.js} +9 -9
  105. package/dist/assets/{index-2KEUrOnp.js → index-R6KYy11w.js} +1 -1
  106. package/dist/assets/{index-CRpa8mt0.js → index-RVerdREp.js} +5 -5
  107. package/dist/assets/{index-D-60mXOg.js → index-bjJyrxsi.js} +1 -1
  108. package/dist/assets/{index-xdp5_tXH.js → index-ibz1mOjA.js} +1 -1
  109. package/dist/assets/index-j_zkWpJQ.js +1 -0
  110. package/dist/assets/index-keckIN3f.js +288 -0
  111. package/dist/assets/index-kkD7ifup.js +11 -0
  112. package/dist/assets/{index-DxfcfSRi.js → index-lHa-QuEU.js} +1 -1
  113. package/dist/assets/{index-Q8y1koUx.js → index-shAskowG.js} +1 -1
  114. package/dist/assets/{index-Jx4Fqi_s.js → index-tqJUmPvA.js} +28 -28
  115. package/dist/assets/{index-CP_gsEZk.js → index-xdfj_Gf_.js} +1 -1
  116. package/dist/assets/{index.es-hjsi54WY.js → index.es-CjdQLpQc.js} +1 -1
  117. package/dist/assets/{index.esm-w_WP2iFy.js → index.esm-lboQd9dC.js} +1 -1
  118. package/dist/assets/{info-addon.es-BwQtq18_.js → info-addon.es-vzTbYXa-.js} +1 -1
  119. package/dist/assets/{info.es-Bxzc18tW.js → info.es-DVsU6SVd.js} +1 -1
  120. package/dist/assets/{install-from-url-BpQI48sC.js → install-from-url-DcEJ7Ca3.js} +1 -1
  121. package/dist/assets/{invitation-DxXG7nra.js → invitation-BNRwDEVH.js} +8 -8
  122. package/dist/assets/is-path-prefix-equal-Bbv1muGK.js +1 -0
  123. package/dist/assets/{isEqual-DkxHXXMW.js → isEqual-D4RUz7Fw.js} +1 -1
  124. package/dist/assets/{item-CZsxlZnz.js → item-Cf5XyKSd.js} +26 -26
  125. package/dist/assets/{ja-D-sN9ij0.js → ja-D8yfIRFO.js} +1 -1
  126. package/dist/assets/{javascript.es-CGn-ScFl.js → javascript.es-Df6-Npn3.js} +1 -1
  127. package/dist/assets/{jump-to-line.es-CWVtSCYy.js → jump-to-line.es-aGoBCE9o.js} +1 -1
  128. package/dist/assets/{jump.es-DxdpkWWi.js → jump.es-CrN18yKp.js} +1 -1
  129. package/dist/assets/{ko-DFpbqZ_Q.js → ko-BYDKCXC0.js} +1 -1
  130. package/dist/assets/{line-DfRJLxHw.js → line-Brex_I6p.js} +4 -4
  131. package/dist/assets/{lint.es-Cn-NE8s7.js → lint.es-DEOTlz6c.js} +1 -1
  132. package/dist/assets/{lint.es2-DiLIozTW.js → lint.es2-BmcRF08P.js} +1 -1
  133. package/dist/assets/{lint.es3-BKeD_KCD.js → lint.es3-COdxOPeK.js} +1 -1
  134. package/dist/assets/{list-header-Cn6ronu6.js → list-header-BQiWHRqn.js} +1 -1
  135. package/dist/assets/{log-CBd4yiLd.js → log-5GhJqImF.js} +1 -1
  136. package/dist/assets/{lottie-BhIusYBK.js → lottie-qJ8b-yUO.js} +1 -1
  137. package/dist/assets/{matchbrackets.es-C8Sy_DTp.js → matchbrackets.es-BEa-Nj8z.js} +1 -1
  138. package/dist/assets/{memory-CrREi08U.js → memory-1iaH3Or6.js} +1 -1
  139. package/dist/assets/{mode.es-CRX6d_8r.js → mode.es-Byr4pK2u.js} +1 -1
  140. package/dist/assets/{mode.es2-BYlzTYp8.js → mode.es2-qzs8ugCq.js} +1 -1
  141. package/dist/assets/{mode.es3-BlMpLqAY.js → mode.es3-DlukdiVg.js} +1 -1
  142. package/dist/assets/{onlineParser.es-Buh5bsDU.js → onlineParser.es-CklSfcO9.js} +1 -1
  143. package/dist/assets/{overview--S9u2G7d.js → overview-BGyp8F_2.js} +2 -2
  144. package/dist/assets/{pt-BXC7UTMq.js → pt-B9DRiZEN.js} +1 -1
  145. package/dist/assets/{react-C3TTI-Hf.js → react-dn_NPK1J.js} +3 -3
  146. package/dist/assets/{redux-D53RmvG3.js → redux-CDrmL_mc.js} +1 -1
  147. package/dist/assets/{resource-dialog-BqPaioMe.js → resource-dialog-DSWbu09w.js} +2 -2
  148. package/dist/assets/{ru-BbD1NNUC.js → ru-CUxGgO8D.js} +1 -1
  149. package/dist/assets/{runtime-8R1L5Qei.js → runtime-BCmw-_C1.js} +1 -1
  150. package/dist/assets/{schema-vba8ScMR.js → schema-C0fr83dn.js} +1 -1
  151. package/dist/assets/sdk-C0FNPW-W.js +1 -0
  152. package/dist/assets/{search.es-CUmn7XrO.js → search.es-Cn60kLiF.js} +1 -1
  153. package/dist/assets/{searchcursor.es-CnWycfn9.js → searchcursor.es-CHzpyp98.js} +1 -1
  154. package/dist/assets/service-BgoiGac9.js +1 -0
  155. package/dist/assets/{shorten-label-BbyRZw10.js → shorten-label-D2yNd_do.js} +1 -1
  156. package/dist/assets/{show-hint.es-yYddy2nN.js → show-hint.es-CLjt2ZS_.js} +1 -1
  157. package/dist/assets/{slicedToArray-C-ReaQzH.js → slicedToArray-Cdyv9hm5.js} +1 -1
  158. package/dist/assets/{spaces-CHvfSEjC.js → spaces-BGwFOyAS.js} +1 -1
  159. package/dist/assets/{sublime.es-C7Xwv4Fs.js → sublime.es-CsIekldU.js} +1 -1
  160. package/dist/assets/{switch-control-YIGp_J-o.js → switch-control-CtQVsLJE.js} +1 -1
  161. package/dist/assets/{table-icons-Htpo0aNL.js → table-icons-CHIMAIBB.js} +1 -1
  162. package/dist/assets/{tag-CxVWvL3v.js → tag-BtkglRep.js} +1 -1
  163. package/dist/assets/team-C9CS8TWK.js +1 -0
  164. package/dist/assets/{th-VkDcmE_T.js → th-D6abaOt7.js} +1 -1
  165. package/dist/assets/toUpper-6yIzkj7V.js +1 -0
  166. package/dist/assets/{traffic-B7M7MwN4.js → traffic-9mdt3xlJ.js} +1 -1
  167. package/dist/assets/{url-evaluation-DCs4qJ1s.js → url-evaluation-zvcOTlCw.js} +1 -1
  168. package/dist/assets/{url-join-CZQCk0ge.js → url-join-DeR1uj4F.js} +1 -1
  169. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-DePpDQKa.js → use-blocklet-info-for-connect-did-spaces-CcMtzUbo.js} +1 -1
  170. package/dist/assets/{useLocalStorage-Cpx0Qijo.js → useLocalStorage-Cmh7IzOP.js} +1 -1
  171. package/dist/assets/{useThemeProps-DMpUSpUQ.js → useThemeProps-Av0i4kAo.js} +1 -1
  172. package/dist/assets/{util-opsnBGhQ.js → util-BFRwThVd.js} +1 -1
  173. package/dist/assets/{vi-CanFbf1v.js → vi-BsX5AAJJ.js} +1 -1
  174. package/dist/assets/{wait-container-DP8Bb6X-.js → wait-container-DeCL5jAI.js} +1 -1
  175. package/dist/assets/{withStyles-CiarYOCJ.js → withStyles-D6Sb3yPO.js} +1 -1
  176. package/dist/assets/wrap-locale-BKrHiPG8.js +1 -0
  177. package/dist/assets/{zh-BxXo7x1m.js → zh-CIqkKG4c.js} +1 -1
  178. package/dist/assets/{zh-tw-Bvqjz2OU.js → zh-tw-D7VeUoit.js} +1 -1
  179. package/dist/index.html +1 -1
  180. package/dist/service-worker.js +1 -1
  181. package/package.json +1 -1
  182. package/dist/assets/DeleteOutline-BngWwPLv.js +0 -1
  183. package/dist/assets/api-1QhTD3Py.js +0 -1
  184. package/dist/assets/blocklet-F36VtnS3.js +0 -1
  185. package/dist/assets/getValidReactChildren-BulArIz5.js +0 -1
  186. package/dist/assets/index-ByhJ7PKw.js +0 -278
  187. package/dist/assets/index-ByoVNU5z.js +0 -1
  188. package/dist/assets/index-C1yo1XnB.js +0 -1
  189. package/dist/assets/index-C5jvxTRJ.js +0 -309
  190. package/dist/assets/index-D-TSSwe_.js +0 -54
  191. package/dist/assets/index-N35a-P_5.js +0 -288
  192. package/dist/assets/index-W_RWClvn.js +0 -262
  193. package/dist/assets/index-ziy-s42n.js +0 -11
  194. package/dist/assets/is-path-prefix-equal-BiTDqCe2.js +0 -1
  195. package/dist/assets/service-C47VUoeK.js +0 -1
  196. package/dist/assets/team-CgUZDWzH.js +0 -1
  197. package/dist/assets/toUpper-CeMG-5le.js +0 -1
  198. package/dist/assets/wrap-locale-BSVVLHW0.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/webapp",
3
- "version": "1.16.29",
3
+ "version": "1.16.30-beta-00e8bdd1",
4
4
  "keywords": [
5
5
  "arcblock",
6
6
  "react"
@@ -1 +0,0 @@
1
- import{g as e}from"./index-ZGnAW8k-.js";import{r as t}from"./DeleteOutline-BQLCdvYk.js";var r=t();const i=e(r);export{i as D};
@@ -1 +0,0 @@
1
- import{av as a}from"./index-ZGnAW8k-.js";a.defaults.timeout=10*1e3;const o=a.create();export{o as a};
@@ -1 +0,0 @@
1
- import{r as t}from"./index-ZGnAW8k-.js";const e=t.createContext({});function r(){return t.useContext(e)}export{e as B,r as u};
@@ -1 +0,0 @@
1
- import{r}from"./index-ZGnAW8k-.js";function a(t){return r.Children.toArray(t).filter(e=>r.isValidElement(e))}export{a as g};
@@ -1,278 +0,0 @@
1
- var Ft=Object.defineProperty;var zt=(e,t,n)=>t in e?Ft(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Q=(e,t,n)=>(zt(e,typeof t!="symbol"?t+"":t,n),n);import{j as d,ce as ie,fY as fe,fZ as et,P as u,f_ as Ht,r as T,aO as Dt,ci as Ut,a2 as Bt,dT as Qt,dR as Vt,f$ as Wt,dQ as Zt,d2 as A,a7 as Gt,a8 as Jt,g0 as Yt,O as P,g1 as Xt,m as Kt,g2 as en,g3 as tn,B as nn,g4 as on,fL as tt,q as ee,g5 as rn,g6 as sn,cn,g7 as an,s as M,g8 as nt,g9 as ln,c8 as ot,ga as un,aA as rt,bU as de,bc as fn,co as st,gb as dn}from"./index-ZGnAW8k-.js";import{d as pn}from"./ExpandMore-rt48LU-T.js";/**
2
- * (c) Iconify
3
- *
4
- * For the full copyright and license information, please view the license.txt
5
- * files at https://github.com/iconify/iconify
6
- *
7
- * Licensed under MIT.
8
- *
9
- * @license MIT
10
- * @version 1.0.8
11
- */const it=Object.freeze({left:0,top:0,width:16,height:16}),G=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),U=Object.freeze({...it,...G}),pe=Object.freeze({...U,body:"",hidden:!1}),hn=Object.freeze({width:null,height:null}),ct=Object.freeze({...hn,...G});function gn(e,t=0){const n=e.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(e);return isNaN(o)?0:r(o)}else if(n!==e){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(e.slice(0,e.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return t}const mn=/[\s,]+/;function yn(e,t){t.split(mn).forEach(n=>{switch(n.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}const at={...ct,preserveAspectRatio:""};function Ee(e){const t={...at},n=(r,o)=>e.getAttribute(r)||o;return t.width=n("width",null),t.height=n("height",null),t.rotate=gn(n("rotate","")),yn(t,n("flip","")),t.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),t}function bn(e,t){for(const n in at)if(e[n]!==t[n])return!0;return!1}const q=/^[a-z0-9]+(-[a-z0-9]+)*$/,B=(e,t,n,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 t&&!W(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 t&&!W(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return t&&!W(a,n)?null:a}return null},W=(e,t)=>e?!!((e.provider===""||e.provider.match(q))&&(t&&e.prefix===""||e.prefix.match(q))&&e.name.match(q)):!1;function xn(e,t){const n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);const r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function $e(e,t){const n=xn(e,t);for(const r in pe)r in G?r in e&&!(r in n)&&(n[r]=G[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function wn(e,t){const n=e.icons,r=e.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[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(t||Object.keys(n).concat(Object.keys(r))).forEach(s),o}function vn(e,t,n){const r=e.icons,o=e.aliases||Object.create(null);let s={};function i(a){s=$e(r[a]||o[a],s)}return i(t),n.forEach(i),$e(e,s)}function lt(e,t){const n=[];if(typeof e!="object"||typeof e.icons!="object")return n;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),n.push(o)});const r=wn(e);for(const o in r){const s=r[o];s&&(t(o,vn(e,o,s)),n.push(o))}return n}const kn={provider:"",aliases:{},not_found:{},...it};function ce(e,t){for(const n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function ut(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!ce(e,kn))return null;const n=t.icons;for(const o in n){const s=n[o];if(!o.match(q)||typeof s.body!="string"||!ce(s,pe))return null}const r=t.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(q)||typeof i!="string"||!n[i]&&!r[i]||!ce(s,pe))return null}return t}const J=Object.create(null);function jn(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function R(e,t){const n=J[e]||(J[e]=Object.create(null));return n[t]||(n[t]=jn(e,t))}function ve(e,t){return ut(t)?lt(t,(n,r)=>{r?e.icons[n]=r:e.missing.add(n)}):[]}function In(e,t,n){try{if(typeof n.body=="string")return e.icons[t]={...n},!0}catch{}return!1}function Sn(e,t){let n=[];return(typeof e=="string"?[e]:Object.keys(J)).forEach(o=>{(typeof o=="string"&&typeof t=="string"?[t]:Object.keys(J[o]||{})).forEach(i=>{const a=R(o,i);n=n.concat(Object.keys(a.icons).map(c=>(o!==""?"@"+o+":":"")+i+":"+c))})}),n}let z=!1;function ft(e){return typeof e=="boolean"&&(z=e),z}function H(e){const t=typeof e=="string"?B(e,!0,z):e;if(t){const n=R(t.provider,t.prefix),r=t.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function dt(e,t){const n=B(e,!0,z);if(!n)return!1;const r=R(n.provider,n.prefix);return In(r,n.name,t)}function _e(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),z&&!t&&!e.prefix){let o=!1;return ut(e)&&(e.prefix="",lt(e,(s,i)=>{i&&dt(s,i)&&(o=!0)})),o}const n=e.prefix;if(!W({provider:t,prefix:n,name:"a"}))return!1;const r=R(t,n);return!!ve(r,e)}function Tn(e){return!!H(e)}function Cn(e){const t=H(e);return t?{...U,...t}:null}function An(e){const t={loaded:[],missing:[],pending:[]},n=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=n[s]||(n[s]=Object.create(null)),l=c[i]||(c[i]=R(s,i));let f;a in l.icons?f=t.loaded:i===""||l.missing.has(a)?f=t.missing:f=t.pending;const p={provider:s,prefix:i,name:a};f.push(p)}),t}function pt(e,t){e.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==t))})}function Pn(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1;const r=e.provider,o=e.prefix;t.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 n=!0,!0;return!1}),i.pending.length!==a&&(n||pt([e],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Mn=0;function Ln(e,t,n){const r=Mn++,o=pt.bind(null,n,r);if(!t.pending.length)return o;const s={id:r,icons:t,callback:e,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}const he=Object.create(null);function qe(e,t){he[e]=t}function ge(e){return he[e]||he[""]}function Rn(e,t=!0,n=!1){const r=[];return e.forEach(o=>{const s=typeof o=="string"?B(o,t,n):o;s&&r.push(s)}),r}var Nn={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function On(e,t,n,r){const o=e.resources.length,s=e.random?Math.floor(Math.random()*o):e.index;let i;if(e.random){let y=e.resources.slice(0);for(i=[];y.length>1;){const I=Math.floor(Math.random()*y.length);i.push(y[I]),y=y.slice(0,I).concat(y.slice(I+1))}i=i.concat(y)}else i=e.resources.slice(s).concat(e.resources.slice(0,s));const a=Date.now();let c="pending",l=0,f,p=null,h=[],g=[];typeof r=="function"&&g.push(r);function m(){p&&(clearTimeout(p),p=null)}function x(){c==="pending"&&(c="aborted"),m(),h.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),h=[]}function v(y,I){I&&(g=[]),typeof y=="function"&&g.push(y)}function k(){return{startTime:a,payload:t,status:c,queriesSent:l,queriesPending:h.length,subscribe:v,abort:x}}function b(){c="failed",g.forEach(y=>{y(void 0,f)})}function w(){h.forEach(y=>{y.status==="pending"&&(y.status="aborted")}),h=[]}function C(y,I,L){const S=I!=="success";switch(h=h.filter(N=>N!==y),c){case"pending":break;case"failed":if(S||!e.dataAfterTimeout)return;break;default:return}if(I==="abort"){f=L,b();return}if(S){f=L,h.length||(i.length?j():b());return}if(m(),w(),!e.random){const N=e.resources.indexOf(y.resource);N!==-1&&N!==e.index&&(e.index=N)}c="completed",g.forEach(N=>{N(L)})}function j(){if(c!=="pending")return;m();const y=i.shift();if(y===void 0){if(h.length){p=setTimeout(()=>{m(),c==="pending"&&(w(),b())},e.timeout);return}b();return}const I={status:"pending",resource:y,callback:(L,S)=>{C(I,L,S)}};h.push(I),l++,p=setTimeout(j,e.rotate),n(y,t,I.callback)}return setTimeout(j),k}function ht(e){const t={...Nn,...e};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,c,l){const f=On(t,a,c,(p,h)=>{r(),l&&l(p,h)});return n.push(f),f}function s(a){return n.find(c=>a(c))||null}return{query:o,find:s,setIndex:a=>{t.index=a},getIndex:()=>t.index,cleanup:r}}function ke(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,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 te=Object.create(null),_=["https://api.simplesvg.com","https://api.unisvg.com"],Z=[];for(;_.length>0;)_.length===1||Math.random()>.5?Z.push(_.shift()):Z.push(_.pop());te[""]=ke({resources:["https://api.iconify.design"].concat(Z)});function Fe(e,t){const n=ke(t);return n===null?!1:(te[e]=n,!0)}function ne(e){return te[e]}function En(){return Object.keys(te)}function ze(){}const ae=Object.create(null);function $n(e){if(!ae[e]){const t=ne(e);if(!t)return;const n=ht(t),r={config:t,redundancy:n};ae[e]=r}return ae[e]}function gt(e,t,n){let r,o;if(typeof e=="string"){const s=ge(e);if(!s)return n(void 0,424),ze;o=s.send;const i=$n(e);i&&(r=i.redundancy)}else{const s=ke(e);if(s){r=ht(s);const i=e.resources?e.resources[0]:"",a=ge(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),ze):r.query(t,o,n)().abort}const He="iconify2",D="iconify",mt=D+"-count",De=D+"-version",yt=36e5,_n=168;function me(e,t){try{return e.getItem(t)}catch{}}function je(e,t,n){try{return e.setItem(t,n),!0}catch{}}function Ue(e,t){try{e.removeItem(t)}catch{}}function ye(e,t){return je(e,mt,t.toString())}function be(e){return parseInt(me(e,mt))||0}const O={local:!0,session:!0},bt={local:new Set,session:new Set};let Ie=!1;function qn(e){Ie=e}let V=typeof window>"u"?{}:window;function xt(e){const t=e+"Storage";try{if(V&&V[t]&&typeof V[t].length=="number")return V[t]}catch{}O[e]=!1}function wt(e,t){const n=xt(e);if(!n)return;const r=me(n,De);if(r!==He){if(r){const a=be(n);for(let c=0;c<a;c++)Ue(n,D+c.toString())}je(n,De,He),ye(n,0);return}const o=Math.floor(Date.now()/yt)-_n,s=a=>{const c=D+a.toString(),l=me(n,c);if(typeof l=="string"){try{const f=JSON.parse(l);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>o&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&t(f,a))return!0}catch{}Ue(n,c)}};let i=be(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,ye(n,i)):bt[e].add(a))}function vt(){if(!Ie){qn(!0);for(const e in O)wt(e,t=>{const n=t.data,r=t.provider,o=n.prefix,s=R(r,o);if(!ve(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function Fn(e,t){const n=e.lastModifiedCached;if(n&&n>=t)return n===t;if(e.lastModifiedCached=t,n)for(const r in O)wt(r,o=>{const s=o.data;return o.provider!==e.provider||s.prefix!==e.prefix||s.lastModified===t});return!0}function zn(e,t){Ie||vt();function n(r){let o;if(!O[r]||!(o=xt(r)))return;const s=bt[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=be(o),!ye(o,i+1))return;const a={cached:Math.floor(Date.now()/yt),provider:e.provider,data:t};return je(o,D+i.toString(),JSON.stringify(a))}t.lastModified&&!Fn(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),n("local")||n("session"))}function Be(){}function Hn(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Pn(e)}))}function Dn(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:n,prefix:r}=e,o=e.iconsToLoad;delete e.iconsToLoad;let s;if(!o||!(s=ge(n)))return;s.prepare(n,r,o).forEach(a=>{gt(n,a,c=>{if(typeof c!="object")a.icons.forEach(l=>{e.missing.add(l)});else try{const l=ve(e,c);if(!l.length)return;const f=e.pendingIcons;f&&l.forEach(p=>{f.delete(p)}),zn(e,c)}catch(l){console.error(l)}Hn(e)})})}))}const Se=(e,t)=>{const n=Rn(e,!0,ft()),r=An(n);if(!r.pending.length){let c=!0;return t&&setTimeout(()=>{c&&t(r.loaded,r.missing,r.pending,Be)}),()=>{c=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(c=>{const{provider:l,prefix:f}=c;if(f===a&&l===i)return;i=l,a=f,s.push(R(l,f));const p=o[l]||(o[l]=Object.create(null));p[f]||(p[f]=[])}),r.pending.forEach(c=>{const{provider:l,prefix:f,name:p}=c,h=R(l,f),g=h.pendingIcons||(h.pendingIcons=new Set);g.has(p)||(g.add(p),o[l][f].push(p))}),s.forEach(c=>{const{provider:l,prefix:f}=c;o[l][f].length&&Dn(c,o[l][f])}),t?Ln(t,r,s):Be},Un=e=>new Promise((t,n)=>{const r=typeof e=="string"?B(e,!0):e;if(!r){n(e);return}Se([r||e],o=>{if(o.length&&r){const s=H(r);if(s){t({...U,...s});return}}n(e)})});function Bn(e){try{const t=typeof e=="string"?JSON.parse(e):e;if(typeof t.body=="string")return{...t}}catch{}}function Qn(e,t){const n=typeof e=="string"?B(e,!0,!0):null;if(!n){const s=Bn(e);return{value:e,data:s}}const r=H(n);if(r!==void 0||!n.prefix)return{value:e,name:n,data:r};const o=Se([n],()=>t(e,n,H(n)));return{value:e,name:n,loading:o}}function le(e){return e.hasAttribute("inline")}let kt=!1;try{kt=navigator.vendor.indexOf("Apple")===0}catch{}function Vn(e,t){switch(t){case"svg":case"bg":case"mask":return t}return t!=="style"&&(kt||e.indexOf("<a")===-1)?"svg":e.indexOf("currentColor")===-1?"bg":"mask"}const Wn=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Zn=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function xe(e,t,n){if(t===1)return e;if(n=n||100,typeof e=="number")return Math.ceil(e*t*n)/n;if(typeof e!="string")return e;const r=e.split(Wn);if(r===null||!r.length)return e;const o=[];let s=r.shift(),i=Zn.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*t*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const Gn=e=>e==="unset"||e==="undefined"||e==="none";function jt(e,t){const n={...U,...e},r={...ct,...t},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(m=>{const x=[],v=m.hFlip,k=m.vFlip;let b=m.rotate;v?k?b+=2:(x.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),x.push("scale(-1 1)"),o.top=o.left=0):k&&(x.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),x.push("scale(1 -1)"),o.top=o.left=0);let w;switch(b<0&&(b-=Math.floor(b/4)*4),b=b%4,b){case 1:w=o.height/2+o.top,x.unshift("rotate(90 "+w.toString()+" "+w.toString()+")");break;case 2:x.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:w=o.width/2+o.left,x.unshift("rotate(-90 "+w.toString()+" "+w.toString()+")");break}b%2===1&&(o.left!==o.top&&(w=o.left,o.left=o.top,o.top=w),o.width!==o.height&&(w=o.width,o.width=o.height,o.height=w)),x.length&&(s='<g transform="'+x.join(" ")+'">'+s+"</g>")});const i=r.width,a=r.height,c=o.width,l=o.height;let f,p;i===null?(p=a===null?"1em":a==="auto"?l:a,f=xe(p,c/l)):(f=i==="auto"?c:i,p=a===null?xe(f,l/c):a==="auto"?l:a);const h={},g=(m,x)=>{Gn(x)||(h[m]=x.toString())};return g("width",f),g("height",p),h.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+l.toString(),{attributes:h,body:s}}const Jn=()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}};let Y=Jn();function Yn(e){Y=e}function Xn(){return Y}function Kn(e,t){const n=ne(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=t+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function eo(e){return e===404}const to=(e,t,n)=>{const r=[],o=Kn(e,t),s="icons";let i={type:s,provider:e,prefix:t,icons:[]},a=0;return n.forEach((c,l)=>{a+=c.length+1,a>=o&&l>0&&(r.push(i),i={type:s,provider:e,prefix:t,icons:[]},a=c.length),i.icons.push(c)}),r.push(i),r};function no(e){if(typeof e=="string"){const t=ne(e);if(t)return t.path}return"/"}const oo=(e,t,n)=>{if(!Y){n("abort",424);return}let r=no(t.provider);switch(t.type){case"icons":{const s=t.prefix,a=t.icons.join(","),c=new URLSearchParams({icons:a});r+=s+".json?"+c.toString();break}case"custom":{const s=t.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;Y(e+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(eo(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},ro={prepare:to,send:oo};function Qe(e,t){switch(e){case"local":case"session":O[e]=t;break;case"all":for(const n in O)O[n]=t;break}}const ue="data-style";let It="";function so(e){It=e}function Ve(e,t){let n=Array.from(e.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(ue));n||(n=document.createElement("style"),n.setAttribute(ue,ue),e.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(t?"-0.125em":"0")+"}span,svg{display:block}"+It}function St(){qe("",ro),ft(!0);let e;try{e=window}catch{}if(e){if(vt(),e.IconifyPreload!==void 0){const n=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!_e(o))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const n=e.IconifyProviders;if(typeof n=="object"&&n!==null)for(const r in n){const o="IconifyProviders["+r+"] is invalid.";try{const s=n[r];if(typeof s!="object"||!s||s.resources===void 0)continue;Fe(r,s)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>Qe(n,!0),disableCache:n=>Qe(n,!1),iconExists:Tn,getIcon:Cn,listIcons:Sn,addIcon:dt,addCollection:_e,calculateSize:xe,buildIcon:jt,loadIcons:Se,loadIcon:Un,addAPIProvider:Fe,appendCustomStyle:so,_api:{getAPIConfig:ne,setAPIModule:qe,sendAPIQuery:gt,setFetch:Yn,getFetch:Xn,listAPIProviders:En}}}function Tt(e,t){let n=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in t)n+=" "+r+'="'+t[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+e+"</svg>"}function io(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function co(e){return"data:image/svg+xml,"+io(e)}function ao(e){return'url("'+co(e)+'")'}const we={"background-color":"currentColor"},Ct={"background-color":"transparent"},We={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Ze={"-webkit-mask":we,mask:we,background:Ct};for(const e in Ze){const t=Ze[e];for(const n in We)t[e+"-"+n]=We[n]}function Ge(e){return e?e+(e.match(/^[-0-9.]+$/)?"px":""):"inherit"}function lo(e,t,n){const r=document.createElement("span");let o=e.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const s=e.attributes,i=Tt(o,{...s,width:t.width+"",height:t.height+""}),a=ao(i),c=r.style,l={"--svg":a,width:Ge(s.width),height:Ge(s.height),...n?we:Ct};for(const f in l)c.setProperty(f,l[f]);return r}let F;function uo(){try{F=window.trustedTypes.createPolicy("iconify",{createHTML:e=>e})}catch{F=null}}function fo(e){return F===void 0&&uo(),F?F.createHTML(e):e}function po(e){const t=document.createElement("span"),n=e.attributes;let r="";n.width||(r="width: inherit;"),n.height||(r+="height: inherit;"),r&&(n.style=r);const o=Tt(e.body,n);return t.innerHTML=fo(o),t.firstChild}function Je(e,t){const n=t.icon.data,r=t.customisations,o=jt(n,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const s=t.renderedMode;let i;switch(s){case"svg":i=po(o);break;default:i=lo(o,{...U,...n},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 Ye(e,t,n){const r=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:t,icon:e,lastRender:r}}function ho(e="iconify-icon"){let t,n;try{t=window.customElements,n=window.HTMLElement}catch{return}if(!t||!n)return;const r=t.get(e);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],s=class extends n{constructor(){super();Q(this,"_shadowRoot");Q(this,"_state");Q(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),l=le(this);Ve(c,l),this._state=Ye({value:""},l),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const l=le(this),f=this._state;l!==f.inline&&(f.inline=l,Ve(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 le(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{}Je(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 f=this.getAttribute("mode"),p=Ee(this);(c.attrMode!==f||bn(c.customisations,p))&&this._renderIcon(c.icon,p,f)}_iconChanged(c){const l=Qn(c,(f,p,h)=>{const g=this._state;if(g.rendered||this.getAttribute("icon")!==f)return;const m={value:f,name:p,data:h};m.data?this._gotIconData(m):g.icon=m});l.data?this._gotIconData(l):this._state=Ye(l,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,Ee(this),this.getAttribute("mode"))}_renderIcon(c,l,f){const p=Vn(c.data.body,f),h=this._state.inline;Je(this._shadowRoot,this._state={rendered:!0,icon:c,inline:h,customisations:l,attrMode:f,renderedMode:p})}};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=St();for(const a in i)s[a]=s.prototype[a]=i[a];return t.define(e,s),s}ho()||St();const E=(e,t,n="children")=>e.map(r=>Array.isArray(r[n])?t({...r,[n]:E(r[n],t,n)}):t(r)),At=(e,t="children")=>{const n=[];return E(e,r=>n.push(r),t),n},Te=(e,t,n="children")=>e.map(r=>({...r})).filter(r=>{const o=r[n];if(Array.isArray(o)){const i=Te(o,t,n);r[n]=i!=null&&i.length?i:void 0}const s={filteredChildren:r[n],isLeaf:!(o!=null&&o.length)};return t(r,s)}),Pt=e=>/^https?:\/\//.test(e),go=e=>/^[\w-]+:[\w-]+$/.test(e),mo=e=>{if(!e||!(e!=null&&e.startsWith("/")))return!1;const t=o=>o.endsWith("/")?o:`${o}/`,n=t(window.location.pathname),r=t(new URL(e,window.location.origin).pathname);return n.startsWith(r)},Mt=(e=[])=>{const t=e.map((r,o)=>({path:r,index:o})).filter(r=>mo(r.path));return t!=null&&t.length?t.slice(1).reduce((r,o)=>r.path.length>=o.path.length?r:o,t[0]).index:-1};function Ce({icon:e,size:t,sx:n,...r}){const o=[...Array.isArray(n)?n:[n]];if(t&&o.push({width:t,height:t}),r.variant||o.push({"&.MuiAvatar-root":{color:"inherit",fontWeight:"bold",backgroundColor:"transparent",borderRadius:0},"&.MuiAvatar-root svg":{width:"100%",height:"100%"}}),Pt(e))return d.jsx(ie,{component:"span",...r,src:e,sx:o});if(go(e)){const s=t?.6*t+4:0;return d.jsx(ie,{component:"span",...r,sx:o,children:d.jsx(fe,{icon:e,height:s||void 0})})}return e&&typeof e=="string"?(o.push({"&.MuiAvatar-root":{display:"inline-flex",...t&&{fontSize:t-2}}}),d.jsx(ie,{component:"span",...r,sx:o,children:Array.from(e)[0]})):null}const yo=et();function oe({theme:e,children:t}){const n=e?et(e):yo;return d.jsx(Ht,{theme:n,children:t})}oe.propTypes={children:u.any.isRequired,theme:u.object};oe.defaultProps={theme:null};var Xe,Ke;const X=((Xe=window==null?void 0:window.blocklet)==null?void 0:Xe.groupPrefix)||((Ke=window==null?void 0:window.blocklet)==null?void 0:Ke.prefix)||"/",bo=e=>{const t={...e},n=e==null?void 0:e.background;return typeof n=="string"?t.background={header:n,footer:n,default:n}:n&&typeof n=="object"&&(t.background={header:n.header||n.default,footer:n.footer||n.default,default:n.default}),t},$=(e,t="en")=>{if(!(e!=null&&e.length))return e;const n=(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(Pt(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 E(e,o=>{var s;return{...o,title:n(o.title,t),link:(s=o.items)!=null&&s.length?o.link:r(o.link,t),_rawLink:o.link}},"items")},xo=e=>E(e,t=>t.role?{...t,role:Array.isArray(t.role)?t.role:[t.role]}:t,"items"),wo=e=>{if(!(e!=null&&e.length))return null;const t=xo(e),n={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[],userCenter:[]};return t.forEach(r=>{var o;r.section?Array.isArray(r.section)?r.section.forEach(s=>{var i;(i=n[s])==null||i.push(r)}):typeof r.section=="string"&&((o=n[r.section])==null||o.push(r)):n.header.push(r)}),n},Ae=e=>{if(!e)return null;const t={...e};return t.theme=bo(t.theme),t.navigation=wo(vo(t.navigation)),t},vo=(e=[])=>Te(e,(t,n)=>{var r;return!!t.link||((r=n.filteredChildren)==null?void 0:r.length)},"items"),Lt=(e,t)=>Te(e,(n,r)=>{var s;const o=!n.role||t&&n.role.includes(t);return r.isLeaf?o:o&&((s=r.filteredChildren)==null?void 0:s.length)},"items"),ko={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"/>'},jo={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 Pe({session:e,locale:t,size:n}){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(f=>c.component===f.name);return{...c,component:l}}),s=T.useRef(null),i=Dt({open:!1}),a=Ut((c=!i.open)=>{i.open=c});return o.length===0||!(e!=null&&e.user)?null:d.jsxs(d.Fragment,{children:[d.jsx(Bt,{size:"medium",ref:s,onClick:()=>a(),children:d.jsx(fe,{icon:ko,fontSize:n,style:{transform:"scale(1.08)"}})}),d.jsx(Qt,{open:i.open,onClose:()=>a(!1),anchorEl:s.current,transition:!0,placement:"bottom-end",sx:{zIndex:1600},children:({TransitionProps:c})=>d.jsx(Vt,{onClickAway:l=>{l.preventDefault(),l.stopPropagation(),a(!1)},children:d.jsx(Wt,{...c,timeout:350,children:d.jsxs(Zt,{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:[d.jsx(Gt,{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 f;return d.jsx(Jt,{disablePadding:!0,children:d.jsxs(Yt,{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:[(f=l==null?void 0:l.component)!=null&&f.did?d.jsx(P,{component:"img",src:`${Xt}/blocklet/logo-bundle/${l.component.did}`,sx:{borderRadius:2,width:50,height:50,objectFit:"contain"}}):d.jsx(fe,{fontSize:50,icon:l.icon||jo,color:A.textSubtitle}),d.jsx(Kt,{sx:{fontSize:"12px",color:A.textBase,textAlign:"center",lineHeight:"normal"},children:en(l.title,t)})]})},l.id)})}),d.jsx(tn,{session:e,children:d.jsx(nn,{variant:"outlined",fullWidth:!0,href:on,sx:{mt:1,borderRadius:2,color:A.textBase,borderColor:A.lineBorderStrong,"&:hover":{color:A.primaryBase,borderColor:A.primaryBase}},children:t==="zh"?"管理":"Manage"})})]})})})})]})}Pe.propTypes={session:u.object.isRequired,locale:u.string,size:u.number};Pe.defaultProps={locale:"en",size:24};const Rt=u.shape({appLogo:u.node,appName:u.string,theme:u.shape({background:u.string}),enableConnect:u.bool,enableLocale:u.bool,navigation:u.arrayOf(u.shape({title:u.oneOfType([u.string,u.object]),link:u.oneOfType([u.string,u.object]),icon:u.string,items:u.arrayOf(u.shape({title:u.oneOfType([u.string,u.object]),link:u.oneOfType([u.string,u.object])}))}))}),Nt=u.shape({showText:u.bool,showRole:u.bool,switchDid:u.bool,switchProfile:u.bool,switchPassport:u.bool,disableLogout:u.bool,onLogin:u.func,onLogout:u.func,onSwitchDid:u.func,onSwitchProfile:u.func,onSwitchPassport:u.func,menu:u.array,menuRender:u.func,dark:u.bool,size:u.number});function re({formattedBlocklet:e,addons:t,sessionManagerProps:n}){var h,g,m,x;const r=T.useContext(tt),{locale:o}=ee()||{},{enableConnect:s=!0,enableLocale:i=!0}=e,a=!!((h=r==null?void 0:r.session)!=null&&h.user);let c=$((g=e==null?void 0:e.navigation)==null?void 0:g.sessionManager,o)||[];c=Lt(c,(x=(m=r==null?void 0:r.session)==null?void 0:m.user)==null?void 0:x.role);const f=(()=>{if(t&&typeof t!="function")return Array.isArray(t)?t:[t];let v=[];if(i&&o&&v.push(d.jsx(rn,{showText:!1},"locale-selector")),s&&r){const k=[];a&&(c?c.slice(0,5):[]).forEach(w=>{k.push({label:w.title,icon:w.icon?d.jsx("iconify-icon",{icon:w.icon,height:24,style:{marginRight:8}}):null,component:"a",href:w.link,key:w.link})}),v.push(d.jsx(Pe,{session:r.session,locale:o},"session-blocklet")),v.push(d.jsx(sn,{session:r.session,locale:o,menu:k,showRole:!0,...n},"session-user"))}return typeof t=="function"&&(v=t(v)||[]),v})();return T.createElement(d.Fragment,null,...Array.isArray(f)?f:[f])}re.propTypes={formattedBlocklet:u.object.isRequired,addons:u.oneOfType([u.func,u.node]),sessionManagerProps:Nt};re.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const Ot=()=>{const e=cn();T.useEffect(()=>{e.wallet&&an.call("arcHideTopBar","{}")},[e])},Io=e=>{if(!(e!=null&&e.length))return{navItems:[],activeId:null};let t=1;const r=E(e,i=>{var l,f;const a=i.icon?d.jsx(Ce,{icon:i.icon}):null;if(i.items)return{id:`${t++}`,label:i.title,icon:a,children:i.items};let c={};return((l=i.link)!=null&&l.startsWith("http://")||(f=i.link)!=null&&f.startsWith("https://"))&&(c={target:"_blank",rel:"noreferrer"}),{id:`${t++}`,label:d.jsx("a",{href:i.link,...c,children:i.title}),icon:a,link:i.link}},"items"),o=At(r),s=Mt(o.map(i=>i.link));return{navItems:r,activeId:s>=0?o[s].id:null}};function So({meta:e={},addons:t,sessionManagerProps:n={showRole:!0},homeLink:r=X,theme:o,hideNavMenu:s=!1,...i}){var b,w;Ot();const{locale:a}=ee()||{},c=T.useMemo(()=>{const C=Object.assign({},window.blocklet,e);try{return Ae(C)}catch(j){return console.error("Failed to format blocklet info",j,C),C}},[e]);if(!c.appName)return null;const{appLogo:l,appLogoRect:f,theme:p}=c,h=$((b=c==null?void 0:c.navigation)==null?void 0:b.header,a),g=Io(h),{navItems:m,activeId:x}=g,v=typeof t=="function"?C=>t(C,{navigation:g}):t,k=d.jsx(re,{formattedBlocklet:c,addons:v,sessionManagerProps:n});return d.jsx(oe,{theme:o,children:d.jsx(To,{homeLink:r,logo:d.jsx("img",{src:f||l,alt:"logo"}),addons:k,...ot(i,["bordered"]),$bordered:i==null?void 0:i.bordered,$bgcolor:(w=p==null?void 0:p.background)==null?void 0:w.header,children:s||!(m!=null&&m.length)?null:({isMobile:C})=>d.jsx(un,{mode:C?"inline":"horizontal",activeId:x,items:m,className:"header-nav",bgColor:"transparent",textColor:"#777"})})})}const To=M(ln)`
12
- ${({$bgcolor:e})=>`background-color: ${e||"#fff"};`}
13
- font-family: Inter, Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif,
14
- 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
15
- .header-logo {
16
- min-width: 44px;
17
- }
18
- ${({$bordered:e})=>e?`border-bottom: 1px solid ${A.strokeSep};`:""}
19
- ${e=>e.theme.breakpoints.down("md")} {
20
- .header-logo {
21
- min-width: 32px;
22
- }
23
- }
24
- .header-nav {
25
- .navmenu-sub .navmenu-item {
26
- min-width: 80px;
27
- }
28
- }
29
- .header-nav.navmenu--horizontal {
30
- .navmenu-root > .navmenu-sub,
31
- .navmenu-root > .navmenu-item {
32
- padding: 16px 4px;
33
-
34
- .navmenu-sub-container {
35
- padding-top: 0;
36
- }
37
- }
38
- .navmenu-item-icon > .MuiAvatar-root,
39
- .navmenu-sub-icon > .MuiAvatar-root {
40
- width: 20px;
41
- height: 20px;
42
- }
43
- }
44
- `,Fo=nt(So,{FallbackComponent:rt});function Me({name:e,logo:t,description:n,...r}){if(!e&&!t&&!n)return null;const o=T.isValidElement(t)?t:d.jsx("img",{src:t,alt:e});return d.jsxs(Co,{...r,children:[d.jsxs("div",{children:[t&&d.jsx(P,{component:"a",href:"/",className:"footer-brand-logo",children:o}),e&&d.jsx("div",{className:"footer-brand-name",children:e})]}),n&&d.jsx("div",{className:"footer-brand-desc",children:n})]})}Me.propTypes={name:u.node,logo:u.node,description:u.string};Me.defaultProps={name:"",logo:"",description:""};const Co=M("div")`
45
- display: flex;
46
- flex-direction: column;
47
- font-size: 14px;
48
- a {
49
- text-decoration: none;
50
- color: inherit;
51
- }
52
- > div:first-of-type {
53
- display: flex;
54
- align-items: center;
55
- }
56
- .footer-brand-logo {
57
- display: flex;
58
- align-items: center;
59
- margin-right: 16px;
60
- line-height: 1;
61
- img,
62
- svg {
63
- width: auto;
64
- height: 44px;
65
- max-height: 44px;
66
- }
67
- }
68
- .footer-brand-name {
69
- font-size: 16px;
70
- font-weight: bold;
71
- }
72
- .footer-brand-desc {
73
- margin-top: 16px;
74
- }
75
-
76
- ${e=>e.theme.breakpoints.down("sm")} {
77
- width: auto;
78
- }
79
-
80
- ${e=>e.theme.breakpoints.down("md")} {
81
- .footer-brand-logo {
82
- img,
83
- svg {
84
- height: 32px;
85
- max-height: 32px;
86
- }
87
- }
88
- }
89
- `;function K({links:e,flowLayout:t,...n}){const[r,o]=T.useState(-1);if(!(e!=null&&e.length))return null;const s=e.some(a=>{var c;return(c=a.items)==null?void 0:c.length}),i=({label:a,link:c,icon:l,render:f,props:p})=>{let h=a;return f?h=f({label:a,link:c,props:p}):c&&(h=d.jsx("a",{href:c,"aria-label":`Footer link for ${a}`,...p,children:a})),d.jsxs(d.Fragment,{children:[l&&d.jsx(Ce,{icon:l,size:20,sx:{mr:.5}}),h]})};return d.jsx(Ao,{...n,className:de(n.className,{"footer-links--grouped":s,"footer-links--flow":t}),children:d.jsxs("div",{className:"footer-links-inner",children:[t&&e.map((a,c)=>d.jsx("span",{className:"footer-links-item",children:i(a)},c)),!t&&e.map((a,c)=>{const{items:l}=a,f=c===r;return d.jsxs("div",{className:de("footer-links-group",{"footer-links-group--active":f}),onClick:()=>o(r===c?-1:c),children:[d.jsxs("span",{className:"footer-links-item",children:[i(a),!!(l!=null&&l.length)&&d.jsx("span",{className:"footer-links-group-expand-icon",children:d.jsx(pn,{style:{transform:`rotate(${f?180:0}deg)`}})})]}),!!(l!=null&&l.length)&&d.jsx("div",{className:"footer-links-sub",children:l.map((p,h)=>d.jsx("span",{className:"footer-links-item",children:i(p)},h))})]},c)})]})})}K.propTypes={links:u.arrayOf(u.shape({label:u.string,link:u.string,render:u.func,props:u.object})),flowLayout:u.bool};K.defaultProps={links:[],flowLayout:!1};const Ao=M("div")`
90
- overflow: hidden;
91
- color: ${e=>e.theme.palette.grey[600]};
92
- .footer-links-inner {
93
- display: flex;
94
- justify-content: space-between;
95
- margin: 0 -8px;
96
- }
97
- .footer-links-group,
98
- .footer-links-sub {
99
- display: flex;
100
- flex-direction: column;
101
- }
102
- .footer-links-sub .footer-links-item {
103
- color: ${e=>e.theme.palette.grey[900]};
104
- }
105
- .footer-links-group-expand-icon {
106
- display: none;
107
- position: absolute;
108
- right: 16px;
109
- top: 50%;
110
- transform: translate(0, -50%);
111
- line-height: 1;
112
- svg {
113
- width: auto;
114
- height: 0.75em;
115
- }
116
- }
117
- .footer-links-item {
118
- display: inline-flex;
119
- align-items: center;
120
- position: relative;
121
- padding: 4px 8px;
122
- font-size: 14px;
123
- }
124
- &.footer-links--grouped {
125
- .footer-links-group {
126
- > .footer-links-item {
127
- font-weight: bold;
128
- }
129
- .footer-links-sub {
130
- margin-top: 8px;
131
- }
132
- }
133
- }
134
- a {
135
- display: inline-block;
136
- max-width: 150px;
137
- color: inherit;
138
- text-decoration: none;
139
- &:hover {
140
- text-decoration: underline;
141
- }
142
- }
143
-
144
- &.footer-links--flow {
145
- display: inline-flex;
146
- .footer-links-inner {
147
- justify-content: center;
148
- flex-wrap: wrap;
149
- margin: 0 -8px;
150
- .footer-links-item {
151
- padding: 0 8px;
152
- }
153
- .footer-links-item + .footer-links-item::before {
154
- content: '';
155
- position: absolute;
156
- left: 0;
157
- top: 50%;
158
- transform: translate(0, -50%);
159
- height: 1em;
160
- border-left: 1px solid ${e=>e.theme.palette.grey[400]};
161
- }
162
- }
163
- }
164
-
165
- ${e=>e.theme.breakpoints.down("md")} {
166
- .footer-links-inner {
167
- flex-direction: column;
168
- margin: 0;
169
- }
170
- .footer-links-sub {
171
- display: none;
172
- }
173
- .footer-links-group {
174
- position: relative;
175
- padding: 12px 0;
176
- .footer-links-item .footer-links-group-expand-icon {
177
- display: inline-block;
178
- }
179
- }
180
- .footer-links-group + .footer-links-group {
181
- border-top: 1px solid ${e=>e.theme.palette.grey[200]};
182
- }
183
- .footer-links-group--active {
184
- .footer-links-sub {
185
- display: flex;
186
- flex-direction: row;
187
- flex-wrap: wrap;
188
- .footer-links-item {
189
- flex: 0 0 50%;
190
- }
191
- }
192
- }
193
- .footer-links-item {
194
- padding-left: 0;
195
- padding-right: 0;
196
- font-size: 13px;
197
- }
198
- &.footer-links--grouped {
199
- .footer-links-group {
200
- > .footer-links-item {
201
- font-size: 14px;
202
- }
203
- }
204
- }
205
-
206
- &.footer-links--flow {
207
- .footer-links-inner {
208
- flex-direction: row;
209
- }
210
- }
211
- }
212
- `;function Le({items:e,...t}){const n=fn();return e!=null&&e.length?d.jsx(Po,{...t,children:e.map((r,o)=>d.jsx("a",{href:r.link,target:"_blank","aria-label":`Social media icon${r.title?` for ${r.title}`:""}`,rel:"noreferrer",children:d.jsx(Ce,{icon:r.icon||r.title,sx:{bgcolor:n.palette.grey[600],color:"#fff"},size:24,component:"span"})},o))}):null}Le.propTypes={items:u.arrayOf(u.shape({icon:u.string,link:u.string}))};Le.defaultProps={items:null};const Po=M("div")`
213
- display: inline-flex;
214
- flex-wrap: wrap;
215
- align-items: center;
216
- justify-content: center;
217
- gap: 20px;
218
- a {
219
- color: ${e=>e.theme.palette.grey[400]};
220
- text-decoration: none;
221
- &:hover {
222
- color: ${e=>e.theme.palette.primary.light};
223
- }
224
- }
225
- ${e=>e.theme.breakpoints.down("md")} {
226
- gap: 12px;
227
- }
228
- `;function Re({owner:e,year:t,...n}){return d.jsxs(Mo,{...n,children:["Copyright © ",t," ",e]})}Re.propTypes={owner:u.string,year:u.string};Re.defaultProps={owner:"ArcBlock",year:`${new Date().getFullYear()}`};const Mo=M("p")`
229
- display: flex;
230
- align-items: center;
231
- margin: 0;
232
- font-size: 13px;
233
- `;function se({children:e,autoCenter:t,...n}){return e?d.jsx(Lo,{...n,className:de(n.className,{"footer-row-auto-center":t}),children:e}):null}se.propTypes={children:u.any,autoCenter:u.bool};se.defaultProps={children:null,autoCenter:!1};const Lo=M(P)`
234
- display: flex;
235
- justify-content: space-between;
236
- & + & {
237
- margin-top: 24px;
238
- }
239
- &.footer-row-auto-center > *:only-child {
240
- margin: 0 auto;
241
- }
242
-
243
- ${e=>e.theme.breakpoints.down("md")} {
244
- align-items: stretch;
245
- flex-direction: column;
246
- gap: 16px;
247
- > * {
248
- flex: 1 0 100%;
249
- }
250
- &.footer-row-auto-center > * {
251
- margin: 0 auto;
252
- }
253
- }
254
- `;function Et({elements:e,data:t,...n}){var r;return d.jsx(Ro,{...n,children:d.jsxs(st,{children:[d.jsxs(P,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},justifyContent:"space-between",alignItems:{xs:"center",md:"space-between"},gap:2,pb:3},children:[d.jsx(P,{children:e.brand}),d.jsx(P,{lineHeight:1,children:e.socialMedia})]}),!!((r=t.navigation)!=null&&r.length)&&d.jsx(P,{sx:{mb:6,pt:3,borderTop:1,borderColor:"grey.200"},children:e.navigation}),d.jsxs(se,{sx:{pt:3,borderTop:1,borderColor:"grey.200"},autoCenter:!0,children:[e.copyright,e.links]})]})})}Et.propTypes={elements:u.shape({brand:u.element,navigation:u.element,socialMedia:u.element,copyright:u.element,links:u.element}).isRequired,data:u.object.isRequired};const Ro=M("div")`
255
- padding: 32px 0 24px 0;
256
- .footer-brand-name,
257
- .footer-brand-desc {
258
- display: none;
259
- }
260
- && .footer-brand-logo {
261
- margin-right: 0;
262
- }
263
- `;function $t({elements:e,data:t,...n}){return d.jsx(No,{...n,children:d.jsxs(st,{className:"plain-layout-container",children:[!!t.links&&d.jsxs(se,{sx:{width:1},autoCenter:!0,children:[e.copyright,e.links]}),!t.links&&d.jsxs(d.Fragment,{children:[T.cloneElement(e.brand,{name:null,description:null}),e.copyright]})]})})}$t.propTypes={elements:u.shape({brand:u.element,navigation:u.element,socialMedia:u.element,copyright:u.element,links:u.element}).isRequired,data:u.object.isRequired};const No=M("div")`
264
- padding: 24px 0;
265
- .plain-layout-container {
266
- display: flex;
267
- justify-content: space-between;
268
- align-items: center;
269
- flex-wrap: wrap;
270
- gap: 8px;
271
- }
272
- `,_t=[{name:"plain",support:(e,t)=>{var n,r;return!((n=t.navigation)!=null&&n.length)&&!((r=t.socialMedia)!=null&&r.length)},component:$t},{name:"standard",support:()=>!0,component:Et}],Oo=_t.reduce((e,t)=>({...e,[t.name]:t}),{});function Ne(e){var x,v;const{brand:t,navigation:n,socialMedia:r,copyright:o,links:s,layout:i,...a}=e,c=()=>t?d.jsx(Me,{...t}):null,l=()=>n!=null&&n.length?d.jsx(K,{links:n}):null,f=()=>r!=null&&r.length?d.jsx(Le,{items:r}):null,p=()=>{const k=(o==null?void 0:o.owner)||(t==null?void 0:t.name);return k?d.jsx(Re,{owner:k,year:(o==null?void 0:o.year)||void 0}):null},h=()=>s!=null&&s.length?d.jsx(K,{flowLayout:!0,links:s}):null,g={brand:c(),navigation:l(),socialMedia:f(),copyright:p(),links:h()};let m=null;if(i==="auto"?m=_t.find(k=>k.support(g,e)).component:m=(x=Oo[i])==null?void 0:x.component,!m)throw new Error(`layout ${i} is not supported.`);return d.jsxs(P,{position:"relative",...a,children:[d.jsx(m,{elements:g,data:e}),d.jsx(P,{position:"absolute",right:16,bottom:0,fontSize:12,sx:{color:"transparent","::selection":{background:"#000",color:"#fff"}},children:(v=window==null?void 0:window.blocklet)==null?void 0:v.version})]})}Ne.propTypes={brand:u.shape({name:u.node,description:u.string,logo:u.node}),navigation:u.arrayOf(u.shape({label:u.node,link:u.string})),socialMedia:u.arrayOf(u.shape({icon:u.node,link:u.string})),copyright:u.shape({owner:u.string,year:u.oneOfType([u.string,u.number])}),links:u.arrayOf(u.shape({label:u.node,link:u.string})),layout:u.oneOf(["auto","standard","plain"])};Ne.defaultProps={brand:null,navigation:null,copyright:null,socialMedia:null,links:null,layout:"auto"};function Oe({meta:e,theme:t,...n}){var m,x,v,k;const{locale:r}=ee()||{},o=T.useMemo(()=>{const b=Object.assign({},window.blocklet,e);try{return Ae(b)}catch(w){return console.error("Failed to format blocklet info",w,b),b}},[e]);if(!o.appName)return null;const{appLogo:s,appLogoRect:i,appName:a,appDescription:c,description:l,theme:f,copyright:p}=o,h={footerNav:$((m=o==null?void 0:o.navigation)==null?void 0:m.footer,r)||[],socialMedia:$((x=o==null?void 0:o.navigation)==null?void 0:x.social,r)||[],links:$((v=o==null?void 0:o.navigation)==null?void 0:v.bottom,r)||[]},g={brand:{name:a,description:c||l,logo:i||s},navigation:E(h.footerNav,b=>({...b,label:b.title,link:b.link}),"items"),copyright:p,socialMedia:h.socialMedia,links:h.links.map(b=>({...b,label:b.title}))};return d.jsx(oe,{theme:t,children:d.jsx(Eo,{...g,...ot(n,["bordered"]),$bordered:n==null?void 0:n.bordered,$bgcolor:(k=f==null?void 0:f.background)==null?void 0:k.footer})})}Oe.propTypes={meta:Rt,theme:u.object};Oe.defaultProps={meta:{},theme:null};const Eo=M(Ne)`
273
- ${({$bordered:e})=>`border-top: 1px solid ${e?A.strokeSep:"#eee"};`}
274
- color: ${e=>e.theme.palette.grey[600]};
275
- ${({$bgcolor:e})=>e&&`background-color: ${e};`}
276
- font-family: Inter, Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif,
277
- 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
278
- `,zo=nt(Oe,{FallbackComponent:rt});function qt({meta:e,fallbackUrl:t,invalidPathFallback:n,headerAddons:r,sessionManagerProps:o,links:s,...i}){var C;Ot();const a=T.useContext(tt),c=(C=a==null?void 0:a.session)==null?void 0:C.user,l=c==null?void 0:c.role,{locale:f}=ee()||{},p=T.useMemo(()=>{const j=Object.assign({},window.blocklet,e);try{return Ae(j)}catch(y){return console.error("Failed to format blocklet info",y,j),j}},[e]),{localizedNav:h,flattened:g,matchedIndex:m}=T.useMemo(()=>{var L;let j=$((L=p==null?void 0:p.navigation)==null?void 0:L.dashboard,f)||[];j=Lt(j,l),j=E(j,S=>({title:S.title,url:S.link,icon:S.icon?d.jsx("iconify-icon",{height:"100%",width:"100%",icon:S.icon}):null,external:!0,children:S.items}),"items");const y=At(j).filter(S=>!!S.url),I=Mt(y.map(S=>S.url));return I!==-1&&(y[I].active=!0),{localizedNav:j,flattened:y,matchedIndex:I}},[p,f,l]),x=typeof s=="function"?s(h):[...h,...s];if(T.useLayoutEffect(()=>{c&&!(g!=null&&g.length)&&t&&(window.location.href=t)},[t]),T.useLayoutEffect(()=>{c&&(g!=null&&g.length)&&m===-1&&n&&n()},[n,g,m]),!p.appName)return null;const{appLogo:v,appLogoRect:k,appName:b}=p,w=d.jsx(re,{formattedBlocklet:p,addons:r,sessionManagerProps:o});return d.jsx(dn,{title:b,fullWidth:!0,sidebarWidth:128,legacy:!1,links:x,...i,headerProps:{homeLink:X,logo:d.jsx("img",{src:k||v,alt:"logo"}),addons:w,...i.headerProps}})}qt.propTypes={meta:Rt,fallbackUrl:u.string,invalidPathFallback:u.func,headerAddons:u.oneOfType([u.func,u.node]),sessionManagerProps:Nt,links:u.oneOfType([u.array,u.func])};qt.defaultProps={meta:{},fallbackUrl:X,invalidPathFallback:null,headerAddons:void 0,sessionManagerProps:{showRole:!0,onLogout:()=>{window.location.href=X}},links:[]};export{qt as D,zo as F,Fo as H};
@@ -1 +0,0 @@
1
- import{u as d,j as o,C as f,z as h,aw as v,ch as C,ci as u,O as j,bl as I,ae as P,F as R}from"./index-ZGnAW8k-.js";import{I as S}from"./invitation-DxXG7nra.js";import"./index-DbPVOvSO.js";import"./index-C1yo1XnB.js";import"./CheckCircle-SQxexLA6.js";import"./wrap-locale-BSVVLHW0.js";function k(n){const{searchParams:i}=new URL(window.location.href),l=h(),{api:a,session:r}=v(),{info:g}=d(),c=i.get("redirect"),p=i.get("id"),s=C(async()=>{if(!p)return null;const{data:e}=await a.get("/api/invitation",{params:{inviteId:p,mode:"issue-passport"}});return e}),m=u(()=>{if(s.error)throw s.error;return s==null?void 0:s.data}),w=u(async(e,x=t=>t)=>{e&&(e.sessionToken&&P(x(e.sessionToken)),await r.refresh()),setTimeout(()=>{if(c){const t=decodeURIComponent(c);t.startsWith(R.WELLKNOWN_SERVICE_PATH_PREFIX)?l(t,{replace:!0}):window.location=t}else window.location=window.env.pathPrefix||"/"},50)});return s.loading?o.jsx(f,{}):o.jsx(j,{className:"page-invite",sx:{width:"100vw",height:"100%",minHeight:"100vh",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"#f6f8fa",overflow:"auto",padding:"20px"},children:o.jsx(S,{...n,action:"issue-passport",getDataFn:m,createPassportSvg:e=>I(e,g),checkFn:a.get,onLoginSuccess:w,passportColor:"default",onLogin:r.login})})}function W(){return d().loading?o.jsx(f,{}):o.jsx(k,{})}export{W as default};
@@ -1 +0,0 @@
1
- import{P as i,j as t,B as s,gi as r}from"./index-ZGnAW8k-.js";function n({children:e,...o}){return t.jsxs(s,{color:"did",variant:"contained",...o,children:[t.jsx("span",{style:{fontWeight:400},children:e||"Continue With"}),t.jsx(r,{style:{width:"auto",height:"1.2em",margin:"0 4px 0 8px"}})]})}n.propTypes={children:i.any};n.defaultProps={children:""};export{n as C};