@abtnode/blocklet-services 1.16.43-beta-20250424-125523-08a65a5c → 1.16.43-beta-20250427-132304-6da95c55

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 (206) hide show
  1. package/api/routes/oauth/client.js +2 -0
  2. package/api/routes/oauth/server.js +75 -0
  3. package/api/routes/user-session.js +5 -5
  4. package/api/routes/user.js +3 -2
  5. package/api/services/auth/session.js +23 -35
  6. package/api/services/oauth/server.js +31 -1
  7. package/api/util/attach-shared-utils.js +2 -2
  8. package/dist/assets/{AdapterDayjs-DT-SVlwP.js → AdapterDayjs-BUGplkxR.js} +1 -1
  9. package/dist/assets/{ArrowDropDown-D0s0w2rW.js → ArrowDropDown-B0sLkJoY.js} +1 -1
  10. package/dist/assets/{CheckCircle-BMPTHnwd.js → CheckCircle-BNrN9mgy.js} +1 -1
  11. package/dist/assets/{ChevronLeft-BV65HBup.js → ChevronLeft-Dq00IS01.js} +1 -1
  12. package/dist/assets/{ChevronRight-CSrWhu1k.js → ChevronRight-ZTqWK-Ga.js} +1 -1
  13. package/dist/assets/{Community-B6sqs6QK.js → Community-DZCTPNMP.js} +1 -1
  14. package/dist/assets/{DeleteOutline-BwlJCwaD.js → DeleteOutline-C2sY6hfm.js} +1 -1
  15. package/dist/assets/{Done-ClKUqna8.js → Done-JLiLhELm.js} +1 -1
  16. package/dist/assets/{Download-DydXtD3g.js → Download-Ch4RfGRW.js} +1 -1
  17. package/dist/assets/{Edit-Cydc64DB.js → Edit-CY6fFHQM.js} +1 -1
  18. package/dist/assets/{EditIcon-B3vzcBhw.js → EditIcon-Bi2cR-_u.js} +1 -1
  19. package/dist/assets/{Email-DscM5ZVr.js → Email-Dz2Eyqu0.js} +1 -1
  20. package/dist/assets/{Error-BUxloyCF.js → Error-CSFUqG0m.js} +1 -1
  21. package/dist/assets/{ExpandLess-D3psCjh2.js → ExpandLess-BiMmSOBl.js} +1 -1
  22. package/dist/assets/{Google-nw2S1BAe.js → Google-GOp5YvmZ.js} +1 -1
  23. package/dist/assets/{Holiday-COvP72sQ.js → Holiday-Lc6woG1j.js} +1 -1
  24. package/dist/assets/{InfoOutlined-K2cm3ASV.js → InfoOutlined-CQB5qKm-.js} +1 -1
  25. package/dist/assets/{Launch-DSlNzUJo.js → Launch-fxgQvk19.js} +1 -1
  26. package/dist/assets/{LaunchOutlined-DB41H1FZ.js → LaunchOutlined-BV4_W1pb.js} +1 -1
  27. package/dist/assets/{Location-DSdE-EW4.js → Location-B8EOY3d0.js} +1 -1
  28. package/dist/assets/{LockIcon-Yic1ETPw.js → LockIcon-fuTfhB_G.js} +1 -1
  29. package/dist/assets/{Meeting-DlfumstQ.js → Meeting-Epdyx36z.js} +1 -1
  30. package/dist/assets/{MoreHoriz-BWdkQIhx.js → MoreHoriz-CX_pwfPT.js} +1 -1
  31. package/dist/assets/{OffSick-CG2hJbSq.js → OffSick-VYgugWxu.js} +1 -1
  32. package/dist/assets/{Phone-DkIl-1KJ.js → Phone-KP65huHK.js} +1 -1
  33. package/dist/assets/{PlayArrow-DfQEcw-G.js → PlayArrow-DFH1Psjx.js} +1 -1
  34. package/dist/assets/{QuestionMarkCircle-TVw9KuLr.js → QuestionMarkCircle-p6m3avKp.js} +1 -1
  35. package/dist/assets/{ServerLogo-DQ3yw9lw.js → ServerLogo-Bssx1Eou.js} +1 -1
  36. package/dist/assets/{Timezone-B77bSXNW.js → Timezone-Ce4E1Xey.js} +1 -1
  37. package/dist/assets/{TuneOutlined-8KrrUCQF.js → TuneOutlined-Dy2qPFGI.js} +1 -1
  38. package/dist/assets/{ViewList-Bql1EC1c.js → ViewList-e3CoNi3K.js} +1 -1
  39. package/dist/assets/{WorkingRemotely-DNUERtUR.js → WorkingRemotely-CXFJ6pz8.js} +1 -1
  40. package/dist/assets/{access-control-Bcd_n74E.js → access-control-B20P1UrY.js} +1 -1
  41. package/dist/assets/{actions-f0wKxzR1.js → actions-DA-6s_nQ.js} +1 -1
  42. package/dist/assets/{add-component-core-BUAlsG4_.js → add-component-core-DG9mQFsr.js} +1 -1
  43. package/dist/assets/{add-resource-Djfsmv61.js → add-resource-BoS5YkVy.js} +1 -1
  44. package/dist/assets/{addon-BkBy38_b.js → addon-Bcc-Xwbf.js} +1 -1
  45. package/dist/assets/{advanced-BPM38tnR.js → advanced-DTe2fs5L.js} +1 -1
  46. package/dist/assets/{appearance-DUNDV_8X.js → appearance-DYi32tlk.js} +1 -1
  47. package/dist/assets/{ar-wbCXBm9M.js → ar-CmhpkjwX.js} +1 -1
  48. package/dist/assets/{ar-BNaEJSr3.js → ar-DupP3pla.js} +1 -1
  49. package/dist/assets/{audit-logs-ClIsZeWB.js → audit-logs-CydL26ZC.js} +2 -2
  50. package/dist/assets/{authorize-Czqr5dx0.js → authorize-DUyL7MEU.js} +1 -1
  51. package/dist/assets/{base32-CXHhcaAE.js → base32-p9VcJrwv.js} +1 -1
  52. package/dist/assets/{branding-CDVXldZI.js → branding-CAMtNLMU.js} +1 -1
  53. package/dist/assets/{branding-Dr6iifVv.js → branding-_VO2ZZ3t.js} +2 -2
  54. package/dist/assets/{bundle-avatar-CXZCyfoQ.js → bundle-avatar-D0t7RLGx.js} +1 -1
  55. package/dist/assets/button-BeZibzB9.js +1 -0
  56. package/dist/assets/{click-to-copy-CYn1U-tf.js → click-to-copy-BGyXQL2i.js} +1 -1
  57. package/dist/assets/{complete-C-F4GC22.js → complete-BzCBoyhn.js} +1 -1
  58. package/dist/assets/{component-DsEe2qX3.js → component-5gjaNHCg.js} +1 -1
  59. package/dist/assets/{config-DYPbZpg_.js → config-1xq1_d84.js} +1 -1
  60. package/dist/assets/{config-A_My2cMO.js → config-Bh19ZUJ-.js} +1 -1
  61. package/dist/assets/{config-navigation-Bi-pxL5K.js → config-navigation-Dvjz9nAh.js} +3 -3
  62. package/dist/assets/{config-space-DVjhjgJC.js → config-space-CYg-72ab.js} +1 -1
  63. package/dist/assets/{confirm-BshZuFnD.js → confirm-DqvNmeoz.js} +1 -1
  64. package/dist/assets/{connect-BPsVsyF2.js → connect-Bbc2y5nS.js} +1 -1
  65. package/dist/assets/{connect-DQxK32G8.js → connect-DM2xKEWk.js} +1 -1
  66. package/dist/assets/{connect-to-DXXf0Nkb.js → connect-to-Ck5O2M1K.js} +1 -1
  67. package/dist/assets/{content-layout-AHDEW7YQ.js → content-layout-BPaAeaMQ.js} +1 -1
  68. package/dist/assets/{dashboard-CCzZLCC4.js → dashboard-8QXGSoVu.js} +3 -3
  69. package/dist/assets/{de-8GAnQkrt.js → de-Doy9B4I7.js} +1 -1
  70. package/dist/assets/{de-BsZVQmUM.js → de-TcDcBkI0.js} +1 -1
  71. package/dist/assets/{delete-confirm-DuoSMgmG.js → delete-confirm-_BzUlhv2.js} +1 -1
  72. package/dist/assets/{did-address-Cg-ez88b.js → did-address-DUThaBlf.js} +1 -1
  73. package/dist/assets/domain-action-card-D3w6jyPR.js +24 -0
  74. package/dist/assets/domain-ag7_Ivc1.js +9 -0
  75. package/dist/assets/domains-BDxEOJh6.js +1 -0
  76. package/dist/assets/{dot-tsWWWiOg.js → dot-BE1YP292.js} +1 -1
  77. package/dist/assets/{email-DWoydsl3.js → email-DKpgximx.js} +1 -1
  78. package/dist/assets/{empty-spinner-D_1iEwTc.js → empty-spinner-DmDm8XzF.js} +1 -1
  79. package/dist/assets/{es-ntlJbt-a.js → es-CDD0y3ur.js} +1 -1
  80. package/dist/assets/{es-DsjXdm2X.js → es-CruF8tDk.js} +1 -1
  81. package/dist/assets/{exchange-passport-DysHnVpr.js → exchange-passport-Izkf8qpM.js} +1 -1
  82. package/dist/assets/{fr-B-64BlVz.js → fr-Bajh_D8H.js} +1 -1
  83. package/dist/assets/{fr-Bv4B0MVB.js → fr-zYSSKlBw.js} +1 -1
  84. package/dist/assets/{fuel-TLPi2Hr-.js → fuel-CcBzY6Bt.js} +1 -1
  85. package/dist/assets/{gen-access-key-D4caSeDS.js → gen-access-key-DxKwgiGT.js} +1 -1
  86. package/dist/assets/{get-safe-url-Bz4L9R5-.js → get-safe-url-Bq9SFfX6.js} +1 -1
  87. package/dist/assets/{get-safe-url-Dex6FTwp.js → get-safe-url-DBsPGn--.js} +1 -1
  88. package/dist/assets/hi-BsP-0YrU.js +5 -0
  89. package/dist/assets/{hi-CY-kyCxp.js → hi-DOsApYK0.js} +1 -1
  90. package/dist/assets/{home-CBFACtB_.js → home-Bi8fA3jh.js} +1 -1
  91. package/dist/assets/{id-BT_84X-S.js → id-BderyGO5.js} +1 -1
  92. package/dist/assets/{id-DZBgOnwF.js → id-CY2FWdMB.js} +1 -1
  93. package/dist/assets/{iframe-B4jzt2b3.js → iframe-DZ181i8X.js} +1 -1
  94. package/dist/assets/{index-BplAimRX.js → index-B2yOcqTl.js} +2 -2
  95. package/dist/assets/{index-CSARD20E.js → index-BGgGfqEc.js} +1 -1
  96. package/dist/assets/{index-BG5LYRZd.js → index-BT0GBmWF.js} +1 -1
  97. package/dist/assets/{index-B0-4M8vb.js → index-B_vrglsK.js} +1 -1
  98. package/dist/assets/{index-BOEhBltr.js → index-BnmeT4Bk.js} +1 -1
  99. package/dist/assets/{index-CGe7n5Gc.js → index-C8QMe2NL.js} +2 -2
  100. package/dist/assets/{index-ARVZ7FJv.js → index-CGBZONPv.js} +1 -1
  101. package/dist/assets/{index-BowdADDJ.js → index-CHbpkZwO.js} +1 -1
  102. package/dist/assets/{index-NRj7GpkA.js → index-Cjjg2_Xp.js} +1 -1
  103. package/dist/assets/{index-Cks6t9cs.js → index-DKhrYmrN.js} +1 -1
  104. package/dist/assets/index-DNG6b9sp.js +224 -0
  105. package/dist/assets/{index-CVvs-hHV.js → index-DO3_1y-L.js} +15 -15
  106. package/dist/assets/{index-DPpP2Hz6.js → index-DO4cSlUf.js} +1 -1
  107. package/dist/assets/{index-DomukIqT.js → index-DcBUShKK.js} +1 -1
  108. package/dist/assets/{index-BXkEM7e9.js → index-Dl4W1N74.js} +1 -1
  109. package/dist/assets/{index-DO1hKTlI.js → index-DuH8q5ir.js} +1 -1
  110. package/dist/assets/{index-C3f1mXja.js → index-DyxFC42L.js} +3 -3
  111. package/dist/assets/{index-MbAvBCGD.js → index-EnQ254k3.js} +1 -1
  112. package/dist/assets/{index-Bdp7LpPc.js → index-SDdS_qt8.js} +1 -1
  113. package/dist/assets/{index-DKq7-33g.js → index-bb90BUf4.js} +2 -2
  114. package/dist/assets/{index-CU8fxqsS.js → index-mDKG4SiY.js} +1 -1
  115. package/dist/assets/index-n0Q-fETi.js +99 -0
  116. package/dist/assets/{index-3r4UtN8A.js → index-slEV_y-C.js} +1 -1
  117. package/dist/assets/{invitation-7bE4cIXB.js → invitation-BrAZQXQL.js} +1 -1
  118. package/dist/assets/{invite-COQN-rNg.js → invite-Cbz8B2uW.js} +1 -1
  119. package/dist/assets/{issue-passport-11S7tmQW.js → issue-passport-Dd_yyO08.js} +1 -1
  120. package/dist/assets/{item-BeeQ2vgS.js → item-nK3D7WH5.js} +1 -1
  121. package/dist/assets/{ja-BMmtgJml.js → ja-99RIjwwl.js} +1 -1
  122. package/dist/assets/{ja-8jRYJGVw.js → ja-BLPXqHM4.js} +1 -1
  123. package/dist/assets/{ko-ChmGYnnx.js → ko-8oFi6wHH.js} +1 -1
  124. package/dist/assets/{ko-C4pbuwv8.js → ko-Cxgk34co.js} +1 -1
  125. package/dist/assets/{landing-page-DfhVYZ3b.js → landing-page-BMM_oJb1.js} +1 -1
  126. package/dist/assets/{launch-result-message-CCo4xyOd.js → launch-result-message-C9huWJUf.js} +1 -1
  127. package/dist/assets/{layout-DToDlHEw.js → layout-Cw-hwCHs.js} +1 -1
  128. package/dist/assets/{list-ChvGKHw5.js → list-Dmtz4mRb.js} +1 -1
  129. package/dist/assets/{list-header-C7I2nEkf.js → list-header-CgF1S4js.js} +1 -1
  130. package/dist/assets/localization-DATb3Y_j.js +1 -0
  131. package/dist/assets/{log-DwhNr5TA.js → log-Chqr_or_.js} +1 -1
  132. package/dist/assets/{logger-DwVuCvCH.js → logger-zix81YaM.js} +1 -1
  133. package/dist/assets/{login-_FUfsuwA.js → login-DjB23H9M.js} +1 -1
  134. package/dist/assets/{login-oauth-callback-BfAWMSC0.js → login-oauth-callback-ILeP59KT.js} +1 -1
  135. package/dist/assets/{logo-uploader-CYJXgjdA.js → logo-uploader-CJrdpVcQ.js} +3 -3
  136. package/dist/assets/{lost-passport-bl0QaFCp.js → lost-passport-Do1Pl0xI.js} +1 -1
  137. package/dist/assets/{open-window-BTH_1q7i.js → open-window-D8MZhu_7.js} +1 -1
  138. package/dist/assets/{overview-D4gQwSex.js → overview-DLA9wj6a.js} +1 -1
  139. package/dist/assets/{page-header-DWEFpJCI.js → page-header-CWY8mxlT.js} +1 -1
  140. package/dist/assets/{passport-item-Z9x6DkU5.js → passport-item-CWtlyIE_.js} +1 -1
  141. package/dist/assets/{permission-CDRSpazM.js → permission-BGM09622.js} +1 -1
  142. package/dist/assets/{preferences-Dck4NebC.js → preferences-DYdbb0kG.js} +1 -1
  143. package/dist/assets/{profile-embed-CJdf2c_q.js → profile-embed-CeEMHxEc.js} +1 -1
  144. package/dist/assets/pt-BINIHul4.js +5 -0
  145. package/dist/assets/{pt-DjThuHre.js → pt-ChXuTrrd.js} +1 -1
  146. package/dist/assets/publish-resource-BEc_A5mC.js +1 -0
  147. package/dist/assets/{react-beautiful-dnd.esm-CP-WHcip.js → react-beautiful-dnd.esm-ByydTUk4.js} +1 -1
  148. package/dist/assets/{relative-time-4f6xdgg-.js → relative-time-Djw-K4Zu.js} +1 -1
  149. package/dist/assets/ru-BifF7u-P.js +5 -0
  150. package/dist/assets/{ru-CI1dkyMC.js → ru-IkTTTY0K.js} +1 -1
  151. package/dist/assets/{runtime-r0b7mSwp.js → runtime-DXl0lfXF.js} +1 -1
  152. package/dist/assets/sdk-CTe6rL6c.js +1 -0
  153. package/dist/assets/{security-CLc8EI2b.js → security-BhkfG23R.js} +4 -4
  154. package/dist/assets/{session-CmpGpqja.js → session-VIMbdc9j.js} +1 -1
  155. package/dist/assets/{setup-C0tLi0hm.js → setup-BmYxTt6Z.js} +9 -3
  156. package/dist/assets/{shorten-label-CE57Fd6E.js → shorten-label-DFzv9EKX.js} +1 -1
  157. package/dist/assets/{simple-select-rdkVpCfB.js → simple-select-DlrdVbaI.js} +1 -1
  158. package/dist/assets/{slicedToArray-BBoi0da6.js → slicedToArray-CPl5_eGD.js} +1 -1
  159. package/dist/assets/{spaces-Cf25Nw85.js → spaces-WkJCApHO.js} +1 -1
  160. package/dist/assets/{start-CrRC75qe.js → start-CVexuuAk.js} +1 -1
  161. package/dist/assets/{status-BSBLuo2u.js → status-CygZ0LuY.js} +1 -1
  162. package/dist/assets/{step-actions-YXGJQMCB.js → step-actions-D_1PFeFs.js} +1 -1
  163. package/dist/assets/{studio-wUJ0pUIv.js → studio-Byjzwg8q.js} +1 -1
  164. package/dist/assets/{switch-control-D0bd_WCg.js → switch-control-5fEOPVKs.js} +1 -1
  165. package/dist/assets/th-CBxM23U5.js +5 -0
  166. package/dist/assets/{th-4Bnumejd.js → th-OF8xr--T.js} +1 -1
  167. package/dist/assets/{traffic-BhA3A82Z.js → traffic-T11hxc--.js} +1 -1
  168. package/dist/assets/{transfer-BmP7JwN2.js → transfer-ROpxn9LD.js} +1 -1
  169. package/dist/assets/{unsubscribe-zK0TSWH3.js → unsubscribe-Cd3XOnSp.js} +1 -1
  170. package/dist/assets/{use-app-logo-DAnHvb1d.js → use-app-logo-B8Kl9EZt.js} +1 -1
  171. package/dist/assets/{use-mobile-CwehvZ0f.js → use-mobile-C_flBrm-.js} +1 -1
  172. package/dist/assets/{use-mobile-KRs0Yv73.js → use-mobile-DlKplWTG.js} +1 -1
  173. package/dist/assets/{useLocalStorage-CNdV3Qx_.js → useLocalStorage-DldnaMbZ.js} +1 -1
  174. package/dist/assets/{user-center-CTXkd8hW.js → user-center-CzyCbtWm.js} +1 -1
  175. package/dist/assets/util-Bjy-tP7q.js +1 -0
  176. package/dist/assets/{util-DrL3FFCf.js → util-Dw9Eiuko.js} +1 -1
  177. package/dist/assets/{vendor-arcblock-JGYMkSwE.js → vendor-arcblock-ScFEr-lj.js} +5 -5
  178. package/dist/assets/{vendor-mui-core-8zafwTFh.js → vendor-mui-core-CQ38ohp2.js} +20 -20
  179. package/dist/assets/{vendor-mui-x-Df6DxoLi.js → vendor-mui-x-B0hsmEJ3.js} +1 -1
  180. package/dist/assets/{vendor-ux-did-connect-D2f9rdKK.js → vendor-ux-did-connect-BdkhddhO.js} +4 -4
  181. package/dist/assets/{vi-Bc6q0tph.js → vi-DCBJBc4G.js} +1 -1
  182. package/dist/assets/vi-DY_Y13jR.js +5 -0
  183. package/dist/assets/wrap-locale-DMTYAE64.js +1 -0
  184. package/dist/assets/{zh-_GYrLCB8.js → zh-BRAYg0sY.js} +1 -1
  185. package/dist/assets/{zh-DZlGQAU9.js → zh-BYRCoK6F.js} +1 -1
  186. package/dist/assets/{zh-tw-Be5lgYGX.js → zh-tw-BG0rlH8p.js} +1 -1
  187. package/dist/assets/{zh-tw-CLcDyLaC.js → zh-tw-D5-DkgwC.js} +1 -1
  188. package/dist/index.html +4 -4
  189. package/dist/service-worker.js +1 -1
  190. package/package.json +29 -29
  191. package/dist/assets/button-n0UOGLKx.js +0 -1
  192. package/dist/assets/domain-B57opALw.js +0 -9
  193. package/dist/assets/domain-action-card-DGNzWGpO.js +0 -24
  194. package/dist/assets/domains-DSFXU6AI.js +0 -1
  195. package/dist/assets/hi-DIf_hqVB.js +0 -5
  196. package/dist/assets/index-Birdle6P.js +0 -224
  197. package/dist/assets/index-DEAA6iri.js +0 -92
  198. package/dist/assets/localization-DfJCYesK.js +0 -1
  199. package/dist/assets/pt-CMeQ7KWn.js +0 -5
  200. package/dist/assets/publish-resource-CaRrvCS8.js +0 -1
  201. package/dist/assets/ru-8cWKcW3b.js +0 -5
  202. package/dist/assets/sdk-fuEXLKzh.js +0 -1
  203. package/dist/assets/th-DYYGBboI.js +0 -5
  204. package/dist/assets/util-C4Ha7L5d.js +0 -1
  205. package/dist/assets/vi-CfH0km8q.js +0 -5
  206. package/dist/assets/wrap-locale-5dMXj7tV.js +0 -1
@@ -1,9 +1,9 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Location-DSdE-EW4.js","assets/vendor-react-DEoibe3W.js","assets/vendor-mui-core-8zafwTFh.js","assets/Timezone-B77bSXNW.js","assets/Email-DscM5ZVr.js","assets/Phone-DkIl-1KJ.js","assets/Meeting-DlfumstQ.js","assets/Community-B6sqs6QK.js","assets/Holiday-COvP72sQ.js","assets/OffSick-CG2hJbSq.js","assets/WorkingRemotely-DNUERtUR.js"])))=>i.map(i=>d[i]);
2
- var Q6=Object.defineProperty;var el=(e,t,o)=>t in e?Q6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var Wn=(e,t,o)=>el(e,typeof t!="symbol"?t+"":t,o);import{H as v,j as b,aj as xd,b7 as tl,T as z0,a9 as E,at as pe,a8 as G1,e as s2,v as a3,I as B1,am as yd,l as F1,a6 as xp,b8 as ol,b9 as nl,ba as pl,bb as Tr,bc as qM,P as vd,F as Cd,w as Wc,L as Ml,A as bl,bd as cl,ao as k3,ag as g1,ad as zl,be as rl,bf as rb,bg as Bd,D as mc,t as gc,z as Td,y as U1,Y as Ed,b2 as al,ah as Ne,aa as xe,a0 as il,a1 as dl,bh as Ol,bi as Rc,bj as ab,bk as sl,bl as ll,bm as Al,E as wd,bn as ht,O as ye,q as ve,ac as V2,bo as Vn,bp as ul,an as fl,al as ql,bq as hl,ai as Wl,br as Er,b4 as wr,X as Sd,C as ml,bs as ib,bt as gl,N as Rl,ak as Lc,bu as Ll,bv as Sr,ar as Nl,M as xl,bw as yl,bx as vl,by as Cl}from"./vendor-mui-core-8zafwTFh.js";import{B as F2,s as T0,r as Z1,d as go,u as V0,t as M1,a as h3,l as Bl,I as d1,b as db,g as Tl,S as kd,N as El,c as Ee,e as wl,f as _d,h as Xd,i as Z,j as Ro,k as Sl,m as Id,L as kl,n as _l,o as jd,p as Xl,w as $d,T as Dd,q as Il,v as jl,x as $l,y as Nc,z as Dl,A as Pl,C as Pd,D as Fd,F as Ud,E as Fl,G as Ul,H as Hl,J as Vl,K as _3,M as Gl,O as Zl,P as Kl,Q as Hd,R as b1,U as Vd,V as Gn,W as xc,X as yc,Y as f2,Z as Yl,_ as Ao,$ as Jl,a0 as Ql,a1 as yp,a2 as kr,a3 as eA,a4 as vp,a5 as tA,a6 as oA,a7 as nA,a8 as pA,a9 as MA,aa as bA,ab as cA,ac as zA,ad as rA,ae as aA,af as hM,ag as iA,ah as _r,ai as vc,aj as Gd,ak as dA,al as OA,am as Xr,an as sA,ao as lA,ap as AA,aq as uA,ar as fA,as as R3}from"./vendor-ux-did-connect-D2f9rdKK.js";import{g as Zn,y as F0,T as qA,z as Cc,x as Ce,U as hA,C as Bc,D as Tc,V as WA,c as mA,F as Zd,n as j2,A as Kd,W as gA,G as Yd,a as A1,X as RA,d as LA,L as ro,Y as NA,Z as xA,_ as Ir,I as yA,$ as Jd,H as vA,a0 as CA,a1 as jr}from"./vendor-utils-BNHJB5U7.js";import{e as Wt,g as we,r as R,b as Qe,L as l1,a as Qd,d as BA,u as Ec,N as TA,m as EA}from"./vendor-react-DEoibe3W.js";import{p as wA,a as M2,f as M0,q as e4,u as d0,b as t4,i as wc,r as SA,g as kA,s as o4,m as p3,l as _A}from"./vendor-hooks-DftG_2gV.js";function XA(e,t){for(var o=0;o<t.length;o++){const n=t[o];if(typeof n!="string"&&!Array.isArray(n)){for(const p in n)if(p!=="default"&&!(p in e)){const M=Object.getOwnPropertyDescriptor(n,p);M&&Object.defineProperty(e,p,M.get?M:{enumerable:!0,get:()=>n[p]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const IA="modulepreload",jA=function(e){return"/.well-known/service/static/"+e},$r={},Se=function(t,o,n){let p=Promise.resolve();if(o&&o.length>0){document.getElementsByTagName("link");const M=document.querySelector("meta[property=csp-nonce]"),c=(M==null?void 0:M.nonce)||(M==null?void 0:M.getAttribute("nonce"));p=Promise.allSettled(o.map(z=>{if(z=jA(z),z in $r)return;$r[z]=!0;const a=z.endsWith(".css"),r=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${z}"]${r}`))return;const i=document.createElement("link");if(i.rel=a?"stylesheet":IA,a||(i.as="script"),i.crossOrigin="",i.href=z,c&&i.setAttribute("nonce",c),document.head.appendChild(i),a)return new Promise((s,O)=>{i.addEventListener("load",s),i.addEventListener("error",()=>O(new Error(`Unable to preload CSS for ${z}`)))})}))}return p.then(M=>{for(const c of M||[]){if(c.status!=="rejected")continue;const z=new Event("vite:preloadError",{cancelable:!0});if(z.payload=c.reason,window.dispatchEvent(z),!z.defaultPrevented)throw c.reason}return t()})};var n4={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Wt,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(o){var n=["th","st","nd","rd"],p=o%100;return"["+o+(n[(p-20)%10]||n[p]||n[0])+"]"}}})})(n4);var p4=n4.exports;const $A=we(p4),Pw=XA({__proto__:null,default:$A},[p4]);function DA(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var M4=R,PA=DA(M4);function Dr(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function FA(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var UA=!!(typeof window<"u"&&window.document&&window.document.createElement);function HA(e,t,o){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof o<"u"&&typeof o!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function n(p){return p.displayName||p.name||"Component"}return function(M){if(typeof M!="function")throw new Error("Expected WrappedComponent to be a React component.");var c=[],z;function a(){z=e(c.map(function(i){return i.props})),r.canUseDOM?t(z):o&&(z=o(z))}var r=function(i){FA(s,i);function s(){return i.apply(this,arguments)||this}s.peek=function(){return z},s.rewind=function(){if(s.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var q=z;return z=void 0,c=[],q};var O=s.prototype;return O.UNSAFE_componentWillMount=function(){c.push(this),a()},O.componentDidUpdate=function(){a()},O.componentWillUnmount=function(){var q=c.indexOf(this);c.splice(q,1),a()},O.render=function(){return PA.createElement(M,this.props)},s}(M4.PureComponent);return Dr(r,"displayName","SideEffect("+n(M)+")"),Dr(r,"canUseDOM",UA),r}}var VA=HA;const GA=we(VA);/*
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Location-B8EOY3d0.js","assets/vendor-react-DEoibe3W.js","assets/vendor-mui-core-CQ38ohp2.js","assets/Timezone-Ce4E1Xey.js","assets/Email-Dz2Eyqu0.js","assets/Phone-KP65huHK.js","assets/Meeting-Epdyx36z.js","assets/Community-DZCTPNMP.js","assets/Holiday-Lc6woG1j.js","assets/OffSick-VYgugWxu.js","assets/WorkingRemotely-CXFJ6pz8.js"])))=>i.map(i=>d[i]);
2
+ var Q6=Object.defineProperty;var el=(e,t,o)=>t in e?Q6(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var Wn=(e,t,o)=>el(e,typeof t!="symbol"?t+"":t,o);import{H as v,j as b,aj as xd,b7 as tl,T as z0,a9 as E,at as pe,a8 as G1,e as s2,v as a3,I as B1,am as yd,l as F1,a6 as xp,b8 as ol,b9 as nl,ba as pl,bb as Tr,bc as qM,P as vd,F as Cd,w as Wc,L as Ml,A as bl,bd as cl,ao as k3,ag as g1,ad as zl,be as rl,bf as rb,bg as Bd,D as mc,t as gc,z as Td,y as U1,Y as Ed,b2 as al,ah as Ne,aa as xe,a0 as il,a1 as dl,bh as Ol,bi as Rc,bj as ab,bk as sl,bl as ll,bm as Al,E as wd,bn as ht,O as ye,q as ve,ac as V2,bo as Vn,bp as ul,an as fl,al as ql,bq as hl,ai as Wl,br as Er,b4 as wr,X as Sd,C as ml,bs as ib,bt as gl,N as Rl,ak as Lc,bu as Ll,bv as Sr,ar as Nl,M as xl,bw as yl,bx as vl,by as Cl}from"./vendor-mui-core-CQ38ohp2.js";import{B as F2,s as T0,r as Z1,d as go,u as V0,t as M1,a as h3,l as Bl,I as d1,b as db,g as Tl,S as kd,N as El,c as Ee,e as wl,f as _d,h as Xd,i as Z,j as Ro,k as Sl,m as Id,L as kl,n as _l,o as jd,p as Xl,w as $d,T as Dd,q as Il,v as jl,x as $l,y as Nc,z as Dl,A as Pl,C as Pd,D as Fd,F as Ud,E as Fl,G as Ul,H as Hl,J as Vl,K as _3,M as Gl,O as Zl,P as Kl,Q as Hd,R as b1,U as Vd,V as Gn,W as xc,X as yc,Y as f2,Z as Yl,_ as Ao,$ as Jl,a0 as Ql,a1 as yp,a2 as kr,a3 as eA,a4 as vp,a5 as tA,a6 as oA,a7 as nA,a8 as pA,a9 as MA,aa as bA,ab as cA,ac as zA,ad as rA,ae as aA,af as hM,ag as iA,ah as _r,ai as vc,aj as Gd,ak as dA,al as OA,am as Xr,an as sA,ao as lA,ap as AA,aq as uA,ar as fA,as as R3}from"./vendor-ux-did-connect-BdkhddhO.js";import{g as Zn,y as F0,T as qA,z as Cc,x as Ce,U as hA,C as Bc,D as Tc,V as WA,c as mA,F as Zd,n as j2,A as Kd,W as gA,G as Yd,a as A1,X as RA,d as LA,L as ro,Y as NA,Z as xA,_ as Ir,I as yA,$ as Jd,H as vA,a0 as CA,a1 as jr}from"./vendor-utils-BNHJB5U7.js";import{e as Wt,g as we,r as R,b as Qe,L as l1,a as Qd,d as BA,u as Ec,N as TA,m as EA}from"./vendor-react-DEoibe3W.js";import{p as wA,a as M2,f as M0,q as e4,u as d0,b as t4,i as wc,r as SA,g as kA,s as o4,m as p3,l as _A}from"./vendor-hooks-DftG_2gV.js";function XA(e,t){for(var o=0;o<t.length;o++){const n=t[o];if(typeof n!="string"&&!Array.isArray(n)){for(const p in n)if(p!=="default"&&!(p in e)){const M=Object.getOwnPropertyDescriptor(n,p);M&&Object.defineProperty(e,p,M.get?M:{enumerable:!0,get:()=>n[p]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const IA="modulepreload",jA=function(e){return"/.well-known/service/static/"+e},$r={},Se=function(t,o,n){let p=Promise.resolve();if(o&&o.length>0){document.getElementsByTagName("link");const M=document.querySelector("meta[property=csp-nonce]"),c=(M==null?void 0:M.nonce)||(M==null?void 0:M.getAttribute("nonce"));p=Promise.allSettled(o.map(z=>{if(z=jA(z),z in $r)return;$r[z]=!0;const a=z.endsWith(".css"),r=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${z}"]${r}`))return;const i=document.createElement("link");if(i.rel=a?"stylesheet":IA,a||(i.as="script"),i.crossOrigin="",i.href=z,c&&i.setAttribute("nonce",c),document.head.appendChild(i),a)return new Promise((s,O)=>{i.addEventListener("load",s),i.addEventListener("error",()=>O(new Error(`Unable to preload CSS for ${z}`)))})}))}return p.then(M=>{for(const c of M||[]){if(c.status!=="rejected")continue;const z=new Event("vite:preloadError",{cancelable:!0});if(z.payload=c.reason,window.dispatchEvent(z),!z.defaultPrevented)throw c.reason}return t()})};var n4={exports:{}};(function(e,t){(function(o,n){e.exports=n()})(Wt,function(){return{name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(o){var n=["th","st","nd","rd"],p=o%100;return"["+o+(n[(p-20)%10]||n[p]||n[0])+"]"}}})})(n4);var p4=n4.exports;const $A=we(p4),Pw=XA({__proto__:null,default:$A},[p4]);function DA(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var M4=R,PA=DA(M4);function Dr(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function FA(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var UA=!!(typeof window<"u"&&window.document&&window.document.createElement);function HA(e,t,o){if(typeof e!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof t!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof o<"u"&&typeof o!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function n(p){return p.displayName||p.name||"Component"}return function(M){if(typeof M!="function")throw new Error("Expected WrappedComponent to be a React component.");var c=[],z;function a(){z=e(c.map(function(i){return i.props})),r.canUseDOM?t(z):o&&(z=o(z))}var r=function(i){FA(s,i);function s(){return i.apply(this,arguments)||this}s.peek=function(){return z},s.rewind=function(){if(s.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var q=z;return z=void 0,c=[],q};var O=s.prototype;return O.UNSAFE_componentWillMount=function(){c.push(this),a()},O.componentDidUpdate=function(){a()},O.componentWillUnmount=function(){var q=c.indexOf(this);c.splice(q,1),a()},O.render=function(){return PA.createElement(M,this.props)},s}(M4.PureComponent);return Dr(r,"displayName","SideEffect("+n(M)+")"),Dr(r,"canUseDOM",UA),r}}var VA=HA;const GA=we(VA);/*
3
3
  object-assign
4
4
  (c) Sindre Sorhus
5
5
  @license MIT
6
- */var Pr=Object.getOwnPropertySymbols,ZA=Object.prototype.hasOwnProperty,KA=Object.prototype.propertyIsEnumerable;function YA(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function JA(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;var n=Object.getOwnPropertyNames(t).map(function(M){return t[M]});if(n.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(M){p[M]=M}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var QA=JA()?Object.assign:function(e,t){for(var o,n=YA(e),p,M=1;M<arguments.length;M++){o=Object(arguments[M]);for(var c in o)ZA.call(o,c)&&(n[c]=o[c]);if(Pr){p=Pr(o);for(var z=0;z<p.length;z++)KA.call(o,p[z])&&(n[p[z]]=o[p[z]])}}return n};const eu=we(QA);var B3={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},N0={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(N0).map(function(e){return N0[e]});var a1={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},Kn={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Lo={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},tu=Object.keys(Kn).reduce(function(e,t){return e[Kn[t]]=t,e},{}),ou=[N0.NOSCRIPT,N0.SCRIPT,N0.STYLE],$2="data-react-helmet",nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pu=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Mu=function(){function e(t,o){for(var n=0;n<o.length;n++){var p=o[n];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(t,p.key,p)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),a2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},bu=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},Fr=function(e,t){var o={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o},cu=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},Ob=function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return o===!1?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},zu=function(t){var o=st(t,N0.TITLE),n=st(t,Lo.TITLE_TEMPLATE);if(n&&o)return n.replace(/%s/g,function(){return Array.isArray(o)?o.join(""):o});var p=st(t,Lo.DEFAULT_TITLE);return o||p||void 0},ru=function(t){return st(t,Lo.ON_CHANGE_CLIENT_STATE)||function(){}},WM=function(t,o){return o.filter(function(n){return typeof n[t]<"u"}).map(function(n){return n[t]}).reduce(function(n,p){return a2({},n,p)},{})},au=function(t,o){return o.filter(function(n){return typeof n[N0.BASE]<"u"}).map(function(n){return n[N0.BASE]}).reverse().reduce(function(n,p){if(!n.length)for(var M=Object.keys(p),c=0;c<M.length;c++){var z=M[c],a=z.toLowerCase();if(t.indexOf(a)!==-1&&p[a])return n.concat(p)}return n},[])},Vt=function(t,o,n){var p={};return n.filter(function(M){return Array.isArray(M[t])?!0:(typeof M[t]<"u"&&su("Helmet: "+t+' should be of type "Array". Instead found type "'+nu(M[t])+'"'),!1)}).map(function(M){return M[t]}).reverse().reduce(function(M,c){var z={};c.filter(function(O){for(var l=void 0,q=Object.keys(O),f=0;f<q.length;f++){var A=q[f],h=A.toLowerCase();o.indexOf(h)!==-1&&!(l===a1.REL&&O[l].toLowerCase()==="canonical")&&!(h===a1.REL&&O[h].toLowerCase()==="stylesheet")&&(l=h),o.indexOf(A)!==-1&&(A===a1.INNER_HTML||A===a1.CSS_TEXT||A===a1.ITEM_PROP)&&(l=A)}if(!l||!O[l])return!1;var g=O[l].toLowerCase();return p[l]||(p[l]={}),z[l]||(z[l]={}),p[l][g]?!1:(z[l][g]=!0,!0)}).reverse().forEach(function(O){return M.push(O)});for(var a=Object.keys(z),r=0;r<a.length;r++){var i=a[r],s=eu({},p[i],z[i]);p[i]=s}return M},[]).reverse()},st=function(t,o){for(var n=t.length-1;n>=0;n--){var p=t[n];if(p.hasOwnProperty(o))return p[o]}return null},iu=function(t){return{baseTag:au([a1.HREF,a1.TARGET],t),bodyAttributes:WM(B3.BODY,t),defer:st(t,Lo.DEFER),encode:st(t,Lo.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:WM(B3.HTML,t),linkTags:Vt(N0.LINK,[a1.REL,a1.HREF],t),metaTags:Vt(N0.META,[a1.NAME,a1.CHARSET,a1.HTTPEQUIV,a1.PROPERTY,a1.ITEM_PROP],t),noscriptTags:Vt(N0.NOSCRIPT,[a1.INNER_HTML],t),onChangeClientState:ru(t),scriptTags:Vt(N0.SCRIPT,[a1.SRC,a1.INNER_HTML],t),styleTags:Vt(N0.STYLE,[a1.CSS_TEXT],t),title:zu(t),titleAttributes:WM(B3.TITLE,t)}},sb=function(){var e=Date.now();return function(t){var o=Date.now();o-e>16?(e=o,t(o)):setTimeout(function(){sb(t)},0)}}(),Ur=function(t){return clearTimeout(t)},du=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||sb:Zn.requestAnimationFrame||sb,Ou=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Ur:Zn.cancelAnimationFrame||Ur,su=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},Gt=null,lu=function(t){Gt&&Ou(Gt),t.defer?Gt=du(function(){Hr(t,function(){Gt=null})}):(Hr(t),Gt=null)},Hr=function(t,o){var n=t.baseTag,p=t.bodyAttributes,M=t.htmlAttributes,c=t.linkTags,z=t.metaTags,a=t.noscriptTags,r=t.onChangeClientState,i=t.scriptTags,s=t.styleTags,O=t.title,l=t.titleAttributes;lb(N0.BODY,p),lb(N0.HTML,M),Au(O,l);var q={baseTag:pt(N0.BASE,n),linkTags:pt(N0.LINK,c),metaTags:pt(N0.META,z),noscriptTags:pt(N0.NOSCRIPT,a),scriptTags:pt(N0.SCRIPT,i),styleTags:pt(N0.STYLE,s)},f={},A={};Object.keys(q).forEach(function(h){var g=q[h],m=g.newTags,W=g.oldTags;m.length&&(f[h]=m),W.length&&(A[h]=q[h].oldTags)}),o&&o(),r(t,f,A)},b4=function(t){return Array.isArray(t)?t.join(""):t},Au=function(t,o){typeof t<"u"&&document.title!==t&&(document.title=b4(t)),lb(N0.TITLE,o)},lb=function(t,o){var n=document.getElementsByTagName(t)[0];if(n){for(var p=n.getAttribute($2),M=p?p.split(","):[],c=[].concat(M),z=Object.keys(o),a=0;a<z.length;a++){var r=z[a],i=o[r]||"";n.getAttribute(r)!==i&&n.setAttribute(r,i),M.indexOf(r)===-1&&M.push(r);var s=c.indexOf(r);s!==-1&&c.splice(s,1)}for(var O=c.length-1;O>=0;O--)n.removeAttribute(c[O]);M.length===c.length?n.removeAttribute($2):n.getAttribute($2)!==z.join(",")&&n.setAttribute($2,z.join(","))}},pt=function(t,o){var n=document.head||document.querySelector(N0.HEAD),p=n.querySelectorAll(t+"["+$2+"]"),M=Array.prototype.slice.call(p),c=[],z=void 0;return o&&o.length&&o.forEach(function(a){var r=document.createElement(t);for(var i in a)if(a.hasOwnProperty(i))if(i===a1.INNER_HTML)r.innerHTML=a.innerHTML;else if(i===a1.CSS_TEXT)r.styleSheet?r.styleSheet.cssText=a.cssText:r.appendChild(document.createTextNode(a.cssText));else{var s=typeof a[i]>"u"?"":a[i];r.setAttribute(i,s)}r.setAttribute($2,"true"),M.some(function(O,l){return z=l,r.isEqualNode(O)})?M.splice(z,1):c.push(r)}),M.forEach(function(a){return a.parentNode.removeChild(a)}),c.forEach(function(a){return n.appendChild(a)}),{oldTags:M,newTags:c}},c4=function(t){return Object.keys(t).reduce(function(o,n){var p=typeof t[n]<"u"?n+'="'+t[n]+'"':""+n;return o?o+" "+p:p},"")},uu=function(t,o,n,p){var M=c4(n),c=b4(o);return M?"<"+t+" "+$2+'="true" '+M+">"+Ob(c,p)+"</"+t+">":"<"+t+" "+$2+'="true">'+Ob(c,p)+"</"+t+">"},fu=function(t,o,n){return o.reduce(function(p,M){var c=Object.keys(M).filter(function(r){return!(r===a1.INNER_HTML||r===a1.CSS_TEXT)}).reduce(function(r,i){var s=typeof M[i]>"u"?i:i+'="'+Ob(M[i],n)+'"';return r?r+" "+s:s},""),z=M.innerHTML||M.cssText||"",a=ou.indexOf(t)===-1;return p+"<"+t+" "+$2+'="true" '+c+(a?"/>":">"+z+"</"+t+">")},"")},z4=function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(n,p){return n[Kn[p]||p]=t[p],n},o)},qu=function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(n,p){return n[tu[p]||p]=t[p],n},o)},hu=function(t,o,n){var p,M=(p={key:o},p[$2]=!0,p),c=z4(n,M);return[Qe.createElement(N0.TITLE,c,o)]},Wu=function(t,o){return o.map(function(n,p){var M,c=(M={key:p},M[$2]=!0,M);return Object.keys(n).forEach(function(z){var a=Kn[z]||z;if(a===a1.INNER_HTML||a===a1.CSS_TEXT){var r=n.innerHTML||n.cssText;c.dangerouslySetInnerHTML={__html:r}}else c[a]=n[z]}),Qe.createElement(t,c)})},Oe=function(t,o,n){switch(t){case N0.TITLE:return{toComponent:function(){return hu(t,o.title,o.titleAttributes)},toString:function(){return uu(t,o.title,o.titleAttributes,n)}};case B3.BODY:case B3.HTML:return{toComponent:function(){return z4(o)},toString:function(){return c4(o)}};default:return{toComponent:function(){return Wu(t,o)},toString:function(){return fu(t,o,n)}}}},r4=function(t){var o=t.baseTag,n=t.bodyAttributes,p=t.encode,M=t.htmlAttributes,c=t.linkTags,z=t.metaTags,a=t.noscriptTags,r=t.scriptTags,i=t.styleTags,s=t.title,O=s===void 0?"":s,l=t.titleAttributes;return{base:Oe(N0.BASE,o,p),bodyAttributes:Oe(B3.BODY,n,p),htmlAttributes:Oe(B3.HTML,M,p),link:Oe(N0.LINK,c,p),meta:Oe(N0.META,z,p),noscript:Oe(N0.NOSCRIPT,a,p),script:Oe(N0.SCRIPT,r,p),style:Oe(N0.STYLE,i,p),title:Oe(N0.TITLE,{title:O,titleAttributes:l},p)}},mu=function(t){var o,n;return n=o=function(p){bu(M,p);function M(){return pu(this,M),cu(this,p.apply(this,arguments))}return M.prototype.shouldComponentUpdate=function(z){return!wA(this.props,z)},M.prototype.mapNestedChildrenToProps=function(z,a){if(!a)return null;switch(z.type){case N0.SCRIPT:case N0.NOSCRIPT:return{innerHTML:a};case N0.STYLE:return{cssText:a}}throw new Error("<"+z.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},M.prototype.flattenArrayTypeChildren=function(z){var a,r=z.child,i=z.arrayTypeChildren,s=z.newChildProps,O=z.nestedChildren;return a2({},i,(a={},a[r.type]=[].concat(i[r.type]||[],[a2({},s,this.mapNestedChildrenToProps(r,O))]),a))},M.prototype.mapObjectTypeChildren=function(z){var a,r,i=z.child,s=z.newProps,O=z.newChildProps,l=z.nestedChildren;switch(i.type){case N0.TITLE:return a2({},s,(a={},a[i.type]=l,a.titleAttributes=a2({},O),a));case N0.BODY:return a2({},s,{bodyAttributes:a2({},O)});case N0.HTML:return a2({},s,{htmlAttributes:a2({},O)})}return a2({},s,(r={},r[i.type]=a2({},O),r))},M.prototype.mapArrayTypeChildrenToProps=function(z,a){var r=a2({},a);return Object.keys(z).forEach(function(i){var s;r=a2({},r,(s={},s[i]=z[i],s))}),r},M.prototype.warnOnInvalidChildren=function(z,a){return!0},M.prototype.mapChildrenToProps=function(z,a){var r=this,i={};return Qe.Children.forEach(z,function(s){if(!(!s||!s.props)){var O=s.props,l=O.children,q=Fr(O,["children"]),f=qu(q);switch(r.warnOnInvalidChildren(s,l),s.type){case N0.LINK:case N0.META:case N0.NOSCRIPT:case N0.SCRIPT:case N0.STYLE:i=r.flattenArrayTypeChildren({child:s,arrayTypeChildren:i,newChildProps:f,nestedChildren:l});break;default:a=r.mapObjectTypeChildren({child:s,newProps:a,newChildProps:f,nestedChildren:l});break}}}),a=this.mapArrayTypeChildrenToProps(i,a),a},M.prototype.render=function(){var z=this.props,a=z.children,r=Fr(z,["children"]),i=a2({},r);return a&&(i=this.mapChildrenToProps(a,i)),Qe.createElement(t,i)},Mu(M,null,[{key:"canUseDOM",set:function(z){t.canUseDOM=z}}]),M}(Qe.Component),o.propTypes={base:v.object,bodyAttributes:v.object,children:v.oneOfType([v.arrayOf(v.node),v.node]),defaultTitle:v.string,defer:v.bool,encodeSpecialCharacters:v.bool,htmlAttributes:v.object,link:v.arrayOf(v.object),meta:v.arrayOf(v.object),noscript:v.arrayOf(v.object),onChangeClientState:v.func,script:v.arrayOf(v.object),style:v.arrayOf(v.object),title:v.string,titleAttributes:v.object,titleTemplate:v.string},o.defaultProps={defer:!0,encodeSpecialCharacters:!0},o.peek=t.peek,o.rewind=function(){var p=t.rewind();return p||(p=r4({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),p},n},gu=function(){return null},Ru=GA(iu,lu,r4)(gu),Yn=mu(Ru);Yn.renderStatic=Yn.rewind;var Sc=Object.defineProperty,Lu=Object.getOwnPropertyDescriptor,Nu=Object.getOwnPropertyNames,xu=Object.prototype.hasOwnProperty,yu=(e,t)=>{for(var o in t)Sc(e,o,{get:t[o],enumerable:!0})},vu=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let p of Nu(t))!xu.call(e,p)&&p!==o&&Sc(e,p,{get:()=>t[p],enumerable:!(n=Lu(t,p))||n.enumerable});return e},Cu=e=>vu(Sc({},"__esModule",{value:!0}),e),a4={};yu(a4,{ALLOW_VERIFY_PROVIDERS:()=>w8,APP_CONFIG_DIR:()=>k8,APP_CONFIG_FILE_PATH:()=>X8,APP_CONFIG_PUBLIC_DIR:()=>_8,BLOCKLET_APP_SPACE_REQUIREMENT:()=>v8,BLOCKLET_ARCHITECTURES:()=>Vu,BLOCKLET_AUTOMATIC_ENV_VALUE:()=>F8,BLOCKLET_BUNDLE_FILE:()=>r8,BLOCKLET_BUNDLE_FOLDER:()=>b8,BLOCKLET_BUNDLE_FOLDER_NAME:()=>z8,BLOCKLET_CONFIGURABLE_KEY:()=>x8,BLOCKLET_CONTROLLER_STATUS:()=>Su,BLOCKLET_DEFAULT_PATH_REWRITE:()=>n8,BLOCKLET_DEFAULT_PORT_NAME:()=>o8,BLOCKLET_DEFAULT_VERSION:()=>m8,BLOCKLET_DYNAMIC_PATH_PREFIX:()=>t8,BLOCKLET_ENTRY_FILE:()=>a8,BLOCKLET_FACTORY_SHARES:()=>Ku,BLOCKLET_GROUPS:()=>Du,BLOCKLET_INTERFACE_PROTOCOLS:()=>e8,BLOCKLET_INTERFACE_PROTOCOL_HTTP:()=>f4,BLOCKLET_INTERFACE_PROTOCOL_TCP:()=>q4,BLOCKLET_INTERFACE_PROTOCOL_UDP:()=>h4,BLOCKLET_INTERFACE_PUBLIC:()=>Xc,BLOCKLET_INTERFACE_TYPES:()=>Yu,BLOCKLET_INTERFACE_TYPE_DOCKER:()=>l4,BLOCKLET_INTERFACE_TYPE_SERVICE:()=>s4,BLOCKLET_INTERFACE_TYPE_WEB:()=>O4,BLOCKLET_INTERFACE_TYPE_WELLKNOWN:()=>A4,BLOCKLET_INTERFACE_WELLKNOWN:()=>u4,BLOCKLET_LATEST_REQUIREMENT_ABTNODE:()=>N8,BLOCKLET_LATEST_REQUIREMENT_SERVER:()=>L8,BLOCKLET_LATEST_SPEC_VERSION:()=>R8,BLOCKLET_META_FILE:()=>i8,BLOCKLET_META_FILE_ALT:()=>d8,BLOCKLET_MODES:()=>Gu,BLOCKLET_OPENEMBED_PREFIX:()=>P8,BLOCKLET_OPEN_API_FILE:()=>s8,BLOCKLET_OPEN_API_FILE_JSON:()=>l8,BLOCKLET_OPEN_COMPONENT_FILE:()=>A8,BLOCKLET_OPEN_COMPONENT_FILE_JSON:()=>u8,BLOCKLET_PLATFORMS:()=>Hu,BLOCKLET_PREFERENCE_FILE:()=>O8,BLOCKLET_PREFERENCE_PREFIX:()=>f8,BLOCKLET_RELEASE_FILE:()=>M8,BLOCKLET_RELEASE_FOLDER:()=>p8,BLOCKLET_RELEASE_FOLDER_NAME:()=>c8,BLOCKLET_RESOURCE_DIR:()=>q8,BLOCKLET_STANDARD_INTERFACES:()=>Qu,BLOCKLET_TENANT_MODES:()=>Zu,BLOCKLET_UI_INTERFACES:()=>Ju,BLOCKLET_UPLOADS_DIR:()=>g8,BlockletEvents:()=>Pu,BlockletGroup:()=>$u,BlockletInternalEvents:()=>Fu,BlockletSource:()=>_c,BlockletStatus:()=>kc,CHAIN_INFO_CONFIG:()=>C8,CHAIN_PROP_MAP:()=>Ab,CHAIN_PROP_MAP_REVERSE:()=>T8,COMPONENT_DOCKER_ENV_FILE_NAME:()=>j8,COMPONENT_ENV_FILE_NAME:()=>I8,DEVICE_HEADERS:()=>S8,DID_SPACES:()=>y8,LOGIN_PROVIDER:()=>ub,MAX_DESCRIPTION_LENGTH:()=>D8,MAX_TITLE_LENGTH:()=>$8,PROJECT:()=>W8,PROVIDER_NAME:()=>E8,RESOURCE_PATTERN:()=>h8,RESTORE_PROGRESS_STATUS:()=>B8,SIG_VERSION:()=>U8,SUPPORTED_LANGUAGES:()=>wu,SUSPENDED_REASON:()=>ku,TeamEvents:()=>Uu,baseLanguages:()=>Eu,fromBlockletSource:()=>Iu,fromBlockletStatus:()=>_u,toBlockletSource:()=>ju,toBlockletStatus:()=>Xu});var Bu=Cu(a4),Tu={en:{name:"English",nativeName:"English"},es:{name:"Spanish",nativeName:"Español"},zh:{name:"Simplified Chinese",nativeName:"简体中文"},"zh-TW":{name:"Traditional Chinese",nativeName:"繁體中文"},fr:{name:"French",nativeName:"Français"},it:{name:"Italian",nativeName:"Italiano"},ja:{name:"Japanese",nativeName:"日本語"},ko:{name:"Korean",nativeName:"한국어"},pt:{name:"Portuguese",nativeName:"Português"},ru:{name:"Russian",nativeName:"Русский"},ar:{name:"Arabic",nativeName:"اَلْعَرَبِيَّةُ"},de:{name:"German",nativeName:"Deutsch"},mn:{name:"Mongolian",nativeName:"Монгол хэл"},hi:{name:"Hindi",nativeName:"हिन्दी"},bn:{name:"Bengali",nativeName:"বাংলা"},vi:{name:"Vietnamese",nativeName:"Tiếng Việt"},tr:{name:"Turkish",nativeName:"Türkçe"},te:{name:"Telugu",nativeName:"తెలుగు"},ur:{name:"Urdu",nativeName:"اردو"},mr:{name:"Marathi",nativeName:"मराठी"},pa:{name:"Panjabi",nativeName:"ਪੰਜਾਬੀ"},aa:{name:"Afar",nativeName:"Afaraf"},ab:{name:"Abkhaz",nativeName:"аҧсуа бызшәа"},ae:{name:"Avestan",nativeName:"avesta"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},am:{name:"Amharic",nativeName:"አማርኛ"},an:{name:"Aragonese",nativeName:"aragonés"},as:{name:"Assamese",nativeName:"অসমীয়া"},av:{name:"Avaric",nativeName:"авар мацӀ"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"azərbaycan dili"},ba:{name:"Bashkir",nativeName:"башҡорт теле"},be:{name:"Belarusian",nativeName:"беларуская мова"},bg:{name:"Bulgarian",nativeName:"български език"},bi:{name:"Bislama",nativeName:"Bislama"},bm:{name:"Bambara",nativeName:"bamanankan"},bo:{name:"Tibetan",nativeName:"བོད་ཡིག"},br:{name:"Breton",nativeName:"brezhoneg"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},ca:{name:"Catalan",nativeName:"Català"},ce:{name:"Chechen",nativeName:"нохчийн мотт"},ch:{name:"Chamorro",nativeName:"Chamoru"},co:{name:"Corsican",nativeName:"corsu"},cr:{name:"Cree",nativeName:"ᓀᐦᐃᔭᐍᐏᐣ"},cs:{name:"Czech",nativeName:"čeština"},cu:{name:"Old Church Slavonic",nativeName:"ѩзыкъ словѣньскъ"},cv:{name:"Chuvash",nativeName:"чӑваш чӗлхи"},cy:{name:"Welsh",nativeName:"Cymraeg"},da:{name:"Danish",nativeName:"dansk"},dv:{name:"Divehi",nativeName:"ދިވެހި"},dz:{name:"Dzongkha",nativeName:"རྫོང་ཁ"},ee:{name:"Ewe",nativeName:"Eʋegbe"},el:{name:"Greek",nativeName:"Ελληνικά"},eo:{name:"Esperanto",nativeName:"Esperanto"},et:{name:"Estonian",nativeName:"eesti"},eu:{name:"Basque",nativeName:"euskara"},fa:{name:"Persian",nativeName:"فارسی"},ff:{name:"Fula",nativeName:"Fulfulde"},fi:{name:"Finnish",nativeName:"suomi"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fo:{name:"Faroese",nativeName:"føroyskt"},fy:{name:"Western Frisian",nativeName:"Frysk"},ga:{name:"Irish",nativeName:"Gaeilge"},gd:{name:"Scottish Gaelic",nativeName:"Gàidhlig"},gl:{name:"Galician",nativeName:"galego"},gn:{name:"Guaraní",nativeName:"Avañe'ẽ"},gu:{name:"Gujarati",nativeName:"ગુજરાતી"},gv:{name:"Manx",nativeName:"Gaelg"},ha:{name:"Hausa",nativeName:"هَوُسَ"},he:{name:"Hebrew",nativeName:"עברית"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hr:{name:"Croatian",nativeName:"Hrvatski"},ht:{name:"Haitian",nativeName:"Kreyòl ayisyen"},hu:{name:"Hungarian",nativeName:"magyar"},hy:{name:"Armenian",nativeName:"Հայերեն"},hz:{name:"Herero",nativeName:"Otjiherero"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Interlingue"},ig:{name:"Igbo",nativeName:"Asụsụ Igbo"},ii:{name:"Nuosu",nativeName:"ꆈꌠ꒿ Nuosuhxop"},ik:{name:"Inupiaq",nativeName:"Iñupiaq"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"Íslenska"},iu:{name:"Inuktitut",nativeName:"ᐃᓄᒃᑎᑐᑦ"},jv:{name:"Javanese",nativeName:"basa Jawa"},ka:{name:"Georgian",nativeName:"ქართული"},kg:{name:"Kongo",nativeName:"Kikongo"},ki:{name:"Kikuyu",nativeName:"Gĩkũyũ"},kj:{name:"Kwanyama",nativeName:"Kuanyama"},kk:{name:"Kazakh",nativeName:"қазақ тілі"},kl:{name:"Kalaallisut",nativeName:"kalaallisut"},km:{name:"Khmer",nativeName:"ខេមរភាសា"},kn:{name:"Kannada",nativeName:"ಕನ್ನಡ"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"कश्मीरी"},ku:{name:"Kurdish",nativeName:"Kurdî"},kv:{name:"Komi",nativeName:"коми кыв"},kw:{name:"Cornish",nativeName:"Kernewek"},ky:{name:"Kyrgyz",nativeName:"Кыргызча"},la:{name:"Latin",nativeName:"latine"},lb:{name:"Luxembourgish",nativeName:"Lëtzebuergesch"},lg:{name:"Ganda",nativeName:"Luganda"},li:{name:"Limburgish",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Lingála"},lo:{name:"Lao",nativeName:"ພາສາລາວ"},lt:{name:"Lithuanian",nativeName:"lietuvių kalba"},lu:{name:"Luba-Katanga",nativeName:"Kiluba"},lv:{name:"Latvian",nativeName:"latviešu valoda"},mg:{name:"Malagasy",nativeName:"fiteny malagasy"},mh:{name:"Marshallese",nativeName:"Kajin M̧ajeļ"},mi:{name:"Māori",nativeName:"te reo Māori"},mk:{name:"Macedonian",nativeName:"македонски јазик"},ml:{name:"Malayalam",nativeName:"മലയാളം"},ms:{name:"Malay",nativeName:"Bahasa Melayu"},mt:{name:"Maltese",nativeName:"Malti"},my:{name:"Burmese",nativeName:"ဗမာစာ"},na:{name:"Nauru",nativeName:"Dorerin Naoero"},nb:{name:"Norwegian Bokmål",nativeName:"Norsk bokmål"},nd:{name:"Northern Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"नेपाली"},ng:{name:"Ndonga",nativeName:"Owambo"},nl:{name:"Dutch",nativeName:"Nederlands"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},nr:{name:"Southern Ndebele",nativeName:"isiNdebele"},nv:{name:"Navajo",nativeName:"Diné bizaad"},ny:{name:"Chichewa",nativeName:"chiCheŵa"},oc:{name:"Occitan",nativeName:"occitan"},oj:{name:"Ojibwe",nativeName:"ᐊᓂᔑᓈᐯᒧᐎᓐ"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"ଓଡ଼ିଆ"},os:{name:"Ossetian",nativeName:"ирон æвзаг"},pi:{name:"Pāli",nativeName:"पाऴि"},pl:{name:"Polish",nativeName:"Polski"},ps:{name:"Pashto",nativeName:"پښتو"},qu:{name:"Quechua",nativeName:"Runa Simi"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"Ikirundi"},ro:{name:"Romanian",nativeName:"Română"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},sa:{name:"Sanskrit",nativeName:"संस्कृतम्"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"सिन्धी"},se:{name:"Northern Sami",nativeName:"Davvisámegiella"},sg:{name:"Sango",nativeName:"yângâ tî sängö"},si:{name:"Sinhala",nativeName:"සිංහල"},sk:{name:"Slovak",nativeName:"slovenčina"},sl:{name:"Slovenian",nativeName:"slovenščina"},sm:{name:"Samoan",nativeName:"gagana fa'a Samoa"},sn:{name:"Shona",nativeName:"chiShona"},so:{name:"Somali",nativeName:"Soomaaliga"},sq:{name:"Albanian",nativeName:"Shqip"},sr:{name:"Serbian",nativeName:"српски језик"},ss:{name:"Swati",nativeName:"SiSwati"},st:{name:"Southern Sotho",nativeName:"Sesotho"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sv:{name:"Swedish",nativeName:"Svenska"},sw:{name:"Swahili",nativeName:"Kiswahili"},ta:{name:"Tamil",nativeName:"தமிழ்"},tg:{name:"Tajik",nativeName:"тоҷикӣ"},th:{name:"Thai",nativeName:"ไทย"},ti:{name:"Tigrinya",nativeName:"ትግርኛ"},tk:{name:"Turkmen",nativeName:"Türkmençe"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga",nativeName:"faka Tonga"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"татар теле"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uyghur",nativeName:"ئۇيغۇرچە‎"},uk:{name:"Ukrainian",nativeName:"Українська"},uz:{name:"Uzbek",nativeName:"Ўзбек"},ve:{name:"Venda",nativeName:"Tshivenḓa"},vo:{name:"Volapük",nativeName:"Volapük"},wa:{name:"Walloon",nativeName:"walon"},wo:{name:"Wolof",nativeName:"Wollof"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"ייִדיש"},yo:{name:"Yoruba",nativeName:"Yorùbá"},za:{name:"Zhuang",nativeName:"Saɯ cueŋƅ"},zu:{name:"Zulu",nativeName:"isiZulu"}},Eu=[{code:"en",name:"English"},{code:"es",name:"Español"},{code:"zh",name:"简体中文"},{code:"zh-TW",name:"繁體中文"},{code:"ja",name:"日本語"},{code:"ko",name:"한국어"},{code:"de",name:"Deutsch"},{code:"hi",name:"हिन्दी"},{code:"fr",name:"Français"},{code:"ar",name:"اَلْعَرَبِيَّةُ"},{code:"ru",name:"Русский"},{code:"pt",name:"Português"},{code:"id",name:"Bahasa Indonesia"},{code:"vi",name:"Tiếng Việt"},{code:"th",name:"ไทย"}],wu=Tu,i4=e=>t=>{const o=Object.entries(e).find(n=>n[1]===Number(t));return o?o[0]:"unknown"},d4=e=>t=>Object.keys(e).find(o=>e[o]===Number(t)),kc=Object.freeze({added:0,downloading:1,downloaded:2,installing:3,installed:4,starting:5,running:6,stopping:7,stopped:8,error:9,upgrading:10,restarting:11,corrupted:12,waiting:13,deleted:14}),Su={normal:0,suspended:10},ku={expired:"expired"},_u=i4(kc),Xu=d4(kc),_c=Object.freeze({registry:0,local:1,upload:2,url:3,custom:4}),Iu=i4(_c),ju=d4(_c),$u=Object.freeze({static:"static",dapp:"dapp",gateway:"gateway",pack:"pack"}),Du=["dapp","static","gateway","pack"],Pu=Object.freeze({added:"blocklet.added",downloadFailed:"blocklet.downloadFailed",installed:"blocklet.installed",installFailed:"blocklet.installFailed",upgraded:"blocklet.upgraded",removed:"blocklet.removed",started:"blocklet.started",startFailed:"blocklet.startFailed",stopped:"blocklet.stopped",statusChange:"blocklet.statusChange",dataCleaned:"blocklet.dataCleaned",componentInstalled:"blocklet.componentInstalled",componentInstallFailed:"blocklet.componentInstallFailed",componentUpgraded:"blocklet.componentUpgraded",componentUpgradeFailed:"blocklet.componentUpgradeFailed",componentRemoved:"blocklet.componentRemoved",disableAutoBackup:"blocklet.disableAutoBackup",backupProgress:"blocklet.backupProgress",restoreProgress:"blocklet.restoreProgress",downloadBundleProgress:"blocklet.downloadBundleProgress",updated:"blocklet.updated",domainStatus:"blocklet.domainStatus",storeChange:"blocklet.storeChange",appDidChanged:"blocklet.appDidChanged",purchaseChange:"blocklet.purchaseChange",certError:"blocklet.certError",certIssued:"blocklet.certIssued",spaceConnected:"blocklet.spaceConnected",nftConsumed:"blocklet.nftConsumed",securityConfigUpdated:"blocklet.securityConfigUpdated",configTheme:"blocklet.configTheme",addUserSession:"blocklet.addUserSession",updateUserSession:"blocklet.updateUserSession"}),Fu=Object.freeze({appConfigChanged:"blocklet.appConfigChanged",appSettingChanged:"blocklet.appSettingChanged",componentInstalled:"blocklet._componentInstalled",componentUpgraded:"blocklet._componentUpgraded",componentUpdated:"blocklet._componentUpdated",componentStarted:"blocklet._componentStarted",componentStopped:"blocklet._componentStopped",componentRemoved:"blocklet._componentRemoved",componentConfigChanged:"blocklet._componentConfigChanged",componentsUpdated:"blocklet.componentsUpdated"}),Uu=Object.freeze({userAdded:"user.added",userRemoved:"user.removed",userUpdated:"user.updated",userProfileUpdated:"user.profile.updated",userPermissionUpdated:"user.permission.updated"}),Hu=["aix","darwin","freebsd","linux","openbsd","sunos","win32"],Vu=["arm","arm64","ia32","mips","mipsel","ppc","ppc64","s390","s390x","x32","x64"],Gu=Object.freeze({PRODUCTION:"production",DEVELOPMENT:"development"}),Zu=Object.freeze({SINGLE:"single",MULTIPLE:"multiple"}),Ku={developer:.7,store:.3},O4="web",s4="service",l4="docker",A4="wellknown",Yu=[O4,s4,A4,l4],Xc="publicUrl",u4="wellknownUrl",Ju=[Xc],Qu=[Xc,u4],f4="http",q4="tcp",h4="udp",e8=[q4,h4,f4],t8="*",o8="BLOCKLET_PORT",n8="/",p8=".blocklet/release",M8="blocklet.json",b8=".blocklet/bundle",c8="release",z8="bundle",r8="blocklet.zip",a8="blocklet.js",i8="blocklet.yml",d8="blocklet.yaml",O8="blocklet.prefs.json",s8="blocklet.openapi.yaml",l8="blocklet.openapi.json",A8="blocklet.opencomponent.yaml",u8="blocklet.opencomponent.json",f8="prefs.",q8="resources",h8=/\.(js|css|jpg|jpeg|png|gif|webp|avif|svg|woff|woff2|ico|mp4|mp3|webm)$/i,W8={DIR:".projects",RELEASE_DIR:"releases",RESOURCE_DIR:"resource",MAIN_DIR:"main",ASSET_DIR:"assets",TYPES:{resource:"resource",pack:"pack"},RELEASE_STATUS:{draft:"draft",published:"published"},MAX_NOTE_LENGTH:1e3,MAX_INTRO_LENGTH:3e3},m8="1.0.0",g8="__uploads",R8="1.2.8",L8=">=1.7.0",N8=">=1.5.15",x8={BLOCKLET_CLUSTER_SIZE:"BLOCKLET_CLUSTER_SIZE",BLOCKLET_APP_NAME:"BLOCKLET_APP_NAME",BLOCKLET_APP_DESCRIPTION:"BLOCKLET_APP_DESCRIPTION",BLOCKLET_APP_SK:"BLOCKLET_APP_SK",BLOCKLET_APP_LOGO:"BLOCKLET_APP_LOGO",BLOCKLET_APP_LOGO_SQUARE:"BLOCKLET_APP_LOGO_SQUARE",BLOCKLET_APP_LOGO_RECT:"BLOCKLET_APP_LOGO_RECT",BLOCKLET_APP_LOGO_FAVICON:"BLOCKLET_APP_LOGO_FAVICON",BLOCKLET_APP_SPLASH_PORTRAIT:"BLOCKLET_APP_SPLASH_PORTRAIT",BLOCKLET_APP_SPLASH_LANDSCAPE:"BLOCKLET_APP_SPLASH_LANDSCAPE",BLOCKLET_APP_OG_IMAGE:"BLOCKLET_APP_OG_IMAGE",BLOCKLET_APP_OG_COLOR:"BLOCKLET_APP_OG_COLOR",BLOCKLET_APP_URL:"BLOCKLET_APP_URL",BLOCKLET_APP_LANGUAGES:"BLOCKLET_APP_LANGUAGES",BLOCKLET_PASSPORT_COLOR:"BLOCKLET_PASSPORT_COLOR",BLOCKLET_WALLET_TYPE:"BLOCKLET_WALLET_TYPE",BLOCKLET_DELETABLE:"BLOCKLET_DELETABLE",BLOCKLET_APP_TENANT_MODE:"BLOCKLET_APP_TENANT_MODE",BLOCKLET_APP_COPYRIGHT_OWNER:"BLOCKLET_APP_COPYRIGHT_OWNER",BLOCKLET_APP_COPYRIGHT_YEAR:"BLOCKLET_APP_COPYRIGHT_YEAR",BLOCKLET_APP_SPACE_ENDPOINT:"BLOCKLET_APP_SPACE_ENDPOINT",BLOCKLET_APP_SPACES_URL:"BLOCKLET_APP_SPACES_URL",BLOCKLET_APP_BACKUP_ENDPOINT:"BLOCKLET_APP_BACKUP_ENDPOINT",BLOCKLET_APP_CHAIN_HOST:"BLOCKLET_APP_CHAIN_HOST",BLOCKLET_APP_CHAIN_TYPE:"BLOCKLET_APP_CHAIN_TYPE",BLOCKLET_APP_CHAIN_ID:"BLOCKLET_APP_CHAIN_ID",COMPONENT_ACCESS_WHO:"COMPONENT_ACCESS_WHO"},y8={VC_TYPES:["PersonalSpaceVerifiableCredential","EnterpriseSpaceVerifiableCredential","DIDSpaceAppAuthCredential"],NFT_TAG:"did-space-purchase-nft",AUTHORIZE:{DEFAULT_SCOPE:"list:object read:object write:object"}},v8={REQUIRED:"required",REQUIRED_ON_SETUP:"requiredOnSetup",OPTIONAL:"optional",REQUIRED_ON_CONNECT:"requiredOnConnect"},C8={CHAIN_TYPE:["type","arcblock"],CHAIN_ID:["id","none"],CHAIN_HOST:["host","none"]},B8={waiting:0,start:10,importData:20,downloading:30,importDataSuccess:40,installing:50,completed:60,error:70},Ab={BLOCKLET_APP_CHAIN_HOST:"CHAIN_HOST",BLOCKLET_APP_CHAIN_ID:"CHAIN_ID",BLOCKLET_APP_CHAIN_TYPE:"CHAIN_TYPE"},T8=Object.keys(Ab).reduce((e,t)=>(e[Ab[t]]=t,e),{}),ub={AUTH0:"auth0",GOOGLE:"google",APPLE:"apple",GITHUB:"github",WALLET:"wallet",NFT:"nft",PASSKEY:"passkey",EMAIL:"email"},E8={auth0:"Auth0",github:"GitHub",google:"Google",apple:"Apple",email:"Email",wallet:"DID wallet",federated:"Federated",passkey:"Passkey"},w8=[ub.PASSKEY,ub.WALLET],S8={CLIENT_NAME:"device-client-name",MESSAGE_TOKEN:"device-message-token",DEVICE_ID:"device-id",WALLET_MESSAGE_TOKEN:"wallet-device-message-token",WALLET_DEVICE_ID:"wallet-device-id"},k8="/.config",_8="/.config/public",X8="/.config/config.json",I8="env",j8="docker-env",$8=40,D8=80,P8="/.well-known/blocklet/openembed",F8="$BLOCKLET_AUTOMATIC_ENV_VALUE",U8={V0:"0",V1:"1",DEFAULT:"1"},U2=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",". .... ....",0],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) ........."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic","do","1","",2],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251"],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49",".... ........"],["Ghana","gh","233"],["Greece","gr","30"],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",".. ........"],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63",".... ......."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","",3],["Qatar","qa","974"],["Réunion","re","262"],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","(...) ...-..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],H8="react-international-phone-",W4=(...e)=>e.filter(t=>!!t).join(" ").trim(),V8=(...e)=>W4(...e).split(" ").map(t=>`${H8}${t}`).join(" "),Vr=({addPrefix:e,rawClassNames:t})=>W4(V8(...e),...t),G8=({value:e,mask:t,maskSymbol:o,offset:n=0,trimNonMaskCharsLeftover:p=!1})=>{if(e.length<n)return e;let M=e.slice(0,n),c=e.slice(n),z=M,a=0;for(let r of t.split("")){if(a>=c.length){if(!p&&r!==o){z+=r;continue}break}r===o?(z+=c[a],a+=1):z+=r}return z},Jn=e=>e.replace(/\D/g,""),h2=e=>{let[t,o,n,p,M,c]=e;return{name:t,iso2:o,dialCode:n,format:p,priority:M,areaCodes:c}},Z8=e=>`Field "${e}" is not supported`,Sn=({field:e,value:t,countries:o=U2})=>{if(["priority"].includes(e))throw new Error(Z8(e));let n=o.find(p=>{let M=h2(p);return t===M[e]});if(n)return h2(n)},Gr=({phone:e,countries:t=U2,currentCountryIso2:o})=>{var z;let n={country:void 0,fullDialCodeMatch:!1};if(!e)return n;let p=Jn(e);if(!p)return n;let M=n,c=({country:a,fullDialCodeMatch:r})=>{var O,l;let i=a.dialCode===((O=M.country)==null?void 0:O.dialCode),s=(a.priority??0)<(((l=M.country)==null?void 0:l.priority)??0);(!i||s)&&(M={country:a,fullDialCodeMatch:r})};for(let a of t){let r=h2(a),{dialCode:i,areaCodes:s}=r;if(p.startsWith(i)){let O=M.country?Number(i)>=Number(M.country.dialCode):!0;if(s){let l=p.substring(i.length);for(let q of s)if(l.startsWith(q))return{country:r,fullDialCodeMatch:!0}}(O||i===p||!M.fullDialCodeMatch)&&c({country:r,fullDialCodeMatch:!0})}M.fullDialCodeMatch||p.length<i.length&&i.startsWith(p)&&(!M.country||Number(i)<=Number(M.country.dialCode))&&c({country:r,fullDialCodeMatch:!1})}if(o){let a=Sn({value:o,field:"iso2",countries:t});if(!a)return M;let r=a?(i=>{if(!(i!=null&&i.areaCodes))return!1;let s=p.substring(i.dialCode.length);return i.areaCodes.some(O=>O.startsWith(s))})(a):!1;M&&((z=M.country)==null?void 0:z.dialCode)===a.dialCode&&M.country!==a&&M.fullDialCodeMatch&&(!a.areaCodes||r)&&(M={country:a,fullDialCodeMatch:!0})}return M},K8=({phone:e,dialCode:t,prefix:o="+",charAfterDialCode:n=" "})=>{if(!e||!t)return e;let p=e;return p.startsWith(o)&&(p=p.replace(o,"")),p.startsWith(t)?(p=p.replace(t,""),p.startsWith(n)&&(p=p.replace(n,"")),p):e},Y8=({phone:e,dialCode:t,prefix:o="+",charAfterDialCode:n=" "})=>`${o}${t}${n}${K8({phone:e,dialCode:t,charAfterDialCode:n,prefix:o})}`,J8=(e,t)=>{let o=t.disableDialCodeAndPrefix?!1:t.forceDialCode,n=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,p=e,M=r=>t.trimNonDigitsEnd?r.trim():r;if(!p)return n&&!p.length||o?M(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):M(p);if(p=Jn(p),p===t.dialCode&&!t.disableDialCodeAndPrefix)return M(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(p)&&!t.disableDialCodeAndPrefix)return M(o?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${p}`);if(!p.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(o)return M(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(p.length<t.dialCode.length)return M(`${t.prefix}${p}`)}let c=()=>{let r=t.dialCode.length;t.disableDialCodeAndPrefix&&(r=0);let i=p.slice(0,r),s=p.slice(r);return{phoneLeftSide:i,phoneRightSide:s}},{phoneLeftSide:z,phoneRightSide:a}=c();return z=`${t.prefix}${z}${t.charAfterDialCode}`,a=G8({value:a,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd}),t.disableDialCodeAndPrefix&&(z=""),M(`${z}${a}`)},Zt=e=>/\d/.test(e),Q8=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:o,cursorPositionAfterInput:n,leftOffset:p=0,deletion:M})=>{if(n<p)return p;if(!e)return o.length;let c=M==="backward";if(n===0&&t.length>0&&o.length>0){if(c)return 0;for(let s=0;s<o.length;s+=1)if(Zt(o[s]))return s;return o.length}if(t.length<e.length&&t.length===1)return o.length;let z=null;for(let s=n-1;s>=0;s-=1)if(Zt(t[s])){z=s;break}if(z===null)return n!==0?n:o.length;let a=0;for(let s=0;s<z;s+=1)Zt(t[s])&&(a+=1);c&&(a-=1);let r=0,i=0;for(let s=0;s<o.length&&(r+=1,Zt(o[s])&&(i+=1),i!==a+1);s+=1);for(;!Zt(o[r])&&r<o.length;)r+=1;return c&&(r+=1),r},e9=(e,t)=>{let o=parseInt(e,16);return Number(o+t).toString(16)},t9="abcdefghijklmnopqrstuvwxyz",o9="1f1e6",Zr=t9.split("").reduce((e,t,o)=>({...e,[t]:e9(o9,o)}),{}),n9=e=>[Zr[e[0]],Zr[e[1]]].join("-"),Kr=({iso2:e,size:t,src:o,protocol:n="https",disableLazyLoading:p,className:M,style:c,...z})=>{if(!e)return Qe.createElement("img",{className:Vr({addPrefix:["flag-emoji"],rawClassNames:[M]}),width:t,height:t,...z});let a=()=>{if(o)return o;let r=n9(e);return`${n}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${r}.svg`};return Qe.createElement("img",{className:Vr({addPrefix:["flag-emoji"],rawClassNames:[M]}),src:a(),width:t,height:t,draggable:!1,"data-country":e,loading:p?void 0:"lazy",style:{width:t,height:t,...c},alt:"",...z})},p9=()=>{let e=R.useRef(),t=R.useRef(Date.now());return{check:()=>{let o=Date.now(),n=e.current?o-t.current:void 0;return e.current=t.current,t.current=o,n}}},M9={size:20,overrideLastItemDebounceMS:-1};function b9(e,t){let{size:o,overrideLastItemDebounceMS:n,onChange:p}={...M9,...t},[M,c]=R.useState(e),[z,a]=R.useState([M]),[r,i]=R.useState(0),s=p9();return[M,(O,l)=>{if(typeof O=="object"&&Object.entries(O).toString()===Object.entries(M).toString()||O===M)return;let q=n>0,f=s.check(),A=q&&f!==void 0?f>n:!0;if((l==null?void 0:l.overrideLastItem)!==void 0?l.overrideLastItem:!A)a(h=>[...h.slice(0,r),O]);else{let h=z.length>=o;a(g=>[...g.slice(h?1:0,r+1),O]),h||i(g=>g+1)}c(O),p==null||p(O)},()=>{if(r<=0)return{success:!1};let O=z[r-1];return c(O),i(l=>l-1),p==null||p(O),{success:!0,value:O}},()=>{if(r+1>=z.length)return{success:!1};let O=z[r+1];return c(O),i(l=>l+1),p==null||p(O),{success:!0,value:O}}]}var c9=".",_2={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,countries:U2},z9=({defaultCountry:e=_2.defaultCountry,value:t=_2.value,countries:o=_2.countries,prefix:n=_2.prefix,defaultMask:p=_2.defaultMask,charAfterDialCode:M=_2.charAfterDialCode,historySaveDebounceMS:c=_2.historySaveDebounceMS,disableCountryGuess:z=_2.disableCountryGuess,disableDialCodePrefill:a=_2.disableDialCodePrefill,forceDialCode:r=_2.forceDialCode,disableDialCodeAndPrefix:i=_2.disableDialCodeAndPrefix,onChange:s})=>{let O=i?!1:!z,l=R.useRef(null),q=({value:B,country:$,trimNonDigitsEnd:P,insertDialCodeOnEmpty:e0,forceDisableCountryGuess:s0})=>{let G=!s0&&O?Gr({phone:B,countries:o,currentCountryIso2:$.iso2}):void 0,J=(G==null?void 0:G.country)??$;return{phone:J?J8(B,{prefix:n,mask:J.format||p,maskChar:c9,dialCode:J.dialCode,trimNonDigitsEnd:P,charAfterDialCode:M,forceDialCode:r,insertDialCodeOnEmpty:e0,disableDialCodeAndPrefix:i}):B,countryGuessResult:G,formatCountry:J}},f=B=>{Promise.resolve().then(()=>{var $;($=l.current)==null||$.setSelectionRange(B,B)})},[{phone:A,country:h},g,m,W]=b9(()=>{var e0;let B=((e0=i?null:Gr({phone:t,countries:o,currentCountryIso2:e}))==null?void 0:e0.country)||Sn({value:e,field:"iso2",countries:o});B||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let $=B||h2(o.find(s0=>h2(s0).iso2==="us")),P=q({value:t,country:$,insertDialCodeOnEmpty:!a}).phone;return f(P.length),{phone:P,country:$.iso2}},{overrideLastItemDebounceMS:c,onChange:s}),k=R.useMemo(()=>Sn({value:h,field:"iso2",countries:o}),[o,h]),x=(B,{deletion:$,cursorPosition:P,insertDialCodeOnEmpty:e0,inserted:s0}={})=>{var w0;let G=B,J=P;r&&!i&&k&&!Jn(B).startsWith(k.dialCode)&&B&&(s0&&B.startsWith(n)&&B.length-(P??0)===0?G=B:(G=A,J=0));let{phone:o0,countryGuessResult:F}=q({value:G,country:k,trimNonDigitsEnd:$==="backward",insertDialCodeOnEmpty:e0,forceDisableCountryGuess:r&&!!$&&Jn(G).length<k.dialCode.length}),x0=k;O&&(F!=null&&F.country)&&F.country.name!==h&&F.fullDialCodeMatch&&(x0=F.country);let m0=Q8({cursorPositionAfterInput:J??0,phoneBeforeInput:A,phoneAfterInput:B,phoneAfterFormatted:o0,leftOffset:r?n.length+(((w0=k==null?void 0:k.dialCode)==null?void 0:w0.length)??0)+M.length:0,deletion:$});return g({phone:o0,country:x0.iso2}),f(m0),o0};R.useEffect(()=>{let B=l.current;if(!B)return;let $=P=>{if(!P.key)return;let e0=P.ctrlKey,s0=P.shiftKey,G=P.key.toLowerCase()==="z";!e0||!G||(s0?W():m())};return B.addEventListener("keydown",$),()=>{B.removeEventListener("keydown",$)}},[l,m,W]);let y=B=>{B.preventDefault();let $=B.nativeEvent.inputType,P=()=>{if(($==null?void 0:$.toLocaleLowerCase().includes("delete"))??!1)return $!=null&&$.toLocaleLowerCase().includes("forward")?"forward":"backward"},e0=$==null?void 0:$.startsWith("insertFrom"),s0=x(B.target.value,{deletion:P(),inserted:e0,cursorPosition:B.target.selectionStart??0});return i&&k?Y8({phone:s0,dialCode:k.dialCode,charAfterDialCode:M,prefix:n}):s0},X=B=>{let $=Sn({value:B,field:"iso2",countries:o});if(!$)return;let P=i?"":`${n}${$.dialCode}${M}`;g({phone:P,country:$.iso2}),Promise.resolve().then(()=>{var e0;(e0=l.current)==null||e0.focus()})},[T,S]=R.useState(!1);return R.useEffect(()=>{if(!T){S(!0),t!==A&&(s==null||s({phone:A,country:h}));return}t!==A&&x(t)},[t]),{phone:A,country:h,setCountry:X,handlePhoneValueChange:y,inputRef:l}};function r9({title:e="Something went wrong...",desc:t,extraContent:o=null,severity:n="error"}){const p=()=>window.location.replace("/"),M=()=>window.location.reload();return b.jsxs(xd,{severity:n,variant:"outlined",icon:!1,sx:{justifyContent:"center"},children:[e?b.jsx(tl,{children:e}):null,t?b.jsx(z0,{variant:"body2",mb:1,children:t}):null,o??b.jsxs(E,{sx:{display:"flex",gap:1,justifyContent:"center",alignItems:"center"},children:[b.jsx(F2,{variant:"outlined",color:n,size:"small",onClick:p,children:"Home"}),b.jsx(F2,{variant:"contained",color:n,size:"small",onClick:M,children:"Refresh"})]})]})}function Ic({error:e}){return b.jsx(r9,{desc:e.message})}function a9({height:e,...t}){return b.jsx(i9,{height:e,...t})}const i9=T0(E)`
6
+ */var Pr=Object.getOwnPropertySymbols,ZA=Object.prototype.hasOwnProperty,KA=Object.prototype.propertyIsEnumerable;function YA(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function JA(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;var n=Object.getOwnPropertyNames(t).map(function(M){return t[M]});if(n.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(M){p[M]=M}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var QA=JA()?Object.assign:function(e,t){for(var o,n=YA(e),p,M=1;M<arguments.length;M++){o=Object(arguments[M]);for(var c in o)ZA.call(o,c)&&(n[c]=o[c]);if(Pr){p=Pr(o);for(var z=0;z<p.length;z++)KA.call(o,p[z])&&(n[p[z]]=o[p[z]])}}return n};const eu=we(QA);var B3={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},N0={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(N0).map(function(e){return N0[e]});var a1={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},Kn={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Lo={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},tu=Object.keys(Kn).reduce(function(e,t){return e[Kn[t]]=t,e},{}),ou=[N0.NOSCRIPT,N0.SCRIPT,N0.STYLE],$2="data-react-helmet",nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pu=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Mu=function(){function e(t,o){for(var n=0;n<o.length;n++){var p=o[n];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(t,p.key,p)}}return function(t,o,n){return o&&e(t.prototype,o),n&&e(t,n),t}}(),a2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},bu=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},Fr=function(e,t){var o={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o},cu=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},Ob=function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return o===!1?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},zu=function(t){var o=st(t,N0.TITLE),n=st(t,Lo.TITLE_TEMPLATE);if(n&&o)return n.replace(/%s/g,function(){return Array.isArray(o)?o.join(""):o});var p=st(t,Lo.DEFAULT_TITLE);return o||p||void 0},ru=function(t){return st(t,Lo.ON_CHANGE_CLIENT_STATE)||function(){}},WM=function(t,o){return o.filter(function(n){return typeof n[t]<"u"}).map(function(n){return n[t]}).reduce(function(n,p){return a2({},n,p)},{})},au=function(t,o){return o.filter(function(n){return typeof n[N0.BASE]<"u"}).map(function(n){return n[N0.BASE]}).reverse().reduce(function(n,p){if(!n.length)for(var M=Object.keys(p),c=0;c<M.length;c++){var z=M[c],a=z.toLowerCase();if(t.indexOf(a)!==-1&&p[a])return n.concat(p)}return n},[])},Vt=function(t,o,n){var p={};return n.filter(function(M){return Array.isArray(M[t])?!0:(typeof M[t]<"u"&&su("Helmet: "+t+' should be of type "Array". Instead found type "'+nu(M[t])+'"'),!1)}).map(function(M){return M[t]}).reverse().reduce(function(M,c){var z={};c.filter(function(O){for(var l=void 0,q=Object.keys(O),f=0;f<q.length;f++){var A=q[f],h=A.toLowerCase();o.indexOf(h)!==-1&&!(l===a1.REL&&O[l].toLowerCase()==="canonical")&&!(h===a1.REL&&O[h].toLowerCase()==="stylesheet")&&(l=h),o.indexOf(A)!==-1&&(A===a1.INNER_HTML||A===a1.CSS_TEXT||A===a1.ITEM_PROP)&&(l=A)}if(!l||!O[l])return!1;var g=O[l].toLowerCase();return p[l]||(p[l]={}),z[l]||(z[l]={}),p[l][g]?!1:(z[l][g]=!0,!0)}).reverse().forEach(function(O){return M.push(O)});for(var a=Object.keys(z),r=0;r<a.length;r++){var i=a[r],s=eu({},p[i],z[i]);p[i]=s}return M},[]).reverse()},st=function(t,o){for(var n=t.length-1;n>=0;n--){var p=t[n];if(p.hasOwnProperty(o))return p[o]}return null},iu=function(t){return{baseTag:au([a1.HREF,a1.TARGET],t),bodyAttributes:WM(B3.BODY,t),defer:st(t,Lo.DEFER),encode:st(t,Lo.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:WM(B3.HTML,t),linkTags:Vt(N0.LINK,[a1.REL,a1.HREF],t),metaTags:Vt(N0.META,[a1.NAME,a1.CHARSET,a1.HTTPEQUIV,a1.PROPERTY,a1.ITEM_PROP],t),noscriptTags:Vt(N0.NOSCRIPT,[a1.INNER_HTML],t),onChangeClientState:ru(t),scriptTags:Vt(N0.SCRIPT,[a1.SRC,a1.INNER_HTML],t),styleTags:Vt(N0.STYLE,[a1.CSS_TEXT],t),title:zu(t),titleAttributes:WM(B3.TITLE,t)}},sb=function(){var e=Date.now();return function(t){var o=Date.now();o-e>16?(e=o,t(o)):setTimeout(function(){sb(t)},0)}}(),Ur=function(t){return clearTimeout(t)},du=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||sb:Zn.requestAnimationFrame||sb,Ou=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Ur:Zn.cancelAnimationFrame||Ur,su=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},Gt=null,lu=function(t){Gt&&Ou(Gt),t.defer?Gt=du(function(){Hr(t,function(){Gt=null})}):(Hr(t),Gt=null)},Hr=function(t,o){var n=t.baseTag,p=t.bodyAttributes,M=t.htmlAttributes,c=t.linkTags,z=t.metaTags,a=t.noscriptTags,r=t.onChangeClientState,i=t.scriptTags,s=t.styleTags,O=t.title,l=t.titleAttributes;lb(N0.BODY,p),lb(N0.HTML,M),Au(O,l);var q={baseTag:pt(N0.BASE,n),linkTags:pt(N0.LINK,c),metaTags:pt(N0.META,z),noscriptTags:pt(N0.NOSCRIPT,a),scriptTags:pt(N0.SCRIPT,i),styleTags:pt(N0.STYLE,s)},f={},A={};Object.keys(q).forEach(function(h){var g=q[h],m=g.newTags,W=g.oldTags;m.length&&(f[h]=m),W.length&&(A[h]=q[h].oldTags)}),o&&o(),r(t,f,A)},b4=function(t){return Array.isArray(t)?t.join(""):t},Au=function(t,o){typeof t<"u"&&document.title!==t&&(document.title=b4(t)),lb(N0.TITLE,o)},lb=function(t,o){var n=document.getElementsByTagName(t)[0];if(n){for(var p=n.getAttribute($2),M=p?p.split(","):[],c=[].concat(M),z=Object.keys(o),a=0;a<z.length;a++){var r=z[a],i=o[r]||"";n.getAttribute(r)!==i&&n.setAttribute(r,i),M.indexOf(r)===-1&&M.push(r);var s=c.indexOf(r);s!==-1&&c.splice(s,1)}for(var O=c.length-1;O>=0;O--)n.removeAttribute(c[O]);M.length===c.length?n.removeAttribute($2):n.getAttribute($2)!==z.join(",")&&n.setAttribute($2,z.join(","))}},pt=function(t,o){var n=document.head||document.querySelector(N0.HEAD),p=n.querySelectorAll(t+"["+$2+"]"),M=Array.prototype.slice.call(p),c=[],z=void 0;return o&&o.length&&o.forEach(function(a){var r=document.createElement(t);for(var i in a)if(a.hasOwnProperty(i))if(i===a1.INNER_HTML)r.innerHTML=a.innerHTML;else if(i===a1.CSS_TEXT)r.styleSheet?r.styleSheet.cssText=a.cssText:r.appendChild(document.createTextNode(a.cssText));else{var s=typeof a[i]>"u"?"":a[i];r.setAttribute(i,s)}r.setAttribute($2,"true"),M.some(function(O,l){return z=l,r.isEqualNode(O)})?M.splice(z,1):c.push(r)}),M.forEach(function(a){return a.parentNode.removeChild(a)}),c.forEach(function(a){return n.appendChild(a)}),{oldTags:M,newTags:c}},c4=function(t){return Object.keys(t).reduce(function(o,n){var p=typeof t[n]<"u"?n+'="'+t[n]+'"':""+n;return o?o+" "+p:p},"")},uu=function(t,o,n,p){var M=c4(n),c=b4(o);return M?"<"+t+" "+$2+'="true" '+M+">"+Ob(c,p)+"</"+t+">":"<"+t+" "+$2+'="true">'+Ob(c,p)+"</"+t+">"},fu=function(t,o,n){return o.reduce(function(p,M){var c=Object.keys(M).filter(function(r){return!(r===a1.INNER_HTML||r===a1.CSS_TEXT)}).reduce(function(r,i){var s=typeof M[i]>"u"?i:i+'="'+Ob(M[i],n)+'"';return r?r+" "+s:s},""),z=M.innerHTML||M.cssText||"",a=ou.indexOf(t)===-1;return p+"<"+t+" "+$2+'="true" '+c+(a?"/>":">"+z+"</"+t+">")},"")},z4=function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(n,p){return n[Kn[p]||p]=t[p],n},o)},qu=function(t){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(n,p){return n[tu[p]||p]=t[p],n},o)},hu=function(t,o,n){var p,M=(p={key:o},p[$2]=!0,p),c=z4(n,M);return[Qe.createElement(N0.TITLE,c,o)]},Wu=function(t,o){return o.map(function(n,p){var M,c=(M={key:p},M[$2]=!0,M);return Object.keys(n).forEach(function(z){var a=Kn[z]||z;if(a===a1.INNER_HTML||a===a1.CSS_TEXT){var r=n.innerHTML||n.cssText;c.dangerouslySetInnerHTML={__html:r}}else c[a]=n[z]}),Qe.createElement(t,c)})},Oe=function(t,o,n){switch(t){case N0.TITLE:return{toComponent:function(){return hu(t,o.title,o.titleAttributes)},toString:function(){return uu(t,o.title,o.titleAttributes,n)}};case B3.BODY:case B3.HTML:return{toComponent:function(){return z4(o)},toString:function(){return c4(o)}};default:return{toComponent:function(){return Wu(t,o)},toString:function(){return fu(t,o,n)}}}},r4=function(t){var o=t.baseTag,n=t.bodyAttributes,p=t.encode,M=t.htmlAttributes,c=t.linkTags,z=t.metaTags,a=t.noscriptTags,r=t.scriptTags,i=t.styleTags,s=t.title,O=s===void 0?"":s,l=t.titleAttributes;return{base:Oe(N0.BASE,o,p),bodyAttributes:Oe(B3.BODY,n,p),htmlAttributes:Oe(B3.HTML,M,p),link:Oe(N0.LINK,c,p),meta:Oe(N0.META,z,p),noscript:Oe(N0.NOSCRIPT,a,p),script:Oe(N0.SCRIPT,r,p),style:Oe(N0.STYLE,i,p),title:Oe(N0.TITLE,{title:O,titleAttributes:l},p)}},mu=function(t){var o,n;return n=o=function(p){bu(M,p);function M(){return pu(this,M),cu(this,p.apply(this,arguments))}return M.prototype.shouldComponentUpdate=function(z){return!wA(this.props,z)},M.prototype.mapNestedChildrenToProps=function(z,a){if(!a)return null;switch(z.type){case N0.SCRIPT:case N0.NOSCRIPT:return{innerHTML:a};case N0.STYLE:return{cssText:a}}throw new Error("<"+z.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},M.prototype.flattenArrayTypeChildren=function(z){var a,r=z.child,i=z.arrayTypeChildren,s=z.newChildProps,O=z.nestedChildren;return a2({},i,(a={},a[r.type]=[].concat(i[r.type]||[],[a2({},s,this.mapNestedChildrenToProps(r,O))]),a))},M.prototype.mapObjectTypeChildren=function(z){var a,r,i=z.child,s=z.newProps,O=z.newChildProps,l=z.nestedChildren;switch(i.type){case N0.TITLE:return a2({},s,(a={},a[i.type]=l,a.titleAttributes=a2({},O),a));case N0.BODY:return a2({},s,{bodyAttributes:a2({},O)});case N0.HTML:return a2({},s,{htmlAttributes:a2({},O)})}return a2({},s,(r={},r[i.type]=a2({},O),r))},M.prototype.mapArrayTypeChildrenToProps=function(z,a){var r=a2({},a);return Object.keys(z).forEach(function(i){var s;r=a2({},r,(s={},s[i]=z[i],s))}),r},M.prototype.warnOnInvalidChildren=function(z,a){return!0},M.prototype.mapChildrenToProps=function(z,a){var r=this,i={};return Qe.Children.forEach(z,function(s){if(!(!s||!s.props)){var O=s.props,l=O.children,q=Fr(O,["children"]),f=qu(q);switch(r.warnOnInvalidChildren(s,l),s.type){case N0.LINK:case N0.META:case N0.NOSCRIPT:case N0.SCRIPT:case N0.STYLE:i=r.flattenArrayTypeChildren({child:s,arrayTypeChildren:i,newChildProps:f,nestedChildren:l});break;default:a=r.mapObjectTypeChildren({child:s,newProps:a,newChildProps:f,nestedChildren:l});break}}}),a=this.mapArrayTypeChildrenToProps(i,a),a},M.prototype.render=function(){var z=this.props,a=z.children,r=Fr(z,["children"]),i=a2({},r);return a&&(i=this.mapChildrenToProps(a,i)),Qe.createElement(t,i)},Mu(M,null,[{key:"canUseDOM",set:function(z){t.canUseDOM=z}}]),M}(Qe.Component),o.propTypes={base:v.object,bodyAttributes:v.object,children:v.oneOfType([v.arrayOf(v.node),v.node]),defaultTitle:v.string,defer:v.bool,encodeSpecialCharacters:v.bool,htmlAttributes:v.object,link:v.arrayOf(v.object),meta:v.arrayOf(v.object),noscript:v.arrayOf(v.object),onChangeClientState:v.func,script:v.arrayOf(v.object),style:v.arrayOf(v.object),title:v.string,titleAttributes:v.object,titleTemplate:v.string},o.defaultProps={defer:!0,encodeSpecialCharacters:!0},o.peek=t.peek,o.rewind=function(){var p=t.rewind();return p||(p=r4({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),p},n},gu=function(){return null},Ru=GA(iu,lu,r4)(gu),Yn=mu(Ru);Yn.renderStatic=Yn.rewind;var Sc=Object.defineProperty,Lu=Object.getOwnPropertyDescriptor,Nu=Object.getOwnPropertyNames,xu=Object.prototype.hasOwnProperty,yu=(e,t)=>{for(var o in t)Sc(e,o,{get:t[o],enumerable:!0})},vu=(e,t,o,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let p of Nu(t))!xu.call(e,p)&&p!==o&&Sc(e,p,{get:()=>t[p],enumerable:!(n=Lu(t,p))||n.enumerable});return e},Cu=e=>vu(Sc({},"__esModule",{value:!0}),e),a4={};yu(a4,{ALLOW_VERIFY_PROVIDERS:()=>w8,APP_CONFIG_DIR:()=>k8,APP_CONFIG_FILE_PATH:()=>X8,APP_CONFIG_PUBLIC_DIR:()=>_8,BLOCKLET_APP_SPACE_REQUIREMENT:()=>v8,BLOCKLET_ARCHITECTURES:()=>Vu,BLOCKLET_AUTOMATIC_ENV_VALUE:()=>F8,BLOCKLET_BUNDLE_FILE:()=>r8,BLOCKLET_BUNDLE_FOLDER:()=>b8,BLOCKLET_BUNDLE_FOLDER_NAME:()=>z8,BLOCKLET_CONFIGURABLE_KEY:()=>x8,BLOCKLET_CONTROLLER_STATUS:()=>Su,BLOCKLET_DEFAULT_PATH_REWRITE:()=>n8,BLOCKLET_DEFAULT_PORT_NAME:()=>o8,BLOCKLET_DEFAULT_VERSION:()=>m8,BLOCKLET_DYNAMIC_PATH_PREFIX:()=>t8,BLOCKLET_ENTRY_FILE:()=>a8,BLOCKLET_FACTORY_SHARES:()=>Ku,BLOCKLET_GROUPS:()=>Du,BLOCKLET_INTERFACE_PROTOCOLS:()=>e8,BLOCKLET_INTERFACE_PROTOCOL_HTTP:()=>f4,BLOCKLET_INTERFACE_PROTOCOL_TCP:()=>q4,BLOCKLET_INTERFACE_PROTOCOL_UDP:()=>h4,BLOCKLET_INTERFACE_PUBLIC:()=>Xc,BLOCKLET_INTERFACE_TYPES:()=>Yu,BLOCKLET_INTERFACE_TYPE_DOCKER:()=>l4,BLOCKLET_INTERFACE_TYPE_SERVICE:()=>s4,BLOCKLET_INTERFACE_TYPE_WEB:()=>O4,BLOCKLET_INTERFACE_TYPE_WELLKNOWN:()=>A4,BLOCKLET_INTERFACE_WELLKNOWN:()=>u4,BLOCKLET_LATEST_REQUIREMENT_ABTNODE:()=>N8,BLOCKLET_LATEST_REQUIREMENT_SERVER:()=>L8,BLOCKLET_LATEST_SPEC_VERSION:()=>R8,BLOCKLET_META_FILE:()=>i8,BLOCKLET_META_FILE_ALT:()=>d8,BLOCKLET_MODES:()=>Gu,BLOCKLET_OPENEMBED_PREFIX:()=>P8,BLOCKLET_OPEN_API_FILE:()=>s8,BLOCKLET_OPEN_API_FILE_JSON:()=>l8,BLOCKLET_OPEN_COMPONENT_FILE:()=>A8,BLOCKLET_OPEN_COMPONENT_FILE_JSON:()=>u8,BLOCKLET_PLATFORMS:()=>Hu,BLOCKLET_PREFERENCE_FILE:()=>O8,BLOCKLET_PREFERENCE_PREFIX:()=>f8,BLOCKLET_RELEASE_FILE:()=>M8,BLOCKLET_RELEASE_FOLDER:()=>p8,BLOCKLET_RELEASE_FOLDER_NAME:()=>c8,BLOCKLET_RESOURCE_DIR:()=>q8,BLOCKLET_STANDARD_INTERFACES:()=>Qu,BLOCKLET_TENANT_MODES:()=>Zu,BLOCKLET_UI_INTERFACES:()=>Ju,BLOCKLET_UPLOADS_DIR:()=>g8,BlockletEvents:()=>Pu,BlockletGroup:()=>$u,BlockletInternalEvents:()=>Fu,BlockletSource:()=>_c,BlockletStatus:()=>kc,CHAIN_INFO_CONFIG:()=>C8,CHAIN_PROP_MAP:()=>Ab,CHAIN_PROP_MAP_REVERSE:()=>T8,COMPONENT_DOCKER_ENV_FILE_NAME:()=>j8,COMPONENT_ENV_FILE_NAME:()=>I8,DEVICE_HEADERS:()=>S8,DID_SPACES:()=>y8,LOGIN_PROVIDER:()=>ub,MAX_DESCRIPTION_LENGTH:()=>D8,MAX_TITLE_LENGTH:()=>$8,PROJECT:()=>W8,PROVIDER_NAME:()=>E8,RESOURCE_PATTERN:()=>h8,RESTORE_PROGRESS_STATUS:()=>B8,SIG_VERSION:()=>U8,SUPPORTED_LANGUAGES:()=>wu,SUSPENDED_REASON:()=>ku,TeamEvents:()=>Uu,baseLanguages:()=>Eu,fromBlockletSource:()=>Iu,fromBlockletStatus:()=>_u,toBlockletSource:()=>ju,toBlockletStatus:()=>Xu});var Bu=Cu(a4),Tu={en:{name:"English",nativeName:"English"},es:{name:"Spanish",nativeName:"Español"},zh:{name:"Simplified Chinese",nativeName:"简体中文"},"zh-TW":{name:"Traditional Chinese",nativeName:"繁體中文"},fr:{name:"French",nativeName:"Français"},it:{name:"Italian",nativeName:"Italiano"},ja:{name:"Japanese",nativeName:"日本語"},ko:{name:"Korean",nativeName:"한국어"},pt:{name:"Portuguese",nativeName:"Português"},ru:{name:"Russian",nativeName:"Русский"},ar:{name:"Arabic",nativeName:"اَلْعَرَبِيَّةُ"},de:{name:"German",nativeName:"Deutsch"},mn:{name:"Mongolian",nativeName:"Монгол хэл"},hi:{name:"Hindi",nativeName:"हिन्दी"},bn:{name:"Bengali",nativeName:"বাংলা"},vi:{name:"Vietnamese",nativeName:"Tiếng Việt"},tr:{name:"Turkish",nativeName:"Türkçe"},te:{name:"Telugu",nativeName:"తెలుగు"},ur:{name:"Urdu",nativeName:"اردو"},mr:{name:"Marathi",nativeName:"मराठी"},pa:{name:"Panjabi",nativeName:"ਪੰਜਾਬੀ"},aa:{name:"Afar",nativeName:"Afaraf"},ab:{name:"Abkhaz",nativeName:"аҧсуа бызшәа"},ae:{name:"Avestan",nativeName:"avesta"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},am:{name:"Amharic",nativeName:"አማርኛ"},an:{name:"Aragonese",nativeName:"aragonés"},as:{name:"Assamese",nativeName:"অসমীয়া"},av:{name:"Avaric",nativeName:"авар мацӀ"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"azərbaycan dili"},ba:{name:"Bashkir",nativeName:"башҡорт теле"},be:{name:"Belarusian",nativeName:"беларуская мова"},bg:{name:"Bulgarian",nativeName:"български език"},bi:{name:"Bislama",nativeName:"Bislama"},bm:{name:"Bambara",nativeName:"bamanankan"},bo:{name:"Tibetan",nativeName:"བོད་ཡིག"},br:{name:"Breton",nativeName:"brezhoneg"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},ca:{name:"Catalan",nativeName:"Català"},ce:{name:"Chechen",nativeName:"нохчийн мотт"},ch:{name:"Chamorro",nativeName:"Chamoru"},co:{name:"Corsican",nativeName:"corsu"},cr:{name:"Cree",nativeName:"ᓀᐦᐃᔭᐍᐏᐣ"},cs:{name:"Czech",nativeName:"čeština"},cu:{name:"Old Church Slavonic",nativeName:"ѩзыкъ словѣньскъ"},cv:{name:"Chuvash",nativeName:"чӑваш чӗлхи"},cy:{name:"Welsh",nativeName:"Cymraeg"},da:{name:"Danish",nativeName:"dansk"},dv:{name:"Divehi",nativeName:"ދިވެހި"},dz:{name:"Dzongkha",nativeName:"རྫོང་ཁ"},ee:{name:"Ewe",nativeName:"Eʋegbe"},el:{name:"Greek",nativeName:"Ελληνικά"},eo:{name:"Esperanto",nativeName:"Esperanto"},et:{name:"Estonian",nativeName:"eesti"},eu:{name:"Basque",nativeName:"euskara"},fa:{name:"Persian",nativeName:"فارسی"},ff:{name:"Fula",nativeName:"Fulfulde"},fi:{name:"Finnish",nativeName:"suomi"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fo:{name:"Faroese",nativeName:"føroyskt"},fy:{name:"Western Frisian",nativeName:"Frysk"},ga:{name:"Irish",nativeName:"Gaeilge"},gd:{name:"Scottish Gaelic",nativeName:"Gàidhlig"},gl:{name:"Galician",nativeName:"galego"},gn:{name:"Guaraní",nativeName:"Avañe'ẽ"},gu:{name:"Gujarati",nativeName:"ગુજરાતી"},gv:{name:"Manx",nativeName:"Gaelg"},ha:{name:"Hausa",nativeName:"هَوُسَ"},he:{name:"Hebrew",nativeName:"עברית"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hr:{name:"Croatian",nativeName:"Hrvatski"},ht:{name:"Haitian",nativeName:"Kreyòl ayisyen"},hu:{name:"Hungarian",nativeName:"magyar"},hy:{name:"Armenian",nativeName:"Հայերեն"},hz:{name:"Herero",nativeName:"Otjiherero"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Interlingue"},ig:{name:"Igbo",nativeName:"Asụsụ Igbo"},ii:{name:"Nuosu",nativeName:"ꆈꌠ꒿ Nuosuhxop"},ik:{name:"Inupiaq",nativeName:"Iñupiaq"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"Íslenska"},iu:{name:"Inuktitut",nativeName:"ᐃᓄᒃᑎᑐᑦ"},jv:{name:"Javanese",nativeName:"basa Jawa"},ka:{name:"Georgian",nativeName:"ქართული"},kg:{name:"Kongo",nativeName:"Kikongo"},ki:{name:"Kikuyu",nativeName:"Gĩkũyũ"},kj:{name:"Kwanyama",nativeName:"Kuanyama"},kk:{name:"Kazakh",nativeName:"қазақ тілі"},kl:{name:"Kalaallisut",nativeName:"kalaallisut"},km:{name:"Khmer",nativeName:"ខេមរភាសា"},kn:{name:"Kannada",nativeName:"ಕನ್ನಡ"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"कश्मीरी"},ku:{name:"Kurdish",nativeName:"Kurdî"},kv:{name:"Komi",nativeName:"коми кыв"},kw:{name:"Cornish",nativeName:"Kernewek"},ky:{name:"Kyrgyz",nativeName:"Кыргызча"},la:{name:"Latin",nativeName:"latine"},lb:{name:"Luxembourgish",nativeName:"Lëtzebuergesch"},lg:{name:"Ganda",nativeName:"Luganda"},li:{name:"Limburgish",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Lingála"},lo:{name:"Lao",nativeName:"ພາສາລາວ"},lt:{name:"Lithuanian",nativeName:"lietuvių kalba"},lu:{name:"Luba-Katanga",nativeName:"Kiluba"},lv:{name:"Latvian",nativeName:"latviešu valoda"},mg:{name:"Malagasy",nativeName:"fiteny malagasy"},mh:{name:"Marshallese",nativeName:"Kajin M̧ajeļ"},mi:{name:"Māori",nativeName:"te reo Māori"},mk:{name:"Macedonian",nativeName:"македонски јазик"},ml:{name:"Malayalam",nativeName:"മലയാളം"},ms:{name:"Malay",nativeName:"Bahasa Melayu"},mt:{name:"Maltese",nativeName:"Malti"},my:{name:"Burmese",nativeName:"ဗမာစာ"},na:{name:"Nauru",nativeName:"Dorerin Naoero"},nb:{name:"Norwegian Bokmål",nativeName:"Norsk bokmål"},nd:{name:"Northern Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"नेपाली"},ng:{name:"Ndonga",nativeName:"Owambo"},nl:{name:"Dutch",nativeName:"Nederlands"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},nr:{name:"Southern Ndebele",nativeName:"isiNdebele"},nv:{name:"Navajo",nativeName:"Diné bizaad"},ny:{name:"Chichewa",nativeName:"chiCheŵa"},oc:{name:"Occitan",nativeName:"occitan"},oj:{name:"Ojibwe",nativeName:"ᐊᓂᔑᓈᐯᒧᐎᓐ"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"ଓଡ଼ିଆ"},os:{name:"Ossetian",nativeName:"ирон æвзаг"},pi:{name:"Pāli",nativeName:"पाऴि"},pl:{name:"Polish",nativeName:"Polski"},ps:{name:"Pashto",nativeName:"پښتو"},qu:{name:"Quechua",nativeName:"Runa Simi"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"Ikirundi"},ro:{name:"Romanian",nativeName:"Română"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},sa:{name:"Sanskrit",nativeName:"संस्कृतम्"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"सिन्धी"},se:{name:"Northern Sami",nativeName:"Davvisámegiella"},sg:{name:"Sango",nativeName:"yângâ tî sängö"},si:{name:"Sinhala",nativeName:"සිංහල"},sk:{name:"Slovak",nativeName:"slovenčina"},sl:{name:"Slovenian",nativeName:"slovenščina"},sm:{name:"Samoan",nativeName:"gagana fa'a Samoa"},sn:{name:"Shona",nativeName:"chiShona"},so:{name:"Somali",nativeName:"Soomaaliga"},sq:{name:"Albanian",nativeName:"Shqip"},sr:{name:"Serbian",nativeName:"српски језик"},ss:{name:"Swati",nativeName:"SiSwati"},st:{name:"Southern Sotho",nativeName:"Sesotho"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sv:{name:"Swedish",nativeName:"Svenska"},sw:{name:"Swahili",nativeName:"Kiswahili"},ta:{name:"Tamil",nativeName:"தமிழ்"},tg:{name:"Tajik",nativeName:"тоҷикӣ"},th:{name:"Thai",nativeName:"ไทย"},ti:{name:"Tigrinya",nativeName:"ትግርኛ"},tk:{name:"Turkmen",nativeName:"Türkmençe"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga",nativeName:"faka Tonga"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"татар теле"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uyghur",nativeName:"ئۇيغۇرچە‎"},uk:{name:"Ukrainian",nativeName:"Українська"},uz:{name:"Uzbek",nativeName:"Ўзбек"},ve:{name:"Venda",nativeName:"Tshivenḓa"},vo:{name:"Volapük",nativeName:"Volapük"},wa:{name:"Walloon",nativeName:"walon"},wo:{name:"Wolof",nativeName:"Wollof"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"ייִדיש"},yo:{name:"Yoruba",nativeName:"Yorùbá"},za:{name:"Zhuang",nativeName:"Saɯ cueŋƅ"},zu:{name:"Zulu",nativeName:"isiZulu"}},Eu=[{code:"en",name:"English"},{code:"es",name:"Español"},{code:"zh",name:"简体中文"},{code:"zh-TW",name:"繁體中文"},{code:"ja",name:"日本語"},{code:"ko",name:"한국어"},{code:"de",name:"Deutsch"},{code:"hi",name:"हिन्दी"},{code:"fr",name:"Français"},{code:"ar",name:"اَلْعَرَبِيَّةُ"},{code:"ru",name:"Русский"},{code:"pt",name:"Português"},{code:"id",name:"Bahasa Indonesia"},{code:"vi",name:"Tiếng Việt"},{code:"th",name:"ไทย"}],wu=Tu,i4=e=>t=>{const o=Object.entries(e).find(n=>n[1]===Number(t));return o?o[0]:"unknown"},d4=e=>t=>Object.keys(e).find(o=>e[o]===Number(t)),kc=Object.freeze({added:0,downloading:1,downloaded:2,installing:3,installed:4,starting:5,running:6,stopping:7,stopped:8,error:9,upgrading:10,restarting:11,corrupted:12,waiting:13,deleted:14}),Su={normal:0,suspended:10},ku={expired:"expired"},_u=i4(kc),Xu=d4(kc),_c=Object.freeze({registry:0,local:1,upload:2,url:3,custom:4}),Iu=i4(_c),ju=d4(_c),$u=Object.freeze({static:"static",dapp:"dapp",gateway:"gateway",pack:"pack"}),Du=["dapp","static","gateway","pack"],Pu=Object.freeze({added:"blocklet.added",downloadFailed:"blocklet.downloadFailed",installed:"blocklet.installed",installFailed:"blocklet.installFailed",upgraded:"blocklet.upgraded",removed:"blocklet.removed",started:"blocklet.started",startFailed:"blocklet.startFailed",stopped:"blocklet.stopped",statusChange:"blocklet.statusChange",dataCleaned:"blocklet.dataCleaned",componentInstalled:"blocklet.componentInstalled",componentInstallFailed:"blocklet.componentInstallFailed",componentUpgraded:"blocklet.componentUpgraded",componentUpgradeFailed:"blocklet.componentUpgradeFailed",componentRemoved:"blocklet.componentRemoved",disableAutoBackup:"blocklet.disableAutoBackup",backupProgress:"blocklet.backupProgress",restoreProgress:"blocklet.restoreProgress",downloadBundleProgress:"blocklet.downloadBundleProgress",updated:"blocklet.updated",domainStatus:"blocklet.domainStatus",storeChange:"blocklet.storeChange",appDidChanged:"blocklet.appDidChanged",purchaseChange:"blocklet.purchaseChange",certError:"blocklet.certError",certIssued:"blocklet.certIssued",spaceConnected:"blocklet.spaceConnected",nftConsumed:"blocklet.nftConsumed",securityConfigUpdated:"blocklet.securityConfigUpdated",configTheme:"blocklet.configTheme",addUserSession:"blocklet.addUserSession",updateUserSession:"blocklet.updateUserSession"}),Fu=Object.freeze({appConfigChanged:"blocklet.appConfigChanged",appSettingChanged:"blocklet.appSettingChanged",componentInstalled:"blocklet._componentInstalled",componentUpgraded:"blocklet._componentUpgraded",componentUpdated:"blocklet._componentUpdated",componentStarted:"blocklet._componentStarted",componentStopped:"blocklet._componentStopped",componentRemoved:"blocklet._componentRemoved",componentConfigChanged:"blocklet._componentConfigChanged",componentsUpdated:"blocklet.componentsUpdated"}),Uu=Object.freeze({userAdded:"user.added",userRemoved:"user.removed",userUpdated:"user.updated",userProfileUpdated:"user.profile.updated",userPermissionUpdated:"user.permission.updated"}),Hu=["aix","darwin","freebsd","linux","openbsd","sunos","win32"],Vu=["arm","arm64","ia32","mips","mipsel","ppc","ppc64","s390","s390x","x32","x64"],Gu=Object.freeze({PRODUCTION:"production",DEVELOPMENT:"development"}),Zu=Object.freeze({SINGLE:"single",MULTIPLE:"multiple"}),Ku={developer:.7,store:.3},O4="web",s4="service",l4="docker",A4="wellknown",Yu=[O4,s4,A4,l4],Xc="publicUrl",u4="wellknownUrl",Ju=[Xc],Qu=[Xc,u4],f4="http",q4="tcp",h4="udp",e8=[q4,h4,f4],t8="*",o8="BLOCKLET_PORT",n8="/",p8=".blocklet/release",M8="blocklet.json",b8=".blocklet/bundle",c8="release",z8="bundle",r8="blocklet.zip",a8="blocklet.js",i8="blocklet.yml",d8="blocklet.yaml",O8="blocklet.prefs.json",s8="blocklet.openapi.yaml",l8="blocklet.openapi.json",A8="blocklet.opencomponent.yaml",u8="blocklet.opencomponent.json",f8="prefs.",q8="resources",h8=/\.(jpg|jpeg|png|gif|webp|svg|ico|css|js|jsx|ts|tsx|mjs|woff|woff2|ttf|eot|otf|json|bmp|avif|wasm|xml|txt)$/i,W8={DIR:".projects",RELEASE_DIR:"releases",RESOURCE_DIR:"resource",MAIN_DIR:"main",ASSET_DIR:"assets",TYPES:{resource:"resource",pack:"pack"},RELEASE_STATUS:{draft:"draft",published:"published"},MAX_NOTE_LENGTH:1e3,MAX_INTRO_LENGTH:3e3},m8="1.0.0",g8="__uploads",R8="1.2.8",L8=">=1.7.0",N8=">=1.5.15",x8={BLOCKLET_CLUSTER_SIZE:"BLOCKLET_CLUSTER_SIZE",BLOCKLET_APP_NAME:"BLOCKLET_APP_NAME",BLOCKLET_APP_DESCRIPTION:"BLOCKLET_APP_DESCRIPTION",BLOCKLET_APP_SK:"BLOCKLET_APP_SK",BLOCKLET_APP_LOGO:"BLOCKLET_APP_LOGO",BLOCKLET_APP_LOGO_SQUARE:"BLOCKLET_APP_LOGO_SQUARE",BLOCKLET_APP_LOGO_RECT:"BLOCKLET_APP_LOGO_RECT",BLOCKLET_APP_LOGO_FAVICON:"BLOCKLET_APP_LOGO_FAVICON",BLOCKLET_APP_SPLASH_PORTRAIT:"BLOCKLET_APP_SPLASH_PORTRAIT",BLOCKLET_APP_SPLASH_LANDSCAPE:"BLOCKLET_APP_SPLASH_LANDSCAPE",BLOCKLET_APP_OG_IMAGE:"BLOCKLET_APP_OG_IMAGE",BLOCKLET_APP_OG_COLOR:"BLOCKLET_APP_OG_COLOR",BLOCKLET_APP_URL:"BLOCKLET_APP_URL",BLOCKLET_APP_LANGUAGES:"BLOCKLET_APP_LANGUAGES",BLOCKLET_PASSPORT_COLOR:"BLOCKLET_PASSPORT_COLOR",BLOCKLET_WALLET_TYPE:"BLOCKLET_WALLET_TYPE",BLOCKLET_DELETABLE:"BLOCKLET_DELETABLE",BLOCKLET_APP_TENANT_MODE:"BLOCKLET_APP_TENANT_MODE",BLOCKLET_APP_COPYRIGHT_OWNER:"BLOCKLET_APP_COPYRIGHT_OWNER",BLOCKLET_APP_COPYRIGHT_YEAR:"BLOCKLET_APP_COPYRIGHT_YEAR",BLOCKLET_APP_SPACE_ENDPOINT:"BLOCKLET_APP_SPACE_ENDPOINT",BLOCKLET_APP_SPACES_URL:"BLOCKLET_APP_SPACES_URL",BLOCKLET_APP_BACKUP_ENDPOINT:"BLOCKLET_APP_BACKUP_ENDPOINT",BLOCKLET_APP_CHAIN_HOST:"BLOCKLET_APP_CHAIN_HOST",BLOCKLET_APP_CHAIN_TYPE:"BLOCKLET_APP_CHAIN_TYPE",BLOCKLET_APP_CHAIN_ID:"BLOCKLET_APP_CHAIN_ID",COMPONENT_ACCESS_WHO:"COMPONENT_ACCESS_WHO"},y8={VC_TYPES:["PersonalSpaceVerifiableCredential","EnterpriseSpaceVerifiableCredential","DIDSpaceAppAuthCredential"],NFT_TAG:"did-space-purchase-nft",AUTHORIZE:{DEFAULT_SCOPE:"list:object read:object write:object"}},v8={REQUIRED:"required",REQUIRED_ON_SETUP:"requiredOnSetup",OPTIONAL:"optional",REQUIRED_ON_CONNECT:"requiredOnConnect"},C8={CHAIN_TYPE:["type","arcblock"],CHAIN_ID:["id","none"],CHAIN_HOST:["host","none"]},B8={waiting:0,start:10,importData:20,downloading:30,importDataSuccess:40,installing:50,completed:60,error:70},Ab={BLOCKLET_APP_CHAIN_HOST:"CHAIN_HOST",BLOCKLET_APP_CHAIN_ID:"CHAIN_ID",BLOCKLET_APP_CHAIN_TYPE:"CHAIN_TYPE"},T8=Object.keys(Ab).reduce((e,t)=>(e[Ab[t]]=t,e),{}),ub={AUTH0:"auth0",GOOGLE:"google",APPLE:"apple",GITHUB:"github",WALLET:"wallet",NFT:"nft",PASSKEY:"passkey",EMAIL:"email"},E8={auth0:"Auth0",github:"GitHub",google:"Google",apple:"Apple",email:"Email",wallet:"DID wallet",federated:"Federated",passkey:"Passkey"},w8=[ub.PASSKEY,ub.WALLET],S8={CLIENT_NAME:"device-client-name",MESSAGE_TOKEN:"device-message-token",DEVICE_ID:"device-id",WALLET_MESSAGE_TOKEN:"wallet-device-message-token",WALLET_DEVICE_ID:"wallet-device-id"},k8="/.config",_8="/.config/public",X8="/.config/config.json",I8="env",j8="docker-env",$8=40,D8=80,P8="/.well-known/blocklet/openembed",F8="$BLOCKLET_AUTOMATIC_ENV_VALUE",U8={V0:"0",V1:"1",DEFAULT:"1"},U2=[["Afghanistan","af","93"],["Albania","al","355"],["Algeria","dz","213"],["Andorra","ad","376"],["Angola","ao","244"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54","(..) ........",0],["Armenia","am","374",".. ......"],["Aruba","aw","297"],["Australia","au","61",". .... ....",0],["Austria","at","43"],["Azerbaijan","az","994","(..) ... .. .."],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375","(..) ... .. .."],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55","(..) ........."],["British Indian Ocean Territory","io","246"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Canada","ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599","",1],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","... .... ...."],["Colombia","co","57","... ... ...."],["Comoros","km","269"],["Congo","cd","243"],["Congo","cg","242"],["Costa Rica","cr","506","....-...."],["Côte d'Ivoire","ci","225",".. .. .. .. .."],["Croatia","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599","",0],["Cyprus","cy","357",".. ......"],["Czech Republic","cz","420","... ... ..."],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic","do","1","",2],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372",".... ......"],["Ethiopia","et","251"],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["France","fr","33",". .. .. .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Germany","de","49",".... ........"],["Ghana","gh","233"],["Greece","gr","30"],["Grenada","gd","1473"],["Guadeloupe","gp","590","",0],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["India","in","91",".....-....."],["Indonesia","id","62"],["Iran","ir","98","... ... ...."],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972","... ... ...."],["Italy","it","39","... .......",0],["Jamaica","jm","1876"],["Japan","jp","81",".. .... ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-..",0],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996","... ... ..."],["Laos","la","856"],["Latvia","lv","371",".. ... ..."],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Macedonia","mk","389"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mexico","mx","52","... ... ....",0],["Micronesia","fm","691"],["Moldova","md","373","(..) ..-..-.."],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",".. ........"],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["North Korea","kp","850"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63",".... ......."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1","",3],["Qatar","qa","974"],["Réunion","re","262"],["Romania","ro","40"],["Russia","ru","7","(...) ...-..-..",1],["Rwanda","rw","250"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82","... .... ...."],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Swaziland","sz","268"],["Sweden","se","46","(...) ...-..."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Tuvalu","tv","688"],["Uganda","ug","256"],["Ukraine","ua","380","(..) ... .. .."],["United Arab Emirates","ae","971"],["United Kingdom","gb","44",".... ......"],["United States","us","1","(...) ...-....",0],["Uruguay","uy","598"],["Uzbekistan","uz","998",".. ... .. .."],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ....",1],["Venezuela","ve","58"],["Vietnam","vn","84"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],H8="react-international-phone-",W4=(...e)=>e.filter(t=>!!t).join(" ").trim(),V8=(...e)=>W4(...e).split(" ").map(t=>`${H8}${t}`).join(" "),Vr=({addPrefix:e,rawClassNames:t})=>W4(V8(...e),...t),G8=({value:e,mask:t,maskSymbol:o,offset:n=0,trimNonMaskCharsLeftover:p=!1})=>{if(e.length<n)return e;let M=e.slice(0,n),c=e.slice(n),z=M,a=0;for(let r of t.split("")){if(a>=c.length){if(!p&&r!==o){z+=r;continue}break}r===o?(z+=c[a],a+=1):z+=r}return z},Jn=e=>e.replace(/\D/g,""),h2=e=>{let[t,o,n,p,M,c]=e;return{name:t,iso2:o,dialCode:n,format:p,priority:M,areaCodes:c}},Z8=e=>`Field "${e}" is not supported`,Sn=({field:e,value:t,countries:o=U2})=>{if(["priority"].includes(e))throw new Error(Z8(e));let n=o.find(p=>{let M=h2(p);return t===M[e]});if(n)return h2(n)},Gr=({phone:e,countries:t=U2,currentCountryIso2:o})=>{var z;let n={country:void 0,fullDialCodeMatch:!1};if(!e)return n;let p=Jn(e);if(!p)return n;let M=n,c=({country:a,fullDialCodeMatch:r})=>{var O,l;let i=a.dialCode===((O=M.country)==null?void 0:O.dialCode),s=(a.priority??0)<(((l=M.country)==null?void 0:l.priority)??0);(!i||s)&&(M={country:a,fullDialCodeMatch:r})};for(let a of t){let r=h2(a),{dialCode:i,areaCodes:s}=r;if(p.startsWith(i)){let O=M.country?Number(i)>=Number(M.country.dialCode):!0;if(s){let l=p.substring(i.length);for(let q of s)if(l.startsWith(q))return{country:r,fullDialCodeMatch:!0}}(O||i===p||!M.fullDialCodeMatch)&&c({country:r,fullDialCodeMatch:!0})}M.fullDialCodeMatch||p.length<i.length&&i.startsWith(p)&&(!M.country||Number(i)<=Number(M.country.dialCode))&&c({country:r,fullDialCodeMatch:!1})}if(o){let a=Sn({value:o,field:"iso2",countries:t});if(!a)return M;let r=a?(i=>{if(!(i!=null&&i.areaCodes))return!1;let s=p.substring(i.dialCode.length);return i.areaCodes.some(O=>O.startsWith(s))})(a):!1;M&&((z=M.country)==null?void 0:z.dialCode)===a.dialCode&&M.country!==a&&M.fullDialCodeMatch&&(!a.areaCodes||r)&&(M={country:a,fullDialCodeMatch:!0})}return M},K8=({phone:e,dialCode:t,prefix:o="+",charAfterDialCode:n=" "})=>{if(!e||!t)return e;let p=e;return p.startsWith(o)&&(p=p.replace(o,"")),p.startsWith(t)?(p=p.replace(t,""),p.startsWith(n)&&(p=p.replace(n,"")),p):e},Y8=({phone:e,dialCode:t,prefix:o="+",charAfterDialCode:n=" "})=>`${o}${t}${n}${K8({phone:e,dialCode:t,charAfterDialCode:n,prefix:o})}`,J8=(e,t)=>{let o=t.disableDialCodeAndPrefix?!1:t.forceDialCode,n=t.disableDialCodeAndPrefix?!1:t.insertDialCodeOnEmpty,p=e,M=r=>t.trimNonDigitsEnd?r.trim():r;if(!p)return n&&!p.length||o?M(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`):M(p);if(p=Jn(p),p===t.dialCode&&!t.disableDialCodeAndPrefix)return M(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(t.dialCode.startsWith(p)&&!t.disableDialCodeAndPrefix)return M(o?`${t.prefix}${t.dialCode}${t.charAfterDialCode}`:`${t.prefix}${p}`);if(!p.startsWith(t.dialCode)&&!t.disableDialCodeAndPrefix){if(o)return M(`${t.prefix}${t.dialCode}${t.charAfterDialCode}`);if(p.length<t.dialCode.length)return M(`${t.prefix}${p}`)}let c=()=>{let r=t.dialCode.length;t.disableDialCodeAndPrefix&&(r=0);let i=p.slice(0,r),s=p.slice(r);return{phoneLeftSide:i,phoneRightSide:s}},{phoneLeftSide:z,phoneRightSide:a}=c();return z=`${t.prefix}${z}${t.charAfterDialCode}`,a=G8({value:a,mask:t.mask,maskSymbol:t.maskChar,trimNonMaskCharsLeftover:t.trimNonDigitsEnd}),t.disableDialCodeAndPrefix&&(z=""),M(`${z}${a}`)},Zt=e=>/\d/.test(e),Q8=({phoneBeforeInput:e,phoneAfterInput:t,phoneAfterFormatted:o,cursorPositionAfterInput:n,leftOffset:p=0,deletion:M})=>{if(n<p)return p;if(!e)return o.length;let c=M==="backward";if(n===0&&t.length>0&&o.length>0){if(c)return 0;for(let s=0;s<o.length;s+=1)if(Zt(o[s]))return s;return o.length}if(t.length<e.length&&t.length===1)return o.length;let z=null;for(let s=n-1;s>=0;s-=1)if(Zt(t[s])){z=s;break}if(z===null)return n!==0?n:o.length;let a=0;for(let s=0;s<z;s+=1)Zt(t[s])&&(a+=1);c&&(a-=1);let r=0,i=0;for(let s=0;s<o.length&&(r+=1,Zt(o[s])&&(i+=1),i!==a+1);s+=1);for(;!Zt(o[r])&&r<o.length;)r+=1;return c&&(r+=1),r},e9=(e,t)=>{let o=parseInt(e,16);return Number(o+t).toString(16)},t9="abcdefghijklmnopqrstuvwxyz",o9="1f1e6",Zr=t9.split("").reduce((e,t,o)=>({...e,[t]:e9(o9,o)}),{}),n9=e=>[Zr[e[0]],Zr[e[1]]].join("-"),Kr=({iso2:e,size:t,src:o,protocol:n="https",disableLazyLoading:p,className:M,style:c,...z})=>{if(!e)return Qe.createElement("img",{className:Vr({addPrefix:["flag-emoji"],rawClassNames:[M]}),width:t,height:t,...z});let a=()=>{if(o)return o;let r=n9(e);return`${n}://cdnjs.cloudflare.com/ajax/libs/twemoji/14.0.2/svg/${r}.svg`};return Qe.createElement("img",{className:Vr({addPrefix:["flag-emoji"],rawClassNames:[M]}),src:a(),width:t,height:t,draggable:!1,"data-country":e,loading:p?void 0:"lazy",style:{width:t,height:t,...c},alt:"",...z})},p9=()=>{let e=R.useRef(),t=R.useRef(Date.now());return{check:()=>{let o=Date.now(),n=e.current?o-t.current:void 0;return e.current=t.current,t.current=o,n}}},M9={size:20,overrideLastItemDebounceMS:-1};function b9(e,t){let{size:o,overrideLastItemDebounceMS:n,onChange:p}={...M9,...t},[M,c]=R.useState(e),[z,a]=R.useState([M]),[r,i]=R.useState(0),s=p9();return[M,(O,l)=>{if(typeof O=="object"&&Object.entries(O).toString()===Object.entries(M).toString()||O===M)return;let q=n>0,f=s.check(),A=q&&f!==void 0?f>n:!0;if((l==null?void 0:l.overrideLastItem)!==void 0?l.overrideLastItem:!A)a(h=>[...h.slice(0,r),O]);else{let h=z.length>=o;a(g=>[...g.slice(h?1:0,r+1),O]),h||i(g=>g+1)}c(O),p==null||p(O)},()=>{if(r<=0)return{success:!1};let O=z[r-1];return c(O),i(l=>l-1),p==null||p(O),{success:!0,value:O}},()=>{if(r+1>=z.length)return{success:!1};let O=z[r+1];return c(O),i(l=>l+1),p==null||p(O),{success:!0,value:O}}]}var c9=".",_2={defaultCountry:"us",value:"",prefix:"+",defaultMask:"............",charAfterDialCode:" ",historySaveDebounceMS:200,disableCountryGuess:!1,disableDialCodePrefill:!1,forceDialCode:!1,disableDialCodeAndPrefix:!1,countries:U2},z9=({defaultCountry:e=_2.defaultCountry,value:t=_2.value,countries:o=_2.countries,prefix:n=_2.prefix,defaultMask:p=_2.defaultMask,charAfterDialCode:M=_2.charAfterDialCode,historySaveDebounceMS:c=_2.historySaveDebounceMS,disableCountryGuess:z=_2.disableCountryGuess,disableDialCodePrefill:a=_2.disableDialCodePrefill,forceDialCode:r=_2.forceDialCode,disableDialCodeAndPrefix:i=_2.disableDialCodeAndPrefix,onChange:s})=>{let O=i?!1:!z,l=R.useRef(null),q=({value:B,country:$,trimNonDigitsEnd:P,insertDialCodeOnEmpty:e0,forceDisableCountryGuess:s0})=>{let G=!s0&&O?Gr({phone:B,countries:o,currentCountryIso2:$.iso2}):void 0,J=(G==null?void 0:G.country)??$;return{phone:J?J8(B,{prefix:n,mask:J.format||p,maskChar:c9,dialCode:J.dialCode,trimNonDigitsEnd:P,charAfterDialCode:M,forceDialCode:r,insertDialCodeOnEmpty:e0,disableDialCodeAndPrefix:i}):B,countryGuessResult:G,formatCountry:J}},f=B=>{Promise.resolve().then(()=>{var $;($=l.current)==null||$.setSelectionRange(B,B)})},[{phone:A,country:h},g,m,W]=b9(()=>{var e0;let B=((e0=i?null:Gr({phone:t,countries:o,currentCountryIso2:e}))==null?void 0:e0.country)||Sn({value:e,field:"iso2",countries:o});B||console.error(`[react-international-phone]: can not find a country with "${e}" iso2 code`);let $=B||h2(o.find(s0=>h2(s0).iso2==="us")),P=q({value:t,country:$,insertDialCodeOnEmpty:!a}).phone;return f(P.length),{phone:P,country:$.iso2}},{overrideLastItemDebounceMS:c,onChange:s}),k=R.useMemo(()=>Sn({value:h,field:"iso2",countries:o}),[o,h]),x=(B,{deletion:$,cursorPosition:P,insertDialCodeOnEmpty:e0,inserted:s0}={})=>{var w0;let G=B,J=P;r&&!i&&k&&!Jn(B).startsWith(k.dialCode)&&B&&(s0&&B.startsWith(n)&&B.length-(P??0)===0?G=B:(G=A,J=0));let{phone:o0,countryGuessResult:F}=q({value:G,country:k,trimNonDigitsEnd:$==="backward",insertDialCodeOnEmpty:e0,forceDisableCountryGuess:r&&!!$&&Jn(G).length<k.dialCode.length}),x0=k;O&&(F!=null&&F.country)&&F.country.name!==h&&F.fullDialCodeMatch&&(x0=F.country);let m0=Q8({cursorPositionAfterInput:J??0,phoneBeforeInput:A,phoneAfterInput:B,phoneAfterFormatted:o0,leftOffset:r?n.length+(((w0=k==null?void 0:k.dialCode)==null?void 0:w0.length)??0)+M.length:0,deletion:$});return g({phone:o0,country:x0.iso2}),f(m0),o0};R.useEffect(()=>{let B=l.current;if(!B)return;let $=P=>{if(!P.key)return;let e0=P.ctrlKey,s0=P.shiftKey,G=P.key.toLowerCase()==="z";!e0||!G||(s0?W():m())};return B.addEventListener("keydown",$),()=>{B.removeEventListener("keydown",$)}},[l,m,W]);let y=B=>{B.preventDefault();let $=B.nativeEvent.inputType,P=()=>{if(($==null?void 0:$.toLocaleLowerCase().includes("delete"))??!1)return $!=null&&$.toLocaleLowerCase().includes("forward")?"forward":"backward"},e0=$==null?void 0:$.startsWith("insertFrom"),s0=x(B.target.value,{deletion:P(),inserted:e0,cursorPosition:B.target.selectionStart??0});return i&&k?Y8({phone:s0,dialCode:k.dialCode,charAfterDialCode:M,prefix:n}):s0},X=B=>{let $=Sn({value:B,field:"iso2",countries:o});if(!$)return;let P=i?"":`${n}${$.dialCode}${M}`;g({phone:P,country:$.iso2}),Promise.resolve().then(()=>{var e0;(e0=l.current)==null||e0.focus()})},[T,S]=R.useState(!1);return R.useEffect(()=>{if(!T){S(!0),t!==A&&(s==null||s({phone:A,country:h}));return}t!==A&&x(t)},[t]),{phone:A,country:h,setCountry:X,handlePhoneValueChange:y,inputRef:l}};function r9({title:e="Something went wrong...",desc:t,extraContent:o=null,severity:n="error"}){const p=()=>window.location.replace("/"),M=()=>window.location.reload();return b.jsxs(xd,{severity:n,variant:"outlined",icon:!1,sx:{justifyContent:"center"},children:[e?b.jsx(tl,{children:e}):null,t?b.jsx(z0,{variant:"body2",mb:1,children:t}):null,o??b.jsxs(E,{sx:{display:"flex",gap:1,justifyContent:"center",alignItems:"center"},children:[b.jsx(F2,{variant:"outlined",color:n,size:"small",onClick:p,children:"Home"}),b.jsx(F2,{variant:"contained",color:n,size:"small",onClick:M,children:"Refresh"})]})]})}function Ic({error:e}){return b.jsx(r9,{desc:e.message})}function a9({height:e,...t}){return b.jsx(i9,{height:e,...t})}const i9=T0(E)`
7
7
  overflow: hidden;
8
8
  &:before {
9
9
  content: '';
@@ -1546,7 +1546,7 @@ t0.version="2.30.1";lN(c1);t0.fn=V;t0.min=ny;t0.max=py;t0.now=My;t0.utc=ie;t0.un
1546
1546
  .status {
1547
1547
  margin-left: 8px;
1548
1548
  }
1549
- `,Tn=LC();function pB({value:e,onChange:t,disabled:o=!1,mode:n="self"}){const[p,M]=R.useState(Tn),[c,z]=R.useState(""),a=R.useMemo(()=>LA(r=>r?Tn.filter(i=>i.value.toLowerCase().includes(r.toLowerCase())):Tn,300),[]);return R.useEffect(()=>{const r=a(c);M(r??Tn)},[c,a]),R.useEffect(()=>()=>{a.cancel()},[a]),b.jsxs(ht,{className:`timezone-select ${o?"disabled":""}`,value:e,onChange:r=>t(r.target.value),disabled:o,displayEmpty:!0,variant:"outlined",placeholder:"Timezone",IconComponent:r=>b.jsx(Do,{...r,width:20,height:20}),MenuProps:{PaperProps:{style:{maxHeight:"400px"}},style:{zIndex:n==="drawer"?9999:1300}},sx:{width:"100%","&:hover":{"fieldset.MuiOutlinedInput-notchedOutline":{borderColor:Z.dividerColor}},"fieldset.MuiOutlinedInput-notchedOutline":{borderColor:Z.dividerColor}},children:[b.jsx(ul,{children:b.jsx(ye,{autoFocus:!0,value:c,placeholder:"Timezone",variant:"outlined",size:"small",fullWidth:!0,onChange:r=>z(r.target.value),onClick:r=>r.stopPropagation(),onKeyDown:r=>r.stopPropagation(),sx:{marginTop:"8px","& .MuiOutlinedInput-root":{"& fieldset":{borderColor:Z.dividerColor,borderWidth:"1px"},"&:hover fieldset":{borderColor:Z.dividerColor},"&.Mui-focused fieldset":{borderColor:Z.dividerColor}}}})}),p.map(r=>b.jsx(ve,{value:r.value,children:r.label},r.value))]})}const MB={width:"100%",px:2,py:1,borderRadius:1,"&:hover":{"fieldset.MuiOutlinedInput-notchedOutline":{borderColor:Z.dividerColor}},"fieldset.MuiOutlinedInput-notchedOutline":{borderColor:Z.dividerColor,borderRadius:1},".MuiSelect-select":{padding:"0 !important",display:"flex",alignItems:"center"}};function bB({address:e,errors:t,handleChange:o,defaultCountry:n}){const{locale:p}=V0(),M=d0((c,z={})=>M1(x1,c,p,"en",z));return b.jsxs(E,{display:"flex",flexDirection:"column",gap:2,mt:2,children:[b.jsx(I2,{placeholder:M("profile.address.country"),value:e.country||n,editable:!0,errorMsg:t.country,label:M("profile.address.country"),children:b.jsx(cc,{value:e.country||n,onChange:c=>o("country",c),displayEmpty:!0,variant:"outlined",selectCountryProps:{hideDialCode:!0},sx:MB})}),b.jsxs(E,{display:"flex",gap:2,children:[b.jsx(I2,{value:e.province||"",onChange:c=>o("province",c),placeholder:M("profile.address.province"),label:M("profile.address.province"),editable:!0,errorMsg:t.province}),b.jsx(I2,{value:e.city||"",onChange:c=>o("city",c),placeholder:M("profile.address.city"),label:M("profile.address.city"),editable:!0,errorMsg:t.city})]}),b.jsx(I2,{value:e.line1||"",onChange:c=>o("line1",c),placeholder:M("profile.address.line1"),label:M("profile.address.line1"),component:"textarea",editable:!0,rows:2,errorMsg:t.line1}),b.jsx(I2,{value:e.line2||"",onChange:c=>o("line2",c),placeholder:M("profile.address.line2"),label:M("profile.address.line2"),component:"textarea",editable:!0,rows:2,errorMsg:t.line2}),b.jsx(I2,{value:e.postalCode||"",onChange:c=>o("postalCode",c),placeholder:M("profile.address.postalCode"),label:M("profile.address.postalCode"),editable:!0,errorMsg:t.postalCode})]})}const cB=R.lazy(()=>Se(()=>import("./Location-DSdE-EW4.js"),__vite__mapDeps([0,1,2]))),zB=R.lazy(()=>Se(()=>import("./Timezone-B77bSXNW.js"),__vite__mapDeps([3,1,2]))),rB=R.lazy(()=>Se(()=>import("./Email-DscM5ZVr.js"),__vite__mapDeps([4,1,2]))),aB=R.lazy(()=>Se(()=>import("./Phone-DkIl-1KJ.js"),__vite__mapDeps([5,1,2]))),En={width:20,height:20},Ui=200,z6=R.memo(R.forwardRef(function(t,o){return R.createElement(ql,{ref:o,component:"div",style:{backgroundColor:"rgba(0, 0, 0, 0.6)",backdropFilter:"blur(3px)",touchAction:"none"},...t,key:"background"})}));z6.displayName="BackdropWrap";function iB({isMyself:e,user:t,onSave:o,isMobile:n}){var e0,s0;const[p,M]=R.useState(!1),[c,z]=R.useState(!1),a=R.useRef(null),r=jd(),i=a3("(max-width:640px)")||r.mobile.any,s=M2({email:"",phone:""}),O=M2({country:"",province:"",city:"",line1:"",line2:"",postalCode:""});R.useEffect(()=>{i||z(!1)},[i]);const l=M0(()=>(t==null?void 0:t.phoneVerified)??!1,[t==null?void 0:t.phoneVerified]),q=M0(()=>(t==null?void 0:t.emailVerified)??!1,[t==null?void 0:t.emailVerified]),{locale:f}=V0(),A=d0((G,J={})=>M1(x1,G,f,"en",J)),h=M2(t!=null&&t.metadata?ro(t.metadata):{joinedAt:t==null?void 0:t.createdAt,email:t==null?void 0:t.email,phone:{country:"cn",phoneNumber:(t==null?void 0:t.phone)??""}}),g=M2(t!=null&&t.address?ro(t.address):{country:"",province:"",city:"",line1:"",line2:"",postalCode:""}),m=M0(()=>!!(t!=null&&t.address),[(e0=t==null?void 0:t.address)==null?void 0:e0.country]),W=R.useMemo(()=>{var G;return(G=t==null?void 0:t.address)!=null&&G.country?t.address.country:f==="zh"?"cn":"us"},[(s0=t==null?void 0:t.address)==null?void 0:s0.country,f]),k=M0(()=>{const G=h.phone??(t==null?void 0:t.phone)??{country:W,phone:""};if(G&&typeof G=="string")return{country:Pi(G)||W,phone:G};if(G&&typeof G=="object"){const{country:J="",phoneNumber:o0=""}=G;return{country:J||Pi(o0)||"",phone:o0||""}}return{country:W,phone:""}},[h.phone,t==null?void 0:t.phone,W]),x=(G,J)=>{h[J]=G},y=(G,J)=>{g[G]=J,G==="city"&&x(J,"location"),G==="postalCode"?O.postalCode=J&&!La(J,"any")?A("profile.address.invalidPostalCode"):"":O[G]=""},X=()=>{i?z(!0):M(!0)},T=()=>{const G=ro(t==null?void 0:t.metadata)??{};G&&Object.keys(h).forEach(o0=>{const F=o0;h[F]=G[F]});const J=ro(t==null?void 0:t.address)??{};J&&Object.keys(g).forEach(o0=>{const F=o0;g[F]=J[F]}),[s,O].forEach(o0=>{Object.keys(o0).forEach(F=>{o0[F]=""})}),i?z(!1):M(!1)},S=R.useMemo(()=>{var J;const G=((J=h==null?void 0:h.links)==null?void 0:J.map(o0=>o0.url))||[""];return G.length>0?G:[""]},[h.links]),B=G=>{const J=G.map(o0=>{var x0;if(!o0)return{url:o0};const F=(x0=h.links)==null?void 0:x0.find(m0=>m0.url===o0);return F?{...F,url:o0}:{url:o0,favicon:F0(o0,"favicon.ico")}});x(J,"links")},$=()=>{if(Object.keys(h).forEach(J=>{var x0,m0;const o0=J,F=h[o0];if(F&&typeof F=="string"&&(h[o0]=F.trim()),o0==="bio"&&(h[o0]=(x0=h[o0])==null?void 0:x0.slice(0,Ui)),o0==="timezone"&&(h[o0]=F||Fn),o0==="phone"&&F&&typeof F=="object"){const w0=F,f0=b6(w0.country),s1=((m0=w0.phoneNumber)==null?void 0:m0.replace(new RegExp(`^\\+${f0}`),""))||"",k0=(s1==null?void 0:s1.trim().length)>0;h[o0]={country:w0.country,...k0?{phoneNumber:w0.phoneNumber}:{}}}}),g.postalCode&&!La(g.postalCode,"any")&&(O.postalCode=A("profile.address.invalidPostalCode")),[s,O].some(J=>Object.values(J).some(o0=>o0)))return;const G=Bc(g,"detailedAddress");G.country||(G.country=W),o({metadata:h,address:G}),M(!1),z(!1)},P=(G,J="self")=>{var o0;return b.jsxs(dB,{pt:2,display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"flex-start",gap:n?"4px":"16px",children:[b.jsx(I2,{value:h.bio??"",onChange:F=>x(F,"bio"),editable:G,placeholder:"Bio",component:"textarea",inline:!1,rows:3,label:A("profile.bio"),maxLength:Ui,style:{...G?{marginBottom:8}:{}}}),!G&&e?b.jsx(F2,{size:n?"small":"large",variant:"outlined",sx:{...Op,mb:n?"4px":2,mt:n?"4px":2,height:n?"32px":"40px"},onClick:X,fullWidth:!0,children:A("profile.editProfile")}):null,G&&e&&m?b.jsx(bB,{address:g,errors:O,handleChange:y,defaultCountry:W}):b.jsx(I2,{value:h.location??((o0=t==null?void 0:t.address)==null?void 0:o0.city)??"",onChange:F=>x(F,"location"),editable:G,placeholder:"Location",label:A("profile.location"),tooltip:e&&(g.line1||g.line2)?b.jsx(b.Fragment,{children:["line1","line2"].map(F=>g[F]?b.jsxs(E,{children:[b.jsx(z0,{variant:"caption",component:"p",fontWeight:600,sx:{mb:0},children:A(`profile.address.${F}`)}),b.jsx(z0,{variant:"caption",component:"span",children:g[F]})]},F):null)}):null,renderValue:()=>{const x0=[g!=null&&g.country?jC(g==null?void 0:g.country):"",g.province,g.city||h.location||""].filter(Boolean).join(" ");return b.jsx(z0,{component:"span",children:x0})},icon:b.jsx(cB,{...En})}),b.jsx(I2,{value:h.timezone||Fn,onChange:F=>x(F,"timezone"),editable:G,placeholder:"timezone",icon:b.jsx(zB,{...En}),label:A("profile.timezone"),renderValue:F=>b.jsx(UC,{value:F}),children:b.jsx(pB,{value:h.timezone||Fn,onChange:F=>x(F,"timezone"),disabled:!G,mode:J})}),b.jsx(I2,{value:h.email??(t==null?void 0:t.email)??"",editable:G,hidePreview:!e,disabled:(t==null?void 0:t.sourceProvider)===b1.EMAIL,canEdit:!q,verified:q,placeholder:"Email",icon:b.jsx(rB,{...En}),label:b.jsxs(b.Fragment,{children:[A("profile.email"),(t==null?void 0:t.sourceProvider)===b1.EMAIL?b.jsx(V2,{title:A("profile.emailSourceProviderNotAllowEdit"),children:b.jsx(E,{component:d1,icon:"mdi:info-outline",sx:{verticalAlign:"middle",ml:.25}})}):null]}),onChange:F=>x(F,"email"),errorMsg:s.email,renderValue:F=>e?b.jsx("a",{href:`mailto:${F}`,style:{color:"inherit",textDecoration:"none"},children:F}):null,onValueValidate:F=>{let x0="";F&&!gL(F)&&(x0=A("profile.emailInvalid")),s.email=x0}}),b.jsx(I2,{value:k.phone,editable:G,hidePreview:!e,canEdit:!l,verified:l,placeholder:"Phone",icon:b.jsx(aB,{...En}),onChange:F=>x(F,"phone"),label:A("profile.phone"),renderValue:()=>e?b.jsx(Fi,{value:k,preview:!0}):null,children:b.jsx(Fi,{variant:"outlined",className:"editable-field",InputProps:{sx:{backgroundColor:"transparent"},placeholder:"Phone"},value:k,error:!!s.phone,helperText:s.phone,sx:_3(fp,s.phone?{}:up),onChange:F=>{lp(F.phone,F.country)?s.phone="":s.phone=A("profile.phoneInvalid"),x({country:F.country,phoneNumber:F.phone},"phone")}})}),b.jsx(oB,{editable:G,links:S,onChange:B}),G&&e?b.jsxs(E,{display:"flex",gap:1,style:{width:"100%"},justifyContent:"flex-end",flexDirection:J==="drawer"?"column":"row",children:[b.jsx(F2,{fullWidth:J==="drawer",size:"small",variant:"outlined",sx:{...Op,minWidth:"54px"},onClick:T,children:A("common.cancel")}),b.jsx(F2,{fullWidth:J==="drawer",size:"small",disabled:!!s.email||!!s.phone,variant:"outlined",sx:{...n6,minWidth:"54px","&.Mui-disabled":{backgroundColor:"rgba(0, 0, 0, 0.12)"}},onClick:$,children:A("common.save")})]}):null]})};return b.jsxs(b.Fragment,{children:[P(p),i&&b.jsxs(fl,{sx:{zIndex:9999},disableSwipeToOpen:!0,onOpen:X,open:c,anchor:"bottom",onClose:T,slots:{backdrop:z6},PaperProps:{sx:{boxShadow:"0px -2px 16px 0px rgba(0, 0, 0, 0.08)",borderRadius:3,borderBottomLeftRadius:0,borderBottomRightRadius:0}},children:[b.jsx(E,{ref:a,sx:{padding:"16px 32px",margin:"-8px auto -16px",zIndex:1},children:b.jsx(E,{sx:{width:"48px",height:"4px",borderRadius:"100vw",backgroundColor:"rgba(0, 0, 0, 0.2)"}})}),b.jsx(E,{p:2,sx:{maxHeight:"500px",overflowY:"auto"},children:P(!0,"drawer")})]})]})}const dB=g1(E)`
1549
+ `,Tn=LC();function pB({value:e,onChange:t,disabled:o=!1,mode:n="self"}){const[p,M]=R.useState(Tn),[c,z]=R.useState(""),a=R.useMemo(()=>LA(r=>r?Tn.filter(i=>i.value.toLowerCase().includes(r.toLowerCase())):Tn,300),[]);return R.useEffect(()=>{const r=a(c);M(r??Tn)},[c,a]),R.useEffect(()=>()=>{a.cancel()},[a]),b.jsxs(ht,{className:`timezone-select ${o?"disabled":""}`,value:e,onChange:r=>t(r.target.value),disabled:o,displayEmpty:!0,variant:"outlined",placeholder:"Timezone",IconComponent:r=>b.jsx(Do,{...r,width:20,height:20}),MenuProps:{PaperProps:{style:{maxHeight:"400px"}},style:{zIndex:n==="drawer"?9999:1300}},sx:{width:"100%","&:hover":{"fieldset.MuiOutlinedInput-notchedOutline":{borderColor:Z.dividerColor}},"fieldset.MuiOutlinedInput-notchedOutline":{borderColor:Z.dividerColor}},children:[b.jsx(ul,{children:b.jsx(ye,{autoFocus:!0,value:c,placeholder:"Timezone",variant:"outlined",size:"small",fullWidth:!0,onChange:r=>z(r.target.value),onClick:r=>r.stopPropagation(),onKeyDown:r=>r.stopPropagation(),sx:{marginTop:"8px","& .MuiOutlinedInput-root":{"& fieldset":{borderColor:Z.dividerColor,borderWidth:"1px"},"&:hover fieldset":{borderColor:Z.dividerColor},"&.Mui-focused fieldset":{borderColor:Z.dividerColor}}}})}),p.map(r=>b.jsx(ve,{value:r.value,children:r.label},r.value))]})}const MB={width:"100%",px:2,py:1,borderRadius:1,"&:hover":{"fieldset.MuiOutlinedInput-notchedOutline":{borderColor:Z.dividerColor}},"fieldset.MuiOutlinedInput-notchedOutline":{borderColor:Z.dividerColor,borderRadius:1},".MuiSelect-select":{padding:"0 !important",display:"flex",alignItems:"center"}};function bB({address:e,errors:t,handleChange:o,defaultCountry:n}){const{locale:p}=V0(),M=d0((c,z={})=>M1(x1,c,p,"en",z));return b.jsxs(E,{display:"flex",flexDirection:"column",gap:2,mt:2,children:[b.jsx(I2,{placeholder:M("profile.address.country"),value:e.country||n,editable:!0,errorMsg:t.country,label:M("profile.address.country"),children:b.jsx(cc,{value:e.country||n,onChange:c=>o("country",c),displayEmpty:!0,variant:"outlined",selectCountryProps:{hideDialCode:!0},sx:MB})}),b.jsxs(E,{display:"flex",gap:2,children:[b.jsx(I2,{value:e.province||"",onChange:c=>o("province",c),placeholder:M("profile.address.province"),label:M("profile.address.province"),editable:!0,errorMsg:t.province}),b.jsx(I2,{value:e.city||"",onChange:c=>o("city",c),placeholder:M("profile.address.city"),label:M("profile.address.city"),editable:!0,errorMsg:t.city})]}),b.jsx(I2,{value:e.line1||"",onChange:c=>o("line1",c),placeholder:M("profile.address.line1"),label:M("profile.address.line1"),component:"textarea",editable:!0,rows:2,errorMsg:t.line1}),b.jsx(I2,{value:e.line2||"",onChange:c=>o("line2",c),placeholder:M("profile.address.line2"),label:M("profile.address.line2"),component:"textarea",editable:!0,rows:2,errorMsg:t.line2}),b.jsx(I2,{value:e.postalCode||"",onChange:c=>o("postalCode",c),placeholder:M("profile.address.postalCode"),label:M("profile.address.postalCode"),editable:!0,errorMsg:t.postalCode})]})}const cB=R.lazy(()=>Se(()=>import("./Location-B8EOY3d0.js"),__vite__mapDeps([0,1,2]))),zB=R.lazy(()=>Se(()=>import("./Timezone-Ce4E1Xey.js"),__vite__mapDeps([3,1,2]))),rB=R.lazy(()=>Se(()=>import("./Email-Dz2Eyqu0.js"),__vite__mapDeps([4,1,2]))),aB=R.lazy(()=>Se(()=>import("./Phone-KP65huHK.js"),__vite__mapDeps([5,1,2]))),En={width:20,height:20},Ui=200,z6=R.memo(R.forwardRef(function(t,o){return R.createElement(ql,{ref:o,component:"div",style:{backgroundColor:"rgba(0, 0, 0, 0.6)",backdropFilter:"blur(3px)",touchAction:"none"},...t,key:"background"})}));z6.displayName="BackdropWrap";function iB({isMyself:e,user:t,onSave:o,isMobile:n}){var e0,s0;const[p,M]=R.useState(!1),[c,z]=R.useState(!1),a=R.useRef(null),r=jd(),i=a3("(max-width:640px)")||r.mobile.any,s=M2({email:"",phone:""}),O=M2({country:"",province:"",city:"",line1:"",line2:"",postalCode:""});R.useEffect(()=>{i||z(!1)},[i]);const l=M0(()=>(t==null?void 0:t.phoneVerified)??!1,[t==null?void 0:t.phoneVerified]),q=M0(()=>(t==null?void 0:t.emailVerified)??!1,[t==null?void 0:t.emailVerified]),{locale:f}=V0(),A=d0((G,J={})=>M1(x1,G,f,"en",J)),h=M2(t!=null&&t.metadata?ro(t.metadata):{joinedAt:t==null?void 0:t.createdAt,email:t==null?void 0:t.email,phone:{country:"cn",phoneNumber:(t==null?void 0:t.phone)??""}}),g=M2(t!=null&&t.address?ro(t.address):{country:"",province:"",city:"",line1:"",line2:"",postalCode:""}),m=M0(()=>!!(t!=null&&t.address),[(e0=t==null?void 0:t.address)==null?void 0:e0.country]),W=R.useMemo(()=>{var G;return(G=t==null?void 0:t.address)!=null&&G.country?t.address.country:f==="zh"?"cn":"us"},[(s0=t==null?void 0:t.address)==null?void 0:s0.country,f]),k=M0(()=>{const G=h.phone??(t==null?void 0:t.phone)??{country:W,phone:""};if(G&&typeof G=="string")return{country:Pi(G)||W,phone:G};if(G&&typeof G=="object"){const{country:J="",phoneNumber:o0=""}=G;return{country:J||Pi(o0)||"",phone:o0||""}}return{country:W,phone:""}},[h.phone,t==null?void 0:t.phone,W]),x=(G,J)=>{h[J]=G},y=(G,J)=>{g[G]=J,G==="city"&&x(J,"location"),G==="postalCode"?O.postalCode=J&&!La(J,"any")?A("profile.address.invalidPostalCode"):"":O[G]=""},X=()=>{i?z(!0):M(!0)},T=()=>{const G=ro(t==null?void 0:t.metadata)??{};G&&Object.keys(h).forEach(o0=>{const F=o0;h[F]=G[F]});const J=ro(t==null?void 0:t.address)??{};J&&Object.keys(g).forEach(o0=>{const F=o0;g[F]=J[F]}),[s,O].forEach(o0=>{Object.keys(o0).forEach(F=>{o0[F]=""})}),i?z(!1):M(!1)},S=R.useMemo(()=>{var J;const G=((J=h==null?void 0:h.links)==null?void 0:J.map(o0=>o0.url))||[""];return G.length>0?G:[""]},[h.links]),B=G=>{const J=G.map(o0=>{var x0;if(!o0)return{url:o0};const F=(x0=h.links)==null?void 0:x0.find(m0=>m0.url===o0);return F?{...F,url:o0}:{url:o0,favicon:F0(o0,"favicon.ico")}});x(J,"links")},$=()=>{if(Object.keys(h).forEach(J=>{var x0,m0;const o0=J,F=h[o0];if(F&&typeof F=="string"&&(h[o0]=F.trim()),o0==="bio"&&(h[o0]=(x0=h[o0])==null?void 0:x0.slice(0,Ui)),o0==="timezone"&&(h[o0]=F||Fn),o0==="phone"&&F&&typeof F=="object"){const w0=F,f0=b6(w0.country),s1=((m0=w0.phoneNumber)==null?void 0:m0.replace(new RegExp(`^\\+${f0}`),""))||"",k0=(s1==null?void 0:s1.trim().length)>0;h[o0]={country:w0.country,...k0?{phoneNumber:w0.phoneNumber}:{}}}}),g.postalCode&&!La(g.postalCode,"any")&&(O.postalCode=A("profile.address.invalidPostalCode")),[s,O].some(J=>Object.values(J).some(o0=>o0)))return;const G=Bc(g,"detailedAddress");G.country||(G.country=W),o({metadata:h,address:G}),M(!1),z(!1)},P=(G,J="self")=>{var o0;return b.jsxs(dB,{pt:2,display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"flex-start",gap:n?"4px":"16px",children:[b.jsx(I2,{value:h.bio??"",onChange:F=>x(F,"bio"),editable:G,placeholder:"Bio",component:"textarea",inline:!1,rows:3,label:A("profile.bio"),maxLength:Ui,style:{...G?{marginBottom:8}:{}}}),!G&&e?b.jsx(F2,{size:n?"small":"large",variant:"outlined",sx:{...Op,mb:n?"4px":2,mt:n?"4px":2,height:n?"32px":"40px"},onClick:X,fullWidth:!0,children:A("profile.editProfile")}):null,G&&e&&m?b.jsx(bB,{address:g,errors:O,handleChange:y,defaultCountry:W}):b.jsx(I2,{value:h.location??((o0=t==null?void 0:t.address)==null?void 0:o0.city)??"",onChange:F=>x(F,"location"),editable:G,placeholder:"Location",label:A("profile.location"),tooltip:e&&(g.line1||g.line2)?b.jsx(b.Fragment,{children:["line1","line2"].map(F=>g[F]?b.jsxs(E,{children:[b.jsx(z0,{variant:"caption",component:"p",fontWeight:600,sx:{mb:0},children:A(`profile.address.${F}`)}),b.jsx(z0,{variant:"caption",component:"span",children:g[F]})]},F):null)}):null,renderValue:()=>{const x0=[g!=null&&g.country?jC(g==null?void 0:g.country):"",g.province,g.city||h.location||""].filter(Boolean).join(" ");return b.jsx(z0,{component:"span",children:x0})},icon:b.jsx(cB,{...En})}),b.jsx(I2,{value:h.timezone||Fn,onChange:F=>x(F,"timezone"),editable:G,placeholder:"timezone",icon:b.jsx(zB,{...En}),label:A("profile.timezone"),renderValue:F=>b.jsx(UC,{value:F}),children:b.jsx(pB,{value:h.timezone||Fn,onChange:F=>x(F,"timezone"),disabled:!G,mode:J})}),b.jsx(I2,{value:h.email??(t==null?void 0:t.email)??"",editable:G,hidePreview:!e,disabled:(t==null?void 0:t.sourceProvider)===b1.EMAIL,canEdit:!q,verified:q,placeholder:"Email",icon:b.jsx(rB,{...En}),label:b.jsxs(b.Fragment,{children:[A("profile.email"),(t==null?void 0:t.sourceProvider)===b1.EMAIL?b.jsx(V2,{title:A("profile.emailSourceProviderNotAllowEdit"),children:b.jsx(E,{component:d1,icon:"mdi:info-outline",sx:{verticalAlign:"middle",ml:.25}})}):null]}),onChange:F=>x(F,"email"),errorMsg:s.email,renderValue:F=>e?b.jsx("a",{href:`mailto:${F}`,style:{color:"inherit",textDecoration:"none"},children:F}):null,onValueValidate:F=>{let x0="";F&&!gL(F)&&(x0=A("profile.emailInvalid")),s.email=x0}}),b.jsx(I2,{value:k.phone,editable:G,hidePreview:!e,canEdit:!l,verified:l,placeholder:"Phone",icon:b.jsx(aB,{...En}),onChange:F=>x(F,"phone"),label:A("profile.phone"),renderValue:()=>e?b.jsx(Fi,{value:k,preview:!0}):null,children:b.jsx(Fi,{variant:"outlined",className:"editable-field",InputProps:{sx:{backgroundColor:"transparent"},placeholder:"Phone"},value:k,error:!!s.phone,helperText:s.phone,sx:_3(fp,s.phone?{}:up),onChange:F=>{lp(F.phone,F.country)?s.phone="":s.phone=A("profile.phoneInvalid"),x({country:F.country,phoneNumber:F.phone},"phone")}})}),b.jsx(oB,{editable:G,links:S,onChange:B}),G&&e?b.jsxs(E,{display:"flex",gap:1,style:{width:"100%"},justifyContent:"flex-end",flexDirection:J==="drawer"?"column":"row",children:[b.jsx(F2,{fullWidth:J==="drawer",size:"small",variant:"outlined",sx:{...Op,minWidth:"54px"},onClick:T,children:A("common.cancel")}),b.jsx(F2,{fullWidth:J==="drawer",size:"small",disabled:!!s.email||!!s.phone,variant:"outlined",sx:{...n6,minWidth:"54px","&.Mui-disabled":{backgroundColor:"rgba(0, 0, 0, 0.12)"}},onClick:$,children:A("common.save")})]}):null]})};return b.jsxs(b.Fragment,{children:[P(p),i&&b.jsxs(fl,{sx:{zIndex:9999},disableSwipeToOpen:!0,onOpen:X,open:c,anchor:"bottom",onClose:T,slots:{backdrop:z6},PaperProps:{sx:{boxShadow:"0px -2px 16px 0px rgba(0, 0, 0, 0.08)",borderRadius:3,borderBottomLeftRadius:0,borderBottomRightRadius:0}},children:[b.jsx(E,{ref:a,sx:{padding:"16px 32px",margin:"-8px auto -16px",zIndex:1},children:b.jsx(E,{sx:{width:"48px",height:"4px",borderRadius:"100vw",backgroundColor:"rgba(0, 0, 0, 0.2)"}})}),b.jsx(E,{p:2,sx:{maxHeight:"500px",overflowY:"auto"},children:P(!0,"drawer")})]})]})}const dB=g1(E)`
1550
1550
  width: 100%;
1551
1551
 
1552
1552
  .MuiOutlinedInput-root {
@@ -1583,7 +1583,7 @@ t0.version="2.30.1";lN(c1);t0.fn=V;t0.min=ny;t0.max=py;t0.now=My;t0.utc=ie;t0.un
1583
1583
  color: #666;
1584
1584
  }
1585
1585
  }
1586
- `;function OB({value:e,onChange:t,error:o,helperText:n,label:p,timezone:M}){const c=R.useRef(null),z=A1().format("YYYY-MM-DDTHH:mm"),a=M0(()=>{let s=A1();return e&&(s=M?A1(e).tz(M):A1(e)),s.format("YYYY-MM-DD HH:mm")},[e,M]),r=s=>{t(new Date(s.target.value))},i=()=>{var s;(s=c.current)==null||s.showPicker()};return b.jsxs(Vn,{fullWidth:!0,error:o,children:[b.jsx(ye,{inputRef:c,type:"datetime-local",value:a,onChange:r,inputProps:{min:z,style:{cursor:"pointer"}},label:p,error:o,onClick:i,InputLabelProps:{shrink:!0},sx:{"& .MuiInputBase-root":{cursor:"pointer"},"& .MuiOutlinedInput-notchedOutline":{cursor:"pointer"}}}),n&&b.jsx(hl,{children:n})]})}const Hi={padding:"8px 16px",borderRadius:"8px","&:hover":{"fieldset.MuiOutlinedInput-notchedOutline":{borderColor:Z.dividerColor}},"fieldset.MuiOutlinedInput-notchedOutline":{borderColor:Z.dividerColor,borderRadius:"8px"},".MuiSelect-select":{padding:"0 !important",display:"flex",alignItems:"center"}};function sB({open:e,onClose:t,data:o,selected:n,onSelect:p,timezone:M}){var W,k;const{locale:c}=V0(),z=d0((x,y={})=>M1(x1,x,c,"en",y)),[a,r]=R.useState((n==null?void 0:n.value)||""),[i,s]=R.useState((n==null?void 0:n.duration)||""),[O,l]=R.useState(((W=n==null?void 0:n.dateRange)==null?void 0:W[1])||""),[q,f]=R.useState(!1);R.useEffect(()=>{var x;r((n==null?void 0:n.value)||""),s((n==null?void 0:n.duration)||""),l(((x=n==null?void 0:n.dateRange)==null?void 0:x[1])||"")},[n]);const A=R.useMemo(()=>a&&i,[a,i]),h=o.find(x=>x.id===a),g=x=>{p({value:x.id,...x.duration?{duration:x.duration}:{}}),t()},m=(x=!1)=>{if(x)p(void 0);else{const y=A1();p({value:a,...i?{duration:i}:{},...i===m1.Custom&&O?{dateRange:[y.toDate(),A1(O).toDate()]}:{}})}t()};return b.jsxs(mc,{open:e,onClose:t,maxWidth:"xs",fullWidth:!0,PaperProps:{sx:{borderRadius:"8px"}},children:[b.jsxs(Wl,{sx:{borderBottom:`1px solid ${Z.dividerColor}`},children:[b.jsx(z0,{variant:"body1",sx:{fontSize:"16px !important",mb:0},children:z("profile.setStatus")}),b.jsx(B1,{"aria-label":"close",onClick:t,sx:{position:"absolute",right:8,top:8,color:x=>x.palette.grey[500]},children:b.jsx(go,{})})]}),b.jsxs(gc,{children:[b.jsxs(Vn,{fullWidth:!0,sx:{mt:2},children:[b.jsx(Er,{size:"small",sx:{fontSize:"14px"},children:z("profile.setStatus")}),b.jsx(ht,{value:a,label:z("profile.setStatus"),onChange:x=>{r(x.target.value),f(!0)},variant:"outlined",IconComponent:x=>b.jsx(Do,{...x,width:20,height:20}),sx:Hi,children:o.map(x=>b.jsx(ve,{value:x.id,children:b.jsxs(R.Suspense,{fallback:null,children:[x.icon&&b.jsx(wr,{style:{minWidth:"24px"},children:R.createElement(x.icon,{style:{fontSize:"16px",width:"16px",height:"16px"}})}),x.name]})},x.id))})]}),a?b.jsxs(Vn,{fullWidth:!0,sx:{mt:"24px"},children:[b.jsx(Er,{size:"small",sx:{fontSize:"14px"},children:z("profile.removeStatusAfter")}),b.jsx(ht,{value:i,label:z("profile.removeStatusAfter"),onChange:x=>{const{value:y}=x.target;s(y),y===m1.Custom&&l(A1().toDate()),f(!0)},variant:"outlined",IconComponent:x=>b.jsx(Do,{...x,width:20,height:20}),sx:Hi,children:(k=h==null?void 0:h.children)==null?void 0:k.map(x=>b.jsx(ve,{value:x.id,children:x.name},x.id))})]}):b.jsxs(E,{sx:{mt:"24px"},children:[b.jsx(z0,{variant:"body2",color:"text.secondary",children:z("profile.quickSettings")}),o.map(x=>b.jsx(E,{onClick:()=>g(x),sx:{display:"flex",alignItems:"center",gap:"4px",p:"4px",cursor:"pointer",borderRadius:"8px","&:hover":{bgcolor:"action.hover"}},children:b.jsxs(R.Suspense,{fallback:null,children:[x.icon&&b.jsx(wr,{style:{minWidth:"24px"},children:R.createElement(x.icon,{style:{fontSize:"16px",width:"16px",height:"16px"}})}),x.name,x.durationName&&b.jsxs(z0,{variant:"body2",color:"text.secondary",children:["- ",x.durationName]})]})},x.id))]}),i===m1.Custom&&b.jsx(E,{sx:{mt:"24px"},children:b.jsx(OB,{value:O,onChange:x=>{l(x),f(!0)},label:z("profile.selectEndTime"),timezone:M,error:i===m1.Custom&&!O,helperText:i===m1.Custom&&!O?z("profile.pleaseSelectTime"):void 0})})]}),b.jsx(Td,{sx:{p:"16px 24px",borderTop:`1px solid ${Z.dividerColor}`},children:n!=null&&n.value&&!q?b.jsx(U1,{sx:{...Op,minWidth:"54px"},size:"small",variant:"outlined",onClick:()=>m(!0),children:z("profile.cleanStatus")}):b.jsxs(b.Fragment,{children:[b.jsx(U1,{size:"small",variant:"outlined",sx:{...Op,minWidth:"54px"},onClick:t,children:z("common.cancel")}),b.jsx(U1,{sx:{...n6,minWidth:"54px","&.Mui-disabled":{backgroundColor:"rgba(0, 0, 0, 0.12)"}},disabled:!A,onClick:()=>m(!1),size:"small",variant:"outlined",children:z("common.confirm")})]})})]})}const lB=R.lazy(()=>Se(()=>import("./Meeting-DlfumstQ.js"),__vite__mapDeps([6,1,2]))),AB=R.lazy(()=>Se(()=>import("./Community-B6sqs6QK.js"),__vite__mapDeps([7,1,2]))),uB=R.lazy(()=>Se(()=>import("./Holiday-COvP72sQ.js"),__vite__mapDeps([8,1,2]))),fB=R.lazy(()=>Se(()=>import("./OffSick-CG2hJbSq.js"),__vite__mapDeps([9,1,2]))),qB=R.lazy(()=>Se(()=>import("./WorkingRemotely-DNUERtUR.js"),__vite__mapDeps([10,1,2]))),Vi={[p2.Meeting]:lB,[p2.Community]:AB,[p2.Holiday]:uB,[p2.OffSick]:fB,[p2.WorkingRemotely]:qB},hB={[p2.Meeting]:{duration:m1.OneHour,durationName:"userStatus.duration.OneHour"},[p2.Community]:{duration:m1.ThirtyMinutes,durationName:"userStatus.duration.ThirtyMinutes"},[p2.Holiday]:{duration:m1.ThisWeek,durationName:"userStatus.duration.ThisWeek"},[p2.OffSick]:{duration:m1.Today,durationName:"userStatus.duration.Today"},[p2.WorkingRemotely]:{duration:m1.ThisWeek,durationName:"userStatus.duration.ThisWeek"}};function WB({isMobile:e,size:t,isMyself:o,status:n,onChange:p,timezone:M}){const{locale:c}=V0(),z=d0((x,y={})=>M1(x1,x,c,"en",y)),[a,r]=R.useState(void 0),i=d0(()=>{r(void 0)});R.useEffect(()=>{r(1e3)},[n]);const s=kA(()=>{var x;if(n!=null&&n.value&&((x=n==null?void 0:n.dateRange)==null?void 0:x.length)===2){if(ji(n))return;if(!xC(n.dateRange))i(),p(void 0);else{const T=yC(n.dateRange[1]);T>0?r(T):(i(),p(void 0))}}else i()},a);o4(()=>{s()});const[O,l]=R.useState(null),q=R.useCallback(()=>Object.keys(m1).map(y=>({id:m1[y],name:z(`userStatus.duration.${y}`)})),[z]),f=M0(()=>{const x=q();return Object.keys(p2).map(y=>{const X=hB[p2[y]];return{id:p2[y],name:z(`userStatus.${y}`),icon:Vi[p2[y]],...X?{duration:X.duration,durationName:z(X.durationName)}:{},children:x}})},[z,q,c]),A=x=>{o&&l(x.currentTarget)},h=()=>{l(null)},g=x=>{o&&(p(x),h())},m=Vi[n==null?void 0:n.value],W=R.useMemo(()=>{var y;const x=f.find(X=>X.id===(n==null?void 0:n.value));if(x){const X=c==="zh"?"zh-cn":"en-us";let T;return ji(n)||(T=(y=n==null?void 0:n.dateRange)==null?void 0:y.map(B=>Hd(B,{locale:X}))),T&&T.length>0?`${x.name}: ${T.join("~")}`:x.name}return null},[n,f,c]),k=!!O;return b.jsxs(mB,{size:t,isMobile:e,children:[b.jsx(V2,{title:W,children:b.jsx(E,{className:"status-icon",display:"flex",alignItems:"center",justifyContent:"center",onClick:A,children:m?b.jsx(R.Suspense,{fallback:null,children:b.jsx(m,{style:{width:16,height:16}})}):b.jsx(Bd,{color:"success",variant:"dot"})})}),k&&b.jsx(sB,{selected:n,data:f,open:k,onSelect:g,onClose:h,timezone:M})]})}const mB=g1("div")`
1586
+ `;function OB({value:e,onChange:t,error:o,helperText:n,label:p,timezone:M}){const c=R.useRef(null),z=A1().format("YYYY-MM-DDTHH:mm"),a=M0(()=>{let s=A1();return e&&(s=M?A1(e).tz(M):A1(e)),s.format("YYYY-MM-DD HH:mm")},[e,M]),r=s=>{t(new Date(s.target.value))},i=()=>{var s;(s=c.current)==null||s.showPicker()};return b.jsxs(Vn,{fullWidth:!0,error:o,children:[b.jsx(ye,{inputRef:c,type:"datetime-local",value:a,onChange:r,inputProps:{min:z,style:{cursor:"pointer"}},label:p,error:o,onClick:i,InputLabelProps:{shrink:!0},sx:{"& .MuiInputBase-root":{cursor:"pointer"},"& .MuiOutlinedInput-notchedOutline":{cursor:"pointer"}}}),n&&b.jsx(hl,{children:n})]})}const Hi={padding:"8px 16px",borderRadius:"8px","&:hover":{"fieldset.MuiOutlinedInput-notchedOutline":{borderColor:Z.dividerColor}},"fieldset.MuiOutlinedInput-notchedOutline":{borderColor:Z.dividerColor,borderRadius:"8px"},".MuiSelect-select":{padding:"0 !important",display:"flex",alignItems:"center"}};function sB({open:e,onClose:t,data:o,selected:n,onSelect:p,timezone:M}){var W,k;const{locale:c}=V0(),z=d0((x,y={})=>M1(x1,x,c,"en",y)),[a,r]=R.useState((n==null?void 0:n.value)||""),[i,s]=R.useState((n==null?void 0:n.duration)||""),[O,l]=R.useState(((W=n==null?void 0:n.dateRange)==null?void 0:W[1])||""),[q,f]=R.useState(!1);R.useEffect(()=>{var x;r((n==null?void 0:n.value)||""),s((n==null?void 0:n.duration)||""),l(((x=n==null?void 0:n.dateRange)==null?void 0:x[1])||"")},[n]);const A=R.useMemo(()=>a&&i,[a,i]),h=o.find(x=>x.id===a),g=x=>{p({value:x.id,...x.duration?{duration:x.duration}:{}}),t()},m=(x=!1)=>{if(x)p(void 0);else{const y=A1();p({value:a,...i?{duration:i}:{},...i===m1.Custom&&O?{dateRange:[y.toDate(),A1(O).toDate()]}:{}})}t()};return b.jsxs(mc,{open:e,onClose:t,maxWidth:"xs",fullWidth:!0,PaperProps:{sx:{borderRadius:"8px"}},children:[b.jsxs(Wl,{sx:{borderBottom:`1px solid ${Z.dividerColor}`},children:[b.jsx(z0,{variant:"body1",sx:{fontSize:"16px !important",mb:0},children:z("profile.setStatus")}),b.jsx(B1,{"aria-label":"close",onClick:t,sx:{position:"absolute",right:8,top:8,color:x=>x.palette.grey[500]},children:b.jsx(go,{})})]}),b.jsxs(gc,{children:[b.jsxs(Vn,{fullWidth:!0,sx:{mt:2},children:[b.jsx(Er,{size:"small",sx:{fontSize:"14px"},children:z("profile.setStatus")}),b.jsx(ht,{value:a,label:z("profile.setStatus"),onChange:x=>{r(x.target.value),f(!0)},variant:"outlined",IconComponent:x=>b.jsx(Do,{...x,width:20,height:20}),sx:Hi,children:o.map(x=>b.jsx(ve,{value:x.id,children:b.jsxs(R.Suspense,{fallback:null,children:[x.icon&&b.jsx(wr,{style:{minWidth:"24px"},children:R.createElement(x.icon,{style:{fontSize:"16px",width:"16px",height:"16px"}})}),x.name]})},x.id))})]}),a?b.jsxs(Vn,{fullWidth:!0,sx:{mt:"24px"},children:[b.jsx(Er,{size:"small",sx:{fontSize:"14px"},children:z("profile.removeStatusAfter")}),b.jsx(ht,{value:i,label:z("profile.removeStatusAfter"),onChange:x=>{const{value:y}=x.target;s(y),y===m1.Custom&&l(A1().toDate()),f(!0)},variant:"outlined",IconComponent:x=>b.jsx(Do,{...x,width:20,height:20}),sx:Hi,children:(k=h==null?void 0:h.children)==null?void 0:k.map(x=>b.jsx(ve,{value:x.id,children:x.name},x.id))})]}):b.jsxs(E,{sx:{mt:"24px"},children:[b.jsx(z0,{variant:"body2",color:"text.secondary",children:z("profile.quickSettings")}),o.map(x=>b.jsx(E,{onClick:()=>g(x),sx:{display:"flex",alignItems:"center",gap:"4px",p:"4px",cursor:"pointer",borderRadius:"8px","&:hover":{bgcolor:"action.hover"}},children:b.jsxs(R.Suspense,{fallback:null,children:[x.icon&&b.jsx(wr,{style:{minWidth:"24px"},children:R.createElement(x.icon,{style:{fontSize:"16px",width:"16px",height:"16px"}})}),x.name,x.durationName&&b.jsxs(z0,{variant:"body2",color:"text.secondary",children:["- ",x.durationName]})]})},x.id))]}),i===m1.Custom&&b.jsx(E,{sx:{mt:"24px"},children:b.jsx(OB,{value:O,onChange:x=>{l(x),f(!0)},label:z("profile.selectEndTime"),timezone:M,error:i===m1.Custom&&!O,helperText:i===m1.Custom&&!O?z("profile.pleaseSelectTime"):void 0})})]}),b.jsx(Td,{sx:{p:"16px 24px",borderTop:`1px solid ${Z.dividerColor}`},children:n!=null&&n.value&&!q?b.jsx(U1,{sx:{...Op,minWidth:"54px"},size:"small",variant:"outlined",onClick:()=>m(!0),children:z("profile.cleanStatus")}):b.jsxs(b.Fragment,{children:[b.jsx(U1,{size:"small",variant:"outlined",sx:{...Op,minWidth:"54px"},onClick:t,children:z("common.cancel")}),b.jsx(U1,{sx:{...n6,minWidth:"54px","&.Mui-disabled":{backgroundColor:"rgba(0, 0, 0, 0.12)"}},disabled:!A,onClick:()=>m(!1),size:"small",variant:"outlined",children:z("common.confirm")})]})})]})}const lB=R.lazy(()=>Se(()=>import("./Meeting-Epdyx36z.js"),__vite__mapDeps([6,1,2]))),AB=R.lazy(()=>Se(()=>import("./Community-DZCTPNMP.js"),__vite__mapDeps([7,1,2]))),uB=R.lazy(()=>Se(()=>import("./Holiday-Lc6woG1j.js"),__vite__mapDeps([8,1,2]))),fB=R.lazy(()=>Se(()=>import("./OffSick-VYgugWxu.js"),__vite__mapDeps([9,1,2]))),qB=R.lazy(()=>Se(()=>import("./WorkingRemotely-CXFJ6pz8.js"),__vite__mapDeps([10,1,2]))),Vi={[p2.Meeting]:lB,[p2.Community]:AB,[p2.Holiday]:uB,[p2.OffSick]:fB,[p2.WorkingRemotely]:qB},hB={[p2.Meeting]:{duration:m1.OneHour,durationName:"userStatus.duration.OneHour"},[p2.Community]:{duration:m1.ThirtyMinutes,durationName:"userStatus.duration.ThirtyMinutes"},[p2.Holiday]:{duration:m1.ThisWeek,durationName:"userStatus.duration.ThisWeek"},[p2.OffSick]:{duration:m1.Today,durationName:"userStatus.duration.Today"},[p2.WorkingRemotely]:{duration:m1.ThisWeek,durationName:"userStatus.duration.ThisWeek"}};function WB({isMobile:e,size:t,isMyself:o,status:n,onChange:p,timezone:M}){const{locale:c}=V0(),z=d0((x,y={})=>M1(x1,x,c,"en",y)),[a,r]=R.useState(void 0),i=d0(()=>{r(void 0)});R.useEffect(()=>{r(1e3)},[n]);const s=kA(()=>{var x;if(n!=null&&n.value&&((x=n==null?void 0:n.dateRange)==null?void 0:x.length)===2){if(ji(n))return;if(!xC(n.dateRange))i(),p(void 0);else{const T=yC(n.dateRange[1]);T>0?r(T):(i(),p(void 0))}}else i()},a);o4(()=>{s()});const[O,l]=R.useState(null),q=R.useCallback(()=>Object.keys(m1).map(y=>({id:m1[y],name:z(`userStatus.duration.${y}`)})),[z]),f=M0(()=>{const x=q();return Object.keys(p2).map(y=>{const X=hB[p2[y]];return{id:p2[y],name:z(`userStatus.${y}`),icon:Vi[p2[y]],...X?{duration:X.duration,durationName:z(X.durationName)}:{},children:x}})},[z,q,c]),A=x=>{o&&l(x.currentTarget)},h=()=>{l(null)},g=x=>{o&&(p(x),h())},m=Vi[n==null?void 0:n.value],W=R.useMemo(()=>{var y;const x=f.find(X=>X.id===(n==null?void 0:n.value));if(x){const X=c==="zh"?"zh-cn":"en-us";let T;return ji(n)||(T=(y=n==null?void 0:n.dateRange)==null?void 0:y.map(B=>Hd(B,{locale:X}))),T&&T.length>0?`${x.name}: ${T.join("~")}`:x.name}return null},[n,f,c]),k=!!O;return b.jsxs(mB,{size:t,isMobile:e,children:[b.jsx(V2,{title:W,children:b.jsx(E,{className:"status-icon",display:"flex",alignItems:"center",justifyContent:"center",onClick:A,children:m?b.jsx(R.Suspense,{fallback:null,children:b.jsx(m,{style:{width:16,height:16}})}):b.jsx(Bd,{color:"success",variant:"dot"})})}),k&&b.jsx(sB,{selected:n,data:f,open:k,onSelect:g,onClose:h,timezone:M})]})}const mB=g1("div")`
1587
1587
  position: absolute;
1588
1588
  left: ${({size:e})=>`${e*3/4}px`};
1589
1589
  top: ${({size:e})=>`${e*.65}px`};